0634f780ba1cfdbbac40d2823a24cae50ff134c0
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2020-12-07 Tom Tromey <tromey@adacore.com>
2
3 * maint.c (_initialize_maint_cmds): Use expression command
4 completer for "maint print type".
5
6 2020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7
8 * completer.c (complete_explicit_location): Also add keywords
9 that start with '-' to the completion list.
10
11 2020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12
13 * linespec.c (linespec_lexer_lex_keyword): The "-force-condition"
14 keyword may be followed by any keyword.
15 * breakpoint.c (find_condition_and_thread): Advance 'tok' by
16 'toklen' in the case for "-force-condition".
17
18 2020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
19
20 * main.c (catch_command_errors): Add a flag parameter; invoke
21 `bpstat_do_actions` if the flag is set.
22 (execute_cmdargs): Update a call to `catch_command_errors`.
23
24 2020-12-07 Tom de Vries <tdevries@suse.de>
25
26 * ada-lang.c (replace_operator_with_call): Handle shrink resize.
27
28 2020-12-06 Tom Tromey <tom@tromey.com>
29
30 PR ada/26999
31 * ada-lang.c (replace_operator_with_call): Rewrite.
32
33 2020-12-06 Giancarlo Frix <gfrix@rocketsoftware.com> (tiny change)
34
35 PR breakpoints/27009
36 * s390-tdep.h (op_bc): Correct BC opcode value.
37
38 2020-12-06 Joel Brobecker <brobecker@adacore.com>
39
40 * gmp-utils.h (gdb_mpz::safe_export): New private method.
41 (gdb_mpz::as_integer): Reimplement using gdb_mpz::safe_export.
42 * gmp-utils.c (gdb_mpz::write): Rewrite using gdb_mpz::safe_export.
43 (gdb_mpz::safe_export): New method.
44 * unittests/gmp-utils-selftests .c (gdb_mpz_as_integer):
45 Update function description.
46 (check_as_integer_raises_out_of_range_error): New function.
47 (gdb_mpz_as_integer_out_of_range): New function.
48 (_initialize_gmp_utils_selftests): Register
49 gdb_mpz_as_integer_out_of_range as a selftest.
50
51 2020-12-05 Joel Brobecker <brobecker@adacore.com>
52
53 * gmp-utils.c (gdb_mpz::read): Use HOST_CHAR_BIT instead of
54 TARGET_CHAR_BIT.
55 (gdb_mpz::write): Likewise.
56
57 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
58
59 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass 2 as the
60 number of displaced step buffers.
61
62 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
63
64 * displaced-stepping.h (struct displaced_step_buffer): Rename
65 to...
66 (struct displaced_step_buffers): ... this.
67 <m_addr, m_current_thread, m_copy_insn_closure>: Remove.
68 <struct displaced_step_buffer>: New inner class.
69 <m_buffers>: New.
70 * displaced-stepping.c (displaced_step_buffer::prepare): Rename
71 to...
72 (displaced_step_buffers::prepare): ... this, adjust for multiple
73 buffers.
74 (displaced_step_buffer::finish): Rename to...
75 (displaced_step_buffers::finish): ... this, adjust for multiple
76 buffers.
77 (displaced_step_buffer::copy_insn_closure_by_addr): Rename to...
78 (displaced_step_buffers::copy_insn_closure_by_addr): ... this,
79 adjust for multiple buffers.
80 (displaced_step_buffer::restore_in_ptid): Rename to...
81 (displaced_step_buffers::restore_in_ptid): ... this, adjust for
82 multiple buffers.
83 * linux-tdep.h (linux_init_abi): Change supports_displaced_step
84 for num_disp_step_buffers.
85 * linux-tdep.c (struct linux_gdbarch_data)
86 <num_disp_step_buffers>: New field.
87 (struct linux_info) <disp_step_buf>: Rename to...
88 <disp_step_bufs>: ... this, change type to
89 displaced_step_buffers.
90 (linux_displaced_step_prepare): Use
91 linux_gdbarch_data::num_disp_step_buffers to create that number
92 of buffers.
93 (linux_displaced_step_finish): Adjust.
94 (linux_displaced_step_copy_insn_closure_by_addr): Adjust.
95 (linux_displaced_step_restore_all_in_ptid): Adjust.
96 (linux_init_abi): Change supports_displaced_step parameter for
97 num_disp_step_buffers, save it in linux_gdbarch_data.
98 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Adjust.
99 * alpha-linux-tdep.c (alpha_linux_init_abi): Adjust.
100 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Change
101 supports_displaced_step parameter for num_disp_step_buffers.
102 (amd64_linux_init_abi): Adjust.
103 (amd64_x32_linux_init_abi): Adjust.
104 * arc-linux-tdep.c (arc_linux_init_osabi): Adjust.
105 * arm-linux-tdep.c (arm_linux_init_abi): Adjust.
106 * bfin-linux-tdep.c (bfin_linux_init_abi): Adjust.
107 * cris-linux-tdep.c (cris_linux_init_abi): Adjust.
108 * csky-linux-tdep.c (csky_linux_init_abi): Adjust.
109 * frv-linux-tdep.c (frv_linux_init_abi): Adjust.
110 * hppa-linux-tdep.c (hppa_linux_init_abi): Adjust.
111 * i386-linux-tdep.c (i386_linux_init_abi): Adjust.
112 * ia64-linux-tdep.c (ia64_linux_init_abi): Adjust.
113 * m32r-linux-tdep.c (m32r_linux_init_abi): Adjust.
114 * m68k-linux-tdep.c (m68k_linux_init_abi):
115 * microblaze-linux-tdep.c (microblaze_linux_init_abi):
116 * mips-linux-tdep.c (mips_linux_init_abi): Adjust.
117 * mn10300-linux-tdep.c (am33_linux_init_osabi): Adjust.
118 * nios2-linux-tdep.c (nios2_linux_init_abi): Adjust.
119 * or1k-linux-tdep.c (or1k_linux_init_abi): Adjust.
120 * ppc-linux-tdep.c (ppc_linux_init_abi): Adjust.
121 * riscv-linux-tdep.c (riscv_linux_init_abi): Adjust.
122 * rs6000-tdep.c (struct ppc_inferior_data) <disp_step_buf>:
123 Change type to displaced_step_buffers.
124 * s390-linux-tdep.c (s390_linux_init_abi_any): Adjust.
125 * sh-linux-tdep.c (sh_linux_init_abi): Adjust.
126 * sparc-linux-tdep.c (sparc32_linux_init_abi): Adjust.
127 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Adjust.
128 * tic6x-linux-tdep.c (tic6x_uclinux_init_abi): Adjust.
129 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Adjust.
130 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Adjust.
131
132 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
133
134 * linux-tdep.c (init_linux_gdbarch_data): Change parameter to
135 obkstack.
136 (_initialize_linux_tdep): Register pre-init gdb data instead of
137 post-init.
138
139 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
140
141 * displaced-stepping.h (struct
142 displaced_step_copy_insn_closure): Adjust comments.
143 (struct displaced_step_inferior_state) <step_thread,
144 step_gdbarch, step_closure, step_original, step_copy,
145 step_saved_copy>: Remove fields.
146 (struct displaced_step_thread_state): New.
147 (struct displaced_step_buffer): New.
148 * displaced-stepping.c (displaced_step_buffer::prepare): New.
149 (write_memory_ptid): Move from infrun.c.
150 (displaced_step_instruction_executed_successfully): New,
151 factored out of displaced_step_finish.
152 (displaced_step_buffer::finish): New.
153 (displaced_step_buffer::copy_insn_closure_by_addr): New.
154 (displaced_step_buffer::restore_in_ptid): New.
155 * gdbarch.sh (displaced_step_location): Remove.
156 (displaced_step_prepare, displaced_step_finish,
157 displaced_step_copy_insn_closure_by_addr,
158 displaced_step_restore_all_in_ptid): New.
159 * gdbarch.c: Re-generate.
160 * gdbarch.h: Re-generate.
161 * gdbthread.h (class thread_info) <displaced_step_state>: New
162 field.
163 (thread_step_over_chain_remove): New declaration.
164 (thread_step_over_chain_next): New declaration.
165 (thread_step_over_chain_length): New declaration.
166 * thread.c (thread_step_over_chain_remove): Make non-static.
167 (thread_step_over_chain_next): New.
168 (global_thread_step_over_chain_next): Use
169 thread_step_over_chain_next.
170 (thread_step_over_chain_length): New.
171 (global_thread_step_over_chain_enqueue): Add debug print.
172 (global_thread_step_over_chain_remove): Add debug print.
173 * infrun.h (get_displaced_step_copy_insn_closure_by_addr):
174 Remove.
175 * infrun.c (get_displaced_stepping_state): New.
176 (displaced_step_in_progress_any_inferior): Remove.
177 (displaced_step_in_progress_thread): Adjust.
178 (displaced_step_in_progress): Adjust.
179 (displaced_step_in_progress_any_thread): New.
180 (get_displaced_step_copy_insn_closure_by_addr): Remove.
181 (gdbarch_supports_displaced_stepping): Use
182 gdbarch_displaced_step_prepare_p.
183 (displaced_step_reset): Change parameter from inferior to
184 thread.
185 (displaced_step_prepare_throw): Implement using
186 gdbarch_displaced_step_prepare.
187 (write_memory_ptid): Move to displaced-step.c.
188 (displaced_step_restore): Remove.
189 (displaced_step_finish): Implement using
190 gdbarch_displaced_step_finish.
191 (start_step_over): Allow starting more than one displaced step.
192 (prepare_for_detach): Handle possibly multiple threads doing
193 displaced steps.
194 (handle_inferior_event): Handle possibility that fork event
195 happens while another thread displaced steps.
196 * linux-tdep.h (linux_displaced_step_prepare): New.
197 (linux_displaced_step_finish): New.
198 (linux_displaced_step_copy_insn_closure_by_addr): New.
199 (linux_displaced_step_restore_all_in_ptid): New.
200 (linux_init_abi): Add supports_displaced_step parameter.
201 * linux-tdep.c (struct linux_info) <disp_step_buf>: New field.
202 (linux_displaced_step_prepare): New.
203 (linux_displaced_step_finish): New.
204 (linux_displaced_step_copy_insn_closure_by_addr): New.
205 (linux_displaced_step_restore_all_in_ptid): New.
206 (linux_init_abi): Add supports_displaced_step parameter,
207 register displaced step methods if true.
208 (_initialize_linux_tdep): Register inferior_execd observer.
209 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Add
210 supports_displaced_step parameter, adjust call to
211 linux_init_abi. Remove call to
212 set_gdbarch_displaced_step_location.
213 (amd64_linux_init_abi): Adjust call to
214 amd64_linux_init_abi_common.
215 (amd64_x32_linux_init_abi): Likewise.
216 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Adjust call to
217 linux_init_abi. Remove call to
218 set_gdbarch_displaced_step_location.
219 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
220 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
221 * alpha-linux-tdep.c (alpha_linux_init_abi): Adjust call to
222 linux_init_abi.
223 * arc-linux-tdep.c (arc_linux_init_osabi): Likewise.
224 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
225 * cris-linux-tdep.c (cris_linux_init_abi): Likewise.
226 * csky-linux-tdep.c (csky_linux_init_abi): Likewise.
227 * frv-linux-tdep.c (frv_linux_init_abi): Likewise.
228 * hppa-linux-tdep.c (hppa_linux_init_abi): Likewise.
229 * ia64-linux-tdep.c (ia64_linux_init_abi): Likewise.
230 * m32r-linux-tdep.c (m32r_linux_init_abi): Likewise.
231 * m68k-linux-tdep.c (m68k_linux_init_abi): Likewise.
232 * microblaze-linux-tdep.c (microblaze_linux_init_abi): Likewise.
233 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
234 * mn10300-linux-tdep.c (am33_linux_init_osabi): Likewise.
235 * nios2-linux-tdep.c (nios2_linux_init_abi): Likewise.
236 * or1k-linux-tdep.c (or1k_linux_init_abi): Likewise.
237 * riscv-linux-tdep.c (riscv_linux_init_abi): Likewise.
238 * s390-linux-tdep.c (s390_linux_init_abi_any): Likewise.
239 * sh-linux-tdep.c (sh_linux_init_abi): Likewise.
240 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
241 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
242 * tic6x-linux-tdep.c (tic6x_uclinux_init_abi): Likewise.
243 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
244 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Likewise.
245 * ppc-linux-tdep.c (ppc_linux_init_abi): Adjust call to
246 linux_init_abi. Remove call to
247 set_gdbarch_displaced_step_location.
248 * arm-tdep.c (arm_pc_is_thumb): Call
249 gdbarch_displaced_step_copy_insn_closure_by_addr instead of
250 get_displaced_step_copy_insn_closure_by_addr.
251 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Adjust calls to
252 clear gdbarch methods.
253 * rs6000-tdep.c (struct ppc_inferior_data): New structure.
254 (get_ppc_per_inferior): New function.
255 (ppc_displaced_step_prepare): New function.
256 (ppc_displaced_step_finish): New function.
257 (ppc_displaced_step_restore_all_in_ptid): New function.
258 (rs6000_gdbarch_init): Register new gdbarch methods.
259 * s390-tdep.c (s390_gdbarch_init): Don't call
260 set_gdbarch_displaced_step_location, set new gdbarch methods.
261
262 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
263
264 * Makefile.in (COMMON_SFILES): Add displaced-stepping.c.
265 * aarch64-tdep.h: Include displaced-stepping.h.
266 * displaced-stepping.h (struct displaced_step_copy_insn_closure):
267 Move here.
268 (displaced_step_copy_insn_closure_up): Move here.
269 (struct buf_displaced_step_copy_insn_closure): Move here.
270 (struct displaced_step_inferior_state): Move here.
271 (debug_displaced): Move here.
272 (displaced_debug_printf_1): Move here.
273 (displaced_debug_printf): Move here.
274 * displaced-stepping.c: New file.
275 * gdbarch.sh: Include displaced-stepping.h in gdbarch.h.
276 * gdbarch.h: Re-generate.
277 * inferior.h: Include displaced-stepping.h.
278 * infrun.h (debug_displaced): Move to displaced-stepping.h.
279 (displaced_debug_printf_1): Likewise.
280 (displaced_debug_printf): Likewise.
281 (struct displaced_step_copy_insn_closure): Likewise.
282 (displaced_step_copy_insn_closure_up): Likewise.
283 (struct buf_displaced_step_copy_insn_closure): Likewise.
284 (struct displaced_step_inferior_state): Likewise.
285 * infrun.c (show_debug_displaced): Move to displaced-stepping.c.
286 (displaced_debug_printf_1): Likewise.
287 (displaced_step_copy_insn_closure::~displaced_step_copy_insn_closure):
288 Likewise.
289 (_initialize_infrun): Don't register "set/show debug displaced".
290
291 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
292
293 * linux-tdep.c (get_linux_inferior_data): Add inferior
294 parameter.
295 (linux_vsyscall_range): Pass current inferior.
296
297 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
298
299 * infrun.c (displaced_step_prepare_throw): Change return type to
300 displaced_step_prepare_status.
301 (displaced_step_prepare): Likewise.
302 (displaced_step_finish): Change return type to
303 displaced_step_finish_status.
304 (resume_1): Adjust.
305 (stop_all_threads): Adjust.
306 * displaced-stepping.h: New file.
307
308 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
309
310 * infrun.c (displaced_step_fixup): Rename to...
311 (displaced_step_finish): ... this, update all callers.
312
313 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
314
315 * infrun.h (get_displaced_step_closure_by_addr): Rename to...
316 (get_displaced_step_copy_insn_closure_by_addr): ... this.
317 Update all users.
318 (displaced_step_closure): Rename to...
319 (displaced_step_copy_insn_closure): ... this. Update all users.
320 (displaced_step_closure_up): Rename to...
321 (displaced_step_copy_insn_closure_up). ... this. Update all
322 users.
323 (buf_displaced_step_closure): Rename to...
324 (buf_displaced_step_copy_insn_closure): ... this. Update all
325 users.
326 * infrun.c (get_displaced_step_closure_by_addr): Rename to...
327 (get_displaced_step_copy_insn_closure_by_addr): ... this.
328 Update all users.
329 * aarch64-tdep.c (aarch64_displaced_step_closure): Rename to...
330 (aarch64_displaced_step_copy_insn_closure): ... this. Update
331 all users.
332 * amd64-tdep.c (amd64_displaced_step_closure): Rename to...
333 (amd64_displaced_step_copy_insn_closure): ... this. Update all
334 users.
335 * arm-tdep.h (arm_displaced_step_closure): Rename to...
336 (arm_displaced_step_copy_insn_closure): ... this. Update all
337 users.
338 * i386-tdep.h (i386_displaced_step_closure): Rename to...
339 (i386_displaced_step_copy_insn_closure): ... this. Update all
340 users.
341 * rs6000-tdep.c (ppc_displaced_step_closure): Rename to...
342 (ppc_displaced_step_copy_insn_closure): ... this. Update all
343 users.
344 * s390-tdep.c (s390_displaced_step_closure): Rename to...
345 (s390_displaced_step_copy_insn_closure): ... this. Update all
346 users.
347 * gdbarch.h: Re-generate.
348 * gdbarch.c: Re-generate.
349
350 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
351
352 * gdbthread.h (thread_step_over_chain_enqueue): Rename to...
353 (global_thread_step_over_chain_enqueue): ... this. Update all
354 users.
355 (thread_step_over_chain_remove): Rename to...
356 (global_thread_step_over_chain_remove): ... this. Update all
357 users.
358 (thread_step_over_chain_next): Rename to...
359 (global_thread_step_over_chain_next): ... this. Update all
360 users.
361 * infrun.h (step_over_queue_head): Rename to...
362 (global_thread_step_over_chain_head): ... this. Update all
363 users.
364 * infrun.c (step_over_queue_head): Rename to...
365 (global_thread_step_over_chain_head): ... this. Update all
366 users.
367 * thread.c (step_over_chain_remove): Rename to...
368 (thread_step_over_chain_remove): ... this. Update all users.
369 (thread_step_over_chain_next): Rename to...
370 (global_thread_step_over_chain_next): ... this. Update all
371 users.
372 (thread_step_over_chain_enqueue): Rename to...
373 (global_thread_step_over_chain_enqueue): ... this. Update all
374 users.
375 (thread_step_over_chain_remove): Rename to...
376 (global_thread_step_over_chain_remove): ... this. Update all
377 users.
378
379 2020-12-04 Simon Marchi <simon.marchi@polymtl.ca>
380
381 * infrun.c (get_displaced_stepping_state): Remove, change
382 callers to access the field directly.
383
384 2020-12-04 Simon Marchi <simon.marchi@polymtl.ca>
385
386 * infrun.c (handle_inferior_event): Restore displaced step
387 buffer bytes in child process when handling fork, even if fork
388 happened in another thread than the displaced-stepping one.
389
390 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
391
392 * infrun.c (infrun_inferior_execd): New function.
393 (_initialize_infrun): Attach inferior_execd observer.
394
395 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
396
397 * observable.h (inferior_execd): Declare new observable.
398 * observable.c (inferior_execd): Declare new observable.
399 * infrun.c (follow_exec): Notify inferior_execd observer.
400 * jit.c (jit_inferior_created_hook): Make static.
401 (_initialize_jit): Register inferior_execd observer.
402 * jit.h (jit_inferior_created_hook): Remove declaration.
403 * solib.c (_initialize_solib): Register inferior_execd observer.
404
405 2020-12-04 Tom de Vries <tdevries@suse.de>
406
407 PR gdb/27003
408 * completer.c (completion_tracker::build_completion_result): Don't
409 access match_list[0][-1].
410
411 2020-12-04 Tom Tromey <tromey@adacore.com>
412
413 * linespec.c (struct linespec_token): Rename; remove typedef.
414 * guile/scm-block.c (struct block_smob): Remove typedef.
415 (struct block_syms_progress_smob): Likewise.
416 * guile/scm-symbol.c (struct symbol_smob): Remove typedef.
417 * guile/scm-symtab.c (symtab_smob): Remove typedef.
418 (struct sal_smob): Remove typedef.
419 * guile/scm-param.c (struct param_smob): Remove typedef.
420 * guile/scm-progspace.c (struct pspace_smob): Rename.
421 * guile/scm-objfile.c (struct objfile_smob): Rename.
422 * guile/scm-iterator.c (struct iterator_smob): Rename.
423 * guile/scm-frame.c (struct frame_smob): Rename.
424 * guile/scm-arch.c (struct arch_smob): Rename.
425 * guile/scm-type.c (struct field_smob): Remove typedef.
426 (struct type_smob): Rename.
427 * guile/scm-cmd.c (struct command_smob): Remove typedef.
428 * guile/scm-ports.c (struct ioscm_memory_port): Remove typedef.
429 * guile/scm-value.c (struct value_smob): Remove typedef.
430 * guile/scm-lazy-string.c (lazy_string_smob): Remove typedef.
431 * guile/guile-internal.h (struct scheme_variable)
432 (struct scheme_function, struct scheme_integer_constant)
433 (struct gdb_smob, struct chained_gdb_smob)
434 (struct eqable_gdb_smob, arch_smob, frame_smob, iterator_smob)
435 (objfile_smob, pspace_smob, type_smob): Remove typedef.
436 * guile/scm-pretty-print.c (pretty_printer_smob): Remove typedef.
437 (struct pretty_printer_worker_smob): Remove typedef.
438 * guile/scm-exception.c (struct exception_smob): Remove typedef.
439 * python/py-block.c (struct block_object): Remove typedef.
440 (block_syms_iterator_object): Update.
441 (set_block): Update.
442 (block_syms_iterator_object): Remove typedef.
443 * python/py-inferior.c (struct membuf_object): Remove typedef.
444 * python/py-symtab.c (struct symtab_object): Remove typedef.
445 (set_symtab): Update.
446 (sal_object): Remove typedef.
447 (set_sal): Update.
448 * python/py-frame.c (frame_object): Remove typedef.
449 * python/py-record-btrace.c (struct btpy_list_object): Remove
450 typedef.
451 * python/py-arch.c (struct arch_object): Remove typedef.
452 * python/py-linetable.c (struct linetable_entry_object)
453 (linetable_object, struct ltpy_iterator_object): Remove typedef.
454 * python/py-events.h (eventregistry_object): Remove typedef.
455 (struct events_object): Remove typedef.
456 * python/python-internal.h (gdbpy_breakpoint_object): Remove
457 typedef.
458 (thread_object): Remove typedef.
459 * python/py-progspace.c (pspace_object): Remove typedef.
460 * python/py-value.c (struct value_object): Remove typedef.
461 * python/py-record.h (recpy_record_object): Remove typedef.
462 (struct recpy_element_object): Remove typedef.
463 * python/py-lazy-string.c (lazy_string_object): Remove typedef.
464 * python/py-objfile.c (objfile_object): Remove typedef.
465 * python/py-cmd.c (struct cmdpy_object): Remove typedef.
466 * python/py-type.c (type_object): Remove typedef.
467 (typy_iterator_object): Update.
468 (set_type): Update.
469 (field_object): Remove typedef.
470 (typy_iterator_object): Remove typedef.
471 * python/py-registers.c (register_descriptor_iterator_object):
472 Remove typedef.
473 (struct register_descriptor_object)
474 (struct reggroup_iterator_object, struct reggroup_object): Remove
475 typedef.
476 * python/py-record.c (recpy_gap_object): Remove typedef.
477 * python/py-symbol.c (symbol_object): Remove typedef.
478 (set_symbol): Update.
479 * python/py-event.h (event_object): Remove typedef.
480 * python/py-param.c (parmpy_object): Remove typedef.
481 * python/py-instruction.c (struct py_insn_obj): Remove typedef.
482 * python/py-unwind.c (struct pending_frame_object): Remove typedef.
483 (unwind_info_object, struct cached_frame_info): Likewise.
484
485 2020-12-04 Tom Tromey <tromey@adacore.com>
486
487 * value.c (value_internal_function_name): Make return type const.
488 * value.h (value_internal_function_name): Make return type const.
489
490 2020-12-04 Luis Machado <luis.machado@linaro.org>
491
492 * aarch64-tdep.c (submask, bit, bits): Remove.
493 * arch/aarch64-insn.c (extract_signed_bitfield): Remove.
494 (aarch64_decode_adr, aarch64_decode_b aarch64_decode_bcond)
495 (aarch64_decode_cb, aarch64_decode_tb)
496 (aarch64_decode_ldr_literal): Use sbits to extract a signed
497 immediate.
498 * arch/aarch64-insn.h (submask, bits, bit, sbits): New macros.
499
500 2020-12-04 Tom de Vries <tdevries@suse.de>
501
502 PR tdep/27007
503 * i386-tdep.c (i386_16_byte_align_p): Skip static fields.
504
505 2020-12-03 Simon Marchi <simon.marchi@polymtl.ca>
506
507 PR gdb/26876
508 * dwarf2/frame.c (find_comp_unit, set_comp_unit): Reverse use of
509 dwarf2_frame_bfd_data and dwarf2_frame_objfile_data.
510
511 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
512
513 * arch/riscv.c: Include 'rv32e-xregs.c'.
514 (riscv_create_target_description): Update to handle rv32e.
515 * arch/riscv.h (struct riscv_gdbarch_features) <embedded>: New
516 member variable.
517 <operator==>: Update to account for new field.
518 <hash>: Likewise.
519 * features/Makefile (FEATURE_XMLFILES): Add riscv/rv32e-xregs.xml.
520 * features/riscv/rv32e-xregs.c: Generated.
521 * features/riscv/rv32e-xregs.xml: New file.
522 * riscv-tdep.c (riscv_debug_breakpoints): Move from later in the
523 file.
524 (riscv_debug_infcall): Likewise.
525 (riscv_debug_unwinder): Likewise.
526 (riscv_debug_gdbarch): Likewise.
527 (enum riscv_register_required_status): Delete.
528 (struct riscv_register_feature): Add constructor, delete default
529 constructor, copy, and assign constructors.
530 (struct riscv_register_feature::register_info) <required>: Delete.
531 <check>: Update comment and arguments.
532 (struct riscv_register_feature) <name>: Change to member function.
533 <prefer_first_name>: Delete.
534 <tdesc_feature>: New member function.
535 <registers>: Rename to...
536 <m_registers>: ...this.
537 <m_feature_name>: New member variable.
538 (riscv_register_feature::register_info::check): Update arguments.
539 (riscv_xreg_feature): Rewrite as class, create a single static
540 instance of the class.
541 (riscv_freg_feature): Likewise.
542 (riscv_virtual_feature): Likewise.
543 (riscv_csr_feature): Likewise.
544 (riscv_create_csr_aliases): Has become a member function inside
545 riscv_csr_feature class.
546 (riscv_abi_embedded): New function definition.
547 (riscv_register_name): Adjust to use new feature objects.
548 (struct riscv_call_info) <riscv_call_info>: Check for rv32e abi,
549 and adjust available argument registers.
550 (riscv_features_from_gdbarch_info): Check for EF_RISCV_RVE flag.
551 (riscv_check_tdesc_feature): Delete.
552 (riscv_tdesc_unknown_reg): Adjust to use new feature objects.
553 (riscv_gdbarch_init): Delete target description checking code, and
554 instead call to the new feature objects to perform the checks.
555 Reorder handling of no abi information case, allows small code
556 simplification.
557 (_initialize_riscv_tdep): Remove call, this is now done in the
558 riscv_csr_feature constructor.
559 * riscv-tdep.h (riscv_abi_embedded): Declare.
560
561 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
562
563 * riscv-tdep.c (riscv_create_csr_aliases): Remove use of
564 DECLARE_CSR_ALIAS.
565
566 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
567
568 * riscv-tdep.c (riscv_is_unknown_csr): New function,
569 implementation moved from riscv_register_reggroup_p.
570 (riscv_register_reggroup_p): Update group handling for unknown
571 CSRs.
572
573 2020-12-01 Sergio Durigan Junior <sergiodj@sergiodj.net>
574
575 * dwarf2/read.c (dwz_search_other_debugdirs): New function.
576 (dwarf2_get_dwz_file): Convert 'filename' to a
577 std::string. Use dwz_search_other_debugdirs to search for DWZ
578 files in the debug-file-directories provided by the user as well.
579
580 2020-12-01 Tom Tromey <tom@tromey.com>
581
582 * parse.c (expr_builder::expr_builder): Initialize expout.
583 (expr_builder::release): Use expression::resize.
584 (expression::expression, expression::~expression)
585 (expression::resize): New methods.
586 (write_exp_elt): Use expression::resize.
587 (prefixify_expression): Update.
588 (increase_expout_size): Use expression::resize.
589 * expression.h (struct expression): Add constructor, destructor.
590 <resize>: New method.
591 (expression_up): Change type.
592
593 2020-12-01 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
594 * ppc-linux-nat.c: (PPC_DEBUG_FEATURE_DATA_BP_ARCH_31): New define.
595 (region_ok_for_hw_watchpoint): Check if 2nd DAWR is avaliable before
596 set region.
597
598 2020-11-30 Tom de Vries <tdevries@suse.de>
599
600 PR symtab/26905
601 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add and handle
602 is_reference parameter.
603 (dwarf2_evaluate_property): Update dwarf2_locexpr_baton_eval call.
604
605 2020-11-30 Tom Tromey <tom@tromey.com>
606
607 * rust-lang.c (rust_op_name): Remove.
608 (exp_descriptor_rust): Update.
609 * parser-defs.h (op_name_standard): Don't declare.
610 (struct exp_descriptor) <op_name>: Remove.
611 * parse.c (exp_descriptor_standard): Update.
612 * opencl-lang.c (exp_descriptor_opencl): Update.
613 * m2-lang.c (m2_language::exp_descriptor_modula2): Update.
614 * f-lang.c (op_name_f): Remove.
615 (f_language::exp_descriptor_tab): Update.
616 * expression.h (op_name): Update.
617 * expprint.c (op_name): Rewrite.
618 (op_name_standard): Remove.
619 (dump_raw_expression, dump_subexp): Update.
620 * c-lang.c (exp_descriptor_c): Update.
621 * ax-gdb.c (gen_expr): Update.
622 * ada-lang.c (ada_op_name): Remove.
623 (ada_exp_descriptor): Update.
624
625 2020-11-30 Tom Tromey <tom@tromey.com>
626
627 * eval.c (init_array_element): Remove.
628 (evaluate_subexp_standard) <OP_ARRAY>: Remove "index_pc".
629
630 2020-11-29 Hannes Domani <ssbssa@yahoo.de>
631
632 PR tui/26973
633 * tui/tui-layout.c (tui_apply_current_layout): Don't delete the
634 static locator win info.
635
636 2020-11-28 Alex Richardson <Alexander.Richardson@cl.cam.ac.uk>
637
638 * acincludde.m4 (GDB_AC_CHECK_BFD): Include string.h in the test
639 program.
640
641 2020-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
642
643 * printcmd.c (skip_over_slash_fmt): Reorder code to ensure in_fmt
644 is always initialized.
645
646 2020-11-26 Rogerio Alves <rcardoso@linux.ibm.com>
647 * MAINTAINERS (Write After Approval): Add myself.
648
649 2020-11-26 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
650
651 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
652 * features/aarch64-fpu.xml: Add named FPCR and FPSR register bit-fields.
653
654 2020-11-25 Tom Tromey <tom@tromey.com>
655
656 * eval.c (evaluate_subexp_standard): Remove unnecessary
657 variables.
658
659 2020-11-25 Tom Tromey <tom@tromey.com>
660
661 * d-lang.c: Include parser-defs.h.
662 * rust-lang.c: Include parser-defs.h.
663 * c-lang.h: Do not include parser-defs.h.
664
665 2020-11-24 Simon Marchi <simon.marchi@polymtl.ca>
666
667 * regcache.h (struct cached_reg): Remove typedef.
668
669 2020-11-24 Joel Brobecker <brobecker@adacore.com>
670
671 * README: Fix the URL of the MPFR library.
672
673 2020-11-24 Joel Brobecker <brobecker@adacore.com>
674
675 * README: Document the --with-libgmp-prefix configure option.
676
677 2020-11-24 Joel Brobecker <brobecker@adacore.com>
678
679 * NEWS: Add entry documenting support for DWARF-based fixed
680 point types.
681
682 2020-11-24 Joel Brobecker <brobecker@adacore.com>
683
684 * NEWS: Document that building GDB now requires GMP.
685
686 2020-11-24 Joel Brobecker <brobecker@adacore.com>
687
688 * typeprint.c (print_type_scalar): Add handling of
689 TYPE_CODE_FIXED_POINT.
690
691 2020-11-24 Joel Brobecker <brobecker@adacore.com>
692
693 * valarith.c (fixed_point_binop): Replace the
694 INIT_VAL_WITH_FIXED_POINT_VAL macro by a lambda. Update all
695 users accordingly.
696
697 2020-11-24 Joel Brobecker <brobecker@adacore.com>
698
699 * gdbtypes.h (struct type) <fixed_point_scaling_factor>: New method,
700 replacing fixed_point_scaling_factor. All callers updated
701 throughout this project.
702 (fixed_point_scaling_factor): Delete declaration.
703 * gdbtypes.c (type::fixed_point_scaling_factor): Replaces
704 fixed_point_scaling_factor. Adjust implementation accordingly.
705
706 2020-11-24 Joel Brobecker <brobecker@adacore.com>
707
708 * gdbtypes.h (struct type) <fixed_point_type_base_type> New method,
709 replacing the fixed_point_type_base_type function. All callers
710 updated throughout this project.
711 (fixed_point_type_base_type): Remove declaration.
712 * gdbtypes.c (type::fixed_point_type_base_type): Replaces
713 fixed_point_type_base_type. Adjust implementation accordingly.
714
715 2020-11-24 Joel Brobecker <brobecker@adacore.com>
716
717 * gdbtypes.h (struct type) <fixed_point_info, set_fixed_point_info>:
718 New methods.
719 (INIT_FIXED_POINT_SPECIFIC): Adjust.
720 (TYPE_FIXED_POINT_INFO): Delete macro.
721 (allocate_fixed_point_type_info): Change return type to void.
722 * gdbtypes.c (copy_type_recursive): Replace the use of
723 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
724 (fixed_point_scaling_factor): Likewise.
725 (allocate_fixed_point_type_info): Change return type to void.
726 Adjust implementation accordingly.
727 * dwarf2/read.c (finish_fixed_point_type): Replace the use of
728 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
729
730 2020-11-24 Joel Brobecker <brobecker@adacore.com>
731
732 * gmp-utils.h (gdb_mpz::read): Change buf and len parameters
733 into one single gdb::array_view parameter.
734 (gdb_mpz::write): Likewise.
735 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
736 * gmp-utils.c (gdb_mpz::read): Change buf and len parameters
737 into one single gdb::array_view parameter.
738 Adjust implementation accordingly.
739 (gdb_mpz::write): Likewise.
740 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
741 * unittests/gmp-utils-selftests.c: Adapt following changes above.
742 * valarith.c, valops.c, valprint.c, value.c: Likewise.
743
744 2020-11-24 Joel Brobecker <brobecker@adacore.com>
745
746 * gmp-utils.h (gmp_string_printf): Rename from gmp_string_asprintf.
747 Change return type to std::string. Update all callers.
748 * gmp-utils.c (gmp_string_printf): Likewise.
749
750 2020-11-24 Joel Brobecker <brobecker@adacore.com>
751
752 * unittests/gmp-utils-selftests.c (write_fp_test): Use mpq_set_si
753 instead of mpq_set_ui to initialize our GMP rational.
754
755 2020-11-23 Tom de Vries <tdevries@suse.de>
756
757 * debuginfod-support.c (debuginfod_source_query)
758 (debuginfod_debuginfo_query): Only set DESTNAME if successful.
759
760 2020-11-21 Tom Tromey <tom@tromey.com>
761
762 * breakpoint.c (watchpoint_exp_is_const): Return bool.
763
764 2020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
765
766 * unittests/gmp-utils-selftests.c (gdb_mpz_read_all_from_small):
767 Pass 2.0 to pow.
768 (gdb_mpz_write_all_from_small): Likewise.
769
770 2020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
771
772 * dwarf2/read.c (finish_fixed_point_type): Use std::abs instead
773 of abs.
774
775 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
776
777 * ctfread.c (elfctf_build_psymtabs): Use ctf_dict_open, not
778 ctf_arc_open_by_name.
779
780 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
781
782 * ctfread.c: Change uses of ctf_file_t to ctf_dict_t.
783 (ctf_fp_info::~ctf_fp_info): Call ctf_dict_close, not ctf_file_close.
784
785 2020-11-20 Pedro Alves <pedro@palves.net>
786
787 * language.c (language_arch_info::lookup_primitive_type): Use
788 gdb::function_view instead of gdb::function.
789 (template language_lookup_primitive_type): Rename to ...
790 (language_lookup_primitive_type_1): ... this, and make static.
791 (language_lookup_primitive_type(const struct language_defn *,
792 struct gdbarch *, const char *): Make non-template.
793 (language_lookup_primitive_type(const struct language_defn *,
794 struct gdbarch *, std::function<bool (struct type *)>): Make
795 non-template and use gdb::function_view.
796 * language.h (language_arch_info::lookup_primitive_type): Use
797 gdb::function_view instead of std::function.
798 (language_lookup_primitive_type): No longer template.
799 * opencl-lang.c (lookup_opencl_vector_type): 'filter' is now a
800 lambda instead of a std::function.
801
802 2020-11-19 Andreas Arnez <arnez@linux.ibm.com>
803
804 PR tdep/26916
805 * s390-tdep.c (s390_process_record): Fix recording of STOC, STOCG,
806 and STOCFH.
807
808 2020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
809
810 * f-lang.c (fortran_value_subarray): Use plongest/pulongest.
811
812 2020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
813
814 * gdbarch.sh (read_core_file_mappings): Remove `other` parameter
815 in `loop_cb` parameter.
816 * gdbarch.c: Re-generate.
817 * gdbarch.h: Re-generate.
818 * arch-utils.c (default_read_core_file_mappings): Remove `other`
819 parameter.
820 * arch-utils.h (default_read_core_file_mappings): Likewise.
821 * corelow.c (core_target::build_file_mappings): Likewise.
822 * linux-tdep.c (linux_read_core_file_mappings): Likewise.
823 (linux_core_info_proc_mappings): Likewise.
824
825 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
826
827 * Makefile.in (HFILES_NO_SRCDIR): Add f-array-walker.h.
828 * NEWS: Mention new options.
829 * f-array-walker.h: New file.
830 * f-lang.c: Include 'gdbcmd.h' and 'f-array-walker.h'.
831 (repack_array_slices): New static global.
832 (show_repack_array_slices): New function.
833 (fortran_array_slicing_debug): New static global.
834 (show_fortran_array_slicing_debug): New function.
835 (value_f90_subarray): Delete.
836 (skip_undetermined_arglist): Delete.
837 (class fortran_array_repacker_base_impl): New class.
838 (class fortran_lazy_array_repacker_impl): New class.
839 (class fortran_array_repacker_impl): New class.
840 (fortran_value_subarray): Complete rewrite.
841 (set_fortran_list): New static global.
842 (show_fortran_list): Likewise.
843 (_initialize_f_language): Register new commands.
844 (fortran_adjust_dynamic_array_base_address_hack): New function.
845 * f-lang.h (fortran_adjust_dynamic_array_base_address_hack):
846 Declare.
847 * f-valprint.c: Include 'f-array-walker.h'.
848 (class fortran_array_printer_impl): New class.
849 (f77_print_array_1): Delete.
850 (f77_print_array): Delete.
851 (fortran_print_array): New.
852 (f_value_print_inner): Update to call fortran_print_array.
853 * gdbtypes.c: Include 'f-lang.h'.
854 (resolve_dynamic_type_internal): Call
855 fortran_adjust_dynamic_array_base_address_hack.
856
857 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
858
859 * breakpoint.c (struct watch_options): New struct.
860 (watch_option_defs): New static global.
861 (make_watch_options_def_group): New function.
862 (watch_maybe_just_location): Convert option parsing.
863 (watch_command_completer): New function.
864 (_initialize_breakpoint): Build help text using options mechanism.
865
866 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
867
868 * breakpoint.c (update_watchpoint): Pass 'false' not '0'.
869 (watch_command_1): Update parameter types. Convert locals to
870 bool.
871 (watch_command_wrapper): Change parameter type.
872 (watch_maybe_just_location): Change locals to bool.
873 (rwatch_command_wrapper): Update parameter type.
874 (awatch_command_wrapper): Update parameter type.
875 * breakpoint.h (watch_command_wrapper): Change parameter type.
876 (rwatch_command_wrapper): Update parameter type.
877 (awatch_command_wrapper): Update parameter type.
878 * eval.c (fetch_subexp_value): Change parameter type.
879 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition): Pass
880 'false' not '0'.
881 * value.h (fetch_subexp_value): Change parameter type in
882 declaration.
883
884 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
885
886 * printcmd.c (skip_over_slash_fmt): Make use of skip_to_space and
887 skip_spaces.
888
889 2020-11-18 Keith Seitz <keiths@redhat.com>
890
891 * linux-tdep.c (dump_note_entry_p): Return true instead of
892 checking `filename'.
893
894 2020-11-18 Tom de Vries <tdevries@suse.de>
895
896 * debuginfod-support.c (debuginfod_source_query)
897 (debuginfod_debuginfo_query): Also do early exit if
898 "(getenv (DEBUGINFOD_URLS_ENV_VAR))[0] == '\0'".
899
900 2020-11-18 Tom de Vries <tdevries@suse.de>
901
902 * gdbtypes.c (update_static_array_size): Fix -Werror=bool-compare
903 warning.
904
905 2020-11-17 Simon Marchi <simon.marchi@polymtl.ca>
906
907 * gdbtypes.h (get_array_bounds): Return bool, adjust some
908 callers. Move doc here.
909 * gdbtypes.c (get_array_bounds): Return bool
910
911 2020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
912
913 * arc-linux-tdep.c (arc_linux_sw_breakpoint_from_kind): Add an
914 assert.
915 * arc-tdep.c (arc_breakpoint_kind_from_pc): Likewise.
916 * disasm-selftests.c (print_one_insn_test): Fall throough from ARC
917 case to the default.
918
919 2020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
920
921 * printcmd.c: Include 'safe-ctype.c'.
922 (skip_over_slash_fmt): New function.
923 (print_command_completer): Call skip_over_slash_fmt.
924 (display_and_x_command_completer): New function.
925 (_initialize_printcmd): Add command completion for 'x' and
926 'display'.
927
928 2020-11-16 Pedro Alves <pedro@palves.net>
929
930 * frame.c (get_prev_frame): Move get_frame_id call from here ...
931 (get_prev_frame_always_1): ... to here.
932 * inline-frame.c (inline_frame_this_id): Mention
933 get_prev_frame_always_1 in comment.
934
935 2020-11-15 Joel Brobecker <brobecker@adacore.com>
936
937 * valarith.c (fixed_point_binop): Add BINOP_EQUAL and BINOP_LESS
938 handling.
939 (value_less): Add fixed-point handling.
940
941 2020-11-15 Joel Brobecker <brobecker@adacore.com>
942
943 * eval.c (binop_promote): Add fixed-point type handling.
944 * valarith.c (fixed_point_binop): New function.
945 (scalar_binop): Add fixed-point type handling.
946 (value_neg): Add fixed-point type handling.
947 * valops.c (value_cast_to_fixed_point): New function.
948 (value_cast): Add fixed-point type handling.
949
950 2020-11-15 Joel Brobecker <brobecker@adacore.com>
951
952 * ada-typeprint.c (ada_print_type): Add handing of fixed-point
953 range types.
954 * c-typeprint.c (c_type_print_varspec_prefix)
955 (c_type_print_varspec_suffix, c_type_print_base_1): Add
956 TYPE_CODE_FIXED_POINT handling.
957 * p-typeprint.c (pascal_type_print_varspec_prefix)
958 (pascal_type_print_varspec_suffix): Likewise.
959 * typeprint.c (print_type_fixed_point): New function.
960 * typeprint.h (print_type_fixed_point): Add declaration.
961
962 2020-11-15 Joel Brobecker <brobecker@adacore.com>
963
964 * printcmd.c (print_scalar_formatted): Add fixed-point type
965 handling when options->format is set.
966
967 2020-11-15 Joel Brobecker <brobecker@adacore.com>
968
969 * ada-valprint.c (ada_value_print_1): Add fixed-point type handling.
970 * dwarf2/read.c (get_dwarf2_rational_constant)
971 (get_dwarf2_unsigned_rational_constant, finish_fixed_point_type)
972 (has_zero_over_zero_small_attribute): New functions.
973 read_base_type, set_die_type): Add fixed-point type handling.
974 * gdb-gdb.py.in: Add fixed-point type handling.
975 * gdbtypes.c: #include "gmp-utils.h".
976 (create_range_type, set_type_code): Add fixed-point type handling.
977 (init_fixed_point_type): New function.
978 (is_integral_type, is_scalar_type): Add fixed-point type handling.
979 (print_fixed_point_type_info): New function.
980 (recursive_dump_type, copy_type_recursive): Add fixed-point type
981 handling.
982 (fixed_point_type_storage): New typedef.
983 (fixed_point_objfile_key): New static global.
984 (allocate_fixed_point_type_info, is_fixed_point_type): New functions.
985 (fixed_point_type_base_type, fixed_point_scaling_factor): New
986 functions.
987 * gdbtypes.h: #include "gmp-utils.h".
988 (enum type_code) <TYPE_SPECIFIC_FIXED_POINT>: New enum.
989 (union type_specific) <fixed_point_info>: New field.
990 (struct fixed_point_type_info): New struct.
991 (INIT_FIXED_POINT_SPECIFIC, TYPE_FIXED_POINT_INFO): New macros.
992 (init_fixed_point_type, is_fixed_point_type)
993 (fixed_point_type_base_type, fixed_point_scaling_factor)
994 (allocate_fixed_point_type_info): Add declarations.
995 * valprint.c (generic_val_print_fixed_point): New function.
996 (generic_value_print): Add fixed-point type handling.
997 * value.c (value_as_address, unpack_long): Add fixed-point type
998 handling.
999
1000 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1001
1002 * utils.h (uinteger_pow): Add declaration.
1003 * utils.c (uinteger_pow): Moved here (without changes)...
1004 * valarith.c (uinteger_pow): ... from here.
1005
1006 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1007
1008 * gmp-utils.h, gmp-utils.c: New file.
1009 * unittests/gmp-utils-selftests.c: New file.
1010 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1011 unittests/gmp-utils-selftests.c.
1012 (COMMON_SFILES) Add gmp-utils.c.
1013 (HFILES_NO_SRCDIR): Add gmp-utils.h.
1014
1015 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1016
1017 * configure.ac: Generate an error if a usable GMP library
1018 could not be found.
1019 * configure: Regenerate.
1020
1021 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1022
1023 * configure.ac: Add support for --with-libgmp-prefix.
1024 * Makefile.in (LIBGMP): New variable.
1025 (CLIBS): Include $(LIBGMP).
1026 * configure, config.in: Regenerate
1027
1028 2020-11-14 Andrew Burgess <andrew.burgess@embecosm.com>
1029
1030 PR cli/26879
1031 * f-exp.y (COMPLETE): New token.
1032 (exp): Two new rules for tab-completion.
1033 (saw_name_at_eof): New static global.
1034 (last_was_structop): Likewise.
1035 (yylex): Set new variables, and return COMPLETE token at the end
1036 of the input stream in some cases.
1037
1038 2020-11-14 Tom Tromey <tom@tromey.com>
1039
1040 * infrun.c (fetch_inferior_event): Use "bool" for should_stop.
1041
1042 2020-11-14 Tom Tromey <tom@tromey.com>
1043
1044 * opencl-lang.c (opencl_component_ref): Make "comps" const.
1045
1046 2020-11-14 Simon Marchi <simon.marchi@polymtl.ca>
1047
1048 * arm-tdep.c (class arm_instruction_reader) <read>: Fix comment.
1049
1050 2020-11-13 Tom Tromey <tom@tromey.com>
1051
1052 * c-lang.c (convert_ucn, convert_octal, convert_hex)
1053 (convert_escape, parse_one_string): Constify.
1054
1055 2020-11-13 Keith Seitz <keiths@redhat.com>
1056
1057 https://bugzilla.redhat.com/show_bug.cgi?id=1553086
1058 * elfread.c (elf_symfile_segments): Omit "Loadable section ...
1059 outside of ELF segments" warning for debugin
1060
1061 2020-11-13 Keith Seitz <keiths@redhat.com>
1062
1063 PR gdb/23034
1064 * elfread.c (elf_symfile_segments): Output a BFD file name
1065 for the "Loadable section ... outside of ELF segments" warning.
1066
1067 2020-11-13 Simon Marchi <simon.marchi@polymtl.ca>
1068
1069 PR gdb/26835
1070 * arm-tdep.c (class arm_instruction_reader): New.
1071 (target_arm_instruction_reader): New.
1072 (arm_analyze_prologue): Add instruction reader parameter and use
1073 it. Use arm_expand_immediate.
1074 (class target_arm_instruction_reader): Adjust.
1075 (arm_skip_prologue): Adjust.
1076 (arm_expand_immediate): New.
1077 (arm_scan_prologue): Adjust.
1078 (arm_analyze_prologue_test): New.
1079 (class test_arm_instruction_reader): New.
1080
1081 2020-11-13 Andrew Burgess <andrew.burgess@embecosm.com>
1082
1083 * f-lang.c (fortran_argument_convert): Add declaration. Add
1084 header comment, taken from f-lang.h. Make static.
1085 * f-lang.h (f77_get_dynamic_array_length): Delete declaration.
1086 (fortran_argument_convert): Delete declaration.
1087
1088 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1089
1090 * ada-exp.y (find_primitive_type): Make parameter const.
1091 * ada-lang.c (enum ada_primitive_types): Delete.
1092 (ada_language::language_arch_info): Update.
1093 * c-lang.c (enum c_primitive_types): Delete.
1094 (c_language_arch_info): Update.
1095 (enum cplus_primitive_types): Delete.
1096 (cplus_language::language_arch_info): Update.
1097 * d-lang.c (enum d_primitive_types): Delete.
1098 (d_language::language_arch_info): Update.
1099 * f-lang.c (enum f_primitive_types): Delete.
1100 (f_language::language_arch_info): Update.
1101 * go-lang.c (enum go_primitive_types): Delete.
1102 (go_language::language_arch_info): Update.
1103 * language.c (auto_or_unknown_language::language_arch_info):
1104 Update.
1105 (language_gdbarch_post_init): Use obstack_new, use array indexing.
1106 (language_string_char_type): Add header comment, call function in
1107 language_arch_info.
1108 (language_bool_type): Likewise
1109 (language_arch_info::bool_type): Define.
1110 (language_lookup_primitive_type_1): Delete.
1111 (language_lookup_primitive_type): Rewrite as a templated function
1112 to call function in language_arch_info, then instantiate twice.
1113 (language_arch_info::type_and_symbol::alloc_type_symbol): Define.
1114 (language_arch_info::lookup_primitive_type_and_symbol): Define.
1115 (language_arch_info::lookup_primitive_type): Define twice with
1116 different signatures.
1117 (language_arch_info::lookup_primitive_type_as_symbol): Define.
1118 (language_lookup_primitive_type_as_symbol): Rewrite to call a
1119 member function in language_arch_info.
1120 * language.h (language_arch_info): Complete rewrite.
1121 (language_lookup_primitive_type): Make templated.
1122 * m2-lang.c (enum m2_primitive_types): Delete.
1123 (m2_language::language_arch_info): Update.
1124 * opencl-lang.c (OCL_P_TYPE): Delete.
1125 (enum opencl_primitive_types): Delete.
1126 (opencl_type_data): Delete.
1127 (builtin_opencl_type): Delete.
1128 (lookup_opencl_vector_type): Update.
1129 (opencl_language::language_arch_info): Update, lots of content
1130 moved from...
1131 (build_opencl_types): ...here. This function is now deleted.
1132 (_initialize_opencl_language): Delete.
1133 * p-lang.c (enum pascal_primitive_types): Delete.
1134 (pascal_language::language_arch_info): Update.
1135 * rust-lang.c (enum rust_primitive_types): Delete.
1136 (rust_language::language_arch_info): Update.
1137
1138 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1139
1140 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix call to
1141 dwarf2_queue_guard.
1142
1143 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1144
1145 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix typo in
1146 comment.
1147
1148 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1149
1150 * dwarf2/read.c (dwarf_read_debug_printf,
1151 dwarf_read_debug_printf_v): New macros, use throughout the file.
1152
1153 2020-11-12 Shahab Vahedi <shahab@synopsys.com>
1154
1155 PR tdep/27015
1156 * arc-linux-tdep.c (collect_register): Populate "eret" by
1157 "pc" value from the regcache when asked for "pc" value.
1158
1159 2020-11-12 Tom Tromey <tom@tromey.com>
1160
1161 PR rust/26799:
1162 * symtab.c (find_symbol_at_address): Search symtabs if no psymtabs
1163 exist.
1164
1165 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1166
1167 * features/Makefile (XMLTOC): Add rx.xml.
1168 (FEATURE_XMLFILES): Remove rx.xml.
1169 (FEATURE_CFILES rule): Pass '-single-feature' flag.
1170 * features/rx.c: Regenerate.
1171 * features/rx.xml: Wrap in `target` tags, and reindent.
1172 * target-descriptions.c (struct maint_print_c_tdesc_options): New
1173 structure.
1174 (maint_print_c_tdesc_opt_def): New typedef.
1175 (maint_print_c_tdesc_opt_defs): New static global.
1176 (make_maint_print_c_tdesc_options_def_group): New function.
1177 (maint_print_c_tdesc_cmd): Make use of command line flags, only
1178 print single feature C file for target descriptions containing a
1179 single feature.
1180 (maint_print_c_tdesc_cmd_completer): New function.
1181 (_initialize_target_descriptions): Update call to register command
1182 completer, and include command line flag in help text.
1183
1184 2020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
1185
1186 * riscv-tdep.c (riscv_dwarf_reg_to_regnum): Decode DWARF CSR
1187 numbers.
1188 * riscv-tdep.h (RISCV_DWARF_FIRST_CSR, RISCV_DWARF_LAST_CSR): New
1189 enum values.
1190
1191 2020-11-10 Tom Tromey <tom@tromey.com>
1192
1193 * value.h (internalvar_name): Update.
1194 * value.c (internalvar_name): Make return type const.
1195
1196 2020-11-10 Tom Tromey <tom@tromey.com>
1197
1198 * ax-gdb.c (gen_struct_elt_for_reference, gen_namespace_elt)
1199 (gen_maybe_namespace_elt, gen_aggregate_elt_ref, gen_expr): Use
1200 const.
1201
1202 2020-11-10 Tom Tromey <tom@tromey.com>
1203
1204 * objc-lang.h (value_nsstring): Update.
1205 * objc-lang.c (value_nsstring): Make "ptr" const.
1206
1207 2020-11-06 Andrew Burgess <andrew.burgess@embecosm.com>
1208
1209 * expprint.c (print_subexp_funcall): Increment expression position
1210 after reading argument count.
1211 * f-lang.c (print_subexp_f): Skip over opcode before calling
1212 common function.
1213 (dump_subexp_body_f): Likewise.
1214
1215 2020-11-06 Romain Geissler <romain.geissler@amadeus.com>
1216
1217 PR python/26832
1218 * configure: Regenerate.
1219 * configure.ac: Check for python modules ctypes instead of
1220 itertools.
1221
1222 2020-11-06 Pedro Alves <pedro@palves.net>
1223
1224 * macroexp.c (struct macro_buffer): Split in two classes. Add
1225 uses adjusted.
1226 (struct shared_macro_buffer): New, factored out from struct
1227 macro_buffer.
1228 (struct growable_macro_buffer): New, factored out from struct
1229 macro_buffer.
1230 (set_token, get_comment, get_identifier, get_pp_number)
1231 (get_character_constant, get_string_literal, get_punctuator)
1232 (get_next_token_for_substitution): Constify parameters.
1233 (substitute_args): Constify locals.
1234
1235 2020-11-05 Tom Tromey <tom@tromey.com>
1236
1237 * dwarf2/read.c (read_cutu_die_from_dwo)
1238 (cutu_reader::cutu_reader, cutu_reader::cutu_reader)
1239 (build_type_psymtabs_1): Update.
1240 * dwarf2/abbrev.h (struct abbrev_table): Remove objfile
1241 parameter.
1242 * dwarf2/abbrev.c (abbrev_table::read): Remove objfile parameter.
1243 Don't read section. Add assert.
1244
1245 2020-11-04 Tom Tromey <tromey@adacore.com>
1246
1247 * ada-typeprint.c (ada_print_type): Handle __XVL fields.
1248
1249 2020-11-04 Tom Tromey <tromey@adacore.com>
1250
1251 * ada-typeprint.c (ada_print_type): Handle __T types.
1252
1253 2020-11-04 Tom Tromey <tromey@adacore.com>
1254
1255 * dwarf2/read.c (add_partial_symbol, process_die):
1256 Handle DW_TAG_array_type.
1257 (is_type_tag_for_partial): Add "lang" parameter.
1258 (load_partial_dies, new_symbol): Handle DW_TAG_array_type.
1259
1260 2020-11-04 Tom Tromey <tromey@adacore.com>
1261
1262 * ada-lang.c (ada_value_slice_from_ptr): Use bit size.
1263
1264 2020-11-04 Tom Tromey <tromey@adacore.com>
1265
1266 * dwarf2/read.c (read_array_type): Only apply stride to innermost
1267 array.
1268
1269 2020-11-04 Tom Tromey <tromey@adacore.com>
1270
1271 * gdbtypes.c (update_static_array_size): Handle bit stride.
1272
1273 2020-11-04 Tom Tromey <tromey@adacore.com>
1274
1275 * ada-lang.c (ada_value_struct_elt): Resolve dynamic type.
1276
1277 2020-11-04 Tom Tromey <tromey@adacore.com>
1278
1279 * ada-lang.c (ada_is_any_packed_array_type): New function.
1280 (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it.
1281
1282 2020-11-04 Tom Tromey <tromey@adacore.com>
1283
1284 * dwarf2/read.c (recognize_bound_expression)
1285 (quirk_ada_thick_pointer): New functions.
1286 (read_array_type): Call quirk_ada_thick_pointer.
1287 (set_die_type): Add "skip_data_location" parameter.
1288 (quirk_ada_thick_pointer): New function.
1289 (process_structure_scope): Call quirk_ada_thick_pointer.
1290 * ada-lang.c (ada_is_unconstrained_packed_array_type)
1291 (decode_packed_array_bitsize): Handle thick pointers without
1292 parallel types.
1293 (ada_is_gnat_encoded_packed_array_type): Rename from
1294 ada_is_packed_array_type.
1295 (ada_is_constrained_packed_array_type): Update.
1296 * ada-valprint.c (ada_val_print_gnat_array): Remove.
1297 (ada_value_print_1): Use ada_get_decoded_value.
1298
1299 2020-11-04 Tom Tromey <tromey@adacore.com>
1300
1301 * ada-lang.c (recursively_update_array_bitsize): New function.
1302 (decode_constrained_packed_array_type): Call it.
1303
1304 2020-11-04 Tom Tromey <tromey@adacore.com>
1305
1306 * ada-lang.c (to_fixed_array_type): Error if
1307 decode_constrained_packed_array_type returns NULL.
1308
1309 2020-11-04 Tom Tromey <tromey@adacore.com>
1310
1311 * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
1312
1313 2020-11-02 Tom Tromey <tromey@adacore.com>
1314
1315 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
1316 (ALLDEPFILES): Add amd64-ravenscar-thread.c.
1317 (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
1318 * amd64-ravenscar-thread.c: New file.
1319 * amd64-ravenscar-thread.h: New file.
1320 * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
1321 * configure.tgt (amd64_tobjs): Add ravenscar objects.
1322
1323 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1324
1325 * main.c (execute_cmdargs): New function.
1326 (captured_main_1): Make use of execute_cmdargs.
1327
1328 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1329
1330 * NEWS: Mention changes to config file search path.
1331 * main.c
1332
1333 2020-11-02 Tom Tromey <tromey@adacore.com>
1334
1335 * python/python.c: Consolidate two HAVE_PYTHON blocks.
1336 (python_GdbModuleDef): Move earlier. Now static.
1337 (do_start_initialization): Consolidate some IS_PY3K blocks.
1338
1339 2020-11-02 Simon Marchi <simon.marchi@efficios.com>
1340
1341 * aarch64-linux-tdep.c: Fix indentation.
1342 * aarch64-ravenscar-thread.c: Fix indentation.
1343 * aarch64-tdep.c: Fix indentation.
1344 * aarch64-tdep.h: Fix indentation.
1345 * ada-lang.c: Fix indentation.
1346 * ada-lang.h: Fix indentation.
1347 * ada-tasks.c: Fix indentation.
1348 * ada-typeprint.c: Fix indentation.
1349 * ada-valprint.c: Fix indentation.
1350 * ada-varobj.c: Fix indentation.
1351 * addrmap.c: Fix indentation.
1352 * addrmap.h: Fix indentation.
1353 * agent.c: Fix indentation.
1354 * aix-thread.c: Fix indentation.
1355 * alpha-bsd-nat.c: Fix indentation.
1356 * alpha-linux-tdep.c: Fix indentation.
1357 * alpha-mdebug-tdep.c: Fix indentation.
1358 * alpha-nbsd-tdep.c: Fix indentation.
1359 * alpha-obsd-tdep.c: Fix indentation.
1360 * alpha-tdep.c: Fix indentation.
1361 * amd64-bsd-nat.c: Fix indentation.
1362 * amd64-darwin-tdep.c: Fix indentation.
1363 * amd64-linux-nat.c: Fix indentation.
1364 * amd64-linux-tdep.c: Fix indentation.
1365 * amd64-nat.c: Fix indentation.
1366 * amd64-obsd-tdep.c: Fix indentation.
1367 * amd64-tdep.c: Fix indentation.
1368 * amd64-windows-tdep.c: Fix indentation.
1369 * annotate.c: Fix indentation.
1370 * arc-tdep.c: Fix indentation.
1371 * arch-utils.c: Fix indentation.
1372 * arch/arm-get-next-pcs.c: Fix indentation.
1373 * arch/arm.c: Fix indentation.
1374 * arm-linux-nat.c: Fix indentation.
1375 * arm-linux-tdep.c: Fix indentation.
1376 * arm-nbsd-tdep.c: Fix indentation.
1377 * arm-pikeos-tdep.c: Fix indentation.
1378 * arm-tdep.c: Fix indentation.
1379 * arm-tdep.h: Fix indentation.
1380 * arm-wince-tdep.c: Fix indentation.
1381 * auto-load.c: Fix indentation.
1382 * auxv.c: Fix indentation.
1383 * avr-tdep.c: Fix indentation.
1384 * ax-gdb.c: Fix indentation.
1385 * ax-general.c: Fix indentation.
1386 * bfin-linux-tdep.c: Fix indentation.
1387 * block.c: Fix indentation.
1388 * block.h: Fix indentation.
1389 * blockframe.c: Fix indentation.
1390 * bpf-tdep.c: Fix indentation.
1391 * break-catch-sig.c: Fix indentation.
1392 * break-catch-syscall.c: Fix indentation.
1393 * break-catch-throw.c: Fix indentation.
1394 * breakpoint.c: Fix indentation.
1395 * breakpoint.h: Fix indentation.
1396 * bsd-uthread.c: Fix indentation.
1397 * btrace.c: Fix indentation.
1398 * build-id.c: Fix indentation.
1399 * buildsym-legacy.h: Fix indentation.
1400 * buildsym.c: Fix indentation.
1401 * c-typeprint.c: Fix indentation.
1402 * c-valprint.c: Fix indentation.
1403 * c-varobj.c: Fix indentation.
1404 * charset.c: Fix indentation.
1405 * cli/cli-cmds.c: Fix indentation.
1406 * cli/cli-decode.c: Fix indentation.
1407 * cli/cli-decode.h: Fix indentation.
1408 * cli/cli-script.c: Fix indentation.
1409 * cli/cli-setshow.c: Fix indentation.
1410 * coff-pe-read.c: Fix indentation.
1411 * coffread.c: Fix indentation.
1412 * compile/compile-cplus-types.c: Fix indentation.
1413 * compile/compile-object-load.c: Fix indentation.
1414 * compile/compile-object-run.c: Fix indentation.
1415 * completer.c: Fix indentation.
1416 * corefile.c: Fix indentation.
1417 * corelow.c: Fix indentation.
1418 * cp-abi.h: Fix indentation.
1419 * cp-namespace.c: Fix indentation.
1420 * cp-support.c: Fix indentation.
1421 * cp-valprint.c: Fix indentation.
1422 * cris-linux-tdep.c: Fix indentation.
1423 * cris-tdep.c: Fix indentation.
1424 * darwin-nat-info.c: Fix indentation.
1425 * darwin-nat.c: Fix indentation.
1426 * darwin-nat.h: Fix indentation.
1427 * dbxread.c: Fix indentation.
1428 * dcache.c: Fix indentation.
1429 * disasm.c: Fix indentation.
1430 * dtrace-probe.c: Fix indentation.
1431 * dwarf2/abbrev.c: Fix indentation.
1432 * dwarf2/attribute.c: Fix indentation.
1433 * dwarf2/expr.c: Fix indentation.
1434 * dwarf2/frame.c: Fix indentation.
1435 * dwarf2/index-cache.c: Fix indentation.
1436 * dwarf2/index-write.c: Fix indentation.
1437 * dwarf2/line-header.c: Fix indentation.
1438 * dwarf2/loc.c: Fix indentation.
1439 * dwarf2/macro.c: Fix indentation.
1440 * dwarf2/read.c: Fix indentation.
1441 * dwarf2/read.h: Fix indentation.
1442 * elfread.c: Fix indentation.
1443 * eval.c: Fix indentation.
1444 * event-top.c: Fix indentation.
1445 * exec.c: Fix indentation.
1446 * exec.h: Fix indentation.
1447 * expprint.c: Fix indentation.
1448 * f-lang.c: Fix indentation.
1449 * f-typeprint.c: Fix indentation.
1450 * f-valprint.c: Fix indentation.
1451 * fbsd-nat.c: Fix indentation.
1452 * fbsd-tdep.c: Fix indentation.
1453 * findvar.c: Fix indentation.
1454 * fork-child.c: Fix indentation.
1455 * frame-unwind.c: Fix indentation.
1456 * frame-unwind.h: Fix indentation.
1457 * frame.c: Fix indentation.
1458 * frv-linux-tdep.c: Fix indentation.
1459 * frv-tdep.c: Fix indentation.
1460 * frv-tdep.h: Fix indentation.
1461 * ft32-tdep.c: Fix indentation.
1462 * gcore.c: Fix indentation.
1463 * gdb_bfd.c: Fix indentation.
1464 * gdbarch.sh: Fix indentation.
1465 * gdbarch.c: Re-generate
1466 * gdbarch.h: Re-generate.
1467 * gdbcore.h: Fix indentation.
1468 * gdbthread.h: Fix indentation.
1469 * gdbtypes.c: Fix indentation.
1470 * gdbtypes.h: Fix indentation.
1471 * glibc-tdep.c: Fix indentation.
1472 * gnu-nat.c: Fix indentation.
1473 * gnu-nat.h: Fix indentation.
1474 * gnu-v2-abi.c: Fix indentation.
1475 * gnu-v3-abi.c: Fix indentation.
1476 * go32-nat.c: Fix indentation.
1477 * guile/guile-internal.h: Fix indentation.
1478 * guile/scm-cmd.c: Fix indentation.
1479 * guile/scm-frame.c: Fix indentation.
1480 * guile/scm-iterator.c: Fix indentation.
1481 * guile/scm-math.c: Fix indentation.
1482 * guile/scm-ports.c: Fix indentation.
1483 * guile/scm-pretty-print.c: Fix indentation.
1484 * guile/scm-value.c: Fix indentation.
1485 * h8300-tdep.c: Fix indentation.
1486 * hppa-linux-nat.c: Fix indentation.
1487 * hppa-linux-tdep.c: Fix indentation.
1488 * hppa-nbsd-nat.c: Fix indentation.
1489 * hppa-nbsd-tdep.c: Fix indentation.
1490 * hppa-obsd-nat.c: Fix indentation.
1491 * hppa-tdep.c: Fix indentation.
1492 * hppa-tdep.h: Fix indentation.
1493 * i386-bsd-nat.c: Fix indentation.
1494 * i386-darwin-nat.c: Fix indentation.
1495 * i386-darwin-tdep.c: Fix indentation.
1496 * i386-dicos-tdep.c: Fix indentation.
1497 * i386-gnu-nat.c: Fix indentation.
1498 * i386-linux-nat.c: Fix indentation.
1499 * i386-linux-tdep.c: Fix indentation.
1500 * i386-nto-tdep.c: Fix indentation.
1501 * i386-obsd-tdep.c: Fix indentation.
1502 * i386-sol2-nat.c: Fix indentation.
1503 * i386-tdep.c: Fix indentation.
1504 * i386-tdep.h: Fix indentation.
1505 * i386-windows-tdep.c: Fix indentation.
1506 * i387-tdep.c: Fix indentation.
1507 * i387-tdep.h: Fix indentation.
1508 * ia64-libunwind-tdep.c: Fix indentation.
1509 * ia64-libunwind-tdep.h: Fix indentation.
1510 * ia64-linux-nat.c: Fix indentation.
1511 * ia64-linux-tdep.c: Fix indentation.
1512 * ia64-tdep.c: Fix indentation.
1513 * ia64-tdep.h: Fix indentation.
1514 * ia64-vms-tdep.c: Fix indentation.
1515 * infcall.c: Fix indentation.
1516 * infcmd.c: Fix indentation.
1517 * inferior.c: Fix indentation.
1518 * infrun.c: Fix indentation.
1519 * iq2000-tdep.c: Fix indentation.
1520 * language.c: Fix indentation.
1521 * linespec.c: Fix indentation.
1522 * linux-fork.c: Fix indentation.
1523 * linux-nat.c: Fix indentation.
1524 * linux-tdep.c: Fix indentation.
1525 * linux-thread-db.c: Fix indentation.
1526 * lm32-tdep.c: Fix indentation.
1527 * m2-lang.c: Fix indentation.
1528 * m2-typeprint.c: Fix indentation.
1529 * m2-valprint.c: Fix indentation.
1530 * m32c-tdep.c: Fix indentation.
1531 * m32r-linux-tdep.c: Fix indentation.
1532 * m32r-tdep.c: Fix indentation.
1533 * m68hc11-tdep.c: Fix indentation.
1534 * m68k-bsd-nat.c: Fix indentation.
1535 * m68k-linux-nat.c: Fix indentation.
1536 * m68k-linux-tdep.c: Fix indentation.
1537 * m68k-tdep.c: Fix indentation.
1538 * machoread.c: Fix indentation.
1539 * macrocmd.c: Fix indentation.
1540 * macroexp.c: Fix indentation.
1541 * macroscope.c: Fix indentation.
1542 * macrotab.c: Fix indentation.
1543 * macrotab.h: Fix indentation.
1544 * main.c: Fix indentation.
1545 * mdebugread.c: Fix indentation.
1546 * mep-tdep.c: Fix indentation.
1547 * mi/mi-cmd-catch.c: Fix indentation.
1548 * mi/mi-cmd-disas.c: Fix indentation.
1549 * mi/mi-cmd-env.c: Fix indentation.
1550 * mi/mi-cmd-stack.c: Fix indentation.
1551 * mi/mi-cmd-var.c: Fix indentation.
1552 * mi/mi-cmds.c: Fix indentation.
1553 * mi/mi-main.c: Fix indentation.
1554 * mi/mi-parse.c: Fix indentation.
1555 * microblaze-tdep.c: Fix indentation.
1556 * minidebug.c: Fix indentation.
1557 * minsyms.c: Fix indentation.
1558 * mips-linux-nat.c: Fix indentation.
1559 * mips-linux-tdep.c: Fix indentation.
1560 * mips-nbsd-tdep.c: Fix indentation.
1561 * mips-tdep.c: Fix indentation.
1562 * mn10300-linux-tdep.c: Fix indentation.
1563 * mn10300-tdep.c: Fix indentation.
1564 * moxie-tdep.c: Fix indentation.
1565 * msp430-tdep.c: Fix indentation.
1566 * namespace.h: Fix indentation.
1567 * nat/fork-inferior.c: Fix indentation.
1568 * nat/gdb_ptrace.h: Fix indentation.
1569 * nat/linux-namespaces.c: Fix indentation.
1570 * nat/linux-osdata.c: Fix indentation.
1571 * nat/netbsd-nat.c: Fix indentation.
1572 * nat/x86-dregs.c: Fix indentation.
1573 * nbsd-nat.c: Fix indentation.
1574 * nbsd-tdep.c: Fix indentation.
1575 * nios2-linux-tdep.c: Fix indentation.
1576 * nios2-tdep.c: Fix indentation.
1577 * nto-procfs.c: Fix indentation.
1578 * nto-tdep.c: Fix indentation.
1579 * objfiles.c: Fix indentation.
1580 * objfiles.h: Fix indentation.
1581 * opencl-lang.c: Fix indentation.
1582 * or1k-tdep.c: Fix indentation.
1583 * osabi.c: Fix indentation.
1584 * osabi.h: Fix indentation.
1585 * osdata.c: Fix indentation.
1586 * p-lang.c: Fix indentation.
1587 * p-typeprint.c: Fix indentation.
1588 * p-valprint.c: Fix indentation.
1589 * parse.c: Fix indentation.
1590 * ppc-linux-nat.c: Fix indentation.
1591 * ppc-linux-tdep.c: Fix indentation.
1592 * ppc-nbsd-nat.c: Fix indentation.
1593 * ppc-nbsd-tdep.c: Fix indentation.
1594 * ppc-obsd-nat.c: Fix indentation.
1595 * ppc-ravenscar-thread.c: Fix indentation.
1596 * ppc-sysv-tdep.c: Fix indentation.
1597 * ppc64-tdep.c: Fix indentation.
1598 * printcmd.c: Fix indentation.
1599 * proc-api.c: Fix indentation.
1600 * producer.c: Fix indentation.
1601 * producer.h: Fix indentation.
1602 * prologue-value.c: Fix indentation.
1603 * prologue-value.h: Fix indentation.
1604 * psymtab.c: Fix indentation.
1605 * python/py-arch.c: Fix indentation.
1606 * python/py-bpevent.c: Fix indentation.
1607 * python/py-event.c: Fix indentation.
1608 * python/py-event.h: Fix indentation.
1609 * python/py-finishbreakpoint.c: Fix indentation.
1610 * python/py-frame.c: Fix indentation.
1611 * python/py-framefilter.c: Fix indentation.
1612 * python/py-inferior.c: Fix indentation.
1613 * python/py-infthread.c: Fix indentation.
1614 * python/py-objfile.c: Fix indentation.
1615 * python/py-prettyprint.c: Fix indentation.
1616 * python/py-registers.c: Fix indentation.
1617 * python/py-signalevent.c: Fix indentation.
1618 * python/py-stopevent.c: Fix indentation.
1619 * python/py-stopevent.h: Fix indentation.
1620 * python/py-threadevent.c: Fix indentation.
1621 * python/py-tui.c: Fix indentation.
1622 * python/py-unwind.c: Fix indentation.
1623 * python/py-value.c: Fix indentation.
1624 * python/py-xmethods.c: Fix indentation.
1625 * python/python-internal.h: Fix indentation.
1626 * python/python.c: Fix indentation.
1627 * ravenscar-thread.c: Fix indentation.
1628 * record-btrace.c: Fix indentation.
1629 * record-full.c: Fix indentation.
1630 * record.c: Fix indentation.
1631 * reggroups.c: Fix indentation.
1632 * regset.h: Fix indentation.
1633 * remote-fileio.c: Fix indentation.
1634 * remote.c: Fix indentation.
1635 * reverse.c: Fix indentation.
1636 * riscv-linux-tdep.c: Fix indentation.
1637 * riscv-ravenscar-thread.c: Fix indentation.
1638 * riscv-tdep.c: Fix indentation.
1639 * rl78-tdep.c: Fix indentation.
1640 * rs6000-aix-tdep.c: Fix indentation.
1641 * rs6000-lynx178-tdep.c: Fix indentation.
1642 * rs6000-nat.c: Fix indentation.
1643 * rs6000-tdep.c: Fix indentation.
1644 * rust-lang.c: Fix indentation.
1645 * rx-tdep.c: Fix indentation.
1646 * s12z-tdep.c: Fix indentation.
1647 * s390-linux-tdep.c: Fix indentation.
1648 * score-tdep.c: Fix indentation.
1649 * ser-base.c: Fix indentation.
1650 * ser-mingw.c: Fix indentation.
1651 * ser-uds.c: Fix indentation.
1652 * ser-unix.c: Fix indentation.
1653 * serial.c: Fix indentation.
1654 * sh-linux-tdep.c: Fix indentation.
1655 * sh-nbsd-tdep.c: Fix indentation.
1656 * sh-tdep.c: Fix indentation.
1657 * skip.c: Fix indentation.
1658 * sol-thread.c: Fix indentation.
1659 * solib-aix.c: Fix indentation.
1660 * solib-darwin.c: Fix indentation.
1661 * solib-frv.c: Fix indentation.
1662 * solib-svr4.c: Fix indentation.
1663 * solib.c: Fix indentation.
1664 * source.c: Fix indentation.
1665 * sparc-linux-tdep.c: Fix indentation.
1666 * sparc-nbsd-tdep.c: Fix indentation.
1667 * sparc-obsd-tdep.c: Fix indentation.
1668 * sparc-ravenscar-thread.c: Fix indentation.
1669 * sparc-tdep.c: Fix indentation.
1670 * sparc64-linux-tdep.c: Fix indentation.
1671 * sparc64-nbsd-tdep.c: Fix indentation.
1672 * sparc64-obsd-tdep.c: Fix indentation.
1673 * sparc64-tdep.c: Fix indentation.
1674 * stabsread.c: Fix indentation.
1675 * stack.c: Fix indentation.
1676 * stap-probe.c: Fix indentation.
1677 * stubs/ia64vms-stub.c: Fix indentation.
1678 * stubs/m32r-stub.c: Fix indentation.
1679 * stubs/m68k-stub.c: Fix indentation.
1680 * stubs/sh-stub.c: Fix indentation.
1681 * stubs/sparc-stub.c: Fix indentation.
1682 * symfile-mem.c: Fix indentation.
1683 * symfile.c: Fix indentation.
1684 * symfile.h: Fix indentation.
1685 * symmisc.c: Fix indentation.
1686 * symtab.c: Fix indentation.
1687 * symtab.h: Fix indentation.
1688 * target-float.c: Fix indentation.
1689 * target.c: Fix indentation.
1690 * target.h: Fix indentation.
1691 * tic6x-tdep.c: Fix indentation.
1692 * tilegx-linux-tdep.c: Fix indentation.
1693 * tilegx-tdep.c: Fix indentation.
1694 * top.c: Fix indentation.
1695 * tracefile-tfile.c: Fix indentation.
1696 * tracepoint.c: Fix indentation.
1697 * tui/tui-disasm.c: Fix indentation.
1698 * tui/tui-io.c: Fix indentation.
1699 * tui/tui-regs.c: Fix indentation.
1700 * tui/tui-stack.c: Fix indentation.
1701 * tui/tui-win.c: Fix indentation.
1702 * tui/tui-winsource.c: Fix indentation.
1703 * tui/tui.c: Fix indentation.
1704 * typeprint.c: Fix indentation.
1705 * ui-out.h: Fix indentation.
1706 * unittests/copy_bitwise-selftests.c: Fix indentation.
1707 * unittests/memory-map-selftests.c: Fix indentation.
1708 * utils.c: Fix indentation.
1709 * v850-tdep.c: Fix indentation.
1710 * valarith.c: Fix indentation.
1711 * valops.c: Fix indentation.
1712 * valprint.c: Fix indentation.
1713 * valprint.h: Fix indentation.
1714 * value.c: Fix indentation.
1715 * value.h: Fix indentation.
1716 * varobj.c: Fix indentation.
1717 * vax-tdep.c: Fix indentation.
1718 * windows-nat.c: Fix indentation.
1719 * windows-tdep.c: Fix indentation.
1720 * xcoffread.c: Fix indentation.
1721 * xml-syscall.c: Fix indentation.
1722 * xml-tdesc.c: Fix indentation.
1723 * xstormy16-tdep.c: Fix indentation.
1724 * xtensa-config.c: Fix indentation.
1725 * xtensa-linux-nat.c: Fix indentation.
1726 * xtensa-linux-tdep.c: Fix indentation.
1727 * xtensa-tdep.c: Fix indentation.
1728
1729 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1730 Craig Blackmore <craig.blackmore@embecosm.com>
1731
1732 * riscv-tdep.c (riscv_frame_cache): Read the frame base register
1733 as an unsigned value.
1734
1735 2020-11-01 Tom Tromey <tom@tromey.com>
1736
1737 * dbxread.c (dbx_end_psymtab): Update.
1738 * dwarf2/read.c (process_psymtab_comp_unit_reader)
1739 (build_type_psymtabs_reader): Update.
1740 * xcoffread.c (xcoff_end_psymtab): Update.
1741 * ctfread.c (scan_partial_symbols): Update.
1742 * psymtab.c (sort_pst_symbols): Remove.
1743 (partial_symtab::end): Rename from end_psymtab_common. Inline
1744 sort_pst_symbols.
1745 * psympriv.h (struct partial_symtab) <end>: New method.
1746 (end_psymtab_common): Don't declare.
1747
1748 2020-11-01 Tom Tromey <tom@tromey.com>
1749
1750 * symmisc.c (count_psyms): New function.
1751 (print_objfile_statistics): Use it.
1752 * psymtab.c (append_psymbol_to_list): Remove.
1753 (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
1754 * objfiles.h (struct objstats) <n_psyms>: Remove.
1755
1756 2020-11-01 Tom Tromey <tom@tromey.com>
1757
1758 * dbxread.c (dbx_end_psymtab): Update.
1759 * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
1760 (build_type_psymtabs_reader): Update.
1761 * xcoffread.c (xcoff_end_psymtab): Update.
1762 * ctfread.c (scan_partial_symbols): Update.
1763 * psympriv.h (end_psymtab_common): Update.
1764 * psymtab.c (end_psymtab_common): Remove objfile parameter.
1765 (sort_pst_symbols): Likewise.
1766
1767 2020-11-01 Tom Tromey <tom@tromey.com>
1768
1769 * dbxread.c (dbx_symfile_read): Update.
1770 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
1771 * xcoffread.c (xcoff_initial_scan): Update.
1772 * psympriv.h (init_psymbol_list): Don't declare.
1773 * psymtab.c (init_psymbol_list): Remove.
1774
1775 2020-11-01 Joel Brobecker <brobecker@adacore.com>
1776
1777 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
1778 gnat_encoded_fixed_type_info. Update all callers.
1779
1780 2020-11-01 Joel Brobecker <brobecker@adacore.com>
1781
1782 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
1783 line too long.
1784
1785 2020-11-01 Joel Brobecker <brobecker@adacore.com>
1786
1787 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
1788 cast_from_fixed. Update all callers.
1789 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
1790 Update all callers.
1791 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
1792 Update all callers.
1793 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
1794 ada_scaling_factor.
1795 * ada-typeprint.c: Replace call to ada_scaling_factor by call
1796 to print_gnat_encoded_fixed_point_type.
1797 * ada-valprint.c: Likewise.
1798
1799 2020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1800
1801 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
1802 (debug_prefixed_printf): Add check of debug_displaced flag.
1803 * linux-nat.c (linux_nat_debug_printf): Add check of
1804 debug_linux_nat flag.
1805
1806 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1807
1808 * infrun.c (infrun_debug_printf_1): Remove.
1809 (displaced_debug_printf_1): Remove.
1810 (stop_all_threads): Use debug_prefixed_printf.
1811 * infrun.h (infrun_debug_printf_1): Remove.
1812 (infrun_debug_printf): Use debug_prefixed_printf.
1813 (displaced_debug_printf_1): Remove.
1814 (displaced_debug_printf): Use debug_prefixed_printf.
1815 * linux-nat.c (linux_nat_debug_printf_1): Remove.
1816 (linux_nat_debug_printf): Use debug_prefixed_printf.
1817
1818 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1819
1820 * configure: Re-generate.
1821 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
1822 AC_LANG_PROGRAM.
1823
1824 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1825
1826 * configure: Re-generate.
1827
1828 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1829
1830 * configure: Re-generate.
1831
1832 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1833
1834 * configure: Re-generate.
1835
1836 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1837
1838 * configure: Re-generate.
1839
1840 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1841
1842 * acinclude.m4: Modernize.
1843 * configure: Re-generate.
1844
1845 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1846
1847 * configure.ac: Modernize.
1848 * configure: Re-generate.
1849
1850 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1851
1852 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
1853 * configure: Re-generate.
1854 * configure.ac: Remove AM_PROG_CC_STDC.
1855
1856 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1857
1858 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
1859 AC_CANONICAL_SYSTEM.
1860 * configure: Re-generate.
1861
1862 2020-10-30 Simon Marchi <simon.marchi@efficios.com>
1863
1864 * infrun.h (displaced_debug_printf): New macro. Replace
1865 displaced debug prints throughout to use it.
1866 (displaced_debug_printf_1): New declaration.
1867 (displaced_step_dump_bytes): Return string, remove ui_file
1868 parameter, update all callers.
1869 * infrun.c (displaced_debug_printf_1): New function.
1870 (displaced_step_dump_bytes): Return string, remove ui_file
1871 parameter
1872
1873 2020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
1874
1875 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
1876
1877 2020-10-30 Tom Tromey <tromey@adacore.com>
1878
1879 * Makefile.in (stamp-init): Depend on config.status.
1880
1881 2020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1882
1883 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
1884
1885 2020-10-30 Pedro Alves <pedro@palves.net>
1886
1887 * thread.c (lookup_selected_frame): Move ...
1888 * frame.c (lookup_selected_frame): ... here.
1889
1890 2020-10-30 Pedro Alves <pedro@palves.net>
1891
1892 * blockframe.c (block_innermost_frame): Use get_selected_frame.
1893 * frame.c
1894 (scoped_restore_selected_frame::scoped_restore_selected_frame):
1895 Use save_selected_frame. Save language as well.
1896 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
1897 Use restore_selected_frame, and restore language as well.
1898 (selected_frame_id, selected_frame_level): New.
1899 (selected_frame): Update comments.
1900 (save_selected_frame, restore_selected_frame): New.
1901 (get_selected_frame): Use lookup_selected_frame.
1902 (get_selected_frame_if_set): Delete.
1903 (select_frame): Record selected_frame_level and selected_frame_id.
1904 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
1905 fields.
1906 (get_selected_frame): Make 'message' parameter optional.
1907 (get_selected_frame_if_set): Delete declaration.
1908 (select_frame): Update comments.
1909 (save_selected_frame, restore_selected_frame)
1910 (lookup_selected_frame): Declare.
1911 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
1912 * infrun.c (struct infcall_control_state) <selected_frame_level>:
1913 New field.
1914 (save_infcall_control_state): Use save_selected_frame.
1915 (restore_selected_frame): Delete.
1916 (restore_infcall_control_state): Use restore_selected_frame.
1917 * stack.c (select_frame_command_core, frame_command_core): Use
1918 get_selected_frame.
1919 * thread.c (restore_selected_frame): Rename to ...
1920 (lookup_selected_frame): ... this and make extern. Select the
1921 current frame if the frame level is -1.
1922 (scoped_restore_current_thread::restore): Also restore the
1923 language.
1924 (scoped_restore_current_thread::~scoped_restore_current_thread):
1925 Don't try/catch.
1926 (scoped_restore_current_thread::scoped_restore_current_thread):
1927 Save the language as well. Use save_selected_frame.
1928
1929 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1930
1931 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
1932 documentation.
1933 * gdbarch.h: Re-generate.
1934
1935 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1936
1937 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
1938 parameter.
1939 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
1940 Likewise.
1941 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
1942 Likewise.
1943 * arch-utils.c (default_displaced_step_hw_singlestep):
1944 Likewise.
1945 * arch-utils.h (default_displaced_step_hw_singlestep):
1946 Likewise.
1947 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
1948 Likewise.
1949 * s390-tdep.c (s390_displaced_step_hw_singlestep):
1950 Likewise.
1951 * gdbarch.c: Re-generate.
1952 * gdbarch.h: Re-generate.
1953 * infrun.c (resume_1): Adjust.
1954
1955 2020-10-29 Tom Tromey <tom@tromey.com>
1956
1957 * progspace.c (program_space::~program_space): Don't call
1958 exec_close.
1959
1960 2020-10-29 Tom Tromey <tom@tromey.com>
1961
1962 * exec.c (exec_target::close): Don't change current program
1963 space.
1964
1965 2020-10-29 Tom Tromey <tom@tromey.com>
1966
1967 * symfile.c (add_symbol_file_command): Update.
1968 * exec.c (program_space::add_target_sections): Rename.
1969 * symfile-mem.c (symbol_file_add_from_memory): Update.
1970 * progspace.h (struct program_space) <add_target_sections>:
1971 Declare new overload.
1972 * exec.h (add_target_sections_of_objfile): Don't declare.
1973
1974 2020-10-29 Tom Tromey <tom@tromey.com>
1975
1976 * solib.c (solib_map_sections): Update.
1977 * exec.c (program_space::add_target_sections): Now a method.
1978 (exec_file_attach): Update.
1979 * exec.h (add_target_sections): Don't declare.
1980 * progspace.h (struct program_space) <add_target_sections>:
1981 Declare.
1982
1983 2020-10-29 Tom Tromey <tom@tromey.com>
1984
1985 * progspace.h (struct program_space) <remove_target_sections>:
1986 Declare.
1987 * exec.c (program_space::remove_target_sections): Now a method.
1988 * exec.h (remove_target_sections): Don't declare.
1989
1990 2020-10-29 Tom Tromey <tom@tromey.com>
1991
1992 * inferior.c (delete_inferior): Update.
1993 * progspace.c (program_space::empty): Rename from
1994 program_space_empty_p. Return bool.
1995 * progspace.h (struct program_space) <empty>: New method.
1996 (program_space_empty_p): Don't declare.
1997
1998 2020-10-29 Tom Tromey <tom@tromey.com>
1999
2000 * progspace.c (program_space::~program_space): Don't call
2001 clear_program_space_solib_cache.
2002 (program_space::clear_solib_cache): Rename from
2003 clear_solib_cache.
2004 * solib.c (handle_solib_event): Update.
2005 * progspace.h (struct program_space) <clear_solib_cache>: New
2006 method.
2007 (clear_program_space_solib_cache): Don't declare.
2008
2009 2020-10-29 Tom Tromey <tom@tromey.com>
2010
2011 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2012 * target.c (info_target_command): Update.
2013 * symfile.c (syms_from_objfile_1, finish_new_objfile)
2014 (symbol_file_clear, reread_symbols): Update.
2015 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
2016 * stabsread.c (scan_file_globals): Update.
2017 * solib.c (update_solib_list): Update.
2018 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
2019 (svr4_fetch_objfile_link_map, enable_break)
2020 (svr4_relocate_main_executable)
2021 (svr4_iterate_over_objfiles_in_search_order): Update.
2022 * solib-frv.c (lm_base, enable_break)
2023 (frv_relocate_main_executable): Update.
2024 (main_got, frv_fdpic_find_canonical_descriptor): Update.
2025 (frv_fetch_objfile_link_map): Update.
2026 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
2027 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
2028 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
2029 * remote.c (remote_target::get_offsets): Update.
2030 (remote_target::start_remote)
2031 (extended_remote_target::post_attach): Update.
2032 * objfiles.c (entry_point_address_query): Update.
2033 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
2034 * minsyms.c (get_symbol_leading_char): Update.
2035 * frame.c (inside_main_func): Update.
2036 * progspace.h (symfile_objfile): Remove macro.
2037
2038 2020-10-29 Tom Tromey <tom@tromey.com>
2039
2040 * exec.c (exec_file_attach): Update.
2041 * progspace.c (program_space::exec_close): Update.
2042 * progspace.h (struct program_space) <ebfd>: Now a
2043 gdb_bfd_ref_ptr.
2044 <set_exec_bfd>: Change argument type.
2045 <exec_bfd>: Update.
2046
2047 2020-10-29 Tom Tromey <tom@tromey.com>
2048
2049 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2050 * symfile.c (reread_symbols): Update.
2051 * symfile-mem.c (add_symbol_file_from_memory_command)
2052 (add_vsyscall_page): Update.
2053 * source-cache.c (source_cache::get_plain_source_lines): Update.
2054 * solib-svr4.c (find_program_interpreter, elf_locate_base)
2055 (svr4_current_sos_direct, svr4_exec_displacement)
2056 (svr4_relocate_main_executable): Update.
2057 (svr4_iterate_over_objfiles_in_search_order): Update.
2058 * solib-frv.c (enable_break2, enable_break): Update.
2059 * solib-dsbt.c (lm_base, enable_break): Update.
2060 * solib-darwin.c (find_program_interpreter)
2061 (darwin_solib_create_inferior_hook): Update.
2062 * sol-thread.c (rw_common, ps_pdmodel): Update.
2063 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
2064 * remote.c (compare_sections_command)
2065 (remote_target::trace_set_readonly_regions): Update.
2066 * remote-sim.c (get_sim_inferior_data)
2067 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
2068 (gdbsim_target_open, gdbsim_target::files_info): Update.
2069 * exec.h (exec_bfd): Remove macro.
2070 * progspace.c (initialize_progspace): Update.
2071 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
2072 Update.
2073 * nto-procfs.c (nto_procfs_target::post_attach)
2074 (nto_procfs_target::create_inferior): Update.
2075 * maint.c (maintenance_info_sections): Update.
2076 * linux-thread-db.c (thread_db_target::get_thread_local_address):
2077 Update.
2078 * infcmd.c (post_create_inferior): Update.
2079 * gcore.c (default_gcore_arch, default_gcore_target): Update.
2080 (objfile_find_memory_regions): Update.
2081 * exec.c (validate_exec_file, exec_file_attach)
2082 (exec_read_partial_read_only, print_section_info): Update.
2083 * corelow.c (core_target_open): Update.
2084 * corefile.c (reopen_exec_file, validate_files): Update.
2085 * arm-tdep.c (gdb_print_insn_arm): Update.
2086 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
2087 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
2088 methods.
2089
2090 2020-10-29 Tom Tromey <tom@tromey.com>
2091
2092 * progspace.h (current_target_sections): Remove macro.
2093 * solib-svr4.c (scan_dyntag): Update.
2094 * solib-dsbt.c (scan_dyntag): Update.
2095 * exec.c (exec_target::close): Update.
2096 (add_target_sections, add_target_sections_of_objfile)
2097 (remove_target_sections, exec_target::get_section_table)
2098 (exec_target::files_info, set_section_command)
2099 (exec_set_section_address, exec_target::has_memory)
2100 (exec_target::has_memory): Update.
2101
2102 2020-10-29 Tom Tromey <tom@tromey.com>
2103
2104 * source-cache.c (source_cache::get_plain_source_lines): Use
2105 current_program_space.
2106 * corefile.c (reopen_exec_file): Use current_program_space.
2107 * exec.c (exec_file_attach): Use current_program_space.
2108 * exec.h (exec_bfd_mtime): Remove.
2109
2110 2020-10-29 Tom Tromey <tom@tromey.com>
2111
2112 * gcore.c (default_gcore_mach): Remove.
2113 (create_gcore_bfd): Update.
2114
2115 2020-10-29 Tom Tromey <tom@tromey.com>
2116
2117 * progspace.c (program_space::exec_close): New method, from
2118 exec_close in exec.c.
2119 * exec.c (exec_close): Move to progspace.c.
2120 (exec_target::close, exec_file_attach): Update.
2121 * progspace.h (struct program_space) <exec_close>: Declare
2122 method.
2123
2124 2020-10-29 Tom Tromey <tom@tromey.com>
2125
2126 * progspace.h (struct program_space) <exec_filename>: Rename from
2127 pspace_exec_filename. Now a unique_xmalloc_ptr.
2128 * inferior.c (print_selected_inferior): Update.
2129 (print_inferior): Update.
2130 * mi/mi-main.c (print_one_inferior): Update.
2131 * exec.h (exec_filename): Remove macro.
2132 * corefile.c (get_exec_file): Update.
2133 * exec.c (exec_close): Update.
2134 (exec_file_attach): Update.
2135 * progspace.c (clone_program_space): Update.
2136 (print_program_space): Update.
2137
2138 2020-10-29 Tom Tromey <tom@tromey.com>
2139
2140 * target-section.h (struct target_section): Add constructor.
2141 * exec.c (build_section_table, add_target_sections_of_objfile):
2142 Update.
2143 * corelow.c (core_target::build_file_mappings): Update.
2144
2145 2020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2146
2147 PR gdb/19318
2148 * inferior.c (detach_inferior_command): Restore the current thread.
2149 (kill_inferior_command): Ditto.
2150
2151 2020-10-28 Tom de Vries <tdevries@suse.de>
2152
2153 PR symtab/26772
2154 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
2155 map, check it in the "best match" loop.
2156
2157 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
2158
2159 * m32c-tdep.c: Remove unused includes.
2160
2161 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
2162
2163 * xtensa-tdep.c: Remove includes.
2164
2165 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2166
2167 * breakpoint.c (struct condition_command_opts): New struct.
2168 (condition_command_option_defs): New static global.
2169 (make_condition_command_options_def_group): New function.
2170 (condition_completer): Update to consider the '-force' flag.
2171 (condition_command): Use gdb::option for the '-force' flag.
2172
2173 2020-10-27 Tom de Vries <tdevries@suse.de>
2174
2175 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
2176 symbols in section check.
2177
2178 2020-10-27 Tom de Vries <tdevries@suse.de>
2179
2180 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
2181
2182 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2183
2184 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
2185 * breakpoint.c: Update the help text of the 'condition' and 'break'
2186 commands.
2187 (set_breakpoint_condition): Take a new bool parameter
2188 to control whether condition definition should be forced even when
2189 the condition expression is invalid in all of the current locations.
2190 (condition_command): Update the call to 'set_breakpoint_condition'.
2191 (find_condition_and_thread): Take the "-force-condition" flag into
2192 account.
2193 * linespec.c (linespec_keywords): Add "-force-condition" as an
2194 element.
2195 (FORCE_KEYWORD_INDEX): New #define.
2196 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
2197 as a keyword.
2198 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
2199 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
2200 * python/py-breakpoint.c (bppy_set_condition): Ditto.
2201 * NEWS: Mention the changes to the 'break' and 'condition' commands.
2202
2203 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2204
2205 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
2206 * breakpoint.c (set_breakpoint_location_condition): New function.
2207 (set_breakpoint_condition): Disable a breakpoint location if parsing
2208 the condition string gives an error.
2209 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
2210 (build_target_condition_list): Ditto.
2211 (build_target_command_list): Ditto.
2212 (build_bpstat_chain): Ditto.
2213 (print_one_breakpoint_location): Ditto.
2214 (print_one_breakpoint): Ditto.
2215 (breakpoint_1): Ditto.
2216 (bp_location::bp_location): Ditto.
2217 (locations_are_equal): Ditto.
2218 (update_breakpoint_locations): Ditto.
2219 (enable_disable_bp_num_loc): Ditto.
2220 (init_breakpoint_sal): Use set_breakpoint_location_condition.
2221 (find_condition_and_thread_for_sals): New static function.
2222 (create_breakpoint): Call find_condition_and_thread_for_sals.
2223 (location_to_sals): Call find_condition_and_thread_for_sals instead
2224 of find_condition_and_thread.
2225
2226 2020-10-26 Tom de Vries <tdevries@suse.de>
2227
2228 * dwarf2/read.c (process_full_comp_unit): Call
2229 dwarf2_find_base_address.
2230
2231 2020-10-26 Tom Tromey <tromey@adacore.com>
2232
2233 * gdbtypes.c (create_range_type): Revert previous patch. Add
2234 comment.
2235
2236 2020-10-26 Pedro Alves <pedro@palves.net>
2237
2238 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
2239 (my_waitpid): Use gdb::handle_eintr.
2240
2241 2020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
2242
2243 * acinclude.m4: Update ptrace.m4 path.
2244 * ptrace.m4: Moved to gdbsupport.
2245
2246 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
2247
2248 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
2249 instead of target_gdbarch.
2250
2251 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
2252
2253 * jit.c (jit_reader_load_command): Pass current inferior.
2254 (jit_inferior_init): Change parameter type to inferior, use it.
2255 (jit_inferior_created): Remove.
2256 (jit_inferior_created_hook): Pass inferior parameter down.
2257 (_initialize_jit): Use jit_inferior_created_hook instead of
2258 jit_inferior_created.
2259 * jit.h (jit_inferior_created_hook): Add inferior parameter.
2260 * infrun.c (follow_exec): Pass inferior to
2261 jit_inferior_created_hook.
2262
2263 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
2264
2265 * linux-thread-db.c (check_pid_namespace_match): Add inferior
2266 parameter and use it.
2267 (thread_db_inferior_created): Pass inferior argument.
2268
2269 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
2270
2271 * aix-thread.c (aix_thread_inferior_created): Add inferior
2272 parameter.
2273 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
2274 * dummy-frame.c (cleanup_dummy_frames): Likewise.
2275 * jit.c (jit_inferior_created): Likewise.
2276 * linux-thread-db.c (thread_db_inferior_created): Likewise.
2277 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
2278 * observable.h (inferior_created): Likewise.
2279 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
2280 * symfile-mem.c (add_vsyscall_page): Likewise.
2281 * infcmd.c (post_create_inferior): Pass inferior argument.
2282
2283 2020-10-24 Joel Brobecker <brobecker@adacore.com>
2284
2285 GDB 10.1 released.
2286
2287 2020-10-23 Joel Brobecker <brobecker@adacore.com>
2288
2289 * ada-typeprint.c (ada_print_type): Remove superfluous second call
2290 to ada_check_typedef.
2291
2292 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2293
2294 * f-exp.y (f_parse): Rename to...
2295 (f_language::parser): ...this.
2296 * f-lang.c (f_get_encoding): Rename to...
2297 (f_language::get_encoding): ...this.
2298 (f_op_print_tab): Rename to...
2299 (f_language::op_print_tab): ...this.
2300 (exp_descriptor_f): Rename to...
2301 (f_language::exp_descriptor_tab): ...this.
2302 (class f_language): Moved to f-lang.h.
2303 (f_language::language_arch_info): New function, moved out of class
2304 declaration.
2305 (f_language::search_name_hash): Likewise.
2306 (f_language::lookup_symbol_nonlocal): Likewise.
2307 (f_language::get_symbol_name_matcher_inner): Likewise.
2308 * f-lang.h: Add 'valprint.h' include.
2309 (class f_language): Moved here from f-lang.c.
2310 * f-typeprint.c (f_type_print_args): Delete commented out
2311 declaration.
2312 (f_print_typedef): Rename to...
2313 (f_language::print_typedef): ...this.
2314 (f_print_type): Rename to...
2315 (f_language::print_type): ...this.
2316 (f_type_print_varspec_prefix): Delete declaration and rename to...
2317 (f_language::f_type_print_varspec_prefix): ...this.
2318 (f_type_print_varspec_suffix): Delete declaration and rename to...
2319 (f_language::f_type_print_varspec_suffix): ...this.
2320 (f_type_print_base): Delete declaration and rename to...
2321 (f_language::f_type_print_base): ...this.
2322 * f-valprint.c (f_value_print_inner): Rename to...
2323 (f_language::value_print_inner): ...this.
2324 * parse.c: Delete 'f-lang.h' include.
2325
2326 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2327
2328 * language.h (language_defn::print_type): Add variable names in
2329 declaration, and update header comment.
2330
2331 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2332
2333 * ada-lang.c (ada_language::demangle): Rename to...
2334 (ada_language::demangle_symbol): ...this.
2335 * c-lang.c (cplus_language::demangle): Rename to...
2336 (cplus_language::demangle_symbol): ...this.
2337 * d-lang.c (d_language::demangle): Rename to...
2338 (d_language::demangle_symbol): ...this.
2339 * f-lang.c (f_language::demangle): Rename to...
2340 (f_language::demangle_symbol): ...this.
2341 * go-lang.c (go_language::demangle): Rename to...
2342 (go_language::demangle_symbol): ...this.
2343 * language.c (language_demangle): Update call to demangle_symbol.
2344 (auto_or_unknown_language::demangle): Rename to...
2345 (auto_or_unknown_language::demangle_symbol): ...this.
2346 * language.h (language_defn::demangle): Rename to...
2347 (language_defn::demangle_symbol): ...this.
2348 * objc-lang.c (objc_language::demangle): Rename to...
2349 (objc_language::demangle_symbol): ...this.
2350 * rust-lang.c (rust_language::demangle): Rename to...
2351 (rust_language::demangle_symbol): ...this.
2352
2353 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2354
2355 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
2356 (iterate_over_file_blocks): Replace use of macro with the macros
2357 definition.
2358
2359 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2360
2361 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
2362 * valprint.c (maybe_print_array_index): Replace use of macro with
2363 the macros definition.
2364
2365 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2366
2367 * ada-lang.c (ada_language::print_array_index): Call value_print
2368 directly.
2369 * language.c (language_defn::print_array_index): Likewise.
2370 * language.h (LA_VALUE_PRINT): Delete.
2371 * valprint.c (value_print): Call value_print on the
2372 current_language directly.
2373
2374 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2375
2376 * language.h (LA_PRINT_TYPEDEF): Delete.
2377 * typeprint.c (typedef_print): Call print_typedef directly on the
2378 current_language object.
2379
2380 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2381
2382 * m2-exp.y (m2_parse): Rename to...
2383 (m2_language::parser): ...this. Update function signature.
2384 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
2385 (m2_op_print): Rename to...
2386 (m2_language::op_print_tab): ...this, and make const.
2387 (exp_descriptor_modula2): Rename to...
2388 (m2_language::exp_descriptor_modula2): ...this.
2389 (class m2_language): Move to m2-lang.h.
2390 (m2_language::language_arch_info): New function, moved out of
2391 class declaration.
2392 (m2_language::printchar): New function, body from m2_printchar.
2393 (m2_language::printstr): New function, moved out of class
2394 declaration.
2395 (m2_language::emitchar): Likewise.
2396 * m2-lang.h (m2_parse): Delete declaration.
2397 (m2_print_typedef): Delete declaration.
2398 (m2_value_print_inner): Delete declaration.
2399 (class m2_language): Class declaration moved from m2-lang.c,
2400 larger functions are left in m2-lang.c.
2401 * m2-typeprint.c (m2_print_typedef): Rename to...
2402 (m2_language::print_typedef): ...this, and update function
2403 signature.
2404 * m2-valprint.c (m2_value_print_inner): Rename to...
2405 (m2_language::value_print_inner): ...this, replace use of
2406 LA_PRINT_STRING with a direct call to printstr member function,
2407 and update recursive call.
2408
2409 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2410
2411 * language.c (default_is_string_type_p): Delete, implementation
2412 moved into auto_or_unknown_language::is_string_type_p.
2413 (unk_op_print_tab): Moved into
2414 auto_or_unknown_language::opcode_print_table.
2415 (unknown_language_arch_info): Delete, implementation moved into
2416 auto_or_unknown_language::language_arch_info.
2417 (class auto_or_unknown_language): New class, member functions
2418 copied from unknown_language class, with some updates.
2419 (class unknown_language): Most member functions moved into
2420 auto_or_unknown_language class. Inherit from
2421 auto_or_unknown_language class.
2422 (class auto_language): Inherit from auto_or_unknown_language.
2423 Delete most member functions.
2424
2425 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
2426
2427 * stabsread.c (read_member_functions): Remove gdb_assert.
2428
2429 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
2430
2431 * gdbtypes.c (init_complex_type): Check target type name.
2432
2433 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
2434
2435 * target-debug.h (target_debug_print_struct_target_ops_p):
2436 Remove.
2437 (target_debug_print_async_callback_ftype_p): Remove.
2438 (target_debug_print_struct_trace_state_variable_p): Remove.
2439 (target_debug_print_struct_traceframe_info_p): Remove.
2440 (target_debug_print_VEC__btrace_block_s__pp): Remove.
2441 (target_debug_print_enum_btrace_format): Remove.
2442 (target_debug_print_enum_info_proc_what): Remove.
2443 (target_debug_print_thread_info_pp): Remove.
2444
2445 2020-10-22 Simon Marchi <simon.marchi@efficios.com>
2446
2447 * target.h (struct target_ops) <make_corefile_notes>:
2448 Change return type to unique pointer.
2449 * target.c (dummy_make_corefile_notes): Likewise.
2450 * exec.c (struct exec_target) <make_corefile_notes>:
2451 Likewise.
2452 (exec_target::make_corefile_notes): Likewise.
2453 * procfs.c (class procfs_target) <make_corefile_notes>:
2454 Likewise.
2455 (procfs_do_thread_registers): Adjust to unique pointer.
2456 (struct procfs_corefile_thread_data): Add constructor.
2457 <note_data>: Change type to unique pointer.
2458 (procfs_corefile_thread_callback): Adjust to unique pointer.
2459 (procfs_target::make_corefile_notes): Change return type to
2460 unique pointer.
2461 * target-delegates.c: Re-generate.
2462 * gcore.c (write_gcore_file_1): Adjust.
2463 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
2464 New.
2465
2466 2020-10-22 Tom de Vries <tdevries@suse.de>
2467
2468 * block.c (find_block_in_blockvector): Make sure the returned block
2469 contains pc.
2470
2471 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
2472
2473 PR gdb/26693
2474 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
2475 parameter.
2476 (load_cu): Pass existing CU.
2477 (process_imported_unit_die): Likewise.
2478 (follow_die_offset): Likewise.
2479
2480 2020-10-22 Luis Machado <luis.machado@linaro.org>
2481
2482 * corelow.c (core_target::xfer_partial): Also check for an empty
2483 m_core_unavailable_mappings vector.
2484
2485 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2486
2487 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
2488 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
2489 * f-exp.y (arglist): Allow for a series of subranges.
2490 (subrange): Add cases for subranges with strides.
2491 * f-lang.c (value_f90_subarray): Catch use of array strides and
2492 throw an error.
2493 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
2494
2495 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2496
2497 * expprint.c (print_subexp_standard): Change enum range_type to
2498 range_flag and rename variables to match.
2499 (dump_subexp_body_standard): Likewise.
2500 * expression.h (enum range_type): Rename to...
2501 (enum range_flag): ...this.
2502 (range_types): Rename to...
2503 (range_flags): ...this.
2504 * f-lang.c (value_f90_subarray): Change enum range_type to
2505 range_flag and rename variables to match.
2506 * parse.c (operator_length_standard): Likewise.
2507 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
2508 range_type to range_flag.
2509 * rust-lang.c (rust_evaluate_funcall): Likewise.
2510 (rust_range): Likewise.
2511 (rust_compute_range): Likewise.
2512 (rust_subscript): Likewise.
2513
2514 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2515
2516 * expprint.c (print_subexp_standard): Update to reflect changes to
2517 enum range_type.
2518 (dump_subexp_body_standard): Likewise.
2519 * expression.h (enum range_type): Convert to a bit field enum, and
2520 make the enum unsigned.
2521 * f-exp.y (subrange): Update to reflect changes to enum
2522 range_type.
2523 * f-lang.c (value_f90_subarray): Likewise.
2524 * parse.c (operator_length_standard): Likewise.
2525 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
2526 * rust-lang.c (rust_range): Likewise.
2527 (rust_compute_range): Likewise.
2528 (rust_subscript): Likewise.
2529
2530 2020-10-21 Simon Marchi <simon.marchi@efficios.com>
2531
2532 * infrun.c (displaced_step_in_progress_thread): Fix comment.
2533 (displaced_step_in_progress): Fix comment.
2534
2535 2020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
2536
2537 * gdbarch.sh (make_corefile_notes): Return unique pointer.
2538 * gdbarch.c: Re-generate.
2539 * gdbarch.h: Re-generate.
2540 * gcore.c (write_gcore_file_1): Adjust.
2541 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
2542 constructor.
2543 <note_data>: Change type to unique pointer.
2544 <abort_iteration>: Change type to bool.
2545 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
2546 (fbsd_collect_thread_registers): Return void, adjust.
2547 (struct fbsd_corefile_thread_data): Add construtor.
2548 <note_data>: Change type to unique pointer.
2549 (fbsd_corefile_thread): Adjust.
2550 (fbsd_make_corefile_notes): Return unique pointer, adjust.
2551 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
2552 to unique pointer, adjust.
2553 (struct linux_collect_regset_section_cb_data): Add constructor.
2554 <note_data>: Change type to unique pointer.
2555 <abort_iteration>: Change type to bool.
2556 (linux_collect_thread_registers): Return void, adjust.
2557 (struct linux_corefile_thread_data): Add constructor.
2558 <note_data>: Change type to unique pointer.
2559 (linux_corefile_thread): Adjust.
2560 (linux_make_corefile_notes): Return unique pointer, adjust.
2561
2562 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2563
2564 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
2565 * gdbarch.c: Re-generate.
2566 * gdbarch.h: Re-generate.
2567 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
2568 bool.
2569 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
2570 Likewise.
2571 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
2572 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
2573 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
2574 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
2575
2576 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2577
2578 * gdbarch.sh: Make generated predicates return bool.
2579 * gdbarch.c: Re-generate.
2580 * gdbarch.h: Re-generate.
2581
2582 2020-10-20 Tom Tromey <tom@tromey.com>
2583
2584 * varobj-iter.h (struct varobj_item): Remove typedef.
2585
2586 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2587
2588 * infrun.c (currently_stepping): Change int to bool
2589 (maybe_software_singlestep): Likewise.
2590 (show_stop_on_solib_events): Likewise.
2591 (stepping_past_nonsteppable_watchpoint): Likewise.
2592 (displaced_step_in_progress_any_inferior): Likewise.
2593 (displaced_step_in_progress_thread): Likewise.
2594 (keep_going_stepped_thread): Likewise.
2595 (thread_still_needs_step_over): Likewise.
2596 (start_step_over): Likewise.
2597 (do_target_resume): Likewise.
2598 (resume_1): Likewise.
2599 (clear_proceed_status): Likewise.
2600 (thread_still_needs_step_over_bp): Likewise.
2601 (proceed): Likewise.
2602 (switch_back_to_stepped_thread): Likewise.
2603 (adjust_pc_after_break): Likewise.
2604 (stepped_in_from): Likewise.
2605 (handle_stop_requested): Likewise.
2606 (handle_syscall_event): Likewise.
2607 (handle_no_resumed): Likewise.
2608 (handle_inferior_event): Likewise.
2609 (finish_step_over): Likewise.
2610 (handle_signal_stop): Likewise.
2611 (process_event_stop_test): Likewise.
2612
2613 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2614
2615 * infrun.c (get_displaced_stepping_state): Fix comment.
2616
2617 2020-10-20 Andreas Schwab <schwab@linux-m68k.org>
2618
2619 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
2620
2621 2020-10-19 Tom Tromey <tromey@adacore.com>
2622
2623 PR tui/26719
2624 * tui/tui-winsource.h (struct tui_source_window_base)
2625 <refresh_window>: Rename from refresh_pad.
2626 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
2627 Rename from refresh_pad.
2628 (tui_source_window_base::show_source_content)
2629 (tui_source_window_base::do_scroll_horizontal): Update.
2630
2631 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2632
2633 * thread.c (_initialize_thread): Fine-tune the help text of
2634 'info threads'.
2635
2636 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2637
2638 * frame.c: Remove the unused 'uinteger_option_def' type alias.
2639
2640 2020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
2641
2642 * breakpoint.c (handle_jit_event): Add an argument, change how
2643 `jit_event_handler` is called.
2644
2645 2020-10-17 Tom Tromey <tom@tromey.com>
2646
2647 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
2648 (scan_xcoff_symtab): Update.
2649 * psymtab.h (class psymtab_storage) <global_psymbols,
2650 static_psymbols, current_global_psymbols,
2651 current_static_psymbols>: Remove.
2652 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
2653 (match_partial_symbol, lookup_partial_symbol): Update.
2654 (print_partial_symbols): Change parameters.
2655 (dump_psymtab, recursively_search_psymtabs)
2656 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
2657 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
2658 (concat): Remove.
2659 (end_psymtab_common): Simplify.
2660 (append_psymbol_to_list): Change parameters.
2661 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
2662 (init_psymbol_list): Simplify.
2663 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
2664 * psympriv.h (struct partial_symtab) <empty>: New method.
2665 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
2666 Remove.
2667 <global_psymbols, static_psymbols>: New members.
2668 <add_psymbol>: New methods.
2669 (add_psymbol_to_list): Don't declare.
2670 (psymbol_placement): Move earlier.
2671 * mdebugread.c (parse_partial_symbols): Update.
2672 (handle_psymbol_enumerators): Change parameters.
2673 (mdebug_expand_psymtab): Update.
2674 * dwarf2/read.c (process_psymtab_comp_unit_reader)
2675 (add_partial_symbol): Update.
2676 * dwarf2/index-write.c (write_psymbols): Change parameters.
2677 (write_one_signatured_type): Update.
2678 (recursively_count_psymbols): Update.
2679 (recursively_write_psymbols): Update.
2680 (class debug_names) <recursively_write_psymbols>: Update.
2681 <write_psymbols>: Change parameters.
2682 <write_one_signatured_type>: Update.
2683 * dbxread.c (read_dbx_symtab): Update.
2684 (dbx_end_psymtab): Use partial_symtab::empty.
2685 * ctfread.c (struct ctf_context) <pst>: New member.
2686 (create_partial_symtab): Set it.
2687 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
2688 (scan_partial_symbols): Use the psymtab's context. Update.
2689
2690 2020-10-17 Tom Tromey <tom@tromey.com>
2691
2692 * valprint.c (generic_value_print): Remove comment.
2693 * m2-valprint.c (m2_value_print_inner): Remove comment.
2694 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
2695 type.
2696
2697 2020-10-17 Tom de Vries <tdevries@suse.de>
2698
2699 PR symtab/26317
2700 * source.c (select_source_symtab): Handling sal.symtab == NULL for
2701 symbol main.
2702
2703 2020-10-14 Tom de Vries <tdevries@suse.de>
2704
2705 PR gdb/26733
2706 * solib.c (solib_contains_address_p): Handle
2707 'solib->sections == nullptr'.
2708
2709 2020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
2710
2711 PR gdb/26642
2712 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
2713 target can't do async.
2714 * target.c (target_wait): Assert that we don't pass
2715 TARGET_WNOHANG to a target that can't async.
2716
2717 2020-10-13 Kamil Rytarowski <n54@gmx.com>
2718
2719 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
2720 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
2721 * alpha-bsd-nat.c: Adjust include.
2722 * alpha-bsd-tdep.h: Adjust comment.
2723 * alpha-nbsd-tdep.c: Rename to ...
2724 * alpha-netbsd-tdep.c: ... this, adjust include.
2725 * amd64-nbsd-nat.c: Rename to ...
2726 * amd64-netbsd-nat.c: ... this, adjust include.
2727 * amd64-nbsd-tdep.c: Rename to ...
2728 * amd64-netbsd-tdep.c: ... this, adjust include.
2729 * amd64-tdep.h: Adjust include.
2730 * arm-nbsd-nat.c: Rename to ...
2731 * arm-netbsd-nat.c: ... this, adjust include.
2732 * arm-nbsd-tdep.c: Rename to ...
2733 * arm-netbsd-tdep.c: ... this, adjust include.
2734 * arm-nbsd-tdep.h: Rename to ...
2735 * arm-netbsd-tdep.h: ... this, adjust include.
2736 * configure.nat: Adjust file lists.
2737 * configure.tgt: Likewise.
2738 * hppa-nbsd-nat.c: Rename to ...
2739 * hppa-netbsd-nat.c: ... this, adjust include.
2740 * hppa-nbsd-tdep.c: Rename to ...
2741 * hppa-netbsd-tdep.c: ... this, adjust include.
2742 * i386-nbsd-nat.c: Rename to ...
2743 * i386-netbsd-nat.c: ... this, adjust include.
2744 * i386-nbsd-tdep.c: Rename to ...
2745 * i386-netbsd-tdep.c: ... this, adjust include.
2746 * m68k-bsd-nat.c: Adjust include.
2747 * mips-nbsd-nat.c: Rename to ...
2748 * mips-netbsd-nat.c: ... this, adjust include.
2749 * mips-nbsd-tdep.c: Rename to ...
2750 * mips-netbsd-tdep.c: ... this, adjust include.
2751 * mips-nbsd-tdep.h: Rename to ...
2752 * mips-netbsd-tdep.h: ... this.
2753 * nbsd-nat.c: Rename to ...
2754 * netbsd-nat.c: ... this, adjust include.
2755 * nbsd-nat.h: Rename to ...
2756 * netbsd-nat.h: ... this, adjust include.
2757 * nbsd-tdep.c: Rename to ...
2758 * netbsd-tdep.c: ... this, adjust include.
2759 * nbsd-tdep.h: Rename to ...
2760 * netbsd-tdep.h: ... this.
2761 * ppc-nbsd-nat.c: Rename to ...
2762 * ppc-netbsd-nat.c: ... this, adjust include.
2763 * ppc-nbsd-tdep.c: Rename to ...
2764 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
2765 * ppc-nbsd-tdep.h: Rename to ...
2766 * ppc-netbsd-tdep.h: ... this.
2767 * sh-nbsd-nat.c: Rename to ...
2768 * sh-netbsd-nat.c: ... this, adjust include.
2769 * sh-nbsd-tdep.c: Rename to ...
2770 * sh-netbsd-tdep.c: ... this, adjust include.
2771 * sparc-nbsd-nat.c: Rename to ...
2772 * sparc-netbsd-nat.c: ... this.
2773 * sparc-nbsd-tdep.c: Rename to ...
2774 * sparc-netbsd-tdep.c: ... this, adjust include.
2775 * sparc64-nbsd-nat.c: Rename to ...
2776 * sparc64-netbsd-nat.c: ... this.
2777 * sparc64-nbsd-tdep.c: Rename to ...
2778 * sparc64-netbsd-tdep.c: ... this, adjust include.
2779 * sparc64-tdep.h: Adjust comment.
2780 * vax-bsd-nat.c: Adjust include.
2781 * vax-nbsd-tdep.c: Rename to ...
2782 * vax-netbsd-tdep.c: ... this, adjust include.
2783
2784 2020-10-12 Tom Tromey <tom@tromey.com>
2785
2786 * target.h (struct target_ops) <get_section_table>: Update.
2787 (target_get_section_table): Update.
2788 * target.c (target_get_section_table, target_section_by_addr)
2789 (memory_xfer_partial_1): Update.
2790 * target-section.h (target_section_table): Now an alias.
2791 * target-delegates.c: Rebuild.
2792 * target-debug.h (target_debug_print_target_section_table_p):
2793 Rename from target_debug_print_struct_target_section_table_p.
2794 * symfile.c (build_section_addr_info_from_section_table): Update.
2795 * solib.c (solib_map_sections, solib_contains_address_p): Update.
2796 * solib-svr4.c (scan_dyntag): Update.
2797 * solib-dsbt.c (scan_dyntag): Update.
2798 * remote.c (remote_target::remote_xfer_live_readonly_partial):
2799 Update.
2800 * record-full.c (record_full_core_target::xfer_partial): Update.
2801 * progspace.h (struct program_space) <target_sections>: Update.
2802 * exec.h (print_section_info): Update.
2803 * exec.c (exec_target::close, build_section_table)
2804 (add_target_sections, add_target_sections_of_objfile)
2805 (remove_target_sections, exec_on_vfork)
2806 (section_table_available_memory)
2807 (section_table_xfer_memory_partial)
2808 (exec_target::get_section_table, exec_target::xfer_partial)
2809 (print_section_info, set_section_command)
2810 (exec_set_section_address, exec_target::has_memory): Update.
2811 * corelow.c (core_target::build_file_mappings)
2812 (core_target::xfer_partial, core_target::info_proc_mappings)
2813 (core_target::info_proc_mappings): Update.
2814 * bfd-target.c (class target_bfd): Update
2815
2816 2020-10-12 Tom Tromey <tom@tromey.com>
2817
2818 * progspace.c (program_space::~program_space): Don't call
2819 clear_section_table.
2820 * exec.h (clear_section_table): Don't declare.
2821 * exec.c (exec_target::close): Update.
2822 (clear_section_table): Remove.
2823
2824 2020-10-12 Tom Tromey <tom@tromey.com>
2825
2826 * exec.c (add_target_sections_of_objfile): Simplify.
2827
2828 2020-10-12 Tom Tromey <tom@tromey.com>
2829
2830 * solib.c (solib_map_sections): Update.
2831 * record-full.c (record_full_core_open_1): Update.
2832 * exec.h (build_section_table): Return a target_section_table.
2833 * exec.c (exec_file_attach): Update.
2834 (build_section_table): Return a target_section_table.
2835 * corelow.c (core_target::core_target): Update.
2836 * bfd-target.c (target_bfd::target_bfd): Update.
2837
2838 2020-10-12 Tom Tromey <tom@tromey.com>
2839
2840 * target.c (target_section_by_addr, memory_xfer_partial_1):
2841 Update.
2842 * target-section.h (struct target_section_table): Use
2843 std::vector.
2844 * symfile.h (build_section_addr_info_from_section_table): Take a
2845 target_section_table.
2846 * symfile.c (build_section_addr_info_from_section_table): Take a
2847 target_section_table.
2848 * solist.h (struct so_list) <sections>: Change type.
2849 <sections_end>: Remove.
2850 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
2851 (solib_contains_address_p): Update.
2852 * solib-svr4.c (scan_dyntag): Update.
2853 * solib-dsbt.c (scan_dyntag): Update.
2854 * remote.c (remote_target::remote_xfer_live_readonly_partial):
2855 Update.
2856 * record-full.c (record_full_core_start, record_full_core_end):
2857 Remove.
2858 (record_full_core_sections): New global.
2859 (record_full_core_open_1, record_full_core_target::xfer_partial):
2860 Update.
2861 * exec.h (build_section_table, section_table_xfer_memory_partial)
2862 (add_target_sections): Take a target_section_table.
2863 * exec.c (exec_file_attach, clear_section_table): Update.
2864 (resize_section_table): Remove.
2865 (build_section_table, add_target_sections): Take a
2866 target_section_table.
2867 (add_target_sections_of_objfile, remove_target_sections)
2868 (exec_on_vfork): Update.
2869 (section_table_available_memory): Take a target_section_table.
2870 (section_table_read_available_memory): Update.
2871 (section_table_xfer_memory_partial): Take a target_section_table.
2872 (print_section_info, set_section_command)
2873 (exec_set_section_address, exec_target::has_memory): Update.
2874 * corelow.c (class core_target) <m_core_section_table,
2875 m_core_file_mappings>: Remove braces.
2876 <~core_target>: Remove.
2877 (core_target::core_target): Update.
2878 (core_target::~core_target): Remove.
2879 (core_target::build_file_mappings)
2880 (core_target::xfer_memory_via_mappings)
2881 (core_target::xfer_partial, core_target::info_proc_mappings):
2882 Update.
2883 * bfd-target.c (target_bfd::xfer_partial): Update.
2884 (target_bfd::target_bfd): Update.
2885 (target_bfd::~target_bfd): Remove.
2886
2887 2020-10-12 Tom Tromey <tom@tromey.com>
2888
2889 * target.h (struct target_section, struct target_section_table):
2890 Move to target-section.h.
2891 * target-section.h: New file.
2892
2893 2020-10-12 Pedro Alves <pedro@palves.net>
2894
2895 PR exp/26602
2896 * valops.c (struct struct_field_searcher): New.
2897 (update_search_result): Rename to ...
2898 (struct_field_searcher::update_result): ... this. Simplify
2899 prototype. Record all found fields.
2900 (do_search_struct_field): Rename to ...
2901 (struct_field_searcher::search): ... this. Simplify prototype.
2902 Maintain stack of visited baseclass path. Call update_result for
2903 fields too. Keep searching fields in baseclasses instead of
2904 stopping at the first found field.
2905 (search_struct_field): Use struct_field_searcher. When looking
2906 for fields, report ambiguous access attempts.
2907
2908 2020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
2909
2910 * frame.c (inside_main_func): Check full symbols as well as
2911 minimal symbols.
2912
2913 2020-10-09 Joel Brobecker <brobecker@adacore.com>
2914
2915 * ada-lang.c (advance_wild_match): Rewrite the function's
2916 description. Change the type of target0, t0 and t1 to char.
2917
2918 2020-10-09 Tom Tromey <tromey@adacore.com>
2919
2920 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
2921
2922 2020-10-09 Tom Tromey <tromey@adacore.com>
2923
2924 * ada-lang.h (ada_encode): Return std::string.
2925 * ada-lang.c (ada_encode_1): Return std::string.
2926 (ada_encode): Likewise.
2927 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
2928 Update.
2929 * ada-exp.y (block_lookup, write_var_or_type): Update.
2930
2931 2020-10-09 Hannes Domani <ssbssa@yahoo.de>
2932
2933 PR exp/26714
2934 * printcmd.c (print_formatted): Handle void results as
2935 unformatted prints.
2936
2937 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
2938
2939 * arch/aarch32.c (aarch32_create_target_description): Release the
2940 target_desc_up as late as possible.
2941 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2942 * arch/amd64.c (amd64_create_target_description): Likewise.
2943 * arch/arc.c (arc_create_target_description): Return a
2944 target_desc_up, don't release it.
2945 * arch/arc.h (arc_create_target_description): Update declaration.
2946 (arc_lookup_target_description): Move target_desc_up into the
2947 cache, and return a borrowed pointer.
2948 * arch/arm.c (arm_create_target_description): Release the
2949 target_desc_up as late as possible.
2950 * arch/i386.c (i386_create_target_description): Likewise.
2951 * arch/riscv.h (riscv_create_target_description): Update
2952 declaration to match definition.
2953 * arch/tic6x.c (tic6x_create_target_description): Release the
2954 target_desc_up as late as possible.
2955
2956 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
2957
2958 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
2959 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
2960
2961 2020-10-09 Jan Vrany <jan.vrany@labware.com>
2962
2963 * source.c (directory_command): Notify observers that "directories"
2964 parameter has changed.
2965
2966 2020-10-08 Tom Tromey <tom@tromey.com>
2967
2968 * cli/cli-cmds.c (print_disassembly): Style function name and
2969 addresses. Add _() wrappers.
2970
2971 2020-10-08 Shahab Vahedi <shahab@synopsys.com>
2972
2973 * NEWS: Mention ARC support in GDBserver.
2974
2975 2020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
2976
2977 * arch/aarch32.c (aarch32_create_target_description): Release
2978 unique_ptr returned from allocate_target_description.
2979 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2980 * arch/amd64.c (amd64_create_target_description): Likewise.
2981 * arch/arc.c (arc_create_target_description): Likewise.
2982 * arch/arm.c (arm_create_target_description): Likewise.
2983 * arch/i386.c (i386_create_target_description): Likewise.
2984 * arch/riscv.c (riscv_create_target_description): Update return
2985 type. Handle allocate_target_description returning a unique_ptr.
2986 (riscv_lookup_target_description): Update to handle unique_ptr.
2987 * arch/tic6x.c (tic6x_create_target_description): Release
2988 unique_ptr returned from allocate_target_description.
2989 * features/microblaze-with-stack-protect.c: Regenerate.
2990 * features/microblaze.c: Regenerate.
2991 * features/mips-dsp-linux.c: Regenerate.
2992 * features/mips-linux.c: Regenerate.
2993 * features/mips64-dsp-linux.c: Regenerate.
2994 * features/mips64-linux.c: Regenerate.
2995 * features/nds32.c: Regenerate.
2996 * features/nios2.c: Regenerate.
2997 * features/or1k.c: Regenerate.
2998 * features/rs6000/powerpc-32.c: Regenerate.
2999 * features/rs6000/powerpc-32l.c: Regenerate.
3000 * features/rs6000/powerpc-403.c: Regenerate.
3001 * features/rs6000/powerpc-403gc.c: Regenerate.
3002 * features/rs6000/powerpc-405.c: Regenerate.
3003 * features/rs6000/powerpc-505.c: Regenerate.
3004 * features/rs6000/powerpc-601.c: Regenerate.
3005 * features/rs6000/powerpc-602.c: Regenerate.
3006 * features/rs6000/powerpc-603.c: Regenerate.
3007 * features/rs6000/powerpc-604.c: Regenerate.
3008 * features/rs6000/powerpc-64.c: Regenerate.
3009 * features/rs6000/powerpc-64l.c: Regenerate.
3010 * features/rs6000/powerpc-7400.c: Regenerate.
3011 * features/rs6000/powerpc-750.c: Regenerate.
3012 * features/rs6000/powerpc-860.c: Regenerate.
3013 * features/rs6000/powerpc-altivec32.c: Regenerate.
3014 * features/rs6000/powerpc-altivec32l.c: Regenerate.
3015 * features/rs6000/powerpc-altivec64.c: Regenerate.
3016 * features/rs6000/powerpc-altivec64l.c: Regenerate.
3017 * features/rs6000/powerpc-e500.c: Regenerate.
3018 * features/rs6000/powerpc-e500l.c: Regenerate.
3019 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
3020 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
3021 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
3022 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
3023 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
3024 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
3025 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
3026 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
3027 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
3028 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
3029 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
3030 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
3031 * features/rs6000/powerpc-vsx32.c: Regenerate.
3032 * features/rs6000/powerpc-vsx32l.c: Regenerate.
3033 * features/rs6000/powerpc-vsx64.c: Regenerate.
3034 * features/rs6000/powerpc-vsx64l.c: Regenerate.
3035 * features/rs6000/rs6000.c: Regenerate.
3036 * features/rx.c: Regenerate.
3037 * features/s390-gs-linux64.c: Regenerate.
3038 * features/s390-linux32.c: Regenerate.
3039 * features/s390-linux32v1.c: Regenerate.
3040 * features/s390-linux32v2.c: Regenerate.
3041 * features/s390-linux64.c: Regenerate.
3042 * features/s390-linux64v1.c: Regenerate.
3043 * features/s390-linux64v2.c: Regenerate.
3044 * features/s390-te-linux64.c: Regenerate.
3045 * features/s390-tevx-linux64.c: Regenerate.
3046 * features/s390-vx-linux64.c: Regenerate.
3047 * features/s390x-gs-linux64.c: Regenerate.
3048 * features/s390x-linux64.c: Regenerate.
3049 * features/s390x-linux64v1.c: Regenerate.
3050 * features/s390x-linux64v2.c: Regenerate.
3051 * features/s390x-te-linux64.c: Regenerate.
3052 * features/s390x-tevx-linux64.c: Regenerate.
3053 * features/s390x-vx-linux64.c: Regenerate.
3054 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
3055 from allocate_target_description.
3056 * target-descriptions.c (allocate_target_description): Update
3057 return type.
3058 (print_c_tdesc::visit_pre): Release unique_ptr returned from
3059 allocate_target_description.
3060
3061 2020-10-07 Tom Tromey <tromey@adacore.com>
3062
3063 * unittests/search-memory-selftests.c: New file.
3064 * Makefile.in (SELFTESTS_SRCS): Add
3065 unittests/search-memory-selftests.c.
3066
3067 2020-10-07 Tom Tromey <tromey@adacore.com>
3068
3069 PR gdb/16930:
3070 * findcmd.c (_initialize_mem_search): Mention that the range is
3071 inclusive.
3072
3073 2020-10-07 Tom Tromey <tromey@adacore.com>
3074
3075 * target.h (simple_search_memory): Don't declare.
3076 * target.c (simple_search_memory): Move to gdbsupport.
3077 (default_search_memory): Update.
3078 * remote.c (remote_target::search_memory): Update.
3079
3080 2020-10-07 Simon Marchi <simon.marchi@efficios.com>
3081
3082 * Makefile.in (COMPILE): Add CXXFLAGS.
3083 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
3084 (check-headers): Add CXXFLAGS.
3085
3086 2020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
3087
3088 * arc-linux-tdep.h: New file.
3089 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
3090 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
3091 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
3092 arc_linux_gregset, arc_linux_v2_regset,
3093 arc_linux_iterate_over_regset_sections,
3094 arc_linux_core_read_description): Implement.
3095 (arc_linux_init_osabi): Set iterate_over_regset_sections.
3096 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
3097 (arc_gdbarch_features_create): Add.
3098 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
3099
3100 2020-10-07 Shahab Vahedi <shahab@synopsys.com>
3101
3102 * arch/arc.h: Rename "arc_gdbarch_features" to
3103 "arc_arch_features".
3104 * arc-tdep.h: Likewise.
3105 * arc-tdep.c: Likewise.
3106
3107 2020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3108
3109 * infcmd.c (attach_command): Remove the redundant call to
3110 `clear_proceed_status`.
3111
3112 2020-10-07 Kamil Rytarowski <n54@gmx.com>
3113
3114 * nat/netbsd-nat.c (write_memory, read_memory): Update.
3115
3116 2020-10-07 Kamil Rytarowski <n54@gmx.com>
3117
3118 * nat/netbsd-nat.c (write_memory, read_memory): Add.
3119 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
3120 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
3121
3122 2020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
3123
3124 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
3125 (_initialize_break_catch_sig): Don't allocate array.
3126
3127 2020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
3128
3129 * symtab.c (find_pc_line): Return unmapped addresses when the
3130 requested address is also unmapped.
3131
3132 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
3133
3134 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
3135 tui/tui-out.h.
3136
3137 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
3138
3139 * amd64-windows-tdep.c (amd64_windows_return_value): Use
3140 type::is_vector instead of TYPE_VECTOR.
3141
3142 2020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
3143
3144 * auto-load.c (auto_load_objfile_script_1): Don't use
3145 debugfile_holder as temporary variable when stripping drive
3146 letter.
3147
3148 2020-10-05 Hannes Domani <ssbssa@yahoo.de>
3149
3150 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
3151 Add TYPE_CODE_COMPLEX.
3152 (amd64_windows_return_value): Fix types returned via XMM0.
3153
3154 2020-10-05 Alan Hayward <alan.hayward@arm.com>
3155
3156 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
3157 AArch64/ARM maintainers.
3158
3159 2020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
3160
3161 * NEWS: Mention set/show debug event-loop.
3162
3163 2020-10-02 Tom Tromey <tromey@adacore.com>
3164
3165 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
3166 REG_EXTENDED.
3167
3168 2020-10-02 Simon Marchi <simon.marchi@efficios.com>
3169
3170 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
3171 * procfs.c (procfs_inferior_created): Remove.
3172 (_initialize_procfs): Don't register procfs_inferior_created.
3173
3174 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3175
3176 * async-event.c (invoke_async_signal_handlers): Add debug
3177 print.
3178 (check_async_event_handlers): Likewise.
3179 * event-top.c (show_debug_event_loop): New function.
3180 (_initialize_event_top): Register "set debug event-loop"
3181 setting.
3182
3183 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3184
3185 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
3186 * debug.h: Remove.
3187 * infrun.c: Include gdbsupport/common-debug.h.
3188 * linux-nat.c: Likewise.
3189
3190 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3191
3192 * async-event.h (create_async_signal_handler): Add name
3193 parameter.
3194 (create_async_event_handler): Likewise.
3195 * async-event.c (struct async_signal_handler) <name>: New field.
3196 (struct async_event_handler) <name>: New field.
3197 (create_async_signal_handler): Assign name.
3198 (create_async_event_handler): Assign name.
3199 * event-top.c (async_init_signals): Pass name when creating
3200 handler.
3201 * infrun.c (_initialize_infrun): Likewise.
3202 * record-btrace.c (record_btrace_push_target): Likewise.
3203 * record-full.c (record_full_open): Likewise.
3204 * remote-notif.c (remote_notif_state_allocate): Likewise.
3205 * remote.c (remote_target::open_1): Likewise.
3206 * tui/tui-win.c (tui_initialize_win): Likewise.
3207
3208 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3209
3210 * async-event.c (initialize_async_signal_handlers): Pass name to
3211 add_file_handler
3212 * event-top.c (ui_register_input_event_handler): Likewise.
3213 * linux-nat.c (linux_nat_target::async): Likewise.
3214 * run-on-main-thread.c (_initialize_run_on_main_thread):
3215 Likewise
3216 * ser-base.c (reschedule): Likewise.
3217 (ser_base_async): Likewise.
3218 * tui/tui-io.c: Likewise.
3219 * top.h (struct ui) <num>: New field.
3220 * top.c (highest_ui_num): New variable.
3221 (ui::ui): Initialize num.
3222
3223 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3224
3225 * observable.h <inferior_created>: Remove parameters. Update all
3226 listeners.
3227 * inferior.h (post_create_inferior): Remove target parameter.
3228 Update all callers.
3229
3230 2020-10-02 Nitika Achra <Nitika.Achra@amd.com>
3231
3232 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
3233 and DW_MACRO_undef_strx.
3234 (dwarf_decode_macros): Likewise
3235 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
3236 which is the value of DW_AT_str_offsets_base.
3237 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
3238 str_offsets_base.
3239
3240 2020-10-01 Kamil Rytarowski <n54@gmx.com>
3241
3242 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
3243
3244 2020-10-01 Kamil Rytarowski <n54@gmx.com>
3245
3246 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
3247 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
3248
3249 2020-10-01 Kamil Rytarowski <n54@gmx.com>
3250
3251 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
3252
3253 2020-09-30 Tom de Vries <tdevries@suse.de>
3254
3255 PR symtab/26683
3256 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
3257
3258 2020-09-30 Tom Tromey <tromey@adacore.com>
3259
3260 * dwarf2/read.c (handle_variant): Use constant_value.
3261
3262 2020-09-29 Tom Tromey <tom@tromey.com>
3263
3264 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
3265 (read_file_scope, dwarf2_get_pc_bounds)
3266 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
3267 (read_structure_type, handle_struct_member_die)
3268 (read_enumeration_type, read_array_type, read_set_type)
3269 (read_tag_pointer_type, read_tag_reference_type)
3270 (read_subroutine_type, read_base_type, read_subrange_type)
3271 (read_full_die_1, partial_die_info::read)
3272 (partial_die_info::read, by, new_symbol)
3273 (dwarf2_const_value_data, dwarf2_const_value_attr)
3274 (dump_die_shallow, dwarf2_fetch_constant_bytes)
3275 (prepare_one_comp_unit): Update.
3276 * dwarf2/attribute.h (DW_UNSND): Remove.
3277
3278 2020-09-29 Tom Tromey <tom@tromey.com>
3279
3280 * dwarf2/read.c (read_func_scope, prototyped_function_p)
3281 (read_subroutine_type, partial_die_info::read)
3282 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
3283 (dwarf2_add_member_fn): Update.
3284 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
3285 * dwarf2/attribute.c (attribute::as_boolean): New method.
3286
3287 2020-09-29 Tom Tromey <tom@tromey.com>
3288
3289 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
3290 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
3291 method.
3292 * dwarf2/attribute.c (attribute::as_virtuality): New method.
3293
3294 2020-09-29 Tom Tromey <tom@tromey.com>
3295
3296 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
3297 the attribute's form.
3298
3299 2020-09-29 Tom Tromey <tom@tromey.com>
3300
3301 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
3302 (dwarf2_add_member_fn): Update.
3303 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
3304 * dwarf2/attribute.c (attribute::defaulted): New method, from
3305 is_valid_DW_AT_defaulted.
3306
3307 2020-09-29 Tom Tromey <tom@tromey.com>
3308
3309 * dwarf2/read.c (dw2_get_file_names_reader)
3310 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
3311 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
3312 (dwarf2_symbol_mark_computed): Use as_unsigned.
3313 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
3314 method.
3315 <form_is_section_offset>: Update comment.
3316
3317 2020-09-29 Tom Tromey <tom@tromey.com>
3318
3319 * dwarf2/read.c (dwarf2_access_attribute): Rename from
3320 dwarf2_default_access_attribute. Look up attribute.
3321 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
3322 Update.
3323
3324 2020-09-29 Tom Tromey <tom@tromey.com>
3325
3326 * dwarf2/read.c (skip_one_die): Update.
3327 (read_full_die_1): Change how reprocessing is done.
3328 (partial_die_info::read): Update.
3329 (read_attribute_value): Remove need_reprocess parameter.
3330 (read_attribute): Likewise.
3331 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
3332 New method.
3333
3334 2020-09-29 Tom Tromey <tom@tromey.com>
3335
3336 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
3337 (dwarf2_const_value_attr, dump_die_shallow)
3338 (dwarf2_fetch_constant_bytes): Update.
3339 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
3340 comment.
3341 <set_address>: New method.
3342 (DW_ADDR): Remove.
3343 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
3344 (attribute::as_string, attribute::as_address): Add assert.
3345
3346 2020-09-29 Tom Tromey <tom@tromey.com>
3347
3348 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
3349 (read_attribute_reprocess, read_attribute_value): Update.
3350 (read_attribute): Clear requires_reprocessing.
3351 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
3352 form_requires_reprocessing>: New methods.
3353 <string_init>: Clear requires_reprocessing.
3354 <set_unsigned_reprocess>: New method.
3355 <name>: Shrink by one bit.
3356 <requires_reprocessing>: New member.
3357 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
3358 method.
3359
3360 2020-09-29 Tom Tromey <tom@tromey.com>
3361
3362 * dwarf2/read.c (read_attribute_value): Update.
3363 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
3364 set_unsigned>: New methods.
3365 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
3366
3367 2020-09-29 Tom Tromey <tom@tromey.com>
3368
3369 * dwarf2/read.c (get_alignment, read_array_order)
3370 (read_attribute_value, dwarf2_const_value_attr)
3371 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
3372 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
3373 New methods.
3374 (DW_SND): Remove.
3375
3376 2020-09-29 Tom Tromey <tom@tromey.com>
3377
3378 * dwarf2/read.c (read_attribute_value, lookup_die_type)
3379 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
3380 Update.
3381 * dwarf2/attribute.h (struct attribute) <as_signature,
3382 set_signature>: New methods.
3383 (DW_SIGNATURE): Remove.
3384
3385 2020-09-29 Tom Tromey <tom@tromey.com>
3386
3387 * dwarf2/read.c (read_call_site_scope)
3388 (handle_data_member_location, dwarf2_add_member_fn)
3389 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3390 (partial_die_info::read, read_attribute_value)
3391 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
3392 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
3393 (dwarf2_symbol_mark_computed): Update.
3394 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
3395 methods.
3396 (DW_BLOCK): Remove.
3397 * dwarf2/attribute.c (attribute::form_is_block): Add
3398 DW_FORM_data16.
3399
3400 2020-09-29 Tom Tromey <tom@tromey.com>
3401
3402 * dwarf2/read.c (read_cutu_die_from_dwo)
3403 (read_attribute_reprocess, read_attribute_value, read_attribute)
3404 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
3405 (dwarf2_fetch_constant_bytes): Update.
3406 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
3407 <set_string_noncanonical, set_string_canonical>: New methods.
3408 <string_is_canonical>: Update comment.
3409 <canonical_string_p>: Add assert.
3410 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
3411 * dwarf2/attribute.c (attribute::form_is_string): New method.
3412 (attribute::string): Use it.
3413
3414 2020-09-29 Tom Tromey <tom@tromey.com>
3415
3416 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
3417 (dump_die_shallow): Use canonical_string_p.
3418 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
3419 method.
3420
3421 2020-09-29 Tom Tromey <tom@tromey.com>
3422
3423 * dwarf2/read.c (partial_die_info::read)
3424 (dwarf2_const_value_attr, anonymous_struct_prefix, )
3425 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
3426 attribute::as_string.
3427
3428 2020-09-29 Tom Tromey <tom@tromey.com>
3429
3430 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
3431 DW_ADDR.
3432 (attribute::string): Don't use DW_STRING.
3433 (attribute::get_ref_die_offset): Don't use DW_UNSND.
3434 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
3435
3436 2020-09-29 Tom Tromey <tom@tromey.com>
3437
3438 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
3439 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
3440 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
3441 * dwarf2/attribute.h (struct attribute): Rename methods.
3442 * dwarf2/attribute.c (attribute::as_address): Rename from
3443 value_as_address.
3444 (attribute::as_string): Rename from value_as_string.
3445
3446 2020-09-29 Tom Tromey <tom@tromey.com>
3447
3448 * dwarf2/read.c (partial_die_info::read) <case
3449 DW_AT_linkage_name>: Use value_as_string.
3450 (dwarf2_string_attr): Use value_as_string.
3451 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
3452 method.
3453 * dwarf2/attribute.c (attribute::value_as_string): New method.
3454
3455 2020-09-29 Pedro Alves <pedro@palves.net>
3456
3457 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
3458 defined before using '#pragma GCC diagnostic' instead of checking
3459 __clang__.
3460
3461 2020-09-28 Tom Tromey <tom@tromey.com>
3462
3463 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
3464 (handle_signal_stop): Update.
3465 * procfs.c (procfs_target::insert_watchpoint): Update.
3466 * target.h (target_have_steppable_watchpoint): Now a function.
3467
3468 2020-09-28 Tom Tromey <tom@tromey.com>
3469
3470 * infrun.c (set_schedlock_func): Update.
3471 * target.h (target_can_lock_scheduler): Now a function.
3472
3473 2020-09-28 Tom Tromey <tom@tromey.com>
3474
3475 * inferior.h (class inferior) <has_execution>: Update.
3476 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
3477 * valops.c (find_function_in_inferior)
3478 (value_allocate_space_in_inferior): Update.
3479 * top.c (kill_or_detach): Update.
3480 * target.c (target_preopen, set_target_permissions): Update.
3481 (target_has_execution_current): Remove.
3482 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
3483 Update.
3484 * solib.c (update_solib_list, reload_shared_libraries): Update.
3485 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
3486 * solib-dsbt.c (enable_break): Update.
3487 * score-tdep.c (score7_fetch_inst): Update.
3488 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
3489 Update.
3490 * remote.c (remote_target::start_remote)
3491 (remote_target::remote_check_symbols, remote_target::open_1)
3492 (remote_target::remote_detach_1, remote_target::verify_memory)
3493 (remote_target::xfer_partial, remote_target::read_description)
3494 (remote_target::get_min_fast_tracepoint_insn_len): Update.
3495 * record-full.c (record_full_open_1): Update.
3496 * record-btrace.c (record_btrace_target_open): Update.
3497 * objc-lang.c (lookup_objc_class, lookup_child_selector)
3498 (value_nsstring): Update.
3499 * linux-thread-db.c (add_thread_db_info)
3500 (thread_db_find_new_threads_silently, check_thread_db_callback)
3501 (try_thread_db_load_1, record_thread): Update.
3502 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
3503 Update.
3504 * linux-fork.c (checkpoint_command): Update.
3505 * infrun.c (set_non_stop, set_observer_mode)
3506 (check_multi_target_resumption, for_each_just_stopped_thread)
3507 (maybe_remove_breakpoints, normal_stop)
3508 (class infcall_suspend_state): Update.
3509 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
3510 (info_program_command, attach_command): Update.
3511 * infcall.c (call_function_by_hand_dummy): Update.
3512 * inf-loop.c (inferior_event_handler): Update.
3513 * gcore.c (gcore_command, derive_heap_segment): Update.
3514 * exec.c (exec_file_command): Update.
3515 * eval.c (evaluate_subexp): Update.
3516 * compile/compile.c (compile_to_object): Update.
3517 * cli/cli-dump.c (restore_command): Update.
3518 * breakpoint.c (update_watchpoint)
3519 (update_inserted_breakpoint_locations)
3520 (insert_breakpoint_locations, get_bpstat_thread): Update.
3521 * target.h (target_has_execution): Remove macro.
3522 (target_has_execution_current): Don't declare.
3523 (target_has_execution): Rename from target_has_execution_1. Add
3524 argument default.
3525
3526 2020-09-28 Tom Tromey <tom@tromey.com>
3527
3528 * mi/mi-main.c (exec_reverse_continue)
3529 (mi_cmd_list_target_features): Update.
3530 * infrun.c (set_exec_direction_func): Update.
3531 * target.c (default_execution_direction): Update.
3532 * reverse.c (exec_reverse_once): Update.
3533 * target.h (target_can_execute_reverse): Now a function.
3534
3535 2020-09-28 Tom Tromey <tom@tromey.com>
3536
3537 * tui/tui-regs.c (tui_get_register)
3538 (tui_data_window::show_registers): Update.
3539 * thread.c (scoped_restore_current_thread::restore)
3540 (scoped_restore_current_thread::scoped_restore_current_thread):
3541 Update.
3542 * regcache-dump.c (regcache_print): Update.
3543 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
3544 Update.
3545 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
3546 * mep-tdep.c (current_me_module, current_options): Update.
3547 * linux-thread-db.c (thread_db_load): Update.
3548 * infcmd.c (registers_info, info_vector_command)
3549 (info_float_command): Update.
3550 * ia64-tdep.c (ia64_frame_prev_register)
3551 (ia64_sigtramp_frame_prev_register): Update.
3552 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
3553 * gcore.c (derive_stack_segment): Update.
3554 * frame.c (get_current_frame, has_stack_frames): Update.
3555 * findvar.c (language_defn::read_var_value): Update.
3556 * arm-tdep.c (arm_pc_is_thumb): Update.
3557 * target.c (target_has_registers): Rename from
3558 target_has_registers_1.
3559 * target.h (target_has_registers): Remove macro.
3560 (target_has_registers): Rename from target_has_registers_1.
3561
3562 2020-09-28 Tom Tromey <tom@tromey.com>
3563
3564 * windows-tdep.c (tlb_make_value): Update.
3565 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3566 * thread.c (scoped_restore_current_thread::restore)
3567 (scoped_restore_current_thread::scoped_restore_current_thread)
3568 (thread_command): Update.
3569 * stack.c (backtrace_command_1, frame_apply_level_command)
3570 (frame_apply_all_command, frame_apply_command): Update.
3571 * infrun.c (siginfo_make_value, restore_infcall_control_state):
3572 Update.
3573 * gcore.c (derive_stack_segment): Update.
3574 * frame.c (get_current_frame, has_stack_frames): Update.
3575 * auxv.c (info_auxv_command): Update.
3576 * ada-tasks.c (ada_build_task_list): Update.
3577 * target.c (target_has_stack): Rename from target_has_stack_1.
3578 * target.h (target_has_stack): Remove macro.
3579 (target_has_stack): Rename from target_has_stack_1.
3580
3581 2020-09-28 Tom Tromey <tom@tromey.com>
3582
3583 * target.c (target_has_memory): Rename from target_has_memory_1.
3584 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3585 * thread.c (scoped_restore_current_thread::restore)
3586 (scoped_restore_current_thread::scoped_restore_current_thread):
3587 Update.
3588 * frame.c (get_current_frame, has_stack_frames): Update.
3589 * target.h (target_has_memory): Remove macro.
3590 (target_has_memory): Rename from target_has_memory_1.
3591
3592 2020-09-28 Tom Tromey <tom@tromey.com>
3593
3594 * target.c (target_has_all_memory_1): Remove.
3595 * target.h (target_has_all_memory): Remove define.
3596 (target_has_all_memory_1): Don't declare.
3597
3598 2020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
3599
3600 * ser-base.c: Adjust comments formatting.
3601
3602 2020-09-27 Tom Tromey <tom@tromey.com>
3603
3604 PR tui/25342:
3605 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
3606
3607 2020-09-27 Tom Tromey <tom@tromey.com>
3608
3609 PR tui/25342:
3610 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
3611
3612 2020-09-27 Tom Tromey <tom@tromey.com>
3613
3614 * unittests/tui-selftests.c: Update.
3615 * tui/tui-winsource.h (struct tui_source_window_base)
3616 <extra_margin, show_line_number, refresh_pad>: New methods.
3617 <m_max_length, m_pad>: New members.
3618 (tui_copy_source_line): Update.
3619 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
3620 first_col, line_width, ndigits parameters. Add length.
3621 (tui_source_window_base::show_source_line): Write to pad. Line
3622 number now 0-based.
3623 (tui_source_window_base::refresh_pad): New method.
3624 (tui_source_window_base::show_source_content): Write to pad. Call
3625 refresh_pad.
3626 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
3627 not refill.
3628 (tui_source_window_base::update_exec_info): Call
3629 show_line_number.
3630 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
3631 method.
3632 <m_digits>: New member.
3633 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
3634 and m_max_length.
3635 (tui_source_window::show_line_number): New method.
3636 * tui/tui-io.h (tui_puts): Fix comment.
3637 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
3638 m_max_length.
3639
3640 2020-09-27 Tom Tromey <tom@tromey.com>
3641
3642 * tui/tui-winsource.c
3643 (tui_source_window_base::set_is_exec_point_at): Don't call
3644 show_source_line.
3645
3646 2020-09-27 Tom Tromey <tom@tromey.com>
3647
3648 * python/py-tui.c (class tui_py_window) <refresh_window>: New
3649 method.
3650 <erase>: Update.
3651 <cursor_x, cursor_y>: Remove.
3652 <m_inner_window>: New member.
3653 (tui_py_window::rerender): Create inner window.
3654 (tui_py_window::output): Write to inner window.
3655
3656 2020-09-26 Gareth Rees <grees@undo.io> (tiny change)
3657
3658 PR python/26586
3659 * cli/cli-script.c (execute_control_commands): don't set
3660 instream to nullptr here as this breaks the from_tty argument
3661 to gdb.execute in Python.
3662 (execute_user_command): set instream to nullptr here instead.
3663
3664 2020-09-25 Simon Marchi <simon.marchi@efficios.com>
3665
3666 * infrun.h (infrun_debug_printf): Fix formatting.
3667 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
3668
3669 2020-09-25 Saagar Jha <saagar@saagarjha.com>
3670
3671 * compile/compile-object-load.h (struct munmap_list): Add
3672 explicitly-defined move constructor.
3673
3674 2020-09-24 Tom Tromey <tromey@adacore.com>
3675
3676 PR tui/26638:
3677 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
3678 method.
3679 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
3680 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
3681 (tui_prev_win): Rewrite.
3682
3683 2020-09-23 Hannes Domani <ssbssa@yahoo.de>
3684
3685 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
3686 in WOW64 processes as SIGINT.
3687 * nat/windows-nat.h: Make wow64_process a shared variable.
3688 * windows-nat.c: Remove static wow64_process variable.
3689
3690 2020-09-23 Tom Tromey <tom@tromey.com>
3691
3692 PR symtab/25470:
3693 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
3694 offset and bit size.
3695 * printcmd.c (print_scalar_formatted): Handle zero-length
3696 integer.
3697 (print_scalar_formatted): Use bit_size_differs_p.
3698 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
3699 constant.
3700 (union type_specific): <int_stuff>: New member.
3701 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
3702 methods.
3703 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
3704 TYPE_SPECIFIC_FIELD.
3705 (recursive_dump_type, copy_type_recursive): Update.
3706 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
3707 DW_AT_data_bit_offset.
3708
3709 2020-09-23 Tom Tromey <tom@tromey.com>
3710
3711 * utils.h (class gdb_argv): Add move operators.
3712 <append>: New methods.
3713 * compile/compile.c (build_argc_argv): Remove.
3714 (compile_args_argc): Remove.
3715 (compile_args_argv): Change type.
3716 (set_compile_args): Simplify.
3717 (append_args): Remove.
3718 (filter_args): Remove argcp parameter.
3719 (get_args): Return gdb_argv. Simplify.
3720 (compile_to_object): Update.
3721
3722 2020-09-23 Tom Tromey <tom@tromey.com>
3723
3724 * compile/compile-object-run.c (do_module_cleanup)
3725 <~do_module_cleanup> :Remove.
3726 (do_module_cleanup): Update.
3727 * compile/compile-object-load.h (struct munmap_list): Add move
3728 assignment operator.
3729 <source_file>: Now a std::string.
3730 <munmap_list>: Rename. No longer a pointer.
3731 * compile/compile-object-load.c (struct setup_sections_data): Add
3732 constructor.
3733 <setup_one_section>: Declare.
3734 <munmap_list>: Move earlier.
3735 <m_bfd>: New member.
3736 <m_last_size, m_last_section_first, m_last_prot,
3737 m_last_max_alignment>: Rename, add initializers where needed.
3738 (setup_sections_data::setup_one_section): Rename from
3739 setup_sections. Update.
3740 (compile_object_load): Update. Don't use bfd_map_over_sections.
3741
3742 2020-09-23 Tom Tromey <tom@tromey.com>
3743
3744 * compile/compile-object-run.c (struct do_module_cleanup): Add
3745 parameters to constructor. Update destructor.
3746 <source_file, scope, scope_data, out_value_type, out_value_addr,
3747 munmap_list_head, objfile_name_string>: Remove.
3748 <module>: New member.
3749 (do_module_cleanup): Update.
3750 (compile_object_run): Update.
3751
3752 2020-09-23 Tom Tromey <tom@tromey.com>
3753
3754 * compile/compile.c (eval_compile_command): Update.
3755 * compile/compile-object-run.h (compile_object_run): Take a
3756 compile_module_up.
3757 * compile/compile-object-run.c (compile_object_run): Take a
3758 compile_module_up.
3759 * compile/compile-object-load.h (struct compile_module): Add
3760 constructor, destructor.
3761 (compile_module_up): New typedef.
3762 (compile_object_load): Return compile_object_up.
3763 * compile/compile-object-load.c (compile_object_load): Return
3764 compile_module_up.
3765
3766 2020-09-23 Tom Tromey <tom@tromey.com>
3767
3768 * compile/compile-object-run.c (struct do_module_cleanup): Add
3769 constructor, destructor.
3770 <objfile_name_string>: Don't use struct hack.
3771 (do_module_cleanup): Use delete.
3772 (compile_object_run): Use new.
3773
3774 2020-09-23 Tom Tromey <tom@tromey.com>
3775
3776 * compile/compile-cplus-types.c
3777 (compile_cplus_convert_struct_or_union): Use std::vector.
3778 (compile_cplus_convert_func): Likewise.
3779 * compile/compile-c-types.c (convert_func): Use std::vector.
3780
3781 2020-09-21 Tom Tromey <tromey@adacore.com>
3782
3783 * sparc-tdep.c (sparc32_skip_prologue): Use
3784 skip_prologue_using_sal.
3785
3786 2020-09-19 Tom Tromey <tom@tromey.com>
3787
3788 * symfile.c (add_section_size_callback): Remove.
3789 (load_one_section): Rename from load_section_callback. Change
3790 parameters.
3791 (generic_load): Use foreach.
3792
3793 2020-09-19 Tom Tromey <tom@tromey.com>
3794
3795 * exec.c (add_to_section_table): Remove.
3796 (build_section_table): Use foreach.
3797
3798 2020-09-19 Tom Tromey <tom@tromey.com>
3799
3800 * elfread.c (elf_locate_sections): Change parameters.
3801 (elf_symfile_read): Use foreach.
3802
3803 2020-09-19 Tom Tromey <tom@tromey.com>
3804
3805 * cli/cli-dump.c (struct callback_data): Remove.
3806 (restore_one_section): Rename from restore_section_callback.
3807 Change parameters.
3808 (restore_binary_file): Change parameters.
3809 (restore_command): Use foreach.
3810
3811 2020-09-19 Tom Tromey <tom@tromey.com>
3812
3813 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
3814 (gcore_copy_callback): Likewise.
3815 (gcore_memory_sections): Use foreach.
3816
3817 2020-09-19 Tom Tromey <tom@tromey.com>
3818
3819 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
3820 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
3821 parameters.
3822 (generic_elf_osabi_sniffer): Use foreach.
3823 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
3824 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
3825
3826 2020-09-19 Tom Tromey <tom@tromey.com>
3827
3828 * dwarf2/read.c (locate_dwz_sections): Change parameters.
3829 (dwarf2_get_dwz_file): Use foreach.
3830 (dwarf2_locate_dwo_sections): Change parameters.
3831 (open_and_init_dwo_file): Use foreach.
3832 (dwarf2_locate_common_dwp_sections): Change parameters.
3833 (open_and_init_dwp_file): Use foreach.
3834
3835 2020-09-19 Tom Tromey <tom@tromey.com>
3836
3837 * symfile.h: (find_lowest_section): Don't declare.
3838 * symfile.c (find_lowest_section): Now static. Change
3839 parameters.
3840 (struct place_section_arg): Remove.
3841 (place_section): Change parameters.
3842 (addr_info_make_relative): Use foreach.
3843 (symfile_dummy_outputs): Remove.
3844 (default_symfile_relocate): Use foreach.
3845
3846 2020-09-19 Tom Tromey <tom@tromey.com>
3847
3848 * objfiles.c (add_to_objfile_sections): Rename from
3849 add_to_objfile_sections_full.
3850 (add_to_objfile_sections): Remove.
3851 (build_objfile_section_table): Use foreach.
3852
3853 2020-09-19 Tom Tromey <tom@tromey.com>
3854
3855 * stap-probe.c (get_stap_base_address_1): Remove.
3856 (get_stap_base_address): Use foreach.
3857
3858 2020-09-19 Tom Tromey <tom@tromey.com>
3859
3860 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
3861 parameters.
3862 (gdb_bfd_close_or_warn): Use foreach.
3863
3864 2020-09-19 Tom Tromey <tom@tromey.com>
3865
3866 * corelow.c (add_to_thread_list): Change parameters.
3867 (core_target_open): Use foreach.
3868
3869 2020-09-19 Tom Tromey <tom@tromey.com>
3870
3871 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
3872 existing function.
3873
3874 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3875
3876 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
3877 for arrays.
3878
3879 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3880
3881 * eval.c: Remove 'f-lang.h' include.
3882 (value_f90_subarray): Moved to f-lang.c.
3883 (eval_call): Renamed to...
3884 (evaluate_subexp_do_call): ...this, is no longer static, header
3885 comment moved into header file.
3886 (evaluate_funcall): Update call to eval_call.
3887 (skip_undetermined_arglist): Moved to f-lang.c.
3888 (fortran_value_subarray): Likewise.
3889 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3890 moved to evaluate_subexp_f.
3891 (calc_f77_array_dims): Moved to f-lang.c
3892 * expprint.c (print_subexp_funcall): New function.
3893 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3894 moved to print_subexp_f, OP_FUNCALL uses new function.
3895 (dump_subexp_body_funcall): New function.
3896 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
3897 moved to dump_subexp_f, OP_FUNCALL uses new function.
3898 * expression.h (evaluate_subexp_do_call): Declare.
3899 * f-lang.c (value_f90_subarray): Moved from eval.c.
3900 (skip_undetermined_arglist): Likewise.
3901 (calc_f77_array_dims): Likewise.
3902 (fortran_value_subarray): Likewise.
3903 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
3904 (operator_length_f): Likewise.
3905 (print_subexp_f): Likewise.
3906 (dump_subexp_body_f): Likewise.
3907 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
3908 declaration of this operation to here.
3909 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
3910 support moved to operator_length_f.
3911 * parser-defs.h (dump_subexp_body_funcall): Declare.
3912 (print_subexp_funcall): Declare.
3913 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
3914 fortran-operator.def.
3915
3916 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3917
3918 * eval.c (fortran_value_subarray): New function, content is taken
3919 from...
3920 (evaluate_subexp_standard): ...here, in two places. Now arrays
3921 and strings both call the new function.
3922 (calc_f77_array_dims): Add header comment, handle strings.
3923
3924 2020-09-18 Victor Collod <vcollod@nvidia.com>
3925
3926 PR gdb/26635
3927 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
3928 (i386_analyze_prologue): Call i386_skip_endbr.
3929
3930 2020-09-18 Tom Tromey <tromey@adacore.com>
3931
3932 * windows-nat.c (struct windows_nat_target) <wait>: Update.
3933 (windows_nat_target::wait): Update.
3934 * target/wait.h (enum target_wait_flag): New. Use
3935 DEF_ENUM_FLAGS_TYPE.
3936 * target/target.h (target_wait): Change type of options.
3937 * target.h (target_options_to_string, default_target_wait):
3938 Update.
3939 (struct target_ops) <wait>: Change type of options.
3940 * target.c (target_wait, default_target_wait, do_option): Change
3941 type of "options".
3942 (target_options_to_string): Likewise.
3943 * target-delegates.c: Rebuild.
3944 * target-debug.h (target_debug_print_target_wait_flags): Rename
3945 from target_debug_print_options.
3946 * sol-thread.c (class sol_thread_target) <wait>: Update.
3947 (sol_thread_target::wait): Update.
3948 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
3949 (rs6000_nat_target::wait): Update.
3950 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
3951 Update.
3952 (remote_target::wait_ns, remote_target::wait_as): Change type of
3953 "options".
3954 (remote_target::wait): Update.
3955 * remote-sim.c (struct gdbsim_target) <wait>: Update.
3956 (gdbsim_target::wait): Update.
3957 * record-full.c (class record_full_base_target) <wait>: Update.
3958 (record_full_wait_1): Change type of "options".
3959 (record_full_base_target::wait): Update.
3960 * record-btrace.c (class record_btrace_target) <wait>: Update.
3961 (record_btrace_target::wait): Update.
3962 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
3963 Update.
3964 (ravenscar_thread_target::wait): Update.
3965 * procfs.c (class procfs_target) <wait>: Update.
3966 (procfs_target::wait): Update.
3967 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
3968 * obsd-nat.c (obsd_nat_target::wait): Update.
3969 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
3970 (nto_procfs_target::wait): Update.
3971 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
3972 * nbsd-nat.c (nbsd_wait): Change type of "options".
3973 (nbsd_nat_target::wait): Update.
3974 * linux-thread-db.c (class thread_db_target) <wait>: Update.
3975 (thread_db_target::wait): Update.
3976 * linux-nat.h (class linux_nat_target) <wait>: Update.
3977 * linux-nat.c (linux_nat_target::wait): Update.
3978 (linux_nat_wait_1): Update.
3979 * infrun.c (do_target_wait_1, do_target_wait): Change type of
3980 "options".
3981 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
3982 * inf-ptrace.c (inf_ptrace_target::wait): Update.
3983 * go32-nat.c (struct go32_nat_target) <wait>: Update.
3984 (go32_nat_target::wait): Update.
3985 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
3986 * gnu-nat.c (gnu_nat_target::wait): Update.
3987 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
3988 * fbsd-nat.c (fbsd_nat_target::wait): Update.
3989 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
3990 * darwin-nat.c (darwin_nat_target::wait): Update.
3991 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
3992 (bsd_uthread_target::wait): Update.
3993 * aix-thread.c (class aix_thread_target) <wait>: Update.
3994 (aix_thread_target::wait): Update.
3995
3996 2020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
3997
3998 * compile/compile-object-run.c (create_copied_type_recursive): New
3999 function.
4000 (compile_object_run): Use new function.
4001
4002 2020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
4003
4004 * NEWS: Mention x86_64 Cygwin core file support.
4005
4006 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4007
4008 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
4009 (core_process_module_section): Handle NOTE_INFO_MODULE64.
4010
4011 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4012
4013 * windows-tdep.h: Add prototypes.
4014 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
4015 (i386_windows_core_pid_to_str): Move and rename ...
4016 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
4017 (windows_core_pid_to_str): ... and here.
4018 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
4019
4020 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4021 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
4022 (amd64_windows_init_abi_common): ... and register.
4023
4024 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4025
4026 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
4027 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
4028
4029 2020-09-18 Pedro Alves <pedro@palves.net>
4030
4031 PR gdb/26631
4032 * thread.c (thread_find_command): Switch inferior before calling
4033 target methods.
4034
4035 2020-09-17 Tom Tromey <tromey@adacore.com>
4036
4037 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
4038 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
4039 (tdesc_arch_data_up): New typedef.
4040 (tdesc_use_registers, tdesc_data_alloc): Update.
4041 (tdesc_data_cleanup): Don't declare.
4042 * target-descriptions.c (tdesc_data_alloc): Return a
4043 tdesc_arch_data_up.
4044 (tdesc_arch_data_deleter::operator()): Rename from
4045 tdesc_data_cleanup. Change argument type.
4046 (tdesc_use_registers): Change early_data to an rvalue reference.
4047 (tdesc_use_registers): Don't use delete.
4048 * sparc-tdep.c (sparc32_gdbarch_init): Update.
4049 * s390-tdep.c (s390_gdbarch_init): Update.
4050 * rx-tdep.c (rx_gdbarch_init): Update.
4051 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4052 * riscv-tdep.c (riscv_gdbarch_init): Update.
4053 * or1k-tdep.c (or1k_gdbarch_init): Update.
4054 * nios2-tdep.c (nios2_gdbarch_init): Update.
4055 * nds32-tdep.c (nds32_gdbarch_init): Update.
4056 * mips-tdep.c (mips_gdbarch_init): Update.
4057 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
4058 * m68k-tdep.c (m68k_gdbarch_init): Update.
4059 * i386-tdep.c (i386_gdbarch_init): Update.
4060 * arm-tdep.c (arm_gdbarch_init): Update.
4061 * arc-tdep.c (arc_tdesc_init): Update.
4062 (arc_gdbarch_init): Update.
4063 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
4064
4065 2020-09-17 Hannes Domani <ssbssa@yahoo.de>
4066
4067 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
4068 for WOW64 processes.
4069
4070 2020-09-17 Tom Tromey <tom@tromey.com>
4071
4072 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
4073
4074 2020-09-17 Tom Tromey <tom@tromey.com>
4075
4076 * value.c (preserve_values): Update.
4077 * python/py-type.c (save_objfile_types): Update.
4078 * guile/scm-type.c (save_objfile_types): Update.
4079 * gdbtypes.h (create_copied_types_hash): Return htab_up.
4080 * gdbtypes.c (create_copied_types_hash): Return htab_up.
4081 * compile/compile-object-run.c (compile_object_run): Update.
4082
4083 2020-09-17 Tom Tromey <tom@tromey.com>
4084
4085 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
4086 Remove.
4087 <m_table>: Now htab_up.
4088 * typeprint.c (typedef_hash_table::recursively_update)
4089 (typedef_hash_table::add_template_parameters)
4090 (typedef_hash_table::typedef_hash_table): Update.
4091 (typedef_hash_table::~typedef_hash_table): Remove.
4092 (typedef_hash_table::typedef_hash_table)
4093 (typedef_hash_table::find_global_typedef)
4094 (typedef_hash_table::find_typedef): Update.
4095
4096 2020-09-17 Tom Tromey <tom@tromey.com>
4097
4098 * target-descriptions.c (tdesc_use_registers): Use htab_up.
4099
4100 2020-09-17 Tom Tromey <tom@tromey.com>
4101
4102 * linespec.c (class decode_compound_collector)
4103 <~decode_compound_collector>: Remove.
4104 <m_unique_syms>: Now htab_up.
4105 (decode_compound_collector::operator ()): Update.
4106 (class symtab_collector) <~symtab_collector>: Remove.
4107 <m_symtab_table>: Now htab_up.
4108 (symtab_collector::operator ()): Update.
4109
4110 2020-09-17 Tom Tromey <tom@tromey.com>
4111
4112 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
4113 (filename_seen_cache::clear): Update.
4114 (~filename_seen_cache): Remove.
4115 (filename_seen_cache::seen): Update.
4116 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
4117 htab_up.
4118 <~filename_seen_cache>: Remove.
4119 <traverse>: Update.
4120
4121 2020-09-17 Tom Tromey <tom@tromey.com>
4122
4123 * completer.c (completion_tracker::discard_completions)
4124 (completion_tracker::~completion_tracker)
4125 (completion_tracker::maybe_add_completion)
4126 (completion_tracker::remove_completion)
4127 (completion_tracker::recompute_lowest_common_denominator)
4128 (completion_tracker::build_completion_result): Update.
4129 * completer.h (class completion_tracker) <have_completions>:
4130 Update.
4131 <m_entries_hash>: Now htab_up.
4132
4133 2020-09-17 Tom Tromey <tom@tromey.com>
4134
4135 * breakpoint.c (ambiguous_names_p): Use htab_up.
4136
4137 2020-09-17 Tom Tromey <tom@tromey.com>
4138
4139 * auto-load.c (struct auto_load_pspace_info)
4140 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
4141 <loaded_script_files, loaded_script_texts>: Change type to
4142 htab_up.
4143 (~auto_load_pspace_info) Remove.
4144 (init_loaded_scripts_info, maybe_add_script_file)
4145 (maybe_add_script_text, auto_load_info_scripts): Update.
4146
4147 2020-09-17 Tom Tromey <tromey@adacore.com>
4148
4149 * c-exp.y (name_obstack): Now static.
4150
4151 2020-09-17 Chungyi Chi <demonic@csie.io>
4152
4153 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
4154
4155 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
4156
4157 * breakpoint.h (init_catchpoint): Change int parameter to bool.
4158 (add_solib_catchpoint): Likewise.
4159 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
4160 to bool.
4161 (add_solib_catchpoint): Change int parameter/variable to bool.
4162 (catch_load_or_unload): Likewise.
4163 (init_catchpoint): Likewise.
4164 (create_fork_vfork_event_catchpoint): Likewise.
4165 (catch_fork_command_1): Likewise.
4166 (catch_exec_command_1): Likewise.
4167
4168 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
4169
4170 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
4171 Change instance_flags to m_instance_flags.
4172
4173 2020-09-16 Tom Tromey <tromey@adacore.com>
4174
4175 PR gdb/26598:
4176 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
4177
4178 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4179
4180 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
4181 PL_FLAG_EXEC.
4182 (fbsd_nat_target::insert_exec_catchpoint)
4183 (fbsd_nat_target::remove_exec_catchpoint): Always define.
4184 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
4185 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
4186
4187 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4188
4189 * configure.ac: Remove check for kinfo_getvmmap().
4190 * configure, config.in: Regenerate.
4191 * fbsd-nat.c (fbsd_read_mapping): Remove
4192 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
4193 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
4194 kinfo_get_vmmap() are always present.
4195
4196 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4197
4198 * fbsd-nat.c: Always include support for
4199 TARGET_OBJECT_SIGNAL_INFO.
4200
4201 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4202
4203 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
4204 sysctl and remove procfs fallback.
4205
4206 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4207
4208 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
4209 * fbsd-nat.h: Likewise.
4210
4211 2020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4212
4213 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
4214 argument.
4215
4216 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4217
4218 * ada-lang.c (ada_language_data): Delete.
4219 (ada_language): Remove references to ada_language_data.
4220 * c-lang.c (c_language_data): Delete.
4221 (c_language): Remove references to c_language_data.
4222 (cplus_language_data): Delete.
4223 (cplus_language): Remove references to cplus_language_data.
4224 (asm_language_data): Delete.
4225 (asm_language): Remove references to asm_language_data.
4226 (minimal_language_data): Delete.
4227 (minimal_language): Remove references to minimal_language_data.
4228 * d-lang.c (d_language_data): Delete.
4229 (d_language): Remove references to d_language_data.
4230 * f-lang.c (f_language_data): Delete.
4231 (f_language): Remove references to f_language_data.
4232 * go-lang.c (go_language_data): Delete.
4233 (go_language): Remove references to go_language_data.
4234 * language.c (unknown_language_data): Delete.
4235 (unknown_language): Remove references to unknown_language_data.
4236 (auto_language_data): Delete.
4237 (auto_language): Remove references to auto_language_data.
4238 * language.h (language_data): Delete struct.
4239 (language_defn): No longer inherit from language_data.
4240 * m2-lang.c (m2_language_data): Delete.
4241 (m2_language): Remove references to m2_language_data.
4242 * objc-lang.c (objc_language_data): Delete.
4243 (objc_language): Remove references to objc_language_data.
4244 * opencl-lang.c (opencl_language_data): Delete.
4245 (opencl_language): Remove references to opencl_language_data.
4246 * p-lang.c (pascal_language_data): Delete.
4247 (pascal_language): Remove references to pascal_language_data.
4248 * rust-lang.c (rust_language_data): Delete.
4249 (rust_language): Remove references to rust_language_data.
4250
4251 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4252
4253 * ada-lang.c (ada_language_data): Remove la_op_print_tab
4254 initializer.
4255 (ada_language::opcode_print_table): New member function.
4256 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
4257 (c_language::opcode_print_table): New member function.
4258 (cplus_language_data): Remove la_op_print_tab initializer.
4259 (cplus_language::opcode_print_table): New member function.
4260 (asm_language_data): Remove la_op_print_tab initializer.
4261 (asm_language::opcode_print_table): New member function.
4262 (minimal_language_data): Remove la_op_print_tab initializer.
4263 (minimal_language::opcode_print_table): New member function.
4264 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
4265 (d_language::opcode_print_table): New member function.
4266 * expprint.c (print_subexp_standard): Update call to
4267 opcode_print_table.
4268 (op_string): Likewise.
4269 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
4270 (f_language::opcode_print_table): New member function.
4271 * go-lang.c (go_language_data): Remove la_op_print_tab
4272 initializer.
4273 (go_language::opcode_print_table): New member function.
4274 * language.c (unknown_language_data): Remove la_op_print_tab
4275 initializer.
4276 (unknown_language::opcode_print_table): New member function.
4277 (auto_language_data): Remove la_op_print_tab initializer.
4278 (auto_language::opcode_print_table): New member function.
4279 * language.h (language_data): Remove la_op_print_tab field.
4280 (language_defn::opcode_print_table): Declare new member function.
4281 * m2-lang.c (m2_language_data): Remove la_op_print_tab
4282 initializer.
4283 (m2_language::opcode_print_table): New member function.
4284 * objc-lang.c (objc_language_data): Remove la_op_print_tab
4285 initializer.
4286 (objc_language::opcode_print_table): New member function.
4287 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
4288 initializer.
4289 (opencl_language::opcode_print_table): New member function.
4290 * p-lang.c (pascal_language_data): Remove la_op_print_tab
4291 initializer.
4292 (pascal_language::opcode_print_table): New member function.
4293 * rust-lang.c (rust_language_data): Remove la_op_print_tab
4294 initializer.
4295 (rust_language::opcode_print_table): New member function.
4296
4297 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4298
4299 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
4300 (ada_language::expression_ops): New member function.
4301 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
4302 (c_language::expression_ops): New member function.
4303 (cplus_language_data): Remove la_exp_desc initializer.
4304 (cplus_language::expression_ops): New member function.
4305 (asm_language_data): Remove la_exp_desc initializer.
4306 (asm_language::expression_ops): New member function.
4307 (minimal_language_data): Remove la_exp_desc initializer.
4308 (minimal_language::expression_ops): New member function.
4309 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
4310 (d_language::expression_ops): New member function.
4311 * eval.c (evaluate_subexp): Update call to expression_ops.
4312 * expprint.c (print_subexp): Likewise.
4313 (op_name): Likewise.
4314 (dump_subexp_body): Likewise.
4315 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
4316 (f_language::expression_ops): New member function.
4317 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
4318 (go_language::expression_ops): New member function.
4319 * language.c (language_defn::expression_ops): New function.
4320 (unknown_language_data): Remove la_exp_desc initializer.
4321 (auto_language_data): Likewise.
4322 * language.h (language_data): Remove la_exp_desc field.
4323 (language_defn::expression_ops): Declare new member function.
4324 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
4325 (m2_language::expression_ops): New member function.
4326 * objc-lang.c (objc_language_data): Remove la_exp_desc
4327 initializer.
4328 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
4329 initializer.
4330 (opencl_language::expression_ops): New member function.
4331 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
4332 * parse.c (operator_length): Update call to expression_ops.
4333 (exp_iterate): Likewise.
4334 * rust-lang.c (rust_language_data): Remove la_exp_desc
4335 initializer.
4336 (ruse_language::expression_ops): New member function.
4337
4338 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4339
4340 * ada-lang.c (ada_language_data): Remove la_varobj_ops
4341 initializer.
4342 (ada_language::varobj_ops): New member function.
4343 * c-lang.c (c_language_data): Remove la_varobj_ops
4344 initializer.
4345 (cplus_language_data): Likewise.
4346 (cplus_language::varobj_ops): New member function.
4347 (asm_language_data): Remove la_varobj_ops initializer.
4348 (minimal_language_data): Likewise.
4349 * d-lang.c (d_language_data): Likewise.
4350 * f-lang.c (f_language_data): Likewise.
4351 * go-lang.c (go_language_data): Likewise.
4352 * language.c (language_defn::varobj_ops): New function.
4353 (unknown_language_data): Remove la_varobj_ops
4354 initializer.
4355 (auto_language_data): Likewise.
4356 * language.h (language_data): Remove la_varobj_ops field.
4357 (language_defn::varobj_ops): Declare new member function.
4358 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
4359 * objc-lang.c (objc_language_data): Likewise.
4360 * opencl-lang.c (opencl_language_data): Likewise.
4361 * p-lang.c (pascal_language_data): Likewise.
4362 * rust-lang.c (rust_language_data): Likewise.
4363 * varobj.c (varobj_create): Update call to varobj_ops.
4364 * varobj.h (default_varobj_ops): Delete define.
4365
4366 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4367
4368 * ada-lang.c (ada_language_data): Remove la_macro_expansion
4369 initializer.
4370 * c-lang.c (c_language_data): Likewise.
4371 (c_language::macro_expansion): New member function.
4372 (cplus_language_data): Likewise.
4373 (cplus_language::macro_expansion): New member function.
4374 (asm_language_data): Likewise.
4375 (asm_language::macro_expansion): New member function.
4376 (minimal_language_data): Likewise.
4377 (minimal_language::macro_expansion): New member function.
4378 * d-lang.c (d_language_data): Remove la_macro_expansion
4379 initializer.
4380 * f-lang.c (f_language_data): Likewise.
4381 * go-lang.c (go_language_data): Likewise.
4382 * language.c (unknown_language_data): Likewise.
4383 (auto_language_data): Likewise.
4384 * language.h (language_data): Remove la_macro_expansion field.
4385 (language_defn::macro_expansion): New member function.
4386 * m2-lang.c (m2_language_data): Remove la_macro_expansion
4387 initializer.
4388 * objc-lang.c (objc_language_data): Likewise.
4389 (objc_language::macro_expansion): New member function.
4390 * opencl-lang.c (opencl_language_data): Likewise.
4391 (opencl_language::macro_expansion): New member function.
4392 * p-lang.c (pascal_language_data): Remove la_macro_expansion
4393 initializer.
4394 * rust-lang.c (rust_language_data): Likewise.
4395 * symtab.c (default_collect_symbol_completion_matches_break_on):
4396 Update call to macro_expansion.
4397
4398 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4399
4400 * ada-lang.c (ada_language_data): Remove la_array_ordering
4401 initializer.
4402 * c-lang.c (c_language_data): Likewise.
4403 (cplus_language_data): Likewise.
4404 (asm_language_data): Likewise.
4405 (minimal_language_data): Likewise.
4406 * d-lang.c (d_language_data): Likewise.
4407 * dwarf2/read.c (read_array_order): Update for call to
4408 array_ordering.
4409 * f-lang.c (f_language_data): Remove la_array_ordering
4410 initializer.
4411 (f_language::array_ordering): New member function.
4412 * go-lang.c (go_language_data): Remove la_array_ordering
4413 initializer.
4414 * language.c (unknown_language_data): Likewise.
4415 (auto_language_data): Likewise.
4416 * language.h (language_data): Delete la_array_ordering field.
4417 (language_defn::array_ordering): New member function.
4418 * m2-lang.c (m2_language_data): Remove la_array_ordering
4419 initializer.
4420 * objc-lang.c (objc_language_data): Likewise.
4421 * opencl-lang.c (opencl_language_data): Likewise.
4422 * p-lang.c (pascal_language_data): Likewise.
4423 * rust-lang.c (rust_language_data): Likewise.
4424
4425 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4426
4427 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
4428 initializer.
4429 * c-lang.c (c_language_data): Likewise.
4430 (cplus_language_data): Likewise.
4431 (asm_language_data): Likewise.
4432 (minimal_language_data): Likewise.
4433 * d-lang.c (d_language_data): Likewise.
4434 * f-lang.c (f_language_data): Likewise.
4435 (f_language::case_sensitivity): New member function.
4436 * go-lang.c (go_language_data): Remove la_case_sensitivity
4437 initializer.
4438 * language.c (enum case_mode): Moved here from language.h.
4439 (case_mode): Make static.
4440 (show_case_command): Update for case_sensitivity being a method.
4441 (set_case_command): Likewise.
4442 (set_range_case): Likewise.
4443 (unknown_language_data): Remove la_case_sensitivity initializer.
4444 (auto_language_data): Likewise.
4445 * language.h (case_mode): Delete, move enum declaration to
4446 language.c.
4447 (language_data): Delete la_case_sensitivity field.
4448 (language_defn::case_sensitivity): New member function.
4449 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
4450 initializer.
4451 * objc-lang.c (objc_language_data): Likewise.
4452 * opencl-lang.c (opencl_language_data): Likewise.
4453 * p-lang.c (pascal_language_data): Likewise.
4454 * rust-lang.c (rust_language_data): Likewise.
4455
4456 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4457
4458 * ada-lang.c (ada_language_data): Remove la_range_check
4459 initializer.
4460 * c-lang.c (c_language_data): Likewise.
4461 (cplus_language_data): Likewise.
4462 (asm_language_data): Likewise.
4463 (minimal_language_data): Likewise.
4464 * d-lang.c (d_language_data): Likewise.
4465 * f-lang.c (f_language_data): Likewise.
4466 (f_language::range_checking_on_by_default): New member function.
4467 * go-lang.c (go_language_data): Remove la_range_check initializer.
4468 * language.c (enum range_mode): Moved here from language.h.
4469 (range_mode): Made static.
4470 (show_range_command): Update to use
4471 range_checking_on_by_default.
4472 (set_range_command): Likewise.
4473 (set_range_case): Likewise.
4474 (unknown_language_data): Remove la_range_check initializer.
4475 (auto_language_data): Likewise.
4476 * language.h (range_mode): Delete. Enum definition moved to
4477 language.c.
4478 (language_data): Remove la_range_check field.
4479 (language_defn::range_checking_on_by_default): New member
4480 function.
4481 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
4482 (m2_language::range_checking_on_by_default): New member function.
4483 * objc-lang.c (objc_language_data): Remove la_range_check
4484 initializer.
4485 * opencl-lang.c (opencl_language_data): Likewise.
4486 * p-lang.c (pascal_language_data): Likewise.
4487 (pascal_language::range_checking_on_by_default): New member
4488 function.
4489 * rust-lang.c (rust_language_data): Remove la_range_check
4490 initializer.
4491 (rust_language::range_checking_on_by_default): New member
4492 function.
4493
4494 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4495
4496 * dwarf2/read.c (dwarf2_physname): Remove special case for
4497 language_go.
4498 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
4499 member function.
4500
4501 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4502
4503 * ada-lang.c (ada_language_data): Remove
4504 la_store_sym_names_in_linkage_form_p initializer.
4505 (ada_language::store_sym_names_in_linkage_form_p): New member
4506 function.
4507 * c-lang.c (c_language_data): Remove
4508 la_store_sym_names_in_linkage_form_p initializer.
4509 (c_language::store_sym_names_in_linkage_form_p): New member
4510 function.
4511 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
4512 initializer.
4513 (asm_language_data): Likewise.
4514 (asm_language::store_sym_names_in_linkage_form_p): New member
4515 function.
4516 (minimal_language_data): Remove
4517 la_store_sym_names_in_linkage_form_p initializer.
4518 (minimal_language::store_sym_names_in_linkage_form_p): New member
4519 function.
4520 * d-lang.c (d_language_data): Remove
4521 la_store_sym_names_in_linkage_form_p initializer.
4522 * dwarf2/read.c (dwarf2_physname): Update call to
4523 store_sym_names_in_linkage_form_p.
4524 * f-lang.c (f_language_data): Remove
4525 la_store_sym_names_in_linkage_form_p initializer.
4526 * go-lang.c (go_language_data): Remove
4527 la_store_sym_names_in_linkage_form_p initializer.
4528 * language.c (unknown_language_data): Remove
4529 la_store_sym_names_in_linkage_form_p initializer.
4530 (unknown_language::store_sym_names_in_linkage_form_p): New member
4531 function.
4532 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
4533 initializer.
4534 (auto_language::store_sym_names_in_linkage_form_p): New member
4535 function.
4536 * language.h (language_data): Remove
4537 la_store_sym_names_in_linkage_form_p member variable.
4538 (language_defn::store_sym_names_in_linkage_form_p): New member
4539 function.
4540 * m2-lang.c (m2_language_data): Remove
4541 la_store_sym_names_in_linkage_form_p initializer.
4542 * objc-lang.c (objc_language_data): Likewise.
4543 * opencl-lang.c (opencl_language_data): Likewise.
4544 * p-lang.c (pascal_language_data): Likewise.
4545 * rust-lang.c (rust_language_data): Likewise.
4546
4547 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4548
4549 * ada-lang.c (ada_language_data): Remove string_lower_bound
4550 initializer.
4551 * c-lang.c (c_language_data): Likewise.
4552 (cplus_language_data): Likewise.
4553 (asm_language_data): Likewise.
4554 (minimal_language_data): Likewise.
4555 * d-lang.c (d_language_data): Likewise.
4556 * f-lang.c (f_language_data): Likewise.
4557 * go-lang.c (go_language_data): Likewise.
4558 * language.c (unknown_language_data): Likewise.
4559 (auto_language_data): Likewise.
4560 * language.h (language_data): Remove string_lower_bound field.
4561 (language_defn::string_lower_bound): New member function.
4562 * m2-lang.c (m2_language_data): Remove string_lower_bound
4563 initializer.
4564 (m2_language::string_lower_bound): New member function.
4565 * objc-lang.c (objc_language_data): Remove string_lower_bound
4566 initializer.
4567 * opencl-lang.c (opencl_language_data): Likewise.
4568 * p-lang.c (pascal_language_data): Likewise.
4569 * rust-lang.c (rust_language_data): Likewise.
4570 * valops.c (value_cstring): Update call to string_lower_bound.
4571 (value_string): Likewise.
4572 * value.c (allocate_repeated_value): Likewise.
4573
4574 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4575
4576 * valops.c (value_repeat): Fix incorrect argument name in comment.
4577
4578 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4579
4580 * ada-lang.c (ada_language_data): Remove c_style_arrays
4581 initializer.
4582 (ada_language::c_style_arrays_p): New member fuction.
4583 * c-lang.c (c_language_data): Remove c_style_arrays
4584 initializer.
4585 (cplus_language_data): Likewise.
4586 (asm_language_data): Likewise.
4587 (minimal_language_data): Likewise.
4588 * d-lang.c (d_language_data): Likewise.
4589 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
4590 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
4591 (f_language::c_style_arrays_p): New member function.
4592 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
4593 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
4594 * language.c (unknown_language_data): Remove c_style_arrays
4595 initializer.
4596 (auto_language_data): Likewise.
4597 * language.h (language_data): Remove c_style_arrays field.
4598 (language_defn::c_style_arrays_p): New member function.
4599 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
4600 (m2_language::c_style_arrays_p): New member function.
4601 * objc-lang.c (objc_language_data): Remove c_style_arrays
4602 initializer.
4603 * opencl-lang.c (opencl_language_data): Likewise.
4604 * p-lang.c (pascal_language_data): Likewise.
4605 * rust-lang.c (rust_language_data): Likewise.
4606 * valarith.c (value_subscript): Update call to c_style_arrays_p,
4607 and update local variable to a bool.
4608 * valops.c (value_cast): Update call to c_style_arrays_p.
4609 (value_array): Likewise.
4610 * value.c (coerce_array): Likewise.
4611
4612 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4613
4614 * ada-lang.c (ada_language_data): Remove la_language initializer.
4615 * c-lang.c (c_language_data): Likewise.
4616 (cplus_language_data): Likewise.
4617 (asm_language_data): Likewise.
4618 (minimal_language_data): Likewise.
4619 * d-lang.c (d_language_data): Likewise.
4620 * f-lang.c (f_language_data): Likewise.
4621 * go-lang.c (go_language_data): Likewise.
4622 * language.c (unknown_language_data): Likewise.
4623 (auto_language_data): Likewise.
4624 * language.h (language_data): Remove la_language field.
4625 (language_defn::language_defn): Initialise la_language field.
4626 (language_defn::la_language): New member variable.
4627 * m2-lang.c (m2_language_data): Remove la_language field.
4628 * objc-lang.c (objc_language_data): Likewise.
4629 * opencl-lang.c (opencl_language_data): Likewise.
4630 * p-lang.c (pascal_language_data): Likewise.
4631 * rust-lang.c (rust_language_data): Likewise.
4632
4633 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4634
4635 * ada-lang.c (ada_extensions): Delete, moved into
4636 ada_language::filename_extensions.
4637 (ada_language_data): Remove la_filename_extensions initializer.
4638 (ada_language::filename_extensions): New member function.
4639 * c-lang.c (c_extensions): Delete, moved into
4640 c_language::filename_extensions.
4641 (c_language_data): Remove la_filename_extensions initializer.
4642 (c_language::filename_extensions): New member function.
4643 (cplus_extensions): Delete, moved into
4644 cplus_language::filename_extensions.
4645 (cplus_language_data): Remove la_filename_extensions initializer.
4646 (cplus_language::filename_extensions): New member function.
4647 (asm_extensions): Delete, moved into
4648 asm_language::filename_extensions.
4649 (asm_language_data): Remove la_filename_extensions initializer.
4650 (asm_language::filename_extensions): New member function.
4651 (minimal_language_data): Remove la_filename_extensions
4652 initializer.
4653 * d-lang.c (d_extensions): Delete, moved into
4654 d_language::filename_extensions.
4655 (d_language_data): Remove la_filename_extensions initializer.
4656 (d_language::filename_extensions): New member function.
4657 * f-lang.c (f_extensions): Delete, moved into
4658 f_language::filename_extensions.
4659 (f_language_data): Remove la_filename_extensions initializer.
4660 (f_language::filename_extensions): New member function.
4661 * go-lang.c (go_language_data): Remove la_filename_extensions
4662 initializer.
4663 * language.c (add_set_language_command): Update now that
4664 filename_extensions returns a vector.
4665 (unknown_language_data): Remove la_filename_extensions
4666 initializer.
4667 (auto_language_data): Likewise.
4668 * language.h (language_data): Remove la_filename_extensions field.
4669 (language_defn::filename_extensions): New member function.
4670 * m2-lang.c (m2_language_data): Remove la_filename_extensions
4671 initializer.
4672 * objc-lang.c (objc_extensions): Delete, moved into
4673 objc_language::filename_extensions.
4674 (objc_language_data): Remove la_filename_extensions initializer.
4675 (objc_language::filename_extensions): New member function.
4676 * opencl-lang.c (opencl_language_data): Remove
4677 la_filename_extensions initializer.
4678 * p-lang.c (pascal_extensions): Delete, moved into
4679 pascal_language::filename_extensions.
4680 (pascal_language_data): Remove la_filename_extensions initializer.
4681 (pascal_language::filename_extensions): New member function.
4682 * rust-lang.c (rust_extensions): Delete, moved into
4683 rust_language::filename_extensions.
4684 (rust_language_data): Remove la_filename_extensions initializer.
4685 (rust_language::filename_extensions): New member function.
4686 * symfile.c (add_filename_language): Add new assert.
4687
4688 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4689
4690 * ada-lang.c (ada_language_data): Remove la_name and
4691 la_natural_name initializers.
4692 (ada_language::name): New member function.
4693 (ada_language::natural_name): New member function.
4694 * c-lang.c (c_language_data): Remove la_name and
4695 la_natural_name initializers.
4696 (c_language::name): New member function.
4697 (c_language::natural_name): New member function.
4698 (cplus_language_data): Remove la_name and
4699 la_natural_name initializers.
4700 (cplus_language::name): New member function.
4701 (cplus_language::natural_name): New member function.
4702 (asm_language_data): Remove la_name and
4703 la_natural_name initializers.
4704 (asm_language::name): New member function.
4705 (asm_language::natural_name): New member function.
4706 (minimal_language_data): Remove la_name and
4707 la_natural_name initializers.
4708 (minimal_language::name): New member function.
4709 (minimal_language::natural_name): New member function.
4710 * compile/compile.c (compile_to_object): Update call to
4711 lanugage_defn::name.
4712 * d-lang.c (d_language_data): Remove la_name and
4713 la_natural_name initializers.
4714 (d_language::name): New member function.
4715 (d_language::natural_name): New member function.
4716 * expprint.c (print_subexp_standard): Update call to
4717 language_defn::name.
4718 (dump_raw_expression): Likewise
4719 (dump_prefix_expression): Likewise.
4720 * f-lang.c (f_language_data): Remove la_name and
4721 la_natural_name initializers.
4722 (f_language::name): New member function.
4723 (f_language::natural_name): New member function.
4724 * go-lang.c (go_language_data): Remove la_name and
4725 la_natural_name initializers.
4726 (go_language::name): New member function.
4727 (go_language::natural_name): New member function.
4728 * language.c (show_language_command): Update call to
4729 language_defn::name.
4730 (set_language_command): Likewise.
4731 (language_enum): Likewise.
4732 (language_str): Likewise.
4733 (add_set_language_command): Likewise, use
4734 language_defn::natural_name in the doc string.
4735 (unknown_language_data): Remove la_name and
4736 la_natural_name initializers.
4737 (unknown_language::name): New member function.
4738 (unknown_language::natural_name): New member function.
4739 (auto_language_data): Remove la_name and
4740 la_natural_name initializers.
4741 (auto_language::name): New member function.
4742 (auto_language::natural_name): New member function.
4743 (language_lookup_primitive_type_as_symbol): Update call to
4744 language_defn::name.
4745 * language.h (language_data): Remove la_name and la_natural_name
4746 member variables.
4747 (language_defn::name): New member function.
4748 (language_defn::natural_name): New member function.
4749 * m2-lang.c (m2_language_data): Remove la_name and
4750 la_natural_name initializers.
4751 (m2_language::name): New member function.
4752 (m2_language::natural_name): New member function.
4753 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
4754 language_defn::natural_name.
4755 * objc-lang.c (objc_language_data): Remove la_name and
4756 la_natural_name initializers.
4757 (objc_language::name): New member function.
4758 (objc_language::natural_name): New member function.
4759 * opencl-lang.c (opencl_language_data): Remove la_name and
4760 la_natural_name initializers.
4761 (opencl_language::name): New member function.
4762 (opencl_language::natural_name): New member function.
4763 * p-lang.c (pascal_language_data): Remove la_name and
4764 la_natural_name initializers.
4765 (pascal_language::name): New member function.
4766 (pascal_language::natural_name): New member function.
4767 * rust-lang.c (rust_language_data): Remove la_name and
4768 la_natural_name initializers.
4769 (rust_language::name): New member function.
4770 (rust_language::natural_name): New member function.
4771 * symtab.c (lookup_language_this): Update call to
4772 language_defn::name.
4773
4774 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4775
4776 * ada-lang.c (ada_language_data): Remove la_name_of_this
4777 initializer.
4778 * ax-gdb.c (gen_expr): Update call to name_of_this.
4779 * c-exp.y (classify_name): Likewise.
4780 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
4781 (cplus_language_data): Likewise.
4782 (cplus_language::name_of_this): New member function.
4783 (asm_language_data): Remove la_name_of_this initializer.
4784 (minimal_language_data): Likewise.
4785 * d-lang.c (d_language_data): Likewise.
4786 (d_language::name_of_this): New member function.
4787 * expprint.c (print_subexp_standard): Update call to name_of_this.
4788 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
4789 * go-lang.c (go_language_data): Likewise.
4790 * language.c (unknown_language_data): Likewise.
4791 (unknown_language::name_of_this): New member function.
4792 (auto_language_data): Remove la_name_of_this initializer.
4793 (auto_language::name_of_this): New member function.
4794 * language.h (language_data): Delete la_name_of_this member
4795 variable.
4796 (language_defn::name_of_this): New member function.
4797 * m2-lang.c (m2_language_data): Remove la_name_of_this
4798 initializer.
4799 * objc-lang.c (objc_language_data): Likewise.
4800 (objc_language::name_of_this): New member function.
4801 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
4802 initializer.
4803 * p-lang.c (pascal_language_data): Likewise.
4804 (pascal_language::name_of_this): New member function.
4805 * rust-lang.c (rust_language_data): Remove la_name_of_this
4806 initializer.
4807 * symtab.c (lookup_language_this): Update call to name_of_this.
4808 (lookup_symbol_aux): Likewise.
4809 * valops.c (value_of_this): Likewise.
4810
4811 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4812
4813 * ada-lang.c (ada_language_data): Remove
4814 la_struct_too_deep_ellipsis initializer.
4815 (ada_language::struct_too_deep_ellipsis): New member function.
4816 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
4817 initializer.
4818 (cplus_language_data): Likewise.
4819 (asm_language_data): Likewise.
4820 (minimal_language_data): Likewise.
4821 * cp-valprint.c (cp_print_value): Update call to
4822 struct_too_deep_ellipsis.
4823 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
4824 initializer.
4825 * f-lang.c (f_language_data): Likewise.
4826 (f_language::struct_too_deep_ellipsis): New member function.
4827 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
4828 initializer.
4829 * language.c (unknown_language_data): Likewise.
4830 (auto_language_data): Likewise.
4831 * language.h (language_data): Delete la_struct_too_deep_ellipsis
4832 member variable.
4833 (language_defn::struct_too_deep_ellipsis): New member function.
4834 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
4835 initializer.Q
4836 * objc-lang.c (objc_language_data): Likewise.
4837 * opencl-lang.c (opencl_language_data): Likewise.
4838 * p-lang.c (pascal_language_data): Likewise.
4839 * rust-lang.c (rust_language_data): Likewise.
4840 * valprint.c (val_print_check_max_depth): Update call to
4841 struct_too_deep_ellipsis.
4842
4843 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
4844
4845 * MAINTAINERS (Write After Approval): Add myself.
4846
4847 2020-09-15 Tom Tromey <tom@tromey.com>
4848
4849 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
4850 Remove.
4851
4852 2020-09-15 Tom Tromey <tom@tromey.com>
4853
4854 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
4855 and TYPE_CODE_METHODPTR cases.
4856 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
4857 (c_value_print_inner): Update.
4858 * valprint.c (generic_value_print_memberptr): New function, from
4859 c_value_print_memberptr.
4860 (generic_value_print): Use it. Call cplus_print_method_ptr.
4861
4862 2020-09-15 Tom Tromey <tromey@adacore.com>
4863
4864 * python/python-internal.h (PyInt_FromLong): Remove define.
4865 * python/py-value.c (convert_value_from_python): Use
4866 gdb_py_object_from_longest.
4867 * python/py-type.c (typy_get_code): Use
4868 gdb_py_object_from_longest.
4869 * python/py-symtab.c (salpy_get_line): Use
4870 gdb_py_object_from_longest.
4871 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
4872 gdb_py_object_from_longest.
4873 * python/py-record.c (recpy_gap_reason_code): Use
4874 gdb_py_object_from_longest.
4875 * python/py-record-btrace.c (recpy_bt_insn_size)
4876 (recpy_bt_func_level, btpy_list_count): Use
4877 gdb_py_object_from_longest.
4878 * python/py-infthread.c (gdbpy_create_ptid_object): Use
4879 gdb_py_object_from_longest. Fix error handling.
4880 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
4881 gdb_py_object_from_longest.
4882 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
4883 gdb_py_object_from_longest.
4884 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
4885 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
4886 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
4887
4888 2020-09-15 Tom Tromey <tromey@adacore.com>
4889
4890 * python/python.c (gdbpy_parameter_value): Use
4891 gdb_py_object_from_ulongest.
4892
4893 2020-09-15 Tom Tromey <tromey@adacore.com>
4894
4895 * python/py-infevents.c (create_register_changed_event_object):
4896 Use gdb_py_object_from_longest.
4897 * python/py-exitedevent.c (create_exited_event_object): Use
4898 gdb_py_object_from_longest.
4899
4900 2020-09-15 Tom Tromey <tromey@adacore.com>
4901
4902 * python/python.c (gdbpy_parameter_value): Use
4903 gdb_py_object_from_longest.
4904 * python/py-type.c (convert_field, typy_range): Use
4905 gdb_py_object_from_longest.
4906 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
4907 gdb_py_object_from_longest.
4908 * python/py-lazy-string.c (stpy_get_length): Use
4909 gdb_py_object_from_longest.
4910 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
4911 gdb_py_object_from_longest.
4912 * python/py-infevents.c (create_memory_changed_event_object): Use
4913 gdb_py_object_from_longest.
4914 * python/py-inferior.c (infpy_get_num): Use
4915 gdb_py_object_from_longest.
4916 (infpy_get_pid): Likewise.
4917
4918 2020-09-15 Tom Tromey <tromey@adacore.com>
4919
4920 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
4921 defines.
4922 * python/py-value.c (valpy_long): Use
4923 gdb_py_object_from_ulongest.
4924 * python/py-symtab.c (salpy_get_pc): Use
4925 gdb_py_object_from_ulongest.
4926 (salpy_get_last): Likewise.
4927 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
4928 gdb_py_object_from_ulongest.
4929 * python/py-lazy-string.c (stpy_get_address): Use
4930 gdb_py_object_from_ulongest.
4931 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
4932 * python/py-arch.c (archpy_disassemble): Use
4933 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
4934 error handling.
4935
4936 2020-09-15 Tom Tromey <tromey@adacore.com>
4937
4938 * python/python-internal.h (gdb_py_long_from_longest): Remove
4939 defines.
4940 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
4941 * python/py-type.c (convert_field, typy_get_sizeof): Use
4942 gdb_py_object_from_longest.
4943 * python/py-record-btrace.c (btpy_list_index): Use
4944 gdb_py_object_from_longest.
4945
4946 2020-09-15 Tom Tromey <tromey@adacore.com>
4947
4948 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
4949 * python/py-record.c (recpy_element_number): Use
4950 gdb_py_object_from_longest.
4951 (recpy_gap_number): Likewise.
4952
4953 2020-09-15 Tom Tromey <tromey@adacore.com>
4954
4955 * top.c (ui::ui): Update.
4956 (highest_ui_num): Remove.
4957 * top.h (struct ui) <num>: Remove.
4958
4959 2020-09-15 Tom Tromey <tromey@adacore.com>
4960
4961 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
4962 * ui-style.c (ansi_regex_text): Now array.
4963 * rust-exp.y (number_regex_text): Now array.
4964 * linespec.c (linespec_quote_characters): Now array.
4965 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
4966 Now arrays.
4967
4968 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4969
4970 * debuginfod-support.c (debuginfod_client_deleter): New.
4971 (debuginfod_client_up): New.
4972 (debuginfod_init): Return debuginfod_client_up.
4973 (debuginfod_source_query): Adjust.
4974 (debuginfod_debuginfo_query): Adjust.
4975
4976 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4977
4978 * debuginfod-support.c (debuginfod_source_query): Use
4979 make_unique_xstrdup.
4980
4981 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4982
4983 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
4984 with `type::instance_flags`.
4985
4986 2020-09-14 Michael Mullin <masmullin@gmail.com>
4987
4988 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
4989 Remove baton parameter.
4990
4991 2020-09-14 Pedro Alves <pedro@palves.net>
4992
4993 * Makefile.in (SELFTESTS_SRCS): Add
4994 unittests/enum-flags-selftests.c.
4995 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
4996 btrace_function_flags instead of enum btrace_function_flag.
4997 * compile/compile-c-types.c (convert_qualified): Use
4998 enum_flags::raw.
4999 * compile/compile-cplus-symbols.c (convert_one_symbol)
5000 (convert_symbol_bmsym):
5001 * compile/compile-cplus-types.c (compile_cplus_convert_method)
5002 (compile_cplus_convert_struct_or_union_methods)
5003 (compile_cplus_instance::convert_qualified_base):
5004 * go-exp.y (parse_string_or_char): Add cast to int.
5005 * unittests/enum-flags-selftests.c: New file.
5006 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
5007 type to btrace_thread_flags from btrace_thread_flag.
5008 (record_btrace_cancel_resume, record_btrace_step_thread): Change
5009 local's type to btrace_thread_flags from btrace_thread_flag. Add
5010 cast in DEBUG call.
5011
5012 2020-09-14 Pedro Alves <pedro@palves.net>
5013
5014 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
5015 * gdbtypes.c (address_space_name_to_int): Rename to ...
5016 (address_space_name_to_type_instance_flags): ... this.
5017 (address_space_int_to_name): Rename to ...
5018 (address_space_type_instance_flags_to_name): ... this.
5019 * gdbtypes.h (address_space_name_to_int): Rename to ...
5020 (address_space_name_to_type_instance_flags): ... this.
5021 (address_space_int_to_name): Rename to ...
5022 (address_space_type_instance_flags_to_name): ... this.
5023 * type-stack.c (type_stack::insert): Adjust to rename.
5024 * type-stack.h (type_stack::insert): Likewise.
5025
5026 2020-09-14 Pedro Alves <pedro@palves.net>
5027 Andrew Burgess <andrew.burgess@embecosm.com>
5028
5029 * avr-tdep.c (avr_address_class_type_flags): Return
5030 type_instance_flags.
5031 (avr_address_class_type_flags_to_name): Take a
5032 type_instance_flags.
5033 (avr_address_class_name_to_type_flags): Return bool and take a
5034 type_instance_flags.
5035 * d-lang.c (build_d_types): Use type::set_instance_flags.
5036 * ft32-tdep.c (ft32_address_class_type_flags): Return
5037 type_instance_flags.
5038 (ft32_address_class_type_flags_to_name): Take a
5039 type_instance_flags.
5040 (ft32_address_class_name_to_type_flags): Return bool and take a
5041 type_instance_flags.
5042 (ft32_gdbarch_init): Use type::set_instance_flags.
5043 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
5044 * gdbarch.h, gdbarch.c: Regenerate.
5045 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
5046 (address_class_name_to_type_flags): Use type_instance_flags and
5047 bool.
5048 * gdbtypes.c (address_space_name_to_int)
5049 (address_space_int_to_name, make_qualified_type): Use
5050 type_instance_flags.
5051 (make_qualified_type): Use type_instance_flags and
5052 type::set_instance_flags.
5053 (make_type_with_address_space, make_cv_type, make_vector_type)
5054 (check_typedef): Use type_instance_flags.
5055 (recursive_dump_type): Cast type_instance_flags to unsigned for
5056 printing.
5057 (copy_type_recursive): Use type::set_instance_flags.
5058 (gdbtypes_post_init): Use type::set_instance_flags.
5059 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
5060 <m_instance_flags>: ... this.
5061 <instance_flags, set_instance_flags>: New methods.
5062 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
5063 (SET_TYPE_INSTANCE_FLAGS): New.
5064 (address_space_name_to_int, address_space_int_to_name)
5065 (make_type_with_address_space): Pass flags using
5066 type_instance_flags instead of int.
5067 * stabsread.c (cleanup_undefined_types_noname): Use
5068 type::set_instance_flags.
5069 * s390-tdep.c (s390_address_class_type_flags): Return
5070 type_instance_flags.
5071 (s390_address_class_type_flags_to_name): Take a
5072 type_instance_flags.
5073 (s390_address_class_name_to_type_flags): Return bool and take a
5074 type_instance_flags.
5075 * type-stack.c (type_stack::follow_types): Use
5076 type_instance_flags.
5077 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
5078
5079 2020-09-14 Tom Tromey <tromey@adacore.com>
5080
5081 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
5082 * x86-tdep.c (x86_is_thunk_register_name)
5083 (x86_in_indirect_branch_thunk): Update.
5084 * sparc64-tdep.c (sparc64_fpu_register_names)
5085 (sparc64_cp0_register_names, sparc64_register_names)
5086 (sparc64_pseudo_register_names): Now const.
5087 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
5088 cp0_registers_num>: Now const.
5089 * sparc-tdep.c (sparc_core_register_names)
5090 (sparc32_fpu_register_names, sparc32_cp0_register_names)
5091 (sparc32_pseudo_register_names): Now const.
5092 (validate_tdesc_registers): Update.
5093 * rust-lang.c (rust_extensions): Now const.
5094 * p-lang.c (p_extensions): Now const.
5095 * objc-lang.c (objc_extensions): Now const.
5096 * nto-tdep.c (nto_thread_state_str): Now const.
5097 * moxie-tdep.c (moxie_register_names): Now const.
5098 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
5099 Now const.
5100 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
5101 (mips_linux_reg_names): Now const.
5102 (mips_gdbarch_init): Update.
5103 * microblaze-tdep.c (microblaze_register_names): Now const.
5104 * m68k-tdep.c (m68k_register_names): Now const.
5105 * m32r-tdep.c (m32r_register_names): Now const.
5106 * ia64-tdep.c (ia64_register_names): Now const.
5107 * i386-tdep.h (struct gdbarch_tdep) <register_names,
5108 ymmh_register_names, ymm16h_regnum, mpx_register_names,
5109 k_register_names, zmmh_register_names, xmm_avx512_register_names,
5110 ymm_avx512_register_names, pkeys_register_names>: Now const.
5111 * i386-tdep.c (i386_register_names, i386_zmm_names)
5112 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
5113 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
5114 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
5115 * f-lang.c (f_extensions): Now const.
5116 * d-lang.c (d_extensions): Now const.
5117 * csky-tdep.c (csky_register_names): Now const.
5118 * charset.c (default_charset_names, charset_enum): Now const.
5119 (_initialize_charset): Update.
5120 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
5121 const.
5122 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
5123 (bsd_uthread_solib_loaded): Update.
5124 (bsd_uthread_state): Now const.
5125 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
5126 (amd64_ymm_avx512_names, amd64_ymmh_names)
5127 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
5128 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
5129 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
5130 (amd64_dword_names): Now const.
5131 * agent.c (can_use_agent_enum): Now const.
5132 * ada-tasks.c (task_states, long_task_states): Now const.
5133 * ada-lang.c (known_runtime_file_name_patterns)
5134 (known_auxiliary_function_name_patterns, attribute_names)
5135 (standard_exc, ada_extensions): Now const.
5136
5137 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5138
5139 * bcache.h (struct bcache) <bcache>: Remove constructor.
5140 <m_hash_function, m_compare_function>: Remove.
5141 <~bcache>: Make virtual.
5142 <compare>: Remove static method, introduce virtual method.
5143 <default_hash>: Remove.
5144 <hash>: New virtual method.
5145 * bcache.c (bcache::expand_hash_table): Update.
5146 (bcache::insert): Update.
5147 (bcache::hash): New.
5148 (bcache::compare): Update comment and parameter names.
5149 * gdbtypes.c (types_deeply_equal): Update.
5150 * psymtab.h (struct psymbol_bcache): New struct.
5151 (class psymtab_storage) <psymtab_storage>: Make default.
5152 <psymbol_cache>: Change type to psymbol_bcache.
5153 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
5154 (psymbol_hash): Change to...
5155 (psymbol_bcache::hash): ... this.
5156 (psymbol_compare): Change to...
5157 (psymbol_bcache::compare): ... this.
5158
5159 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5160
5161 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
5162 checking for initial lwp.
5163
5164 2020-09-14 Tom Tromey <tromey@adacore.com>
5165
5166 * m68k-tdep.c (m68k_extract_return_value): Use
5167 pointer_result_regnum.
5168 (m68k_store_return_value): Likewise.
5169 (m68k_reg_struct_return_p): Handle vectors and arrays.
5170 (m68k_return_value): Handle arrays.
5171 (m68k_svr4_return_value): Fix single-element aggregate handling.
5172 Handle long double. Adjust for embedded ABI.
5173 (m68k_svr4_init_abi): Set pointer_result_regnum.
5174 (m68k_embedded_init_abi): New function.
5175 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
5176 (m68k_osabi_sniffer): New function.
5177 (_initialize_m68k_tdep): Register osabi sniffer.
5178 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
5179 member.
5180
5181 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5182
5183 * xml-support.c (xml_fetch_content_from_file): Replace xfree
5184 with gdb::unique_xmalloc_ptr<char>.
5185
5186 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5187
5188 * xml-support.h (xml_fetch_another): Change type to be a
5189 function_view.
5190 (xml_process_xincludes): Remove baton parameter.
5191 (xml_fetch_content_from_file): Change baton parameter to
5192 dirname.
5193 * xml-support.c (struct xinclude_parsing_data)
5194 <xinclude_parsing_data>: Remove baton parameter.
5195 <fetcher_baton>: Remove.
5196 (xinclude_start_include): Adjust.
5197 (xml_process_xincludes): Adjust.
5198 (xml_fetch_content_from_file): Replace baton parameter with
5199 dirname.
5200 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
5201 (xml_init_syscalls_info): Use a lambda.
5202 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
5203 (file_read_description_xml): Use a lambda.
5204 (fetch_available_features_from_target): Change baton parameter
5205 to target_ops.
5206 (target_read_description_xml): Use a lambda.
5207 (target_fetch_description_xml): Use a lambda.
5208 (string_read_description_xml): Update.
5209
5210 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5211
5212 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
5213 uses with type::endianity_is_not_default.
5214
5215 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5216
5217 * gdbtypes.h (struct type) <endianity_is_not_default,
5218 set_endianity_is_not_default>: New methods.
5219 (TYPE_ENDIANITY_NOT_DEFAULT): Use
5220 type::endianity_is_not_default, change all write call sites to
5221 use type::set_endianity_is_not_default.
5222
5223 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5224
5225 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
5226 uses with type::is_fixed_instance.
5227
5228 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5229
5230 * gdbtypes.h (struct type) <is_fixed_instance,
5231 set_is_fixed_instance>: New methods.
5232 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
5233 write call sites to use type::set_is_fixed_instance.
5234
5235 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5236
5237 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
5238 uses with type::is_gnu_ifunc.
5239
5240 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5241
5242 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
5243 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
5244 use type::set_is_gnu_ifunc.
5245
5246 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5247
5248 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
5249 uses with type::stub_is_supported.
5250
5251 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5252
5253 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
5254 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
5255 use type::set_stub_is_supported.
5256
5257 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5258
5259 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
5260 uses with type::is_vector.
5261
5262 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5263
5264 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
5265 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
5266 use type::set_is_vector.
5267
5268 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5269
5270 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
5271 uses with type::has_varargs.
5272
5273 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5274
5275 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
5276 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
5277 use type::set_has_varargs.
5278
5279 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5280
5281 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
5282 uses with type::is_prototyped.
5283
5284 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5285
5286 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
5287 New methods.
5288 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
5289 call sites to use type::set_is_prototyped.
5290
5291 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5292
5293 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
5294 uses with type::target_is_stub.
5295
5296 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5297
5298 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
5299 New methods.
5300 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
5301 sites to use type::set_target_is_stub.
5302
5303 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5304
5305 * gdbtypes.h (TYPE_STUB): Remove, replace all
5306 uses with type::is_stub.
5307
5308 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5309
5310 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
5311 (TYPE_STUB): Use type::is_stub, change all write call sites to
5312 use type::set_is_stub.
5313
5314 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5315
5316 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
5317 type::has_no_signedness.
5318
5319 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5320
5321 * gdbtypes.h (struct type) <has_no_signedness,
5322 set_has_no_signedness>: New methods.
5323 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
5324 call sites to use type::set_has_no_signedness.
5325
5326 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5327
5328 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
5329 type::is_unsigned.
5330
5331 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5332
5333 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
5334 methods.
5335 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
5336 sites to use type::set_is_unsigned.
5337
5338 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
5339 Adam Renquinha <arenquinha@cimeq.qc.ca>
5340
5341 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
5342 pointer and stack frame offset when unwinding.
5343
5344 2020-09-13 Pedro Alves <pedro@palves.net>
5345
5346 * NEWS: Document "-break-insert --qualified".
5347 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
5348
5349 2020-09-13 Pedro Alves <pedro@palves.net>
5350
5351 * linespec.c (classify_mtype, compare_msyms): Delete.
5352 (search_minsyms_for_name): Remove classification logic. Instead
5353 filter out trampoline symbols if we also found an external
5354 function of the same name.
5355
5356 2020-09-13 Joel Brobecker <brobecker@adacore.com>
5357
5358 * NEWS: Create a new section for the next release branch.
5359 Rename the section of the current branch, now that it has
5360 been cut.
5361
5362 2020-09-13 Joel Brobecker <brobecker@adacore.com>
5363
5364 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
5365 * version.in: Bump version to 11.0.50.DATE-git.
5366
5367 2020-09-12 Joel Brobecker <brobecker@adacore.com>
5368
5369 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
5370
5371 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
5372 Felix Willgerodt <Felix.Willgerodt@intel.com>
5373
5374 * gdbarch.sh: Added bfloat16 type.
5375 * gdbarch.c: Regenerated.
5376 * gdbarch.h: Regenerated.
5377 * gdbtypes.c (floatformats_bfloat16): New struct.
5378 (gdbtypes_post_init): Add builtin_bfloat16.
5379 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
5380 (floatformats_bfloat16): New struct.
5381 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
5382 (i386_ymm_type): Add field "v16_bfloat16"
5383 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
5384 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
5385 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
5386 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
5387 * features/i386/64bit-avx512.xml: Add bfloat16 type.
5388 * features/i386/64bit-avx512.c: Regenerated.
5389 * features/i386/64bit-sse.xml: Add bfloat16 type.
5390 * features/i386/64bit-sse.c: Regenerated.
5391
5392 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
5393
5394 * i386-tdep.c (i386_zmm_type): Fix field names.
5395 (i386_ymm_type): Fix field names.
5396
5397 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5398
5399 * breakpoint.c: Fix typo in the help message of the
5400 "set breakpoint condition-evaluation" command.
5401
5402 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5403
5404 * nbsd-nat.c: Include "nat/netbsd-nat.h".
5405 * (nbsd_nat_target::pid_to_exec_file)
5406 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
5407 (nbsd_nat_target::post_startup_inferior)
5408 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
5409 (nbsd_add_threads): Switch local code to common gdb/nat functions.
5410 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
5411 * (nbsd_thread_lister): Remove.
5412
5413 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5414
5415 * fork-inferior.c (startup_inferior): Avoid double free.
5416
5417 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5418
5419 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
5420 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
5421
5422 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5423
5424 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
5425 * netbsd-nat.c: Include <sys/ptrace.h>.
5426 * (netbsd_nat::enable_proc_events): Add.
5427
5428 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5429
5430 * netbsd-nat.h: Include "gdbsupport/function-view.h".
5431 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
5432 (netbsd_nat::for_each_thread): Add.
5433 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
5434 "gdbsupport/common-debug.h".
5435 * (netbsd_nat::netbsd_thread_lister)
5436 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
5437 (netbsd_nat::for_each_thread): Add.
5438
5439 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5440
5441 * netbsd-nat.h: Include <unistd.h>.
5442 * (netbsd_nat::pid_to_exec_file): Add.
5443 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
5444 * (netbsd_nat::pid_to_exec_file) Add.
5445
5446 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5447
5448 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
5449
5450 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5451
5452 * netbsd-nat.h: New file.
5453 * netbsd-nat.c: Likewise.
5454
5455 2020-09-09 Tom Tromey <tromey@adacore.com>
5456
5457 * ada-lang.c (remove_extra_symbols): Do not increment when
5458 removing an element
5459
5460 2020-09-08 Tom Tromey <tromey@adacore.com>
5461
5462 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
5463
5464 2020-09-08 Tom Tromey <tromey@adacore.com>
5465
5466 PR win32/25302:
5467 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
5468 (gdb_bfd_init_data): New function.
5469 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
5470
5471 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5472
5473 * infrun.c (fetch_inferior_event): Use
5474 `switch_to_target_no_thread` to switch the target.
5475
5476 2020-09-06 Tom Tromey <tom@tromey.com>
5477
5478 * symfile.h (dwarf2_free_objfile): Don't declare.
5479
5480 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5481
5482 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
5483 to match 16 byte real/complex type generated by Flang compiler.
5484
5485 2020-09-03 Tom de Vries <tdevries@suse.de>
5486
5487 PR breakpoint/26546
5488 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
5489 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
5490
5491 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
5492
5493 * maint.c (index_digits): New function.
5494 (struct maint_print_section_data): Remove.
5495 (print_bfd_section_info): Remove print_data parameter, add arg
5496 and index_digits.
5497 (print_objfile_section_info): Likewise.
5498 (print_bfd_section_info_maybe_relocated): Likewise (plus
5499 objfile).
5500 (maintenance_info_sections): Adjust calls.
5501
5502 2020-09-02 Tom Tromey <tromey@adacore.com>
5503
5504 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
5505 for null pointers.
5506 (ada_varobj_adjust_for_child_access): Special-case null pointers.
5507
5508 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
5509
5510 * bcache.h (struct bcache) <insert>: Change type of `added` to
5511 pointer to bool.
5512 * bcache.c (bcache::insert): Likewise.
5513 * gdbtypes.c (check_types_worklist): Adjust.
5514 * psymtab.c (add_psymbol_to_bcache): Adjust.
5515
5516 2020-08-31 Kevin Buettner <kevinb@redhat.com>
5517
5518 * corelow.c (unordered_set): Include.
5519 (class core_target): Add field 'm_core_unavailable_mappings'.
5520 (core_target::build_file_mappings): Print only one warning
5521 per inaccessible file. Add unavailable/broken mappings
5522 to m_core_unavailable_mappings.
5523 (core_target::xfer_partial): Call...
5524 (core_target::xfer_memory_via_mappings): New method.
5525
5526 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
5527
5528 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
5529 type to bool.
5530
5531 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
5532
5533 * dwarf2/read.c (struct field_info): Fix indentation.
5534
5535 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5536
5537 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
5538 ordering in comment.
5539 * frame.c (frame_id_eq): Fix indentation.
5540
5541 2020-08-31 Scott Linder <scott@scottlinder.com>
5542 Simon Marchi <simon.marchi@efficios.com>
5543
5544 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
5545 inline frame ids in outer frame.
5546
5547 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5548
5549 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
5550 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
5551 (outer_frame_id): Use FID_STACK_OUTER instead of
5552 FID_STACK_INVALID.
5553 (frame_id_p): Don't check for outer_frame_id.
5554
5555 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5556
5557 * frame-unwind.c (frame_unwind_got_optimized): Don't set
5558 regnum/frame in value. Call allocate_value_lazy.
5559 * frame.c (frame_unwind_register_value): Use
5560 val_print_not_saved.
5561
5562 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5563
5564 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
5565
5566 2020-08-29 Pedro Alves <pedro@palves.net>
5567
5568 * progspace.c (print_program_space): Use all_inferiors. Switch to
5569 the inferior before calling target_pid_to_str.
5570
5571 2020-08-28 Tom Tromey <tom@tromey.com>
5572
5573 * xcoffread.c (xcoff_end_psymtab): Update comment.
5574 * dbxread.c (dbx_end_psymtab): Update comment.
5575
5576 2020-08-28 Tom de Vries <tdevries@suse.de>
5577
5578 PR breakpoint/26544
5579 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
5580 event_location.
5581 (create_breakpoint): Same.
5582 (base_breakpoint_decode_location): Same.
5583 (bkpt_create_sals_from_location): Same.
5584 (bkpt_decode_location): Same.
5585 (bkpt_probe_create_sals_from_location): Same.
5586 (bkpt_probe_decode_location): Same.
5587 (tracepoint_create_sals_from_location): Same.
5588 (tracepoint_decode_location): Same.
5589 (tracepoint_probe_decode_location): Same.
5590 (strace_marker_create_sals_from_location): Same.
5591 (strace_marker_decode_location): Same.
5592 (create_sals_from_location_default): Same.
5593 (decode_location_default): Same.
5594 * breakpoint.h (struct breakpoint_ops): Same.
5595 (create_breakpoint): Same.
5596 * linespec.h (decode_line_full): Same.
5597 * linespec.c (decode_line_full): Same. Throw error if
5598 result.size () == 0.
5599
5600 2020-08-27 Pedro Alves <pedro@palves.net>
5601
5602 PR gdb/26524
5603 * breakpoint.c (until_break_fsm) <location_breakpoint,
5604 caller_breakpoint>: Delete fields.
5605 <breakpoints>: New field.
5606 <until_break_fsm>: Adjust to save a breakpoint vector instead of
5607 two individual breakpoints.
5608 (until_break_fsm::should_stop): Loop over breakpoints in the
5609 breakpoint vector.
5610 (until_break_fsm::clean_up): Adjust to clear the breakpoints
5611 vector.
5612 (until_break_command): Handle location expanding into multiple
5613 sals.
5614
5615 2020-08-27 Pedro Alves <pedro@palves.net>
5616
5617 PR gdb/26523
5618 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
5619 bp_until breakpoints user-specified locations. Update intro
5620 comment.
5621
5622 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
5623
5624 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
5625 gdb_bfd_sections): New.
5626 * maint.c (print_bfd_section_info): Change param type to
5627 maint_print_section_data.
5628 (print_objfile_section_info): Likewise.
5629 (print_bfd_section_info_maybe_relocated): Likewise.
5630 (maintenance_info_sections): Use gdb_bfd_sections.
5631
5632 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5633
5634 * MAINTAINERS: Add ARC target and maintainer.
5635
5636 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
5637
5638 * configure.tgt: ARC support for GNU/Linux.
5639 * Makefile.in (ALL_TARGET_OBJS): Likewise.
5640 * arc-linux-tdep.c: New file.
5641 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
5642 * arc-tdep.c (arc_write_pc): Use it.
5643
5644 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5645
5646 * arc-tdep.c (arc_check_for_hardware_loop): New.
5647 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
5648
5649 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5650
5651 * arc-tdep.h: Include "gdbarch.h".
5652
5653 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5654
5655 * arch/arc.h
5656 (arc_gdbarch_features): New class to stir the selection of target XML.
5657 (arc_create_target_description): Use FEATURES to choose XML target.
5658 (arc_lookup_target_description): Use arc_create_target_description
5659 to create _new_ target descriptions or return the already created
5660 ones if the FEATURES is the same.
5661 * arch/arc.c: Implementation of prototypes described above.
5662 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
5663 (arc_gdbarch_features_init): Initialize the FEATURES struct.
5664 * arc-tdep.c (*_feature_name): Make feature names consistent.
5665 (arc_register_feature): A new struct to hold information about
5666 registers of a particular target/feature.
5667 (arc_check_tdesc_feature): Check if XML provides registers in
5668 compliance with ARC_REGISTER_FEATURE structs.
5669 (arc_update_acc_reg_names): Add aliases for r58 and r59.
5670 (determine_*_reg_feature_set): Which feature name to look for.
5671 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
5672 (mach_type_to_arc_isa): Convert from a set of binutils machine types
5673 to expected ISA enums to be used in arc_gdbarch_features structs.
5674 * features/Makefile (FEATURE_XMLFILES): Add new files.
5675 * gdb/features/arc/v1-aux.c: New file.
5676 * gdb/features/arc/v1-aux.xml: Likewise.
5677 * gdb/features/arc/v1-core.c: Likewise.
5678 * gdb/features/arc/v1-core.xml: Likewise.
5679 * gdb/features/arc/v2-aux.c: Likewise.
5680 * gdb/features/arc/v2-aux.xml: Likewise.
5681 * gdb/features/arc/v2-core.c: Likewise.
5682 * gdb/features/arc/v2-core.xml: Likewise.
5683 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
5684
5685 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
5686 Andrew Burgess <andrew.burgess@embecosm.com>
5687
5688 PR m2/26372
5689 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
5690 an assert. Remove single element array indexing pattern as the
5691 MULTI_SUBSCRIPT support will handle this case too.
5692
5693 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
5694
5695 * value.h (valprint_check_validity): Move declaration from
5696 here...
5697 * valprint.h (valprint_check_validity): ... to here.
5698
5699 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
5700
5701 * debug.h: New file.
5702 * debug.c (debug_prefixed_vprintf): New function.
5703 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
5704 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
5705
5706 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
5707
5708 * infrun.h (infrun_debug_printf_1): New function declaration.
5709 (infrun_debug_printf): New macro.
5710 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
5711 throughout.
5712 (infrun_debug_printf): New function.
5713 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
5714 (handle_jit_event): Likewise.
5715
5716 2020-08-21 Mark Wielaard <mark@klomp.org>
5717
5718 * ada-lex.l: Extend register warnings diagnostics comment for g++.
5719
5720 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
5721
5722 * frame.c (enum class frame_id_status): New.
5723 (struct frame_info) <this_id::p>: Change type to frame_id_status.
5724 (fprintf_frame): Update.
5725 (compute_frame_id): Set frame id status to "computing" on entry.
5726 Set it back to "not_computed" on failure and to "computed" on
5727 success.
5728 (get_frame_id): Assert the frame id is not being computed.
5729 (create_sentinel_frame): Use frame_id_status::COMPUTED.
5730 (create_new_frame): Likewise.
5731 (frame_cleanup_after_sniffer): Update assert.
5732
5733 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5734
5735 * regcache.c (pid_ptid_regcache_map): New type.
5736 (target_ptid_regcache_map): Remove.
5737 (target_pid_ptid_regcache_map): New type.
5738 (regcaches): Change type to target_pid_ptid_regcache_map.
5739 (get_thread_arch_aspace_regcache): Update.
5740 (regcache_thread_ptid_changed): Update, handle pid-like ptid
5741 case.
5742 (regcaches_size): Update.
5743 (regcache_count): Update.
5744 (registers_changed_ptid_target_pid_test): New.
5745 (_initialize_regcache): Register new test.
5746
5747 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5748
5749 * regcache.c (regcache_count): New.
5750 (struct regcache_test_data): New.
5751 (regcache_test_data_up): New.
5752 (populate_regcaches_for_test): New.
5753 (regcaches_test): Remove.
5754 (get_thread_arch_aspace_regcache_test): New.
5755 (registers_changed_ptid_all_test): New.
5756 (registers_changed_ptid_target_test): New.
5757 (registers_changed_ptid_target_ptid_test): New.
5758 (regcache_thread_ptid_changed): Remove regcache_count lambda.
5759 (_initialize_regcache): Register new tests.
5760
5761 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5762
5763 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
5764 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
5765 gdbarch and aspace parameter. Use current inferior's aspace.
5766 Validate regcache's arch value.
5767 (regcaches_test): Update.
5768
5769 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5770
5771 * regcache.c (regcaches_test): Call registers_changed.
5772
5773 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5774
5775 * infrun.c (process_event_stop_test): Fix typo "breapoint".
5776
5777 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5778
5779 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
5780 to find the end of prologue for flang compiled binaries.
5781 * arm-tdep.c (arm_skip_prologue): Likewise.
5782 * i386-tdep.c (i386_skip_prologue): Likewise.
5783 * producer.c (producer_is_llvm): New function.
5784 (producer_parsing_tests): Added new tests for clang/flang.
5785 * producer.h (producer_is_llvm): New declaration.
5786
5787 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
5788
5789 * linux-nat.c (linux_nat_debug_printf): New function.
5790 (linux_nat_debug_printf_1): New macro. Use throughout the file.
5791
5792 2020-08-18 Aaron Merey <amerey@redhat.com>
5793
5794 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
5795 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
5796 (CLIBS): Add DEBUGINFOD_LIBS.
5797
5798 2020-08-17 Sergei Trofimovich <siarheit@google.com>
5799
5800 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
5801 'gdbarch_num_regs'.
5802
5803 2020-08-17 Tom Tromey <tromey@adacore.com>
5804
5805 * ada-varobj.c (ada_varobj_decode_var): Handle case where
5806 ada_get_decoded_value returns NULL.
5807
5808 2020-08-17 Tom Tromey <tromey@adacore.com>
5809
5810 * python/py-inferior.c (infpy_search_memory): Use
5811 gdb_py_object_from_ulongest.
5812 * python/py-infevents.c (create_inferior_call_event_object)
5813 (create_memory_changed_event_object): Use
5814 gdb_py_object_from_ulongest.
5815 * python/py-linetable.c (ltpy_entry_get_pc): Use
5816 gdb_py_object_from_ulongest.
5817
5818 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
5819
5820 * loc.c (class symbol_needs_eval_context): Fix indentation.
5821
5822 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
5823
5824 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
5825 bool.
5826
5827 2020-08-17 Tom de Vries <tdevries@suse.de>
5828
5829 PR gdb/26393
5830 * gdbtypes.c (dump_dynamic_prop): New function.
5831 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
5832
5833 2020-08-15 Tom de Vries <tdevries@suse.de>
5834
5835 PR backtrace/26390
5836 * stack.c (print_frame_args): Temporarily set the selected
5837 frame to FRAME while printing the frame's arguments.
5838
5839 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5840
5841 PR breakpoints/26385
5842 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
5843 Always clear watchpoint with PTRACE_SET_DEBUGREG.
5844
5845 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5846
5847 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
5848 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
5849 and >= to check return value instead of == -1 and != -1.
5850
5851 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
5852
5853 * utils.h (class gdb_argv) <as_array_view>: New method.
5854 * utils.c (gdb_argv_as_array_view_test): New.
5855 (_initialize_utils): Register selftest.
5856 * maint.c (maintenance_selftest): Use the new method.
5857
5858 2020-08-13 Kamil Rytarowski <n54@gmx.com>
5859
5860 * target.h (supports_dumpcore, dumpcore): New
5861 function declarations.
5862 * target.c (supports_dumpcore, dumpcore): New
5863 functions.
5864 * target-delegates.c: Rebuild.
5865 * gcore.c (gcore_command): Use target_supports_dumpcore ()
5866 and target_dumpcore ().
5867
5868 2020-08-13 Aaron Merey <amerey@redhat.com>
5869
5870 * debuginfod-support.c: Replace global variables with user_data.
5871
5872 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
5873
5874 * maint.c (maintenance_selftest): Split args and pass array_view
5875 to run_tests.
5876
5877 2020-08-12 Luis Machado <luis.machado@linaro.org>
5878
5879 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
5880 type's length.
5881 Use %s and pulongest to print the length.
5882
5883 2020-08-12 Pedro Alves <palves@redhat.com>
5884
5885 * NEWS: Move "Multi-target debugging support" item to the
5886 "Changes since GDB 9" section.
5887
5888 2020-08-12 Pedro Alves <palves@redhat.com>
5889
5890 PR gdb/26336
5891 * progspace.c (program_space::remove_objfile): Invalidate the
5892 frame cache.
5893
5894 2020-08-11 Tom de Vries <tdevries@suse.de>
5895
5896 * MAINTAINERS: Mark ms1 as deleted.
5897
5898 2020-08-10 Luis Machado <luis.machado@linaro.org>
5899
5900 PR gdb/26310
5901
5902 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
5903 act accordingly.
5904 (aarch64_analyze_prologue_test): Add more unit tests to exercise
5905 movz/str/stur/stp skipping behavior.
5906
5907 2020-08-10 Luis Machado <luis.machado@linaro.org>
5908
5909 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
5910 struct user_sve_header instead of struct sve_context.
5911
5912 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
5913
5914 * read.h (dwarf2_fetch_die_loc_sect_off,
5915 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
5916 `void *` parameter with function_view.
5917 * read.c (dwarf2_fetch_die_loc_sect_off,
5918 dwarf2_fetch_die_loc_cu_off): Likewise.
5919 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
5920 (per_cu_dwarf_call): Adjust.
5921 (get_frame_address_in_block_wrapper): Remove.
5922 (indirect_synthetic_pointer): Adjust.
5923 (get_ax_pc): Remove.
5924 (dwarf2_compile_expr_to_ax): Adjust.
5925
5926 2020-08-08 Tom de Vries <tdevries@suse.de>
5927
5928 PR build/26344
5929 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
5930 constructor.
5931 * regcache.c (get_thread_arch_aspace_regcache): Same.
5932
5933 2020-08-07 Tom Tromey <tromey@adacore.com>
5934
5935 * ravenscar-thread.c
5936 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
5937 New method.
5938 (ravenscar_thread_target::wait): Check
5939 runtime_initialized.
5940 (ravenscar_thread_target::prepare_to_store)
5941 (ravenscar_thread_target::stopped_by_sw_breakpoint)
5942 (ravenscar_thread_target::stopped_by_hw_breakpoint)
5943 (ravenscar_thread_target::stopped_by_watchpoint)
5944 (ravenscar_thread_target::stopped_data_address)
5945 (ravenscar_thread_target::core_of_thread): Use
5946 scoped_restore_current_thread and
5947 set_base_thread_from_ravenscar_task.
5948
5949 2020-08-07 Tom Tromey <tromey@adacore.com>
5950
5951 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
5952
5953 2020-08-07 Tom Tromey <tromey@adacore.com>
5954
5955 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
5956 update_inferior_ptid before update_thread_list.
5957 (temporarily_change_regcache_ptid): New class.
5958 (ravenscar_thread_target::fetch_registers)
5959 (ravenscar_thread_target::store_registers)
5960 (ravenscar_thread_target::prepare_to_store): Use base thread when
5961 forwarding operation.
5962
5963 2020-08-07 Tom Tromey <tromey@adacore.com>
5964
5965 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
5966 "is_pid" case.
5967
5968 2020-08-07 Tom Tromey <tromey@adacore.com>
5969
5970 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
5971 New methods.
5972 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
5973 first.
5974 (ravenscar_thread_target::add_thread): Rename from
5975 ravenscar_add_thread.
5976 (ravenscar_thread_target::update_thread_list): Use a lambda.
5977 (ravenscar_thread_target::xfer_partial): New method.
5978
5979 2020-08-07 Tom Tromey <tromey@adacore.com>
5980
5981 * ada-lang.h (ada_task_list_iterator_ftype): Now a
5982 gdb::function_view.
5983 (iterate_over_live_ada_tasks): Change type of argument.
5984 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
5985 of argument.
5986
5987 2020-08-07 Tom Tromey <tromey@adacore.com>
5988
5989 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
5990 Remove.
5991 (ravenscar_thread_target::extra_thread_info): Remove.
5992 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
5993 defer to target beneath for non-Ravenscar threads.
5994
5995 2020-08-07 Tom Tromey <tromey@adacore.com>
5996
5997 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
5998 get_base_thread_from_ravenscar_task>: Now methods.
5999 <m_cpu_map>: New member.
6000 (ravenscar_thread_target::get_thread_base_cpu): Rename from
6001 ravenscar_get_thread_base_cpu. Check m_cpu_map.
6002 (ravenscar_thread_target::task_is_currently_active): Update.
6003 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
6004 Now a method.
6005 (ravenscar_thread_target::add_active_thread): Put initial thread
6006 into the m_cpu_map.
6007
6008 2020-08-07 Tom Tromey <tromey@adacore.com>
6009
6010 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
6011 event_ptid.
6012
6013 2020-08-07 Tom Tromey <tromey@adacore.com>
6014
6015 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
6016 runtime_initialized.
6017
6018 2020-08-07 Tom Tromey <tromey@adacore.com>
6019
6020 * ravenscar-thread.c (ravenscar_thread_target): Don't call
6021 add_active_thread.
6022 (ravenscar_thread_target::add_active_thread): Now public.
6023 (ravenscar_inferior_created): Call add_active_thread after pushing
6024 the target.
6025
6026 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
6027
6028 * regcache.c (ptid_regcache_map): New type.
6029 (target_ptid_regcache_map): New type.
6030 (regcaches): Change type to target_ptid_regcache_map.
6031 (get_thread_arch_aspace_regcache): Update to regcaches' new
6032 type.
6033 (regcache_thread_ptid_changed): Likewise.
6034 (registers_changed_ptid): Likewise.
6035 (regcaches_size): Likewise.
6036 (regcaches_test): Update.
6037 (regcache_thread_ptid_changed): Update.
6038 * regcache.h (regcache_up): New type.
6039 * gdbsupport/ptid.h (hash_ptid): New struct.
6040
6041 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
6042
6043 * observable.h (thread_ptid_changed): Add parameter
6044 `process_stratum_target *`.
6045 * infrun.c (infrun_thread_ptid_changed): Add parameter
6046 `process_stratum_target *` and use it.
6047 (selftests): New namespace.
6048 (infrun_thread_ptid_changed): New function.
6049 (_initialize_infrun): Register selftest.
6050 * regcache.c (regcache_thread_ptid_changed): Add parameter
6051 `process_stratum_target *` and use it.
6052 (regcache_thread_ptid_changed): New function.
6053 (_initialize_regcache): Register selftest.
6054 * thread.c (thread_change_ptid): Pass target to
6055 thread_ptid_changed observable.
6056
6057 2020-08-06 Caroline Tice <cmtice@google.com>
6058
6059 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
6060 (struct dwp_sections): Update field comments. Add loclists and
6061 rnglists fields.
6062 (struct virtual_v2_dwo_sections): Rename struct to
6063 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
6064 size & offset fields for loclists and rnglists.
6065 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
6066 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
6067 skipping dummy type units.
6068 (create_dwp_hash_table): Update the large comment above the function to
6069 discuss Version 5 DWP files as well, with references. Update all the
6070 version checks in the function to check for version 5 as well. Add new
6071 section at the end to create dwp hash table for version 5.
6072 (create_dwp_v2_section): Rename function to
6073 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
6074 Add V5 to error message text.
6075 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
6076 into calls to create_dwp_v2_or_v5_section.
6077 (create_dwo_unit_in_dwp_v5): New function.
6078 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
6079 check for version2; add else clause to handle version 5.
6080 (open_and_init_dwo_file): Add code to check dwarf version & only call
6081 create_debug_types_hash_table (with sections.types) if version is not 5;
6082 else call create_debug_type_hash_table, with sections.info.
6083 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
6084 version 5.
6085 (dwarf2_locate_v5_dwp_sections): New function.
6086 (open_and_init_dwp_file): Add else-if clause for version 5 to call
6087 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
6088
6089 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
6090
6091 * regcache.h (class regcache): Remove friend
6092 registers_changed_ptid.
6093 <regcache_thread_ptid_changed>: Remove.
6094 <regcaches>: Remove.
6095 * regcache.c (regcache::regcaches): Rename to...
6096 (regcaches): ... this. Make static.
6097 (get_thread_arch_aspace_regcache): Update.
6098 (regcache::regcache_thread_ptid_changed): Rename to...
6099 (regcache_thread_ptid_changed): ... this. Update.
6100 (class regcache_access): Remove.
6101 (regcaches_test): Update.
6102 (_initialize_regcache): Update.
6103 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
6104 <forward_list>.
6105
6106 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
6107
6108 * regcache.h (class regcache) <current_regcache>: Rename to...
6109 <regcaches>: ... this. Move doc here.
6110 * regcache.c (regcache::current_regcache) Rename to...
6111 (regcache::regcaches): ... this. Move doc to header.
6112 (get_thread_arch_aspace_regcache): Update.
6113 (regcache::regcache_thread_ptid_changed): Update.
6114 (registers_changed_ptid): Update.
6115 (class regcache_access) <current_regcache_size>: Rename to...
6116 <regcaches_size>: ... this.
6117 (current_regcache_test): Rename to...
6118 (regcaches_test): ... this.
6119 (_initialize_regcache): Update.
6120
6121 2020-08-06 Victor Collod <vcollod@nvidia.com>
6122
6123 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
6124
6125 2020-08-05 Kevin Buettner <kevinb@redhat.com>
6126
6127 * corelow.c (core_target::build_file_mappings): Don't output
6128 null pathname in warning.
6129
6130 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
6131
6132 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
6133 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
6134 gdb.dwarf2/dw2-single-line-discriminators.exp,
6135 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
6136
6137 2020-08-05 Tom Tromey <tromey@adacore.com>
6138
6139 PR rust/26197:
6140 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
6141 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
6142 Fix off-by-one and type size errors in ordinary case.
6143
6144 2020-08-05 Tom de Vries <tdevries@suse.de>
6145
6146 * gdbtypes.c (type_not_allocated, type_not_associated): Use
6147 "prop->const_val () == 0" instead of "prop->const_val () != 0".
6148
6149 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
6150
6151 * frame.h (frame_id_p): Return bool.
6152 (frame_id_artificial_p): Return bool.
6153 (frame_id_eq): Return bool.
6154 (has_stack_frames): Return bool.
6155 (get_selected_frame): Fix typo in comment.
6156 (get_frame_pc_if_available): Return bool.
6157 (get_frame_address_in_block_if_available): Return bool.
6158 (get_frame_func_if_available): Return bool.
6159 (read_frame_register_unsigned): Return bool.
6160 (get_frame_register_bytes): Return bool.
6161 (safe_frame_unwind_memory): Return bool.
6162 (deprecated_frame_register_read): Return bool.
6163 (frame_unwinder_is): Return bool.
6164 * frame.c (struct frame_info) <prev_arch::p>: Change type to
6165 bool.
6166 <this_id::p>: Likewise.
6167 <prev_p>: Likewise.
6168 (frame_stash_add): Return bool.
6169 (get_frame_id): Use bool.
6170 (frame_id_build_special) Use bool.
6171 (frame_id_build_unavailable_stack): Use bool.
6172 (frame_id_build): Use bool.
6173 (frame_id_p): Return bool, use true/false instead of 1/0.
6174 (frame_id_artificial_p): Likewise.
6175 (frame_id_eq): Likewise.
6176 (frame_id_inner): Likewise.
6177 (get_frame_func_if_available): Likewise.
6178 (read_frame_register_unsigned): Likewise.
6179 (deprecated_frame_register_read): Likewise.
6180 (get_frame_register_bytes): Likewise.
6181 (has_stack_frames): Likewise.
6182 (inside_main_func): Likewise.
6183 (inside_entry_func): Likewise.
6184 (get_frame_pc_if_available): Likewise.
6185 (get_frame_address_in_block_if_available): Likewise.
6186 (frame_unwinder_is): Likewise.
6187 (safe_frame_unwind_memory): Likewise.
6188 (frame_unwind_arch): Likewise.
6189
6190 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
6191
6192 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
6193 type to cached_copy_status.
6194 (fprintf_frame): Adjust.
6195 (get_frame_func_if_available): Adjust.
6196 (frame_cleanup_after_sniffer): Adjust.
6197
6198 2020-08-04 Mark Wielaard <mark@klomp.org>
6199
6200 * MAINTAINERS (Write After Approval): Update email address.
6201
6202 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6203
6204 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
6205 dynamic_prop::const_val.
6206
6207 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6208
6209 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
6210 dynamic_prop::kind.
6211
6212 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6213
6214 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
6215
6216 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
6217
6218 * configure.tgt: Set gdb_sim for bpf-*-* targets.
6219
6220 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
6221 Jose E. Marchesi <jose.marchesi@oracle.com>
6222
6223 * configure.tgt: Add entry for bpf-*-*.
6224 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
6225 (ALLDEPFILES): Add bpf-tdep.c.
6226 * bpf-tdep.c: New file.
6227 * MAINTAINERS: Add bpf target and maintainer.
6228 * NEWS: Mention the support for the new target.
6229
6230 2020-08-04 Tom de Vries <tdevries@suse.de>
6231
6232 PR symtab/23270
6233 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
6234 Error.
6235
6236 2020-08-03 John Baldwin <jhb@FreeBSD.org>
6237
6238 * syscalls/freebsd.xml: Regenerate.
6239
6240 2020-08-03 John Baldwin <jhb@FreeBSD.org>
6241
6242 * syscalls/update-freebsd.sh: Fix usage and year range.
6243
6244 2020-08-03 Tom de Vries <tdevries@suse.de>
6245
6246 PR symtab/26333
6247 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
6248 DW_LNE_lo_user/DW_LNE_hi_user range.
6249
6250 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
6251
6252 PR ada/26318
6253 * ada-lang.c (ada_modulus): Return 0 if property is not of const
6254 kind.
6255
6256 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6257
6258 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
6259
6260 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6261
6262 * breakpoint.c (set_breakpoint_condition): Update the condition
6263 expressions after checking that the input condition string parses
6264 successfully and does not contain junk at the end.
6265
6266 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6267
6268 * breakpoint.c (set_breakpoint_condition): Update the
6269 condition string after parsing the new condition successfully.
6270
6271 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6272
6273 * proc-api.c (_STRUCTURED_PROC): Don't define.
6274 * proc-events.c: Likewise.
6275 * proc-flags.c: Likewise.
6276 * proc-why.c: Likewise.
6277 * procfs.c: Likewise.
6278
6279 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
6280 * configure, config.in: Regenerate.
6281
6282 2020-07-30 Tom de Vries <tdevries@suse.de>
6283
6284 PR build/26320
6285 * ui-style.h (struct ui_file_style::color): Wrap m_value and
6286 m_red/m_green/m_blue in a union.
6287
6288 2020-07-29 Tom de Vries <tdevries@suse.de>
6289
6290 PR tdep/26280
6291 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
6292
6293 2020-07-28 Tom Tromey <tromey@adacore.com>
6294
6295 PR symtab/26270:
6296 * symtab.h (find_pc_partial_function_sym): Declare.
6297 * cli/cli-cmds.c (disassemble_command): Use
6298 find_pc_partial_function_sym. Check asm_demangle.
6299 * blockframe.c (cache_pc_function_sym): New global.
6300 (cache_pc_function_name): Remove.
6301 (clear_pc_function_cache): Update.
6302 (find_pc_partial_function_sym): New function, from
6303 find_pc_partial_function.
6304 (find_pc_partial_function): Rewrite using
6305 find_pc_partial_function_sym.
6306
6307 2020-07-28 Tom Tromey <tromey@adacore.com>
6308
6309 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
6310 help. Add usage.
6311
6312 2020-07-28 Tom Tromey <tromey@adacore.com>
6313
6314 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
6315 <DW_OP_GNU_variable_value>: Cast to address type.
6316
6317 2020-07-28 Kamil Rytarowski <n54@gmx.com>
6318
6319 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
6320 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
6321 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
6322 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
6323 (nbsd_get_siginfo_type): New.
6324 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
6325 (_initialize_nbsd_tdep): New.
6326
6327 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
6328
6329 PR binutils/26301
6330 * configure: Regenerated.
6331
6332 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
6333
6334 PR binutils/26301
6335 * configure: Regenerated.
6336
6337 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
6338
6339 * python/py-frame.c: Remove 'user-regs.h' include.
6340 (frapy_read_register): Rewrite to make use of
6341 gdbpy_parse_register_id.
6342 * python/py-registers.c (gdbpy_parse_register_id): New function,
6343 moved here from python/py-unwind.c. Updated the return type, and
6344 also accepts register descriptor objects.
6345 * python/py-unwind.c: Remove 'user-regs.h' include.
6346 (pyuw_parse_register_id): Moved to python/py-registers.c.
6347 (unwind_infopy_add_saved_register): Update to use
6348 gdbpy_parse_register_id.
6349 (pending_framepy_read_register): Likewise.
6350 * python/python-internal.h (gdbpy_parse_register_id): Declare.
6351
6352 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
6353
6354 * python/py-registers.c: Add 'user-regs.h' include.
6355 (register_descriptor_iter_find): New function.
6356 (register_descriptor_iterator_object_methods): New static global
6357 methods array.
6358 (register_descriptor_iterator_object_type): Add pointer to methods
6359 array.
6360
6361 2020-07-27 John Baldwin <jhb@FreeBSD.org>
6362
6363 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
6364 for all architectures on FreeBSD 11.3 and later.
6365
6366 2020-07-27 Tom Tromey <tromey@adacore.com>
6367
6368 * gcore.h (load_corefile): Don't declare.
6369
6370 2020-07-27 Tom de Vries <tdevries@suse.de>
6371
6372 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
6373 * config.in: Regenerate.
6374 * configure: Regenerate.
6375
6376 2020-07-26 Eli Zaretskii <eliz@gnu.org>
6377
6378 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
6379 ws2tcpip.h. When checking whether socklen_t type is defined, use
6380 ws2tcpip.h if it is available and sys/socket.h isn't.
6381 * configure: Regenerate.
6382 * config.in: Regenerate.
6383
6384 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
6385
6386 PR fortran/23051
6387 PR fortran/26139
6388 * valops.c (value_ind): Pass address to
6389 readjust_indirect_value_type.
6390 * value.c (readjust_indirect_value_type): Make parameter
6391 non-const, and add extra address parameter. Resolve original type
6392 before using it.
6393 * value.h (readjust_indirect_value_type): Update function
6394 signature and comment.
6395
6396 2020-07-25 Tom de Vries <tdevries@suse.de>
6397
6398 PR symtab/26243
6399 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
6400 entries.
6401
6402 2020-07-24 Aaron Merey <amerey@redhat.com>
6403
6404 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
6405 * configure: Rebuild.
6406
6407 2020-07-23 Kevin Buettner <kevinb@redhat.com>
6408
6409 PR corefiles/26294
6410 * corelow.c (_initialize_corelow): Add period to help text
6411 for "maintenance print core-file-backed-mappings".
6412
6413 2020-07-23 Pedro Alves <pedro@palves.net>
6414
6415 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
6416 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
6417 meanwhile.
6418 * frame.c (frame_cache_generation, get_frame_cache_generation):
6419 New.
6420 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
6421 (get_prev_frame_if_no_cycle): On exception, don't touch
6422 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
6423 * frame.h (get_frame_cache_generation): Declare.
6424
6425 2020-07-23 Tom de Vries <tdevries@suse.de>
6426
6427 PR tui/26282
6428 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
6429 New default constructor.
6430
6431 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
6432
6433 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
6434 exclude non-statement entries.
6435
6436 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6437
6438 * NEWS (New commands): Mention new command
6439 "maintenance print core-file-backed-mappings".
6440
6441 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6442
6443 * corelow.c (gdbcmd.h): Include.
6444 (core_target::info_proc_mappings): New method.
6445 (get_current_core_target): New function.
6446 (maintenance_print_core_file_backed_mappings): New function.
6447 (_initialize_corelow): Add core-file-backed-mappings to
6448 "maint print" commands.
6449
6450 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6451
6452 * linux-tdep.c (dump_note_entry_p): New function.
6453 (linux_dump_mapping_p_ftype): New typedef.
6454 (linux_find_memory_regions_full): Add new parameter,
6455 should_dump_mapping_p.
6456 (linux_find_memory_regions): Adjust call to
6457 linux_find_memory_regions_full.
6458 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
6459 call to linux_find_memory_regions_full.
6460
6461 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6462
6463 * corelow.c (solist.h, unordered_map): Include.
6464 (class core_target): Add field m_core_file_mappings and
6465 method build_file_mappings.
6466 (core_target::core_target): Call build_file_mappings.
6467 (core_target::~core_target): Free memory associated with
6468 m_core_file_mappings.
6469 (core_target::build_file_mappings): New method.
6470 (core_target::xfer_partial): Use m_core_file_mappings
6471 for memory transfers.
6472 * linux-tdep.c (linux_read_core_file_mappings): New
6473 function.
6474 (linux_core_info_proc_mappings): Rewrite to use
6475 linux_read_core_file_mappings.
6476 (linux_init_abi): Register linux_read_core_file_mappings.
6477
6478 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6479
6480 * arch-utils.c (default_read_core_file_mappings): New function.
6481 * arch-utils.c (default_read_core_file_mappings): Declare.
6482 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
6483 * gdbarch.h, gdbarch.c: Regenerate.
6484
6485 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6486
6487 PR corefiles/25631
6488 * corelow.c (core_target:xfer_partial): Revise
6489 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
6490 case after first checking the stratum beneath the core
6491 target.
6492 (has_all_memory): Return true.
6493 * target.c (raw_memory_xfer_partial): Revise comment
6494 regarding use of has_all_memory.
6495
6496 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6497
6498 * exec.h (section_table_xfer_memory): Revise declaration,
6499 replacing section name parameter with an optional callback
6500 predicate.
6501 * exec.c (section_table_xfer_memory): Likewise.
6502 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
6503 of section_table_xfer_memory.
6504
6505 2020-07-22 Tom Tromey <tromey@adacore.com>
6506
6507 * mi/mi-cmd-stack.c (list_args_or_locals): Use
6508 lookup_symbol_search_name.
6509
6510 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6511
6512 * python/py-registers.c (gdbpy_register_object_data_init): Remove
6513 redundant local variable.
6514 (gdbpy_get_register_descriptor): Extract descriptor vector as a
6515 reference, not pointer, update code accordingly.
6516
6517 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6518 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6519
6520 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
6521 * jit.c (jit_breakpoint_re_set_internal): Use the
6522 `skip_jit_symbol_lookup` field.
6523
6524 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6525 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6526
6527 * jit.c (jit_read_descriptor): Define the descriptor address once,
6528 use twice.
6529 (jit_breakpoint_deleted): Move the declaration of the loop variable
6530 `iter` into the loop header.
6531 (jit_breakpoint_re_set_internal): Move the declaration of the local
6532 variable `objf_data` to the first point of definition.
6533 (jit_event_handler): Move the declaration of local variables
6534 `code_entry`, `entry_addr`, and `objf` to their first point of use.
6535 Rename `objf` to `jited`.
6536
6537 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6538
6539 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
6540 Remove.
6541 * jit.c (get_jiter_objfile_data): Update.
6542
6543 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6544 Simon Marchi <simon.marchi@polymtl.ca>
6545
6546 * jit.c (struct jit_program_space_data): Remove.
6547 (jit_program_space_key): Remove.
6548 (jiter_objfile_data::~jiter_objfile_data): Remove program space
6549 stuff.
6550 (get_jit_program_space_data): Remove.
6551 (jit_breakpoint_deleted): Iterate on all of the program space's
6552 objfiles.
6553 (jit_inferior_init): Likewise.
6554 (jit_breakpoint_re_set_internal): Likewise. Also change return
6555 type to void.
6556 (jit_breakpoint_re_set): Pass current_program_space to
6557 jit_breakpoint_re_set_internal.
6558
6559 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6560
6561 * jit.h (struct jiter_objfile_data) <cached_code_address,
6562 jit_breakpoint>: Move to here from ...
6563 * jit.c (jit_program_space_data): ... here.
6564 (jiter_objfile_data::~jiter_objfile_data): Update.
6565 (jit_breakpoint_deleted): Update.
6566 (jit_breakpoint_re_set_internal): Update.
6567
6568 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6569
6570 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
6571 checks.
6572 (jit_read_descriptor): Remove NULL check.
6573 (jit_event_handler): Add an assertion.
6574
6575 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6576
6577 * jit.h (struct jit_objfile_data): Split into...
6578 (struct jiter_objfile_data): ... this ...
6579 (struct jited_objfile_data): ... and this.
6580 * objfiles.h (struct objfile) <jit_data>: Remove.
6581 <jiter_data, jited_data>: New fields.
6582 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
6583 (jiter_objfile_data::~jiter_objfile_data): ... this.
6584 (get_jit_objfile_data): Rename to ...
6585 (get_jiter_objfile_data): ... this.
6586 (add_objfile_entry): Update.
6587 (jit_read_descriptor): Use get_jiter_objfile_data.
6588 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
6589 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
6590 (jit_inferior_exit_hook): Use objfile's jited_data field.
6591
6592 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6593
6594 * jit.h: Forward-declare `struct minimal_symbol`.
6595 (struct jit_objfile_data): Migrate to here from jit.c; also add a
6596 constructor, destructor, and an objfile* field.
6597 * jit.c (jit_objfile_data): Remove.
6598 (struct jit_objfile_data): Migrate from here to jit.h.
6599 (jit_objfile_data::~jit_objfile_data): New destructor
6600 implementation with code moved from free_objfile_data.
6601 (free_objfile_data): Delete.
6602 (get_jit_objfile_data): Update to use the jit_data field of objfile.
6603 (jit_find_objf_with_entry_addr): Ditto.
6604 (jit_inferior_exit_hook): Ditto.
6605 (_initialize_jit): Remove the call to
6606 register_objfile_data_with_cleanup.
6607 * objfiles.h (struct objfile) <jit_data>: New field.
6608
6609 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6610
6611 * jit.h: Forward-declare `struct objfile`.
6612 (jit_event_handler): Add a second parameter, the JITer objfile.
6613 * jit.c (jit_read_descriptor): Change the signature to take the
6614 JITer objfile as an argument instead of the jit_program_space_data.
6615 (jit_inferior_init): Update the call to jit_read_descriptor.
6616 (jit_event_handler): Use the new JITer objfile argument when calling
6617 jit_read_descriptor.
6618 * breakpoint.c (handle_jit_event): Update the call to
6619 jit_event_handler to pass the JITer objfile.
6620
6621 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6622
6623 * gdbarch.c: Regenerate.
6624 * gdbarch.h: Regenerate.
6625 * gdbarch.sh (handle_segmentation_fault): Remove method.
6626 * infrun.c (handle_segmentation_fault): Remove.
6627 (print_signal_received_reason): Remove call to
6628 handle_segmentation_fault.
6629
6630 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6631
6632 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
6633 Rename to sparc64_linux_report_signal_info and add siggnal
6634 argument.
6635 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
6636 instead of sparc64_linux_handle_segmentation_fault.
6637
6638 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6639
6640 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
6641 i386_linux_report_signal_info instead of
6642 i386_linux_handle_segmentation_fault.
6643 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
6644 to i386_linux_report_signal_info and add siggnal argument.
6645 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
6646 of i386_linux_handle_segmentation_fault.
6647 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
6648 to i386_linux_report_signal_info and add siggnal argument.
6649
6650 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6651
6652 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
6653 hook if present.
6654
6655 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6656
6657 * gdbarch.c: Regenerate.
6658 * gdbarch.h: Regenerate.
6659 * gdbarch.sh (report_signal_info): New method.
6660 * infrun.c (print_signal_received_reason): Invoke gdbarch
6661 report_signal_info hook if present.
6662
6663 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
6664
6665 * python/py-registers.c : Add 'unordered_map' include.
6666 (gdbpy_new_reggroup): Renamed to...
6667 (gdbpy_get_reggroup): ...this. Update to only create register
6668 group descriptors when needed.
6669 (gdbpy_reggroup_iter_next): Update.
6670
6671 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
6672
6673 * python/py-registers.c (gdbpy_register_object_data): New static
6674 global.
6675 (gdbpy_register_object_data_init): New function.
6676 (gdbpy_new_register_descriptor): Renamed to...
6677 (gdbpy_get_register_descriptor): ...this, and update to reuse
6678 existing register descriptors where possible.
6679 (gdbpy_register_descriptor_iter_next): Update.
6680 (gdbpy_initialize_registers): Register new gdbarch data.
6681
6682 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
6683
6684 * linux-nat.c (stopped_pids): Make static.
6685
6686 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
6687
6688 PR ada/26235
6689 * gdbtypes.c (ada_discrete_type_low_bound,
6690 ada_discrete_type_high_bound): Handle undefined bounds.
6691
6692 2020-07-21 Kamil Rytarowski <n54@gmx.com>
6693
6694 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
6695 declaration.
6696 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
6697 function.
6698
6699 2020-07-20 John Baldwin <jhb@FreeBSD.org>
6700
6701 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
6702 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
6703 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
6704 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
6705 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
6706 method.
6707
6708 2020-07-20 Ludovic Courtès <ludo@gnu.org>
6709
6710 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
6711 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
6712 which are deprecated in Guile 3.0.
6713 * configure.ac (try_guile_versions): Add "guile-3.0".
6714 * configure (try_guile_versions): Regenerate.
6715 * NEWS: Update entry.
6716
6717 2020-07-20 Ludovic Courtès <ludo@gnu.org>
6718 Doug Evans <dje@google.com>
6719
6720 PR gdb/21104
6721 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
6722 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
6723 USING_GUILE_BEFORE_2_2.
6724 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
6725 Change type to 'scm_t_port_type *'.
6726 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
6727 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
6728 parameter and honor it. Update callers.
6729 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
6730 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
6731 functions.
6732 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
6733 USING_GUILE_BEFORE_2_2.
6734 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
6735 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
6736 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
6737 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
6738 and 'SCM_PORT_TYPE'.
6739 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
6740 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
6741 (gdbscm_memory_port_read, gdbscm_memory_port_write)
6742 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
6743 [!USING_GUILE_BEFORE_2_2]: New functions.
6744 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
6745 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
6746 'gdbscm_memory_port_read'.
6747 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
6748 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
6749 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
6750 function.
6751 (ioscm_init_memory_port): Remove.
6752 (ioscm_init_memory_port_stream): New function
6753 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
6754 function.
6755 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
6756 Return scm_from_uint (0).
6757 (gdbscm_set_memory_port_read_buffer_size_x)
6758 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
6759 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
6760 Return scm_from_uint (0).
6761 (gdbscm_set_memory_port_write_buffer_size_x)
6762 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
6763 * configure.ac (try_guile_versions): Add "guile-2.2".
6764 * configure: Regenerate.
6765 * NEWS: Add entry.
6766
6767 2020-07-18 Tom Tromey <tom@tromey.com>
6768
6769 * linux-nat.c (linux_multi_process): Remove.
6770 (linux_nat_target::supports_multi_process): Return true.
6771
6772 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
6773
6774 * arch/riscv.c (riscv_tdesc_cache): Change map type.
6775 (riscv_lookup_target_description): Return pointer out of
6776 unique_ptr.
6777 * target-descriptions.c (allocate_target_description): Add
6778 comment.
6779 (target_desc_deleter::operator()): Likewise.
6780 * target-descriptions.h (struct target_desc_deleter): Moved to
6781 gdbsupport/tdesc.h.
6782 (target_desc_up): Likewise.
6783
6784 2020-07-17 Tom Tromey <tromey@adacore.com>
6785
6786 * linux-nat.c (linux_nat_target::supports_non_stop)
6787 (linux_nat_target::always_non_stop_p): Use "true".
6788 (linux_nat_target::supports_disable_randomization): Use "true" and
6789 "false".
6790
6791 2020-07-16 Caroline Tice <cmtice@google.com>
6792
6793 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
6794 (RNGLIST_HEADER_SIZE64): New constant definition.
6795 (struct dwop_section_names): Add rnglists_dwo.
6796 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
6797 (struct loclist_header): Rename to 'loclists_rnglists_header'.
6798 (struct dwo_sections): Add rnglists field.
6799 (read_attribut_reprocess): Add tag parameter.
6800 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
6801 (cu_debug_rnglists_section): New function (decl & definition).
6802 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
6803 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
6804 die whose range is being checked; get rnglist section from
6805 cu_debug_rnglists_section, to get from either objfile or dwo file as
6806 appropriate. Add cases for DW_RLE_base_addressx,
6807 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
6808 the base address to DW_RLE_offset_pairs (not to all ranges), moving
6809 test inside if-condition and updating complaint message.
6810 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
6811 dwarf2_rnglists_process.
6812 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
6813 dwarf2_ranges_process.
6814 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
6815 need_ranges_base and update comment appropriately. Also pass die tag
6816 to dwarf2_ranges_read.
6817 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
6818 need_ranges_base and update comment appropriately. Also pass die tag
6819 to dwarf2_ranges_process.
6820 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
6821 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
6822 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
6823 need_ranges_base and update comment appropriately. Also pass die tag
6824 to read_attribute_reprocess and dwarf2_ranges_read.
6825 (read_loclist_header): Rename function to read_loclists_rnglists_header,
6826 and update function comment appropriately.
6827 (read_loclist_index): Call read_loclists_rnglists_header instead of
6828 read_loclist_header.
6829 (read_rnglist_index): New function.
6830 (read_attribute_reprocess): Add tag parameter. Add code for
6831 DW_FORM_rnglistx, passing tag to read_rnglist_index.
6832 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
6833
6834 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
6835
6836 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
6837 being resolved.
6838
6839 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
6840
6841 * arch-utils.c (show_architecture): Update formatting of messages.
6842
6843 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6844
6845 * gdbtypes.h (struct type) <bounds>: Handle array and string
6846 types.
6847 * ada-lang.c (assign_aggregate): Use type::bounds on
6848 array/string type.
6849 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
6850 * c-varobj.c (c_number_of_children): Likewise.
6851 (c_describe_child): Likewise.
6852 * eval.c (evaluate_subexp_for_sizeof): Likewise.
6853 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
6854 (f_type_print_base): Likewise.
6855 * f-valprint.c (f77_array_offset_tbl): Likewise.
6856 (f77_get_upperbound): Likewise.
6857 (f77_print_array_1): Likewise.
6858 * guile/scm-type.c (gdbscm_type_range): Likewise.
6859 * m2-typeprint.c (m2_array): Likewise.
6860 (m2_is_long_set_of_type): Likewise.
6861 * m2-valprint.c (get_long_set_bounds): Likewise.
6862 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
6863 * python/py-type.c (typy_range): Likewise.
6864 * rust-lang.c (rust_internal_print_type): Likewise.
6865 * type-stack.c (type_stack::follow_types): Likewise.
6866 * valarith.c (value_subscripted_rvalue): Likewise.
6867 * valops.c (value_cast): Likewise.
6868
6869 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6870
6871 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
6872 callers to use the equivalent accessor methods.
6873
6874 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6875
6876 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
6877 (struct type) <bit_stride>: New method.
6878 (TYPE_BIT_STRIDE): Remove.
6879 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
6880
6881 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6882
6883 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
6884 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
6885 callers to use the equivalent accessor methods instead.
6886
6887 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6888
6889 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
6890 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
6891 callers to use the equivalent accessor methods instead.
6892
6893 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6894
6895 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
6896 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
6897 to use dynamic_prop::kind.
6898
6899 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6900
6901 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
6902 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
6903 to get the bound property's kind and check against
6904 PROP_UNDEFINED.
6905
6906 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6907
6908 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
6909 all callers to use type::range_bounds followed by
6910 dynamic_prop::{low,high}.
6911
6912 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
6913
6914 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
6915 const_val, set_const_val, baton, set_locexpr, set_loclist,
6916 set_addr_offset, variant_parts, set_variant_parts,
6917 original_type, set_original_type>: New methods.
6918 <kind>: Rename to...
6919 <m_kind>: ... this. Update all users to use the new methods
6920 instead.
6921 <data>: Rename to...
6922 <m_data>: ... this. Update all users to use the new methods
6923 instead.
6924
6925 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6926
6927 * gdbtypes.c (get_discrete_bounds): Return failure if
6928 the range type's bounds are not both defined and constant
6929 values.
6930 (get_array_bounds): Update comment. Remove undefined bound check.
6931
6932 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
6933
6934 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
6935 the type::bounds method directly.
6936
6937 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6938
6939 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
6940 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
6941 are used to set the range type's bounds to use set_bounds.
6942
6943 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6944
6945 * exec.c (_initialize_exec): Update exec-file-mismatch help.
6946
6947 2020-07-10 Pedro Alves <pedro@palves.net>
6948
6949 * gdbthread.h (inferior_ref): Define.
6950 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
6951 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
6952 * thread.c
6953 (scoped_restore_current_thread::restore):
6954 Adjust to gdb::ref_ptr.
6955 (scoped_restore_current_thread::~scoped_restore_current_thread):
6956 Remove manual decref handling.
6957 (scoped_restore_current_thread::scoped_restore_current_thread):
6958 Adjust to use
6959 inferior_ref::new_reference/thread_info_ref::new_reference.
6960 Incref the thread before calling get_frame_id instead of after.
6961 Let TARGET_CLOSE_ERROR propagate.
6962
6963 2020-07-10 Pedro Alves <pedro@palves.net>
6964
6965 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
6966 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
6967 NOT_AVAILABLE_ERROR.
6968 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
6969 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
6970
6971 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6972 Pedro Alves <pedro@palves.net>
6973
6974 PR gdb/26199
6975 * infrun.c (threads_are_resumed_pending_p): Delete.
6976 (do_target_wait): Remove threads_are_executing and
6977 threads_are_resumed_pending_p checks from the inferior_matches
6978 lambda. Update comments.
6979
6980 2020-07-10 Pedro Alves <pedro@palves.net>
6981
6982 PR gdb/26199
6983 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
6984 executing threads.
6985
6986 2020-07-10 Pedro Alves <pedro@palves.net>
6987
6988 PR gdb/26199
6989 * infrun.c (handle_no_resumed): Handle multiple targets.
6990
6991 2020-07-10 Pedro Alves <pedro@palves.net>
6992
6993 PR gdb/26199
6994 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
6995 target_is_async_p.
6996
6997 2020-07-10 Pedro Alves <pedro@palves.net>
6998
6999 PR gdb/26199
7000 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
7001 threads, not all threads.
7002
7003 2020-07-10 Pedro Alves <pedro@palves.net>
7004
7005 PR gdb/26199
7006 * remote.c (remote_target::open_1): Pass remote target pointer as
7007 data to create_async_event_handler.
7008 (remote_async_inferior_event_handler): Mark async event handler
7009 before returning if the remote target still has either pending
7010 events or unacknowledged notifications.
7011
7012 2020-07-10 John Baldwin <jhb@FreeBSD.org>
7013
7014 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
7015 declaration.
7016 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
7017 function.
7018
7019 2020-07-09 John Baldwin <jhb@FreeBSD.org>
7020
7021 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
7022 inferior_ptid.
7023
7024 2020-07-09 John Baldwin <jhb@FreeBSD.org>
7025
7026 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
7027 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
7028 AT_FREEBSD_PS_STRINGS.
7029
7030 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
7031
7032 * auto-load.c (auto_load_objfile_script_1): Convert drive part
7033 of debugfile path on Windows.
7034
7035 2020-07-08 John Baldwin <jhb@FreeBSD.org>
7036
7037 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
7038 argument to 'data'.
7039
7040 2020-07-08 Tom Tromey <tromey@adacore.com>
7041
7042 * ada-lang.c (ada_exception_message_1): Use read_memory.
7043
7044 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7045
7046 PR python/22748
7047 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
7048 special handling for inline frames.
7049 * findvar.c (value_of_register_lazy): Skip inline frames when
7050 creating lazy register values.
7051 * frame.c (frame_id_computed_p): Delete definition.
7052 * frame.h (frame_id_computed_p): Delete declaration.
7053
7054 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7055
7056 * NEWS: Mention additions to Python API.
7057 * python/py-arch.c (archpy_register_groups): New function.
7058 (arch_object_methods): Add 'register_groups' method.
7059 * python/py-registers.c (reggroup_iterator_object): New struct.
7060 (reggroup_object): New struct.
7061 (gdbpy_new_reggroup): New function.
7062 (gdbpy_reggroup_to_string): New function.
7063 (gdbpy_reggroup_name): New function.
7064 (gdbpy_reggroup_iter): New function.
7065 (gdbpy_reggroup_iter_next): New function.
7066 (gdbpy_new_reggroup_iterator): New function
7067 (gdbpy_initialize_registers): Register new types.
7068 (reggroup_iterator_object_type): Define new Python type.
7069 (gdbpy_reggroup_getset): New static global.
7070 (reggroup_object_type): Define new Python type.
7071 * python/python-internal.h
7072
7073 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7074
7075 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
7076 * python/py-arch.c (archpy_registers): New function.
7077 (arch_object_methods): Add 'registers' method.
7078 * python/py-registers.c: New file.
7079 * python/python-internal.h
7080 (gdbpy_new_register_descriptor_iterator): Declare.
7081 (gdbpy_initialize_registers): Declare.
7082 * python/python.c (do_start_initialization): Call
7083 gdbpy_initialize_registers.
7084 * NEWS: Mention additions to the Python API.
7085
7086 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7087
7088 * NEWS: Mention new Python API method.
7089 * python/py-unwind.c (pending_framepy_architecture): New function.
7090 (pending_frame_object_methods): Add architecture method.
7091
7092 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7093
7094 * gdbarch.c: Regenerate.
7095 * gdbarch.h: Regenerate.
7096 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
7097 (gdbarch_data): Use internal_error for the case where
7098 deprecated_set_gdbarch_data was originally needed.
7099 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
7100 and use passed in obstack.
7101 (libunwind_frame_set_descr): Should no longer get back NULL from
7102 gdbarch_data.
7103 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
7104 type.
7105 * user-regs.c (user_regs_init): Update parameters, and use passed
7106 in obstack.
7107 (user_reg_add): Should no longer get back NULL from gdbarch_data.
7108 (_initialize_user_regs): Register as a pre-init gdbarch data type.
7109
7110 2020-07-06 Tom de Vries <tdevries@suse.de>
7111
7112 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
7113 End-Of-Sequence in lte_is_less_than.
7114 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
7115 "gdb: Don't reorder line table entries too much when sorting".
7116
7117 2020-07-06 Tom de Vries <tdevries@suse.de>
7118
7119 PR tui/26205
7120 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
7121
7122 2020-07-05 Tom de Vries <tdevries@suse.de>
7123
7124 PR build/26187
7125 * inferior.h (struct infcall_suspend_state_deleter): If available, use
7126 std::uncaught_exceptions instead of deprecated
7127 std::uncaught_exception.
7128
7129 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7130
7131 * macroexp.h (macro_stringify): Return
7132 gdb::unique_xmalloc_ptr<char>.
7133 * macroexp.c (macro_stringify): Likewise.
7134 * macrotab.c (fixup_definition): Update.
7135
7136 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7137
7138 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
7139 (lex_one_token): Update.
7140 * macroexp.c (struct macro_buffer) <release>: Return
7141 gdb::unique_xmalloc_ptr<char>.
7142 (macro_stringify): Update.
7143 (macro_expand): Update.
7144 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
7145 * macroexp.h (macro_expand_next): Likewise.
7146
7147 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
7148
7149 * macroexp.h (macro_lookup_ftype): Remove.
7150 (macro_expand, macro_expand_once, macro_expand_next): Remove
7151 lookup function parameters, add scope parameter.
7152 * macroexp.c (scan, substitute_args, expand, maybe_expand,
7153 macro_expand, macro_expand_once, macro_expand_next): Likewise.
7154 * macroscope.h (standard_macro_lookup): Change parameter type
7155 to macro_scope.
7156 * macroscope.c (standard_macro_lookup): Likewise.
7157 * c-exp.y (lex_one_token): Update.
7158 * macrocmd.c (macro_expand_command): Likewise.
7159 (macro_expand_once_command): Likewise.
7160
7161 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7162
7163 * inf-loop.c (inferior_event_handler): Remove client_data param.
7164 * inf-loop.h (inferior_event_handler): Likewise.
7165 * infcmd.c (step_1): Adjust.
7166 * infrun.c (proceed): Adjust.
7167 (fetch_inferior_event): Remove client_data param.
7168 (infrun_async_inferior_event_handler): Adjust.
7169 * infrun.h (fetch_inferior_event): Remove `void *` param.
7170 * linux-nat.c (handle_target_event): Adjust.
7171 * record-btrace.c (record_btrace_handle_async_inferior_event):
7172 Adjust.
7173 * record-full.c (record_full_async_inferior_event_handler):
7174 Adjust.
7175 * remote.c (remote_async_inferior_event_handler): Adjust.
7176
7177 2020-07-01 Tom Tromey <tom@tromey.com>
7178
7179 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
7180 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
7181
7182 2020-07-01 Tom Tromey <tom@tromey.com>
7183
7184 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
7185 tui_gen_win_info.
7186 (tui_win_info::make_window): Merge with
7187 tui_gen_win_info::make_window.
7188 (tui_win_info::make_visible): Move from tui_gen_win_info.
7189 * tui/tui-win.c (tui_win_info::max_width): Move from
7190 tui_gen_win_info.
7191 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
7192 type.
7193 <window_factory>: Likewise.
7194 * tui/tui-layout.c (tui_win_info::resize): Move from
7195 tui_gen_win_info.
7196 (make_standard_window): Change return type.
7197 (get_locator_window, tui_get_window_by_name): Likewise.
7198 (tui_layout_window::apply): Remove a cast.
7199 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
7200 (struct tui_win_info): Merge with tui_gen_win_info.
7201 (struct tui_gen_win_info): Remove.
7202
7203 2020-07-01 Tom Tromey <tom@tromey.com>
7204
7205 * tui/tui-stack.h (struct tui_locator_window): Derive from
7206 tui_win_info.
7207 <do_scroll_horizontal, do_scroll_vertical>: New methods.
7208 <can_box>: New method.
7209
7210 2020-07-01 Tom Tromey <tom@tromey.com>
7211
7212 * tui/tui-stack.h (struct tui_locator_window): Remove body.
7213
7214 2020-07-01 Tom Tromey <tom@tromey.com>
7215
7216 * tui/tui-regs.c (tui_data_window::display_registers_from)
7217 (tui_data_window::display_registers_from)
7218 (tui_data_window::first_data_item_displayed)
7219 (tui_data_window::delete_data_content_windows): Update.
7220 (tui_data_window::refresh_window, tui_data_window::no_refresh):
7221 Remove.
7222 (tui_data_window::check_register_values): Update.
7223 (tui_data_item_window::rerender): Add parameters. Update.
7224 (tui_data_item_window::refresh_window): Remove.
7225 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
7226 virtual.
7227 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
7228 tui_gen_win_info.
7229 <refresh_window, max_height, min_height>: Remove.
7230 <rerender>: Add parameters.
7231 <x, y, visible>: New members.
7232 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
7233 <m_item_width>: New member.
7234
7235 2020-07-01 Tom Tromey <tom@tromey.com>
7236
7237 * tui/tui-regs.c (tui_data_window::show_register_group)
7238 (tui_data_window::check_register_values): Update.
7239 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
7240 from item_no.
7241
7242 2020-07-01 Tom Tromey <tom@tromey.com>
7243
7244 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
7245 useless "if".
7246
7247 2020-07-01 Tom Tromey <tom@tromey.com>
7248
7249 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
7250 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
7251
7252 2020-07-01 Tom Tromey <tom@tromey.com>
7253
7254 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
7255 * tui/tui-winsource.h (enum tui_line_or_address_kind)
7256 (struct tui_line_or_address): Move from tui-data.h.
7257 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
7258 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
7259 (tui_cmd_window, tui_source_window_base, tui_source_window)
7260 (tui_disasm_window): Don't declare.
7261 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
7262 to tui-winsource.h.
7263 (SINGLE_KEY): Move to tui-stack.c.
7264
7265 2020-07-01 Tom Tromey <tom@tromey.com>
7266
7267 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
7268 std::string.
7269 * tui/tui-regs.c (class tab_expansion_file): New.
7270 (tab_expansion_file::write): New method.
7271 (tui_register_format): Change return type. Use
7272 tab_expansion_file.
7273 (tui_get_register, tui_data_window::display_registers_from)
7274 (tui_data_item_window::rerender): Update.
7275 * tui/tui-io.h (tui_expand_tabs): Don't declare.
7276 * tui/tui-io.c (tui_expand_tabs): Remove.
7277
7278 2020-07-01 Tom Tromey <tom@tromey.com>
7279
7280 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
7281
7282 2020-07-01 Fangrui Song <maskray@google.com>
7283
7284 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
7285
7286 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7287
7288 * dwarf2/read.c (set_die_type): Removed conditions to restrict
7289 forms for DW_AT_associated and DW_AT_allocated attributes,
7290 which is already checked in function attr_to_dynamic_prop.
7291
7292 2020-06-30 Tom Tromey <tromey@adacore.com>
7293
7294 * dwarf2/read.c (quirk_rust_enum): Correctly call
7295 alloc_rust_variant for default-less enum.
7296
7297 2020-06-30 Tom Tromey <tromey@adacore.com>
7298
7299 PR build/26183:
7300 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
7301 gdb::to_string.
7302
7303 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
7304
7305 * gdbarch.sh (displaced_step_copy_insn): Update doc.
7306 * gdbarch.h: Re-generate.
7307
7308 2020-06-28 Tom Tromey <tom@tromey.com>
7309
7310 * command.h (cmd_types): Remove.
7311 (cmd_type): Don't declare.
7312 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
7313 typedef.
7314 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
7315 * cli/cli-decode.c (cmd_type): Remove.
7316
7317 2020-06-27 Pedro Alves <palves@redhat.com>
7318
7319 * fork-child.c (prefork_hook): Adjust.
7320 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
7321 Delete.
7322 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
7323 * inferior.c (inferior::set_tty, inferior::tty): New methods.
7324 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
7325 Remove declarations.
7326 (struct inferior) <set_tty, tty>: New methods.
7327 (struct inferior) <terminal>: Rename to ...
7328 (struct inferior) <m_terminal>: ... this and make private.
7329 * main.c (captured_main_1): Adjust.
7330 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
7331 (mi_cmd_inferior_tty_show): Adjust.
7332 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
7333 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
7334
7335 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
7336
7337 * configure.ac: Add --enable-libctf: handle --disable-static
7338 properly.
7339 * acinclude.m4: sinclude ../config/enable.m4.
7340 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
7341 (LIBCTF): Substitute in.
7342 (CTF_DEPS): New, likewise.
7343 (CLIBS): libctf needs symbols from libbfd: move earlier.
7344 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
7345 flags.
7346 * ctfread.c: Surround in ENABLE_LIBCTF.
7347 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
7348 * configure: Regenerate.
7349 * config.in: Likewise.
7350
7351 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
7352
7353 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
7354
7355 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
7356
7357 * inferior.h (struct inferior) <terminal>: Change type to
7358 gdb::unique_xmalloc_ptr<char>.
7359 * inferior.c (inferior::~inferior): Don't free inf->terminal.
7360 * infcmd.c (set_inferior_io_terminal): Don't free terminal
7361 field, adjust to unique pointer.
7362 (get_inferior_io_terminal): Adjust to unique pointer.
7363
7364 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7365
7366 * riscv-tdep.c (riscv_print_registers_info): Loop over all
7367 registers, not just the known core set of registers.
7368
7369 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7370
7371 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
7372 fflags, frm, and fcsr registers.
7373 (riscv_register_reggroup_p): Remove unknown CSRs from save and
7374 restore groups.
7375 (riscv_tdesc_unknown_reg): New function.
7376 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
7377 tdesc_use_registers.
7378 * riscv-tdep.h (struct gdbarch_tdep): Add
7379 unknown_csrs_first_regnum, unknown_csrs_count,
7380 duplicate_fflags_regnum, duplicate_frm_regnum, and
7381 duplicate_fcsr_regnum fields.
7382
7383 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7384
7385 * target-descriptions.c (tdesc_use_registers): Add new parameter a
7386 callback, use the callback (when not null) to help number unknown
7387 registers.
7388 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
7389 (tdesc_use_registers): Add extra parameter to declaration.
7390
7391 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7392
7393 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
7394 in the file.
7395 (class riscv_pending_register_alias): Likewise.
7396 (riscv_register_feature::register_info): Change 'required_p' field
7397 to 'required', and change its type. Add 'check' member function.
7398 (riscv_register_feature::register_info::check): Define new member
7399 function.
7400 (riscv_xreg_feature): Change initialisation of 'required' field.
7401 (riscv_freg_feature): Likewise.
7402 (riscv_virtual_feature): Likewise.
7403 (riscv_csr_feature): Likewise.
7404 (riscv_check_tdesc_feature): Take extra parameter, the csr
7405 tdesc_feature, rewrite the function to use the new
7406 riscv_register_feature::register_info::check function.
7407 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
7408
7409 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7410
7411 * features/Makefile: Remove all references to the deleted files
7412 below.
7413 * features/riscv/32bit-csr.c: Deleted.
7414 * features/riscv/32bit-csr.xml: Deleted.
7415 * features/riscv/64bit-csr.c: Deleted.
7416 * features/riscv/64bit-csr.xml: Deleted.
7417 * features/riscv/rebuild-csr-xml.sh: Deleted.
7418
7419 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7420
7421 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
7422 whitespace error for declaration of names member variable.
7423 (struct riscv_register_feature): Add new prefer_first_name member
7424 variable, and fix whitespace error in declaration of registers.
7425 (riscv_xreg_feature): Initialize prefer_first_name field.
7426 (riscv_freg_feature): Likewise.
7427 (riscv_virtual_feature): Likewise.
7428 (riscv_csr_feature): Likewise.
7429 (riscv_register_name): Expand on comments. Remove register name
7430 modifications for CSR and virtual registers.
7431
7432 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7433
7434 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
7435 errors.
7436
7437 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7438
7439 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
7440 riscv-opc.h.
7441 (class riscv_pending_register_alias): New class.
7442 (riscv_check_tdesc_feature): Take vector of pending aliases and
7443 populate it as appropriate.
7444 (riscv_setup_register_aliases): Delete.
7445 (riscv_gdbarch_init): Create vector of pending aliases and pass it
7446 to riscv_check_tdesc_feature in all cases. Use the vector to
7447 create the register aliases.
7448
7449 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7450
7451 * sol2-tdep.c (sol2_static_transform_name): Remove.
7452 (sol2_init_abi): Don't register it.
7453 * gdbarch.sh (static_transform_name): Remove.
7454 * gdbarch.c, gdbarch.h: Regenerate.
7455
7456 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
7457 gdbarch_static_transform_name.
7458 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
7459 * stabsread.c (define_symbol) <'X'>: Remove.
7460 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
7461 handling.
7462 <'V'>: Likewise.
7463 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
7464 <'S'>: Remove call to gdbarch_static_transform_name.
7465
7466 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7467
7468 * procfs.c (procfs_pre_trace): New function.
7469 (procfs_target::create_inferior): Pass it to fork_inferior.
7470
7471 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7472
7473 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
7474 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
7475 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
7476 sol2-tdep.o, sparc-sol2-tdep.o.
7477 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
7478 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
7479 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
7480 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
7481
7482 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7483
7484 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
7485 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
7486 Call sol2_init_abi.
7487 Remove calls to set_gdbarch_skip_solib_resolver,
7488 set_gdbarch_core_pid_to_str.
7489 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
7490 (i386_sol2_static_transform_name): Remove.
7491 (i386_sol2_init_abi): Call sol2_init_abi.
7492 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7493 set_gdbarch_static_transform_name,
7494 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
7495 Use sol2_sigtramp_p.
7496 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
7497 (sol2_sigtramp_p): New function.
7498 (sol2_static_transform_name): New function.
7499 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
7500 (sol2_init_abi): New function.
7501 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
7502 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
7503 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
7504 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
7505 (sparc_sol2_static_transform_name): Remove.
7506 (sparc32_sol2_init_abi): Call sol2_init_abi.
7507 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7508 set_gdbarch_static_transform_name,
7509 set_gdbarch_skip_solib_resolver,
7510 set_gdbarch_core_pid_to_str.
7511 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
7512 (sparc_sol2_static_transform_name): Remove
7513 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
7514 call sol2_sigtramp_p.
7515 (sparc64_sol2_init_abi): Call sol2_init_abi.
7516 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7517 set_gdbarch_static_transform_name,
7518 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
7519
7520 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7521
7522 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
7523 * exec.c (validate_exec_file): If from_tty, set both
7524 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
7525 * symfile.c (symbol_file_add_with_addrs): if always_confirm
7526 and from_tty, unconditionally ask a confirmation.
7527
7528 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7529
7530 * target-descriptions.c (tdesc_architecture_name): Protect against
7531 NULL pointer dereference.
7532 (maint_print_xml_tdesc_cmd): New function.
7533 (_initialize_target_descriptions): Register new 'maint print
7534 xml-tdesc' command and give it the filename completer.
7535 * NEWS: Mention new 'maint print xml-tdesc' command.
7536
7537 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7538
7539 * target-descriptions.c (class tdesc_compatible_info): New class.
7540 (struct target_desc): Change type of compatible vector.
7541 (tdesc_compatible_p): Update for change in type of
7542 target_desc::compatible.
7543 (tdesc_compatible_info_list): New function.
7544 (tdesc_compatible_info_arch_name): New function.
7545 (tdesc_add_compatible): Update for change in type of
7546 target_desc::compatible.
7547 (print_c_tdesc::visit_pre): Likewise.
7548
7549 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7550
7551 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
7552 whitespace to underscore.
7553 (maint_print_c_tdesc_cmd): Use fake filename for target
7554 descriptions that came from the target.
7555 (_initialize_target_descriptions): Add filename command completion
7556 for 'maint print c-tdesc'.
7557
7558 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
7559
7560 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
7561 lines.
7562
7563 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
7564
7565 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
7566 lines.
7567 (dwarf2_find_location_expression): Likewise.
7568 (call_site_parameter_matches): Likewise.
7569 (dwarf2_compile_expr_to_ax): Likewise.
7570 (disassemble_dwarf_expression): Likewise.
7571 (loclist_describe_location): Likewise.
7572
7573 2020-06-23 Pedro Alves <palves@redhat.com>
7574
7575 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
7576 progspace-and-thread.h. Include scoped-mock-context.h instead.
7577 (register_to_value_test): Use scoped_mock_context.
7578 * regcache.c: Include "scoped-mock-context.h".
7579 (cooked_read_test): Don't error out if a target is already pushed.
7580 Use scoped_mock_context. Adjust.
7581 * scoped-mock-context.h: New file.
7582
7583 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7584
7585 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
7586 initializer.
7587 (ada_language::is_string_type_p): New member function.
7588 * c-lang.c (c_language_data): Delete la_is_string_type_p
7589 initializer.
7590 (cplus_language_data): Likewise.
7591 (asm_language_data): Likewise.
7592 (minimal_language_data): Likewise.
7593 * d-lang.c (d_language_data): Likewise.
7594 * f-lang.c (f_is_string_type_p): Delete function, implementation
7595 moved to f_language::is_string_type_p.
7596 (f_language_data): Delete la_is_string_type_p initializer.
7597 (f_language::is_string_type_p): New member function,
7598 implementation from f_is_string_type_p.
7599 * go-lang.c (go_is_string_type_p): Delete function, implementation
7600 moved to go_language::is_string_type_p.
7601 (go_language_data): Delete la_is_string_type_p initializer.
7602 (go_language::is_string_type_p): New member function,
7603 implementation from go_is_string_type_p.
7604 * language.c (language_defn::is_string_type_p): Define new member
7605 function.
7606 (default_is_string_type_p): Make static, add comment copied from
7607 header file.
7608 (unknown_language_data): Delete la_is_string_type_p initializer.
7609 (unknown_language::is_string_type_p): New member function.
7610 (auto_language_data): Delete la_is_string_type_p initializer.
7611 (auto_language::is_string_type_p): New member function.
7612 * language.h (language_data): Delete la_is_string_type_p field.
7613 (language_defn::is_string_type_p): Declare new function.
7614 (default_is_string_type_p): Delete desclaration, move comment to
7615 definition.
7616 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
7617 moved to m2_language::is_string_type_p.
7618 (m2_language_data): Delete la_is_string_type_p initializer.
7619 (m2_language::is_string_type_p): New member function,
7620 implementation from m2_is_string_type_p.
7621 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
7622 initializer.
7623 * opencl-lang.c (opencl_language_data): Likewise.
7624 * p-lang.c (pascal_is_string_type_p): Delete function,
7625 implementation moved to pascal_language::is_string_type_p.
7626 (pascal_language_data): Delete la_is_string_type_p initializer.
7627 (pascal_language::is_string_type_p): New member function,
7628 implementation from pascal_is_string_type_p.
7629 * rust-lang.c (rust_is_string_type_p): Delete function,
7630 implementation moved to rust_language::is_string_type_p.
7631 (rust_language_data): Delete la_is_string_type_p initializer.
7632 (rust_language::is_string_type_p): New member function,
7633 implementation from rust_is_string_type_p.
7634 * valprint.c (val_print_scalar_or_string_type_p): Update call to
7635 is_string_type_p.
7636
7637 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7638
7639 * ada-lang.c (ada_language_data): Delete la_print_typedef
7640 initializer.
7641 (ada_language::print_typedef): New member function.
7642 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
7643 (cplus_language_data): Likewise.
7644 (asm_language_data): Likewise.
7645 (minimal_language_data): Likewise.
7646 * d-lang.c (d_language_data): Likewise.
7647 * f-lang.c (f_language_data): Likewise.
7648 (f_language::print_typedef): New member function.
7649 * go-lang.c (go_language_data): Delete la_print_typedef
7650 initializer.
7651 * language.c (language_defn::print_typedef): Define member
7652 function.
7653 (unknown_language_data): Delete la_print_typedef initializer.
7654 (unknown_language::print_typedef): New member function.
7655 (auto_language_data): Delete la_print_typedef initializer.
7656 (auto_language::print_typedef): New member function.
7657 * language.h (language_data): Delete la_print_typedef field.
7658 (language_defn::print_typedef): Declare new member function.
7659 (LA_PRINT_TYPEDEF): Update call to print_typedef.
7660 (default_print_typedef): Delete declaration.
7661 * m2-lang.c (m2_language_data): Delete la_print_typedef
7662 initializer.
7663 (m2_language::print_typedef): New member function.
7664 * objc-lang.c (objc_language_data): Delete la_print_typedef
7665 initializer.
7666 * opencl-lang.c (opencl_language_data): Likewise.
7667 * p-lang.c (pascal_language_data): Likewise.
7668 (pascal_language::print_typedef): New member function.
7669 * rust-lang.c (rust_print_typedef): Delete function,
7670 implementation moved to rust_language::print_typedef.
7671 (rust_language): Delete la_print_typedef initializer.
7672 (rust_language::print_typedef): New member function,
7673 implementation from rust_print_typedef.
7674 * typeprint.c (default_print_typedef): Delete.
7675
7676 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7677
7678 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
7679 (ada_language::printstr): New member function.
7680 * c-lang.c (c_language_data): Delete la_printstr initializer.
7681 (cplus_language_data): Likewise.
7682 (asm_language_data): Likewise.
7683 (minimal_language_data): Likewise.
7684 * d-lang.c (d_language_data): Likewise.
7685 * f-lang.c (f_printstr): Rename to f_language::printstr.
7686 (f_language_data): Delete la_printstr initializer.
7687 (f_language::printstr): New member function, implementation from
7688 f_printstr.
7689 * go-lang.c (go_language_data): Delete la_printstr initializer.
7690 * language.c (language_defn::printstr): Define new member
7691 function.
7692 (unk_lang_printstr): Delete.
7693 (unknown_language_data): Delete la_printstr initializer.
7694 (unknown_language::printstr): New member function.
7695 (auto_language_data): Delete la_printstr initializer.
7696 (auto_language::printstr): New member function.
7697 * language.h (language_data): Delete la_printstr field.
7698 (language_defn::printstr): Declare new member function.
7699 (LA_PRINT_STRING): Update call to printstr.
7700 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
7701 (m2_language_data): Delete la_printstr initializer.
7702 (m2_language::printstr): New member function, implementation from
7703 m2_printstr.
7704 * objc-lang.c (objc_language_data): Delete la_printstr
7705 initializer.
7706 * opencl-lang.c (opencl_language_data): Likewise.
7707 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
7708 (pascal_language_data): Delete la_printstr initializer.
7709 (pascal_language::printstr): New member function, implementation
7710 from pascal_printstr.
7711 * p-lang.h (pascal_printstr): Delete declaration.
7712 * rust-lang.c (rust_printstr): Update header comment.
7713 (rust_language_data): Delete la_printstr initializer.
7714 (rust_language::printstr): New member function.
7715
7716 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7717
7718 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
7719 (ada_language::printchar): New member function.
7720 * c-lang.c (c_language_data): Delete la_printchar initializer.
7721 (cplus_language_data): Likewise.
7722 (asm_language_data): Likewise.
7723 (minimal_language_data): Likewise.
7724 * d-lang.c (d_language_data): Likewise.
7725 * f-lang.c (f_printchar): Rename to f_language::printchar.
7726 (f_language_data): Delete la_printchar initializer.
7727 (f_language::printchar): New member function, implementation from
7728 f_printchar.
7729 * go-lang.c (go_language_data): Delete la_printchar initializer.
7730 * language.c (unk_lang_printchar): Delete.
7731 (language_defn::printchar): Define new member function.
7732 (unknown_language_data): Delete la_printchar initializer.
7733 (unknown_language::printchar): New member function.
7734 (auto_language_data): Delete la_printchar initializer.
7735 (auto_language::printchar): New member function.
7736 * language.h (language_data): Delete la_printchar field.
7737 (language_defn::printchar): Declare new member function.
7738 (LA_PRINT_CHAR): Update call to printchar.
7739 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
7740 (m2_language::printchar): New member function.
7741 * objc-lang.c (objc_language_data): Delete la_printchar
7742 initializer.
7743 * opencl-lang.c (opencl_language_data): Likewise.
7744 * p-lang.c (pascal_language_data): Delete la_printchar
7745 initializer.
7746 (pascal_language::printchar): New member function.
7747 * rust-lang.c (rust_printchar): Rename to
7748 rust_language::printchar.
7749 (rust_language_data): Delete la_printchar initializer.
7750 (rust_language::printchar): New member function, implementation
7751 from rust_printchar.
7752
7753 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7754
7755 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
7756 (ada_language_data): Delete la_emitchar initializer.
7757 (ada_language::emitchar): New member function, implementation from
7758 emit_char.
7759 * c-lang.c (c_language_data): Delete la_emitchar initializer.
7760 (cplus_language_data): Likewise.
7761 (asm_language_data): Likewise.
7762 (minimal_language_data): Likewise.
7763 * d-lang.c (d_language_data): Likewise.
7764 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
7765 (f_language_data): Delete la_emitchar initializer.
7766 (f_language::emitchar): New member function, implementation from
7767 f_emit_char.
7768 * go-lang.c (go_language_data): Delete la_emitchar initializer.
7769 * language.c (unk_lang_emit_char): Delete.
7770 (language_defn::emitchar): New member function definition.
7771 (unknown_language_data): Delete la_emitchar initializer.
7772 (unknown_language::emitchar): New member function.
7773 (auto_language_data): Delete la_emitchar initializer.
7774 (auto_language::emitchar): New member function.
7775 * language.h (language_data): Delete la_emitchar field.
7776 (language_defn::emitchar): New member field declaration.
7777 (LA_EMIT_CHAR): Update call to emitchar.
7778 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
7779 (m2_language_data): Delete la_emitchar initializer.
7780 (m2_language::emitchar): New member function, implementation from
7781 m2_emit_char.
7782 * objc-lang.c (objc_language_data): Delete la_emitchar
7783 initializer.
7784 * opencl-lang.c (opencl_language_data): Likewise.
7785 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
7786 (pascal_language_data): Delete la_emitchar initializer.
7787 (pascal_language::emitchar): New member function, implementation
7788 from pascal_emit_char.
7789 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
7790 (rust_language_data): Delete la_emitchar initializer.
7791 (rust_language::emitchar): New member function, implementation
7792 from rust_emitchar.
7793
7794 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7795
7796 * ada-lang.c (resolve): Rename to ada_language::post_parser.
7797 (ada_language_data): Delete la_post_parser initializer.
7798 (ada_language::post_parser): New member function.
7799 * c-lang.c (c_language_data): Delete la_post_parser initializer.
7800 (cplus_language_data): Likewise.
7801 (asm_language_data): Likewise.
7802 (minimal_language_data): Likewise.
7803 * d-lang.c (d_language_data): Likewise.
7804 * f-lang.c (f_language_data): Likewise.
7805 * go-lang.c (go_language_data): Likewise.
7806 * language.c (unknown_language_data): Likewise.
7807 (auto_language_data): Likewise.
7808 * language.h (language_data): Delete la_post_parser field.
7809 (language_defn::post_parser): New member function.
7810 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
7811 * objc-lang.c (objc_language_data): Likewise.
7812 * opencl-lang.c (opencl_language_data): Likewise.
7813 * p-lang.c (pascal_language_data): Likewise.
7814 * parse.c (parse_exp_in_context): Update call to post_parser.
7815 (null_post_parser): Delete definition.
7816 * parser-defs.h (null_post_parser): Delete declaration.
7817 * rust-lang.c (rust_language_data): Delete la_post_parser
7818 initializer.
7819
7820 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7821
7822 * ada-lang.c (parse): Rename to ada_language::parser.
7823 (ada_language_data): Delete la_parser initializer.
7824 (ada_language::parser): New member function, implementation from
7825 parse.
7826 * c-lang.c (c_language_data): Delete la_parser initializer.
7827 (cplus_language_data): Likewise.
7828 (asm_language_data): Likewise.
7829 (minimal_language_data): Likewise.
7830 * d-lang.c (d_language_data): Likewise.
7831 (d_language::parser): New member function.
7832 * f-lang.c (f_language_data): Delete la_parser initializer.
7833 (f_language::parser): New member function.
7834 * go-lang.c (go_language_data): Delete la_parser initializer.
7835 (go_language::parser): New member function.
7836 * language.c (unk_lang_parser): Delete.
7837 (language_defn::parser): Define new member function.
7838 (unknown_language_data): Delete la_parser initializer.
7839 (unknown_language::parser): New member function.
7840 (auto_language_data): Delete la_parser initializer.
7841 (auto_language::parser): New member function.
7842 * language.h (language_data): Delete la_parser field.
7843 (language_defn::parser): Declare new member function.
7844 * m2-lang.c (m2_language_data): Delete la_parser initializer.
7845 (m2_language::parser): New member function.
7846 * objc-lang.c (objc_language_data): Delete la_parser initializer.
7847 * opencl-lang.c (opencl_language_data): Likewise.
7848 * p-lang.c (pascal_language_data): Likewise.
7849 (pascal_language::parser): New member function.
7850 * parse.c (parse_exp_in_context): Update call to parser.
7851 * rust-lang.c (rust_language_data): Delete la_parser initializer.
7852 (rust_language::parser): New member function.
7853
7854 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7855
7856 * top.c (print_gdb_configuration): Print --with-python-libdir
7857 configuration value.
7858
7859 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7860
7861 * NEWS: Mention change to the alias command.
7862
7863 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7864
7865 * cli/cli-cmds.c (lookup_cmd_for_default_args)
7866 (alias_command_completer)
7867 (make_alias_options_def_group): New functions.
7868 (alias_opts, alias_option_defs): New struct and array.
7869 (alias_usage_error): Update usage.
7870 (alias_command): Handles optional DEFAULT-ARGS... arguments.
7871 Use option framework.
7872 (_initialize_cli_cmds): Update alias command help.
7873 Update aliases command help.
7874 (show_user):
7875 Add NULL for new default_args lookup_cmd argument.
7876 (valid_command_p): Rename to validate_aliased_command.
7877 Add NULL for new default_args lookup_cmd argument. Verify that the
7878 aliased_command has no default args.
7879 * cli/cli-decode.c (help_cmd): Show aliases definitions.
7880 (lookup_cmd_1, lookup_cmd): New argument default_args.
7881 (add_alias_cmd):
7882 Add NULL for new default_args lookup_cmd argument.
7883 (print_help_for_command): Show default args under the layout
7884 alias some_alias = some_aliased_cmd some_alias_default_arg.
7885 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
7886 xfree default_args in destructor.
7887 * cli/cli-script.c (process_next_line, do_define_command):
7888 Add NULL for new default_args lookup_cmd argument.
7889 * command.h: Declare new default_args argument in lookup_cmd
7890 and lookup_cmd_1.
7891 * completer.c (complete_line_internal_1):
7892 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7893 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
7894 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
7895 Likewise.
7896 * infcmd.c (_initialize_infcmd): Likewise.
7897 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
7898 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
7899 * python/py-param.c (add_setshow_generic): Likewise.
7900 * remote.c (_initialize_remote): Likewise.
7901 * top.c (execute_command): Prepend default_args if command has some.
7902 (set_verbose):
7903 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7904 * tracepoint.c (validate_actionline, encode_actions_1):
7905 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7906
7907 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7908
7909 * jit.c (jit_read_descriptor): Use bool as the return type.
7910 (jit_breakpoint_re_set_internal): Use bool as the return type.
7911 Invert the return value logic; return true if the jit breakpoint
7912 has been successfully initialized.
7913 (jit_inferior_init): Update the call to
7914 jit_breakpoint_re_set_internal.
7915
7916 2020-06-22 Pedro Alves <palves@redhat.com>
7917
7918 PR gdb/25939
7919 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
7920 Use the current inferior instead. Don't return
7921 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
7922 wait again.
7923 * sol-thread.c (sol_thread_target::wait): Don't reference
7924 inferior_ptid.
7925 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
7926 (sol_update_thread_list_callback): Use the current inferior's pid
7927 instead of inferior_ptid.
7928
7929 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7930
7931 * procfs.c: Cleanup many comments.
7932
7933 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
7934 (AFTER_WATCHFLAG): Replace by value.
7935
7936 (MAIN_PROC_NAME_FORMAT): Inline ...
7937 (create_procinfo): ... here.
7938
7939 (procfs_debug_inferior): Remove SYS_exec handling.
7940 (syscall_is_exec): Likewise.
7941 (procfs_set_exec_trap): Likewise.
7942
7943 (syscall_is_lwp_exit): Inline in callers.
7944 (syscall_is_exit): Likewise.
7945 (syscall_is_exec): Likewise.
7946 (syscall_is_lwp_create): Likewise.
7947
7948 (invalidate_cache): Remove #if 0 code.
7949
7950 (make_signal_thread_runnable): Remove.
7951 (procfs_target::resume): Remove #if 0 code.
7952
7953 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7954
7955 PR gdb/25939
7956 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
7957 call ...
7958 (procfs_target::create_inferior): ... here.
7959
7960 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7961
7962 * exec.c (validate_exec_file): Ensure the build-id is up to
7963 date by calling reopen_exec_file (that checks file timestamp
7964 to decide to re-read the file).
7965
7966 2020-06-18 Pedro Alves <palves@redhat.com>
7967
7968 PR gdb/25412
7969 * gdbthread.h (delete_thread, delete_thread_silent)
7970 (find_thread_ptid): Update comments.
7971 * thread.c (current_thread_): New global.
7972 (is_current_thread): Move higher, and reimplement.
7973 (inferior_thread): Reimplement.
7974 (set_thread_exited): Use bool. Add assertions.
7975 (add_thread_silent): Simplify thread-reuse handling by always
7976 calling delete_thread.
7977 (delete_thread): Remove intro comment.
7978 (find_thread_ptid): Skip exited threads.
7979 (switch_to_thread_no_regs): Write to current_thread_.
7980 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
7981 INFERIOR_PTID. Clear current_thread_.
7982
7983 2020-06-18 Pedro Alves <palves@redhat.com>
7984
7985 * aix-thread.c (pd_update): Use switch_to_thread.
7986
7987 2020-06-18 Pedro Alves <palves@redhat.com>
7988
7989 * ravenscar-thread.c (ravenscar_thread_target): Update.
7990 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
7991 (ravenscar_thread_target::add_active_thread): ... this. Don't
7992 set m_base_ptid here. Update to avoid referencing inferior_ptid.
7993 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
7994
7995 2020-06-18 Pedro Alves <palves@redhat.com>
7996
7997 * nat/windows-nat.c (current_windows_thread): Remove.
7998 * nat/windows-nat.h (current_windows_thread): Remove.
7999 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
8000 Adjust.
8001 (display_selectors): Adjust to fetch the current
8002 windows_thread_info based on inferior_ptid.
8003 (fake_create_process): No longer write to current_windows_thread.
8004 (windows_nat_target::get_windows_debug_event):
8005 Don't set inferior_ptid or current_windows_thread.
8006 (windows_nat_target::wait): Adjust to not rely on
8007 current_windows_thread.
8008 (do_initial_windows_stuff): Now a method of windows_nat_target.
8009 Switch to the last_ptid thread.
8010 (windows_nat_target::attach): Adjust.
8011 (windows_nat_target::detach): Use switch_to_no_thread instead of
8012 writing to inferior_ptid directly.
8013 (windows_nat_target::create_inferior): Adjust.
8014
8015 2020-06-18 Pedro Alves <palves@redhat.com>
8016
8017 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
8018
8019 2020-06-18 Pedro Alves <palves@redhat.com>
8020
8021 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
8022 after creating it, instead of writing to inferior_ptid. Don't
8023 write to inferior_ptid.
8024
8025 2020-06-18 Pedro Alves <palves@redhat.com>
8026
8027 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
8028
8029 2020-06-18 Pedro Alves <palves@redhat.com>
8030
8031 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
8032 it, instead of writing to inferior_ptid.
8033
8034 2020-06-18 Pedro Alves <palves@redhat.com>
8035
8036 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
8037 to inferior_ptid.
8038
8039 2020-06-18 Pedro Alves <palves@redhat.com>
8040
8041 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
8042 instead of writing to inferior_ptid directly.
8043
8044 2020-06-18 Pedro Alves <palves@redhat.com>
8045
8046 * corelow.c (core_target::close): Use switch_to_no_thread instead
8047 of writing to inferior_ptid directly.
8048 (add_to_thread_list, core_target_open): Use switch_to_thread
8049 instead of writing to inferior_ptid directly.
8050
8051 2020-06-18 Pedro Alves <palves@redhat.com>
8052
8053 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
8054 inferior_ptid.
8055 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
8056 inferior_ptid.
8057 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
8058 inferior_ptid directly.
8059 (darwin_nat_target::init_thread_list): Switch to thread, instead
8060 of writing to inferior_ptid.
8061 (darwin_nat_target::attach): Don't write to inferior_ptid.
8062 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
8063
8064 2020-06-18 Pedro Alves <palves@redhat.com>
8065
8066 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
8067 thread.
8068 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
8069 Instead use switch_to_thread.
8070 (gnu_nat_target::detach): Use switch_to_no_thread
8071 instead of writing to inferior_ptid directly. Used passed-in
8072 inferior instead of looking up the inferior by pid.
8073
8074 2020-06-18 Pedro Alves <palves@redhat.com>
8075
8076 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
8077 inferior_ptid.
8078
8079 2020-06-18 Pedro Alves <palves@redhat.com>
8080
8081 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
8082 inferior_ptid.
8083 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
8084 thread.
8085 (nto_procfs_target::detach): Avoid referencing
8086 inferior_ptid. Use switch_to_no_thread instead of writing to
8087 inferior_ptid directly.
8088 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
8089 instead of writing to inferior_ptid directly.
8090 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
8091 to thread.
8092
8093 2020-06-18 Pedro Alves <palves@redhat.com>
8094
8095 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
8096 after creating it, instead of writing to inferior_ptid.
8097 (gdbsim_target_open): Use switch_to_no_thread instead of writing
8098 to inferior_ptid directly.
8099 (gdbsim_target::wait): Don't write to inferior_ptid.
8100
8101 2020-06-18 Pedro Alves <palves@redhat.com>
8102
8103 * remote.c (remote_target::remote_notice_new_inferior): Use
8104 switch_to_thread instead of writing to inferior_ptid directly.
8105 (remote_target::add_current_inferior_and_thread): Use
8106 switch_to_no_thread instead of writing to inferior_ptid directly.
8107 (extended_remote_target::attach): Use switch_to_inferior_no_thread
8108 and switch_to_thread instead of using set_current_inferior or
8109 writing to inferior_ptid directly.
8110
8111 2020-06-18 Pedro Alves <palves@redhat.com>
8112
8113 * tracectf.c (ctf_target_open): Switch to added thread instead of
8114 writing to inferior_ptid directly.
8115 (ctf_target::close): Use switch_to_no_thread instead of writing to
8116 inferior_ptid directly.
8117
8118 2020-06-18 Pedro Alves <palves@redhat.com>
8119
8120 * tracefile-tfile.c (tfile_target_open): Don't write to
8121 inferior_ptid directly, instead switch to added thread.
8122 (tfile_target::close): Use switch_to_no_thread instead of writing
8123 to inferior_ptid directly.
8124
8125 2020-06-18 Pedro Alves <palves@redhat.com>
8126
8127 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
8128 (procfs_target::detach): Use switch_to_no_thread
8129 instead of writing to inferior_ptid directly.
8130 (do_attach): Change return type to void. Switch to the added
8131 thread.
8132 (procfs_target::create_inferior): Switch to the added thread.
8133 (procfs_do_thread_registers): Don't write to inferior_ptid.
8134
8135 2020-06-18 Pedro Alves <palves@redhat.com>
8136
8137 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
8138 of writing to inferior_ptid.
8139 (scoped_restore_exited_inferior): Delete.
8140 (handle_vfork_child_exec_or_exit): Simplify using
8141 scoped_restore_current_pspace_and_thread. Use switch_to_thread
8142 instead of writing to inferior_ptid.
8143 (THREAD_STOPPED_BY): Delete.
8144 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
8145 (thread_stopped_by_hw_breakpoint): Delete.
8146 (save_waitstatus): Use
8147 scoped_restore_current_thread+switch_to_thread, and call
8148 target_stopped_by_watchpoint instead of
8149 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
8150 instead of thread_stopped_by_sw_breakpoint, and
8151 target_stopped_by_hw_breakpoint instead of
8152 thread_stopped_by_hw_breakpoint.
8153 (handle_inferior_event)
8154 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
8155 inferior_ptid directly, nor
8156 set_current_inferior/set_current_program_space. Use
8157 switch_to_thread / switch_to_inferior_no_thread instead.
8158
8159 2020-06-18 Pedro Alves <palves@redhat.com>
8160
8161 * target.c (generic_mourn_inferior): Use switch_to_no_thread
8162 instead of writing to inferior_ptid.
8163
8164 2020-06-18 Pedro Alves <palves@redhat.com>
8165
8166 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
8167 added thread.
8168 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
8169 to the added thread.
8170 (inf_ptrace_target::detach_success): Use switch_to_no_thread
8171 instead of writing to inferior_ptid.
8172
8173 2020-06-18 Pedro Alves <palves@redhat.com>
8174
8175 * gdbarch-selftests.c: Include "progspace-and-thread.h".
8176 (register_to_value_test): Mock a program_space too. Heap-allocate
8177 the address space. Don't write to inferior_ptid. Use
8178 switch_to_thread instead.
8179
8180 2020-06-18 Pedro Alves <palves@redhat.com>
8181
8182 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
8183 Delete.
8184 (find_signalled_thread()): New, factored out from
8185 linux_make_corefile_notes and adjusted to handle exited threads.
8186 (linux_make_corefile_notes): Adjust to use the new
8187 find_signalled_thread.
8188
8189 2020-06-18 Pedro Alves <palves@redhat.com>
8190
8191 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
8192 of saving/restoring inferior_ptid.
8193
8194 2020-06-17 Tom Tromey <tom@tromey.com>
8195
8196 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
8197 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
8198 declare.
8199 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
8200
8201 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
8202
8203 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
8204 of partial symtabs.
8205
8206 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
8207
8208 * regformats/reg-arm.dat: Remove.
8209 * regformats/reg-bfin.dat: Remove.
8210 * regformats/reg-cris.dat: Remove.
8211 * regformats/reg-crisv32.dat: Remove.
8212 * regformats/reg-m32r.dat: Remove.
8213 * regformats/reg-tilegx.dat: Remove.
8214 * regformats/reg-tilegx32.dat: Remove.
8215
8216 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
8217
8218 * features/Makefile (WHICH): Remove arm files.
8219 * regformats/arm/arm-with-iwmmxt.dat: Remove.
8220 * regformats/arm/arm-with-neon.dat: Remove.
8221 * regformats/arm/arm-with-vfpv2.dat: Remove.
8222 * regformats/arm/arm-with-vfpv3.dat: Remove.
8223
8224 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
8225
8226 * features/Makefile (XMLTOC): Remove rx.xml.
8227
8228 2020-06-17 Pedro Alves <palves@redhat.com>
8229
8230 * gdbthread.h (thread_control_state) <trap_expected> Update
8231 comments.
8232
8233 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8234
8235 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
8236 ada_language::lookup_symbol_nonlocal.
8237 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
8238 (ada_language::lookup_symbol_nonlocal): New member function,
8239 implementation from ada_lookup_symbol_nonlocal.
8240 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
8241 initializer.
8242 (cplus_language_data): Delete la_lookup_symbol_nonlocal
8243 initializer.
8244 (cplus_language::lookup_symbol_nonlocal): New member function.
8245 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
8246 (minimal_language_data) Likewise.
8247 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
8248 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
8249 initializer.
8250 (d_language::lookup_symbol_nonlocal): New member function.
8251 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
8252 initializer.
8253 (f_language::lookup_symbol_nonlocal): New member function.
8254 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
8255 initializer.
8256 * language.c (unknown_language_data): Likewise.
8257 (auto_language_data): Likewise.
8258 * language.h (language_data): Delete la_lookup_symbol_nonlocal
8259 field.
8260 (language_defn::lookup_symbol_nonlocal): New member function.
8261 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
8262 initializer.
8263 * objc-lang.c (objc_language_data): Likewise.
8264 * opencl-lang.c (opencl_language_data): Likewise.
8265 * p-lang.c (pascal_language_data): Likewise.
8266 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
8267 rust_language::lookup_symbol_nonlocal.
8268 (rust_language_data): Delete la_lookup_symbol_nonlocal
8269 initializer.
8270 (rust_language::lookup_symbol_nonlocal): New member function,
8271 implementation from rust_lookup_symbol_nonlocal.
8272 * symtab.c (lookup_symbol_aux): Update call to
8273 lookup_symbol_nonlocal.
8274 (basic_lookup_symbol_nonlocal): Rename to...
8275 (language_defn::lookup_symbol_nonlocal): ...this, and update
8276 header comment. Remove language_defn parameter, and replace with
8277 uses of `this'.
8278 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
8279
8280 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8281
8282 * ada-lang.c (ada_language_data): Delete la_value_print_inner
8283 initializer.
8284 (ada_language::value_print_inner): New member function.
8285 * c-lang.c (c_language_data): Delete la_value_print_inner
8286 initializer.
8287 (cplus_language_data): Likewise.
8288 (asm_language_data): Likewise.
8289 (minimal_language_data): Likewise.
8290 * d-lang.c (d_language_data): Likewise.
8291 (d_language::value_print_inner): New member function.
8292 * f-lang.c (f_language_data): Delete la_value_print_inner
8293 initializer.
8294 (f_language::value_print_inner): New member function.
8295 * f-lang.h (f_value_print_innner): Rename to...
8296 (f_value_print_inner): ...this (note spelling of 'inner').
8297 * f-valprint.c (f_value_print_innner): Rename to...
8298 (f_value_print_inner): ...this (note spelling of 'inner').
8299 * go-lang.c (go_language_data): Delete la_value_print_inner
8300 initializer.
8301 (go_language::value_print_inner): New member function.
8302 * language.c (language_defn::value_print_inner): Define new member
8303 function.
8304 (unk_lang_value_print_inner): Delete.
8305 (unknown_language_data): Delete la_value_print_inner initializer.
8306 (unknown_language::value_print_inner): New member function.
8307 (auto_language_data): Delete la_value_print_inner initializer.
8308 (auto_language::value_print_inner): New member function.
8309 * language.h (language_data): Delete la_value_print_inner field.
8310 (language_defn::value_print_inner): Delcare new member function.
8311 * m2-lang.c (m2_language_data): Delete la_value_print_inner
8312 initializer.
8313 (m2_language::value_print_inner): New member function.
8314 * objc-lang.c (objc_language_data): Delete la_value_print_inner
8315 initializer.
8316 * opencl-lang.c (opencl_language_data): Likewise.
8317 * p-lang.c (pascal_language_data): Likewise.
8318 (pascal_language::value_print_inner): New member function.
8319 * rust-lang.c (rust_language_data): Delete la_value_print_inner
8320 initializer.
8321 (rust_language::value_print_inner): New member function.
8322 * valprint.c (do_val_print): Update call to value_print_inner.
8323
8324 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8325
8326 * ada-lang.c (ada_language_data): Delete la_value_print
8327 initializer.
8328 (ada_language::value_print): New member function.
8329 * c-lang.c (c_language_data): Delete la_value_print initializer.
8330 (cplus_language_data): Likewise.
8331 (asm_language_data): Likewise.
8332 (minimal_language_data): Likewise.
8333 * d-lang.c (d_language_data): Likewise.
8334 * f-lang.c (f_language_data): Likewise.
8335 * go-lang.c (go_language_data): Likewise.
8336 * language.c (unk_lang_value_print): Delete.
8337 (language_defn::value_print): Define new member function.
8338 (unknown_language_data): Delete la_value_print initializer.
8339 (unknown_language::value_print): New member function.
8340 (auto_language_data): Delete la_value_print initializer.
8341 (auto_language::value_print): New member function.
8342 * language.h (language_data): Delete la_value_print field.
8343 (language_defn::value_print): Declare new member function.
8344 (LA_VALUE_PRINT): Update call to value_print.
8345 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
8346 * objc-lang.c (objc_language_data): Likewise.
8347 * opencl-lang.c (opencl_language_data): Likewise.
8348 * p-lang.c (pascal_language_data): Likewise.
8349 (pascal_language::value_print): New member function.
8350 * rust-lang.c (rust_language_data): Delete la_value_print
8351 initializer.
8352
8353 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8354
8355 * ada-lang.c (ada_watch_location_expression): Rename to
8356 ada_language::watch_location_expression.
8357 (ada_language_data): Delete la_watch_location_expression
8358 initializer.
8359 (ada_language::watch_location_expression): New member function,
8360 implementation from ada_watch_location_expression.
8361 * breakpoint.c (watch_command_1): Update call to
8362 watch_location_expression.
8363 * c-lang.c (c_watch_location_expression): Rename to
8364 language_defn::watch_location_expression.
8365 (c_language_data): Delete la_watch_location_expression
8366 initializer.
8367 (cplus_language_data): Likewise.
8368 (asm_language_data): Likewise.
8369 (minimal_language_data): Likewise.
8370 * c-lang.h (c_watch_location_expression): Delete declaration.
8371 * d-lang.c (d_language_data): Delete la_watch_location_expression
8372 initializer.
8373 * f-lang.c (f_language_data): Likewise.
8374 * go-lang.c (go_language_data): Likewise.
8375 * language.c (language_defn::watch_location_expression): Member
8376 function implementation from c_watch_location_expression.
8377 (unknown_language_data): Delete la_watch_location_expression
8378 initializer.
8379 (auto_language_data): Likewise.
8380 * language.h (language_data): Delete la_watch_location_expression
8381 field.
8382 (language_defn::watch_location_expression): Declare new member
8383 function.
8384 * m2-lang.c (m2_language_data): Delete
8385 la_watch_location_expression initializer.
8386 * objc-lang.c (objc_language_data): Likewise.
8387 * opencl-lang.c (opencl_language_data): Likewise.
8388 * p-lang.c (pascal_language_data): Likewise.
8389 * rust-lang.c (rust_watch_location_expression): Rename to
8390 rust_language::watch_location_expression.
8391 (rust_language_data): Delete la_watch_location_expression
8392 initializer.
8393 (rust_language::watch_location_expression): New member function,
8394 implementation from rust_watch_location_expression.
8395
8396 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8397
8398 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
8399 ada_language::collect_symbol_completion_matches.
8400 (ada_language_data): Delete la_collect_symbol_completion_matches
8401 initializer.
8402 (ada_language::collect_symbol_completion_matches): New member
8403 function, implementation from
8404 ada_collect_symbol_completion_matches.
8405 * c-lang.c (c_language_data): Delete
8406 la_collect_symbol_completion_matches initializer.
8407 (cplus_language_data): Likewise.
8408 (asm_language_data): Likewise.
8409 (minimal_language_data): Likewise.
8410 * d-lang.c (d_language_data): Likewise.
8411 * f-lang.c (f_collect_symbol_completion_matches): Rename to
8412 f_language::collect_symbol_completion_matches.
8413 (f_language_data): Delete la_collect_symbol_completion_matches
8414 initializer.
8415 (f_language::collect_symbol_completion_matches) New member
8416 function, implementation from f_collect_symbol_completion_matches.
8417 * go-lang.c (go_language_data): Delete
8418 la_collect_symbol_completion_matches initializer.
8419 * language.c (unknown_language_data): Likewise.
8420 (auto_language_data): Likewise.
8421 * language.h (language_data): Delete
8422 la_collect_symbol_completion_matches field.
8423 (language_defn::collect_symbol_completion_matches): New member
8424 function.
8425 * m2-lang.c (m2_language_data): Delete
8426 la_collect_symbol_completion_matches initializer.
8427 * objc-lang.c (objc_language_data): Likewise.
8428 * opencl-lang.c (opencl_language_data): Likewise.
8429 * p-lang.c (pascal_language_data): Likewise.
8430 * rust-lang.c (rust_language_data): Likewise.
8431 * symtab.c (default_collect_symbol_completion_matches): Delete.
8432 (collect_symbol_completion_matches): Update call to
8433 collect_symbol_completion_matches.
8434 (collect_symbol_completion_matches_type): Likewise.
8435 * symtab.h (default_collect_symbol_completion_matches): Delete
8436 declaration.
8437
8438 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8439
8440 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
8441 (ada_language_data): Delete la_word_break_characters initializer.
8442 (ada_language::word_break_characters): New member function.
8443 * c-lang.c (c_language_data): Delete la_word_break_characters
8444 initializer.
8445 (cplus_language_data): Likewise.
8446 (asm_language_data): Likewise.
8447 (minimal_language_data): Likewise.
8448 * completer.c: Update global comment.
8449 (advance_to_expression_complete_word_point): Update call to
8450 word_break_characters.
8451 (complete_files_symbols): Likewise.
8452 (complete_line_internal_1): Likewise.
8453 (default_completer_handle_brkchars): Likewise.
8454 (skip_quoted_chars): Likewise.
8455 * d-lang.c (d_language_data): Delete la_word_break_characters
8456 initializer.
8457 * f-lang.c (f_word_break_characters): Delete.
8458 (f_language_data): Delete la_word_break_characters initializer.
8459 (f_language::word_break_characters): New member function.
8460 * go-lang.c (go_language_data): Delete la_word_break_characters
8461 initializer.
8462 * language.c (unknown_language_data): Likewise.
8463 (auto_language_data): Likewise.
8464 * language.h (default_word_break_characters): Move declaration to
8465 earlier in the file.
8466 (language_data): Delete la_word_break_characters field.
8467 (language_defn::word_break_characters): New member function.
8468 * m2-lang.c (m2_language_data): Delete la_word_break_characters
8469 initializer.
8470 * objc-lang.c (objc_language_data): Likewise.
8471 * opencl-lang.c (opencl_language_data): Likewise.
8472 * p-lang.c (pascal_language_data): Likewise.
8473 * rust-lang.c (rust_language_data): Likewise.
8474
8475 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8476
8477 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
8478 (ada_language_data): Delete la_get_symbol_name_matcher
8479 initializer.
8480 (language_defn::get_symbol_name_matcher_inner): New member
8481 function.
8482 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
8483 initializer.
8484 (cplus_language_data): Likewise.
8485 (cplus_language::get_symbol_name_matcher_inner): New member
8486 function.
8487 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
8488 (minimal_language_data): Likewise.
8489 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
8490 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
8491 initializer.
8492 * dictionary.c (iter_match_first_hashed): Update call to
8493 get_symbol_name_matcher.
8494 (iter_match_next_hashed): Likewise.
8495 (iter_match_next_linear): Likewise.
8496 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
8497 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
8498 initializer.
8499 (f_language::get_symbol_name_matcher_inner): New member function.
8500 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
8501 initializer.
8502 * language.c (default_symbol_name_matcher): Update header comment,
8503 make static.
8504 (language_defn::get_symbol_name_matcher): New definition.
8505 (language_defn::get_symbol_name_matcher_inner): Likewise.
8506 (get_symbol_name_matcher): Delete.
8507 (unknown_language_data): Delete la_get_symbol_name_matcher
8508 initializer.
8509 (auto_language_data): Likewise.
8510 * language.h (language_data): Delete la_get_symbol_name_matcher
8511 field.
8512 (language_defn::get_symbol_name_matcher): New member function.
8513 (language_defn::get_symbol_name_matcher_inner): Likewise.
8514 (default_symbol_name_matcher): Delete declaration.
8515 * linespec.c (find_methods): Update call to
8516 get_symbol_name_matcher.
8517 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
8518 initializer.
8519 * minsyms.c (lookup_minimal_symbol): Update call to
8520 get_symbol_name_matcher.
8521 (iterate_over_minimal_symbols): Likewise.
8522 * objc-lang.c (objc_language_data): Delete
8523 la_get_symbol_name_matcher initializer.
8524 * opencl-lang.c (opencl_language_data): Likewise.
8525 * p-lang.c (pascal_language_data): Likewise.
8526 * psymtab.c (psymbol_name_matches): Update call to
8527 get_symbol_name_matcher.
8528 * rust-lang.c (rust_language_data): Delete
8529 la_get_symbol_name_matcher initializer.
8530 * symtab.c (symbol_matches_search_name): Update call to
8531 get_symbol_name_matcher.
8532 (compare_symbol_name): Likewise.
8533
8534 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8535
8536 * ada-lang.c (ada_language_data): Delete la_compute_program
8537 initializer.
8538 * c-lang.c (c_language_data): Likewise.
8539 (c_language::compute_program): New member function.
8540 (cplus_language_data): Delete la_compute_program initializer.
8541 (cplus_language::compute_program): New member function.
8542 (asm_language_data): Delete la_compute_program initializer.
8543 (minimal_language_data): Likewise.
8544 * c-lang.h (c_compute_program): Update comment.
8545 (cplus_compute_program): Likewise.
8546 * compile/compile-c-support.c (c_compute_program): Likewise.
8547 (cplus_compute_program): Likewise.
8548 * compile/compile.c (compile_to_object): Update call to
8549 la_compute_program.
8550 * d-lang.c (d_language_data): Delete la_compute_program
8551 initializer.
8552 * f-lang.c (f_language_data): Likewise.
8553 * go-lang.c (go_language_data): Likewise.
8554 * language.c (unknown_language_data): Likewise.
8555 (auto_language_data): Likewise.
8556 * language.h (language_data): Delete la_compute_program field.
8557 (language_defn::compute_program): New member function.
8558 * m2-lang.c (m2_language_data): Delete la_compute_program
8559 initializer.
8560 * objc-lang.c (objc_language_data): Likewise.
8561 * opencl-lang.c (opencl_language_data): Likewise.
8562 * p-lang.c (pascal_language_data): Likewise.
8563 * rust-lang.c (rust_language_data): Likewise.
8564
8565 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8566
8567 * ada-lang.c (ada_language_data) Delete
8568 la_class_name_from_physname initializer.
8569 * c-lang.c (c_language_data): Likewise.
8570 (cplus_language_data): Likewise.
8571 (cplus_language::class_name_from_physname): New member function.
8572 (asm_language_data): Delete la_class_name_from_physname
8573 initializer.
8574 (minimal_language_data): Likewise.
8575 * d-lang.c (d_language_data): Likewise.
8576 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
8577 method on language_defn class.
8578 (guess_full_die_structure_name): Likewise.
8579 * f-lang.c (f_language_data): Delete la_class_name_from_physname
8580 initializer.
8581 * go-lang.c (go_language_data): Likewise.
8582 * language.c (language_class_name_from_physname): Delete.
8583 (unk_lang_class_name): Delete.
8584 (unknown_language_data): Delete la_class_name_from_physname
8585 initializer.
8586 (auto_language_data): Likewise.
8587 * language.h (language_data): Delete la_class_name_from_physname
8588 field.
8589 (language_defn::class_name_from_physname): New function.
8590 (language_class_name_from_physname): Delete declaration.
8591 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
8592 initializer.
8593 * objc-lang.c (objc_language_data): Likewise.
8594 * opencl-lang.c (opencl_language_data): Likewise.
8595 * p-lang.c (pascal_language_data): Likewise.
8596 * rust-lang.c (rust_language_data): Likewise.
8597
8598 2020-06-16 Tom Tromey <tom@tromey.com>
8599
8600 * tui/tui-data.h (STATUS_NAME): New macro.
8601 * tui/tui-layout.c (tui_remove_some_windows)
8602 (initialize_known_windows, tui_register_window)
8603 (tui_layout_split::remove_windows, initialize_layouts)
8604 (tui_new_layout_command): Don't use hard-coded window names.
8605
8606 2020-06-16 Tom Tromey <tom@tromey.com>
8607
8608 PR tui/25348:
8609 * tui/tui.c (tui_ensure_readline_initialized): Rename from
8610 tui_initialize_readline. Only run once. Call rl_initialize.
8611 * tui/tui.h (tui_ensure_readline_initialized): Rename from
8612 tui_initialize_readline.
8613 * tui/tui-io.c (tui_setup_io): Call
8614 tui_ensure_readline_initialized.
8615 * tui/tui-interp.c (tui_interp::init): Update.
8616
8617 2020-06-16 Tom Tromey <tom@tromey.com>
8618
8619 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
8620 Also preserve the status window.
8621
8622 2020-06-16 Tom Tromey <tom@tromey.com>
8623
8624 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
8625 where m_window==nullptr.
8626
8627 2020-06-15 Tom Tromey <tromey@adacore.com>
8628
8629 * windows-nat.c (windows_nat::handle_output_debug_string):
8630 Update.
8631 (windows_nat::handle_ms_vc_exception): Update.
8632 * target.h (target_read_string): Change API.
8633 * target.c (target_read_string): Change API.
8634 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
8635 Update.
8636 * solib-frv.c (frv_current_sos): Update.
8637 * solib-dsbt.c (dsbt_current_sos): Update.
8638 * solib-darwin.c (darwin_current_sos): Update.
8639 * linux-thread-db.c (inferior_has_bug): Update.
8640 * expprint.c (print_subexp_standard): Update.
8641 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
8642 (ada_exception_message_1): Update.
8643
8644 2020-06-15 Tom Tromey <tromey@adacore.com>
8645
8646 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
8647
8648 2020-06-15 Tom Tromey <tromey@adacore.com>
8649
8650 * valprint.c (read_string): Update comment.
8651 * target.c (MIN): Remove.
8652 (target_read_string): Rewrite.
8653
8654 2020-06-15 Tom Tromey <tromey@adacore.com>
8655
8656 * corefile.c (read_memory_string): Remove.
8657 * ada-valprint.c (ada_value_print_ptr): Update.
8658 * ada-lang.h (ada_tag_name): Change return type.
8659 * ada-lang.c (type_from_tag): Update.
8660 (ada_tag_name_from_tsd): Change return type. Use
8661 target_read_string.
8662 (ada_tag_name): Likewise.
8663 * gdbcore.h (read_memory_string): Don't declare.
8664
8665 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
8666
8667 * symtab.c (rbreak_command): Ignore Windows drive colon.
8668
8669 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
8670
8671 * NEWS: Mention removed GDBserver host support.
8672
8673 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
8674
8675 * features/riscv/rebuild-csr-xml.sh: Updated.
8676
8677 2020-06-11 Tom Tromey <tom@tromey.com>
8678
8679 PR gdb/18318:
8680 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
8681
8682 2020-06-09 Jonny Grant <jg@jguk.org>
8683 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
8684
8685 * main.c (captured_main_1): Don't print new line after help.
8686 (print_gdb_help): add mailing list and IRC channel information
8687 to --help. Add new lines between items in the footer. Remove
8688 quotes around bug url.
8689
8690 2020-06-11 Keith Seitz <keiths@redhat.com>
8691
8692 PR gdb/21356
8693 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
8694 Resolve typedefs for type length calculations.
8695
8696 2020-06-10 Tom de Vries <tdevries@suse.de>
8697
8698 PR ada/24713
8699 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
8700 (write_psymbols): Enable .gdb_index for ada.
8701 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
8702 ada.
8703
8704 2020-06-10 Tom de Vries <tdevries@suse.de>
8705
8706 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
8707 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
8708 namei" instead of "const char *name" argument.
8709 (dw2_map_matching_symbols): Use "offset_type namei" variant of
8710 dw2_symtab_iter_init.
8711
8712 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8713
8714 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
8715 to use type::field and field::type instead.
8716
8717 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8718
8719 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
8720 to use field::type instead.
8721
8722 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8723
8724 * gdbtypes.h (struct field) <type, set_type>: New methods.
8725 Rename `type` field to...
8726 <m_type>: ... this. Change references throughout to use type or
8727 set_type methods.
8728 (FIELD_TYPE): Use field::type. Change call sites that modify
8729 the field's type to use field::set_type instead.
8730
8731 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8732
8733 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
8734 to use type::index_type instead.
8735
8736 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8737
8738 * gdbtypes.h (struct type) <index_type, set_index_type>: New
8739 methods.
8740 (TYPE_INDEX_TYPE): Use type::index_type.
8741 * gdbtypes.c (create_array_type_with_stride): Likewise.
8742
8743 2020-06-07 Tom Tromey <tom@tromey.com>
8744
8745 * valprint.c (generic_val_print_float): Remove "embedded_offset"
8746 parameter.
8747 (generic_value_print): Update.
8748
8749 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8750
8751 Revert commit 982a38f60b0.
8752 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
8753
8754 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8755
8756 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
8757 avoid use after free.
8758
8759 2020-06-05 Tom de Vries <tdevries@suse.de>
8760
8761 * NEWS: Fix typos.
8762
8763 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
8764
8765 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
8766 the per_bfd object.
8767 (dwarf2_read_debug_names): Likewise.
8768 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
8769 object when re-using a per_bfd object with an index.
8770
8771 2020-06-03 Tom de Vries <tdevries@suse.de>
8772
8773 PR symtab/26046
8774 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
8775 children for C++.
8776 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
8777 DW_TAG_subprogram.
8778
8779 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8780
8781 * ada-lang.c (ada_language_data): Delete skip_trampoline
8782 initializer.
8783 * c-lang.c (c_language_data): Likewise.
8784 (cplus_language_data): Likewise.
8785 (cplus_language::skip_trampoline): New member function.
8786 (asm_language_data): Delete skip_trampoline initializer.
8787 (minimal_language_data): Likewise.
8788 * d-lang.c (d_language_data): Likewise.
8789 * f-lang.c (f_language_data): Likewise.
8790 * go-lang.c (go_language_data): Likewise.
8791 * language.c (unk_lang_trampoline): Delete function.
8792 (skip_language_trampoline): Update.
8793 (unknown_language_data): Delete skip_trampoline initializer.
8794 (auto_language_data): Likewise.
8795 * language.h (language_data): Delete skip_trampoline field.
8796 (language_defn::skip_trampoline): New function.
8797 * m2-lang.c (m2_language_data): Delete skip_trampoline
8798 initializer.
8799 * objc-lang.c (objc_skip_trampoline): Delete function, move
8800 implementation to objc_language::skip_trampoline.
8801 (objc_language_data): Delete skip_trampoline initializer.
8802 (objc_language::skip_trampoline): New member function with
8803 implementation from objc_skip_trampoline.
8804 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
8805 initializer.
8806 * p-lang.c (pascal_language_data): Likewise.
8807 * rust-lang.c (rust_language_data): Likewise.
8808
8809 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8810
8811 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
8812 (ada_language::demangle): New member function.
8813 * c-lang.c (c_language_data): Delete la_demangle initializer.
8814 (cplus_language_data): Delete la_demangle initializer.
8815 (cplus_language::demangle): New member function.
8816 (asm_language_data): Delete la_demangle initializer.
8817 (minimal_language_data): Delete la_demangle initializer.
8818 * d-lang.c (d_language_data): Delete la_demangle initializer.
8819 (d_language::demangle): New member function.
8820 * f-lang.c (f_language_data): Delete la_demangle initializer.
8821 (f_language::demangle): New member function.
8822 * go-lang.c (go_language_data): Delete la_demangle initializer.
8823 (go_language::demangle): New member function.
8824 * language.c (language_demangle): Update.
8825 (unk_lang_demangle): Delete.
8826 (unknown_language_data): Delete la_demangle initializer.
8827 (unknown_language::demangle): New member function.
8828 (auto_language_data): Delete la_demangle initializer.
8829 (auto_language::demangle): New member function.
8830 * language.h (language_data): Delete la_demangle field.
8831 (language_defn::demangle): New function.
8832 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
8833 * objc-lang.c (objc_language_data): Delete la_demangle
8834 initializer.
8835 (objc_language::demangle): New member function.
8836 * opencl-lang.c (opencl_language_data): Delete la_demangle
8837 initializer.
8838 * p-lang.c (pascal_language_data): Likewise.
8839 * rust-lang.c (rust_language_data): Likewise.
8840 (rust_language::demangle): New member function.
8841
8842 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8843
8844 * ada-lang.c (ada_language_data): Delete la_print_type
8845 initializer.
8846 (ada_language::print_type): New member function.
8847 * c-lang.c (c_language_data): Delete la_print_type initializer.
8848 (c_language::print_type): New member function.
8849 (cplus_language_data): Delete la_print_type initializer.
8850 (cplus_language::print_type): New member function.
8851 (asm_language_data): Delete la_print_type initializer.
8852 (asm_language::print_type): New member function.
8853 (minimal_language_data): Delete la_print_type initializer.
8854 (minimal_language::print_type): New member function.
8855 * d-lang.c (d_language_data): Delete la_print_type initializer.
8856 (d_language::print_type): New member function.
8857 * f-lang.c (f_language_data): Delete la_print_type initializer.
8858 (f_language::print_type): New member function.
8859 * go-lang.c (go_language_data): Delete la_print_type initializer.
8860 (go_language::print_type): New member function.
8861 * language.c (unk_lang_print_type): Delete.
8862 (unknown_language_data): Delete la_print_type initializer.
8863 (unknown_language::print_type): New member function.
8864 (auto_language_data): Delete la_print_type initializer.
8865 (auto_language::print_type): New member function.
8866 * language.h (language_data): Delete la_print_type field.
8867 (language_defn::print_type): New function.
8868 (LA_PRINT_TYPE): Update.
8869 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
8870 (m2_language::print_type): New member function.
8871 * objc-lang.c (objc_language_data): Delete la_print_type
8872 initializer.
8873 (objc_language::print_type): New member function.
8874 * opencl-lang.c (opencl_print_type): Delete, implementation moved
8875 to opencl_language::print_type.
8876 (opencl_language_data): Delete la_print_type initializer.
8877 (opencl_language::print_type): New member function, implementation
8878 from opencl_print_type.
8879 * p-lang.c (pascal_language_data): Delete la_print_type
8880 initializer.
8881 (pascal_language::print_type): New member function.
8882 * rust-lang.c (rust_print_type): Delete, implementation moved to
8883 rust_language::print_type.
8884 (rust_language_data): Delete la_print_type initializer.
8885 (rust_language::print_type): New member function, implementation
8886 from rust_print_type.
8887
8888 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8889
8890 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
8891 implementation moves to...
8892 (ada_language::sniff_from_mangled_name): ...here. Update return
8893 type.
8894 (ada_language_data): Delete la_sniff_from_mangled_name
8895 initializer.
8896 * c-lang.c (c_language_data): Likewise.
8897 (cplus_language_data): Likewise.
8898 (cplus_language::sniff_from_mangled_name): New member function,
8899 implementation taken from gdb_sniff_from_mangled_name.
8900 (asm_language_data): Delete la_sniff_from_mangled_name
8901 initializer.
8902 (minimal_language_data): Likewise.
8903 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
8904 implementation moves to cplus_language::sniff_from_mangled_name.
8905 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
8906 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
8907 moves to...
8908 (d_language::sniff_from_mangled_name): ...here.
8909 (d_language_data): Delete la_sniff_from_mangled_name initializer.
8910 * f-lang.c (f_language_data): Likewise.
8911 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
8912 moves to...
8913 (go_language::sniff_from_mangled_name): ...here.
8914 (go_language_data): Delete la_sniff_from_mangled_name initializer.
8915 * language.c (language_sniff_from_mangled_name): Delete.
8916 (unknown_language_data): Delete la_sniff_from_mangled_name
8917 initializer.
8918 (auto_language_data): Likewise.
8919 * language.h (language_data): Delete la_sniff_from_mangled_name
8920 field.
8921 (language_defn::sniff_from_mangled_name): New function.
8922 (language_sniff_from_mangled_name): Delete declaration.
8923 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
8924 field.
8925 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
8926 implementation moves to...
8927 (objc_language::sniff_from_mangled_name): ...here.
8928 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
8929 * opencl-lang.c (opencl_language_data): Likewise.
8930 * p-lang.c (pascal_language_data): Likewise.
8931 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
8932 implementation moves to...
8933 (rust_language::sniff_from_mangled_name): ...here.
8934 (rust_language_data): Delete la_sniff_from_mangled_name
8935 initializer.
8936 * symtab.c (symbol_find_demangled_name): Call
8937 sniff_from_mangled_name member function.
8938
8939 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8940
8941 * ada-lang.c (ada_language_data): Delete la_search_name_hash
8942 initializer.
8943 * c-lang.c (c_language_data): Likewise.
8944 (cplus_language_data): Likewise.
8945 (cplus_language::search_name_hash): New member function.
8946 (asm_language_data): Delete la_search_name_hash initializer.
8947 (minimal_language_data): Likewise.
8948 * d-lang.c (d_language_data): Likewise.
8949 * dictionary.c (default_search_name_hash): Rename to...
8950 (language_defn::search_name_hash): ...this.
8951 * f-lang.c (f_language_data): Likewise.
8952 (f_language::search_name_hash): New member function.
8953 * go-lang.c (go_language_data): Delete la_search_name_hash
8954 initializer.
8955 * language.c (unknown_language_data): Likewise.
8956 (auto_language_data): Likewise.
8957 * language.h (struct language_data): Delete la_search_name_hash
8958 field.
8959 (language_defn::search_name_hash): Declare new member function.
8960 (default_search_name_hash): Delete declaration.
8961 * m2-lang.c (m2_language_data): Delete la_search_name_hash
8962 initializer.
8963 * objc-lang.c (objc_language_data): Likewise.
8964 * opencl-lang.c (opencl_language_data): Likewise.
8965 * p-lang.c (pascal_language_data): Likewise.
8966 * rust-lang.c (rust_language_data): Likewise.
8967 * symtab.c (search_name_hash): Update call.
8968
8969 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8970
8971 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
8972 initializer.
8973 * c-lang.c (class compile_instance): Declare.
8974 (c_language_data): Delete la_get_compile_instance initializer.
8975 (c_language::get_compile_instance): New member function.
8976 (cplus_language_data): Delete la_get_compile_instance initializer.
8977 (cplus_language::get_compile_instance): New member function.
8978 (asm_language_data): Delete la_get_compile_instance initializer.
8979 (minimal_language_data): Likewise.
8980 * c-lang.h (c_get_compile_context): Update comment.
8981 (cplus_get_compile_context): Update comment.
8982 * compile/compile.c (compile_to_object): Update calls, don't rely
8983 on function pointer being NULL.
8984 * d-lang.c (d_language_data): Delete la_get_compile_instance
8985 initializer.
8986 * f-lang.c (f_language_data): Likewise.
8987 * go-lang.c (go_language_data): Likewise.
8988 * language.c (unknown_language_data): Likewise.
8989 (auto_language_data): Likewise.
8990 * language.h (language_data): Delete la_get_compile_instance field.
8991 (language_defn::get_compile_instance): New member function.
8992 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
8993 initializer.
8994 * objc-lang.c (objc_language_data): Likewise.
8995 * opencl-lang.c (opencl_language_data): Likewise.
8996 * p-lang.c (pascal_language_data): Likewise.
8997 * rust-lang.c (rust_language_data): Likewise.
8998
8999 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9000
9001 * ada-lang.c (ada_add_all_symbols): Update comment.
9002 (ada_iterate_over_symbols): Delete, move implementation to...
9003 (ada_language::iterate_over_symbols): ...here, a new member
9004 function, rewrite to use range based for loop.
9005 (ada_language_data): Delete la_iterate_over_symbols initializer.
9006 * c-lang.c (c_language_data): Likewise.
9007 (cplus_language_data): Likewise.
9008 (asm_language_data): Likewise.
9009 (minimal_language_data): Likewise.
9010 * d-lang.c (d_language_data): Likewise.
9011 * f-lang.c (f_language_data): Likewise.
9012 * go-lang.c (go_language_data): Likewise.
9013 * language.c (unknown_language_data): Likewise.
9014 (auto_language_data): Likewise.
9015 * language.h (language_data): Delete la_iterate_over_symbols field.
9016 (language_defn::iterate_over_symbols): New member function.
9017 (LA_ITERATE_OVER_SYMBOLS): Update.
9018 * linespec.c (iterate_over_all_matching_symtabs): Update.
9019 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
9020 initializer.
9021 * objc-lang.c (objc_language_data): Likewise.
9022 * opencl-lang.c (opencl_language_data): Likewise.
9023 * p-lang.c (pascal_language_data): Likewise.
9024 * rust-lang.c (rust_language_data): Likewise.
9025
9026 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9027
9028 * ada-lang.c (ada_language_data): Delete
9029 la_lookup_transparent_type initializer.
9030 * c-lang.c (c_language_data): Likewise.
9031 (cplus_language_data): Likewise.
9032 (cplus_language::lookup_transparent_type): New member function.
9033 (asm_language_data): Delete la_lookup_transparent_type
9034 initializer.
9035 (minimal_language_data): Likewise.
9036 * d-lang.c (d_language_data): Likewise.
9037 * f-lang.c (f_language_data): Likewise.
9038 * go-lang.c (go_language_data): Likewise.
9039 * language.c (unknown_language_data): Likewise.
9040 (auto_language_data): Likewise.
9041 * language.h (struct language_data): Delete
9042 la_lookup_transparent_type field.
9043 (language_defn::lookup_transparent_type): New member function.
9044 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
9045 initializer.
9046 * objc-lang.c (objc_language_data): Likewise.
9047 * opencl-lang.c (opencl_language_data): Likewise.
9048 * p-lang.c (pascal_language_data): Likewise.
9049 * rust-lang.c (rust_language_data): Likewise.
9050 * symtab.c (symbol_matches_domain): Update call.
9051
9052 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9053
9054 * ada-lang.c (ada_language_arch_info): Delete function, move
9055 implementation to...
9056 (ada_language::language_arch_info): ...here, a new member
9057 function.
9058 (ada_language_data): Delete la_language_arch_info.
9059 * c-lang.c (c_language_data): Likewise.
9060 (c_language::language_arch_info): New member function.
9061 (cplus_language_arch_info): Delete function, move
9062 implementation to...
9063 (cplus_language::language_arch_info): ...here, a new member
9064 function.
9065 (cplus_language_data): Delete la_language_arch_info.
9066 (asm_language_data): Likewise.
9067 (asm_language::language_arch_info): New member function.
9068 (minimal_language_data): Delete la_language_arch_info.
9069 (minimal_language::language_arch_info): New member function.
9070 * d-lang.c (d_language_arch_info): Delete function, move
9071 implementation to...
9072 (d_language::language_arch_info): ...here, a new member
9073 function.
9074 (d_language_data): Delete la_language_arch_info.
9075 * f-lang.c (f_language_arch_info): Delete function, move
9076 implementation to...
9077 (f_language::language_arch_info): ...here, a new member
9078 function.
9079 (f_language_data): Delete la_language_arch_info.
9080 * go-lang.c (go_language_arch_info): Delete function, move
9081 implementation to...
9082 (go_language::language_arch_info): ...here, a new member
9083 function.
9084 (go_language_data): Delete la_language_arch_info.
9085 * language.c (unknown_language_data): Likewise.
9086 (unknown_language::language_arch_info): New member function.
9087 (auto_language_data): Delete la_language_arch_info.
9088 (auto_language::language_arch_info): New member function.
9089 (language_gdbarch_post_init): Update call to
9090 la_language_arch_info.
9091 * language.h (language_data): Delete la_language_arch_info
9092 function pointer.
9093 (language_defn::language_arch_info): New function.
9094 * m2-lang.c (m2_language_arch_info): Delete function, move
9095 implementation to...
9096 (m2_language::language_arch_info): ...here, a new member
9097 function.
9098 (m2_language_data): Delete la_language_arch_info.
9099 * objc-lang.c (objc_language_arch_info): Delete function, move
9100 implementation to...
9101 (objc_language::language_arch_info): ...here, a new member
9102 function.
9103 (objc_language_data): Delete la_language_arch_info.
9104 * opencl-lang.c (opencl_language_arch_info): Delete function, move
9105 implementation to...
9106 (opencl_language::language_arch_info): ...here, a new member
9107 function.
9108 (opencl_language_data): Delete la_language_arch_info.
9109 * p-lang.c (pascal_language_arch_info): Delete function, move
9110 implementation to...
9111 (pascal_language::language_arch_info): ...here, a new member
9112 function.
9113 (pascal_language_data): Delete la_language_arch_info.
9114 * rust-lang.c (rust_language_arch_info): Delete function, move
9115 implementation to...
9116 (rust_language::language_arch_info): ...here, a new member
9117 function.
9118 (rust_language_data): Delete la_language_arch_info.
9119
9120 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9121
9122 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
9123 initializer.
9124 * c-lang.c (c_language_data): Likewise.
9125 (cplus_language_data): Likewise.
9126 (cplus_language::pass_by_reference_info): New method.
9127 (asm_language_data): Delete la_pass_by_reference initializer.
9128 (minimal_language_data): Likewise.
9129 * cp-abi.c (cp_pass_by_reference): Remove use of
9130 default_pass_by_reference.
9131 * d-lang.c (d_language_data): Likewise.
9132 * f-lang.c (f_language_data): Likewise.
9133 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
9134 default_pass_by_reference.
9135 * go-lang.c (go_language_data): Likewise.
9136 * language.c (language_pass_by_reference): Update.
9137 (default_pass_by_reference): Delete.
9138 (unknown_language_data): Delete la_pass_by_reference
9139 initializer.
9140 (auto_language_data): Likewise.
9141 * language.h (struct language_data): Delete la_pass_by_reference
9142 field.
9143 (language_defn::pass_by_reference_info): New member function.
9144 (default_pass_by_reference): Delete declaration.
9145 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
9146 initializer.
9147 * objc-lang.c (objc_language_data): Likewise.
9148 * opencl-lang.c (opencl_language_data): Likewise.
9149 * p-lang.c (pascal_language_data): Likewise.
9150 * rust-lang.c (rust_language_data): Likewise.
9151
9152 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9153
9154 * ada-lang.c (ada_read_var_value): Delete function, move
9155 implementation to...
9156 (ada_language::read_var_value): ...here.
9157 (ada_language_data): Delete la_read_var_value initializer.
9158 * c-lang.c (c_language_data): Likewise.
9159 (cplus_language_data): Likewise.
9160 (minimal_language_data): Likewise.
9161 * d-lang.c (d_language_data): Likewise.
9162 * f-lang.c (f_language_data): Likewise.
9163 * findvar.c (default_read_var_value): Rename to...
9164 (language_defn::read_var_value): ...this.
9165 * findvar.c (read_var_value): Update header comment, and change to
9166 call member function instead of function pointer.
9167 * go-lang.c (go_language_data): Likewise.
9168 * language.c (unknown_language_data): Delete la_read_var_value
9169 initializer.
9170 (auto_language_data): Likewise.
9171 * language.h (struct language_data): Delete la_read_var_value
9172 field.
9173 (language_defn::read_var_value): New member function.
9174 (default_read_var_value): Delete declaration.
9175 * m2-lang.c (m2_language_data): Delete la_read_var_value
9176 initializer.
9177 * objc-lang.c (objc_language_data): Likewise.
9178 * opencl-lang.c (opencl_language_data): Likewise.
9179 * p-lang.c (pascal_language_data): Likewise.
9180 * rust-lang.c (rust_language_data): Likewise.
9181 * value.h (default_read_var_value): Delete declaration.
9182
9183 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9184
9185 * ada-lang.c (ada_print_array_index): Delete function, move
9186 implementation to...
9187 (ada_language::print_array_index): ...here.
9188 (ada_language_data): Delete la_print_array_index initializer.
9189 * c-lang.c (c_language_data): Likewise.
9190 (cplus_language_data): Likewise.
9191 (minimal_language_data): Likewise.
9192 * d-lang.c (d_language_data): Likewise.
9193 * f-lang.c (f_language_data): Likewise.
9194 * go-lang.c (go_language_data): Likewise.
9195 * language.c (default_print_array_index): Delete function, move
9196 implementation to...
9197 (language_defn::print_array_index): ...here.
9198 (unknown_language_data): Delete la_print_array_index initializer.
9199 (auto_language_data): Likewise.
9200 * language.h (struct language_data): Delete la_print_array_index
9201 field.
9202 (language_defn::print_array_index): New member function.
9203 (LA_PRINT_ARRAY_INDEX): Update.
9204 (default_print_array_index): Delete declaration.
9205 * m2-lang.c (m2_language_data): Delete la_print_array_index
9206 initializer.
9207 * objc-lang.c (objc_language_data): Likewise.
9208 * opencl-lang.c (opencl_language_data): Likewise.
9209 * p-lang.c (pascal_language_data): Likewise.
9210 * rust-lang.c (rust_language_data): Likewise.
9211
9212 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9213
9214 * gdb/ada-lang.c (ada_language_defn): Convert to...
9215 (ada_language_data): ...this.
9216 (class ada_language): New class.
9217 (ada_language_defn): New static global.
9218 * gdb/c-lang.c (c_language_defn): Convert to...
9219 (c_language_data): ...this.
9220 (class c_language): New class.
9221 (c_language_defn): New static global.
9222 (cplus_language_defn): Convert to...
9223 (cplus_language_data): ...this.
9224 (class cplus_language): New class.
9225 (cplus_language_defn): New static global.
9226 (asm_language_defn): Convert to...
9227 (asm_language_data): ...this.
9228 (class asm_language): New class.
9229 (asm_language_defn): New static global.
9230 (minimal_language_defn): Convert to...
9231 (minimal_language_data): ...this.
9232 (class minimal_language): New class.
9233 (minimal_language_defn): New static global.
9234 * gdb/d-lang.c (d_language_defn): Convert to...
9235 (d_language_data): ...this.
9236 (class d_language): New class.
9237 (d_language_defn): New static global.
9238 * gdb/f-lang.c (f_language_defn): Convert to...
9239 (f_language_data): ...this.
9240 (class f_language): New class.
9241 (f_language_defn): New static global.
9242 * gdb/go-lang.c (go_language_defn): Convert to...
9243 (go_language_data): ...this.
9244 (class go_language): New class.
9245 (go_language_defn): New static global.
9246 * gdb/language.c (unknown_language_defn): Remove declaration.
9247 (current_language): Initialize to nullptr, real initialization is
9248 moved to _initialize_language.
9249 (languages): Delete global.
9250 (language_defn::languages): Define.
9251 (set_language_command): Use language_defn::languages.
9252 (set_language): Likewise.
9253 (range_error): Likewise.
9254 (language_enum): Likewise.
9255 (language_def): Likewise.
9256 (add_set_language_command): Use language_def::languages for the
9257 language list, and language_def to lookup language pointers.
9258 (skip_language_trampoline): Use language_defn::languages.
9259 (unknown_language_defn): Convert to...
9260 (unknown_language_data): ...this.
9261 (class unknown_language): New class.
9262 (unknown_language_defn): New static global.
9263 (auto_language_defn): Convert to...
9264 (auto_language_data): ...this.
9265 (class auto_language): New class.
9266 (auto_language_defn): New static global.
9267 (language_gdbarch_post_init): Use language_defn::languages.
9268 (_initialize_language): Initialize current_language.
9269 * gdb/language.h (struct language_defn): Rename to...
9270 (struct language_data): ...this.
9271 (struct language_defn): New.
9272 (auto_language_defn): Delete.
9273 (unknown_language_defn): Delete.
9274 (minimal_language_defn): Delete.
9275 (ada_language_defn): Delete.
9276 (asm_language_defn): Delete.
9277 (c_language_defn): Delete.
9278 (cplus_language_defn): Delete.
9279 (d_language_defn): Delete.
9280 (f_language_defn): Delete.
9281 (go_language_defn): Delete.
9282 (m2_language_defn): Delete.
9283 (objc_language_defn): Delete.
9284 (opencl_language_defn): Delete.
9285 (pascal_language_defn): Delete.
9286 (rust_language_defn): Delete.
9287 * gdb/m2-lang.c (m2_language_defn): Convert to...
9288 (m2_language_data): ...this.
9289 (class m2_language): New class.
9290 (m2_language_defn): New static global.
9291 * gdb/objc-lang.c (objc_language_defn): Convert to...
9292 (objc_language_data): ...this.
9293 (class objc_language): New class.
9294 (objc_language_defn): New static global.
9295 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
9296 (opencl_language_data): ...this.
9297 (class opencl_language): New class.
9298 (opencl_language_defn): New static global.
9299 * gdb/p-lang.c (pascal_language_defn): Convert to...
9300 (pascal_language_data): ...this.
9301 (class pascal_language): New class.
9302 (pascal_language_defn): New static global.
9303 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
9304 language pointer, update comment format.
9305 * gdb/rust-lang.c (rust_language_defn): Convert to...
9306 (rust_language_data): ...this.
9307 (class rust_language): New class.
9308 (rust_language_defn): New static global.
9309
9310 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
9311
9312 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
9313 member variable.
9314 <m_stmt_at_address>: New member variable.
9315 (lnp_state_machine::record_line): Don't record some lines, update
9316 tracking of is_stmt at the same address.
9317 (lnp_state_machine::lnp_state_machine): Initialise new member
9318 variables.
9319
9320 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
9321
9322 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
9323 "-include gnu-nat-mig.h".
9324 * gnu-nat-mig.h: New file.
9325 * gnu-nat.c: Include "gnu-nat-mig.h".
9326 (exc_server, msg_reply_server, notify_server,
9327 process_reply_server): Remove declarations.
9328
9329 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9330
9331 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
9332 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
9333 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
9334 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
9335 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
9336 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
9337 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
9338 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
9339 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
9340 to gnu_nat_target class.
9341 * gnu-nat.c: Likewise.
9342 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
9343 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
9344 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
9345 object.
9346 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
9347 instead of `gnu_target'.
9348
9349 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9350
9351 * i386-gnu-tdep.c: Include "gdbcore.h"
9352 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
9353 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
9354 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
9355 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
9356 i386_gnu_sigcontext_addr): New functions
9357 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
9358 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
9359 tdep.
9360
9361 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9362
9363 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
9364 before fork_inferior call. Avoid calling it if target_is_pushed returns
9365 true.
9366
9367 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9368
9369 * gnu-nat.h (gnu_target): New variable declaration.
9370 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
9371 gnu_target.
9372 * gnu-nat.c (gnu_target): New variable.
9373 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
9374 add_thread_silent, and add_thread calls.
9375 (gnu_nat_target::create_inferior): Pass gnu_target to
9376 add_thread_silent, thread_change_ptid call.
9377 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
9378 call.
9379
9380 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9381
9382 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
9383 (gnu_nat_target::find_memory_regions): Remove unused
9384 `old_address' variable.
9385
9386 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9387
9388 * gnu-nat.c: Include "gdbarch.h".
9389
9390 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9391
9392 * reply_mig_hack.awk (Error return): Cast function through
9393 void *, to bypass compiler function call check.
9394
9395 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9396
9397 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
9398 $(srcdir)/reply_mig_hack.awk.
9399
9400 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9401
9402 * gnu-nat.h (gnu_debug_flag): Set type to bool.
9403
9404 2020-05-30 Jonny Grant <jg@jguk.org>
9405
9406 * configure.ac (ACX_BUGURL): change bug URL to https.
9407
9408 2020-05-30 Pedro Alves <palves@redhat.com>
9409
9410 * cp-support.c (replace_typedefs_template): New.
9411 (replace_typedefs_qualified_name): Handle
9412 DEMANGLE_COMPONENT_TEMPLATE.
9413
9414 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
9415
9416 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
9417 dwarf2/index-cache.h, dwarf2/index-write.c,
9418 dwarf2/index-write.h, dwarf2/line-header.c,
9419 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
9420 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
9421 variables and fields from `dwarf2_per_objfile` to just
9422 `per_objfile` throughout.
9423
9424 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
9425
9426 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9427 <push_dwarf_reg_entry_value>: Add comment.
9428
9429 2020-05-28 Kevin Buettner <kevinb@redhat.com>
9430 Keith Seitz <keiths@redhat.com>
9431
9432 * python/python.c (do_start_initialization): Call PyEval_SaveThread
9433 instead of PyEval_ReleaseLock.
9434 (class gdbpy_gil): Move to earlier in file.
9435 (finalize_python): Set gdb_python_initialized.
9436 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
9437 when not initialized.
9438
9439 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
9440
9441 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9442 <push_dwarf_reg_entry_value>: Remove assert. Override
9443 per_objfile with caller_per_objfile.
9444
9445 2020-05-28 Tom de Vries <tdevries@suse.de>
9446
9447 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
9448 PR gold/15646 workaround to symbol kind "type".
9449
9450 2020-05-27 Tom Tromey <tromey@adacore.com>
9451
9452 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
9453
9454 2020-05-27 Tom Tromey <tromey@adacore.com>
9455
9456 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
9457 Use htab_find_with_hash.
9458 <add_abbrev>: Remove "abbrev_number" parameter.
9459 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
9460 "abbrev_number" parameter. Use htab_find_slot_with_hash.
9461 (hash_abbrev): Add comment.
9462 (abbrev_table::lookup_abbrev): Move to header file.
9463 (abbrev_table::read): Update.
9464
9465 2020-05-27 Tom Tromey <tromey@adacore.com>
9466
9467 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
9468 method.
9469 <canonical_name>: New member.
9470 <raw_name>: Rename from "name".
9471 (partial_die_info): Initialize canonical_name.
9472 (scan_partial_symbols): Check raw_name.
9473 (partial_die_parent_scope, partial_die_full_name)
9474 (add_partial_symbol, add_partial_subprogram)
9475 (add_partial_enumeration, load_partial_dies): Use "name" method.
9476 (partial_die_info::name): New method.
9477 (partial_die_info::read, guess_partial_die_structure_name)
9478 (partial_die_info::fixup): Update.
9479
9480 2020-05-27 Tom Tromey <tromey@adacore.com>
9481
9482 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
9483 <get_ref_die_offset>: Inline.
9484 <get_ref_die_offset_complaint>: New method.
9485 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
9486 (attribute::get_ref_die_offset_complaint): Rename from
9487 get_ref_die_offset. Just issue complaint.
9488
9489 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
9490
9491 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
9492
9493 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
9494
9495 * exec.c (exec_file_attach): Use errno value of first openp failure.
9496
9497 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
9498
9499 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
9500 Don't close thread handle.
9501
9502 2020-05-27 Tom Tromey <tom@tromey.com>
9503 Simon Marchi <simon.marchi@efficios.com>
9504
9505 * objfiles.h (struct objfile) <partial_symtabs>: Now a
9506 shared_ptr.
9507 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
9508 member.
9509 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
9510 dwarf2_per_bfd_objfile_data_key>: New globals.
9511 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
9512 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
9513 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
9514 shared.
9515 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
9516 short-circuit when sharing.
9517 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
9518 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
9519
9520 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9521
9522 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
9523 to...
9524 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
9525 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
9526
9527 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9528
9529 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
9530 build_name_components, find_name_components_bounds>:
9531 Add per_objfile parameter.
9532 (struct mapped_index) <symbol_name_at>: Likewise.
9533 (struct mapped_debug_names): Remove constructor.
9534 <dwarf2_per_objfile>: Remove field.
9535 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
9536 (mapped_index_base::find_name_components_bounds,
9537 mapped_index_base::build_name_components,
9538 dw2_expand_symtabs_matching_symbol): Likewise.
9539 (class mock_mapped_index) <symbol_name_at>: Likewise.
9540 (check_match): Likewise.
9541 (check_find_bounds_finds): Likewise.
9542 (test_mapped_index_find_name_component_bounds): Update.
9543 (CHECK_MATCH): Update.
9544 (dw2_expand_symtabs_matching): Update.
9545 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
9546 per_objfile parameter.
9547 <find_vec_in_debug_names>: Likewise.
9548 <m_per_objfile>: New field.
9549 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
9550 parameter.
9551 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
9552 (dw2_debug_names_iterator::next): Update.
9553 (dw2_debug_names_lookup_symbol): Update.
9554 (dw2_debug_names_expand_symtabs_for_function): Update.
9555 (dw2_debug_names_map_matching_symbols): Update.
9556 (dw2_debug_names_expand_symtabs_matching): Update.
9557 (dwarf2_read_debug_names): Update.
9558
9559 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9560
9561 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
9562 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
9563 move to dwarf2_per_objfile.
9564 <read_in_chain>: Remove.
9565 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
9566 remove_all_cus, age_comp_units>: New methods.
9567 <m_dwarf2_cus>: New member.
9568 (struct dwarf2_per_cu_data) <cu>: Remove.
9569 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
9570 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
9571 moved to methods of dwarf2_per_objfile.
9572 (dwarf2_clear_marks): Remove.
9573 (dwarf2_queue_item::~dwarf2_queue_item): Update.
9574 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
9575 (dwarf2_per_bfd::free_cached_comp_units): Remove.
9576 (dwarf2_per_objfile::remove_all_cus): New.
9577 (class free_cached_comp_units) <~free_cached_comp_units>:
9578 Update.
9579 (load_cu): Update.
9580 (dw2_do_instantiate_symtab): Adjust.
9581 (fill_in_sig_entry_from_dwo_entry): Adjust.
9582 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9583 (cutu_reader::cutu_reader): Likewise.
9584 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
9585 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
9586 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
9587 and dwarf2_per_objfile::age_comp_units.
9588 (load_partial_comp_unit): Update.
9589 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
9590 (process_queue): Likewise.
9591 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
9592 backlink.
9593 (dwarf2_read_addr_index): Likewise.
9594 (follow_die_offset): Likewise.
9595 (dwarf2_fetch_die_loc_sect_off): Likewise.
9596 (dwarf2_fetch_constant_bytes): Likewise.
9597 (dwarf2_fetch_die_type_sect_off): Likewise.
9598 (follow_die_sig_1): Likewise.
9599 (load_full_type_unit): Likewise.
9600 (read_signatured_type): Likewise.
9601 (dwarf2_cu::dwarf2_cu): Don't set cu field.
9602 (dwarf2_cu::~dwarf2_cu): Remove.
9603 (dwarf2_per_objfile::get_cu): New.
9604 (dwarf2_per_objfile::set_cu): New.
9605 (age_cached_comp_units): Rename to...
9606 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
9607 to std::unordered_map.
9608 (free_one_cached_comp_unit): Rename to...
9609 (dwarf2_per_objfile::remove_cu): ... this. Adjust
9610 to std::unordered_map.
9611 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
9612 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
9613 a dwarf2_per_objfile in data.
9614 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
9615 (dwarf2_clear_marks): Remove.
9616
9617 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9618
9619 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
9620 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
9621 (init_tu_and_read_dwo_dies): Likewise.
9622 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
9623 (cutu_reader::cutu_reader): Likewise.
9624 (load_partial_comp_unit): Likewise.
9625 (process_psymtab_comp_unit): Update.
9626 (build_type_psymtabs_1): Update.
9627 (process_skeletonless_type_unit): Update.
9628 (load_full_comp_unit): Update.
9629 (find_partial_die): Update.
9630 (dwarf2_read_addr_index): Update.
9631 (read_signatured_type): Update.
9632
9633 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9634
9635 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
9636 m_header_read_in>: New fields.
9637 <get_header>: New method.
9638 * dwarf2/read.c (per_cu_header_read_in): Remove.
9639 (dwarf2_per_cu_data::get_header): New.
9640 (dwarf2_per_cu_data::addr_size): Update.
9641 (dwarf2_per_cu_data::offset_size): Update.
9642 (dwarf2_per_cu_data::ref_addr_size): Update.
9643
9644 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9645
9646 * dwarf2/read.c (load_cu): Return dwarf2_cu.
9647 (dw2_do_instantiate_symtab): Update.
9648 (queue_and_load_all_dwo_tus): Change parameter from
9649 dwarf2_per_cu_data to dwarf2_cu.
9650 (dwarf2_fetch_die_loc_sect_off): Update.
9651 (dwarf2_fetch_constant_bytes): Update.
9652 (dwarf2_fetch_die_type_sect_off): Update.
9653
9654 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9655
9656 * dwarf2/read.c (process_full_comp_unit,
9657 process_full_type_unit): Remove per_cu, per_objfile paramters.
9658 Add dwarf2_cu parameter.
9659 (process_queue): Update.
9660
9661 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9662
9663 * dwarf2/read.c (create_cu_from_index_list): Replace
9664 dwarf2_per_objfile parameter with dwarf2_per_bfd.
9665 (create_cus_from_index_list): Likewise.
9666 (create_cus_from_index): Likewise.
9667 (create_signatured_type_table_from_index): Likewise.
9668 (create_cus_from_debug_names_list): Likewise.
9669 (create_cus_from_debug_names): Likewise.
9670 (dwarf2_read_gdb_index): Update.
9671 (dwarf2_read_debug_names): Update.
9672
9673 2020-05-27 Tom Tromey <tom@tromey.com>
9674 Simon Marchi <simon.marchi@efficios.com>
9675
9676 * dwarf2/read.h (struct dwarf2_per_objfile)
9677 <get_type_for_signatured_type, set_type_for_signatured_type>:
9678 New methods.
9679 <m_type_map>: New member.
9680 (struct signatured_type) <type>: Remove.
9681 * dwarf2/read.c
9682 (dwarf2_per_objfile::get_type_for_signatured_type,
9683 dwarf2_per_objfile::set_type_for_signatured_type): New.
9684 (get_signatured_type): Use new methods.
9685
9686 2020-05-27 Tom Tromey <tom@tromey.com>
9687 Simon Marchi <simon.marchi@efficios.com>
9688
9689 * dwarf2/read.h (struct type_unit_group_unshareable): New.
9690 (struct dwarf2_per_objfile) <type_units>: New member.
9691 <get_type_unit_group_unshareable>: New method.
9692 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
9693 num_symtabs, symtabs>: Remove; move to
9694 type_unit_group_unshareable.
9695 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
9696 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
9697 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
9698
9699 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9700
9701 * dwarf2/read.h (struct dwarf2_per_cu_data):
9702 <dwarf2_per_objfile>: Remove.
9703 * dwarf2/read.c (create_cu_from_index_list): Don't assign
9704 dwarf2_per_objfile.
9705 (create_signatured_type_table_from_index): Likewise.
9706 (create_signatured_type_table_from_debug_names): Likewise.
9707 (create_debug_type_hash_table): Likewise.
9708 (fill_in_sig_entry_from_dwo_entry): Likewise.
9709 (create_type_unit_group): Likewise.
9710 (read_comp_units_from_section): Likewise.
9711 (create_cus_hash_table): Likewise.
9712
9713 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9714
9715 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
9716 dwarf2_per_cu_data::dwarf2_per_objfile.
9717 (compute_compunit_symtab_includes): Likewise.
9718 (dwarf2_cu::start_symtab): Likewise.
9719
9720 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9721
9722 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
9723 parameter.
9724 * dwarf2/read.c (get_die_type_at_offset): Likewise.
9725 (read_namespace_alias): Update.
9726 (lookup_die_type): Update.
9727 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
9728 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
9729 Update.
9730 (disassemble_dwarf_expression): Update.
9731
9732 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9733
9734 * dwarf2/read.h (struct dwarf2_queue_item): Add
9735 dwarf2_per_objfile parameter, assign new parameter.
9736 <per_objfile>: New field.
9737 * dwarf2/read.c (free_one_cached_comp_unit): Add
9738 dwarf2_per_objfile parameter.
9739 (queue_comp_unit): Likewise.
9740 (dw2_do_instantiate_symtab): Update.
9741 (process_psymtab_comp_unit): Update.
9742 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
9743 (process_imported_unit_die): Update.
9744 (queue_and_load_dwo_tu): Update.
9745 (follow_die_offset): Update.
9746 (follow_die_sig_1): Update.
9747
9748 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9749
9750 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
9751 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
9752 (read_call_site_scope): Assign per_objfile.
9753 (dwarf2_per_cu_data::objfile): Remove.
9754 * gdbtypes.h (struct call_site) <per_objfile>: New member.
9755 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
9756 dwarf2_per_objfile parameter.
9757 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
9758 dwarf2_per_objfile parameter.
9759 (dwarf_expr_reg_to_entry_parameter): Add output
9760 dwarf2_per_objfile parameter.
9761 (locexpr_get_frame_base): Update.
9762 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
9763 <push_dwarf_reg_entry_value>: Update.
9764 <call_site_to_target_addr>: Update.
9765 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
9766 parameter.
9767 (value_of_dwarf_reg_entry): Update.
9768 (rw_pieced_value): Update.
9769 (indirect_synthetic_pointer): Update.
9770 (dwarf2_evaluate_property): Update.
9771 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
9772 parameter.
9773 (locexpr_read_variable): Update.
9774 (locexpr_get_symbol_read_needs): Update.
9775 (loclist_read_variable): Update.
9776
9777 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9778
9779 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
9780 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9781 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
9782 parameter.
9783 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
9784 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9785 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
9786 parameter.
9787 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
9788 sect_variable_value): Add dwarf2_per_objfile parameter.
9789 (class dwarf_evaluate_loc_desc) <dwarf_call,
9790 dwarf_variable_value>: Update.
9791 (fetch_const_value_from_synthetic_pointer): Add
9792 dwarf2_per_objfile parameter.
9793 (fetch_const_value_from_synthetic_pointer): Update.
9794 (coerced_pieced_ref): Update.
9795 (class symbol_needs_eval_context) <dwarf_call,
9796 dwarf_variable_value>: Update.
9797 (dwarf2_compile_expr_to_ax): Update.
9798
9799 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9800
9801 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
9802 parameter.
9803 (dwarf2_evaluate_loc_desc_full): Update.
9804
9805 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9806
9807 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
9808 parameter.
9809 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
9810 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
9811 dwarf2_per_objfile parameter.
9812 (decode_debug_loc_dwo_addresses): Likewise.
9813 (dwarf2_find_location_expression): Update.
9814 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
9815 (locexpr_describe_location_piece): Add dwarf2_per_objfile
9816 parameter.
9817 (disassemble_dwarf_expression): Add dwarf2_per_objfile
9818 parameter.
9819 (locexpr_describe_location_1): Likewise.
9820 (locexpr_describe_location): Update.
9821
9822 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9823
9824 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
9825 Remove.
9826 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
9827 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
9828 (dwarf2_compile_property_to_c): Update.
9829 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
9830 use text offset from objfile.
9831 (locexpr_tracepoint_var_ref): Update.
9832 (locexpr_generate_c_location): Update.
9833 (loclist_describe_location): Update.
9834 (loclist_tracepoint_var_ref): Update.
9835 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
9836 dwarf2_per_objfile parameter.
9837 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
9838 use text offset from objfile.
9839 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
9840
9841 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9842
9843 * dwarf2/expr.h (struct dwarf_expr_context)
9844 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
9845 <offset>: Remove.
9846 <per_objfile>: New member.
9847 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
9848 dwarf2_per_objfile parameter. Don't set offset, set
9849 per_objfile.
9850 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
9851 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
9852 a dwarf2_per_objfile object instead of an offset.
9853 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
9854 constructor.
9855 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
9856 to dwarf2_expr_executor constructor. Don't set offset.
9857 (dwarf2_fetch_cfa_info): Update.
9858 (struct dwarf2_frame_cache) <text_offset>: Remove.
9859 <per_objfile>: New field.
9860 (dwarf2_frame_cache): Update.
9861 (dwarf2_frame_prev_register): Update.
9862 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9863 <dwarf_evaluate_loc_desc>: Add constructor.
9864 (dwarf2_evaluate_loc_desc_full): Update.
9865 (dwarf2_locexpr_baton_eval): Update.
9866 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
9867 Add constructor.
9868 (dwarf2_loc_desc_get_symbol_read_needs): Update.
9869
9870 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9871
9872 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
9873 addr_sized_int_type>: Move to dwarf2_cu.
9874 <int_type>: Move to dwarf2_per_objfile.
9875 (struct dwarf2_per_objfile) <int_type>: Move here.
9876 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
9877 addr_sized_int_type>: Move here.
9878 (read_func_scope): Update.
9879 (read_array_type): Update.
9880 (read_tag_string_type): Update.
9881 (attr_to_dynamic_prop): Update.
9882 (dwarf2_per_cu_data::int_type): Rename to...
9883 (dwarf2_per_objfile::int_type): ... this.
9884 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
9885 (dwarf2_cu::addr_sized_int_type): ... this.
9886 (read_subrange_type): Update.
9887 (dwarf2_per_cu_data::addr_type): Rename to...
9888 (dwarf2_cu::addr_type): ... this.
9889 (set_die_type): Update.
9890
9891 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9892
9893 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
9894 data through per_cu->cu.
9895
9896 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9897
9898 * dwarf2/read.c (lookup_dwo_comp_unit): Change
9899 dwarf2_per_cu_data parameter fo dwarf2_cu.
9900 (lookup_dwo_type_unit): Likewise.
9901 (read_cutu_die_from_dwo): Likewise.
9902 (lookup_dwo_unit): Likewise.
9903 (open_and_init_dwo_file): Likewise.
9904 (lookup_dwo_cutu): Likewise.
9905 (lookup_dwo_comp_unit): Likewise.
9906 (lookup_dwo_type_unit): Likewise.
9907 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9908 (cutu_reader::cutu_reader): Update.
9909
9910 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9911
9912 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
9913 parameter.
9914 (process_full_type_unit): Likewise.
9915 (process_queue): Update.
9916
9917 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9918
9919 * dwarf2/read.c (recursively_compute_inclusions): Add
9920 dwarf2_per_objfile parameter.
9921 (compute_compunit_symtab_includes): Likewise.
9922 (process_cu_includes): Update.
9923
9924 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9925
9926 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
9927 parameter.
9928 (create_type_unit_group): Update.
9929 (process_psymtab_comp_unit_reader): Update.
9930 (build_type_psymtabs_reader): Update.
9931
9932 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9933
9934 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
9935 object through m_this_cu->cu.
9936
9937 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9938
9939 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
9940 the info parameter.
9941 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
9942
9943 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9944
9945 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
9946 per_objfile parameter.
9947 (load_full_type_unit): Add per_objfile parameter.
9948 (read_signatured_type): Likewise.
9949 (load_full_comp_unit): Likewise.
9950 (load_cu): Likewise.
9951 (dw2_do_instantiate_symtab): Likewise.
9952 (dw2_get_file_names): Likewise.
9953 (dw2_map_symtabs_matching_filename): Update.
9954 (dw_expand_symtabs_matching_file_matcher): Update.
9955 (dw2_map_symbol_filenames): Update.
9956 (process_psymtab_comp_unit): Add per_objfile parameter.
9957 (build_type_psymtabs_1): Update.
9958 (process_skeletonless_type_unit): Update.
9959 (dwarf2_build_psymtabs_hard): Update.
9960 (load_partial_comp_unit): Add per_objfile parameter.
9961 (scan_partial_symbols): Update.
9962 (load_full_comp_unit): Add per_objfile parameter.
9963 (process_imported_unit_die): Update.
9964 (create_cus_hash_table): Update.
9965 (find_partial_die): Update.
9966 (dwarf2_read_addr_index): Update.
9967 (follow_die_offset): Update.
9968 (dwarf2_fetch_die_loc_sect_off): Update.
9969 (dwarf2_fetch_constant_bytes): Update.
9970 (dwarf2_fetch_die_type_sect_off): Update.
9971 (follow_die_sig_1): Update.
9972 (load_full_type_unit): Add per_objfile parameter.
9973 (read_signatured_type): Likewise.
9974
9975 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9976
9977 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
9978 of objfile_name.
9979
9980 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9981
9982 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
9983 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
9984 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
9985 field.
9986 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
9987 (create_cus_from_index): Update.
9988 (dwarf2_read_gdb_index): Update.
9989 (create_cus_from_debug_names): Update.
9990 (dwarf2_read_debug_names): Update.
9991 (get_abbrev_section_for_cu): Update.
9992 (create_all_comp_units): Update.
9993 (read_attribute_value): Update.
9994 (get_debug_line_section): Update.
9995 * dwarf2/index-cache.c (index_cache::store): Update.
9996 * dwarf2/index-write.c (save_gdb_index_command): Update.
9997 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
9998
9999 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10000
10001 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
10002 member.
10003 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
10004 dwarf2_per_cu_data::per_bfd.
10005 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
10006 (create_type_unit_group): Likewise.
10007 (queue_comp_unit): Remove reference to
10008 per_cu->dwarf2_per_objfile.
10009 (maybe_queue_comp_unit): Likewise.
10010 (fill_in_sig_entry_from_dwo_entry): Assign new field.
10011 (create_cus_hash_table): Assign new field.
10012
10013 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10014
10015 * dwarf2/read.c: Replace
10016 dwarf2_cu->per_cu->dwarf2_per_objfile references with
10017 dwarf2_cu->per_objfile throughout.
10018
10019 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10020
10021 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
10022 parameter, don't use per_cu->dwarf2_per_objfile.
10023 (dw2_instantiate_symtab): Likewise.
10024 (dw2_find_last_source_symtab): Update.
10025 (dw2_map_expand_apply): Update.
10026 (dw2_lookup_symbol): Update.
10027 (dw2_expand_symtabs_for_function): Update.
10028 (dw2_expand_all_symtabs): Update.
10029 (dw2_expand_symtabs_with_fullname): Update.
10030 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
10031 don't use per_cu->dwarf2_per_objfile.
10032 (dw2_expand_marked_cus): Update.
10033 (dw2_find_pc_sect_compunit_symtab): Update.
10034 (dw2_debug_names_lookup_symbol): Update.
10035 (dw2_debug_names_expand_symtabs_for_function): Update.
10036 (dw2_debug_names_map_matching_symbols): Update.
10037 (dwarf2_psymtab::expand_psymtab): Update.
10038
10039 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10040
10041 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
10042 <per_objfile>: New member.
10043 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
10044 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
10045 call to dwarf2_cu.
10046 (cutu_reader::cutu_reader): Update.
10047 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
10048
10049 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10050
10051 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
10052 struct dwarf2_per_objfile.
10053 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
10054 dwarf2_per_bfd.
10055 * dwarf2/read.c (set_die_type): Update.
10056 (get_die_type_at_offset): Update.
10057
10058 2020-05-27 Tom Tromey <tom@tromey.com>
10059 Simon Marchi <simon.marchi@efficios.com>
10060
10061 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
10062 method.
10063 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
10064 get_symtab, set_symtab>: New methods.
10065 <m_symtabs>: New field.
10066 (struct dwarf2_psymtab): Derive from partial_symtab.
10067 <readin_p, get_compunit_symtab>: Declare methods.
10068 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
10069 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
10070 New methods.
10071 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
10072 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
10073 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
10074 (dw2_symtab_iter_next, dw2_print_stats)
10075 (dw2_expand_symtabs_with_fullname)
10076 (dw2_expand_symtabs_matching_one)
10077 (dw_expand_symtabs_matching_file_matcher)
10078 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
10079 (dw2_debug_names_iterator::next)
10080 (dw2_debug_names_map_matching_symbols)
10081 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
10082 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
10083 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
10084 New methods.
10085 (get_compunit_symtab, process_full_comp_unit)
10086 (process_full_type_unit): Update.
10087 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
10088
10089 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10090
10091 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
10092 then introduce a new dwarf2_per_objfile type.
10093 <read_line_string>: Move to the new dwarf2_per_objfile type.
10094 <objfile>: Likewise.
10095 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
10096 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
10097 dwarf2_per_objfile->per_bfd.
10098 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
10099 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
10100 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
10101 (dwarf2_per_bfd::free_cached_comp_units): ... this.
10102 (dwarf2_has_info): Allocate dwarf2_per_bfd.
10103 (dwarf2_per_objfile::locate_sections): Rename to...
10104 (dwarf2_per_bfd::locate_sections): ... this.
10105 (dwarf2_per_objfile::get_cutu): Rename to...
10106 (dwarf2_per_bfd::get_cutu): ... this.
10107 (dwarf2_per_objfile::get_cu): Rename to...
10108 (dwarf2_per_bfd::get_cu): ... this.
10109 (dwarf2_per_objfile::get_tu): Rename to...
10110 (dwarf2_per_bfd::get_tu): ... this.
10111 (dwarf2_per_objfile::allocate_per_cu): Rename to...
10112 (dwarf2_per_bfd::allocate_per_cu): ... this.
10113 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
10114 (dwarf2_per_bfd::allocate_signatured_type): ... this.
10115 (get_gdb_index_contents_ftype): Change parameter from
10116 dwarf2_per_objfile to dwarf2_per_bfd.
10117 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
10118 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
10119
10120 2020-05-27 Tom Tromey <tom@tromey.com>
10121 Simon Marchi <simon.marchi@efficios.com>
10122
10123 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
10124 (allocate_piece_closure): Set "per_objfile" member.
10125 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
10126 (locexpr_describe_location, loclist_describe_location): Use new
10127 member.
10128 * dwarf2/read.c (read_call_site_scope)
10129 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
10130 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
10131 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
10132 handle_data_member_location): Set per_objfile member.
10133 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
10134 member.
10135 (struct dwarf2_loclist_baton) <per_objfile>: New member.
10136
10137 2020-05-27 Tom Tromey <tom@tromey.com>
10138
10139 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
10140 allocate_signatured_type>: Declare new methods.
10141 <m_num_psymtabs>: New member.
10142 (struct dwarf2_per_cu_data) <index>: New member.
10143 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
10144 (dwarf2_per_objfile::allocate_signatured_type): New methods.
10145 (create_cu_from_index_list): Use allocate_per_cu.
10146 (create_signatured_type_table_from_index)
10147 (create_signatured_type_table_from_debug_names)
10148 (create_debug_type_hash_table, add_type_unit)
10149 (read_comp_units_from_section): Use allocate_signatured_type.
10150
10151 2020-05-27 Tom Tromey <tom@tromey.com>
10152
10153 * psymtab.c (partial_map_expand_apply)
10154 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10155 (psym_lookup_global_symbol_language)
10156 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10157 (psym_print_stats, psym_expand_symtabs_for_function)
10158 (psym_map_symbol_filenames, psym_map_matching_symbols)
10159 (psym_expand_symtabs_matching)
10160 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10161 (maintenance_check_psymtabs): Update.
10162 * psympriv.h (struct partial_symtab) <readin_p,
10163 get_compunit_symtab>: Add objfile parameter.
10164 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
10165 Likewise.
10166 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
10167 get_compunit_symtab>: Likewise.
10168 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
10169
10170 2020-05-27 Tom Tromey <tom@tromey.com>
10171
10172 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
10173 member.
10174 * dwarf2/read.c (delete_file_name_entry): Fix comment.
10175 (create_cu_from_index_list)
10176 (create_signatured_type_table_from_index)
10177 (create_signatured_type_table_from_debug_names)
10178 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
10179 (dwarf2_create_include_psymtab)
10180 (create_debug_type_hash_table, add_type_unit)
10181 (create_type_unit_group, read_comp_units_from_section)
10182 (dwarf2_compute_name, create_cus_hash_table)
10183 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
10184 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
10185 obstack.
10186 (dw2_get_real_path): Likewise. Change argument to
10187 dwarf2_per_objfile.
10188
10189 2020-05-27 Luis Machado <luis.machado@linaro.org>
10190
10191 PR tdep/26000
10192 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
10193 for ldrd (immediate).
10194
10195 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10196
10197 * command.h: Add comment giving the name of class_tui.
10198 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
10199 create the fake command for the help for class_tui.
10200
10201 2020-05-26 Tom Tromey <tromey@adacore.com>
10202
10203 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
10204 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
10205 (val_atr): New function.
10206 (value_val_atr): Use it.
10207 * ada-valprint.c (print_optional_low_bound): Change low bound
10208 handling for enums.
10209 (val_print_packed_array_elements): Don't call discrete_position.
10210 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
10211 discrete_position for enum types.
10212 * language.c (default_print_array_index): Change type.
10213 * language.h (struct language_defn) <la_print_array_index>: Add
10214 index_type parameter, change type of index_value.
10215 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
10216 (default_print_array_index): Update.
10217 * valprint.c (maybe_print_array_index): Don't call
10218 value_from_longest. Update.
10219 (value_print_array_elements): Don't call discrete_position.
10220
10221 2020-05-26 Tom Tromey <tromey@adacore.com>
10222
10223 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
10224 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
10225
10226 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
10227
10228 PR gdb/13519
10229 * avr-tdep.c (avr_integer_to_address): Return data or code
10230 address accordingly to the second 'type' argument of the
10231 function.
10232
10233 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
10234
10235 * infcmd.c, inferior.h: (construct_inferior_arguments):
10236 Moved function from here to gdbsupport/common-inferior.{h,cc}
10237
10238 2020-05-23 Tom Tromey <tom@tromey.com>
10239
10240 Revert commit eca1f90c:
10241 * NEWS: Remove entry for completion styling.
10242 * completer.c (_rl_completion_prefix_display_length): Move
10243 declaration later.
10244 (gdb_fnprint): Revert.
10245 (gdb_display_match_list_1): Likewise.
10246 * cli/cli-style.c (completion_prefix_style)
10247 (completion_difference_style, completion_suffix_style): Remove.
10248 (_initialize_cli_style): Revert.
10249 * cli/cli-style.h (completion_prefix_style)
10250 (completion_difference_style, completion_suffix_style): Don't
10251 declare.
10252
10253 2020-05-24 Pedro Alves <palves@redhat.com>
10254
10255 * symtab.c (completion_list_add_name): Return boolean indication
10256 of whether the symbol matched.
10257 (completion_list_add_symbol): Don't try to remove C++ aliases if
10258 the symbol didn't match in the first place.
10259 * symtab.h (completion_list_add_name): Return bool.
10260
10261 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
10262
10263 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
10264 type::field.
10265
10266 2020-05-23 Joel Brobecker <brobecker@adacore.com>
10267
10268 GDB 9.2 released.
10269
10270 2020-05-23 Tom Tromey <tom@tromey.com>
10271
10272 * NEWS: Add entry for completion styling.
10273 * completer.c (_rl_completion_prefix_display_length): Move
10274 declaration earlier.
10275 (gdb_fnprint): Use completion_style.
10276 (gdb_display_match_list_1): Likewise.
10277 * cli/cli-style.c (completion_prefix_style)
10278 (completion_difference_style, completion_suffix_style): New
10279 globals.
10280 (_initialize_cli_style): Register new globals.
10281 * cli/cli-style.h (completion_prefix_style)
10282 (completion_difference_style, completion_suffix_style): Declare.
10283
10284 2020-05-23 Pedro Alves <palves@redhat.com>
10285
10286 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
10287 (parse_escape): Use ISDIGIT instead of isdigit.
10288 (puts_debug): Use gdb_isprint instead of isprint.
10289 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
10290 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
10291 ISSPACE instead of isspace.
10292 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
10293 instead of isspace.
10294 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
10295 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
10296 instead of isxdigit and ISDIGIT instead of isdigit.
10297
10298 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10299
10300 * gdbtypes.h (struct type) <field>: New method.
10301 (TYPE_FIELDS): Remove, replace all uses with either type::fields
10302 or type::field.
10303
10304 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10305
10306 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
10307 (TYPE_FIELDS): Use type::fields. Change all call sites that
10308 modify the propery to use type::set_fields instead.
10309
10310 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10311
10312 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
10313 type::num_fields instead.
10314
10315 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10316
10317 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
10318 methods.
10319 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
10320 that modify the number of fields to use type::set_num_fields
10321 instead.
10322
10323 2020-05-22 Tom Tromey <tromey@adacore.com>
10324
10325 * compile/compile-object-load.h (munmap_list_free): Don't
10326 declare.
10327
10328 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
10329
10330 * annotate.c (annotate_source_line): Update return type, add call
10331 to update current symtab and line.
10332 * annotate.h (annotate_source_line): Update return type, and
10333 extend header comment.
10334 * source.c (info_line_command): Check annotation_level before
10335 calling annotate_source_line.
10336 * stack.c (print_frame_info): If calling annotate_source_line
10337 returns true, then don't print any other source line information.
10338
10339 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
10340
10341 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
10342
10343 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
10344
10345 * coffread.c (patch_type): Remove NULL check before xfree.
10346 * corefile.c (set_gnutarget): Likewise.
10347 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
10348 * exec.c (build_section_table): Likewise.
10349 * remote.c (remote_target::pass_signals): Likewise.
10350 * utils.c (n_spaces): Likewise.
10351 * cli/cli-script.c (document_command): Likewise.
10352 * i386-windows-tdep.c (core_process_module_section): Likewise.
10353 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
10354
10355 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
10356
10357 * symfile.c (reread_symbols): Clear objfile's section_offsets
10358 vector and section indices, re-compute them by calling
10359 sym_offsets.
10360
10361 2020-05-20 Tom Tromey <tromey@adacore.com>
10362
10363 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
10364 (desc_one_bound, desc_index_type): Compute field name.
10365
10366 2020-05-20 Tom de Vries <tdevries@suse.de>
10367
10368 PR symtab/25833
10369 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
10370
10371 2020-05-20 Alan Modra <amodra@gmail.com>
10372
10373 PR 25993
10374 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
10375 bfd_set_filename.
10376 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
10377 passed to bfd_set_filename.
10378 * symfile-mem.c (add_vsyscall_page): Likewise for string
10379 passed to symbol_file_add_from_memory.
10380 (symbol_file_add_from_memory): Make name param a const char* and
10381 don't strdup.
10382
10383 2020-05-20 Alan Modra <amodra@gmail.com>
10384
10385 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
10386 rather than accessing bfd->filename directly.
10387 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
10388 and use bfd_section_name.
10389 * dwarf2/frame.c (decode_frame_entry): Likewise.
10390 * exec.c (exec_set_section_address): Likewise.
10391 * solib-aix.c (solib_aix_bfd_open): Likewise.
10392 * stap-probe.c (get_stap_base_address): Likewise.
10393 * symfile.c (reread_symbols): Likewise.
10394
10395 2020-05-19 Tom Tromey <tromey@adacore.com>
10396
10397 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
10398
10399 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10400
10401 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
10402
10403 2020-05-19 Pedro Alves <palves@redhat.com>
10404
10405 * NEWS (set exec-file-mismatch): Adjust entry.
10406 * exec.c: Include "build-id.h".
10407 (validate_exec_file): Try to match build IDs instead of filenames.
10408 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
10409 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
10410 and pass down 'warn_if_slow'.
10411 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
10412 gdb_bfd_open_closure to pass it down.
10413 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
10414
10415 2020-05-19 Pedro Alves <palves@redhat.com>
10416
10417 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
10418 * target.c (target_fileio_open_1): Rename to target_fileio_open
10419 and make extern. Use bool.
10420 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
10421 (target_fileio_read_alloc_1): Adjust.
10422 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
10423 (target_fileio_open_warn_if_slow): Delete declaration.
10424
10425 2020-05-19 Pedro Alves <palves@redhat.com>
10426
10427 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
10428 Adjust all callers.
10429
10430 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
10431
10432 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
10433 whether disp is negative.
10434
10435 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10436
10437 * symfile.h (struct symfile_segment_data)
10438 <~symfile_segment_data>: Remove.
10439 <segment_info>: Change to std::vector.
10440 * symfile.c (default_symfile_segments): Update.
10441 * elfread.c (elf_symfile_segments): Update.
10442
10443 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10444
10445 * symfile.h (struct symfile_segment_data) <struct segment>: New.
10446 <segments>: New.
10447 <segment_bases, segment_sizes>: Remove.
10448 * symfile.c (default_symfile_segments): Update.
10449 * elfread.c (elf_symfile_segments): Update.
10450 * remote.c (remote_target::get_offsets): Update.
10451 * solib-target.c (solib_target_relocate_section_addresses):
10452 Update.
10453
10454 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10455
10456 * symfile.h (struct symfile_segment_data): Initialize fields.
10457 <~symfile_segment_data>: Add.
10458 (symfile_segment_data_up): New.
10459 (struct sym_fns) <sym_segments>: Return a
10460 symfile_segment_data_up.
10461 (default_symfile_segments): Return a symfile_segment_data_up.
10462 (free_symfile_segment_data): Remove.
10463 (get_symfile_segment_data): Return a symfile_segment_data_up.
10464 * symfile.c (default_symfile_segments): Likewise.
10465 (get_symfile_segment_data): Likewise.
10466 (free_symfile_segment_data): Remove.
10467 (symfile_find_segment_sections): Update.
10468 * elfread.c (elf_symfile_segments): Return a
10469 symfile_segment_data_up.
10470 * remote.c (remote_target::get_offsets): Update.
10471 * solib-target.c (solib_target_relocate_section_addresses):
10472 Update.
10473 * symfile-debug.c (debug_sym_segments): Return a
10474 symfile_segment_data_up.
10475
10476 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10477
10478 PR build/25981
10479 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
10480 Hardcode register numbers.
10481
10482 PR build/25981
10483 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
10484 procfs_find_LDT_entry): Remove.
10485 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
10486 procfs_find_LDT_entry): Remove.
10487 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
10488 Remove.
10489
10490 2020-05-17 Pedro Alves <palves@redhat.com>
10491 Andrew Burgess <andrew.burgess@embecosm.com>
10492 Keno Fischer <keno@juliacomputing.com>
10493
10494 PR gdb/25741
10495 * breakpoint.c (build_target_condition_list): Update comments.
10496 (build_target_command_list): Update comments and skip matching
10497 locations.
10498 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
10499 a separate function. Simplify "set breakpoint auto-hw off"
10500 handling.
10501 (insert_breakpoints): Update comment.
10502 (tracepoint_locations_match): New parameter. For breakpoints,
10503 compare location types too, if the caller wants to.
10504 (handle_automatic_hardware_breakpoints): New functions.
10505 (bp_location_is_less_than): Also sort by location type and
10506 hardware breakpoint length.
10507 (update_global_location_list): Handle "set breakpoint auto-hw on"
10508 here.
10509 (update_breakpoint_locations): Ask breakpoint_locations_match to
10510 ignore location types.
10511
10512 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
10513
10514 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
10515 type::name instead.
10516
10517 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
10518
10519 * gdbtypes.h (struct type) <name, set_name>: New methods.
10520 (TYPE_CODE): Use type::name. Change all call sites used to set
10521 the name to use type::set_name instead.
10522
10523 2020-05-16 Tom Tromey <tom@tromey.com>
10524
10525 * top.c (quit_force): Update.
10526 * infrun.c (handle_no_resumed): Update.
10527 * top.h (all_uis): New function.
10528 (ALL_UIS): Remove.
10529
10530 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
10531
10532 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
10533
10534 2020-05-16 Pedro Alves <palves@redhat.com>
10535
10536 * ia64-linux-nat.c
10537 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
10538 Declare method.
10539 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
10540
10541 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
10542
10543 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
10544 (sparc64_adi_info): Likewise.
10545
10546 2020-05-15 Tom Tromey <tom@tromey.com>
10547
10548 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
10549 block_objfile.
10550 (lookup_objfile_from_block): Remove.
10551 (lookup_symbol_in_block, lookup_symbol_in_static_block)
10552 (lookup_global_symbol): Use block_objfile.
10553 * symtab.h (lookup_objfile_from_block): Don't declare.
10554 * printcmd.c (clear_dangling_display_expressions): Use
10555 block_objfile.
10556 * parse.c (operator_check_standard): Use block_objfile.
10557
10558 2020-05-15 Tom Tromey <tom@tromey.com>
10559
10560 * language.c (language_alloc_type_symbol): Set
10561 SYMBOL_SECTION.
10562 * symtab.c (initialize_objfile_symbol): Remove.
10563 (allocate_symbol): Remove.
10564 (allocate_template_symbol): Remove.
10565 * dwarf2/read.c (fixup_go_packaging): Use "new".
10566 (new_symbol): Use "new".
10567 (read_variable): Don't call initialize_objfile_symbol. Use
10568 "new".
10569 (read_func_scope): Use "new".
10570 * xcoffread.c (process_xcoff_symbol): Don't call
10571 initialize_objfile_symbol.
10572 (SYMBOL_DUP): Remove.
10573 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
10574 "new".
10575 * symtab.h (allocate_symbol, initialize_objfile_symbol)
10576 (allocate_template_symbol): Don't declare.
10577 (struct symbol): Add copy constructor. Change defaults.
10578 * jit.c (finalize_symtab): Use "new".
10579 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
10580 Use "new".
10581 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
10582 (common_block_end): Use "new".
10583 * mdebugread.c (parse_symbol): Use "new".
10584 (new_symbol): Likewise.
10585
10586 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10587
10588 * NEWS: Mention changes to help and apropos.
10589
10590 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10591
10592 * command.h (enum command_class): Improve comments, document
10593 that class_alias is for user-defined aliases, give the class
10594 name for each class, remove unused class_xdb.
10595 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
10596 * breakpoint.c (_initialize_breakpoint): Replace class_alias
10597 by a precise class.
10598 * infcmd.c (_initialize_infcmd): Likewise.
10599 * reverse.c (_initialize_reverse): Likewise.
10600 * stack.c (_initialize_stack): Likewise.
10601 * symfile.c (_initialize_symfile): Likewise.
10602 * tracepoint.c (_initialize_tracepoint): Likewise.
10603
10604 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10605
10606 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
10607 when their aliased command is traversed.
10608 (help_cmd): Add fput_command_names_styled call to
10609 output command name and aliases when command has an alias.
10610
10611 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10612
10613 * cli/cli-decode.h (help_cmd_list): Remove declaration.
10614 * cli/cli-decode.c (help_cmd_list): Declare as static,
10615 remove prefix argument, use bool for recurse arg, rework to show the aliases of
10616 a command together with the command.
10617 (fput_command_name_styled, fput_command_names_styled): New functions.
10618 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
10619 fput_command_name_styled.
10620 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
10621 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
10622
10623 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10624
10625 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
10626 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
10627 * command.h (cmd_show_list): Likewise.
10628 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
10629 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
10630
10631 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10632
10633 * unittests/command-def-selftests.c (traverse_command_structure):
10634 Verify all commands of a list have the same prefix command and
10635 that only the top cmdlist commands have a null prefix.
10636
10637 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10638
10639 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
10640 as prefix, not one of its aliases.
10641 (set_cmd_prefix): Remove.
10642 (do_add_cmd): Centralize the setting of the prefix of a command, when
10643 command is defined after its full chain of prefix commands.
10644 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
10645 (add_setshow_cmd_full): Likewise.
10646 (update_prefix_field_of_prefixed_commands): New function.
10647 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
10648 update_prefix_field_of_prefixed_commands.
10649 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
10650 addresses of remote_set_cmdlist and remote_show_cmdlist given
10651 as argument, not the address of an argument.
10652 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
10653 * gdb/remote.c (_initialize_remote): Likewise.
10654
10655 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10656
10657 * cli/cli-cmds.c (alias_command): Check for an existing alias
10658 using lookup_cmd_composition, as valid_command_p is too strict
10659 and forbids aliases that are the prefix of an existing alias
10660 or command.
10661 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
10662 command is properly recognised as a valid command.
10663
10664 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10665
10666 * unittests/help-doc-selftests.c: Rename to
10667 unittests/command-def-selftests.c
10668 * unittests/command-def-selftests.c (help_doc_tests): Update some
10669 comments.
10670 (command_structure_tests, traverse_command_structure): New namespace
10671 and function.
10672 (command_structure_invariants_tests): New function.
10673 (_initialize_command_def_selftests) Renamed from
10674 _initialize_help_doc_selftests, register command_structure_invariants
10675 selftest.
10676
10677 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10678
10679 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
10680 an alias of 'show'.
10681
10682 2020-05-15 Joel Brobecker <brobecker@adacore.com>
10683
10684 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
10685 ada_is_fixed_point_type. Update all callers.
10686 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
10687 all callers.
10688 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
10689 Update all callers.
10690 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
10691 print_fixed_point_type. Update all callers.
10692 * ada-valprint.c (ada_value_print_num): Replace call to
10693 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
10694
10695 2020-05-14 Kevin Buettner <kevinb@redhat.com>
10696
10697 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
10698 processors.
10699 (cpu_supports_bts): Add CV_AMD case.
10700
10701 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
10702 Simon Marchi <simon.marchi@efficios.com>
10703
10704 * infrun.c (stop_all_threads): Collect multiple wait events at
10705 each pass.
10706
10707 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
10708
10709 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
10710 type::code instead.
10711
10712 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
10713
10714 * gdbtypes.h (struct type) <code, set_code>: New methods.
10715 (TYPE_CODE): Use type::code. Change all call sites used to set
10716 the code to use type::set_code instead.
10717
10718 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10719 Tom de Vries <tdevries@suse.de>
10720 Pedro Alves <palves@redhat.com>
10721
10722 PR threads/25478
10723 * infrun.c (stop_all_threads): Do NOT ignore
10724 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
10725 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
10726 received.
10727 (handle_no_resumed): Remove code handling a live inferior with no
10728 threads.
10729 * remote.c (has_single_non_exited_thread): New.
10730 (remote_target::update_thread_list): Do not delete a thread if is
10731 the last thread of the process.
10732 * thread.c (thread_select): Call delete_exited_threads instead of
10733 prune_threads.
10734
10735 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10736
10737 * infrun.c (stop_all_threads): Enable/disable thread events of all
10738 targets. Move a debug message denoting the end of the function
10739 into the SCOPED_EXIT block.
10740
10741 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10742
10743 * process-stratum-target.h: Include <set>.
10744 (all_non_exited_process_targets, switch_to_target_no_thread): New
10745 function declarations.
10746 * process-stratum-target.c (all_non_exited_process_targets)
10747 (switch_to_target_no_thread): New function implementations.
10748
10749 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10750
10751 * infrun.c (handle_inferior_event): Extract out a piece of code
10752 into...
10753 (mark_non_executing_threads): ...this new function.
10754
10755 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10756
10757 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
10758 use.
10759
10760 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10761
10762 * regcache.c (regcache_read_pc_protected): New function
10763 implementation that returns 0 if the PC cannot read via
10764 'regcache_read_pc'.
10765 * infrun.c (proceed): Call 'regcache_read_pc_protected'
10766 instead of 'regcache_read_pc'.
10767 (keep_going_pass_signal): Ditto.
10768
10769 2020-05-13 Tom Tromey <tromey@adacore.com>
10770
10771 * ada-lang.c (align_value): Remove.
10772 (ada_template_to_fixed_record_type_1): Use align_up.
10773
10774 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10775
10776 * async-event.c: Update the copyright year.
10777 * async-event.h: Update the copyright year.
10778
10779 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
10780
10781 * objfiles.h (is_addr_in_objfile,
10782 shared_objfile_contains_address_p): Return bool.
10783 * objfile.c (is_addr_in_objfile,
10784 shared_objfile_contains_address_p): Return bool.
10785
10786 2020-05-11 Tom Tromey <tromey@adacore.com>
10787
10788 * cli/cli-cmds.c (info_command): Restore.
10789 (_initialize_cli_cmds): Use add_prefix_command for "info".
10790 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
10791
10792 2020-05-11 Tom Tromey <tromey@adacore.com>
10793
10794 * ada-lang.c (ada_value_primitive_field): Now public.
10795 * ada-lang.h (ada_value_primitive_field): Declare.
10796 * ada-valprint.c (print_field_values): Use
10797 ada_value_primitive_field for wrapper fields.
10798
10799 2020-05-11 Tom de Vries <tdevries@suse.de>
10800
10801 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
10802 MODULE_DOMAIN.
10803
10804 2020-05-11 Tom de Vries <tdevries@suse.de>
10805
10806 PR symtab/25941
10807 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
10808 with length 0, if not gdb-produced.
10809 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
10810
10811 2020-05-09 Tom de Vries <tdevries@suse.de>
10812
10813 PR gdb/25955
10814 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
10815 calculation.
10816
10817 2020-05-09 Tom Tromey <tom@tromey.com>
10818
10819 * top.c (server_command): Now bool.
10820 * top.h (server_command): Now bool.
10821
10822 2020-05-08 Tom Tromey <tromey@adacore.com>
10823
10824 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
10825 already being processed.
10826
10827 2020-05-08 Tom Tromey <tom@tromey.com>
10828
10829 * printcmd.c (struct display) <next>: Remove.
10830 <display>: New constructor.
10831 <exp_string>: Now a std::string.
10832 <enabled_p>: Now a bool.
10833 (display_number): Move definition earlier.
10834 (displays): Rename from display_chain. Now a std::vector.
10835 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
10836 (display_command): Update.
10837 (do_one_display, disable_display)
10838 (enable_disable_display_command, do_enable_disable_display):
10839 Update.
10840 (free_display): Remove.
10841 (clear_displays): Rewrite.
10842 (delete_display): Update.
10843 (map_display_numbers): Use function_view. Remove "data"
10844 parameter. Update.
10845 (do_delete_display): Remove.
10846 (undisplay_command): Update.
10847 (do_one_display, do_displays, disable_display)
10848 (info_display_command): Update.
10849 (do_enable_disable_display): Remove.
10850 (enable_disable_display_command)
10851 (clear_dangling_display_expressions): Update.
10852
10853 2020-05-08 Tom Tromey <tom@tromey.com>
10854
10855 * symtab.c (set_symbol_cache_size)
10856 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
10857 (maintenance_print_symbol_cache_statistics): Update.
10858 * symmisc.c (print_symbol_bcache_statistics)
10859 (print_objfile_statistics, maintenance_print_objfiles)
10860 (maintenance_info_symtabs, maintenance_check_symtabs)
10861 (maintenance_expand_symtabs, maintenance_info_line_tables):
10862 Update.
10863 * symfile-debug.c (set_debug_symfile): Update.
10864 * source.c (forget_cached_source_info): Update.
10865 * python/python.c (gdbpy_progspaces): Update.
10866 * psymtab.c (maintenance_info_psymtabs): Update.
10867 * probe.c (parse_probes): Update.
10868 * linespec.c (iterate_over_all_matching_symtabs)
10869 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
10870 * guile/scm-progspace.c (gdbscm_progspaces): Update.
10871 * exec.c (exec_target::close): Update.
10872 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
10873 * breakpoint.c (print_one_breakpoint_location)
10874 (create_longjmp_master_breakpoint)
10875 (create_std_terminate_master_breakpoint): Update.
10876 * progspace.c (program_spaces): Now a std::vector.
10877 (maybe_new_address_space): Update.
10878 (add_program_space): Remove.
10879 (program_space::program_space): Update.
10880 (remove_program_space): Update.
10881 (number_of_program_spaces): Remove.
10882 (print_program_space, update_address_spaces): Update.
10883 * progspace.h (program_spaces): Change type.
10884 (ALL_PSPACES): Remove.
10885 (number_of_program_spaces): Don't declare.
10886 (struct program_space) <next>: Remove.
10887
10888 2020-05-08 Tom Tromey <tom@tromey.com>
10889
10890 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
10891 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
10892 (enable_break): Update.
10893 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
10894 (frv_fdpic_find_canonical_descriptor): Update.
10895 (frv_fetch_objfile_link_map): Update.
10896 * progspace.c (program_space::free_all_objfiles): Update.
10897 (program_space::solibs): New method.
10898 * progspace.h (struct program_space) <solibs>: New method.
10899 * solist.h (master_so_list): Don't declare.
10900 (ALL_SO_LIBS): Remove.
10901 * solib.h (so_list_head): Remove.
10902 (update_solib_list): Update comment.
10903 * solib.c (master_so_list): Remove.
10904 (solib_used, update_solib_list, solib_add)
10905 (info_sharedlibrary_command, clear_solib)
10906 (reload_shared_libraries_1, remove_user_added_objfile): Update.
10907
10908 2020-05-08 Tom Tromey <tom@tromey.com>
10909
10910 * extension.c (extension_languages): Now a std::array.
10911 (ALL_EXTENSION_LANGUAGES): Remove.
10912 (get_ext_lang_defn, get_ext_lang_of_file)
10913 (eval_ext_lang_from_control_command): Update.
10914 (finish_ext_lang_initialization)
10915 (auto_load_ext_lang_scripts_for_objfile)
10916 (ext_lang_type_printers::ext_lang_type_printers)
10917 (apply_ext_lang_type_printers)
10918 (ext_lang_type_printers::~ext_lang_type_printers)
10919 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
10920 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
10921 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
10922 (get_matching_xmethod_workers, ext_lang_colorize)
10923 (ext_lang_before_prompt): Update.
10924 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
10925
10926 2020-05-08 Tom Tromey <tom@tromey.com>
10927
10928 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
10929 overload.
10930 <swap_string, m_string>: Remove.
10931 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
10932 Update.
10933 * stabsread.c (define_symbol, read_type): Update.
10934 * linespec.c (find_linespec_symbols): Update.
10935 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
10936 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
10937 * dbxread.c (read_dbx_symtab): Update.
10938 * cp-support.h (cp_canonicalize_string_full)
10939 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
10940 Return unique_xmalloc_ptr.
10941 * cp-support.c (inspect_type): Update.
10942 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
10943 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
10944 Likewise.
10945 * c-typeprint.c (print_name_maybe_canonical): Update.
10946 * break-catch-throw.c (check_status_exception_catchpoint):
10947 Update.
10948
10949 2020-05-08 Tom de Vries <tdevries@suse.de>
10950
10951 * infrun.c (follow_fork): Copy current_line and current_symtab to
10952 child thread.
10953
10954 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
10955
10956 * async-event.c (struct async_signal_handler, struct
10957 async_event_handler): Reformat, remove typedef.
10958
10959 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
10960
10961 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
10962 access thistype->main_type->dyn_prop_list directly.
10963
10964 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
10965
10966 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
10967 (remove_dyn_prop): Remove. Update all users to use
10968 type::remove_dyn_prop.
10969 * gdbtypes.c (remove_dyn_prop): Rename to...
10970 (type::remove_dyn_prop): ... this.
10971
10972 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
10973
10974 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
10975 (add_dyn_prop): Remove. Update all users to use
10976 type::add_dyn_prop.
10977 * gdbtypes.c (add_dyn_prop): Rename to...
10978 (type::add_dyn_prop): ... this.
10979
10980 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
10981
10982 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
10983 (get_dyn_prop): Remove. Update all users to use
10984 type::dyn_prop.
10985 * gdbtypes.c (get_dyn_prop): Rename to...
10986 (type::dyn_prop): ... this.
10987
10988 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
10989
10990 * gdbtypes.h (struct main_type) <flag_static>: Remove.
10991
10992 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
10993
10994 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
10995 instruction, skip it if it's there.
10996
10997 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
10998
10999 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
11000
11001 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
11002
11003 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
11004 * gdbtypes.c (recursive_dump_type): Remove use of
11005 TYPE_INCOMPLETE.
11006
11007 2020-05-03 Tom Tromey <tom@tromey.com>
11008
11009 * breakpoint.c (catch_command, tcatch_command): Remove.
11010 (_initialize_breakpoint): Use add_basic_prefix_cmd,
11011 add_show_prefix_cmd.
11012 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
11013 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
11014 Remove.
11015 (add_internal_problem_command): Use add_basic_prefix_cmd,
11016 add_show_prefix_cmd.
11017 * mips-tdep.c (set_mipsfpu_command): Remove.
11018 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
11019 * dwarf2/index-cache.c (set_index_cache_command): Remove.
11020 (_initialize_index_cache): Use add_basic_prefix_cmd.
11021 * memattr.c (dummy_cmd): Remove.
11022 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
11023 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
11024 (_initialize_tui_win): Use add_basic_prefix_cmd,
11025 add_show_prefix_cmd.
11026 * cli/cli-logging.c (set_logging_command): Remove.
11027 (_initialize_cli_logging): Use add_basic_prefix_cmd,
11028 add_show_prefix_cmd.
11029 (show_logging_command): Remove.
11030 * target.c (target_command): Remove.
11031 (add_target): Use add_basic_prefix_cmd.
11032
11033 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
11034
11035 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
11036
11037 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11038
11039 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
11040 info_command.
11041
11042 2020-04-30 Kamil Rytarowski <n54@gmx.com>
11043
11044 * nbsd-nat.c (nbsd_enable_proc_events)
11045 (nbsd_nat_target::post_startup_inferior): Add.
11046 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
11047 (nbsd_nat_target::update_thread_list): Rewrite.
11048 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
11049 "PTRACE_LWP_CREATE".
11050 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
11051
11052 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11053
11054 * stack.c (_initialize_stack): Remove duplicated creation
11055 of "frame" command and "f" alias.
11056
11057 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
11058
11059 PR gdb/18706
11060 * gdbtypes.c (check_typedef): Calculate size of array of
11061 stubbed type.
11062
11063 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
11064
11065 PR gdb/15559
11066 * i386-tdep.c (i386_push_dummy_call): Call
11067 i386_thiscall_push_dummy_call.
11068 (i386_thiscall_push_dummy_call): New function.
11069 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
11070 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
11071 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
11072
11073 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11074
11075 * gdbarch.sh (do_read): Add shellcheck disable directive for
11076 warning SC2162.
11077
11078 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11079
11080 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
11081 "referenced but not assigned" warning.
11082
11083 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11084
11085 * gdbarch.sh: Remove code that sets fallbackdefault.
11086
11087 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11088
11089 * gdbarch.sh: Use shell operators && and || instead of
11090 -a and -o.
11091
11092 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11093
11094 * gdbarch.sh: Use $(...) instead of `...`.
11095
11096 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11097
11098 * gdbarch.sh: Use double quotes around variables.
11099
11100 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11101
11102 * gdbarch.sh: Use %s with printf, instead of variables in the
11103 format string.
11104
11105 2020-04-29 Tom Tromey <tromey@adacore.com>
11106
11107 PR ada/25875:
11108 * dwarf2/read.c (update_enumeration_type_from_children): Compute
11109 type fields here.
11110 (read_enumeration_type): Call
11111 update_enumeration_type_from_children later. Update comments.
11112 (process_enumeration_scope): Don't create type fields.
11113
11114 2020-04-29 Kamil Rytarowski <n54@gmx.com>
11115
11116 * nbsd-tdep.c: Include "xml-syscall.h".
11117 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
11118
11119 2020-04-29 Kamil Rytarowski <n54@gmx.com>
11120
11121 * nbsd-nat.c: Include "sys/wait.h".
11122 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
11123 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
11124 (nbsd_nat_target::remove_exec_catchpoint)
11125 (nbsd_nat_target::set_syscall_catchpoint): Add.
11126 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
11127 (nbsd_nat_target::insert_exec_catchpoint)
11128 (nbsd_nat_target::remove_exec_catchpoint)
11129 (nbsd_nat_target::set_syscall_catchpoint): Add.
11130 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
11131 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
11132 `nbsd_get_syscall_number'.
11133
11134 2020-04-29 Tom Tromey <tom@tromey.com>
11135
11136 * stack.c (print_block_frame_labels): Remove.
11137
11138 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
11139
11140 PR gdb/17320
11141 * ada-valprint.c (val_print_packed_array_elements): Move array
11142 end bracket to new line.
11143 (ada_val_print_string): Remove extra spaces before first array
11144 element.
11145 * c-valprint.c (c_value_print_array): Likewise.
11146 * m2-valprint.c (m2_print_array_contents): Likewise.
11147 (m2_value_print_inner): Likewise.
11148 * p-valprint.c (pascal_value_print_inner): Likewise.
11149 * valprint.c (generic_val_print_array): Likewise.
11150 (value_print_array_elements): Move first array element and array
11151 end bracket to new line.
11152
11153 2020-04-29 Tom de Vries <tdevries@suse.de>
11154
11155 PR symtab/25889
11156 * linespec.c (find_method): Fix ix calculation.
11157
11158 2020-04-28 Kamil Rytarowski <n54@gmx.com>
11159
11160 * syscalls/update-netbsd.sh: New file.
11161 * syscalls/netbsd.xml: Regenerate.
11162 * data-directory/Makefile.in: Register `netbsd.xml' in
11163 `SYSCALLS_FILES'.
11164
11165 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
11166
11167 * syscalls/update-freebsd.sh: Add double quotes.
11168
11169 2020-04-28 Tom Tromey <tom@tromey.com>
11170
11171 * NEWS: Update.
11172 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
11173 (cmdpy_init): Allow class_tui.
11174
11175 2020-04-28 Mark Williams <mark@myosotissp.com>
11176
11177 PR gdb/24480
11178 * dwarf2read.c: Add missing assingments to list_in_scope when
11179 start_symtab was already called.
11180
11181 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
11182
11183 PR gdb/25881
11184 * dwarf2/read.c (offset_map_type): Use
11185 gdb:hash_enum<sect_offset> as hash function.
11186
11187 2020-04-28 Tom de Vries <tdevries@suse.de>
11188
11189 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
11190 with DW_AT_signature.
11191
11192 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
11193
11194 * configure.ac: Remove check for fs_base/gs_base in
11195 user_regs_struct.
11196 * configure: Re-generate.
11197 * config.in: Re-generate.
11198 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
11199 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
11200 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
11201
11202 2020-04-27 Luis Machado <luis.machado@linaro.org>
11203
11204 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
11205 problematic inline frame unwinding situation.
11206 * frame.c (frame_id_computed_p): New function.
11207 * frame.h (frame_id_computed_p): New prototype.
11208
11209 2020-04-26 Tom Tromey <tom@tromey.com>
11210
11211 * command.h (enum command_class) <class_pseudo>: Remove.
11212
11213 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11214
11215 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
11216 and whitespace.
11217
11218 2020-04-25 Kamil Rytarowski <n54@gmx.com>
11219
11220 * inf-ptrace.c (inf_ptrace_target::wait): Remove
11221 `PT_GET_PROCESS_STATE' block.
11222
11223 2020-04-24 Tom Tromey <tom@tromey.com>
11224
11225 * symtab.h (symbol_get_demangled_name): Don't declare.
11226 * symtab.c (symbol_get_demangled_name): Remove.
11227 (general_symbol_info::natural_name)
11228 (general_symbol_info::demangled_name): Update.
11229
11230 2020-04-24 Tom Tromey <tom@tromey.com>
11231
11232 PR rust/25025:
11233 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
11234
11235 2020-04-24 Tom Tromey <tom@tromey.com>
11236
11237 PR symtab/12707:
11238 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
11239 exists.
11240 (new_symbol): Likewise.
11241 * compile/compile-object-load.c (get_out_value_type): Use
11242 symbol_matches_search_name.
11243
11244 2020-04-24 Tom Tromey <tom@tromey.com>
11245
11246 * dwarf2/read.c (add_partial_symbol): Do not call
11247 compute_and_set_names.
11248
11249 2020-04-24 Tom Tromey <tom@tromey.com>
11250
11251 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
11252 overload.
11253
11254 2020-04-24 Tom Tromey <tom@tromey.com>
11255
11256 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
11257 (add_psymbol_to_list): New overload. Make old overload call new
11258 one.
11259 * psympriv.h (add_psymbol_to_list): New overload.
11260
11261 2020-04-24 Tom Tromey <tom@tromey.com>
11262
11263 * dwarf2/read.c (partial_die_info::read) <case
11264 DW_AT_linkage_name>: Use value_as_string.
11265 (dwarf2_string_attr): Use value_as_string.
11266 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
11267 method.
11268 * dwarf2/attribute.c (attribute::value_as_string): New method.
11269
11270 2020-04-24 Tom Tromey <tom@tromey.com>
11271
11272 * symtab.c (general_symbol_info::natural_name)
11273 (general_symbol_info::demangled_name): Check for language_rust.
11274
11275 2020-04-24 Tom Tromey <tom@tromey.com>
11276
11277 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
11278 (dwarf2_physname): ... from here.
11279 (partial_die_info::read): Add Rust "{" hack.
11280
11281 2020-04-24 Tom Tromey <tom@tromey.com>
11282
11283 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
11284 method.
11285 (symbol_set_demangled_name): Don't declare.
11286 * symtab.c (general_symbol_info::set_demangled_name): Rename from
11287 symbol_set_demangled_name.
11288 (general_symbol_info::set_language)
11289 (general_symbol_info::compute_and_set_names): Update.
11290 * minsyms.c (minimal_symbol_reader::install): Update.
11291 * dwarf2/read.c (new_symbol): Update.
11292
11293 2020-04-24 Tom Tromey <tromey@adacore.com>
11294
11295 PR python/23662:
11296 * python/py-type.c (convert_field): Handle
11297 FIELD_LOC_KIND_DWARF_BLOCK.
11298 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
11299 (typy_get_dynamic): Nw function.
11300 (type_object_getset): Add "dynamic".
11301 * NEWS: Add entry.
11302
11303 2020-04-24 Tom Tromey <tromey@adacore.com>
11304
11305 * ada-typeprint.c (print_choices, print_variant_part)
11306 (print_record_field_types_dynamic): New functions.
11307 (print_record_field_types): Use print_record_field_types_dynamic.
11308
11309 2020-04-24 Tom Tromey <tromey@adacore.com>
11310
11311 * dwarf2/read.c (handle_data_member_location): New overload.
11312 (dwarf2_add_field): Use it.
11313 (decode_locdesc): Add "computed" parameter. Update comment.
11314 * gdbtypes.c (is_dynamic_type_internal): Also look for
11315 FIELD_LOC_KIND_DWARF_BLOCK.
11316 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
11317 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
11318 virtual base classes.
11319 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
11320 FIELD_LOC_KIND_DWARF_BLOCK.
11321
11322 2020-04-24 Tom Tromey <tromey@adacore.com>
11323
11324 * dwarf2/read.c (read_structure_type): Handle dynamic length.
11325 * gdbtypes.c (is_dynamic_type_internal): Check
11326 TYPE_HAS_DYNAMIC_LENGTH.
11327 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
11328 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
11329 New macros.
11330 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
11331 constant.
11332
11333 2020-04-24 Tom Tromey <tromey@adacore.com>
11334
11335 * dwarf2/read.c (struct variant_field): Rewrite.
11336 (struct variant_part_builder): New.
11337 (struct nextfield): Remove "variant" field. Add "offset".
11338 (struct field_info): Add "current_variant_part" and
11339 "variant_parts".
11340 (alloc_discriminant_info): Remove.
11341 (alloc_rust_variant): New function.
11342 (quirk_rust_enum): Update.
11343 (dwarf2_add_field): Set "offset" member. Don't handle
11344 DW_TAG_variant_part.
11345 (offset_map_type): New typedef.
11346 (convert_variant_range, create_one_variant)
11347 (create_one_variant_part, create_variant_parts)
11348 (add_variant_property): New functions.
11349 (dwarf2_attach_fields_to_type): Call add_variant_property.
11350 (read_structure_type): Don't handle DW_TAG_variant_part.
11351 (handle_variant_part, handle_variant): New functions.
11352 (handle_struct_member_die): Use them.
11353 (process_structure_scope): Don't handle variant parts.
11354 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
11355 (struct discriminant_info): Remove.
11356 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
11357 (struct main_type) <flag_discriminated_union>: Remove.
11358 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
11359 (rust_enum_variant): Return int. Remove "contents". Rewrite.
11360 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
11361 Update.
11362 * valops.c (value_union_variant): Remove.
11363 * value.h (value_union_variant): Don't declare.
11364
11365 2020-04-24 Tom Tromey <tromey@adacore.com>
11366
11367 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
11368 (ada_value_primitive_packed_val): Update.
11369 * ada-valprint.c (ada_value_print_1): Update.
11370 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
11371 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
11372 just an address. Use evaluate_for_locexpr_baton.
11373 (dwarf2_evaluate_property): Update.
11374 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
11375 array_view.
11376 * findvar.c (default_read_var_value): Update.
11377 * gdbtypes.c (compute_variant_fields_inner)
11378 (resolve_dynamic_type_internal): Update.
11379 (resolve_dynamic_type): Change type of valaddr parameter.
11380 * gdbtypes.h (resolve_dynamic_type): Update.
11381 * valarith.c (value_subscripted_rvalue): Update.
11382 * value.c (value_from_contents_and_address): Update.
11383
11384 2020-04-24 Tom Tromey <tromey@adacore.com>
11385
11386 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
11387 "push_initial_value" parameter.
11388 (dwarf2_evaluate_property): Likewise.
11389 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
11390
11391 2020-04-24 Tom Tromey <tromey@adacore.com>
11392
11393 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
11394 (variant::matches, compute_variant_fields_recurse)
11395 (compute_variant_fields_inner, compute_variant_fields): New
11396 functions.
11397 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
11398 Use resolved_type after type is made.
11399 (operator==): Add new cases.
11400 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
11401 (struct discriminant_range, struct variant, struct variant_part):
11402 New.
11403 (union dynamic_prop_data) <variant_parts, original_type>: New
11404 members.
11405 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
11406 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
11407 constants.
11408 * value.c (unpack_bits_as_long): Now public.
11409 * value.h (unpack_bits_as_long): Declare.
11410
11411 2020-04-24 Tom Tromey <tromey@adacore.com>
11412
11413 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
11414 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
11415
11416 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
11417
11418 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
11419
11420 2020-04-24 Kamil Rytarowski <n54@gmx.com>
11421
11422 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
11423 (remove_fork_catchpoint, post_startup_inferior)
11424 (post_attach): Move...
11425 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
11426 (remove_fork_catchpoint, post_startup_inferior)
11427 (post_attach): ...here.
11428 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
11429 (remove_fork_catchpoint, post_startup_inferior)
11430 (post_attach): Move...
11431 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
11432 (remove_fork_catchpoint, post_startup_inferior)
11433 (post_attach): ...here.
11434
11435 2020-04-24 Tom Tromey <tromey@adacore.com>
11436
11437 * nat/windows-nat.h (struct windows_thread_info)
11438 <pc_adjusted>: New member.
11439 * windows-nat.c (windows_fetch_one_register): Check
11440 pc_adjusted.
11441 (windows_nat_target::get_windows_debug_event)
11442 (windows_nat_target::wait): Set pc_adjusted.
11443
11444 2020-04-24 Tom de Vries <tdevries@suse.de>
11445
11446 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
11447 Run gdb-add-index inside temp dir.
11448
11449 2020-04-23 Tom Tromey <tromey@adacore.com>
11450
11451 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
11452 in loop.
11453
11454 2020-04-23 Luis Machado <luis.machado@linaro.org>
11455
11456 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
11457 get_frame_register instead of gdbarch_unwind_pc.
11458
11459 2020-04-23 Tom de Vries <tdevries@suse.de>
11460
11461 * symtab.c (lookup_global_symbol): Prefer def over decl.
11462
11463 2020-04-23 Tom de Vries <tdevries@suse.de>
11464
11465 PR symtab/25807
11466 * block.c (best_symbol, better_symbol): Promote to external.
11467 * block.h (best_symbol, better_symbol): Declare.
11468 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
11469 decl.
11470
11471 2020-04-23 Tom Tromey <tromey@adacore.com>
11472
11473 PR ada/25837:
11474 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
11475 "const char *", not a "const std::string &".
11476 <name_and_matcher::operator==>: Update.
11477 * unittests/lookup_name_info-selftests.c: Change type of
11478 "result".
11479
11480 2020-04-23 Tom Tromey <tom@tromey.com>
11481
11482 * inferior.h (iterate_over_inferiors): Don't declare.
11483 * inferior.c (iterate_over_inferiors): Remove.
11484 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
11485 Remove.
11486 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
11487 use iterate_over_inferiors.
11488 (darwin_resume_inferior_it)
11489 (struct resume_inferior_threads_param)
11490 (darwin_resume_inferior_threads_it): Remove.
11491 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
11492
11493 2020-04-23 Tom de Vries <tdevries@suse.de>
11494
11495 * blockframe.c (find_pc_partial_function): Use
11496 find_pc_sect_compunit_symtab rather than
11497 objfile->sf->qf->find_pc_sect_compunit_symtab.
11498
11499 2020-04-22 Tom de Vries <tdevries@suse.de>
11500
11501 PR symtab/25764
11502 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
11503 in psymtabs.
11504
11505 2020-04-22 Tom de Vries <tdevries@suse.de>
11506
11507 PR symtab/25801
11508 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
11509 symtabs.
11510
11511 2020-04-22 Tom de Vries <tdevries@suse.de>
11512
11513 PR symtab/25700
11514 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
11515 CU if already created.
11516
11517 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11518
11519 * infrun.c (displaced_step_fixup): Switch to the event_thread
11520 before calling displaced_step_restore, not after.
11521
11522 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11523
11524 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
11525 its inferior is not recorded by us.
11526 (record_btrace_target_open): Replace call to
11527 all_non_exited_threads () with call to current_inferior
11528 ()->non_exited_threads ().
11529 (record_btrace_target::stop_recording): Likewise.
11530 (record_btrace_target::close): Likewise.
11531 (record_btrace_target::wait): Likewise.
11532 (record_btrace_target::record_stop_replaying): Likewise.
11533
11534 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11535
11536 * btrace.c (btrace_enable): Throw an error on double enables and
11537 when enabling recording fails.
11538 (btrace_disable): Throw an error if the thread is not recorded.
11539
11540 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11541
11542 * record-btrace.c (record_btrace_target::fetch_registers): Forward
11543 request if we do not have a thread_info.
11544
11545 2020-04-21 Tom de Vries <tdevries@suse.de>
11546
11547 PR gdb/25471
11548 * thread.c
11549 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
11550 exception in get_frame_id.
11551
11552 2020-04-20 Tom Tromey <tromey@adacore.com>
11553
11554 * python/python.c (struct gdbpy_event): Mark move constructor as
11555 noexcept.
11556 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
11557 constructor as noexcept.
11558 * completer.h (struct completion_result): Mark move constructor as
11559 noexcept.
11560 * completer.c (completion_result::completion_result): Use
11561 initialization style. Don't call reset_match_list.
11562
11563 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
11564
11565 * MAINTAINERS (Write After Approval): Add myself.
11566
11567 2020-04-18 Tom Tromey <tom@tromey.com>
11568
11569 * windows-tdep.c (init_w32_command_list)
11570 (w32_prefix_command_valid): Restore.
11571 (_initialize_windows_tdep): Call init_w32_command_list.
11572
11573 2020-04-18 Tom Tromey <tom@tromey.com>
11574
11575 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
11576 * value.c (value_fn_field): Update.
11577 * valops.c (find_function_in_inferior)
11578 (value_allocate_space_in_inferior): Update.
11579 * tui/tui-winsource.c (tui_update_source_windows_with_line):
11580 Update.
11581 * tui/tui-source.c (tui_source_window::set_contents): Update.
11582 * symtab.c (lookup_global_or_static_symbol)
11583 (find_function_start_sal_1, skip_prologue_sal)
11584 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
11585 * symmisc.c (dump_msymbols, dump_symtab_1)
11586 (maintenance_print_one_line_table): Update.
11587 * symfile.c (init_entry_point_info, section_is_mapped)
11588 (list_overlays_command, simple_read_overlay_table)
11589 (simple_overlay_update_1): Update.
11590 * stap-probe.c (handle_stap_probe): Update.
11591 * stabsread.c (dbx_init_float_type, define_symbol)
11592 (read_one_struct_field, read_enum_type, read_range_type): Update.
11593 * source.c (info_line_command): Update.
11594 * python/python.c (gdbpy_source_objfile_script)
11595 (gdbpy_execute_objfile_script): Update.
11596 * python/py-type.c (save_objfile_types): Update.
11597 * python/py-objfile.c (py_free_objfile): Update.
11598 * python/py-inferior.c (python_new_objfile): Update.
11599 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
11600 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
11601 (maintenance_check_psymtabs): Update.
11602 * printcmd.c (info_address_command): Update.
11603 * objfiles.h (struct objfile) <arch>: New method, from
11604 get_objfile_arch.
11605 (get_objfile_arch): Don't declare.
11606 * objfiles.c (get_objfile_arch): Remove.
11607 (filter_overlapping_sections): Update.
11608 * minsyms.c (msymbol_is_function): Update.
11609 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
11610 (output_nondebug_symbol): Update.
11611 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
11612 (mdebug_expand_psymtab): Update.
11613 * machoread.c (macho_add_oso_symfile): Update.
11614 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
11615 Update.
11616 * linux-fork.c (checkpoint_command): Update.
11617 * linespec.c (convert_linespec_to_sals): Update.
11618 * jit.c (finalize_symtab): Update.
11619 * infrun.c (insert_exception_resume_from_probe): Update.
11620 * ia64-tdep.c (ia64_find_unwind_table): Update.
11621 * hppa-tdep.c (internalize_unwinds): Update.
11622 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
11623 Update.
11624 * gcore.c (call_target_sbrk): Update.
11625 * elfread.c (record_minimal_symbol, elf_symtab_read)
11626 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
11627 (elf_gnu_ifunc_resolve_by_got): Update.
11628 * dwarf2/read.c (create_addrmap_from_index)
11629 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11630 (read_debug_names_from_section)
11631 (process_psymtab_comp_unit_reader, add_partial_symbol)
11632 (add_partial_subprogram, process_full_comp_unit)
11633 (read_file_scope, read_func_scope, read_lexical_block_scope)
11634 (read_call_site_scope, dwarf2_ranges_read)
11635 (dwarf2_record_block_ranges, dwarf2_add_field)
11636 (mark_common_block_symbol_computed, read_tag_pointer_type)
11637 (read_tag_string_type, dwarf2_init_float_type)
11638 (dwarf2_init_complex_target_type, read_base_type)
11639 (partial_die_info::read, partial_die_info::read)
11640 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
11641 (dwarf2_fetch_die_loc_sect_off): Update.
11642 * dwarf2/loc.c (dwarf2_find_location_expression)
11643 (class dwarf_evaluate_loc_desc, rw_pieced_value)
11644 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
11645 (dwarf2_loc_desc_get_symbol_read_needs)
11646 (locexpr_describe_location_piece, locexpr_describe_location_1)
11647 (loclist_describe_location): Update.
11648 * dwarf2/index-write.c (write_debug_names): Update.
11649 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
11650 * dtrace-probe.c (dtrace_process_dof): Update.
11651 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
11652 (process_one_symbol): Update.
11653 * ctfread.c (ctf_init_float_type, read_base_type): Update.
11654 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
11655 (coff_read_enum_type): Update.
11656 * cli/cli-cmds.c (edit_command, list_command): Update.
11657 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
11658 * breakpoint.c (create_overlay_event_breakpoint)
11659 (create_longjmp_master_breakpoint)
11660 (create_std_terminate_master_breakpoint)
11661 (create_exception_master_breakpoint, get_sal_arch): Update.
11662 * block.c (block_gdbarch): Update.
11663 * annotate.c (annotate_source_line): Update.
11664
11665 2020-04-17 Tom Tromey <tromey@adacore.com>
11666
11667 * auto-load.c (show_auto_load_cmd): Remove.
11668 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
11669 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
11670 (maintenance_print_arc_command): Remove.
11671 * tui/tui-win.c (tui_command): Remove.
11672 (tui_get_cmd_list): Use add_basic_prefix_cmd.
11673 * tui/tui-layout.c (tui_layout_command): Remove.
11674 (_initialize_tui_layout): Use add_basic_prefix_cmd.
11675 * python/python.c (user_set_python, user_show_python): Remove.
11676 (_initialize_python): Use add_basic_prefix_cmd,
11677 add_show_prefix_cmd.
11678 * guile/guile.c (set_guile_command, show_guile_command): Remove.
11679 (install_gdb_commands): Use add_basic_prefix_cmd,
11680 add_show_prefix_cmd.
11681 (info_guile_command): Remove.
11682 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
11683 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
11684 add_show_prefix_cmd.
11685 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
11686 Remove do_set and do_show parameters.
11687 * cli/cli-style.c (set_style, show_style): Remove.
11688 (_initialize_cli_style): Use add_basic_prefix_cmd,
11689 add_show_prefix_cmd.
11690 (cli_style_option::add_setshow_commands): Remove do_set and
11691 do_show parameters.
11692 (cli_style_option::add_setshow_commands): Use
11693 add_basic_prefix_cmd, add_show_prefix_cmd.
11694 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
11695 (set_style_name): Remove.
11696 * cli/cli-dump.c (dump_command, append_command): Remove.
11697 (srec_dump_command, ihex_dump_command, verilog_dump_command)
11698 (tekhex_dump_command, binary_dump_command)
11699 (binary_append_command): Remove.
11700 (_initialize_cli_dump): Use add_basic_prefix_cmd.
11701 * windows-tdep.c (w32_prefix_command_valid): Remove global.
11702 (init_w32_command_list): Remove; move into ...
11703 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
11704 * valprint.c (set_print, show_print, set_print_raw)
11705 (show_print_raw): Remove.
11706 (_initialize_valprint): Use add_basic_prefix_cmd,
11707 add_show_prefix_cmd.
11708 * typeprint.c (set_print_type, show_print_type): Remove.
11709 (_initialize_typeprint): Use add_basic_prefix_cmd,
11710 add_show_prefix_cmd.
11711 * record.c (set_record_command, show_record_command): Remove.
11712 (_initialize_record): Use add_basic_prefix_cmd,
11713 add_show_prefix_cmd.
11714 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
11715 add_show_prefix_cmd.
11716 (info_command, show_command, set_debug, show_debug): Remove.
11717 * top.h (set_history, show_history): Don't declare.
11718 * top.c (set_history, show_history): Remove.
11719 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
11720 (unset_tdesc_cmd): Remove.
11721 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
11722 add_show_prefix_cmd.
11723 * symtab.c (info_module_command): Remove.
11724 (_initialize_symtab): Use add_basic_prefix_cmd.
11725 * symfile.c (overlay_command): Remove.
11726 (_initialize_symfile): Use add_basic_prefix_cmd.
11727 * sparc64-tdep.c (info_adi_command): Remove.
11728 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
11729 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
11730 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
11731 add_show_prefix_cmd.
11732 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
11733 (_initialize_serial): Use add_basic_prefix_cmd,
11734 add_show_prefix_cmd.
11735 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
11736 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
11737 add_show_prefix_cmd.
11738 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
11739 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
11740 add_show_prefix_cmd.
11741 * riscv-tdep.c (show_riscv_command, set_riscv_command)
11742 (show_debug_riscv_command, set_debug_riscv_command): Remove.
11743 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
11744 add_show_prefix_cmd.
11745 * remote.c (remote_command, set_remote_cmd): Remove.
11746 (_initialize_remote): Use add_basic_prefix_cmd.
11747 * record-full.c (set_record_full_command)
11748 (show_record_full_command): Remove.
11749 (_initialize_record_full): Use add_basic_prefix_cmd,
11750 add_show_prefix_cmd.
11751 * record-btrace.c (cmd_set_record_btrace)
11752 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
11753 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
11754 (cmd_show_record_btrace_pt): Remove.
11755 (_initialize_record_btrace): Use add_basic_prefix_cmd,
11756 add_show_prefix_cmd.
11757 * ravenscar-thread.c (set_ravenscar_command)
11758 (show_ravenscar_command): Remove.
11759 (_initialize_ravenscar): Use add_basic_prefix_cmd,
11760 add_show_prefix_cmd.
11761 * mips-tdep.c (show_mips_command, set_mips_command)
11762 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
11763 add_show_prefix_cmd.
11764 * maint.c (maintenance_command, maintenance_info_command)
11765 (maintenance_check_command, maintenance_print_command)
11766 (maintenance_set_cmd, maintenance_show_cmd): Remove.
11767 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
11768 add_show_prefix_cmd.
11769 (show_per_command_cmd): Remove.
11770 * maint-test-settings.c (maintenance_set_test_settings_cmd):
11771 Remove.
11772 (maintenance_show_test_settings_cmd): Remove.
11773 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
11774 add_show_prefix_cmd.
11775 * maint-test-options.c (maintenance_test_options_command):
11776 Remove.
11777 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
11778 * macrocmd.c (macro_command): Remove
11779 (_initialize_macrocmd): Use add_basic_prefix_cmd.
11780 * language.c (set_check, show_check): Remove.
11781 (_initialize_language): Use add_basic_prefix_cmd,
11782 add_show_prefix_cmd.
11783 * infcmd.c (unset_command): Remove.
11784 (_initialize_infcmd): Use add_basic_prefix_cmd.
11785 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
11786 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
11787 add_show_prefix_cmd.
11788 * go32-nat.c (go32_info_dos_command): Remove.
11789 (_initialize_go32_nat): Use add_basic_prefix_cmd.
11790 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
11791 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
11792 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
11793 (_initialize_frame): Use add_basic_prefix_cmd,
11794 add_show_prefix_cmd.
11795 * dcache.c (set_dcache_command, show_dcache_command): Remove.
11796 (_initialize_dcache): Use add_basic_prefix_cmd,
11797 add_show_prefix_cmd.
11798 * cp-support.c (maint_cplus_command): Remove.
11799 (_initialize_cp_support): Use add_basic_prefix_cmd.
11800 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
11801 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
11802 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
11803 add_basic_prefix_cmd, add_show_prefix_cmd.
11804 * breakpoint.c (save_command): Remove.
11805 (_initialize_breakpoint): Use add_basic_prefix_cmd.
11806 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
11807 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
11808 add_show_prefix_cmd.
11809 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
11810 (set_ada_command, show_ada_command): Remove.
11811 (_initialize_ada_language): Use add_basic_prefix_cmd,
11812 add_show_prefix_cmd.
11813 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
11814
11815 2020-04-16 Kamil Rytarowski <n54@gmx.com>
11816
11817 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
11818 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
11819
11820 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
11821
11822 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
11823 warning messages.
11824
11825 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
11826
11827 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
11828 import table is not at beginning of .idata section.
11829
11830 2020-04-16 Pedro Alves <palves@redhat.com>
11831
11832 * inferior.c (delete_inferior): Use delete operator directly
11833 instead of delete_program_space.
11834 * progspace.c (add_program_space): New, factored out from
11835 program_space::program_space.
11836 (remove_program_space): New, factored out from
11837 delete_program_space.
11838 (program_space::program_space): Remove intro comment. Rewrite.
11839 (program_space::~program_space): Remove intro comment. Call
11840 remove_program_space.
11841 (delete_program_space): Delete.
11842 * progspace.h (program_space::program_space): Make explicit. Move
11843 intro comment here, adjusted.
11844 (program_space::~program_space): Move intro comment here,
11845 adjusted.
11846 (delete_program_space): Remove.
11847
11848 2020-04-16 Tom Tromey <tromey@adacore.com>
11849
11850 * windows-nat.c (windows_nat::handle_access_violation): New
11851 function.
11852 * nat/windows-nat.h (handle_access_violation): Declare.
11853 * nat/windows-nat.c (handle_exception): Move Cygwin code to
11854 windows-nat.c. Call handle_access_violation.
11855
11856 2020-04-16 Tom de Vries <tdevries@suse.de>
11857
11858 PR symtab/25791
11859 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
11860 CUs without psymtab.
11861
11862 2020-04-16 Kevin Buettner <kevinb@redhat.com>
11863
11864 * python/python.c (do_start_initialization): Don't call
11865 PyEval_InitThreads for Python 3.9 and beyond.
11866
11867 2020-04-15 Kamil Rytarowski <n54@gmx.com>
11868
11869 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
11870 thread functions.
11871 (obsd_nat_target::wait): Likewise.
11872
11873 2020-04-15 Tom Tromey <tromey@adacore.com>
11874
11875 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
11876 (DEBUG_EXCEPT): Use debug_printf.
11877
11878 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
11879
11880 * completer.c (class completion_tracker::completion_hash_entry)
11881 <hash_name>: New member function.
11882 (completion_tracker::discard_completions): New callback to hash a
11883 completion_hash_entry, pass this to htab_create_alloc.
11884
11885 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
11886
11887 * windows-nat.c (windows_make_so): Warn rather than stopping with
11888 an error if realpath() fails.
11889
11890 2020-04-14 Kamil Rytarowski <n54@gmx.com>
11891
11892 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
11893 (nbsd_nat_target::info_proc): Add do_status.
11894
11895 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
11896 Tom de Vries <tdevries@suse.de>
11897
11898 PR symtab/25718
11899 * psympriv.h (struct partial_symtab::read_symtab)
11900 (struct partial_symtab::expand_psymtab)
11901 (struct partial_symtab::read_dependencies): Update comments.
11902 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
11903 read_symtab for includer.
11904 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
11905 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
11906 (struct dwarf2_include_psymtab::m_readin): Remove.
11907 (struct dwarf2_include_psymtab::includer): New member function.
11908 (dwarf2_psymtab::expand_psymtab): Assert !readin.
11909
11910 2020-04-14 Tom de Vries <tdevries@suse.de>
11911
11912 PR symtab/25720
11913 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
11914 with NULL symbol_matcher and lookup_name.
11915 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
11916 and lookup_name.
11917 * dwarf2/read.c (dw2_expand_symtabs_matching)
11918 (dw2_debug_names_expand_symtabs_matching): Same.
11919 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
11920 Make lookup_name a pointer. Update comment.
11921 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
11922 lookup_name being a pointer.
11923 * symfile.c (expand_symtabs_matching): Same.
11924 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
11925 * linespec.c (iterate_over_all_matching_symtabs): Same.
11926
11927 2020-04-13 Tom Tromey <tom@tromey.com>
11928
11929 * run-on-main-thread.c: Update include.
11930 * unittests/main-thread-selftests.c: Update include.
11931 * tui/tui-win.c: Update include.
11932 * tui/tui-io.c: Update include.
11933 * tui/tui-interp.c: Update include.
11934 * tui/tui-hooks.c: Update include.
11935 * top.h: Update include.
11936 * top.c: Update include.
11937 * ser-base.c: Update include.
11938 * remote.c: Update include.
11939 * remote-notif.c: Update include.
11940 * remote-fileio.c: Update include.
11941 * record-full.c: Update include.
11942 * record-btrace.c: Update include.
11943 * python/python.c: Update include.
11944 * posix-hdep.c: Update include.
11945 * mingw-hdep.c: Update include.
11946 * mi/mi-main.c: Update include.
11947 * mi/mi-interp.c: Update include.
11948 * main.c: Update include.
11949 * linux-nat.c: Update include.
11950 * interps.c: Update include.
11951 * infrun.c: Update include.
11952 * inf-loop.c: Update include.
11953 * event-top.c: Update include.
11954 * event-loop.c: Move to ../gdbsupport/.
11955 * event-loop.h: Move to ../gdbsupport/.
11956 * async-event.h: Update include.
11957 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
11958
11959 2020-04-13 Tom Tromey <tom@tromey.com>
11960
11961 * tui/tui-win.c: Include async-event.h.
11962 * remote.c: Include async-event.h.
11963 * remote-notif.c: Include async-event.h.
11964 * record-full.c: Include async-event.h.
11965 * record-btrace.c: Include async-event.h.
11966 * infrun.c: Include async-event.h.
11967 * event-top.c: Include async-event.h.
11968 * event-loop.h: Move some declarations to async-event.h.
11969 * event-loop.c: Don't include ser-event.h or top.h. Move some
11970 code to async-event.c.
11971 * async-event.h: New file.
11972 * async-event.c: New file.
11973 * Makefile.in (COMMON_SFILES): Add async-event.c.
11974 (HFILES_NO_SRCDIR): Add async-event.h.
11975
11976 2020-04-13 Tom Tromey <tom@tromey.com>
11977
11978 * utils.c (flush_streams): New function.
11979 * event-loop.c (gdb_wait_for_event): Call flush_streams.
11980
11981 2020-04-13 Tom Tromey <tom@tromey.com>
11982
11983 * event-loop.c (handle_file_event): Use warning, not
11984 printf_unfiltered.
11985
11986 2020-04-13 Tom Tromey <tom@tromey.com>
11987
11988 * event-loop.c: Include <chrono>.
11989
11990 2020-04-13 Tom Tromey <tom@tromey.com>
11991
11992 * gdb_select.h: Move to ../gdbsupport/.
11993 * event-loop.c: Update include path.
11994 * top.c: Update include path.
11995 * ser-base.c: Update include path.
11996 * ui-file.c: Update include path.
11997 * ser-tcp.c: Update include path.
11998 * guile/scm-ports.c: Update include path.
11999 * posix-hdep.c: Update include path.
12000 * ser-unix.c: Update include path.
12001 * gdb_usleep.c: Update include path.
12002 * mingw-hdep.c: Update include path.
12003 * inflow.c: Update include path.
12004 * infrun.c: Update include path.
12005 * event-top.c: Update include path.
12006
12007 2020-04-13 Tom Tromey <tom@tromey.com>
12008
12009 * configure: Rebuild.
12010 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
12011
12012 2020-04-13 Tom Tromey <tom@tromey.com>
12013
12014 * event-loop.h (start_event_loop): Don't declare.
12015 * event-loop.c (start_event_loop): Move...
12016 * main.c (start_event_loop): ...here. Now static.
12017
12018 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
12019
12020 * MAINTAINERS: Update my email address.
12021
12022 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12023
12024 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
12025 IP_ALL.
12026
12027 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12028
12029 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
12030 (nbsd_nat_target::info_proc): Add do_cmdline.
12031
12032 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12033
12034 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
12035 (nbsd_nat_target::info_proc): Add do_cwd.
12036
12037 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12038
12039 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
12040
12041 2020-04-11 Kamil Rytarowski <n54@gmx.com>
12042
12043 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
12044 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
12045 (nbsd_nat_target::info_proc): New functions.
12046 * nbsd-nat.c (kinfo_get_vmmap): New function.
12047 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
12048 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
12049 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
12050 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
12051 functions.
12052 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
12053 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
12054 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
12055 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
12056 (KINFO_VME_FLAG_GROWS_DOWN): New.
12057
12058 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
12059
12060 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
12061 bit shift.
12062
12063 2020-04-10 Tom Tromey <tromey@adacore.com>
12064
12065 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
12066
12067 2020-04-10 Tom Tromey <tromey@adacore.com>
12068
12069 * symtab.c (get_symbol_address, get_msymbol_address): Skip
12070 separate debug files.
12071
12072 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
12073
12074 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
12075 Move to...
12076 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
12077 ... here.
12078 * windows-nat.c (windows_nat_target::get_windows_debug_event):
12079 Check for STATUS_WX86_BREAKPOINT.
12080 (windows_nat_target::wait): Same.
12081
12082 2020-04-10 Tom de Vries <tdevries@suse.de>
12083
12084 PR cli/25808
12085 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
12086
12087 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12088
12089 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
12090 (Write After Approval): Remove Tom de Vries.
12091
12092 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
12093
12094 revert partially:
12095 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12096
12097 * buildsym.c (record_line): Fix undefined behavior and preserve
12098 lines at eof.
12099
12100 2020-04-09 Kamil Rytarowski <n54@gmx.com>
12101
12102 * auxv.h (svr4_auxv_parse): New.
12103 * auxv.c (default_auxv_parse): Split into default_auxv_parse
12104 and generic_auxv_parse.
12105 (svr4_auxv_parse): Add.
12106 * obsd-tdep.c: Include "auxv.h".
12107 (obsd_auxv_parse): Remove.
12108 (obsd_init_abi): Remove comment.
12109 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
12110 from `obsd_auxv_parse' to `svr4_auxv_parse'.
12111 * nbsd-tdep.c: Include "auxv.h".
12112 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
12113
12114 2020-04-08 Tom Tromey <tromey@adacore.com>
12115
12116 * nat/windows-nat.h (last_wait_event): Don't declare.
12117 (wait_for_debug_event): Update comment.
12118 * nat/windows-nat.c (last_wait_event): Now static.
12119
12120 2020-04-08 Tom Tromey <tromey@adacore.com>
12121
12122 * windows-nat.c (wait_for_debug_event): Move to
12123 nat/windows-nat.c.
12124 * nat/windows-nat.h (wait_for_debug_event): Declare.
12125 * nat/windows-nat.c (wait_for_debug_event): Move from
12126 windows-nat.c. No longer static.
12127
12128 2020-04-08 Tom Tromey <tromey@adacore.com>
12129
12130 * windows-nat.c (get_windows_debug_event): Use
12131 fetch_pending_stop.
12132 * nat/windows-nat.h (fetch_pending_stop): Declare.
12133 * nat/windows-nat.c (fetch_pending_stop): New function.
12134
12135 2020-04-08 Tom Tromey <tromey@adacore.com>
12136
12137 * windows-nat.c (windows_continue): Use matching_pending_stop and
12138 continue_last_debug_event.
12139 * nat/windows-nat.h (matching_pending_stop)
12140 (continue_last_debug_event): Declare.
12141 * nat/windows-nat.c (DEBUG_EVENTS): New define.
12142 (matching_pending_stop, continue_last_debug_event): New
12143 functions.
12144
12145 2020-04-08 Tom Tromey <tromey@adacore.com>
12146
12147 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
12148 (handle_exception_result): Move to nat/windows-nat.h.
12149 (DEBUG_EXCEPTION_SIMPLE): Remove.
12150 (windows_nat::handle_ms_vc_exception): New function.
12151 (handle_exception): Move to nat/windows-nat.c.
12152 (get_windows_debug_event): Update.
12153 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
12154 nat/windows-nat.c.
12155 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
12156 (handle_exception_result): Move from windows-nat.c.
12157 (handle_exception): Declare.
12158 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
12159 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
12160 windows-nat.c.
12161
12162 2020-04-08 Tom Tromey <tromey@adacore.com>
12163
12164 * windows-nat.c (exception_count, event_count): Remove.
12165 (handle_exception, get_windows_debug_event)
12166 (do_initial_windows_stuff): Update.
12167
12168 2020-04-08 Tom Tromey <tromey@adacore.com>
12169
12170 * windows-nat.c (windows_nat::handle_load_dll)
12171 (windows_nat::handle_unload_dll): Rename. No longer static.
12172 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
12173 Declare.
12174
12175 2020-04-08 Tom Tromey <tromey@adacore.com>
12176
12177 * complaints.h (stop_whining): Declare at top-level.
12178 (complaint): Don't declare stop_whining.
12179
12180 2020-04-08 Tom Tromey <tromey@adacore.com>
12181
12182 * windows-nat.c (windows_nat::handle_output_debug_string):
12183 Rename. No longer static.
12184 * nat/windows-nat.h (handle_output_debug_string): Declare.
12185
12186 2020-04-08 Tom Tromey <tromey@adacore.com>
12187
12188 * windows-nat.c (current_process_handle, current_process_id)
12189 (main_thread_id, last_sig, current_event, last_wait_event)
12190 (current_windows_thread, desired_stop_thread_id, pending_stops)
12191 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
12192 (display_selectors, fake_create_process)
12193 (get_windows_debug_event): Update.
12194 * nat/windows-nat.h (current_process_handle, current_process_id)
12195 (main_thread_id, last_sig, current_event, last_wait_event)
12196 (current_windows_thread, desired_stop_thread_id, pending_stops)
12197 (struct pending_stop, siginfo_er): Move from windows-nat.c.
12198 * nat/windows-nat.c (current_process_handle, current_process_id)
12199 (main_thread_id, last_sig, current_event, last_wait_event)
12200 (current_windows_thread, desired_stop_thread_id, pending_stops)
12201 (siginfo_er): New globals. Move from windows-nat.c.
12202
12203 2020-04-08 Tom Tromey <tromey@adacore.com>
12204
12205 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
12206 (handle_load_dll): Update.
12207 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
12208
12209 2020-04-08 Tom Tromey <tromey@adacore.com>
12210
12211 * windows-nat.c (enum thread_disposition_type): Move to
12212 nat/windows-nat.h.
12213 (windows_nat::thread_rec): Rename from thread_rec. No longer
12214 static.
12215 (windows_add_thread, windows_nat_target::fetch_registers)
12216 (windows_nat_target::store_registers, handle_exception)
12217 (windows_nat_target::resume, get_windows_debug_event)
12218 (windows_nat_target::get_tib_address)
12219 (windows_nat_target::thread_name)
12220 (windows_nat_target::thread_alive): Update.
12221 * nat/windows-nat.h (enum thread_disposition_type): Move from
12222 windows-nat.c.
12223 (thread_rec): Declare.
12224
12225 2020-04-08 Tom Tromey <tromey@adacore.com>
12226
12227 * windows-nat.c: Add "using namespace".
12228 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
12229 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
12230
12231 2020-04-08 Tom Tromey <tromey@adacore.com>
12232
12233 * nat/windows-nat.h (struct windows_thread_info): Declare
12234 destructor.
12235 * nat/windows-nat.c (~windows_thread_info): New.
12236
12237 2020-04-08 Tom Tromey <tromey@adacore.com>
12238
12239 PR gdb/22992
12240 * windows-nat.c (current_event): Update comment.
12241 (last_wait_event, desired_stop_thread_id): New globals.
12242 (struct pending_stop): New.
12243 (pending_stops): New global.
12244 (windows_nat_target) <stopped_by_sw_breakpoint>
12245 <supports_stopped_by_sw_breakpoint>: New methods.
12246 (windows_fetch_one_register): Add assertions. Adjust PC.
12247 (windows_continue): Handle pending stops. Suspend other threads
12248 when stepping. Use last_wait_event
12249 (wait_for_debug_event): New function.
12250 (get_windows_debug_event): Use wait_for_debug_event. Handle
12251 pending stops. Queue spurious stops.
12252 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
12253 (windows_nat_target::kill): Use wait_for_debug_event.
12254 * nat/windows-nat.h (struct windows_thread_info)
12255 <stopped_at_software_breakpoint>: New field.
12256 * nat/windows-nat.c (windows_thread_info::resume): Clear
12257 stopped_at_software_breakpoint.
12258
12259 2020-04-08 Tom Tromey <tromey@adacore.com>
12260
12261 * windows-nat.c (enum thread_disposition_type): New.
12262 (thread_rec): Replace "get_context" parameter with "disposition";
12263 change type.
12264 (windows_add_thread, windows_nat_target::fetch_registers)
12265 (windows_nat_target::store_registers, handle_exception)
12266 (windows_nat_target::resume, get_windows_debug_event)
12267 (windows_nat_target::get_tib_address)
12268 (windows_nat_target::thread_name)
12269 (windows_nat_target::thread_alive): Update.
12270
12271 2020-04-08 Tom Tromey <tromey@adacore.com>
12272
12273 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
12274 (windows_continue): Use windows_continue::resume.
12275 * nat/windows-nat.h (struct windows_thread_info) <suspend,
12276 resume>: Declare new methods.
12277 * nat/windows-nat.c: New file.
12278 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
12279
12280 2020-04-08 Tom Tromey <tromey@adacore.com>
12281
12282 * windows-nat.c (windows_add_thread, windows_delete_thread)
12283 (windows_nat_target::fetch_registers)
12284 (windows_nat_target::store_registers, fake_create_process)
12285 (windows_nat_target::resume, windows_nat_target::resume)
12286 (get_windows_debug_event, windows_nat_target::wait)
12287 (windows_nat_target::pid_to_str)
12288 (windows_nat_target::get_tib_address)
12289 (windows_nat_target::get_ada_task_ptid)
12290 (windows_nat_target::thread_name)
12291 (windows_nat_target::thread_alive): Use lwp, not tid.
12292
12293 2020-04-08 Tom Tromey <tromey@adacore.com>
12294
12295 * windows-nat.c (handle_exception)
12296 (windows_nat_target::thread_name): Update.
12297 * nat/windows-nat.h (windows_thread_info): Remove destructor.
12298 <name>: Now unique_xmalloc_ptr.
12299
12300 2020-04-08 Tom Tromey <tromey@adacore.com>
12301
12302 * windows-nat.c (thread_rec)
12303 (windows_nat_target::fetch_registers): Update.
12304 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
12305 Update comment.
12306 <debug_registers_changed, reload_context>: Now bool.
12307
12308 2020-04-08 Tom Tromey <tromey@adacore.com>
12309
12310 * windows-nat.c (windows_add_thread): Use new.
12311 (windows_init_thread_list, windows_delete_thread): Use delete.
12312 (get_windows_debug_event): Update.
12313 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
12314 destructor, and initializers.
12315
12316 2020-04-08 Tom Tromey <tromey@adacore.com>
12317
12318 * windows-nat.c (struct windows_thread_info): Remove.
12319 * nat/windows-nat.h: New file.
12320
12321 2020-04-08 Tom Tromey <tromey@adacore.com>
12322
12323 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
12324 (thread_rec, windows_add_thread, windows_delete_thread)
12325 (windows_continue): Update.
12326
12327 2020-04-08 Tom Tromey <tromey@adacore.com>
12328
12329 * windows-nat.c (struct windows_thread_info): Remove typedef.
12330 (thread_head): Remove.
12331 (thread_list): New global.
12332 (thread_rec, windows_add_thread, windows_init_thread_list)
12333 (windows_delete_thread, windows_continue): Update.
12334
12335 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
12336
12337 * windows-tdep.h (windows_init_abi): Add comment.
12338 (cygwin_init_abi): New declaration.
12339 * windows-tdep.c: Split signal enumeration in two, one for
12340 Windows and one for Cygwin.
12341 (windows_gdb_signal_to_target): Only deal with signal of the
12342 Windows OS ABI.
12343 (cygwin_gdb_signal_to_target): New function.
12344 (windows_init_abi): Rename to windows_init_abi_common, don't set
12345 gdb_signal_to_target gdbarch method. Add new new function with
12346 this name.
12347 (cygwin_init_abi): New function.
12348 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
12349 comment. Don't call windows_init_abi.
12350 (amd64_windows_init_abi): Add comment, call windows_init_abi.
12351 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
12352 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
12353 i386_windows_init_abi_common, don't call windows_init_abi. Add
12354 a new function of this name.
12355 (i386_cygwin_init_abi): New function.
12356 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
12357 OS ABI Cygwin.
12358
12359 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
12360
12361 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
12362 parameter.c.
12363 (dwarf2_read_gdb_index): Update.
12364
12365 2020-04-07 Kamil Rytarowski <n54@gmx.com>
12366
12367 * nbsd-tdep.c: Include "objfiles.h".
12368 (nbsd_skip_solib_resolver): New.
12369 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
12370
12371 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12372
12373 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
12374 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
12375 with DW_LLE_base_addressx are being emitted in DWARFv5.
12376 Add the newly added kind DW_LOC_OFFSET_PAIR also.
12377 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
12378 unsigned integer.
12379
12380 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12381
12382 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
12383 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
12384 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
12385 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
12386 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
12387 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
12388 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
12389
12390
12391 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12392
12393 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
12394 (read_loclist_index): New function definition.
12395 (lookup_loclist_base): New function definition.
12396 (read_loclist_header): New function definition.
12397 (dwarf2_cu): Add loclist_base and loclist_header field.
12398 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
12399 (read_full_die_1): Read the value of DW_AT_loclists_base.
12400 (read_attribute_reprocess): Handle DW_FORM_loclistx.
12401 (read_attribute_value): Handle DW_FORM_loclistx.
12402 (skip_one_die): Handle DW_FORM_loclistx.
12403 (loclist_header): New structure declaration.
12404 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
12405
12406 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12407
12408 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
12409 constructor. Remove `addr` parameter from other constructor and
12410 add `per_cu` parameter.
12411 * dwarf2/read.c (create_partial_symtab): Update.
12412
12413 2020-04-07 Tom de Vries <tdevries@suse.de>
12414
12415 PR symtab/25796
12416 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
12417 (partial_die_info::fixup): Inherit has_const_value.
12418
12419 2020-04-07 Tom de Vries <tdevries@suse.de>
12420
12421 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
12422 symbols without address.
12423
12424 2020-04-06 Kamil Rytarowski <n54@gmx.com>
12425
12426 * nbsd-nat.h (struct thread_info): Add forward declaration.
12427 (nbsd_nat_target::thread_alive): Add.
12428 (nbsd_nat_target::thread_name): Likewise.
12429 (nbsd_nat_target::update_thread_list): Likewise.
12430 (update_thread_list::post_attach): Likewise.
12431 (post_attach::pid_to_str): Likewise.
12432 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
12433 (nbsd_thread_lister): Add.
12434 (nbsd_nat_target::thread_alive): Likewise.
12435 (nbsd_nat_target::thread_name): Likewise.
12436 (nbsd_add_threads): Likewise.
12437 (update_thread_list::post_attach): Likewise.
12438 (nbsd_nat_target::update_thread_list): Likewise.
12439 (post_attach::pid_to_str): Likewise.
12440
12441 2020-04-06 Tom Tromey <tromey@adacore.com>
12442
12443 * ada-valprint.c (print_variant_part): Extract the variant field.
12444 (print_field_values): Use the field as the outer value when
12445 recursing.
12446
12447 2020-04-06 Tom Tromey <tromey@adacore.com>
12448
12449 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
12450 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
12451 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
12452 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
12453 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
12454
12455 2020-04-06 Tom Tromey <tromey@adacore.com>
12456
12457 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
12458 TYPE_CODE_ERROR.
12459
12460 2020-04-06 Kamil Rytarowski <n54@gmx.com>
12461
12462 * nbsd-tdep.c: Include "gdbarch.h".
12463 Define enum with NetBSD signal numbers.
12464 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
12465 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
12466 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
12467 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
12468 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
12469 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
12470 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
12471 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
12472 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
12473 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
12474 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
12475 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
12476
12477 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
12478
12479 PR gdb/25325
12480 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
12481
12482 2020-04-03 Tom Tromey <tromey@adacore.com>
12483
12484 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
12485 Read constant block.
12486
12487 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
12488
12489 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
12490 (gdb_bfd_get_full_section_contents): New declaration.
12491 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
12492 * windows-tdep.c (is_linked_with_cygwin_dll): Use
12493 gdb_bfd_get_full_section_contents.
12494
12495 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
12496
12497 * exec.c (build_section_table): Replace internal_error with
12498 gdb_assert.
12499 (section_table_xfer_memory_partial): Likewise.
12500 * mdebugread.c (parse_partial_symbols): Likewise.
12501 * psymtab.c (lookup_partial_symbol): Likewise.
12502 * utils.c (wrap_here): Likewise.
12503
12504 2020-04-02 Tom Tromey <tromey@adacore.com>
12505
12506 * f-lang.c (build_fortran_types): Use arch_type to initialize
12507 builtin_complex_s32 in the TYPE_CODE_ERROR case.
12508
12509 2020-04-02 Tom Tromey <tromey@adacore.com>
12510
12511 * dwarf2/read.c (partial_die_info::read): Do not create a vector
12512 of attributes.
12513
12514 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
12515 Bernd Edlinger <bernd.edlinger@hotmail.de>
12516 Tom Tromey <tromey@adacore.com>
12517
12518 * buildsym.c (buildsym_compunit::record_line): Remove
12519 deduplication code.
12520
12521 2020-04-02 Tom de Vries <tdevries@suse.de>
12522
12523 PR ada/24671
12524 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
12525
12526 2020-04-02 Tom de Vries <tdevries@suse.de>
12527
12528 * dwarf2/read.c (dwarf2_gdb_index_functions,
12529 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
12530 NULL.
12531 * psymtab.c (psym_lookup_global_symbol_language): New function.
12532 (psym_functions): Init psym_lookup_global_symbol_language with
12533 psym_lookup_global_symbol_language.
12534 * symfile-debug.c (debug_sym_quick_functions): Init
12535 lookup_global_symbol_language with NULL.
12536 * symfile.c (set_initial_language): Remove fixme comment.
12537 * symfile.h (struct quick_symbol_functions): Add
12538 lookup_global_symbol_language.
12539 * symtab.c (find_quick_global_symbol_language): New function.
12540 (find_main_name): Use find_quick_global_symbol_language.
12541
12542 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
12543
12544 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
12545
12546 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12547
12548 * buildsym.c (record_line): Fix undefined behavior and preserve
12549 lines at eof.
12550
12551 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12552
12553 * buildsym.c (record_line): Fix the resizing condition.
12554
12555 2020-04-01 Tom Tromey <tom@tromey.com>
12556
12557 * value.h (value_literal_complex): Add comment.
12558 * valops.c (value_literal_complex): Refer to value.h.
12559
12560 2020-04-01 Tom Tromey <tom@tromey.com>
12561
12562 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
12563 (scalar_type): New rule, from typebase.
12564 (typebase): Use scalar_type. Recognize complex types.
12565 (field_name): Handle FLOAT_KEYWORD.
12566 (ident_tokens): Add _Complex and __complex__.
12567
12568 2020-04-01 Tom Tromey <tom@tromey.com>
12569
12570 PR exp/25299:
12571 * valarith.c (promotion_type, complex_binop): New functions.
12572 (scalar_binop): Handle complex numbers. Use promotion_type.
12573 (value_pos, value_neg, value_complement): Handle complex numbers.
12574
12575 2020-04-01 Tom Tromey <tom@tromey.com>
12576
12577 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
12578 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
12579 (parse_number): Handle complex numbers.
12580
12581 2020-04-01 Tom Tromey <tom@tromey.com>
12582
12583 * c-valprint.c (c_decorations): Change complex suffix to "i".
12584
12585 2020-04-01 Tom Tromey <tom@tromey.com>
12586
12587 * valprint.c (generic_value_print_complex): Use accessors.
12588 * value.h (value_real_part, value_imaginary_part): Declare.
12589 * valops.c (value_real_part, value_imaginary_part): New
12590 functions.
12591 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
12592
12593 2020-04-01 Tom Tromey <tom@tromey.com>
12594
12595 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
12596 (read_range_type): Update.
12597 * mdebugread.c (basic_type): Update.
12598 * go-lang.c (build_go_types): Use init_complex_type.
12599 * gdbtypes.h (struct main_type) <complex_type>: New member.
12600 (init_complex_type): Update.
12601 (arch_complex_type): Don't declare.
12602 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
12603 Make name if none given. Use alloc_type_copy. Look for cached
12604 complex type.
12605 (arch_complex_type): Remove.
12606 (gdbtypes_post_init): Use init_complex_type.
12607 * f-lang.c (build_fortran_types): Use init_complex_type.
12608 * dwarf2/read.c (read_base_type): Update.
12609 * d-lang.c (build_d_types): Use init_complex_type.
12610 * ctfread.c (read_base_type): Update.
12611
12612 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12613
12614 * infrun.c (stop_all_threads): Update assertion, plus when
12615 stopping threads, take into account that we might be trying
12616 to stop an all-stop target.
12617 (stop_waiting): Call 'stop_all_threads' if there exists a
12618 non-stop target.
12619
12620 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12621
12622 * target.h (exists_non_stop_target): New function declaration.
12623 * target.c (exists_non_stop_target): New function.
12624
12625 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
12626
12627 PR gdb/24789
12628 * eval.c (is_integral_or_integral_reference): New function.
12629 (evaluate_subexp_standard): Allow integer references in
12630 pointer arithmetic.
12631
12632 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12633
12634 * remote.c (remote_target::remote_parse_stop_reply): Remove the
12635 check for no ptid in the stop reply when the target is non-stop.
12636
12637 2020-04-01 Tom Tromey <tromey@adacore.com>
12638
12639 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
12640 "name" parameter to rvalue reference. Initialize m_name_holder.
12641 <lookup_name_info>: New overloads.
12642 <name>: Return gdb::string_view.
12643 <c_str>: New method.
12644 <make_ignore_params>: Update.
12645 <search_name_hash>: Update.
12646 <language_lookup_name>: Return const char *.
12647 <m_name>: Change type.
12648 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
12649 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
12650 (lookup_name_info::match_any): Update.
12651 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
12652 Update.
12653 * minsyms.c (linkage_name_str): Update.
12654 * language.c (default_symbol_name_matcher): Update.
12655 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
12656 Update.
12657 * ada-lang.c (ada_fold_name): Change parameter to string_view.
12658 (ada_lookup_name_info::ada_lookup_name_info): Update.
12659 (literal_symbol_name_matcher): Update.
12660
12661 2020-04-01 Tom Tromey <tromey@adacore.com>
12662
12663 * psymtab.c (psymtab_search_name): Remove function.
12664 (psym_lookup_symbol): Create search name and lookup name here.
12665 (lookup_partial_symbol): Remove "name" parameter; add
12666 lookup_name.
12667 (psym_expand_symtabs_for_function): Update.
12668
12669 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
12670
12671 PR tui/25597:
12672 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
12673
12674 2020-03-31 Tom Tromey <tromey@adacore.com>
12675
12676 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
12677 memcpy.
12678
12679 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
12680
12681 * features/riscv/32bit-csr.xml: Regenerated.
12682 * features/riscv/64bit-csr.xml: Regenerated.
12683
12684 2020-03-30 Tom Tromey <tromey@adacore.com>
12685
12686 * ada-valprint.c (print_variant_part): Update.
12687 * ada-lang.h (ada_which_variant_applies): Update.
12688 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
12689 outer_valaddr parameters; replace with "outer" value parameter.
12690 (to_fixed_variant_branch_type): Update.
12691
12692 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12693
12694 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
12695 <list>. Remove inclusion of observable.h.
12696 (PPC_DEBUG_CURRENT_VERSION): Move up define.
12697 (struct arch_lwp_info): New struct.
12698 (class ppc_linux_dreg_interface): New class.
12699 (struct ppc_linux_process_info): New struct.
12700 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
12701 <low_new_clone, low_forget_process, low_prepare_to_resume>
12702 <copy_thread_dreg_state, mark_thread_stale>
12703 <mark_debug_registers_changed, register_hw_breakpoint>
12704 <clear_hw_breakpoint, register_wp, clear_wp>
12705 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
12706 <num_memory_accesses, get_trigger_type>
12707 <create_watchpoint_request, hwdebug_point_cmp>
12708 <init_arch_lwp_info, get_arch_lwp_info>
12709 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
12710 methods.
12711 <struct ptid_hash>: New inner struct.
12712 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
12713 members.
12714 (saved_dabr_value, hwdebug_info, max_slots_number)
12715 (struct hw_break_tuple, struct thread_points, ppc_threads)
12716 (have_ptrace_hwdebug_interface)
12717 (hwdebug_find_thread_points_by_tid)
12718 (hwdebug_insert_point, hwdebug_remove_point): Remove.
12719 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
12720 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
12721 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
12722 use m_dreg_interface.
12723 (hwdebug_point_cmp): Change to...
12724 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
12725 reference arguments instead of pointers.
12726 (ppc_linux_nat_target::ranged_break_num_registers): Use
12727 m_dreg_interface.
12728 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
12729 m_dreg_interface. Call register_hw_breakpoint.
12730 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
12731 m_dreg_interface. Call clear_hw_breakpoint.
12732 (get_trigger_type): Change to...
12733 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
12734 comment.
12735 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
12736 use m_dreg_interface. Call register_hw_breakpoint.
12737 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
12738 use m_dreg_interface. Call clear_hw_breakpoint.
12739 (can_use_watchpoint_cond_accel): Change to...
12740 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
12741 method. Update comment, use m_dreg_interface and
12742 m_process_info.
12743 (calculate_dvc): Change to...
12744 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
12745 m_dreg_interface.
12746 (num_memory_accesses): Change to...
12747 (ppc_linux_nat_target::num_memory_accesses): ...this method.
12748 (check_condition): Change to...
12749 (ppc_linux_nat_target::check_condition): ...this method.
12750 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
12751 comment, use m_dreg_interface.
12752 (create_watchpoint_request): Change to...
12753 (ppc_linux_nat_target::create_watchpoint_request): ...this
12754 method. Use m_dreg_interface.
12755 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
12756 m_dreg_interface. Call register_hw_breakpoint or register_wp.
12757 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
12758 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
12759 (ppc_linux_nat_target::low_forget_process)
12760 (ppc_linux_nat_target::low_new_fork)
12761 (ppc_linux_nat_target::low_new_clone)
12762 (ppc_linux_nat_target::low_delete_thread)
12763 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
12764 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
12765 only call mark_thread_stale.
12766 (ppc_linux_thread_exit): Remove.
12767 (ppc_linux_nat_target::stopped_data_address): Change to...
12768 (ppc_linux_nat_target::low_stopped_data_address): This. Add
12769 comment, use m_dreg_interface and m_thread_hw_breakpoints.
12770 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
12771 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
12772 comment. Call low_stopped_data_address.
12773 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
12774 m_dreg_interface.
12775 (ppc_linux_nat_target::masked_watch_num_registers): Use
12776 m_dreg_interface.
12777 (ppc_linux_nat_target::copy_thread_dreg_state)
12778 (ppc_linux_nat_target::mark_thread_stale)
12779 (ppc_linux_nat_target::mark_debug_registers_changed)
12780 (ppc_linux_nat_target::register_hw_breakpoint)
12781 (ppc_linux_nat_target::clear_hw_breakpoint)
12782 (ppc_linux_nat_target::register_wp)
12783 (ppc_linux_nat_target::clear_wp)
12784 (ppc_linux_nat_target::init_arch_lwp_info)
12785 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
12786 (_initialize_ppc_linux_nat): Remove observer callback.
12787
12788 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12789
12790 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
12791 (ppc_linux_nat_target::auxv_parse)
12792 (ppc_linux_nat_target::read_description)
12793 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
12794 Move up.
12795
12796 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12797
12798 * linux-nat.h (low_new_clone): New method.
12799 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
12800
12801 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12802
12803 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
12804 (dbx_expand_psymtab): ... this.
12805 (start_psymtab): Update.
12806 * mdebugread.c (psymtab_to_symtab_1): Rename to...
12807 (mdebug_expand_psymtab): ... this.
12808 (parse_partial_symbols): Update.
12809 (new_psymtab): Update.
12810 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
12811 (xcoff_expand_psymtab): ... this.
12812 (xcoff_start_psymtab): Update.
12813
12814 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12815
12816 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
12817 <expand_dependencies>: ... this.
12818 * psymtab.c (partial_symtab::read_dependencies): Rename to...
12819 (partial_symtab::expand_dependencies): ... this.
12820 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
12821 Update.
12822 (dwarf2_psymtab::expand_psymtab): Update.
12823 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
12824 * mdebugread.c (psymtab_to_symtab_1): Update.
12825 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
12826
12827 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12828
12829 * psympriv.h (discard_psymtab): Remove.
12830 * dbxread.c (dbx_end_psymtab): Update.
12831 * xcoffread.c (xcoff_end_psymtab): Update.
12832
12833 2020-03-28 Tom Tromey <tom@tromey.com>
12834
12835 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
12836 comment.
12837
12838 2020-03-28 Tom Tromey <tom@tromey.com>
12839
12840 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
12841
12842 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
12843
12844 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
12845
12846 2020-03-26 John Baldwin <jhb@FreeBSD.org>
12847
12848 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
12849
12850 2020-03-26 Tom Tromey <tom@tromey.com>
12851
12852 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
12853 (mark_common_block_symbol_computed, read_tag_string_type)
12854 (attr_to_dynamic_prop, read_subrange_type): Update.
12855 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
12856 to be methods on struct attribute.
12857 (skip_one_die, process_imported_unit_die, read_namespace_alias)
12858 (read_call_site_scope, partial_die_info::read)
12859 (partial_die_info::read, lookup_die_type, follow_die_ref):
12860 Update.
12861 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
12862 from dwarf2_get_ref_die_offset.
12863 (attribute::constant_value): New method, from
12864 dwarf2_get_attr_constant_value.
12865 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
12866 Declare method.
12867 <constant_value>: New method.
12868
12869 2020-03-26 Tom Tromey <tom@tromey.com>
12870
12871 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
12872 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
12873 (dwarf_type_encoding_name): Move to stringify.c.
12874 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
12875 * dwarf2/stringify.c: New file.
12876 * dwarf2/stringify.h: New file.
12877
12878 2020-03-26 Tom Tromey <tom@tromey.com>
12879
12880 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
12881 Rewrite.
12882
12883 2020-03-26 Tom Tromey <tom@tromey.com>
12884
12885 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
12886 methods.
12887 * dwarf2/read.c (lookup_addr_base): Move to die.h.
12888 (lookup_ranges_base): Likewise.
12889 (read_cutu_die_from_dwo, read_full_die_1): Update.
12890
12891 2020-03-26 Tom Tromey <tom@tromey.com>
12892
12893 * dwarf2/read.c (read_import_statement, read_file_scope)
12894 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
12895 (read_lexical_block_scope, read_call_site_scope)
12896 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
12897 (handle_struct_member_die, process_structure_scope)
12898 (update_enumeration_type_from_children)
12899 (process_enumeration_scope, read_array_type, read_common_block)
12900 (read_namespace, read_module, read_subroutine_type): Update.
12901 (sibling_die): Remove.
12902
12903 2020-03-26 Tom Tromey <tom@tromey.com>
12904
12905 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
12906 (build_type_psymtabs_reader, read_structure_type)
12907 (read_enumeration_type, read_full_die_1): Update.
12908 (dwarf2_attr_no_follow): Move to die.h.
12909 * dwarf2/die.h (struct die_info) <attr>: New method.
12910
12911 2020-03-26 Tom Tromey <tom@tromey.com>
12912
12913 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
12914 <base_address>: Now an optional.
12915 (dwarf2_find_base_address, dwarf2_rnglists_process)
12916 (dwarf2_ranges_process, fill_in_loclist_baton)
12917 (dwarf2_symbol_mark_computed): Update.
12918
12919 2020-03-26 Tom Tromey <tom@tromey.com>
12920
12921 * dwarf2/read.c (struct die_info): Move to die.h.
12922 * dwarf2/die.h: New file.
12923
12924 2020-03-26 Tom Tromey <tom@tromey.com>
12925
12926 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
12927 * dwarf2/read.c
12928 (dwarf2_statement_list_fits_in_line_number_section_complaint):
12929 Move to line-header.c.
12930 (read_checked_initial_length_and_offset, read_formatted_entries):
12931 Likewise.
12932 (dwarf_decode_line_header): Split into two.
12933 * dwarf2/line-header.c
12934 (dwarf2_statement_list_fits_in_line_number_section_complaint):
12935 Move from read.c.
12936 (read_checked_initial_length_and_offset, read_formatted_entries):
12937 Likewise.
12938 (dwarf_decode_line_header): New function, split from read.c.
12939
12940 2020-03-26 Tom Tromey <tom@tromey.com>
12941
12942 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
12943 Declare method.
12944 * dwarf2/read.c (read_attribute_value): Update.
12945 (dwarf2_per_objfile::read_line_string): Rename from
12946 read_indirect_line_string.
12947 (read_formatted_entries): Update.
12948
12949 2020-03-26 Tom Tromey <tom@tromey.com>
12950
12951 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
12952 variable.
12953
12954 2020-03-26 Tom Tromey <tom@tromey.com>
12955
12956 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
12957 const.
12958 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
12959 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
12960 parameter const.
12961
12962 2020-03-26 Tom Tromey <tom@tromey.com>
12963
12964 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
12965 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
12966 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
12967 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
12968
12969 2020-03-26 Tom Tromey <tom@tromey.com>
12970
12971 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
12972 file_names_size, file_full_name, file_file_name>: Use const.
12973 <file_name_at, file_names>: Add const overload.
12974 * dwarf2/line-header.c (line_header::file_file_name)
12975 (line_header::file_full_name): Update.
12976
12977 2020-03-26 Tom Tromey <tom@tromey.com>
12978
12979 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
12980 (macro_start_file, consume_improper_spaces)
12981 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
12982 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
12983 (dwarf_decode_macros): Move to macro.c.
12984 * dwarf2/macro.c: New file.
12985 * dwarf2/macro.h: New file.
12986 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
12987
12988 2020-03-26 Tom Tromey <tom@tromey.com>
12989
12990 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
12991 method.
12992 * dwarf2/section.c: New method. From
12993 read_indirect_string_at_offset_from.
12994 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
12995 (read_indirect_string_at_offset_from): Move to section.c.
12996 (read_indirect_string_at_offset): Rewrite.
12997 (read_indirect_line_string_at_offset): Remove.
12998 (read_indirect_string, read_indirect_line_string)
12999 (dwarf_decode_macro_bytes): Update.
13000
13001 2020-03-26 Tom Tromey <tom@tromey.com>
13002
13003 * dwarf2/section.h (struct dwarf2_section_info)
13004 <overload_complaint>: Declare.
13005 (dwarf2_section_buffer_overflow_complaint): Don't declare.
13006 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
13007 Rename from dwarf2_section_buffer_overflow_complaint.
13008 * dwarf2/read.c (skip_one_die, partial_die_info::read)
13009 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
13010
13011 2020-03-26 Tom Tromey <tom@tromey.com>
13012
13013 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
13014 Declare.
13015 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
13016 Move from read.c.
13017 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
13018 to section.c.
13019
13020 2020-03-26 Tom Tromey <tom@tromey.com>
13021
13022 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
13023
13024 2020-03-26 Tom Tromey <tom@tromey.com>
13025
13026 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
13027 "builder".
13028 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
13029 parameter.
13030 (dwarf_decode_macros): Update.
13031
13032 2020-03-26 Tom Tromey <tom@tromey.com>
13033
13034 * dwarf2/read.c (read_attribute_value): Update.
13035 (read_indirect_string_from_dwz): Move to dwz.c; change into
13036 method.
13037 (dwarf_decode_macro_bytes): Update.
13038 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
13039 * dwarf2/dwz.c: New file.
13040 * Makefile.in (COMMON_SFILES): Add dwz.c.
13041
13042 2020-03-26 Tom Tromey <tom@tromey.com>
13043
13044 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
13045 * dwarf2/read.c: Add include.
13046 * dwarf2/index-write.c: Add include.
13047 * dwarf2/index-cache.c: Add include.
13048 * dwarf2/dwz.h: New file.
13049
13050 2020-03-25 Tom Tromey <tom@tromey.com>
13051
13052 * compile/compile-object-load.c (get_out_value_type): Mention
13053 correct symbol name in error message.
13054
13055 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
13056
13057 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
13058
13059 2020-03-25 Tom de Vries <tdevries@suse.de>
13060
13061 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
13062 * symmisc.c (dump_symtab_1): Print user and includes fields.
13063 (maintenance_info_symtabs): Same.
13064
13065 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
13066
13067 PR gdb/25534
13068 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
13069 (riscv_regcache_cooked_write): New function.
13070 (riscv_push_dummy_call): Use new function.
13071 (riscv_return_value): Likewise.
13072
13073 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
13074
13075 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
13076 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
13077 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
13078 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
13079 * infrun.c (follow_fork): Likewise.
13080 (follow_fork_inferior): Likewise.
13081 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
13082 * linux-nat.h (class linux_nat_target): Likewise.
13083 * remote.c (class remote_target) <follow_fork>: Likewise.
13084 (remote_target::follow_fork): Likewise.
13085 * target-delegates.c: Re-generate.
13086 * target.c (default_follow_fork): Likewise.
13087 (target_follow_fork): Likewise.
13088 * target.h (struct target_ops) <follow_fork>: Likewise.
13089 (target_follow_fork): Likewise.
13090
13091 2020-03-24 Tom de Vries <tdevries@suse.de>
13092
13093 * psymtab.c (maintenance_info_psymtabs): Print user field.
13094
13095 2020-03-20 Tom Tromey <tromey@adacore.com>
13096
13097 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
13098 const.
13099 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
13100 const.
13101
13102 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
13103
13104 * ptrace.m4: Don't check for ptrace declaration.
13105 * config.in: Re-generate.
13106 * configure: Re-generate.
13107 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
13108 not defined.
13109
13110 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13111
13112 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
13113 `PTRACE_TYPE_RET'.
13114 * i386-bsd-nat.c (gdb_ptrace): Likewise.
13115 * sparc-nat.c (gdb_ptrace): Likewise.
13116 * x86-bsd-nat.c (gdb_ptrace): Likewise.
13117
13118 2020-03-20 Tom Tromey <tromey@adacore.com>
13119
13120 * c-exp.y (lex_one_token): Fix assert.
13121
13122 2020-03-20 Tom Tromey <tromey@adacore.com>
13123
13124 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
13125 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
13126 strncpy call.
13127
13128 2020-03-20 Tom Tromey <tromey@adacore.com>
13129
13130 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
13131
13132 2020-03-20 Tom Tromey <tromey@adacore.com>
13133
13134 * ada-valprint.c (print_variant_part): Remove parameters; switch
13135 to value-based API.
13136 (print_field_values): Likewise.
13137 (ada_val_print_struct_union): Likewise.
13138 (ada_value_print_1): Update.
13139
13140 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13141
13142 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
13143 nbsd_nat_target instead of inf_ptrace_target.
13144 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13145 nbsd_nat_target.
13146
13147 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13148
13149 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
13150 it to the ptrace call.
13151 * (store_registers): Likewise.
13152
13153 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13154
13155 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
13156 it to the ptrace call.
13157 * (store_registers): Likewise.
13158
13159 2020-03-19 Luis Machado <luis.machado@linaro.org>
13160
13161 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
13162 valid, fetch vg value from ptrace.
13163
13164 2020-03-19 Kamil Rytarowski <n54@gmx.com>
13165 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
13166 * inf-ptrace.c: Likewise.
13167 * (gdb_ptrace): Add.
13168 * (inf_ptrace_target::resume): Update.
13169 * (inf_ptrace_target::xfer_partial): Likewise.
13170 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
13171 * (inf_ptrace_peek_poke): Update.
13172
13173 2020-03-19 Kamil Rytarowski <n54@gmx.com>
13174
13175 * x86-bsd-nat.c (gdb_ptrace): New.
13176 * (x86bsd_dr_set): Add new argument `ptid'.
13177 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
13178 x86bsd_dr_set_addr): Update.
13179
13180 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13181
13182 * remote.c (remote_target::process_stop_reply): Handle events for
13183 all threads differently.
13184
13185 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13186
13187 * completer.c (completion_tracker::remove_completion): Define new
13188 function.
13189 * completer.h (completion_tracker::remove_completion): Declare new
13190 function.
13191 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
13192 when adding a C++ function symbol.
13193
13194 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13195
13196 * completer.c (completion_tracker::completion_hash_entry): Define
13197 new class.
13198 (advance_to_filename_complete_word_point): Call
13199 recompute_lowest_common_denominator.
13200 (completion_tracker::completion_tracker): Call discard_completions
13201 to setup the hash table.
13202 (completion_tracker::discard_completions): Allow for being called
13203 from the constructor, pass new equal function, and element deleter
13204 when constructing the hash table. Initialise new class member
13205 variables.
13206 (completion_tracker::maybe_add_completion): Remove use of
13207 m_entries_vec, and store more information into m_entries_hash.
13208 (completion_tracker::recompute_lcd_visitor): New function, most
13209 content taken from...
13210 (completion_tracker::recompute_lowest_common_denominator):
13211 ...here, this now just visits each item in the hash calling the
13212 above visitor.
13213 (completion_tracker::build_completion_result): Remove use of
13214 m_entries_vec, call recompute_lowest_common_denominator.
13215 * completer.h (completion_tracker::have_completions): Remove use
13216 of m_entries_vec.
13217 (completion_tracker::completion_hash_entry): Declare new class.
13218 (completion_tracker::recompute_lowest_common_denominator): Change
13219 function signature.
13220 (completion_tracker::recompute_lcd_visitor): Declare new function.
13221 (completion_tracker::m_entries_vec): Delete.
13222 (completion_tracker::m_entries_hash): Initialize to NULL.
13223 (completion_tracker::m_lowest_common_denominator_valid): New
13224 member variable.
13225 (completion_tracker::m_lowest_common_denominator_max_length): New
13226 member variable.
13227
13228 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13229
13230 * regformats/regdef.h: Put reg in gdb namespace.
13231
13232 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13233
13234 * i386-bsd-nat.c (gdb_ptrace): New.
13235 * (i386bsd_fetch_inferior_registers,
13236 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
13237 * (i386bsd_fetch_inferior_registers,
13238 i386bsd_store_inferior_registers) Use gdb_ptrace.
13239
13240 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13241
13242 * amd64-bsd-nat.c (gdb_ptrace): New.
13243 * (amd64bsd_fetch_inferior_registers,
13244 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
13245 * (amd64bsd_fetch_inferior_registers,
13246 amd64bsd_store_inferior_registers) Use gdb_ptrace.
13247
13248 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13249
13250 * user-regs.c (user_reg::read): Rename to...
13251 (user_reg::xread): ...this.
13252 * (append_user_reg): Rename argument `read' to `xread'.
13253 * (user_reg_add_builtin): Likewise.
13254 * (user_reg_add): Likewise.
13255 * (value_of_user_reg): Likewise.
13256
13257 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13258
13259 * sparc-nat.c (gdb_ptrace): New.
13260 * sparc-nat.c (sparc_fetch_inferior_registers)
13261 (sparc_store_inferior_registers) Remove obsolete comment.
13262 * sparc-nat.c (sparc_fetch_inferior_registers)
13263 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
13264 * sparc-nat.c (sparc_fetch_inferior_registers)
13265 (sparc_store_inferior_registers) Use gdb_ptrace.
13266
13267 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13268
13269 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
13270 it to the ptrace call.
13271 * sh-nbsd-nat.c (store_registers): Likewise.
13272
13273 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13274
13275 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
13276 nbsd_nat_target instead of inf_ptrace_target.
13277 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13278 nbsd_nat_target.
13279
13280 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13281
13282 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
13283
13284 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13285
13286 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
13287 <sys/sysctl.h>.
13288 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
13289
13290 2020-03-17 Tom de Vries <tdevries@suse.de>
13291
13292 PR gdb/23710
13293 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
13294 fields.
13295 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
13296 fields.
13297 (process_imported_unit_die): Skip import of c++ CUs.
13298
13299 2020-03-16 Tom Tromey <tom@tromey.com>
13300
13301 * p-valprint.c (pascal_object_print_value): Initialize
13302 base_value.
13303
13304 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
13305 Shahab Vahedi <shahab@synopsys.com>
13306
13307 * Makefile.in: Add arch/arc.o
13308 * configure.tgt: Likewise.
13309 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
13310 (_initialize_arc_tdep): Don't initialize old target descriptions.
13311 (arc_read_description): New function to cache target descriptions.
13312 * arc-tdep.h (arc_read_description): Add proto type.
13313 * arch/arc.c: New file.
13314 * arch/arc.h: Likewise.
13315 * features/Makefile: Replace old target descriptions with new.
13316 * features/arc-arcompact.c: Remove.
13317 * features/arc-arcompact.xml: Likewise.
13318 * features/arc-v2.c: Likewise
13319 * features/arc-v2.xml: Likewise
13320 * features/arc/aux-arcompact.xml: New file.
13321 * features/arc/aux-v2.xml: Likewise.
13322 * features/arc/core-arcompact.xml: Likewise.
13323 * features/arc/core-v2.xml: Likewise.
13324 * features/arc/aux-arcompact.c: Generate.
13325 * features/arc/aux-v2.c: Likewise.
13326 * features/arc/core-arcompact.c: Likewise.
13327 * features/arc/core-v2.c: Likewise.
13328 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
13329
13330 2020-03-16 Tom Tromey <tromey@adacore.com>
13331
13332 PR gdb/25663:
13333 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
13334 putting value into bcache.
13335
13336 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13337
13338 PR gdb/21500
13339 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
13340 to...
13341 (amd64_windows_init_abi_common): ... this. Don't set size of
13342 long type.
13343 (amd64_windows_init_abi): New function.
13344 (amd64_cygwin_init_abi): New function.
13345 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
13346 the Cygwin OS ABI.
13347 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
13348 comment.
13349
13350 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13351
13352 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
13353 * windows-tdep.c (CYGWIN_DLL_NAME): New.
13354 (pe_import_directory_entry): New struct type.
13355 (is_linked_with_cygwin_dll): New function.
13356 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
13357 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
13358 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
13359
13360 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13361
13362 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
13363 i386_cygwin_core_osabi_sniffer.
13364
13365 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13366
13367 * i386-cygwin-tdep.c: Rename to...
13368 * i386-windows-tdep.c: ... this.
13369 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
13370 i386-windows-tdep.c.
13371 * configure.tgt: Likewise.
13372
13373 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13374
13375 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
13376 * osabi.c (gdb_osabi_names): Add "Windows".
13377 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
13378 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
13379 (i386_cygwin_core_osabi_sniffer): New function, extracted from
13380 i386_cygwin_osabi_sniffer.
13381 (_initialize_i386_cygwin_tdep): Register OS ABI
13382 GDB_OSABI_WINDOWS for i386.
13383 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
13384 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
13385 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
13386 for x86-64.
13387 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
13388 when the target matches '*-*-mingw*'.
13389
13390 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13391
13392 * defs.h (enum gdb_osabi): Move to...
13393 * osabi.h (enum gdb_osabi): ... here.
13394 * gdbarch.sh: Include osabi.h in gdbarch.h.
13395 * gdbarch.h: Re-generate.
13396
13397 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13398
13399 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
13400 function.
13401 (_initialize_amd64_windows_tdep): Register osabi sniffer.
13402
13403 2020-03-14 Tom Tromey <tom@tromey.com>
13404
13405 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
13406 for C++.
13407 (c_type_print_modifier): Likewise. Add "language" parameter.
13408 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
13409 (c_type_print_base_1): Update.
13410 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
13411 constants.
13412 * type-stack.c (type_stack::insert): Handle tp_atomic and
13413 tp_restrict.
13414 (type_stack::follow_type_instance_flags): Likewise.
13415 (type_stack::follow_types): Likewise. Merge type-following code.
13416 * c-exp.y (RESTRICT, ATOMIC): New tokens.
13417 (space_identifier, cv_with_space_id)
13418 (const_or_volatile_or_space_identifier_noopt)
13419 (const_or_volatile_or_space_identifier): Remove.
13420 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
13421 rules.
13422 (ptr_operator, typebase): Update.
13423 (enum token_flag) <FLAG_C>: New constant.
13424 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
13425 "_Atomic".
13426 (lex_one_token): Handle FLAG_C.
13427
13428 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13429
13430 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
13431 it to the ptrace call.
13432 * m68k-bsd-nat.c (store_registers): Likewise.
13433
13434 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13435
13436 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
13437 gdb_byte *.
13438 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
13439 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
13440 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
13441
13442 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13443
13444 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
13445 nbsd_nat_target instead of inf_ptrace_target.
13446 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13447 nbsd_nat_target.
13448
13449 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13450
13451 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
13452 register_t.
13453
13454 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13455
13456 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
13457 it to the ptrace call.
13458 * alpha-bsd-nat.c (store_registers): Likewise.
13459
13460 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13461
13462 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
13463 includes.
13464 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
13465 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
13466 fill_fpregset): Likewise.
13467
13468 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13469
13470 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
13471 nbsd_nat_target instead of inf_ptrace_target.
13472 * alpha-bsd-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 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
13478 register_t.
13479
13480 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13481
13482 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
13483 it to the ptrace call.
13484 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
13485 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
13486 * arm-nbsd-nat.c (store_register): Likewise.
13487 * arm-nbsd-nat.c (store_regs): Likewise.
13488 * arm-nbsd-nat.c (store_fp_register): Likewise.
13489 * arm-nbsd-nat.c (store_fp_regs): Likewise.
13490
13491 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13492
13493 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
13494 nbsd_nat_target instead of inf_ptrace_target.
13495 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13496 nbsd_nat_target.
13497
13498 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13499
13500 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
13501 it to the ptrace call.
13502 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
13503
13504 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13505
13506 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
13507 it to the ptrace call.
13508 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
13509
13510 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13511
13512 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
13513 gdb_byte *.
13514 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
13515
13516 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13517
13518 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
13519 instead of inf_ptrace_target.
13520 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13521 nbsd_nat_target.
13522
13523 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13524
13525 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13526 register_t.
13527
13528 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13529
13530 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13531 register_t.
13532
13533 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13534
13535 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
13536 register_t.
13537
13538 2020-03-13 Tom Tromey <tom@tromey.com>
13539
13540 * value.h (val_print): Don't declare.
13541 * valprint.h (val_print_array_elements)
13542 (val_print_scalar_formatted, generic_val_print): Don't declare.
13543 * valprint.c (generic_val_print_array): Take a struct value.
13544 (generic_val_print_ptr, generic_val_print_memberptr)
13545 (generic_val_print_bool, generic_val_print_int)
13546 (generic_val_print_char, generic_val_print_complex)
13547 (generic_val_print): Remove.
13548 (generic_value_print): Update.
13549 (do_val_print): Remove unused parameters. Don't call
13550 la_val_print.
13551 (val_print): Remove.
13552 (common_val_print): Update. Don't call value_check_printable.
13553 (val_print_scalar_formatted, val_print_array_elements): Remove.
13554 * rust-lang.c (rust_val_print): Remove.
13555 (rust_language_defn): Update.
13556 * p-valprint.c (pascal_val_print): Remove.
13557 (pascal_value_print_inner): Update.
13558 (pascal_object_print_val_fields, pascal_object_print_val):
13559 Remove.
13560 (pascal_object_print_static_field): Update.
13561 * p-lang.h (pascal_val_print): Don't declare.
13562 * p-lang.c (pascal_language_defn): Update.
13563 * opencl-lang.c (opencl_language_defn): Update.
13564 * objc-lang.c (objc_language_defn): Update.
13565 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
13566 * m2-lang.h (m2_val_print): Don't declare.
13567 * m2-lang.c (m2_language_defn): Update.
13568 * language.h (struct language_defn) <la_val_print>: Remove.
13569 * language.c (unk_lang_value_print_inner): Rename. Change
13570 argument types.
13571 (unknown_language_defn, auto_language_defn): Update.
13572 * go-valprint.c (go_val_print): Remove.
13573 * go-lang.h (go_val_print): Don't declare.
13574 * go-lang.c (go_language_defn): Update.
13575 * f-valprint.c (f_val_print): Remove.
13576 * f-lang.h (f_value_print): Don't declare.
13577 * f-lang.c (f_language_defn): Update.
13578 * d-valprint.c (d_val_print): Remove.
13579 * d-lang.h (d_value_print): Don't declare.
13580 * d-lang.c (d_language_defn): Update.
13581 * cp-valprint.c (cp_print_value_fields)
13582 (cp_print_value_fields_rtti, cp_print_value): Remove.
13583 (cp_print_static_field): Update.
13584 * c-valprint.c (c_val_print_array, c_val_print_ptr)
13585 (c_val_print_struct, c_val_print_union, c_val_print_int)
13586 (c_val_print_memberptr, c_val_print): Remove.
13587 * c-lang.h (c_val_print_array, cp_print_value_fields)
13588 (cp_print_value_fields_rtti): Don't declare.
13589 * c-lang.c (c_language_defn, cplus_language_defn)
13590 (asm_language_defn, minimal_language_defn): Update.
13591 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
13592 (ada_val_print_enum): Take a struct value.
13593 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
13594 (ada_val_print): Remove.
13595 (ada_value_print_1): Update.
13596 (printable_val_type): Remove.
13597 * ada-lang.h (ada_val_print): Don't declare.
13598 * ada-lang.c (ada_language_defn): Update.
13599
13600 2020-03-13 Tom Tromey <tom@tromey.com>
13601
13602 * valprint.c (do_val_print): Update.
13603 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
13604 a struct value.
13605 (value_to_value_object_no_release): Declare.
13606 * python/py-value.c (value_to_value_object_no_release): New
13607 function.
13608 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
13609 struct value.
13610 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
13611 function.
13612 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
13613 a struct value.
13614 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
13615 Declare.
13616 (gdbscm_apply_val_pretty_printer): Take a struct value.
13617 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
13618 value.
13619 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
13620 value.
13621 * extension-priv.h (struct extension_language_ops)
13622 <apply_val_pretty_printer>: Take a struct value.
13623 * cp-valprint.c (cp_print_value): Create a struct value.
13624 (cp_print_value): Update.
13625
13626 2020-03-13 Tom Tromey <tom@tromey.com>
13627
13628 * ada-valprint.c (print_field_values): Call common_val_print.
13629
13630 2020-03-13 Tom Tromey <tom@tromey.com>
13631
13632 * ada-valprint.c (val_print_packed_array_elements): Remove
13633 bitoffset and val parameters. Call common_val_print.
13634 (ada_val_print_string): Remove offset, address, and original_value
13635 parameters.
13636 (ada_val_print_array): Update.
13637 (ada_value_print_array): New function.
13638 (ada_value_print_1): Call it.
13639
13640 2020-03-13 Tom Tromey <tom@tromey.com>
13641
13642 * ada-valprint.c (ada_value_print): Use common_val_print.
13643
13644 2020-03-13 Tom Tromey <tom@tromey.com>
13645
13646 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
13647
13648 2020-03-13 Tom Tromey <tom@tromey.com>
13649
13650 * ada-valprint.c (ada_value_print_num): New function.
13651 (ada_value_print_1): Use it.
13652
13653 2020-03-13 Tom Tromey <tom@tromey.com>
13654
13655 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
13656
13657 2020-03-13 Tom Tromey <tom@tromey.com>
13658
13659 * ada-valprint.c (ada_value_print_ptr): New function.
13660 (ada_value_print_1): Use it.
13661
13662 2020-03-13 Tom Tromey <tom@tromey.com>
13663
13664 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
13665 call common_val_print.
13666 (ada_val_print_1): Update.
13667 (ada_value_print_1): New function.
13668 (ada_value_print_inner): Rewrite.
13669
13670 2020-03-13 Tom Tromey <tom@tromey.com>
13671
13672 * cp-valprint.c (cp_print_value_fields): Update.
13673 (cp_print_value): New function.
13674
13675 2020-03-13 Tom Tromey <tom@tromey.com>
13676
13677 * m2-valprint.c (m2_value_print_inner): Use
13678 cp_print_value_fields.
13679 * cp-valprint.c (cp_print_value_fields): New function.
13680 * c-valprint.c (c_value_print_struct): New function.
13681 (c_value_print_inner): Use c_value_print_struct.
13682 * c-lang.h (cp_print_value_fields): Declare.
13683
13684 2020-03-13 Tom Tromey <tom@tromey.com>
13685
13686 * c-valprint.c (c_value_print_array): New function.
13687 (c_value_print_inner): Use it.
13688
13689 2020-03-13 Tom Tromey <tom@tromey.com>
13690
13691 * c-valprint.c (c_value_print_memberptr): New function.
13692 (c_value_print_inner): Use it.
13693
13694 2020-03-13 Tom Tromey <tom@tromey.com>
13695
13696 * c-valprint.c (c_value_print_int): New function.
13697 (c_value_print_inner): Use it.
13698
13699 2020-03-13 Tom Tromey <tom@tromey.com>
13700
13701 * c-valprint.c (c_value_print_ptr): New function.
13702 (c_value_print_inner): Use it.
13703
13704 2020-03-13 Tom Tromey <tom@tromey.com>
13705
13706 * c-valprint.c (c_value_print_inner): Rewrite.
13707
13708 2020-03-13 Tom Tromey <tom@tromey.com>
13709
13710 * valprint.c (generic_value_print_complex): New function.
13711 (generic_value_print): Use it.
13712
13713 2020-03-13 Tom Tromey <tom@tromey.com>
13714
13715 * valprint.c (generic_val_print_float): Don't call
13716 val_print_scalar_formatted.
13717 (generic_val_print, generic_value_print): Update.
13718
13719 2020-03-13 Tom Tromey <tom@tromey.com>
13720
13721 * valprint.c (generic_value_print_char): New function
13722 (generic_value_print): Use it.
13723
13724 2020-03-13 Tom Tromey <tom@tromey.com>
13725
13726 * valprint.c (generic_value_print_int): New function.
13727 (generic_value_print): Use it.
13728
13729 2020-03-13 Tom Tromey <tom@tromey.com>
13730
13731 * valprint.c (generic_value_print_bool): New function.
13732 (generic_value_print): Use it.
13733
13734 2020-03-13 Tom Tromey <tom@tromey.com>
13735
13736 * valprint.c (generic_val_print_func): Simplify.
13737 (generic_val_print, generic_value_print): Update.
13738
13739 2020-03-13 Tom Tromey <tom@tromey.com>
13740
13741 * valprint.c (generic_val_print_flags): Remove.
13742 (generic_val_print, generic_value_print): Update.
13743 (val_print_type_code_flags): Add original_value parameter.
13744
13745 2020-03-13 Tom Tromey <tom@tromey.com>
13746
13747 * valprint.c (generic_val_print): Update.
13748 (generic_value_print): Update.
13749 * valprint.c (generic_val_print_enum): Don't call
13750 val_print_scalar_formatted.
13751
13752 2020-03-13 Tom Tromey <tom@tromey.com>
13753
13754 * valprint.c (generic_value_print): Call generic_value_print_ptr.
13755 * valprint.c (generic_value_print_ptr): New function.
13756
13757 2020-03-13 Tom Tromey <tom@tromey.com>
13758
13759 * valprint.c (generic_value_print): Rewrite.
13760
13761 2020-03-13 Tom Tromey <tom@tromey.com>
13762
13763 * p-valprint.c (pascal_object_print_value_fields)
13764 (pascal_object_print_value): New functions.
13765
13766 2020-03-13 Tom Tromey <tom@tromey.com>
13767
13768 * p-valprint.c (pascal_value_print_inner): Rewrite.
13769
13770 2020-03-13 Tom Tromey <tom@tromey.com>
13771
13772 * f-valprint.c (f_value_print_innner): Rewrite.
13773
13774 2020-03-13 Tom Tromey <tom@tromey.com>
13775
13776 * m2-valprint.c (m2_print_unbounded_array): New overload.
13777 (m2_print_unbounded_array): Update.
13778 (m2_print_array_contents): Take a struct value.
13779 (m2_value_print_inner): Rewrite.
13780
13781 2020-03-13 Tom Tromey <tom@tromey.com>
13782
13783 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
13784 (d_value_print_inner): New function.
13785 * d-lang.h (d_value_print_inner): Declare.
13786 * d-lang.c (d_language_defn): Use d_value_print_inner.
13787
13788 2020-03-13 Tom Tromey <tom@tromey.com>
13789
13790 * go-valprint.c (go_value_print_inner): New function.
13791 * go-lang.h (go_value_print_inner): Declare.
13792 * go-lang.c (go_language_defn): Use go_value_print_inner.
13793
13794 2020-03-13 Tom Tromey <tom@tromey.com>
13795
13796 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
13797 API.
13798 (rust_val_print): Rewrite.
13799 (rust_value_print_inner): New function, from rust_val_print.
13800 (rust_language_defn): Use rust_value_print_inner.
13801
13802 2020-03-13 Tom Tromey <tom@tromey.com>
13803
13804 * ada-valprint.c (ada_value_print_inner): New function.
13805 * ada-lang.h (ada_value_print_inner): Declare.
13806 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
13807
13808 2020-03-13 Tom Tromey <tom@tromey.com>
13809
13810 * f-valprint.c (f_value_print_innner): New function.
13811 * f-lang.h (f_value_print_innner): Declare.
13812 * f-lang.c (f_language_defn): Use f_value_print_innner.
13813
13814 2020-03-13 Tom Tromey <tom@tromey.com>
13815
13816 * p-valprint.c (pascal_value_print_inner): New function.
13817 * p-lang.h (pascal_value_print_inner): Declare.
13818 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
13819
13820 2020-03-13 Tom Tromey <tom@tromey.com>
13821
13822 * m2-valprint.c (m2_value_print_inner): New function.
13823 * m2-lang.h (m2_value_print_inner): Declare.
13824 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
13825
13826 2020-03-13 Tom Tromey <tom@tromey.com>
13827
13828 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
13829 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
13830 * c-valprint.c (c_value_print_inner): New function.
13831 * c-lang.h (c_value_print_inner): Declare.
13832 * c-lang.c (c_language_defn, cplus_language_defn)
13833 (asm_language_defn, minimal_language_defn): Use
13834 c_value_print_inner.
13835
13836 2020-03-13 Tom Tromey <tom@tromey.com>
13837
13838 * p-valprint.c (pascal_object_print_value_fields): Now static.
13839 * p-lang.h (pascal_object_print_value_fields): Don't declare.
13840
13841 2020-03-13 Tom Tromey <tom@tromey.com>
13842
13843 * c-valprint.c (c_val_print_array): Simplify.
13844
13845 2020-03-13 Tom Tromey <tom@tromey.com>
13846
13847 * valprint.c (value_print_array_elements): New function.
13848 * valprint.h (value_print_array_elements): Declare.
13849
13850 2020-03-13 Tom Tromey <tom@tromey.com>
13851
13852 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
13853 * mips-tdep.c (mips_print_register): Use
13854 value_print_scalar_formatted.
13855
13856 2020-03-13 Tom Tromey <tom@tromey.com>
13857
13858 * valprint.h (value_print_scalar_formatted): Declare.
13859 * valprint.c (value_print_scalar_formatted): New function.
13860
13861 2020-03-13 Tom Tromey <tom@tromey.com>
13862
13863 * valprint.h (generic_value_print): Declare.
13864 * valprint.c (generic_value_print): New function.
13865
13866 2020-03-13 Tom Tromey <tom@tromey.com>
13867
13868 * valprint.c (do_val_print): Call la_value_print_inner, if
13869 available.
13870 * rust-lang.c (rust_language_defn): Update.
13871 * p-lang.c (pascal_language_defn): Update.
13872 * opencl-lang.c (opencl_language_defn): Update.
13873 * objc-lang.c (objc_language_defn): Update.
13874 * m2-lang.c (m2_language_defn): Update.
13875 * language.h (struct language_defn) <la_value_print_inner>: New
13876 member.
13877 * language.c (unknown_language_defn, auto_language_defn): Update.
13878 * go-lang.c (go_language_defn): Update.
13879 * f-lang.c (f_language_defn): Update.
13880 * d-lang.c (d_language_defn): Update.
13881 * c-lang.c (c_language_defn, cplus_language_defn)
13882 (asm_language_defn, minimal_language_defn): Update.
13883 * ada-lang.c (ada_language_defn): Update.
13884
13885 2020-03-13 Tom Tromey <tom@tromey.com>
13886
13887 * c-valprint.c (c_value_print): Use common_val_print.
13888
13889 2020-03-13 Tom Tromey <tom@tromey.com>
13890
13891 * cp-valprint.c (cp_print_static_field): Use common_val_print.
13892
13893 2020-03-13 Tom Tromey <tom@tromey.com>
13894
13895 * f-valprint.c (f77_print_array_1, f_val_print): Use
13896 common_val_print.
13897
13898 2020-03-13 Tom Tromey <tom@tromey.com>
13899
13900 * riscv-tdep.c (riscv_print_one_register_info): Use
13901 common_val_print.
13902
13903 2020-03-13 Tom Tromey <tom@tromey.com>
13904
13905 * mi/mi-main.c (output_register): Use common_val_print.
13906
13907 2020-03-13 Tom Tromey <tom@tromey.com>
13908
13909 * infcmd.c (default_print_one_register_info): Use
13910 common_val_print.
13911
13912 2020-03-13 Tom Tromey <tom@tromey.com>
13913
13914 * valprint.h (common_val_print_checked): Declare.
13915 * valprint.c (common_val_print_checked): New function.
13916 * stack.c (print_frame_arg): Use common_val_print_checked.
13917
13918 2020-03-13 Tom Tromey <tom@tromey.com>
13919
13920 * valprint.c (do_val_print): New function, from val_print.
13921 (val_print): Use do_val_print.
13922 (common_val_print): Use do_val_print.
13923
13924 2020-03-13 Tom Tromey <tom@tromey.com>
13925
13926 * valprint.c (value_print): Use scoped_value_mark.
13927
13928 2020-03-13 Tom de Vries <tdevries@suse.de>
13929
13930 PR symtab/25646
13931 * psymtab.c (partial_symtab::partial_symtab): Don't set
13932 globals_offset and statics_offset. Push element onto
13933 current_global_psymbols and current_static_psymbols stacks.
13934 (concat): New function.
13935 (end_psymtab_common): Set globals_offset and statics_offset. Pop
13936 element from current_global_psymbols and current_static_psymbols
13937 stacks. Concat popped elements to global_psymbols and
13938 static_symbols.
13939 (add_psymbol_to_list): Use current_global_psymbols and
13940 current_static_psymbols stacks.
13941 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
13942 current_static_psymbols fields.
13943
13944 2020-03-12 Christian Biesinger <cbiesinger@google.com>
13945
13946 * corelow.c (sniff_core_bfd): Remove.
13947 (class core_target) <m_core_vec>: Remove.
13948 (core_target::core_target): Update.
13949 (core_file_fns): Remove.
13950 (deprecated_add_core_fns): Remove.
13951 (default_core_sniffer): Remove.
13952 (sniff_core_bfd): Remove.
13953 (default_check_format): Remove.
13954 (gdb_check_format): Remove.
13955 (core_target_open): Update.
13956 (core_target::get_core_register_section): Update.
13957 (get_core_registers_cb): Update.
13958 (core_target::fetch_registers): Update.
13959 * gdbcore.h (struct core_fns): Remove.
13960 (deprecated_add_core_fns): Remove.
13961 (default_core_sniffer): Remove.
13962 (default_check_format): Remove.
13963
13964 2020-03-12 Tom Tromey <tom@tromey.com>
13965
13966 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
13967 CORE_ADDR.
13968 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
13969
13970 2020-03-12 Tom Tromey <tom@tromey.com>
13971
13972 * remote.c (remote_target::download_tracepoint)
13973 (remote_target::enable_tracepoint)
13974 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
13975 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
13976 sprintf_vma.
13977
13978 2020-03-12 Tom Tromey <tom@tromey.com>
13979
13980 * symfile-mem.c: Update CORE_ADDR size assert.
13981
13982 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
13983
13984 * selftest.m4: Move to gdbsupport/.
13985 * acinclude.m4: Update path to selftest.m4.
13986
13987 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
13988
13989 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
13990 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
13991 gdbarch-selfselftests.c and selftest-arch.c.
13992 (SUBDIR_UNITTESTS_OBS): Rename to...
13993 (SELFTESTS_OBS): ... this.
13994 (COMMON_SFILES): Remove disasm-selftests.c and
13995 gdbarch-selftests.c.
13996 * configure.ac: Don't add selftest-arch.{c,o} to
13997 CONFIG_{SRCS,OBS}.
13998 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
13999 preprocessor conditions.
14000
14001 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14002
14003 * configure.ac: Don't source bfd/development.sh.
14004 * selftest.m4: Modify comment.
14005 * configure: Re-generate.
14006
14007 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14008
14009 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
14010 not "true" or "false".
14011 * configure: Re-generate.
14012
14013 2020-03-12 Christian Biesinger <cbiesinger@google.com>
14014
14015 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
14016 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
14017 renamed to arm_nbsd_supply_gregset.
14018 (fetch_register): Update to call arm_nbsd_supply_gregset.
14019 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
14020 (arm_netbsd_nat_target::fetch_registers): Update.
14021 (fetch_elfcore_registers): Removed.
14022 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
14023 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
14024 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
14025 not require NetBSD system headers.
14026 (arm_nbsd_regset): New struct.
14027 (arm_nbsd_iterate_over_regset_sections): New function.
14028 (arm_netbsd_init_abi_common): Updated to call
14029 set_gdbarch_iterate_over_regset_sections.
14030 * arm-nbsd-tdep.h: New file.
14031
14032 2020-03-11 Kevin Buettner <kevinb@redhat.com>
14033
14034 * symtab.c (find_pc_sect_line): Add check which prevents infinite
14035 recursion.
14036
14037 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
14038
14039 * configure: Re-generate.
14040
14041 2020-03-11 Tom Tromey <tromey@adacore.com>
14042
14043 * ada-typeprint.c (print_choices): Fix comment.
14044
14045 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
14046
14047 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
14048 previous item in the list, when the list has no items.
14049
14050 2020-03-11 Tom de Vries <tdevries@suse.de>
14051
14052 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
14053 PROP_LOCLIST handling code.
14054
14055 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
14056
14057 * buildsym-legacy.c (record_line): Pass extra parameter to
14058 record_line.
14059 * buildsym.c (buildsym_compunit::record_line): Take an extra
14060 parameter, reduce duplication in the line table, and record the
14061 is_stmt flag in the line table.
14062 * buildsym.h (buildsym_compunit::record_line): Add extra
14063 parameter.
14064 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
14065 non-statement lines.
14066 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
14067 this to the symtab builder.
14068 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
14069 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
14070 through to dwarf_record_line_1.
14071 * infrun.c (process_event_stop_test): When stepping, don't stop at
14072 a non-statement instruction, and only refresh the step info when
14073 we land in the middle of a line's range. Also add an extra
14074 comment.
14075 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
14076 field.
14077 * record-btrace.c (btrace_find_line_range): Only record lines
14078 marked as is-statement.
14079 * stack.c (frame_show_address): Show the frame address if we are
14080 in a non-statement sal.
14081 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
14082 (maintenance_print_one_line_table): Print a header for the is_stmt
14083 column, and include is_stmt information in the output.
14084 * symtab.c (find_pc_sect_line): Find lines marked as statements in
14085 preference to non-statements.
14086 (find_pcs_for_symtab_line): Prefer is-statement entries.
14087 (find_line_common): Likewise.
14088 * symtab.h (struct linetable_entry): Add is_stmt field.
14089 (struct symtab_and_line): Likewise.
14090 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
14091 arranging the line table.
14092
14093 2020-03-07 Tom de Vries <tdevries@suse.de>
14094
14095 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
14096 DIE.
14097
14098 2020-03-07 Tom Tromey <tom@tromey.com>
14099
14100 * valops.c (value_literal_complex): Remove obsolete comment.
14101 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
14102 comment.
14103
14104 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
14105
14106 * infrun.h: Forward-declare thread_info.
14107 (set_step_info): Add thread_info parameter, add doc.
14108 * infrun.c (set_step_info): Add thread_info parameter, move doc
14109 to header.
14110 * infrun.c (process_event_stop_test): Pass thread to
14111 set_step_info call.
14112 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
14113 set_step_info.
14114 (prepare_one_step): Add thread_info parameter, pass it to
14115 set_step_frame and prepare_one_step (recursive) call.
14116 (step_1): Pass thread to prepare_one_step call.
14117 (step_command_fsm::should_stop): Pass thread to
14118 prepare_one_step.
14119 (until_next_fsm): Pass thread to set_step_frame call.
14120 (finish_command): Pass thread to set_step_info call.
14121
14122 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
14123
14124 * windows-tdep.c (windows_solib_create_inferior_hook):
14125 Check if inferior is running.
14126
14127 2020-03-06 Tom de Vries <tdevries@suse.de>
14128
14129 * NEWS: Fix "the the".
14130 * ctfread.c: Same.
14131
14132 2020-03-06 Tom de Vries <tdevries@suse.de>
14133
14134 * psymtab.c (psymtab_to_symtab): Don't print "done.".
14135
14136 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14137
14138 * .dir-locals.el: Add a comment referencing the other copies of
14139 this file.
14140
14141 2020-03-05 John Baldwin <jhb@FreeBSD.org>
14142
14143 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
14144 psargs.
14145
14146 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14147
14148 * .gitattributes: New file.
14149
14150 2020-03-04 Tom Tromey <tom@tromey.com>
14151
14152 * symmisc.c (print_symbol_bcache_statistics)
14153 (print_objfile_statistics): Update.
14154 * symfile.c (allocate_symtab): Use intern.
14155 * psymtab.c (partial_symtab::partial_symtab): Use intern.
14156 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
14157 macro_cache>: Remove.
14158 <string_cache>: New member.
14159 (struct objfile) <intern>: New methods.
14160 * elfread.c (elf_symtab_read): Use intern.
14161 * dwarf2/read.c (fixup_go_packaging): Intern package name.
14162 (dwarf2_compute_name, dwarf2_physname)
14163 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
14164 names.
14165 (guess_partial_die_structure_name): Update.
14166 (partial_die_info::fixup): Intern name.
14167 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
14168 name.
14169 (dwarf2_name): Intern name. Update.
14170 * buildsym.c (buildsym_compunit::get_macro_table): Use
14171 string_cache.
14172
14173 2020-03-04 Tom Tromey <tom@tromey.com>
14174
14175 * jit.c (bfd_open_from_target_memory): Make "target" const.
14176 * corefile.c (gnutarget): Now const.
14177 * gdbcore.h (gnutarget): Now const.
14178
14179 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
14180
14181 * NEWS: Mention support for WOW64 processes.
14182 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
14183 (amd64_windows_segment_register_p): Remove static.
14184 (_initialize_amd64_windows_nat): Update.
14185 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
14186 * i386-windows-nat.c (context_offset): Update.
14187 (i386_mappings): Rename and remove static.
14188 (i386_windows_segment_register_p): Remove static.
14189 (_initialize_i386_windows_nat): Update.
14190 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
14191 (STATUS_WX86_SINGLE_STEP): New macro.
14192 (EnumProcessModulesEx): New macro.
14193 (Wow64SuspendThread): New macro.
14194 (Wow64GetThreadContext): New macro.
14195 (Wow64SetThreadContext): New macro.
14196 (Wow64GetThreadSelectorEntry): New macro.
14197 (windows_set_context_register_offsets): Add static.
14198 (windows_set_segment_register_p): Likewise.
14199 (windows_add_thread): Adapt for WOW64 processes.
14200 (windows_fetch_one_register): Likewise.
14201 (windows_nat_target::fetch_registers): Likewise.
14202 (windows_store_one_register): Likewise.
14203 (display_selector): Likewise.
14204 (display_selectors): Likewise.
14205 (handle_exception): Likewise.
14206 (windows_continue): Likewise.
14207 (windows_nat_target::resume): Likewise.
14208 (windows_add_all_dlls): Likewise.
14209 (do_initial_windows_stuff): Likewise.
14210 (windows_nat_target::attach): Likewise.
14211 (windows_get_exec_module_filename): Likewise.
14212 (windows_nat_target::create_inferior): Likewise.
14213 (windows_xfer_siginfo): Likewise.
14214 (_initialize_loadable): Initialize Wow64SuspendThread,
14215 Wow64GetThreadContext, Wow64SetThreadContext,
14216 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
14217 * windows-nat.h (windows_set_context_register_offsets):
14218 Remove declaration.
14219 (windows_set_segment_register_p): Likewise.
14220 (i386_windows_segment_register_p): Add declaration.
14221 (amd64_windows_segment_register_p): Likewise.
14222
14223 2020-03-04 Luis Machado <luis.machado@linaro.org>
14224
14225 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
14226 in "info registers" for AArch64/ARM.
14227
14228 The change caused "info registers" to not print GPR's.
14229
14230 gdb/ChangeLog:
14231
14232 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
14233
14234 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
14235 when reg->group is empty and reggroup is not.
14236
14237 2020-03-03 Tom Tromey <tromey@adacore.com>
14238
14239 * dwarf2/frame.c (struct dwarf2_frame_cache)
14240 <checked_tailcall_bottom, entry_cfa_sp_offset,
14241 entry_cfa_sp_offset_p>: Remove members.
14242 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
14243 (dwarf2_frame_prev_register): Don't call
14244 dwarf2_tailcall_sniffer_first.
14245 (dwarf2_append_unwinders): Don't append tailcall unwinder.
14246 * frame-unwind.c (add_unwinder): New fuction.
14247 (frame_unwind_init): Use it. Add tailcall unwinder.
14248
14249 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
14250 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14251
14252 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
14253 value should be printed as true.
14254
14255 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
14256
14257 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
14258 (windows_init_abi): Set and use windows_so_ops.
14259
14260 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
14261
14262 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
14263 when verifying if dealing with a convenience variable.
14264
14265 2020-03-03 Luis Machado <luis.machado@linaro.org>
14266
14267 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
14268
14269 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
14270
14271 * infrun.c (gdbarch_supports_displaced_stepping): New.
14272 (use_displaced_stepping): Break up conditions in smaller pieces.
14273 Use gdbarch_supports_displaced_stepping.
14274 (displaced_step_prepare_throw): Use
14275 gdbarch_supports_displaced_stepping.
14276
14277 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
14278
14279 * NEWS: Mention new behaviour of the history filename.
14280 * top.c (write_history_p): Add comment.
14281 (show_write_history_p): Add header comment, give a different
14282 message when history writing is on, but the history filename is
14283 empty.
14284 (history_filename): Add comment.
14285 (history_filename_empty): New function.
14286 (show_history_filename): Add header comment, give a different
14287 message when the filename is empty.
14288 (init_history): Compare history_filename against nullptr, and only
14289 read history if the filename is not empty.
14290 (set_history_filename): Add header comment, and only make
14291 non-empty filenames absolute.
14292 (init_main): Make the filename argument to 'set history filename'
14293 optional.
14294
14295 2020-03-02 Christian Biesinger <cbiesinger@google.com>
14296
14297 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
14298 (arm_supply_vfpregset): ...this, and update to use VFP registers.
14299 (fetch_fp_register): Update.
14300 (fetch_fp_regs): Update.
14301 (store_fp_register): Update.
14302 (store_fp_regs): Update.
14303 (arm_netbsd_nat_target::read_description): New function.
14304 (fetch_elfcore_registers): Update.
14305
14306 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
14307
14308 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
14309 general_thread if the stop reply is missing a thread-id.
14310 (remote_target::process_stop_reply): Use the first non-exited
14311 thread if the target didn't pass a thread-id.
14312 * infrun.c (do_target_wait): Move call to
14313 switch_to_inferior_no_thread to ....
14314 (do_target_wait_1): ... here.
14315
14316 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
14317
14318 * debuginfod-support.c: Include defs.h first.
14319
14320 2020-02-28 Tom de Vries <tdevries@suse.de>
14321
14322 * symfile.c (set_initial_language): Use default language for lookup.
14323
14324 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
14325
14326 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
14327 reader variable, pass `this` to read_cutu_die_from_dwo.
14328
14329 2020-02-27 Aaron Merey <amerey@redhat.com>
14330
14331 * source.c (open_source_file): Check for nullptr when computing
14332 srcpath.
14333
14334 2020-02-27 Tom Tromey <tromey@adacore.com>
14335
14336 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
14337 member.
14338 (dwarf2_add_field): Don't update nfields.
14339 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
14340
14341 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14342
14343 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
14344 abs.
14345
14346 2020-02-26 Tom Tromey <tom@tromey.com>
14347
14348 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
14349 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
14350 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
14351 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
14352 per_cu_data.
14353
14354 2020-02-26 Tom Tromey <tom@tromey.com>
14355
14356 * dwarf2/index-write.c (psym_index_map): Change type.
14357 (add_address_entry_worker, write_one_signatured_type)
14358 (recursively_count_psymbols, recursively_write_psymbols)
14359 (class debug_names, psyms_seen_size, write_gdbindex)
14360 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
14361
14362 2020-02-26 Aaron Merey <amerey@redhat.com>
14363
14364 * Makefile.in: Handle optional debuginfod support.
14365 * NEWS: Update.
14366 * README: Add --with-debuginfod summary.
14367 * config.in: Regenerate.
14368 * configure: Regenerate.
14369 * configure.ac: Handle optional debuginfod support.
14370 * debuginfod-support.c: debuginfod helper functions.
14371 * debuginfod-support.h: Ditto.
14372 * doc/gdb.texinfo: Add --with-debuginfod to configure options
14373 summary.
14374 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
14375 when a dwz file cannot be found.
14376 * elfread.c (elf_symfile_read): Query debuginfod servers when a
14377 debuginfo file cannot be found.
14378 * source.c (open_source_file): Query debuginfod servers when a
14379 source file cannot be found.
14380 * top.c (print_gdb_configuration): Include
14381 --{with,without}-debuginfod in the output.
14382
14383 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
14384
14385 * thread.c (thr_try_catch_cmd): Print thread name.
14386
14387 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
14388
14389 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
14390 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14391 dwarf2_fetch_die_type_sect_off): Move to...
14392 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
14393 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14394 dwarf2_fetch_die_type_sect_off): ... here.
14395 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
14396 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14397 dwarf2_fetch_die_type_sect_off): Move doc to header file.
14398
14399 2020-02-26 Tom de Vries <tdevries@suse.de>
14400
14401 PR gdb/25603
14402 * symfile.c (set_initial_language): Exit-early if
14403 language_mode == language_mode_manual.
14404
14405 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
14406
14407 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
14408 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
14409 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
14410
14411 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
14412
14413 * gdbtypes.c (create_array_type_with_stride): Handle negative
14414 array strides.
14415 * valarith.c (value_subscripted_rvalue): Likewise.
14416
14417 2020-02-25 Luis Machado <luis.machado@linaro.org>
14418
14419 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
14420
14421 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
14422
14423 * loc.h (dwarf2_get_die_type): Move to...
14424 * read.h (dwarf2_get_die_type): ... here.
14425 * read.c (dwarf2_get_die_type): Move doc to header.
14426
14427 2020-02-25 Joel Brobecker <brobecker@adacore.com>
14428
14429 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
14430 'gnulib/Makefile.in' to the list.
14431
14432 2020-02-24 Tom Tromey <tom@tromey.com>
14433
14434 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
14435 Remove.
14436 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
14437 XOBNEWVEC.
14438
14439 2020-02-24 Tom Tromey <tom@tromey.com>
14440
14441 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
14442 New method.
14443 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
14444 (dw2_do_instantiate_symtab, dw2_get_file_names)
14445 (build_type_psymtab_dependencies, load_full_type_unit): Update.
14446
14447 2020-02-24 Tom Tromey <tom@tromey.com>
14448
14449 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
14450 make_scoped_restore.
14451 (dwarf2_psymtab::read_symtab): Don't clear
14452 reading_partial_symbols.
14453
14454 2020-02-24 Tom de Vries <tdevries@suse.de>
14455
14456 PR gdb/25592
14457 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
14458
14459 2020-02-24 Tom de Vries <tdevries@suse.de>
14460
14461 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
14462 commands layout next/prev/regs.
14463
14464 2020-02-22 Tom Tromey <tom@tromey.com>
14465
14466 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
14467 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
14468
14469 2020-02-22 Tom Tromey <tom@tromey.com>
14470
14471 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
14472
14473 2020-02-22 Tom Tromey <tom@tromey.com>
14474
14475 * tui/tui-win.c (_initialize_tui_win): Add usage text.
14476 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
14477 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
14478 * tui/tui.c (_initialize_tui): Add usage text.
14479
14480 2020-02-22 Tom Tromey <tom@tromey.com>
14481
14482 * tui/tui-win.c (tui_set_focus_command)
14483 (tui_set_win_height_command): Use error_no_arg.
14484 (_initialize_tui_win): Update help text.
14485 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
14486
14487 2020-02-22 Tom Tromey <tom@tromey.com>
14488
14489 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
14490 * tui/tui-disasm.h (struct tui_disasm_window)
14491 <display_start_addr>: Declare.
14492 * tui/tui-source.h (struct tui_source_window)
14493 <display_start_addr>: Declare.
14494 * tui/tui-winsource.h (struct tui_source_window_base)
14495 <show_source_line, display_start_addr>: New methods.
14496 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
14497 Rename and move to protected section.
14498 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
14499 (tui_source_window_base::do_erase_source_content): Update.
14500 (tui_source_window_base::show_source_line): Now a method.
14501 (tui_source_window_base::show_source_content)
14502 (tui_source_window_base::tui_source_window_base)
14503 (tui_source_window_base::rerender)
14504 (tui_source_window_base::refill)
14505 (tui_source_window_base::do_scroll_horizontal)
14506 (tui_source_window_base::set_is_exec_point_at)
14507 (tui_source_window_base::update_breakpoint_info)
14508 (tui_source_window_base::update_exec_info): Update.
14509 * tui/tui-source.c (tui_source_window::set_contents)
14510 (tui_source_window::showing_source_p)
14511 (tui_source_window::do_scroll_vertical)
14512 (tui_source_window::location_matches_p)
14513 (tui_source_window::line_is_displayed): Update.
14514 (tui_source_window::display_start_addr): New method.
14515 * tui/tui-disasm.c (tui_disasm_window::set_contents)
14516 (tui_disasm_window::do_scroll_vertical)
14517 (tui_disasm_window::location_matches_p): Update.
14518 (tui_disasm_window::display_start_addr): New method.
14519
14520 2020-02-22 Tom Tromey <tom@tromey.com>
14521
14522 * NEWS: Add entry for gdb.register_window_type.
14523 * tui/tui-layout.h (window_factory): New typedef.
14524 (tui_register_window): Declare.
14525 * tui/tui-layout.c (saved_tui_windows): New global.
14526 (tui_apply_current_layout): Use it.
14527 (tui_register_window): New function.
14528 * python/python.c (do_start_initialization): Call
14529 gdbpy_initialize_tui.
14530 (python_GdbMethods): Add "register_window_type" function.
14531 * python/python-internal.h (gdbpy_register_tui_window)
14532 (gdbpy_initialize_tui): Declare.
14533 * python/py-tui.c: New file.
14534 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
14535
14536 2020-02-22 Tom Tromey <tom@tromey.com>
14537
14538 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
14539
14540 2020-02-22 Tom Tromey <tom@tromey.com>
14541
14542 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
14543 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
14544 * tui/tui-data.c (tui_set_win_with_focus): Remove.
14545 (tui_set_win_focus_to): Move from tui-win.c.
14546
14547 2020-02-22 Tom Tromey <tom@tromey.com>
14548
14549 * tui/tui-layout.c (make_standard_window, get_locator_window): New
14550 functions.
14551 (known_window_types): New global.
14552 (tui_get_window_by_name): Reimplement.
14553 (initialize_known_windows): New function.
14554 (validate_window_name): Rewrite.
14555 (_initialize_tui_layout): Call initialize_known_windows.
14556
14557 2020-02-22 Tom Tromey <tom@tromey.com>
14558
14559 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
14560 Remove constants.
14561 * tui/tui-winsource.h (struct tui_source_window_base)
14562 <tui_source_window_base>: Remove parameter.
14563 * tui/tui-winsource.c
14564 (tui_source_window_base::tui_source_window_base): Remove
14565 parameter.
14566 (tui_source_window_base::refill): Update.
14567 * tui/tui-stack.h (struct tui_locator_window)
14568 <tui_locator_window>: Update.
14569 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
14570 Default the constructor.
14571 * tui/tui-regs.h (struct tui_data_item_window)
14572 <tui_data_item_window>: Default the constructor.
14573 (struct tui_data_window) <tui_data_window>: Likewise.
14574 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
14575 Default the constructor.
14576 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
14577 Default the constructor.
14578 <type>: Remove.
14579 (struct tui_win_info) <tui_win_info>: Default the constructor.
14580 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
14581 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
14582 Default the constructor.
14583
14584 2020-02-22 Tom Tromey <tom@tromey.com>
14585
14586 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
14587 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
14588 * tui/tui-win.c (tui_resize_all): Don't call
14589 tui_delete_invisible_windows.
14590 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
14591 done.
14592 (tui_set_layout): Update.
14593 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
14594 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
14595 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
14596
14597 2020-02-22 Tom Tromey <tom@tromey.com>
14598
14599 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
14600 correctly.
14601
14602 2020-02-22 Tom Tromey <tom@tromey.com>
14603
14604 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
14605
14606 2020-02-22 Tom Tromey <tom@tromey.com>
14607
14608 * tui/tui-winsource.h (struct tui_source_window_iterator)
14609 <inner_iterator>: New etytypedef.
14610 <tui_source_window_iterator>: Take "end" parameter.
14611 <tui_source_window_iterator>: Take iterator.
14612 <operator*, advance>: Update.
14613 <m_iter>: Change type.
14614 <m_end>: New field.
14615 (struct tui_source_windows) <begin, end>: Update.
14616 * tui/tui-layout.c (tui_windows): New global.
14617 (tui_apply_current_layout): Clear tui_windows.
14618 (tui_layout_window::apply): Update tui_windows.
14619 * tui/tui-data.h (tui_windows): Declare.
14620 (all_tui_windows): Now inline function.
14621 (class tui_window_iterator, struct all_tui_windows): Remove.
14622
14623 2020-02-22 Tom Tromey <tom@tromey.com>
14624
14625 PR tui/17850:
14626 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
14627 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
14628 "height" argument.
14629 (class tui_layout_window) <get_sizes>: Likewise.
14630 (class tui_layout_split) <tui_layout_split>: Add "vertical"
14631 argument.
14632 <get_sizes>: Add "height" argument.
14633 <m_vertical>: New field.
14634 * tui/tui-layout.c (tui_layout_split::clone): Update.
14635 (tui_layout_split::get_sizes): Add "height" argument.
14636 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
14637 (tui_new_layout_command): Parse "-horizontal".
14638 (_initialize_tui_layout): Update help string.
14639 (tui_layout_split::specification): Add "-horizontal" when needed.
14640 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
14641 argument.
14642 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
14643 New methods.
14644
14645 2020-02-22 Tom Tromey <tom@tromey.com>
14646
14647 * tui/tui-layout.h (enum tui_adjust_result): New.
14648 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
14649 (class tui_layout_window) <adjust_size>: Return
14650 tui_adjust_result. Rewrite.
14651 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
14652 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
14653
14654 2020-02-22 Tom Tromey <tom@tromey.com>
14655
14656 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
14657 parameter and return types.
14658 (class tui_layout_base) <specification>: Add "depth".
14659 (class tui_layout_window) <specification>: Add "depth".
14660 (class tui_layout_split) <specification>: Add "depth".
14661 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
14662 and return types.
14663 (tui_new_layout_command): Parse sub-layouts.
14664 (_initialize_tui_layout): Update help string.
14665 (tui_layout_window::specification): Add "depth".
14666 (add_layout_command): Update.
14667
14668 2020-02-22 Tom Tromey <tom@tromey.com>
14669
14670 * NEWS: Add "tui new-layout" item.
14671 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
14672 Add new-layout command to help text.
14673 (validate_window_name): New function.
14674 (tui_new_layout_command): New function.
14675 (_initialize_tui_layout): Register "new-layout".
14676 (tui_layout_window::specification): New method.
14677 (tui_layout_window::specification): New method.
14678 * tui/tui-layout.h (class tui_layout_base) <specification>: New
14679 method.
14680 (class tui_layout_window) <specification>: New method.
14681 (class tui_layout_split) <specification>: New method.
14682
14683 2020-02-22 Tom Tromey <tom@tromey.com>
14684
14685 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
14686 * tui/tui-win.c (window_name_completer): Update comment.
14687 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
14688 Declare method.
14689 (class tui_layout_window) <replace_window>: Likewise.
14690 (class tui_layout_split) <replace_window>: Likewise.
14691 (tui_set_layout): Don't declare.
14692 (tui_set_initial_layout): Declare function.
14693 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
14694 (asm_regs_layout): New globals.
14695 (tui_current_layout, show_layout): Remove.
14696 (tui_set_layout, tui_add_win_to_layout): Rewrite.
14697 (find_layout, tui_apply_layout): New function.
14698 (layout_completer): Remove.
14699 (tui_next_layout): Reimplement.
14700 (tui_next_layout_command): New function.
14701 (tui_set_initial_layout, tui_prev_layout_command): New functions.
14702 (tui_regs_layout): Reimplement.
14703 (tui_regs_layout_command): New function.
14704 (extract_display_start_addr): Rewrite.
14705 (next_layout, prev_layout): Remove.
14706 (tui_layout_window::replace_window): New method.
14707 (tui_layout_split::replace_window): New method.
14708 (destroy_layout): New function.
14709 (layout_list): New global.
14710 (add_layout_command): New function.
14711 (initialize_layouts): Update.
14712 (tui_layout_command): New function.
14713 (_initialize_tui_layout): Install "layout" commands.
14714 * tui/tui-data.h (enum tui_layout_type): Remove.
14715 (tui_current_layout): Don't declare.
14716
14717 2020-02-22 Tom Tromey <tom@tromey.com>
14718
14719 * tui/tui-regs.c (tui_reg_layout): Remove.
14720 (tui_reg_command): Use tui_regs_layout.
14721 * tui/tui-layout.h (tui_reg_command): Declare.
14722 * tui/tui-layout.c (tui_reg_command): New function.
14723
14724 2020-02-22 Tom Tromey <tom@tromey.com>
14725
14726 * tui/tui.c (tui_rl_delete_other_windows): Call
14727 tui_remove_some_windows.
14728 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
14729 Declare method.
14730 (class tui_layout_window) <remove_windows>: New method.
14731 (class tui_layout_split) <remove_windows>: Declare.
14732 (tui_remove_some_windows): Declare.
14733 * tui/tui-layout.c (tui_remove_some_windows): New function.
14734 (tui_layout_split::remove_windows): New method.
14735
14736 2020-02-22 Tom Tromey <tom@tromey.com>
14737
14738 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
14739 * tui/tui-layout.h (tui_next_layout): Declare.
14740 * tui/tui-layout.c (tui_next_layout): New function.
14741
14742 2020-02-22 Tom Tromey <tom@tromey.com>
14743
14744 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
14745 correct coordinates.
14746
14747 2020-02-22 Tom Tromey <tom@tromey.com>
14748
14749 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
14750 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
14751 DATA_WIN case.
14752
14753 2020-02-22 Tom Tromey <tom@tromey.com>
14754
14755 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
14756 TUI_DISASM_WIN, not tui_win_list.
14757
14758 2020-02-22 Tom Tromey <tom@tromey.com>
14759
14760 * valprint.c (generic_val_print_enum_1)
14761 (val_print_type_code_flags): Style member names.
14762 * rust-lang.c (val_print_struct, rust_print_enum)
14763 (rust_print_struct_def, rust_internal_print_type): Style member
14764 names.
14765 * p-valprint.c (pascal_object_print_value_fields): Style member
14766 names. Only call fprintf_symbol_filtered for static members.
14767 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
14768 * f-valprint.c (f_val_print): Style member names.
14769 * f-typeprint.c (f_type_print_base): Style member names.
14770 * cp-valprint.c (cp_print_value_fields): Style member names. Only
14771 call fprintf_symbol_filtered for static members.
14772 (cp_print_class_member): Style member names.
14773 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
14774 member names.
14775 * ada-valprint.c (ada_print_scalar): Style enum names.
14776 (ada_val_print_enum): Likewise.
14777 * ada-typeprint.c (print_enum_type): Style enum names.
14778
14779 2020-02-21 Tom Tromey <tom@tromey.com>
14780
14781 * psympriv.h (struct partial_symtab): Update comment.
14782
14783 2020-02-21 Tom Tromey <tromey@adacore.com>
14784
14785 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
14786 type is CORE_ADDR.
14787
14788 2020-02-21 Tom de Vries <tdevries@suse.de>
14789
14790 PR gdb/25534
14791 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
14792 if dependencies[i]->user != NULL.
14793
14794 2020-02-21 Ali Tamur <tamur@google.com>
14795
14796 * dwarf2/read.c (dwarf2_name): Add null check.
14797
14798 2020-02-20 Tom Tromey <tom@tromey.com>
14799
14800 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
14801 ">=", in binary search.
14802 (dwarf2_find_containing_comp_unit): New overload.
14803 (run_test): New self-test.
14804 (_initialize_dwarf2_read): Register new test.
14805
14806 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
14807
14808 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
14809 * riscv-tdep.h: Likewise.
14810 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
14811 rv32-only CSR.
14812 * features/riscv/64bit-csr.xml: Regenerated.
14813
14814 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
14815 Tom Tromey <tom@tromey.com>
14816
14817 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
14818 of 'fputc_unfiltered'.
14819 (putchar_unfiltered): Call 'fputc_unfiltered'.
14820 (fputc_unfiltered): Call 'fputs_unfiltered'.
14821
14822 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
14823
14824 * config.in: Regenerate.
14825 * configure: Regenerate.
14826 * configure.ac: Add --with-python-libdir option.
14827 * main.c: Use WITH_PYTHON_LIBDIR.
14828
14829 2020-02-19 Tom Tromey <tom@tromey.com>
14830
14831 * symtab.c (general_symbol_info::compute_and_set_names): Use
14832 obstack_strndup. Simplify call to symbol_set_demangled_name.
14833
14834 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
14835
14836 * dwarf2/read.c (allocate_signatured_type_table,
14837 allocate_dwo_unit_table, allocate_type_unit_groups_table,
14838 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
14839 Remove objfile parameter, update all callers.
14840
14841 2020-02-19 Doug Evans <dje@google.com>
14842
14843 PR rust/25535
14844 * rust-lang.c (rust_print_enum): Apply embedded_offset to
14845 rust_enum_variant calculation.
14846
14847 2020-02-19 Tom Tromey <tromey@adacore.com>
14848
14849 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
14850
14851 2020-02-19 Tom Tromey <tromey@adacore.com>
14852
14853 * ada-lang.c (cache_symbol): Use obstack_strdup.
14854
14855 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
14856
14857 * configure: Regenerate.
14858
14859 2020-02-19 Tom Tromey <tromey@adacore.com>
14860
14861 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
14862 NULL check.
14863
14864 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
14865
14866 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
14867
14868 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
14869
14870 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
14871 if GDBSERVER is not defined.
14872 (riscv_tdesc_cache): Likewise, also store const target_desc.
14873 (STATIC_IN_GDB): Define.
14874 (riscv_create_target_description): Update declaration with
14875 STATIC_IN_GDB.
14876 (riscv_lookup_target_description): New function, only define if
14877 GDBSERVER is not defined.
14878 * arch/riscv.h (riscv_create_target_description): Declare only
14879 when GDBSERVER is defined.
14880 (riscv_lookup_target_description): New declaration when GDBSERVER
14881 is not defined.
14882 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
14883 (riscv_linux_read_features): ...this, and return
14884 riscv_gdbarch_features instead of target_desc.
14885 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
14886 (riscv_linux_read_description): Rename to...
14887 (riscv_linux_read_features): ...this.
14888 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
14889 Update to use riscv_gdbarch_features and
14890 riscv_lookup_target_description.
14891 * riscv-tdep.c (riscv_find_default_target_description): Use
14892 riscv_lookup_target_description instead of
14893 riscv_create_target_description.
14894
14895 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14896
14897 * valprint.c (generic_val_print_enum_1): When printing a flag
14898 enum with value 0 and there is no enumerator with value 0, print
14899 just "0" instead of "(unknown: 0x0)".
14900
14901 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14902
14903 * valprint.c (generic_val_print_enum_1): Print unknown part of
14904 flag enum in hex.
14905
14906 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14907
14908 * dwarf2/read.c (update_enumeration_type_from_children): Allow
14909 flag enums to contain duplicate enumerators.
14910 * valprint.c (generic_val_print_enum_1): Update comment.
14911
14912 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14913
14914 * dwarf2/read.c: Include "count-one-bits.h".
14915 (update_enumeration_type_from_children): If an enumerator has
14916 multiple bits set, don't treat the enumeration as a "flag enum".
14917 * valprint.c (generic_val_print_enum_1): Assert that enumerators
14918 of flag enums have 0 or 1 bit set.
14919
14920 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
14921
14922 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
14923 conversion.
14924 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14925 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
14926 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14927 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
14928 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14929
14930 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14931
14932 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
14933
14934 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
14935
14936 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
14937 displaced_step_closure_up.
14938 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
14939 (struct displaced_step_closure_up):
14940 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14941 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
14942 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
14943 Likewise.
14944 * gdbarch.sh (displaced_step_copy_insn): Likewise.
14945 * gdbarch.c, gdbarch.h: Re-generate.
14946 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
14947 displaced_step_closure_up.
14948 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14949 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
14950 * infrun.h (displaced_step_closure_up): New type alias.
14951 (struct displaced_step_inferior_state) <step_closure>: Change
14952 type to displaced_step_closure_up.
14953 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
14954 displaced_step_closure_up.
14955 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14956
14957 2020-02-14 Tom Tromey <tom@tromey.com>
14958
14959 * minidebug.c (gnu_debug_key): New global.
14960 (find_separate_debug_file_in_section): Use it.
14961
14962 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
14963
14964 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
14965 std::unique_ptr.
14966 * gdbarch.c: Re-generate.
14967 * gdbarch.h: Re-generate.
14968 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
14969 change.
14970 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
14971 type to std::unique_ptr.
14972 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
14973 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14974 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
14975 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
14976 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
14977 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14978 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
14979 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
14980 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14981
14982 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
14983
14984 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
14985 std::unique_ptr.
14986 (displaced_step_clear): Rename to...
14987 (displaced_step_reset): ... this. Just call displaced->reset ().
14988 (displaced_step_clear_cleanup): Rename to...
14989 (displaced_step_reset_cleanup): ... this.
14990 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
14991 (displaced_step_fixup): Likewise.
14992 (resume_1): Likewise.
14993 (handle_inferior_event): Restore child's memory before calling
14994 displaced_step_fixup on the parent.
14995 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
14996 to std::unique_ptr.
14997 <step_closure>: Change type to std::unique_ptr.
14998
14999 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
15000
15001 * arm-tdep.c: Include count-one-bits.h.
15002 (cleanup_block_store_pc): Use count_one_bits.
15003 (cleanup_block_load_pc): Use count_one_bits.
15004 (arm_copy_block_xfer): Use count_one_bits.
15005 (thumb2_copy_block_xfer): Use count_one_bits.
15006 (thumb_copy_pop_pc_16bit): Use count_one_bits.
15007 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
15008 (thumb_get_next_pcs_raw): Use count_one_bits.
15009 (arm_get_next_pcs_raw): Use count_one_bits_l.
15010 * arch/arm.c (bitcount): Remove.
15011 * arch/arm.h (bitcount): Remove.
15012
15013 2020-02-14 Tom Tromey <tromey@adacore.com>
15014
15015 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
15016 Update.
15017 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
15018 * dwarf2/loc.c (call_site_find_chain_1): Return
15019 unique_xmalloc_ptr.
15020 (call_site_find_chain): Likewise.
15021
15022 2020-02-14 Richard Biener <rguenther@suse.de>
15023
15024 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
15025 on expression with division operators.
15026
15027 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
15028
15029 * MAINTAINERS (Write After Approval): Adding myself.
15030
15031 2020-02-12 Tom Tromey <tom@tromey.com>
15032
15033 * event-loop.c (event_data, gdb_event, event_handler_func):
15034 Remove.
15035
15036 2020-02-12 Tom Tromey <tom@tromey.com>
15037
15038 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
15039 (dwarf2_frame_objfile_data): Add comment.
15040 (find_comp_unit, set_comp_unit): New functions.
15041 (dwarf2_frame_find_fde): Use find_comp_unit.
15042 (dwarf2_build_frame_info): Use set_comp_unit.
15043
15044 2020-02-12 Tom Tromey <tom@tromey.com>
15045
15046 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
15047 (comp_unit): Don't initialize objfile.
15048 (execute_cfa_program): Add text_offset parameter.
15049 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
15050 (dwarf2_frame_cache): Update.
15051 (dwarf2_build_frame_info): Don't set "objfile" member.
15052
15053 2020-02-12 Tom Tromey <tom@tromey.com>
15054
15055 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
15056 (decode_frame_entry): Likewise.
15057 (dwarf2_build_frame_info): Update.
15058
15059 2020-02-12 Tom Tromey <tom@tromey.com>
15060
15061 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
15062 (decode_frame_entry_1): Use the comp_unit obstack.
15063
15064 2020-02-12 Tom Tromey <tom@tromey.com>
15065
15066 * dwarf2/frame.c (struct comp_unit): Add initializers and
15067 constructor.
15068 (dwarf2_frame_objfile_data): Store a comp_unit.
15069 (dwarf2_frame_find_fde): Update.
15070 (dwarf2_build_frame_info): Use "new".
15071
15072 2020-02-12 Tom Tromey <tom@tromey.com>
15073
15074 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
15075 (dwarf2_fde_table): Typedef for std::vector.
15076 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
15077 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
15078 (decode_frame_entry): Update.
15079 (dwarf2_build_frame_info): Use "new".
15080
15081 2020-02-12 Christian Biesinger <cbiesinger@google.com>
15082
15083 * arm-tdep.c (arm_gdbarch_init): Update.
15084 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
15085 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
15086 have_neon, is_m>: Change to bool.
15087
15088 2020-02-12 Christian Biesinger <cbiesinger@google.com>
15089
15090 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
15091
15092 2020-02-12 Tom Tromey <tom@tromey.com>
15093
15094 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
15095
15096 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
15097
15098 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
15099 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
15100
15101 2020-02-11 Tom Tromey <tom@tromey.com>
15102
15103 * psymtab.h: Update comment.
15104
15105 2020-02-11 Tom Tromey <tom@tromey.com>
15106
15107 * gdb_obstack.h (struct auto_obstack): Use
15108 DISABLE_COPY_AND_ASSIGN.
15109
15110 2020-02-11 Tom Tromey <tom@tromey.com>
15111
15112 * dwarf2/frame.h (struct objfile): Don't forward declare.
15113
15114 2020-02-11 Christian Biesinger <cbiesinger@google.com>
15115
15116 * cris-tdep.c (cris_supply_gregset): Change signature to match
15117 what struct regset expects.
15118 (cris_regset): New struct.
15119 (fetch_core_registers): Remove.
15120 (cris_iterate_over_regset_sections): New function.
15121 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
15122 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
15123
15124 2020-02-11 Christian Biesinger <cbiesinger@google.com>
15125
15126 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
15127 registers.
15128
15129 2020-02-11 Christian Biesinger <cbiesinger@google.com>
15130
15131 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
15132
15133 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
15134
15135 * configure: Re-generate.
15136
15137 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
15138
15139 * configure: Re-generate.
15140
15141 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
15142
15143 * acinclude: Update warning.m4 path.
15144 * warning.m4: Move to gdbsupport.
15145
15146 2020-02-11 Tom Tromey <tromey@adacore.com>
15147
15148 * remote.c (remote_console_output): Update.
15149 * printcmd.c (printf_command): Update.
15150 * event-loop.c (gdb_wait_for_event): Update.
15151 * linux-nat.c (sigchld_handler): Update.
15152 * remote-sim.c (gdb_os_write_stdout): Update.
15153 (gdb_os_flush_stdout): Update.
15154 (gdb_os_flush_stderr): Update.
15155 (gdb_os_write_stderr): Update.
15156 * exceptions.c (print_exception): Update.
15157 * remote-fileio.c (remote_fileio_func_read): Update.
15158 (remote_fileio_func_write): Update.
15159 * tui/tui.c (tui_enable): Update.
15160 * tui/tui-interp.c (tui_interp::init): Update.
15161 * utils.c (init_page_info): Update.
15162 (putchar_unfiltered, fputc_unfiltered): Update.
15163 (gdb_flush): Update.
15164 (emit_style_escape): Update.
15165 (flush_wrap_buffer, fputs_maybe_filtered): Update.
15166 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
15167 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
15168 (stderr_file::write): Update.
15169 (stderr_file::puts): Update.
15170 * ui-file.h (ui_file_isatty, ui_file_write)
15171 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
15172 (ui_file_puts): Don't declare.
15173
15174 2020-02-10 Tom de Vries <tdevries@suse.de>
15175
15176 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
15177 sentinel to char *.
15178
15179 2020-02-09 Tom de Vries <tdevries@suse.de>
15180
15181 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
15182 filename if it matches "<artificial>".
15183
15184 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
15185
15186 * windows-tdep.c (struct enum_value_name): New struct.
15187 (create_enum): New function.
15188 (windows_get_siginfo_type): Create and use enum types.
15189
15190 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
15191
15192 * NEWS: Mention $_siginfo support for Windows.
15193 * windows-nat.c (handle_exception): Set siginfo_er.
15194 (windows_nat_target::mourn_inferior): Reset siginfo_er.
15195 (windows_xfer_siginfo): New function.
15196 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
15197 * windows-tdep.c (struct windows_gdbarch_data): New struct.
15198 (init_windows_gdbarch_data): New function.
15199 (get_windows_gdbarch_data): New function.
15200 (windows_get_siginfo_type): New function.
15201 (windows_init_abi): Register windows_get_siginfo_type.
15202 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
15203
15204 2020-02-08 Tom Tromey <tom@tromey.com>
15205
15206 * dwarf2/read.c (class cutu_reader) <cutu_reader,
15207 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
15208 <keep>: Declare method.
15209 <m_keep>: Remove member.
15210 <~cutu_reader>: Remove.
15211 (cutu_reader::init_tu_and_read_dwo_dies): Update.
15212 (cutu_reader::cutu_reader): Update.
15213 (cutu_reader::keep): Rename from ~cutu_reader.
15214 (process_psymtab_comp_unit, build_type_psymtabs_1)
15215 (process_skeletonless_type_unit, load_partial_comp_unit)
15216 (load_full_comp_unit, dwarf2_read_addr_index)
15217 (read_signatured_type): Update.
15218
15219 2020-02-08 Tom Tromey <tom@tromey.com>
15220
15221 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
15222 "want_partial_unit" parameter.
15223 (process_psymtab_comp_unit): Change want_partial_unit to bool.
15224 Inline check for DW_TAG_partial_unit.
15225 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
15226
15227 2020-02-08 Tom Tromey <tom@tromey.com>
15228
15229 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
15230 read.c.
15231 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
15232 read.c.
15233
15234 2020-02-08 Tom Tromey <tom@tromey.com>
15235
15236 * dwarf2/read.c (read_address): Move to comp-unit.c.
15237 (dwarf2_rnglists_process, dwarf2_ranges_process)
15238 (read_attribute_value, dwarf_decode_lines_1)
15239 (var_decode_location, decode_locdesc): Update.
15240 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
15241 read.c. Remove "cu" parameter.
15242 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
15243 method.
15244
15245 2020-02-08 Tom Tromey <tom@tromey.com>
15246
15247 * dwarf2/read.c (read_attribute_value, read_indirect_string)
15248 (read_indirect_line_string): Update.
15249 * dwarf2/comp-unit.c (read_offset): Remove.
15250 (read_comp_unit_head): Update.
15251 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
15252 method.
15253 (read_offset): Don't declare.
15254
15255 2020-02-08 Tom Tromey <tom@tromey.com>
15256
15257 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
15258 * dwarf2/read.c (struct comp_unit_head): Move to
15259 dwarf2/comp-unit.h.
15260 (enum class rcuh_kind): Move to comp-unit.h.
15261 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
15262 (read_comp_unit_head, error_check_comp_unit_head)
15263 (read_and_check_comp_unit_head): Move to comp-unit.c.
15264 (read_offset, dwarf_unit_type_name): Likewise.
15265 (create_debug_type_hash_table, read_cutu_die_from_dwo)
15266 (cutu_reader::cutu_reader, read_call_site_scope)
15267 (find_partial_die, follow_die_offset): Update.
15268 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
15269
15270 2020-02-08 Tom Tromey <tom@tromey.com>
15271
15272 * dwarf2/read.c (read_offset_1): Move to leb.c.
15273 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
15274 (dwarf_decode_macro_bytes): Update.
15275 * dwarf2/leb.c (read_offset): Rename; move from read.c.
15276 * dwarf2/leb.h (read_offset): Declare.
15277
15278 2020-02-08 Tom Tromey <tom@tromey.com>
15279
15280 * dwarf2/read.c (dwarf2_section_size): Remove.
15281 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
15282 Update.
15283 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
15284
15285 2020-02-08 Tom Tromey <tom@tromey.com>
15286
15287 * dwarf2/read.c (read_initial_length): Move to leb.c.
15288 * dwarf2/leb.h (read_initial_length): Declare.
15289 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
15290 handle_nonstd parameter.
15291 * dwarf2/frame.c (read_initial_length): Remove.
15292 (decode_frame_entry_1): Update.
15293
15294 2020-02-08 Tom Tromey <tom@tromey.com>
15295
15296 * dwarf2/loc.c (dwarf2_find_location_expression)
15297 (dwarf_evaluate_loc_desc::get_tls_address)
15298 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
15299 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
15300 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
15301 (dwarf2_compile_property_to_c)
15302 (dwarf2_loc_desc_get_symbol_read_needs)
15303 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
15304 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
15305 (loclist_describe_location, loclist_tracepoint_var_ref)
15306 (loclist_generate_c_location): Update.
15307 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
15308 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
15309 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
15310 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
15311 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
15312 (dwarf2_per_cu_data::addr_size)
15313 (dwarf2_per_cu_data::ref_addr_size)
15314 (dwarf2_per_cu_data::text_offset)
15315 (dwarf2_per_cu_data::addr_type): Now methods.
15316 (per_cu_header_read_in): Make per_cu "const".
15317 (dwarf2_version): Remove.
15318 (dwarf2_per_cu_data::int_type): Now a method.
15319 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
15320 (set_die_type, read_array_type, read_subrange_index_type)
15321 (read_tag_string_type, read_subrange_type): Update.
15322 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
15323 offset_size, ref_addr_size, text_offset, addr_type, version,
15324 objfile, int_type, addr_sized_int_type>: Declare methods.
15325
15326 2020-02-08 Tom Tromey <tom@tromey.com>
15327
15328 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
15329 Move earlier.
15330
15331 2020-02-08 Tom Tromey <tom@tromey.com>
15332
15333 * dwarf2/read.h (dwarf_line_debug): Declare.
15334 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
15335 * dwarf2/read.c: Move line_header code to new files.
15336 (dwarf_line_debug): No longer static.
15337 * dwarf2/line-header.c: New file.
15338 * dwarf2/line-header.h: New file.
15339
15340 2020-02-08 Tom Tromey <tom@tromey.com>
15341
15342 * dwarf2/read.c (struct line_header) <file_full_name,
15343 file_file_name>: Return unique_xmalloc_ptr.
15344 (line_header::file_file_name): Update.
15345 (line_header::file_full_name): Update.
15346 (dw2_get_file_names_reader): Update.
15347 (macro_start_file): Update.
15348
15349 2020-02-08 Tom Tromey <tom@tromey.com>
15350
15351 * dwarf2/read.c (struct line_header) <file_full_name,
15352 file_file_name>: Declare methods.
15353 (dw2_get_file_names_reader): Update.
15354 (file_file_name): Now a method.
15355 (file_full_name): Likewise.
15356 (macro_start_file): Update.
15357
15358 2020-02-08 Tom Tromey <tom@tromey.com>
15359
15360 * dwarf2/read.c (dwarf_always_disassemble)
15361 (show_dwarf_always_disassemble): Move to loc.c.
15362 (_initialize_dwarf2_read): Move "always-disassemble" registration
15363 to loc.c.
15364 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
15365 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
15366 static.
15367 (show_dwarf_always_disassemble): Move from read.c.
15368 (_initialize_dwarf2loc): Move always-disassemble from read.c.
15369
15370 2020-02-08 Tom Tromey <tom@tromey.com>
15371
15372 * dwarf2/read.c (~dwarf2_per_objfile): Update.
15373 (create_quick_file_names_table): Return htab_up.
15374 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
15375 Update.
15376 * dwarf2/read.h (struct dwarf2_per_objfile)
15377 <quick_file_names_table>: Now htab_up.
15378
15379 2020-02-08 Tom Tromey <tom@tromey.com>
15380
15381 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
15382
15383 2020-02-08 Tom Tromey <tom@tromey.com>
15384
15385 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
15386 Rewrite.
15387 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
15388 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
15389 (abbrev_table::abbrev_table): No longer inline.
15390 (ABBREV_HASH_SIZE): Remove.
15391 (abbrev_table::m_abbrevs): Now an htab_up.
15392
15393 2020-02-08 Tom Tromey <tom@tromey.com>
15394
15395 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
15396 (cutu_reader): Update.
15397 (build_type_psymtabs_1): Update.
15398 * dwarf2/abbrev.c (abbrev_table::read): Rename.
15399 (abbrev_table::alloc_abbrev): Update.
15400 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
15401 (abbrev_table::read): New static method, renamed from
15402 abbrev_table_read_table.
15403 (abbrev_table::alloc_abbrev)
15404 (abbrev_table::add_abbrev): Now private.
15405 (abbrev_table::abbrev_table): Now private.
15406 (abbrev_table::m_abbrev_obstack): Now private. Rename.
15407
15408 2020-02-08 Tom Tromey <tom@tromey.com>
15409
15410 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
15411 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
15412 htab_up.
15413
15414 2020-02-08 Tom Tromey <tom@tromey.com>
15415
15416 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
15417 htab_up.
15418 (lookup_dwo_unit_in_dwp): Update.
15419 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
15420 on obstack.
15421
15422 2020-02-08 Tom Tromey <tom@tromey.com>
15423
15424 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
15425 obstack.
15426
15427 2020-02-08 Tom Tromey <tom@tromey.com>
15428
15429 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
15430 line_header_hash.
15431 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
15432 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
15433 Change type to htab_up.
15434
15435 2020-02-08 Tom Tromey <tom@tromey.com>
15436
15437 * dwarf2/read.c (allocate_type_unit_groups_table): Return
15438 htab_up. Don't allocate on obstack.
15439 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
15440 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
15441 Change type to htab_up.
15442
15443 2020-02-08 Tom Tromey <tom@tromey.com>
15444
15445 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
15446 Change type to htab_up.
15447 * dwarf2/read.c (create_signatured_type_table_from_index)
15448 (create_signatured_type_table_from_debug_names)
15449 (create_all_type_units, add_type_unit)
15450 (lookup_dwo_signatured_type, lookup_signatured_type)
15451 (process_skeletonless_type_unit): Update.
15452 (create_debug_type_hash_table, create_debug_types_hash_table):
15453 Change type of types_htab.
15454 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
15455 htab_up. Don't allocate on obstack.
15456 (create_cus_hash_table): Change type of cus_htab parameter.
15457 (struct dwo_file) <cus, tus>: Now htab_up.
15458 (lookup_dwo_signatured_type, lookup_dwo_cutu)
15459 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
15460 (queue_and_load_all_dwo_tus): Update.
15461 * dwarf2/index-write.c (write_gdbindex): Update.
15462 (write_debug_names): Update.
15463
15464 2020-02-08 Tom Tromey <tom@tromey.com>
15465
15466 * dwarf2/read.h (struct dwarf2_queue_item): Move from
15467 dwarf2/read.c. Remove "next" member. Add constructor ntad
15468 destructor.
15469 (struct dwarf2_per_objfile) <queue>: New member.
15470 * dwarf2/read.c (struct dwarf2_queue_item): Move to
15471 dwarf2/read.h.
15472 (dwarf2_queue, dwarf2_queue_tail): Remove.
15473 (class dwarf2_queue_guard): Add parameter to constructor. Use
15474 DISABLE_COPY_AND_ASSIGN.
15475 <m_per_objfile>: New member.
15476 <~dwarf2_queue_guard>: Rewrite.
15477 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
15478 Update.
15479 (~dwarf2_queue_item): New.
15480
15481 2020-02-08 Tom Tromey <tom@tromey.com>
15482
15483 * dwarf2/read.c (struct die_info) <has_children>: New member.
15484 (dw2_get_file_names_reader): Remove has_children.
15485 (dw2_get_file_names): Update.
15486 (read_cutu_die_from_dwo): Remove has_children.
15487 (cutu_reader::init_tu_and_read_dwo_dies)
15488 (cutu_reader::cutu_reader): Update.
15489 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
15490 Remove has_children.
15491 (build_type_psymtabs_1, process_skeletonless_type_unit)
15492 (load_partial_comp_unit, load_full_comp_unit): Update.
15493 (create_dwo_cu_reader): Remove has_children.
15494 (create_cus_hash_table, read_die_and_children): Update.
15495 (read_full_die_1,read_full_die): Remove has_children.
15496 (read_signatured_type): Update.
15497 (class cutu_reader) <has_children>: Remove.
15498
15499 2020-02-08 Tom Tromey <tom@tromey.com>
15500
15501 * dwarf2/expr.c: Rename from dwarf2expr.c.
15502 * dwarf2/expr.h: Rename from dwarf2expr.h.
15503 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
15504 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
15505 * dwarf2/frame.c: Rename from dwarf2-frame.c.
15506 * dwarf2/frame.h: Rename from dwarf2-frame.h.
15507 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
15508 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
15509 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
15510 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
15511 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
15512 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
15513 * dwarf2/loc.c: Rename from dwarf2loc.c.
15514 * dwarf2/loc.h: Rename from dwarf2loc.h.
15515 * dwarf2/read.c: Rename from dwarf2read.c.
15516 * dwarf2/read.h: Rename from dwarf2read.h.
15517 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
15518 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
15519 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
15520 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
15521 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
15522 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
15523 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
15524 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
15525 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
15526 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
15527 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
15528 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
15529 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
15530 Update.
15531 * Makefile.in (COMMON_SFILES): Update.
15532 (HFILES_NO_SRCDIR): Update.
15533
15534 2020-02-08 Tom Tromey <tom@tromey.com>
15535
15536 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
15537 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
15538
15539 2020-02-08 Tom Tromey <tom@tromey.com>
15540
15541 * dwarf2read.h (struct die_info): Don't declare.
15542
15543 2020-02-08 Tom Tromey <tom@tromey.com>
15544
15545 * dwarf2read.h (die_info_ptr): Remove typedef.
15546
15547 2020-02-08 Tom Tromey <tom@tromey.com>
15548
15549 * dwarf2read.c (read_call_site_scope)
15550 (handle_data_member_location, dwarf2_add_member_fn)
15551 (mark_common_block_symbol_computed, read_common_block)
15552 (attr_to_dynamic_prop, partial_die_info::read)
15553 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
15554 (dwarf2_symbol_mark_computed, set_die_type): Update.
15555 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
15556 method.
15557 (attr_form_is_block): Don't declare.
15558 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
15559
15560 2020-02-08 Tom Tromey <tom@tromey.com>
15561
15562 * dwarf2read.c (dwarf2_find_base_address, )
15563 (read_call_site_scope, rust_containing_type)
15564 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
15565 (handle_data_member_location, dwarf2_add_member_fn)
15566 (get_alignment, read_structure_type, process_structure_scope)
15567 (mark_common_block_symbol_computed, read_common_block)
15568 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
15569 (partial_die_info::read, read_attribute_value, new_symbol)
15570 (lookup_die_type, dwarf2_get_ref_die_offset)
15571 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
15572 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
15573 (dwarf2_symbol_mark_computed): Update.
15574 * dwarf2/attribute.h (struct attribute) <value_as_address,
15575 form_is_section_offset, form_is_constant, form_is_ref>: Declare
15576 methods.
15577 (value_as_address, attr_form_is_section_offset)
15578 (attr_form_is_constant, attr_form_is_ref): Don't declare.
15579 * dwarf2/attribute.c (attribute::value_as_address)
15580 (attribute::form_is_section_offset, attribute::form_is_constant)
15581 (attribute::form_is_ref): Now methods.
15582
15583 2020-02-08 Tom Tromey <tom@tromey.com>
15584
15585 * dwarf2read.c (struct attribute, DW_STRING)
15586 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
15587 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
15588 (attr_form_is_block, attr_form_is_section_offset)
15589 (attr_form_is_constant, attr_form_is_ref): Move.
15590 * dwarf2/attribute.h: New file.
15591 * dwarf2/attribute.c: New file, from dwarf2read.c.
15592 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
15593
15594 2020-02-08 Tom Tromey <tom@tromey.com>
15595
15596 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
15597 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
15598 Move.
15599 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
15600 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
15601 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
15602 abbrev.c.
15603 * dwarf2/abbrev.h: New file.
15604 * dwarf2/abbrev.c: New file, from dwarf2read.c.
15605 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
15606
15607 2020-02-08 Tom Tromey <tom@tromey.com>
15608
15609 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
15610 (dwarf2_section_size, dwarf2_get_section_info)
15611 (create_signatured_type_table_from_debug_names)
15612 (create_addrmap_from_aranges, read_debug_names_from_section)
15613 (get_gdb_index_contents_from_section, read_comp_unit_head)
15614 (error_check_comp_unit_head, read_abbrev_offset)
15615 (create_debug_type_hash_table, init_cu_die_reader)
15616 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
15617 (read_comp_units_from_section, create_cus_hash_table)
15618 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
15619 (create_dwp_v2_section, dwarf2_rnglists_process)
15620 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
15621 (abbrev_table_read_table, read_indirect_string_at_offset_from)
15622 (read_indirect_string_from_dwz, read_addr_index_1)
15623 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
15624 (dwarf_decode_macro_bytes, dwarf_decode_macros)
15625 (fill_in_loclist_baton): Update.
15626 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
15627 get_containing_section, get_bfd_owner, get_bfd_section,
15628 get_file_name, get_id, get_flags, empty, read>: Declare methods.
15629 (dwarf2_read_section, get_section_name, get_section_file_name)
15630 (get_containing_section, get_section_bfd_owner)
15631 (get_section_bfd_section, get_section_name, get_section_file_name)
15632 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
15633 declare.
15634 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
15635 (dwarf2_section_info::get_bfd_owner)
15636 (dwarf2_section_info::get_bfd_section)
15637 (dwarf2_section_info::get_name)
15638 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
15639 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
15640 (dwarf2_section_info::read): Now methods.
15641 * dwarf-index-write.c (class debug_names): Update.
15642
15643 2020-02-08 Tom Tromey <tom@tromey.com>
15644
15645 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
15646 Move to dwarf2/section.h.
15647 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
15648 (get_section_bfd_section, get_section_name)
15649 (get_section_file_name, get_section_id, get_section_flags)
15650 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
15651 dwarf2/section.c.
15652 * dwarf2/section.h: New file.
15653 * dwarf2/section.c: New file, from dwarf2read.c.
15654 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
15655
15656 2020-02-08 Tom Tromey <tom@tromey.com>
15657
15658 * dwarf2read.h (read_unsigned_leb128): Don't declare.
15659 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
15660 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
15661 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
15662 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
15663 * dwarf2/leb.h: New file, from dwarf2read.c.
15664 * dwarf2/leb.c: New file, from dwarf2read.c.
15665 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
15666 Remove.
15667 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
15668 (COMMON_SFILES): Add dwarf2/leb.c.
15669
15670 2020-02-08 Joel Brobecker <brobecker@adacore.com>
15671
15672 GDB 9.1 released.
15673
15674 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
15675
15676 PR gdb/25190:
15677 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
15678 * gdb/remote.c (remote_console_output): Update.
15679 * gdb/ui-file.c (fputs_unfiltered): Rename to...
15680 (ui_file_puts): ...this.
15681 * gdb/ui-file.h (ui_file_puts): Add declaration.
15682 * gdb/utils.c (emit_style_escape): Update.
15683 (flush_wrap_buffer): Update.
15684 (fputs_maybe_filtered): Update.
15685 (fputs_unfiltered): Add function.
15686
15687 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
15688
15689 * gdb/event-loop.c (gdb_wait_for_event): Update.
15690 * gdb/printcmd.c (printf_command): Update.
15691 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
15692 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
15693 (gdb_os_flush_stderr): Update.
15694 * gdb/remote.c (remote_console_output): Update.
15695 * gdb/ui-file.c (gdb_flush): Rename to...
15696 (ui_file_flush): ...this.
15697 (stderr_file::write): Update.
15698 (stderr_file::puts): Update.
15699 * gdb/ui-file.h (gdb_flush): Rename to...
15700 (ui_file_flush): ...this.
15701 * gdb/utils.c (gdb_flush): Add function.
15702 * gdb/utils.h (gdb_flush): Add declaration.
15703
15704 2020-02-07 Tom Tromey <tromey@adacore.com>
15705
15706 PR breakpoints/24915:
15707 * source.c (find_and_open_source): Do not check basenames_may_differ.
15708
15709 2020-02-07 Tom Tromey <tom@tromey.com>
15710
15711 * README: Update gdbserver documentation.
15712 * gdbserver: Move to top level.
15713 * configure.tgt (build_gdbserver): Remove.
15714 * configure.ac: Remove --enable-gdbserver.
15715 * configure: Rebuild.
15716 * Makefile.in (distclean): Don't mention gdbserver.
15717
15718 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
15719
15720 * source-cache.c (source_cache::ensure): Surround
15721 get_plain_source_lines with a try/catch.
15722 (source_cache::get_line_charpos): Get rid of try/catch
15723 and only check for the return value of "ensure".
15724 * tui/tui-source.c (tui_source_window::set_contents):
15725 Simplify "nlines" calculation.
15726
15727 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
15728
15729 * MAINTAINERS (Write After Approval): Add myself.
15730
15731 2020-02-05 Christian Biesinger <cbiesinger@google.com>
15732
15733 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
15734 function call.
15735
15736 2020-02-05 Christian Biesinger <cbiesinger@google.com>
15737
15738 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
15739
15740 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
15741
15742 * nat/riscv-linux-tdesc.h: New file.
15743 * nat/riscv-linux-tdesc.c: New file, taking code from...
15744 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
15745 ... here.
15746 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
15747 NATDEPFILES.
15748
15749 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
15750
15751 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
15752 we don't set the fake simulator ptid to the null_ptid.
15753
15754 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
15755
15756 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
15757 * gdbthread.h (class thread_info) <resumed>: Likewise.
15758 * infrun.c (resume_1): Likewise.
15759 (proceed): Likewise.
15760 (infrun_thread_stop_requested): Likewise.
15761 (stop_all_threads): Likewise.
15762 (handle_inferior_event): Likewise.
15763 (restart_threads): Likewise.
15764 (finish_step_over): Likewise.
15765 (keep_going_stepped_thread): Likewise.
15766 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
15767 (linux_handle_extended_wait): Likewise.
15768 * record-btrace.c (get_thread_current_frame_id): Likewise.
15769 * record-full.c (record_full_wait_1): Likewise.
15770 * remote.c (remote_target::process_initial_stop_replies): Likewise.
15771 * target.c (target_resume): Likewise.
15772 * thread.c (set_running_thread): Likewise.
15773
15774 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
15775
15776 * f-valprint.c (f77_print_array_1): Changed datatype of index
15777 variable to LONGEST from int to enable it to contain bound
15778 values correctly.
15779
15780 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
15781
15782 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
15783 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
15784 offsets according to FLEN determined.
15785 (riscv_linux_nat_target::read_description): Determine FLEN
15786 dynamically.
15787 (riscv_linux_nat_target::fetch_registers): Size regset buffer
15788 according to FLEN determined.
15789 (riscv_linux_nat_target::store_registers): Likewise.
15790
15791 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
15792
15793 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
15794 when reg->group is empty and reggroup is not.
15795
15796 2020-01-31 Tom Tromey <tromey@adacore.com>
15797
15798 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
15799 Call beneath target's mourn_inferior after unpushing.
15800
15801 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
15802
15803 PR tui/9765
15804 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
15805 have enough lines to fill the screen, still return the lowest
15806 address we found.
15807
15808 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
15809
15810 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
15811 '-', '<', and '>' commands.
15812
15813 2020-01-29 Pedro Alves <palves@redhat.com>
15814 Sergio Durigan Junior <sergiodj@redhat.com>
15815
15816 * infcmd.c (construct_inferior_arguments): Assert that
15817 'argc' is greater than 0.
15818
15819 2020-01-29 Luis Machado <luis.machado@linaro.org>
15820
15821 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
15822 (BRK_INSN_MASK): Define to 0xd4200000.
15823 (aarch64_program_breakpoint_here_p): New function.
15824 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
15825 * arch-utils.c (default_program_breakpoint_here_p): Moved from
15826 breakpoint.c.
15827 * arch-utils.h (default_program_breakpoint_here_p): Moved from
15828 breakpoint.h
15829 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
15830 call gdbarch_program_breakpoint_here_p.
15831 (program_breakpoint_here): Moved to arch-utils.c, renamed to
15832 default_program_breakpoint_here_p, changed return type to bool and
15833 simplified.
15834 * breakpoint.h (program_breakpoint_here): Moved prototype to
15835 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
15836 return type to bool.
15837 * gdbarch.c: Regenerate.
15838 * gdbarch.h: Regenerate.
15839 * gdbarch.sh (program_breakpoint_here_p): New method.
15840 * infrun.c (handle_signal_stop): Call
15841 gdbarch_program_breakpoint_here_p.
15842
15843 2020-01-26 Tom Tromey <tom@tromey.com>
15844
15845 * ctfread.c (struct ctf_fp_info): Reindent.
15846 (_initialize_ctfread): Remove.
15847
15848 2020-01-26 Tom Tromey <tom@tromey.com>
15849
15850 * psymtab.c (partial_map_expand_apply)
15851 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
15852 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
15853 (psym_print_stats, psym_expand_symtabs_for_function)
15854 (psym_map_symbol_filenames, psym_map_matching_symbols)
15855 (psym_expand_symtabs_matching)
15856 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
15857 (maintenance_check_psymtabs): Use new methods.
15858 * psympriv.h (struct partial_symtab) <readin_p,
15859 get_compunit_symtab>: New methods.
15860 <readin, compunit_symtab>: Remove members.
15861 (struct standard_psymtab): New.
15862 (struct legacy_psymtab): Derive from standard_psymtab.
15863 * dwarf2read.h (struct dwarf2_psymtab): Derive from
15864 standard_psymtab.
15865 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
15866
15867 2020-01-26 Tom Tromey <tom@tromey.com>
15868
15869 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
15870 read_dependencies. Add assert.
15871 * psymtab.c (partial_symtab::read_dependencies): New method.
15872 * psympriv.h (struct partial_symtab) <read_dependencies>: New
15873 method.
15874 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
15875 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
15876 read_dependencies.
15877 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
15878 Add assert.
15879
15880 2020-01-26 Tom Tromey <tom@tromey.com>
15881
15882 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
15883 Call expand_psymtab.
15884 (xcoff_read_symtab): Call expand_psymtab.
15885 (xcoff_start_psymtab, xcoff_end_psymtab): Set
15886 legacy_expand_psymtab.
15887 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
15888 method.
15889 (struct legacy_psymtab) <expand_psymtab>: Implement.
15890 <legacy_expand_psymtab>: New member.
15891 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
15892 (parse_partial_symbols): Set legacy_expand_psymtab.
15893 (psymtab_to_symtab_1): Change argument order. Call
15894 expand_psymtab.
15895 (new_psymtab): Set legacy_expand_psymtab.
15896 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
15897 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
15898 expand_psymtab.
15899 (dwarf2_psymtab::expand_psymtab): Rename from
15900 psymtab_to_symtab_1. Call expand_psymtab.
15901 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
15902 (dbx_end_psymtab): Likewise.
15903 (dbx_psymtab_to_symtab_1): Change argument order. Call
15904 expand_psymtab.
15905 (dbx_read_symtab): Call expand_psymtab.
15906 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
15907 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
15908 (ctf_psymtab::read_symtab): Call expand_psymtab.
15909
15910 2020-01-26 Tom Tromey <tom@tromey.com>
15911
15912 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
15913 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
15914 messages.
15915 * mdebugread.c (mdebug_read_symtab): Remove prints.
15916 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
15917 assert.
15918 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
15919
15920 2020-01-26 Tom Tromey <tom@tromey.com>
15921
15922 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
15923 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
15924 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
15925 legacy_symtab.
15926 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
15927 * psymtab.c (psymtab_to_symtab): Call method.
15928 (dump_psymtab): Update.
15929 * psympriv.h (struct partial_symtab): Add virtual destructor.
15930 <read_symtab>: New method.
15931 (struct legacy_symtab): New.
15932 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
15933 (struct pst_map) <pst>: Now a legacy_psymtab.
15934 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
15935 (new_psymtab): Use legacy_psymtab.
15936 * dwarf2read.h (struct dwarf2_psymtab): New.
15937 (struct dwarf2_per_cu_data) <psymtab>: Use it.
15938 * dwarf2read.c (dwarf2_create_include_psymtab)
15939 (dwarf2_build_include_psymtabs, create_type_unit_group)
15940 (create_partial_symtab, process_psymtab_comp_unit_reader)
15941 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
15942 (set_partial_user): Use dwarf2_psymtab.
15943 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
15944 (psymtab_to_symtab_1, process_full_comp_unit)
15945 (process_full_type_unit, dwarf2_ranges_read)
15946 (dwarf2_get_pc_bounds, psymtab_include_file_name)
15947 (dwarf_decode_lines): Use dwarf2_psymtab.
15948 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
15949 (add_address_entry_worker, write_one_signatured_type)
15950 (recursively_count_psymbols, recursively_write_psymbols)
15951 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
15952 (write_debug_names): Likewise.
15953 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
15954 <pst>: Now a legacy_psymtab.
15955 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
15956 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
15957 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
15958 * ctfread.c (struct ctf_psymtab): New.
15959 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
15960 ctf_psymtab.
15961 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
15962 (create_partial_symtab): Return a ctf_psymtab.
15963 (scan_partial_symbols): Update.
15964
15965 2020-01-26 Tom Tromey <tom@tromey.com>
15966
15967 * xcoffread.c (xcoff_start_psymtab): Use new.
15968 * psymtab.c (partial_symtab::partial_symtab): New constructor,
15969 renamed from start_psymtab_common.
15970 * psympriv.h (struct partial_symtab): Add new constructor.
15971 (start_psymtab_common): Don't declare.
15972 * mdebugread.c (parse_partial_symbols): Use new.
15973 * dwarf2read.c (create_partial_symtab): Use new.
15974 * dbxread.c (start_psymtab): Use new.
15975 * ctfread.c (create_partial_symtab): Use new.
15976
15977 2020-01-26 Tom Tromey <tom@tromey.com>
15978
15979 * xcoffread.c (xcoff_end_psymtab): Use new.
15980 * psymtab.c (start_psymtab_common): Use new.
15981 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
15982 Update.
15983 * psympriv.h (struct partial_symtab): Add parameters to
15984 constructor. Don't inline.
15985 (allocate_psymtab): Don't declare.
15986 * mdebugread.c (new_psymtab): Use new.
15987 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
15988 * dbxread.c (dbx_end_psymtab): Use new.
15989
15990 2020-01-26 Tom Tromey <tom@tromey.com>
15991
15992 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
15993 allocate_psymtab. Update documentation.
15994 * psymtab.c (psymtab_storage::install_psymtab): Rename from
15995 allocate_psymtab. Do not use new.
15996 (allocate_psymtab): Use new. Update.
15997
15998 2020-01-26 Tom Tromey <tom@tromey.com>
15999
16000 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
16001 * psymtab.c (psym_print_stats): Update.
16002 * psympriv.h (struct partial_symtab) <readin,
16003 psymtabs_addrmap_supported, anonymous>: Now bool.
16004 * mdebugread.c (psymtab_to_symtab_1): Update.
16005 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
16006 (build_type_psymtabs_reader, psymtab_to_symtab_1)
16007 (process_full_comp_unit, process_full_type_unit): Update.
16008 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
16009 * ctfread.c (psymtab_to_symtab): Update.
16010
16011 2020-01-26 Tom Tromey <tom@tromey.com>
16012
16013 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
16014 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
16015 * psymtab.c (psymtab_storage): Delete psymtabs.
16016 (psymtab_storage::allocate_psymtab): Use new.
16017 (psymtab_storage::discard_psymtab): Use delete.
16018 * psympriv.h (struct partial_symtab): Add constructor and
16019 initializers.
16020
16021 2020-01-26 Tom Tromey <tom@tromey.com>
16022
16023 * machoread.c: Do not include psympriv.h.
16024
16025 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16026
16027 * NEWS: Mention the new option and the set/show commands.
16028
16029 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16030
16031 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
16032 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
16033 (validate_exec_file): New variables, enums, functions.
16034 (exec_file_locate_attach, print_section_info): Style the filenames.
16035 (_initialize_exec): Install show_exec_file_mismatch_command and
16036 set_exec_file_mismatch_command.
16037 * gdbcore.h (validate_exec_file): Declare.
16038 * infcmd.c (attach_command): Call validate_exec_file.
16039 * remote.c ( remote_target::remote_add_inferior): Likewise.
16040
16041 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16042
16043 * frame.c (find_frame_sal): Move call to get_next_frame into more
16044 inner scope.
16045 * inline-frame.c (inilne_state) <inline_state>: Update argument
16046 types.
16047 (inilne_state) <skipped_symbol>: Rename to...
16048 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
16049 (skip_inline_frames): Build vector of skipped symbols and use this
16050 to reate the inline_state.
16051 (inline_skipped_symbol): Add a comment and some assertions, fetch
16052 skipped symbol from the list.
16053
16054 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16055
16056 * buildsym.c (lte_is_less_than): Delete.
16057 (buildsym_compunit::end_symtab_with_blockvector): Create local
16058 lambda function to sort line table entries, and use
16059 std::stable_sort instead of std::sort.
16060 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
16061 markers when looking for a previous line.
16062
16063 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16064
16065 * dwarf2read.c (lnp_state_machine::record_line): Include
16066 end_sequence parameter in debug print out. Record the line if we
16067 are at an end_sequence marker even if it's not the start of a
16068 statement.
16069 * symmisc.c (maintenance_print_one_line_table): Print end of
16070 sequence markers with 'END' not '0'.
16071
16072 2020-01-24 Pedro Alves <palves@redhat.com>
16073
16074 PR gdb/25410
16075 * thread.c (scoped_restore_current_thread::restore): Use
16076 switch_to_inferior_no_thread.
16077 * exec.c: Include "progspace-and-thread.h".
16078 (add_target_sections, remove_target_sections):
16079 scoped_restore_current_pspace_and_thread instead of
16080 scoped_restore_current_thread.
16081 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
16082 and aspace to the inferior before calling clone_program_space.
16083 Remove stale comment.
16084
16085 2020-01-24 Christian Biesinger <cbiesinger@google.com>
16086
16087 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
16088 (arm_netbsd_nat_target::fetch_registers): ...this.
16089 (arm_nbsd_nat_target::store_registers): Rename to...
16090 (arm_netbsd_nat_target::store_registers): ...this.
16091
16092 2020-01-24 Christian Biesinger <cbiesinger@google.com>
16093
16094 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
16095 register_t.
16096
16097 2020-01-24 Christian Biesinger <cbiesinger@google.com>
16098
16099 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
16100 Update comment.
16101 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
16102 Likewise.
16103 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
16104 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
16105 the correct replacement (iterate_over_regset_sections).
16106 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
16107 Update comment.
16108
16109 2020-01-24 Graham Markall <graham.markall@embecosm.com>
16110
16111 PR gdb/23718
16112 * gdb/python/python.c (execute_gdb_command): Call
16113 async_enable_stdin in catch block.
16114
16115 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16116
16117 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
16118 SWITCH_THRU_ALL_UIS.
16119
16120 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16121
16122 PR tui/9765
16123 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
16124 comment, add extra parameter, and update to store previous symbol
16125 when appropriate.
16126 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
16127 add extra parameter.
16128 * tui/tui-disasm.c (tui_disassemble): Update header comment,
16129 remove unneeded parameter, add try/catch around gdb_print_insn,
16130 rewrite to add items to asm_lines vector.
16131 (tui_find_backward_disassembly_start_address): New function.
16132 (tui_find_disassembly_address): Updated throughout.
16133 (tui_disasm_window::set_contents): Update for changes to
16134 tui_disassemble.
16135 (tui_disasm_window::do_scroll_vertical): No need to adjust the
16136 number of lines to scroll.
16137
16138 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
16139
16140 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
16141 (SECT_OFF_DATA): Likewise.
16142 (SECT_OFF_RODATA): Likewise.
16143 (SECT_OFF_TEXT): Likewise.
16144 (SECT_OFF_BSS): Likewise.
16145 (struct objfile) <text_section_offset, data_section_offset>: New
16146 methods.
16147 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
16148 objfile::text_section_offset.
16149 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
16150 * coffread.c (coff_symtab_read): Likewise.
16151 (enter_linenos): Likewise.
16152 (process_coff_symbol): Likewise.
16153 * ctfread.c (get_objfile_text_range): Likewise.
16154 * dtrace-probe.c (dtrace_probe::get_relocated_address):
16155 Use objfile::data_section_offset.
16156 * dwarf2-frame.c (execute_cfa_program): Use
16157 objfile::text_section_offset.
16158 (dwarf2_frame_find_fde): Likewise.
16159 * dwarf2read.c (create_addrmap_from_index): Likewise.
16160 (create_addrmap_from_aranges): Likewise.
16161 (dw2_find_pc_sect_compunit_symtab): Likewise.
16162 (process_psymtab_comp_unit_reader): Likewise.
16163 (add_partial_symbol): Likewise.
16164 (add_partial_subprogram): Likewise.
16165 (process_full_comp_unit): Likewise.
16166 (read_file_scope): Likewise.
16167 (read_func_scope): Likewise.
16168 (read_lexical_block_scope): Likewise.
16169 (read_call_site_scope): Likewise.
16170 (dwarf2_rnglists_process): Likewise.
16171 (dwarf2_ranges_process): Likewise.
16172 (dwarf2_ranges_read): Likewise.
16173 (dwarf_decode_lines_1): Likewise.
16174 (new_symbol): Likewise.
16175 (dwarf2_fetch_die_loc_sect_off): Likewise.
16176 (dwarf2_per_cu_text_offset): Likewise.
16177 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
16178 * hppa-tdep.c (read_unwind_info): Likewise.
16179 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
16180 * psympriv.h (struct partial_symtab): Likewise.
16181 * psymtab.c (find_pc_sect_psymtab): Likewise.
16182 * solib-svr4.c (enable_break): Likewise.
16183 * stap-probe.c (relocate_address): Use
16184 objfile::data_section_offset.
16185 * xcoffread.c (enter_line_range): Use
16186 objfile::text_section_offset.
16187 (read_xcoff_symtab): Likewise.
16188
16189 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
16190
16191 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
16192 declaration to narrower scopes.
16193
16194 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
16195
16196 * darwin-nat.h (struct darwin_exception_msg, enum
16197 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
16198 Move up.
16199 (class darwin_nat_target) <wait_1, check_new_threads,
16200 decode_exception_message, decode_message, stop_inferior,
16201 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
16202 * darwin-nat.c (darwin_check_new_threads): Rename to...
16203 (darwin_nat_target::check_new_threads): ... this.
16204 (darwin_suspend_inferior_it): Remove.
16205 (darwin_decode_exception_message): Rename to...
16206 (darwin_nat_target::decode_exception_message): ... this.
16207 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
16208 (darwin_decode_message): Rename to...
16209 (darwin_nat_target::decode_message): ... this.
16210 (cancel_breakpoint): Rename to...
16211 (darwin_nat_target::cancel_breakpoint): ... this.
16212 (darwin_wait): Rename to...
16213 (darwin_nat_target::wait_1): ... this. Use range-based for loop
16214 instead of iterate_over_inferiors.
16215 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
16216 (darwin_stop_inferior): Rename to...
16217 (darwin_nat_target::stop_inferior): ... this.
16218 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
16219 (darwin_init_thread_list): Rename to...
16220 (darwin_nat_target::init_thread_list): ... this.
16221 (darwin_ptrace_him): Rename to...
16222 (darwin_nat_target::ptrace_him): ... this.
16223 (darwin_nat_target::create_inferior): Pass lambda function to
16224 fork_inferior.
16225 (darwin_nat_target::detach): Call stop_inferior instead of
16226 darwin_stop_inferior.
16227 * fork-inferior.h (fork_inferior): Change init_trace_fun
16228 parameter to gdb::function_view.
16229 * fork-inferior.c (fork_inferior): Likewise.
16230
16231 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
16232
16233 * i386-cygwin-tdep.c (core_process_module_section): Update.
16234 * windows-nat.c (struct lm_info_windows): Add text_offset.
16235 (windows_xfer_shared_libraries): Update.
16236 * windows-tdep.c (windows_xfer_shared_library):
16237 Add text_offset_cached argument.
16238 * windows-tdep.h (windows_xfer_shared_library): Update.
16239
16240 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
16241
16242 * gdbarch.sh: Add declaration for _initialize_gdbarch.
16243
16244 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
16245
16246 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
16247 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
16248 replace with range-based for.
16249 (gdbsim_interrupt_inferior): Remove.
16250 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
16251 with a range-based for. Inline code from
16252 gdbsim_interrupt_inferior.
16253
16254 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
16255
16256 * infrun.c (proceed): Fix indentation.
16257
16258 2020-01-21 Tom Tromey <tromey@adacore.com>
16259
16260 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
16261 * python/python.c (python_extension_ops): Update.
16262 (gdbpy_colorize): New function.
16263 * python/lib/gdb/__init__.py (colorize): New function.
16264 * extension.h (ext_lang_colorize): Declare.
16265 * extension.c (ext_lang_colorize): New function.
16266 * extension-priv.h (struct extension_language_ops) <colorize>: New
16267 member.
16268 * cli/cli-style.c (_initialize_cli_style): Update help text.
16269
16270 2020-01-21 Luis Machado <luis.machado@linaro.org>
16271
16272 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
16273 <cond>: Change type to bool.
16274 (aarch64_displaced_step_b_cond): Update cond to use bool type.
16275 (aarch64_displaced_step_cb): Likewise.
16276 (aarch64_displaced_step_tb): Likewise.
16277
16278 2020-01-21 Luis Machado <luis.machado@linaro.org>
16279
16280 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
16281 output.
16282
16283 2020-01-21 Luis Machado <luis.machado@linaro.org>
16284
16285 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
16286 <pc_adjust>: Adjust the documentation.
16287 (aarch64_displaced_step_fixup): Check if PC really moved before
16288 adjusting it.
16289
16290 2020-01-19 Tom Tromey <tom@tromey.com>
16291
16292 * disasm.c (~gdb_disassembler): New destructor.
16293 (gdb_buffered_insn_length): Call disassemble_free_target.
16294 * disasm.h (class gdb_disassembler): Declare destructor. Use
16295 DISABLE_COPY_AND_ASSIGN.
16296
16297 2020-01-19 Tom Tromey <tom@tromey.com>
16298
16299 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
16300 (die_reader_func_ftype): Remove.
16301 (cutu_reader): New class.
16302 (dw2_get_file_names_reader): Remove "data" parameter.
16303 (dw2_get_file_names): Use cutu_reader.
16304 (create_debug_type_hash_table): Update.
16305 (read_cutu_die_from_dwo): Update comment.
16306 (lookup_dwo_unit): Add dwo_name parameter.
16307 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
16308 die_reader_func_ftype and data parameters.
16309 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
16310 Remove die_reader_func_ftype and data parameters.
16311 (~cutu_reader): New; from init_cutu_and_read_dies.
16312 (cutu_reader::cutu_reader): Rename from
16313 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
16314 and data parameters.
16315 (init_cutu_and_read_dies_simple): Remove.
16316 (struct process_psymtab_comp_unit_data): Remove.
16317 (process_psymtab_comp_unit_reader): Remove data parameter; add
16318 want_partial_unit and pretend_language parameters.
16319 (process_psymtab_comp_unit): Use cutu_reader.
16320 (build_type_psymtabs_reader): Remove data parameter.
16321 (build_type_psymtabs_1): Use cutu_reader.
16322 (process_skeletonless_type_unit): Likewise.
16323 (load_partial_comp_unit_reader): Remove.
16324 (load_partial_comp_unit): Use cutu_reader.
16325 (load_full_comp_unit_reader): Remove.
16326 (load_full_comp_unit): Use cutu_reader.
16327 (struct create_dwo_cu_data): Remove.
16328 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
16329 dwo_unit parameters.
16330 (create_cus_hash_table): Use cutu_reader.
16331 (struct dwarf2_read_addr_index_data): Remove.
16332 (dwarf2_read_addr_index_reader): Remove.
16333 (dwarf2_read_addr_index): Use cutu_reader.
16334 (read_signatured_type_reader): Remove.
16335 (read_signatured_type): Use cutu_reader.
16336
16337 2020-01-19 Tom Tromey <tom@tromey.com>
16338
16339 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
16340 * tui/tui-wingeneral.h (class tui_suppress_output): New.
16341 (tui_wrefresh): Declare.
16342 * tui/tui-wingeneral.c (suppress_output): New global.
16343 (tui_suppress_output, ~tui_suppress_output): New constructor and
16344 destructor.
16345 (tui_wrefresh): New function.
16346 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
16347 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
16348 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
16349 method.
16350 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
16351 tui_wrefresh.
16352 (tui_data_window::no_refresh): New method.
16353 (tui_data_item_window::refresh_window): Call tui_wrefresh.
16354 (tui_reg_command): Use tui_suppress_output
16355 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
16356 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
16357 method.
16358 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
16359
16360 2020-01-19 Tom Tromey <tom@tromey.com>
16361
16362 * tui/tui-winsource.c (tui_update_source_windows_with_line):
16363 Handle case where symtab is null.
16364
16365 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
16366
16367 * linux-fork.c (one_fork_p): Simplify.
16368
16369 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16370
16371 * top.c (struct qt_args): Remove.
16372 (kill_or_detach): Change return type to void, replace `void *`
16373 parameter with a proper one.
16374 (print_inferior_quit_action): Likewise.
16375 (quit_confirm): Use range-based for loop to iterate over inferiors.
16376 (quit_force): Likewise.
16377
16378 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16379
16380 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
16381 `void *` parameter with proper parameters.
16382 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
16383 (print_one_inferior): Change return type to void, replace `void *`
16384 parameter with proper parameters.
16385 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
16386 inferiors.
16387 (get_other_inferior): Remove.
16388 (mi_cmd_remove_inferior): Use range-based loop to iterate over
16389 inferiors.
16390
16391 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16392
16393 * mi/mi-interp.c (report_initial_inferior): Remove.
16394 (mi_interp::init): Use range-based for to iterate over inferiors.
16395
16396 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16397
16398 * python/py-inferior.c (build_inferior_list): Remove.
16399 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
16400
16401 2020-01-16 Christian Biesinger <cbiesinger@google.com>
16402
16403 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
16404 (btrace_stitch_trace): Likewise.
16405 * charset.c (intermediate_encoding): Likewise (vaild).
16406 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
16407 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
16408 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
16409
16410 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
16411
16412 * windows-tdep.c (windows_get_tlb_type):
16413 Add rtl_user_process_parameters type.
16414
16415 2020-01-16 Pedro Alves <palves@redhat.com>
16416 Norbert Lange <nolange79@gmail.com>
16417
16418 PR build/24805
16419 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
16420 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
16421 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
16422 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
16423 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
16424 (ps_plog): Redeclare exported functions with default visibility.
16425
16426 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
16427
16428 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
16429 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
16430
16431 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
16432
16433 * infcmd.c (post_create_inferior): Use get_thread_regcache
16434 instead of get_current_regcache.
16435
16436 2020-01-14 Tom Tromey <tom@tromey.com>
16437
16438 PR symtab/12535:
16439 * python/python.c (gdbpy_decode_line): Treat empty string the same
16440 as no argument.
16441
16442 2020-01-14 Tom Tromey <tom@tromey.com>
16443
16444 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
16445
16446 2020-01-14 Tom Tromey <tom@tromey.com>
16447
16448 * nat/linux-btrace.c: Don't include <config.h>.
16449 * nat/linux-ptrace.c: Don't include <config.h>.
16450 * nat/x86-linux-dregs.c: Don't include <config.h>.
16451
16452 2020-01-14 Tom Tromey <tom@tromey.com>
16453
16454 * configure: Rebuild.
16455 * configure.ac: Move many checks to ../gdbsupport/common.m4.
16456
16457 2020-01-14 Tom Tromey <tom@tromey.com>
16458
16459 * nat/x86-linux-dregs.c: Include configh.h.
16460 * nat/linux-ptrace.c: Include configh.h.
16461 * nat/linux-btrace.c: Include configh.h.
16462 * defs.h: Include config.h, bfd.h.
16463 * configure.ac: Don't source common.host.
16464 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
16465 * configure: Rebuild.
16466 * acinclude.m4: Update path.
16467 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
16468 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
16469 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
16470 (CLIBS): Add LIBSUPPORT.
16471 (CDEPS): Likewise.
16472 (COMMON_SFILES): Remove gdbsupport files.
16473 (HFILES_NO_SRCDIR): Likewise.
16474 (stamp-version): Update path to create-version.sh.
16475 (ALLDEPFILES): Remove gdbsupport files.
16476
16477 2020-01-14 Tom Tromey <tom@tromey.com>
16478
16479 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
16480 USE_WIN32API when needed.
16481 * configure.ac (USE_WIN32API): Don't define.
16482 (WIN32LIBS): Use WIN32APILIBS.
16483 * configure: Rebuild.
16484
16485 2020-01-14 Tom Tromey <tom@tromey.com>
16486
16487 * configure: Rebuild.
16488 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
16489
16490 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
16491
16492 * skip.c (skip_function_command): Make skip w/o arguments use the
16493 name of the inlined function if pc is inside any inlined function.
16494
16495 2020-01-14 Luis Machado <luis.machado@linaro.org>
16496
16497 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
16498 * infrun.c (resume_1): Likewise.
16499 (handle_inferior_event): Remove stale comment.
16500 * linux-nat.c (linux_nat_target::resume): Update comments.
16501 (save_stop_reason): Likewise.
16502 (linux_nat_filter_event): Likewise.
16503 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
16504
16505 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
16506
16507 * elfread.c (record_minimal_symbol): Set section index to 0 for
16508 non-allocatable sections.
16509
16510
16511 2020-01-13 Ali Tamur <tamur@google.com>
16512
16513 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
16514 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
16515 to gdb::optional. Update comments.
16516 (dwo_file): Update comments.
16517 (read_attribute): Update API to take an additional out parameter,
16518 need_reprocess. This is used to mark attributes that need other
16519 attributes (e.g. str_offsets_base) for correct computation which may not
16520 have been read yet.
16521 (read_attribute_reprocess): New function declaration.
16522 (read_addr_index): Likewise.
16523 (read_dwo_str_index): Likewise.
16524 (read_stub_str_index): Likewise.
16525 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
16526 (lookup_addr_base): New function definition.
16527 (lookup_ranges_base): Likewise.
16528 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
16529 lookup_ranges_base.
16530 (init_cutu_and_read_dies): Update comments.
16531 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
16532 unit. This is used to inherit parent's str_offsets_base and addr_base.
16533 Update comments.
16534 (init_cutu_and_read_dies_simple): Reflect API changes.
16535 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
16536 (create_cus_hash_table): Change API to take parent compile unit.
16537 Reflect API changes.
16538 (open_and_init_dwo_file): Reflect API changes.
16539 (dwarf2_get_pc_bounds): Update comments.
16540 (dwarf2_record_block_ranges): Likewise.
16541 (read_full_die_1): Change implementation to reprocess attributes that
16542 need str_offsets_base and addr_base.
16543 (partial_die_info::read): Likewise.
16544 (read_attribute_reprocess): New function definition.
16545 (read_attribute_value): Change API to take an additional out parameter,
16546 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
16547 when a non-dwo compile unit has index based attributes.
16548 (read_attribute): Reflect API changes.
16549 (read_addr_index_1): Reflect API changes. Update comments.
16550 (dwarf2_read_addr_index_data): Reflect API changes.
16551 (dwarf2_read_addr_index): Likewise.
16552 (read_str_index): Change API and implementation. This becomes a helper
16553 to be used by the new string index related methods. Update error
16554 message and comments.
16555 (read_dwo_str_index): New function definition.
16556 (read_stub_str_index): Likewise.
16557 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
16558 * symfile.h (dwarf2_debug_sections): Likewise.
16559 * xcoffread.c (dwarf2_debug_sections): Likewise.
16560
16561 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16562
16563 * gdbcore.h (struct core_fns) <core_read_registers>: Change
16564 core_reg_sect type to gdb_byte *.
16565 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
16566 * cris-tdep.c (fetch_core_registers): Likewise.
16567 * corelow.c (core_target::get_core_register_section): Change
16568 type of `contents` to gdb::byte_vector.
16569
16570 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
16571
16572 * tui/tui-wingeneral.c (box_win): Position the title in the center
16573 of the border.
16574
16575 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16576
16577 * corelow.c (core_target::get_core_register_section): Use
16578 std::vector instead of alloca.
16579
16580 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16581
16582 * warning.m4: Add -Wmissing-declarations to build_warnings.
16583 * configure: Re-generate.
16584
16585 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16586
16587 * python/python.c (init__gdb_module): Add declaration.
16588
16589 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16590
16591 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
16592 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
16593 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
16594 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
16595 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
16596 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
16597 * ada-exp.y (_initialize_ada_exp): Add declaration.
16598 * ada-lang.c (_initialize_ada_language): Add declaration.
16599 * ada-tasks.c (_initialize_tasks): Add declaration.
16600 * agent.c (_initialize_agent): Add declaration.
16601 * aix-thread.c (_initialize_aix_thread): Add declaration.
16602 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
16603 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
16604 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
16605 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
16606 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
16607 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
16608 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
16609 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
16610 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
16611 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
16612 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
16613 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
16614 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
16615 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
16616 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
16617 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
16618 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
16619 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
16620 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
16621 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
16622 * annotate.c (_initialize_annotate): Add declaration.
16623 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
16624 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
16625 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
16626 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
16627 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
16628 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
16629 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
16630 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
16631 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
16632 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
16633 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
16634 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
16635 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
16636 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
16637 * auto-load.c (_initialize_auto_load): Add declaration.
16638 * auxv.c (_initialize_auxv): Add declaration.
16639 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
16640 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
16641 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
16642 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
16643 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
16644 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
16645 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
16646 * breakpoint.c (_initialize_breakpoint): Add declaration.
16647 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
16648 * btrace.c (_initialize_btrace): Add declaration.
16649 * charset.c (_initialize_charset): Add declaration.
16650 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
16651 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
16652 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
16653 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
16654 * cli/cli-script.c (_initialize_cli_script): Add declaration.
16655 * cli/cli-style.c (_initialize_cli_style): Add declaration.
16656 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
16657 * coffread.c (_initialize_coffread): Add declaration.
16658 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
16659 * compile/compile.c (_initialize_compile): Add declaration.
16660 * complaints.c (_initialize_complaints): Add declaration.
16661 * completer.c (_initialize_completer): Add declaration.
16662 * copying.c (_initialize_copying): Add declaration.
16663 * corefile.c (_initialize_core): Add declaration.
16664 * corelow.c (_initialize_corelow): Add declaration.
16665 * cp-abi.c (_initialize_cp_abi): Add declaration.
16666 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
16667 * cp-support.c (_initialize_cp_support): Add declaration.
16668 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
16669 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
16670 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
16671 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
16672 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
16673 * ctfread.c (_initialize_ctfread): Add declaration.
16674 * d-lang.c (_initialize_d_language): Add declaration.
16675 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
16676 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
16677 * dbxread.c (_initialize_dbxread): Add declaration.
16678 * dcache.c (_initialize_dcache): Add declaration.
16679 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
16680 * disasm.c (_initialize_disasm): Add declaration.
16681 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
16682 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
16683 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
16684 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
16685 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
16686 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
16687 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
16688 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
16689 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
16690 * elfread.c (_initialize_elfread): Add declaration.
16691 * exec.c (_initialize_exec): Add declaration.
16692 * extension.c (_initialize_extension): Add declaration.
16693 * f-lang.c (_initialize_f_language): Add declaration.
16694 * f-valprint.c (_initialize_f_valprint): Add declaration.
16695 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
16696 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
16697 * filesystem.c (_initialize_filesystem): Add declaration.
16698 * findcmd.c (_initialize_mem_search): Add declaration.
16699 * findvar.c (_initialize_findvar): Add declaration.
16700 * fork-child.c (_initialize_fork_child): Add declaration.
16701 * frame-base.c (_initialize_frame_base): Add declaration.
16702 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
16703 * frame.c (_initialize_frame): Add declaration.
16704 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
16705 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
16706 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
16707 * gcore.c (_initialize_gcore): Add declaration.
16708 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
16709 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
16710 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
16711 * gdbarch.c (_initialize_gdbarch): Add declaration.
16712 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
16713 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
16714 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
16715 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
16716 * go-lang.c (_initialize_go_language): Add declaration.
16717 * go32-nat.c (_initialize_go32_nat): Add declaration.
16718 * guile/guile.c (_initialize_guile): Add declaration.
16719 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
16720 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
16721 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
16722 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
16723 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
16724 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
16725 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
16726 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
16727 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
16728 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
16729 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
16730 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
16731 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
16732 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
16733 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
16734 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
16735 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
16736 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
16737 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
16738 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
16739 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
16740 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
16741 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
16742 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
16743 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
16744 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
16745 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
16746 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
16747 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
16748 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
16749 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
16750 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
16751 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
16752 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
16753 * infcall.c (_initialize_infcall): Add declaration.
16754 * infcmd.c (_initialize_infcmd): Add declaration.
16755 * inflow.c (_initialize_inflow): Add declaration.
16756 * infrun.c (_initialize_infrun): Add declaration.
16757 * interps.c (_initialize_interpreter): Add declaration.
16758 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
16759 * jit.c (_initialize_jit): Add declaration.
16760 * language.c (_initialize_language): Add declaration.
16761 * linux-fork.c (_initialize_linux_fork): Add declaration.
16762 * linux-nat.c (_initialize_linux_nat): Add declaration.
16763 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
16764 * linux-thread-db.c (_initialize_thread_db): Add declaration.
16765 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
16766 * m2-lang.c (_initialize_m2_language): Add declaration.
16767 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
16768 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
16769 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
16770 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
16771 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
16772 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
16773 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
16774 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
16775 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
16776 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
16777 * machoread.c (_initialize_machoread): Add declaration.
16778 * macrocmd.c (_initialize_macrocmd): Add declaration.
16779 * macroscope.c (_initialize_macroscope): Add declaration.
16780 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
16781 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
16782 * maint.c (_initialize_maint_cmds): Add declaration.
16783 * mdebugread.c (_initialize_mdebugread): Add declaration.
16784 * memattr.c (_initialize_mem): Add declaration.
16785 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
16786 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
16787 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
16788 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
16789 * mi/mi-main.c (_initialize_mi_main): Add declaration.
16790 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
16791 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
16792 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
16793 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
16794 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
16795 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
16796 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
16797 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
16798 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
16799 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
16800 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
16801 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
16802 * mipsread.c (_initialize_mipsread): Add declaration.
16803 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
16804 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
16805 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
16806 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
16807 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
16808 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
16809 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
16810 * nto-procfs.c (_initialize_procfs): Add declaration.
16811 * objc-lang.c (_initialize_objc_language): Add declaration.
16812 * observable.c (_initialize_observer): Add declaration.
16813 * opencl-lang.c (_initialize_opencl_language): Add declaration.
16814 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
16815 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
16816 * osabi.c (_initialize_gdb_osabi): Add declaration.
16817 * osdata.c (_initialize_osdata): Add declaration.
16818 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
16819 * parse.c (_initialize_parse): Add declaration.
16820 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
16821 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
16822 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
16823 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
16824 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
16825 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
16826 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
16827 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
16828 * printcmd.c (_initialize_printcmd): Add declaration.
16829 * probe.c (_initialize_probe): Add declaration.
16830 * proc-api.c (_initialize_proc_api): Add declaration.
16831 * proc-events.c (_initialize_proc_events): Add declaration.
16832 * proc-service.c (_initialize_proc_service): Add declaration.
16833 * procfs.c (_initialize_procfs): Add declaration.
16834 * producer.c (_initialize_producer): Add declaration.
16835 * psymtab.c (_initialize_psymtab): Add declaration.
16836 * python/python.c (_initialize_python): Add declaration.
16837 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
16838 * record-btrace.c (_initialize_record_btrace): Add declaration.
16839 * record-full.c (_initialize_record_full): Add declaration.
16840 * record.c (_initialize_record): Add declaration.
16841 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
16842 * regcache.c (_initialize_regcache): Add declaration.
16843 * reggroups.c (_initialize_reggroup): Add declaration.
16844 * remote-notif.c (_initialize_notif): Add declaration.
16845 * remote-sim.c (_initialize_remote_sim): Add declaration.
16846 * remote.c (_initialize_remote): Add declaration.
16847 * reverse.c (_initialize_reverse): Add declaration.
16848 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
16849 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
16850 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
16851 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
16852 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
16853 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
16854 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
16855 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
16856 Add declaration.
16857 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
16858 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
16859 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
16860 * rust-exp.y (_initialize_rust_exp): Add declaration.
16861 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
16862 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
16863 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
16864 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
16865 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
16866 * score-tdep.c (_initialize_score_tdep): Add declaration.
16867 * ser-go32.c (_initialize_ser_dos): Add declaration.
16868 * ser-mingw.c (_initialize_ser_windows): Add declaration.
16869 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
16870 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
16871 * ser-uds.c (_initialize_ser_socket): Add declaration.
16872 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
16873 * serial.c (_initialize_serial): Add declaration.
16874 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
16875 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
16876 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
16877 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
16878 * skip.c (_initialize_step_skip): Add declaration.
16879 * sol-thread.c (_initialize_sol_thread): Add declaration.
16880 * solib-aix.c (_initialize_solib_aix): Add declaration.
16881 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
16882 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
16883 * solib-frv.c (_initialize_frv_solib): Add declaration.
16884 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
16885 * solib-target.c (_initialize_solib_target): Add declaration.
16886 * solib.c (_initialize_solib): Add declaration.
16887 * source-cache.c (_initialize_source_cache): Add declaration.
16888 * source.c (_initialize_source): Add declaration.
16889 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
16890 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
16891 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
16892 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
16893 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
16894 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
16895 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
16896 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
16897 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
16898 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
16899 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
16900 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
16901 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
16902 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
16903 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
16904 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
16905 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
16906 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
16907 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
16908 * stabsread.c (_initialize_stabsread): Add declaration.
16909 * stack.c (_initialize_stack): Add declaration.
16910 * stap-probe.c (_initialize_stap_probe): Add declaration.
16911 * std-regs.c (_initialize_frame_reg): Add declaration.
16912 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
16913 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
16914 * symfile.c (_initialize_symfile): Add declaration.
16915 * symmisc.c (_initialize_symmisc): Add declaration.
16916 * symtab.c (_initialize_symtab): Add declaration.
16917 * target.c (_initialize_target): Add declaration.
16918 * target-connection.c (_initialize_target_connection): Add
16919 declaration.
16920 * target-dcache.c (_initialize_target_dcache): Add declaration.
16921 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
16922 * thread.c (_initialize_thread): Add declaration.
16923 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
16924 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
16925 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
16926 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
16927 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
16928 * tracectf.c (_initialize_ctf): Add declaration.
16929 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
16930 * tracefile.c (_initialize_tracefile): Add declaration.
16931 * tracepoint.c (_initialize_tracepoint): Add declaration.
16932 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
16933 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
16934 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
16935 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
16936 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
16937 * tui/tui-win.c (_initialize_tui_win): Add declaration.
16938 * tui/tui.c (_initialize_tui): Add declaration.
16939 * typeprint.c (_initialize_typeprint): Add declaration.
16940 * ui-style.c (_initialize_ui_style): Add declaration.
16941 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
16942 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
16943 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
16944 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
16945 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
16946 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
16947 * unittests/filtered_iterator-selftests.c
16948 (_initialize_filtered_iterator_selftests): Add declaration.
16949 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
16950 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
16951 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
16952 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
16953 * unittests/main-thread-selftests.c
16954 (_initialize_main_thread_selftests): Add declaration.
16955 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
16956 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
16957 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
16958 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
16959 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
16960 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
16961 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
16962 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
16963 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
16964 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
16965 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
16966 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
16967 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
16968 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
16969 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
16970 declaration.
16971 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
16972 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
16973 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
16974 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
16975 * user-regs.c (_initialize_user_regs): Add declaration.
16976 * utils.c (_initialize_utils): Add declaration.
16977 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
16978 * valops.c (_initialize_valops): Add declaration.
16979 * valprint.c (_initialize_valprint): Add declaration.
16980 * value.c (_initialize_values): Add declaration.
16981 * varobj.c (_initialize_varobj): Add declaration.
16982 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
16983 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
16984 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
16985 * windows-nat.c (_initialize_windows_nat): Add declaration.
16986 (_initialize_check_for_gdb_ini): Add declaration.
16987 (_initialize_loadable): Add declaration.
16988 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
16989 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
16990 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
16991 * xcoffread.c (_initialize_xcoffread): Add declaration.
16992 * xml-support.c (_initialize_xml_support): Add declaration.
16993 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
16994 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
16995 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
16996 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
16997
16998 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16999
17000 * regformats/regdat.sh: Generate declaration for init function.
17001
17002 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
17003
17004 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
17005 up.
17006 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
17007 close_one_inferior>: New methods.
17008 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
17009 pass down target to find_inferior_pid.
17010 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
17011 Pass down target to find_inferior_ptid.
17012 (gdbsim_target::create_inferior): Pass down target to
17013 add_thread_silent.
17014 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
17015 target down to find_inferior_ptid and switch_to_thread.
17016 (gdbsim_target::close): Update to call close_one_inferior.
17017 (struct resume_data): Remove.
17018 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
17019 directly, rather than through a void pointer.
17020 (gdbsim_target::resume): Update to call resume_one_inferior.
17021
17022 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
17023
17024 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
17025
17026 2020-01-12 Pedro Alves <palves@redhat.com>
17027
17028 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
17029 directly for the current inferior instead of
17030 discard_all_inferiors.
17031 (discard_all_inferiors): Delete.
17032
17033 2020-01-11 Tom Tromey <tom@tromey.com>
17034
17035 * tui/tui-wingeneral.c (box_win): Check cli_styling.
17036 * tui/tui-winsource.c (tui_source_window_base::refill): Use
17037 deprecated_safe_get_selected_frame.
17038
17039 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
17040
17041 * inferior.c (print_inferior): Switch inferior before printing it.
17042
17043 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
17044 Pedro Alves <palves@redhat.com>
17045
17046 * progspace-and-thread.c (switch_to_program_space_and_thread):
17047 Assert there's an inferior for PSPACE. Use
17048 switch_to_inferior_no_thread to switch the inferior too.
17049 * progspace.c (program_space::~program_space): Call
17050 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
17051 (program_space::free_all_objfiles): Don't call clear_symtab_users
17052 here.
17053 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
17054
17055 2020-01-10 Pedro Alves <palves@redhat.com>
17056
17057 * NEWS: Mention multi-target debugging, "info connections", and
17058 "add-inferior -no-connection".
17059
17060 2020-01-10 Pedro Alves <palves@redhat.com>
17061
17062 * infrun.c: Include "target-connection.h".
17063 (check_multi_target_resumption): New.
17064 (proceed): Call it.
17065 * target-connection.c (make_target_connection_string): Make
17066 extern.
17067 * target-connection.h (make_target_connection_string): Declare.
17068
17069 2020-01-10 Pedro Alves <palves@redhat.com>
17070
17071 * Makefile.in (COMMON_SFILES): Add target-connection.c.
17072 * inferior.c (uiout_field_connection): New function.
17073 (print_inferior): Add new "connection-id" column.
17074 (add_inferior_command): Show connection number/string of added
17075 inferior.
17076 * process-stratum-target.h
17077 (process_stratum_target::connection_string): New virtual method.
17078 (process_stratum_target::connection_number): New field.
17079 * remote.c (remote_target::connection_string): New override.
17080 * target-connection.c: New file.
17081 * target-connection.h: New file.
17082 * target.c (decref_target): Remove process_stratum targets from
17083 the connection list.
17084 (target_stack::push): Add process_stratum targets to the
17085 connection list.
17086
17087 2020-01-10 Pedro Alves <palves@redhat.com>
17088
17089 Revert:
17090 2016-04-12 Pedro Alves <palves@redhat.com>
17091 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
17092 Remove references to name.
17093 * serial.h (struct serial) <name>: Delete.
17094
17095 2020-01-10 Pedro Alves <palves@redhat.com>
17096
17097 * gdbarch-selftests.c (register_to_value_test): Remove "target
17098 already pushed" check.
17099
17100 2020-01-10 Pedro Alves <palves@redhat.com>
17101 John Baldwin <jhb@FreeBSD.org>
17102
17103 * aarch64-linux-nat.c
17104 (aarch64_linux_nat_target::thread_architecture): Adjust.
17105 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
17106 (task_command_1): Likewise.
17107 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
17108 (aix_thread_target::wait, aix_thread_target::fetch_registers)
17109 (aix_thread_target::store_registers)
17110 (aix_thread_target::thread_alive): Adjust.
17111 * amd64-fbsd-tdep.c: Include "inferior.h".
17112 (amd64fbsd_get_thread_local_address): Pass down target.
17113 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
17114 thread's gdbarch instead of target_gdbarch.
17115 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
17116 get_last_target_status.
17117 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
17118 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
17119 inferiors.
17120 (update_inserted_breakpoint_locations): Skip if inferiors with no
17121 execution.
17122 (update_global_location_list): When handling moribund locations,
17123 find representative inferior for location's pspace, and use thread
17124 count of its process_stratum target.
17125 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
17126 * bsd-uthread.c (bsd_uthread_target::wait): Use
17127 as_process_stratum_target and adjust thread_change_ptid and
17128 add_thread calls.
17129 (bsd_uthread_target::update_thread_list): Use
17130 as_process_stratum_target and adjust find_thread_ptid,
17131 thread_change_ptid and add_thread calls.
17132 * btrace.c (maint_btrace_packet_history_cmd): Adjust
17133 find_thread_ptid call.
17134 * corelow.c (add_to_thread_list): Adjust add_thread call.
17135 (core_target_open): Adjust add_thread_silent and thread_count
17136 calls.
17137 (core_target::pid_to_str): Adjust find_inferior_ptid call.
17138 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
17139 * event-top.c (async_disconnect): Pop targets from all inferiors.
17140 * exec.c (add_target_sections): Push exec target on all inferiors
17141 sharing the program space.
17142 (remove_target_sections): Remove the exec target from all
17143 inferiors sharing the program space.
17144 (exec_on_vfork): New.
17145 * exec.h (exec_on_vfork): Declare.
17146 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
17147 Pass it down.
17148 (fbsd_nat_target::update_thread_list): Adjust.
17149 (fbsd_nat_target::resume): Adjust.
17150 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
17151 down.
17152 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
17153 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
17154 get_thread_arch_regcache call.
17155 * fork-child.c (gdb_startup_inferior): Pass target down to
17156 startup_inferior and set_executing.
17157 * gdbthread.h (struct process_stratum_target): Forward declare.
17158 (add_thread, add_thread_silent, add_thread_with_info)
17159 (in_thread_list): Add process_stratum_target parameter.
17160 (find_thread_ptid(inferior*, ptid_t)): New overload.
17161 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
17162 parameter.
17163 (all_threads()): Delete overload.
17164 (all_threads, all_non_exited_threads): Add process_stratum_target
17165 parameter.
17166 (all_threads_safe): Use brace initialization.
17167 (thread_count): Add process_stratum_target parameter.
17168 (set_resumed, set_running, set_stop_requested, set_executing)
17169 (threads_are_executing, finish_thread_state): Add
17170 process_stratum_target parameter.
17171 (switch_to_thread): Use is_current_thread.
17172 * i386-fbsd-tdep.c: Include "inferior.h".
17173 (i386fbsd_get_thread_local_address): Pass down target.
17174 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
17175 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
17176 have_inferiors check.
17177 * inf-ptrace.c (inf_ptrace_target::create_inferior)
17178 (inf_ptrace_target::attach): Adjust.
17179 * infcall.c (run_inferior_call): Adjust.
17180 * infcmd.c (run_command_1): Pass target to
17181 scoped_finish_thread_state.
17182 (proceed_thread_callback): Skip inferiors with no execution.
17183 (continue_command): Rename 'all_threads' local to avoid hiding
17184 'all_threads' function. Adjust get_last_target_status call.
17185 (prepare_one_step): Adjust set_running call.
17186 (signal_command): Use user_visible_resume_target. Compare thread
17187 pointers instead of inferior_ptid.
17188 (info_program_command): Adjust to pass down target.
17189 (attach_command): Mark target's 'thread_executing' flag.
17190 (stop_current_target_threads_ns): New, factored out from ...
17191 (interrupt_target_1): ... this. Switch inferior before making
17192 target calls.
17193 * inferior-iter.h
17194 (struct all_inferiors_iterator, struct all_inferiors_range)
17195 (struct all_inferiors_safe_range)
17196 (struct all_non_exited_inferiors_range): Filter on
17197 process_stratum_target too. Remove explicit.
17198 * inferior.c (inferior::inferior): Push dummy target on target
17199 stack.
17200 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
17201 Add process_stratum_target parameter, and pass it down.
17202 (have_live_inferiors): Adjust.
17203 (switch_to_inferior_and_push_target): New.
17204 (add_inferior_command, clone_inferior_command): Handle
17205 "-no-connection" parameter. Use
17206 switch_to_inferior_and_push_target.
17207 (_initialize_inferior): Mention "-no-connection" option in
17208 the help of "add-inferior" and "clone-inferior" commands.
17209 * inferior.h: Include "process-stratum-target.h".
17210 (interrupt_target_1): Use bool.
17211 (struct inferior) <push_target, unpush_target, target_is_pushed,
17212 find_target_beneath, top_target, process_target, target_at,
17213 m_stack>: New.
17214 (discard_all_inferiors): Delete.
17215 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
17216 (all_inferiors, all_non_exited_inferiors): Add
17217 process_stratum_target parameter.
17218 * infrun.c: Include "gdb_select.h" and <unordered_map>.
17219 (target_last_proc_target): New global.
17220 (follow_fork_inferior): Push target on new inferior. Pass target
17221 to add_thread_silent. Call exec_on_vfork. Handle target's
17222 reference count.
17223 (follow_fork): Adjust get_last_target_status call. Also consider
17224 target.
17225 (follow_exec): Push target on new inferior.
17226 (struct execution_control_state) <target>: New field.
17227 (user_visible_resume_target): New.
17228 (do_target_resume): Call target_async.
17229 (resume_1): Set target's threads_executing flag. Consider resume
17230 target.
17231 (commit_resume_all_targets): New.
17232 (proceed): Also consider resume target. Skip threads of inferiors
17233 with no execution. Commit resumtion in all targets.
17234 (start_remote): Pass current inferior to wait_for_inferior.
17235 (infrun_thread_stop_requested): Consider target as well. Pass
17236 thread_info pointer to clear_inline_frame_state instead of ptid.
17237 (infrun_thread_thread_exit): Consider target as well.
17238 (random_pending_event_thread): New inferior parameter. Use it.
17239 (do_target_wait): Rename to ...
17240 (do_target_wait_1): ... this. Add inferior parameter, and pass it
17241 down.
17242 (threads_are_resumed_pending_p, do_target_wait): New.
17243 (prepare_for_detach): Adjust calls.
17244 (wait_for_inferior): New inferior parameter. Handle it. Use
17245 do_target_wait_1 instead of do_target_wait.
17246 (fetch_inferior_event): Adjust. Switch to representative
17247 inferior. Pass target down.
17248 (set_last_target_status): Add process_stratum_target parameter.
17249 Save target in global.
17250 (get_last_target_status): Add process_stratum_target parameter and
17251 handle it.
17252 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
17253 (context_switch): Check inferior_ptid == null_ptid before calling
17254 inferior_thread().
17255 (get_inferior_stop_soon): Pass down target.
17256 (wait_one): Rename to ...
17257 (poll_one_curr_target): ... this.
17258 (struct wait_one_event): New.
17259 (wait_one): New.
17260 (stop_all_threads): Adjust.
17261 (handle_no_resumed, handle_inferior_event): Adjust to consider the
17262 event's target.
17263 (switch_back_to_stepped_thread): Also consider target.
17264 (print_stop_event): Update.
17265 (normal_stop): Update. Also consider the resume target.
17266 * infrun.h (wait_for_inferior): Remove declaration.
17267 (user_visible_resume_target): New declaration.
17268 (get_last_target_status, set_last_target_status): New
17269 process_stratum_target parameter.
17270 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
17271 process_stratum_target parameter, and use it.
17272 (clear_inline_frame_state (thread_info*)): New.
17273 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
17274 process_stratum_target parameter.
17275 (clear_inline_frame_state (thread_info*)): Declare.
17276 * linux-fork.c (delete_checkpoint_command): Pass target down to
17277 find_thread_ptid.
17278 (checkpoint_command): Adjust.
17279 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
17280 instead of just tweaking inferior_ptid.
17281 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
17282 (exit_lwp): Pass target down to find_thread_ptid.
17283 (attach_proc_task_lwp_callback): Pass target down to
17284 add_thread/set_running/set_executing.
17285 (linux_nat_target::attach): Pass target down to
17286 thread_change_ptid.
17287 (get_detach_signal): Pass target down to find_thread_ptid.
17288 Consider last target status's target.
17289 (linux_resume_one_lwp_throw, resume_lwp)
17290 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
17291 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
17292 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
17293 (linux_nat_target::async_wait_fd): New.
17294 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
17295 target down.
17296 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
17297 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
17298 * linux-thread-db.c (struct thread_db_info::process_target): New
17299 field.
17300 (add_thread_db_info): Save target.
17301 (get_thread_db_info): New process_stratum_target parameter. Also
17302 match target.
17303 (delete_thread_db_info): New process_stratum_target parameter.
17304 Also match target.
17305 (thread_from_lwp): Adjust to pass down target.
17306 (thread_db_notice_clone): Pass down target.
17307 (check_thread_db_callback): Pass down target.
17308 (try_thread_db_load_1): Always push the thread_db target.
17309 (try_thread_db_load, record_thread): Pass target down.
17310 (thread_db_target::detach): Pass target down. Always unpush the
17311 thread_db target.
17312 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
17313 target down. Always unpush the thread_db target.
17314 (find_new_threads_callback, thread_db_find_new_threads_2)
17315 (thread_db_target::update_thread_list): Pass target down.
17316 (thread_db_target::pid_to_str): Pass current inferior down.
17317 (thread_db_target::get_thread_local_address): Pass target down.
17318 (thread_db_target::resume, maintenance_check_libthread_db): Pass
17319 target down.
17320 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
17321 * procfs.c (procfs_target::procfs_init_inferior): Declare.
17322 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
17323 (procfs_init_inferior): Rename to ...
17324 (procfs_target::procfs_init_inferior): ... this and adjust.
17325 (procfs_target::create_inferior, procfs_notice_thread)
17326 (procfs_do_thread_registers): Adjust.
17327 * ppc-fbsd-tdep.c: Include "inferior.h".
17328 (ppcfbsd_get_thread_local_address): Pass down target.
17329 * proc-service.c (ps_xfer_memory): Switch current inferior and
17330 program space as well.
17331 (get_ps_regcache): Pass target down.
17332 * process-stratum-target.c
17333 (process_stratum_target::thread_address_space)
17334 (process_stratum_target::thread_architecture): Pass target down.
17335 * process-stratum-target.h
17336 (process_stratum_target::threads_executing): New field.
17337 (as_process_stratum_target): New.
17338 * ravenscar-thread.c
17339 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
17340 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
17341 down.
17342 * record-btrace.c (record_btrace_target::info_record): Adjust.
17343 (record_btrace_target::record_method)
17344 (record_btrace_target::record_is_replaying)
17345 (record_btrace_target::fetch_registers)
17346 (get_thread_current_frame_id, record_btrace_target::resume)
17347 (record_btrace_target::wait, record_btrace_target::stop): Pass
17348 target down.
17349 * record-full.c (record_full_wait_1): Switch to event thread.
17350 Pass target down.
17351 * regcache.c (regcache::regcache)
17352 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
17353 process_stratum_target parameter and handle it.
17354 (current_thread_target): New global.
17355 (get_thread_regcache): Add process_stratum_target parameter and
17356 handle it. Switch inferior before calling target method.
17357 (get_thread_regcache): Pass target down.
17358 (get_thread_regcache_for_ptid): Pass target down.
17359 (registers_changed_ptid): Add process_stratum_target parameter and
17360 handle it.
17361 (registers_changed_thread, registers_changed): Pass target down.
17362 (test_get_thread_arch_aspace_regcache): New.
17363 (current_regcache_test): Define a couple local test_target_ops
17364 instances and use them for testing.
17365 (readwrite_regcache): Pass process_stratum_target parameter.
17366 (cooked_read_test, cooked_write_test): Pass mock_target down.
17367 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
17368 (get_thread_arch_aspace_regcache): Add process_stratum_target
17369 parameter.
17370 (regcache::target): New method.
17371 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
17372 (regcache::registers_changed_ptid): Add process_stratum_target
17373 parameter.
17374 (regcache::m_target): New field.
17375 (registers_changed_ptid): Add process_stratum_target parameter.
17376 * remote.c (remote_state::supports_vCont_probed): New field.
17377 (remote_target::async_wait_fd): New method.
17378 (remote_unpush_and_throw): Add remote_target parameter.
17379 (get_current_remote_target): Adjust.
17380 (remote_target::remote_add_inferior): Push target.
17381 (remote_target::remote_add_thread)
17382 (remote_target::remote_notice_new_inferior)
17383 (get_remote_thread_info): Pass target down.
17384 (remote_target::update_thread_list): Skip threads of inferiors
17385 bound to other targets. (remote_target::close): Don't discard
17386 inferiors. (remote_target::add_current_inferior_and_thread)
17387 (remote_target::process_initial_stop_replies)
17388 (remote_target::start_remote)
17389 (remote_target::remote_serial_quit_handler): Pass down target.
17390 (remote_target::remote_unpush_target): New remote_target
17391 parameter. Unpush the target from all inferiors.
17392 (remote_target::remote_unpush_and_throw): New remote_target
17393 parameter. Pass it down.
17394 (remote_target::open_1): Check whether the current inferior has
17395 execution instead of checking whether any inferior is live. Pass
17396 target down.
17397 (remote_target::remote_detach_1): Pass down target. Use
17398 remote_unpush_target.
17399 (extended_remote_target::attach): Pass down target.
17400 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
17401 (remote_target::append_resumption): Pass down target.
17402 (remote_target::append_pending_thread_resumptions)
17403 (remote_target::remote_resume_with_hc, remote_target::resume)
17404 (remote_target::commit_resume): Pass down target.
17405 (remote_target::remote_stop_ns): Check supports_vCont_probed.
17406 (remote_target::interrupt_query)
17407 (remote_target::remove_new_fork_children)
17408 (remote_target::check_pending_events_prevent_wildcard_vcont)
17409 (remote_target::remote_parse_stop_reply)
17410 (remote_target::process_stop_reply): Pass down target.
17411 (first_remote_resumed_thread): New remote_target parameter. Pass
17412 it down.
17413 (remote_target::wait_as): Pass down target.
17414 (unpush_and_perror): New remote_target parameter. Pass it down.
17415 (remote_target::readchar, remote_target::remote_serial_write)
17416 (remote_target::getpkt_or_notif_sane_1)
17417 (remote_target::kill_new_fork_children, remote_target::kill): Pass
17418 down target.
17419 (remote_target::mourn_inferior): Pass down target. Use
17420 remote_unpush_target.
17421 (remote_target::core_of_thread)
17422 (remote_target::remote_btrace_maybe_reopen): Pass down target.
17423 (remote_target::pid_to_exec_file)
17424 (remote_target::thread_handle_to_thread_info): Pass down target.
17425 (remote_target::async_wait_fd): New.
17426 * riscv-fbsd-tdep.c: Include "inferior.h".
17427 (riscv_fbsd_get_thread_local_address): Pass down target.
17428 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
17429 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
17430 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
17431 Adjust.
17432 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
17433 * solib-svr4.c (enable_break): Pass down target.
17434 * spu-multiarch.c (parse_spufs_run): Pass down target.
17435 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
17436 * target-delegates.c: Regenerate.
17437 * target.c (g_target_stack): Delete.
17438 (current_top_target): Return the current inferior's top target.
17439 (target_has_execution_1): Refer to the passed-in inferior's top
17440 target.
17441 (target_supports_terminal_ours): Check whether the initial
17442 inferior was already created.
17443 (decref_target): New.
17444 (target_stack::push): Incref/decref the target.
17445 (push_target, push_target, unpush_target): Adjust.
17446 (target_stack::unpush): Defref target.
17447 (target_is_pushed): Return bool. Adjust to refer to the current
17448 inferior's target stack.
17449 (dispose_inferior): Delete, and inline parts ...
17450 (target_preopen): ... here. Only dispose of the current inferior.
17451 (target_detach): Hold strong target reference while detaching.
17452 Pass target down.
17453 (target_thread_name): Add assertion.
17454 (target_resume): Pass down target.
17455 (target_ops::beneath, find_target_at): Adjust to refer to the
17456 current inferior's target stack.
17457 (get_dummy_target): New.
17458 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
17459 has a thread running.
17460 (initialize_targets): Rename to ...
17461 (_initialize_target): ... this.
17462 * target.h: Include "gdbsupport/refcounted-object.h".
17463 (struct target_ops): Inherit refcounted_object.
17464 (target_ops::shortname, target_ops::longname): Make const.
17465 (target_ops::async_wait_fd): New method.
17466 (decref_target): Declare.
17467 (struct target_ops_ref_policy): New.
17468 (target_ops_ref): New typedef.
17469 (get_dummy_target): Declare function.
17470 (target_is_pushed): Return bool.
17471 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
17472 (all_matching_threads_iterator::all_matching_threads_iterator):
17473 Handle filter target.
17474 * thread-iter.h (struct all_matching_threads_iterator, struct
17475 all_matching_threads_range, class all_non_exited_threads_range):
17476 Filter by target too. Remove explicit.
17477 * thread.c (threads_executing): Delete.
17478 (inferior_thread): Pass down current inferior.
17479 (clear_thread_inferior_resources): Pass down thread pointer
17480 instead of ptid_t.
17481 (add_thread_silent, add_thread_with_info, add_thread): Add
17482 process_stratum_target parameter. Use it for thread and inferior
17483 searches.
17484 (is_current_thread): New.
17485 (thread_info::deletable): Use it.
17486 (find_thread_ptid, thread_count, in_thread_list)
17487 (thread_change_ptid, set_resumed, set_running): New
17488 process_stratum_target parameter. Pass it down.
17489 (set_executing): New process_stratum_target parameter. Pass it
17490 down. Adjust reference to 'threads_executing'.
17491 (threads_are_executing): New process_stratum_target parameter.
17492 Adjust reference to 'threads_executing'.
17493 (set_stop_requested, finish_thread_state): New
17494 process_stratum_target parameter. Pass it down.
17495 (switch_to_thread): Also match inferior.
17496 (switch_to_thread): New process_stratum_target parameter. Pass it
17497 down.
17498 (update_threads_executing): Reimplement.
17499 * top.c (quit_force): Pop targets from all inferior.
17500 (gdb_init): Don't call initialize_targets.
17501 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
17502 Declare.
17503 (windows_add_thread, windows_delete_thread): Adjust.
17504 (get_windows_debug_event): Rename to ...
17505 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
17506 * tracefile-tfile.c (tfile_target_open): Pass down target.
17507 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
17508 Forward declare.
17509 (switch_to_thread): Add process_stratum_target parameter.
17510 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
17511 parameter. Use it.
17512 (mi_on_resume): Pass target down.
17513 * nat/fork-inferior.c (startup_inferior): Add
17514 process_stratum_target parameter. Pass it down.
17515 * nat/fork-inferior.h (startup_inferior): Add
17516 process_stratum_target parameter.
17517 * python/py-threadevent.c (py_get_event_thread): Pass target down.
17518
17519 2020-01-10 Pedro Alves <palves@redhat.com>
17520
17521 * remote.c (remote_target::start_remote): Don't set inferior_ptid
17522 directly. Instead find the first thread in the thread list and
17523 use switch_to_thread.
17524
17525 2020-01-10 Pedro Alves <palves@redhat.com>
17526
17527 * remote.c (remote_target::remote_add_inferior): Don't bind a
17528 process to the current inferior if the current inferior is already
17529 bound to a process.
17530
17531 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
17532 Pedro Alves <palves@redhat.com>
17533
17534 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
17535 If no process is specified, return null_ptid instead of
17536 inferior_ptid.
17537 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
17538 TARGET_WAITKIND_SIGNALLED with no pid.
17539
17540 2020-01-10 Pedro Alves <palves@redhat.com>
17541
17542 * remote.c (first_remote_resumed_thread): New.
17543 (remote_target::wait_as): Use it as default event_ptid instead of
17544 inferior_ptid.
17545
17546 2020-01-10 Pedro Alves <palves@redhat.com>
17547
17548 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
17549
17550 2020-01-10 Pedro Alves <palves@redhat.com>
17551
17552 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
17553 not -1.
17554
17555 2020-01-10 Pedro Alves <palves@redhat.com>
17556
17557 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
17558 ptid to get_last_target_status.
17559 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
17560 ptid to get_last_target_status.
17561 * infcmd.c (continue_command): Don't pass a target_waitstatus to
17562 get_last_target_status.
17563 (info_program_command): Don't pass a target_waitstatus to
17564 get_last_target_status.
17565 * infrun.c (init_wait_for_inferior): Use
17566 nullify_last_target_wait_ptid.
17567 (get_last_target_status): Handle nullptr arguments.
17568 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
17569 (print_stop_event): Don't pass a ptid to get_last_target_status.
17570 (normal_stop): Don't pass a ptid to get_last_target_status.
17571 * infrun.h (get_last_target_status, set_last_target_status): Move
17572 comments here and update.
17573 (nullify_last_target_wait_ptid): Declare.
17574 * linux-fork.c (fork_load_infrun_state): Remove local extern
17575 declaration of nullify_last_target_wait_ptid.
17576 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
17577 to get_last_target_status.
17578
17579 2020-01-10 Pedro Alves <palves@redhat.com>
17580
17581 * gdbthread.h (scoped_restore_current_thread)
17582 <dont_restore, restore, m_dont_restore>: Declare.
17583 * thread.c (thread_alive): Add assertion. Return bool.
17584 (switch_to_thread_if_alive): New.
17585 (prune_threads): Switch inferior/thread.
17586 (print_thread_info_1): Switch thread before calling target methods.
17587 (scoped_restore_current_thread::restore): New, factored out from
17588 ...
17589 (scoped_restore_current_thread::~scoped_restore_current_thread):
17590 ... this.
17591 (scoped_restore_current_thread::scoped_restore_current_thread):
17592 Add assertion.
17593 (thread_apply_all_command, thread_select): Use
17594 switch_to_thread_if_alive.
17595 * infrun.c (proceed, restart_threads, handle_signal_stop)
17596 (switch_back_to_stepped_thread): Switch current thread before
17597 calling target methods.
17598
17599 2020-01-10 Pedro Alves <palves@redhat.com>
17600
17601 * inferior.c (switch_to_inferior_no_thread): New function,
17602 factored out from ...
17603 (inferior_command): ... here.
17604 * inferior.h (switch_to_inferior_no_thread): Declare.
17605 * mi/mi-main.c (run_one_inferior): Use
17606 switch_to_inferior_no_thread.
17607
17608 2020-01-10 Pedro Alves <palves@redhat.com>
17609
17610 * infcmd.c (kill_command): Remove dead code.
17611
17612 2020-01-10 Pedro Alves <palves@redhat.com>
17613
17614 * remote.c (remote_target::mourn_inferior): No longer check
17615 whether the target is running.
17616
17617 2020-01-10 Pedro Alves <palves@redhat.com>
17618
17619 * corelow.c (core_target::has_execution): Change parameter type to
17620 inferior pointer.
17621 * inferior.c (number_of_live_inferiors): Use
17622 inferior::has_execution instead of target_has_execution_1.
17623 * inferior.h (inferior::has_execution): New.
17624 * linux-thread-db.c (thread_db_target::update_thread_list): Use
17625 inferior::has_execution instead of target_has_execution_1.
17626 * process-stratum-target.c
17627 (process_stratum_target::has_execution): Change parameter type to
17628 inferior pointer. Check the inferior's PID instead of
17629 inferior_ptid.
17630 * process-stratum-target.h
17631 (process_stratum_target::has_execution): Change parameter type to
17632 inferior pointer.
17633 * record-full.c (record_full_core_target::has_execution): Change
17634 parameter type to inferior pointer.
17635 * target.c (target_has_execution_1): Change parameter type to
17636 inferior pointer.
17637 (target_has_execution_current): Adjust.
17638 * target.h (target_ops::has_execution): Change parameter type to
17639 inferior pointer.
17640 (target_has_execution_1): Change parameter type to inferior
17641 pointer. Change return type to bool.
17642 * tracefile.h (tracefile_target::has_execution): Change parameter
17643 type to inferior pointer.
17644
17645 2020-01-10 Pedro Alves <palves@redhat.com>
17646
17647 * exceptions.c (print_flush): Remove current_top_target() check.
17648
17649 2020-01-10 Pedro Alves <palves@redhat.com>
17650
17651 * remote.c (show_remote_exec_file): Show the current inferior's
17652 exec-file instead of the command variable's value.
17653
17654 2020-01-10 Pedro Alves <palves@redhat.com>
17655
17656 * record-full.c (record_full_resume_ptid): New global.
17657 (record_full_target::resume): Set it.
17658 (record_full_wait_1): Use record_full_resume_ptid instead of
17659 inferior_ptid.
17660
17661 2020-01-10 Pedro Alves <palves@redhat.com>
17662
17663 * gdbthread.h (scoped_restore_current_thread)
17664 <dont_restore, restore, m_dont_restore>: Declare.
17665 * thread.c (thread_alive): Add assertion. Return bool.
17666 (switch_to_thread_if_alive): New.
17667 (prune_threads): Switch inferior/thread.
17668 (print_thread_info_1): Switch thread before calling target methods.
17669 (scoped_restore_current_thread::restore): New, factored out from
17670 ...
17671 (scoped_restore_current_thread::~scoped_restore_current_thread):
17672 ... this.
17673 (scoped_restore_current_thread::scoped_restore_current_thread):
17674 Add assertion.
17675 (thread_apply_all_command, thread_select): Use
17676 switch_to_thread_if_alive.
17677
17678 2020-01-10 George Barrett <bob@bob131.so>
17679
17680 * stap-probe.c (stap_modify_semaphore): Don't check for null
17681 semaphores.
17682 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
17683 for null semaphores.
17684
17685 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
17686
17687 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
17688 all source windows, and maintain horizontal scroll status while
17689 doing so.
17690
17691 2020-01-09 Tom Tromey <tom@tromey.com>
17692
17693 PR tui/18932:
17694 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
17695 update_source_window, not print_source_lines.
17696
17697 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
17698
17699 * tui/tui.c (tui_enable): Register tui hooks after calling
17700 tui_display_main.
17701
17702 2020-01-09 Christian Biesinger <cbiesinger@google.com>
17703
17704 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
17705
17706 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
17707
17708 * thread.c (print_thread_info_1): Fix indentation.
17709
17710 2020-01-09 Christian Biesinger <cbiesinger@google.com>
17711
17712 * symtab.c (general_symbol_info::compute_and_set_names): Move the
17713 unique_xmalloc_ptr outside the if to always free the demangled name.
17714
17715 2020-01-08 Tom Tromey <tromey@adacore.com>
17716
17717 * xcoffread.c (enter_line_range, read_xcoff_symtab)
17718 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
17719 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
17720 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
17721 Remove.
17722 (section_offsets): New typedef.
17723 * symtab.c (fixup_section, get_msymbol_address): Update.
17724 * symmisc.c (dump_msymbols): Update.
17725 * symfile.h (relative_addr_info_to_section_offsets)
17726 (symfile_map_offsets_to_segments): Update.
17727 * symfile.c (build_section_addr_info_from_objfile)
17728 (init_objfile_sect_indices): Update.
17729 (struct place_section_arg): Change type of "offsets".
17730 (place_section): Update.
17731 (relative_addr_info_to_section_offsets): Change type of
17732 "section_offsets". Remove "num_sections" parameter.
17733 (default_symfile_offsets, syms_from_objfile_1)
17734 (set_objfile_default_section_offset): Update.
17735 (reread_symbols): No need to preserve section offsets by hand.
17736 (symfile_map_offsets_to_segments): Change type of "offsets".
17737 * stap-probe.c (relocate_address): Update.
17738 * stabsread.h (process_one_symbol): Update.
17739 * solib-target.c (struct lm_info_target) <offsets>: Change type.
17740 (solib_target_relocate_section_addresses): Update.
17741 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
17742 Update.
17743 * solib-frv.c (frv_relocate_main_executable): Update.
17744 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
17745 * solib-aix.c (solib_aix_get_section_offsets): Change return
17746 type.
17747 (solib_aix_solib_create_inferior_hook): Update.
17748 * remote.c (remote_target::get_offsets): Update.
17749 * psymtab.c (find_pc_sect_psymtab): Update.
17750 * psympriv.h (struct partial_symbol) <address, text_low,
17751 text_high>: Update.
17752 * objfiles.h (obj_section_offset): Update.
17753 (struct objfile) <section_offsets>: Change type.
17754 <num_sections>: Remove.
17755 (objfile_relocate): Update.
17756 * objfiles.c (entry_point_address_query): Update
17757 (relocate_one_symbol): Change type of "section_offsets".
17758 (objfile_relocate1, objfile_relocate1): Change type of
17759 "new_offsets".
17760 (objfile_rebase1): Update.
17761 * mipsread.c (mipscoff_symfile_read): Update.
17762 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
17763 parameter.
17764 * mdebugread.c (parse_symbol): Change type of "section_offsets".
17765 (parse_external, psymtab_to_symtab_1): Update.
17766 * machoread.c (macho_symfile_offsets): Update.
17767 * ia64-tdep.c (ia64_find_unwind_table): Update.
17768 * hppa-tdep.c (read_unwind_info): Update.
17769 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
17770 * dwarf2read.c (create_addrmap_from_index)
17771 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
17772 (process_psymtab_comp_unit_reader, add_partial_symbol)
17773 (add_partial_subprogram, process_full_comp_unit)
17774 (read_file_scope, read_func_scope, read_lexical_block_scope)
17775 (read_call_site_scope, dwarf2_rnglists_process)
17776 (dwarf2_ranges_process, dwarf2_ranges_read)
17777 (dwarf_decode_lines_1, var_decode_location, new_symbol)
17778 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
17779 Update.
17780 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
17781 Update.
17782 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
17783 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
17784 (process_one_symbol): Change type of "section_offsets".
17785 * ctfread.c (get_objfile_text_range): Update.
17786 * coffread.c (coff_symtab_read, enter_linenos)
17787 (process_coff_symbol): Update.
17788 * coff-pe-read.c (add_pe_forwarded_sym): Update.
17789 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
17790
17791 2020-01-08 Tom Tromey <tromey@adacore.com>
17792
17793 * dwarf2read.c (parse_macro_definition): Use std::string.
17794 (parse_macro_definition): Likewise.
17795
17796 2020-01-08 Tom Tromey <tromey@adacore.com>
17797
17798 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
17799 (ATTR_ALLOC_CHUNK): Remove.
17800
17801 2020-01-08 Tom Tromey <tromey@adacore.com>
17802
17803 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
17804
17805 2020-01-08 Tom Tromey <tromey@adacore.com>
17806
17807 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
17808 (dwarf2_compute_name, open_dwo_file): Likewise.
17809 (process_enumeration_scope): Use std::vector.
17810 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
17811 (partial_die_info::fixup, dwarf2_start_subfile)
17812 (guess_full_die_structure_name, dwarf2_name): Likewise.
17813 (determine_prefix): Update.
17814 (guess_full_die_structure_name): Make return type const.
17815 (partial_die_full_name): Return unique_xmalloc_ptr.
17816 (DW_FIELD_ALLOC_CHUNK): Remove.
17817
17818 2020-01-07 Tom Tromey <tromey@adacore.com>
17819
17820 PR build/24937:
17821 * stap-probe.c (class stap_static_probe_ops): Add constructor.
17822
17823 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
17824
17825 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
17826
17827 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
17828
17829 * stack.c (print_frame_info): Move disassemble_next_line code
17830 inside source_print block.
17831
17832 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17833
17834 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
17835 gdb/signals.h, as we are now using native signal symbols.
17836
17837 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
17838
17839 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
17840 overflow by an early check of content vs threshold.
17841 * tui/tui-source.c (tui_source_window::line_is_displayed):
17842 Likewise.
17843
17844 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17845
17846 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
17847
17848 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
17849
17850 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
17851 export table if no section contains it's RVA.
17852
17853 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17854
17855 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
17856
17857 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
17858
17859 * source.c (print_source_lines_base): Set last_line_listed.
17860
17861 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
17862
17863 * tui/tui-disasm.c: Remove trailing spaces.
17864
17865 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17866 Pedro Alves <palves@redhat.com>
17867
17868 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
17869 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
17870 (windows_gdb_signal_to_target): New function, uses the above
17871 enumeration to convert GDB internal signal codes to equivalent
17872 Windows codes.
17873 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
17874 * windows-nat.c: Include "gdb_wait.h".
17875 (get_windows_debug_event): Extract the fatal exception from the
17876 exit status and convert to the equivalent Posix signal number.
17877 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
17878 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
17879 * gdbsupport/gdb_wait.c: New file, implements
17880 windows_status_to_termsig.
17881 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
17882 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
17883
17884 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
17885
17886 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
17887 show_layout.
17888
17889 2020-01-05 Luis Machado <luis.machado@linaro.org>
17890
17891 * aarch64-linux-nat.c
17892 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
17893 and bfd_mach_aarch64.
17894
17895 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
17896
17897 * ui-file.c (stdio_file::can_emit_style_escape)
17898 (tee_file::can_emit_style_escape): Ensure style is used also on
17899 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
17900 to gdb_stdout.
17901 * main.c (set_gdb_data_directory): Use file style to output the
17902 warning that the given pathname is not a directory.
17903 * top.c (show_history_filename, gdb_safe_append_history)
17904 (show_gdb_datadir): Use file style.
17905
17906 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
17907
17908 * solib-target.c (struct lm_info_target):
17909 Change offsets to be a unique_xmalloc_ptr.
17910 (solib_target_relocate_section_addresses): Update.
17911
17912 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
17913
17914 * windows-nat.c (windows_clear_solib): Free so_list linked list.
17915
17916 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
17917
17918 * MAINTAINERS (Write After Approval): Add myself.
17919
17920 2020-01-02 Luis Machado <luis.machado@linaro.org>
17921
17922 * proc-service.c (get_ps_regcache): Remove reference to obsolete
17923 Cell BE architecture.
17924 * target.h (struct target_ops) <thread_architecture>: Likewise.
17925
17926 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
17927
17928 * Makefile.in: Use INSTALL_PROGRAM_ENV.
17929
17930 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
17931
17932 * MAINTAINERS (Write After Approval): Add myself.
17933
17934 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17935
17936 * gdbarch.sh: Update copyright year range of generated files.
17937
17938 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17939
17940 Update copyright year range in all GDB files.
17941
17942 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17943
17944 * copyright.py: Convert to Python 3.
17945
17946 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17947
17948 * copyright.py: Adapt after move of gnulib directory from gdb
17949 directory to toplevel directory.
17950
17951 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17952
17953 * copyright.py (main): Exit if run from the wrong directory.
17954
17955 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17956
17957 * top.c (print_gdb_version): Change copyright year to 2020.
17958
17959 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17960
17961 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
17962
17963 For older changes see ChangeLog-2019.
17964 \f
17965 Local Variables:
17966 mode: change-log
17967 left-margin: 8
17968 fill-column: 74
17969 version-control: never
17970 coding: utf-8
17971 End:
This page took 0.77261 seconds and 3 git commands to generate.