60b3ce44af295644bddc5542cab214a5384d2fc2
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2
3 * linespec.c (linespec_lexer_lex_keyword): The "-force-condition"
4 keyword may be followed by any keyword.
5 * breakpoint.c (find_condition_and_thread): Advance 'tok' by
6 'toklen' in the case for "-force-condition".
7
8 2020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9
10 * main.c (catch_command_errors): Add a flag parameter; invoke
11 `bpstat_do_actions` if the flag is set.
12 (execute_cmdargs): Update a call to `catch_command_errors`.
13
14 2020-12-07 Tom de Vries <tdevries@suse.de>
15
16 * ada-lang.c (replace_operator_with_call): Handle shrink resize.
17
18 2020-12-06 Tom Tromey <tom@tromey.com>
19
20 PR ada/26999
21 * ada-lang.c (replace_operator_with_call): Rewrite.
22
23 2020-12-06 Giancarlo Frix <gfrix@rocketsoftware.com> (tiny change)
24
25 PR breakpoints/27009
26 * s390-tdep.h (op_bc): Correct BC opcode value.
27
28 2020-12-06 Joel Brobecker <brobecker@adacore.com>
29
30 * gmp-utils.h (gdb_mpz::safe_export): New private method.
31 (gdb_mpz::as_integer): Reimplement using gdb_mpz::safe_export.
32 * gmp-utils.c (gdb_mpz::write): Rewrite using gdb_mpz::safe_export.
33 (gdb_mpz::safe_export): New method.
34 * unittests/gmp-utils-selftests .c (gdb_mpz_as_integer):
35 Update function description.
36 (check_as_integer_raises_out_of_range_error): New function.
37 (gdb_mpz_as_integer_out_of_range): New function.
38 (_initialize_gmp_utils_selftests): Register
39 gdb_mpz_as_integer_out_of_range as a selftest.
40
41 2020-12-05 Joel Brobecker <brobecker@adacore.com>
42
43 * gmp-utils.c (gdb_mpz::read): Use HOST_CHAR_BIT instead of
44 TARGET_CHAR_BIT.
45 (gdb_mpz::write): Likewise.
46
47 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
48
49 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass 2 as the
50 number of displaced step buffers.
51
52 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
53
54 * displaced-stepping.h (struct displaced_step_buffer): Rename
55 to...
56 (struct displaced_step_buffers): ... this.
57 <m_addr, m_current_thread, m_copy_insn_closure>: Remove.
58 <struct displaced_step_buffer>: New inner class.
59 <m_buffers>: New.
60 * displaced-stepping.c (displaced_step_buffer::prepare): Rename
61 to...
62 (displaced_step_buffers::prepare): ... this, adjust for multiple
63 buffers.
64 (displaced_step_buffer::finish): Rename to...
65 (displaced_step_buffers::finish): ... this, adjust for multiple
66 buffers.
67 (displaced_step_buffer::copy_insn_closure_by_addr): Rename to...
68 (displaced_step_buffers::copy_insn_closure_by_addr): ... this,
69 adjust for multiple buffers.
70 (displaced_step_buffer::restore_in_ptid): Rename to...
71 (displaced_step_buffers::restore_in_ptid): ... this, adjust for
72 multiple buffers.
73 * linux-tdep.h (linux_init_abi): Change supports_displaced_step
74 for num_disp_step_buffers.
75 * linux-tdep.c (struct linux_gdbarch_data)
76 <num_disp_step_buffers>: New field.
77 (struct linux_info) <disp_step_buf>: Rename to...
78 <disp_step_bufs>: ... this, change type to
79 displaced_step_buffers.
80 (linux_displaced_step_prepare): Use
81 linux_gdbarch_data::num_disp_step_buffers to create that number
82 of buffers.
83 (linux_displaced_step_finish): Adjust.
84 (linux_displaced_step_copy_insn_closure_by_addr): Adjust.
85 (linux_displaced_step_restore_all_in_ptid): Adjust.
86 (linux_init_abi): Change supports_displaced_step parameter for
87 num_disp_step_buffers, save it in linux_gdbarch_data.
88 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Adjust.
89 * alpha-linux-tdep.c (alpha_linux_init_abi): Adjust.
90 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Change
91 supports_displaced_step parameter for num_disp_step_buffers.
92 (amd64_linux_init_abi): Adjust.
93 (amd64_x32_linux_init_abi): Adjust.
94 * arc-linux-tdep.c (arc_linux_init_osabi): Adjust.
95 * arm-linux-tdep.c (arm_linux_init_abi): Adjust.
96 * bfin-linux-tdep.c (bfin_linux_init_abi): Adjust.
97 * cris-linux-tdep.c (cris_linux_init_abi): Adjust.
98 * csky-linux-tdep.c (csky_linux_init_abi): Adjust.
99 * frv-linux-tdep.c (frv_linux_init_abi): Adjust.
100 * hppa-linux-tdep.c (hppa_linux_init_abi): Adjust.
101 * i386-linux-tdep.c (i386_linux_init_abi): Adjust.
102 * ia64-linux-tdep.c (ia64_linux_init_abi): Adjust.
103 * m32r-linux-tdep.c (m32r_linux_init_abi): Adjust.
104 * m68k-linux-tdep.c (m68k_linux_init_abi):
105 * microblaze-linux-tdep.c (microblaze_linux_init_abi):
106 * mips-linux-tdep.c (mips_linux_init_abi): Adjust.
107 * mn10300-linux-tdep.c (am33_linux_init_osabi): Adjust.
108 * nios2-linux-tdep.c (nios2_linux_init_abi): Adjust.
109 * or1k-linux-tdep.c (or1k_linux_init_abi): Adjust.
110 * ppc-linux-tdep.c (ppc_linux_init_abi): Adjust.
111 * riscv-linux-tdep.c (riscv_linux_init_abi): Adjust.
112 * rs6000-tdep.c (struct ppc_inferior_data) <disp_step_buf>:
113 Change type to displaced_step_buffers.
114 * s390-linux-tdep.c (s390_linux_init_abi_any): Adjust.
115 * sh-linux-tdep.c (sh_linux_init_abi): Adjust.
116 * sparc-linux-tdep.c (sparc32_linux_init_abi): Adjust.
117 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Adjust.
118 * tic6x-linux-tdep.c (tic6x_uclinux_init_abi): Adjust.
119 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Adjust.
120 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Adjust.
121
122 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
123
124 * linux-tdep.c (init_linux_gdbarch_data): Change parameter to
125 obkstack.
126 (_initialize_linux_tdep): Register pre-init gdb data instead of
127 post-init.
128
129 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
130
131 * displaced-stepping.h (struct
132 displaced_step_copy_insn_closure): Adjust comments.
133 (struct displaced_step_inferior_state) <step_thread,
134 step_gdbarch, step_closure, step_original, step_copy,
135 step_saved_copy>: Remove fields.
136 (struct displaced_step_thread_state): New.
137 (struct displaced_step_buffer): New.
138 * displaced-stepping.c (displaced_step_buffer::prepare): New.
139 (write_memory_ptid): Move from infrun.c.
140 (displaced_step_instruction_executed_successfully): New,
141 factored out of displaced_step_finish.
142 (displaced_step_buffer::finish): New.
143 (displaced_step_buffer::copy_insn_closure_by_addr): New.
144 (displaced_step_buffer::restore_in_ptid): New.
145 * gdbarch.sh (displaced_step_location): Remove.
146 (displaced_step_prepare, displaced_step_finish,
147 displaced_step_copy_insn_closure_by_addr,
148 displaced_step_restore_all_in_ptid): New.
149 * gdbarch.c: Re-generate.
150 * gdbarch.h: Re-generate.
151 * gdbthread.h (class thread_info) <displaced_step_state>: New
152 field.
153 (thread_step_over_chain_remove): New declaration.
154 (thread_step_over_chain_next): New declaration.
155 (thread_step_over_chain_length): New declaration.
156 * thread.c (thread_step_over_chain_remove): Make non-static.
157 (thread_step_over_chain_next): New.
158 (global_thread_step_over_chain_next): Use
159 thread_step_over_chain_next.
160 (thread_step_over_chain_length): New.
161 (global_thread_step_over_chain_enqueue): Add debug print.
162 (global_thread_step_over_chain_remove): Add debug print.
163 * infrun.h (get_displaced_step_copy_insn_closure_by_addr):
164 Remove.
165 * infrun.c (get_displaced_stepping_state): New.
166 (displaced_step_in_progress_any_inferior): Remove.
167 (displaced_step_in_progress_thread): Adjust.
168 (displaced_step_in_progress): Adjust.
169 (displaced_step_in_progress_any_thread): New.
170 (get_displaced_step_copy_insn_closure_by_addr): Remove.
171 (gdbarch_supports_displaced_stepping): Use
172 gdbarch_displaced_step_prepare_p.
173 (displaced_step_reset): Change parameter from inferior to
174 thread.
175 (displaced_step_prepare_throw): Implement using
176 gdbarch_displaced_step_prepare.
177 (write_memory_ptid): Move to displaced-step.c.
178 (displaced_step_restore): Remove.
179 (displaced_step_finish): Implement using
180 gdbarch_displaced_step_finish.
181 (start_step_over): Allow starting more than one displaced step.
182 (prepare_for_detach): Handle possibly multiple threads doing
183 displaced steps.
184 (handle_inferior_event): Handle possibility that fork event
185 happens while another thread displaced steps.
186 * linux-tdep.h (linux_displaced_step_prepare): New.
187 (linux_displaced_step_finish): New.
188 (linux_displaced_step_copy_insn_closure_by_addr): New.
189 (linux_displaced_step_restore_all_in_ptid): New.
190 (linux_init_abi): Add supports_displaced_step parameter.
191 * linux-tdep.c (struct linux_info) <disp_step_buf>: New field.
192 (linux_displaced_step_prepare): New.
193 (linux_displaced_step_finish): New.
194 (linux_displaced_step_copy_insn_closure_by_addr): New.
195 (linux_displaced_step_restore_all_in_ptid): New.
196 (linux_init_abi): Add supports_displaced_step parameter,
197 register displaced step methods if true.
198 (_initialize_linux_tdep): Register inferior_execd observer.
199 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Add
200 supports_displaced_step parameter, adjust call to
201 linux_init_abi. Remove call to
202 set_gdbarch_displaced_step_location.
203 (amd64_linux_init_abi): Adjust call to
204 amd64_linux_init_abi_common.
205 (amd64_x32_linux_init_abi): Likewise.
206 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Adjust call to
207 linux_init_abi. Remove call to
208 set_gdbarch_displaced_step_location.
209 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
210 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
211 * alpha-linux-tdep.c (alpha_linux_init_abi): Adjust call to
212 linux_init_abi.
213 * arc-linux-tdep.c (arc_linux_init_osabi): Likewise.
214 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
215 * cris-linux-tdep.c (cris_linux_init_abi): Likewise.
216 * csky-linux-tdep.c (csky_linux_init_abi): Likewise.
217 * frv-linux-tdep.c (frv_linux_init_abi): Likewise.
218 * hppa-linux-tdep.c (hppa_linux_init_abi): Likewise.
219 * ia64-linux-tdep.c (ia64_linux_init_abi): Likewise.
220 * m32r-linux-tdep.c (m32r_linux_init_abi): Likewise.
221 * m68k-linux-tdep.c (m68k_linux_init_abi): Likewise.
222 * microblaze-linux-tdep.c (microblaze_linux_init_abi): Likewise.
223 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
224 * mn10300-linux-tdep.c (am33_linux_init_osabi): Likewise.
225 * nios2-linux-tdep.c (nios2_linux_init_abi): Likewise.
226 * or1k-linux-tdep.c (or1k_linux_init_abi): Likewise.
227 * riscv-linux-tdep.c (riscv_linux_init_abi): Likewise.
228 * s390-linux-tdep.c (s390_linux_init_abi_any): Likewise.
229 * sh-linux-tdep.c (sh_linux_init_abi): Likewise.
230 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
231 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
232 * tic6x-linux-tdep.c (tic6x_uclinux_init_abi): Likewise.
233 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
234 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Likewise.
235 * ppc-linux-tdep.c (ppc_linux_init_abi): Adjust call to
236 linux_init_abi. Remove call to
237 set_gdbarch_displaced_step_location.
238 * arm-tdep.c (arm_pc_is_thumb): Call
239 gdbarch_displaced_step_copy_insn_closure_by_addr instead of
240 get_displaced_step_copy_insn_closure_by_addr.
241 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Adjust calls to
242 clear gdbarch methods.
243 * rs6000-tdep.c (struct ppc_inferior_data): New structure.
244 (get_ppc_per_inferior): New function.
245 (ppc_displaced_step_prepare): New function.
246 (ppc_displaced_step_finish): New function.
247 (ppc_displaced_step_restore_all_in_ptid): New function.
248 (rs6000_gdbarch_init): Register new gdbarch methods.
249 * s390-tdep.c (s390_gdbarch_init): Don't call
250 set_gdbarch_displaced_step_location, set new gdbarch methods.
251
252 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
253
254 * Makefile.in (COMMON_SFILES): Add displaced-stepping.c.
255 * aarch64-tdep.h: Include displaced-stepping.h.
256 * displaced-stepping.h (struct displaced_step_copy_insn_closure):
257 Move here.
258 (displaced_step_copy_insn_closure_up): Move here.
259 (struct buf_displaced_step_copy_insn_closure): Move here.
260 (struct displaced_step_inferior_state): Move here.
261 (debug_displaced): Move here.
262 (displaced_debug_printf_1): Move here.
263 (displaced_debug_printf): Move here.
264 * displaced-stepping.c: New file.
265 * gdbarch.sh: Include displaced-stepping.h in gdbarch.h.
266 * gdbarch.h: Re-generate.
267 * inferior.h: Include displaced-stepping.h.
268 * infrun.h (debug_displaced): Move to displaced-stepping.h.
269 (displaced_debug_printf_1): Likewise.
270 (displaced_debug_printf): Likewise.
271 (struct displaced_step_copy_insn_closure): Likewise.
272 (displaced_step_copy_insn_closure_up): Likewise.
273 (struct buf_displaced_step_copy_insn_closure): Likewise.
274 (struct displaced_step_inferior_state): Likewise.
275 * infrun.c (show_debug_displaced): Move to displaced-stepping.c.
276 (displaced_debug_printf_1): Likewise.
277 (displaced_step_copy_insn_closure::~displaced_step_copy_insn_closure):
278 Likewise.
279 (_initialize_infrun): Don't register "set/show debug displaced".
280
281 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
282
283 * linux-tdep.c (get_linux_inferior_data): Add inferior
284 parameter.
285 (linux_vsyscall_range): Pass current inferior.
286
287 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
288
289 * infrun.c (displaced_step_prepare_throw): Change return type to
290 displaced_step_prepare_status.
291 (displaced_step_prepare): Likewise.
292 (displaced_step_finish): Change return type to
293 displaced_step_finish_status.
294 (resume_1): Adjust.
295 (stop_all_threads): Adjust.
296 * displaced-stepping.h: New file.
297
298 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
299
300 * infrun.c (displaced_step_fixup): Rename to...
301 (displaced_step_finish): ... this, update all callers.
302
303 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
304
305 * infrun.h (get_displaced_step_closure_by_addr): Rename to...
306 (get_displaced_step_copy_insn_closure_by_addr): ... this.
307 Update all users.
308 (displaced_step_closure): Rename to...
309 (displaced_step_copy_insn_closure): ... this. Update all users.
310 (displaced_step_closure_up): Rename to...
311 (displaced_step_copy_insn_closure_up). ... this. Update all
312 users.
313 (buf_displaced_step_closure): Rename to...
314 (buf_displaced_step_copy_insn_closure): ... this. Update all
315 users.
316 * infrun.c (get_displaced_step_closure_by_addr): Rename to...
317 (get_displaced_step_copy_insn_closure_by_addr): ... this.
318 Update all users.
319 * aarch64-tdep.c (aarch64_displaced_step_closure): Rename to...
320 (aarch64_displaced_step_copy_insn_closure): ... this. Update
321 all users.
322 * amd64-tdep.c (amd64_displaced_step_closure): Rename to...
323 (amd64_displaced_step_copy_insn_closure): ... this. Update all
324 users.
325 * arm-tdep.h (arm_displaced_step_closure): Rename to...
326 (arm_displaced_step_copy_insn_closure): ... this. Update all
327 users.
328 * i386-tdep.h (i386_displaced_step_closure): Rename to...
329 (i386_displaced_step_copy_insn_closure): ... this. Update all
330 users.
331 * rs6000-tdep.c (ppc_displaced_step_closure): Rename to...
332 (ppc_displaced_step_copy_insn_closure): ... this. Update all
333 users.
334 * s390-tdep.c (s390_displaced_step_closure): Rename to...
335 (s390_displaced_step_copy_insn_closure): ... this. Update all
336 users.
337 * gdbarch.h: Re-generate.
338 * gdbarch.c: Re-generate.
339
340 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
341
342 * gdbthread.h (thread_step_over_chain_enqueue): Rename to...
343 (global_thread_step_over_chain_enqueue): ... this. Update all
344 users.
345 (thread_step_over_chain_remove): Rename to...
346 (global_thread_step_over_chain_remove): ... this. Update all
347 users.
348 (thread_step_over_chain_next): Rename to...
349 (global_thread_step_over_chain_next): ... this. Update all
350 users.
351 * infrun.h (step_over_queue_head): Rename to...
352 (global_thread_step_over_chain_head): ... this. Update all
353 users.
354 * infrun.c (step_over_queue_head): Rename to...
355 (global_thread_step_over_chain_head): ... this. Update all
356 users.
357 * thread.c (step_over_chain_remove): Rename to...
358 (thread_step_over_chain_remove): ... this. Update all users.
359 (thread_step_over_chain_next): Rename to...
360 (global_thread_step_over_chain_next): ... this. Update all
361 users.
362 (thread_step_over_chain_enqueue): Rename to...
363 (global_thread_step_over_chain_enqueue): ... this. Update all
364 users.
365 (thread_step_over_chain_remove): Rename to...
366 (global_thread_step_over_chain_remove): ... this. Update all
367 users.
368
369 2020-12-04 Simon Marchi <simon.marchi@polymtl.ca>
370
371 * infrun.c (get_displaced_stepping_state): Remove, change
372 callers to access the field directly.
373
374 2020-12-04 Simon Marchi <simon.marchi@polymtl.ca>
375
376 * infrun.c (handle_inferior_event): Restore displaced step
377 buffer bytes in child process when handling fork, even if fork
378 happened in another thread than the displaced-stepping one.
379
380 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
381
382 * infrun.c (infrun_inferior_execd): New function.
383 (_initialize_infrun): Attach inferior_execd observer.
384
385 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
386
387 * observable.h (inferior_execd): Declare new observable.
388 * observable.c (inferior_execd): Declare new observable.
389 * infrun.c (follow_exec): Notify inferior_execd observer.
390 * jit.c (jit_inferior_created_hook): Make static.
391 (_initialize_jit): Register inferior_execd observer.
392 * jit.h (jit_inferior_created_hook): Remove declaration.
393 * solib.c (_initialize_solib): Register inferior_execd observer.
394
395 2020-12-04 Tom de Vries <tdevries@suse.de>
396
397 PR gdb/27003
398 * completer.c (completion_tracker::build_completion_result): Don't
399 access match_list[0][-1].
400
401 2020-12-04 Tom Tromey <tromey@adacore.com>
402
403 * linespec.c (struct linespec_token): Rename; remove typedef.
404 * guile/scm-block.c (struct block_smob): Remove typedef.
405 (struct block_syms_progress_smob): Likewise.
406 * guile/scm-symbol.c (struct symbol_smob): Remove typedef.
407 * guile/scm-symtab.c (symtab_smob): Remove typedef.
408 (struct sal_smob): Remove typedef.
409 * guile/scm-param.c (struct param_smob): Remove typedef.
410 * guile/scm-progspace.c (struct pspace_smob): Rename.
411 * guile/scm-objfile.c (struct objfile_smob): Rename.
412 * guile/scm-iterator.c (struct iterator_smob): Rename.
413 * guile/scm-frame.c (struct frame_smob): Rename.
414 * guile/scm-arch.c (struct arch_smob): Rename.
415 * guile/scm-type.c (struct field_smob): Remove typedef.
416 (struct type_smob): Rename.
417 * guile/scm-cmd.c (struct command_smob): Remove typedef.
418 * guile/scm-ports.c (struct ioscm_memory_port): Remove typedef.
419 * guile/scm-value.c (struct value_smob): Remove typedef.
420 * guile/scm-lazy-string.c (lazy_string_smob): Remove typedef.
421 * guile/guile-internal.h (struct scheme_variable)
422 (struct scheme_function, struct scheme_integer_constant)
423 (struct gdb_smob, struct chained_gdb_smob)
424 (struct eqable_gdb_smob, arch_smob, frame_smob, iterator_smob)
425 (objfile_smob, pspace_smob, type_smob): Remove typedef.
426 * guile/scm-pretty-print.c (pretty_printer_smob): Remove typedef.
427 (struct pretty_printer_worker_smob): Remove typedef.
428 * guile/scm-exception.c (struct exception_smob): Remove typedef.
429 * python/py-block.c (struct block_object): Remove typedef.
430 (block_syms_iterator_object): Update.
431 (set_block): Update.
432 (block_syms_iterator_object): Remove typedef.
433 * python/py-inferior.c (struct membuf_object): Remove typedef.
434 * python/py-symtab.c (struct symtab_object): Remove typedef.
435 (set_symtab): Update.
436 (sal_object): Remove typedef.
437 (set_sal): Update.
438 * python/py-frame.c (frame_object): Remove typedef.
439 * python/py-record-btrace.c (struct btpy_list_object): Remove
440 typedef.
441 * python/py-arch.c (struct arch_object): Remove typedef.
442 * python/py-linetable.c (struct linetable_entry_object)
443 (linetable_object, struct ltpy_iterator_object): Remove typedef.
444 * python/py-events.h (eventregistry_object): Remove typedef.
445 (struct events_object): Remove typedef.
446 * python/python-internal.h (gdbpy_breakpoint_object): Remove
447 typedef.
448 (thread_object): Remove typedef.
449 * python/py-progspace.c (pspace_object): Remove typedef.
450 * python/py-value.c (struct value_object): Remove typedef.
451 * python/py-record.h (recpy_record_object): Remove typedef.
452 (struct recpy_element_object): Remove typedef.
453 * python/py-lazy-string.c (lazy_string_object): Remove typedef.
454 * python/py-objfile.c (objfile_object): Remove typedef.
455 * python/py-cmd.c (struct cmdpy_object): Remove typedef.
456 * python/py-type.c (type_object): Remove typedef.
457 (typy_iterator_object): Update.
458 (set_type): Update.
459 (field_object): Remove typedef.
460 (typy_iterator_object): Remove typedef.
461 * python/py-registers.c (register_descriptor_iterator_object):
462 Remove typedef.
463 (struct register_descriptor_object)
464 (struct reggroup_iterator_object, struct reggroup_object): Remove
465 typedef.
466 * python/py-record.c (recpy_gap_object): Remove typedef.
467 * python/py-symbol.c (symbol_object): Remove typedef.
468 (set_symbol): Update.
469 * python/py-event.h (event_object): Remove typedef.
470 * python/py-param.c (parmpy_object): Remove typedef.
471 * python/py-instruction.c (struct py_insn_obj): Remove typedef.
472 * python/py-unwind.c (struct pending_frame_object): Remove typedef.
473 (unwind_info_object, struct cached_frame_info): Likewise.
474
475 2020-12-04 Tom Tromey <tromey@adacore.com>
476
477 * value.c (value_internal_function_name): Make return type const.
478 * value.h (value_internal_function_name): Make return type const.
479
480 2020-12-04 Luis Machado <luis.machado@linaro.org>
481
482 * aarch64-tdep.c (submask, bit, bits): Remove.
483 * arch/aarch64-insn.c (extract_signed_bitfield): Remove.
484 (aarch64_decode_adr, aarch64_decode_b aarch64_decode_bcond)
485 (aarch64_decode_cb, aarch64_decode_tb)
486 (aarch64_decode_ldr_literal): Use sbits to extract a signed
487 immediate.
488 * arch/aarch64-insn.h (submask, bits, bit, sbits): New macros.
489
490 2020-12-04 Tom de Vries <tdevries@suse.de>
491
492 PR tdep/27007
493 * i386-tdep.c (i386_16_byte_align_p): Skip static fields.
494
495 2020-12-03 Simon Marchi <simon.marchi@polymtl.ca>
496
497 PR gdb/26876
498 * dwarf2/frame.c (find_comp_unit, set_comp_unit): Reverse use of
499 dwarf2_frame_bfd_data and dwarf2_frame_objfile_data.
500
501 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
502
503 * arch/riscv.c: Include 'rv32e-xregs.c'.
504 (riscv_create_target_description): Update to handle rv32e.
505 * arch/riscv.h (struct riscv_gdbarch_features) <embedded>: New
506 member variable.
507 <operator==>: Update to account for new field.
508 <hash>: Likewise.
509 * features/Makefile (FEATURE_XMLFILES): Add riscv/rv32e-xregs.xml.
510 * features/riscv/rv32e-xregs.c: Generated.
511 * features/riscv/rv32e-xregs.xml: New file.
512 * riscv-tdep.c (riscv_debug_breakpoints): Move from later in the
513 file.
514 (riscv_debug_infcall): Likewise.
515 (riscv_debug_unwinder): Likewise.
516 (riscv_debug_gdbarch): Likewise.
517 (enum riscv_register_required_status): Delete.
518 (struct riscv_register_feature): Add constructor, delete default
519 constructor, copy, and assign constructors.
520 (struct riscv_register_feature::register_info) <required>: Delete.
521 <check>: Update comment and arguments.
522 (struct riscv_register_feature) <name>: Change to member function.
523 <prefer_first_name>: Delete.
524 <tdesc_feature>: New member function.
525 <registers>: Rename to...
526 <m_registers>: ...this.
527 <m_feature_name>: New member variable.
528 (riscv_register_feature::register_info::check): Update arguments.
529 (riscv_xreg_feature): Rewrite as class, create a single static
530 instance of the class.
531 (riscv_freg_feature): Likewise.
532 (riscv_virtual_feature): Likewise.
533 (riscv_csr_feature): Likewise.
534 (riscv_create_csr_aliases): Has become a member function inside
535 riscv_csr_feature class.
536 (riscv_abi_embedded): New function definition.
537 (riscv_register_name): Adjust to use new feature objects.
538 (struct riscv_call_info) <riscv_call_info>: Check for rv32e abi,
539 and adjust available argument registers.
540 (riscv_features_from_gdbarch_info): Check for EF_RISCV_RVE flag.
541 (riscv_check_tdesc_feature): Delete.
542 (riscv_tdesc_unknown_reg): Adjust to use new feature objects.
543 (riscv_gdbarch_init): Delete target description checking code, and
544 instead call to the new feature objects to perform the checks.
545 Reorder handling of no abi information case, allows small code
546 simplification.
547 (_initialize_riscv_tdep): Remove call, this is now done in the
548 riscv_csr_feature constructor.
549 * riscv-tdep.h (riscv_abi_embedded): Declare.
550
551 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
552
553 * riscv-tdep.c (riscv_create_csr_aliases): Remove use of
554 DECLARE_CSR_ALIAS.
555
556 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
557
558 * riscv-tdep.c (riscv_is_unknown_csr): New function,
559 implementation moved from riscv_register_reggroup_p.
560 (riscv_register_reggroup_p): Update group handling for unknown
561 CSRs.
562
563 2020-12-01 Sergio Durigan Junior <sergiodj@sergiodj.net>
564
565 * dwarf2/read.c (dwz_search_other_debugdirs): New function.
566 (dwarf2_get_dwz_file): Convert 'filename' to a
567 std::string. Use dwz_search_other_debugdirs to search for DWZ
568 files in the debug-file-directories provided by the user as well.
569
570 2020-12-01 Tom Tromey <tom@tromey.com>
571
572 * parse.c (expr_builder::expr_builder): Initialize expout.
573 (expr_builder::release): Use expression::resize.
574 (expression::expression, expression::~expression)
575 (expression::resize): New methods.
576 (write_exp_elt): Use expression::resize.
577 (prefixify_expression): Update.
578 (increase_expout_size): Use expression::resize.
579 * expression.h (struct expression): Add constructor, destructor.
580 <resize>: New method.
581 (expression_up): Change type.
582
583 2020-12-01 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
584 * ppc-linux-nat.c: (PPC_DEBUG_FEATURE_DATA_BP_ARCH_31): New define.
585 (region_ok_for_hw_watchpoint): Check if 2nd DAWR is avaliable before
586 set region.
587
588 2020-11-30 Tom de Vries <tdevries@suse.de>
589
590 PR symtab/26905
591 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add and handle
592 is_reference parameter.
593 (dwarf2_evaluate_property): Update dwarf2_locexpr_baton_eval call.
594
595 2020-11-30 Tom Tromey <tom@tromey.com>
596
597 * rust-lang.c (rust_op_name): Remove.
598 (exp_descriptor_rust): Update.
599 * parser-defs.h (op_name_standard): Don't declare.
600 (struct exp_descriptor) <op_name>: Remove.
601 * parse.c (exp_descriptor_standard): Update.
602 * opencl-lang.c (exp_descriptor_opencl): Update.
603 * m2-lang.c (m2_language::exp_descriptor_modula2): Update.
604 * f-lang.c (op_name_f): Remove.
605 (f_language::exp_descriptor_tab): Update.
606 * expression.h (op_name): Update.
607 * expprint.c (op_name): Rewrite.
608 (op_name_standard): Remove.
609 (dump_raw_expression, dump_subexp): Update.
610 * c-lang.c (exp_descriptor_c): Update.
611 * ax-gdb.c (gen_expr): Update.
612 * ada-lang.c (ada_op_name): Remove.
613 (ada_exp_descriptor): Update.
614
615 2020-11-30 Tom Tromey <tom@tromey.com>
616
617 * eval.c (init_array_element): Remove.
618 (evaluate_subexp_standard) <OP_ARRAY>: Remove "index_pc".
619
620 2020-11-29 Hannes Domani <ssbssa@yahoo.de>
621
622 PR tui/26973
623 * tui/tui-layout.c (tui_apply_current_layout): Don't delete the
624 static locator win info.
625
626 2020-11-28 Alex Richardson <Alexander.Richardson@cl.cam.ac.uk>
627
628 * acincludde.m4 (GDB_AC_CHECK_BFD): Include string.h in the test
629 program.
630
631 2020-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
632
633 * printcmd.c (skip_over_slash_fmt): Reorder code to ensure in_fmt
634 is always initialized.
635
636 2020-11-26 Rogerio Alves <rcardoso@linux.ibm.com>
637 * MAINTAINERS (Write After Approval): Add myself.
638
639 2020-11-26 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
640
641 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
642 * features/aarch64-fpu.xml: Add named FPCR and FPSR register bit-fields.
643
644 2020-11-25 Tom Tromey <tom@tromey.com>
645
646 * eval.c (evaluate_subexp_standard): Remove unnecessary
647 variables.
648
649 2020-11-25 Tom Tromey <tom@tromey.com>
650
651 * d-lang.c: Include parser-defs.h.
652 * rust-lang.c: Include parser-defs.h.
653 * c-lang.h: Do not include parser-defs.h.
654
655 2020-11-24 Simon Marchi <simon.marchi@polymtl.ca>
656
657 * regcache.h (struct cached_reg): Remove typedef.
658
659 2020-11-24 Joel Brobecker <brobecker@adacore.com>
660
661 * README: Fix the URL of the MPFR library.
662
663 2020-11-24 Joel Brobecker <brobecker@adacore.com>
664
665 * README: Document the --with-libgmp-prefix configure option.
666
667 2020-11-24 Joel Brobecker <brobecker@adacore.com>
668
669 * NEWS: Add entry documenting support for DWARF-based fixed
670 point types.
671
672 2020-11-24 Joel Brobecker <brobecker@adacore.com>
673
674 * NEWS: Document that building GDB now requires GMP.
675
676 2020-11-24 Joel Brobecker <brobecker@adacore.com>
677
678 * typeprint.c (print_type_scalar): Add handling of
679 TYPE_CODE_FIXED_POINT.
680
681 2020-11-24 Joel Brobecker <brobecker@adacore.com>
682
683 * valarith.c (fixed_point_binop): Replace the
684 INIT_VAL_WITH_FIXED_POINT_VAL macro by a lambda. Update all
685 users accordingly.
686
687 2020-11-24 Joel Brobecker <brobecker@adacore.com>
688
689 * gdbtypes.h (struct type) <fixed_point_scaling_factor>: New method,
690 replacing fixed_point_scaling_factor. All callers updated
691 throughout this project.
692 (fixed_point_scaling_factor): Delete declaration.
693 * gdbtypes.c (type::fixed_point_scaling_factor): Replaces
694 fixed_point_scaling_factor. Adjust implementation accordingly.
695
696 2020-11-24 Joel Brobecker <brobecker@adacore.com>
697
698 * gdbtypes.h (struct type) <fixed_point_type_base_type> New method,
699 replacing the fixed_point_type_base_type function. All callers
700 updated throughout this project.
701 (fixed_point_type_base_type): Remove declaration.
702 * gdbtypes.c (type::fixed_point_type_base_type): Replaces
703 fixed_point_type_base_type. Adjust implementation accordingly.
704
705 2020-11-24 Joel Brobecker <brobecker@adacore.com>
706
707 * gdbtypes.h (struct type) <fixed_point_info, set_fixed_point_info>:
708 New methods.
709 (INIT_FIXED_POINT_SPECIFIC): Adjust.
710 (TYPE_FIXED_POINT_INFO): Delete macro.
711 (allocate_fixed_point_type_info): Change return type to void.
712 * gdbtypes.c (copy_type_recursive): Replace the use of
713 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
714 (fixed_point_scaling_factor): Likewise.
715 (allocate_fixed_point_type_info): Change return type to void.
716 Adjust implementation accordingly.
717 * dwarf2/read.c (finish_fixed_point_type): Replace the use of
718 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
719
720 2020-11-24 Joel Brobecker <brobecker@adacore.com>
721
722 * gmp-utils.h (gdb_mpz::read): Change buf and len parameters
723 into one single gdb::array_view parameter.
724 (gdb_mpz::write): Likewise.
725 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
726 * gmp-utils.c (gdb_mpz::read): Change buf and len parameters
727 into one single gdb::array_view parameter.
728 Adjust implementation accordingly.
729 (gdb_mpz::write): Likewise.
730 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
731 * unittests/gmp-utils-selftests.c: Adapt following changes above.
732 * valarith.c, valops.c, valprint.c, value.c: Likewise.
733
734 2020-11-24 Joel Brobecker <brobecker@adacore.com>
735
736 * gmp-utils.h (gmp_string_printf): Rename from gmp_string_asprintf.
737 Change return type to std::string. Update all callers.
738 * gmp-utils.c (gmp_string_printf): Likewise.
739
740 2020-11-24 Joel Brobecker <brobecker@adacore.com>
741
742 * unittests/gmp-utils-selftests.c (write_fp_test): Use mpq_set_si
743 instead of mpq_set_ui to initialize our GMP rational.
744
745 2020-11-23 Tom de Vries <tdevries@suse.de>
746
747 * debuginfod-support.c (debuginfod_source_query)
748 (debuginfod_debuginfo_query): Only set DESTNAME if successful.
749
750 2020-11-21 Tom Tromey <tom@tromey.com>
751
752 * breakpoint.c (watchpoint_exp_is_const): Return bool.
753
754 2020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
755
756 * unittests/gmp-utils-selftests.c (gdb_mpz_read_all_from_small):
757 Pass 2.0 to pow.
758 (gdb_mpz_write_all_from_small): Likewise.
759
760 2020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
761
762 * dwarf2/read.c (finish_fixed_point_type): Use std::abs instead
763 of abs.
764
765 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
766
767 * ctfread.c (elfctf_build_psymtabs): Use ctf_dict_open, not
768 ctf_arc_open_by_name.
769
770 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
771
772 * ctfread.c: Change uses of ctf_file_t to ctf_dict_t.
773 (ctf_fp_info::~ctf_fp_info): Call ctf_dict_close, not ctf_file_close.
774
775 2020-11-20 Pedro Alves <pedro@palves.net>
776
777 * language.c (language_arch_info::lookup_primitive_type): Use
778 gdb::function_view instead of gdb::function.
779 (template language_lookup_primitive_type): Rename to ...
780 (language_lookup_primitive_type_1): ... this, and make static.
781 (language_lookup_primitive_type(const struct language_defn *,
782 struct gdbarch *, const char *): Make non-template.
783 (language_lookup_primitive_type(const struct language_defn *,
784 struct gdbarch *, std::function<bool (struct type *)>): Make
785 non-template and use gdb::function_view.
786 * language.h (language_arch_info::lookup_primitive_type): Use
787 gdb::function_view instead of std::function.
788 (language_lookup_primitive_type): No longer template.
789 * opencl-lang.c (lookup_opencl_vector_type): 'filter' is now a
790 lambda instead of a std::function.
791
792 2020-11-19 Andreas Arnez <arnez@linux.ibm.com>
793
794 PR tdep/26916
795 * s390-tdep.c (s390_process_record): Fix recording of STOC, STOCG,
796 and STOCFH.
797
798 2020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
799
800 * f-lang.c (fortran_value_subarray): Use plongest/pulongest.
801
802 2020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
803
804 * gdbarch.sh (read_core_file_mappings): Remove `other` parameter
805 in `loop_cb` parameter.
806 * gdbarch.c: Re-generate.
807 * gdbarch.h: Re-generate.
808 * arch-utils.c (default_read_core_file_mappings): Remove `other`
809 parameter.
810 * arch-utils.h (default_read_core_file_mappings): Likewise.
811 * corelow.c (core_target::build_file_mappings): Likewise.
812 * linux-tdep.c (linux_read_core_file_mappings): Likewise.
813 (linux_core_info_proc_mappings): Likewise.
814
815 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
816
817 * Makefile.in (HFILES_NO_SRCDIR): Add f-array-walker.h.
818 * NEWS: Mention new options.
819 * f-array-walker.h: New file.
820 * f-lang.c: Include 'gdbcmd.h' and 'f-array-walker.h'.
821 (repack_array_slices): New static global.
822 (show_repack_array_slices): New function.
823 (fortran_array_slicing_debug): New static global.
824 (show_fortran_array_slicing_debug): New function.
825 (value_f90_subarray): Delete.
826 (skip_undetermined_arglist): Delete.
827 (class fortran_array_repacker_base_impl): New class.
828 (class fortran_lazy_array_repacker_impl): New class.
829 (class fortran_array_repacker_impl): New class.
830 (fortran_value_subarray): Complete rewrite.
831 (set_fortran_list): New static global.
832 (show_fortran_list): Likewise.
833 (_initialize_f_language): Register new commands.
834 (fortran_adjust_dynamic_array_base_address_hack): New function.
835 * f-lang.h (fortran_adjust_dynamic_array_base_address_hack):
836 Declare.
837 * f-valprint.c: Include 'f-array-walker.h'.
838 (class fortran_array_printer_impl): New class.
839 (f77_print_array_1): Delete.
840 (f77_print_array): Delete.
841 (fortran_print_array): New.
842 (f_value_print_inner): Update to call fortran_print_array.
843 * gdbtypes.c: Include 'f-lang.h'.
844 (resolve_dynamic_type_internal): Call
845 fortran_adjust_dynamic_array_base_address_hack.
846
847 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
848
849 * breakpoint.c (struct watch_options): New struct.
850 (watch_option_defs): New static global.
851 (make_watch_options_def_group): New function.
852 (watch_maybe_just_location): Convert option parsing.
853 (watch_command_completer): New function.
854 (_initialize_breakpoint): Build help text using options mechanism.
855
856 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
857
858 * breakpoint.c (update_watchpoint): Pass 'false' not '0'.
859 (watch_command_1): Update parameter types. Convert locals to
860 bool.
861 (watch_command_wrapper): Change parameter type.
862 (watch_maybe_just_location): Change locals to bool.
863 (rwatch_command_wrapper): Update parameter type.
864 (awatch_command_wrapper): Update parameter type.
865 * breakpoint.h (watch_command_wrapper): Change parameter type.
866 (rwatch_command_wrapper): Update parameter type.
867 (awatch_command_wrapper): Update parameter type.
868 * eval.c (fetch_subexp_value): Change parameter type.
869 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition): Pass
870 'false' not '0'.
871 * value.h (fetch_subexp_value): Change parameter type in
872 declaration.
873
874 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
875
876 * printcmd.c (skip_over_slash_fmt): Make use of skip_to_space and
877 skip_spaces.
878
879 2020-11-18 Keith Seitz <keiths@redhat.com>
880
881 * linux-tdep.c (dump_note_entry_p): Return true instead of
882 checking `filename'.
883
884 2020-11-18 Tom de Vries <tdevries@suse.de>
885
886 * debuginfod-support.c (debuginfod_source_query)
887 (debuginfod_debuginfo_query): Also do early exit if
888 "(getenv (DEBUGINFOD_URLS_ENV_VAR))[0] == '\0'".
889
890 2020-11-18 Tom de Vries <tdevries@suse.de>
891
892 * gdbtypes.c (update_static_array_size): Fix -Werror=bool-compare
893 warning.
894
895 2020-11-17 Simon Marchi <simon.marchi@polymtl.ca>
896
897 * gdbtypes.h (get_array_bounds): Return bool, adjust some
898 callers. Move doc here.
899 * gdbtypes.c (get_array_bounds): Return bool
900
901 2020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
902
903 * arc-linux-tdep.c (arc_linux_sw_breakpoint_from_kind): Add an
904 assert.
905 * arc-tdep.c (arc_breakpoint_kind_from_pc): Likewise.
906 * disasm-selftests.c (print_one_insn_test): Fall throough from ARC
907 case to the default.
908
909 2020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
910
911 * printcmd.c: Include 'safe-ctype.c'.
912 (skip_over_slash_fmt): New function.
913 (print_command_completer): Call skip_over_slash_fmt.
914 (display_and_x_command_completer): New function.
915 (_initialize_printcmd): Add command completion for 'x' and
916 'display'.
917
918 2020-11-16 Pedro Alves <pedro@palves.net>
919
920 * frame.c (get_prev_frame): Move get_frame_id call from here ...
921 (get_prev_frame_always_1): ... to here.
922 * inline-frame.c (inline_frame_this_id): Mention
923 get_prev_frame_always_1 in comment.
924
925 2020-11-15 Joel Brobecker <brobecker@adacore.com>
926
927 * valarith.c (fixed_point_binop): Add BINOP_EQUAL and BINOP_LESS
928 handling.
929 (value_less): Add fixed-point handling.
930
931 2020-11-15 Joel Brobecker <brobecker@adacore.com>
932
933 * eval.c (binop_promote): Add fixed-point type handling.
934 * valarith.c (fixed_point_binop): New function.
935 (scalar_binop): Add fixed-point type handling.
936 (value_neg): Add fixed-point type handling.
937 * valops.c (value_cast_to_fixed_point): New function.
938 (value_cast): Add fixed-point type handling.
939
940 2020-11-15 Joel Brobecker <brobecker@adacore.com>
941
942 * ada-typeprint.c (ada_print_type): Add handing of fixed-point
943 range types.
944 * c-typeprint.c (c_type_print_varspec_prefix)
945 (c_type_print_varspec_suffix, c_type_print_base_1): Add
946 TYPE_CODE_FIXED_POINT handling.
947 * p-typeprint.c (pascal_type_print_varspec_prefix)
948 (pascal_type_print_varspec_suffix): Likewise.
949 * typeprint.c (print_type_fixed_point): New function.
950 * typeprint.h (print_type_fixed_point): Add declaration.
951
952 2020-11-15 Joel Brobecker <brobecker@adacore.com>
953
954 * printcmd.c (print_scalar_formatted): Add fixed-point type
955 handling when options->format is set.
956
957 2020-11-15 Joel Brobecker <brobecker@adacore.com>
958
959 * ada-valprint.c (ada_value_print_1): Add fixed-point type handling.
960 * dwarf2/read.c (get_dwarf2_rational_constant)
961 (get_dwarf2_unsigned_rational_constant, finish_fixed_point_type)
962 (has_zero_over_zero_small_attribute): New functions.
963 read_base_type, set_die_type): Add fixed-point type handling.
964 * gdb-gdb.py.in: Add fixed-point type handling.
965 * gdbtypes.c: #include "gmp-utils.h".
966 (create_range_type, set_type_code): Add fixed-point type handling.
967 (init_fixed_point_type): New function.
968 (is_integral_type, is_scalar_type): Add fixed-point type handling.
969 (print_fixed_point_type_info): New function.
970 (recursive_dump_type, copy_type_recursive): Add fixed-point type
971 handling.
972 (fixed_point_type_storage): New typedef.
973 (fixed_point_objfile_key): New static global.
974 (allocate_fixed_point_type_info, is_fixed_point_type): New functions.
975 (fixed_point_type_base_type, fixed_point_scaling_factor): New
976 functions.
977 * gdbtypes.h: #include "gmp-utils.h".
978 (enum type_code) <TYPE_SPECIFIC_FIXED_POINT>: New enum.
979 (union type_specific) <fixed_point_info>: New field.
980 (struct fixed_point_type_info): New struct.
981 (INIT_FIXED_POINT_SPECIFIC, TYPE_FIXED_POINT_INFO): New macros.
982 (init_fixed_point_type, is_fixed_point_type)
983 (fixed_point_type_base_type, fixed_point_scaling_factor)
984 (allocate_fixed_point_type_info): Add declarations.
985 * valprint.c (generic_val_print_fixed_point): New function.
986 (generic_value_print): Add fixed-point type handling.
987 * value.c (value_as_address, unpack_long): Add fixed-point type
988 handling.
989
990 2020-11-15 Joel Brobecker <brobecker@adacore.com>
991
992 * utils.h (uinteger_pow): Add declaration.
993 * utils.c (uinteger_pow): Moved here (without changes)...
994 * valarith.c (uinteger_pow): ... from here.
995
996 2020-11-15 Joel Brobecker <brobecker@adacore.com>
997
998 * gmp-utils.h, gmp-utils.c: New file.
999 * unittests/gmp-utils-selftests.c: New file.
1000 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1001 unittests/gmp-utils-selftests.c.
1002 (COMMON_SFILES) Add gmp-utils.c.
1003 (HFILES_NO_SRCDIR): Add gmp-utils.h.
1004
1005 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1006
1007 * configure.ac: Generate an error if a usable GMP library
1008 could not be found.
1009 * configure: Regenerate.
1010
1011 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1012
1013 * configure.ac: Add support for --with-libgmp-prefix.
1014 * Makefile.in (LIBGMP): New variable.
1015 (CLIBS): Include $(LIBGMP).
1016 * configure, config.in: Regenerate
1017
1018 2020-11-14 Andrew Burgess <andrew.burgess@embecosm.com>
1019
1020 PR cli/26879
1021 * f-exp.y (COMPLETE): New token.
1022 (exp): Two new rules for tab-completion.
1023 (saw_name_at_eof): New static global.
1024 (last_was_structop): Likewise.
1025 (yylex): Set new variables, and return COMPLETE token at the end
1026 of the input stream in some cases.
1027
1028 2020-11-14 Tom Tromey <tom@tromey.com>
1029
1030 * infrun.c (fetch_inferior_event): Use "bool" for should_stop.
1031
1032 2020-11-14 Tom Tromey <tom@tromey.com>
1033
1034 * opencl-lang.c (opencl_component_ref): Make "comps" const.
1035
1036 2020-11-14 Simon Marchi <simon.marchi@polymtl.ca>
1037
1038 * arm-tdep.c (class arm_instruction_reader) <read>: Fix comment.
1039
1040 2020-11-13 Tom Tromey <tom@tromey.com>
1041
1042 * c-lang.c (convert_ucn, convert_octal, convert_hex)
1043 (convert_escape, parse_one_string): Constify.
1044
1045 2020-11-13 Keith Seitz <keiths@redhat.com>
1046
1047 https://bugzilla.redhat.com/show_bug.cgi?id=1553086
1048 * elfread.c (elf_symfile_segments): Omit "Loadable section ...
1049 outside of ELF segments" warning for debugin
1050
1051 2020-11-13 Keith Seitz <keiths@redhat.com>
1052
1053 PR gdb/23034
1054 * elfread.c (elf_symfile_segments): Output a BFD file name
1055 for the "Loadable section ... outside of ELF segments" warning.
1056
1057 2020-11-13 Simon Marchi <simon.marchi@polymtl.ca>
1058
1059 PR gdb/26835
1060 * arm-tdep.c (class arm_instruction_reader): New.
1061 (target_arm_instruction_reader): New.
1062 (arm_analyze_prologue): Add instruction reader parameter and use
1063 it. Use arm_expand_immediate.
1064 (class target_arm_instruction_reader): Adjust.
1065 (arm_skip_prologue): Adjust.
1066 (arm_expand_immediate): New.
1067 (arm_scan_prologue): Adjust.
1068 (arm_analyze_prologue_test): New.
1069 (class test_arm_instruction_reader): New.
1070
1071 2020-11-13 Andrew Burgess <andrew.burgess@embecosm.com>
1072
1073 * f-lang.c (fortran_argument_convert): Add declaration. Add
1074 header comment, taken from f-lang.h. Make static.
1075 * f-lang.h (f77_get_dynamic_array_length): Delete declaration.
1076 (fortran_argument_convert): Delete declaration.
1077
1078 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1079
1080 * ada-exp.y (find_primitive_type): Make parameter const.
1081 * ada-lang.c (enum ada_primitive_types): Delete.
1082 (ada_language::language_arch_info): Update.
1083 * c-lang.c (enum c_primitive_types): Delete.
1084 (c_language_arch_info): Update.
1085 (enum cplus_primitive_types): Delete.
1086 (cplus_language::language_arch_info): Update.
1087 * d-lang.c (enum d_primitive_types): Delete.
1088 (d_language::language_arch_info): Update.
1089 * f-lang.c (enum f_primitive_types): Delete.
1090 (f_language::language_arch_info): Update.
1091 * go-lang.c (enum go_primitive_types): Delete.
1092 (go_language::language_arch_info): Update.
1093 * language.c (auto_or_unknown_language::language_arch_info):
1094 Update.
1095 (language_gdbarch_post_init): Use obstack_new, use array indexing.
1096 (language_string_char_type): Add header comment, call function in
1097 language_arch_info.
1098 (language_bool_type): Likewise
1099 (language_arch_info::bool_type): Define.
1100 (language_lookup_primitive_type_1): Delete.
1101 (language_lookup_primitive_type): Rewrite as a templated function
1102 to call function in language_arch_info, then instantiate twice.
1103 (language_arch_info::type_and_symbol::alloc_type_symbol): Define.
1104 (language_arch_info::lookup_primitive_type_and_symbol): Define.
1105 (language_arch_info::lookup_primitive_type): Define twice with
1106 different signatures.
1107 (language_arch_info::lookup_primitive_type_as_symbol): Define.
1108 (language_lookup_primitive_type_as_symbol): Rewrite to call a
1109 member function in language_arch_info.
1110 * language.h (language_arch_info): Complete rewrite.
1111 (language_lookup_primitive_type): Make templated.
1112 * m2-lang.c (enum m2_primitive_types): Delete.
1113 (m2_language::language_arch_info): Update.
1114 * opencl-lang.c (OCL_P_TYPE): Delete.
1115 (enum opencl_primitive_types): Delete.
1116 (opencl_type_data): Delete.
1117 (builtin_opencl_type): Delete.
1118 (lookup_opencl_vector_type): Update.
1119 (opencl_language::language_arch_info): Update, lots of content
1120 moved from...
1121 (build_opencl_types): ...here. This function is now deleted.
1122 (_initialize_opencl_language): Delete.
1123 * p-lang.c (enum pascal_primitive_types): Delete.
1124 (pascal_language::language_arch_info): Update.
1125 * rust-lang.c (enum rust_primitive_types): Delete.
1126 (rust_language::language_arch_info): Update.
1127
1128 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1129
1130 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix call to
1131 dwarf2_queue_guard.
1132
1133 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1134
1135 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix typo in
1136 comment.
1137
1138 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1139
1140 * dwarf2/read.c (dwarf_read_debug_printf,
1141 dwarf_read_debug_printf_v): New macros, use throughout the file.
1142
1143 2020-11-12 Shahab Vahedi <shahab@synopsys.com>
1144
1145 PR tdep/27015
1146 * arc-linux-tdep.c (collect_register): Populate "eret" by
1147 "pc" value from the regcache when asked for "pc" value.
1148
1149 2020-11-12 Tom Tromey <tom@tromey.com>
1150
1151 PR rust/26799:
1152 * symtab.c (find_symbol_at_address): Search symtabs if no psymtabs
1153 exist.
1154
1155 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1156
1157 * features/Makefile (XMLTOC): Add rx.xml.
1158 (FEATURE_XMLFILES): Remove rx.xml.
1159 (FEATURE_CFILES rule): Pass '-single-feature' flag.
1160 * features/rx.c: Regenerate.
1161 * features/rx.xml: Wrap in `target` tags, and reindent.
1162 * target-descriptions.c (struct maint_print_c_tdesc_options): New
1163 structure.
1164 (maint_print_c_tdesc_opt_def): New typedef.
1165 (maint_print_c_tdesc_opt_defs): New static global.
1166 (make_maint_print_c_tdesc_options_def_group): New function.
1167 (maint_print_c_tdesc_cmd): Make use of command line flags, only
1168 print single feature C file for target descriptions containing a
1169 single feature.
1170 (maint_print_c_tdesc_cmd_completer): New function.
1171 (_initialize_target_descriptions): Update call to register command
1172 completer, and include command line flag in help text.
1173
1174 2020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
1175
1176 * riscv-tdep.c (riscv_dwarf_reg_to_regnum): Decode DWARF CSR
1177 numbers.
1178 * riscv-tdep.h (RISCV_DWARF_FIRST_CSR, RISCV_DWARF_LAST_CSR): New
1179 enum values.
1180
1181 2020-11-10 Tom Tromey <tom@tromey.com>
1182
1183 * value.h (internalvar_name): Update.
1184 * value.c (internalvar_name): Make return type const.
1185
1186 2020-11-10 Tom Tromey <tom@tromey.com>
1187
1188 * ax-gdb.c (gen_struct_elt_for_reference, gen_namespace_elt)
1189 (gen_maybe_namespace_elt, gen_aggregate_elt_ref, gen_expr): Use
1190 const.
1191
1192 2020-11-10 Tom Tromey <tom@tromey.com>
1193
1194 * objc-lang.h (value_nsstring): Update.
1195 * objc-lang.c (value_nsstring): Make "ptr" const.
1196
1197 2020-11-06 Andrew Burgess <andrew.burgess@embecosm.com>
1198
1199 * expprint.c (print_subexp_funcall): Increment expression position
1200 after reading argument count.
1201 * f-lang.c (print_subexp_f): Skip over opcode before calling
1202 common function.
1203 (dump_subexp_body_f): Likewise.
1204
1205 2020-11-06 Romain Geissler <romain.geissler@amadeus.com>
1206
1207 PR python/26832
1208 * configure: Regenerate.
1209 * configure.ac: Check for python modules ctypes instead of
1210 itertools.
1211
1212 2020-11-06 Pedro Alves <pedro@palves.net>
1213
1214 * macroexp.c (struct macro_buffer): Split in two classes. Add
1215 uses adjusted.
1216 (struct shared_macro_buffer): New, factored out from struct
1217 macro_buffer.
1218 (struct growable_macro_buffer): New, factored out from struct
1219 macro_buffer.
1220 (set_token, get_comment, get_identifier, get_pp_number)
1221 (get_character_constant, get_string_literal, get_punctuator)
1222 (get_next_token_for_substitution): Constify parameters.
1223 (substitute_args): Constify locals.
1224
1225 2020-11-05 Tom Tromey <tom@tromey.com>
1226
1227 * dwarf2/read.c (read_cutu_die_from_dwo)
1228 (cutu_reader::cutu_reader, cutu_reader::cutu_reader)
1229 (build_type_psymtabs_1): Update.
1230 * dwarf2/abbrev.h (struct abbrev_table): Remove objfile
1231 parameter.
1232 * dwarf2/abbrev.c (abbrev_table::read): Remove objfile parameter.
1233 Don't read section. Add assert.
1234
1235 2020-11-04 Tom Tromey <tromey@adacore.com>
1236
1237 * ada-typeprint.c (ada_print_type): Handle __XVL fields.
1238
1239 2020-11-04 Tom Tromey <tromey@adacore.com>
1240
1241 * ada-typeprint.c (ada_print_type): Handle __T types.
1242
1243 2020-11-04 Tom Tromey <tromey@adacore.com>
1244
1245 * dwarf2/read.c (add_partial_symbol, process_die):
1246 Handle DW_TAG_array_type.
1247 (is_type_tag_for_partial): Add "lang" parameter.
1248 (load_partial_dies, new_symbol): Handle DW_TAG_array_type.
1249
1250 2020-11-04 Tom Tromey <tromey@adacore.com>
1251
1252 * ada-lang.c (ada_value_slice_from_ptr): Use bit size.
1253
1254 2020-11-04 Tom Tromey <tromey@adacore.com>
1255
1256 * dwarf2/read.c (read_array_type): Only apply stride to innermost
1257 array.
1258
1259 2020-11-04 Tom Tromey <tromey@adacore.com>
1260
1261 * gdbtypes.c (update_static_array_size): Handle bit stride.
1262
1263 2020-11-04 Tom Tromey <tromey@adacore.com>
1264
1265 * ada-lang.c (ada_value_struct_elt): Resolve dynamic type.
1266
1267 2020-11-04 Tom Tromey <tromey@adacore.com>
1268
1269 * ada-lang.c (ada_is_any_packed_array_type): New function.
1270 (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it.
1271
1272 2020-11-04 Tom Tromey <tromey@adacore.com>
1273
1274 * dwarf2/read.c (recognize_bound_expression)
1275 (quirk_ada_thick_pointer): New functions.
1276 (read_array_type): Call quirk_ada_thick_pointer.
1277 (set_die_type): Add "skip_data_location" parameter.
1278 (quirk_ada_thick_pointer): New function.
1279 (process_structure_scope): Call quirk_ada_thick_pointer.
1280 * ada-lang.c (ada_is_unconstrained_packed_array_type)
1281 (decode_packed_array_bitsize): Handle thick pointers without
1282 parallel types.
1283 (ada_is_gnat_encoded_packed_array_type): Rename from
1284 ada_is_packed_array_type.
1285 (ada_is_constrained_packed_array_type): Update.
1286 * ada-valprint.c (ada_val_print_gnat_array): Remove.
1287 (ada_value_print_1): Use ada_get_decoded_value.
1288
1289 2020-11-04 Tom Tromey <tromey@adacore.com>
1290
1291 * ada-lang.c (recursively_update_array_bitsize): New function.
1292 (decode_constrained_packed_array_type): Call it.
1293
1294 2020-11-04 Tom Tromey <tromey@adacore.com>
1295
1296 * ada-lang.c (to_fixed_array_type): Error if
1297 decode_constrained_packed_array_type returns NULL.
1298
1299 2020-11-04 Tom Tromey <tromey@adacore.com>
1300
1301 * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
1302
1303 2020-11-02 Tom Tromey <tromey@adacore.com>
1304
1305 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
1306 (ALLDEPFILES): Add amd64-ravenscar-thread.c.
1307 (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
1308 * amd64-ravenscar-thread.c: New file.
1309 * amd64-ravenscar-thread.h: New file.
1310 * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
1311 * configure.tgt (amd64_tobjs): Add ravenscar objects.
1312
1313 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1314
1315 * main.c (execute_cmdargs): New function.
1316 (captured_main_1): Make use of execute_cmdargs.
1317
1318 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1319
1320 * NEWS: Mention changes to config file search path.
1321 * main.c
1322
1323 2020-11-02 Tom Tromey <tromey@adacore.com>
1324
1325 * python/python.c: Consolidate two HAVE_PYTHON blocks.
1326 (python_GdbModuleDef): Move earlier. Now static.
1327 (do_start_initialization): Consolidate some IS_PY3K blocks.
1328
1329 2020-11-02 Simon Marchi <simon.marchi@efficios.com>
1330
1331 * aarch64-linux-tdep.c: Fix indentation.
1332 * aarch64-ravenscar-thread.c: Fix indentation.
1333 * aarch64-tdep.c: Fix indentation.
1334 * aarch64-tdep.h: Fix indentation.
1335 * ada-lang.c: Fix indentation.
1336 * ada-lang.h: Fix indentation.
1337 * ada-tasks.c: Fix indentation.
1338 * ada-typeprint.c: Fix indentation.
1339 * ada-valprint.c: Fix indentation.
1340 * ada-varobj.c: Fix indentation.
1341 * addrmap.c: Fix indentation.
1342 * addrmap.h: Fix indentation.
1343 * agent.c: Fix indentation.
1344 * aix-thread.c: Fix indentation.
1345 * alpha-bsd-nat.c: Fix indentation.
1346 * alpha-linux-tdep.c: Fix indentation.
1347 * alpha-mdebug-tdep.c: Fix indentation.
1348 * alpha-nbsd-tdep.c: Fix indentation.
1349 * alpha-obsd-tdep.c: Fix indentation.
1350 * alpha-tdep.c: Fix indentation.
1351 * amd64-bsd-nat.c: Fix indentation.
1352 * amd64-darwin-tdep.c: Fix indentation.
1353 * amd64-linux-nat.c: Fix indentation.
1354 * amd64-linux-tdep.c: Fix indentation.
1355 * amd64-nat.c: Fix indentation.
1356 * amd64-obsd-tdep.c: Fix indentation.
1357 * amd64-tdep.c: Fix indentation.
1358 * amd64-windows-tdep.c: Fix indentation.
1359 * annotate.c: Fix indentation.
1360 * arc-tdep.c: Fix indentation.
1361 * arch-utils.c: Fix indentation.
1362 * arch/arm-get-next-pcs.c: Fix indentation.
1363 * arch/arm.c: Fix indentation.
1364 * arm-linux-nat.c: Fix indentation.
1365 * arm-linux-tdep.c: Fix indentation.
1366 * arm-nbsd-tdep.c: Fix indentation.
1367 * arm-pikeos-tdep.c: Fix indentation.
1368 * arm-tdep.c: Fix indentation.
1369 * arm-tdep.h: Fix indentation.
1370 * arm-wince-tdep.c: Fix indentation.
1371 * auto-load.c: Fix indentation.
1372 * auxv.c: Fix indentation.
1373 * avr-tdep.c: Fix indentation.
1374 * ax-gdb.c: Fix indentation.
1375 * ax-general.c: Fix indentation.
1376 * bfin-linux-tdep.c: Fix indentation.
1377 * block.c: Fix indentation.
1378 * block.h: Fix indentation.
1379 * blockframe.c: Fix indentation.
1380 * bpf-tdep.c: Fix indentation.
1381 * break-catch-sig.c: Fix indentation.
1382 * break-catch-syscall.c: Fix indentation.
1383 * break-catch-throw.c: Fix indentation.
1384 * breakpoint.c: Fix indentation.
1385 * breakpoint.h: Fix indentation.
1386 * bsd-uthread.c: Fix indentation.
1387 * btrace.c: Fix indentation.
1388 * build-id.c: Fix indentation.
1389 * buildsym-legacy.h: Fix indentation.
1390 * buildsym.c: Fix indentation.
1391 * c-typeprint.c: Fix indentation.
1392 * c-valprint.c: Fix indentation.
1393 * c-varobj.c: Fix indentation.
1394 * charset.c: Fix indentation.
1395 * cli/cli-cmds.c: Fix indentation.
1396 * cli/cli-decode.c: Fix indentation.
1397 * cli/cli-decode.h: Fix indentation.
1398 * cli/cli-script.c: Fix indentation.
1399 * cli/cli-setshow.c: Fix indentation.
1400 * coff-pe-read.c: Fix indentation.
1401 * coffread.c: Fix indentation.
1402 * compile/compile-cplus-types.c: Fix indentation.
1403 * compile/compile-object-load.c: Fix indentation.
1404 * compile/compile-object-run.c: Fix indentation.
1405 * completer.c: Fix indentation.
1406 * corefile.c: Fix indentation.
1407 * corelow.c: Fix indentation.
1408 * cp-abi.h: Fix indentation.
1409 * cp-namespace.c: Fix indentation.
1410 * cp-support.c: Fix indentation.
1411 * cp-valprint.c: Fix indentation.
1412 * cris-linux-tdep.c: Fix indentation.
1413 * cris-tdep.c: Fix indentation.
1414 * darwin-nat-info.c: Fix indentation.
1415 * darwin-nat.c: Fix indentation.
1416 * darwin-nat.h: Fix indentation.
1417 * dbxread.c: Fix indentation.
1418 * dcache.c: Fix indentation.
1419 * disasm.c: Fix indentation.
1420 * dtrace-probe.c: Fix indentation.
1421 * dwarf2/abbrev.c: Fix indentation.
1422 * dwarf2/attribute.c: Fix indentation.
1423 * dwarf2/expr.c: Fix indentation.
1424 * dwarf2/frame.c: Fix indentation.
1425 * dwarf2/index-cache.c: Fix indentation.
1426 * dwarf2/index-write.c: Fix indentation.
1427 * dwarf2/line-header.c: Fix indentation.
1428 * dwarf2/loc.c: Fix indentation.
1429 * dwarf2/macro.c: Fix indentation.
1430 * dwarf2/read.c: Fix indentation.
1431 * dwarf2/read.h: Fix indentation.
1432 * elfread.c: Fix indentation.
1433 * eval.c: Fix indentation.
1434 * event-top.c: Fix indentation.
1435 * exec.c: Fix indentation.
1436 * exec.h: Fix indentation.
1437 * expprint.c: Fix indentation.
1438 * f-lang.c: Fix indentation.
1439 * f-typeprint.c: Fix indentation.
1440 * f-valprint.c: Fix indentation.
1441 * fbsd-nat.c: Fix indentation.
1442 * fbsd-tdep.c: Fix indentation.
1443 * findvar.c: Fix indentation.
1444 * fork-child.c: Fix indentation.
1445 * frame-unwind.c: Fix indentation.
1446 * frame-unwind.h: Fix indentation.
1447 * frame.c: Fix indentation.
1448 * frv-linux-tdep.c: Fix indentation.
1449 * frv-tdep.c: Fix indentation.
1450 * frv-tdep.h: Fix indentation.
1451 * ft32-tdep.c: Fix indentation.
1452 * gcore.c: Fix indentation.
1453 * gdb_bfd.c: Fix indentation.
1454 * gdbarch.sh: Fix indentation.
1455 * gdbarch.c: Re-generate
1456 * gdbarch.h: Re-generate.
1457 * gdbcore.h: Fix indentation.
1458 * gdbthread.h: Fix indentation.
1459 * gdbtypes.c: Fix indentation.
1460 * gdbtypes.h: Fix indentation.
1461 * glibc-tdep.c: Fix indentation.
1462 * gnu-nat.c: Fix indentation.
1463 * gnu-nat.h: Fix indentation.
1464 * gnu-v2-abi.c: Fix indentation.
1465 * gnu-v3-abi.c: Fix indentation.
1466 * go32-nat.c: Fix indentation.
1467 * guile/guile-internal.h: Fix indentation.
1468 * guile/scm-cmd.c: Fix indentation.
1469 * guile/scm-frame.c: Fix indentation.
1470 * guile/scm-iterator.c: Fix indentation.
1471 * guile/scm-math.c: Fix indentation.
1472 * guile/scm-ports.c: Fix indentation.
1473 * guile/scm-pretty-print.c: Fix indentation.
1474 * guile/scm-value.c: Fix indentation.
1475 * h8300-tdep.c: Fix indentation.
1476 * hppa-linux-nat.c: Fix indentation.
1477 * hppa-linux-tdep.c: Fix indentation.
1478 * hppa-nbsd-nat.c: Fix indentation.
1479 * hppa-nbsd-tdep.c: Fix indentation.
1480 * hppa-obsd-nat.c: Fix indentation.
1481 * hppa-tdep.c: Fix indentation.
1482 * hppa-tdep.h: Fix indentation.
1483 * i386-bsd-nat.c: Fix indentation.
1484 * i386-darwin-nat.c: Fix indentation.
1485 * i386-darwin-tdep.c: Fix indentation.
1486 * i386-dicos-tdep.c: Fix indentation.
1487 * i386-gnu-nat.c: Fix indentation.
1488 * i386-linux-nat.c: Fix indentation.
1489 * i386-linux-tdep.c: Fix indentation.
1490 * i386-nto-tdep.c: Fix indentation.
1491 * i386-obsd-tdep.c: Fix indentation.
1492 * i386-sol2-nat.c: Fix indentation.
1493 * i386-tdep.c: Fix indentation.
1494 * i386-tdep.h: Fix indentation.
1495 * i386-windows-tdep.c: Fix indentation.
1496 * i387-tdep.c: Fix indentation.
1497 * i387-tdep.h: Fix indentation.
1498 * ia64-libunwind-tdep.c: Fix indentation.
1499 * ia64-libunwind-tdep.h: Fix indentation.
1500 * ia64-linux-nat.c: Fix indentation.
1501 * ia64-linux-tdep.c: Fix indentation.
1502 * ia64-tdep.c: Fix indentation.
1503 * ia64-tdep.h: Fix indentation.
1504 * ia64-vms-tdep.c: Fix indentation.
1505 * infcall.c: Fix indentation.
1506 * infcmd.c: Fix indentation.
1507 * inferior.c: Fix indentation.
1508 * infrun.c: Fix indentation.
1509 * iq2000-tdep.c: Fix indentation.
1510 * language.c: Fix indentation.
1511 * linespec.c: Fix indentation.
1512 * linux-fork.c: Fix indentation.
1513 * linux-nat.c: Fix indentation.
1514 * linux-tdep.c: Fix indentation.
1515 * linux-thread-db.c: Fix indentation.
1516 * lm32-tdep.c: Fix indentation.
1517 * m2-lang.c: Fix indentation.
1518 * m2-typeprint.c: Fix indentation.
1519 * m2-valprint.c: Fix indentation.
1520 * m32c-tdep.c: Fix indentation.
1521 * m32r-linux-tdep.c: Fix indentation.
1522 * m32r-tdep.c: Fix indentation.
1523 * m68hc11-tdep.c: Fix indentation.
1524 * m68k-bsd-nat.c: Fix indentation.
1525 * m68k-linux-nat.c: Fix indentation.
1526 * m68k-linux-tdep.c: Fix indentation.
1527 * m68k-tdep.c: Fix indentation.
1528 * machoread.c: Fix indentation.
1529 * macrocmd.c: Fix indentation.
1530 * macroexp.c: Fix indentation.
1531 * macroscope.c: Fix indentation.
1532 * macrotab.c: Fix indentation.
1533 * macrotab.h: Fix indentation.
1534 * main.c: Fix indentation.
1535 * mdebugread.c: Fix indentation.
1536 * mep-tdep.c: Fix indentation.
1537 * mi/mi-cmd-catch.c: Fix indentation.
1538 * mi/mi-cmd-disas.c: Fix indentation.
1539 * mi/mi-cmd-env.c: Fix indentation.
1540 * mi/mi-cmd-stack.c: Fix indentation.
1541 * mi/mi-cmd-var.c: Fix indentation.
1542 * mi/mi-cmds.c: Fix indentation.
1543 * mi/mi-main.c: Fix indentation.
1544 * mi/mi-parse.c: Fix indentation.
1545 * microblaze-tdep.c: Fix indentation.
1546 * minidebug.c: Fix indentation.
1547 * minsyms.c: Fix indentation.
1548 * mips-linux-nat.c: Fix indentation.
1549 * mips-linux-tdep.c: Fix indentation.
1550 * mips-nbsd-tdep.c: Fix indentation.
1551 * mips-tdep.c: Fix indentation.
1552 * mn10300-linux-tdep.c: Fix indentation.
1553 * mn10300-tdep.c: Fix indentation.
1554 * moxie-tdep.c: Fix indentation.
1555 * msp430-tdep.c: Fix indentation.
1556 * namespace.h: Fix indentation.
1557 * nat/fork-inferior.c: Fix indentation.
1558 * nat/gdb_ptrace.h: Fix indentation.
1559 * nat/linux-namespaces.c: Fix indentation.
1560 * nat/linux-osdata.c: Fix indentation.
1561 * nat/netbsd-nat.c: Fix indentation.
1562 * nat/x86-dregs.c: Fix indentation.
1563 * nbsd-nat.c: Fix indentation.
1564 * nbsd-tdep.c: Fix indentation.
1565 * nios2-linux-tdep.c: Fix indentation.
1566 * nios2-tdep.c: Fix indentation.
1567 * nto-procfs.c: Fix indentation.
1568 * nto-tdep.c: Fix indentation.
1569 * objfiles.c: Fix indentation.
1570 * objfiles.h: Fix indentation.
1571 * opencl-lang.c: Fix indentation.
1572 * or1k-tdep.c: Fix indentation.
1573 * osabi.c: Fix indentation.
1574 * osabi.h: Fix indentation.
1575 * osdata.c: Fix indentation.
1576 * p-lang.c: Fix indentation.
1577 * p-typeprint.c: Fix indentation.
1578 * p-valprint.c: Fix indentation.
1579 * parse.c: Fix indentation.
1580 * ppc-linux-nat.c: Fix indentation.
1581 * ppc-linux-tdep.c: Fix indentation.
1582 * ppc-nbsd-nat.c: Fix indentation.
1583 * ppc-nbsd-tdep.c: Fix indentation.
1584 * ppc-obsd-nat.c: Fix indentation.
1585 * ppc-ravenscar-thread.c: Fix indentation.
1586 * ppc-sysv-tdep.c: Fix indentation.
1587 * ppc64-tdep.c: Fix indentation.
1588 * printcmd.c: Fix indentation.
1589 * proc-api.c: Fix indentation.
1590 * producer.c: Fix indentation.
1591 * producer.h: Fix indentation.
1592 * prologue-value.c: Fix indentation.
1593 * prologue-value.h: Fix indentation.
1594 * psymtab.c: Fix indentation.
1595 * python/py-arch.c: Fix indentation.
1596 * python/py-bpevent.c: Fix indentation.
1597 * python/py-event.c: Fix indentation.
1598 * python/py-event.h: Fix indentation.
1599 * python/py-finishbreakpoint.c: Fix indentation.
1600 * python/py-frame.c: Fix indentation.
1601 * python/py-framefilter.c: Fix indentation.
1602 * python/py-inferior.c: Fix indentation.
1603 * python/py-infthread.c: Fix indentation.
1604 * python/py-objfile.c: Fix indentation.
1605 * python/py-prettyprint.c: Fix indentation.
1606 * python/py-registers.c: Fix indentation.
1607 * python/py-signalevent.c: Fix indentation.
1608 * python/py-stopevent.c: Fix indentation.
1609 * python/py-stopevent.h: Fix indentation.
1610 * python/py-threadevent.c: Fix indentation.
1611 * python/py-tui.c: Fix indentation.
1612 * python/py-unwind.c: Fix indentation.
1613 * python/py-value.c: Fix indentation.
1614 * python/py-xmethods.c: Fix indentation.
1615 * python/python-internal.h: Fix indentation.
1616 * python/python.c: Fix indentation.
1617 * ravenscar-thread.c: Fix indentation.
1618 * record-btrace.c: Fix indentation.
1619 * record-full.c: Fix indentation.
1620 * record.c: Fix indentation.
1621 * reggroups.c: Fix indentation.
1622 * regset.h: Fix indentation.
1623 * remote-fileio.c: Fix indentation.
1624 * remote.c: Fix indentation.
1625 * reverse.c: Fix indentation.
1626 * riscv-linux-tdep.c: Fix indentation.
1627 * riscv-ravenscar-thread.c: Fix indentation.
1628 * riscv-tdep.c: Fix indentation.
1629 * rl78-tdep.c: Fix indentation.
1630 * rs6000-aix-tdep.c: Fix indentation.
1631 * rs6000-lynx178-tdep.c: Fix indentation.
1632 * rs6000-nat.c: Fix indentation.
1633 * rs6000-tdep.c: Fix indentation.
1634 * rust-lang.c: Fix indentation.
1635 * rx-tdep.c: Fix indentation.
1636 * s12z-tdep.c: Fix indentation.
1637 * s390-linux-tdep.c: Fix indentation.
1638 * score-tdep.c: Fix indentation.
1639 * ser-base.c: Fix indentation.
1640 * ser-mingw.c: Fix indentation.
1641 * ser-uds.c: Fix indentation.
1642 * ser-unix.c: Fix indentation.
1643 * serial.c: Fix indentation.
1644 * sh-linux-tdep.c: Fix indentation.
1645 * sh-nbsd-tdep.c: Fix indentation.
1646 * sh-tdep.c: Fix indentation.
1647 * skip.c: Fix indentation.
1648 * sol-thread.c: Fix indentation.
1649 * solib-aix.c: Fix indentation.
1650 * solib-darwin.c: Fix indentation.
1651 * solib-frv.c: Fix indentation.
1652 * solib-svr4.c: Fix indentation.
1653 * solib.c: Fix indentation.
1654 * source.c: Fix indentation.
1655 * sparc-linux-tdep.c: Fix indentation.
1656 * sparc-nbsd-tdep.c: Fix indentation.
1657 * sparc-obsd-tdep.c: Fix indentation.
1658 * sparc-ravenscar-thread.c: Fix indentation.
1659 * sparc-tdep.c: Fix indentation.
1660 * sparc64-linux-tdep.c: Fix indentation.
1661 * sparc64-nbsd-tdep.c: Fix indentation.
1662 * sparc64-obsd-tdep.c: Fix indentation.
1663 * sparc64-tdep.c: Fix indentation.
1664 * stabsread.c: Fix indentation.
1665 * stack.c: Fix indentation.
1666 * stap-probe.c: Fix indentation.
1667 * stubs/ia64vms-stub.c: Fix indentation.
1668 * stubs/m32r-stub.c: Fix indentation.
1669 * stubs/m68k-stub.c: Fix indentation.
1670 * stubs/sh-stub.c: Fix indentation.
1671 * stubs/sparc-stub.c: Fix indentation.
1672 * symfile-mem.c: Fix indentation.
1673 * symfile.c: Fix indentation.
1674 * symfile.h: Fix indentation.
1675 * symmisc.c: Fix indentation.
1676 * symtab.c: Fix indentation.
1677 * symtab.h: Fix indentation.
1678 * target-float.c: Fix indentation.
1679 * target.c: Fix indentation.
1680 * target.h: Fix indentation.
1681 * tic6x-tdep.c: Fix indentation.
1682 * tilegx-linux-tdep.c: Fix indentation.
1683 * tilegx-tdep.c: Fix indentation.
1684 * top.c: Fix indentation.
1685 * tracefile-tfile.c: Fix indentation.
1686 * tracepoint.c: Fix indentation.
1687 * tui/tui-disasm.c: Fix indentation.
1688 * tui/tui-io.c: Fix indentation.
1689 * tui/tui-regs.c: Fix indentation.
1690 * tui/tui-stack.c: Fix indentation.
1691 * tui/tui-win.c: Fix indentation.
1692 * tui/tui-winsource.c: Fix indentation.
1693 * tui/tui.c: Fix indentation.
1694 * typeprint.c: Fix indentation.
1695 * ui-out.h: Fix indentation.
1696 * unittests/copy_bitwise-selftests.c: Fix indentation.
1697 * unittests/memory-map-selftests.c: Fix indentation.
1698 * utils.c: Fix indentation.
1699 * v850-tdep.c: Fix indentation.
1700 * valarith.c: Fix indentation.
1701 * valops.c: Fix indentation.
1702 * valprint.c: Fix indentation.
1703 * valprint.h: Fix indentation.
1704 * value.c: Fix indentation.
1705 * value.h: Fix indentation.
1706 * varobj.c: Fix indentation.
1707 * vax-tdep.c: Fix indentation.
1708 * windows-nat.c: Fix indentation.
1709 * windows-tdep.c: Fix indentation.
1710 * xcoffread.c: Fix indentation.
1711 * xml-syscall.c: Fix indentation.
1712 * xml-tdesc.c: Fix indentation.
1713 * xstormy16-tdep.c: Fix indentation.
1714 * xtensa-config.c: Fix indentation.
1715 * xtensa-linux-nat.c: Fix indentation.
1716 * xtensa-linux-tdep.c: Fix indentation.
1717 * xtensa-tdep.c: Fix indentation.
1718
1719 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1720 Craig Blackmore <craig.blackmore@embecosm.com>
1721
1722 * riscv-tdep.c (riscv_frame_cache): Read the frame base register
1723 as an unsigned value.
1724
1725 2020-11-01 Tom Tromey <tom@tromey.com>
1726
1727 * dbxread.c (dbx_end_psymtab): Update.
1728 * dwarf2/read.c (process_psymtab_comp_unit_reader)
1729 (build_type_psymtabs_reader): Update.
1730 * xcoffread.c (xcoff_end_psymtab): Update.
1731 * ctfread.c (scan_partial_symbols): Update.
1732 * psymtab.c (sort_pst_symbols): Remove.
1733 (partial_symtab::end): Rename from end_psymtab_common. Inline
1734 sort_pst_symbols.
1735 * psympriv.h (struct partial_symtab) <end>: New method.
1736 (end_psymtab_common): Don't declare.
1737
1738 2020-11-01 Tom Tromey <tom@tromey.com>
1739
1740 * symmisc.c (count_psyms): New function.
1741 (print_objfile_statistics): Use it.
1742 * psymtab.c (append_psymbol_to_list): Remove.
1743 (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
1744 * objfiles.h (struct objstats) <n_psyms>: Remove.
1745
1746 2020-11-01 Tom Tromey <tom@tromey.com>
1747
1748 * dbxread.c (dbx_end_psymtab): Update.
1749 * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
1750 (build_type_psymtabs_reader): Update.
1751 * xcoffread.c (xcoff_end_psymtab): Update.
1752 * ctfread.c (scan_partial_symbols): Update.
1753 * psympriv.h (end_psymtab_common): Update.
1754 * psymtab.c (end_psymtab_common): Remove objfile parameter.
1755 (sort_pst_symbols): Likewise.
1756
1757 2020-11-01 Tom Tromey <tom@tromey.com>
1758
1759 * dbxread.c (dbx_symfile_read): Update.
1760 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
1761 * xcoffread.c (xcoff_initial_scan): Update.
1762 * psympriv.h (init_psymbol_list): Don't declare.
1763 * psymtab.c (init_psymbol_list): Remove.
1764
1765 2020-11-01 Joel Brobecker <brobecker@adacore.com>
1766
1767 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
1768 gnat_encoded_fixed_type_info. Update all callers.
1769
1770 2020-11-01 Joel Brobecker <brobecker@adacore.com>
1771
1772 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
1773 line too long.
1774
1775 2020-11-01 Joel Brobecker <brobecker@adacore.com>
1776
1777 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
1778 cast_from_fixed. Update all callers.
1779 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
1780 Update all callers.
1781 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
1782 Update all callers.
1783 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
1784 ada_scaling_factor.
1785 * ada-typeprint.c: Replace call to ada_scaling_factor by call
1786 to print_gnat_encoded_fixed_point_type.
1787 * ada-valprint.c: Likewise.
1788
1789 2020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1790
1791 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
1792 (debug_prefixed_printf): Add check of debug_displaced flag.
1793 * linux-nat.c (linux_nat_debug_printf): Add check of
1794 debug_linux_nat flag.
1795
1796 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1797
1798 * infrun.c (infrun_debug_printf_1): Remove.
1799 (displaced_debug_printf_1): Remove.
1800 (stop_all_threads): Use debug_prefixed_printf.
1801 * infrun.h (infrun_debug_printf_1): Remove.
1802 (infrun_debug_printf): Use debug_prefixed_printf.
1803 (displaced_debug_printf_1): Remove.
1804 (displaced_debug_printf): Use debug_prefixed_printf.
1805 * linux-nat.c (linux_nat_debug_printf_1): Remove.
1806 (linux_nat_debug_printf): Use debug_prefixed_printf.
1807
1808 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1809
1810 * configure: Re-generate.
1811 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
1812 AC_LANG_PROGRAM.
1813
1814 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1815
1816 * configure: Re-generate.
1817
1818 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1819
1820 * configure: Re-generate.
1821
1822 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1823
1824 * configure: Re-generate.
1825
1826 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1827
1828 * configure: Re-generate.
1829
1830 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1831
1832 * acinclude.m4: Modernize.
1833 * configure: Re-generate.
1834
1835 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1836
1837 * configure.ac: Modernize.
1838 * configure: Re-generate.
1839
1840 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1841
1842 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
1843 * configure: Re-generate.
1844 * configure.ac: Remove AM_PROG_CC_STDC.
1845
1846 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1847
1848 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
1849 AC_CANONICAL_SYSTEM.
1850 * configure: Re-generate.
1851
1852 2020-10-30 Simon Marchi <simon.marchi@efficios.com>
1853
1854 * infrun.h (displaced_debug_printf): New macro. Replace
1855 displaced debug prints throughout to use it.
1856 (displaced_debug_printf_1): New declaration.
1857 (displaced_step_dump_bytes): Return string, remove ui_file
1858 parameter, update all callers.
1859 * infrun.c (displaced_debug_printf_1): New function.
1860 (displaced_step_dump_bytes): Return string, remove ui_file
1861 parameter
1862
1863 2020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
1864
1865 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
1866
1867 2020-10-30 Tom Tromey <tromey@adacore.com>
1868
1869 * Makefile.in (stamp-init): Depend on config.status.
1870
1871 2020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1872
1873 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
1874
1875 2020-10-30 Pedro Alves <pedro@palves.net>
1876
1877 * thread.c (lookup_selected_frame): Move ...
1878 * frame.c (lookup_selected_frame): ... here.
1879
1880 2020-10-30 Pedro Alves <pedro@palves.net>
1881
1882 * blockframe.c (block_innermost_frame): Use get_selected_frame.
1883 * frame.c
1884 (scoped_restore_selected_frame::scoped_restore_selected_frame):
1885 Use save_selected_frame. Save language as well.
1886 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
1887 Use restore_selected_frame, and restore language as well.
1888 (selected_frame_id, selected_frame_level): New.
1889 (selected_frame): Update comments.
1890 (save_selected_frame, restore_selected_frame): New.
1891 (get_selected_frame): Use lookup_selected_frame.
1892 (get_selected_frame_if_set): Delete.
1893 (select_frame): Record selected_frame_level and selected_frame_id.
1894 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
1895 fields.
1896 (get_selected_frame): Make 'message' parameter optional.
1897 (get_selected_frame_if_set): Delete declaration.
1898 (select_frame): Update comments.
1899 (save_selected_frame, restore_selected_frame)
1900 (lookup_selected_frame): Declare.
1901 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
1902 * infrun.c (struct infcall_control_state) <selected_frame_level>:
1903 New field.
1904 (save_infcall_control_state): Use save_selected_frame.
1905 (restore_selected_frame): Delete.
1906 (restore_infcall_control_state): Use restore_selected_frame.
1907 * stack.c (select_frame_command_core, frame_command_core): Use
1908 get_selected_frame.
1909 * thread.c (restore_selected_frame): Rename to ...
1910 (lookup_selected_frame): ... this and make extern. Select the
1911 current frame if the frame level is -1.
1912 (scoped_restore_current_thread::restore): Also restore the
1913 language.
1914 (scoped_restore_current_thread::~scoped_restore_current_thread):
1915 Don't try/catch.
1916 (scoped_restore_current_thread::scoped_restore_current_thread):
1917 Save the language as well. Use save_selected_frame.
1918
1919 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1920
1921 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
1922 documentation.
1923 * gdbarch.h: Re-generate.
1924
1925 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1926
1927 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
1928 parameter.
1929 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
1930 Likewise.
1931 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
1932 Likewise.
1933 * arch-utils.c (default_displaced_step_hw_singlestep):
1934 Likewise.
1935 * arch-utils.h (default_displaced_step_hw_singlestep):
1936 Likewise.
1937 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
1938 Likewise.
1939 * s390-tdep.c (s390_displaced_step_hw_singlestep):
1940 Likewise.
1941 * gdbarch.c: Re-generate.
1942 * gdbarch.h: Re-generate.
1943 * infrun.c (resume_1): Adjust.
1944
1945 2020-10-29 Tom Tromey <tom@tromey.com>
1946
1947 * progspace.c (program_space::~program_space): Don't call
1948 exec_close.
1949
1950 2020-10-29 Tom Tromey <tom@tromey.com>
1951
1952 * exec.c (exec_target::close): Don't change current program
1953 space.
1954
1955 2020-10-29 Tom Tromey <tom@tromey.com>
1956
1957 * symfile.c (add_symbol_file_command): Update.
1958 * exec.c (program_space::add_target_sections): Rename.
1959 * symfile-mem.c (symbol_file_add_from_memory): Update.
1960 * progspace.h (struct program_space) <add_target_sections>:
1961 Declare new overload.
1962 * exec.h (add_target_sections_of_objfile): Don't declare.
1963
1964 2020-10-29 Tom Tromey <tom@tromey.com>
1965
1966 * solib.c (solib_map_sections): Update.
1967 * exec.c (program_space::add_target_sections): Now a method.
1968 (exec_file_attach): Update.
1969 * exec.h (add_target_sections): Don't declare.
1970 * progspace.h (struct program_space) <add_target_sections>:
1971 Declare.
1972
1973 2020-10-29 Tom Tromey <tom@tromey.com>
1974
1975 * progspace.h (struct program_space) <remove_target_sections>:
1976 Declare.
1977 * exec.c (program_space::remove_target_sections): Now a method.
1978 * exec.h (remove_target_sections): Don't declare.
1979
1980 2020-10-29 Tom Tromey <tom@tromey.com>
1981
1982 * inferior.c (delete_inferior): Update.
1983 * progspace.c (program_space::empty): Rename from
1984 program_space_empty_p. Return bool.
1985 * progspace.h (struct program_space) <empty>: New method.
1986 (program_space_empty_p): Don't declare.
1987
1988 2020-10-29 Tom Tromey <tom@tromey.com>
1989
1990 * progspace.c (program_space::~program_space): Don't call
1991 clear_program_space_solib_cache.
1992 (program_space::clear_solib_cache): Rename from
1993 clear_solib_cache.
1994 * solib.c (handle_solib_event): Update.
1995 * progspace.h (struct program_space) <clear_solib_cache>: New
1996 method.
1997 (clear_program_space_solib_cache): Don't declare.
1998
1999 2020-10-29 Tom Tromey <tom@tromey.com>
2000
2001 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2002 * target.c (info_target_command): Update.
2003 * symfile.c (syms_from_objfile_1, finish_new_objfile)
2004 (symbol_file_clear, reread_symbols): Update.
2005 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
2006 * stabsread.c (scan_file_globals): Update.
2007 * solib.c (update_solib_list): Update.
2008 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
2009 (svr4_fetch_objfile_link_map, enable_break)
2010 (svr4_relocate_main_executable)
2011 (svr4_iterate_over_objfiles_in_search_order): Update.
2012 * solib-frv.c (lm_base, enable_break)
2013 (frv_relocate_main_executable): Update.
2014 (main_got, frv_fdpic_find_canonical_descriptor): Update.
2015 (frv_fetch_objfile_link_map): Update.
2016 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
2017 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
2018 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
2019 * remote.c (remote_target::get_offsets): Update.
2020 (remote_target::start_remote)
2021 (extended_remote_target::post_attach): Update.
2022 * objfiles.c (entry_point_address_query): Update.
2023 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
2024 * minsyms.c (get_symbol_leading_char): Update.
2025 * frame.c (inside_main_func): Update.
2026 * progspace.h (symfile_objfile): Remove macro.
2027
2028 2020-10-29 Tom Tromey <tom@tromey.com>
2029
2030 * exec.c (exec_file_attach): Update.
2031 * progspace.c (program_space::exec_close): Update.
2032 * progspace.h (struct program_space) <ebfd>: Now a
2033 gdb_bfd_ref_ptr.
2034 <set_exec_bfd>: Change argument type.
2035 <exec_bfd>: Update.
2036
2037 2020-10-29 Tom Tromey <tom@tromey.com>
2038
2039 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2040 * symfile.c (reread_symbols): Update.
2041 * symfile-mem.c (add_symbol_file_from_memory_command)
2042 (add_vsyscall_page): Update.
2043 * source-cache.c (source_cache::get_plain_source_lines): Update.
2044 * solib-svr4.c (find_program_interpreter, elf_locate_base)
2045 (svr4_current_sos_direct, svr4_exec_displacement)
2046 (svr4_relocate_main_executable): Update.
2047 (svr4_iterate_over_objfiles_in_search_order): Update.
2048 * solib-frv.c (enable_break2, enable_break): Update.
2049 * solib-dsbt.c (lm_base, enable_break): Update.
2050 * solib-darwin.c (find_program_interpreter)
2051 (darwin_solib_create_inferior_hook): Update.
2052 * sol-thread.c (rw_common, ps_pdmodel): Update.
2053 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
2054 * remote.c (compare_sections_command)
2055 (remote_target::trace_set_readonly_regions): Update.
2056 * remote-sim.c (get_sim_inferior_data)
2057 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
2058 (gdbsim_target_open, gdbsim_target::files_info): Update.
2059 * exec.h (exec_bfd): Remove macro.
2060 * progspace.c (initialize_progspace): Update.
2061 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
2062 Update.
2063 * nto-procfs.c (nto_procfs_target::post_attach)
2064 (nto_procfs_target::create_inferior): Update.
2065 * maint.c (maintenance_info_sections): Update.
2066 * linux-thread-db.c (thread_db_target::get_thread_local_address):
2067 Update.
2068 * infcmd.c (post_create_inferior): Update.
2069 * gcore.c (default_gcore_arch, default_gcore_target): Update.
2070 (objfile_find_memory_regions): Update.
2071 * exec.c (validate_exec_file, exec_file_attach)
2072 (exec_read_partial_read_only, print_section_info): Update.
2073 * corelow.c (core_target_open): Update.
2074 * corefile.c (reopen_exec_file, validate_files): Update.
2075 * arm-tdep.c (gdb_print_insn_arm): Update.
2076 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
2077 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
2078 methods.
2079
2080 2020-10-29 Tom Tromey <tom@tromey.com>
2081
2082 * progspace.h (current_target_sections): Remove macro.
2083 * solib-svr4.c (scan_dyntag): Update.
2084 * solib-dsbt.c (scan_dyntag): Update.
2085 * exec.c (exec_target::close): Update.
2086 (add_target_sections, add_target_sections_of_objfile)
2087 (remove_target_sections, exec_target::get_section_table)
2088 (exec_target::files_info, set_section_command)
2089 (exec_set_section_address, exec_target::has_memory)
2090 (exec_target::has_memory): Update.
2091
2092 2020-10-29 Tom Tromey <tom@tromey.com>
2093
2094 * source-cache.c (source_cache::get_plain_source_lines): Use
2095 current_program_space.
2096 * corefile.c (reopen_exec_file): Use current_program_space.
2097 * exec.c (exec_file_attach): Use current_program_space.
2098 * exec.h (exec_bfd_mtime): Remove.
2099
2100 2020-10-29 Tom Tromey <tom@tromey.com>
2101
2102 * gcore.c (default_gcore_mach): Remove.
2103 (create_gcore_bfd): Update.
2104
2105 2020-10-29 Tom Tromey <tom@tromey.com>
2106
2107 * progspace.c (program_space::exec_close): New method, from
2108 exec_close in exec.c.
2109 * exec.c (exec_close): Move to progspace.c.
2110 (exec_target::close, exec_file_attach): Update.
2111 * progspace.h (struct program_space) <exec_close>: Declare
2112 method.
2113
2114 2020-10-29 Tom Tromey <tom@tromey.com>
2115
2116 * progspace.h (struct program_space) <exec_filename>: Rename from
2117 pspace_exec_filename. Now a unique_xmalloc_ptr.
2118 * inferior.c (print_selected_inferior): Update.
2119 (print_inferior): Update.
2120 * mi/mi-main.c (print_one_inferior): Update.
2121 * exec.h (exec_filename): Remove macro.
2122 * corefile.c (get_exec_file): Update.
2123 * exec.c (exec_close): Update.
2124 (exec_file_attach): Update.
2125 * progspace.c (clone_program_space): Update.
2126 (print_program_space): Update.
2127
2128 2020-10-29 Tom Tromey <tom@tromey.com>
2129
2130 * target-section.h (struct target_section): Add constructor.
2131 * exec.c (build_section_table, add_target_sections_of_objfile):
2132 Update.
2133 * corelow.c (core_target::build_file_mappings): Update.
2134
2135 2020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2136
2137 PR gdb/19318
2138 * inferior.c (detach_inferior_command): Restore the current thread.
2139 (kill_inferior_command): Ditto.
2140
2141 2020-10-28 Tom de Vries <tdevries@suse.de>
2142
2143 PR symtab/26772
2144 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
2145 map, check it in the "best match" loop.
2146
2147 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
2148
2149 * m32c-tdep.c: Remove unused includes.
2150
2151 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
2152
2153 * xtensa-tdep.c: Remove includes.
2154
2155 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2156
2157 * breakpoint.c (struct condition_command_opts): New struct.
2158 (condition_command_option_defs): New static global.
2159 (make_condition_command_options_def_group): New function.
2160 (condition_completer): Update to consider the '-force' flag.
2161 (condition_command): Use gdb::option for the '-force' flag.
2162
2163 2020-10-27 Tom de Vries <tdevries@suse.de>
2164
2165 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
2166 symbols in section check.
2167
2168 2020-10-27 Tom de Vries <tdevries@suse.de>
2169
2170 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
2171
2172 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2173
2174 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
2175 * breakpoint.c: Update the help text of the 'condition' and 'break'
2176 commands.
2177 (set_breakpoint_condition): Take a new bool parameter
2178 to control whether condition definition should be forced even when
2179 the condition expression is invalid in all of the current locations.
2180 (condition_command): Update the call to 'set_breakpoint_condition'.
2181 (find_condition_and_thread): Take the "-force-condition" flag into
2182 account.
2183 * linespec.c (linespec_keywords): Add "-force-condition" as an
2184 element.
2185 (FORCE_KEYWORD_INDEX): New #define.
2186 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
2187 as a keyword.
2188 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
2189 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
2190 * python/py-breakpoint.c (bppy_set_condition): Ditto.
2191 * NEWS: Mention the changes to the 'break' and 'condition' commands.
2192
2193 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2194
2195 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
2196 * breakpoint.c (set_breakpoint_location_condition): New function.
2197 (set_breakpoint_condition): Disable a breakpoint location if parsing
2198 the condition string gives an error.
2199 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
2200 (build_target_condition_list): Ditto.
2201 (build_target_command_list): Ditto.
2202 (build_bpstat_chain): Ditto.
2203 (print_one_breakpoint_location): Ditto.
2204 (print_one_breakpoint): Ditto.
2205 (breakpoint_1): Ditto.
2206 (bp_location::bp_location): Ditto.
2207 (locations_are_equal): Ditto.
2208 (update_breakpoint_locations): Ditto.
2209 (enable_disable_bp_num_loc): Ditto.
2210 (init_breakpoint_sal): Use set_breakpoint_location_condition.
2211 (find_condition_and_thread_for_sals): New static function.
2212 (create_breakpoint): Call find_condition_and_thread_for_sals.
2213 (location_to_sals): Call find_condition_and_thread_for_sals instead
2214 of find_condition_and_thread.
2215
2216 2020-10-26 Tom de Vries <tdevries@suse.de>
2217
2218 * dwarf2/read.c (process_full_comp_unit): Call
2219 dwarf2_find_base_address.
2220
2221 2020-10-26 Tom Tromey <tromey@adacore.com>
2222
2223 * gdbtypes.c (create_range_type): Revert previous patch. Add
2224 comment.
2225
2226 2020-10-26 Pedro Alves <pedro@palves.net>
2227
2228 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
2229 (my_waitpid): Use gdb::handle_eintr.
2230
2231 2020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
2232
2233 * acinclude.m4: Update ptrace.m4 path.
2234 * ptrace.m4: Moved to gdbsupport.
2235
2236 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
2237
2238 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
2239 instead of target_gdbarch.
2240
2241 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
2242
2243 * jit.c (jit_reader_load_command): Pass current inferior.
2244 (jit_inferior_init): Change parameter type to inferior, use it.
2245 (jit_inferior_created): Remove.
2246 (jit_inferior_created_hook): Pass inferior parameter down.
2247 (_initialize_jit): Use jit_inferior_created_hook instead of
2248 jit_inferior_created.
2249 * jit.h (jit_inferior_created_hook): Add inferior parameter.
2250 * infrun.c (follow_exec): Pass inferior to
2251 jit_inferior_created_hook.
2252
2253 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
2254
2255 * linux-thread-db.c (check_pid_namespace_match): Add inferior
2256 parameter and use it.
2257 (thread_db_inferior_created): Pass inferior argument.
2258
2259 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
2260
2261 * aix-thread.c (aix_thread_inferior_created): Add inferior
2262 parameter.
2263 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
2264 * dummy-frame.c (cleanup_dummy_frames): Likewise.
2265 * jit.c (jit_inferior_created): Likewise.
2266 * linux-thread-db.c (thread_db_inferior_created): Likewise.
2267 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
2268 * observable.h (inferior_created): Likewise.
2269 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
2270 * symfile-mem.c (add_vsyscall_page): Likewise.
2271 * infcmd.c (post_create_inferior): Pass inferior argument.
2272
2273 2020-10-24 Joel Brobecker <brobecker@adacore.com>
2274
2275 GDB 10.1 released.
2276
2277 2020-10-23 Joel Brobecker <brobecker@adacore.com>
2278
2279 * ada-typeprint.c (ada_print_type): Remove superfluous second call
2280 to ada_check_typedef.
2281
2282 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2283
2284 * f-exp.y (f_parse): Rename to...
2285 (f_language::parser): ...this.
2286 * f-lang.c (f_get_encoding): Rename to...
2287 (f_language::get_encoding): ...this.
2288 (f_op_print_tab): Rename to...
2289 (f_language::op_print_tab): ...this.
2290 (exp_descriptor_f): Rename to...
2291 (f_language::exp_descriptor_tab): ...this.
2292 (class f_language): Moved to f-lang.h.
2293 (f_language::language_arch_info): New function, moved out of class
2294 declaration.
2295 (f_language::search_name_hash): Likewise.
2296 (f_language::lookup_symbol_nonlocal): Likewise.
2297 (f_language::get_symbol_name_matcher_inner): Likewise.
2298 * f-lang.h: Add 'valprint.h' include.
2299 (class f_language): Moved here from f-lang.c.
2300 * f-typeprint.c (f_type_print_args): Delete commented out
2301 declaration.
2302 (f_print_typedef): Rename to...
2303 (f_language::print_typedef): ...this.
2304 (f_print_type): Rename to...
2305 (f_language::print_type): ...this.
2306 (f_type_print_varspec_prefix): Delete declaration and rename to...
2307 (f_language::f_type_print_varspec_prefix): ...this.
2308 (f_type_print_varspec_suffix): Delete declaration and rename to...
2309 (f_language::f_type_print_varspec_suffix): ...this.
2310 (f_type_print_base): Delete declaration and rename to...
2311 (f_language::f_type_print_base): ...this.
2312 * f-valprint.c (f_value_print_inner): Rename to...
2313 (f_language::value_print_inner): ...this.
2314 * parse.c: Delete 'f-lang.h' include.
2315
2316 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2317
2318 * language.h (language_defn::print_type): Add variable names in
2319 declaration, and update header comment.
2320
2321 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2322
2323 * ada-lang.c (ada_language::demangle): Rename to...
2324 (ada_language::demangle_symbol): ...this.
2325 * c-lang.c (cplus_language::demangle): Rename to...
2326 (cplus_language::demangle_symbol): ...this.
2327 * d-lang.c (d_language::demangle): Rename to...
2328 (d_language::demangle_symbol): ...this.
2329 * f-lang.c (f_language::demangle): Rename to...
2330 (f_language::demangle_symbol): ...this.
2331 * go-lang.c (go_language::demangle): Rename to...
2332 (go_language::demangle_symbol): ...this.
2333 * language.c (language_demangle): Update call to demangle_symbol.
2334 (auto_or_unknown_language::demangle): Rename to...
2335 (auto_or_unknown_language::demangle_symbol): ...this.
2336 * language.h (language_defn::demangle): Rename to...
2337 (language_defn::demangle_symbol): ...this.
2338 * objc-lang.c (objc_language::demangle): Rename to...
2339 (objc_language::demangle_symbol): ...this.
2340 * rust-lang.c (rust_language::demangle): Rename to...
2341 (rust_language::demangle_symbol): ...this.
2342
2343 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2344
2345 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
2346 (iterate_over_file_blocks): Replace use of macro with the macros
2347 definition.
2348
2349 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2350
2351 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
2352 * valprint.c (maybe_print_array_index): Replace use of macro with
2353 the macros definition.
2354
2355 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2356
2357 * ada-lang.c (ada_language::print_array_index): Call value_print
2358 directly.
2359 * language.c (language_defn::print_array_index): Likewise.
2360 * language.h (LA_VALUE_PRINT): Delete.
2361 * valprint.c (value_print): Call value_print on the
2362 current_language directly.
2363
2364 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2365
2366 * language.h (LA_PRINT_TYPEDEF): Delete.
2367 * typeprint.c (typedef_print): Call print_typedef directly on the
2368 current_language object.
2369
2370 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2371
2372 * m2-exp.y (m2_parse): Rename to...
2373 (m2_language::parser): ...this. Update function signature.
2374 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
2375 (m2_op_print): Rename to...
2376 (m2_language::op_print_tab): ...this, and make const.
2377 (exp_descriptor_modula2): Rename to...
2378 (m2_language::exp_descriptor_modula2): ...this.
2379 (class m2_language): Move to m2-lang.h.
2380 (m2_language::language_arch_info): New function, moved out of
2381 class declaration.
2382 (m2_language::printchar): New function, body from m2_printchar.
2383 (m2_language::printstr): New function, moved out of class
2384 declaration.
2385 (m2_language::emitchar): Likewise.
2386 * m2-lang.h (m2_parse): Delete declaration.
2387 (m2_print_typedef): Delete declaration.
2388 (m2_value_print_inner): Delete declaration.
2389 (class m2_language): Class declaration moved from m2-lang.c,
2390 larger functions are left in m2-lang.c.
2391 * m2-typeprint.c (m2_print_typedef): Rename to...
2392 (m2_language::print_typedef): ...this, and update function
2393 signature.
2394 * m2-valprint.c (m2_value_print_inner): Rename to...
2395 (m2_language::value_print_inner): ...this, replace use of
2396 LA_PRINT_STRING with a direct call to printstr member function,
2397 and update recursive call.
2398
2399 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2400
2401 * language.c (default_is_string_type_p): Delete, implementation
2402 moved into auto_or_unknown_language::is_string_type_p.
2403 (unk_op_print_tab): Moved into
2404 auto_or_unknown_language::opcode_print_table.
2405 (unknown_language_arch_info): Delete, implementation moved into
2406 auto_or_unknown_language::language_arch_info.
2407 (class auto_or_unknown_language): New class, member functions
2408 copied from unknown_language class, with some updates.
2409 (class unknown_language): Most member functions moved into
2410 auto_or_unknown_language class. Inherit from
2411 auto_or_unknown_language class.
2412 (class auto_language): Inherit from auto_or_unknown_language.
2413 Delete most member functions.
2414
2415 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
2416
2417 * stabsread.c (read_member_functions): Remove gdb_assert.
2418
2419 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
2420
2421 * gdbtypes.c (init_complex_type): Check target type name.
2422
2423 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
2424
2425 * target-debug.h (target_debug_print_struct_target_ops_p):
2426 Remove.
2427 (target_debug_print_async_callback_ftype_p): Remove.
2428 (target_debug_print_struct_trace_state_variable_p): Remove.
2429 (target_debug_print_struct_traceframe_info_p): Remove.
2430 (target_debug_print_VEC__btrace_block_s__pp): Remove.
2431 (target_debug_print_enum_btrace_format): Remove.
2432 (target_debug_print_enum_info_proc_what): Remove.
2433 (target_debug_print_thread_info_pp): Remove.
2434
2435 2020-10-22 Simon Marchi <simon.marchi@efficios.com>
2436
2437 * target.h (struct target_ops) <make_corefile_notes>:
2438 Change return type to unique pointer.
2439 * target.c (dummy_make_corefile_notes): Likewise.
2440 * exec.c (struct exec_target) <make_corefile_notes>:
2441 Likewise.
2442 (exec_target::make_corefile_notes): Likewise.
2443 * procfs.c (class procfs_target) <make_corefile_notes>:
2444 Likewise.
2445 (procfs_do_thread_registers): Adjust to unique pointer.
2446 (struct procfs_corefile_thread_data): Add constructor.
2447 <note_data>: Change type to unique pointer.
2448 (procfs_corefile_thread_callback): Adjust to unique pointer.
2449 (procfs_target::make_corefile_notes): Change return type to
2450 unique pointer.
2451 * target-delegates.c: Re-generate.
2452 * gcore.c (write_gcore_file_1): Adjust.
2453 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
2454 New.
2455
2456 2020-10-22 Tom de Vries <tdevries@suse.de>
2457
2458 * block.c (find_block_in_blockvector): Make sure the returned block
2459 contains pc.
2460
2461 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
2462
2463 PR gdb/26693
2464 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
2465 parameter.
2466 (load_cu): Pass existing CU.
2467 (process_imported_unit_die): Likewise.
2468 (follow_die_offset): Likewise.
2469
2470 2020-10-22 Luis Machado <luis.machado@linaro.org>
2471
2472 * corelow.c (core_target::xfer_partial): Also check for an empty
2473 m_core_unavailable_mappings vector.
2474
2475 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2476
2477 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
2478 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
2479 * f-exp.y (arglist): Allow for a series of subranges.
2480 (subrange): Add cases for subranges with strides.
2481 * f-lang.c (value_f90_subarray): Catch use of array strides and
2482 throw an error.
2483 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
2484
2485 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2486
2487 * expprint.c (print_subexp_standard): Change enum range_type to
2488 range_flag and rename variables to match.
2489 (dump_subexp_body_standard): Likewise.
2490 * expression.h (enum range_type): Rename to...
2491 (enum range_flag): ...this.
2492 (range_types): Rename to...
2493 (range_flags): ...this.
2494 * f-lang.c (value_f90_subarray): Change enum range_type to
2495 range_flag and rename variables to match.
2496 * parse.c (operator_length_standard): Likewise.
2497 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
2498 range_type to range_flag.
2499 * rust-lang.c (rust_evaluate_funcall): Likewise.
2500 (rust_range): Likewise.
2501 (rust_compute_range): Likewise.
2502 (rust_subscript): Likewise.
2503
2504 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2505
2506 * expprint.c (print_subexp_standard): Update to reflect changes to
2507 enum range_type.
2508 (dump_subexp_body_standard): Likewise.
2509 * expression.h (enum range_type): Convert to a bit field enum, and
2510 make the enum unsigned.
2511 * f-exp.y (subrange): Update to reflect changes to enum
2512 range_type.
2513 * f-lang.c (value_f90_subarray): Likewise.
2514 * parse.c (operator_length_standard): Likewise.
2515 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
2516 * rust-lang.c (rust_range): Likewise.
2517 (rust_compute_range): Likewise.
2518 (rust_subscript): Likewise.
2519
2520 2020-10-21 Simon Marchi <simon.marchi@efficios.com>
2521
2522 * infrun.c (displaced_step_in_progress_thread): Fix comment.
2523 (displaced_step_in_progress): Fix comment.
2524
2525 2020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
2526
2527 * gdbarch.sh (make_corefile_notes): Return unique pointer.
2528 * gdbarch.c: Re-generate.
2529 * gdbarch.h: Re-generate.
2530 * gcore.c (write_gcore_file_1): Adjust.
2531 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
2532 constructor.
2533 <note_data>: Change type to unique pointer.
2534 <abort_iteration>: Change type to bool.
2535 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
2536 (fbsd_collect_thread_registers): Return void, adjust.
2537 (struct fbsd_corefile_thread_data): Add construtor.
2538 <note_data>: Change type to unique pointer.
2539 (fbsd_corefile_thread): Adjust.
2540 (fbsd_make_corefile_notes): Return unique pointer, adjust.
2541 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
2542 to unique pointer, adjust.
2543 (struct linux_collect_regset_section_cb_data): Add constructor.
2544 <note_data>: Change type to unique pointer.
2545 <abort_iteration>: Change type to bool.
2546 (linux_collect_thread_registers): Return void, adjust.
2547 (struct linux_corefile_thread_data): Add constructor.
2548 <note_data>: Change type to unique pointer.
2549 (linux_corefile_thread): Adjust.
2550 (linux_make_corefile_notes): Return unique pointer, adjust.
2551
2552 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2553
2554 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
2555 * gdbarch.c: Re-generate.
2556 * gdbarch.h: Re-generate.
2557 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
2558 bool.
2559 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
2560 Likewise.
2561 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
2562 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
2563 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
2564 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
2565
2566 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2567
2568 * gdbarch.sh: Make generated predicates return bool.
2569 * gdbarch.c: Re-generate.
2570 * gdbarch.h: Re-generate.
2571
2572 2020-10-20 Tom Tromey <tom@tromey.com>
2573
2574 * varobj-iter.h (struct varobj_item): Remove typedef.
2575
2576 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2577
2578 * infrun.c (currently_stepping): Change int to bool
2579 (maybe_software_singlestep): Likewise.
2580 (show_stop_on_solib_events): Likewise.
2581 (stepping_past_nonsteppable_watchpoint): Likewise.
2582 (displaced_step_in_progress_any_inferior): Likewise.
2583 (displaced_step_in_progress_thread): Likewise.
2584 (keep_going_stepped_thread): Likewise.
2585 (thread_still_needs_step_over): Likewise.
2586 (start_step_over): Likewise.
2587 (do_target_resume): Likewise.
2588 (resume_1): Likewise.
2589 (clear_proceed_status): Likewise.
2590 (thread_still_needs_step_over_bp): Likewise.
2591 (proceed): Likewise.
2592 (switch_back_to_stepped_thread): Likewise.
2593 (adjust_pc_after_break): Likewise.
2594 (stepped_in_from): Likewise.
2595 (handle_stop_requested): Likewise.
2596 (handle_syscall_event): Likewise.
2597 (handle_no_resumed): Likewise.
2598 (handle_inferior_event): Likewise.
2599 (finish_step_over): Likewise.
2600 (handle_signal_stop): Likewise.
2601 (process_event_stop_test): Likewise.
2602
2603 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2604
2605 * infrun.c (get_displaced_stepping_state): Fix comment.
2606
2607 2020-10-20 Andreas Schwab <schwab@linux-m68k.org>
2608
2609 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
2610
2611 2020-10-19 Tom Tromey <tromey@adacore.com>
2612
2613 PR tui/26719
2614 * tui/tui-winsource.h (struct tui_source_window_base)
2615 <refresh_window>: Rename from refresh_pad.
2616 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
2617 Rename from refresh_pad.
2618 (tui_source_window_base::show_source_content)
2619 (tui_source_window_base::do_scroll_horizontal): Update.
2620
2621 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2622
2623 * thread.c (_initialize_thread): Fine-tune the help text of
2624 'info threads'.
2625
2626 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2627
2628 * frame.c: Remove the unused 'uinteger_option_def' type alias.
2629
2630 2020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
2631
2632 * breakpoint.c (handle_jit_event): Add an argument, change how
2633 `jit_event_handler` is called.
2634
2635 2020-10-17 Tom Tromey <tom@tromey.com>
2636
2637 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
2638 (scan_xcoff_symtab): Update.
2639 * psymtab.h (class psymtab_storage) <global_psymbols,
2640 static_psymbols, current_global_psymbols,
2641 current_static_psymbols>: Remove.
2642 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
2643 (match_partial_symbol, lookup_partial_symbol): Update.
2644 (print_partial_symbols): Change parameters.
2645 (dump_psymtab, recursively_search_psymtabs)
2646 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
2647 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
2648 (concat): Remove.
2649 (end_psymtab_common): Simplify.
2650 (append_psymbol_to_list): Change parameters.
2651 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
2652 (init_psymbol_list): Simplify.
2653 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
2654 * psympriv.h (struct partial_symtab) <empty>: New method.
2655 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
2656 Remove.
2657 <global_psymbols, static_psymbols>: New members.
2658 <add_psymbol>: New methods.
2659 (add_psymbol_to_list): Don't declare.
2660 (psymbol_placement): Move earlier.
2661 * mdebugread.c (parse_partial_symbols): Update.
2662 (handle_psymbol_enumerators): Change parameters.
2663 (mdebug_expand_psymtab): Update.
2664 * dwarf2/read.c (process_psymtab_comp_unit_reader)
2665 (add_partial_symbol): Update.
2666 * dwarf2/index-write.c (write_psymbols): Change parameters.
2667 (write_one_signatured_type): Update.
2668 (recursively_count_psymbols): Update.
2669 (recursively_write_psymbols): Update.
2670 (class debug_names) <recursively_write_psymbols>: Update.
2671 <write_psymbols>: Change parameters.
2672 <write_one_signatured_type>: Update.
2673 * dbxread.c (read_dbx_symtab): Update.
2674 (dbx_end_psymtab): Use partial_symtab::empty.
2675 * ctfread.c (struct ctf_context) <pst>: New member.
2676 (create_partial_symtab): Set it.
2677 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
2678 (scan_partial_symbols): Use the psymtab's context. Update.
2679
2680 2020-10-17 Tom Tromey <tom@tromey.com>
2681
2682 * valprint.c (generic_value_print): Remove comment.
2683 * m2-valprint.c (m2_value_print_inner): Remove comment.
2684 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
2685 type.
2686
2687 2020-10-17 Tom de Vries <tdevries@suse.de>
2688
2689 PR symtab/26317
2690 * source.c (select_source_symtab): Handling sal.symtab == NULL for
2691 symbol main.
2692
2693 2020-10-14 Tom de Vries <tdevries@suse.de>
2694
2695 PR gdb/26733
2696 * solib.c (solib_contains_address_p): Handle
2697 'solib->sections == nullptr'.
2698
2699 2020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
2700
2701 PR gdb/26642
2702 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
2703 target can't do async.
2704 * target.c (target_wait): Assert that we don't pass
2705 TARGET_WNOHANG to a target that can't async.
2706
2707 2020-10-13 Kamil Rytarowski <n54@gmx.com>
2708
2709 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
2710 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
2711 * alpha-bsd-nat.c: Adjust include.
2712 * alpha-bsd-tdep.h: Adjust comment.
2713 * alpha-nbsd-tdep.c: Rename to ...
2714 * alpha-netbsd-tdep.c: ... this, adjust include.
2715 * amd64-nbsd-nat.c: Rename to ...
2716 * amd64-netbsd-nat.c: ... this, adjust include.
2717 * amd64-nbsd-tdep.c: Rename to ...
2718 * amd64-netbsd-tdep.c: ... this, adjust include.
2719 * amd64-tdep.h: Adjust include.
2720 * arm-nbsd-nat.c: Rename to ...
2721 * arm-netbsd-nat.c: ... this, adjust include.
2722 * arm-nbsd-tdep.c: Rename to ...
2723 * arm-netbsd-tdep.c: ... this, adjust include.
2724 * arm-nbsd-tdep.h: Rename to ...
2725 * arm-netbsd-tdep.h: ... this, adjust include.
2726 * configure.nat: Adjust file lists.
2727 * configure.tgt: Likewise.
2728 * hppa-nbsd-nat.c: Rename to ...
2729 * hppa-netbsd-nat.c: ... this, adjust include.
2730 * hppa-nbsd-tdep.c: Rename to ...
2731 * hppa-netbsd-tdep.c: ... this, adjust include.
2732 * i386-nbsd-nat.c: Rename to ...
2733 * i386-netbsd-nat.c: ... this, adjust include.
2734 * i386-nbsd-tdep.c: Rename to ...
2735 * i386-netbsd-tdep.c: ... this, adjust include.
2736 * m68k-bsd-nat.c: Adjust include.
2737 * mips-nbsd-nat.c: Rename to ...
2738 * mips-netbsd-nat.c: ... this, adjust include.
2739 * mips-nbsd-tdep.c: Rename to ...
2740 * mips-netbsd-tdep.c: ... this, adjust include.
2741 * mips-nbsd-tdep.h: Rename to ...
2742 * mips-netbsd-tdep.h: ... this.
2743 * nbsd-nat.c: Rename to ...
2744 * netbsd-nat.c: ... this, adjust include.
2745 * nbsd-nat.h: Rename to ...
2746 * netbsd-nat.h: ... this, adjust include.
2747 * nbsd-tdep.c: Rename to ...
2748 * netbsd-tdep.c: ... this, adjust include.
2749 * nbsd-tdep.h: Rename to ...
2750 * netbsd-tdep.h: ... this.
2751 * ppc-nbsd-nat.c: Rename to ...
2752 * ppc-netbsd-nat.c: ... this, adjust include.
2753 * ppc-nbsd-tdep.c: Rename to ...
2754 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
2755 * ppc-nbsd-tdep.h: Rename to ...
2756 * ppc-netbsd-tdep.h: ... this.
2757 * sh-nbsd-nat.c: Rename to ...
2758 * sh-netbsd-nat.c: ... this, adjust include.
2759 * sh-nbsd-tdep.c: Rename to ...
2760 * sh-netbsd-tdep.c: ... this, adjust include.
2761 * sparc-nbsd-nat.c: Rename to ...
2762 * sparc-netbsd-nat.c: ... this.
2763 * sparc-nbsd-tdep.c: Rename to ...
2764 * sparc-netbsd-tdep.c: ... this, adjust include.
2765 * sparc64-nbsd-nat.c: Rename to ...
2766 * sparc64-netbsd-nat.c: ... this.
2767 * sparc64-nbsd-tdep.c: Rename to ...
2768 * sparc64-netbsd-tdep.c: ... this, adjust include.
2769 * sparc64-tdep.h: Adjust comment.
2770 * vax-bsd-nat.c: Adjust include.
2771 * vax-nbsd-tdep.c: Rename to ...
2772 * vax-netbsd-tdep.c: ... this, adjust include.
2773
2774 2020-10-12 Tom Tromey <tom@tromey.com>
2775
2776 * target.h (struct target_ops) <get_section_table>: Update.
2777 (target_get_section_table): Update.
2778 * target.c (target_get_section_table, target_section_by_addr)
2779 (memory_xfer_partial_1): Update.
2780 * target-section.h (target_section_table): Now an alias.
2781 * target-delegates.c: Rebuild.
2782 * target-debug.h (target_debug_print_target_section_table_p):
2783 Rename from target_debug_print_struct_target_section_table_p.
2784 * symfile.c (build_section_addr_info_from_section_table): Update.
2785 * solib.c (solib_map_sections, solib_contains_address_p): Update.
2786 * solib-svr4.c (scan_dyntag): Update.
2787 * solib-dsbt.c (scan_dyntag): Update.
2788 * remote.c (remote_target::remote_xfer_live_readonly_partial):
2789 Update.
2790 * record-full.c (record_full_core_target::xfer_partial): Update.
2791 * progspace.h (struct program_space) <target_sections>: Update.
2792 * exec.h (print_section_info): Update.
2793 * exec.c (exec_target::close, build_section_table)
2794 (add_target_sections, add_target_sections_of_objfile)
2795 (remove_target_sections, exec_on_vfork)
2796 (section_table_available_memory)
2797 (section_table_xfer_memory_partial)
2798 (exec_target::get_section_table, exec_target::xfer_partial)
2799 (print_section_info, set_section_command)
2800 (exec_set_section_address, exec_target::has_memory): Update.
2801 * corelow.c (core_target::build_file_mappings)
2802 (core_target::xfer_partial, core_target::info_proc_mappings)
2803 (core_target::info_proc_mappings): Update.
2804 * bfd-target.c (class target_bfd): Update
2805
2806 2020-10-12 Tom Tromey <tom@tromey.com>
2807
2808 * progspace.c (program_space::~program_space): Don't call
2809 clear_section_table.
2810 * exec.h (clear_section_table): Don't declare.
2811 * exec.c (exec_target::close): Update.
2812 (clear_section_table): Remove.
2813
2814 2020-10-12 Tom Tromey <tom@tromey.com>
2815
2816 * exec.c (add_target_sections_of_objfile): Simplify.
2817
2818 2020-10-12 Tom Tromey <tom@tromey.com>
2819
2820 * solib.c (solib_map_sections): Update.
2821 * record-full.c (record_full_core_open_1): Update.
2822 * exec.h (build_section_table): Return a target_section_table.
2823 * exec.c (exec_file_attach): Update.
2824 (build_section_table): Return a target_section_table.
2825 * corelow.c (core_target::core_target): Update.
2826 * bfd-target.c (target_bfd::target_bfd): Update.
2827
2828 2020-10-12 Tom Tromey <tom@tromey.com>
2829
2830 * target.c (target_section_by_addr, memory_xfer_partial_1):
2831 Update.
2832 * target-section.h (struct target_section_table): Use
2833 std::vector.
2834 * symfile.h (build_section_addr_info_from_section_table): Take a
2835 target_section_table.
2836 * symfile.c (build_section_addr_info_from_section_table): Take a
2837 target_section_table.
2838 * solist.h (struct so_list) <sections>: Change type.
2839 <sections_end>: Remove.
2840 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
2841 (solib_contains_address_p): Update.
2842 * solib-svr4.c (scan_dyntag): Update.
2843 * solib-dsbt.c (scan_dyntag): Update.
2844 * remote.c (remote_target::remote_xfer_live_readonly_partial):
2845 Update.
2846 * record-full.c (record_full_core_start, record_full_core_end):
2847 Remove.
2848 (record_full_core_sections): New global.
2849 (record_full_core_open_1, record_full_core_target::xfer_partial):
2850 Update.
2851 * exec.h (build_section_table, section_table_xfer_memory_partial)
2852 (add_target_sections): Take a target_section_table.
2853 * exec.c (exec_file_attach, clear_section_table): Update.
2854 (resize_section_table): Remove.
2855 (build_section_table, add_target_sections): Take a
2856 target_section_table.
2857 (add_target_sections_of_objfile, remove_target_sections)
2858 (exec_on_vfork): Update.
2859 (section_table_available_memory): Take a target_section_table.
2860 (section_table_read_available_memory): Update.
2861 (section_table_xfer_memory_partial): Take a target_section_table.
2862 (print_section_info, set_section_command)
2863 (exec_set_section_address, exec_target::has_memory): Update.
2864 * corelow.c (class core_target) <m_core_section_table,
2865 m_core_file_mappings>: Remove braces.
2866 <~core_target>: Remove.
2867 (core_target::core_target): Update.
2868 (core_target::~core_target): Remove.
2869 (core_target::build_file_mappings)
2870 (core_target::xfer_memory_via_mappings)
2871 (core_target::xfer_partial, core_target::info_proc_mappings):
2872 Update.
2873 * bfd-target.c (target_bfd::xfer_partial): Update.
2874 (target_bfd::target_bfd): Update.
2875 (target_bfd::~target_bfd): Remove.
2876
2877 2020-10-12 Tom Tromey <tom@tromey.com>
2878
2879 * target.h (struct target_section, struct target_section_table):
2880 Move to target-section.h.
2881 * target-section.h: New file.
2882
2883 2020-10-12 Pedro Alves <pedro@palves.net>
2884
2885 PR exp/26602
2886 * valops.c (struct struct_field_searcher): New.
2887 (update_search_result): Rename to ...
2888 (struct_field_searcher::update_result): ... this. Simplify
2889 prototype. Record all found fields.
2890 (do_search_struct_field): Rename to ...
2891 (struct_field_searcher::search): ... this. Simplify prototype.
2892 Maintain stack of visited baseclass path. Call update_result for
2893 fields too. Keep searching fields in baseclasses instead of
2894 stopping at the first found field.
2895 (search_struct_field): Use struct_field_searcher. When looking
2896 for fields, report ambiguous access attempts.
2897
2898 2020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
2899
2900 * frame.c (inside_main_func): Check full symbols as well as
2901 minimal symbols.
2902
2903 2020-10-09 Joel Brobecker <brobecker@adacore.com>
2904
2905 * ada-lang.c (advance_wild_match): Rewrite the function's
2906 description. Change the type of target0, t0 and t1 to char.
2907
2908 2020-10-09 Tom Tromey <tromey@adacore.com>
2909
2910 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
2911
2912 2020-10-09 Tom Tromey <tromey@adacore.com>
2913
2914 * ada-lang.h (ada_encode): Return std::string.
2915 * ada-lang.c (ada_encode_1): Return std::string.
2916 (ada_encode): Likewise.
2917 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
2918 Update.
2919 * ada-exp.y (block_lookup, write_var_or_type): Update.
2920
2921 2020-10-09 Hannes Domani <ssbssa@yahoo.de>
2922
2923 PR exp/26714
2924 * printcmd.c (print_formatted): Handle void results as
2925 unformatted prints.
2926
2927 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
2928
2929 * arch/aarch32.c (aarch32_create_target_description): Release the
2930 target_desc_up as late as possible.
2931 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2932 * arch/amd64.c (amd64_create_target_description): Likewise.
2933 * arch/arc.c (arc_create_target_description): Return a
2934 target_desc_up, don't release it.
2935 * arch/arc.h (arc_create_target_description): Update declaration.
2936 (arc_lookup_target_description): Move target_desc_up into the
2937 cache, and return a borrowed pointer.
2938 * arch/arm.c (arm_create_target_description): Release the
2939 target_desc_up as late as possible.
2940 * arch/i386.c (i386_create_target_description): Likewise.
2941 * arch/riscv.h (riscv_create_target_description): Update
2942 declaration to match definition.
2943 * arch/tic6x.c (tic6x_create_target_description): Release the
2944 target_desc_up as late as possible.
2945
2946 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
2947
2948 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
2949 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
2950
2951 2020-10-09 Jan Vrany <jan.vrany@labware.com>
2952
2953 * source.c (directory_command): Notify observers that "directories"
2954 parameter has changed.
2955
2956 2020-10-08 Tom Tromey <tom@tromey.com>
2957
2958 * cli/cli-cmds.c (print_disassembly): Style function name and
2959 addresses. Add _() wrappers.
2960
2961 2020-10-08 Shahab Vahedi <shahab@synopsys.com>
2962
2963 * NEWS: Mention ARC support in GDBserver.
2964
2965 2020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
2966
2967 * arch/aarch32.c (aarch32_create_target_description): Release
2968 unique_ptr returned from allocate_target_description.
2969 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2970 * arch/amd64.c (amd64_create_target_description): Likewise.
2971 * arch/arc.c (arc_create_target_description): Likewise.
2972 * arch/arm.c (arm_create_target_description): Likewise.
2973 * arch/i386.c (i386_create_target_description): Likewise.
2974 * arch/riscv.c (riscv_create_target_description): Update return
2975 type. Handle allocate_target_description returning a unique_ptr.
2976 (riscv_lookup_target_description): Update to handle unique_ptr.
2977 * arch/tic6x.c (tic6x_create_target_description): Release
2978 unique_ptr returned from allocate_target_description.
2979 * features/microblaze-with-stack-protect.c: Regenerate.
2980 * features/microblaze.c: Regenerate.
2981 * features/mips-dsp-linux.c: Regenerate.
2982 * features/mips-linux.c: Regenerate.
2983 * features/mips64-dsp-linux.c: Regenerate.
2984 * features/mips64-linux.c: Regenerate.
2985 * features/nds32.c: Regenerate.
2986 * features/nios2.c: Regenerate.
2987 * features/or1k.c: Regenerate.
2988 * features/rs6000/powerpc-32.c: Regenerate.
2989 * features/rs6000/powerpc-32l.c: Regenerate.
2990 * features/rs6000/powerpc-403.c: Regenerate.
2991 * features/rs6000/powerpc-403gc.c: Regenerate.
2992 * features/rs6000/powerpc-405.c: Regenerate.
2993 * features/rs6000/powerpc-505.c: Regenerate.
2994 * features/rs6000/powerpc-601.c: Regenerate.
2995 * features/rs6000/powerpc-602.c: Regenerate.
2996 * features/rs6000/powerpc-603.c: Regenerate.
2997 * features/rs6000/powerpc-604.c: Regenerate.
2998 * features/rs6000/powerpc-64.c: Regenerate.
2999 * features/rs6000/powerpc-64l.c: Regenerate.
3000 * features/rs6000/powerpc-7400.c: Regenerate.
3001 * features/rs6000/powerpc-750.c: Regenerate.
3002 * features/rs6000/powerpc-860.c: Regenerate.
3003 * features/rs6000/powerpc-altivec32.c: Regenerate.
3004 * features/rs6000/powerpc-altivec32l.c: Regenerate.
3005 * features/rs6000/powerpc-altivec64.c: Regenerate.
3006 * features/rs6000/powerpc-altivec64l.c: Regenerate.
3007 * features/rs6000/powerpc-e500.c: Regenerate.
3008 * features/rs6000/powerpc-e500l.c: Regenerate.
3009 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
3010 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
3011 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
3012 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
3013 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
3014 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
3015 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
3016 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
3017 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
3018 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
3019 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
3020 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
3021 * features/rs6000/powerpc-vsx32.c: Regenerate.
3022 * features/rs6000/powerpc-vsx32l.c: Regenerate.
3023 * features/rs6000/powerpc-vsx64.c: Regenerate.
3024 * features/rs6000/powerpc-vsx64l.c: Regenerate.
3025 * features/rs6000/rs6000.c: Regenerate.
3026 * features/rx.c: Regenerate.
3027 * features/s390-gs-linux64.c: Regenerate.
3028 * features/s390-linux32.c: Regenerate.
3029 * features/s390-linux32v1.c: Regenerate.
3030 * features/s390-linux32v2.c: Regenerate.
3031 * features/s390-linux64.c: Regenerate.
3032 * features/s390-linux64v1.c: Regenerate.
3033 * features/s390-linux64v2.c: Regenerate.
3034 * features/s390-te-linux64.c: Regenerate.
3035 * features/s390-tevx-linux64.c: Regenerate.
3036 * features/s390-vx-linux64.c: Regenerate.
3037 * features/s390x-gs-linux64.c: Regenerate.
3038 * features/s390x-linux64.c: Regenerate.
3039 * features/s390x-linux64v1.c: Regenerate.
3040 * features/s390x-linux64v2.c: Regenerate.
3041 * features/s390x-te-linux64.c: Regenerate.
3042 * features/s390x-tevx-linux64.c: Regenerate.
3043 * features/s390x-vx-linux64.c: Regenerate.
3044 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
3045 from allocate_target_description.
3046 * target-descriptions.c (allocate_target_description): Update
3047 return type.
3048 (print_c_tdesc::visit_pre): Release unique_ptr returned from
3049 allocate_target_description.
3050
3051 2020-10-07 Tom Tromey <tromey@adacore.com>
3052
3053 * unittests/search-memory-selftests.c: New file.
3054 * Makefile.in (SELFTESTS_SRCS): Add
3055 unittests/search-memory-selftests.c.
3056
3057 2020-10-07 Tom Tromey <tromey@adacore.com>
3058
3059 PR gdb/16930:
3060 * findcmd.c (_initialize_mem_search): Mention that the range is
3061 inclusive.
3062
3063 2020-10-07 Tom Tromey <tromey@adacore.com>
3064
3065 * target.h (simple_search_memory): Don't declare.
3066 * target.c (simple_search_memory): Move to gdbsupport.
3067 (default_search_memory): Update.
3068 * remote.c (remote_target::search_memory): Update.
3069
3070 2020-10-07 Simon Marchi <simon.marchi@efficios.com>
3071
3072 * Makefile.in (COMPILE): Add CXXFLAGS.
3073 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
3074 (check-headers): Add CXXFLAGS.
3075
3076 2020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
3077
3078 * arc-linux-tdep.h: New file.
3079 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
3080 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
3081 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
3082 arc_linux_gregset, arc_linux_v2_regset,
3083 arc_linux_iterate_over_regset_sections,
3084 arc_linux_core_read_description): Implement.
3085 (arc_linux_init_osabi): Set iterate_over_regset_sections.
3086 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
3087 (arc_gdbarch_features_create): Add.
3088 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
3089
3090 2020-10-07 Shahab Vahedi <shahab@synopsys.com>
3091
3092 * arch/arc.h: Rename "arc_gdbarch_features" to
3093 "arc_arch_features".
3094 * arc-tdep.h: Likewise.
3095 * arc-tdep.c: Likewise.
3096
3097 2020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3098
3099 * infcmd.c (attach_command): Remove the redundant call to
3100 `clear_proceed_status`.
3101
3102 2020-10-07 Kamil Rytarowski <n54@gmx.com>
3103
3104 * nat/netbsd-nat.c (write_memory, read_memory): Update.
3105
3106 2020-10-07 Kamil Rytarowski <n54@gmx.com>
3107
3108 * nat/netbsd-nat.c (write_memory, read_memory): Add.
3109 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
3110 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
3111
3112 2020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
3113
3114 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
3115 (_initialize_break_catch_sig): Don't allocate array.
3116
3117 2020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
3118
3119 * symtab.c (find_pc_line): Return unmapped addresses when the
3120 requested address is also unmapped.
3121
3122 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
3123
3124 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
3125 tui/tui-out.h.
3126
3127 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
3128
3129 * amd64-windows-tdep.c (amd64_windows_return_value): Use
3130 type::is_vector instead of TYPE_VECTOR.
3131
3132 2020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
3133
3134 * auto-load.c (auto_load_objfile_script_1): Don't use
3135 debugfile_holder as temporary variable when stripping drive
3136 letter.
3137
3138 2020-10-05 Hannes Domani <ssbssa@yahoo.de>
3139
3140 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
3141 Add TYPE_CODE_COMPLEX.
3142 (amd64_windows_return_value): Fix types returned via XMM0.
3143
3144 2020-10-05 Alan Hayward <alan.hayward@arm.com>
3145
3146 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
3147 AArch64/ARM maintainers.
3148
3149 2020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
3150
3151 * NEWS: Mention set/show debug event-loop.
3152
3153 2020-10-02 Tom Tromey <tromey@adacore.com>
3154
3155 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
3156 REG_EXTENDED.
3157
3158 2020-10-02 Simon Marchi <simon.marchi@efficios.com>
3159
3160 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
3161 * procfs.c (procfs_inferior_created): Remove.
3162 (_initialize_procfs): Don't register procfs_inferior_created.
3163
3164 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3165
3166 * async-event.c (invoke_async_signal_handlers): Add debug
3167 print.
3168 (check_async_event_handlers): Likewise.
3169 * event-top.c (show_debug_event_loop): New function.
3170 (_initialize_event_top): Register "set debug event-loop"
3171 setting.
3172
3173 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3174
3175 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
3176 * debug.h: Remove.
3177 * infrun.c: Include gdbsupport/common-debug.h.
3178 * linux-nat.c: Likewise.
3179
3180 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3181
3182 * async-event.h (create_async_signal_handler): Add name
3183 parameter.
3184 (create_async_event_handler): Likewise.
3185 * async-event.c (struct async_signal_handler) <name>: New field.
3186 (struct async_event_handler) <name>: New field.
3187 (create_async_signal_handler): Assign name.
3188 (create_async_event_handler): Assign name.
3189 * event-top.c (async_init_signals): Pass name when creating
3190 handler.
3191 * infrun.c (_initialize_infrun): Likewise.
3192 * record-btrace.c (record_btrace_push_target): Likewise.
3193 * record-full.c (record_full_open): Likewise.
3194 * remote-notif.c (remote_notif_state_allocate): Likewise.
3195 * remote.c (remote_target::open_1): Likewise.
3196 * tui/tui-win.c (tui_initialize_win): Likewise.
3197
3198 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3199
3200 * async-event.c (initialize_async_signal_handlers): Pass name to
3201 add_file_handler
3202 * event-top.c (ui_register_input_event_handler): Likewise.
3203 * linux-nat.c (linux_nat_target::async): Likewise.
3204 * run-on-main-thread.c (_initialize_run_on_main_thread):
3205 Likewise
3206 * ser-base.c (reschedule): Likewise.
3207 (ser_base_async): Likewise.
3208 * tui/tui-io.c: Likewise.
3209 * top.h (struct ui) <num>: New field.
3210 * top.c (highest_ui_num): New variable.
3211 (ui::ui): Initialize num.
3212
3213 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3214
3215 * observable.h <inferior_created>: Remove parameters. Update all
3216 listeners.
3217 * inferior.h (post_create_inferior): Remove target parameter.
3218 Update all callers.
3219
3220 2020-10-02 Nitika Achra <Nitika.Achra@amd.com>
3221
3222 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
3223 and DW_MACRO_undef_strx.
3224 (dwarf_decode_macros): Likewise
3225 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
3226 which is the value of DW_AT_str_offsets_base.
3227 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
3228 str_offsets_base.
3229
3230 2020-10-01 Kamil Rytarowski <n54@gmx.com>
3231
3232 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
3233
3234 2020-10-01 Kamil Rytarowski <n54@gmx.com>
3235
3236 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
3237 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
3238
3239 2020-10-01 Kamil Rytarowski <n54@gmx.com>
3240
3241 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
3242
3243 2020-09-30 Tom de Vries <tdevries@suse.de>
3244
3245 PR symtab/26683
3246 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
3247
3248 2020-09-30 Tom Tromey <tromey@adacore.com>
3249
3250 * dwarf2/read.c (handle_variant): Use constant_value.
3251
3252 2020-09-29 Tom Tromey <tom@tromey.com>
3253
3254 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
3255 (read_file_scope, dwarf2_get_pc_bounds)
3256 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
3257 (read_structure_type, handle_struct_member_die)
3258 (read_enumeration_type, read_array_type, read_set_type)
3259 (read_tag_pointer_type, read_tag_reference_type)
3260 (read_subroutine_type, read_base_type, read_subrange_type)
3261 (read_full_die_1, partial_die_info::read)
3262 (partial_die_info::read, by, new_symbol)
3263 (dwarf2_const_value_data, dwarf2_const_value_attr)
3264 (dump_die_shallow, dwarf2_fetch_constant_bytes)
3265 (prepare_one_comp_unit): Update.
3266 * dwarf2/attribute.h (DW_UNSND): Remove.
3267
3268 2020-09-29 Tom Tromey <tom@tromey.com>
3269
3270 * dwarf2/read.c (read_func_scope, prototyped_function_p)
3271 (read_subroutine_type, partial_die_info::read)
3272 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
3273 (dwarf2_add_member_fn): Update.
3274 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
3275 * dwarf2/attribute.c (attribute::as_boolean): New method.
3276
3277 2020-09-29 Tom Tromey <tom@tromey.com>
3278
3279 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
3280 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
3281 method.
3282 * dwarf2/attribute.c (attribute::as_virtuality): New method.
3283
3284 2020-09-29 Tom Tromey <tom@tromey.com>
3285
3286 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
3287 the attribute's form.
3288
3289 2020-09-29 Tom Tromey <tom@tromey.com>
3290
3291 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
3292 (dwarf2_add_member_fn): Update.
3293 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
3294 * dwarf2/attribute.c (attribute::defaulted): New method, from
3295 is_valid_DW_AT_defaulted.
3296
3297 2020-09-29 Tom Tromey <tom@tromey.com>
3298
3299 * dwarf2/read.c (dw2_get_file_names_reader)
3300 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
3301 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
3302 (dwarf2_symbol_mark_computed): Use as_unsigned.
3303 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
3304 method.
3305 <form_is_section_offset>: Update comment.
3306
3307 2020-09-29 Tom Tromey <tom@tromey.com>
3308
3309 * dwarf2/read.c (dwarf2_access_attribute): Rename from
3310 dwarf2_default_access_attribute. Look up attribute.
3311 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
3312 Update.
3313
3314 2020-09-29 Tom Tromey <tom@tromey.com>
3315
3316 * dwarf2/read.c (skip_one_die): Update.
3317 (read_full_die_1): Change how reprocessing is done.
3318 (partial_die_info::read): Update.
3319 (read_attribute_value): Remove need_reprocess parameter.
3320 (read_attribute): Likewise.
3321 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
3322 New method.
3323
3324 2020-09-29 Tom Tromey <tom@tromey.com>
3325
3326 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
3327 (dwarf2_const_value_attr, dump_die_shallow)
3328 (dwarf2_fetch_constant_bytes): Update.
3329 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
3330 comment.
3331 <set_address>: New method.
3332 (DW_ADDR): Remove.
3333 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
3334 (attribute::as_string, attribute::as_address): Add assert.
3335
3336 2020-09-29 Tom Tromey <tom@tromey.com>
3337
3338 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
3339 (read_attribute_reprocess, read_attribute_value): Update.
3340 (read_attribute): Clear requires_reprocessing.
3341 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
3342 form_requires_reprocessing>: New methods.
3343 <string_init>: Clear requires_reprocessing.
3344 <set_unsigned_reprocess>: New method.
3345 <name>: Shrink by one bit.
3346 <requires_reprocessing>: New member.
3347 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
3348 method.
3349
3350 2020-09-29 Tom Tromey <tom@tromey.com>
3351
3352 * dwarf2/read.c (read_attribute_value): Update.
3353 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
3354 set_unsigned>: New methods.
3355 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
3356
3357 2020-09-29 Tom Tromey <tom@tromey.com>
3358
3359 * dwarf2/read.c (get_alignment, read_array_order)
3360 (read_attribute_value, dwarf2_const_value_attr)
3361 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
3362 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
3363 New methods.
3364 (DW_SND): Remove.
3365
3366 2020-09-29 Tom Tromey <tom@tromey.com>
3367
3368 * dwarf2/read.c (read_attribute_value, lookup_die_type)
3369 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
3370 Update.
3371 * dwarf2/attribute.h (struct attribute) <as_signature,
3372 set_signature>: New methods.
3373 (DW_SIGNATURE): Remove.
3374
3375 2020-09-29 Tom Tromey <tom@tromey.com>
3376
3377 * dwarf2/read.c (read_call_site_scope)
3378 (handle_data_member_location, dwarf2_add_member_fn)
3379 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3380 (partial_die_info::read, read_attribute_value)
3381 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
3382 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
3383 (dwarf2_symbol_mark_computed): Update.
3384 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
3385 methods.
3386 (DW_BLOCK): Remove.
3387 * dwarf2/attribute.c (attribute::form_is_block): Add
3388 DW_FORM_data16.
3389
3390 2020-09-29 Tom Tromey <tom@tromey.com>
3391
3392 * dwarf2/read.c (read_cutu_die_from_dwo)
3393 (read_attribute_reprocess, read_attribute_value, read_attribute)
3394 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
3395 (dwarf2_fetch_constant_bytes): Update.
3396 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
3397 <set_string_noncanonical, set_string_canonical>: New methods.
3398 <string_is_canonical>: Update comment.
3399 <canonical_string_p>: Add assert.
3400 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
3401 * dwarf2/attribute.c (attribute::form_is_string): New method.
3402 (attribute::string): Use it.
3403
3404 2020-09-29 Tom Tromey <tom@tromey.com>
3405
3406 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
3407 (dump_die_shallow): Use canonical_string_p.
3408 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
3409 method.
3410
3411 2020-09-29 Tom Tromey <tom@tromey.com>
3412
3413 * dwarf2/read.c (partial_die_info::read)
3414 (dwarf2_const_value_attr, anonymous_struct_prefix, )
3415 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
3416 attribute::as_string.
3417
3418 2020-09-29 Tom Tromey <tom@tromey.com>
3419
3420 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
3421 DW_ADDR.
3422 (attribute::string): Don't use DW_STRING.
3423 (attribute::get_ref_die_offset): Don't use DW_UNSND.
3424 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
3425
3426 2020-09-29 Tom Tromey <tom@tromey.com>
3427
3428 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
3429 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
3430 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
3431 * dwarf2/attribute.h (struct attribute): Rename methods.
3432 * dwarf2/attribute.c (attribute::as_address): Rename from
3433 value_as_address.
3434 (attribute::as_string): Rename from value_as_string.
3435
3436 2020-09-29 Tom Tromey <tom@tromey.com>
3437
3438 * dwarf2/read.c (partial_die_info::read) <case
3439 DW_AT_linkage_name>: Use value_as_string.
3440 (dwarf2_string_attr): Use value_as_string.
3441 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
3442 method.
3443 * dwarf2/attribute.c (attribute::value_as_string): New method.
3444
3445 2020-09-29 Pedro Alves <pedro@palves.net>
3446
3447 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
3448 defined before using '#pragma GCC diagnostic' instead of checking
3449 __clang__.
3450
3451 2020-09-28 Tom Tromey <tom@tromey.com>
3452
3453 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
3454 (handle_signal_stop): Update.
3455 * procfs.c (procfs_target::insert_watchpoint): Update.
3456 * target.h (target_have_steppable_watchpoint): Now a function.
3457
3458 2020-09-28 Tom Tromey <tom@tromey.com>
3459
3460 * infrun.c (set_schedlock_func): Update.
3461 * target.h (target_can_lock_scheduler): Now a function.
3462
3463 2020-09-28 Tom Tromey <tom@tromey.com>
3464
3465 * inferior.h (class inferior) <has_execution>: Update.
3466 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
3467 * valops.c (find_function_in_inferior)
3468 (value_allocate_space_in_inferior): Update.
3469 * top.c (kill_or_detach): Update.
3470 * target.c (target_preopen, set_target_permissions): Update.
3471 (target_has_execution_current): Remove.
3472 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
3473 Update.
3474 * solib.c (update_solib_list, reload_shared_libraries): Update.
3475 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
3476 * solib-dsbt.c (enable_break): Update.
3477 * score-tdep.c (score7_fetch_inst): Update.
3478 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
3479 Update.
3480 * remote.c (remote_target::start_remote)
3481 (remote_target::remote_check_symbols, remote_target::open_1)
3482 (remote_target::remote_detach_1, remote_target::verify_memory)
3483 (remote_target::xfer_partial, remote_target::read_description)
3484 (remote_target::get_min_fast_tracepoint_insn_len): Update.
3485 * record-full.c (record_full_open_1): Update.
3486 * record-btrace.c (record_btrace_target_open): Update.
3487 * objc-lang.c (lookup_objc_class, lookup_child_selector)
3488 (value_nsstring): Update.
3489 * linux-thread-db.c (add_thread_db_info)
3490 (thread_db_find_new_threads_silently, check_thread_db_callback)
3491 (try_thread_db_load_1, record_thread): Update.
3492 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
3493 Update.
3494 * linux-fork.c (checkpoint_command): Update.
3495 * infrun.c (set_non_stop, set_observer_mode)
3496 (check_multi_target_resumption, for_each_just_stopped_thread)
3497 (maybe_remove_breakpoints, normal_stop)
3498 (class infcall_suspend_state): Update.
3499 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
3500 (info_program_command, attach_command): Update.
3501 * infcall.c (call_function_by_hand_dummy): Update.
3502 * inf-loop.c (inferior_event_handler): Update.
3503 * gcore.c (gcore_command, derive_heap_segment): Update.
3504 * exec.c (exec_file_command): Update.
3505 * eval.c (evaluate_subexp): Update.
3506 * compile/compile.c (compile_to_object): Update.
3507 * cli/cli-dump.c (restore_command): Update.
3508 * breakpoint.c (update_watchpoint)
3509 (update_inserted_breakpoint_locations)
3510 (insert_breakpoint_locations, get_bpstat_thread): Update.
3511 * target.h (target_has_execution): Remove macro.
3512 (target_has_execution_current): Don't declare.
3513 (target_has_execution): Rename from target_has_execution_1. Add
3514 argument default.
3515
3516 2020-09-28 Tom Tromey <tom@tromey.com>
3517
3518 * mi/mi-main.c (exec_reverse_continue)
3519 (mi_cmd_list_target_features): Update.
3520 * infrun.c (set_exec_direction_func): Update.
3521 * target.c (default_execution_direction): Update.
3522 * reverse.c (exec_reverse_once): Update.
3523 * target.h (target_can_execute_reverse): Now a function.
3524
3525 2020-09-28 Tom Tromey <tom@tromey.com>
3526
3527 * tui/tui-regs.c (tui_get_register)
3528 (tui_data_window::show_registers): Update.
3529 * thread.c (scoped_restore_current_thread::restore)
3530 (scoped_restore_current_thread::scoped_restore_current_thread):
3531 Update.
3532 * regcache-dump.c (regcache_print): Update.
3533 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
3534 Update.
3535 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
3536 * mep-tdep.c (current_me_module, current_options): Update.
3537 * linux-thread-db.c (thread_db_load): Update.
3538 * infcmd.c (registers_info, info_vector_command)
3539 (info_float_command): Update.
3540 * ia64-tdep.c (ia64_frame_prev_register)
3541 (ia64_sigtramp_frame_prev_register): Update.
3542 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
3543 * gcore.c (derive_stack_segment): Update.
3544 * frame.c (get_current_frame, has_stack_frames): Update.
3545 * findvar.c (language_defn::read_var_value): Update.
3546 * arm-tdep.c (arm_pc_is_thumb): Update.
3547 * target.c (target_has_registers): Rename from
3548 target_has_registers_1.
3549 * target.h (target_has_registers): Remove macro.
3550 (target_has_registers): Rename from target_has_registers_1.
3551
3552 2020-09-28 Tom Tromey <tom@tromey.com>
3553
3554 * windows-tdep.c (tlb_make_value): Update.
3555 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3556 * thread.c (scoped_restore_current_thread::restore)
3557 (scoped_restore_current_thread::scoped_restore_current_thread)
3558 (thread_command): Update.
3559 * stack.c (backtrace_command_1, frame_apply_level_command)
3560 (frame_apply_all_command, frame_apply_command): Update.
3561 * infrun.c (siginfo_make_value, restore_infcall_control_state):
3562 Update.
3563 * gcore.c (derive_stack_segment): Update.
3564 * frame.c (get_current_frame, has_stack_frames): Update.
3565 * auxv.c (info_auxv_command): Update.
3566 * ada-tasks.c (ada_build_task_list): Update.
3567 * target.c (target_has_stack): Rename from target_has_stack_1.
3568 * target.h (target_has_stack): Remove macro.
3569 (target_has_stack): Rename from target_has_stack_1.
3570
3571 2020-09-28 Tom Tromey <tom@tromey.com>
3572
3573 * target.c (target_has_memory): Rename from target_has_memory_1.
3574 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3575 * thread.c (scoped_restore_current_thread::restore)
3576 (scoped_restore_current_thread::scoped_restore_current_thread):
3577 Update.
3578 * frame.c (get_current_frame, has_stack_frames): Update.
3579 * target.h (target_has_memory): Remove macro.
3580 (target_has_memory): Rename from target_has_memory_1.
3581
3582 2020-09-28 Tom Tromey <tom@tromey.com>
3583
3584 * target.c (target_has_all_memory_1): Remove.
3585 * target.h (target_has_all_memory): Remove define.
3586 (target_has_all_memory_1): Don't declare.
3587
3588 2020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
3589
3590 * ser-base.c: Adjust comments formatting.
3591
3592 2020-09-27 Tom Tromey <tom@tromey.com>
3593
3594 PR tui/25342:
3595 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
3596
3597 2020-09-27 Tom Tromey <tom@tromey.com>
3598
3599 PR tui/25342:
3600 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
3601
3602 2020-09-27 Tom Tromey <tom@tromey.com>
3603
3604 * unittests/tui-selftests.c: Update.
3605 * tui/tui-winsource.h (struct tui_source_window_base)
3606 <extra_margin, show_line_number, refresh_pad>: New methods.
3607 <m_max_length, m_pad>: New members.
3608 (tui_copy_source_line): Update.
3609 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
3610 first_col, line_width, ndigits parameters. Add length.
3611 (tui_source_window_base::show_source_line): Write to pad. Line
3612 number now 0-based.
3613 (tui_source_window_base::refresh_pad): New method.
3614 (tui_source_window_base::show_source_content): Write to pad. Call
3615 refresh_pad.
3616 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
3617 not refill.
3618 (tui_source_window_base::update_exec_info): Call
3619 show_line_number.
3620 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
3621 method.
3622 <m_digits>: New member.
3623 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
3624 and m_max_length.
3625 (tui_source_window::show_line_number): New method.
3626 * tui/tui-io.h (tui_puts): Fix comment.
3627 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
3628 m_max_length.
3629
3630 2020-09-27 Tom Tromey <tom@tromey.com>
3631
3632 * tui/tui-winsource.c
3633 (tui_source_window_base::set_is_exec_point_at): Don't call
3634 show_source_line.
3635
3636 2020-09-27 Tom Tromey <tom@tromey.com>
3637
3638 * python/py-tui.c (class tui_py_window) <refresh_window>: New
3639 method.
3640 <erase>: Update.
3641 <cursor_x, cursor_y>: Remove.
3642 <m_inner_window>: New member.
3643 (tui_py_window::rerender): Create inner window.
3644 (tui_py_window::output): Write to inner window.
3645
3646 2020-09-26 Gareth Rees <grees@undo.io> (tiny change)
3647
3648 PR python/26586
3649 * cli/cli-script.c (execute_control_commands): don't set
3650 instream to nullptr here as this breaks the from_tty argument
3651 to gdb.execute in Python.
3652 (execute_user_command): set instream to nullptr here instead.
3653
3654 2020-09-25 Simon Marchi <simon.marchi@efficios.com>
3655
3656 * infrun.h (infrun_debug_printf): Fix formatting.
3657 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
3658
3659 2020-09-25 Saagar Jha <saagar@saagarjha.com>
3660
3661 * compile/compile-object-load.h (struct munmap_list): Add
3662 explicitly-defined move constructor.
3663
3664 2020-09-24 Tom Tromey <tromey@adacore.com>
3665
3666 PR tui/26638:
3667 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
3668 method.
3669 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
3670 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
3671 (tui_prev_win): Rewrite.
3672
3673 2020-09-23 Hannes Domani <ssbssa@yahoo.de>
3674
3675 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
3676 in WOW64 processes as SIGINT.
3677 * nat/windows-nat.h: Make wow64_process a shared variable.
3678 * windows-nat.c: Remove static wow64_process variable.
3679
3680 2020-09-23 Tom Tromey <tom@tromey.com>
3681
3682 PR symtab/25470:
3683 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
3684 offset and bit size.
3685 * printcmd.c (print_scalar_formatted): Handle zero-length
3686 integer.
3687 (print_scalar_formatted): Use bit_size_differs_p.
3688 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
3689 constant.
3690 (union type_specific): <int_stuff>: New member.
3691 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
3692 methods.
3693 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
3694 TYPE_SPECIFIC_FIELD.
3695 (recursive_dump_type, copy_type_recursive): Update.
3696 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
3697 DW_AT_data_bit_offset.
3698
3699 2020-09-23 Tom Tromey <tom@tromey.com>
3700
3701 * utils.h (class gdb_argv): Add move operators.
3702 <append>: New methods.
3703 * compile/compile.c (build_argc_argv): Remove.
3704 (compile_args_argc): Remove.
3705 (compile_args_argv): Change type.
3706 (set_compile_args): Simplify.
3707 (append_args): Remove.
3708 (filter_args): Remove argcp parameter.
3709 (get_args): Return gdb_argv. Simplify.
3710 (compile_to_object): Update.
3711
3712 2020-09-23 Tom Tromey <tom@tromey.com>
3713
3714 * compile/compile-object-run.c (do_module_cleanup)
3715 <~do_module_cleanup> :Remove.
3716 (do_module_cleanup): Update.
3717 * compile/compile-object-load.h (struct munmap_list): Add move
3718 assignment operator.
3719 <source_file>: Now a std::string.
3720 <munmap_list>: Rename. No longer a pointer.
3721 * compile/compile-object-load.c (struct setup_sections_data): Add
3722 constructor.
3723 <setup_one_section>: Declare.
3724 <munmap_list>: Move earlier.
3725 <m_bfd>: New member.
3726 <m_last_size, m_last_section_first, m_last_prot,
3727 m_last_max_alignment>: Rename, add initializers where needed.
3728 (setup_sections_data::setup_one_section): Rename from
3729 setup_sections. Update.
3730 (compile_object_load): Update. Don't use bfd_map_over_sections.
3731
3732 2020-09-23 Tom Tromey <tom@tromey.com>
3733
3734 * compile/compile-object-run.c (struct do_module_cleanup): Add
3735 parameters to constructor. Update destructor.
3736 <source_file, scope, scope_data, out_value_type, out_value_addr,
3737 munmap_list_head, objfile_name_string>: Remove.
3738 <module>: New member.
3739 (do_module_cleanup): Update.
3740 (compile_object_run): Update.
3741
3742 2020-09-23 Tom Tromey <tom@tromey.com>
3743
3744 * compile/compile.c (eval_compile_command): Update.
3745 * compile/compile-object-run.h (compile_object_run): Take a
3746 compile_module_up.
3747 * compile/compile-object-run.c (compile_object_run): Take a
3748 compile_module_up.
3749 * compile/compile-object-load.h (struct compile_module): Add
3750 constructor, destructor.
3751 (compile_module_up): New typedef.
3752 (compile_object_load): Return compile_object_up.
3753 * compile/compile-object-load.c (compile_object_load): Return
3754 compile_module_up.
3755
3756 2020-09-23 Tom Tromey <tom@tromey.com>
3757
3758 * compile/compile-object-run.c (struct do_module_cleanup): Add
3759 constructor, destructor.
3760 <objfile_name_string>: Don't use struct hack.
3761 (do_module_cleanup): Use delete.
3762 (compile_object_run): Use new.
3763
3764 2020-09-23 Tom Tromey <tom@tromey.com>
3765
3766 * compile/compile-cplus-types.c
3767 (compile_cplus_convert_struct_or_union): Use std::vector.
3768 (compile_cplus_convert_func): Likewise.
3769 * compile/compile-c-types.c (convert_func): Use std::vector.
3770
3771 2020-09-21 Tom Tromey <tromey@adacore.com>
3772
3773 * sparc-tdep.c (sparc32_skip_prologue): Use
3774 skip_prologue_using_sal.
3775
3776 2020-09-19 Tom Tromey <tom@tromey.com>
3777
3778 * symfile.c (add_section_size_callback): Remove.
3779 (load_one_section): Rename from load_section_callback. Change
3780 parameters.
3781 (generic_load): Use foreach.
3782
3783 2020-09-19 Tom Tromey <tom@tromey.com>
3784
3785 * exec.c (add_to_section_table): Remove.
3786 (build_section_table): Use foreach.
3787
3788 2020-09-19 Tom Tromey <tom@tromey.com>
3789
3790 * elfread.c (elf_locate_sections): Change parameters.
3791 (elf_symfile_read): Use foreach.
3792
3793 2020-09-19 Tom Tromey <tom@tromey.com>
3794
3795 * cli/cli-dump.c (struct callback_data): Remove.
3796 (restore_one_section): Rename from restore_section_callback.
3797 Change parameters.
3798 (restore_binary_file): Change parameters.
3799 (restore_command): Use foreach.
3800
3801 2020-09-19 Tom Tromey <tom@tromey.com>
3802
3803 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
3804 (gcore_copy_callback): Likewise.
3805 (gcore_memory_sections): Use foreach.
3806
3807 2020-09-19 Tom Tromey <tom@tromey.com>
3808
3809 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
3810 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
3811 parameters.
3812 (generic_elf_osabi_sniffer): Use foreach.
3813 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
3814 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
3815
3816 2020-09-19 Tom Tromey <tom@tromey.com>
3817
3818 * dwarf2/read.c (locate_dwz_sections): Change parameters.
3819 (dwarf2_get_dwz_file): Use foreach.
3820 (dwarf2_locate_dwo_sections): Change parameters.
3821 (open_and_init_dwo_file): Use foreach.
3822 (dwarf2_locate_common_dwp_sections): Change parameters.
3823 (open_and_init_dwp_file): Use foreach.
3824
3825 2020-09-19 Tom Tromey <tom@tromey.com>
3826
3827 * symfile.h: (find_lowest_section): Don't declare.
3828 * symfile.c (find_lowest_section): Now static. Change
3829 parameters.
3830 (struct place_section_arg): Remove.
3831 (place_section): Change parameters.
3832 (addr_info_make_relative): Use foreach.
3833 (symfile_dummy_outputs): Remove.
3834 (default_symfile_relocate): Use foreach.
3835
3836 2020-09-19 Tom Tromey <tom@tromey.com>
3837
3838 * objfiles.c (add_to_objfile_sections): Rename from
3839 add_to_objfile_sections_full.
3840 (add_to_objfile_sections): Remove.
3841 (build_objfile_section_table): Use foreach.
3842
3843 2020-09-19 Tom Tromey <tom@tromey.com>
3844
3845 * stap-probe.c (get_stap_base_address_1): Remove.
3846 (get_stap_base_address): Use foreach.
3847
3848 2020-09-19 Tom Tromey <tom@tromey.com>
3849
3850 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
3851 parameters.
3852 (gdb_bfd_close_or_warn): Use foreach.
3853
3854 2020-09-19 Tom Tromey <tom@tromey.com>
3855
3856 * corelow.c (add_to_thread_list): Change parameters.
3857 (core_target_open): Use foreach.
3858
3859 2020-09-19 Tom Tromey <tom@tromey.com>
3860
3861 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
3862 existing function.
3863
3864 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3865
3866 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
3867 for arrays.
3868
3869 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3870
3871 * eval.c: Remove 'f-lang.h' include.
3872 (value_f90_subarray): Moved to f-lang.c.
3873 (eval_call): Renamed to...
3874 (evaluate_subexp_do_call): ...this, is no longer static, header
3875 comment moved into header file.
3876 (evaluate_funcall): Update call to eval_call.
3877 (skip_undetermined_arglist): Moved to f-lang.c.
3878 (fortran_value_subarray): Likewise.
3879 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3880 moved to evaluate_subexp_f.
3881 (calc_f77_array_dims): Moved to f-lang.c
3882 * expprint.c (print_subexp_funcall): New function.
3883 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3884 moved to print_subexp_f, OP_FUNCALL uses new function.
3885 (dump_subexp_body_funcall): New function.
3886 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
3887 moved to dump_subexp_f, OP_FUNCALL uses new function.
3888 * expression.h (evaluate_subexp_do_call): Declare.
3889 * f-lang.c (value_f90_subarray): Moved from eval.c.
3890 (skip_undetermined_arglist): Likewise.
3891 (calc_f77_array_dims): Likewise.
3892 (fortran_value_subarray): Likewise.
3893 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
3894 (operator_length_f): Likewise.
3895 (print_subexp_f): Likewise.
3896 (dump_subexp_body_f): Likewise.
3897 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
3898 declaration of this operation to here.
3899 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
3900 support moved to operator_length_f.
3901 * parser-defs.h (dump_subexp_body_funcall): Declare.
3902 (print_subexp_funcall): Declare.
3903 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
3904 fortran-operator.def.
3905
3906 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3907
3908 * eval.c (fortran_value_subarray): New function, content is taken
3909 from...
3910 (evaluate_subexp_standard): ...here, in two places. Now arrays
3911 and strings both call the new function.
3912 (calc_f77_array_dims): Add header comment, handle strings.
3913
3914 2020-09-18 Victor Collod <vcollod@nvidia.com>
3915
3916 PR gdb/26635
3917 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
3918 (i386_analyze_prologue): Call i386_skip_endbr.
3919
3920 2020-09-18 Tom Tromey <tromey@adacore.com>
3921
3922 * windows-nat.c (struct windows_nat_target) <wait>: Update.
3923 (windows_nat_target::wait): Update.
3924 * target/wait.h (enum target_wait_flag): New. Use
3925 DEF_ENUM_FLAGS_TYPE.
3926 * target/target.h (target_wait): Change type of options.
3927 * target.h (target_options_to_string, default_target_wait):
3928 Update.
3929 (struct target_ops) <wait>: Change type of options.
3930 * target.c (target_wait, default_target_wait, do_option): Change
3931 type of "options".
3932 (target_options_to_string): Likewise.
3933 * target-delegates.c: Rebuild.
3934 * target-debug.h (target_debug_print_target_wait_flags): Rename
3935 from target_debug_print_options.
3936 * sol-thread.c (class sol_thread_target) <wait>: Update.
3937 (sol_thread_target::wait): Update.
3938 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
3939 (rs6000_nat_target::wait): Update.
3940 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
3941 Update.
3942 (remote_target::wait_ns, remote_target::wait_as): Change type of
3943 "options".
3944 (remote_target::wait): Update.
3945 * remote-sim.c (struct gdbsim_target) <wait>: Update.
3946 (gdbsim_target::wait): Update.
3947 * record-full.c (class record_full_base_target) <wait>: Update.
3948 (record_full_wait_1): Change type of "options".
3949 (record_full_base_target::wait): Update.
3950 * record-btrace.c (class record_btrace_target) <wait>: Update.
3951 (record_btrace_target::wait): Update.
3952 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
3953 Update.
3954 (ravenscar_thread_target::wait): Update.
3955 * procfs.c (class procfs_target) <wait>: Update.
3956 (procfs_target::wait): Update.
3957 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
3958 * obsd-nat.c (obsd_nat_target::wait): Update.
3959 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
3960 (nto_procfs_target::wait): Update.
3961 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
3962 * nbsd-nat.c (nbsd_wait): Change type of "options".
3963 (nbsd_nat_target::wait): Update.
3964 * linux-thread-db.c (class thread_db_target) <wait>: Update.
3965 (thread_db_target::wait): Update.
3966 * linux-nat.h (class linux_nat_target) <wait>: Update.
3967 * linux-nat.c (linux_nat_target::wait): Update.
3968 (linux_nat_wait_1): Update.
3969 * infrun.c (do_target_wait_1, do_target_wait): Change type of
3970 "options".
3971 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
3972 * inf-ptrace.c (inf_ptrace_target::wait): Update.
3973 * go32-nat.c (struct go32_nat_target) <wait>: Update.
3974 (go32_nat_target::wait): Update.
3975 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
3976 * gnu-nat.c (gnu_nat_target::wait): Update.
3977 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
3978 * fbsd-nat.c (fbsd_nat_target::wait): Update.
3979 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
3980 * darwin-nat.c (darwin_nat_target::wait): Update.
3981 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
3982 (bsd_uthread_target::wait): Update.
3983 * aix-thread.c (class aix_thread_target) <wait>: Update.
3984 (aix_thread_target::wait): Update.
3985
3986 2020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
3987
3988 * compile/compile-object-run.c (create_copied_type_recursive): New
3989 function.
3990 (compile_object_run): Use new function.
3991
3992 2020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
3993
3994 * NEWS: Mention x86_64 Cygwin core file support.
3995
3996 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3997
3998 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
3999 (core_process_module_section): Handle NOTE_INFO_MODULE64.
4000
4001 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4002
4003 * windows-tdep.h: Add prototypes.
4004 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
4005 (i386_windows_core_pid_to_str): Move and rename ...
4006 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
4007 (windows_core_pid_to_str): ... and here.
4008 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
4009
4010 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4011 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
4012 (amd64_windows_init_abi_common): ... and register.
4013
4014 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4015
4016 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
4017 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
4018
4019 2020-09-18 Pedro Alves <pedro@palves.net>
4020
4021 PR gdb/26631
4022 * thread.c (thread_find_command): Switch inferior before calling
4023 target methods.
4024
4025 2020-09-17 Tom Tromey <tromey@adacore.com>
4026
4027 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
4028 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
4029 (tdesc_arch_data_up): New typedef.
4030 (tdesc_use_registers, tdesc_data_alloc): Update.
4031 (tdesc_data_cleanup): Don't declare.
4032 * target-descriptions.c (tdesc_data_alloc): Return a
4033 tdesc_arch_data_up.
4034 (tdesc_arch_data_deleter::operator()): Rename from
4035 tdesc_data_cleanup. Change argument type.
4036 (tdesc_use_registers): Change early_data to an rvalue reference.
4037 (tdesc_use_registers): Don't use delete.
4038 * sparc-tdep.c (sparc32_gdbarch_init): Update.
4039 * s390-tdep.c (s390_gdbarch_init): Update.
4040 * rx-tdep.c (rx_gdbarch_init): Update.
4041 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4042 * riscv-tdep.c (riscv_gdbarch_init): Update.
4043 * or1k-tdep.c (or1k_gdbarch_init): Update.
4044 * nios2-tdep.c (nios2_gdbarch_init): Update.
4045 * nds32-tdep.c (nds32_gdbarch_init): Update.
4046 * mips-tdep.c (mips_gdbarch_init): Update.
4047 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
4048 * m68k-tdep.c (m68k_gdbarch_init): Update.
4049 * i386-tdep.c (i386_gdbarch_init): Update.
4050 * arm-tdep.c (arm_gdbarch_init): Update.
4051 * arc-tdep.c (arc_tdesc_init): Update.
4052 (arc_gdbarch_init): Update.
4053 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
4054
4055 2020-09-17 Hannes Domani <ssbssa@yahoo.de>
4056
4057 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
4058 for WOW64 processes.
4059
4060 2020-09-17 Tom Tromey <tom@tromey.com>
4061
4062 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
4063
4064 2020-09-17 Tom Tromey <tom@tromey.com>
4065
4066 * value.c (preserve_values): Update.
4067 * python/py-type.c (save_objfile_types): Update.
4068 * guile/scm-type.c (save_objfile_types): Update.
4069 * gdbtypes.h (create_copied_types_hash): Return htab_up.
4070 * gdbtypes.c (create_copied_types_hash): Return htab_up.
4071 * compile/compile-object-run.c (compile_object_run): Update.
4072
4073 2020-09-17 Tom Tromey <tom@tromey.com>
4074
4075 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
4076 Remove.
4077 <m_table>: Now htab_up.
4078 * typeprint.c (typedef_hash_table::recursively_update)
4079 (typedef_hash_table::add_template_parameters)
4080 (typedef_hash_table::typedef_hash_table): Update.
4081 (typedef_hash_table::~typedef_hash_table): Remove.
4082 (typedef_hash_table::typedef_hash_table)
4083 (typedef_hash_table::find_global_typedef)
4084 (typedef_hash_table::find_typedef): Update.
4085
4086 2020-09-17 Tom Tromey <tom@tromey.com>
4087
4088 * target-descriptions.c (tdesc_use_registers): Use htab_up.
4089
4090 2020-09-17 Tom Tromey <tom@tromey.com>
4091
4092 * linespec.c (class decode_compound_collector)
4093 <~decode_compound_collector>: Remove.
4094 <m_unique_syms>: Now htab_up.
4095 (decode_compound_collector::operator ()): Update.
4096 (class symtab_collector) <~symtab_collector>: Remove.
4097 <m_symtab_table>: Now htab_up.
4098 (symtab_collector::operator ()): Update.
4099
4100 2020-09-17 Tom Tromey <tom@tromey.com>
4101
4102 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
4103 (filename_seen_cache::clear): Update.
4104 (~filename_seen_cache): Remove.
4105 (filename_seen_cache::seen): Update.
4106 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
4107 htab_up.
4108 <~filename_seen_cache>: Remove.
4109 <traverse>: Update.
4110
4111 2020-09-17 Tom Tromey <tom@tromey.com>
4112
4113 * completer.c (completion_tracker::discard_completions)
4114 (completion_tracker::~completion_tracker)
4115 (completion_tracker::maybe_add_completion)
4116 (completion_tracker::remove_completion)
4117 (completion_tracker::recompute_lowest_common_denominator)
4118 (completion_tracker::build_completion_result): Update.
4119 * completer.h (class completion_tracker) <have_completions>:
4120 Update.
4121 <m_entries_hash>: Now htab_up.
4122
4123 2020-09-17 Tom Tromey <tom@tromey.com>
4124
4125 * breakpoint.c (ambiguous_names_p): Use htab_up.
4126
4127 2020-09-17 Tom Tromey <tom@tromey.com>
4128
4129 * auto-load.c (struct auto_load_pspace_info)
4130 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
4131 <loaded_script_files, loaded_script_texts>: Change type to
4132 htab_up.
4133 (~auto_load_pspace_info) Remove.
4134 (init_loaded_scripts_info, maybe_add_script_file)
4135 (maybe_add_script_text, auto_load_info_scripts): Update.
4136
4137 2020-09-17 Tom Tromey <tromey@adacore.com>
4138
4139 * c-exp.y (name_obstack): Now static.
4140
4141 2020-09-17 Chungyi Chi <demonic@csie.io>
4142
4143 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
4144
4145 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
4146
4147 * breakpoint.h (init_catchpoint): Change int parameter to bool.
4148 (add_solib_catchpoint): Likewise.
4149 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
4150 to bool.
4151 (add_solib_catchpoint): Change int parameter/variable to bool.
4152 (catch_load_or_unload): Likewise.
4153 (init_catchpoint): Likewise.
4154 (create_fork_vfork_event_catchpoint): Likewise.
4155 (catch_fork_command_1): Likewise.
4156 (catch_exec_command_1): Likewise.
4157
4158 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
4159
4160 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
4161 Change instance_flags to m_instance_flags.
4162
4163 2020-09-16 Tom Tromey <tromey@adacore.com>
4164
4165 PR gdb/26598:
4166 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
4167
4168 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4169
4170 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
4171 PL_FLAG_EXEC.
4172 (fbsd_nat_target::insert_exec_catchpoint)
4173 (fbsd_nat_target::remove_exec_catchpoint): Always define.
4174 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
4175 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
4176
4177 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4178
4179 * configure.ac: Remove check for kinfo_getvmmap().
4180 * configure, config.in: Regenerate.
4181 * fbsd-nat.c (fbsd_read_mapping): Remove
4182 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
4183 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
4184 kinfo_get_vmmap() are always present.
4185
4186 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4187
4188 * fbsd-nat.c: Always include support for
4189 TARGET_OBJECT_SIGNAL_INFO.
4190
4191 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4192
4193 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
4194 sysctl and remove procfs fallback.
4195
4196 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4197
4198 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
4199 * fbsd-nat.h: Likewise.
4200
4201 2020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4202
4203 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
4204 argument.
4205
4206 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4207
4208 * ada-lang.c (ada_language_data): Delete.
4209 (ada_language): Remove references to ada_language_data.
4210 * c-lang.c (c_language_data): Delete.
4211 (c_language): Remove references to c_language_data.
4212 (cplus_language_data): Delete.
4213 (cplus_language): Remove references to cplus_language_data.
4214 (asm_language_data): Delete.
4215 (asm_language): Remove references to asm_language_data.
4216 (minimal_language_data): Delete.
4217 (minimal_language): Remove references to minimal_language_data.
4218 * d-lang.c (d_language_data): Delete.
4219 (d_language): Remove references to d_language_data.
4220 * f-lang.c (f_language_data): Delete.
4221 (f_language): Remove references to f_language_data.
4222 * go-lang.c (go_language_data): Delete.
4223 (go_language): Remove references to go_language_data.
4224 * language.c (unknown_language_data): Delete.
4225 (unknown_language): Remove references to unknown_language_data.
4226 (auto_language_data): Delete.
4227 (auto_language): Remove references to auto_language_data.
4228 * language.h (language_data): Delete struct.
4229 (language_defn): No longer inherit from language_data.
4230 * m2-lang.c (m2_language_data): Delete.
4231 (m2_language): Remove references to m2_language_data.
4232 * objc-lang.c (objc_language_data): Delete.
4233 (objc_language): Remove references to objc_language_data.
4234 * opencl-lang.c (opencl_language_data): Delete.
4235 (opencl_language): Remove references to opencl_language_data.
4236 * p-lang.c (pascal_language_data): Delete.
4237 (pascal_language): Remove references to pascal_language_data.
4238 * rust-lang.c (rust_language_data): Delete.
4239 (rust_language): Remove references to rust_language_data.
4240
4241 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4242
4243 * ada-lang.c (ada_language_data): Remove la_op_print_tab
4244 initializer.
4245 (ada_language::opcode_print_table): New member function.
4246 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
4247 (c_language::opcode_print_table): New member function.
4248 (cplus_language_data): Remove la_op_print_tab initializer.
4249 (cplus_language::opcode_print_table): New member function.
4250 (asm_language_data): Remove la_op_print_tab initializer.
4251 (asm_language::opcode_print_table): New member function.
4252 (minimal_language_data): Remove la_op_print_tab initializer.
4253 (minimal_language::opcode_print_table): New member function.
4254 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
4255 (d_language::opcode_print_table): New member function.
4256 * expprint.c (print_subexp_standard): Update call to
4257 opcode_print_table.
4258 (op_string): Likewise.
4259 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
4260 (f_language::opcode_print_table): New member function.
4261 * go-lang.c (go_language_data): Remove la_op_print_tab
4262 initializer.
4263 (go_language::opcode_print_table): New member function.
4264 * language.c (unknown_language_data): Remove la_op_print_tab
4265 initializer.
4266 (unknown_language::opcode_print_table): New member function.
4267 (auto_language_data): Remove la_op_print_tab initializer.
4268 (auto_language::opcode_print_table): New member function.
4269 * language.h (language_data): Remove la_op_print_tab field.
4270 (language_defn::opcode_print_table): Declare new member function.
4271 * m2-lang.c (m2_language_data): Remove la_op_print_tab
4272 initializer.
4273 (m2_language::opcode_print_table): New member function.
4274 * objc-lang.c (objc_language_data): Remove la_op_print_tab
4275 initializer.
4276 (objc_language::opcode_print_table): New member function.
4277 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
4278 initializer.
4279 (opencl_language::opcode_print_table): New member function.
4280 * p-lang.c (pascal_language_data): Remove la_op_print_tab
4281 initializer.
4282 (pascal_language::opcode_print_table): New member function.
4283 * rust-lang.c (rust_language_data): Remove la_op_print_tab
4284 initializer.
4285 (rust_language::opcode_print_table): New member function.
4286
4287 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4288
4289 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
4290 (ada_language::expression_ops): New member function.
4291 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
4292 (c_language::expression_ops): New member function.
4293 (cplus_language_data): Remove la_exp_desc initializer.
4294 (cplus_language::expression_ops): New member function.
4295 (asm_language_data): Remove la_exp_desc initializer.
4296 (asm_language::expression_ops): New member function.
4297 (minimal_language_data): Remove la_exp_desc initializer.
4298 (minimal_language::expression_ops): New member function.
4299 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
4300 (d_language::expression_ops): New member function.
4301 * eval.c (evaluate_subexp): Update call to expression_ops.
4302 * expprint.c (print_subexp): Likewise.
4303 (op_name): Likewise.
4304 (dump_subexp_body): Likewise.
4305 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
4306 (f_language::expression_ops): New member function.
4307 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
4308 (go_language::expression_ops): New member function.
4309 * language.c (language_defn::expression_ops): New function.
4310 (unknown_language_data): Remove la_exp_desc initializer.
4311 (auto_language_data): Likewise.
4312 * language.h (language_data): Remove la_exp_desc field.
4313 (language_defn::expression_ops): Declare new member function.
4314 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
4315 (m2_language::expression_ops): New member function.
4316 * objc-lang.c (objc_language_data): Remove la_exp_desc
4317 initializer.
4318 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
4319 initializer.
4320 (opencl_language::expression_ops): New member function.
4321 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
4322 * parse.c (operator_length): Update call to expression_ops.
4323 (exp_iterate): Likewise.
4324 * rust-lang.c (rust_language_data): Remove la_exp_desc
4325 initializer.
4326 (ruse_language::expression_ops): New member function.
4327
4328 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4329
4330 * ada-lang.c (ada_language_data): Remove la_varobj_ops
4331 initializer.
4332 (ada_language::varobj_ops): New member function.
4333 * c-lang.c (c_language_data): Remove la_varobj_ops
4334 initializer.
4335 (cplus_language_data): Likewise.
4336 (cplus_language::varobj_ops): New member function.
4337 (asm_language_data): Remove la_varobj_ops initializer.
4338 (minimal_language_data): Likewise.
4339 * d-lang.c (d_language_data): Likewise.
4340 * f-lang.c (f_language_data): Likewise.
4341 * go-lang.c (go_language_data): Likewise.
4342 * language.c (language_defn::varobj_ops): New function.
4343 (unknown_language_data): Remove la_varobj_ops
4344 initializer.
4345 (auto_language_data): Likewise.
4346 * language.h (language_data): Remove la_varobj_ops field.
4347 (language_defn::varobj_ops): Declare new member function.
4348 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
4349 * objc-lang.c (objc_language_data): Likewise.
4350 * opencl-lang.c (opencl_language_data): Likewise.
4351 * p-lang.c (pascal_language_data): Likewise.
4352 * rust-lang.c (rust_language_data): Likewise.
4353 * varobj.c (varobj_create): Update call to varobj_ops.
4354 * varobj.h (default_varobj_ops): Delete define.
4355
4356 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4357
4358 * ada-lang.c (ada_language_data): Remove la_macro_expansion
4359 initializer.
4360 * c-lang.c (c_language_data): Likewise.
4361 (c_language::macro_expansion): New member function.
4362 (cplus_language_data): Likewise.
4363 (cplus_language::macro_expansion): New member function.
4364 (asm_language_data): Likewise.
4365 (asm_language::macro_expansion): New member function.
4366 (minimal_language_data): Likewise.
4367 (minimal_language::macro_expansion): New member function.
4368 * d-lang.c (d_language_data): Remove la_macro_expansion
4369 initializer.
4370 * f-lang.c (f_language_data): Likewise.
4371 * go-lang.c (go_language_data): Likewise.
4372 * language.c (unknown_language_data): Likewise.
4373 (auto_language_data): Likewise.
4374 * language.h (language_data): Remove la_macro_expansion field.
4375 (language_defn::macro_expansion): New member function.
4376 * m2-lang.c (m2_language_data): Remove la_macro_expansion
4377 initializer.
4378 * objc-lang.c (objc_language_data): Likewise.
4379 (objc_language::macro_expansion): New member function.
4380 * opencl-lang.c (opencl_language_data): Likewise.
4381 (opencl_language::macro_expansion): New member function.
4382 * p-lang.c (pascal_language_data): Remove la_macro_expansion
4383 initializer.
4384 * rust-lang.c (rust_language_data): Likewise.
4385 * symtab.c (default_collect_symbol_completion_matches_break_on):
4386 Update call to macro_expansion.
4387
4388 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4389
4390 * ada-lang.c (ada_language_data): Remove la_array_ordering
4391 initializer.
4392 * c-lang.c (c_language_data): Likewise.
4393 (cplus_language_data): Likewise.
4394 (asm_language_data): Likewise.
4395 (minimal_language_data): Likewise.
4396 * d-lang.c (d_language_data): Likewise.
4397 * dwarf2/read.c (read_array_order): Update for call to
4398 array_ordering.
4399 * f-lang.c (f_language_data): Remove la_array_ordering
4400 initializer.
4401 (f_language::array_ordering): New member function.
4402 * go-lang.c (go_language_data): Remove la_array_ordering
4403 initializer.
4404 * language.c (unknown_language_data): Likewise.
4405 (auto_language_data): Likewise.
4406 * language.h (language_data): Delete la_array_ordering field.
4407 (language_defn::array_ordering): New member function.
4408 * m2-lang.c (m2_language_data): Remove la_array_ordering
4409 initializer.
4410 * objc-lang.c (objc_language_data): Likewise.
4411 * opencl-lang.c (opencl_language_data): Likewise.
4412 * p-lang.c (pascal_language_data): Likewise.
4413 * rust-lang.c (rust_language_data): Likewise.
4414
4415 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4416
4417 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
4418 initializer.
4419 * c-lang.c (c_language_data): Likewise.
4420 (cplus_language_data): Likewise.
4421 (asm_language_data): Likewise.
4422 (minimal_language_data): Likewise.
4423 * d-lang.c (d_language_data): Likewise.
4424 * f-lang.c (f_language_data): Likewise.
4425 (f_language::case_sensitivity): New member function.
4426 * go-lang.c (go_language_data): Remove la_case_sensitivity
4427 initializer.
4428 * language.c (enum case_mode): Moved here from language.h.
4429 (case_mode): Make static.
4430 (show_case_command): Update for case_sensitivity being a method.
4431 (set_case_command): Likewise.
4432 (set_range_case): Likewise.
4433 (unknown_language_data): Remove la_case_sensitivity initializer.
4434 (auto_language_data): Likewise.
4435 * language.h (case_mode): Delete, move enum declaration to
4436 language.c.
4437 (language_data): Delete la_case_sensitivity field.
4438 (language_defn::case_sensitivity): New member function.
4439 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
4440 initializer.
4441 * objc-lang.c (objc_language_data): Likewise.
4442 * opencl-lang.c (opencl_language_data): Likewise.
4443 * p-lang.c (pascal_language_data): Likewise.
4444 * rust-lang.c (rust_language_data): Likewise.
4445
4446 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4447
4448 * ada-lang.c (ada_language_data): Remove la_range_check
4449 initializer.
4450 * c-lang.c (c_language_data): Likewise.
4451 (cplus_language_data): Likewise.
4452 (asm_language_data): Likewise.
4453 (minimal_language_data): Likewise.
4454 * d-lang.c (d_language_data): Likewise.
4455 * f-lang.c (f_language_data): Likewise.
4456 (f_language::range_checking_on_by_default): New member function.
4457 * go-lang.c (go_language_data): Remove la_range_check initializer.
4458 * language.c (enum range_mode): Moved here from language.h.
4459 (range_mode): Made static.
4460 (show_range_command): Update to use
4461 range_checking_on_by_default.
4462 (set_range_command): Likewise.
4463 (set_range_case): Likewise.
4464 (unknown_language_data): Remove la_range_check initializer.
4465 (auto_language_data): Likewise.
4466 * language.h (range_mode): Delete. Enum definition moved to
4467 language.c.
4468 (language_data): Remove la_range_check field.
4469 (language_defn::range_checking_on_by_default): New member
4470 function.
4471 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
4472 (m2_language::range_checking_on_by_default): New member function.
4473 * objc-lang.c (objc_language_data): Remove la_range_check
4474 initializer.
4475 * opencl-lang.c (opencl_language_data): Likewise.
4476 * p-lang.c (pascal_language_data): Likewise.
4477 (pascal_language::range_checking_on_by_default): New member
4478 function.
4479 * rust-lang.c (rust_language_data): Remove la_range_check
4480 initializer.
4481 (rust_language::range_checking_on_by_default): New member
4482 function.
4483
4484 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4485
4486 * dwarf2/read.c (dwarf2_physname): Remove special case for
4487 language_go.
4488 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
4489 member function.
4490
4491 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4492
4493 * ada-lang.c (ada_language_data): Remove
4494 la_store_sym_names_in_linkage_form_p initializer.
4495 (ada_language::store_sym_names_in_linkage_form_p): New member
4496 function.
4497 * c-lang.c (c_language_data): Remove
4498 la_store_sym_names_in_linkage_form_p initializer.
4499 (c_language::store_sym_names_in_linkage_form_p): New member
4500 function.
4501 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
4502 initializer.
4503 (asm_language_data): Likewise.
4504 (asm_language::store_sym_names_in_linkage_form_p): New member
4505 function.
4506 (minimal_language_data): Remove
4507 la_store_sym_names_in_linkage_form_p initializer.
4508 (minimal_language::store_sym_names_in_linkage_form_p): New member
4509 function.
4510 * d-lang.c (d_language_data): Remove
4511 la_store_sym_names_in_linkage_form_p initializer.
4512 * dwarf2/read.c (dwarf2_physname): Update call to
4513 store_sym_names_in_linkage_form_p.
4514 * f-lang.c (f_language_data): Remove
4515 la_store_sym_names_in_linkage_form_p initializer.
4516 * go-lang.c (go_language_data): Remove
4517 la_store_sym_names_in_linkage_form_p initializer.
4518 * language.c (unknown_language_data): Remove
4519 la_store_sym_names_in_linkage_form_p initializer.
4520 (unknown_language::store_sym_names_in_linkage_form_p): New member
4521 function.
4522 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
4523 initializer.
4524 (auto_language::store_sym_names_in_linkage_form_p): New member
4525 function.
4526 * language.h (language_data): Remove
4527 la_store_sym_names_in_linkage_form_p member variable.
4528 (language_defn::store_sym_names_in_linkage_form_p): New member
4529 function.
4530 * m2-lang.c (m2_language_data): Remove
4531 la_store_sym_names_in_linkage_form_p initializer.
4532 * objc-lang.c (objc_language_data): Likewise.
4533 * opencl-lang.c (opencl_language_data): Likewise.
4534 * p-lang.c (pascal_language_data): Likewise.
4535 * rust-lang.c (rust_language_data): Likewise.
4536
4537 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4538
4539 * ada-lang.c (ada_language_data): Remove string_lower_bound
4540 initializer.
4541 * c-lang.c (c_language_data): Likewise.
4542 (cplus_language_data): Likewise.
4543 (asm_language_data): Likewise.
4544 (minimal_language_data): Likewise.
4545 * d-lang.c (d_language_data): Likewise.
4546 * f-lang.c (f_language_data): Likewise.
4547 * go-lang.c (go_language_data): Likewise.
4548 * language.c (unknown_language_data): Likewise.
4549 (auto_language_data): Likewise.
4550 * language.h (language_data): Remove string_lower_bound field.
4551 (language_defn::string_lower_bound): New member function.
4552 * m2-lang.c (m2_language_data): Remove string_lower_bound
4553 initializer.
4554 (m2_language::string_lower_bound): New member function.
4555 * objc-lang.c (objc_language_data): Remove string_lower_bound
4556 initializer.
4557 * opencl-lang.c (opencl_language_data): Likewise.
4558 * p-lang.c (pascal_language_data): Likewise.
4559 * rust-lang.c (rust_language_data): Likewise.
4560 * valops.c (value_cstring): Update call to string_lower_bound.
4561 (value_string): Likewise.
4562 * value.c (allocate_repeated_value): Likewise.
4563
4564 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4565
4566 * valops.c (value_repeat): Fix incorrect argument name in comment.
4567
4568 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4569
4570 * ada-lang.c (ada_language_data): Remove c_style_arrays
4571 initializer.
4572 (ada_language::c_style_arrays_p): New member fuction.
4573 * c-lang.c (c_language_data): Remove c_style_arrays
4574 initializer.
4575 (cplus_language_data): Likewise.
4576 (asm_language_data): Likewise.
4577 (minimal_language_data): Likewise.
4578 * d-lang.c (d_language_data): Likewise.
4579 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
4580 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
4581 (f_language::c_style_arrays_p): New member function.
4582 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
4583 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
4584 * language.c (unknown_language_data): Remove c_style_arrays
4585 initializer.
4586 (auto_language_data): Likewise.
4587 * language.h (language_data): Remove c_style_arrays field.
4588 (language_defn::c_style_arrays_p): New member function.
4589 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
4590 (m2_language::c_style_arrays_p): New member function.
4591 * objc-lang.c (objc_language_data): Remove c_style_arrays
4592 initializer.
4593 * opencl-lang.c (opencl_language_data): Likewise.
4594 * p-lang.c (pascal_language_data): Likewise.
4595 * rust-lang.c (rust_language_data): Likewise.
4596 * valarith.c (value_subscript): Update call to c_style_arrays_p,
4597 and update local variable to a bool.
4598 * valops.c (value_cast): Update call to c_style_arrays_p.
4599 (value_array): Likewise.
4600 * value.c (coerce_array): Likewise.
4601
4602 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4603
4604 * ada-lang.c (ada_language_data): Remove la_language initializer.
4605 * c-lang.c (c_language_data): Likewise.
4606 (cplus_language_data): Likewise.
4607 (asm_language_data): Likewise.
4608 (minimal_language_data): Likewise.
4609 * d-lang.c (d_language_data): Likewise.
4610 * f-lang.c (f_language_data): Likewise.
4611 * go-lang.c (go_language_data): Likewise.
4612 * language.c (unknown_language_data): Likewise.
4613 (auto_language_data): Likewise.
4614 * language.h (language_data): Remove la_language field.
4615 (language_defn::language_defn): Initialise la_language field.
4616 (language_defn::la_language): New member variable.
4617 * m2-lang.c (m2_language_data): Remove la_language field.
4618 * objc-lang.c (objc_language_data): Likewise.
4619 * opencl-lang.c (opencl_language_data): Likewise.
4620 * p-lang.c (pascal_language_data): Likewise.
4621 * rust-lang.c (rust_language_data): Likewise.
4622
4623 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4624
4625 * ada-lang.c (ada_extensions): Delete, moved into
4626 ada_language::filename_extensions.
4627 (ada_language_data): Remove la_filename_extensions initializer.
4628 (ada_language::filename_extensions): New member function.
4629 * c-lang.c (c_extensions): Delete, moved into
4630 c_language::filename_extensions.
4631 (c_language_data): Remove la_filename_extensions initializer.
4632 (c_language::filename_extensions): New member function.
4633 (cplus_extensions): Delete, moved into
4634 cplus_language::filename_extensions.
4635 (cplus_language_data): Remove la_filename_extensions initializer.
4636 (cplus_language::filename_extensions): New member function.
4637 (asm_extensions): Delete, moved into
4638 asm_language::filename_extensions.
4639 (asm_language_data): Remove la_filename_extensions initializer.
4640 (asm_language::filename_extensions): New member function.
4641 (minimal_language_data): Remove la_filename_extensions
4642 initializer.
4643 * d-lang.c (d_extensions): Delete, moved into
4644 d_language::filename_extensions.
4645 (d_language_data): Remove la_filename_extensions initializer.
4646 (d_language::filename_extensions): New member function.
4647 * f-lang.c (f_extensions): Delete, moved into
4648 f_language::filename_extensions.
4649 (f_language_data): Remove la_filename_extensions initializer.
4650 (f_language::filename_extensions): New member function.
4651 * go-lang.c (go_language_data): Remove la_filename_extensions
4652 initializer.
4653 * language.c (add_set_language_command): Update now that
4654 filename_extensions returns a vector.
4655 (unknown_language_data): Remove la_filename_extensions
4656 initializer.
4657 (auto_language_data): Likewise.
4658 * language.h (language_data): Remove la_filename_extensions field.
4659 (language_defn::filename_extensions): New member function.
4660 * m2-lang.c (m2_language_data): Remove la_filename_extensions
4661 initializer.
4662 * objc-lang.c (objc_extensions): Delete, moved into
4663 objc_language::filename_extensions.
4664 (objc_language_data): Remove la_filename_extensions initializer.
4665 (objc_language::filename_extensions): New member function.
4666 * opencl-lang.c (opencl_language_data): Remove
4667 la_filename_extensions initializer.
4668 * p-lang.c (pascal_extensions): Delete, moved into
4669 pascal_language::filename_extensions.
4670 (pascal_language_data): Remove la_filename_extensions initializer.
4671 (pascal_language::filename_extensions): New member function.
4672 * rust-lang.c (rust_extensions): Delete, moved into
4673 rust_language::filename_extensions.
4674 (rust_language_data): Remove la_filename_extensions initializer.
4675 (rust_language::filename_extensions): New member function.
4676 * symfile.c (add_filename_language): Add new assert.
4677
4678 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4679
4680 * ada-lang.c (ada_language_data): Remove la_name and
4681 la_natural_name initializers.
4682 (ada_language::name): New member function.
4683 (ada_language::natural_name): New member function.
4684 * c-lang.c (c_language_data): Remove la_name and
4685 la_natural_name initializers.
4686 (c_language::name): New member function.
4687 (c_language::natural_name): New member function.
4688 (cplus_language_data): Remove la_name and
4689 la_natural_name initializers.
4690 (cplus_language::name): New member function.
4691 (cplus_language::natural_name): New member function.
4692 (asm_language_data): Remove la_name and
4693 la_natural_name initializers.
4694 (asm_language::name): New member function.
4695 (asm_language::natural_name): New member function.
4696 (minimal_language_data): Remove la_name and
4697 la_natural_name initializers.
4698 (minimal_language::name): New member function.
4699 (minimal_language::natural_name): New member function.
4700 * compile/compile.c (compile_to_object): Update call to
4701 lanugage_defn::name.
4702 * d-lang.c (d_language_data): Remove la_name and
4703 la_natural_name initializers.
4704 (d_language::name): New member function.
4705 (d_language::natural_name): New member function.
4706 * expprint.c (print_subexp_standard): Update call to
4707 language_defn::name.
4708 (dump_raw_expression): Likewise
4709 (dump_prefix_expression): Likewise.
4710 * f-lang.c (f_language_data): Remove la_name and
4711 la_natural_name initializers.
4712 (f_language::name): New member function.
4713 (f_language::natural_name): New member function.
4714 * go-lang.c (go_language_data): Remove la_name and
4715 la_natural_name initializers.
4716 (go_language::name): New member function.
4717 (go_language::natural_name): New member function.
4718 * language.c (show_language_command): Update call to
4719 language_defn::name.
4720 (set_language_command): Likewise.
4721 (language_enum): Likewise.
4722 (language_str): Likewise.
4723 (add_set_language_command): Likewise, use
4724 language_defn::natural_name in the doc string.
4725 (unknown_language_data): Remove la_name and
4726 la_natural_name initializers.
4727 (unknown_language::name): New member function.
4728 (unknown_language::natural_name): New member function.
4729 (auto_language_data): Remove la_name and
4730 la_natural_name initializers.
4731 (auto_language::name): New member function.
4732 (auto_language::natural_name): New member function.
4733 (language_lookup_primitive_type_as_symbol): Update call to
4734 language_defn::name.
4735 * language.h (language_data): Remove la_name and la_natural_name
4736 member variables.
4737 (language_defn::name): New member function.
4738 (language_defn::natural_name): New member function.
4739 * m2-lang.c (m2_language_data): Remove la_name and
4740 la_natural_name initializers.
4741 (m2_language::name): New member function.
4742 (m2_language::natural_name): New member function.
4743 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
4744 language_defn::natural_name.
4745 * objc-lang.c (objc_language_data): Remove la_name and
4746 la_natural_name initializers.
4747 (objc_language::name): New member function.
4748 (objc_language::natural_name): New member function.
4749 * opencl-lang.c (opencl_language_data): Remove la_name and
4750 la_natural_name initializers.
4751 (opencl_language::name): New member function.
4752 (opencl_language::natural_name): New member function.
4753 * p-lang.c (pascal_language_data): Remove la_name and
4754 la_natural_name initializers.
4755 (pascal_language::name): New member function.
4756 (pascal_language::natural_name): New member function.
4757 * rust-lang.c (rust_language_data): Remove la_name and
4758 la_natural_name initializers.
4759 (rust_language::name): New member function.
4760 (rust_language::natural_name): New member function.
4761 * symtab.c (lookup_language_this): Update call to
4762 language_defn::name.
4763
4764 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4765
4766 * ada-lang.c (ada_language_data): Remove la_name_of_this
4767 initializer.
4768 * ax-gdb.c (gen_expr): Update call to name_of_this.
4769 * c-exp.y (classify_name): Likewise.
4770 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
4771 (cplus_language_data): Likewise.
4772 (cplus_language::name_of_this): New member function.
4773 (asm_language_data): Remove la_name_of_this initializer.
4774 (minimal_language_data): Likewise.
4775 * d-lang.c (d_language_data): Likewise.
4776 (d_language::name_of_this): New member function.
4777 * expprint.c (print_subexp_standard): Update call to name_of_this.
4778 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
4779 * go-lang.c (go_language_data): Likewise.
4780 * language.c (unknown_language_data): Likewise.
4781 (unknown_language::name_of_this): New member function.
4782 (auto_language_data): Remove la_name_of_this initializer.
4783 (auto_language::name_of_this): New member function.
4784 * language.h (language_data): Delete la_name_of_this member
4785 variable.
4786 (language_defn::name_of_this): New member function.
4787 * m2-lang.c (m2_language_data): Remove la_name_of_this
4788 initializer.
4789 * objc-lang.c (objc_language_data): Likewise.
4790 (objc_language::name_of_this): New member function.
4791 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
4792 initializer.
4793 * p-lang.c (pascal_language_data): Likewise.
4794 (pascal_language::name_of_this): New member function.
4795 * rust-lang.c (rust_language_data): Remove la_name_of_this
4796 initializer.
4797 * symtab.c (lookup_language_this): Update call to name_of_this.
4798 (lookup_symbol_aux): Likewise.
4799 * valops.c (value_of_this): Likewise.
4800
4801 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4802
4803 * ada-lang.c (ada_language_data): Remove
4804 la_struct_too_deep_ellipsis initializer.
4805 (ada_language::struct_too_deep_ellipsis): New member function.
4806 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
4807 initializer.
4808 (cplus_language_data): Likewise.
4809 (asm_language_data): Likewise.
4810 (minimal_language_data): Likewise.
4811 * cp-valprint.c (cp_print_value): Update call to
4812 struct_too_deep_ellipsis.
4813 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
4814 initializer.
4815 * f-lang.c (f_language_data): Likewise.
4816 (f_language::struct_too_deep_ellipsis): New member function.
4817 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
4818 initializer.
4819 * language.c (unknown_language_data): Likewise.
4820 (auto_language_data): Likewise.
4821 * language.h (language_data): Delete la_struct_too_deep_ellipsis
4822 member variable.
4823 (language_defn::struct_too_deep_ellipsis): New member function.
4824 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
4825 initializer.Q
4826 * objc-lang.c (objc_language_data): Likewise.
4827 * opencl-lang.c (opencl_language_data): Likewise.
4828 * p-lang.c (pascal_language_data): Likewise.
4829 * rust-lang.c (rust_language_data): Likewise.
4830 * valprint.c (val_print_check_max_depth): Update call to
4831 struct_too_deep_ellipsis.
4832
4833 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
4834
4835 * MAINTAINERS (Write After Approval): Add myself.
4836
4837 2020-09-15 Tom Tromey <tom@tromey.com>
4838
4839 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
4840 Remove.
4841
4842 2020-09-15 Tom Tromey <tom@tromey.com>
4843
4844 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
4845 and TYPE_CODE_METHODPTR cases.
4846 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
4847 (c_value_print_inner): Update.
4848 * valprint.c (generic_value_print_memberptr): New function, from
4849 c_value_print_memberptr.
4850 (generic_value_print): Use it. Call cplus_print_method_ptr.
4851
4852 2020-09-15 Tom Tromey <tromey@adacore.com>
4853
4854 * python/python-internal.h (PyInt_FromLong): Remove define.
4855 * python/py-value.c (convert_value_from_python): Use
4856 gdb_py_object_from_longest.
4857 * python/py-type.c (typy_get_code): Use
4858 gdb_py_object_from_longest.
4859 * python/py-symtab.c (salpy_get_line): Use
4860 gdb_py_object_from_longest.
4861 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
4862 gdb_py_object_from_longest.
4863 * python/py-record.c (recpy_gap_reason_code): Use
4864 gdb_py_object_from_longest.
4865 * python/py-record-btrace.c (recpy_bt_insn_size)
4866 (recpy_bt_func_level, btpy_list_count): Use
4867 gdb_py_object_from_longest.
4868 * python/py-infthread.c (gdbpy_create_ptid_object): Use
4869 gdb_py_object_from_longest. Fix error handling.
4870 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
4871 gdb_py_object_from_longest.
4872 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
4873 gdb_py_object_from_longest.
4874 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
4875 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
4876 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
4877
4878 2020-09-15 Tom Tromey <tromey@adacore.com>
4879
4880 * python/python.c (gdbpy_parameter_value): Use
4881 gdb_py_object_from_ulongest.
4882
4883 2020-09-15 Tom Tromey <tromey@adacore.com>
4884
4885 * python/py-infevents.c (create_register_changed_event_object):
4886 Use gdb_py_object_from_longest.
4887 * python/py-exitedevent.c (create_exited_event_object): Use
4888 gdb_py_object_from_longest.
4889
4890 2020-09-15 Tom Tromey <tromey@adacore.com>
4891
4892 * python/python.c (gdbpy_parameter_value): Use
4893 gdb_py_object_from_longest.
4894 * python/py-type.c (convert_field, typy_range): Use
4895 gdb_py_object_from_longest.
4896 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
4897 gdb_py_object_from_longest.
4898 * python/py-lazy-string.c (stpy_get_length): Use
4899 gdb_py_object_from_longest.
4900 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
4901 gdb_py_object_from_longest.
4902 * python/py-infevents.c (create_memory_changed_event_object): Use
4903 gdb_py_object_from_longest.
4904 * python/py-inferior.c (infpy_get_num): Use
4905 gdb_py_object_from_longest.
4906 (infpy_get_pid): Likewise.
4907
4908 2020-09-15 Tom Tromey <tromey@adacore.com>
4909
4910 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
4911 defines.
4912 * python/py-value.c (valpy_long): Use
4913 gdb_py_object_from_ulongest.
4914 * python/py-symtab.c (salpy_get_pc): Use
4915 gdb_py_object_from_ulongest.
4916 (salpy_get_last): Likewise.
4917 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
4918 gdb_py_object_from_ulongest.
4919 * python/py-lazy-string.c (stpy_get_address): Use
4920 gdb_py_object_from_ulongest.
4921 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
4922 * python/py-arch.c (archpy_disassemble): Use
4923 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
4924 error handling.
4925
4926 2020-09-15 Tom Tromey <tromey@adacore.com>
4927
4928 * python/python-internal.h (gdb_py_long_from_longest): Remove
4929 defines.
4930 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
4931 * python/py-type.c (convert_field, typy_get_sizeof): Use
4932 gdb_py_object_from_longest.
4933 * python/py-record-btrace.c (btpy_list_index): Use
4934 gdb_py_object_from_longest.
4935
4936 2020-09-15 Tom Tromey <tromey@adacore.com>
4937
4938 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
4939 * python/py-record.c (recpy_element_number): Use
4940 gdb_py_object_from_longest.
4941 (recpy_gap_number): Likewise.
4942
4943 2020-09-15 Tom Tromey <tromey@adacore.com>
4944
4945 * top.c (ui::ui): Update.
4946 (highest_ui_num): Remove.
4947 * top.h (struct ui) <num>: Remove.
4948
4949 2020-09-15 Tom Tromey <tromey@adacore.com>
4950
4951 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
4952 * ui-style.c (ansi_regex_text): Now array.
4953 * rust-exp.y (number_regex_text): Now array.
4954 * linespec.c (linespec_quote_characters): Now array.
4955 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
4956 Now arrays.
4957
4958 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4959
4960 * debuginfod-support.c (debuginfod_client_deleter): New.
4961 (debuginfod_client_up): New.
4962 (debuginfod_init): Return debuginfod_client_up.
4963 (debuginfod_source_query): Adjust.
4964 (debuginfod_debuginfo_query): Adjust.
4965
4966 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4967
4968 * debuginfod-support.c (debuginfod_source_query): Use
4969 make_unique_xstrdup.
4970
4971 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4972
4973 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
4974 with `type::instance_flags`.
4975
4976 2020-09-14 Michael Mullin <masmullin@gmail.com>
4977
4978 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
4979 Remove baton parameter.
4980
4981 2020-09-14 Pedro Alves <pedro@palves.net>
4982
4983 * Makefile.in (SELFTESTS_SRCS): Add
4984 unittests/enum-flags-selftests.c.
4985 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
4986 btrace_function_flags instead of enum btrace_function_flag.
4987 * compile/compile-c-types.c (convert_qualified): Use
4988 enum_flags::raw.
4989 * compile/compile-cplus-symbols.c (convert_one_symbol)
4990 (convert_symbol_bmsym):
4991 * compile/compile-cplus-types.c (compile_cplus_convert_method)
4992 (compile_cplus_convert_struct_or_union_methods)
4993 (compile_cplus_instance::convert_qualified_base):
4994 * go-exp.y (parse_string_or_char): Add cast to int.
4995 * unittests/enum-flags-selftests.c: New file.
4996 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
4997 type to btrace_thread_flags from btrace_thread_flag.
4998 (record_btrace_cancel_resume, record_btrace_step_thread): Change
4999 local's type to btrace_thread_flags from btrace_thread_flag. Add
5000 cast in DEBUG call.
5001
5002 2020-09-14 Pedro Alves <pedro@palves.net>
5003
5004 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
5005 * gdbtypes.c (address_space_name_to_int): Rename to ...
5006 (address_space_name_to_type_instance_flags): ... this.
5007 (address_space_int_to_name): Rename to ...
5008 (address_space_type_instance_flags_to_name): ... this.
5009 * gdbtypes.h (address_space_name_to_int): Rename to ...
5010 (address_space_name_to_type_instance_flags): ... this.
5011 (address_space_int_to_name): Rename to ...
5012 (address_space_type_instance_flags_to_name): ... this.
5013 * type-stack.c (type_stack::insert): Adjust to rename.
5014 * type-stack.h (type_stack::insert): Likewise.
5015
5016 2020-09-14 Pedro Alves <pedro@palves.net>
5017 Andrew Burgess <andrew.burgess@embecosm.com>
5018
5019 * avr-tdep.c (avr_address_class_type_flags): Return
5020 type_instance_flags.
5021 (avr_address_class_type_flags_to_name): Take a
5022 type_instance_flags.
5023 (avr_address_class_name_to_type_flags): Return bool and take a
5024 type_instance_flags.
5025 * d-lang.c (build_d_types): Use type::set_instance_flags.
5026 * ft32-tdep.c (ft32_address_class_type_flags): Return
5027 type_instance_flags.
5028 (ft32_address_class_type_flags_to_name): Take a
5029 type_instance_flags.
5030 (ft32_address_class_name_to_type_flags): Return bool and take a
5031 type_instance_flags.
5032 (ft32_gdbarch_init): Use type::set_instance_flags.
5033 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
5034 * gdbarch.h, gdbarch.c: Regenerate.
5035 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
5036 (address_class_name_to_type_flags): Use type_instance_flags and
5037 bool.
5038 * gdbtypes.c (address_space_name_to_int)
5039 (address_space_int_to_name, make_qualified_type): Use
5040 type_instance_flags.
5041 (make_qualified_type): Use type_instance_flags and
5042 type::set_instance_flags.
5043 (make_type_with_address_space, make_cv_type, make_vector_type)
5044 (check_typedef): Use type_instance_flags.
5045 (recursive_dump_type): Cast type_instance_flags to unsigned for
5046 printing.
5047 (copy_type_recursive): Use type::set_instance_flags.
5048 (gdbtypes_post_init): Use type::set_instance_flags.
5049 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
5050 <m_instance_flags>: ... this.
5051 <instance_flags, set_instance_flags>: New methods.
5052 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
5053 (SET_TYPE_INSTANCE_FLAGS): New.
5054 (address_space_name_to_int, address_space_int_to_name)
5055 (make_type_with_address_space): Pass flags using
5056 type_instance_flags instead of int.
5057 * stabsread.c (cleanup_undefined_types_noname): Use
5058 type::set_instance_flags.
5059 * s390-tdep.c (s390_address_class_type_flags): Return
5060 type_instance_flags.
5061 (s390_address_class_type_flags_to_name): Take a
5062 type_instance_flags.
5063 (s390_address_class_name_to_type_flags): Return bool and take a
5064 type_instance_flags.
5065 * type-stack.c (type_stack::follow_types): Use
5066 type_instance_flags.
5067 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
5068
5069 2020-09-14 Tom Tromey <tromey@adacore.com>
5070
5071 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
5072 * x86-tdep.c (x86_is_thunk_register_name)
5073 (x86_in_indirect_branch_thunk): Update.
5074 * sparc64-tdep.c (sparc64_fpu_register_names)
5075 (sparc64_cp0_register_names, sparc64_register_names)
5076 (sparc64_pseudo_register_names): Now const.
5077 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
5078 cp0_registers_num>: Now const.
5079 * sparc-tdep.c (sparc_core_register_names)
5080 (sparc32_fpu_register_names, sparc32_cp0_register_names)
5081 (sparc32_pseudo_register_names): Now const.
5082 (validate_tdesc_registers): Update.
5083 * rust-lang.c (rust_extensions): Now const.
5084 * p-lang.c (p_extensions): Now const.
5085 * objc-lang.c (objc_extensions): Now const.
5086 * nto-tdep.c (nto_thread_state_str): Now const.
5087 * moxie-tdep.c (moxie_register_names): Now const.
5088 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
5089 Now const.
5090 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
5091 (mips_linux_reg_names): Now const.
5092 (mips_gdbarch_init): Update.
5093 * microblaze-tdep.c (microblaze_register_names): Now const.
5094 * m68k-tdep.c (m68k_register_names): Now const.
5095 * m32r-tdep.c (m32r_register_names): Now const.
5096 * ia64-tdep.c (ia64_register_names): Now const.
5097 * i386-tdep.h (struct gdbarch_tdep) <register_names,
5098 ymmh_register_names, ymm16h_regnum, mpx_register_names,
5099 k_register_names, zmmh_register_names, xmm_avx512_register_names,
5100 ymm_avx512_register_names, pkeys_register_names>: Now const.
5101 * i386-tdep.c (i386_register_names, i386_zmm_names)
5102 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
5103 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
5104 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
5105 * f-lang.c (f_extensions): Now const.
5106 * d-lang.c (d_extensions): Now const.
5107 * csky-tdep.c (csky_register_names): Now const.
5108 * charset.c (default_charset_names, charset_enum): Now const.
5109 (_initialize_charset): Update.
5110 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
5111 const.
5112 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
5113 (bsd_uthread_solib_loaded): Update.
5114 (bsd_uthread_state): Now const.
5115 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
5116 (amd64_ymm_avx512_names, amd64_ymmh_names)
5117 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
5118 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
5119 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
5120 (amd64_dword_names): Now const.
5121 * agent.c (can_use_agent_enum): Now const.
5122 * ada-tasks.c (task_states, long_task_states): Now const.
5123 * ada-lang.c (known_runtime_file_name_patterns)
5124 (known_auxiliary_function_name_patterns, attribute_names)
5125 (standard_exc, ada_extensions): Now const.
5126
5127 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5128
5129 * bcache.h (struct bcache) <bcache>: Remove constructor.
5130 <m_hash_function, m_compare_function>: Remove.
5131 <~bcache>: Make virtual.
5132 <compare>: Remove static method, introduce virtual method.
5133 <default_hash>: Remove.
5134 <hash>: New virtual method.
5135 * bcache.c (bcache::expand_hash_table): Update.
5136 (bcache::insert): Update.
5137 (bcache::hash): New.
5138 (bcache::compare): Update comment and parameter names.
5139 * gdbtypes.c (types_deeply_equal): Update.
5140 * psymtab.h (struct psymbol_bcache): New struct.
5141 (class psymtab_storage) <psymtab_storage>: Make default.
5142 <psymbol_cache>: Change type to psymbol_bcache.
5143 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
5144 (psymbol_hash): Change to...
5145 (psymbol_bcache::hash): ... this.
5146 (psymbol_compare): Change to...
5147 (psymbol_bcache::compare): ... this.
5148
5149 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5150
5151 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
5152 checking for initial lwp.
5153
5154 2020-09-14 Tom Tromey <tromey@adacore.com>
5155
5156 * m68k-tdep.c (m68k_extract_return_value): Use
5157 pointer_result_regnum.
5158 (m68k_store_return_value): Likewise.
5159 (m68k_reg_struct_return_p): Handle vectors and arrays.
5160 (m68k_return_value): Handle arrays.
5161 (m68k_svr4_return_value): Fix single-element aggregate handling.
5162 Handle long double. Adjust for embedded ABI.
5163 (m68k_svr4_init_abi): Set pointer_result_regnum.
5164 (m68k_embedded_init_abi): New function.
5165 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
5166 (m68k_osabi_sniffer): New function.
5167 (_initialize_m68k_tdep): Register osabi sniffer.
5168 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
5169 member.
5170
5171 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5172
5173 * xml-support.c (xml_fetch_content_from_file): Replace xfree
5174 with gdb::unique_xmalloc_ptr<char>.
5175
5176 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5177
5178 * xml-support.h (xml_fetch_another): Change type to be a
5179 function_view.
5180 (xml_process_xincludes): Remove baton parameter.
5181 (xml_fetch_content_from_file): Change baton parameter to
5182 dirname.
5183 * xml-support.c (struct xinclude_parsing_data)
5184 <xinclude_parsing_data>: Remove baton parameter.
5185 <fetcher_baton>: Remove.
5186 (xinclude_start_include): Adjust.
5187 (xml_process_xincludes): Adjust.
5188 (xml_fetch_content_from_file): Replace baton parameter with
5189 dirname.
5190 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
5191 (xml_init_syscalls_info): Use a lambda.
5192 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
5193 (file_read_description_xml): Use a lambda.
5194 (fetch_available_features_from_target): Change baton parameter
5195 to target_ops.
5196 (target_read_description_xml): Use a lambda.
5197 (target_fetch_description_xml): Use a lambda.
5198 (string_read_description_xml): Update.
5199
5200 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5201
5202 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
5203 uses with type::endianity_is_not_default.
5204
5205 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5206
5207 * gdbtypes.h (struct type) <endianity_is_not_default,
5208 set_endianity_is_not_default>: New methods.
5209 (TYPE_ENDIANITY_NOT_DEFAULT): Use
5210 type::endianity_is_not_default, change all write call sites to
5211 use type::set_endianity_is_not_default.
5212
5213 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5214
5215 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
5216 uses with type::is_fixed_instance.
5217
5218 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5219
5220 * gdbtypes.h (struct type) <is_fixed_instance,
5221 set_is_fixed_instance>: New methods.
5222 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
5223 write call sites to use type::set_is_fixed_instance.
5224
5225 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5226
5227 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
5228 uses with type::is_gnu_ifunc.
5229
5230 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5231
5232 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
5233 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
5234 use type::set_is_gnu_ifunc.
5235
5236 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5237
5238 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
5239 uses with type::stub_is_supported.
5240
5241 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5242
5243 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
5244 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
5245 use type::set_stub_is_supported.
5246
5247 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5248
5249 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
5250 uses with type::is_vector.
5251
5252 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5253
5254 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
5255 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
5256 use type::set_is_vector.
5257
5258 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5259
5260 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
5261 uses with type::has_varargs.
5262
5263 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5264
5265 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
5266 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
5267 use type::set_has_varargs.
5268
5269 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5270
5271 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
5272 uses with type::is_prototyped.
5273
5274 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5275
5276 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
5277 New methods.
5278 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
5279 call sites to use type::set_is_prototyped.
5280
5281 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5282
5283 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
5284 uses with type::target_is_stub.
5285
5286 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5287
5288 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
5289 New methods.
5290 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
5291 sites to use type::set_target_is_stub.
5292
5293 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5294
5295 * gdbtypes.h (TYPE_STUB): Remove, replace all
5296 uses with type::is_stub.
5297
5298 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5299
5300 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
5301 (TYPE_STUB): Use type::is_stub, change all write call sites to
5302 use type::set_is_stub.
5303
5304 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5305
5306 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
5307 type::has_no_signedness.
5308
5309 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5310
5311 * gdbtypes.h (struct type) <has_no_signedness,
5312 set_has_no_signedness>: New methods.
5313 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
5314 call sites to use type::set_has_no_signedness.
5315
5316 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5317
5318 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
5319 type::is_unsigned.
5320
5321 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5322
5323 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
5324 methods.
5325 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
5326 sites to use type::set_is_unsigned.
5327
5328 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
5329 Adam Renquinha <arenquinha@cimeq.qc.ca>
5330
5331 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
5332 pointer and stack frame offset when unwinding.
5333
5334 2020-09-13 Pedro Alves <pedro@palves.net>
5335
5336 * NEWS: Document "-break-insert --qualified".
5337 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
5338
5339 2020-09-13 Pedro Alves <pedro@palves.net>
5340
5341 * linespec.c (classify_mtype, compare_msyms): Delete.
5342 (search_minsyms_for_name): Remove classification logic. Instead
5343 filter out trampoline symbols if we also found an external
5344 function of the same name.
5345
5346 2020-09-13 Joel Brobecker <brobecker@adacore.com>
5347
5348 * NEWS: Create a new section for the next release branch.
5349 Rename the section of the current branch, now that it has
5350 been cut.
5351
5352 2020-09-13 Joel Brobecker <brobecker@adacore.com>
5353
5354 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
5355 * version.in: Bump version to 11.0.50.DATE-git.
5356
5357 2020-09-12 Joel Brobecker <brobecker@adacore.com>
5358
5359 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
5360
5361 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
5362 Felix Willgerodt <Felix.Willgerodt@intel.com>
5363
5364 * gdbarch.sh: Added bfloat16 type.
5365 * gdbarch.c: Regenerated.
5366 * gdbarch.h: Regenerated.
5367 * gdbtypes.c (floatformats_bfloat16): New struct.
5368 (gdbtypes_post_init): Add builtin_bfloat16.
5369 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
5370 (floatformats_bfloat16): New struct.
5371 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
5372 (i386_ymm_type): Add field "v16_bfloat16"
5373 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
5374 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
5375 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
5376 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
5377 * features/i386/64bit-avx512.xml: Add bfloat16 type.
5378 * features/i386/64bit-avx512.c: Regenerated.
5379 * features/i386/64bit-sse.xml: Add bfloat16 type.
5380 * features/i386/64bit-sse.c: Regenerated.
5381
5382 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
5383
5384 * i386-tdep.c (i386_zmm_type): Fix field names.
5385 (i386_ymm_type): Fix field names.
5386
5387 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5388
5389 * breakpoint.c: Fix typo in the help message of the
5390 "set breakpoint condition-evaluation" command.
5391
5392 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5393
5394 * nbsd-nat.c: Include "nat/netbsd-nat.h".
5395 * (nbsd_nat_target::pid_to_exec_file)
5396 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
5397 (nbsd_nat_target::post_startup_inferior)
5398 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
5399 (nbsd_add_threads): Switch local code to common gdb/nat functions.
5400 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
5401 * (nbsd_thread_lister): Remove.
5402
5403 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5404
5405 * fork-inferior.c (startup_inferior): Avoid double free.
5406
5407 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5408
5409 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
5410 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
5411
5412 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5413
5414 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
5415 * netbsd-nat.c: Include <sys/ptrace.h>.
5416 * (netbsd_nat::enable_proc_events): Add.
5417
5418 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5419
5420 * netbsd-nat.h: Include "gdbsupport/function-view.h".
5421 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
5422 (netbsd_nat::for_each_thread): Add.
5423 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
5424 "gdbsupport/common-debug.h".
5425 * (netbsd_nat::netbsd_thread_lister)
5426 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
5427 (netbsd_nat::for_each_thread): Add.
5428
5429 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5430
5431 * netbsd-nat.h: Include <unistd.h>.
5432 * (netbsd_nat::pid_to_exec_file): Add.
5433 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
5434 * (netbsd_nat::pid_to_exec_file) Add.
5435
5436 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5437
5438 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
5439
5440 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5441
5442 * netbsd-nat.h: New file.
5443 * netbsd-nat.c: Likewise.
5444
5445 2020-09-09 Tom Tromey <tromey@adacore.com>
5446
5447 * ada-lang.c (remove_extra_symbols): Do not increment when
5448 removing an element
5449
5450 2020-09-08 Tom Tromey <tromey@adacore.com>
5451
5452 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
5453
5454 2020-09-08 Tom Tromey <tromey@adacore.com>
5455
5456 PR win32/25302:
5457 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
5458 (gdb_bfd_init_data): New function.
5459 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
5460
5461 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5462
5463 * infrun.c (fetch_inferior_event): Use
5464 `switch_to_target_no_thread` to switch the target.
5465
5466 2020-09-06 Tom Tromey <tom@tromey.com>
5467
5468 * symfile.h (dwarf2_free_objfile): Don't declare.
5469
5470 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5471
5472 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
5473 to match 16 byte real/complex type generated by Flang compiler.
5474
5475 2020-09-03 Tom de Vries <tdevries@suse.de>
5476
5477 PR breakpoint/26546
5478 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
5479 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
5480
5481 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
5482
5483 * maint.c (index_digits): New function.
5484 (struct maint_print_section_data): Remove.
5485 (print_bfd_section_info): Remove print_data parameter, add arg
5486 and index_digits.
5487 (print_objfile_section_info): Likewise.
5488 (print_bfd_section_info_maybe_relocated): Likewise (plus
5489 objfile).
5490 (maintenance_info_sections): Adjust calls.
5491
5492 2020-09-02 Tom Tromey <tromey@adacore.com>
5493
5494 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
5495 for null pointers.
5496 (ada_varobj_adjust_for_child_access): Special-case null pointers.
5497
5498 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
5499
5500 * bcache.h (struct bcache) <insert>: Change type of `added` to
5501 pointer to bool.
5502 * bcache.c (bcache::insert): Likewise.
5503 * gdbtypes.c (check_types_worklist): Adjust.
5504 * psymtab.c (add_psymbol_to_bcache): Adjust.
5505
5506 2020-08-31 Kevin Buettner <kevinb@redhat.com>
5507
5508 * corelow.c (unordered_set): Include.
5509 (class core_target): Add field 'm_core_unavailable_mappings'.
5510 (core_target::build_file_mappings): Print only one warning
5511 per inaccessible file. Add unavailable/broken mappings
5512 to m_core_unavailable_mappings.
5513 (core_target::xfer_partial): Call...
5514 (core_target::xfer_memory_via_mappings): New method.
5515
5516 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
5517
5518 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
5519 type to bool.
5520
5521 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
5522
5523 * dwarf2/read.c (struct field_info): Fix indentation.
5524
5525 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5526
5527 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
5528 ordering in comment.
5529 * frame.c (frame_id_eq): Fix indentation.
5530
5531 2020-08-31 Scott Linder <scott@scottlinder.com>
5532 Simon Marchi <simon.marchi@efficios.com>
5533
5534 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
5535 inline frame ids in outer frame.
5536
5537 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5538
5539 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
5540 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
5541 (outer_frame_id): Use FID_STACK_OUTER instead of
5542 FID_STACK_INVALID.
5543 (frame_id_p): Don't check for outer_frame_id.
5544
5545 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5546
5547 * frame-unwind.c (frame_unwind_got_optimized): Don't set
5548 regnum/frame in value. Call allocate_value_lazy.
5549 * frame.c (frame_unwind_register_value): Use
5550 val_print_not_saved.
5551
5552 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5553
5554 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
5555
5556 2020-08-29 Pedro Alves <pedro@palves.net>
5557
5558 * progspace.c (print_program_space): Use all_inferiors. Switch to
5559 the inferior before calling target_pid_to_str.
5560
5561 2020-08-28 Tom Tromey <tom@tromey.com>
5562
5563 * xcoffread.c (xcoff_end_psymtab): Update comment.
5564 * dbxread.c (dbx_end_psymtab): Update comment.
5565
5566 2020-08-28 Tom de Vries <tdevries@suse.de>
5567
5568 PR breakpoint/26544
5569 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
5570 event_location.
5571 (create_breakpoint): Same.
5572 (base_breakpoint_decode_location): Same.
5573 (bkpt_create_sals_from_location): Same.
5574 (bkpt_decode_location): Same.
5575 (bkpt_probe_create_sals_from_location): Same.
5576 (bkpt_probe_decode_location): Same.
5577 (tracepoint_create_sals_from_location): Same.
5578 (tracepoint_decode_location): Same.
5579 (tracepoint_probe_decode_location): Same.
5580 (strace_marker_create_sals_from_location): Same.
5581 (strace_marker_decode_location): Same.
5582 (create_sals_from_location_default): Same.
5583 (decode_location_default): Same.
5584 * breakpoint.h (struct breakpoint_ops): Same.
5585 (create_breakpoint): Same.
5586 * linespec.h (decode_line_full): Same.
5587 * linespec.c (decode_line_full): Same. Throw error if
5588 result.size () == 0.
5589
5590 2020-08-27 Pedro Alves <pedro@palves.net>
5591
5592 PR gdb/26524
5593 * breakpoint.c (until_break_fsm) <location_breakpoint,
5594 caller_breakpoint>: Delete fields.
5595 <breakpoints>: New field.
5596 <until_break_fsm>: Adjust to save a breakpoint vector instead of
5597 two individual breakpoints.
5598 (until_break_fsm::should_stop): Loop over breakpoints in the
5599 breakpoint vector.
5600 (until_break_fsm::clean_up): Adjust to clear the breakpoints
5601 vector.
5602 (until_break_command): Handle location expanding into multiple
5603 sals.
5604
5605 2020-08-27 Pedro Alves <pedro@palves.net>
5606
5607 PR gdb/26523
5608 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
5609 bp_until breakpoints user-specified locations. Update intro
5610 comment.
5611
5612 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
5613
5614 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
5615 gdb_bfd_sections): New.
5616 * maint.c (print_bfd_section_info): Change param type to
5617 maint_print_section_data.
5618 (print_objfile_section_info): Likewise.
5619 (print_bfd_section_info_maybe_relocated): Likewise.
5620 (maintenance_info_sections): Use gdb_bfd_sections.
5621
5622 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5623
5624 * MAINTAINERS: Add ARC target and maintainer.
5625
5626 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
5627
5628 * configure.tgt: ARC support for GNU/Linux.
5629 * Makefile.in (ALL_TARGET_OBJS): Likewise.
5630 * arc-linux-tdep.c: New file.
5631 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
5632 * arc-tdep.c (arc_write_pc): Use it.
5633
5634 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5635
5636 * arc-tdep.c (arc_check_for_hardware_loop): New.
5637 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
5638
5639 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5640
5641 * arc-tdep.h: Include "gdbarch.h".
5642
5643 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5644
5645 * arch/arc.h
5646 (arc_gdbarch_features): New class to stir the selection of target XML.
5647 (arc_create_target_description): Use FEATURES to choose XML target.
5648 (arc_lookup_target_description): Use arc_create_target_description
5649 to create _new_ target descriptions or return the already created
5650 ones if the FEATURES is the same.
5651 * arch/arc.c: Implementation of prototypes described above.
5652 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
5653 (arc_gdbarch_features_init): Initialize the FEATURES struct.
5654 * arc-tdep.c (*_feature_name): Make feature names consistent.
5655 (arc_register_feature): A new struct to hold information about
5656 registers of a particular target/feature.
5657 (arc_check_tdesc_feature): Check if XML provides registers in
5658 compliance with ARC_REGISTER_FEATURE structs.
5659 (arc_update_acc_reg_names): Add aliases for r58 and r59.
5660 (determine_*_reg_feature_set): Which feature name to look for.
5661 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
5662 (mach_type_to_arc_isa): Convert from a set of binutils machine types
5663 to expected ISA enums to be used in arc_gdbarch_features structs.
5664 * features/Makefile (FEATURE_XMLFILES): Add new files.
5665 * gdb/features/arc/v1-aux.c: New file.
5666 * gdb/features/arc/v1-aux.xml: Likewise.
5667 * gdb/features/arc/v1-core.c: Likewise.
5668 * gdb/features/arc/v1-core.xml: Likewise.
5669 * gdb/features/arc/v2-aux.c: Likewise.
5670 * gdb/features/arc/v2-aux.xml: Likewise.
5671 * gdb/features/arc/v2-core.c: Likewise.
5672 * gdb/features/arc/v2-core.xml: Likewise.
5673 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
5674
5675 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
5676 Andrew Burgess <andrew.burgess@embecosm.com>
5677
5678 PR m2/26372
5679 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
5680 an assert. Remove single element array indexing pattern as the
5681 MULTI_SUBSCRIPT support will handle this case too.
5682
5683 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
5684
5685 * value.h (valprint_check_validity): Move declaration from
5686 here...
5687 * valprint.h (valprint_check_validity): ... to here.
5688
5689 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
5690
5691 * debug.h: New file.
5692 * debug.c (debug_prefixed_vprintf): New function.
5693 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
5694 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
5695
5696 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
5697
5698 * infrun.h (infrun_debug_printf_1): New function declaration.
5699 (infrun_debug_printf): New macro.
5700 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
5701 throughout.
5702 (infrun_debug_printf): New function.
5703 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
5704 (handle_jit_event): Likewise.
5705
5706 2020-08-21 Mark Wielaard <mark@klomp.org>
5707
5708 * ada-lex.l: Extend register warnings diagnostics comment for g++.
5709
5710 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
5711
5712 * frame.c (enum class frame_id_status): New.
5713 (struct frame_info) <this_id::p>: Change type to frame_id_status.
5714 (fprintf_frame): Update.
5715 (compute_frame_id): Set frame id status to "computing" on entry.
5716 Set it back to "not_computed" on failure and to "computed" on
5717 success.
5718 (get_frame_id): Assert the frame id is not being computed.
5719 (create_sentinel_frame): Use frame_id_status::COMPUTED.
5720 (create_new_frame): Likewise.
5721 (frame_cleanup_after_sniffer): Update assert.
5722
5723 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5724
5725 * regcache.c (pid_ptid_regcache_map): New type.
5726 (target_ptid_regcache_map): Remove.
5727 (target_pid_ptid_regcache_map): New type.
5728 (regcaches): Change type to target_pid_ptid_regcache_map.
5729 (get_thread_arch_aspace_regcache): Update.
5730 (regcache_thread_ptid_changed): Update, handle pid-like ptid
5731 case.
5732 (regcaches_size): Update.
5733 (regcache_count): Update.
5734 (registers_changed_ptid_target_pid_test): New.
5735 (_initialize_regcache): Register new test.
5736
5737 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5738
5739 * regcache.c (regcache_count): New.
5740 (struct regcache_test_data): New.
5741 (regcache_test_data_up): New.
5742 (populate_regcaches_for_test): New.
5743 (regcaches_test): Remove.
5744 (get_thread_arch_aspace_regcache_test): New.
5745 (registers_changed_ptid_all_test): New.
5746 (registers_changed_ptid_target_test): New.
5747 (registers_changed_ptid_target_ptid_test): New.
5748 (regcache_thread_ptid_changed): Remove regcache_count lambda.
5749 (_initialize_regcache): Register new tests.
5750
5751 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5752
5753 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
5754 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
5755 gdbarch and aspace parameter. Use current inferior's aspace.
5756 Validate regcache's arch value.
5757 (regcaches_test): Update.
5758
5759 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5760
5761 * regcache.c (regcaches_test): Call registers_changed.
5762
5763 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5764
5765 * infrun.c (process_event_stop_test): Fix typo "breapoint".
5766
5767 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5768
5769 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
5770 to find the end of prologue for flang compiled binaries.
5771 * arm-tdep.c (arm_skip_prologue): Likewise.
5772 * i386-tdep.c (i386_skip_prologue): Likewise.
5773 * producer.c (producer_is_llvm): New function.
5774 (producer_parsing_tests): Added new tests for clang/flang.
5775 * producer.h (producer_is_llvm): New declaration.
5776
5777 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
5778
5779 * linux-nat.c (linux_nat_debug_printf): New function.
5780 (linux_nat_debug_printf_1): New macro. Use throughout the file.
5781
5782 2020-08-18 Aaron Merey <amerey@redhat.com>
5783
5784 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
5785 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
5786 (CLIBS): Add DEBUGINFOD_LIBS.
5787
5788 2020-08-17 Sergei Trofimovich <siarheit@google.com>
5789
5790 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
5791 'gdbarch_num_regs'.
5792
5793 2020-08-17 Tom Tromey <tromey@adacore.com>
5794
5795 * ada-varobj.c (ada_varobj_decode_var): Handle case where
5796 ada_get_decoded_value returns NULL.
5797
5798 2020-08-17 Tom Tromey <tromey@adacore.com>
5799
5800 * python/py-inferior.c (infpy_search_memory): Use
5801 gdb_py_object_from_ulongest.
5802 * python/py-infevents.c (create_inferior_call_event_object)
5803 (create_memory_changed_event_object): Use
5804 gdb_py_object_from_ulongest.
5805 * python/py-linetable.c (ltpy_entry_get_pc): Use
5806 gdb_py_object_from_ulongest.
5807
5808 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
5809
5810 * loc.c (class symbol_needs_eval_context): Fix indentation.
5811
5812 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
5813
5814 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
5815 bool.
5816
5817 2020-08-17 Tom de Vries <tdevries@suse.de>
5818
5819 PR gdb/26393
5820 * gdbtypes.c (dump_dynamic_prop): New function.
5821 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
5822
5823 2020-08-15 Tom de Vries <tdevries@suse.de>
5824
5825 PR backtrace/26390
5826 * stack.c (print_frame_args): Temporarily set the selected
5827 frame to FRAME while printing the frame's arguments.
5828
5829 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5830
5831 PR breakpoints/26385
5832 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
5833 Always clear watchpoint with PTRACE_SET_DEBUGREG.
5834
5835 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5836
5837 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
5838 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
5839 and >= to check return value instead of == -1 and != -1.
5840
5841 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
5842
5843 * utils.h (class gdb_argv) <as_array_view>: New method.
5844 * utils.c (gdb_argv_as_array_view_test): New.
5845 (_initialize_utils): Register selftest.
5846 * maint.c (maintenance_selftest): Use the new method.
5847
5848 2020-08-13 Kamil Rytarowski <n54@gmx.com>
5849
5850 * target.h (supports_dumpcore, dumpcore): New
5851 function declarations.
5852 * target.c (supports_dumpcore, dumpcore): New
5853 functions.
5854 * target-delegates.c: Rebuild.
5855 * gcore.c (gcore_command): Use target_supports_dumpcore ()
5856 and target_dumpcore ().
5857
5858 2020-08-13 Aaron Merey <amerey@redhat.com>
5859
5860 * debuginfod-support.c: Replace global variables with user_data.
5861
5862 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
5863
5864 * maint.c (maintenance_selftest): Split args and pass array_view
5865 to run_tests.
5866
5867 2020-08-12 Luis Machado <luis.machado@linaro.org>
5868
5869 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
5870 type's length.
5871 Use %s and pulongest to print the length.
5872
5873 2020-08-12 Pedro Alves <palves@redhat.com>
5874
5875 * NEWS: Move "Multi-target debugging support" item to the
5876 "Changes since GDB 9" section.
5877
5878 2020-08-12 Pedro Alves <palves@redhat.com>
5879
5880 PR gdb/26336
5881 * progspace.c (program_space::remove_objfile): Invalidate the
5882 frame cache.
5883
5884 2020-08-11 Tom de Vries <tdevries@suse.de>
5885
5886 * MAINTAINERS: Mark ms1 as deleted.
5887
5888 2020-08-10 Luis Machado <luis.machado@linaro.org>
5889
5890 PR gdb/26310
5891
5892 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
5893 act accordingly.
5894 (aarch64_analyze_prologue_test): Add more unit tests to exercise
5895 movz/str/stur/stp skipping behavior.
5896
5897 2020-08-10 Luis Machado <luis.machado@linaro.org>
5898
5899 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
5900 struct user_sve_header instead of struct sve_context.
5901
5902 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
5903
5904 * read.h (dwarf2_fetch_die_loc_sect_off,
5905 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
5906 `void *` parameter with function_view.
5907 * read.c (dwarf2_fetch_die_loc_sect_off,
5908 dwarf2_fetch_die_loc_cu_off): Likewise.
5909 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
5910 (per_cu_dwarf_call): Adjust.
5911 (get_frame_address_in_block_wrapper): Remove.
5912 (indirect_synthetic_pointer): Adjust.
5913 (get_ax_pc): Remove.
5914 (dwarf2_compile_expr_to_ax): Adjust.
5915
5916 2020-08-08 Tom de Vries <tdevries@suse.de>
5917
5918 PR build/26344
5919 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
5920 constructor.
5921 * regcache.c (get_thread_arch_aspace_regcache): Same.
5922
5923 2020-08-07 Tom Tromey <tromey@adacore.com>
5924
5925 * ravenscar-thread.c
5926 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
5927 New method.
5928 (ravenscar_thread_target::wait): Check
5929 runtime_initialized.
5930 (ravenscar_thread_target::prepare_to_store)
5931 (ravenscar_thread_target::stopped_by_sw_breakpoint)
5932 (ravenscar_thread_target::stopped_by_hw_breakpoint)
5933 (ravenscar_thread_target::stopped_by_watchpoint)
5934 (ravenscar_thread_target::stopped_data_address)
5935 (ravenscar_thread_target::core_of_thread): Use
5936 scoped_restore_current_thread and
5937 set_base_thread_from_ravenscar_task.
5938
5939 2020-08-07 Tom Tromey <tromey@adacore.com>
5940
5941 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
5942
5943 2020-08-07 Tom Tromey <tromey@adacore.com>
5944
5945 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
5946 update_inferior_ptid before update_thread_list.
5947 (temporarily_change_regcache_ptid): New class.
5948 (ravenscar_thread_target::fetch_registers)
5949 (ravenscar_thread_target::store_registers)
5950 (ravenscar_thread_target::prepare_to_store): Use base thread when
5951 forwarding operation.
5952
5953 2020-08-07 Tom Tromey <tromey@adacore.com>
5954
5955 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
5956 "is_pid" case.
5957
5958 2020-08-07 Tom Tromey <tromey@adacore.com>
5959
5960 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
5961 New methods.
5962 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
5963 first.
5964 (ravenscar_thread_target::add_thread): Rename from
5965 ravenscar_add_thread.
5966 (ravenscar_thread_target::update_thread_list): Use a lambda.
5967 (ravenscar_thread_target::xfer_partial): New method.
5968
5969 2020-08-07 Tom Tromey <tromey@adacore.com>
5970
5971 * ada-lang.h (ada_task_list_iterator_ftype): Now a
5972 gdb::function_view.
5973 (iterate_over_live_ada_tasks): Change type of argument.
5974 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
5975 of argument.
5976
5977 2020-08-07 Tom Tromey <tromey@adacore.com>
5978
5979 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
5980 Remove.
5981 (ravenscar_thread_target::extra_thread_info): Remove.
5982 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
5983 defer to target beneath for non-Ravenscar threads.
5984
5985 2020-08-07 Tom Tromey <tromey@adacore.com>
5986
5987 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
5988 get_base_thread_from_ravenscar_task>: Now methods.
5989 <m_cpu_map>: New member.
5990 (ravenscar_thread_target::get_thread_base_cpu): Rename from
5991 ravenscar_get_thread_base_cpu. Check m_cpu_map.
5992 (ravenscar_thread_target::task_is_currently_active): Update.
5993 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
5994 Now a method.
5995 (ravenscar_thread_target::add_active_thread): Put initial thread
5996 into the m_cpu_map.
5997
5998 2020-08-07 Tom Tromey <tromey@adacore.com>
5999
6000 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
6001 event_ptid.
6002
6003 2020-08-07 Tom Tromey <tromey@adacore.com>
6004
6005 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
6006 runtime_initialized.
6007
6008 2020-08-07 Tom Tromey <tromey@adacore.com>
6009
6010 * ravenscar-thread.c (ravenscar_thread_target): Don't call
6011 add_active_thread.
6012 (ravenscar_thread_target::add_active_thread): Now public.
6013 (ravenscar_inferior_created): Call add_active_thread after pushing
6014 the target.
6015
6016 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
6017
6018 * regcache.c (ptid_regcache_map): New type.
6019 (target_ptid_regcache_map): New type.
6020 (regcaches): Change type to target_ptid_regcache_map.
6021 (get_thread_arch_aspace_regcache): Update to regcaches' new
6022 type.
6023 (regcache_thread_ptid_changed): Likewise.
6024 (registers_changed_ptid): Likewise.
6025 (regcaches_size): Likewise.
6026 (regcaches_test): Update.
6027 (regcache_thread_ptid_changed): Update.
6028 * regcache.h (regcache_up): New type.
6029 * gdbsupport/ptid.h (hash_ptid): New struct.
6030
6031 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
6032
6033 * observable.h (thread_ptid_changed): Add parameter
6034 `process_stratum_target *`.
6035 * infrun.c (infrun_thread_ptid_changed): Add parameter
6036 `process_stratum_target *` and use it.
6037 (selftests): New namespace.
6038 (infrun_thread_ptid_changed): New function.
6039 (_initialize_infrun): Register selftest.
6040 * regcache.c (regcache_thread_ptid_changed): Add parameter
6041 `process_stratum_target *` and use it.
6042 (regcache_thread_ptid_changed): New function.
6043 (_initialize_regcache): Register selftest.
6044 * thread.c (thread_change_ptid): Pass target to
6045 thread_ptid_changed observable.
6046
6047 2020-08-06 Caroline Tice <cmtice@google.com>
6048
6049 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
6050 (struct dwp_sections): Update field comments. Add loclists and
6051 rnglists fields.
6052 (struct virtual_v2_dwo_sections): Rename struct to
6053 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
6054 size & offset fields for loclists and rnglists.
6055 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
6056 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
6057 skipping dummy type units.
6058 (create_dwp_hash_table): Update the large comment above the function to
6059 discuss Version 5 DWP files as well, with references. Update all the
6060 version checks in the function to check for version 5 as well. Add new
6061 section at the end to create dwp hash table for version 5.
6062 (create_dwp_v2_section): Rename function to
6063 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
6064 Add V5 to error message text.
6065 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
6066 into calls to create_dwp_v2_or_v5_section.
6067 (create_dwo_unit_in_dwp_v5): New function.
6068 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
6069 check for version2; add else clause to handle version 5.
6070 (open_and_init_dwo_file): Add code to check dwarf version & only call
6071 create_debug_types_hash_table (with sections.types) if version is not 5;
6072 else call create_debug_type_hash_table, with sections.info.
6073 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
6074 version 5.
6075 (dwarf2_locate_v5_dwp_sections): New function.
6076 (open_and_init_dwp_file): Add else-if clause for version 5 to call
6077 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
6078
6079 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
6080
6081 * regcache.h (class regcache): Remove friend
6082 registers_changed_ptid.
6083 <regcache_thread_ptid_changed>: Remove.
6084 <regcaches>: Remove.
6085 * regcache.c (regcache::regcaches): Rename to...
6086 (regcaches): ... this. Make static.
6087 (get_thread_arch_aspace_regcache): Update.
6088 (regcache::regcache_thread_ptid_changed): Rename to...
6089 (regcache_thread_ptid_changed): ... this. Update.
6090 (class regcache_access): Remove.
6091 (regcaches_test): Update.
6092 (_initialize_regcache): Update.
6093 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
6094 <forward_list>.
6095
6096 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
6097
6098 * regcache.h (class regcache) <current_regcache>: Rename to...
6099 <regcaches>: ... this. Move doc here.
6100 * regcache.c (regcache::current_regcache) Rename to...
6101 (regcache::regcaches): ... this. Move doc to header.
6102 (get_thread_arch_aspace_regcache): Update.
6103 (regcache::regcache_thread_ptid_changed): Update.
6104 (registers_changed_ptid): Update.
6105 (class regcache_access) <current_regcache_size>: Rename to...
6106 <regcaches_size>: ... this.
6107 (current_regcache_test): Rename to...
6108 (regcaches_test): ... this.
6109 (_initialize_regcache): Update.
6110
6111 2020-08-06 Victor Collod <vcollod@nvidia.com>
6112
6113 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
6114
6115 2020-08-05 Kevin Buettner <kevinb@redhat.com>
6116
6117 * corelow.c (core_target::build_file_mappings): Don't output
6118 null pathname in warning.
6119
6120 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
6121
6122 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
6123 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
6124 gdb.dwarf2/dw2-single-line-discriminators.exp,
6125 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
6126
6127 2020-08-05 Tom Tromey <tromey@adacore.com>
6128
6129 PR rust/26197:
6130 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
6131 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
6132 Fix off-by-one and type size errors in ordinary case.
6133
6134 2020-08-05 Tom de Vries <tdevries@suse.de>
6135
6136 * gdbtypes.c (type_not_allocated, type_not_associated): Use
6137 "prop->const_val () == 0" instead of "prop->const_val () != 0".
6138
6139 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
6140
6141 * frame.h (frame_id_p): Return bool.
6142 (frame_id_artificial_p): Return bool.
6143 (frame_id_eq): Return bool.
6144 (has_stack_frames): Return bool.
6145 (get_selected_frame): Fix typo in comment.
6146 (get_frame_pc_if_available): Return bool.
6147 (get_frame_address_in_block_if_available): Return bool.
6148 (get_frame_func_if_available): Return bool.
6149 (read_frame_register_unsigned): Return bool.
6150 (get_frame_register_bytes): Return bool.
6151 (safe_frame_unwind_memory): Return bool.
6152 (deprecated_frame_register_read): Return bool.
6153 (frame_unwinder_is): Return bool.
6154 * frame.c (struct frame_info) <prev_arch::p>: Change type to
6155 bool.
6156 <this_id::p>: Likewise.
6157 <prev_p>: Likewise.
6158 (frame_stash_add): Return bool.
6159 (get_frame_id): Use bool.
6160 (frame_id_build_special) Use bool.
6161 (frame_id_build_unavailable_stack): Use bool.
6162 (frame_id_build): Use bool.
6163 (frame_id_p): Return bool, use true/false instead of 1/0.
6164 (frame_id_artificial_p): Likewise.
6165 (frame_id_eq): Likewise.
6166 (frame_id_inner): Likewise.
6167 (get_frame_func_if_available): Likewise.
6168 (read_frame_register_unsigned): Likewise.
6169 (deprecated_frame_register_read): Likewise.
6170 (get_frame_register_bytes): Likewise.
6171 (has_stack_frames): Likewise.
6172 (inside_main_func): Likewise.
6173 (inside_entry_func): Likewise.
6174 (get_frame_pc_if_available): Likewise.
6175 (get_frame_address_in_block_if_available): Likewise.
6176 (frame_unwinder_is): Likewise.
6177 (safe_frame_unwind_memory): Likewise.
6178 (frame_unwind_arch): Likewise.
6179
6180 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
6181
6182 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
6183 type to cached_copy_status.
6184 (fprintf_frame): Adjust.
6185 (get_frame_func_if_available): Adjust.
6186 (frame_cleanup_after_sniffer): Adjust.
6187
6188 2020-08-04 Mark Wielaard <mark@klomp.org>
6189
6190 * MAINTAINERS (Write After Approval): Update email address.
6191
6192 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6193
6194 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
6195 dynamic_prop::const_val.
6196
6197 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6198
6199 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
6200 dynamic_prop::kind.
6201
6202 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6203
6204 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
6205
6206 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
6207
6208 * configure.tgt: Set gdb_sim for bpf-*-* targets.
6209
6210 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
6211 Jose E. Marchesi <jose.marchesi@oracle.com>
6212
6213 * configure.tgt: Add entry for bpf-*-*.
6214 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
6215 (ALLDEPFILES): Add bpf-tdep.c.
6216 * bpf-tdep.c: New file.
6217 * MAINTAINERS: Add bpf target and maintainer.
6218 * NEWS: Mention the support for the new target.
6219
6220 2020-08-04 Tom de Vries <tdevries@suse.de>
6221
6222 PR symtab/23270
6223 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
6224 Error.
6225
6226 2020-08-03 John Baldwin <jhb@FreeBSD.org>
6227
6228 * syscalls/freebsd.xml: Regenerate.
6229
6230 2020-08-03 John Baldwin <jhb@FreeBSD.org>
6231
6232 * syscalls/update-freebsd.sh: Fix usage and year range.
6233
6234 2020-08-03 Tom de Vries <tdevries@suse.de>
6235
6236 PR symtab/26333
6237 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
6238 DW_LNE_lo_user/DW_LNE_hi_user range.
6239
6240 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
6241
6242 PR ada/26318
6243 * ada-lang.c (ada_modulus): Return 0 if property is not of const
6244 kind.
6245
6246 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6247
6248 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
6249
6250 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6251
6252 * breakpoint.c (set_breakpoint_condition): Update the condition
6253 expressions after checking that the input condition string parses
6254 successfully and does not contain junk at the end.
6255
6256 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6257
6258 * breakpoint.c (set_breakpoint_condition): Update the
6259 condition string after parsing the new condition successfully.
6260
6261 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6262
6263 * proc-api.c (_STRUCTURED_PROC): Don't define.
6264 * proc-events.c: Likewise.
6265 * proc-flags.c: Likewise.
6266 * proc-why.c: Likewise.
6267 * procfs.c: Likewise.
6268
6269 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
6270 * configure, config.in: Regenerate.
6271
6272 2020-07-30 Tom de Vries <tdevries@suse.de>
6273
6274 PR build/26320
6275 * ui-style.h (struct ui_file_style::color): Wrap m_value and
6276 m_red/m_green/m_blue in a union.
6277
6278 2020-07-29 Tom de Vries <tdevries@suse.de>
6279
6280 PR tdep/26280
6281 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
6282
6283 2020-07-28 Tom Tromey <tromey@adacore.com>
6284
6285 PR symtab/26270:
6286 * symtab.h (find_pc_partial_function_sym): Declare.
6287 * cli/cli-cmds.c (disassemble_command): Use
6288 find_pc_partial_function_sym. Check asm_demangle.
6289 * blockframe.c (cache_pc_function_sym): New global.
6290 (cache_pc_function_name): Remove.
6291 (clear_pc_function_cache): Update.
6292 (find_pc_partial_function_sym): New function, from
6293 find_pc_partial_function.
6294 (find_pc_partial_function): Rewrite using
6295 find_pc_partial_function_sym.
6296
6297 2020-07-28 Tom Tromey <tromey@adacore.com>
6298
6299 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
6300 help. Add usage.
6301
6302 2020-07-28 Tom Tromey <tromey@adacore.com>
6303
6304 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
6305 <DW_OP_GNU_variable_value>: Cast to address type.
6306
6307 2020-07-28 Kamil Rytarowski <n54@gmx.com>
6308
6309 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
6310 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
6311 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
6312 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
6313 (nbsd_get_siginfo_type): New.
6314 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
6315 (_initialize_nbsd_tdep): New.
6316
6317 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
6318
6319 PR binutils/26301
6320 * configure: Regenerated.
6321
6322 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
6323
6324 PR binutils/26301
6325 * configure: Regenerated.
6326
6327 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
6328
6329 * python/py-frame.c: Remove 'user-regs.h' include.
6330 (frapy_read_register): Rewrite to make use of
6331 gdbpy_parse_register_id.
6332 * python/py-registers.c (gdbpy_parse_register_id): New function,
6333 moved here from python/py-unwind.c. Updated the return type, and
6334 also accepts register descriptor objects.
6335 * python/py-unwind.c: Remove 'user-regs.h' include.
6336 (pyuw_parse_register_id): Moved to python/py-registers.c.
6337 (unwind_infopy_add_saved_register): Update to use
6338 gdbpy_parse_register_id.
6339 (pending_framepy_read_register): Likewise.
6340 * python/python-internal.h (gdbpy_parse_register_id): Declare.
6341
6342 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
6343
6344 * python/py-registers.c: Add 'user-regs.h' include.
6345 (register_descriptor_iter_find): New function.
6346 (register_descriptor_iterator_object_methods): New static global
6347 methods array.
6348 (register_descriptor_iterator_object_type): Add pointer to methods
6349 array.
6350
6351 2020-07-27 John Baldwin <jhb@FreeBSD.org>
6352
6353 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
6354 for all architectures on FreeBSD 11.3 and later.
6355
6356 2020-07-27 Tom Tromey <tromey@adacore.com>
6357
6358 * gcore.h (load_corefile): Don't declare.
6359
6360 2020-07-27 Tom de Vries <tdevries@suse.de>
6361
6362 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
6363 * config.in: Regenerate.
6364 * configure: Regenerate.
6365
6366 2020-07-26 Eli Zaretskii <eliz@gnu.org>
6367
6368 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
6369 ws2tcpip.h. When checking whether socklen_t type is defined, use
6370 ws2tcpip.h if it is available and sys/socket.h isn't.
6371 * configure: Regenerate.
6372 * config.in: Regenerate.
6373
6374 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
6375
6376 PR fortran/23051
6377 PR fortran/26139
6378 * valops.c (value_ind): Pass address to
6379 readjust_indirect_value_type.
6380 * value.c (readjust_indirect_value_type): Make parameter
6381 non-const, and add extra address parameter. Resolve original type
6382 before using it.
6383 * value.h (readjust_indirect_value_type): Update function
6384 signature and comment.
6385
6386 2020-07-25 Tom de Vries <tdevries@suse.de>
6387
6388 PR symtab/26243
6389 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
6390 entries.
6391
6392 2020-07-24 Aaron Merey <amerey@redhat.com>
6393
6394 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
6395 * configure: Rebuild.
6396
6397 2020-07-23 Kevin Buettner <kevinb@redhat.com>
6398
6399 PR corefiles/26294
6400 * corelow.c (_initialize_corelow): Add period to help text
6401 for "maintenance print core-file-backed-mappings".
6402
6403 2020-07-23 Pedro Alves <pedro@palves.net>
6404
6405 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
6406 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
6407 meanwhile.
6408 * frame.c (frame_cache_generation, get_frame_cache_generation):
6409 New.
6410 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
6411 (get_prev_frame_if_no_cycle): On exception, don't touch
6412 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
6413 * frame.h (get_frame_cache_generation): Declare.
6414
6415 2020-07-23 Tom de Vries <tdevries@suse.de>
6416
6417 PR tui/26282
6418 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
6419 New default constructor.
6420
6421 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
6422
6423 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
6424 exclude non-statement entries.
6425
6426 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6427
6428 * NEWS (New commands): Mention new command
6429 "maintenance print core-file-backed-mappings".
6430
6431 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6432
6433 * corelow.c (gdbcmd.h): Include.
6434 (core_target::info_proc_mappings): New method.
6435 (get_current_core_target): New function.
6436 (maintenance_print_core_file_backed_mappings): New function.
6437 (_initialize_corelow): Add core-file-backed-mappings to
6438 "maint print" commands.
6439
6440 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6441
6442 * linux-tdep.c (dump_note_entry_p): New function.
6443 (linux_dump_mapping_p_ftype): New typedef.
6444 (linux_find_memory_regions_full): Add new parameter,
6445 should_dump_mapping_p.
6446 (linux_find_memory_regions): Adjust call to
6447 linux_find_memory_regions_full.
6448 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
6449 call to linux_find_memory_regions_full.
6450
6451 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6452
6453 * corelow.c (solist.h, unordered_map): Include.
6454 (class core_target): Add field m_core_file_mappings and
6455 method build_file_mappings.
6456 (core_target::core_target): Call build_file_mappings.
6457 (core_target::~core_target): Free memory associated with
6458 m_core_file_mappings.
6459 (core_target::build_file_mappings): New method.
6460 (core_target::xfer_partial): Use m_core_file_mappings
6461 for memory transfers.
6462 * linux-tdep.c (linux_read_core_file_mappings): New
6463 function.
6464 (linux_core_info_proc_mappings): Rewrite to use
6465 linux_read_core_file_mappings.
6466 (linux_init_abi): Register linux_read_core_file_mappings.
6467
6468 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6469
6470 * arch-utils.c (default_read_core_file_mappings): New function.
6471 * arch-utils.c (default_read_core_file_mappings): Declare.
6472 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
6473 * gdbarch.h, gdbarch.c: Regenerate.
6474
6475 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6476
6477 PR corefiles/25631
6478 * corelow.c (core_target:xfer_partial): Revise
6479 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
6480 case after first checking the stratum beneath the core
6481 target.
6482 (has_all_memory): Return true.
6483 * target.c (raw_memory_xfer_partial): Revise comment
6484 regarding use of has_all_memory.
6485
6486 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6487
6488 * exec.h (section_table_xfer_memory): Revise declaration,
6489 replacing section name parameter with an optional callback
6490 predicate.
6491 * exec.c (section_table_xfer_memory): Likewise.
6492 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
6493 of section_table_xfer_memory.
6494
6495 2020-07-22 Tom Tromey <tromey@adacore.com>
6496
6497 * mi/mi-cmd-stack.c (list_args_or_locals): Use
6498 lookup_symbol_search_name.
6499
6500 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6501
6502 * python/py-registers.c (gdbpy_register_object_data_init): Remove
6503 redundant local variable.
6504 (gdbpy_get_register_descriptor): Extract descriptor vector as a
6505 reference, not pointer, update code accordingly.
6506
6507 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6508 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6509
6510 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
6511 * jit.c (jit_breakpoint_re_set_internal): Use the
6512 `skip_jit_symbol_lookup` field.
6513
6514 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6515 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6516
6517 * jit.c (jit_read_descriptor): Define the descriptor address once,
6518 use twice.
6519 (jit_breakpoint_deleted): Move the declaration of the loop variable
6520 `iter` into the loop header.
6521 (jit_breakpoint_re_set_internal): Move the declaration of the local
6522 variable `objf_data` to the first point of definition.
6523 (jit_event_handler): Move the declaration of local variables
6524 `code_entry`, `entry_addr`, and `objf` to their first point of use.
6525 Rename `objf` to `jited`.
6526
6527 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6528
6529 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
6530 Remove.
6531 * jit.c (get_jiter_objfile_data): Update.
6532
6533 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6534 Simon Marchi <simon.marchi@polymtl.ca>
6535
6536 * jit.c (struct jit_program_space_data): Remove.
6537 (jit_program_space_key): Remove.
6538 (jiter_objfile_data::~jiter_objfile_data): Remove program space
6539 stuff.
6540 (get_jit_program_space_data): Remove.
6541 (jit_breakpoint_deleted): Iterate on all of the program space's
6542 objfiles.
6543 (jit_inferior_init): Likewise.
6544 (jit_breakpoint_re_set_internal): Likewise. Also change return
6545 type to void.
6546 (jit_breakpoint_re_set): Pass current_program_space to
6547 jit_breakpoint_re_set_internal.
6548
6549 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6550
6551 * jit.h (struct jiter_objfile_data) <cached_code_address,
6552 jit_breakpoint>: Move to here from ...
6553 * jit.c (jit_program_space_data): ... here.
6554 (jiter_objfile_data::~jiter_objfile_data): Update.
6555 (jit_breakpoint_deleted): Update.
6556 (jit_breakpoint_re_set_internal): Update.
6557
6558 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6559
6560 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
6561 checks.
6562 (jit_read_descriptor): Remove NULL check.
6563 (jit_event_handler): Add an assertion.
6564
6565 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6566
6567 * jit.h (struct jit_objfile_data): Split into...
6568 (struct jiter_objfile_data): ... this ...
6569 (struct jited_objfile_data): ... and this.
6570 * objfiles.h (struct objfile) <jit_data>: Remove.
6571 <jiter_data, jited_data>: New fields.
6572 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
6573 (jiter_objfile_data::~jiter_objfile_data): ... this.
6574 (get_jit_objfile_data): Rename to ...
6575 (get_jiter_objfile_data): ... this.
6576 (add_objfile_entry): Update.
6577 (jit_read_descriptor): Use get_jiter_objfile_data.
6578 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
6579 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
6580 (jit_inferior_exit_hook): Use objfile's jited_data field.
6581
6582 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6583
6584 * jit.h: Forward-declare `struct minimal_symbol`.
6585 (struct jit_objfile_data): Migrate to here from jit.c; also add a
6586 constructor, destructor, and an objfile* field.
6587 * jit.c (jit_objfile_data): Remove.
6588 (struct jit_objfile_data): Migrate from here to jit.h.
6589 (jit_objfile_data::~jit_objfile_data): New destructor
6590 implementation with code moved from free_objfile_data.
6591 (free_objfile_data): Delete.
6592 (get_jit_objfile_data): Update to use the jit_data field of objfile.
6593 (jit_find_objf_with_entry_addr): Ditto.
6594 (jit_inferior_exit_hook): Ditto.
6595 (_initialize_jit): Remove the call to
6596 register_objfile_data_with_cleanup.
6597 * objfiles.h (struct objfile) <jit_data>: New field.
6598
6599 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6600
6601 * jit.h: Forward-declare `struct objfile`.
6602 (jit_event_handler): Add a second parameter, the JITer objfile.
6603 * jit.c (jit_read_descriptor): Change the signature to take the
6604 JITer objfile as an argument instead of the jit_program_space_data.
6605 (jit_inferior_init): Update the call to jit_read_descriptor.
6606 (jit_event_handler): Use the new JITer objfile argument when calling
6607 jit_read_descriptor.
6608 * breakpoint.c (handle_jit_event): Update the call to
6609 jit_event_handler to pass the JITer objfile.
6610
6611 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6612
6613 * gdbarch.c: Regenerate.
6614 * gdbarch.h: Regenerate.
6615 * gdbarch.sh (handle_segmentation_fault): Remove method.
6616 * infrun.c (handle_segmentation_fault): Remove.
6617 (print_signal_received_reason): Remove call to
6618 handle_segmentation_fault.
6619
6620 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6621
6622 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
6623 Rename to sparc64_linux_report_signal_info and add siggnal
6624 argument.
6625 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
6626 instead of sparc64_linux_handle_segmentation_fault.
6627
6628 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6629
6630 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
6631 i386_linux_report_signal_info instead of
6632 i386_linux_handle_segmentation_fault.
6633 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
6634 to i386_linux_report_signal_info and add siggnal argument.
6635 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
6636 of i386_linux_handle_segmentation_fault.
6637 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
6638 to i386_linux_report_signal_info and add siggnal argument.
6639
6640 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6641
6642 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
6643 hook if present.
6644
6645 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6646
6647 * gdbarch.c: Regenerate.
6648 * gdbarch.h: Regenerate.
6649 * gdbarch.sh (report_signal_info): New method.
6650 * infrun.c (print_signal_received_reason): Invoke gdbarch
6651 report_signal_info hook if present.
6652
6653 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
6654
6655 * python/py-registers.c : Add 'unordered_map' include.
6656 (gdbpy_new_reggroup): Renamed to...
6657 (gdbpy_get_reggroup): ...this. Update to only create register
6658 group descriptors when needed.
6659 (gdbpy_reggroup_iter_next): Update.
6660
6661 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
6662
6663 * python/py-registers.c (gdbpy_register_object_data): New static
6664 global.
6665 (gdbpy_register_object_data_init): New function.
6666 (gdbpy_new_register_descriptor): Renamed to...
6667 (gdbpy_get_register_descriptor): ...this, and update to reuse
6668 existing register descriptors where possible.
6669 (gdbpy_register_descriptor_iter_next): Update.
6670 (gdbpy_initialize_registers): Register new gdbarch data.
6671
6672 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
6673
6674 * linux-nat.c (stopped_pids): Make static.
6675
6676 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
6677
6678 PR ada/26235
6679 * gdbtypes.c (ada_discrete_type_low_bound,
6680 ada_discrete_type_high_bound): Handle undefined bounds.
6681
6682 2020-07-21 Kamil Rytarowski <n54@gmx.com>
6683
6684 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
6685 declaration.
6686 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
6687 function.
6688
6689 2020-07-20 John Baldwin <jhb@FreeBSD.org>
6690
6691 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
6692 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
6693 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
6694 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
6695 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
6696 method.
6697
6698 2020-07-20 Ludovic Courtès <ludo@gnu.org>
6699
6700 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
6701 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
6702 which are deprecated in Guile 3.0.
6703 * configure.ac (try_guile_versions): Add "guile-3.0".
6704 * configure (try_guile_versions): Regenerate.
6705 * NEWS: Update entry.
6706
6707 2020-07-20 Ludovic Courtès <ludo@gnu.org>
6708 Doug Evans <dje@google.com>
6709
6710 PR gdb/21104
6711 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
6712 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
6713 USING_GUILE_BEFORE_2_2.
6714 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
6715 Change type to 'scm_t_port_type *'.
6716 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
6717 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
6718 parameter and honor it. Update callers.
6719 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
6720 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
6721 functions.
6722 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
6723 USING_GUILE_BEFORE_2_2.
6724 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
6725 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
6726 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
6727 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
6728 and 'SCM_PORT_TYPE'.
6729 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
6730 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
6731 (gdbscm_memory_port_read, gdbscm_memory_port_write)
6732 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
6733 [!USING_GUILE_BEFORE_2_2]: New functions.
6734 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
6735 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
6736 'gdbscm_memory_port_read'.
6737 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
6738 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
6739 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
6740 function.
6741 (ioscm_init_memory_port): Remove.
6742 (ioscm_init_memory_port_stream): New function
6743 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
6744 function.
6745 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
6746 Return scm_from_uint (0).
6747 (gdbscm_set_memory_port_read_buffer_size_x)
6748 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
6749 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
6750 Return scm_from_uint (0).
6751 (gdbscm_set_memory_port_write_buffer_size_x)
6752 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
6753 * configure.ac (try_guile_versions): Add "guile-2.2".
6754 * configure: Regenerate.
6755 * NEWS: Add entry.
6756
6757 2020-07-18 Tom Tromey <tom@tromey.com>
6758
6759 * linux-nat.c (linux_multi_process): Remove.
6760 (linux_nat_target::supports_multi_process): Return true.
6761
6762 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
6763
6764 * arch/riscv.c (riscv_tdesc_cache): Change map type.
6765 (riscv_lookup_target_description): Return pointer out of
6766 unique_ptr.
6767 * target-descriptions.c (allocate_target_description): Add
6768 comment.
6769 (target_desc_deleter::operator()): Likewise.
6770 * target-descriptions.h (struct target_desc_deleter): Moved to
6771 gdbsupport/tdesc.h.
6772 (target_desc_up): Likewise.
6773
6774 2020-07-17 Tom Tromey <tromey@adacore.com>
6775
6776 * linux-nat.c (linux_nat_target::supports_non_stop)
6777 (linux_nat_target::always_non_stop_p): Use "true".
6778 (linux_nat_target::supports_disable_randomization): Use "true" and
6779 "false".
6780
6781 2020-07-16 Caroline Tice <cmtice@google.com>
6782
6783 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
6784 (RNGLIST_HEADER_SIZE64): New constant definition.
6785 (struct dwop_section_names): Add rnglists_dwo.
6786 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
6787 (struct loclist_header): Rename to 'loclists_rnglists_header'.
6788 (struct dwo_sections): Add rnglists field.
6789 (read_attribut_reprocess): Add tag parameter.
6790 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
6791 (cu_debug_rnglists_section): New function (decl & definition).
6792 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
6793 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
6794 die whose range is being checked; get rnglist section from
6795 cu_debug_rnglists_section, to get from either objfile or dwo file as
6796 appropriate. Add cases for DW_RLE_base_addressx,
6797 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
6798 the base address to DW_RLE_offset_pairs (not to all ranges), moving
6799 test inside if-condition and updating complaint message.
6800 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
6801 dwarf2_rnglists_process.
6802 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
6803 dwarf2_ranges_process.
6804 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
6805 need_ranges_base and update comment appropriately. Also pass die tag
6806 to dwarf2_ranges_read.
6807 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
6808 need_ranges_base and update comment appropriately. Also pass die tag
6809 to dwarf2_ranges_process.
6810 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
6811 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
6812 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
6813 need_ranges_base and update comment appropriately. Also pass die tag
6814 to read_attribute_reprocess and dwarf2_ranges_read.
6815 (read_loclist_header): Rename function to read_loclists_rnglists_header,
6816 and update function comment appropriately.
6817 (read_loclist_index): Call read_loclists_rnglists_header instead of
6818 read_loclist_header.
6819 (read_rnglist_index): New function.
6820 (read_attribute_reprocess): Add tag parameter. Add code for
6821 DW_FORM_rnglistx, passing tag to read_rnglist_index.
6822 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
6823
6824 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
6825
6826 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
6827 being resolved.
6828
6829 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
6830
6831 * arch-utils.c (show_architecture): Update formatting of messages.
6832
6833 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6834
6835 * gdbtypes.h (struct type) <bounds>: Handle array and string
6836 types.
6837 * ada-lang.c (assign_aggregate): Use type::bounds on
6838 array/string type.
6839 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
6840 * c-varobj.c (c_number_of_children): Likewise.
6841 (c_describe_child): Likewise.
6842 * eval.c (evaluate_subexp_for_sizeof): Likewise.
6843 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
6844 (f_type_print_base): Likewise.
6845 * f-valprint.c (f77_array_offset_tbl): Likewise.
6846 (f77_get_upperbound): Likewise.
6847 (f77_print_array_1): Likewise.
6848 * guile/scm-type.c (gdbscm_type_range): Likewise.
6849 * m2-typeprint.c (m2_array): Likewise.
6850 (m2_is_long_set_of_type): Likewise.
6851 * m2-valprint.c (get_long_set_bounds): Likewise.
6852 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
6853 * python/py-type.c (typy_range): Likewise.
6854 * rust-lang.c (rust_internal_print_type): Likewise.
6855 * type-stack.c (type_stack::follow_types): Likewise.
6856 * valarith.c (value_subscripted_rvalue): Likewise.
6857 * valops.c (value_cast): Likewise.
6858
6859 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6860
6861 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
6862 callers to use the equivalent accessor methods.
6863
6864 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6865
6866 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
6867 (struct type) <bit_stride>: New method.
6868 (TYPE_BIT_STRIDE): Remove.
6869 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
6870
6871 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6872
6873 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
6874 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
6875 callers to use the equivalent accessor methods instead.
6876
6877 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6878
6879 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
6880 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
6881 callers to use the equivalent accessor methods instead.
6882
6883 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6884
6885 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
6886 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
6887 to use dynamic_prop::kind.
6888
6889 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6890
6891 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
6892 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
6893 to get the bound property's kind and check against
6894 PROP_UNDEFINED.
6895
6896 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6897
6898 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
6899 all callers to use type::range_bounds followed by
6900 dynamic_prop::{low,high}.
6901
6902 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
6903
6904 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
6905 const_val, set_const_val, baton, set_locexpr, set_loclist,
6906 set_addr_offset, variant_parts, set_variant_parts,
6907 original_type, set_original_type>: New methods.
6908 <kind>: Rename to...
6909 <m_kind>: ... this. Update all users to use the new methods
6910 instead.
6911 <data>: Rename to...
6912 <m_data>: ... this. Update all users to use the new methods
6913 instead.
6914
6915 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6916
6917 * gdbtypes.c (get_discrete_bounds): Return failure if
6918 the range type's bounds are not both defined and constant
6919 values.
6920 (get_array_bounds): Update comment. Remove undefined bound check.
6921
6922 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
6923
6924 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
6925 the type::bounds method directly.
6926
6927 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6928
6929 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
6930 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
6931 are used to set the range type's bounds to use set_bounds.
6932
6933 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6934
6935 * exec.c (_initialize_exec): Update exec-file-mismatch help.
6936
6937 2020-07-10 Pedro Alves <pedro@palves.net>
6938
6939 * gdbthread.h (inferior_ref): Define.
6940 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
6941 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
6942 * thread.c
6943 (scoped_restore_current_thread::restore):
6944 Adjust to gdb::ref_ptr.
6945 (scoped_restore_current_thread::~scoped_restore_current_thread):
6946 Remove manual decref handling.
6947 (scoped_restore_current_thread::scoped_restore_current_thread):
6948 Adjust to use
6949 inferior_ref::new_reference/thread_info_ref::new_reference.
6950 Incref the thread before calling get_frame_id instead of after.
6951 Let TARGET_CLOSE_ERROR propagate.
6952
6953 2020-07-10 Pedro Alves <pedro@palves.net>
6954
6955 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
6956 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
6957 NOT_AVAILABLE_ERROR.
6958 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
6959 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
6960
6961 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6962 Pedro Alves <pedro@palves.net>
6963
6964 PR gdb/26199
6965 * infrun.c (threads_are_resumed_pending_p): Delete.
6966 (do_target_wait): Remove threads_are_executing and
6967 threads_are_resumed_pending_p checks from the inferior_matches
6968 lambda. Update comments.
6969
6970 2020-07-10 Pedro Alves <pedro@palves.net>
6971
6972 PR gdb/26199
6973 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
6974 executing threads.
6975
6976 2020-07-10 Pedro Alves <pedro@palves.net>
6977
6978 PR gdb/26199
6979 * infrun.c (handle_no_resumed): Handle multiple targets.
6980
6981 2020-07-10 Pedro Alves <pedro@palves.net>
6982
6983 PR gdb/26199
6984 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
6985 target_is_async_p.
6986
6987 2020-07-10 Pedro Alves <pedro@palves.net>
6988
6989 PR gdb/26199
6990 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
6991 threads, not all threads.
6992
6993 2020-07-10 Pedro Alves <pedro@palves.net>
6994
6995 PR gdb/26199
6996 * remote.c (remote_target::open_1): Pass remote target pointer as
6997 data to create_async_event_handler.
6998 (remote_async_inferior_event_handler): Mark async event handler
6999 before returning if the remote target still has either pending
7000 events or unacknowledged notifications.
7001
7002 2020-07-10 John Baldwin <jhb@FreeBSD.org>
7003
7004 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
7005 declaration.
7006 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
7007 function.
7008
7009 2020-07-09 John Baldwin <jhb@FreeBSD.org>
7010
7011 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
7012 inferior_ptid.
7013
7014 2020-07-09 John Baldwin <jhb@FreeBSD.org>
7015
7016 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
7017 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
7018 AT_FREEBSD_PS_STRINGS.
7019
7020 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
7021
7022 * auto-load.c (auto_load_objfile_script_1): Convert drive part
7023 of debugfile path on Windows.
7024
7025 2020-07-08 John Baldwin <jhb@FreeBSD.org>
7026
7027 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
7028 argument to 'data'.
7029
7030 2020-07-08 Tom Tromey <tromey@adacore.com>
7031
7032 * ada-lang.c (ada_exception_message_1): Use read_memory.
7033
7034 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7035
7036 PR python/22748
7037 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
7038 special handling for inline frames.
7039 * findvar.c (value_of_register_lazy): Skip inline frames when
7040 creating lazy register values.
7041 * frame.c (frame_id_computed_p): Delete definition.
7042 * frame.h (frame_id_computed_p): Delete declaration.
7043
7044 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7045
7046 * NEWS: Mention additions to Python API.
7047 * python/py-arch.c (archpy_register_groups): New function.
7048 (arch_object_methods): Add 'register_groups' method.
7049 * python/py-registers.c (reggroup_iterator_object): New struct.
7050 (reggroup_object): New struct.
7051 (gdbpy_new_reggroup): New function.
7052 (gdbpy_reggroup_to_string): New function.
7053 (gdbpy_reggroup_name): New function.
7054 (gdbpy_reggroup_iter): New function.
7055 (gdbpy_reggroup_iter_next): New function.
7056 (gdbpy_new_reggroup_iterator): New function
7057 (gdbpy_initialize_registers): Register new types.
7058 (reggroup_iterator_object_type): Define new Python type.
7059 (gdbpy_reggroup_getset): New static global.
7060 (reggroup_object_type): Define new Python type.
7061 * python/python-internal.h
7062
7063 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7064
7065 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
7066 * python/py-arch.c (archpy_registers): New function.
7067 (arch_object_methods): Add 'registers' method.
7068 * python/py-registers.c: New file.
7069 * python/python-internal.h
7070 (gdbpy_new_register_descriptor_iterator): Declare.
7071 (gdbpy_initialize_registers): Declare.
7072 * python/python.c (do_start_initialization): Call
7073 gdbpy_initialize_registers.
7074 * NEWS: Mention additions to the Python API.
7075
7076 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7077
7078 * NEWS: Mention new Python API method.
7079 * python/py-unwind.c (pending_framepy_architecture): New function.
7080 (pending_frame_object_methods): Add architecture method.
7081
7082 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7083
7084 * gdbarch.c: Regenerate.
7085 * gdbarch.h: Regenerate.
7086 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
7087 (gdbarch_data): Use internal_error for the case where
7088 deprecated_set_gdbarch_data was originally needed.
7089 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
7090 and use passed in obstack.
7091 (libunwind_frame_set_descr): Should no longer get back NULL from
7092 gdbarch_data.
7093 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
7094 type.
7095 * user-regs.c (user_regs_init): Update parameters, and use passed
7096 in obstack.
7097 (user_reg_add): Should no longer get back NULL from gdbarch_data.
7098 (_initialize_user_regs): Register as a pre-init gdbarch data type.
7099
7100 2020-07-06 Tom de Vries <tdevries@suse.de>
7101
7102 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
7103 End-Of-Sequence in lte_is_less_than.
7104 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
7105 "gdb: Don't reorder line table entries too much when sorting".
7106
7107 2020-07-06 Tom de Vries <tdevries@suse.de>
7108
7109 PR tui/26205
7110 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
7111
7112 2020-07-05 Tom de Vries <tdevries@suse.de>
7113
7114 PR build/26187
7115 * inferior.h (struct infcall_suspend_state_deleter): If available, use
7116 std::uncaught_exceptions instead of deprecated
7117 std::uncaught_exception.
7118
7119 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7120
7121 * macroexp.h (macro_stringify): Return
7122 gdb::unique_xmalloc_ptr<char>.
7123 * macroexp.c (macro_stringify): Likewise.
7124 * macrotab.c (fixup_definition): Update.
7125
7126 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7127
7128 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
7129 (lex_one_token): Update.
7130 * macroexp.c (struct macro_buffer) <release>: Return
7131 gdb::unique_xmalloc_ptr<char>.
7132 (macro_stringify): Update.
7133 (macro_expand): Update.
7134 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
7135 * macroexp.h (macro_expand_next): Likewise.
7136
7137 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
7138
7139 * macroexp.h (macro_lookup_ftype): Remove.
7140 (macro_expand, macro_expand_once, macro_expand_next): Remove
7141 lookup function parameters, add scope parameter.
7142 * macroexp.c (scan, substitute_args, expand, maybe_expand,
7143 macro_expand, macro_expand_once, macro_expand_next): Likewise.
7144 * macroscope.h (standard_macro_lookup): Change parameter type
7145 to macro_scope.
7146 * macroscope.c (standard_macro_lookup): Likewise.
7147 * c-exp.y (lex_one_token): Update.
7148 * macrocmd.c (macro_expand_command): Likewise.
7149 (macro_expand_once_command): Likewise.
7150
7151 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7152
7153 * inf-loop.c (inferior_event_handler): Remove client_data param.
7154 * inf-loop.h (inferior_event_handler): Likewise.
7155 * infcmd.c (step_1): Adjust.
7156 * infrun.c (proceed): Adjust.
7157 (fetch_inferior_event): Remove client_data param.
7158 (infrun_async_inferior_event_handler): Adjust.
7159 * infrun.h (fetch_inferior_event): Remove `void *` param.
7160 * linux-nat.c (handle_target_event): Adjust.
7161 * record-btrace.c (record_btrace_handle_async_inferior_event):
7162 Adjust.
7163 * record-full.c (record_full_async_inferior_event_handler):
7164 Adjust.
7165 * remote.c (remote_async_inferior_event_handler): Adjust.
7166
7167 2020-07-01 Tom Tromey <tom@tromey.com>
7168
7169 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
7170 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
7171
7172 2020-07-01 Tom Tromey <tom@tromey.com>
7173
7174 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
7175 tui_gen_win_info.
7176 (tui_win_info::make_window): Merge with
7177 tui_gen_win_info::make_window.
7178 (tui_win_info::make_visible): Move from tui_gen_win_info.
7179 * tui/tui-win.c (tui_win_info::max_width): Move from
7180 tui_gen_win_info.
7181 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
7182 type.
7183 <window_factory>: Likewise.
7184 * tui/tui-layout.c (tui_win_info::resize): Move from
7185 tui_gen_win_info.
7186 (make_standard_window): Change return type.
7187 (get_locator_window, tui_get_window_by_name): Likewise.
7188 (tui_layout_window::apply): Remove a cast.
7189 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
7190 (struct tui_win_info): Merge with tui_gen_win_info.
7191 (struct tui_gen_win_info): Remove.
7192
7193 2020-07-01 Tom Tromey <tom@tromey.com>
7194
7195 * tui/tui-stack.h (struct tui_locator_window): Derive from
7196 tui_win_info.
7197 <do_scroll_horizontal, do_scroll_vertical>: New methods.
7198 <can_box>: New method.
7199
7200 2020-07-01 Tom Tromey <tom@tromey.com>
7201
7202 * tui/tui-stack.h (struct tui_locator_window): Remove body.
7203
7204 2020-07-01 Tom Tromey <tom@tromey.com>
7205
7206 * tui/tui-regs.c (tui_data_window::display_registers_from)
7207 (tui_data_window::display_registers_from)
7208 (tui_data_window::first_data_item_displayed)
7209 (tui_data_window::delete_data_content_windows): Update.
7210 (tui_data_window::refresh_window, tui_data_window::no_refresh):
7211 Remove.
7212 (tui_data_window::check_register_values): Update.
7213 (tui_data_item_window::rerender): Add parameters. Update.
7214 (tui_data_item_window::refresh_window): Remove.
7215 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
7216 virtual.
7217 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
7218 tui_gen_win_info.
7219 <refresh_window, max_height, min_height>: Remove.
7220 <rerender>: Add parameters.
7221 <x, y, visible>: New members.
7222 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
7223 <m_item_width>: New member.
7224
7225 2020-07-01 Tom Tromey <tom@tromey.com>
7226
7227 * tui/tui-regs.c (tui_data_window::show_register_group)
7228 (tui_data_window::check_register_values): Update.
7229 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
7230 from item_no.
7231
7232 2020-07-01 Tom Tromey <tom@tromey.com>
7233
7234 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
7235 useless "if".
7236
7237 2020-07-01 Tom Tromey <tom@tromey.com>
7238
7239 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
7240 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
7241
7242 2020-07-01 Tom Tromey <tom@tromey.com>
7243
7244 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
7245 * tui/tui-winsource.h (enum tui_line_or_address_kind)
7246 (struct tui_line_or_address): Move from tui-data.h.
7247 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
7248 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
7249 (tui_cmd_window, tui_source_window_base, tui_source_window)
7250 (tui_disasm_window): Don't declare.
7251 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
7252 to tui-winsource.h.
7253 (SINGLE_KEY): Move to tui-stack.c.
7254
7255 2020-07-01 Tom Tromey <tom@tromey.com>
7256
7257 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
7258 std::string.
7259 * tui/tui-regs.c (class tab_expansion_file): New.
7260 (tab_expansion_file::write): New method.
7261 (tui_register_format): Change return type. Use
7262 tab_expansion_file.
7263 (tui_get_register, tui_data_window::display_registers_from)
7264 (tui_data_item_window::rerender): Update.
7265 * tui/tui-io.h (tui_expand_tabs): Don't declare.
7266 * tui/tui-io.c (tui_expand_tabs): Remove.
7267
7268 2020-07-01 Tom Tromey <tom@tromey.com>
7269
7270 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
7271
7272 2020-07-01 Fangrui Song <maskray@google.com>
7273
7274 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
7275
7276 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7277
7278 * dwarf2/read.c (set_die_type): Removed conditions to restrict
7279 forms for DW_AT_associated and DW_AT_allocated attributes,
7280 which is already checked in function attr_to_dynamic_prop.
7281
7282 2020-06-30 Tom Tromey <tromey@adacore.com>
7283
7284 * dwarf2/read.c (quirk_rust_enum): Correctly call
7285 alloc_rust_variant for default-less enum.
7286
7287 2020-06-30 Tom Tromey <tromey@adacore.com>
7288
7289 PR build/26183:
7290 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
7291 gdb::to_string.
7292
7293 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
7294
7295 * gdbarch.sh (displaced_step_copy_insn): Update doc.
7296 * gdbarch.h: Re-generate.
7297
7298 2020-06-28 Tom Tromey <tom@tromey.com>
7299
7300 * command.h (cmd_types): Remove.
7301 (cmd_type): Don't declare.
7302 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
7303 typedef.
7304 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
7305 * cli/cli-decode.c (cmd_type): Remove.
7306
7307 2020-06-27 Pedro Alves <palves@redhat.com>
7308
7309 * fork-child.c (prefork_hook): Adjust.
7310 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
7311 Delete.
7312 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
7313 * inferior.c (inferior::set_tty, inferior::tty): New methods.
7314 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
7315 Remove declarations.
7316 (struct inferior) <set_tty, tty>: New methods.
7317 (struct inferior) <terminal>: Rename to ...
7318 (struct inferior) <m_terminal>: ... this and make private.
7319 * main.c (captured_main_1): Adjust.
7320 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
7321 (mi_cmd_inferior_tty_show): Adjust.
7322 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
7323 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
7324
7325 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
7326
7327 * configure.ac: Add --enable-libctf: handle --disable-static
7328 properly.
7329 * acinclude.m4: sinclude ../config/enable.m4.
7330 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
7331 (LIBCTF): Substitute in.
7332 (CTF_DEPS): New, likewise.
7333 (CLIBS): libctf needs symbols from libbfd: move earlier.
7334 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
7335 flags.
7336 * ctfread.c: Surround in ENABLE_LIBCTF.
7337 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
7338 * configure: Regenerate.
7339 * config.in: Likewise.
7340
7341 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
7342
7343 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
7344
7345 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
7346
7347 * inferior.h (struct inferior) <terminal>: Change type to
7348 gdb::unique_xmalloc_ptr<char>.
7349 * inferior.c (inferior::~inferior): Don't free inf->terminal.
7350 * infcmd.c (set_inferior_io_terminal): Don't free terminal
7351 field, adjust to unique pointer.
7352 (get_inferior_io_terminal): Adjust to unique pointer.
7353
7354 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7355
7356 * riscv-tdep.c (riscv_print_registers_info): Loop over all
7357 registers, not just the known core set of registers.
7358
7359 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7360
7361 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
7362 fflags, frm, and fcsr registers.
7363 (riscv_register_reggroup_p): Remove unknown CSRs from save and
7364 restore groups.
7365 (riscv_tdesc_unknown_reg): New function.
7366 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
7367 tdesc_use_registers.
7368 * riscv-tdep.h (struct gdbarch_tdep): Add
7369 unknown_csrs_first_regnum, unknown_csrs_count,
7370 duplicate_fflags_regnum, duplicate_frm_regnum, and
7371 duplicate_fcsr_regnum fields.
7372
7373 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7374
7375 * target-descriptions.c (tdesc_use_registers): Add new parameter a
7376 callback, use the callback (when not null) to help number unknown
7377 registers.
7378 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
7379 (tdesc_use_registers): Add extra parameter to declaration.
7380
7381 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7382
7383 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
7384 in the file.
7385 (class riscv_pending_register_alias): Likewise.
7386 (riscv_register_feature::register_info): Change 'required_p' field
7387 to 'required', and change its type. Add 'check' member function.
7388 (riscv_register_feature::register_info::check): Define new member
7389 function.
7390 (riscv_xreg_feature): Change initialisation of 'required' field.
7391 (riscv_freg_feature): Likewise.
7392 (riscv_virtual_feature): Likewise.
7393 (riscv_csr_feature): Likewise.
7394 (riscv_check_tdesc_feature): Take extra parameter, the csr
7395 tdesc_feature, rewrite the function to use the new
7396 riscv_register_feature::register_info::check function.
7397 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
7398
7399 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7400
7401 * features/Makefile: Remove all references to the deleted files
7402 below.
7403 * features/riscv/32bit-csr.c: Deleted.
7404 * features/riscv/32bit-csr.xml: Deleted.
7405 * features/riscv/64bit-csr.c: Deleted.
7406 * features/riscv/64bit-csr.xml: Deleted.
7407 * features/riscv/rebuild-csr-xml.sh: Deleted.
7408
7409 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7410
7411 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
7412 whitespace error for declaration of names member variable.
7413 (struct riscv_register_feature): Add new prefer_first_name member
7414 variable, and fix whitespace error in declaration of registers.
7415 (riscv_xreg_feature): Initialize prefer_first_name field.
7416 (riscv_freg_feature): Likewise.
7417 (riscv_virtual_feature): Likewise.
7418 (riscv_csr_feature): Likewise.
7419 (riscv_register_name): Expand on comments. Remove register name
7420 modifications for CSR and virtual registers.
7421
7422 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7423
7424 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
7425 errors.
7426
7427 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7428
7429 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
7430 riscv-opc.h.
7431 (class riscv_pending_register_alias): New class.
7432 (riscv_check_tdesc_feature): Take vector of pending aliases and
7433 populate it as appropriate.
7434 (riscv_setup_register_aliases): Delete.
7435 (riscv_gdbarch_init): Create vector of pending aliases and pass it
7436 to riscv_check_tdesc_feature in all cases. Use the vector to
7437 create the register aliases.
7438
7439 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7440
7441 * sol2-tdep.c (sol2_static_transform_name): Remove.
7442 (sol2_init_abi): Don't register it.
7443 * gdbarch.sh (static_transform_name): Remove.
7444 * gdbarch.c, gdbarch.h: Regenerate.
7445
7446 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
7447 gdbarch_static_transform_name.
7448 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
7449 * stabsread.c (define_symbol) <'X'>: Remove.
7450 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
7451 handling.
7452 <'V'>: Likewise.
7453 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
7454 <'S'>: Remove call to gdbarch_static_transform_name.
7455
7456 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7457
7458 * procfs.c (procfs_pre_trace): New function.
7459 (procfs_target::create_inferior): Pass it to fork_inferior.
7460
7461 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7462
7463 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
7464 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
7465 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
7466 sol2-tdep.o, sparc-sol2-tdep.o.
7467 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
7468 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
7469 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
7470 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
7471
7472 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7473
7474 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
7475 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
7476 Call sol2_init_abi.
7477 Remove calls to set_gdbarch_skip_solib_resolver,
7478 set_gdbarch_core_pid_to_str.
7479 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
7480 (i386_sol2_static_transform_name): Remove.
7481 (i386_sol2_init_abi): Call sol2_init_abi.
7482 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7483 set_gdbarch_static_transform_name,
7484 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
7485 Use sol2_sigtramp_p.
7486 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
7487 (sol2_sigtramp_p): New function.
7488 (sol2_static_transform_name): New function.
7489 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
7490 (sol2_init_abi): New function.
7491 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
7492 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
7493 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
7494 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
7495 (sparc_sol2_static_transform_name): Remove.
7496 (sparc32_sol2_init_abi): Call sol2_init_abi.
7497 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7498 set_gdbarch_static_transform_name,
7499 set_gdbarch_skip_solib_resolver,
7500 set_gdbarch_core_pid_to_str.
7501 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
7502 (sparc_sol2_static_transform_name): Remove
7503 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
7504 call sol2_sigtramp_p.
7505 (sparc64_sol2_init_abi): Call sol2_init_abi.
7506 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7507 set_gdbarch_static_transform_name,
7508 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
7509
7510 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7511
7512 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
7513 * exec.c (validate_exec_file): If from_tty, set both
7514 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
7515 * symfile.c (symbol_file_add_with_addrs): if always_confirm
7516 and from_tty, unconditionally ask a confirmation.
7517
7518 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7519
7520 * target-descriptions.c (tdesc_architecture_name): Protect against
7521 NULL pointer dereference.
7522 (maint_print_xml_tdesc_cmd): New function.
7523 (_initialize_target_descriptions): Register new 'maint print
7524 xml-tdesc' command and give it the filename completer.
7525 * NEWS: Mention new 'maint print xml-tdesc' command.
7526
7527 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7528
7529 * target-descriptions.c (class tdesc_compatible_info): New class.
7530 (struct target_desc): Change type of compatible vector.
7531 (tdesc_compatible_p): Update for change in type of
7532 target_desc::compatible.
7533 (tdesc_compatible_info_list): New function.
7534 (tdesc_compatible_info_arch_name): New function.
7535 (tdesc_add_compatible): Update for change in type of
7536 target_desc::compatible.
7537 (print_c_tdesc::visit_pre): Likewise.
7538
7539 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7540
7541 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
7542 whitespace to underscore.
7543 (maint_print_c_tdesc_cmd): Use fake filename for target
7544 descriptions that came from the target.
7545 (_initialize_target_descriptions): Add filename command completion
7546 for 'maint print c-tdesc'.
7547
7548 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
7549
7550 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
7551 lines.
7552
7553 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
7554
7555 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
7556 lines.
7557 (dwarf2_find_location_expression): Likewise.
7558 (call_site_parameter_matches): Likewise.
7559 (dwarf2_compile_expr_to_ax): Likewise.
7560 (disassemble_dwarf_expression): Likewise.
7561 (loclist_describe_location): Likewise.
7562
7563 2020-06-23 Pedro Alves <palves@redhat.com>
7564
7565 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
7566 progspace-and-thread.h. Include scoped-mock-context.h instead.
7567 (register_to_value_test): Use scoped_mock_context.
7568 * regcache.c: Include "scoped-mock-context.h".
7569 (cooked_read_test): Don't error out if a target is already pushed.
7570 Use scoped_mock_context. Adjust.
7571 * scoped-mock-context.h: New file.
7572
7573 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7574
7575 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
7576 initializer.
7577 (ada_language::is_string_type_p): New member function.
7578 * c-lang.c (c_language_data): Delete la_is_string_type_p
7579 initializer.
7580 (cplus_language_data): Likewise.
7581 (asm_language_data): Likewise.
7582 (minimal_language_data): Likewise.
7583 * d-lang.c (d_language_data): Likewise.
7584 * f-lang.c (f_is_string_type_p): Delete function, implementation
7585 moved to f_language::is_string_type_p.
7586 (f_language_data): Delete la_is_string_type_p initializer.
7587 (f_language::is_string_type_p): New member function,
7588 implementation from f_is_string_type_p.
7589 * go-lang.c (go_is_string_type_p): Delete function, implementation
7590 moved to go_language::is_string_type_p.
7591 (go_language_data): Delete la_is_string_type_p initializer.
7592 (go_language::is_string_type_p): New member function,
7593 implementation from go_is_string_type_p.
7594 * language.c (language_defn::is_string_type_p): Define new member
7595 function.
7596 (default_is_string_type_p): Make static, add comment copied from
7597 header file.
7598 (unknown_language_data): Delete la_is_string_type_p initializer.
7599 (unknown_language::is_string_type_p): New member function.
7600 (auto_language_data): Delete la_is_string_type_p initializer.
7601 (auto_language::is_string_type_p): New member function.
7602 * language.h (language_data): Delete la_is_string_type_p field.
7603 (language_defn::is_string_type_p): Declare new function.
7604 (default_is_string_type_p): Delete desclaration, move comment to
7605 definition.
7606 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
7607 moved to m2_language::is_string_type_p.
7608 (m2_language_data): Delete la_is_string_type_p initializer.
7609 (m2_language::is_string_type_p): New member function,
7610 implementation from m2_is_string_type_p.
7611 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
7612 initializer.
7613 * opencl-lang.c (opencl_language_data): Likewise.
7614 * p-lang.c (pascal_is_string_type_p): Delete function,
7615 implementation moved to pascal_language::is_string_type_p.
7616 (pascal_language_data): Delete la_is_string_type_p initializer.
7617 (pascal_language::is_string_type_p): New member function,
7618 implementation from pascal_is_string_type_p.
7619 * rust-lang.c (rust_is_string_type_p): Delete function,
7620 implementation moved to rust_language::is_string_type_p.
7621 (rust_language_data): Delete la_is_string_type_p initializer.
7622 (rust_language::is_string_type_p): New member function,
7623 implementation from rust_is_string_type_p.
7624 * valprint.c (val_print_scalar_or_string_type_p): Update call to
7625 is_string_type_p.
7626
7627 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7628
7629 * ada-lang.c (ada_language_data): Delete la_print_typedef
7630 initializer.
7631 (ada_language::print_typedef): New member function.
7632 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
7633 (cplus_language_data): Likewise.
7634 (asm_language_data): Likewise.
7635 (minimal_language_data): Likewise.
7636 * d-lang.c (d_language_data): Likewise.
7637 * f-lang.c (f_language_data): Likewise.
7638 (f_language::print_typedef): New member function.
7639 * go-lang.c (go_language_data): Delete la_print_typedef
7640 initializer.
7641 * language.c (language_defn::print_typedef): Define member
7642 function.
7643 (unknown_language_data): Delete la_print_typedef initializer.
7644 (unknown_language::print_typedef): New member function.
7645 (auto_language_data): Delete la_print_typedef initializer.
7646 (auto_language::print_typedef): New member function.
7647 * language.h (language_data): Delete la_print_typedef field.
7648 (language_defn::print_typedef): Declare new member function.
7649 (LA_PRINT_TYPEDEF): Update call to print_typedef.
7650 (default_print_typedef): Delete declaration.
7651 * m2-lang.c (m2_language_data): Delete la_print_typedef
7652 initializer.
7653 (m2_language::print_typedef): New member function.
7654 * objc-lang.c (objc_language_data): Delete la_print_typedef
7655 initializer.
7656 * opencl-lang.c (opencl_language_data): Likewise.
7657 * p-lang.c (pascal_language_data): Likewise.
7658 (pascal_language::print_typedef): New member function.
7659 * rust-lang.c (rust_print_typedef): Delete function,
7660 implementation moved to rust_language::print_typedef.
7661 (rust_language): Delete la_print_typedef initializer.
7662 (rust_language::print_typedef): New member function,
7663 implementation from rust_print_typedef.
7664 * typeprint.c (default_print_typedef): Delete.
7665
7666 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7667
7668 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
7669 (ada_language::printstr): New member function.
7670 * c-lang.c (c_language_data): Delete la_printstr initializer.
7671 (cplus_language_data): Likewise.
7672 (asm_language_data): Likewise.
7673 (minimal_language_data): Likewise.
7674 * d-lang.c (d_language_data): Likewise.
7675 * f-lang.c (f_printstr): Rename to f_language::printstr.
7676 (f_language_data): Delete la_printstr initializer.
7677 (f_language::printstr): New member function, implementation from
7678 f_printstr.
7679 * go-lang.c (go_language_data): Delete la_printstr initializer.
7680 * language.c (language_defn::printstr): Define new member
7681 function.
7682 (unk_lang_printstr): Delete.
7683 (unknown_language_data): Delete la_printstr initializer.
7684 (unknown_language::printstr): New member function.
7685 (auto_language_data): Delete la_printstr initializer.
7686 (auto_language::printstr): New member function.
7687 * language.h (language_data): Delete la_printstr field.
7688 (language_defn::printstr): Declare new member function.
7689 (LA_PRINT_STRING): Update call to printstr.
7690 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
7691 (m2_language_data): Delete la_printstr initializer.
7692 (m2_language::printstr): New member function, implementation from
7693 m2_printstr.
7694 * objc-lang.c (objc_language_data): Delete la_printstr
7695 initializer.
7696 * opencl-lang.c (opencl_language_data): Likewise.
7697 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
7698 (pascal_language_data): Delete la_printstr initializer.
7699 (pascal_language::printstr): New member function, implementation
7700 from pascal_printstr.
7701 * p-lang.h (pascal_printstr): Delete declaration.
7702 * rust-lang.c (rust_printstr): Update header comment.
7703 (rust_language_data): Delete la_printstr initializer.
7704 (rust_language::printstr): New member function.
7705
7706 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7707
7708 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
7709 (ada_language::printchar): New member function.
7710 * c-lang.c (c_language_data): Delete la_printchar initializer.
7711 (cplus_language_data): Likewise.
7712 (asm_language_data): Likewise.
7713 (minimal_language_data): Likewise.
7714 * d-lang.c (d_language_data): Likewise.
7715 * f-lang.c (f_printchar): Rename to f_language::printchar.
7716 (f_language_data): Delete la_printchar initializer.
7717 (f_language::printchar): New member function, implementation from
7718 f_printchar.
7719 * go-lang.c (go_language_data): Delete la_printchar initializer.
7720 * language.c (unk_lang_printchar): Delete.
7721 (language_defn::printchar): Define new member function.
7722 (unknown_language_data): Delete la_printchar initializer.
7723 (unknown_language::printchar): New member function.
7724 (auto_language_data): Delete la_printchar initializer.
7725 (auto_language::printchar): New member function.
7726 * language.h (language_data): Delete la_printchar field.
7727 (language_defn::printchar): Declare new member function.
7728 (LA_PRINT_CHAR): Update call to printchar.
7729 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
7730 (m2_language::printchar): New member function.
7731 * objc-lang.c (objc_language_data): Delete la_printchar
7732 initializer.
7733 * opencl-lang.c (opencl_language_data): Likewise.
7734 * p-lang.c (pascal_language_data): Delete la_printchar
7735 initializer.
7736 (pascal_language::printchar): New member function.
7737 * rust-lang.c (rust_printchar): Rename to
7738 rust_language::printchar.
7739 (rust_language_data): Delete la_printchar initializer.
7740 (rust_language::printchar): New member function, implementation
7741 from rust_printchar.
7742
7743 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7744
7745 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
7746 (ada_language_data): Delete la_emitchar initializer.
7747 (ada_language::emitchar): New member function, implementation from
7748 emit_char.
7749 * c-lang.c (c_language_data): Delete la_emitchar initializer.
7750 (cplus_language_data): Likewise.
7751 (asm_language_data): Likewise.
7752 (minimal_language_data): Likewise.
7753 * d-lang.c (d_language_data): Likewise.
7754 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
7755 (f_language_data): Delete la_emitchar initializer.
7756 (f_language::emitchar): New member function, implementation from
7757 f_emit_char.
7758 * go-lang.c (go_language_data): Delete la_emitchar initializer.
7759 * language.c (unk_lang_emit_char): Delete.
7760 (language_defn::emitchar): New member function definition.
7761 (unknown_language_data): Delete la_emitchar initializer.
7762 (unknown_language::emitchar): New member function.
7763 (auto_language_data): Delete la_emitchar initializer.
7764 (auto_language::emitchar): New member function.
7765 * language.h (language_data): Delete la_emitchar field.
7766 (language_defn::emitchar): New member field declaration.
7767 (LA_EMIT_CHAR): Update call to emitchar.
7768 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
7769 (m2_language_data): Delete la_emitchar initializer.
7770 (m2_language::emitchar): New member function, implementation from
7771 m2_emit_char.
7772 * objc-lang.c (objc_language_data): Delete la_emitchar
7773 initializer.
7774 * opencl-lang.c (opencl_language_data): Likewise.
7775 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
7776 (pascal_language_data): Delete la_emitchar initializer.
7777 (pascal_language::emitchar): New member function, implementation
7778 from pascal_emit_char.
7779 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
7780 (rust_language_data): Delete la_emitchar initializer.
7781 (rust_language::emitchar): New member function, implementation
7782 from rust_emitchar.
7783
7784 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7785
7786 * ada-lang.c (resolve): Rename to ada_language::post_parser.
7787 (ada_language_data): Delete la_post_parser initializer.
7788 (ada_language::post_parser): New member function.
7789 * c-lang.c (c_language_data): Delete la_post_parser initializer.
7790 (cplus_language_data): Likewise.
7791 (asm_language_data): Likewise.
7792 (minimal_language_data): Likewise.
7793 * d-lang.c (d_language_data): Likewise.
7794 * f-lang.c (f_language_data): Likewise.
7795 * go-lang.c (go_language_data): Likewise.
7796 * language.c (unknown_language_data): Likewise.
7797 (auto_language_data): Likewise.
7798 * language.h (language_data): Delete la_post_parser field.
7799 (language_defn::post_parser): New member function.
7800 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
7801 * objc-lang.c (objc_language_data): Likewise.
7802 * opencl-lang.c (opencl_language_data): Likewise.
7803 * p-lang.c (pascal_language_data): Likewise.
7804 * parse.c (parse_exp_in_context): Update call to post_parser.
7805 (null_post_parser): Delete definition.
7806 * parser-defs.h (null_post_parser): Delete declaration.
7807 * rust-lang.c (rust_language_data): Delete la_post_parser
7808 initializer.
7809
7810 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7811
7812 * ada-lang.c (parse): Rename to ada_language::parser.
7813 (ada_language_data): Delete la_parser initializer.
7814 (ada_language::parser): New member function, implementation from
7815 parse.
7816 * c-lang.c (c_language_data): Delete la_parser initializer.
7817 (cplus_language_data): Likewise.
7818 (asm_language_data): Likewise.
7819 (minimal_language_data): Likewise.
7820 * d-lang.c (d_language_data): Likewise.
7821 (d_language::parser): New member function.
7822 * f-lang.c (f_language_data): Delete la_parser initializer.
7823 (f_language::parser): New member function.
7824 * go-lang.c (go_language_data): Delete la_parser initializer.
7825 (go_language::parser): New member function.
7826 * language.c (unk_lang_parser): Delete.
7827 (language_defn::parser): Define new member function.
7828 (unknown_language_data): Delete la_parser initializer.
7829 (unknown_language::parser): New member function.
7830 (auto_language_data): Delete la_parser initializer.
7831 (auto_language::parser): New member function.
7832 * language.h (language_data): Delete la_parser field.
7833 (language_defn::parser): Declare new member function.
7834 * m2-lang.c (m2_language_data): Delete la_parser initializer.
7835 (m2_language::parser): New member function.
7836 * objc-lang.c (objc_language_data): Delete la_parser initializer.
7837 * opencl-lang.c (opencl_language_data): Likewise.
7838 * p-lang.c (pascal_language_data): Likewise.
7839 (pascal_language::parser): New member function.
7840 * parse.c (parse_exp_in_context): Update call to parser.
7841 * rust-lang.c (rust_language_data): Delete la_parser initializer.
7842 (rust_language::parser): New member function.
7843
7844 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7845
7846 * top.c (print_gdb_configuration): Print --with-python-libdir
7847 configuration value.
7848
7849 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7850
7851 * NEWS: Mention change to the alias command.
7852
7853 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7854
7855 * cli/cli-cmds.c (lookup_cmd_for_default_args)
7856 (alias_command_completer)
7857 (make_alias_options_def_group): New functions.
7858 (alias_opts, alias_option_defs): New struct and array.
7859 (alias_usage_error): Update usage.
7860 (alias_command): Handles optional DEFAULT-ARGS... arguments.
7861 Use option framework.
7862 (_initialize_cli_cmds): Update alias command help.
7863 Update aliases command help.
7864 (show_user):
7865 Add NULL for new default_args lookup_cmd argument.
7866 (valid_command_p): Rename to validate_aliased_command.
7867 Add NULL for new default_args lookup_cmd argument. Verify that the
7868 aliased_command has no default args.
7869 * cli/cli-decode.c (help_cmd): Show aliases definitions.
7870 (lookup_cmd_1, lookup_cmd): New argument default_args.
7871 (add_alias_cmd):
7872 Add NULL for new default_args lookup_cmd argument.
7873 (print_help_for_command): Show default args under the layout
7874 alias some_alias = some_aliased_cmd some_alias_default_arg.
7875 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
7876 xfree default_args in destructor.
7877 * cli/cli-script.c (process_next_line, do_define_command):
7878 Add NULL for new default_args lookup_cmd argument.
7879 * command.h: Declare new default_args argument in lookup_cmd
7880 and lookup_cmd_1.
7881 * completer.c (complete_line_internal_1):
7882 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7883 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
7884 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
7885 Likewise.
7886 * infcmd.c (_initialize_infcmd): Likewise.
7887 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
7888 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
7889 * python/py-param.c (add_setshow_generic): Likewise.
7890 * remote.c (_initialize_remote): Likewise.
7891 * top.c (execute_command): Prepend default_args if command has some.
7892 (set_verbose):
7893 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7894 * tracepoint.c (validate_actionline, encode_actions_1):
7895 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7896
7897 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7898
7899 * jit.c (jit_read_descriptor): Use bool as the return type.
7900 (jit_breakpoint_re_set_internal): Use bool as the return type.
7901 Invert the return value logic; return true if the jit breakpoint
7902 has been successfully initialized.
7903 (jit_inferior_init): Update the call to
7904 jit_breakpoint_re_set_internal.
7905
7906 2020-06-22 Pedro Alves <palves@redhat.com>
7907
7908 PR gdb/25939
7909 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
7910 Use the current inferior instead. Don't return
7911 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
7912 wait again.
7913 * sol-thread.c (sol_thread_target::wait): Don't reference
7914 inferior_ptid.
7915 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
7916 (sol_update_thread_list_callback): Use the current inferior's pid
7917 instead of inferior_ptid.
7918
7919 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7920
7921 * procfs.c: Cleanup many comments.
7922
7923 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
7924 (AFTER_WATCHFLAG): Replace by value.
7925
7926 (MAIN_PROC_NAME_FORMAT): Inline ...
7927 (create_procinfo): ... here.
7928
7929 (procfs_debug_inferior): Remove SYS_exec handling.
7930 (syscall_is_exec): Likewise.
7931 (procfs_set_exec_trap): Likewise.
7932
7933 (syscall_is_lwp_exit): Inline in callers.
7934 (syscall_is_exit): Likewise.
7935 (syscall_is_exec): Likewise.
7936 (syscall_is_lwp_create): Likewise.
7937
7938 (invalidate_cache): Remove #if 0 code.
7939
7940 (make_signal_thread_runnable): Remove.
7941 (procfs_target::resume): Remove #if 0 code.
7942
7943 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7944
7945 PR gdb/25939
7946 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
7947 call ...
7948 (procfs_target::create_inferior): ... here.
7949
7950 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7951
7952 * exec.c (validate_exec_file): Ensure the build-id is up to
7953 date by calling reopen_exec_file (that checks file timestamp
7954 to decide to re-read the file).
7955
7956 2020-06-18 Pedro Alves <palves@redhat.com>
7957
7958 PR gdb/25412
7959 * gdbthread.h (delete_thread, delete_thread_silent)
7960 (find_thread_ptid): Update comments.
7961 * thread.c (current_thread_): New global.
7962 (is_current_thread): Move higher, and reimplement.
7963 (inferior_thread): Reimplement.
7964 (set_thread_exited): Use bool. Add assertions.
7965 (add_thread_silent): Simplify thread-reuse handling by always
7966 calling delete_thread.
7967 (delete_thread): Remove intro comment.
7968 (find_thread_ptid): Skip exited threads.
7969 (switch_to_thread_no_regs): Write to current_thread_.
7970 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
7971 INFERIOR_PTID. Clear current_thread_.
7972
7973 2020-06-18 Pedro Alves <palves@redhat.com>
7974
7975 * aix-thread.c (pd_update): Use switch_to_thread.
7976
7977 2020-06-18 Pedro Alves <palves@redhat.com>
7978
7979 * ravenscar-thread.c (ravenscar_thread_target): Update.
7980 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
7981 (ravenscar_thread_target::add_active_thread): ... this. Don't
7982 set m_base_ptid here. Update to avoid referencing inferior_ptid.
7983 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
7984
7985 2020-06-18 Pedro Alves <palves@redhat.com>
7986
7987 * nat/windows-nat.c (current_windows_thread): Remove.
7988 * nat/windows-nat.h (current_windows_thread): Remove.
7989 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
7990 Adjust.
7991 (display_selectors): Adjust to fetch the current
7992 windows_thread_info based on inferior_ptid.
7993 (fake_create_process): No longer write to current_windows_thread.
7994 (windows_nat_target::get_windows_debug_event):
7995 Don't set inferior_ptid or current_windows_thread.
7996 (windows_nat_target::wait): Adjust to not rely on
7997 current_windows_thread.
7998 (do_initial_windows_stuff): Now a method of windows_nat_target.
7999 Switch to the last_ptid thread.
8000 (windows_nat_target::attach): Adjust.
8001 (windows_nat_target::detach): Use switch_to_no_thread instead of
8002 writing to inferior_ptid directly.
8003 (windows_nat_target::create_inferior): Adjust.
8004
8005 2020-06-18 Pedro Alves <palves@redhat.com>
8006
8007 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
8008
8009 2020-06-18 Pedro Alves <palves@redhat.com>
8010
8011 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
8012 after creating it, instead of writing to inferior_ptid. Don't
8013 write to inferior_ptid.
8014
8015 2020-06-18 Pedro Alves <palves@redhat.com>
8016
8017 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
8018
8019 2020-06-18 Pedro Alves <palves@redhat.com>
8020
8021 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
8022 it, instead of writing to inferior_ptid.
8023
8024 2020-06-18 Pedro Alves <palves@redhat.com>
8025
8026 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
8027 to inferior_ptid.
8028
8029 2020-06-18 Pedro Alves <palves@redhat.com>
8030
8031 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
8032 instead of writing to inferior_ptid directly.
8033
8034 2020-06-18 Pedro Alves <palves@redhat.com>
8035
8036 * corelow.c (core_target::close): Use switch_to_no_thread instead
8037 of writing to inferior_ptid directly.
8038 (add_to_thread_list, core_target_open): Use switch_to_thread
8039 instead of writing to inferior_ptid directly.
8040
8041 2020-06-18 Pedro Alves <palves@redhat.com>
8042
8043 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
8044 inferior_ptid.
8045 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
8046 inferior_ptid.
8047 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
8048 inferior_ptid directly.
8049 (darwin_nat_target::init_thread_list): Switch to thread, instead
8050 of writing to inferior_ptid.
8051 (darwin_nat_target::attach): Don't write to inferior_ptid.
8052 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
8053
8054 2020-06-18 Pedro Alves <palves@redhat.com>
8055
8056 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
8057 thread.
8058 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
8059 Instead use switch_to_thread.
8060 (gnu_nat_target::detach): Use switch_to_no_thread
8061 instead of writing to inferior_ptid directly. Used passed-in
8062 inferior instead of looking up the inferior by pid.
8063
8064 2020-06-18 Pedro Alves <palves@redhat.com>
8065
8066 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
8067 inferior_ptid.
8068
8069 2020-06-18 Pedro Alves <palves@redhat.com>
8070
8071 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
8072 inferior_ptid.
8073 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
8074 thread.
8075 (nto_procfs_target::detach): Avoid referencing
8076 inferior_ptid. Use switch_to_no_thread instead of writing to
8077 inferior_ptid directly.
8078 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
8079 instead of writing to inferior_ptid directly.
8080 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
8081 to thread.
8082
8083 2020-06-18 Pedro Alves <palves@redhat.com>
8084
8085 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
8086 after creating it, instead of writing to inferior_ptid.
8087 (gdbsim_target_open): Use switch_to_no_thread instead of writing
8088 to inferior_ptid directly.
8089 (gdbsim_target::wait): Don't write to inferior_ptid.
8090
8091 2020-06-18 Pedro Alves <palves@redhat.com>
8092
8093 * remote.c (remote_target::remote_notice_new_inferior): Use
8094 switch_to_thread instead of writing to inferior_ptid directly.
8095 (remote_target::add_current_inferior_and_thread): Use
8096 switch_to_no_thread instead of writing to inferior_ptid directly.
8097 (extended_remote_target::attach): Use switch_to_inferior_no_thread
8098 and switch_to_thread instead of using set_current_inferior or
8099 writing to inferior_ptid directly.
8100
8101 2020-06-18 Pedro Alves <palves@redhat.com>
8102
8103 * tracectf.c (ctf_target_open): Switch to added thread instead of
8104 writing to inferior_ptid directly.
8105 (ctf_target::close): Use switch_to_no_thread instead of writing to
8106 inferior_ptid directly.
8107
8108 2020-06-18 Pedro Alves <palves@redhat.com>
8109
8110 * tracefile-tfile.c (tfile_target_open): Don't write to
8111 inferior_ptid directly, instead switch to added thread.
8112 (tfile_target::close): Use switch_to_no_thread instead of writing
8113 to inferior_ptid directly.
8114
8115 2020-06-18 Pedro Alves <palves@redhat.com>
8116
8117 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
8118 (procfs_target::detach): Use switch_to_no_thread
8119 instead of writing to inferior_ptid directly.
8120 (do_attach): Change return type to void. Switch to the added
8121 thread.
8122 (procfs_target::create_inferior): Switch to the added thread.
8123 (procfs_do_thread_registers): Don't write to inferior_ptid.
8124
8125 2020-06-18 Pedro Alves <palves@redhat.com>
8126
8127 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
8128 of writing to inferior_ptid.
8129 (scoped_restore_exited_inferior): Delete.
8130 (handle_vfork_child_exec_or_exit): Simplify using
8131 scoped_restore_current_pspace_and_thread. Use switch_to_thread
8132 instead of writing to inferior_ptid.
8133 (THREAD_STOPPED_BY): Delete.
8134 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
8135 (thread_stopped_by_hw_breakpoint): Delete.
8136 (save_waitstatus): Use
8137 scoped_restore_current_thread+switch_to_thread, and call
8138 target_stopped_by_watchpoint instead of
8139 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
8140 instead of thread_stopped_by_sw_breakpoint, and
8141 target_stopped_by_hw_breakpoint instead of
8142 thread_stopped_by_hw_breakpoint.
8143 (handle_inferior_event)
8144 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
8145 inferior_ptid directly, nor
8146 set_current_inferior/set_current_program_space. Use
8147 switch_to_thread / switch_to_inferior_no_thread instead.
8148
8149 2020-06-18 Pedro Alves <palves@redhat.com>
8150
8151 * target.c (generic_mourn_inferior): Use switch_to_no_thread
8152 instead of writing to inferior_ptid.
8153
8154 2020-06-18 Pedro Alves <palves@redhat.com>
8155
8156 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
8157 added thread.
8158 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
8159 to the added thread.
8160 (inf_ptrace_target::detach_success): Use switch_to_no_thread
8161 instead of writing to inferior_ptid.
8162
8163 2020-06-18 Pedro Alves <palves@redhat.com>
8164
8165 * gdbarch-selftests.c: Include "progspace-and-thread.h".
8166 (register_to_value_test): Mock a program_space too. Heap-allocate
8167 the address space. Don't write to inferior_ptid. Use
8168 switch_to_thread instead.
8169
8170 2020-06-18 Pedro Alves <palves@redhat.com>
8171
8172 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
8173 Delete.
8174 (find_signalled_thread()): New, factored out from
8175 linux_make_corefile_notes and adjusted to handle exited threads.
8176 (linux_make_corefile_notes): Adjust to use the new
8177 find_signalled_thread.
8178
8179 2020-06-18 Pedro Alves <palves@redhat.com>
8180
8181 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
8182 of saving/restoring inferior_ptid.
8183
8184 2020-06-17 Tom Tromey <tom@tromey.com>
8185
8186 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
8187 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
8188 declare.
8189 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
8190
8191 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
8192
8193 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
8194 of partial symtabs.
8195
8196 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
8197
8198 * regformats/reg-arm.dat: Remove.
8199 * regformats/reg-bfin.dat: Remove.
8200 * regformats/reg-cris.dat: Remove.
8201 * regformats/reg-crisv32.dat: Remove.
8202 * regformats/reg-m32r.dat: Remove.
8203 * regformats/reg-tilegx.dat: Remove.
8204 * regformats/reg-tilegx32.dat: Remove.
8205
8206 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
8207
8208 * features/Makefile (WHICH): Remove arm files.
8209 * regformats/arm/arm-with-iwmmxt.dat: Remove.
8210 * regformats/arm/arm-with-neon.dat: Remove.
8211 * regformats/arm/arm-with-vfpv2.dat: Remove.
8212 * regformats/arm/arm-with-vfpv3.dat: Remove.
8213
8214 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
8215
8216 * features/Makefile (XMLTOC): Remove rx.xml.
8217
8218 2020-06-17 Pedro Alves <palves@redhat.com>
8219
8220 * gdbthread.h (thread_control_state) <trap_expected> Update
8221 comments.
8222
8223 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8224
8225 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
8226 ada_language::lookup_symbol_nonlocal.
8227 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
8228 (ada_language::lookup_symbol_nonlocal): New member function,
8229 implementation from ada_lookup_symbol_nonlocal.
8230 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
8231 initializer.
8232 (cplus_language_data): Delete la_lookup_symbol_nonlocal
8233 initializer.
8234 (cplus_language::lookup_symbol_nonlocal): New member function.
8235 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
8236 (minimal_language_data) Likewise.
8237 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
8238 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
8239 initializer.
8240 (d_language::lookup_symbol_nonlocal): New member function.
8241 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
8242 initializer.
8243 (f_language::lookup_symbol_nonlocal): New member function.
8244 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
8245 initializer.
8246 * language.c (unknown_language_data): Likewise.
8247 (auto_language_data): Likewise.
8248 * language.h (language_data): Delete la_lookup_symbol_nonlocal
8249 field.
8250 (language_defn::lookup_symbol_nonlocal): New member function.
8251 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
8252 initializer.
8253 * objc-lang.c (objc_language_data): Likewise.
8254 * opencl-lang.c (opencl_language_data): Likewise.
8255 * p-lang.c (pascal_language_data): Likewise.
8256 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
8257 rust_language::lookup_symbol_nonlocal.
8258 (rust_language_data): Delete la_lookup_symbol_nonlocal
8259 initializer.
8260 (rust_language::lookup_symbol_nonlocal): New member function,
8261 implementation from rust_lookup_symbol_nonlocal.
8262 * symtab.c (lookup_symbol_aux): Update call to
8263 lookup_symbol_nonlocal.
8264 (basic_lookup_symbol_nonlocal): Rename to...
8265 (language_defn::lookup_symbol_nonlocal): ...this, and update
8266 header comment. Remove language_defn parameter, and replace with
8267 uses of `this'.
8268 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
8269
8270 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8271
8272 * ada-lang.c (ada_language_data): Delete la_value_print_inner
8273 initializer.
8274 (ada_language::value_print_inner): New member function.
8275 * c-lang.c (c_language_data): Delete la_value_print_inner
8276 initializer.
8277 (cplus_language_data): Likewise.
8278 (asm_language_data): Likewise.
8279 (minimal_language_data): Likewise.
8280 * d-lang.c (d_language_data): Likewise.
8281 (d_language::value_print_inner): New member function.
8282 * f-lang.c (f_language_data): Delete la_value_print_inner
8283 initializer.
8284 (f_language::value_print_inner): New member function.
8285 * f-lang.h (f_value_print_innner): Rename to...
8286 (f_value_print_inner): ...this (note spelling of 'inner').
8287 * f-valprint.c (f_value_print_innner): Rename to...
8288 (f_value_print_inner): ...this (note spelling of 'inner').
8289 * go-lang.c (go_language_data): Delete la_value_print_inner
8290 initializer.
8291 (go_language::value_print_inner): New member function.
8292 * language.c (language_defn::value_print_inner): Define new member
8293 function.
8294 (unk_lang_value_print_inner): Delete.
8295 (unknown_language_data): Delete la_value_print_inner initializer.
8296 (unknown_language::value_print_inner): New member function.
8297 (auto_language_data): Delete la_value_print_inner initializer.
8298 (auto_language::value_print_inner): New member function.
8299 * language.h (language_data): Delete la_value_print_inner field.
8300 (language_defn::value_print_inner): Delcare new member function.
8301 * m2-lang.c (m2_language_data): Delete la_value_print_inner
8302 initializer.
8303 (m2_language::value_print_inner): New member function.
8304 * objc-lang.c (objc_language_data): Delete la_value_print_inner
8305 initializer.
8306 * opencl-lang.c (opencl_language_data): Likewise.
8307 * p-lang.c (pascal_language_data): Likewise.
8308 (pascal_language::value_print_inner): New member function.
8309 * rust-lang.c (rust_language_data): Delete la_value_print_inner
8310 initializer.
8311 (rust_language::value_print_inner): New member function.
8312 * valprint.c (do_val_print): Update call to value_print_inner.
8313
8314 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8315
8316 * ada-lang.c (ada_language_data): Delete la_value_print
8317 initializer.
8318 (ada_language::value_print): New member function.
8319 * c-lang.c (c_language_data): Delete la_value_print initializer.
8320 (cplus_language_data): Likewise.
8321 (asm_language_data): Likewise.
8322 (minimal_language_data): Likewise.
8323 * d-lang.c (d_language_data): Likewise.
8324 * f-lang.c (f_language_data): Likewise.
8325 * go-lang.c (go_language_data): Likewise.
8326 * language.c (unk_lang_value_print): Delete.
8327 (language_defn::value_print): Define new member function.
8328 (unknown_language_data): Delete la_value_print initializer.
8329 (unknown_language::value_print): New member function.
8330 (auto_language_data): Delete la_value_print initializer.
8331 (auto_language::value_print): New member function.
8332 * language.h (language_data): Delete la_value_print field.
8333 (language_defn::value_print): Declare new member function.
8334 (LA_VALUE_PRINT): Update call to value_print.
8335 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
8336 * objc-lang.c (objc_language_data): Likewise.
8337 * opencl-lang.c (opencl_language_data): Likewise.
8338 * p-lang.c (pascal_language_data): Likewise.
8339 (pascal_language::value_print): New member function.
8340 * rust-lang.c (rust_language_data): Delete la_value_print
8341 initializer.
8342
8343 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8344
8345 * ada-lang.c (ada_watch_location_expression): Rename to
8346 ada_language::watch_location_expression.
8347 (ada_language_data): Delete la_watch_location_expression
8348 initializer.
8349 (ada_language::watch_location_expression): New member function,
8350 implementation from ada_watch_location_expression.
8351 * breakpoint.c (watch_command_1): Update call to
8352 watch_location_expression.
8353 * c-lang.c (c_watch_location_expression): Rename to
8354 language_defn::watch_location_expression.
8355 (c_language_data): Delete la_watch_location_expression
8356 initializer.
8357 (cplus_language_data): Likewise.
8358 (asm_language_data): Likewise.
8359 (minimal_language_data): Likewise.
8360 * c-lang.h (c_watch_location_expression): Delete declaration.
8361 * d-lang.c (d_language_data): Delete la_watch_location_expression
8362 initializer.
8363 * f-lang.c (f_language_data): Likewise.
8364 * go-lang.c (go_language_data): Likewise.
8365 * language.c (language_defn::watch_location_expression): Member
8366 function implementation from c_watch_location_expression.
8367 (unknown_language_data): Delete la_watch_location_expression
8368 initializer.
8369 (auto_language_data): Likewise.
8370 * language.h (language_data): Delete la_watch_location_expression
8371 field.
8372 (language_defn::watch_location_expression): Declare new member
8373 function.
8374 * m2-lang.c (m2_language_data): Delete
8375 la_watch_location_expression initializer.
8376 * objc-lang.c (objc_language_data): Likewise.
8377 * opencl-lang.c (opencl_language_data): Likewise.
8378 * p-lang.c (pascal_language_data): Likewise.
8379 * rust-lang.c (rust_watch_location_expression): Rename to
8380 rust_language::watch_location_expression.
8381 (rust_language_data): Delete la_watch_location_expression
8382 initializer.
8383 (rust_language::watch_location_expression): New member function,
8384 implementation from rust_watch_location_expression.
8385
8386 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8387
8388 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
8389 ada_language::collect_symbol_completion_matches.
8390 (ada_language_data): Delete la_collect_symbol_completion_matches
8391 initializer.
8392 (ada_language::collect_symbol_completion_matches): New member
8393 function, implementation from
8394 ada_collect_symbol_completion_matches.
8395 * c-lang.c (c_language_data): Delete
8396 la_collect_symbol_completion_matches initializer.
8397 (cplus_language_data): Likewise.
8398 (asm_language_data): Likewise.
8399 (minimal_language_data): Likewise.
8400 * d-lang.c (d_language_data): Likewise.
8401 * f-lang.c (f_collect_symbol_completion_matches): Rename to
8402 f_language::collect_symbol_completion_matches.
8403 (f_language_data): Delete la_collect_symbol_completion_matches
8404 initializer.
8405 (f_language::collect_symbol_completion_matches) New member
8406 function, implementation from f_collect_symbol_completion_matches.
8407 * go-lang.c (go_language_data): Delete
8408 la_collect_symbol_completion_matches initializer.
8409 * language.c (unknown_language_data): Likewise.
8410 (auto_language_data): Likewise.
8411 * language.h (language_data): Delete
8412 la_collect_symbol_completion_matches field.
8413 (language_defn::collect_symbol_completion_matches): New member
8414 function.
8415 * m2-lang.c (m2_language_data): Delete
8416 la_collect_symbol_completion_matches initializer.
8417 * objc-lang.c (objc_language_data): Likewise.
8418 * opencl-lang.c (opencl_language_data): Likewise.
8419 * p-lang.c (pascal_language_data): Likewise.
8420 * rust-lang.c (rust_language_data): Likewise.
8421 * symtab.c (default_collect_symbol_completion_matches): Delete.
8422 (collect_symbol_completion_matches): Update call to
8423 collect_symbol_completion_matches.
8424 (collect_symbol_completion_matches_type): Likewise.
8425 * symtab.h (default_collect_symbol_completion_matches): Delete
8426 declaration.
8427
8428 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8429
8430 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
8431 (ada_language_data): Delete la_word_break_characters initializer.
8432 (ada_language::word_break_characters): New member function.
8433 * c-lang.c (c_language_data): Delete la_word_break_characters
8434 initializer.
8435 (cplus_language_data): Likewise.
8436 (asm_language_data): Likewise.
8437 (minimal_language_data): Likewise.
8438 * completer.c: Update global comment.
8439 (advance_to_expression_complete_word_point): Update call to
8440 word_break_characters.
8441 (complete_files_symbols): Likewise.
8442 (complete_line_internal_1): Likewise.
8443 (default_completer_handle_brkchars): Likewise.
8444 (skip_quoted_chars): Likewise.
8445 * d-lang.c (d_language_data): Delete la_word_break_characters
8446 initializer.
8447 * f-lang.c (f_word_break_characters): Delete.
8448 (f_language_data): Delete la_word_break_characters initializer.
8449 (f_language::word_break_characters): New member function.
8450 * go-lang.c (go_language_data): Delete la_word_break_characters
8451 initializer.
8452 * language.c (unknown_language_data): Likewise.
8453 (auto_language_data): Likewise.
8454 * language.h (default_word_break_characters): Move declaration to
8455 earlier in the file.
8456 (language_data): Delete la_word_break_characters field.
8457 (language_defn::word_break_characters): New member function.
8458 * m2-lang.c (m2_language_data): Delete la_word_break_characters
8459 initializer.
8460 * objc-lang.c (objc_language_data): Likewise.
8461 * opencl-lang.c (opencl_language_data): Likewise.
8462 * p-lang.c (pascal_language_data): Likewise.
8463 * rust-lang.c (rust_language_data): Likewise.
8464
8465 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8466
8467 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
8468 (ada_language_data): Delete la_get_symbol_name_matcher
8469 initializer.
8470 (language_defn::get_symbol_name_matcher_inner): New member
8471 function.
8472 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
8473 initializer.
8474 (cplus_language_data): Likewise.
8475 (cplus_language::get_symbol_name_matcher_inner): New member
8476 function.
8477 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
8478 (minimal_language_data): Likewise.
8479 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
8480 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
8481 initializer.
8482 * dictionary.c (iter_match_first_hashed): Update call to
8483 get_symbol_name_matcher.
8484 (iter_match_next_hashed): Likewise.
8485 (iter_match_next_linear): Likewise.
8486 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
8487 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
8488 initializer.
8489 (f_language::get_symbol_name_matcher_inner): New member function.
8490 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
8491 initializer.
8492 * language.c (default_symbol_name_matcher): Update header comment,
8493 make static.
8494 (language_defn::get_symbol_name_matcher): New definition.
8495 (language_defn::get_symbol_name_matcher_inner): Likewise.
8496 (get_symbol_name_matcher): Delete.
8497 (unknown_language_data): Delete la_get_symbol_name_matcher
8498 initializer.
8499 (auto_language_data): Likewise.
8500 * language.h (language_data): Delete la_get_symbol_name_matcher
8501 field.
8502 (language_defn::get_symbol_name_matcher): New member function.
8503 (language_defn::get_symbol_name_matcher_inner): Likewise.
8504 (default_symbol_name_matcher): Delete declaration.
8505 * linespec.c (find_methods): Update call to
8506 get_symbol_name_matcher.
8507 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
8508 initializer.
8509 * minsyms.c (lookup_minimal_symbol): Update call to
8510 get_symbol_name_matcher.
8511 (iterate_over_minimal_symbols): Likewise.
8512 * objc-lang.c (objc_language_data): Delete
8513 la_get_symbol_name_matcher initializer.
8514 * opencl-lang.c (opencl_language_data): Likewise.
8515 * p-lang.c (pascal_language_data): Likewise.
8516 * psymtab.c (psymbol_name_matches): Update call to
8517 get_symbol_name_matcher.
8518 * rust-lang.c (rust_language_data): Delete
8519 la_get_symbol_name_matcher initializer.
8520 * symtab.c (symbol_matches_search_name): Update call to
8521 get_symbol_name_matcher.
8522 (compare_symbol_name): Likewise.
8523
8524 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8525
8526 * ada-lang.c (ada_language_data): Delete la_compute_program
8527 initializer.
8528 * c-lang.c (c_language_data): Likewise.
8529 (c_language::compute_program): New member function.
8530 (cplus_language_data): Delete la_compute_program initializer.
8531 (cplus_language::compute_program): New member function.
8532 (asm_language_data): Delete la_compute_program initializer.
8533 (minimal_language_data): Likewise.
8534 * c-lang.h (c_compute_program): Update comment.
8535 (cplus_compute_program): Likewise.
8536 * compile/compile-c-support.c (c_compute_program): Likewise.
8537 (cplus_compute_program): Likewise.
8538 * compile/compile.c (compile_to_object): Update call to
8539 la_compute_program.
8540 * d-lang.c (d_language_data): Delete la_compute_program
8541 initializer.
8542 * f-lang.c (f_language_data): Likewise.
8543 * go-lang.c (go_language_data): Likewise.
8544 * language.c (unknown_language_data): Likewise.
8545 (auto_language_data): Likewise.
8546 * language.h (language_data): Delete la_compute_program field.
8547 (language_defn::compute_program): New member function.
8548 * m2-lang.c (m2_language_data): Delete la_compute_program
8549 initializer.
8550 * objc-lang.c (objc_language_data): Likewise.
8551 * opencl-lang.c (opencl_language_data): Likewise.
8552 * p-lang.c (pascal_language_data): Likewise.
8553 * rust-lang.c (rust_language_data): Likewise.
8554
8555 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8556
8557 * ada-lang.c (ada_language_data) Delete
8558 la_class_name_from_physname initializer.
8559 * c-lang.c (c_language_data): Likewise.
8560 (cplus_language_data): Likewise.
8561 (cplus_language::class_name_from_physname): New member function.
8562 (asm_language_data): Delete la_class_name_from_physname
8563 initializer.
8564 (minimal_language_data): Likewise.
8565 * d-lang.c (d_language_data): Likewise.
8566 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
8567 method on language_defn class.
8568 (guess_full_die_structure_name): Likewise.
8569 * f-lang.c (f_language_data): Delete la_class_name_from_physname
8570 initializer.
8571 * go-lang.c (go_language_data): Likewise.
8572 * language.c (language_class_name_from_physname): Delete.
8573 (unk_lang_class_name): Delete.
8574 (unknown_language_data): Delete la_class_name_from_physname
8575 initializer.
8576 (auto_language_data): Likewise.
8577 * language.h (language_data): Delete la_class_name_from_physname
8578 field.
8579 (language_defn::class_name_from_physname): New function.
8580 (language_class_name_from_physname): Delete declaration.
8581 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
8582 initializer.
8583 * objc-lang.c (objc_language_data): Likewise.
8584 * opencl-lang.c (opencl_language_data): Likewise.
8585 * p-lang.c (pascal_language_data): Likewise.
8586 * rust-lang.c (rust_language_data): Likewise.
8587
8588 2020-06-16 Tom Tromey <tom@tromey.com>
8589
8590 * tui/tui-data.h (STATUS_NAME): New macro.
8591 * tui/tui-layout.c (tui_remove_some_windows)
8592 (initialize_known_windows, tui_register_window)
8593 (tui_layout_split::remove_windows, initialize_layouts)
8594 (tui_new_layout_command): Don't use hard-coded window names.
8595
8596 2020-06-16 Tom Tromey <tom@tromey.com>
8597
8598 PR tui/25348:
8599 * tui/tui.c (tui_ensure_readline_initialized): Rename from
8600 tui_initialize_readline. Only run once. Call rl_initialize.
8601 * tui/tui.h (tui_ensure_readline_initialized): Rename from
8602 tui_initialize_readline.
8603 * tui/tui-io.c (tui_setup_io): Call
8604 tui_ensure_readline_initialized.
8605 * tui/tui-interp.c (tui_interp::init): Update.
8606
8607 2020-06-16 Tom Tromey <tom@tromey.com>
8608
8609 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
8610 Also preserve the status window.
8611
8612 2020-06-16 Tom Tromey <tom@tromey.com>
8613
8614 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
8615 where m_window==nullptr.
8616
8617 2020-06-15 Tom Tromey <tromey@adacore.com>
8618
8619 * windows-nat.c (windows_nat::handle_output_debug_string):
8620 Update.
8621 (windows_nat::handle_ms_vc_exception): Update.
8622 * target.h (target_read_string): Change API.
8623 * target.c (target_read_string): Change API.
8624 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
8625 Update.
8626 * solib-frv.c (frv_current_sos): Update.
8627 * solib-dsbt.c (dsbt_current_sos): Update.
8628 * solib-darwin.c (darwin_current_sos): Update.
8629 * linux-thread-db.c (inferior_has_bug): Update.
8630 * expprint.c (print_subexp_standard): Update.
8631 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
8632 (ada_exception_message_1): Update.
8633
8634 2020-06-15 Tom Tromey <tromey@adacore.com>
8635
8636 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
8637
8638 2020-06-15 Tom Tromey <tromey@adacore.com>
8639
8640 * valprint.c (read_string): Update comment.
8641 * target.c (MIN): Remove.
8642 (target_read_string): Rewrite.
8643
8644 2020-06-15 Tom Tromey <tromey@adacore.com>
8645
8646 * corefile.c (read_memory_string): Remove.
8647 * ada-valprint.c (ada_value_print_ptr): Update.
8648 * ada-lang.h (ada_tag_name): Change return type.
8649 * ada-lang.c (type_from_tag): Update.
8650 (ada_tag_name_from_tsd): Change return type. Use
8651 target_read_string.
8652 (ada_tag_name): Likewise.
8653 * gdbcore.h (read_memory_string): Don't declare.
8654
8655 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
8656
8657 * symtab.c (rbreak_command): Ignore Windows drive colon.
8658
8659 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
8660
8661 * NEWS: Mention removed GDBserver host support.
8662
8663 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
8664
8665 * features/riscv/rebuild-csr-xml.sh: Updated.
8666
8667 2020-06-11 Tom Tromey <tom@tromey.com>
8668
8669 PR gdb/18318:
8670 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
8671
8672 2020-06-09 Jonny Grant <jg@jguk.org>
8673 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
8674
8675 * main.c (captured_main_1): Don't print new line after help.
8676 (print_gdb_help): add mailing list and IRC channel information
8677 to --help. Add new lines between items in the footer. Remove
8678 quotes around bug url.
8679
8680 2020-06-11 Keith Seitz <keiths@redhat.com>
8681
8682 PR gdb/21356
8683 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
8684 Resolve typedefs for type length calculations.
8685
8686 2020-06-10 Tom de Vries <tdevries@suse.de>
8687
8688 PR ada/24713
8689 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
8690 (write_psymbols): Enable .gdb_index for ada.
8691 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
8692 ada.
8693
8694 2020-06-10 Tom de Vries <tdevries@suse.de>
8695
8696 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
8697 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
8698 namei" instead of "const char *name" argument.
8699 (dw2_map_matching_symbols): Use "offset_type namei" variant of
8700 dw2_symtab_iter_init.
8701
8702 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8703
8704 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
8705 to use type::field and field::type instead.
8706
8707 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8708
8709 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
8710 to use field::type instead.
8711
8712 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8713
8714 * gdbtypes.h (struct field) <type, set_type>: New methods.
8715 Rename `type` field to...
8716 <m_type>: ... this. Change references throughout to use type or
8717 set_type methods.
8718 (FIELD_TYPE): Use field::type. Change call sites that modify
8719 the field's type to use field::set_type instead.
8720
8721 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8722
8723 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
8724 to use type::index_type instead.
8725
8726 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8727
8728 * gdbtypes.h (struct type) <index_type, set_index_type>: New
8729 methods.
8730 (TYPE_INDEX_TYPE): Use type::index_type.
8731 * gdbtypes.c (create_array_type_with_stride): Likewise.
8732
8733 2020-06-07 Tom Tromey <tom@tromey.com>
8734
8735 * valprint.c (generic_val_print_float): Remove "embedded_offset"
8736 parameter.
8737 (generic_value_print): Update.
8738
8739 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8740
8741 Revert commit 982a38f60b0.
8742 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
8743
8744 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8745
8746 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
8747 avoid use after free.
8748
8749 2020-06-05 Tom de Vries <tdevries@suse.de>
8750
8751 * NEWS: Fix typos.
8752
8753 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
8754
8755 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
8756 the per_bfd object.
8757 (dwarf2_read_debug_names): Likewise.
8758 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
8759 object when re-using a per_bfd object with an index.
8760
8761 2020-06-03 Tom de Vries <tdevries@suse.de>
8762
8763 PR symtab/26046
8764 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
8765 children for C++.
8766 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
8767 DW_TAG_subprogram.
8768
8769 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8770
8771 * ada-lang.c (ada_language_data): Delete skip_trampoline
8772 initializer.
8773 * c-lang.c (c_language_data): Likewise.
8774 (cplus_language_data): Likewise.
8775 (cplus_language::skip_trampoline): New member function.
8776 (asm_language_data): Delete skip_trampoline initializer.
8777 (minimal_language_data): Likewise.
8778 * d-lang.c (d_language_data): Likewise.
8779 * f-lang.c (f_language_data): Likewise.
8780 * go-lang.c (go_language_data): Likewise.
8781 * language.c (unk_lang_trampoline): Delete function.
8782 (skip_language_trampoline): Update.
8783 (unknown_language_data): Delete skip_trampoline initializer.
8784 (auto_language_data): Likewise.
8785 * language.h (language_data): Delete skip_trampoline field.
8786 (language_defn::skip_trampoline): New function.
8787 * m2-lang.c (m2_language_data): Delete skip_trampoline
8788 initializer.
8789 * objc-lang.c (objc_skip_trampoline): Delete function, move
8790 implementation to objc_language::skip_trampoline.
8791 (objc_language_data): Delete skip_trampoline initializer.
8792 (objc_language::skip_trampoline): New member function with
8793 implementation from objc_skip_trampoline.
8794 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
8795 initializer.
8796 * p-lang.c (pascal_language_data): Likewise.
8797 * rust-lang.c (rust_language_data): Likewise.
8798
8799 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8800
8801 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
8802 (ada_language::demangle): New member function.
8803 * c-lang.c (c_language_data): Delete la_demangle initializer.
8804 (cplus_language_data): Delete la_demangle initializer.
8805 (cplus_language::demangle): New member function.
8806 (asm_language_data): Delete la_demangle initializer.
8807 (minimal_language_data): Delete la_demangle initializer.
8808 * d-lang.c (d_language_data): Delete la_demangle initializer.
8809 (d_language::demangle): New member function.
8810 * f-lang.c (f_language_data): Delete la_demangle initializer.
8811 (f_language::demangle): New member function.
8812 * go-lang.c (go_language_data): Delete la_demangle initializer.
8813 (go_language::demangle): New member function.
8814 * language.c (language_demangle): Update.
8815 (unk_lang_demangle): Delete.
8816 (unknown_language_data): Delete la_demangle initializer.
8817 (unknown_language::demangle): New member function.
8818 (auto_language_data): Delete la_demangle initializer.
8819 (auto_language::demangle): New member function.
8820 * language.h (language_data): Delete la_demangle field.
8821 (language_defn::demangle): New function.
8822 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
8823 * objc-lang.c (objc_language_data): Delete la_demangle
8824 initializer.
8825 (objc_language::demangle): New member function.
8826 * opencl-lang.c (opencl_language_data): Delete la_demangle
8827 initializer.
8828 * p-lang.c (pascal_language_data): Likewise.
8829 * rust-lang.c (rust_language_data): Likewise.
8830 (rust_language::demangle): New member function.
8831
8832 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8833
8834 * ada-lang.c (ada_language_data): Delete la_print_type
8835 initializer.
8836 (ada_language::print_type): New member function.
8837 * c-lang.c (c_language_data): Delete la_print_type initializer.
8838 (c_language::print_type): New member function.
8839 (cplus_language_data): Delete la_print_type initializer.
8840 (cplus_language::print_type): New member function.
8841 (asm_language_data): Delete la_print_type initializer.
8842 (asm_language::print_type): New member function.
8843 (minimal_language_data): Delete la_print_type initializer.
8844 (minimal_language::print_type): New member function.
8845 * d-lang.c (d_language_data): Delete la_print_type initializer.
8846 (d_language::print_type): New member function.
8847 * f-lang.c (f_language_data): Delete la_print_type initializer.
8848 (f_language::print_type): New member function.
8849 * go-lang.c (go_language_data): Delete la_print_type initializer.
8850 (go_language::print_type): New member function.
8851 * language.c (unk_lang_print_type): Delete.
8852 (unknown_language_data): Delete la_print_type initializer.
8853 (unknown_language::print_type): New member function.
8854 (auto_language_data): Delete la_print_type initializer.
8855 (auto_language::print_type): New member function.
8856 * language.h (language_data): Delete la_print_type field.
8857 (language_defn::print_type): New function.
8858 (LA_PRINT_TYPE): Update.
8859 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
8860 (m2_language::print_type): New member function.
8861 * objc-lang.c (objc_language_data): Delete la_print_type
8862 initializer.
8863 (objc_language::print_type): New member function.
8864 * opencl-lang.c (opencl_print_type): Delete, implementation moved
8865 to opencl_language::print_type.
8866 (opencl_language_data): Delete la_print_type initializer.
8867 (opencl_language::print_type): New member function, implementation
8868 from opencl_print_type.
8869 * p-lang.c (pascal_language_data): Delete la_print_type
8870 initializer.
8871 (pascal_language::print_type): New member function.
8872 * rust-lang.c (rust_print_type): Delete, implementation moved to
8873 rust_language::print_type.
8874 (rust_language_data): Delete la_print_type initializer.
8875 (rust_language::print_type): New member function, implementation
8876 from rust_print_type.
8877
8878 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8879
8880 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
8881 implementation moves to...
8882 (ada_language::sniff_from_mangled_name): ...here. Update return
8883 type.
8884 (ada_language_data): Delete la_sniff_from_mangled_name
8885 initializer.
8886 * c-lang.c (c_language_data): Likewise.
8887 (cplus_language_data): Likewise.
8888 (cplus_language::sniff_from_mangled_name): New member function,
8889 implementation taken from gdb_sniff_from_mangled_name.
8890 (asm_language_data): Delete la_sniff_from_mangled_name
8891 initializer.
8892 (minimal_language_data): Likewise.
8893 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
8894 implementation moves to cplus_language::sniff_from_mangled_name.
8895 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
8896 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
8897 moves to...
8898 (d_language::sniff_from_mangled_name): ...here.
8899 (d_language_data): Delete la_sniff_from_mangled_name initializer.
8900 * f-lang.c (f_language_data): Likewise.
8901 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
8902 moves to...
8903 (go_language::sniff_from_mangled_name): ...here.
8904 (go_language_data): Delete la_sniff_from_mangled_name initializer.
8905 * language.c (language_sniff_from_mangled_name): Delete.
8906 (unknown_language_data): Delete la_sniff_from_mangled_name
8907 initializer.
8908 (auto_language_data): Likewise.
8909 * language.h (language_data): Delete la_sniff_from_mangled_name
8910 field.
8911 (language_defn::sniff_from_mangled_name): New function.
8912 (language_sniff_from_mangled_name): Delete declaration.
8913 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
8914 field.
8915 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
8916 implementation moves to...
8917 (objc_language::sniff_from_mangled_name): ...here.
8918 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
8919 * opencl-lang.c (opencl_language_data): Likewise.
8920 * p-lang.c (pascal_language_data): Likewise.
8921 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
8922 implementation moves to...
8923 (rust_language::sniff_from_mangled_name): ...here.
8924 (rust_language_data): Delete la_sniff_from_mangled_name
8925 initializer.
8926 * symtab.c (symbol_find_demangled_name): Call
8927 sniff_from_mangled_name member function.
8928
8929 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8930
8931 * ada-lang.c (ada_language_data): Delete la_search_name_hash
8932 initializer.
8933 * c-lang.c (c_language_data): Likewise.
8934 (cplus_language_data): Likewise.
8935 (cplus_language::search_name_hash): New member function.
8936 (asm_language_data): Delete la_search_name_hash initializer.
8937 (minimal_language_data): Likewise.
8938 * d-lang.c (d_language_data): Likewise.
8939 * dictionary.c (default_search_name_hash): Rename to...
8940 (language_defn::search_name_hash): ...this.
8941 * f-lang.c (f_language_data): Likewise.
8942 (f_language::search_name_hash): New member function.
8943 * go-lang.c (go_language_data): Delete la_search_name_hash
8944 initializer.
8945 * language.c (unknown_language_data): Likewise.
8946 (auto_language_data): Likewise.
8947 * language.h (struct language_data): Delete la_search_name_hash
8948 field.
8949 (language_defn::search_name_hash): Declare new member function.
8950 (default_search_name_hash): Delete declaration.
8951 * m2-lang.c (m2_language_data): Delete la_search_name_hash
8952 initializer.
8953 * objc-lang.c (objc_language_data): Likewise.
8954 * opencl-lang.c (opencl_language_data): Likewise.
8955 * p-lang.c (pascal_language_data): Likewise.
8956 * rust-lang.c (rust_language_data): Likewise.
8957 * symtab.c (search_name_hash): Update call.
8958
8959 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8960
8961 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
8962 initializer.
8963 * c-lang.c (class compile_instance): Declare.
8964 (c_language_data): Delete la_get_compile_instance initializer.
8965 (c_language::get_compile_instance): New member function.
8966 (cplus_language_data): Delete la_get_compile_instance initializer.
8967 (cplus_language::get_compile_instance): New member function.
8968 (asm_language_data): Delete la_get_compile_instance initializer.
8969 (minimal_language_data): Likewise.
8970 * c-lang.h (c_get_compile_context): Update comment.
8971 (cplus_get_compile_context): Update comment.
8972 * compile/compile.c (compile_to_object): Update calls, don't rely
8973 on function pointer being NULL.
8974 * d-lang.c (d_language_data): Delete la_get_compile_instance
8975 initializer.
8976 * f-lang.c (f_language_data): Likewise.
8977 * go-lang.c (go_language_data): Likewise.
8978 * language.c (unknown_language_data): Likewise.
8979 (auto_language_data): Likewise.
8980 * language.h (language_data): Delete la_get_compile_instance field.
8981 (language_defn::get_compile_instance): New member function.
8982 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
8983 initializer.
8984 * objc-lang.c (objc_language_data): Likewise.
8985 * opencl-lang.c (opencl_language_data): Likewise.
8986 * p-lang.c (pascal_language_data): Likewise.
8987 * rust-lang.c (rust_language_data): Likewise.
8988
8989 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8990
8991 * ada-lang.c (ada_add_all_symbols): Update comment.
8992 (ada_iterate_over_symbols): Delete, move implementation to...
8993 (ada_language::iterate_over_symbols): ...here, a new member
8994 function, rewrite to use range based for loop.
8995 (ada_language_data): Delete la_iterate_over_symbols initializer.
8996 * c-lang.c (c_language_data): Likewise.
8997 (cplus_language_data): Likewise.
8998 (asm_language_data): Likewise.
8999 (minimal_language_data): Likewise.
9000 * d-lang.c (d_language_data): Likewise.
9001 * f-lang.c (f_language_data): Likewise.
9002 * go-lang.c (go_language_data): Likewise.
9003 * language.c (unknown_language_data): Likewise.
9004 (auto_language_data): Likewise.
9005 * language.h (language_data): Delete la_iterate_over_symbols field.
9006 (language_defn::iterate_over_symbols): New member function.
9007 (LA_ITERATE_OVER_SYMBOLS): Update.
9008 * linespec.c (iterate_over_all_matching_symtabs): Update.
9009 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
9010 initializer.
9011 * objc-lang.c (objc_language_data): Likewise.
9012 * opencl-lang.c (opencl_language_data): Likewise.
9013 * p-lang.c (pascal_language_data): Likewise.
9014 * rust-lang.c (rust_language_data): Likewise.
9015
9016 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9017
9018 * ada-lang.c (ada_language_data): Delete
9019 la_lookup_transparent_type initializer.
9020 * c-lang.c (c_language_data): Likewise.
9021 (cplus_language_data): Likewise.
9022 (cplus_language::lookup_transparent_type): New member function.
9023 (asm_language_data): Delete la_lookup_transparent_type
9024 initializer.
9025 (minimal_language_data): Likewise.
9026 * d-lang.c (d_language_data): Likewise.
9027 * f-lang.c (f_language_data): Likewise.
9028 * go-lang.c (go_language_data): Likewise.
9029 * language.c (unknown_language_data): Likewise.
9030 (auto_language_data): Likewise.
9031 * language.h (struct language_data): Delete
9032 la_lookup_transparent_type field.
9033 (language_defn::lookup_transparent_type): New member function.
9034 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
9035 initializer.
9036 * objc-lang.c (objc_language_data): Likewise.
9037 * opencl-lang.c (opencl_language_data): Likewise.
9038 * p-lang.c (pascal_language_data): Likewise.
9039 * rust-lang.c (rust_language_data): Likewise.
9040 * symtab.c (symbol_matches_domain): Update call.
9041
9042 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9043
9044 * ada-lang.c (ada_language_arch_info): Delete function, move
9045 implementation to...
9046 (ada_language::language_arch_info): ...here, a new member
9047 function.
9048 (ada_language_data): Delete la_language_arch_info.
9049 * c-lang.c (c_language_data): Likewise.
9050 (c_language::language_arch_info): New member function.
9051 (cplus_language_arch_info): Delete function, move
9052 implementation to...
9053 (cplus_language::language_arch_info): ...here, a new member
9054 function.
9055 (cplus_language_data): Delete la_language_arch_info.
9056 (asm_language_data): Likewise.
9057 (asm_language::language_arch_info): New member function.
9058 (minimal_language_data): Delete la_language_arch_info.
9059 (minimal_language::language_arch_info): New member function.
9060 * d-lang.c (d_language_arch_info): Delete function, move
9061 implementation to...
9062 (d_language::language_arch_info): ...here, a new member
9063 function.
9064 (d_language_data): Delete la_language_arch_info.
9065 * f-lang.c (f_language_arch_info): Delete function, move
9066 implementation to...
9067 (f_language::language_arch_info): ...here, a new member
9068 function.
9069 (f_language_data): Delete la_language_arch_info.
9070 * go-lang.c (go_language_arch_info): Delete function, move
9071 implementation to...
9072 (go_language::language_arch_info): ...here, a new member
9073 function.
9074 (go_language_data): Delete la_language_arch_info.
9075 * language.c (unknown_language_data): Likewise.
9076 (unknown_language::language_arch_info): New member function.
9077 (auto_language_data): Delete la_language_arch_info.
9078 (auto_language::language_arch_info): New member function.
9079 (language_gdbarch_post_init): Update call to
9080 la_language_arch_info.
9081 * language.h (language_data): Delete la_language_arch_info
9082 function pointer.
9083 (language_defn::language_arch_info): New function.
9084 * m2-lang.c (m2_language_arch_info): Delete function, move
9085 implementation to...
9086 (m2_language::language_arch_info): ...here, a new member
9087 function.
9088 (m2_language_data): Delete la_language_arch_info.
9089 * objc-lang.c (objc_language_arch_info): Delete function, move
9090 implementation to...
9091 (objc_language::language_arch_info): ...here, a new member
9092 function.
9093 (objc_language_data): Delete la_language_arch_info.
9094 * opencl-lang.c (opencl_language_arch_info): Delete function, move
9095 implementation to...
9096 (opencl_language::language_arch_info): ...here, a new member
9097 function.
9098 (opencl_language_data): Delete la_language_arch_info.
9099 * p-lang.c (pascal_language_arch_info): Delete function, move
9100 implementation to...
9101 (pascal_language::language_arch_info): ...here, a new member
9102 function.
9103 (pascal_language_data): Delete la_language_arch_info.
9104 * rust-lang.c (rust_language_arch_info): Delete function, move
9105 implementation to...
9106 (rust_language::language_arch_info): ...here, a new member
9107 function.
9108 (rust_language_data): Delete la_language_arch_info.
9109
9110 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9111
9112 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
9113 initializer.
9114 * c-lang.c (c_language_data): Likewise.
9115 (cplus_language_data): Likewise.
9116 (cplus_language::pass_by_reference_info): New method.
9117 (asm_language_data): Delete la_pass_by_reference initializer.
9118 (minimal_language_data): Likewise.
9119 * cp-abi.c (cp_pass_by_reference): Remove use of
9120 default_pass_by_reference.
9121 * d-lang.c (d_language_data): Likewise.
9122 * f-lang.c (f_language_data): Likewise.
9123 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
9124 default_pass_by_reference.
9125 * go-lang.c (go_language_data): Likewise.
9126 * language.c (language_pass_by_reference): Update.
9127 (default_pass_by_reference): Delete.
9128 (unknown_language_data): Delete la_pass_by_reference
9129 initializer.
9130 (auto_language_data): Likewise.
9131 * language.h (struct language_data): Delete la_pass_by_reference
9132 field.
9133 (language_defn::pass_by_reference_info): New member function.
9134 (default_pass_by_reference): Delete declaration.
9135 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
9136 initializer.
9137 * objc-lang.c (objc_language_data): Likewise.
9138 * opencl-lang.c (opencl_language_data): Likewise.
9139 * p-lang.c (pascal_language_data): Likewise.
9140 * rust-lang.c (rust_language_data): Likewise.
9141
9142 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9143
9144 * ada-lang.c (ada_read_var_value): Delete function, move
9145 implementation to...
9146 (ada_language::read_var_value): ...here.
9147 (ada_language_data): Delete la_read_var_value initializer.
9148 * c-lang.c (c_language_data): Likewise.
9149 (cplus_language_data): Likewise.
9150 (minimal_language_data): Likewise.
9151 * d-lang.c (d_language_data): Likewise.
9152 * f-lang.c (f_language_data): Likewise.
9153 * findvar.c (default_read_var_value): Rename to...
9154 (language_defn::read_var_value): ...this.
9155 * findvar.c (read_var_value): Update header comment, and change to
9156 call member function instead of function pointer.
9157 * go-lang.c (go_language_data): Likewise.
9158 * language.c (unknown_language_data): Delete la_read_var_value
9159 initializer.
9160 (auto_language_data): Likewise.
9161 * language.h (struct language_data): Delete la_read_var_value
9162 field.
9163 (language_defn::read_var_value): New member function.
9164 (default_read_var_value): Delete declaration.
9165 * m2-lang.c (m2_language_data): Delete la_read_var_value
9166 initializer.
9167 * objc-lang.c (objc_language_data): Likewise.
9168 * opencl-lang.c (opencl_language_data): Likewise.
9169 * p-lang.c (pascal_language_data): Likewise.
9170 * rust-lang.c (rust_language_data): Likewise.
9171 * value.h (default_read_var_value): Delete declaration.
9172
9173 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9174
9175 * ada-lang.c (ada_print_array_index): Delete function, move
9176 implementation to...
9177 (ada_language::print_array_index): ...here.
9178 (ada_language_data): Delete la_print_array_index initializer.
9179 * c-lang.c (c_language_data): Likewise.
9180 (cplus_language_data): Likewise.
9181 (minimal_language_data): Likewise.
9182 * d-lang.c (d_language_data): Likewise.
9183 * f-lang.c (f_language_data): Likewise.
9184 * go-lang.c (go_language_data): Likewise.
9185 * language.c (default_print_array_index): Delete function, move
9186 implementation to...
9187 (language_defn::print_array_index): ...here.
9188 (unknown_language_data): Delete la_print_array_index initializer.
9189 (auto_language_data): Likewise.
9190 * language.h (struct language_data): Delete la_print_array_index
9191 field.
9192 (language_defn::print_array_index): New member function.
9193 (LA_PRINT_ARRAY_INDEX): Update.
9194 (default_print_array_index): Delete declaration.
9195 * m2-lang.c (m2_language_data): Delete la_print_array_index
9196 initializer.
9197 * objc-lang.c (objc_language_data): Likewise.
9198 * opencl-lang.c (opencl_language_data): Likewise.
9199 * p-lang.c (pascal_language_data): Likewise.
9200 * rust-lang.c (rust_language_data): Likewise.
9201
9202 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9203
9204 * gdb/ada-lang.c (ada_language_defn): Convert to...
9205 (ada_language_data): ...this.
9206 (class ada_language): New class.
9207 (ada_language_defn): New static global.
9208 * gdb/c-lang.c (c_language_defn): Convert to...
9209 (c_language_data): ...this.
9210 (class c_language): New class.
9211 (c_language_defn): New static global.
9212 (cplus_language_defn): Convert to...
9213 (cplus_language_data): ...this.
9214 (class cplus_language): New class.
9215 (cplus_language_defn): New static global.
9216 (asm_language_defn): Convert to...
9217 (asm_language_data): ...this.
9218 (class asm_language): New class.
9219 (asm_language_defn): New static global.
9220 (minimal_language_defn): Convert to...
9221 (minimal_language_data): ...this.
9222 (class minimal_language): New class.
9223 (minimal_language_defn): New static global.
9224 * gdb/d-lang.c (d_language_defn): Convert to...
9225 (d_language_data): ...this.
9226 (class d_language): New class.
9227 (d_language_defn): New static global.
9228 * gdb/f-lang.c (f_language_defn): Convert to...
9229 (f_language_data): ...this.
9230 (class f_language): New class.
9231 (f_language_defn): New static global.
9232 * gdb/go-lang.c (go_language_defn): Convert to...
9233 (go_language_data): ...this.
9234 (class go_language): New class.
9235 (go_language_defn): New static global.
9236 * gdb/language.c (unknown_language_defn): Remove declaration.
9237 (current_language): Initialize to nullptr, real initialization is
9238 moved to _initialize_language.
9239 (languages): Delete global.
9240 (language_defn::languages): Define.
9241 (set_language_command): Use language_defn::languages.
9242 (set_language): Likewise.
9243 (range_error): Likewise.
9244 (language_enum): Likewise.
9245 (language_def): Likewise.
9246 (add_set_language_command): Use language_def::languages for the
9247 language list, and language_def to lookup language pointers.
9248 (skip_language_trampoline): Use language_defn::languages.
9249 (unknown_language_defn): Convert to...
9250 (unknown_language_data): ...this.
9251 (class unknown_language): New class.
9252 (unknown_language_defn): New static global.
9253 (auto_language_defn): Convert to...
9254 (auto_language_data): ...this.
9255 (class auto_language): New class.
9256 (auto_language_defn): New static global.
9257 (language_gdbarch_post_init): Use language_defn::languages.
9258 (_initialize_language): Initialize current_language.
9259 * gdb/language.h (struct language_defn): Rename to...
9260 (struct language_data): ...this.
9261 (struct language_defn): New.
9262 (auto_language_defn): Delete.
9263 (unknown_language_defn): Delete.
9264 (minimal_language_defn): Delete.
9265 (ada_language_defn): Delete.
9266 (asm_language_defn): Delete.
9267 (c_language_defn): Delete.
9268 (cplus_language_defn): Delete.
9269 (d_language_defn): Delete.
9270 (f_language_defn): Delete.
9271 (go_language_defn): Delete.
9272 (m2_language_defn): Delete.
9273 (objc_language_defn): Delete.
9274 (opencl_language_defn): Delete.
9275 (pascal_language_defn): Delete.
9276 (rust_language_defn): Delete.
9277 * gdb/m2-lang.c (m2_language_defn): Convert to...
9278 (m2_language_data): ...this.
9279 (class m2_language): New class.
9280 (m2_language_defn): New static global.
9281 * gdb/objc-lang.c (objc_language_defn): Convert to...
9282 (objc_language_data): ...this.
9283 (class objc_language): New class.
9284 (objc_language_defn): New static global.
9285 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
9286 (opencl_language_data): ...this.
9287 (class opencl_language): New class.
9288 (opencl_language_defn): New static global.
9289 * gdb/p-lang.c (pascal_language_defn): Convert to...
9290 (pascal_language_data): ...this.
9291 (class pascal_language): New class.
9292 (pascal_language_defn): New static global.
9293 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
9294 language pointer, update comment format.
9295 * gdb/rust-lang.c (rust_language_defn): Convert to...
9296 (rust_language_data): ...this.
9297 (class rust_language): New class.
9298 (rust_language_defn): New static global.
9299
9300 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
9301
9302 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
9303 member variable.
9304 <m_stmt_at_address>: New member variable.
9305 (lnp_state_machine::record_line): Don't record some lines, update
9306 tracking of is_stmt at the same address.
9307 (lnp_state_machine::lnp_state_machine): Initialise new member
9308 variables.
9309
9310 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
9311
9312 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
9313 "-include gnu-nat-mig.h".
9314 * gnu-nat-mig.h: New file.
9315 * gnu-nat.c: Include "gnu-nat-mig.h".
9316 (exc_server, msg_reply_server, notify_server,
9317 process_reply_server): Remove declarations.
9318
9319 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9320
9321 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
9322 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
9323 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
9324 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
9325 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
9326 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
9327 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
9328 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
9329 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
9330 to gnu_nat_target class.
9331 * gnu-nat.c: Likewise.
9332 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
9333 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
9334 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
9335 object.
9336 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
9337 instead of `gnu_target'.
9338
9339 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9340
9341 * i386-gnu-tdep.c: Include "gdbcore.h"
9342 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
9343 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
9344 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
9345 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
9346 i386_gnu_sigcontext_addr): New functions
9347 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
9348 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
9349 tdep.
9350
9351 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9352
9353 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
9354 before fork_inferior call. Avoid calling it if target_is_pushed returns
9355 true.
9356
9357 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9358
9359 * gnu-nat.h (gnu_target): New variable declaration.
9360 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
9361 gnu_target.
9362 * gnu-nat.c (gnu_target): New variable.
9363 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
9364 add_thread_silent, and add_thread calls.
9365 (gnu_nat_target::create_inferior): Pass gnu_target to
9366 add_thread_silent, thread_change_ptid call.
9367 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
9368 call.
9369
9370 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9371
9372 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
9373 (gnu_nat_target::find_memory_regions): Remove unused
9374 `old_address' variable.
9375
9376 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9377
9378 * gnu-nat.c: Include "gdbarch.h".
9379
9380 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9381
9382 * reply_mig_hack.awk (Error return): Cast function through
9383 void *, to bypass compiler function call check.
9384
9385 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9386
9387 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
9388 $(srcdir)/reply_mig_hack.awk.
9389
9390 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9391
9392 * gnu-nat.h (gnu_debug_flag): Set type to bool.
9393
9394 2020-05-30 Jonny Grant <jg@jguk.org>
9395
9396 * configure.ac (ACX_BUGURL): change bug URL to https.
9397
9398 2020-05-30 Pedro Alves <palves@redhat.com>
9399
9400 * cp-support.c (replace_typedefs_template): New.
9401 (replace_typedefs_qualified_name): Handle
9402 DEMANGLE_COMPONENT_TEMPLATE.
9403
9404 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
9405
9406 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
9407 dwarf2/index-cache.h, dwarf2/index-write.c,
9408 dwarf2/index-write.h, dwarf2/line-header.c,
9409 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
9410 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
9411 variables and fields from `dwarf2_per_objfile` to just
9412 `per_objfile` throughout.
9413
9414 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
9415
9416 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9417 <push_dwarf_reg_entry_value>: Add comment.
9418
9419 2020-05-28 Kevin Buettner <kevinb@redhat.com>
9420 Keith Seitz <keiths@redhat.com>
9421
9422 * python/python.c (do_start_initialization): Call PyEval_SaveThread
9423 instead of PyEval_ReleaseLock.
9424 (class gdbpy_gil): Move to earlier in file.
9425 (finalize_python): Set gdb_python_initialized.
9426 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
9427 when not initialized.
9428
9429 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
9430
9431 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9432 <push_dwarf_reg_entry_value>: Remove assert. Override
9433 per_objfile with caller_per_objfile.
9434
9435 2020-05-28 Tom de Vries <tdevries@suse.de>
9436
9437 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
9438 PR gold/15646 workaround to symbol kind "type".
9439
9440 2020-05-27 Tom Tromey <tromey@adacore.com>
9441
9442 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
9443
9444 2020-05-27 Tom Tromey <tromey@adacore.com>
9445
9446 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
9447 Use htab_find_with_hash.
9448 <add_abbrev>: Remove "abbrev_number" parameter.
9449 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
9450 "abbrev_number" parameter. Use htab_find_slot_with_hash.
9451 (hash_abbrev): Add comment.
9452 (abbrev_table::lookup_abbrev): Move to header file.
9453 (abbrev_table::read): Update.
9454
9455 2020-05-27 Tom Tromey <tromey@adacore.com>
9456
9457 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
9458 method.
9459 <canonical_name>: New member.
9460 <raw_name>: Rename from "name".
9461 (partial_die_info): Initialize canonical_name.
9462 (scan_partial_symbols): Check raw_name.
9463 (partial_die_parent_scope, partial_die_full_name)
9464 (add_partial_symbol, add_partial_subprogram)
9465 (add_partial_enumeration, load_partial_dies): Use "name" method.
9466 (partial_die_info::name): New method.
9467 (partial_die_info::read, guess_partial_die_structure_name)
9468 (partial_die_info::fixup): Update.
9469
9470 2020-05-27 Tom Tromey <tromey@adacore.com>
9471
9472 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
9473 <get_ref_die_offset>: Inline.
9474 <get_ref_die_offset_complaint>: New method.
9475 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
9476 (attribute::get_ref_die_offset_complaint): Rename from
9477 get_ref_die_offset. Just issue complaint.
9478
9479 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
9480
9481 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
9482
9483 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
9484
9485 * exec.c (exec_file_attach): Use errno value of first openp failure.
9486
9487 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
9488
9489 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
9490 Don't close thread handle.
9491
9492 2020-05-27 Tom Tromey <tom@tromey.com>
9493 Simon Marchi <simon.marchi@efficios.com>
9494
9495 * objfiles.h (struct objfile) <partial_symtabs>: Now a
9496 shared_ptr.
9497 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
9498 member.
9499 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
9500 dwarf2_per_bfd_objfile_data_key>: New globals.
9501 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
9502 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
9503 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
9504 shared.
9505 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
9506 short-circuit when sharing.
9507 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
9508 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
9509
9510 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9511
9512 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
9513 to...
9514 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
9515 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
9516
9517 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9518
9519 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
9520 build_name_components, find_name_components_bounds>:
9521 Add per_objfile parameter.
9522 (struct mapped_index) <symbol_name_at>: Likewise.
9523 (struct mapped_debug_names): Remove constructor.
9524 <dwarf2_per_objfile>: Remove field.
9525 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
9526 (mapped_index_base::find_name_components_bounds,
9527 mapped_index_base::build_name_components,
9528 dw2_expand_symtabs_matching_symbol): Likewise.
9529 (class mock_mapped_index) <symbol_name_at>: Likewise.
9530 (check_match): Likewise.
9531 (check_find_bounds_finds): Likewise.
9532 (test_mapped_index_find_name_component_bounds): Update.
9533 (CHECK_MATCH): Update.
9534 (dw2_expand_symtabs_matching): Update.
9535 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
9536 per_objfile parameter.
9537 <find_vec_in_debug_names>: Likewise.
9538 <m_per_objfile>: New field.
9539 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
9540 parameter.
9541 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
9542 (dw2_debug_names_iterator::next): Update.
9543 (dw2_debug_names_lookup_symbol): Update.
9544 (dw2_debug_names_expand_symtabs_for_function): Update.
9545 (dw2_debug_names_map_matching_symbols): Update.
9546 (dw2_debug_names_expand_symtabs_matching): Update.
9547 (dwarf2_read_debug_names): Update.
9548
9549 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9550
9551 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
9552 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
9553 move to dwarf2_per_objfile.
9554 <read_in_chain>: Remove.
9555 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
9556 remove_all_cus, age_comp_units>: New methods.
9557 <m_dwarf2_cus>: New member.
9558 (struct dwarf2_per_cu_data) <cu>: Remove.
9559 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
9560 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
9561 moved to methods of dwarf2_per_objfile.
9562 (dwarf2_clear_marks): Remove.
9563 (dwarf2_queue_item::~dwarf2_queue_item): Update.
9564 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
9565 (dwarf2_per_bfd::free_cached_comp_units): Remove.
9566 (dwarf2_per_objfile::remove_all_cus): New.
9567 (class free_cached_comp_units) <~free_cached_comp_units>:
9568 Update.
9569 (load_cu): Update.
9570 (dw2_do_instantiate_symtab): Adjust.
9571 (fill_in_sig_entry_from_dwo_entry): Adjust.
9572 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9573 (cutu_reader::cutu_reader): Likewise.
9574 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
9575 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
9576 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
9577 and dwarf2_per_objfile::age_comp_units.
9578 (load_partial_comp_unit): Update.
9579 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
9580 (process_queue): Likewise.
9581 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
9582 backlink.
9583 (dwarf2_read_addr_index): Likewise.
9584 (follow_die_offset): Likewise.
9585 (dwarf2_fetch_die_loc_sect_off): Likewise.
9586 (dwarf2_fetch_constant_bytes): Likewise.
9587 (dwarf2_fetch_die_type_sect_off): Likewise.
9588 (follow_die_sig_1): Likewise.
9589 (load_full_type_unit): Likewise.
9590 (read_signatured_type): Likewise.
9591 (dwarf2_cu::dwarf2_cu): Don't set cu field.
9592 (dwarf2_cu::~dwarf2_cu): Remove.
9593 (dwarf2_per_objfile::get_cu): New.
9594 (dwarf2_per_objfile::set_cu): New.
9595 (age_cached_comp_units): Rename to...
9596 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
9597 to std::unordered_map.
9598 (free_one_cached_comp_unit): Rename to...
9599 (dwarf2_per_objfile::remove_cu): ... this. Adjust
9600 to std::unordered_map.
9601 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
9602 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
9603 a dwarf2_per_objfile in data.
9604 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
9605 (dwarf2_clear_marks): Remove.
9606
9607 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9608
9609 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
9610 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
9611 (init_tu_and_read_dwo_dies): Likewise.
9612 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
9613 (cutu_reader::cutu_reader): Likewise.
9614 (load_partial_comp_unit): Likewise.
9615 (process_psymtab_comp_unit): Update.
9616 (build_type_psymtabs_1): Update.
9617 (process_skeletonless_type_unit): Update.
9618 (load_full_comp_unit): Update.
9619 (find_partial_die): Update.
9620 (dwarf2_read_addr_index): Update.
9621 (read_signatured_type): Update.
9622
9623 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9624
9625 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
9626 m_header_read_in>: New fields.
9627 <get_header>: New method.
9628 * dwarf2/read.c (per_cu_header_read_in): Remove.
9629 (dwarf2_per_cu_data::get_header): New.
9630 (dwarf2_per_cu_data::addr_size): Update.
9631 (dwarf2_per_cu_data::offset_size): Update.
9632 (dwarf2_per_cu_data::ref_addr_size): Update.
9633
9634 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9635
9636 * dwarf2/read.c (load_cu): Return dwarf2_cu.
9637 (dw2_do_instantiate_symtab): Update.
9638 (queue_and_load_all_dwo_tus): Change parameter from
9639 dwarf2_per_cu_data to dwarf2_cu.
9640 (dwarf2_fetch_die_loc_sect_off): Update.
9641 (dwarf2_fetch_constant_bytes): Update.
9642 (dwarf2_fetch_die_type_sect_off): Update.
9643
9644 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9645
9646 * dwarf2/read.c (process_full_comp_unit,
9647 process_full_type_unit): Remove per_cu, per_objfile paramters.
9648 Add dwarf2_cu parameter.
9649 (process_queue): Update.
9650
9651 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9652
9653 * dwarf2/read.c (create_cu_from_index_list): Replace
9654 dwarf2_per_objfile parameter with dwarf2_per_bfd.
9655 (create_cus_from_index_list): Likewise.
9656 (create_cus_from_index): Likewise.
9657 (create_signatured_type_table_from_index): Likewise.
9658 (create_cus_from_debug_names_list): Likewise.
9659 (create_cus_from_debug_names): Likewise.
9660 (dwarf2_read_gdb_index): Update.
9661 (dwarf2_read_debug_names): Update.
9662
9663 2020-05-27 Tom Tromey <tom@tromey.com>
9664 Simon Marchi <simon.marchi@efficios.com>
9665
9666 * dwarf2/read.h (struct dwarf2_per_objfile)
9667 <get_type_for_signatured_type, set_type_for_signatured_type>:
9668 New methods.
9669 <m_type_map>: New member.
9670 (struct signatured_type) <type>: Remove.
9671 * dwarf2/read.c
9672 (dwarf2_per_objfile::get_type_for_signatured_type,
9673 dwarf2_per_objfile::set_type_for_signatured_type): New.
9674 (get_signatured_type): Use new methods.
9675
9676 2020-05-27 Tom Tromey <tom@tromey.com>
9677 Simon Marchi <simon.marchi@efficios.com>
9678
9679 * dwarf2/read.h (struct type_unit_group_unshareable): New.
9680 (struct dwarf2_per_objfile) <type_units>: New member.
9681 <get_type_unit_group_unshareable>: New method.
9682 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
9683 num_symtabs, symtabs>: Remove; move to
9684 type_unit_group_unshareable.
9685 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
9686 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
9687 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
9688
9689 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9690
9691 * dwarf2/read.h (struct dwarf2_per_cu_data):
9692 <dwarf2_per_objfile>: Remove.
9693 * dwarf2/read.c (create_cu_from_index_list): Don't assign
9694 dwarf2_per_objfile.
9695 (create_signatured_type_table_from_index): Likewise.
9696 (create_signatured_type_table_from_debug_names): Likewise.
9697 (create_debug_type_hash_table): Likewise.
9698 (fill_in_sig_entry_from_dwo_entry): Likewise.
9699 (create_type_unit_group): Likewise.
9700 (read_comp_units_from_section): Likewise.
9701 (create_cus_hash_table): Likewise.
9702
9703 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9704
9705 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
9706 dwarf2_per_cu_data::dwarf2_per_objfile.
9707 (compute_compunit_symtab_includes): Likewise.
9708 (dwarf2_cu::start_symtab): Likewise.
9709
9710 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9711
9712 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
9713 parameter.
9714 * dwarf2/read.c (get_die_type_at_offset): Likewise.
9715 (read_namespace_alias): Update.
9716 (lookup_die_type): Update.
9717 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
9718 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
9719 Update.
9720 (disassemble_dwarf_expression): Update.
9721
9722 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9723
9724 * dwarf2/read.h (struct dwarf2_queue_item): Add
9725 dwarf2_per_objfile parameter, assign new parameter.
9726 <per_objfile>: New field.
9727 * dwarf2/read.c (free_one_cached_comp_unit): Add
9728 dwarf2_per_objfile parameter.
9729 (queue_comp_unit): Likewise.
9730 (dw2_do_instantiate_symtab): Update.
9731 (process_psymtab_comp_unit): Update.
9732 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
9733 (process_imported_unit_die): Update.
9734 (queue_and_load_dwo_tu): Update.
9735 (follow_die_offset): Update.
9736 (follow_die_sig_1): Update.
9737
9738 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9739
9740 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
9741 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
9742 (read_call_site_scope): Assign per_objfile.
9743 (dwarf2_per_cu_data::objfile): Remove.
9744 * gdbtypes.h (struct call_site) <per_objfile>: New member.
9745 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
9746 dwarf2_per_objfile parameter.
9747 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
9748 dwarf2_per_objfile parameter.
9749 (dwarf_expr_reg_to_entry_parameter): Add output
9750 dwarf2_per_objfile parameter.
9751 (locexpr_get_frame_base): Update.
9752 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
9753 <push_dwarf_reg_entry_value>: Update.
9754 <call_site_to_target_addr>: Update.
9755 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
9756 parameter.
9757 (value_of_dwarf_reg_entry): Update.
9758 (rw_pieced_value): Update.
9759 (indirect_synthetic_pointer): Update.
9760 (dwarf2_evaluate_property): Update.
9761 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
9762 parameter.
9763 (locexpr_read_variable): Update.
9764 (locexpr_get_symbol_read_needs): Update.
9765 (loclist_read_variable): Update.
9766
9767 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9768
9769 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
9770 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9771 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
9772 parameter.
9773 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
9774 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9775 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
9776 parameter.
9777 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
9778 sect_variable_value): Add dwarf2_per_objfile parameter.
9779 (class dwarf_evaluate_loc_desc) <dwarf_call,
9780 dwarf_variable_value>: Update.
9781 (fetch_const_value_from_synthetic_pointer): Add
9782 dwarf2_per_objfile parameter.
9783 (fetch_const_value_from_synthetic_pointer): Update.
9784 (coerced_pieced_ref): Update.
9785 (class symbol_needs_eval_context) <dwarf_call,
9786 dwarf_variable_value>: Update.
9787 (dwarf2_compile_expr_to_ax): Update.
9788
9789 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9790
9791 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
9792 parameter.
9793 (dwarf2_evaluate_loc_desc_full): Update.
9794
9795 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9796
9797 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
9798 parameter.
9799 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
9800 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
9801 dwarf2_per_objfile parameter.
9802 (decode_debug_loc_dwo_addresses): Likewise.
9803 (dwarf2_find_location_expression): Update.
9804 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
9805 (locexpr_describe_location_piece): Add dwarf2_per_objfile
9806 parameter.
9807 (disassemble_dwarf_expression): Add dwarf2_per_objfile
9808 parameter.
9809 (locexpr_describe_location_1): Likewise.
9810 (locexpr_describe_location): Update.
9811
9812 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9813
9814 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
9815 Remove.
9816 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
9817 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
9818 (dwarf2_compile_property_to_c): Update.
9819 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
9820 use text offset from objfile.
9821 (locexpr_tracepoint_var_ref): Update.
9822 (locexpr_generate_c_location): Update.
9823 (loclist_describe_location): Update.
9824 (loclist_tracepoint_var_ref): Update.
9825 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
9826 dwarf2_per_objfile parameter.
9827 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
9828 use text offset from objfile.
9829 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
9830
9831 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9832
9833 * dwarf2/expr.h (struct dwarf_expr_context)
9834 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
9835 <offset>: Remove.
9836 <per_objfile>: New member.
9837 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
9838 dwarf2_per_objfile parameter. Don't set offset, set
9839 per_objfile.
9840 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
9841 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
9842 a dwarf2_per_objfile object instead of an offset.
9843 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
9844 constructor.
9845 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
9846 to dwarf2_expr_executor constructor. Don't set offset.
9847 (dwarf2_fetch_cfa_info): Update.
9848 (struct dwarf2_frame_cache) <text_offset>: Remove.
9849 <per_objfile>: New field.
9850 (dwarf2_frame_cache): Update.
9851 (dwarf2_frame_prev_register): Update.
9852 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9853 <dwarf_evaluate_loc_desc>: Add constructor.
9854 (dwarf2_evaluate_loc_desc_full): Update.
9855 (dwarf2_locexpr_baton_eval): Update.
9856 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
9857 Add constructor.
9858 (dwarf2_loc_desc_get_symbol_read_needs): Update.
9859
9860 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9861
9862 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
9863 addr_sized_int_type>: Move to dwarf2_cu.
9864 <int_type>: Move to dwarf2_per_objfile.
9865 (struct dwarf2_per_objfile) <int_type>: Move here.
9866 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
9867 addr_sized_int_type>: Move here.
9868 (read_func_scope): Update.
9869 (read_array_type): Update.
9870 (read_tag_string_type): Update.
9871 (attr_to_dynamic_prop): Update.
9872 (dwarf2_per_cu_data::int_type): Rename to...
9873 (dwarf2_per_objfile::int_type): ... this.
9874 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
9875 (dwarf2_cu::addr_sized_int_type): ... this.
9876 (read_subrange_type): Update.
9877 (dwarf2_per_cu_data::addr_type): Rename to...
9878 (dwarf2_cu::addr_type): ... this.
9879 (set_die_type): Update.
9880
9881 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9882
9883 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
9884 data through per_cu->cu.
9885
9886 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9887
9888 * dwarf2/read.c (lookup_dwo_comp_unit): Change
9889 dwarf2_per_cu_data parameter fo dwarf2_cu.
9890 (lookup_dwo_type_unit): Likewise.
9891 (read_cutu_die_from_dwo): Likewise.
9892 (lookup_dwo_unit): Likewise.
9893 (open_and_init_dwo_file): Likewise.
9894 (lookup_dwo_cutu): Likewise.
9895 (lookup_dwo_comp_unit): Likewise.
9896 (lookup_dwo_type_unit): Likewise.
9897 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9898 (cutu_reader::cutu_reader): Update.
9899
9900 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9901
9902 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
9903 parameter.
9904 (process_full_type_unit): Likewise.
9905 (process_queue): Update.
9906
9907 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9908
9909 * dwarf2/read.c (recursively_compute_inclusions): Add
9910 dwarf2_per_objfile parameter.
9911 (compute_compunit_symtab_includes): Likewise.
9912 (process_cu_includes): Update.
9913
9914 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9915
9916 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
9917 parameter.
9918 (create_type_unit_group): Update.
9919 (process_psymtab_comp_unit_reader): Update.
9920 (build_type_psymtabs_reader): Update.
9921
9922 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9923
9924 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
9925 object through m_this_cu->cu.
9926
9927 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9928
9929 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
9930 the info parameter.
9931 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
9932
9933 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9934
9935 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
9936 per_objfile parameter.
9937 (load_full_type_unit): Add per_objfile parameter.
9938 (read_signatured_type): Likewise.
9939 (load_full_comp_unit): Likewise.
9940 (load_cu): Likewise.
9941 (dw2_do_instantiate_symtab): Likewise.
9942 (dw2_get_file_names): Likewise.
9943 (dw2_map_symtabs_matching_filename): Update.
9944 (dw_expand_symtabs_matching_file_matcher): Update.
9945 (dw2_map_symbol_filenames): Update.
9946 (process_psymtab_comp_unit): Add per_objfile parameter.
9947 (build_type_psymtabs_1): Update.
9948 (process_skeletonless_type_unit): Update.
9949 (dwarf2_build_psymtabs_hard): Update.
9950 (load_partial_comp_unit): Add per_objfile parameter.
9951 (scan_partial_symbols): Update.
9952 (load_full_comp_unit): Add per_objfile parameter.
9953 (process_imported_unit_die): Update.
9954 (create_cus_hash_table): Update.
9955 (find_partial_die): Update.
9956 (dwarf2_read_addr_index): Update.
9957 (follow_die_offset): Update.
9958 (dwarf2_fetch_die_loc_sect_off): Update.
9959 (dwarf2_fetch_constant_bytes): Update.
9960 (dwarf2_fetch_die_type_sect_off): Update.
9961 (follow_die_sig_1): Update.
9962 (load_full_type_unit): Add per_objfile parameter.
9963 (read_signatured_type): Likewise.
9964
9965 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9966
9967 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
9968 of objfile_name.
9969
9970 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9971
9972 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
9973 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
9974 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
9975 field.
9976 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
9977 (create_cus_from_index): Update.
9978 (dwarf2_read_gdb_index): Update.
9979 (create_cus_from_debug_names): Update.
9980 (dwarf2_read_debug_names): Update.
9981 (get_abbrev_section_for_cu): Update.
9982 (create_all_comp_units): Update.
9983 (read_attribute_value): Update.
9984 (get_debug_line_section): Update.
9985 * dwarf2/index-cache.c (index_cache::store): Update.
9986 * dwarf2/index-write.c (save_gdb_index_command): Update.
9987 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
9988
9989 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9990
9991 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
9992 member.
9993 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
9994 dwarf2_per_cu_data::per_bfd.
9995 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
9996 (create_type_unit_group): Likewise.
9997 (queue_comp_unit): Remove reference to
9998 per_cu->dwarf2_per_objfile.
9999 (maybe_queue_comp_unit): Likewise.
10000 (fill_in_sig_entry_from_dwo_entry): Assign new field.
10001 (create_cus_hash_table): Assign new field.
10002
10003 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10004
10005 * dwarf2/read.c: Replace
10006 dwarf2_cu->per_cu->dwarf2_per_objfile references with
10007 dwarf2_cu->per_objfile throughout.
10008
10009 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10010
10011 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
10012 parameter, don't use per_cu->dwarf2_per_objfile.
10013 (dw2_instantiate_symtab): Likewise.
10014 (dw2_find_last_source_symtab): Update.
10015 (dw2_map_expand_apply): Update.
10016 (dw2_lookup_symbol): Update.
10017 (dw2_expand_symtabs_for_function): Update.
10018 (dw2_expand_all_symtabs): Update.
10019 (dw2_expand_symtabs_with_fullname): Update.
10020 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
10021 don't use per_cu->dwarf2_per_objfile.
10022 (dw2_expand_marked_cus): Update.
10023 (dw2_find_pc_sect_compunit_symtab): Update.
10024 (dw2_debug_names_lookup_symbol): Update.
10025 (dw2_debug_names_expand_symtabs_for_function): Update.
10026 (dw2_debug_names_map_matching_symbols): Update.
10027 (dwarf2_psymtab::expand_psymtab): Update.
10028
10029 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10030
10031 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
10032 <per_objfile>: New member.
10033 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
10034 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
10035 call to dwarf2_cu.
10036 (cutu_reader::cutu_reader): Update.
10037 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
10038
10039 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10040
10041 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
10042 struct dwarf2_per_objfile.
10043 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
10044 dwarf2_per_bfd.
10045 * dwarf2/read.c (set_die_type): Update.
10046 (get_die_type_at_offset): Update.
10047
10048 2020-05-27 Tom Tromey <tom@tromey.com>
10049 Simon Marchi <simon.marchi@efficios.com>
10050
10051 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
10052 method.
10053 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
10054 get_symtab, set_symtab>: New methods.
10055 <m_symtabs>: New field.
10056 (struct dwarf2_psymtab): Derive from partial_symtab.
10057 <readin_p, get_compunit_symtab>: Declare methods.
10058 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
10059 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
10060 New methods.
10061 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
10062 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
10063 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
10064 (dw2_symtab_iter_next, dw2_print_stats)
10065 (dw2_expand_symtabs_with_fullname)
10066 (dw2_expand_symtabs_matching_one)
10067 (dw_expand_symtabs_matching_file_matcher)
10068 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
10069 (dw2_debug_names_iterator::next)
10070 (dw2_debug_names_map_matching_symbols)
10071 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
10072 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
10073 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
10074 New methods.
10075 (get_compunit_symtab, process_full_comp_unit)
10076 (process_full_type_unit): Update.
10077 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
10078
10079 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10080
10081 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
10082 then introduce a new dwarf2_per_objfile type.
10083 <read_line_string>: Move to the new dwarf2_per_objfile type.
10084 <objfile>: Likewise.
10085 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
10086 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
10087 dwarf2_per_objfile->per_bfd.
10088 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
10089 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
10090 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
10091 (dwarf2_per_bfd::free_cached_comp_units): ... this.
10092 (dwarf2_has_info): Allocate dwarf2_per_bfd.
10093 (dwarf2_per_objfile::locate_sections): Rename to...
10094 (dwarf2_per_bfd::locate_sections): ... this.
10095 (dwarf2_per_objfile::get_cutu): Rename to...
10096 (dwarf2_per_bfd::get_cutu): ... this.
10097 (dwarf2_per_objfile::get_cu): Rename to...
10098 (dwarf2_per_bfd::get_cu): ... this.
10099 (dwarf2_per_objfile::get_tu): Rename to...
10100 (dwarf2_per_bfd::get_tu): ... this.
10101 (dwarf2_per_objfile::allocate_per_cu): Rename to...
10102 (dwarf2_per_bfd::allocate_per_cu): ... this.
10103 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
10104 (dwarf2_per_bfd::allocate_signatured_type): ... this.
10105 (get_gdb_index_contents_ftype): Change parameter from
10106 dwarf2_per_objfile to dwarf2_per_bfd.
10107 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
10108 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
10109
10110 2020-05-27 Tom Tromey <tom@tromey.com>
10111 Simon Marchi <simon.marchi@efficios.com>
10112
10113 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
10114 (allocate_piece_closure): Set "per_objfile" member.
10115 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
10116 (locexpr_describe_location, loclist_describe_location): Use new
10117 member.
10118 * dwarf2/read.c (read_call_site_scope)
10119 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
10120 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
10121 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
10122 handle_data_member_location): Set per_objfile member.
10123 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
10124 member.
10125 (struct dwarf2_loclist_baton) <per_objfile>: New member.
10126
10127 2020-05-27 Tom Tromey <tom@tromey.com>
10128
10129 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
10130 allocate_signatured_type>: Declare new methods.
10131 <m_num_psymtabs>: New member.
10132 (struct dwarf2_per_cu_data) <index>: New member.
10133 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
10134 (dwarf2_per_objfile::allocate_signatured_type): New methods.
10135 (create_cu_from_index_list): Use allocate_per_cu.
10136 (create_signatured_type_table_from_index)
10137 (create_signatured_type_table_from_debug_names)
10138 (create_debug_type_hash_table, add_type_unit)
10139 (read_comp_units_from_section): Use allocate_signatured_type.
10140
10141 2020-05-27 Tom Tromey <tom@tromey.com>
10142
10143 * psymtab.c (partial_map_expand_apply)
10144 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10145 (psym_lookup_global_symbol_language)
10146 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10147 (psym_print_stats, psym_expand_symtabs_for_function)
10148 (psym_map_symbol_filenames, psym_map_matching_symbols)
10149 (psym_expand_symtabs_matching)
10150 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10151 (maintenance_check_psymtabs): Update.
10152 * psympriv.h (struct partial_symtab) <readin_p,
10153 get_compunit_symtab>: Add objfile parameter.
10154 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
10155 Likewise.
10156 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
10157 get_compunit_symtab>: Likewise.
10158 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
10159
10160 2020-05-27 Tom Tromey <tom@tromey.com>
10161
10162 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
10163 member.
10164 * dwarf2/read.c (delete_file_name_entry): Fix comment.
10165 (create_cu_from_index_list)
10166 (create_signatured_type_table_from_index)
10167 (create_signatured_type_table_from_debug_names)
10168 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
10169 (dwarf2_create_include_psymtab)
10170 (create_debug_type_hash_table, add_type_unit)
10171 (create_type_unit_group, read_comp_units_from_section)
10172 (dwarf2_compute_name, create_cus_hash_table)
10173 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
10174 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
10175 obstack.
10176 (dw2_get_real_path): Likewise. Change argument to
10177 dwarf2_per_objfile.
10178
10179 2020-05-27 Luis Machado <luis.machado@linaro.org>
10180
10181 PR tdep/26000
10182 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
10183 for ldrd (immediate).
10184
10185 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10186
10187 * command.h: Add comment giving the name of class_tui.
10188 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
10189 create the fake command for the help for class_tui.
10190
10191 2020-05-26 Tom Tromey <tromey@adacore.com>
10192
10193 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
10194 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
10195 (val_atr): New function.
10196 (value_val_atr): Use it.
10197 * ada-valprint.c (print_optional_low_bound): Change low bound
10198 handling for enums.
10199 (val_print_packed_array_elements): Don't call discrete_position.
10200 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
10201 discrete_position for enum types.
10202 * language.c (default_print_array_index): Change type.
10203 * language.h (struct language_defn) <la_print_array_index>: Add
10204 index_type parameter, change type of index_value.
10205 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
10206 (default_print_array_index): Update.
10207 * valprint.c (maybe_print_array_index): Don't call
10208 value_from_longest. Update.
10209 (value_print_array_elements): Don't call discrete_position.
10210
10211 2020-05-26 Tom Tromey <tromey@adacore.com>
10212
10213 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
10214 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
10215
10216 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
10217
10218 PR gdb/13519
10219 * avr-tdep.c (avr_integer_to_address): Return data or code
10220 address accordingly to the second 'type' argument of the
10221 function.
10222
10223 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
10224
10225 * infcmd.c, inferior.h: (construct_inferior_arguments):
10226 Moved function from here to gdbsupport/common-inferior.{h,cc}
10227
10228 2020-05-23 Tom Tromey <tom@tromey.com>
10229
10230 Revert commit eca1f90c:
10231 * NEWS: Remove entry for completion styling.
10232 * completer.c (_rl_completion_prefix_display_length): Move
10233 declaration later.
10234 (gdb_fnprint): Revert.
10235 (gdb_display_match_list_1): Likewise.
10236 * cli/cli-style.c (completion_prefix_style)
10237 (completion_difference_style, completion_suffix_style): Remove.
10238 (_initialize_cli_style): Revert.
10239 * cli/cli-style.h (completion_prefix_style)
10240 (completion_difference_style, completion_suffix_style): Don't
10241 declare.
10242
10243 2020-05-24 Pedro Alves <palves@redhat.com>
10244
10245 * symtab.c (completion_list_add_name): Return boolean indication
10246 of whether the symbol matched.
10247 (completion_list_add_symbol): Don't try to remove C++ aliases if
10248 the symbol didn't match in the first place.
10249 * symtab.h (completion_list_add_name): Return bool.
10250
10251 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
10252
10253 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
10254 type::field.
10255
10256 2020-05-23 Joel Brobecker <brobecker@adacore.com>
10257
10258 GDB 9.2 released.
10259
10260 2020-05-23 Tom Tromey <tom@tromey.com>
10261
10262 * NEWS: Add entry for completion styling.
10263 * completer.c (_rl_completion_prefix_display_length): Move
10264 declaration earlier.
10265 (gdb_fnprint): Use completion_style.
10266 (gdb_display_match_list_1): Likewise.
10267 * cli/cli-style.c (completion_prefix_style)
10268 (completion_difference_style, completion_suffix_style): New
10269 globals.
10270 (_initialize_cli_style): Register new globals.
10271 * cli/cli-style.h (completion_prefix_style)
10272 (completion_difference_style, completion_suffix_style): Declare.
10273
10274 2020-05-23 Pedro Alves <palves@redhat.com>
10275
10276 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
10277 (parse_escape): Use ISDIGIT instead of isdigit.
10278 (puts_debug): Use gdb_isprint instead of isprint.
10279 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
10280 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
10281 ISSPACE instead of isspace.
10282 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
10283 instead of isspace.
10284 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
10285 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
10286 instead of isxdigit and ISDIGIT instead of isdigit.
10287
10288 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10289
10290 * gdbtypes.h (struct type) <field>: New method.
10291 (TYPE_FIELDS): Remove, replace all uses with either type::fields
10292 or type::field.
10293
10294 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10295
10296 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
10297 (TYPE_FIELDS): Use type::fields. Change all call sites that
10298 modify the propery to use type::set_fields instead.
10299
10300 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10301
10302 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
10303 type::num_fields instead.
10304
10305 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10306
10307 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
10308 methods.
10309 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
10310 that modify the number of fields to use type::set_num_fields
10311 instead.
10312
10313 2020-05-22 Tom Tromey <tromey@adacore.com>
10314
10315 * compile/compile-object-load.h (munmap_list_free): Don't
10316 declare.
10317
10318 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
10319
10320 * annotate.c (annotate_source_line): Update return type, add call
10321 to update current symtab and line.
10322 * annotate.h (annotate_source_line): Update return type, and
10323 extend header comment.
10324 * source.c (info_line_command): Check annotation_level before
10325 calling annotate_source_line.
10326 * stack.c (print_frame_info): If calling annotate_source_line
10327 returns true, then don't print any other source line information.
10328
10329 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
10330
10331 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
10332
10333 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
10334
10335 * coffread.c (patch_type): Remove NULL check before xfree.
10336 * corefile.c (set_gnutarget): Likewise.
10337 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
10338 * exec.c (build_section_table): Likewise.
10339 * remote.c (remote_target::pass_signals): Likewise.
10340 * utils.c (n_spaces): Likewise.
10341 * cli/cli-script.c (document_command): Likewise.
10342 * i386-windows-tdep.c (core_process_module_section): Likewise.
10343 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
10344
10345 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
10346
10347 * symfile.c (reread_symbols): Clear objfile's section_offsets
10348 vector and section indices, re-compute them by calling
10349 sym_offsets.
10350
10351 2020-05-20 Tom Tromey <tromey@adacore.com>
10352
10353 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
10354 (desc_one_bound, desc_index_type): Compute field name.
10355
10356 2020-05-20 Tom de Vries <tdevries@suse.de>
10357
10358 PR symtab/25833
10359 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
10360
10361 2020-05-20 Alan Modra <amodra@gmail.com>
10362
10363 PR 25993
10364 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
10365 bfd_set_filename.
10366 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
10367 passed to bfd_set_filename.
10368 * symfile-mem.c (add_vsyscall_page): Likewise for string
10369 passed to symbol_file_add_from_memory.
10370 (symbol_file_add_from_memory): Make name param a const char* and
10371 don't strdup.
10372
10373 2020-05-20 Alan Modra <amodra@gmail.com>
10374
10375 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
10376 rather than accessing bfd->filename directly.
10377 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
10378 and use bfd_section_name.
10379 * dwarf2/frame.c (decode_frame_entry): Likewise.
10380 * exec.c (exec_set_section_address): Likewise.
10381 * solib-aix.c (solib_aix_bfd_open): Likewise.
10382 * stap-probe.c (get_stap_base_address): Likewise.
10383 * symfile.c (reread_symbols): Likewise.
10384
10385 2020-05-19 Tom Tromey <tromey@adacore.com>
10386
10387 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
10388
10389 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10390
10391 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
10392
10393 2020-05-19 Pedro Alves <palves@redhat.com>
10394
10395 * NEWS (set exec-file-mismatch): Adjust entry.
10396 * exec.c: Include "build-id.h".
10397 (validate_exec_file): Try to match build IDs instead of filenames.
10398 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
10399 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
10400 and pass down 'warn_if_slow'.
10401 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
10402 gdb_bfd_open_closure to pass it down.
10403 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
10404
10405 2020-05-19 Pedro Alves <palves@redhat.com>
10406
10407 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
10408 * target.c (target_fileio_open_1): Rename to target_fileio_open
10409 and make extern. Use bool.
10410 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
10411 (target_fileio_read_alloc_1): Adjust.
10412 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
10413 (target_fileio_open_warn_if_slow): Delete declaration.
10414
10415 2020-05-19 Pedro Alves <palves@redhat.com>
10416
10417 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
10418 Adjust all callers.
10419
10420 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
10421
10422 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
10423 whether disp is negative.
10424
10425 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10426
10427 * symfile.h (struct symfile_segment_data)
10428 <~symfile_segment_data>: Remove.
10429 <segment_info>: Change to std::vector.
10430 * symfile.c (default_symfile_segments): Update.
10431 * elfread.c (elf_symfile_segments): Update.
10432
10433 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10434
10435 * symfile.h (struct symfile_segment_data) <struct segment>: New.
10436 <segments>: New.
10437 <segment_bases, segment_sizes>: Remove.
10438 * symfile.c (default_symfile_segments): Update.
10439 * elfread.c (elf_symfile_segments): Update.
10440 * remote.c (remote_target::get_offsets): Update.
10441 * solib-target.c (solib_target_relocate_section_addresses):
10442 Update.
10443
10444 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10445
10446 * symfile.h (struct symfile_segment_data): Initialize fields.
10447 <~symfile_segment_data>: Add.
10448 (symfile_segment_data_up): New.
10449 (struct sym_fns) <sym_segments>: Return a
10450 symfile_segment_data_up.
10451 (default_symfile_segments): Return a symfile_segment_data_up.
10452 (free_symfile_segment_data): Remove.
10453 (get_symfile_segment_data): Return a symfile_segment_data_up.
10454 * symfile.c (default_symfile_segments): Likewise.
10455 (get_symfile_segment_data): Likewise.
10456 (free_symfile_segment_data): Remove.
10457 (symfile_find_segment_sections): Update.
10458 * elfread.c (elf_symfile_segments): Return a
10459 symfile_segment_data_up.
10460 * remote.c (remote_target::get_offsets): Update.
10461 * solib-target.c (solib_target_relocate_section_addresses):
10462 Update.
10463 * symfile-debug.c (debug_sym_segments): Return a
10464 symfile_segment_data_up.
10465
10466 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10467
10468 PR build/25981
10469 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
10470 Hardcode register numbers.
10471
10472 PR build/25981
10473 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
10474 procfs_find_LDT_entry): Remove.
10475 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
10476 procfs_find_LDT_entry): Remove.
10477 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
10478 Remove.
10479
10480 2020-05-17 Pedro Alves <palves@redhat.com>
10481 Andrew Burgess <andrew.burgess@embecosm.com>
10482 Keno Fischer <keno@juliacomputing.com>
10483
10484 PR gdb/25741
10485 * breakpoint.c (build_target_condition_list): Update comments.
10486 (build_target_command_list): Update comments and skip matching
10487 locations.
10488 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
10489 a separate function. Simplify "set breakpoint auto-hw off"
10490 handling.
10491 (insert_breakpoints): Update comment.
10492 (tracepoint_locations_match): New parameter. For breakpoints,
10493 compare location types too, if the caller wants to.
10494 (handle_automatic_hardware_breakpoints): New functions.
10495 (bp_location_is_less_than): Also sort by location type and
10496 hardware breakpoint length.
10497 (update_global_location_list): Handle "set breakpoint auto-hw on"
10498 here.
10499 (update_breakpoint_locations): Ask breakpoint_locations_match to
10500 ignore location types.
10501
10502 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
10503
10504 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
10505 type::name instead.
10506
10507 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
10508
10509 * gdbtypes.h (struct type) <name, set_name>: New methods.
10510 (TYPE_CODE): Use type::name. Change all call sites used to set
10511 the name to use type::set_name instead.
10512
10513 2020-05-16 Tom Tromey <tom@tromey.com>
10514
10515 * top.c (quit_force): Update.
10516 * infrun.c (handle_no_resumed): Update.
10517 * top.h (all_uis): New function.
10518 (ALL_UIS): Remove.
10519
10520 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
10521
10522 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
10523
10524 2020-05-16 Pedro Alves <palves@redhat.com>
10525
10526 * ia64-linux-nat.c
10527 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
10528 Declare method.
10529 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
10530
10531 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
10532
10533 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
10534 (sparc64_adi_info): Likewise.
10535
10536 2020-05-15 Tom Tromey <tom@tromey.com>
10537
10538 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
10539 block_objfile.
10540 (lookup_objfile_from_block): Remove.
10541 (lookup_symbol_in_block, lookup_symbol_in_static_block)
10542 (lookup_global_symbol): Use block_objfile.
10543 * symtab.h (lookup_objfile_from_block): Don't declare.
10544 * printcmd.c (clear_dangling_display_expressions): Use
10545 block_objfile.
10546 * parse.c (operator_check_standard): Use block_objfile.
10547
10548 2020-05-15 Tom Tromey <tom@tromey.com>
10549
10550 * language.c (language_alloc_type_symbol): Set
10551 SYMBOL_SECTION.
10552 * symtab.c (initialize_objfile_symbol): Remove.
10553 (allocate_symbol): Remove.
10554 (allocate_template_symbol): Remove.
10555 * dwarf2/read.c (fixup_go_packaging): Use "new".
10556 (new_symbol): Use "new".
10557 (read_variable): Don't call initialize_objfile_symbol. Use
10558 "new".
10559 (read_func_scope): Use "new".
10560 * xcoffread.c (process_xcoff_symbol): Don't call
10561 initialize_objfile_symbol.
10562 (SYMBOL_DUP): Remove.
10563 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
10564 "new".
10565 * symtab.h (allocate_symbol, initialize_objfile_symbol)
10566 (allocate_template_symbol): Don't declare.
10567 (struct symbol): Add copy constructor. Change defaults.
10568 * jit.c (finalize_symtab): Use "new".
10569 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
10570 Use "new".
10571 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
10572 (common_block_end): Use "new".
10573 * mdebugread.c (parse_symbol): Use "new".
10574 (new_symbol): Likewise.
10575
10576 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10577
10578 * NEWS: Mention changes to help and apropos.
10579
10580 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10581
10582 * command.h (enum command_class): Improve comments, document
10583 that class_alias is for user-defined aliases, give the class
10584 name for each class, remove unused class_xdb.
10585 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
10586 * breakpoint.c (_initialize_breakpoint): Replace class_alias
10587 by a precise class.
10588 * infcmd.c (_initialize_infcmd): Likewise.
10589 * reverse.c (_initialize_reverse): Likewise.
10590 * stack.c (_initialize_stack): Likewise.
10591 * symfile.c (_initialize_symfile): Likewise.
10592 * tracepoint.c (_initialize_tracepoint): Likewise.
10593
10594 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10595
10596 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
10597 when their aliased command is traversed.
10598 (help_cmd): Add fput_command_names_styled call to
10599 output command name and aliases when command has an alias.
10600
10601 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10602
10603 * cli/cli-decode.h (help_cmd_list): Remove declaration.
10604 * cli/cli-decode.c (help_cmd_list): Declare as static,
10605 remove prefix argument, use bool for recurse arg, rework to show the aliases of
10606 a command together with the command.
10607 (fput_command_name_styled, fput_command_names_styled): New functions.
10608 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
10609 fput_command_name_styled.
10610 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
10611 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
10612
10613 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10614
10615 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
10616 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
10617 * command.h (cmd_show_list): Likewise.
10618 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
10619 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
10620
10621 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10622
10623 * unittests/command-def-selftests.c (traverse_command_structure):
10624 Verify all commands of a list have the same prefix command and
10625 that only the top cmdlist commands have a null prefix.
10626
10627 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10628
10629 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
10630 as prefix, not one of its aliases.
10631 (set_cmd_prefix): Remove.
10632 (do_add_cmd): Centralize the setting of the prefix of a command, when
10633 command is defined after its full chain of prefix commands.
10634 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
10635 (add_setshow_cmd_full): Likewise.
10636 (update_prefix_field_of_prefixed_commands): New function.
10637 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
10638 update_prefix_field_of_prefixed_commands.
10639 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
10640 addresses of remote_set_cmdlist and remote_show_cmdlist given
10641 as argument, not the address of an argument.
10642 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
10643 * gdb/remote.c (_initialize_remote): Likewise.
10644
10645 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10646
10647 * cli/cli-cmds.c (alias_command): Check for an existing alias
10648 using lookup_cmd_composition, as valid_command_p is too strict
10649 and forbids aliases that are the prefix of an existing alias
10650 or command.
10651 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
10652 command is properly recognised as a valid command.
10653
10654 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10655
10656 * unittests/help-doc-selftests.c: Rename to
10657 unittests/command-def-selftests.c
10658 * unittests/command-def-selftests.c (help_doc_tests): Update some
10659 comments.
10660 (command_structure_tests, traverse_command_structure): New namespace
10661 and function.
10662 (command_structure_invariants_tests): New function.
10663 (_initialize_command_def_selftests) Renamed from
10664 _initialize_help_doc_selftests, register command_structure_invariants
10665 selftest.
10666
10667 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10668
10669 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
10670 an alias of 'show'.
10671
10672 2020-05-15 Joel Brobecker <brobecker@adacore.com>
10673
10674 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
10675 ada_is_fixed_point_type. Update all callers.
10676 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
10677 all callers.
10678 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
10679 Update all callers.
10680 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
10681 print_fixed_point_type. Update all callers.
10682 * ada-valprint.c (ada_value_print_num): Replace call to
10683 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
10684
10685 2020-05-14 Kevin Buettner <kevinb@redhat.com>
10686
10687 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
10688 processors.
10689 (cpu_supports_bts): Add CV_AMD case.
10690
10691 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
10692 Simon Marchi <simon.marchi@efficios.com>
10693
10694 * infrun.c (stop_all_threads): Collect multiple wait events at
10695 each pass.
10696
10697 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
10698
10699 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
10700 type::code instead.
10701
10702 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
10703
10704 * gdbtypes.h (struct type) <code, set_code>: New methods.
10705 (TYPE_CODE): Use type::code. Change all call sites used to set
10706 the code to use type::set_code instead.
10707
10708 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10709 Tom de Vries <tdevries@suse.de>
10710 Pedro Alves <palves@redhat.com>
10711
10712 PR threads/25478
10713 * infrun.c (stop_all_threads): Do NOT ignore
10714 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
10715 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
10716 received.
10717 (handle_no_resumed): Remove code handling a live inferior with no
10718 threads.
10719 * remote.c (has_single_non_exited_thread): New.
10720 (remote_target::update_thread_list): Do not delete a thread if is
10721 the last thread of the process.
10722 * thread.c (thread_select): Call delete_exited_threads instead of
10723 prune_threads.
10724
10725 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10726
10727 * infrun.c (stop_all_threads): Enable/disable thread events of all
10728 targets. Move a debug message denoting the end of the function
10729 into the SCOPED_EXIT block.
10730
10731 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10732
10733 * process-stratum-target.h: Include <set>.
10734 (all_non_exited_process_targets, switch_to_target_no_thread): New
10735 function declarations.
10736 * process-stratum-target.c (all_non_exited_process_targets)
10737 (switch_to_target_no_thread): New function implementations.
10738
10739 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10740
10741 * infrun.c (handle_inferior_event): Extract out a piece of code
10742 into...
10743 (mark_non_executing_threads): ...this new function.
10744
10745 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10746
10747 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
10748 use.
10749
10750 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10751
10752 * regcache.c (regcache_read_pc_protected): New function
10753 implementation that returns 0 if the PC cannot read via
10754 'regcache_read_pc'.
10755 * infrun.c (proceed): Call 'regcache_read_pc_protected'
10756 instead of 'regcache_read_pc'.
10757 (keep_going_pass_signal): Ditto.
10758
10759 2020-05-13 Tom Tromey <tromey@adacore.com>
10760
10761 * ada-lang.c (align_value): Remove.
10762 (ada_template_to_fixed_record_type_1): Use align_up.
10763
10764 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10765
10766 * async-event.c: Update the copyright year.
10767 * async-event.h: Update the copyright year.
10768
10769 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
10770
10771 * objfiles.h (is_addr_in_objfile,
10772 shared_objfile_contains_address_p): Return bool.
10773 * objfile.c (is_addr_in_objfile,
10774 shared_objfile_contains_address_p): Return bool.
10775
10776 2020-05-11 Tom Tromey <tromey@adacore.com>
10777
10778 * cli/cli-cmds.c (info_command): Restore.
10779 (_initialize_cli_cmds): Use add_prefix_command for "info".
10780 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
10781
10782 2020-05-11 Tom Tromey <tromey@adacore.com>
10783
10784 * ada-lang.c (ada_value_primitive_field): Now public.
10785 * ada-lang.h (ada_value_primitive_field): Declare.
10786 * ada-valprint.c (print_field_values): Use
10787 ada_value_primitive_field for wrapper fields.
10788
10789 2020-05-11 Tom de Vries <tdevries@suse.de>
10790
10791 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
10792 MODULE_DOMAIN.
10793
10794 2020-05-11 Tom de Vries <tdevries@suse.de>
10795
10796 PR symtab/25941
10797 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
10798 with length 0, if not gdb-produced.
10799 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
10800
10801 2020-05-09 Tom de Vries <tdevries@suse.de>
10802
10803 PR gdb/25955
10804 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
10805 calculation.
10806
10807 2020-05-09 Tom Tromey <tom@tromey.com>
10808
10809 * top.c (server_command): Now bool.
10810 * top.h (server_command): Now bool.
10811
10812 2020-05-08 Tom Tromey <tromey@adacore.com>
10813
10814 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
10815 already being processed.
10816
10817 2020-05-08 Tom Tromey <tom@tromey.com>
10818
10819 * printcmd.c (struct display) <next>: Remove.
10820 <display>: New constructor.
10821 <exp_string>: Now a std::string.
10822 <enabled_p>: Now a bool.
10823 (display_number): Move definition earlier.
10824 (displays): Rename from display_chain. Now a std::vector.
10825 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
10826 (display_command): Update.
10827 (do_one_display, disable_display)
10828 (enable_disable_display_command, do_enable_disable_display):
10829 Update.
10830 (free_display): Remove.
10831 (clear_displays): Rewrite.
10832 (delete_display): Update.
10833 (map_display_numbers): Use function_view. Remove "data"
10834 parameter. Update.
10835 (do_delete_display): Remove.
10836 (undisplay_command): Update.
10837 (do_one_display, do_displays, disable_display)
10838 (info_display_command): Update.
10839 (do_enable_disable_display): Remove.
10840 (enable_disable_display_command)
10841 (clear_dangling_display_expressions): Update.
10842
10843 2020-05-08 Tom Tromey <tom@tromey.com>
10844
10845 * symtab.c (set_symbol_cache_size)
10846 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
10847 (maintenance_print_symbol_cache_statistics): Update.
10848 * symmisc.c (print_symbol_bcache_statistics)
10849 (print_objfile_statistics, maintenance_print_objfiles)
10850 (maintenance_info_symtabs, maintenance_check_symtabs)
10851 (maintenance_expand_symtabs, maintenance_info_line_tables):
10852 Update.
10853 * symfile-debug.c (set_debug_symfile): Update.
10854 * source.c (forget_cached_source_info): Update.
10855 * python/python.c (gdbpy_progspaces): Update.
10856 * psymtab.c (maintenance_info_psymtabs): Update.
10857 * probe.c (parse_probes): Update.
10858 * linespec.c (iterate_over_all_matching_symtabs)
10859 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
10860 * guile/scm-progspace.c (gdbscm_progspaces): Update.
10861 * exec.c (exec_target::close): Update.
10862 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
10863 * breakpoint.c (print_one_breakpoint_location)
10864 (create_longjmp_master_breakpoint)
10865 (create_std_terminate_master_breakpoint): Update.
10866 * progspace.c (program_spaces): Now a std::vector.
10867 (maybe_new_address_space): Update.
10868 (add_program_space): Remove.
10869 (program_space::program_space): Update.
10870 (remove_program_space): Update.
10871 (number_of_program_spaces): Remove.
10872 (print_program_space, update_address_spaces): Update.
10873 * progspace.h (program_spaces): Change type.
10874 (ALL_PSPACES): Remove.
10875 (number_of_program_spaces): Don't declare.
10876 (struct program_space) <next>: Remove.
10877
10878 2020-05-08 Tom Tromey <tom@tromey.com>
10879
10880 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
10881 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
10882 (enable_break): Update.
10883 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
10884 (frv_fdpic_find_canonical_descriptor): Update.
10885 (frv_fetch_objfile_link_map): Update.
10886 * progspace.c (program_space::free_all_objfiles): Update.
10887 (program_space::solibs): New method.
10888 * progspace.h (struct program_space) <solibs>: New method.
10889 * solist.h (master_so_list): Don't declare.
10890 (ALL_SO_LIBS): Remove.
10891 * solib.h (so_list_head): Remove.
10892 (update_solib_list): Update comment.
10893 * solib.c (master_so_list): Remove.
10894 (solib_used, update_solib_list, solib_add)
10895 (info_sharedlibrary_command, clear_solib)
10896 (reload_shared_libraries_1, remove_user_added_objfile): Update.
10897
10898 2020-05-08 Tom Tromey <tom@tromey.com>
10899
10900 * extension.c (extension_languages): Now a std::array.
10901 (ALL_EXTENSION_LANGUAGES): Remove.
10902 (get_ext_lang_defn, get_ext_lang_of_file)
10903 (eval_ext_lang_from_control_command): Update.
10904 (finish_ext_lang_initialization)
10905 (auto_load_ext_lang_scripts_for_objfile)
10906 (ext_lang_type_printers::ext_lang_type_printers)
10907 (apply_ext_lang_type_printers)
10908 (ext_lang_type_printers::~ext_lang_type_printers)
10909 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
10910 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
10911 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
10912 (get_matching_xmethod_workers, ext_lang_colorize)
10913 (ext_lang_before_prompt): Update.
10914 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
10915
10916 2020-05-08 Tom Tromey <tom@tromey.com>
10917
10918 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
10919 overload.
10920 <swap_string, m_string>: Remove.
10921 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
10922 Update.
10923 * stabsread.c (define_symbol, read_type): Update.
10924 * linespec.c (find_linespec_symbols): Update.
10925 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
10926 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
10927 * dbxread.c (read_dbx_symtab): Update.
10928 * cp-support.h (cp_canonicalize_string_full)
10929 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
10930 Return unique_xmalloc_ptr.
10931 * cp-support.c (inspect_type): Update.
10932 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
10933 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
10934 Likewise.
10935 * c-typeprint.c (print_name_maybe_canonical): Update.
10936 * break-catch-throw.c (check_status_exception_catchpoint):
10937 Update.
10938
10939 2020-05-08 Tom de Vries <tdevries@suse.de>
10940
10941 * infrun.c (follow_fork): Copy current_line and current_symtab to
10942 child thread.
10943
10944 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
10945
10946 * async-event.c (struct async_signal_handler, struct
10947 async_event_handler): Reformat, remove typedef.
10948
10949 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
10950
10951 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
10952 access thistype->main_type->dyn_prop_list directly.
10953
10954 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
10955
10956 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
10957 (remove_dyn_prop): Remove. Update all users to use
10958 type::remove_dyn_prop.
10959 * gdbtypes.c (remove_dyn_prop): Rename to...
10960 (type::remove_dyn_prop): ... this.
10961
10962 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
10963
10964 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
10965 (add_dyn_prop): Remove. Update all users to use
10966 type::add_dyn_prop.
10967 * gdbtypes.c (add_dyn_prop): Rename to...
10968 (type::add_dyn_prop): ... this.
10969
10970 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
10971
10972 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
10973 (get_dyn_prop): Remove. Update all users to use
10974 type::dyn_prop.
10975 * gdbtypes.c (get_dyn_prop): Rename to...
10976 (type::dyn_prop): ... this.
10977
10978 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
10979
10980 * gdbtypes.h (struct main_type) <flag_static>: Remove.
10981
10982 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
10983
10984 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
10985 instruction, skip it if it's there.
10986
10987 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
10988
10989 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
10990
10991 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
10992
10993 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
10994 * gdbtypes.c (recursive_dump_type): Remove use of
10995 TYPE_INCOMPLETE.
10996
10997 2020-05-03 Tom Tromey <tom@tromey.com>
10998
10999 * breakpoint.c (catch_command, tcatch_command): Remove.
11000 (_initialize_breakpoint): Use add_basic_prefix_cmd,
11001 add_show_prefix_cmd.
11002 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
11003 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
11004 Remove.
11005 (add_internal_problem_command): Use add_basic_prefix_cmd,
11006 add_show_prefix_cmd.
11007 * mips-tdep.c (set_mipsfpu_command): Remove.
11008 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
11009 * dwarf2/index-cache.c (set_index_cache_command): Remove.
11010 (_initialize_index_cache): Use add_basic_prefix_cmd.
11011 * memattr.c (dummy_cmd): Remove.
11012 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
11013 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
11014 (_initialize_tui_win): Use add_basic_prefix_cmd,
11015 add_show_prefix_cmd.
11016 * cli/cli-logging.c (set_logging_command): Remove.
11017 (_initialize_cli_logging): Use add_basic_prefix_cmd,
11018 add_show_prefix_cmd.
11019 (show_logging_command): Remove.
11020 * target.c (target_command): Remove.
11021 (add_target): Use add_basic_prefix_cmd.
11022
11023 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
11024
11025 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
11026
11027 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11028
11029 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
11030 info_command.
11031
11032 2020-04-30 Kamil Rytarowski <n54@gmx.com>
11033
11034 * nbsd-nat.c (nbsd_enable_proc_events)
11035 (nbsd_nat_target::post_startup_inferior): Add.
11036 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
11037 (nbsd_nat_target::update_thread_list): Rewrite.
11038 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
11039 "PTRACE_LWP_CREATE".
11040 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
11041
11042 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11043
11044 * stack.c (_initialize_stack): Remove duplicated creation
11045 of "frame" command and "f" alias.
11046
11047 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
11048
11049 PR gdb/18706
11050 * gdbtypes.c (check_typedef): Calculate size of array of
11051 stubbed type.
11052
11053 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
11054
11055 PR gdb/15559
11056 * i386-tdep.c (i386_push_dummy_call): Call
11057 i386_thiscall_push_dummy_call.
11058 (i386_thiscall_push_dummy_call): New function.
11059 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
11060 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
11061 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
11062
11063 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11064
11065 * gdbarch.sh (do_read): Add shellcheck disable directive for
11066 warning SC2162.
11067
11068 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11069
11070 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
11071 "referenced but not assigned" warning.
11072
11073 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11074
11075 * gdbarch.sh: Remove code that sets fallbackdefault.
11076
11077 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11078
11079 * gdbarch.sh: Use shell operators && and || instead of
11080 -a and -o.
11081
11082 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11083
11084 * gdbarch.sh: Use $(...) instead of `...`.
11085
11086 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11087
11088 * gdbarch.sh: Use double quotes around variables.
11089
11090 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11091
11092 * gdbarch.sh: Use %s with printf, instead of variables in the
11093 format string.
11094
11095 2020-04-29 Tom Tromey <tromey@adacore.com>
11096
11097 PR ada/25875:
11098 * dwarf2/read.c (update_enumeration_type_from_children): Compute
11099 type fields here.
11100 (read_enumeration_type): Call
11101 update_enumeration_type_from_children later. Update comments.
11102 (process_enumeration_scope): Don't create type fields.
11103
11104 2020-04-29 Kamil Rytarowski <n54@gmx.com>
11105
11106 * nbsd-tdep.c: Include "xml-syscall.h".
11107 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
11108
11109 2020-04-29 Kamil Rytarowski <n54@gmx.com>
11110
11111 * nbsd-nat.c: Include "sys/wait.h".
11112 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
11113 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
11114 (nbsd_nat_target::remove_exec_catchpoint)
11115 (nbsd_nat_target::set_syscall_catchpoint): Add.
11116 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
11117 (nbsd_nat_target::insert_exec_catchpoint)
11118 (nbsd_nat_target::remove_exec_catchpoint)
11119 (nbsd_nat_target::set_syscall_catchpoint): Add.
11120 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
11121 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
11122 `nbsd_get_syscall_number'.
11123
11124 2020-04-29 Tom Tromey <tom@tromey.com>
11125
11126 * stack.c (print_block_frame_labels): Remove.
11127
11128 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
11129
11130 PR gdb/17320
11131 * ada-valprint.c (val_print_packed_array_elements): Move array
11132 end bracket to new line.
11133 (ada_val_print_string): Remove extra spaces before first array
11134 element.
11135 * c-valprint.c (c_value_print_array): Likewise.
11136 * m2-valprint.c (m2_print_array_contents): Likewise.
11137 (m2_value_print_inner): Likewise.
11138 * p-valprint.c (pascal_value_print_inner): Likewise.
11139 * valprint.c (generic_val_print_array): Likewise.
11140 (value_print_array_elements): Move first array element and array
11141 end bracket to new line.
11142
11143 2020-04-29 Tom de Vries <tdevries@suse.de>
11144
11145 PR symtab/25889
11146 * linespec.c (find_method): Fix ix calculation.
11147
11148 2020-04-28 Kamil Rytarowski <n54@gmx.com>
11149
11150 * syscalls/update-netbsd.sh: New file.
11151 * syscalls/netbsd.xml: Regenerate.
11152 * data-directory/Makefile.in: Register `netbsd.xml' in
11153 `SYSCALLS_FILES'.
11154
11155 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
11156
11157 * syscalls/update-freebsd.sh: Add double quotes.
11158
11159 2020-04-28 Tom Tromey <tom@tromey.com>
11160
11161 * NEWS: Update.
11162 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
11163 (cmdpy_init): Allow class_tui.
11164
11165 2020-04-28 Mark Williams <mark@myosotissp.com>
11166
11167 PR gdb/24480
11168 * dwarf2read.c: Add missing assingments to list_in_scope when
11169 start_symtab was already called.
11170
11171 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
11172
11173 PR gdb/25881
11174 * dwarf2/read.c (offset_map_type): Use
11175 gdb:hash_enum<sect_offset> as hash function.
11176
11177 2020-04-28 Tom de Vries <tdevries@suse.de>
11178
11179 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
11180 with DW_AT_signature.
11181
11182 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
11183
11184 * configure.ac: Remove check for fs_base/gs_base in
11185 user_regs_struct.
11186 * configure: Re-generate.
11187 * config.in: Re-generate.
11188 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
11189 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
11190 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
11191
11192 2020-04-27 Luis Machado <luis.machado@linaro.org>
11193
11194 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
11195 problematic inline frame unwinding situation.
11196 * frame.c (frame_id_computed_p): New function.
11197 * frame.h (frame_id_computed_p): New prototype.
11198
11199 2020-04-26 Tom Tromey <tom@tromey.com>
11200
11201 * command.h (enum command_class) <class_pseudo>: Remove.
11202
11203 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11204
11205 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
11206 and whitespace.
11207
11208 2020-04-25 Kamil Rytarowski <n54@gmx.com>
11209
11210 * inf-ptrace.c (inf_ptrace_target::wait): Remove
11211 `PT_GET_PROCESS_STATE' block.
11212
11213 2020-04-24 Tom Tromey <tom@tromey.com>
11214
11215 * symtab.h (symbol_get_demangled_name): Don't declare.
11216 * symtab.c (symbol_get_demangled_name): Remove.
11217 (general_symbol_info::natural_name)
11218 (general_symbol_info::demangled_name): Update.
11219
11220 2020-04-24 Tom Tromey <tom@tromey.com>
11221
11222 PR rust/25025:
11223 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
11224
11225 2020-04-24 Tom Tromey <tom@tromey.com>
11226
11227 PR symtab/12707:
11228 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
11229 exists.
11230 (new_symbol): Likewise.
11231 * compile/compile-object-load.c (get_out_value_type): Use
11232 symbol_matches_search_name.
11233
11234 2020-04-24 Tom Tromey <tom@tromey.com>
11235
11236 * dwarf2/read.c (add_partial_symbol): Do not call
11237 compute_and_set_names.
11238
11239 2020-04-24 Tom Tromey <tom@tromey.com>
11240
11241 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
11242 overload.
11243
11244 2020-04-24 Tom Tromey <tom@tromey.com>
11245
11246 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
11247 (add_psymbol_to_list): New overload. Make old overload call new
11248 one.
11249 * psympriv.h (add_psymbol_to_list): New overload.
11250
11251 2020-04-24 Tom Tromey <tom@tromey.com>
11252
11253 * dwarf2/read.c (partial_die_info::read) <case
11254 DW_AT_linkage_name>: Use value_as_string.
11255 (dwarf2_string_attr): Use value_as_string.
11256 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
11257 method.
11258 * dwarf2/attribute.c (attribute::value_as_string): New method.
11259
11260 2020-04-24 Tom Tromey <tom@tromey.com>
11261
11262 * symtab.c (general_symbol_info::natural_name)
11263 (general_symbol_info::demangled_name): Check for language_rust.
11264
11265 2020-04-24 Tom Tromey <tom@tromey.com>
11266
11267 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
11268 (dwarf2_physname): ... from here.
11269 (partial_die_info::read): Add Rust "{" hack.
11270
11271 2020-04-24 Tom Tromey <tom@tromey.com>
11272
11273 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
11274 method.
11275 (symbol_set_demangled_name): Don't declare.
11276 * symtab.c (general_symbol_info::set_demangled_name): Rename from
11277 symbol_set_demangled_name.
11278 (general_symbol_info::set_language)
11279 (general_symbol_info::compute_and_set_names): Update.
11280 * minsyms.c (minimal_symbol_reader::install): Update.
11281 * dwarf2/read.c (new_symbol): Update.
11282
11283 2020-04-24 Tom Tromey <tromey@adacore.com>
11284
11285 PR python/23662:
11286 * python/py-type.c (convert_field): Handle
11287 FIELD_LOC_KIND_DWARF_BLOCK.
11288 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
11289 (typy_get_dynamic): Nw function.
11290 (type_object_getset): Add "dynamic".
11291 * NEWS: Add entry.
11292
11293 2020-04-24 Tom Tromey <tromey@adacore.com>
11294
11295 * ada-typeprint.c (print_choices, print_variant_part)
11296 (print_record_field_types_dynamic): New functions.
11297 (print_record_field_types): Use print_record_field_types_dynamic.
11298
11299 2020-04-24 Tom Tromey <tromey@adacore.com>
11300
11301 * dwarf2/read.c (handle_data_member_location): New overload.
11302 (dwarf2_add_field): Use it.
11303 (decode_locdesc): Add "computed" parameter. Update comment.
11304 * gdbtypes.c (is_dynamic_type_internal): Also look for
11305 FIELD_LOC_KIND_DWARF_BLOCK.
11306 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
11307 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
11308 virtual base classes.
11309 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
11310 FIELD_LOC_KIND_DWARF_BLOCK.
11311
11312 2020-04-24 Tom Tromey <tromey@adacore.com>
11313
11314 * dwarf2/read.c (read_structure_type): Handle dynamic length.
11315 * gdbtypes.c (is_dynamic_type_internal): Check
11316 TYPE_HAS_DYNAMIC_LENGTH.
11317 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
11318 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
11319 New macros.
11320 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
11321 constant.
11322
11323 2020-04-24 Tom Tromey <tromey@adacore.com>
11324
11325 * dwarf2/read.c (struct variant_field): Rewrite.
11326 (struct variant_part_builder): New.
11327 (struct nextfield): Remove "variant" field. Add "offset".
11328 (struct field_info): Add "current_variant_part" and
11329 "variant_parts".
11330 (alloc_discriminant_info): Remove.
11331 (alloc_rust_variant): New function.
11332 (quirk_rust_enum): Update.
11333 (dwarf2_add_field): Set "offset" member. Don't handle
11334 DW_TAG_variant_part.
11335 (offset_map_type): New typedef.
11336 (convert_variant_range, create_one_variant)
11337 (create_one_variant_part, create_variant_parts)
11338 (add_variant_property): New functions.
11339 (dwarf2_attach_fields_to_type): Call add_variant_property.
11340 (read_structure_type): Don't handle DW_TAG_variant_part.
11341 (handle_variant_part, handle_variant): New functions.
11342 (handle_struct_member_die): Use them.
11343 (process_structure_scope): Don't handle variant parts.
11344 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
11345 (struct discriminant_info): Remove.
11346 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
11347 (struct main_type) <flag_discriminated_union>: Remove.
11348 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
11349 (rust_enum_variant): Return int. Remove "contents". Rewrite.
11350 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
11351 Update.
11352 * valops.c (value_union_variant): Remove.
11353 * value.h (value_union_variant): Don't declare.
11354
11355 2020-04-24 Tom Tromey <tromey@adacore.com>
11356
11357 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
11358 (ada_value_primitive_packed_val): Update.
11359 * ada-valprint.c (ada_value_print_1): Update.
11360 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
11361 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
11362 just an address. Use evaluate_for_locexpr_baton.
11363 (dwarf2_evaluate_property): Update.
11364 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
11365 array_view.
11366 * findvar.c (default_read_var_value): Update.
11367 * gdbtypes.c (compute_variant_fields_inner)
11368 (resolve_dynamic_type_internal): Update.
11369 (resolve_dynamic_type): Change type of valaddr parameter.
11370 * gdbtypes.h (resolve_dynamic_type): Update.
11371 * valarith.c (value_subscripted_rvalue): Update.
11372 * value.c (value_from_contents_and_address): Update.
11373
11374 2020-04-24 Tom Tromey <tromey@adacore.com>
11375
11376 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
11377 "push_initial_value" parameter.
11378 (dwarf2_evaluate_property): Likewise.
11379 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
11380
11381 2020-04-24 Tom Tromey <tromey@adacore.com>
11382
11383 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
11384 (variant::matches, compute_variant_fields_recurse)
11385 (compute_variant_fields_inner, compute_variant_fields): New
11386 functions.
11387 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
11388 Use resolved_type after type is made.
11389 (operator==): Add new cases.
11390 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
11391 (struct discriminant_range, struct variant, struct variant_part):
11392 New.
11393 (union dynamic_prop_data) <variant_parts, original_type>: New
11394 members.
11395 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
11396 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
11397 constants.
11398 * value.c (unpack_bits_as_long): Now public.
11399 * value.h (unpack_bits_as_long): Declare.
11400
11401 2020-04-24 Tom Tromey <tromey@adacore.com>
11402
11403 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
11404 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
11405
11406 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
11407
11408 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
11409
11410 2020-04-24 Kamil Rytarowski <n54@gmx.com>
11411
11412 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
11413 (remove_fork_catchpoint, post_startup_inferior)
11414 (post_attach): Move...
11415 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
11416 (remove_fork_catchpoint, post_startup_inferior)
11417 (post_attach): ...here.
11418 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
11419 (remove_fork_catchpoint, post_startup_inferior)
11420 (post_attach): Move...
11421 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
11422 (remove_fork_catchpoint, post_startup_inferior)
11423 (post_attach): ...here.
11424
11425 2020-04-24 Tom Tromey <tromey@adacore.com>
11426
11427 * nat/windows-nat.h (struct windows_thread_info)
11428 <pc_adjusted>: New member.
11429 * windows-nat.c (windows_fetch_one_register): Check
11430 pc_adjusted.
11431 (windows_nat_target::get_windows_debug_event)
11432 (windows_nat_target::wait): Set pc_adjusted.
11433
11434 2020-04-24 Tom de Vries <tdevries@suse.de>
11435
11436 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
11437 Run gdb-add-index inside temp dir.
11438
11439 2020-04-23 Tom Tromey <tromey@adacore.com>
11440
11441 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
11442 in loop.
11443
11444 2020-04-23 Luis Machado <luis.machado@linaro.org>
11445
11446 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
11447 get_frame_register instead of gdbarch_unwind_pc.
11448
11449 2020-04-23 Tom de Vries <tdevries@suse.de>
11450
11451 * symtab.c (lookup_global_symbol): Prefer def over decl.
11452
11453 2020-04-23 Tom de Vries <tdevries@suse.de>
11454
11455 PR symtab/25807
11456 * block.c (best_symbol, better_symbol): Promote to external.
11457 * block.h (best_symbol, better_symbol): Declare.
11458 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
11459 decl.
11460
11461 2020-04-23 Tom Tromey <tromey@adacore.com>
11462
11463 PR ada/25837:
11464 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
11465 "const char *", not a "const std::string &".
11466 <name_and_matcher::operator==>: Update.
11467 * unittests/lookup_name_info-selftests.c: Change type of
11468 "result".
11469
11470 2020-04-23 Tom Tromey <tom@tromey.com>
11471
11472 * inferior.h (iterate_over_inferiors): Don't declare.
11473 * inferior.c (iterate_over_inferiors): Remove.
11474 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
11475 Remove.
11476 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
11477 use iterate_over_inferiors.
11478 (darwin_resume_inferior_it)
11479 (struct resume_inferior_threads_param)
11480 (darwin_resume_inferior_threads_it): Remove.
11481 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
11482
11483 2020-04-23 Tom de Vries <tdevries@suse.de>
11484
11485 * blockframe.c (find_pc_partial_function): Use
11486 find_pc_sect_compunit_symtab rather than
11487 objfile->sf->qf->find_pc_sect_compunit_symtab.
11488
11489 2020-04-22 Tom de Vries <tdevries@suse.de>
11490
11491 PR symtab/25764
11492 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
11493 in psymtabs.
11494
11495 2020-04-22 Tom de Vries <tdevries@suse.de>
11496
11497 PR symtab/25801
11498 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
11499 symtabs.
11500
11501 2020-04-22 Tom de Vries <tdevries@suse.de>
11502
11503 PR symtab/25700
11504 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
11505 CU if already created.
11506
11507 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11508
11509 * infrun.c (displaced_step_fixup): Switch to the event_thread
11510 before calling displaced_step_restore, not after.
11511
11512 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11513
11514 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
11515 its inferior is not recorded by us.
11516 (record_btrace_target_open): Replace call to
11517 all_non_exited_threads () with call to current_inferior
11518 ()->non_exited_threads ().
11519 (record_btrace_target::stop_recording): Likewise.
11520 (record_btrace_target::close): Likewise.
11521 (record_btrace_target::wait): Likewise.
11522 (record_btrace_target::record_stop_replaying): Likewise.
11523
11524 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11525
11526 * btrace.c (btrace_enable): Throw an error on double enables and
11527 when enabling recording fails.
11528 (btrace_disable): Throw an error if the thread is not recorded.
11529
11530 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11531
11532 * record-btrace.c (record_btrace_target::fetch_registers): Forward
11533 request if we do not have a thread_info.
11534
11535 2020-04-21 Tom de Vries <tdevries@suse.de>
11536
11537 PR gdb/25471
11538 * thread.c
11539 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
11540 exception in get_frame_id.
11541
11542 2020-04-20 Tom Tromey <tromey@adacore.com>
11543
11544 * python/python.c (struct gdbpy_event): Mark move constructor as
11545 noexcept.
11546 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
11547 constructor as noexcept.
11548 * completer.h (struct completion_result): Mark move constructor as
11549 noexcept.
11550 * completer.c (completion_result::completion_result): Use
11551 initialization style. Don't call reset_match_list.
11552
11553 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
11554
11555 * MAINTAINERS (Write After Approval): Add myself.
11556
11557 2020-04-18 Tom Tromey <tom@tromey.com>
11558
11559 * windows-tdep.c (init_w32_command_list)
11560 (w32_prefix_command_valid): Restore.
11561 (_initialize_windows_tdep): Call init_w32_command_list.
11562
11563 2020-04-18 Tom Tromey <tom@tromey.com>
11564
11565 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
11566 * value.c (value_fn_field): Update.
11567 * valops.c (find_function_in_inferior)
11568 (value_allocate_space_in_inferior): Update.
11569 * tui/tui-winsource.c (tui_update_source_windows_with_line):
11570 Update.
11571 * tui/tui-source.c (tui_source_window::set_contents): Update.
11572 * symtab.c (lookup_global_or_static_symbol)
11573 (find_function_start_sal_1, skip_prologue_sal)
11574 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
11575 * symmisc.c (dump_msymbols, dump_symtab_1)
11576 (maintenance_print_one_line_table): Update.
11577 * symfile.c (init_entry_point_info, section_is_mapped)
11578 (list_overlays_command, simple_read_overlay_table)
11579 (simple_overlay_update_1): Update.
11580 * stap-probe.c (handle_stap_probe): Update.
11581 * stabsread.c (dbx_init_float_type, define_symbol)
11582 (read_one_struct_field, read_enum_type, read_range_type): Update.
11583 * source.c (info_line_command): Update.
11584 * python/python.c (gdbpy_source_objfile_script)
11585 (gdbpy_execute_objfile_script): Update.
11586 * python/py-type.c (save_objfile_types): Update.
11587 * python/py-objfile.c (py_free_objfile): Update.
11588 * python/py-inferior.c (python_new_objfile): Update.
11589 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
11590 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
11591 (maintenance_check_psymtabs): Update.
11592 * printcmd.c (info_address_command): Update.
11593 * objfiles.h (struct objfile) <arch>: New method, from
11594 get_objfile_arch.
11595 (get_objfile_arch): Don't declare.
11596 * objfiles.c (get_objfile_arch): Remove.
11597 (filter_overlapping_sections): Update.
11598 * minsyms.c (msymbol_is_function): Update.
11599 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
11600 (output_nondebug_symbol): Update.
11601 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
11602 (mdebug_expand_psymtab): Update.
11603 * machoread.c (macho_add_oso_symfile): Update.
11604 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
11605 Update.
11606 * linux-fork.c (checkpoint_command): Update.
11607 * linespec.c (convert_linespec_to_sals): Update.
11608 * jit.c (finalize_symtab): Update.
11609 * infrun.c (insert_exception_resume_from_probe): Update.
11610 * ia64-tdep.c (ia64_find_unwind_table): Update.
11611 * hppa-tdep.c (internalize_unwinds): Update.
11612 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
11613 Update.
11614 * gcore.c (call_target_sbrk): Update.
11615 * elfread.c (record_minimal_symbol, elf_symtab_read)
11616 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
11617 (elf_gnu_ifunc_resolve_by_got): Update.
11618 * dwarf2/read.c (create_addrmap_from_index)
11619 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11620 (read_debug_names_from_section)
11621 (process_psymtab_comp_unit_reader, add_partial_symbol)
11622 (add_partial_subprogram, process_full_comp_unit)
11623 (read_file_scope, read_func_scope, read_lexical_block_scope)
11624 (read_call_site_scope, dwarf2_ranges_read)
11625 (dwarf2_record_block_ranges, dwarf2_add_field)
11626 (mark_common_block_symbol_computed, read_tag_pointer_type)
11627 (read_tag_string_type, dwarf2_init_float_type)
11628 (dwarf2_init_complex_target_type, read_base_type)
11629 (partial_die_info::read, partial_die_info::read)
11630 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
11631 (dwarf2_fetch_die_loc_sect_off): Update.
11632 * dwarf2/loc.c (dwarf2_find_location_expression)
11633 (class dwarf_evaluate_loc_desc, rw_pieced_value)
11634 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
11635 (dwarf2_loc_desc_get_symbol_read_needs)
11636 (locexpr_describe_location_piece, locexpr_describe_location_1)
11637 (loclist_describe_location): Update.
11638 * dwarf2/index-write.c (write_debug_names): Update.
11639 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
11640 * dtrace-probe.c (dtrace_process_dof): Update.
11641 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
11642 (process_one_symbol): Update.
11643 * ctfread.c (ctf_init_float_type, read_base_type): Update.
11644 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
11645 (coff_read_enum_type): Update.
11646 * cli/cli-cmds.c (edit_command, list_command): Update.
11647 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
11648 * breakpoint.c (create_overlay_event_breakpoint)
11649 (create_longjmp_master_breakpoint)
11650 (create_std_terminate_master_breakpoint)
11651 (create_exception_master_breakpoint, get_sal_arch): Update.
11652 * block.c (block_gdbarch): Update.
11653 * annotate.c (annotate_source_line): Update.
11654
11655 2020-04-17 Tom Tromey <tromey@adacore.com>
11656
11657 * auto-load.c (show_auto_load_cmd): Remove.
11658 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
11659 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
11660 (maintenance_print_arc_command): Remove.
11661 * tui/tui-win.c (tui_command): Remove.
11662 (tui_get_cmd_list): Use add_basic_prefix_cmd.
11663 * tui/tui-layout.c (tui_layout_command): Remove.
11664 (_initialize_tui_layout): Use add_basic_prefix_cmd.
11665 * python/python.c (user_set_python, user_show_python): Remove.
11666 (_initialize_python): Use add_basic_prefix_cmd,
11667 add_show_prefix_cmd.
11668 * guile/guile.c (set_guile_command, show_guile_command): Remove.
11669 (install_gdb_commands): Use add_basic_prefix_cmd,
11670 add_show_prefix_cmd.
11671 (info_guile_command): Remove.
11672 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
11673 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
11674 add_show_prefix_cmd.
11675 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
11676 Remove do_set and do_show parameters.
11677 * cli/cli-style.c (set_style, show_style): Remove.
11678 (_initialize_cli_style): Use add_basic_prefix_cmd,
11679 add_show_prefix_cmd.
11680 (cli_style_option::add_setshow_commands): Remove do_set and
11681 do_show parameters.
11682 (cli_style_option::add_setshow_commands): Use
11683 add_basic_prefix_cmd, add_show_prefix_cmd.
11684 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
11685 (set_style_name): Remove.
11686 * cli/cli-dump.c (dump_command, append_command): Remove.
11687 (srec_dump_command, ihex_dump_command, verilog_dump_command)
11688 (tekhex_dump_command, binary_dump_command)
11689 (binary_append_command): Remove.
11690 (_initialize_cli_dump): Use add_basic_prefix_cmd.
11691 * windows-tdep.c (w32_prefix_command_valid): Remove global.
11692 (init_w32_command_list): Remove; move into ...
11693 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
11694 * valprint.c (set_print, show_print, set_print_raw)
11695 (show_print_raw): Remove.
11696 (_initialize_valprint): Use add_basic_prefix_cmd,
11697 add_show_prefix_cmd.
11698 * typeprint.c (set_print_type, show_print_type): Remove.
11699 (_initialize_typeprint): Use add_basic_prefix_cmd,
11700 add_show_prefix_cmd.
11701 * record.c (set_record_command, show_record_command): Remove.
11702 (_initialize_record): Use add_basic_prefix_cmd,
11703 add_show_prefix_cmd.
11704 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
11705 add_show_prefix_cmd.
11706 (info_command, show_command, set_debug, show_debug): Remove.
11707 * top.h (set_history, show_history): Don't declare.
11708 * top.c (set_history, show_history): Remove.
11709 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
11710 (unset_tdesc_cmd): Remove.
11711 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
11712 add_show_prefix_cmd.
11713 * symtab.c (info_module_command): Remove.
11714 (_initialize_symtab): Use add_basic_prefix_cmd.
11715 * symfile.c (overlay_command): Remove.
11716 (_initialize_symfile): Use add_basic_prefix_cmd.
11717 * sparc64-tdep.c (info_adi_command): Remove.
11718 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
11719 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
11720 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
11721 add_show_prefix_cmd.
11722 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
11723 (_initialize_serial): Use add_basic_prefix_cmd,
11724 add_show_prefix_cmd.
11725 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
11726 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
11727 add_show_prefix_cmd.
11728 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
11729 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
11730 add_show_prefix_cmd.
11731 * riscv-tdep.c (show_riscv_command, set_riscv_command)
11732 (show_debug_riscv_command, set_debug_riscv_command): Remove.
11733 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
11734 add_show_prefix_cmd.
11735 * remote.c (remote_command, set_remote_cmd): Remove.
11736 (_initialize_remote): Use add_basic_prefix_cmd.
11737 * record-full.c (set_record_full_command)
11738 (show_record_full_command): Remove.
11739 (_initialize_record_full): Use add_basic_prefix_cmd,
11740 add_show_prefix_cmd.
11741 * record-btrace.c (cmd_set_record_btrace)
11742 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
11743 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
11744 (cmd_show_record_btrace_pt): Remove.
11745 (_initialize_record_btrace): Use add_basic_prefix_cmd,
11746 add_show_prefix_cmd.
11747 * ravenscar-thread.c (set_ravenscar_command)
11748 (show_ravenscar_command): Remove.
11749 (_initialize_ravenscar): Use add_basic_prefix_cmd,
11750 add_show_prefix_cmd.
11751 * mips-tdep.c (show_mips_command, set_mips_command)
11752 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
11753 add_show_prefix_cmd.
11754 * maint.c (maintenance_command, maintenance_info_command)
11755 (maintenance_check_command, maintenance_print_command)
11756 (maintenance_set_cmd, maintenance_show_cmd): Remove.
11757 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
11758 add_show_prefix_cmd.
11759 (show_per_command_cmd): Remove.
11760 * maint-test-settings.c (maintenance_set_test_settings_cmd):
11761 Remove.
11762 (maintenance_show_test_settings_cmd): Remove.
11763 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
11764 add_show_prefix_cmd.
11765 * maint-test-options.c (maintenance_test_options_command):
11766 Remove.
11767 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
11768 * macrocmd.c (macro_command): Remove
11769 (_initialize_macrocmd): Use add_basic_prefix_cmd.
11770 * language.c (set_check, show_check): Remove.
11771 (_initialize_language): Use add_basic_prefix_cmd,
11772 add_show_prefix_cmd.
11773 * infcmd.c (unset_command): Remove.
11774 (_initialize_infcmd): Use add_basic_prefix_cmd.
11775 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
11776 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
11777 add_show_prefix_cmd.
11778 * go32-nat.c (go32_info_dos_command): Remove.
11779 (_initialize_go32_nat): Use add_basic_prefix_cmd.
11780 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
11781 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
11782 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
11783 (_initialize_frame): Use add_basic_prefix_cmd,
11784 add_show_prefix_cmd.
11785 * dcache.c (set_dcache_command, show_dcache_command): Remove.
11786 (_initialize_dcache): Use add_basic_prefix_cmd,
11787 add_show_prefix_cmd.
11788 * cp-support.c (maint_cplus_command): Remove.
11789 (_initialize_cp_support): Use add_basic_prefix_cmd.
11790 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
11791 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
11792 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
11793 add_basic_prefix_cmd, add_show_prefix_cmd.
11794 * breakpoint.c (save_command): Remove.
11795 (_initialize_breakpoint): Use add_basic_prefix_cmd.
11796 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
11797 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
11798 add_show_prefix_cmd.
11799 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
11800 (set_ada_command, show_ada_command): Remove.
11801 (_initialize_ada_language): Use add_basic_prefix_cmd,
11802 add_show_prefix_cmd.
11803 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
11804
11805 2020-04-16 Kamil Rytarowski <n54@gmx.com>
11806
11807 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
11808 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
11809
11810 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
11811
11812 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
11813 warning messages.
11814
11815 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
11816
11817 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
11818 import table is not at beginning of .idata section.
11819
11820 2020-04-16 Pedro Alves <palves@redhat.com>
11821
11822 * inferior.c (delete_inferior): Use delete operator directly
11823 instead of delete_program_space.
11824 * progspace.c (add_program_space): New, factored out from
11825 program_space::program_space.
11826 (remove_program_space): New, factored out from
11827 delete_program_space.
11828 (program_space::program_space): Remove intro comment. Rewrite.
11829 (program_space::~program_space): Remove intro comment. Call
11830 remove_program_space.
11831 (delete_program_space): Delete.
11832 * progspace.h (program_space::program_space): Make explicit. Move
11833 intro comment here, adjusted.
11834 (program_space::~program_space): Move intro comment here,
11835 adjusted.
11836 (delete_program_space): Remove.
11837
11838 2020-04-16 Tom Tromey <tromey@adacore.com>
11839
11840 * windows-nat.c (windows_nat::handle_access_violation): New
11841 function.
11842 * nat/windows-nat.h (handle_access_violation): Declare.
11843 * nat/windows-nat.c (handle_exception): Move Cygwin code to
11844 windows-nat.c. Call handle_access_violation.
11845
11846 2020-04-16 Tom de Vries <tdevries@suse.de>
11847
11848 PR symtab/25791
11849 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
11850 CUs without psymtab.
11851
11852 2020-04-16 Kevin Buettner <kevinb@redhat.com>
11853
11854 * python/python.c (do_start_initialization): Don't call
11855 PyEval_InitThreads for Python 3.9 and beyond.
11856
11857 2020-04-15 Kamil Rytarowski <n54@gmx.com>
11858
11859 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
11860 thread functions.
11861 (obsd_nat_target::wait): Likewise.
11862
11863 2020-04-15 Tom Tromey <tromey@adacore.com>
11864
11865 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
11866 (DEBUG_EXCEPT): Use debug_printf.
11867
11868 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
11869
11870 * completer.c (class completion_tracker::completion_hash_entry)
11871 <hash_name>: New member function.
11872 (completion_tracker::discard_completions): New callback to hash a
11873 completion_hash_entry, pass this to htab_create_alloc.
11874
11875 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
11876
11877 * windows-nat.c (windows_make_so): Warn rather than stopping with
11878 an error if realpath() fails.
11879
11880 2020-04-14 Kamil Rytarowski <n54@gmx.com>
11881
11882 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
11883 (nbsd_nat_target::info_proc): Add do_status.
11884
11885 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
11886 Tom de Vries <tdevries@suse.de>
11887
11888 PR symtab/25718
11889 * psympriv.h (struct partial_symtab::read_symtab)
11890 (struct partial_symtab::expand_psymtab)
11891 (struct partial_symtab::read_dependencies): Update comments.
11892 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
11893 read_symtab for includer.
11894 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
11895 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
11896 (struct dwarf2_include_psymtab::m_readin): Remove.
11897 (struct dwarf2_include_psymtab::includer): New member function.
11898 (dwarf2_psymtab::expand_psymtab): Assert !readin.
11899
11900 2020-04-14 Tom de Vries <tdevries@suse.de>
11901
11902 PR symtab/25720
11903 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
11904 with NULL symbol_matcher and lookup_name.
11905 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
11906 and lookup_name.
11907 * dwarf2/read.c (dw2_expand_symtabs_matching)
11908 (dw2_debug_names_expand_symtabs_matching): Same.
11909 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
11910 Make lookup_name a pointer. Update comment.
11911 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
11912 lookup_name being a pointer.
11913 * symfile.c (expand_symtabs_matching): Same.
11914 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
11915 * linespec.c (iterate_over_all_matching_symtabs): Same.
11916
11917 2020-04-13 Tom Tromey <tom@tromey.com>
11918
11919 * run-on-main-thread.c: Update include.
11920 * unittests/main-thread-selftests.c: Update include.
11921 * tui/tui-win.c: Update include.
11922 * tui/tui-io.c: Update include.
11923 * tui/tui-interp.c: Update include.
11924 * tui/tui-hooks.c: Update include.
11925 * top.h: Update include.
11926 * top.c: Update include.
11927 * ser-base.c: Update include.
11928 * remote.c: Update include.
11929 * remote-notif.c: Update include.
11930 * remote-fileio.c: Update include.
11931 * record-full.c: Update include.
11932 * record-btrace.c: Update include.
11933 * python/python.c: Update include.
11934 * posix-hdep.c: Update include.
11935 * mingw-hdep.c: Update include.
11936 * mi/mi-main.c: Update include.
11937 * mi/mi-interp.c: Update include.
11938 * main.c: Update include.
11939 * linux-nat.c: Update include.
11940 * interps.c: Update include.
11941 * infrun.c: Update include.
11942 * inf-loop.c: Update include.
11943 * event-top.c: Update include.
11944 * event-loop.c: Move to ../gdbsupport/.
11945 * event-loop.h: Move to ../gdbsupport/.
11946 * async-event.h: Update include.
11947 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
11948
11949 2020-04-13 Tom Tromey <tom@tromey.com>
11950
11951 * tui/tui-win.c: Include async-event.h.
11952 * remote.c: Include async-event.h.
11953 * remote-notif.c: Include async-event.h.
11954 * record-full.c: Include async-event.h.
11955 * record-btrace.c: Include async-event.h.
11956 * infrun.c: Include async-event.h.
11957 * event-top.c: Include async-event.h.
11958 * event-loop.h: Move some declarations to async-event.h.
11959 * event-loop.c: Don't include ser-event.h or top.h. Move some
11960 code to async-event.c.
11961 * async-event.h: New file.
11962 * async-event.c: New file.
11963 * Makefile.in (COMMON_SFILES): Add async-event.c.
11964 (HFILES_NO_SRCDIR): Add async-event.h.
11965
11966 2020-04-13 Tom Tromey <tom@tromey.com>
11967
11968 * utils.c (flush_streams): New function.
11969 * event-loop.c (gdb_wait_for_event): Call flush_streams.
11970
11971 2020-04-13 Tom Tromey <tom@tromey.com>
11972
11973 * event-loop.c (handle_file_event): Use warning, not
11974 printf_unfiltered.
11975
11976 2020-04-13 Tom Tromey <tom@tromey.com>
11977
11978 * event-loop.c: Include <chrono>.
11979
11980 2020-04-13 Tom Tromey <tom@tromey.com>
11981
11982 * gdb_select.h: Move to ../gdbsupport/.
11983 * event-loop.c: Update include path.
11984 * top.c: Update include path.
11985 * ser-base.c: Update include path.
11986 * ui-file.c: Update include path.
11987 * ser-tcp.c: Update include path.
11988 * guile/scm-ports.c: Update include path.
11989 * posix-hdep.c: Update include path.
11990 * ser-unix.c: Update include path.
11991 * gdb_usleep.c: Update include path.
11992 * mingw-hdep.c: Update include path.
11993 * inflow.c: Update include path.
11994 * infrun.c: Update include path.
11995 * event-top.c: Update include path.
11996
11997 2020-04-13 Tom Tromey <tom@tromey.com>
11998
11999 * configure: Rebuild.
12000 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
12001
12002 2020-04-13 Tom Tromey <tom@tromey.com>
12003
12004 * event-loop.h (start_event_loop): Don't declare.
12005 * event-loop.c (start_event_loop): Move...
12006 * main.c (start_event_loop): ...here. Now static.
12007
12008 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
12009
12010 * MAINTAINERS: Update my email address.
12011
12012 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12013
12014 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
12015 IP_ALL.
12016
12017 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12018
12019 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
12020 (nbsd_nat_target::info_proc): Add do_cmdline.
12021
12022 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12023
12024 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
12025 (nbsd_nat_target::info_proc): Add do_cwd.
12026
12027 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12028
12029 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
12030
12031 2020-04-11 Kamil Rytarowski <n54@gmx.com>
12032
12033 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
12034 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
12035 (nbsd_nat_target::info_proc): New functions.
12036 * nbsd-nat.c (kinfo_get_vmmap): New function.
12037 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
12038 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
12039 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
12040 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
12041 functions.
12042 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
12043 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
12044 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
12045 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
12046 (KINFO_VME_FLAG_GROWS_DOWN): New.
12047
12048 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
12049
12050 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
12051 bit shift.
12052
12053 2020-04-10 Tom Tromey <tromey@adacore.com>
12054
12055 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
12056
12057 2020-04-10 Tom Tromey <tromey@adacore.com>
12058
12059 * symtab.c (get_symbol_address, get_msymbol_address): Skip
12060 separate debug files.
12061
12062 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
12063
12064 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
12065 Move to...
12066 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
12067 ... here.
12068 * windows-nat.c (windows_nat_target::get_windows_debug_event):
12069 Check for STATUS_WX86_BREAKPOINT.
12070 (windows_nat_target::wait): Same.
12071
12072 2020-04-10 Tom de Vries <tdevries@suse.de>
12073
12074 PR cli/25808
12075 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
12076
12077 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12078
12079 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
12080 (Write After Approval): Remove Tom de Vries.
12081
12082 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
12083
12084 revert partially:
12085 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12086
12087 * buildsym.c (record_line): Fix undefined behavior and preserve
12088 lines at eof.
12089
12090 2020-04-09 Kamil Rytarowski <n54@gmx.com>
12091
12092 * auxv.h (svr4_auxv_parse): New.
12093 * auxv.c (default_auxv_parse): Split into default_auxv_parse
12094 and generic_auxv_parse.
12095 (svr4_auxv_parse): Add.
12096 * obsd-tdep.c: Include "auxv.h".
12097 (obsd_auxv_parse): Remove.
12098 (obsd_init_abi): Remove comment.
12099 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
12100 from `obsd_auxv_parse' to `svr4_auxv_parse'.
12101 * nbsd-tdep.c: Include "auxv.h".
12102 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
12103
12104 2020-04-08 Tom Tromey <tromey@adacore.com>
12105
12106 * nat/windows-nat.h (last_wait_event): Don't declare.
12107 (wait_for_debug_event): Update comment.
12108 * nat/windows-nat.c (last_wait_event): Now static.
12109
12110 2020-04-08 Tom Tromey <tromey@adacore.com>
12111
12112 * windows-nat.c (wait_for_debug_event): Move to
12113 nat/windows-nat.c.
12114 * nat/windows-nat.h (wait_for_debug_event): Declare.
12115 * nat/windows-nat.c (wait_for_debug_event): Move from
12116 windows-nat.c. No longer static.
12117
12118 2020-04-08 Tom Tromey <tromey@adacore.com>
12119
12120 * windows-nat.c (get_windows_debug_event): Use
12121 fetch_pending_stop.
12122 * nat/windows-nat.h (fetch_pending_stop): Declare.
12123 * nat/windows-nat.c (fetch_pending_stop): New function.
12124
12125 2020-04-08 Tom Tromey <tromey@adacore.com>
12126
12127 * windows-nat.c (windows_continue): Use matching_pending_stop and
12128 continue_last_debug_event.
12129 * nat/windows-nat.h (matching_pending_stop)
12130 (continue_last_debug_event): Declare.
12131 * nat/windows-nat.c (DEBUG_EVENTS): New define.
12132 (matching_pending_stop, continue_last_debug_event): New
12133 functions.
12134
12135 2020-04-08 Tom Tromey <tromey@adacore.com>
12136
12137 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
12138 (handle_exception_result): Move to nat/windows-nat.h.
12139 (DEBUG_EXCEPTION_SIMPLE): Remove.
12140 (windows_nat::handle_ms_vc_exception): New function.
12141 (handle_exception): Move to nat/windows-nat.c.
12142 (get_windows_debug_event): Update.
12143 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
12144 nat/windows-nat.c.
12145 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
12146 (handle_exception_result): Move from windows-nat.c.
12147 (handle_exception): Declare.
12148 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
12149 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
12150 windows-nat.c.
12151
12152 2020-04-08 Tom Tromey <tromey@adacore.com>
12153
12154 * windows-nat.c (exception_count, event_count): Remove.
12155 (handle_exception, get_windows_debug_event)
12156 (do_initial_windows_stuff): Update.
12157
12158 2020-04-08 Tom Tromey <tromey@adacore.com>
12159
12160 * windows-nat.c (windows_nat::handle_load_dll)
12161 (windows_nat::handle_unload_dll): Rename. No longer static.
12162 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
12163 Declare.
12164
12165 2020-04-08 Tom Tromey <tromey@adacore.com>
12166
12167 * complaints.h (stop_whining): Declare at top-level.
12168 (complaint): Don't declare stop_whining.
12169
12170 2020-04-08 Tom Tromey <tromey@adacore.com>
12171
12172 * windows-nat.c (windows_nat::handle_output_debug_string):
12173 Rename. No longer static.
12174 * nat/windows-nat.h (handle_output_debug_string): Declare.
12175
12176 2020-04-08 Tom Tromey <tromey@adacore.com>
12177
12178 * windows-nat.c (current_process_handle, current_process_id)
12179 (main_thread_id, last_sig, current_event, last_wait_event)
12180 (current_windows_thread, desired_stop_thread_id, pending_stops)
12181 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
12182 (display_selectors, fake_create_process)
12183 (get_windows_debug_event): Update.
12184 * nat/windows-nat.h (current_process_handle, current_process_id)
12185 (main_thread_id, last_sig, current_event, last_wait_event)
12186 (current_windows_thread, desired_stop_thread_id, pending_stops)
12187 (struct pending_stop, siginfo_er): Move from windows-nat.c.
12188 * nat/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 (siginfo_er): New globals. Move from windows-nat.c.
12192
12193 2020-04-08 Tom Tromey <tromey@adacore.com>
12194
12195 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
12196 (handle_load_dll): Update.
12197 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
12198
12199 2020-04-08 Tom Tromey <tromey@adacore.com>
12200
12201 * windows-nat.c (enum thread_disposition_type): Move to
12202 nat/windows-nat.h.
12203 (windows_nat::thread_rec): Rename from thread_rec. No longer
12204 static.
12205 (windows_add_thread, windows_nat_target::fetch_registers)
12206 (windows_nat_target::store_registers, handle_exception)
12207 (windows_nat_target::resume, get_windows_debug_event)
12208 (windows_nat_target::get_tib_address)
12209 (windows_nat_target::thread_name)
12210 (windows_nat_target::thread_alive): Update.
12211 * nat/windows-nat.h (enum thread_disposition_type): Move from
12212 windows-nat.c.
12213 (thread_rec): Declare.
12214
12215 2020-04-08 Tom Tromey <tromey@adacore.com>
12216
12217 * windows-nat.c: Add "using namespace".
12218 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
12219 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
12220
12221 2020-04-08 Tom Tromey <tromey@adacore.com>
12222
12223 * nat/windows-nat.h (struct windows_thread_info): Declare
12224 destructor.
12225 * nat/windows-nat.c (~windows_thread_info): New.
12226
12227 2020-04-08 Tom Tromey <tromey@adacore.com>
12228
12229 PR gdb/22992
12230 * windows-nat.c (current_event): Update comment.
12231 (last_wait_event, desired_stop_thread_id): New globals.
12232 (struct pending_stop): New.
12233 (pending_stops): New global.
12234 (windows_nat_target) <stopped_by_sw_breakpoint>
12235 <supports_stopped_by_sw_breakpoint>: New methods.
12236 (windows_fetch_one_register): Add assertions. Adjust PC.
12237 (windows_continue): Handle pending stops. Suspend other threads
12238 when stepping. Use last_wait_event
12239 (wait_for_debug_event): New function.
12240 (get_windows_debug_event): Use wait_for_debug_event. Handle
12241 pending stops. Queue spurious stops.
12242 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
12243 (windows_nat_target::kill): Use wait_for_debug_event.
12244 * nat/windows-nat.h (struct windows_thread_info)
12245 <stopped_at_software_breakpoint>: New field.
12246 * nat/windows-nat.c (windows_thread_info::resume): Clear
12247 stopped_at_software_breakpoint.
12248
12249 2020-04-08 Tom Tromey <tromey@adacore.com>
12250
12251 * windows-nat.c (enum thread_disposition_type): New.
12252 (thread_rec): Replace "get_context" parameter with "disposition";
12253 change type.
12254 (windows_add_thread, windows_nat_target::fetch_registers)
12255 (windows_nat_target::store_registers, handle_exception)
12256 (windows_nat_target::resume, get_windows_debug_event)
12257 (windows_nat_target::get_tib_address)
12258 (windows_nat_target::thread_name)
12259 (windows_nat_target::thread_alive): Update.
12260
12261 2020-04-08 Tom Tromey <tromey@adacore.com>
12262
12263 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
12264 (windows_continue): Use windows_continue::resume.
12265 * nat/windows-nat.h (struct windows_thread_info) <suspend,
12266 resume>: Declare new methods.
12267 * nat/windows-nat.c: New file.
12268 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
12269
12270 2020-04-08 Tom Tromey <tromey@adacore.com>
12271
12272 * windows-nat.c (windows_add_thread, windows_delete_thread)
12273 (windows_nat_target::fetch_registers)
12274 (windows_nat_target::store_registers, fake_create_process)
12275 (windows_nat_target::resume, windows_nat_target::resume)
12276 (get_windows_debug_event, windows_nat_target::wait)
12277 (windows_nat_target::pid_to_str)
12278 (windows_nat_target::get_tib_address)
12279 (windows_nat_target::get_ada_task_ptid)
12280 (windows_nat_target::thread_name)
12281 (windows_nat_target::thread_alive): Use lwp, not tid.
12282
12283 2020-04-08 Tom Tromey <tromey@adacore.com>
12284
12285 * windows-nat.c (handle_exception)
12286 (windows_nat_target::thread_name): Update.
12287 * nat/windows-nat.h (windows_thread_info): Remove destructor.
12288 <name>: Now unique_xmalloc_ptr.
12289
12290 2020-04-08 Tom Tromey <tromey@adacore.com>
12291
12292 * windows-nat.c (thread_rec)
12293 (windows_nat_target::fetch_registers): Update.
12294 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
12295 Update comment.
12296 <debug_registers_changed, reload_context>: Now bool.
12297
12298 2020-04-08 Tom Tromey <tromey@adacore.com>
12299
12300 * windows-nat.c (windows_add_thread): Use new.
12301 (windows_init_thread_list, windows_delete_thread): Use delete.
12302 (get_windows_debug_event): Update.
12303 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
12304 destructor, and initializers.
12305
12306 2020-04-08 Tom Tromey <tromey@adacore.com>
12307
12308 * windows-nat.c (struct windows_thread_info): Remove.
12309 * nat/windows-nat.h: New file.
12310
12311 2020-04-08 Tom Tromey <tromey@adacore.com>
12312
12313 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
12314 (thread_rec, windows_add_thread, windows_delete_thread)
12315 (windows_continue): Update.
12316
12317 2020-04-08 Tom Tromey <tromey@adacore.com>
12318
12319 * windows-nat.c (struct windows_thread_info): Remove typedef.
12320 (thread_head): Remove.
12321 (thread_list): New global.
12322 (thread_rec, windows_add_thread, windows_init_thread_list)
12323 (windows_delete_thread, windows_continue): Update.
12324
12325 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
12326
12327 * windows-tdep.h (windows_init_abi): Add comment.
12328 (cygwin_init_abi): New declaration.
12329 * windows-tdep.c: Split signal enumeration in two, one for
12330 Windows and one for Cygwin.
12331 (windows_gdb_signal_to_target): Only deal with signal of the
12332 Windows OS ABI.
12333 (cygwin_gdb_signal_to_target): New function.
12334 (windows_init_abi): Rename to windows_init_abi_common, don't set
12335 gdb_signal_to_target gdbarch method. Add new new function with
12336 this name.
12337 (cygwin_init_abi): New function.
12338 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
12339 comment. Don't call windows_init_abi.
12340 (amd64_windows_init_abi): Add comment, call windows_init_abi.
12341 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
12342 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
12343 i386_windows_init_abi_common, don't call windows_init_abi. Add
12344 a new function of this name.
12345 (i386_cygwin_init_abi): New function.
12346 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
12347 OS ABI Cygwin.
12348
12349 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
12350
12351 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
12352 parameter.c.
12353 (dwarf2_read_gdb_index): Update.
12354
12355 2020-04-07 Kamil Rytarowski <n54@gmx.com>
12356
12357 * nbsd-tdep.c: Include "objfiles.h".
12358 (nbsd_skip_solib_resolver): New.
12359 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
12360
12361 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12362
12363 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
12364 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
12365 with DW_LLE_base_addressx are being emitted in DWARFv5.
12366 Add the newly added kind DW_LOC_OFFSET_PAIR also.
12367 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
12368 unsigned integer.
12369
12370 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12371
12372 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
12373 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
12374 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
12375 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
12376 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
12377 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
12378 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
12379
12380
12381 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12382
12383 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
12384 (read_loclist_index): New function definition.
12385 (lookup_loclist_base): New function definition.
12386 (read_loclist_header): New function definition.
12387 (dwarf2_cu): Add loclist_base and loclist_header field.
12388 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
12389 (read_full_die_1): Read the value of DW_AT_loclists_base.
12390 (read_attribute_reprocess): Handle DW_FORM_loclistx.
12391 (read_attribute_value): Handle DW_FORM_loclistx.
12392 (skip_one_die): Handle DW_FORM_loclistx.
12393 (loclist_header): New structure declaration.
12394 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
12395
12396 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12397
12398 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
12399 constructor. Remove `addr` parameter from other constructor and
12400 add `per_cu` parameter.
12401 * dwarf2/read.c (create_partial_symtab): Update.
12402
12403 2020-04-07 Tom de Vries <tdevries@suse.de>
12404
12405 PR symtab/25796
12406 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
12407 (partial_die_info::fixup): Inherit has_const_value.
12408
12409 2020-04-07 Tom de Vries <tdevries@suse.de>
12410
12411 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
12412 symbols without address.
12413
12414 2020-04-06 Kamil Rytarowski <n54@gmx.com>
12415
12416 * nbsd-nat.h (struct thread_info): Add forward declaration.
12417 (nbsd_nat_target::thread_alive): Add.
12418 (nbsd_nat_target::thread_name): Likewise.
12419 (nbsd_nat_target::update_thread_list): Likewise.
12420 (update_thread_list::post_attach): Likewise.
12421 (post_attach::pid_to_str): Likewise.
12422 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
12423 (nbsd_thread_lister): Add.
12424 (nbsd_nat_target::thread_alive): Likewise.
12425 (nbsd_nat_target::thread_name): Likewise.
12426 (nbsd_add_threads): Likewise.
12427 (update_thread_list::post_attach): Likewise.
12428 (nbsd_nat_target::update_thread_list): Likewise.
12429 (post_attach::pid_to_str): Likewise.
12430
12431 2020-04-06 Tom Tromey <tromey@adacore.com>
12432
12433 * ada-valprint.c (print_variant_part): Extract the variant field.
12434 (print_field_values): Use the field as the outer value when
12435 recursing.
12436
12437 2020-04-06 Tom Tromey <tromey@adacore.com>
12438
12439 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
12440 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
12441 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
12442 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
12443 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
12444
12445 2020-04-06 Tom Tromey <tromey@adacore.com>
12446
12447 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
12448 TYPE_CODE_ERROR.
12449
12450 2020-04-06 Kamil Rytarowski <n54@gmx.com>
12451
12452 * nbsd-tdep.c: Include "gdbarch.h".
12453 Define enum with NetBSD signal numbers.
12454 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
12455 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
12456 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
12457 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
12458 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
12459 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
12460 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
12461 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
12462 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
12463 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
12464 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
12465 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
12466
12467 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
12468
12469 PR gdb/25325
12470 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
12471
12472 2020-04-03 Tom Tromey <tromey@adacore.com>
12473
12474 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
12475 Read constant block.
12476
12477 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
12478
12479 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
12480 (gdb_bfd_get_full_section_contents): New declaration.
12481 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
12482 * windows-tdep.c (is_linked_with_cygwin_dll): Use
12483 gdb_bfd_get_full_section_contents.
12484
12485 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
12486
12487 * exec.c (build_section_table): Replace internal_error with
12488 gdb_assert.
12489 (section_table_xfer_memory_partial): Likewise.
12490 * mdebugread.c (parse_partial_symbols): Likewise.
12491 * psymtab.c (lookup_partial_symbol): Likewise.
12492 * utils.c (wrap_here): Likewise.
12493
12494 2020-04-02 Tom Tromey <tromey@adacore.com>
12495
12496 * f-lang.c (build_fortran_types): Use arch_type to initialize
12497 builtin_complex_s32 in the TYPE_CODE_ERROR case.
12498
12499 2020-04-02 Tom Tromey <tromey@adacore.com>
12500
12501 * dwarf2/read.c (partial_die_info::read): Do not create a vector
12502 of attributes.
12503
12504 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
12505 Bernd Edlinger <bernd.edlinger@hotmail.de>
12506 Tom Tromey <tromey@adacore.com>
12507
12508 * buildsym.c (buildsym_compunit::record_line): Remove
12509 deduplication code.
12510
12511 2020-04-02 Tom de Vries <tdevries@suse.de>
12512
12513 PR ada/24671
12514 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
12515
12516 2020-04-02 Tom de Vries <tdevries@suse.de>
12517
12518 * dwarf2/read.c (dwarf2_gdb_index_functions,
12519 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
12520 NULL.
12521 * psymtab.c (psym_lookup_global_symbol_language): New function.
12522 (psym_functions): Init psym_lookup_global_symbol_language with
12523 psym_lookup_global_symbol_language.
12524 * symfile-debug.c (debug_sym_quick_functions): Init
12525 lookup_global_symbol_language with NULL.
12526 * symfile.c (set_initial_language): Remove fixme comment.
12527 * symfile.h (struct quick_symbol_functions): Add
12528 lookup_global_symbol_language.
12529 * symtab.c (find_quick_global_symbol_language): New function.
12530 (find_main_name): Use find_quick_global_symbol_language.
12531
12532 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
12533
12534 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
12535
12536 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12537
12538 * buildsym.c (record_line): Fix undefined behavior and preserve
12539 lines at eof.
12540
12541 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12542
12543 * buildsym.c (record_line): Fix the resizing condition.
12544
12545 2020-04-01 Tom Tromey <tom@tromey.com>
12546
12547 * value.h (value_literal_complex): Add comment.
12548 * valops.c (value_literal_complex): Refer to value.h.
12549
12550 2020-04-01 Tom Tromey <tom@tromey.com>
12551
12552 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
12553 (scalar_type): New rule, from typebase.
12554 (typebase): Use scalar_type. Recognize complex types.
12555 (field_name): Handle FLOAT_KEYWORD.
12556 (ident_tokens): Add _Complex and __complex__.
12557
12558 2020-04-01 Tom Tromey <tom@tromey.com>
12559
12560 PR exp/25299:
12561 * valarith.c (promotion_type, complex_binop): New functions.
12562 (scalar_binop): Handle complex numbers. Use promotion_type.
12563 (value_pos, value_neg, value_complement): Handle complex numbers.
12564
12565 2020-04-01 Tom Tromey <tom@tromey.com>
12566
12567 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
12568 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
12569 (parse_number): Handle complex numbers.
12570
12571 2020-04-01 Tom Tromey <tom@tromey.com>
12572
12573 * c-valprint.c (c_decorations): Change complex suffix to "i".
12574
12575 2020-04-01 Tom Tromey <tom@tromey.com>
12576
12577 * valprint.c (generic_value_print_complex): Use accessors.
12578 * value.h (value_real_part, value_imaginary_part): Declare.
12579 * valops.c (value_real_part, value_imaginary_part): New
12580 functions.
12581 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
12582
12583 2020-04-01 Tom Tromey <tom@tromey.com>
12584
12585 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
12586 (read_range_type): Update.
12587 * mdebugread.c (basic_type): Update.
12588 * go-lang.c (build_go_types): Use init_complex_type.
12589 * gdbtypes.h (struct main_type) <complex_type>: New member.
12590 (init_complex_type): Update.
12591 (arch_complex_type): Don't declare.
12592 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
12593 Make name if none given. Use alloc_type_copy. Look for cached
12594 complex type.
12595 (arch_complex_type): Remove.
12596 (gdbtypes_post_init): Use init_complex_type.
12597 * f-lang.c (build_fortran_types): Use init_complex_type.
12598 * dwarf2/read.c (read_base_type): Update.
12599 * d-lang.c (build_d_types): Use init_complex_type.
12600 * ctfread.c (read_base_type): Update.
12601
12602 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12603
12604 * infrun.c (stop_all_threads): Update assertion, plus when
12605 stopping threads, take into account that we might be trying
12606 to stop an all-stop target.
12607 (stop_waiting): Call 'stop_all_threads' if there exists a
12608 non-stop target.
12609
12610 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12611
12612 * target.h (exists_non_stop_target): New function declaration.
12613 * target.c (exists_non_stop_target): New function.
12614
12615 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
12616
12617 PR gdb/24789
12618 * eval.c (is_integral_or_integral_reference): New function.
12619 (evaluate_subexp_standard): Allow integer references in
12620 pointer arithmetic.
12621
12622 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12623
12624 * remote.c (remote_target::remote_parse_stop_reply): Remove the
12625 check for no ptid in the stop reply when the target is non-stop.
12626
12627 2020-04-01 Tom Tromey <tromey@adacore.com>
12628
12629 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
12630 "name" parameter to rvalue reference. Initialize m_name_holder.
12631 <lookup_name_info>: New overloads.
12632 <name>: Return gdb::string_view.
12633 <c_str>: New method.
12634 <make_ignore_params>: Update.
12635 <search_name_hash>: Update.
12636 <language_lookup_name>: Return const char *.
12637 <m_name>: Change type.
12638 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
12639 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
12640 (lookup_name_info::match_any): Update.
12641 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
12642 Update.
12643 * minsyms.c (linkage_name_str): Update.
12644 * language.c (default_symbol_name_matcher): Update.
12645 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
12646 Update.
12647 * ada-lang.c (ada_fold_name): Change parameter to string_view.
12648 (ada_lookup_name_info::ada_lookup_name_info): Update.
12649 (literal_symbol_name_matcher): Update.
12650
12651 2020-04-01 Tom Tromey <tromey@adacore.com>
12652
12653 * psymtab.c (psymtab_search_name): Remove function.
12654 (psym_lookup_symbol): Create search name and lookup name here.
12655 (lookup_partial_symbol): Remove "name" parameter; add
12656 lookup_name.
12657 (psym_expand_symtabs_for_function): Update.
12658
12659 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
12660
12661 PR tui/25597:
12662 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
12663
12664 2020-03-31 Tom Tromey <tromey@adacore.com>
12665
12666 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
12667 memcpy.
12668
12669 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
12670
12671 * features/riscv/32bit-csr.xml: Regenerated.
12672 * features/riscv/64bit-csr.xml: Regenerated.
12673
12674 2020-03-30 Tom Tromey <tromey@adacore.com>
12675
12676 * ada-valprint.c (print_variant_part): Update.
12677 * ada-lang.h (ada_which_variant_applies): Update.
12678 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
12679 outer_valaddr parameters; replace with "outer" value parameter.
12680 (to_fixed_variant_branch_type): Update.
12681
12682 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12683
12684 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
12685 <list>. Remove inclusion of observable.h.
12686 (PPC_DEBUG_CURRENT_VERSION): Move up define.
12687 (struct arch_lwp_info): New struct.
12688 (class ppc_linux_dreg_interface): New class.
12689 (struct ppc_linux_process_info): New struct.
12690 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
12691 <low_new_clone, low_forget_process, low_prepare_to_resume>
12692 <copy_thread_dreg_state, mark_thread_stale>
12693 <mark_debug_registers_changed, register_hw_breakpoint>
12694 <clear_hw_breakpoint, register_wp, clear_wp>
12695 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
12696 <num_memory_accesses, get_trigger_type>
12697 <create_watchpoint_request, hwdebug_point_cmp>
12698 <init_arch_lwp_info, get_arch_lwp_info>
12699 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
12700 methods.
12701 <struct ptid_hash>: New inner struct.
12702 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
12703 members.
12704 (saved_dabr_value, hwdebug_info, max_slots_number)
12705 (struct hw_break_tuple, struct thread_points, ppc_threads)
12706 (have_ptrace_hwdebug_interface)
12707 (hwdebug_find_thread_points_by_tid)
12708 (hwdebug_insert_point, hwdebug_remove_point): Remove.
12709 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
12710 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
12711 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
12712 use m_dreg_interface.
12713 (hwdebug_point_cmp): Change to...
12714 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
12715 reference arguments instead of pointers.
12716 (ppc_linux_nat_target::ranged_break_num_registers): Use
12717 m_dreg_interface.
12718 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
12719 m_dreg_interface. Call register_hw_breakpoint.
12720 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
12721 m_dreg_interface. Call clear_hw_breakpoint.
12722 (get_trigger_type): Change to...
12723 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
12724 comment.
12725 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
12726 use m_dreg_interface. Call register_hw_breakpoint.
12727 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
12728 use m_dreg_interface. Call clear_hw_breakpoint.
12729 (can_use_watchpoint_cond_accel): Change to...
12730 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
12731 method. Update comment, use m_dreg_interface and
12732 m_process_info.
12733 (calculate_dvc): Change to...
12734 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
12735 m_dreg_interface.
12736 (num_memory_accesses): Change to...
12737 (ppc_linux_nat_target::num_memory_accesses): ...this method.
12738 (check_condition): Change to...
12739 (ppc_linux_nat_target::check_condition): ...this method.
12740 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
12741 comment, use m_dreg_interface.
12742 (create_watchpoint_request): Change to...
12743 (ppc_linux_nat_target::create_watchpoint_request): ...this
12744 method. Use m_dreg_interface.
12745 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
12746 m_dreg_interface. Call register_hw_breakpoint or register_wp.
12747 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
12748 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
12749 (ppc_linux_nat_target::low_forget_process)
12750 (ppc_linux_nat_target::low_new_fork)
12751 (ppc_linux_nat_target::low_new_clone)
12752 (ppc_linux_nat_target::low_delete_thread)
12753 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
12754 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
12755 only call mark_thread_stale.
12756 (ppc_linux_thread_exit): Remove.
12757 (ppc_linux_nat_target::stopped_data_address): Change to...
12758 (ppc_linux_nat_target::low_stopped_data_address): This. Add
12759 comment, use m_dreg_interface and m_thread_hw_breakpoints.
12760 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
12761 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
12762 comment. Call low_stopped_data_address.
12763 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
12764 m_dreg_interface.
12765 (ppc_linux_nat_target::masked_watch_num_registers): Use
12766 m_dreg_interface.
12767 (ppc_linux_nat_target::copy_thread_dreg_state)
12768 (ppc_linux_nat_target::mark_thread_stale)
12769 (ppc_linux_nat_target::mark_debug_registers_changed)
12770 (ppc_linux_nat_target::register_hw_breakpoint)
12771 (ppc_linux_nat_target::clear_hw_breakpoint)
12772 (ppc_linux_nat_target::register_wp)
12773 (ppc_linux_nat_target::clear_wp)
12774 (ppc_linux_nat_target::init_arch_lwp_info)
12775 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
12776 (_initialize_ppc_linux_nat): Remove observer callback.
12777
12778 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12779
12780 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
12781 (ppc_linux_nat_target::auxv_parse)
12782 (ppc_linux_nat_target::read_description)
12783 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
12784 Move up.
12785
12786 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12787
12788 * linux-nat.h (low_new_clone): New method.
12789 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
12790
12791 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12792
12793 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
12794 (dbx_expand_psymtab): ... this.
12795 (start_psymtab): Update.
12796 * mdebugread.c (psymtab_to_symtab_1): Rename to...
12797 (mdebug_expand_psymtab): ... this.
12798 (parse_partial_symbols): Update.
12799 (new_psymtab): Update.
12800 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
12801 (xcoff_expand_psymtab): ... this.
12802 (xcoff_start_psymtab): Update.
12803
12804 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12805
12806 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
12807 <expand_dependencies>: ... this.
12808 * psymtab.c (partial_symtab::read_dependencies): Rename to...
12809 (partial_symtab::expand_dependencies): ... this.
12810 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
12811 Update.
12812 (dwarf2_psymtab::expand_psymtab): Update.
12813 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
12814 * mdebugread.c (psymtab_to_symtab_1): Update.
12815 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
12816
12817 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12818
12819 * psympriv.h (discard_psymtab): Remove.
12820 * dbxread.c (dbx_end_psymtab): Update.
12821 * xcoffread.c (xcoff_end_psymtab): Update.
12822
12823 2020-03-28 Tom Tromey <tom@tromey.com>
12824
12825 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
12826 comment.
12827
12828 2020-03-28 Tom Tromey <tom@tromey.com>
12829
12830 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
12831
12832 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
12833
12834 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
12835
12836 2020-03-26 John Baldwin <jhb@FreeBSD.org>
12837
12838 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
12839
12840 2020-03-26 Tom Tromey <tom@tromey.com>
12841
12842 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
12843 (mark_common_block_symbol_computed, read_tag_string_type)
12844 (attr_to_dynamic_prop, read_subrange_type): Update.
12845 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
12846 to be methods on struct attribute.
12847 (skip_one_die, process_imported_unit_die, read_namespace_alias)
12848 (read_call_site_scope, partial_die_info::read)
12849 (partial_die_info::read, lookup_die_type, follow_die_ref):
12850 Update.
12851 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
12852 from dwarf2_get_ref_die_offset.
12853 (attribute::constant_value): New method, from
12854 dwarf2_get_attr_constant_value.
12855 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
12856 Declare method.
12857 <constant_value>: New method.
12858
12859 2020-03-26 Tom Tromey <tom@tromey.com>
12860
12861 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
12862 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
12863 (dwarf_type_encoding_name): Move to stringify.c.
12864 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
12865 * dwarf2/stringify.c: New file.
12866 * dwarf2/stringify.h: New file.
12867
12868 2020-03-26 Tom Tromey <tom@tromey.com>
12869
12870 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
12871 Rewrite.
12872
12873 2020-03-26 Tom Tromey <tom@tromey.com>
12874
12875 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
12876 methods.
12877 * dwarf2/read.c (lookup_addr_base): Move to die.h.
12878 (lookup_ranges_base): Likewise.
12879 (read_cutu_die_from_dwo, read_full_die_1): Update.
12880
12881 2020-03-26 Tom Tromey <tom@tromey.com>
12882
12883 * dwarf2/read.c (read_import_statement, read_file_scope)
12884 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
12885 (read_lexical_block_scope, read_call_site_scope)
12886 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
12887 (handle_struct_member_die, process_structure_scope)
12888 (update_enumeration_type_from_children)
12889 (process_enumeration_scope, read_array_type, read_common_block)
12890 (read_namespace, read_module, read_subroutine_type): Update.
12891 (sibling_die): Remove.
12892
12893 2020-03-26 Tom Tromey <tom@tromey.com>
12894
12895 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
12896 (build_type_psymtabs_reader, read_structure_type)
12897 (read_enumeration_type, read_full_die_1): Update.
12898 (dwarf2_attr_no_follow): Move to die.h.
12899 * dwarf2/die.h (struct die_info) <attr>: New method.
12900
12901 2020-03-26 Tom Tromey <tom@tromey.com>
12902
12903 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
12904 <base_address>: Now an optional.
12905 (dwarf2_find_base_address, dwarf2_rnglists_process)
12906 (dwarf2_ranges_process, fill_in_loclist_baton)
12907 (dwarf2_symbol_mark_computed): Update.
12908
12909 2020-03-26 Tom Tromey <tom@tromey.com>
12910
12911 * dwarf2/read.c (struct die_info): Move to die.h.
12912 * dwarf2/die.h: New file.
12913
12914 2020-03-26 Tom Tromey <tom@tromey.com>
12915
12916 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
12917 * dwarf2/read.c
12918 (dwarf2_statement_list_fits_in_line_number_section_complaint):
12919 Move to line-header.c.
12920 (read_checked_initial_length_and_offset, read_formatted_entries):
12921 Likewise.
12922 (dwarf_decode_line_header): Split into two.
12923 * dwarf2/line-header.c
12924 (dwarf2_statement_list_fits_in_line_number_section_complaint):
12925 Move from read.c.
12926 (read_checked_initial_length_and_offset, read_formatted_entries):
12927 Likewise.
12928 (dwarf_decode_line_header): New function, split from read.c.
12929
12930 2020-03-26 Tom Tromey <tom@tromey.com>
12931
12932 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
12933 Declare method.
12934 * dwarf2/read.c (read_attribute_value): Update.
12935 (dwarf2_per_objfile::read_line_string): Rename from
12936 read_indirect_line_string.
12937 (read_formatted_entries): Update.
12938
12939 2020-03-26 Tom Tromey <tom@tromey.com>
12940
12941 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
12942 variable.
12943
12944 2020-03-26 Tom Tromey <tom@tromey.com>
12945
12946 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
12947 const.
12948 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
12949 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
12950 parameter const.
12951
12952 2020-03-26 Tom Tromey <tom@tromey.com>
12953
12954 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
12955 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
12956 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
12957 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
12958
12959 2020-03-26 Tom Tromey <tom@tromey.com>
12960
12961 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
12962 file_names_size, file_full_name, file_file_name>: Use const.
12963 <file_name_at, file_names>: Add const overload.
12964 * dwarf2/line-header.c (line_header::file_file_name)
12965 (line_header::file_full_name): Update.
12966
12967 2020-03-26 Tom Tromey <tom@tromey.com>
12968
12969 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
12970 (macro_start_file, consume_improper_spaces)
12971 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
12972 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
12973 (dwarf_decode_macros): Move to macro.c.
12974 * dwarf2/macro.c: New file.
12975 * dwarf2/macro.h: New file.
12976 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
12977
12978 2020-03-26 Tom Tromey <tom@tromey.com>
12979
12980 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
12981 method.
12982 * dwarf2/section.c: New method. From
12983 read_indirect_string_at_offset_from.
12984 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
12985 (read_indirect_string_at_offset_from): Move to section.c.
12986 (read_indirect_string_at_offset): Rewrite.
12987 (read_indirect_line_string_at_offset): Remove.
12988 (read_indirect_string, read_indirect_line_string)
12989 (dwarf_decode_macro_bytes): Update.
12990
12991 2020-03-26 Tom Tromey <tom@tromey.com>
12992
12993 * dwarf2/section.h (struct dwarf2_section_info)
12994 <overload_complaint>: Declare.
12995 (dwarf2_section_buffer_overflow_complaint): Don't declare.
12996 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
12997 Rename from dwarf2_section_buffer_overflow_complaint.
12998 * dwarf2/read.c (skip_one_die, partial_die_info::read)
12999 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
13000
13001 2020-03-26 Tom Tromey <tom@tromey.com>
13002
13003 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
13004 Declare.
13005 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
13006 Move from read.c.
13007 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
13008 to section.c.
13009
13010 2020-03-26 Tom Tromey <tom@tromey.com>
13011
13012 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
13013
13014 2020-03-26 Tom Tromey <tom@tromey.com>
13015
13016 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
13017 "builder".
13018 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
13019 parameter.
13020 (dwarf_decode_macros): Update.
13021
13022 2020-03-26 Tom Tromey <tom@tromey.com>
13023
13024 * dwarf2/read.c (read_attribute_value): Update.
13025 (read_indirect_string_from_dwz): Move to dwz.c; change into
13026 method.
13027 (dwarf_decode_macro_bytes): Update.
13028 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
13029 * dwarf2/dwz.c: New file.
13030 * Makefile.in (COMMON_SFILES): Add dwz.c.
13031
13032 2020-03-26 Tom Tromey <tom@tromey.com>
13033
13034 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
13035 * dwarf2/read.c: Add include.
13036 * dwarf2/index-write.c: Add include.
13037 * dwarf2/index-cache.c: Add include.
13038 * dwarf2/dwz.h: New file.
13039
13040 2020-03-25 Tom Tromey <tom@tromey.com>
13041
13042 * compile/compile-object-load.c (get_out_value_type): Mention
13043 correct symbol name in error message.
13044
13045 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
13046
13047 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
13048
13049 2020-03-25 Tom de Vries <tdevries@suse.de>
13050
13051 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
13052 * symmisc.c (dump_symtab_1): Print user and includes fields.
13053 (maintenance_info_symtabs): Same.
13054
13055 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
13056
13057 PR gdb/25534
13058 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
13059 (riscv_regcache_cooked_write): New function.
13060 (riscv_push_dummy_call): Use new function.
13061 (riscv_return_value): Likewise.
13062
13063 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
13064
13065 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
13066 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
13067 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
13068 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
13069 * infrun.c (follow_fork): Likewise.
13070 (follow_fork_inferior): Likewise.
13071 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
13072 * linux-nat.h (class linux_nat_target): Likewise.
13073 * remote.c (class remote_target) <follow_fork>: Likewise.
13074 (remote_target::follow_fork): Likewise.
13075 * target-delegates.c: Re-generate.
13076 * target.c (default_follow_fork): Likewise.
13077 (target_follow_fork): Likewise.
13078 * target.h (struct target_ops) <follow_fork>: Likewise.
13079 (target_follow_fork): Likewise.
13080
13081 2020-03-24 Tom de Vries <tdevries@suse.de>
13082
13083 * psymtab.c (maintenance_info_psymtabs): Print user field.
13084
13085 2020-03-20 Tom Tromey <tromey@adacore.com>
13086
13087 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
13088 const.
13089 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
13090 const.
13091
13092 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
13093
13094 * ptrace.m4: Don't check for ptrace declaration.
13095 * config.in: Re-generate.
13096 * configure: Re-generate.
13097 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
13098 not defined.
13099
13100 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13101
13102 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
13103 `PTRACE_TYPE_RET'.
13104 * i386-bsd-nat.c (gdb_ptrace): Likewise.
13105 * sparc-nat.c (gdb_ptrace): Likewise.
13106 * x86-bsd-nat.c (gdb_ptrace): Likewise.
13107
13108 2020-03-20 Tom Tromey <tromey@adacore.com>
13109
13110 * c-exp.y (lex_one_token): Fix assert.
13111
13112 2020-03-20 Tom Tromey <tromey@adacore.com>
13113
13114 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
13115 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
13116 strncpy call.
13117
13118 2020-03-20 Tom Tromey <tromey@adacore.com>
13119
13120 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
13121
13122 2020-03-20 Tom Tromey <tromey@adacore.com>
13123
13124 * ada-valprint.c (print_variant_part): Remove parameters; switch
13125 to value-based API.
13126 (print_field_values): Likewise.
13127 (ada_val_print_struct_union): Likewise.
13128 (ada_value_print_1): Update.
13129
13130 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13131
13132 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
13133 nbsd_nat_target instead of inf_ptrace_target.
13134 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13135 nbsd_nat_target.
13136
13137 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13138
13139 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
13140 it to the ptrace call.
13141 * (store_registers): Likewise.
13142
13143 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13144
13145 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
13146 it to the ptrace call.
13147 * (store_registers): Likewise.
13148
13149 2020-03-19 Luis Machado <luis.machado@linaro.org>
13150
13151 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
13152 valid, fetch vg value from ptrace.
13153
13154 2020-03-19 Kamil Rytarowski <n54@gmx.com>
13155 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
13156 * inf-ptrace.c: Likewise.
13157 * (gdb_ptrace): Add.
13158 * (inf_ptrace_target::resume): Update.
13159 * (inf_ptrace_target::xfer_partial): Likewise.
13160 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
13161 * (inf_ptrace_peek_poke): Update.
13162
13163 2020-03-19 Kamil Rytarowski <n54@gmx.com>
13164
13165 * x86-bsd-nat.c (gdb_ptrace): New.
13166 * (x86bsd_dr_set): Add new argument `ptid'.
13167 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
13168 x86bsd_dr_set_addr): Update.
13169
13170 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13171
13172 * remote.c (remote_target::process_stop_reply): Handle events for
13173 all threads differently.
13174
13175 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13176
13177 * completer.c (completion_tracker::remove_completion): Define new
13178 function.
13179 * completer.h (completion_tracker::remove_completion): Declare new
13180 function.
13181 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
13182 when adding a C++ function symbol.
13183
13184 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13185
13186 * completer.c (completion_tracker::completion_hash_entry): Define
13187 new class.
13188 (advance_to_filename_complete_word_point): Call
13189 recompute_lowest_common_denominator.
13190 (completion_tracker::completion_tracker): Call discard_completions
13191 to setup the hash table.
13192 (completion_tracker::discard_completions): Allow for being called
13193 from the constructor, pass new equal function, and element deleter
13194 when constructing the hash table. Initialise new class member
13195 variables.
13196 (completion_tracker::maybe_add_completion): Remove use of
13197 m_entries_vec, and store more information into m_entries_hash.
13198 (completion_tracker::recompute_lcd_visitor): New function, most
13199 content taken from...
13200 (completion_tracker::recompute_lowest_common_denominator):
13201 ...here, this now just visits each item in the hash calling the
13202 above visitor.
13203 (completion_tracker::build_completion_result): Remove use of
13204 m_entries_vec, call recompute_lowest_common_denominator.
13205 * completer.h (completion_tracker::have_completions): Remove use
13206 of m_entries_vec.
13207 (completion_tracker::completion_hash_entry): Declare new class.
13208 (completion_tracker::recompute_lowest_common_denominator): Change
13209 function signature.
13210 (completion_tracker::recompute_lcd_visitor): Declare new function.
13211 (completion_tracker::m_entries_vec): Delete.
13212 (completion_tracker::m_entries_hash): Initialize to NULL.
13213 (completion_tracker::m_lowest_common_denominator_valid): New
13214 member variable.
13215 (completion_tracker::m_lowest_common_denominator_max_length): New
13216 member variable.
13217
13218 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13219
13220 * regformats/regdef.h: Put reg in gdb namespace.
13221
13222 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13223
13224 * i386-bsd-nat.c (gdb_ptrace): New.
13225 * (i386bsd_fetch_inferior_registers,
13226 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
13227 * (i386bsd_fetch_inferior_registers,
13228 i386bsd_store_inferior_registers) Use gdb_ptrace.
13229
13230 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13231
13232 * amd64-bsd-nat.c (gdb_ptrace): New.
13233 * (amd64bsd_fetch_inferior_registers,
13234 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
13235 * (amd64bsd_fetch_inferior_registers,
13236 amd64bsd_store_inferior_registers) Use gdb_ptrace.
13237
13238 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13239
13240 * user-regs.c (user_reg::read): Rename to...
13241 (user_reg::xread): ...this.
13242 * (append_user_reg): Rename argument `read' to `xread'.
13243 * (user_reg_add_builtin): Likewise.
13244 * (user_reg_add): Likewise.
13245 * (value_of_user_reg): Likewise.
13246
13247 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13248
13249 * sparc-nat.c (gdb_ptrace): New.
13250 * sparc-nat.c (sparc_fetch_inferior_registers)
13251 (sparc_store_inferior_registers) Remove obsolete comment.
13252 * sparc-nat.c (sparc_fetch_inferior_registers)
13253 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
13254 * sparc-nat.c (sparc_fetch_inferior_registers)
13255 (sparc_store_inferior_registers) Use gdb_ptrace.
13256
13257 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13258
13259 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
13260 it to the ptrace call.
13261 * sh-nbsd-nat.c (store_registers): Likewise.
13262
13263 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13264
13265 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
13266 nbsd_nat_target instead of inf_ptrace_target.
13267 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13268 nbsd_nat_target.
13269
13270 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13271
13272 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
13273
13274 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13275
13276 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
13277 <sys/sysctl.h>.
13278 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
13279
13280 2020-03-17 Tom de Vries <tdevries@suse.de>
13281
13282 PR gdb/23710
13283 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
13284 fields.
13285 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
13286 fields.
13287 (process_imported_unit_die): Skip import of c++ CUs.
13288
13289 2020-03-16 Tom Tromey <tom@tromey.com>
13290
13291 * p-valprint.c (pascal_object_print_value): Initialize
13292 base_value.
13293
13294 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
13295 Shahab Vahedi <shahab@synopsys.com>
13296
13297 * Makefile.in: Add arch/arc.o
13298 * configure.tgt: Likewise.
13299 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
13300 (_initialize_arc_tdep): Don't initialize old target descriptions.
13301 (arc_read_description): New function to cache target descriptions.
13302 * arc-tdep.h (arc_read_description): Add proto type.
13303 * arch/arc.c: New file.
13304 * arch/arc.h: Likewise.
13305 * features/Makefile: Replace old target descriptions with new.
13306 * features/arc-arcompact.c: Remove.
13307 * features/arc-arcompact.xml: Likewise.
13308 * features/arc-v2.c: Likewise
13309 * features/arc-v2.xml: Likewise
13310 * features/arc/aux-arcompact.xml: New file.
13311 * features/arc/aux-v2.xml: Likewise.
13312 * features/arc/core-arcompact.xml: Likewise.
13313 * features/arc/core-v2.xml: Likewise.
13314 * features/arc/aux-arcompact.c: Generate.
13315 * features/arc/aux-v2.c: Likewise.
13316 * features/arc/core-arcompact.c: Likewise.
13317 * features/arc/core-v2.c: Likewise.
13318 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
13319
13320 2020-03-16 Tom Tromey <tromey@adacore.com>
13321
13322 PR gdb/25663:
13323 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
13324 putting value into bcache.
13325
13326 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13327
13328 PR gdb/21500
13329 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
13330 to...
13331 (amd64_windows_init_abi_common): ... this. Don't set size of
13332 long type.
13333 (amd64_windows_init_abi): New function.
13334 (amd64_cygwin_init_abi): New function.
13335 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
13336 the Cygwin OS ABI.
13337 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
13338 comment.
13339
13340 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13341
13342 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
13343 * windows-tdep.c (CYGWIN_DLL_NAME): New.
13344 (pe_import_directory_entry): New struct type.
13345 (is_linked_with_cygwin_dll): New function.
13346 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
13347 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
13348 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
13349
13350 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13351
13352 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
13353 i386_cygwin_core_osabi_sniffer.
13354
13355 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13356
13357 * i386-cygwin-tdep.c: Rename to...
13358 * i386-windows-tdep.c: ... this.
13359 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
13360 i386-windows-tdep.c.
13361 * configure.tgt: Likewise.
13362
13363 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13364
13365 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
13366 * osabi.c (gdb_osabi_names): Add "Windows".
13367 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
13368 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
13369 (i386_cygwin_core_osabi_sniffer): New function, extracted from
13370 i386_cygwin_osabi_sniffer.
13371 (_initialize_i386_cygwin_tdep): Register OS ABI
13372 GDB_OSABI_WINDOWS for i386.
13373 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
13374 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
13375 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
13376 for x86-64.
13377 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
13378 when the target matches '*-*-mingw*'.
13379
13380 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13381
13382 * defs.h (enum gdb_osabi): Move to...
13383 * osabi.h (enum gdb_osabi): ... here.
13384 * gdbarch.sh: Include osabi.h in gdbarch.h.
13385 * gdbarch.h: Re-generate.
13386
13387 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13388
13389 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
13390 function.
13391 (_initialize_amd64_windows_tdep): Register osabi sniffer.
13392
13393 2020-03-14 Tom Tromey <tom@tromey.com>
13394
13395 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
13396 for C++.
13397 (c_type_print_modifier): Likewise. Add "language" parameter.
13398 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
13399 (c_type_print_base_1): Update.
13400 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
13401 constants.
13402 * type-stack.c (type_stack::insert): Handle tp_atomic and
13403 tp_restrict.
13404 (type_stack::follow_type_instance_flags): Likewise.
13405 (type_stack::follow_types): Likewise. Merge type-following code.
13406 * c-exp.y (RESTRICT, ATOMIC): New tokens.
13407 (space_identifier, cv_with_space_id)
13408 (const_or_volatile_or_space_identifier_noopt)
13409 (const_or_volatile_or_space_identifier): Remove.
13410 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
13411 rules.
13412 (ptr_operator, typebase): Update.
13413 (enum token_flag) <FLAG_C>: New constant.
13414 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
13415 "_Atomic".
13416 (lex_one_token): Handle FLAG_C.
13417
13418 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13419
13420 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
13421 it to the ptrace call.
13422 * m68k-bsd-nat.c (store_registers): Likewise.
13423
13424 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13425
13426 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
13427 gdb_byte *.
13428 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
13429 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
13430 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
13431
13432 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13433
13434 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
13435 nbsd_nat_target instead of inf_ptrace_target.
13436 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13437 nbsd_nat_target.
13438
13439 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13440
13441 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
13442 register_t.
13443
13444 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13445
13446 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
13447 it to the ptrace call.
13448 * alpha-bsd-nat.c (store_registers): Likewise.
13449
13450 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13451
13452 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
13453 includes.
13454 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
13455 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
13456 fill_fpregset): Likewise.
13457
13458 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13459
13460 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
13461 nbsd_nat_target instead of inf_ptrace_target.
13462 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13463 nbsd_nat_target.
13464
13465 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13466
13467 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
13468 register_t.
13469
13470 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13471
13472 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
13473 it to the ptrace call.
13474 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
13475 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
13476 * arm-nbsd-nat.c (store_register): Likewise.
13477 * arm-nbsd-nat.c (store_regs): Likewise.
13478 * arm-nbsd-nat.c (store_fp_register): Likewise.
13479 * arm-nbsd-nat.c (store_fp_regs): Likewise.
13480
13481 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13482
13483 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
13484 nbsd_nat_target instead of inf_ptrace_target.
13485 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13486 nbsd_nat_target.
13487
13488 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13489
13490 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
13491 it to the ptrace call.
13492 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
13493
13494 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13495
13496 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
13497 it to the ptrace call.
13498 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
13499
13500 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13501
13502 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
13503 gdb_byte *.
13504 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
13505
13506 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13507
13508 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
13509 instead of inf_ptrace_target.
13510 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13511 nbsd_nat_target.
13512
13513 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13514
13515 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13516 register_t.
13517
13518 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13519
13520 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13521 register_t.
13522
13523 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13524
13525 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
13526 register_t.
13527
13528 2020-03-13 Tom Tromey <tom@tromey.com>
13529
13530 * value.h (val_print): Don't declare.
13531 * valprint.h (val_print_array_elements)
13532 (val_print_scalar_formatted, generic_val_print): Don't declare.
13533 * valprint.c (generic_val_print_array): Take a struct value.
13534 (generic_val_print_ptr, generic_val_print_memberptr)
13535 (generic_val_print_bool, generic_val_print_int)
13536 (generic_val_print_char, generic_val_print_complex)
13537 (generic_val_print): Remove.
13538 (generic_value_print): Update.
13539 (do_val_print): Remove unused parameters. Don't call
13540 la_val_print.
13541 (val_print): Remove.
13542 (common_val_print): Update. Don't call value_check_printable.
13543 (val_print_scalar_formatted, val_print_array_elements): Remove.
13544 * rust-lang.c (rust_val_print): Remove.
13545 (rust_language_defn): Update.
13546 * p-valprint.c (pascal_val_print): Remove.
13547 (pascal_value_print_inner): Update.
13548 (pascal_object_print_val_fields, pascal_object_print_val):
13549 Remove.
13550 (pascal_object_print_static_field): Update.
13551 * p-lang.h (pascal_val_print): Don't declare.
13552 * p-lang.c (pascal_language_defn): Update.
13553 * opencl-lang.c (opencl_language_defn): Update.
13554 * objc-lang.c (objc_language_defn): Update.
13555 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
13556 * m2-lang.h (m2_val_print): Don't declare.
13557 * m2-lang.c (m2_language_defn): Update.
13558 * language.h (struct language_defn) <la_val_print>: Remove.
13559 * language.c (unk_lang_value_print_inner): Rename. Change
13560 argument types.
13561 (unknown_language_defn, auto_language_defn): Update.
13562 * go-valprint.c (go_val_print): Remove.
13563 * go-lang.h (go_val_print): Don't declare.
13564 * go-lang.c (go_language_defn): Update.
13565 * f-valprint.c (f_val_print): Remove.
13566 * f-lang.h (f_value_print): Don't declare.
13567 * f-lang.c (f_language_defn): Update.
13568 * d-valprint.c (d_val_print): Remove.
13569 * d-lang.h (d_value_print): Don't declare.
13570 * d-lang.c (d_language_defn): Update.
13571 * cp-valprint.c (cp_print_value_fields)
13572 (cp_print_value_fields_rtti, cp_print_value): Remove.
13573 (cp_print_static_field): Update.
13574 * c-valprint.c (c_val_print_array, c_val_print_ptr)
13575 (c_val_print_struct, c_val_print_union, c_val_print_int)
13576 (c_val_print_memberptr, c_val_print): Remove.
13577 * c-lang.h (c_val_print_array, cp_print_value_fields)
13578 (cp_print_value_fields_rtti): Don't declare.
13579 * c-lang.c (c_language_defn, cplus_language_defn)
13580 (asm_language_defn, minimal_language_defn): Update.
13581 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
13582 (ada_val_print_enum): Take a struct value.
13583 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
13584 (ada_val_print): Remove.
13585 (ada_value_print_1): Update.
13586 (printable_val_type): Remove.
13587 * ada-lang.h (ada_val_print): Don't declare.
13588 * ada-lang.c (ada_language_defn): Update.
13589
13590 2020-03-13 Tom Tromey <tom@tromey.com>
13591
13592 * valprint.c (do_val_print): Update.
13593 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
13594 a struct value.
13595 (value_to_value_object_no_release): Declare.
13596 * python/py-value.c (value_to_value_object_no_release): New
13597 function.
13598 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
13599 struct value.
13600 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
13601 function.
13602 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
13603 a struct value.
13604 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
13605 Declare.
13606 (gdbscm_apply_val_pretty_printer): Take a struct value.
13607 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
13608 value.
13609 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
13610 value.
13611 * extension-priv.h (struct extension_language_ops)
13612 <apply_val_pretty_printer>: Take a struct value.
13613 * cp-valprint.c (cp_print_value): Create a struct value.
13614 (cp_print_value): Update.
13615
13616 2020-03-13 Tom Tromey <tom@tromey.com>
13617
13618 * ada-valprint.c (print_field_values): Call common_val_print.
13619
13620 2020-03-13 Tom Tromey <tom@tromey.com>
13621
13622 * ada-valprint.c (val_print_packed_array_elements): Remove
13623 bitoffset and val parameters. Call common_val_print.
13624 (ada_val_print_string): Remove offset, address, and original_value
13625 parameters.
13626 (ada_val_print_array): Update.
13627 (ada_value_print_array): New function.
13628 (ada_value_print_1): Call it.
13629
13630 2020-03-13 Tom Tromey <tom@tromey.com>
13631
13632 * ada-valprint.c (ada_value_print): Use common_val_print.
13633
13634 2020-03-13 Tom Tromey <tom@tromey.com>
13635
13636 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
13637
13638 2020-03-13 Tom Tromey <tom@tromey.com>
13639
13640 * ada-valprint.c (ada_value_print_num): New function.
13641 (ada_value_print_1): Use it.
13642
13643 2020-03-13 Tom Tromey <tom@tromey.com>
13644
13645 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
13646
13647 2020-03-13 Tom Tromey <tom@tromey.com>
13648
13649 * ada-valprint.c (ada_value_print_ptr): New function.
13650 (ada_value_print_1): Use it.
13651
13652 2020-03-13 Tom Tromey <tom@tromey.com>
13653
13654 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
13655 call common_val_print.
13656 (ada_val_print_1): Update.
13657 (ada_value_print_1): New function.
13658 (ada_value_print_inner): Rewrite.
13659
13660 2020-03-13 Tom Tromey <tom@tromey.com>
13661
13662 * cp-valprint.c (cp_print_value_fields): Update.
13663 (cp_print_value): New function.
13664
13665 2020-03-13 Tom Tromey <tom@tromey.com>
13666
13667 * m2-valprint.c (m2_value_print_inner): Use
13668 cp_print_value_fields.
13669 * cp-valprint.c (cp_print_value_fields): New function.
13670 * c-valprint.c (c_value_print_struct): New function.
13671 (c_value_print_inner): Use c_value_print_struct.
13672 * c-lang.h (cp_print_value_fields): Declare.
13673
13674 2020-03-13 Tom Tromey <tom@tromey.com>
13675
13676 * c-valprint.c (c_value_print_array): New function.
13677 (c_value_print_inner): Use it.
13678
13679 2020-03-13 Tom Tromey <tom@tromey.com>
13680
13681 * c-valprint.c (c_value_print_memberptr): New function.
13682 (c_value_print_inner): Use it.
13683
13684 2020-03-13 Tom Tromey <tom@tromey.com>
13685
13686 * c-valprint.c (c_value_print_int): 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_ptr): 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_inner): Rewrite.
13697
13698 2020-03-13 Tom Tromey <tom@tromey.com>
13699
13700 * valprint.c (generic_value_print_complex): New function.
13701 (generic_value_print): Use it.
13702
13703 2020-03-13 Tom Tromey <tom@tromey.com>
13704
13705 * valprint.c (generic_val_print_float): Don't call
13706 val_print_scalar_formatted.
13707 (generic_val_print, generic_value_print): Update.
13708
13709 2020-03-13 Tom Tromey <tom@tromey.com>
13710
13711 * valprint.c (generic_value_print_char): New function
13712 (generic_value_print): Use it.
13713
13714 2020-03-13 Tom Tromey <tom@tromey.com>
13715
13716 * valprint.c (generic_value_print_int): New function.
13717 (generic_value_print): Use it.
13718
13719 2020-03-13 Tom Tromey <tom@tromey.com>
13720
13721 * valprint.c (generic_value_print_bool): New function.
13722 (generic_value_print): Use it.
13723
13724 2020-03-13 Tom Tromey <tom@tromey.com>
13725
13726 * valprint.c (generic_val_print_func): Simplify.
13727 (generic_val_print, generic_value_print): Update.
13728
13729 2020-03-13 Tom Tromey <tom@tromey.com>
13730
13731 * valprint.c (generic_val_print_flags): Remove.
13732 (generic_val_print, generic_value_print): Update.
13733 (val_print_type_code_flags): Add original_value parameter.
13734
13735 2020-03-13 Tom Tromey <tom@tromey.com>
13736
13737 * valprint.c (generic_val_print): Update.
13738 (generic_value_print): Update.
13739 * valprint.c (generic_val_print_enum): Don't call
13740 val_print_scalar_formatted.
13741
13742 2020-03-13 Tom Tromey <tom@tromey.com>
13743
13744 * valprint.c (generic_value_print): Call generic_value_print_ptr.
13745 * valprint.c (generic_value_print_ptr): New function.
13746
13747 2020-03-13 Tom Tromey <tom@tromey.com>
13748
13749 * valprint.c (generic_value_print): Rewrite.
13750
13751 2020-03-13 Tom Tromey <tom@tromey.com>
13752
13753 * p-valprint.c (pascal_object_print_value_fields)
13754 (pascal_object_print_value): New functions.
13755
13756 2020-03-13 Tom Tromey <tom@tromey.com>
13757
13758 * p-valprint.c (pascal_value_print_inner): Rewrite.
13759
13760 2020-03-13 Tom Tromey <tom@tromey.com>
13761
13762 * f-valprint.c (f_value_print_innner): Rewrite.
13763
13764 2020-03-13 Tom Tromey <tom@tromey.com>
13765
13766 * m2-valprint.c (m2_print_unbounded_array): New overload.
13767 (m2_print_unbounded_array): Update.
13768 (m2_print_array_contents): Take a struct value.
13769 (m2_value_print_inner): Rewrite.
13770
13771 2020-03-13 Tom Tromey <tom@tromey.com>
13772
13773 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
13774 (d_value_print_inner): New function.
13775 * d-lang.h (d_value_print_inner): Declare.
13776 * d-lang.c (d_language_defn): Use d_value_print_inner.
13777
13778 2020-03-13 Tom Tromey <tom@tromey.com>
13779
13780 * go-valprint.c (go_value_print_inner): New function.
13781 * go-lang.h (go_value_print_inner): Declare.
13782 * go-lang.c (go_language_defn): Use go_value_print_inner.
13783
13784 2020-03-13 Tom Tromey <tom@tromey.com>
13785
13786 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
13787 API.
13788 (rust_val_print): Rewrite.
13789 (rust_value_print_inner): New function, from rust_val_print.
13790 (rust_language_defn): Use rust_value_print_inner.
13791
13792 2020-03-13 Tom Tromey <tom@tromey.com>
13793
13794 * ada-valprint.c (ada_value_print_inner): New function.
13795 * ada-lang.h (ada_value_print_inner): Declare.
13796 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
13797
13798 2020-03-13 Tom Tromey <tom@tromey.com>
13799
13800 * f-valprint.c (f_value_print_innner): New function.
13801 * f-lang.h (f_value_print_innner): Declare.
13802 * f-lang.c (f_language_defn): Use f_value_print_innner.
13803
13804 2020-03-13 Tom Tromey <tom@tromey.com>
13805
13806 * p-valprint.c (pascal_value_print_inner): New function.
13807 * p-lang.h (pascal_value_print_inner): Declare.
13808 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
13809
13810 2020-03-13 Tom Tromey <tom@tromey.com>
13811
13812 * m2-valprint.c (m2_value_print_inner): New function.
13813 * m2-lang.h (m2_value_print_inner): Declare.
13814 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
13815
13816 2020-03-13 Tom Tromey <tom@tromey.com>
13817
13818 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
13819 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
13820 * c-valprint.c (c_value_print_inner): New function.
13821 * c-lang.h (c_value_print_inner): Declare.
13822 * c-lang.c (c_language_defn, cplus_language_defn)
13823 (asm_language_defn, minimal_language_defn): Use
13824 c_value_print_inner.
13825
13826 2020-03-13 Tom Tromey <tom@tromey.com>
13827
13828 * p-valprint.c (pascal_object_print_value_fields): Now static.
13829 * p-lang.h (pascal_object_print_value_fields): Don't declare.
13830
13831 2020-03-13 Tom Tromey <tom@tromey.com>
13832
13833 * c-valprint.c (c_val_print_array): Simplify.
13834
13835 2020-03-13 Tom Tromey <tom@tromey.com>
13836
13837 * valprint.c (value_print_array_elements): New function.
13838 * valprint.h (value_print_array_elements): Declare.
13839
13840 2020-03-13 Tom Tromey <tom@tromey.com>
13841
13842 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
13843 * mips-tdep.c (mips_print_register): Use
13844 value_print_scalar_formatted.
13845
13846 2020-03-13 Tom Tromey <tom@tromey.com>
13847
13848 * valprint.h (value_print_scalar_formatted): Declare.
13849 * valprint.c (value_print_scalar_formatted): New function.
13850
13851 2020-03-13 Tom Tromey <tom@tromey.com>
13852
13853 * valprint.h (generic_value_print): Declare.
13854 * valprint.c (generic_value_print): New function.
13855
13856 2020-03-13 Tom Tromey <tom@tromey.com>
13857
13858 * valprint.c (do_val_print): Call la_value_print_inner, if
13859 available.
13860 * rust-lang.c (rust_language_defn): Update.
13861 * p-lang.c (pascal_language_defn): Update.
13862 * opencl-lang.c (opencl_language_defn): Update.
13863 * objc-lang.c (objc_language_defn): Update.
13864 * m2-lang.c (m2_language_defn): Update.
13865 * language.h (struct language_defn) <la_value_print_inner>: New
13866 member.
13867 * language.c (unknown_language_defn, auto_language_defn): Update.
13868 * go-lang.c (go_language_defn): Update.
13869 * f-lang.c (f_language_defn): Update.
13870 * d-lang.c (d_language_defn): Update.
13871 * c-lang.c (c_language_defn, cplus_language_defn)
13872 (asm_language_defn, minimal_language_defn): Update.
13873 * ada-lang.c (ada_language_defn): Update.
13874
13875 2020-03-13 Tom Tromey <tom@tromey.com>
13876
13877 * c-valprint.c (c_value_print): Use common_val_print.
13878
13879 2020-03-13 Tom Tromey <tom@tromey.com>
13880
13881 * cp-valprint.c (cp_print_static_field): Use common_val_print.
13882
13883 2020-03-13 Tom Tromey <tom@tromey.com>
13884
13885 * f-valprint.c (f77_print_array_1, f_val_print): Use
13886 common_val_print.
13887
13888 2020-03-13 Tom Tromey <tom@tromey.com>
13889
13890 * riscv-tdep.c (riscv_print_one_register_info): Use
13891 common_val_print.
13892
13893 2020-03-13 Tom Tromey <tom@tromey.com>
13894
13895 * mi/mi-main.c (output_register): Use common_val_print.
13896
13897 2020-03-13 Tom Tromey <tom@tromey.com>
13898
13899 * infcmd.c (default_print_one_register_info): Use
13900 common_val_print.
13901
13902 2020-03-13 Tom Tromey <tom@tromey.com>
13903
13904 * valprint.h (common_val_print_checked): Declare.
13905 * valprint.c (common_val_print_checked): New function.
13906 * stack.c (print_frame_arg): Use common_val_print_checked.
13907
13908 2020-03-13 Tom Tromey <tom@tromey.com>
13909
13910 * valprint.c (do_val_print): New function, from val_print.
13911 (val_print): Use do_val_print.
13912 (common_val_print): Use do_val_print.
13913
13914 2020-03-13 Tom Tromey <tom@tromey.com>
13915
13916 * valprint.c (value_print): Use scoped_value_mark.
13917
13918 2020-03-13 Tom de Vries <tdevries@suse.de>
13919
13920 PR symtab/25646
13921 * psymtab.c (partial_symtab::partial_symtab): Don't set
13922 globals_offset and statics_offset. Push element onto
13923 current_global_psymbols and current_static_psymbols stacks.
13924 (concat): New function.
13925 (end_psymtab_common): Set globals_offset and statics_offset. Pop
13926 element from current_global_psymbols and current_static_psymbols
13927 stacks. Concat popped elements to global_psymbols and
13928 static_symbols.
13929 (add_psymbol_to_list): Use current_global_psymbols and
13930 current_static_psymbols stacks.
13931 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
13932 current_static_psymbols fields.
13933
13934 2020-03-12 Christian Biesinger <cbiesinger@google.com>
13935
13936 * corelow.c (sniff_core_bfd): Remove.
13937 (class core_target) <m_core_vec>: Remove.
13938 (core_target::core_target): Update.
13939 (core_file_fns): Remove.
13940 (deprecated_add_core_fns): Remove.
13941 (default_core_sniffer): Remove.
13942 (sniff_core_bfd): Remove.
13943 (default_check_format): Remove.
13944 (gdb_check_format): Remove.
13945 (core_target_open): Update.
13946 (core_target::get_core_register_section): Update.
13947 (get_core_registers_cb): Update.
13948 (core_target::fetch_registers): Update.
13949 * gdbcore.h (struct core_fns): Remove.
13950 (deprecated_add_core_fns): Remove.
13951 (default_core_sniffer): Remove.
13952 (default_check_format): Remove.
13953
13954 2020-03-12 Tom Tromey <tom@tromey.com>
13955
13956 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
13957 CORE_ADDR.
13958 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
13959
13960 2020-03-12 Tom Tromey <tom@tromey.com>
13961
13962 * remote.c (remote_target::download_tracepoint)
13963 (remote_target::enable_tracepoint)
13964 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
13965 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
13966 sprintf_vma.
13967
13968 2020-03-12 Tom Tromey <tom@tromey.com>
13969
13970 * symfile-mem.c: Update CORE_ADDR size assert.
13971
13972 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
13973
13974 * selftest.m4: Move to gdbsupport/.
13975 * acinclude.m4: Update path to selftest.m4.
13976
13977 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
13978
13979 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
13980 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
13981 gdbarch-selfselftests.c and selftest-arch.c.
13982 (SUBDIR_UNITTESTS_OBS): Rename to...
13983 (SELFTESTS_OBS): ... this.
13984 (COMMON_SFILES): Remove disasm-selftests.c and
13985 gdbarch-selftests.c.
13986 * configure.ac: Don't add selftest-arch.{c,o} to
13987 CONFIG_{SRCS,OBS}.
13988 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
13989 preprocessor conditions.
13990
13991 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
13992
13993 * configure.ac: Don't source bfd/development.sh.
13994 * selftest.m4: Modify comment.
13995 * configure: Re-generate.
13996
13997 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
13998
13999 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
14000 not "true" or "false".
14001 * configure: Re-generate.
14002
14003 2020-03-12 Christian Biesinger <cbiesinger@google.com>
14004
14005 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
14006 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
14007 renamed to arm_nbsd_supply_gregset.
14008 (fetch_register): Update to call arm_nbsd_supply_gregset.
14009 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
14010 (arm_netbsd_nat_target::fetch_registers): Update.
14011 (fetch_elfcore_registers): Removed.
14012 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
14013 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
14014 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
14015 not require NetBSD system headers.
14016 (arm_nbsd_regset): New struct.
14017 (arm_nbsd_iterate_over_regset_sections): New function.
14018 (arm_netbsd_init_abi_common): Updated to call
14019 set_gdbarch_iterate_over_regset_sections.
14020 * arm-nbsd-tdep.h: New file.
14021
14022 2020-03-11 Kevin Buettner <kevinb@redhat.com>
14023
14024 * symtab.c (find_pc_sect_line): Add check which prevents infinite
14025 recursion.
14026
14027 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
14028
14029 * configure: Re-generate.
14030
14031 2020-03-11 Tom Tromey <tromey@adacore.com>
14032
14033 * ada-typeprint.c (print_choices): Fix comment.
14034
14035 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
14036
14037 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
14038 previous item in the list, when the list has no items.
14039
14040 2020-03-11 Tom de Vries <tdevries@suse.de>
14041
14042 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
14043 PROP_LOCLIST handling code.
14044
14045 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
14046
14047 * buildsym-legacy.c (record_line): Pass extra parameter to
14048 record_line.
14049 * buildsym.c (buildsym_compunit::record_line): Take an extra
14050 parameter, reduce duplication in the line table, and record the
14051 is_stmt flag in the line table.
14052 * buildsym.h (buildsym_compunit::record_line): Add extra
14053 parameter.
14054 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
14055 non-statement lines.
14056 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
14057 this to the symtab builder.
14058 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
14059 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
14060 through to dwarf_record_line_1.
14061 * infrun.c (process_event_stop_test): When stepping, don't stop at
14062 a non-statement instruction, and only refresh the step info when
14063 we land in the middle of a line's range. Also add an extra
14064 comment.
14065 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
14066 field.
14067 * record-btrace.c (btrace_find_line_range): Only record lines
14068 marked as is-statement.
14069 * stack.c (frame_show_address): Show the frame address if we are
14070 in a non-statement sal.
14071 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
14072 (maintenance_print_one_line_table): Print a header for the is_stmt
14073 column, and include is_stmt information in the output.
14074 * symtab.c (find_pc_sect_line): Find lines marked as statements in
14075 preference to non-statements.
14076 (find_pcs_for_symtab_line): Prefer is-statement entries.
14077 (find_line_common): Likewise.
14078 * symtab.h (struct linetable_entry): Add is_stmt field.
14079 (struct symtab_and_line): Likewise.
14080 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
14081 arranging the line table.
14082
14083 2020-03-07 Tom de Vries <tdevries@suse.de>
14084
14085 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
14086 DIE.
14087
14088 2020-03-07 Tom Tromey <tom@tromey.com>
14089
14090 * valops.c (value_literal_complex): Remove obsolete comment.
14091 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
14092 comment.
14093
14094 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
14095
14096 * infrun.h: Forward-declare thread_info.
14097 (set_step_info): Add thread_info parameter, add doc.
14098 * infrun.c (set_step_info): Add thread_info parameter, move doc
14099 to header.
14100 * infrun.c (process_event_stop_test): Pass thread to
14101 set_step_info call.
14102 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
14103 set_step_info.
14104 (prepare_one_step): Add thread_info parameter, pass it to
14105 set_step_frame and prepare_one_step (recursive) call.
14106 (step_1): Pass thread to prepare_one_step call.
14107 (step_command_fsm::should_stop): Pass thread to
14108 prepare_one_step.
14109 (until_next_fsm): Pass thread to set_step_frame call.
14110 (finish_command): Pass thread to set_step_info call.
14111
14112 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
14113
14114 * windows-tdep.c (windows_solib_create_inferior_hook):
14115 Check if inferior is running.
14116
14117 2020-03-06 Tom de Vries <tdevries@suse.de>
14118
14119 * NEWS: Fix "the the".
14120 * ctfread.c: Same.
14121
14122 2020-03-06 Tom de Vries <tdevries@suse.de>
14123
14124 * psymtab.c (psymtab_to_symtab): Don't print "done.".
14125
14126 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14127
14128 * .dir-locals.el: Add a comment referencing the other copies of
14129 this file.
14130
14131 2020-03-05 John Baldwin <jhb@FreeBSD.org>
14132
14133 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
14134 psargs.
14135
14136 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14137
14138 * .gitattributes: New file.
14139
14140 2020-03-04 Tom Tromey <tom@tromey.com>
14141
14142 * symmisc.c (print_symbol_bcache_statistics)
14143 (print_objfile_statistics): Update.
14144 * symfile.c (allocate_symtab): Use intern.
14145 * psymtab.c (partial_symtab::partial_symtab): Use intern.
14146 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
14147 macro_cache>: Remove.
14148 <string_cache>: New member.
14149 (struct objfile) <intern>: New methods.
14150 * elfread.c (elf_symtab_read): Use intern.
14151 * dwarf2/read.c (fixup_go_packaging): Intern package name.
14152 (dwarf2_compute_name, dwarf2_physname)
14153 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
14154 names.
14155 (guess_partial_die_structure_name): Update.
14156 (partial_die_info::fixup): Intern name.
14157 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
14158 name.
14159 (dwarf2_name): Intern name. Update.
14160 * buildsym.c (buildsym_compunit::get_macro_table): Use
14161 string_cache.
14162
14163 2020-03-04 Tom Tromey <tom@tromey.com>
14164
14165 * jit.c (bfd_open_from_target_memory): Make "target" const.
14166 * corefile.c (gnutarget): Now const.
14167 * gdbcore.h (gnutarget): Now const.
14168
14169 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
14170
14171 * NEWS: Mention support for WOW64 processes.
14172 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
14173 (amd64_windows_segment_register_p): Remove static.
14174 (_initialize_amd64_windows_nat): Update.
14175 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
14176 * i386-windows-nat.c (context_offset): Update.
14177 (i386_mappings): Rename and remove static.
14178 (i386_windows_segment_register_p): Remove static.
14179 (_initialize_i386_windows_nat): Update.
14180 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
14181 (STATUS_WX86_SINGLE_STEP): New macro.
14182 (EnumProcessModulesEx): New macro.
14183 (Wow64SuspendThread): New macro.
14184 (Wow64GetThreadContext): New macro.
14185 (Wow64SetThreadContext): New macro.
14186 (Wow64GetThreadSelectorEntry): New macro.
14187 (windows_set_context_register_offsets): Add static.
14188 (windows_set_segment_register_p): Likewise.
14189 (windows_add_thread): Adapt for WOW64 processes.
14190 (windows_fetch_one_register): Likewise.
14191 (windows_nat_target::fetch_registers): Likewise.
14192 (windows_store_one_register): Likewise.
14193 (display_selector): Likewise.
14194 (display_selectors): Likewise.
14195 (handle_exception): Likewise.
14196 (windows_continue): Likewise.
14197 (windows_nat_target::resume): Likewise.
14198 (windows_add_all_dlls): Likewise.
14199 (do_initial_windows_stuff): Likewise.
14200 (windows_nat_target::attach): Likewise.
14201 (windows_get_exec_module_filename): Likewise.
14202 (windows_nat_target::create_inferior): Likewise.
14203 (windows_xfer_siginfo): Likewise.
14204 (_initialize_loadable): Initialize Wow64SuspendThread,
14205 Wow64GetThreadContext, Wow64SetThreadContext,
14206 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
14207 * windows-nat.h (windows_set_context_register_offsets):
14208 Remove declaration.
14209 (windows_set_segment_register_p): Likewise.
14210 (i386_windows_segment_register_p): Add declaration.
14211 (amd64_windows_segment_register_p): Likewise.
14212
14213 2020-03-04 Luis Machado <luis.machado@linaro.org>
14214
14215 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
14216 in "info registers" for AArch64/ARM.
14217
14218 The change caused "info registers" to not print GPR's.
14219
14220 gdb/ChangeLog:
14221
14222 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
14223
14224 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
14225 when reg->group is empty and reggroup is not.
14226
14227 2020-03-03 Tom Tromey <tromey@adacore.com>
14228
14229 * dwarf2/frame.c (struct dwarf2_frame_cache)
14230 <checked_tailcall_bottom, entry_cfa_sp_offset,
14231 entry_cfa_sp_offset_p>: Remove members.
14232 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
14233 (dwarf2_frame_prev_register): Don't call
14234 dwarf2_tailcall_sniffer_first.
14235 (dwarf2_append_unwinders): Don't append tailcall unwinder.
14236 * frame-unwind.c (add_unwinder): New fuction.
14237 (frame_unwind_init): Use it. Add tailcall unwinder.
14238
14239 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
14240 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14241
14242 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
14243 value should be printed as true.
14244
14245 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
14246
14247 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
14248 (windows_init_abi): Set and use windows_so_ops.
14249
14250 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
14251
14252 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
14253 when verifying if dealing with a convenience variable.
14254
14255 2020-03-03 Luis Machado <luis.machado@linaro.org>
14256
14257 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
14258
14259 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
14260
14261 * infrun.c (gdbarch_supports_displaced_stepping): New.
14262 (use_displaced_stepping): Break up conditions in smaller pieces.
14263 Use gdbarch_supports_displaced_stepping.
14264 (displaced_step_prepare_throw): Use
14265 gdbarch_supports_displaced_stepping.
14266
14267 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
14268
14269 * NEWS: Mention new behaviour of the history filename.
14270 * top.c (write_history_p): Add comment.
14271 (show_write_history_p): Add header comment, give a different
14272 message when history writing is on, but the history filename is
14273 empty.
14274 (history_filename): Add comment.
14275 (history_filename_empty): New function.
14276 (show_history_filename): Add header comment, give a different
14277 message when the filename is empty.
14278 (init_history): Compare history_filename against nullptr, and only
14279 read history if the filename is not empty.
14280 (set_history_filename): Add header comment, and only make
14281 non-empty filenames absolute.
14282 (init_main): Make the filename argument to 'set history filename'
14283 optional.
14284
14285 2020-03-02 Christian Biesinger <cbiesinger@google.com>
14286
14287 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
14288 (arm_supply_vfpregset): ...this, and update to use VFP registers.
14289 (fetch_fp_register): Update.
14290 (fetch_fp_regs): Update.
14291 (store_fp_register): Update.
14292 (store_fp_regs): Update.
14293 (arm_netbsd_nat_target::read_description): New function.
14294 (fetch_elfcore_registers): Update.
14295
14296 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
14297
14298 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
14299 general_thread if the stop reply is missing a thread-id.
14300 (remote_target::process_stop_reply): Use the first non-exited
14301 thread if the target didn't pass a thread-id.
14302 * infrun.c (do_target_wait): Move call to
14303 switch_to_inferior_no_thread to ....
14304 (do_target_wait_1): ... here.
14305
14306 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
14307
14308 * debuginfod-support.c: Include defs.h first.
14309
14310 2020-02-28 Tom de Vries <tdevries@suse.de>
14311
14312 * symfile.c (set_initial_language): Use default language for lookup.
14313
14314 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
14315
14316 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
14317 reader variable, pass `this` to read_cutu_die_from_dwo.
14318
14319 2020-02-27 Aaron Merey <amerey@redhat.com>
14320
14321 * source.c (open_source_file): Check for nullptr when computing
14322 srcpath.
14323
14324 2020-02-27 Tom Tromey <tromey@adacore.com>
14325
14326 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
14327 member.
14328 (dwarf2_add_field): Don't update nfields.
14329 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
14330
14331 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14332
14333 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
14334 abs.
14335
14336 2020-02-26 Tom Tromey <tom@tromey.com>
14337
14338 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
14339 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
14340 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
14341 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
14342 per_cu_data.
14343
14344 2020-02-26 Tom Tromey <tom@tromey.com>
14345
14346 * dwarf2/index-write.c (psym_index_map): Change type.
14347 (add_address_entry_worker, write_one_signatured_type)
14348 (recursively_count_psymbols, recursively_write_psymbols)
14349 (class debug_names, psyms_seen_size, write_gdbindex)
14350 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
14351
14352 2020-02-26 Aaron Merey <amerey@redhat.com>
14353
14354 * Makefile.in: Handle optional debuginfod support.
14355 * NEWS: Update.
14356 * README: Add --with-debuginfod summary.
14357 * config.in: Regenerate.
14358 * configure: Regenerate.
14359 * configure.ac: Handle optional debuginfod support.
14360 * debuginfod-support.c: debuginfod helper functions.
14361 * debuginfod-support.h: Ditto.
14362 * doc/gdb.texinfo: Add --with-debuginfod to configure options
14363 summary.
14364 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
14365 when a dwz file cannot be found.
14366 * elfread.c (elf_symfile_read): Query debuginfod servers when a
14367 debuginfo file cannot be found.
14368 * source.c (open_source_file): Query debuginfod servers when a
14369 source file cannot be found.
14370 * top.c (print_gdb_configuration): Include
14371 --{with,without}-debuginfod in the output.
14372
14373 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
14374
14375 * thread.c (thr_try_catch_cmd): Print thread name.
14376
14377 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
14378
14379 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
14380 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14381 dwarf2_fetch_die_type_sect_off): Move to...
14382 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
14383 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14384 dwarf2_fetch_die_type_sect_off): ... here.
14385 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
14386 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14387 dwarf2_fetch_die_type_sect_off): Move doc to header file.
14388
14389 2020-02-26 Tom de Vries <tdevries@suse.de>
14390
14391 PR gdb/25603
14392 * symfile.c (set_initial_language): Exit-early if
14393 language_mode == language_mode_manual.
14394
14395 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
14396
14397 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
14398 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
14399 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
14400
14401 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
14402
14403 * gdbtypes.c (create_array_type_with_stride): Handle negative
14404 array strides.
14405 * valarith.c (value_subscripted_rvalue): Likewise.
14406
14407 2020-02-25 Luis Machado <luis.machado@linaro.org>
14408
14409 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
14410
14411 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
14412
14413 * loc.h (dwarf2_get_die_type): Move to...
14414 * read.h (dwarf2_get_die_type): ... here.
14415 * read.c (dwarf2_get_die_type): Move doc to header.
14416
14417 2020-02-25 Joel Brobecker <brobecker@adacore.com>
14418
14419 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
14420 'gnulib/Makefile.in' to the list.
14421
14422 2020-02-24 Tom Tromey <tom@tromey.com>
14423
14424 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
14425 Remove.
14426 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
14427 XOBNEWVEC.
14428
14429 2020-02-24 Tom Tromey <tom@tromey.com>
14430
14431 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
14432 New method.
14433 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
14434 (dw2_do_instantiate_symtab, dw2_get_file_names)
14435 (build_type_psymtab_dependencies, load_full_type_unit): Update.
14436
14437 2020-02-24 Tom Tromey <tom@tromey.com>
14438
14439 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
14440 make_scoped_restore.
14441 (dwarf2_psymtab::read_symtab): Don't clear
14442 reading_partial_symbols.
14443
14444 2020-02-24 Tom de Vries <tdevries@suse.de>
14445
14446 PR gdb/25592
14447 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
14448
14449 2020-02-24 Tom de Vries <tdevries@suse.de>
14450
14451 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
14452 commands layout next/prev/regs.
14453
14454 2020-02-22 Tom Tromey <tom@tromey.com>
14455
14456 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
14457 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
14458
14459 2020-02-22 Tom Tromey <tom@tromey.com>
14460
14461 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
14462
14463 2020-02-22 Tom Tromey <tom@tromey.com>
14464
14465 * tui/tui-win.c (_initialize_tui_win): Add usage text.
14466 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
14467 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
14468 * tui/tui.c (_initialize_tui): Add usage text.
14469
14470 2020-02-22 Tom Tromey <tom@tromey.com>
14471
14472 * tui/tui-win.c (tui_set_focus_command)
14473 (tui_set_win_height_command): Use error_no_arg.
14474 (_initialize_tui_win): Update help text.
14475 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
14476
14477 2020-02-22 Tom Tromey <tom@tromey.com>
14478
14479 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
14480 * tui/tui-disasm.h (struct tui_disasm_window)
14481 <display_start_addr>: Declare.
14482 * tui/tui-source.h (struct tui_source_window)
14483 <display_start_addr>: Declare.
14484 * tui/tui-winsource.h (struct tui_source_window_base)
14485 <show_source_line, display_start_addr>: New methods.
14486 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
14487 Rename and move to protected section.
14488 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
14489 (tui_source_window_base::do_erase_source_content): Update.
14490 (tui_source_window_base::show_source_line): Now a method.
14491 (tui_source_window_base::show_source_content)
14492 (tui_source_window_base::tui_source_window_base)
14493 (tui_source_window_base::rerender)
14494 (tui_source_window_base::refill)
14495 (tui_source_window_base::do_scroll_horizontal)
14496 (tui_source_window_base::set_is_exec_point_at)
14497 (tui_source_window_base::update_breakpoint_info)
14498 (tui_source_window_base::update_exec_info): Update.
14499 * tui/tui-source.c (tui_source_window::set_contents)
14500 (tui_source_window::showing_source_p)
14501 (tui_source_window::do_scroll_vertical)
14502 (tui_source_window::location_matches_p)
14503 (tui_source_window::line_is_displayed): Update.
14504 (tui_source_window::display_start_addr): New method.
14505 * tui/tui-disasm.c (tui_disasm_window::set_contents)
14506 (tui_disasm_window::do_scroll_vertical)
14507 (tui_disasm_window::location_matches_p): Update.
14508 (tui_disasm_window::display_start_addr): New method.
14509
14510 2020-02-22 Tom Tromey <tom@tromey.com>
14511
14512 * NEWS: Add entry for gdb.register_window_type.
14513 * tui/tui-layout.h (window_factory): New typedef.
14514 (tui_register_window): Declare.
14515 * tui/tui-layout.c (saved_tui_windows): New global.
14516 (tui_apply_current_layout): Use it.
14517 (tui_register_window): New function.
14518 * python/python.c (do_start_initialization): Call
14519 gdbpy_initialize_tui.
14520 (python_GdbMethods): Add "register_window_type" function.
14521 * python/python-internal.h (gdbpy_register_tui_window)
14522 (gdbpy_initialize_tui): Declare.
14523 * python/py-tui.c: New file.
14524 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
14525
14526 2020-02-22 Tom Tromey <tom@tromey.com>
14527
14528 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
14529
14530 2020-02-22 Tom Tromey <tom@tromey.com>
14531
14532 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
14533 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
14534 * tui/tui-data.c (tui_set_win_with_focus): Remove.
14535 (tui_set_win_focus_to): Move from tui-win.c.
14536
14537 2020-02-22 Tom Tromey <tom@tromey.com>
14538
14539 * tui/tui-layout.c (make_standard_window, get_locator_window): New
14540 functions.
14541 (known_window_types): New global.
14542 (tui_get_window_by_name): Reimplement.
14543 (initialize_known_windows): New function.
14544 (validate_window_name): Rewrite.
14545 (_initialize_tui_layout): Call initialize_known_windows.
14546
14547 2020-02-22 Tom Tromey <tom@tromey.com>
14548
14549 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
14550 Remove constants.
14551 * tui/tui-winsource.h (struct tui_source_window_base)
14552 <tui_source_window_base>: Remove parameter.
14553 * tui/tui-winsource.c
14554 (tui_source_window_base::tui_source_window_base): Remove
14555 parameter.
14556 (tui_source_window_base::refill): Update.
14557 * tui/tui-stack.h (struct tui_locator_window)
14558 <tui_locator_window>: Update.
14559 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
14560 Default the constructor.
14561 * tui/tui-regs.h (struct tui_data_item_window)
14562 <tui_data_item_window>: Default the constructor.
14563 (struct tui_data_window) <tui_data_window>: Likewise.
14564 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
14565 Default the constructor.
14566 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
14567 Default the constructor.
14568 <type>: Remove.
14569 (struct tui_win_info) <tui_win_info>: Default the constructor.
14570 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
14571 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
14572 Default the constructor.
14573
14574 2020-02-22 Tom Tromey <tom@tromey.com>
14575
14576 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
14577 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
14578 * tui/tui-win.c (tui_resize_all): Don't call
14579 tui_delete_invisible_windows.
14580 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
14581 done.
14582 (tui_set_layout): Update.
14583 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
14584 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
14585 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
14586
14587 2020-02-22 Tom Tromey <tom@tromey.com>
14588
14589 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
14590 correctly.
14591
14592 2020-02-22 Tom Tromey <tom@tromey.com>
14593
14594 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
14595
14596 2020-02-22 Tom Tromey <tom@tromey.com>
14597
14598 * tui/tui-winsource.h (struct tui_source_window_iterator)
14599 <inner_iterator>: New etytypedef.
14600 <tui_source_window_iterator>: Take "end" parameter.
14601 <tui_source_window_iterator>: Take iterator.
14602 <operator*, advance>: Update.
14603 <m_iter>: Change type.
14604 <m_end>: New field.
14605 (struct tui_source_windows) <begin, end>: Update.
14606 * tui/tui-layout.c (tui_windows): New global.
14607 (tui_apply_current_layout): Clear tui_windows.
14608 (tui_layout_window::apply): Update tui_windows.
14609 * tui/tui-data.h (tui_windows): Declare.
14610 (all_tui_windows): Now inline function.
14611 (class tui_window_iterator, struct all_tui_windows): Remove.
14612
14613 2020-02-22 Tom Tromey <tom@tromey.com>
14614
14615 PR tui/17850:
14616 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
14617 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
14618 "height" argument.
14619 (class tui_layout_window) <get_sizes>: Likewise.
14620 (class tui_layout_split) <tui_layout_split>: Add "vertical"
14621 argument.
14622 <get_sizes>: Add "height" argument.
14623 <m_vertical>: New field.
14624 * tui/tui-layout.c (tui_layout_split::clone): Update.
14625 (tui_layout_split::get_sizes): Add "height" argument.
14626 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
14627 (tui_new_layout_command): Parse "-horizontal".
14628 (_initialize_tui_layout): Update help string.
14629 (tui_layout_split::specification): Add "-horizontal" when needed.
14630 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
14631 argument.
14632 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
14633 New methods.
14634
14635 2020-02-22 Tom Tromey <tom@tromey.com>
14636
14637 * tui/tui-layout.h (enum tui_adjust_result): New.
14638 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
14639 (class tui_layout_window) <adjust_size>: Return
14640 tui_adjust_result. Rewrite.
14641 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
14642 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
14643
14644 2020-02-22 Tom Tromey <tom@tromey.com>
14645
14646 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
14647 parameter and return types.
14648 (class tui_layout_base) <specification>: Add "depth".
14649 (class tui_layout_window) <specification>: Add "depth".
14650 (class tui_layout_split) <specification>: Add "depth".
14651 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
14652 and return types.
14653 (tui_new_layout_command): Parse sub-layouts.
14654 (_initialize_tui_layout): Update help string.
14655 (tui_layout_window::specification): Add "depth".
14656 (add_layout_command): Update.
14657
14658 2020-02-22 Tom Tromey <tom@tromey.com>
14659
14660 * NEWS: Add "tui new-layout" item.
14661 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
14662 Add new-layout command to help text.
14663 (validate_window_name): New function.
14664 (tui_new_layout_command): New function.
14665 (_initialize_tui_layout): Register "new-layout".
14666 (tui_layout_window::specification): New method.
14667 (tui_layout_window::specification): New method.
14668 * tui/tui-layout.h (class tui_layout_base) <specification>: New
14669 method.
14670 (class tui_layout_window) <specification>: New method.
14671 (class tui_layout_split) <specification>: New method.
14672
14673 2020-02-22 Tom Tromey <tom@tromey.com>
14674
14675 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
14676 * tui/tui-win.c (window_name_completer): Update comment.
14677 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
14678 Declare method.
14679 (class tui_layout_window) <replace_window>: Likewise.
14680 (class tui_layout_split) <replace_window>: Likewise.
14681 (tui_set_layout): Don't declare.
14682 (tui_set_initial_layout): Declare function.
14683 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
14684 (asm_regs_layout): New globals.
14685 (tui_current_layout, show_layout): Remove.
14686 (tui_set_layout, tui_add_win_to_layout): Rewrite.
14687 (find_layout, tui_apply_layout): New function.
14688 (layout_completer): Remove.
14689 (tui_next_layout): Reimplement.
14690 (tui_next_layout_command): New function.
14691 (tui_set_initial_layout, tui_prev_layout_command): New functions.
14692 (tui_regs_layout): Reimplement.
14693 (tui_regs_layout_command): New function.
14694 (extract_display_start_addr): Rewrite.
14695 (next_layout, prev_layout): Remove.
14696 (tui_layout_window::replace_window): New method.
14697 (tui_layout_split::replace_window): New method.
14698 (destroy_layout): New function.
14699 (layout_list): New global.
14700 (add_layout_command): New function.
14701 (initialize_layouts): Update.
14702 (tui_layout_command): New function.
14703 (_initialize_tui_layout): Install "layout" commands.
14704 * tui/tui-data.h (enum tui_layout_type): Remove.
14705 (tui_current_layout): Don't declare.
14706
14707 2020-02-22 Tom Tromey <tom@tromey.com>
14708
14709 * tui/tui-regs.c (tui_reg_layout): Remove.
14710 (tui_reg_command): Use tui_regs_layout.
14711 * tui/tui-layout.h (tui_reg_command): Declare.
14712 * tui/tui-layout.c (tui_reg_command): New function.
14713
14714 2020-02-22 Tom Tromey <tom@tromey.com>
14715
14716 * tui/tui.c (tui_rl_delete_other_windows): Call
14717 tui_remove_some_windows.
14718 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
14719 Declare method.
14720 (class tui_layout_window) <remove_windows>: New method.
14721 (class tui_layout_split) <remove_windows>: Declare.
14722 (tui_remove_some_windows): Declare.
14723 * tui/tui-layout.c (tui_remove_some_windows): New function.
14724 (tui_layout_split::remove_windows): New method.
14725
14726 2020-02-22 Tom Tromey <tom@tromey.com>
14727
14728 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
14729 * tui/tui-layout.h (tui_next_layout): Declare.
14730 * tui/tui-layout.c (tui_next_layout): New function.
14731
14732 2020-02-22 Tom Tromey <tom@tromey.com>
14733
14734 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
14735 correct coordinates.
14736
14737 2020-02-22 Tom Tromey <tom@tromey.com>
14738
14739 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
14740 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
14741 DATA_WIN case.
14742
14743 2020-02-22 Tom Tromey <tom@tromey.com>
14744
14745 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
14746 TUI_DISASM_WIN, not tui_win_list.
14747
14748 2020-02-22 Tom Tromey <tom@tromey.com>
14749
14750 * valprint.c (generic_val_print_enum_1)
14751 (val_print_type_code_flags): Style member names.
14752 * rust-lang.c (val_print_struct, rust_print_enum)
14753 (rust_print_struct_def, rust_internal_print_type): Style member
14754 names.
14755 * p-valprint.c (pascal_object_print_value_fields): Style member
14756 names. Only call fprintf_symbol_filtered for static members.
14757 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
14758 * f-valprint.c (f_val_print): Style member names.
14759 * f-typeprint.c (f_type_print_base): Style member names.
14760 * cp-valprint.c (cp_print_value_fields): Style member names. Only
14761 call fprintf_symbol_filtered for static members.
14762 (cp_print_class_member): Style member names.
14763 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
14764 member names.
14765 * ada-valprint.c (ada_print_scalar): Style enum names.
14766 (ada_val_print_enum): Likewise.
14767 * ada-typeprint.c (print_enum_type): Style enum names.
14768
14769 2020-02-21 Tom Tromey <tom@tromey.com>
14770
14771 * psympriv.h (struct partial_symtab): Update comment.
14772
14773 2020-02-21 Tom Tromey <tromey@adacore.com>
14774
14775 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
14776 type is CORE_ADDR.
14777
14778 2020-02-21 Tom de Vries <tdevries@suse.de>
14779
14780 PR gdb/25534
14781 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
14782 if dependencies[i]->user != NULL.
14783
14784 2020-02-21 Ali Tamur <tamur@google.com>
14785
14786 * dwarf2/read.c (dwarf2_name): Add null check.
14787
14788 2020-02-20 Tom Tromey <tom@tromey.com>
14789
14790 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
14791 ">=", in binary search.
14792 (dwarf2_find_containing_comp_unit): New overload.
14793 (run_test): New self-test.
14794 (_initialize_dwarf2_read): Register new test.
14795
14796 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
14797
14798 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
14799 * riscv-tdep.h: Likewise.
14800 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
14801 rv32-only CSR.
14802 * features/riscv/64bit-csr.xml: Regenerated.
14803
14804 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
14805 Tom Tromey <tom@tromey.com>
14806
14807 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
14808 of 'fputc_unfiltered'.
14809 (putchar_unfiltered): Call 'fputc_unfiltered'.
14810 (fputc_unfiltered): Call 'fputs_unfiltered'.
14811
14812 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
14813
14814 * config.in: Regenerate.
14815 * configure: Regenerate.
14816 * configure.ac: Add --with-python-libdir option.
14817 * main.c: Use WITH_PYTHON_LIBDIR.
14818
14819 2020-02-19 Tom Tromey <tom@tromey.com>
14820
14821 * symtab.c (general_symbol_info::compute_and_set_names): Use
14822 obstack_strndup. Simplify call to symbol_set_demangled_name.
14823
14824 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
14825
14826 * dwarf2/read.c (allocate_signatured_type_table,
14827 allocate_dwo_unit_table, allocate_type_unit_groups_table,
14828 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
14829 Remove objfile parameter, update all callers.
14830
14831 2020-02-19 Doug Evans <dje@google.com>
14832
14833 PR rust/25535
14834 * rust-lang.c (rust_print_enum): Apply embedded_offset to
14835 rust_enum_variant calculation.
14836
14837 2020-02-19 Tom Tromey <tromey@adacore.com>
14838
14839 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
14840
14841 2020-02-19 Tom Tromey <tromey@adacore.com>
14842
14843 * ada-lang.c (cache_symbol): Use obstack_strdup.
14844
14845 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
14846
14847 * configure: Regenerate.
14848
14849 2020-02-19 Tom Tromey <tromey@adacore.com>
14850
14851 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
14852 NULL check.
14853
14854 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
14855
14856 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
14857
14858 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
14859
14860 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
14861 if GDBSERVER is not defined.
14862 (riscv_tdesc_cache): Likewise, also store const target_desc.
14863 (STATIC_IN_GDB): Define.
14864 (riscv_create_target_description): Update declaration with
14865 STATIC_IN_GDB.
14866 (riscv_lookup_target_description): New function, only define if
14867 GDBSERVER is not defined.
14868 * arch/riscv.h (riscv_create_target_description): Declare only
14869 when GDBSERVER is defined.
14870 (riscv_lookup_target_description): New declaration when GDBSERVER
14871 is not defined.
14872 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
14873 (riscv_linux_read_features): ...this, and return
14874 riscv_gdbarch_features instead of target_desc.
14875 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
14876 (riscv_linux_read_description): Rename to...
14877 (riscv_linux_read_features): ...this.
14878 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
14879 Update to use riscv_gdbarch_features and
14880 riscv_lookup_target_description.
14881 * riscv-tdep.c (riscv_find_default_target_description): Use
14882 riscv_lookup_target_description instead of
14883 riscv_create_target_description.
14884
14885 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14886
14887 * valprint.c (generic_val_print_enum_1): When printing a flag
14888 enum with value 0 and there is no enumerator with value 0, print
14889 just "0" instead of "(unknown: 0x0)".
14890
14891 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14892
14893 * valprint.c (generic_val_print_enum_1): Print unknown part of
14894 flag enum in hex.
14895
14896 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14897
14898 * dwarf2/read.c (update_enumeration_type_from_children): Allow
14899 flag enums to contain duplicate enumerators.
14900 * valprint.c (generic_val_print_enum_1): Update comment.
14901
14902 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14903
14904 * dwarf2/read.c: Include "count-one-bits.h".
14905 (update_enumeration_type_from_children): If an enumerator has
14906 multiple bits set, don't treat the enumeration as a "flag enum".
14907 * valprint.c (generic_val_print_enum_1): Assert that enumerators
14908 of flag enums have 0 or 1 bit set.
14909
14910 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
14911
14912 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
14913 conversion.
14914 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14915 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
14916 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14917 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
14918 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14919
14920 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14921
14922 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
14923
14924 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
14925
14926 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
14927 displaced_step_closure_up.
14928 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
14929 (struct displaced_step_closure_up):
14930 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14931 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
14932 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
14933 Likewise.
14934 * gdbarch.sh (displaced_step_copy_insn): Likewise.
14935 * gdbarch.c, gdbarch.h: Re-generate.
14936 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
14937 displaced_step_closure_up.
14938 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14939 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
14940 * infrun.h (displaced_step_closure_up): New type alias.
14941 (struct displaced_step_inferior_state) <step_closure>: Change
14942 type to displaced_step_closure_up.
14943 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
14944 displaced_step_closure_up.
14945 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14946
14947 2020-02-14 Tom Tromey <tom@tromey.com>
14948
14949 * minidebug.c (gnu_debug_key): New global.
14950 (find_separate_debug_file_in_section): Use it.
14951
14952 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
14953
14954 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
14955 std::unique_ptr.
14956 * gdbarch.c: Re-generate.
14957 * gdbarch.h: Re-generate.
14958 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
14959 change.
14960 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
14961 type to std::unique_ptr.
14962 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
14963 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14964 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
14965 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
14966 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
14967 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14968 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
14969 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
14970 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14971
14972 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
14973
14974 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
14975 std::unique_ptr.
14976 (displaced_step_clear): Rename to...
14977 (displaced_step_reset): ... this. Just call displaced->reset ().
14978 (displaced_step_clear_cleanup): Rename to...
14979 (displaced_step_reset_cleanup): ... this.
14980 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
14981 (displaced_step_fixup): Likewise.
14982 (resume_1): Likewise.
14983 (handle_inferior_event): Restore child's memory before calling
14984 displaced_step_fixup on the parent.
14985 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
14986 to std::unique_ptr.
14987 <step_closure>: Change type to std::unique_ptr.
14988
14989 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
14990
14991 * arm-tdep.c: Include count-one-bits.h.
14992 (cleanup_block_store_pc): Use count_one_bits.
14993 (cleanup_block_load_pc): Use count_one_bits.
14994 (arm_copy_block_xfer): Use count_one_bits.
14995 (thumb2_copy_block_xfer): Use count_one_bits.
14996 (thumb_copy_pop_pc_16bit): Use count_one_bits.
14997 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
14998 (thumb_get_next_pcs_raw): Use count_one_bits.
14999 (arm_get_next_pcs_raw): Use count_one_bits_l.
15000 * arch/arm.c (bitcount): Remove.
15001 * arch/arm.h (bitcount): Remove.
15002
15003 2020-02-14 Tom Tromey <tromey@adacore.com>
15004
15005 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
15006 Update.
15007 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
15008 * dwarf2/loc.c (call_site_find_chain_1): Return
15009 unique_xmalloc_ptr.
15010 (call_site_find_chain): Likewise.
15011
15012 2020-02-14 Richard Biener <rguenther@suse.de>
15013
15014 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
15015 on expression with division operators.
15016
15017 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
15018
15019 * MAINTAINERS (Write After Approval): Adding myself.
15020
15021 2020-02-12 Tom Tromey <tom@tromey.com>
15022
15023 * event-loop.c (event_data, gdb_event, event_handler_func):
15024 Remove.
15025
15026 2020-02-12 Tom Tromey <tom@tromey.com>
15027
15028 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
15029 (dwarf2_frame_objfile_data): Add comment.
15030 (find_comp_unit, set_comp_unit): New functions.
15031 (dwarf2_frame_find_fde): Use find_comp_unit.
15032 (dwarf2_build_frame_info): Use set_comp_unit.
15033
15034 2020-02-12 Tom Tromey <tom@tromey.com>
15035
15036 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
15037 (comp_unit): Don't initialize objfile.
15038 (execute_cfa_program): Add text_offset parameter.
15039 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
15040 (dwarf2_frame_cache): Update.
15041 (dwarf2_build_frame_info): Don't set "objfile" member.
15042
15043 2020-02-12 Tom Tromey <tom@tromey.com>
15044
15045 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
15046 (decode_frame_entry): Likewise.
15047 (dwarf2_build_frame_info): Update.
15048
15049 2020-02-12 Tom Tromey <tom@tromey.com>
15050
15051 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
15052 (decode_frame_entry_1): Use the comp_unit obstack.
15053
15054 2020-02-12 Tom Tromey <tom@tromey.com>
15055
15056 * dwarf2/frame.c (struct comp_unit): Add initializers and
15057 constructor.
15058 (dwarf2_frame_objfile_data): Store a comp_unit.
15059 (dwarf2_frame_find_fde): Update.
15060 (dwarf2_build_frame_info): Use "new".
15061
15062 2020-02-12 Tom Tromey <tom@tromey.com>
15063
15064 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
15065 (dwarf2_fde_table): Typedef for std::vector.
15066 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
15067 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
15068 (decode_frame_entry): Update.
15069 (dwarf2_build_frame_info): Use "new".
15070
15071 2020-02-12 Christian Biesinger <cbiesinger@google.com>
15072
15073 * arm-tdep.c (arm_gdbarch_init): Update.
15074 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
15075 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
15076 have_neon, is_m>: Change to bool.
15077
15078 2020-02-12 Christian Biesinger <cbiesinger@google.com>
15079
15080 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
15081
15082 2020-02-12 Tom Tromey <tom@tromey.com>
15083
15084 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
15085
15086 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
15087
15088 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
15089 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
15090
15091 2020-02-11 Tom Tromey <tom@tromey.com>
15092
15093 * psymtab.h: Update comment.
15094
15095 2020-02-11 Tom Tromey <tom@tromey.com>
15096
15097 * gdb_obstack.h (struct auto_obstack): Use
15098 DISABLE_COPY_AND_ASSIGN.
15099
15100 2020-02-11 Tom Tromey <tom@tromey.com>
15101
15102 * dwarf2/frame.h (struct objfile): Don't forward declare.
15103
15104 2020-02-11 Christian Biesinger <cbiesinger@google.com>
15105
15106 * cris-tdep.c (cris_supply_gregset): Change signature to match
15107 what struct regset expects.
15108 (cris_regset): New struct.
15109 (fetch_core_registers): Remove.
15110 (cris_iterate_over_regset_sections): New function.
15111 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
15112 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
15113
15114 2020-02-11 Christian Biesinger <cbiesinger@google.com>
15115
15116 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
15117 registers.
15118
15119 2020-02-11 Christian Biesinger <cbiesinger@google.com>
15120
15121 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
15122
15123 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
15124
15125 * configure: Re-generate.
15126
15127 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
15128
15129 * configure: Re-generate.
15130
15131 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
15132
15133 * acinclude: Update warning.m4 path.
15134 * warning.m4: Move to gdbsupport.
15135
15136 2020-02-11 Tom Tromey <tromey@adacore.com>
15137
15138 * remote.c (remote_console_output): Update.
15139 * printcmd.c (printf_command): Update.
15140 * event-loop.c (gdb_wait_for_event): Update.
15141 * linux-nat.c (sigchld_handler): Update.
15142 * remote-sim.c (gdb_os_write_stdout): Update.
15143 (gdb_os_flush_stdout): Update.
15144 (gdb_os_flush_stderr): Update.
15145 (gdb_os_write_stderr): Update.
15146 * exceptions.c (print_exception): Update.
15147 * remote-fileio.c (remote_fileio_func_read): Update.
15148 (remote_fileio_func_write): Update.
15149 * tui/tui.c (tui_enable): Update.
15150 * tui/tui-interp.c (tui_interp::init): Update.
15151 * utils.c (init_page_info): Update.
15152 (putchar_unfiltered, fputc_unfiltered): Update.
15153 (gdb_flush): Update.
15154 (emit_style_escape): Update.
15155 (flush_wrap_buffer, fputs_maybe_filtered): Update.
15156 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
15157 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
15158 (stderr_file::write): Update.
15159 (stderr_file::puts): Update.
15160 * ui-file.h (ui_file_isatty, ui_file_write)
15161 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
15162 (ui_file_puts): Don't declare.
15163
15164 2020-02-10 Tom de Vries <tdevries@suse.de>
15165
15166 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
15167 sentinel to char *.
15168
15169 2020-02-09 Tom de Vries <tdevries@suse.de>
15170
15171 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
15172 filename if it matches "<artificial>".
15173
15174 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
15175
15176 * windows-tdep.c (struct enum_value_name): New struct.
15177 (create_enum): New function.
15178 (windows_get_siginfo_type): Create and use enum types.
15179
15180 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
15181
15182 * NEWS: Mention $_siginfo support for Windows.
15183 * windows-nat.c (handle_exception): Set siginfo_er.
15184 (windows_nat_target::mourn_inferior): Reset siginfo_er.
15185 (windows_xfer_siginfo): New function.
15186 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
15187 * windows-tdep.c (struct windows_gdbarch_data): New struct.
15188 (init_windows_gdbarch_data): New function.
15189 (get_windows_gdbarch_data): New function.
15190 (windows_get_siginfo_type): New function.
15191 (windows_init_abi): Register windows_get_siginfo_type.
15192 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
15193
15194 2020-02-08 Tom Tromey <tom@tromey.com>
15195
15196 * dwarf2/read.c (class cutu_reader) <cutu_reader,
15197 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
15198 <keep>: Declare method.
15199 <m_keep>: Remove member.
15200 <~cutu_reader>: Remove.
15201 (cutu_reader::init_tu_and_read_dwo_dies): Update.
15202 (cutu_reader::cutu_reader): Update.
15203 (cutu_reader::keep): Rename from ~cutu_reader.
15204 (process_psymtab_comp_unit, build_type_psymtabs_1)
15205 (process_skeletonless_type_unit, load_partial_comp_unit)
15206 (load_full_comp_unit, dwarf2_read_addr_index)
15207 (read_signatured_type): Update.
15208
15209 2020-02-08 Tom Tromey <tom@tromey.com>
15210
15211 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
15212 "want_partial_unit" parameter.
15213 (process_psymtab_comp_unit): Change want_partial_unit to bool.
15214 Inline check for DW_TAG_partial_unit.
15215 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
15216
15217 2020-02-08 Tom Tromey <tom@tromey.com>
15218
15219 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
15220 read.c.
15221 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
15222 read.c.
15223
15224 2020-02-08 Tom Tromey <tom@tromey.com>
15225
15226 * dwarf2/read.c (read_address): Move to comp-unit.c.
15227 (dwarf2_rnglists_process, dwarf2_ranges_process)
15228 (read_attribute_value, dwarf_decode_lines_1)
15229 (var_decode_location, decode_locdesc): Update.
15230 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
15231 read.c. Remove "cu" parameter.
15232 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
15233 method.
15234
15235 2020-02-08 Tom Tromey <tom@tromey.com>
15236
15237 * dwarf2/read.c (read_attribute_value, read_indirect_string)
15238 (read_indirect_line_string): Update.
15239 * dwarf2/comp-unit.c (read_offset): Remove.
15240 (read_comp_unit_head): Update.
15241 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
15242 method.
15243 (read_offset): Don't declare.
15244
15245 2020-02-08 Tom Tromey <tom@tromey.com>
15246
15247 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
15248 * dwarf2/read.c (struct comp_unit_head): Move to
15249 dwarf2/comp-unit.h.
15250 (enum class rcuh_kind): Move to comp-unit.h.
15251 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
15252 (read_comp_unit_head, error_check_comp_unit_head)
15253 (read_and_check_comp_unit_head): Move to comp-unit.c.
15254 (read_offset, dwarf_unit_type_name): Likewise.
15255 (create_debug_type_hash_table, read_cutu_die_from_dwo)
15256 (cutu_reader::cutu_reader, read_call_site_scope)
15257 (find_partial_die, follow_die_offset): Update.
15258 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
15259
15260 2020-02-08 Tom Tromey <tom@tromey.com>
15261
15262 * dwarf2/read.c (read_offset_1): Move to leb.c.
15263 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
15264 (dwarf_decode_macro_bytes): Update.
15265 * dwarf2/leb.c (read_offset): Rename; move from read.c.
15266 * dwarf2/leb.h (read_offset): Declare.
15267
15268 2020-02-08 Tom Tromey <tom@tromey.com>
15269
15270 * dwarf2/read.c (dwarf2_section_size): Remove.
15271 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
15272 Update.
15273 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
15274
15275 2020-02-08 Tom Tromey <tom@tromey.com>
15276
15277 * dwarf2/read.c (read_initial_length): Move to leb.c.
15278 * dwarf2/leb.h (read_initial_length): Declare.
15279 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
15280 handle_nonstd parameter.
15281 * dwarf2/frame.c (read_initial_length): Remove.
15282 (decode_frame_entry_1): Update.
15283
15284 2020-02-08 Tom Tromey <tom@tromey.com>
15285
15286 * dwarf2/loc.c (dwarf2_find_location_expression)
15287 (dwarf_evaluate_loc_desc::get_tls_address)
15288 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
15289 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
15290 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
15291 (dwarf2_compile_property_to_c)
15292 (dwarf2_loc_desc_get_symbol_read_needs)
15293 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
15294 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
15295 (loclist_describe_location, loclist_tracepoint_var_ref)
15296 (loclist_generate_c_location): Update.
15297 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
15298 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
15299 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
15300 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
15301 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
15302 (dwarf2_per_cu_data::addr_size)
15303 (dwarf2_per_cu_data::ref_addr_size)
15304 (dwarf2_per_cu_data::text_offset)
15305 (dwarf2_per_cu_data::addr_type): Now methods.
15306 (per_cu_header_read_in): Make per_cu "const".
15307 (dwarf2_version): Remove.
15308 (dwarf2_per_cu_data::int_type): Now a method.
15309 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
15310 (set_die_type, read_array_type, read_subrange_index_type)
15311 (read_tag_string_type, read_subrange_type): Update.
15312 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
15313 offset_size, ref_addr_size, text_offset, addr_type, version,
15314 objfile, int_type, addr_sized_int_type>: Declare methods.
15315
15316 2020-02-08 Tom Tromey <tom@tromey.com>
15317
15318 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
15319 Move earlier.
15320
15321 2020-02-08 Tom Tromey <tom@tromey.com>
15322
15323 * dwarf2/read.h (dwarf_line_debug): Declare.
15324 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
15325 * dwarf2/read.c: Move line_header code to new files.
15326 (dwarf_line_debug): No longer static.
15327 * dwarf2/line-header.c: New file.
15328 * dwarf2/line-header.h: New file.
15329
15330 2020-02-08 Tom Tromey <tom@tromey.com>
15331
15332 * dwarf2/read.c (struct line_header) <file_full_name,
15333 file_file_name>: Return unique_xmalloc_ptr.
15334 (line_header::file_file_name): Update.
15335 (line_header::file_full_name): Update.
15336 (dw2_get_file_names_reader): Update.
15337 (macro_start_file): Update.
15338
15339 2020-02-08 Tom Tromey <tom@tromey.com>
15340
15341 * dwarf2/read.c (struct line_header) <file_full_name,
15342 file_file_name>: Declare methods.
15343 (dw2_get_file_names_reader): Update.
15344 (file_file_name): Now a method.
15345 (file_full_name): Likewise.
15346 (macro_start_file): Update.
15347
15348 2020-02-08 Tom Tromey <tom@tromey.com>
15349
15350 * dwarf2/read.c (dwarf_always_disassemble)
15351 (show_dwarf_always_disassemble): Move to loc.c.
15352 (_initialize_dwarf2_read): Move "always-disassemble" registration
15353 to loc.c.
15354 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
15355 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
15356 static.
15357 (show_dwarf_always_disassemble): Move from read.c.
15358 (_initialize_dwarf2loc): Move always-disassemble from read.c.
15359
15360 2020-02-08 Tom Tromey <tom@tromey.com>
15361
15362 * dwarf2/read.c (~dwarf2_per_objfile): Update.
15363 (create_quick_file_names_table): Return htab_up.
15364 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
15365 Update.
15366 * dwarf2/read.h (struct dwarf2_per_objfile)
15367 <quick_file_names_table>: Now htab_up.
15368
15369 2020-02-08 Tom Tromey <tom@tromey.com>
15370
15371 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
15372
15373 2020-02-08 Tom Tromey <tom@tromey.com>
15374
15375 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
15376 Rewrite.
15377 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
15378 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
15379 (abbrev_table::abbrev_table): No longer inline.
15380 (ABBREV_HASH_SIZE): Remove.
15381 (abbrev_table::m_abbrevs): Now an htab_up.
15382
15383 2020-02-08 Tom Tromey <tom@tromey.com>
15384
15385 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
15386 (cutu_reader): Update.
15387 (build_type_psymtabs_1): Update.
15388 * dwarf2/abbrev.c (abbrev_table::read): Rename.
15389 (abbrev_table::alloc_abbrev): Update.
15390 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
15391 (abbrev_table::read): New static method, renamed from
15392 abbrev_table_read_table.
15393 (abbrev_table::alloc_abbrev)
15394 (abbrev_table::add_abbrev): Now private.
15395 (abbrev_table::abbrev_table): Now private.
15396 (abbrev_table::m_abbrev_obstack): Now private. Rename.
15397
15398 2020-02-08 Tom Tromey <tom@tromey.com>
15399
15400 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
15401 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
15402 htab_up.
15403
15404 2020-02-08 Tom Tromey <tom@tromey.com>
15405
15406 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
15407 htab_up.
15408 (lookup_dwo_unit_in_dwp): Update.
15409 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
15410 on obstack.
15411
15412 2020-02-08 Tom Tromey <tom@tromey.com>
15413
15414 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
15415 obstack.
15416
15417 2020-02-08 Tom Tromey <tom@tromey.com>
15418
15419 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
15420 line_header_hash.
15421 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
15422 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
15423 Change type to htab_up.
15424
15425 2020-02-08 Tom Tromey <tom@tromey.com>
15426
15427 * dwarf2/read.c (allocate_type_unit_groups_table): Return
15428 htab_up. Don't allocate on obstack.
15429 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
15430 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
15431 Change type to htab_up.
15432
15433 2020-02-08 Tom Tromey <tom@tromey.com>
15434
15435 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
15436 Change type to htab_up.
15437 * dwarf2/read.c (create_signatured_type_table_from_index)
15438 (create_signatured_type_table_from_debug_names)
15439 (create_all_type_units, add_type_unit)
15440 (lookup_dwo_signatured_type, lookup_signatured_type)
15441 (process_skeletonless_type_unit): Update.
15442 (create_debug_type_hash_table, create_debug_types_hash_table):
15443 Change type of types_htab.
15444 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
15445 htab_up. Don't allocate on obstack.
15446 (create_cus_hash_table): Change type of cus_htab parameter.
15447 (struct dwo_file) <cus, tus>: Now htab_up.
15448 (lookup_dwo_signatured_type, lookup_dwo_cutu)
15449 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
15450 (queue_and_load_all_dwo_tus): Update.
15451 * dwarf2/index-write.c (write_gdbindex): Update.
15452 (write_debug_names): Update.
15453
15454 2020-02-08 Tom Tromey <tom@tromey.com>
15455
15456 * dwarf2/read.h (struct dwarf2_queue_item): Move from
15457 dwarf2/read.c. Remove "next" member. Add constructor ntad
15458 destructor.
15459 (struct dwarf2_per_objfile) <queue>: New member.
15460 * dwarf2/read.c (struct dwarf2_queue_item): Move to
15461 dwarf2/read.h.
15462 (dwarf2_queue, dwarf2_queue_tail): Remove.
15463 (class dwarf2_queue_guard): Add parameter to constructor. Use
15464 DISABLE_COPY_AND_ASSIGN.
15465 <m_per_objfile>: New member.
15466 <~dwarf2_queue_guard>: Rewrite.
15467 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
15468 Update.
15469 (~dwarf2_queue_item): New.
15470
15471 2020-02-08 Tom Tromey <tom@tromey.com>
15472
15473 * dwarf2/read.c (struct die_info) <has_children>: New member.
15474 (dw2_get_file_names_reader): Remove has_children.
15475 (dw2_get_file_names): Update.
15476 (read_cutu_die_from_dwo): Remove has_children.
15477 (cutu_reader::init_tu_and_read_dwo_dies)
15478 (cutu_reader::cutu_reader): Update.
15479 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
15480 Remove has_children.
15481 (build_type_psymtabs_1, process_skeletonless_type_unit)
15482 (load_partial_comp_unit, load_full_comp_unit): Update.
15483 (create_dwo_cu_reader): Remove has_children.
15484 (create_cus_hash_table, read_die_and_children): Update.
15485 (read_full_die_1,read_full_die): Remove has_children.
15486 (read_signatured_type): Update.
15487 (class cutu_reader) <has_children>: Remove.
15488
15489 2020-02-08 Tom Tromey <tom@tromey.com>
15490
15491 * dwarf2/expr.c: Rename from dwarf2expr.c.
15492 * dwarf2/expr.h: Rename from dwarf2expr.h.
15493 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
15494 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
15495 * dwarf2/frame.c: Rename from dwarf2-frame.c.
15496 * dwarf2/frame.h: Rename from dwarf2-frame.h.
15497 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
15498 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
15499 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
15500 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
15501 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
15502 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
15503 * dwarf2/loc.c: Rename from dwarf2loc.c.
15504 * dwarf2/loc.h: Rename from dwarf2loc.h.
15505 * dwarf2/read.c: Rename from dwarf2read.c.
15506 * dwarf2/read.h: Rename from dwarf2read.h.
15507 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
15508 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
15509 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
15510 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
15511 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
15512 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
15513 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
15514 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
15515 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
15516 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
15517 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
15518 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
15519 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
15520 Update.
15521 * Makefile.in (COMMON_SFILES): Update.
15522 (HFILES_NO_SRCDIR): Update.
15523
15524 2020-02-08 Tom Tromey <tom@tromey.com>
15525
15526 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
15527 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
15528
15529 2020-02-08 Tom Tromey <tom@tromey.com>
15530
15531 * dwarf2read.h (struct die_info): Don't declare.
15532
15533 2020-02-08 Tom Tromey <tom@tromey.com>
15534
15535 * dwarf2read.h (die_info_ptr): Remove typedef.
15536
15537 2020-02-08 Tom Tromey <tom@tromey.com>
15538
15539 * dwarf2read.c (read_call_site_scope)
15540 (handle_data_member_location, dwarf2_add_member_fn)
15541 (mark_common_block_symbol_computed, read_common_block)
15542 (attr_to_dynamic_prop, partial_die_info::read)
15543 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
15544 (dwarf2_symbol_mark_computed, set_die_type): Update.
15545 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
15546 method.
15547 (attr_form_is_block): Don't declare.
15548 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
15549
15550 2020-02-08 Tom Tromey <tom@tromey.com>
15551
15552 * dwarf2read.c (dwarf2_find_base_address, )
15553 (read_call_site_scope, rust_containing_type)
15554 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
15555 (handle_data_member_location, dwarf2_add_member_fn)
15556 (get_alignment, read_structure_type, process_structure_scope)
15557 (mark_common_block_symbol_computed, read_common_block)
15558 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
15559 (partial_die_info::read, read_attribute_value, new_symbol)
15560 (lookup_die_type, dwarf2_get_ref_die_offset)
15561 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
15562 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
15563 (dwarf2_symbol_mark_computed): Update.
15564 * dwarf2/attribute.h (struct attribute) <value_as_address,
15565 form_is_section_offset, form_is_constant, form_is_ref>: Declare
15566 methods.
15567 (value_as_address, attr_form_is_section_offset)
15568 (attr_form_is_constant, attr_form_is_ref): Don't declare.
15569 * dwarf2/attribute.c (attribute::value_as_address)
15570 (attribute::form_is_section_offset, attribute::form_is_constant)
15571 (attribute::form_is_ref): Now methods.
15572
15573 2020-02-08 Tom Tromey <tom@tromey.com>
15574
15575 * dwarf2read.c (struct attribute, DW_STRING)
15576 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
15577 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
15578 (attr_form_is_block, attr_form_is_section_offset)
15579 (attr_form_is_constant, attr_form_is_ref): Move.
15580 * dwarf2/attribute.h: New file.
15581 * dwarf2/attribute.c: New file, from dwarf2read.c.
15582 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
15583
15584 2020-02-08 Tom Tromey <tom@tromey.com>
15585
15586 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
15587 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
15588 Move.
15589 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
15590 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
15591 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
15592 abbrev.c.
15593 * dwarf2/abbrev.h: New file.
15594 * dwarf2/abbrev.c: New file, from dwarf2read.c.
15595 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
15596
15597 2020-02-08 Tom Tromey <tom@tromey.com>
15598
15599 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
15600 (dwarf2_section_size, dwarf2_get_section_info)
15601 (create_signatured_type_table_from_debug_names)
15602 (create_addrmap_from_aranges, read_debug_names_from_section)
15603 (get_gdb_index_contents_from_section, read_comp_unit_head)
15604 (error_check_comp_unit_head, read_abbrev_offset)
15605 (create_debug_type_hash_table, init_cu_die_reader)
15606 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
15607 (read_comp_units_from_section, create_cus_hash_table)
15608 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
15609 (create_dwp_v2_section, dwarf2_rnglists_process)
15610 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
15611 (abbrev_table_read_table, read_indirect_string_at_offset_from)
15612 (read_indirect_string_from_dwz, read_addr_index_1)
15613 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
15614 (dwarf_decode_macro_bytes, dwarf_decode_macros)
15615 (fill_in_loclist_baton): Update.
15616 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
15617 get_containing_section, get_bfd_owner, get_bfd_section,
15618 get_file_name, get_id, get_flags, empty, read>: Declare methods.
15619 (dwarf2_read_section, get_section_name, get_section_file_name)
15620 (get_containing_section, get_section_bfd_owner)
15621 (get_section_bfd_section, get_section_name, get_section_file_name)
15622 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
15623 declare.
15624 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
15625 (dwarf2_section_info::get_bfd_owner)
15626 (dwarf2_section_info::get_bfd_section)
15627 (dwarf2_section_info::get_name)
15628 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
15629 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
15630 (dwarf2_section_info::read): Now methods.
15631 * dwarf-index-write.c (class debug_names): Update.
15632
15633 2020-02-08 Tom Tromey <tom@tromey.com>
15634
15635 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
15636 Move to dwarf2/section.h.
15637 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
15638 (get_section_bfd_section, get_section_name)
15639 (get_section_file_name, get_section_id, get_section_flags)
15640 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
15641 dwarf2/section.c.
15642 * dwarf2/section.h: New file.
15643 * dwarf2/section.c: New file, from dwarf2read.c.
15644 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
15645
15646 2020-02-08 Tom Tromey <tom@tromey.com>
15647
15648 * dwarf2read.h (read_unsigned_leb128): Don't declare.
15649 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
15650 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
15651 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
15652 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
15653 * dwarf2/leb.h: New file, from dwarf2read.c.
15654 * dwarf2/leb.c: New file, from dwarf2read.c.
15655 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
15656 Remove.
15657 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
15658 (COMMON_SFILES): Add dwarf2/leb.c.
15659
15660 2020-02-08 Joel Brobecker <brobecker@adacore.com>
15661
15662 GDB 9.1 released.
15663
15664 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
15665
15666 PR gdb/25190:
15667 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
15668 * gdb/remote.c (remote_console_output): Update.
15669 * gdb/ui-file.c (fputs_unfiltered): Rename to...
15670 (ui_file_puts): ...this.
15671 * gdb/ui-file.h (ui_file_puts): Add declaration.
15672 * gdb/utils.c (emit_style_escape): Update.
15673 (flush_wrap_buffer): Update.
15674 (fputs_maybe_filtered): Update.
15675 (fputs_unfiltered): Add function.
15676
15677 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
15678
15679 * gdb/event-loop.c (gdb_wait_for_event): Update.
15680 * gdb/printcmd.c (printf_command): Update.
15681 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
15682 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
15683 (gdb_os_flush_stderr): Update.
15684 * gdb/remote.c (remote_console_output): Update.
15685 * gdb/ui-file.c (gdb_flush): Rename to...
15686 (ui_file_flush): ...this.
15687 (stderr_file::write): Update.
15688 (stderr_file::puts): Update.
15689 * gdb/ui-file.h (gdb_flush): Rename to...
15690 (ui_file_flush): ...this.
15691 * gdb/utils.c (gdb_flush): Add function.
15692 * gdb/utils.h (gdb_flush): Add declaration.
15693
15694 2020-02-07 Tom Tromey <tromey@adacore.com>
15695
15696 PR breakpoints/24915:
15697 * source.c (find_and_open_source): Do not check basenames_may_differ.
15698
15699 2020-02-07 Tom Tromey <tom@tromey.com>
15700
15701 * README: Update gdbserver documentation.
15702 * gdbserver: Move to top level.
15703 * configure.tgt (build_gdbserver): Remove.
15704 * configure.ac: Remove --enable-gdbserver.
15705 * configure: Rebuild.
15706 * Makefile.in (distclean): Don't mention gdbserver.
15707
15708 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
15709
15710 * source-cache.c (source_cache::ensure): Surround
15711 get_plain_source_lines with a try/catch.
15712 (source_cache::get_line_charpos): Get rid of try/catch
15713 and only check for the return value of "ensure".
15714 * tui/tui-source.c (tui_source_window::set_contents):
15715 Simplify "nlines" calculation.
15716
15717 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
15718
15719 * MAINTAINERS (Write After Approval): Add myself.
15720
15721 2020-02-05 Christian Biesinger <cbiesinger@google.com>
15722
15723 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
15724 function call.
15725
15726 2020-02-05 Christian Biesinger <cbiesinger@google.com>
15727
15728 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
15729
15730 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
15731
15732 * nat/riscv-linux-tdesc.h: New file.
15733 * nat/riscv-linux-tdesc.c: New file, taking code from...
15734 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
15735 ... here.
15736 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
15737 NATDEPFILES.
15738
15739 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
15740
15741 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
15742 we don't set the fake simulator ptid to the null_ptid.
15743
15744 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
15745
15746 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
15747 * gdbthread.h (class thread_info) <resumed>: Likewise.
15748 * infrun.c (resume_1): Likewise.
15749 (proceed): Likewise.
15750 (infrun_thread_stop_requested): Likewise.
15751 (stop_all_threads): Likewise.
15752 (handle_inferior_event): Likewise.
15753 (restart_threads): Likewise.
15754 (finish_step_over): Likewise.
15755 (keep_going_stepped_thread): Likewise.
15756 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
15757 (linux_handle_extended_wait): Likewise.
15758 * record-btrace.c (get_thread_current_frame_id): Likewise.
15759 * record-full.c (record_full_wait_1): Likewise.
15760 * remote.c (remote_target::process_initial_stop_replies): Likewise.
15761 * target.c (target_resume): Likewise.
15762 * thread.c (set_running_thread): Likewise.
15763
15764 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
15765
15766 * f-valprint.c (f77_print_array_1): Changed datatype of index
15767 variable to LONGEST from int to enable it to contain bound
15768 values correctly.
15769
15770 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
15771
15772 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
15773 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
15774 offsets according to FLEN determined.
15775 (riscv_linux_nat_target::read_description): Determine FLEN
15776 dynamically.
15777 (riscv_linux_nat_target::fetch_registers): Size regset buffer
15778 according to FLEN determined.
15779 (riscv_linux_nat_target::store_registers): Likewise.
15780
15781 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
15782
15783 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
15784 when reg->group is empty and reggroup is not.
15785
15786 2020-01-31 Tom Tromey <tromey@adacore.com>
15787
15788 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
15789 Call beneath target's mourn_inferior after unpushing.
15790
15791 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
15792
15793 PR tui/9765
15794 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
15795 have enough lines to fill the screen, still return the lowest
15796 address we found.
15797
15798 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
15799
15800 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
15801 '-', '<', and '>' commands.
15802
15803 2020-01-29 Pedro Alves <palves@redhat.com>
15804 Sergio Durigan Junior <sergiodj@redhat.com>
15805
15806 * infcmd.c (construct_inferior_arguments): Assert that
15807 'argc' is greater than 0.
15808
15809 2020-01-29 Luis Machado <luis.machado@linaro.org>
15810
15811 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
15812 (BRK_INSN_MASK): Define to 0xd4200000.
15813 (aarch64_program_breakpoint_here_p): New function.
15814 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
15815 * arch-utils.c (default_program_breakpoint_here_p): Moved from
15816 breakpoint.c.
15817 * arch-utils.h (default_program_breakpoint_here_p): Moved from
15818 breakpoint.h
15819 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
15820 call gdbarch_program_breakpoint_here_p.
15821 (program_breakpoint_here): Moved to arch-utils.c, renamed to
15822 default_program_breakpoint_here_p, changed return type to bool and
15823 simplified.
15824 * breakpoint.h (program_breakpoint_here): Moved prototype to
15825 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
15826 return type to bool.
15827 * gdbarch.c: Regenerate.
15828 * gdbarch.h: Regenerate.
15829 * gdbarch.sh (program_breakpoint_here_p): New method.
15830 * infrun.c (handle_signal_stop): Call
15831 gdbarch_program_breakpoint_here_p.
15832
15833 2020-01-26 Tom Tromey <tom@tromey.com>
15834
15835 * ctfread.c (struct ctf_fp_info): Reindent.
15836 (_initialize_ctfread): Remove.
15837
15838 2020-01-26 Tom Tromey <tom@tromey.com>
15839
15840 * psymtab.c (partial_map_expand_apply)
15841 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
15842 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
15843 (psym_print_stats, psym_expand_symtabs_for_function)
15844 (psym_map_symbol_filenames, psym_map_matching_symbols)
15845 (psym_expand_symtabs_matching)
15846 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
15847 (maintenance_check_psymtabs): Use new methods.
15848 * psympriv.h (struct partial_symtab) <readin_p,
15849 get_compunit_symtab>: New methods.
15850 <readin, compunit_symtab>: Remove members.
15851 (struct standard_psymtab): New.
15852 (struct legacy_psymtab): Derive from standard_psymtab.
15853 * dwarf2read.h (struct dwarf2_psymtab): Derive from
15854 standard_psymtab.
15855 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
15856
15857 2020-01-26 Tom Tromey <tom@tromey.com>
15858
15859 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
15860 read_dependencies. Add assert.
15861 * psymtab.c (partial_symtab::read_dependencies): New method.
15862 * psympriv.h (struct partial_symtab) <read_dependencies>: New
15863 method.
15864 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
15865 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
15866 read_dependencies.
15867 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
15868 Add assert.
15869
15870 2020-01-26 Tom Tromey <tom@tromey.com>
15871
15872 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
15873 Call expand_psymtab.
15874 (xcoff_read_symtab): Call expand_psymtab.
15875 (xcoff_start_psymtab, xcoff_end_psymtab): Set
15876 legacy_expand_psymtab.
15877 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
15878 method.
15879 (struct legacy_psymtab) <expand_psymtab>: Implement.
15880 <legacy_expand_psymtab>: New member.
15881 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
15882 (parse_partial_symbols): Set legacy_expand_psymtab.
15883 (psymtab_to_symtab_1): Change argument order. Call
15884 expand_psymtab.
15885 (new_psymtab): Set legacy_expand_psymtab.
15886 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
15887 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
15888 expand_psymtab.
15889 (dwarf2_psymtab::expand_psymtab): Rename from
15890 psymtab_to_symtab_1. Call expand_psymtab.
15891 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
15892 (dbx_end_psymtab): Likewise.
15893 (dbx_psymtab_to_symtab_1): Change argument order. Call
15894 expand_psymtab.
15895 (dbx_read_symtab): Call expand_psymtab.
15896 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
15897 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
15898 (ctf_psymtab::read_symtab): Call expand_psymtab.
15899
15900 2020-01-26 Tom Tromey <tom@tromey.com>
15901
15902 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
15903 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
15904 messages.
15905 * mdebugread.c (mdebug_read_symtab): Remove prints.
15906 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
15907 assert.
15908 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
15909
15910 2020-01-26 Tom Tromey <tom@tromey.com>
15911
15912 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
15913 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
15914 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
15915 legacy_symtab.
15916 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
15917 * psymtab.c (psymtab_to_symtab): Call method.
15918 (dump_psymtab): Update.
15919 * psympriv.h (struct partial_symtab): Add virtual destructor.
15920 <read_symtab>: New method.
15921 (struct legacy_symtab): New.
15922 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
15923 (struct pst_map) <pst>: Now a legacy_psymtab.
15924 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
15925 (new_psymtab): Use legacy_psymtab.
15926 * dwarf2read.h (struct dwarf2_psymtab): New.
15927 (struct dwarf2_per_cu_data) <psymtab>: Use it.
15928 * dwarf2read.c (dwarf2_create_include_psymtab)
15929 (dwarf2_build_include_psymtabs, create_type_unit_group)
15930 (create_partial_symtab, process_psymtab_comp_unit_reader)
15931 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
15932 (set_partial_user): Use dwarf2_psymtab.
15933 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
15934 (psymtab_to_symtab_1, process_full_comp_unit)
15935 (process_full_type_unit, dwarf2_ranges_read)
15936 (dwarf2_get_pc_bounds, psymtab_include_file_name)
15937 (dwarf_decode_lines): Use dwarf2_psymtab.
15938 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
15939 (add_address_entry_worker, write_one_signatured_type)
15940 (recursively_count_psymbols, recursively_write_psymbols)
15941 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
15942 (write_debug_names): Likewise.
15943 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
15944 <pst>: Now a legacy_psymtab.
15945 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
15946 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
15947 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
15948 * ctfread.c (struct ctf_psymtab): New.
15949 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
15950 ctf_psymtab.
15951 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
15952 (create_partial_symtab): Return a ctf_psymtab.
15953 (scan_partial_symbols): Update.
15954
15955 2020-01-26 Tom Tromey <tom@tromey.com>
15956
15957 * xcoffread.c (xcoff_start_psymtab): Use new.
15958 * psymtab.c (partial_symtab::partial_symtab): New constructor,
15959 renamed from start_psymtab_common.
15960 * psympriv.h (struct partial_symtab): Add new constructor.
15961 (start_psymtab_common): Don't declare.
15962 * mdebugread.c (parse_partial_symbols): Use new.
15963 * dwarf2read.c (create_partial_symtab): Use new.
15964 * dbxread.c (start_psymtab): Use new.
15965 * ctfread.c (create_partial_symtab): Use new.
15966
15967 2020-01-26 Tom Tromey <tom@tromey.com>
15968
15969 * xcoffread.c (xcoff_end_psymtab): Use new.
15970 * psymtab.c (start_psymtab_common): Use new.
15971 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
15972 Update.
15973 * psympriv.h (struct partial_symtab): Add parameters to
15974 constructor. Don't inline.
15975 (allocate_psymtab): Don't declare.
15976 * mdebugread.c (new_psymtab): Use new.
15977 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
15978 * dbxread.c (dbx_end_psymtab): Use new.
15979
15980 2020-01-26 Tom Tromey <tom@tromey.com>
15981
15982 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
15983 allocate_psymtab. Update documentation.
15984 * psymtab.c (psymtab_storage::install_psymtab): Rename from
15985 allocate_psymtab. Do not use new.
15986 (allocate_psymtab): Use new. Update.
15987
15988 2020-01-26 Tom Tromey <tom@tromey.com>
15989
15990 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
15991 * psymtab.c (psym_print_stats): Update.
15992 * psympriv.h (struct partial_symtab) <readin,
15993 psymtabs_addrmap_supported, anonymous>: Now bool.
15994 * mdebugread.c (psymtab_to_symtab_1): Update.
15995 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
15996 (build_type_psymtabs_reader, psymtab_to_symtab_1)
15997 (process_full_comp_unit, process_full_type_unit): Update.
15998 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
15999 * ctfread.c (psymtab_to_symtab): Update.
16000
16001 2020-01-26 Tom Tromey <tom@tromey.com>
16002
16003 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
16004 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
16005 * psymtab.c (psymtab_storage): Delete psymtabs.
16006 (psymtab_storage::allocate_psymtab): Use new.
16007 (psymtab_storage::discard_psymtab): Use delete.
16008 * psympriv.h (struct partial_symtab): Add constructor and
16009 initializers.
16010
16011 2020-01-26 Tom Tromey <tom@tromey.com>
16012
16013 * machoread.c: Do not include psympriv.h.
16014
16015 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16016
16017 * NEWS: Mention the new option and the set/show commands.
16018
16019 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16020
16021 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
16022 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
16023 (validate_exec_file): New variables, enums, functions.
16024 (exec_file_locate_attach, print_section_info): Style the filenames.
16025 (_initialize_exec): Install show_exec_file_mismatch_command and
16026 set_exec_file_mismatch_command.
16027 * gdbcore.h (validate_exec_file): Declare.
16028 * infcmd.c (attach_command): Call validate_exec_file.
16029 * remote.c ( remote_target::remote_add_inferior): Likewise.
16030
16031 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16032
16033 * frame.c (find_frame_sal): Move call to get_next_frame into more
16034 inner scope.
16035 * inline-frame.c (inilne_state) <inline_state>: Update argument
16036 types.
16037 (inilne_state) <skipped_symbol>: Rename to...
16038 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
16039 (skip_inline_frames): Build vector of skipped symbols and use this
16040 to reate the inline_state.
16041 (inline_skipped_symbol): Add a comment and some assertions, fetch
16042 skipped symbol from the list.
16043
16044 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16045
16046 * buildsym.c (lte_is_less_than): Delete.
16047 (buildsym_compunit::end_symtab_with_blockvector): Create local
16048 lambda function to sort line table entries, and use
16049 std::stable_sort instead of std::sort.
16050 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
16051 markers when looking for a previous line.
16052
16053 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16054
16055 * dwarf2read.c (lnp_state_machine::record_line): Include
16056 end_sequence parameter in debug print out. Record the line if we
16057 are at an end_sequence marker even if it's not the start of a
16058 statement.
16059 * symmisc.c (maintenance_print_one_line_table): Print end of
16060 sequence markers with 'END' not '0'.
16061
16062 2020-01-24 Pedro Alves <palves@redhat.com>
16063
16064 PR gdb/25410
16065 * thread.c (scoped_restore_current_thread::restore): Use
16066 switch_to_inferior_no_thread.
16067 * exec.c: Include "progspace-and-thread.h".
16068 (add_target_sections, remove_target_sections):
16069 scoped_restore_current_pspace_and_thread instead of
16070 scoped_restore_current_thread.
16071 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
16072 and aspace to the inferior before calling clone_program_space.
16073 Remove stale comment.
16074
16075 2020-01-24 Christian Biesinger <cbiesinger@google.com>
16076
16077 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
16078 (arm_netbsd_nat_target::fetch_registers): ...this.
16079 (arm_nbsd_nat_target::store_registers): Rename to...
16080 (arm_netbsd_nat_target::store_registers): ...this.
16081
16082 2020-01-24 Christian Biesinger <cbiesinger@google.com>
16083
16084 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
16085 register_t.
16086
16087 2020-01-24 Christian Biesinger <cbiesinger@google.com>
16088
16089 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
16090 Update comment.
16091 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
16092 Likewise.
16093 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
16094 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
16095 the correct replacement (iterate_over_regset_sections).
16096 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
16097 Update comment.
16098
16099 2020-01-24 Graham Markall <graham.markall@embecosm.com>
16100
16101 PR gdb/23718
16102 * gdb/python/python.c (execute_gdb_command): Call
16103 async_enable_stdin in catch block.
16104
16105 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16106
16107 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
16108 SWITCH_THRU_ALL_UIS.
16109
16110 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16111
16112 PR tui/9765
16113 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
16114 comment, add extra parameter, and update to store previous symbol
16115 when appropriate.
16116 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
16117 add extra parameter.
16118 * tui/tui-disasm.c (tui_disassemble): Update header comment,
16119 remove unneeded parameter, add try/catch around gdb_print_insn,
16120 rewrite to add items to asm_lines vector.
16121 (tui_find_backward_disassembly_start_address): New function.
16122 (tui_find_disassembly_address): Updated throughout.
16123 (tui_disasm_window::set_contents): Update for changes to
16124 tui_disassemble.
16125 (tui_disasm_window::do_scroll_vertical): No need to adjust the
16126 number of lines to scroll.
16127
16128 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
16129
16130 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
16131 (SECT_OFF_DATA): Likewise.
16132 (SECT_OFF_RODATA): Likewise.
16133 (SECT_OFF_TEXT): Likewise.
16134 (SECT_OFF_BSS): Likewise.
16135 (struct objfile) <text_section_offset, data_section_offset>: New
16136 methods.
16137 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
16138 objfile::text_section_offset.
16139 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
16140 * coffread.c (coff_symtab_read): Likewise.
16141 (enter_linenos): Likewise.
16142 (process_coff_symbol): Likewise.
16143 * ctfread.c (get_objfile_text_range): Likewise.
16144 * dtrace-probe.c (dtrace_probe::get_relocated_address):
16145 Use objfile::data_section_offset.
16146 * dwarf2-frame.c (execute_cfa_program): Use
16147 objfile::text_section_offset.
16148 (dwarf2_frame_find_fde): Likewise.
16149 * dwarf2read.c (create_addrmap_from_index): Likewise.
16150 (create_addrmap_from_aranges): Likewise.
16151 (dw2_find_pc_sect_compunit_symtab): Likewise.
16152 (process_psymtab_comp_unit_reader): Likewise.
16153 (add_partial_symbol): Likewise.
16154 (add_partial_subprogram): Likewise.
16155 (process_full_comp_unit): Likewise.
16156 (read_file_scope): Likewise.
16157 (read_func_scope): Likewise.
16158 (read_lexical_block_scope): Likewise.
16159 (read_call_site_scope): Likewise.
16160 (dwarf2_rnglists_process): Likewise.
16161 (dwarf2_ranges_process): Likewise.
16162 (dwarf2_ranges_read): Likewise.
16163 (dwarf_decode_lines_1): Likewise.
16164 (new_symbol): Likewise.
16165 (dwarf2_fetch_die_loc_sect_off): Likewise.
16166 (dwarf2_per_cu_text_offset): Likewise.
16167 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
16168 * hppa-tdep.c (read_unwind_info): Likewise.
16169 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
16170 * psympriv.h (struct partial_symtab): Likewise.
16171 * psymtab.c (find_pc_sect_psymtab): Likewise.
16172 * solib-svr4.c (enable_break): Likewise.
16173 * stap-probe.c (relocate_address): Use
16174 objfile::data_section_offset.
16175 * xcoffread.c (enter_line_range): Use
16176 objfile::text_section_offset.
16177 (read_xcoff_symtab): Likewise.
16178
16179 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
16180
16181 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
16182 declaration to narrower scopes.
16183
16184 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
16185
16186 * darwin-nat.h (struct darwin_exception_msg, enum
16187 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
16188 Move up.
16189 (class darwin_nat_target) <wait_1, check_new_threads,
16190 decode_exception_message, decode_message, stop_inferior,
16191 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
16192 * darwin-nat.c (darwin_check_new_threads): Rename to...
16193 (darwin_nat_target::check_new_threads): ... this.
16194 (darwin_suspend_inferior_it): Remove.
16195 (darwin_decode_exception_message): Rename to...
16196 (darwin_nat_target::decode_exception_message): ... this.
16197 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
16198 (darwin_decode_message): Rename to...
16199 (darwin_nat_target::decode_message): ... this.
16200 (cancel_breakpoint): Rename to...
16201 (darwin_nat_target::cancel_breakpoint): ... this.
16202 (darwin_wait): Rename to...
16203 (darwin_nat_target::wait_1): ... this. Use range-based for loop
16204 instead of iterate_over_inferiors.
16205 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
16206 (darwin_stop_inferior): Rename to...
16207 (darwin_nat_target::stop_inferior): ... this.
16208 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
16209 (darwin_init_thread_list): Rename to...
16210 (darwin_nat_target::init_thread_list): ... this.
16211 (darwin_ptrace_him): Rename to...
16212 (darwin_nat_target::ptrace_him): ... this.
16213 (darwin_nat_target::create_inferior): Pass lambda function to
16214 fork_inferior.
16215 (darwin_nat_target::detach): Call stop_inferior instead of
16216 darwin_stop_inferior.
16217 * fork-inferior.h (fork_inferior): Change init_trace_fun
16218 parameter to gdb::function_view.
16219 * fork-inferior.c (fork_inferior): Likewise.
16220
16221 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
16222
16223 * i386-cygwin-tdep.c (core_process_module_section): Update.
16224 * windows-nat.c (struct lm_info_windows): Add text_offset.
16225 (windows_xfer_shared_libraries): Update.
16226 * windows-tdep.c (windows_xfer_shared_library):
16227 Add text_offset_cached argument.
16228 * windows-tdep.h (windows_xfer_shared_library): Update.
16229
16230 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
16231
16232 * gdbarch.sh: Add declaration for _initialize_gdbarch.
16233
16234 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
16235
16236 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
16237 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
16238 replace with range-based for.
16239 (gdbsim_interrupt_inferior): Remove.
16240 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
16241 with a range-based for. Inline code from
16242 gdbsim_interrupt_inferior.
16243
16244 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
16245
16246 * infrun.c (proceed): Fix indentation.
16247
16248 2020-01-21 Tom Tromey <tromey@adacore.com>
16249
16250 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
16251 * python/python.c (python_extension_ops): Update.
16252 (gdbpy_colorize): New function.
16253 * python/lib/gdb/__init__.py (colorize): New function.
16254 * extension.h (ext_lang_colorize): Declare.
16255 * extension.c (ext_lang_colorize): New function.
16256 * extension-priv.h (struct extension_language_ops) <colorize>: New
16257 member.
16258 * cli/cli-style.c (_initialize_cli_style): Update help text.
16259
16260 2020-01-21 Luis Machado <luis.machado@linaro.org>
16261
16262 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
16263 <cond>: Change type to bool.
16264 (aarch64_displaced_step_b_cond): Update cond to use bool type.
16265 (aarch64_displaced_step_cb): Likewise.
16266 (aarch64_displaced_step_tb): Likewise.
16267
16268 2020-01-21 Luis Machado <luis.machado@linaro.org>
16269
16270 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
16271 output.
16272
16273 2020-01-21 Luis Machado <luis.machado@linaro.org>
16274
16275 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
16276 <pc_adjust>: Adjust the documentation.
16277 (aarch64_displaced_step_fixup): Check if PC really moved before
16278 adjusting it.
16279
16280 2020-01-19 Tom Tromey <tom@tromey.com>
16281
16282 * disasm.c (~gdb_disassembler): New destructor.
16283 (gdb_buffered_insn_length): Call disassemble_free_target.
16284 * disasm.h (class gdb_disassembler): Declare destructor. Use
16285 DISABLE_COPY_AND_ASSIGN.
16286
16287 2020-01-19 Tom Tromey <tom@tromey.com>
16288
16289 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
16290 (die_reader_func_ftype): Remove.
16291 (cutu_reader): New class.
16292 (dw2_get_file_names_reader): Remove "data" parameter.
16293 (dw2_get_file_names): Use cutu_reader.
16294 (create_debug_type_hash_table): Update.
16295 (read_cutu_die_from_dwo): Update comment.
16296 (lookup_dwo_unit): Add dwo_name parameter.
16297 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
16298 die_reader_func_ftype and data parameters.
16299 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
16300 Remove die_reader_func_ftype and data parameters.
16301 (~cutu_reader): New; from init_cutu_and_read_dies.
16302 (cutu_reader::cutu_reader): Rename from
16303 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
16304 and data parameters.
16305 (init_cutu_and_read_dies_simple): Remove.
16306 (struct process_psymtab_comp_unit_data): Remove.
16307 (process_psymtab_comp_unit_reader): Remove data parameter; add
16308 want_partial_unit and pretend_language parameters.
16309 (process_psymtab_comp_unit): Use cutu_reader.
16310 (build_type_psymtabs_reader): Remove data parameter.
16311 (build_type_psymtabs_1): Use cutu_reader.
16312 (process_skeletonless_type_unit): Likewise.
16313 (load_partial_comp_unit_reader): Remove.
16314 (load_partial_comp_unit): Use cutu_reader.
16315 (load_full_comp_unit_reader): Remove.
16316 (load_full_comp_unit): Use cutu_reader.
16317 (struct create_dwo_cu_data): Remove.
16318 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
16319 dwo_unit parameters.
16320 (create_cus_hash_table): Use cutu_reader.
16321 (struct dwarf2_read_addr_index_data): Remove.
16322 (dwarf2_read_addr_index_reader): Remove.
16323 (dwarf2_read_addr_index): Use cutu_reader.
16324 (read_signatured_type_reader): Remove.
16325 (read_signatured_type): Use cutu_reader.
16326
16327 2020-01-19 Tom Tromey <tom@tromey.com>
16328
16329 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
16330 * tui/tui-wingeneral.h (class tui_suppress_output): New.
16331 (tui_wrefresh): Declare.
16332 * tui/tui-wingeneral.c (suppress_output): New global.
16333 (tui_suppress_output, ~tui_suppress_output): New constructor and
16334 destructor.
16335 (tui_wrefresh): New function.
16336 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
16337 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
16338 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
16339 method.
16340 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
16341 tui_wrefresh.
16342 (tui_data_window::no_refresh): New method.
16343 (tui_data_item_window::refresh_window): Call tui_wrefresh.
16344 (tui_reg_command): Use tui_suppress_output
16345 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
16346 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
16347 method.
16348 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
16349
16350 2020-01-19 Tom Tromey <tom@tromey.com>
16351
16352 * tui/tui-winsource.c (tui_update_source_windows_with_line):
16353 Handle case where symtab is null.
16354
16355 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
16356
16357 * linux-fork.c (one_fork_p): Simplify.
16358
16359 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16360
16361 * top.c (struct qt_args): Remove.
16362 (kill_or_detach): Change return type to void, replace `void *`
16363 parameter with a proper one.
16364 (print_inferior_quit_action): Likewise.
16365 (quit_confirm): Use range-based for loop to iterate over inferiors.
16366 (quit_force): Likewise.
16367
16368 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16369
16370 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
16371 `void *` parameter with proper parameters.
16372 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
16373 (print_one_inferior): Change return type to void, replace `void *`
16374 parameter with proper parameters.
16375 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
16376 inferiors.
16377 (get_other_inferior): Remove.
16378 (mi_cmd_remove_inferior): Use range-based loop to iterate over
16379 inferiors.
16380
16381 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16382
16383 * mi/mi-interp.c (report_initial_inferior): Remove.
16384 (mi_interp::init): Use range-based for to iterate over inferiors.
16385
16386 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16387
16388 * python/py-inferior.c (build_inferior_list): Remove.
16389 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
16390
16391 2020-01-16 Christian Biesinger <cbiesinger@google.com>
16392
16393 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
16394 (btrace_stitch_trace): Likewise.
16395 * charset.c (intermediate_encoding): Likewise (vaild).
16396 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
16397 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
16398 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
16399
16400 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
16401
16402 * windows-tdep.c (windows_get_tlb_type):
16403 Add rtl_user_process_parameters type.
16404
16405 2020-01-16 Pedro Alves <palves@redhat.com>
16406 Norbert Lange <nolange79@gmail.com>
16407
16408 PR build/24805
16409 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
16410 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
16411 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
16412 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
16413 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
16414 (ps_plog): Redeclare exported functions with default visibility.
16415
16416 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
16417
16418 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
16419 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
16420
16421 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
16422
16423 * infcmd.c (post_create_inferior): Use get_thread_regcache
16424 instead of get_current_regcache.
16425
16426 2020-01-14 Tom Tromey <tom@tromey.com>
16427
16428 PR symtab/12535:
16429 * python/python.c (gdbpy_decode_line): Treat empty string the same
16430 as no argument.
16431
16432 2020-01-14 Tom Tromey <tom@tromey.com>
16433
16434 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
16435
16436 2020-01-14 Tom Tromey <tom@tromey.com>
16437
16438 * nat/linux-btrace.c: Don't include <config.h>.
16439 * nat/linux-ptrace.c: Don't include <config.h>.
16440 * nat/x86-linux-dregs.c: Don't include <config.h>.
16441
16442 2020-01-14 Tom Tromey <tom@tromey.com>
16443
16444 * configure: Rebuild.
16445 * configure.ac: Move many checks to ../gdbsupport/common.m4.
16446
16447 2020-01-14 Tom Tromey <tom@tromey.com>
16448
16449 * nat/x86-linux-dregs.c: Include configh.h.
16450 * nat/linux-ptrace.c: Include configh.h.
16451 * nat/linux-btrace.c: Include configh.h.
16452 * defs.h: Include config.h, bfd.h.
16453 * configure.ac: Don't source common.host.
16454 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
16455 * configure: Rebuild.
16456 * acinclude.m4: Update path.
16457 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
16458 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
16459 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
16460 (CLIBS): Add LIBSUPPORT.
16461 (CDEPS): Likewise.
16462 (COMMON_SFILES): Remove gdbsupport files.
16463 (HFILES_NO_SRCDIR): Likewise.
16464 (stamp-version): Update path to create-version.sh.
16465 (ALLDEPFILES): Remove gdbsupport files.
16466
16467 2020-01-14 Tom Tromey <tom@tromey.com>
16468
16469 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
16470 USE_WIN32API when needed.
16471 * configure.ac (USE_WIN32API): Don't define.
16472 (WIN32LIBS): Use WIN32APILIBS.
16473 * configure: Rebuild.
16474
16475 2020-01-14 Tom Tromey <tom@tromey.com>
16476
16477 * configure: Rebuild.
16478 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
16479
16480 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
16481
16482 * skip.c (skip_function_command): Make skip w/o arguments use the
16483 name of the inlined function if pc is inside any inlined function.
16484
16485 2020-01-14 Luis Machado <luis.machado@linaro.org>
16486
16487 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
16488 * infrun.c (resume_1): Likewise.
16489 (handle_inferior_event): Remove stale comment.
16490 * linux-nat.c (linux_nat_target::resume): Update comments.
16491 (save_stop_reason): Likewise.
16492 (linux_nat_filter_event): Likewise.
16493 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
16494
16495 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
16496
16497 * elfread.c (record_minimal_symbol): Set section index to 0 for
16498 non-allocatable sections.
16499
16500
16501 2020-01-13 Ali Tamur <tamur@google.com>
16502
16503 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
16504 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
16505 to gdb::optional. Update comments.
16506 (dwo_file): Update comments.
16507 (read_attribute): Update API to take an additional out parameter,
16508 need_reprocess. This is used to mark attributes that need other
16509 attributes (e.g. str_offsets_base) for correct computation which may not
16510 have been read yet.
16511 (read_attribute_reprocess): New function declaration.
16512 (read_addr_index): Likewise.
16513 (read_dwo_str_index): Likewise.
16514 (read_stub_str_index): Likewise.
16515 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
16516 (lookup_addr_base): New function definition.
16517 (lookup_ranges_base): Likewise.
16518 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
16519 lookup_ranges_base.
16520 (init_cutu_and_read_dies): Update comments.
16521 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
16522 unit. This is used to inherit parent's str_offsets_base and addr_base.
16523 Update comments.
16524 (init_cutu_and_read_dies_simple): Reflect API changes.
16525 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
16526 (create_cus_hash_table): Change API to take parent compile unit.
16527 Reflect API changes.
16528 (open_and_init_dwo_file): Reflect API changes.
16529 (dwarf2_get_pc_bounds): Update comments.
16530 (dwarf2_record_block_ranges): Likewise.
16531 (read_full_die_1): Change implementation to reprocess attributes that
16532 need str_offsets_base and addr_base.
16533 (partial_die_info::read): Likewise.
16534 (read_attribute_reprocess): New function definition.
16535 (read_attribute_value): Change API to take an additional out parameter,
16536 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
16537 when a non-dwo compile unit has index based attributes.
16538 (read_attribute): Reflect API changes.
16539 (read_addr_index_1): Reflect API changes. Update comments.
16540 (dwarf2_read_addr_index_data): Reflect API changes.
16541 (dwarf2_read_addr_index): Likewise.
16542 (read_str_index): Change API and implementation. This becomes a helper
16543 to be used by the new string index related methods. Update error
16544 message and comments.
16545 (read_dwo_str_index): New function definition.
16546 (read_stub_str_index): Likewise.
16547 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
16548 * symfile.h (dwarf2_debug_sections): Likewise.
16549 * xcoffread.c (dwarf2_debug_sections): Likewise.
16550
16551 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16552
16553 * gdbcore.h (struct core_fns) <core_read_registers>: Change
16554 core_reg_sect type to gdb_byte *.
16555 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
16556 * cris-tdep.c (fetch_core_registers): Likewise.
16557 * corelow.c (core_target::get_core_register_section): Change
16558 type of `contents` to gdb::byte_vector.
16559
16560 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
16561
16562 * tui/tui-wingeneral.c (box_win): Position the title in the center
16563 of the border.
16564
16565 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16566
16567 * corelow.c (core_target::get_core_register_section): Use
16568 std::vector instead of alloca.
16569
16570 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16571
16572 * warning.m4: Add -Wmissing-declarations to build_warnings.
16573 * configure: Re-generate.
16574
16575 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16576
16577 * python/python.c (init__gdb_module): Add declaration.
16578
16579 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16580
16581 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
16582 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
16583 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
16584 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
16585 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
16586 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
16587 * ada-exp.y (_initialize_ada_exp): Add declaration.
16588 * ada-lang.c (_initialize_ada_language): Add declaration.
16589 * ada-tasks.c (_initialize_tasks): Add declaration.
16590 * agent.c (_initialize_agent): Add declaration.
16591 * aix-thread.c (_initialize_aix_thread): Add declaration.
16592 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
16593 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
16594 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
16595 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
16596 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
16597 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
16598 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
16599 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
16600 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
16601 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
16602 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
16603 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
16604 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
16605 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
16606 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
16607 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
16608 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
16609 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
16610 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
16611 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
16612 * annotate.c (_initialize_annotate): Add declaration.
16613 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
16614 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
16615 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
16616 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
16617 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
16618 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
16619 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
16620 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
16621 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
16622 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
16623 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
16624 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
16625 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
16626 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
16627 * auto-load.c (_initialize_auto_load): Add declaration.
16628 * auxv.c (_initialize_auxv): Add declaration.
16629 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
16630 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
16631 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
16632 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
16633 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
16634 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
16635 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
16636 * breakpoint.c (_initialize_breakpoint): Add declaration.
16637 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
16638 * btrace.c (_initialize_btrace): Add declaration.
16639 * charset.c (_initialize_charset): Add declaration.
16640 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
16641 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
16642 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
16643 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
16644 * cli/cli-script.c (_initialize_cli_script): Add declaration.
16645 * cli/cli-style.c (_initialize_cli_style): Add declaration.
16646 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
16647 * coffread.c (_initialize_coffread): Add declaration.
16648 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
16649 * compile/compile.c (_initialize_compile): Add declaration.
16650 * complaints.c (_initialize_complaints): Add declaration.
16651 * completer.c (_initialize_completer): Add declaration.
16652 * copying.c (_initialize_copying): Add declaration.
16653 * corefile.c (_initialize_core): Add declaration.
16654 * corelow.c (_initialize_corelow): Add declaration.
16655 * cp-abi.c (_initialize_cp_abi): Add declaration.
16656 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
16657 * cp-support.c (_initialize_cp_support): Add declaration.
16658 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
16659 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
16660 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
16661 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
16662 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
16663 * ctfread.c (_initialize_ctfread): Add declaration.
16664 * d-lang.c (_initialize_d_language): Add declaration.
16665 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
16666 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
16667 * dbxread.c (_initialize_dbxread): Add declaration.
16668 * dcache.c (_initialize_dcache): Add declaration.
16669 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
16670 * disasm.c (_initialize_disasm): Add declaration.
16671 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
16672 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
16673 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
16674 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
16675 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
16676 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
16677 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
16678 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
16679 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
16680 * elfread.c (_initialize_elfread): Add declaration.
16681 * exec.c (_initialize_exec): Add declaration.
16682 * extension.c (_initialize_extension): Add declaration.
16683 * f-lang.c (_initialize_f_language): Add declaration.
16684 * f-valprint.c (_initialize_f_valprint): Add declaration.
16685 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
16686 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
16687 * filesystem.c (_initialize_filesystem): Add declaration.
16688 * findcmd.c (_initialize_mem_search): Add declaration.
16689 * findvar.c (_initialize_findvar): Add declaration.
16690 * fork-child.c (_initialize_fork_child): Add declaration.
16691 * frame-base.c (_initialize_frame_base): Add declaration.
16692 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
16693 * frame.c (_initialize_frame): Add declaration.
16694 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
16695 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
16696 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
16697 * gcore.c (_initialize_gcore): Add declaration.
16698 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
16699 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
16700 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
16701 * gdbarch.c (_initialize_gdbarch): Add declaration.
16702 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
16703 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
16704 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
16705 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
16706 * go-lang.c (_initialize_go_language): Add declaration.
16707 * go32-nat.c (_initialize_go32_nat): Add declaration.
16708 * guile/guile.c (_initialize_guile): Add declaration.
16709 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
16710 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
16711 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
16712 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
16713 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
16714 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
16715 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
16716 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
16717 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
16718 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
16719 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
16720 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
16721 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
16722 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
16723 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
16724 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
16725 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
16726 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
16727 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
16728 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
16729 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
16730 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
16731 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
16732 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
16733 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
16734 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
16735 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
16736 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
16737 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
16738 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
16739 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
16740 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
16741 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
16742 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
16743 * infcall.c (_initialize_infcall): Add declaration.
16744 * infcmd.c (_initialize_infcmd): Add declaration.
16745 * inflow.c (_initialize_inflow): Add declaration.
16746 * infrun.c (_initialize_infrun): Add declaration.
16747 * interps.c (_initialize_interpreter): Add declaration.
16748 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
16749 * jit.c (_initialize_jit): Add declaration.
16750 * language.c (_initialize_language): Add declaration.
16751 * linux-fork.c (_initialize_linux_fork): Add declaration.
16752 * linux-nat.c (_initialize_linux_nat): Add declaration.
16753 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
16754 * linux-thread-db.c (_initialize_thread_db): Add declaration.
16755 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
16756 * m2-lang.c (_initialize_m2_language): Add declaration.
16757 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
16758 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
16759 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
16760 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
16761 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
16762 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
16763 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
16764 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
16765 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
16766 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
16767 * machoread.c (_initialize_machoread): Add declaration.
16768 * macrocmd.c (_initialize_macrocmd): Add declaration.
16769 * macroscope.c (_initialize_macroscope): Add declaration.
16770 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
16771 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
16772 * maint.c (_initialize_maint_cmds): Add declaration.
16773 * mdebugread.c (_initialize_mdebugread): Add declaration.
16774 * memattr.c (_initialize_mem): Add declaration.
16775 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
16776 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
16777 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
16778 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
16779 * mi/mi-main.c (_initialize_mi_main): Add declaration.
16780 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
16781 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
16782 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
16783 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
16784 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
16785 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
16786 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
16787 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
16788 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
16789 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
16790 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
16791 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
16792 * mipsread.c (_initialize_mipsread): Add declaration.
16793 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
16794 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
16795 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
16796 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
16797 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
16798 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
16799 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
16800 * nto-procfs.c (_initialize_procfs): Add declaration.
16801 * objc-lang.c (_initialize_objc_language): Add declaration.
16802 * observable.c (_initialize_observer): Add declaration.
16803 * opencl-lang.c (_initialize_opencl_language): Add declaration.
16804 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
16805 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
16806 * osabi.c (_initialize_gdb_osabi): Add declaration.
16807 * osdata.c (_initialize_osdata): Add declaration.
16808 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
16809 * parse.c (_initialize_parse): Add declaration.
16810 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
16811 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
16812 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
16813 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
16814 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
16815 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
16816 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
16817 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
16818 * printcmd.c (_initialize_printcmd): Add declaration.
16819 * probe.c (_initialize_probe): Add declaration.
16820 * proc-api.c (_initialize_proc_api): Add declaration.
16821 * proc-events.c (_initialize_proc_events): Add declaration.
16822 * proc-service.c (_initialize_proc_service): Add declaration.
16823 * procfs.c (_initialize_procfs): Add declaration.
16824 * producer.c (_initialize_producer): Add declaration.
16825 * psymtab.c (_initialize_psymtab): Add declaration.
16826 * python/python.c (_initialize_python): Add declaration.
16827 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
16828 * record-btrace.c (_initialize_record_btrace): Add declaration.
16829 * record-full.c (_initialize_record_full): Add declaration.
16830 * record.c (_initialize_record): Add declaration.
16831 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
16832 * regcache.c (_initialize_regcache): Add declaration.
16833 * reggroups.c (_initialize_reggroup): Add declaration.
16834 * remote-notif.c (_initialize_notif): Add declaration.
16835 * remote-sim.c (_initialize_remote_sim): Add declaration.
16836 * remote.c (_initialize_remote): Add declaration.
16837 * reverse.c (_initialize_reverse): Add declaration.
16838 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
16839 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
16840 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
16841 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
16842 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
16843 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
16844 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
16845 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
16846 Add declaration.
16847 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
16848 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
16849 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
16850 * rust-exp.y (_initialize_rust_exp): Add declaration.
16851 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
16852 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
16853 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
16854 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
16855 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
16856 * score-tdep.c (_initialize_score_tdep): Add declaration.
16857 * ser-go32.c (_initialize_ser_dos): Add declaration.
16858 * ser-mingw.c (_initialize_ser_windows): Add declaration.
16859 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
16860 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
16861 * ser-uds.c (_initialize_ser_socket): Add declaration.
16862 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
16863 * serial.c (_initialize_serial): Add declaration.
16864 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
16865 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
16866 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
16867 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
16868 * skip.c (_initialize_step_skip): Add declaration.
16869 * sol-thread.c (_initialize_sol_thread): Add declaration.
16870 * solib-aix.c (_initialize_solib_aix): Add declaration.
16871 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
16872 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
16873 * solib-frv.c (_initialize_frv_solib): Add declaration.
16874 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
16875 * solib-target.c (_initialize_solib_target): Add declaration.
16876 * solib.c (_initialize_solib): Add declaration.
16877 * source-cache.c (_initialize_source_cache): Add declaration.
16878 * source.c (_initialize_source): Add declaration.
16879 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
16880 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
16881 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
16882 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
16883 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
16884 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
16885 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
16886 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
16887 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
16888 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
16889 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
16890 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
16891 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
16892 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
16893 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
16894 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
16895 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
16896 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
16897 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
16898 * stabsread.c (_initialize_stabsread): Add declaration.
16899 * stack.c (_initialize_stack): Add declaration.
16900 * stap-probe.c (_initialize_stap_probe): Add declaration.
16901 * std-regs.c (_initialize_frame_reg): Add declaration.
16902 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
16903 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
16904 * symfile.c (_initialize_symfile): Add declaration.
16905 * symmisc.c (_initialize_symmisc): Add declaration.
16906 * symtab.c (_initialize_symtab): Add declaration.
16907 * target.c (_initialize_target): Add declaration.
16908 * target-connection.c (_initialize_target_connection): Add
16909 declaration.
16910 * target-dcache.c (_initialize_target_dcache): Add declaration.
16911 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
16912 * thread.c (_initialize_thread): Add declaration.
16913 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
16914 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
16915 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
16916 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
16917 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
16918 * tracectf.c (_initialize_ctf): Add declaration.
16919 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
16920 * tracefile.c (_initialize_tracefile): Add declaration.
16921 * tracepoint.c (_initialize_tracepoint): Add declaration.
16922 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
16923 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
16924 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
16925 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
16926 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
16927 * tui/tui-win.c (_initialize_tui_win): Add declaration.
16928 * tui/tui.c (_initialize_tui): Add declaration.
16929 * typeprint.c (_initialize_typeprint): Add declaration.
16930 * ui-style.c (_initialize_ui_style): Add declaration.
16931 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
16932 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
16933 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
16934 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
16935 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
16936 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
16937 * unittests/filtered_iterator-selftests.c
16938 (_initialize_filtered_iterator_selftests): Add declaration.
16939 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
16940 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
16941 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
16942 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
16943 * unittests/main-thread-selftests.c
16944 (_initialize_main_thread_selftests): Add declaration.
16945 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
16946 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
16947 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
16948 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
16949 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
16950 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
16951 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
16952 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
16953 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
16954 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
16955 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
16956 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
16957 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
16958 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
16959 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
16960 declaration.
16961 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
16962 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
16963 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
16964 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
16965 * user-regs.c (_initialize_user_regs): Add declaration.
16966 * utils.c (_initialize_utils): Add declaration.
16967 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
16968 * valops.c (_initialize_valops): Add declaration.
16969 * valprint.c (_initialize_valprint): Add declaration.
16970 * value.c (_initialize_values): Add declaration.
16971 * varobj.c (_initialize_varobj): Add declaration.
16972 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
16973 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
16974 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
16975 * windows-nat.c (_initialize_windows_nat): Add declaration.
16976 (_initialize_check_for_gdb_ini): Add declaration.
16977 (_initialize_loadable): Add declaration.
16978 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
16979 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
16980 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
16981 * xcoffread.c (_initialize_xcoffread): Add declaration.
16982 * xml-support.c (_initialize_xml_support): Add declaration.
16983 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
16984 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
16985 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
16986 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
16987
16988 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16989
16990 * regformats/regdat.sh: Generate declaration for init function.
16991
16992 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16993
16994 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
16995 up.
16996 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
16997 close_one_inferior>: New methods.
16998 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
16999 pass down target to find_inferior_pid.
17000 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
17001 Pass down target to find_inferior_ptid.
17002 (gdbsim_target::create_inferior): Pass down target to
17003 add_thread_silent.
17004 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
17005 target down to find_inferior_ptid and switch_to_thread.
17006 (gdbsim_target::close): Update to call close_one_inferior.
17007 (struct resume_data): Remove.
17008 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
17009 directly, rather than through a void pointer.
17010 (gdbsim_target::resume): Update to call resume_one_inferior.
17011
17012 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
17013
17014 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
17015
17016 2020-01-12 Pedro Alves <palves@redhat.com>
17017
17018 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
17019 directly for the current inferior instead of
17020 discard_all_inferiors.
17021 (discard_all_inferiors): Delete.
17022
17023 2020-01-11 Tom Tromey <tom@tromey.com>
17024
17025 * tui/tui-wingeneral.c (box_win): Check cli_styling.
17026 * tui/tui-winsource.c (tui_source_window_base::refill): Use
17027 deprecated_safe_get_selected_frame.
17028
17029 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
17030
17031 * inferior.c (print_inferior): Switch inferior before printing it.
17032
17033 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
17034 Pedro Alves <palves@redhat.com>
17035
17036 * progspace-and-thread.c (switch_to_program_space_and_thread):
17037 Assert there's an inferior for PSPACE. Use
17038 switch_to_inferior_no_thread to switch the inferior too.
17039 * progspace.c (program_space::~program_space): Call
17040 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
17041 (program_space::free_all_objfiles): Don't call clear_symtab_users
17042 here.
17043 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
17044
17045 2020-01-10 Pedro Alves <palves@redhat.com>
17046
17047 * NEWS: Mention multi-target debugging, "info connections", and
17048 "add-inferior -no-connection".
17049
17050 2020-01-10 Pedro Alves <palves@redhat.com>
17051
17052 * infrun.c: Include "target-connection.h".
17053 (check_multi_target_resumption): New.
17054 (proceed): Call it.
17055 * target-connection.c (make_target_connection_string): Make
17056 extern.
17057 * target-connection.h (make_target_connection_string): Declare.
17058
17059 2020-01-10 Pedro Alves <palves@redhat.com>
17060
17061 * Makefile.in (COMMON_SFILES): Add target-connection.c.
17062 * inferior.c (uiout_field_connection): New function.
17063 (print_inferior): Add new "connection-id" column.
17064 (add_inferior_command): Show connection number/string of added
17065 inferior.
17066 * process-stratum-target.h
17067 (process_stratum_target::connection_string): New virtual method.
17068 (process_stratum_target::connection_number): New field.
17069 * remote.c (remote_target::connection_string): New override.
17070 * target-connection.c: New file.
17071 * target-connection.h: New file.
17072 * target.c (decref_target): Remove process_stratum targets from
17073 the connection list.
17074 (target_stack::push): Add process_stratum targets to the
17075 connection list.
17076
17077 2020-01-10 Pedro Alves <palves@redhat.com>
17078
17079 Revert:
17080 2016-04-12 Pedro Alves <palves@redhat.com>
17081 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
17082 Remove references to name.
17083 * serial.h (struct serial) <name>: Delete.
17084
17085 2020-01-10 Pedro Alves <palves@redhat.com>
17086
17087 * gdbarch-selftests.c (register_to_value_test): Remove "target
17088 already pushed" check.
17089
17090 2020-01-10 Pedro Alves <palves@redhat.com>
17091 John Baldwin <jhb@FreeBSD.org>
17092
17093 * aarch64-linux-nat.c
17094 (aarch64_linux_nat_target::thread_architecture): Adjust.
17095 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
17096 (task_command_1): Likewise.
17097 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
17098 (aix_thread_target::wait, aix_thread_target::fetch_registers)
17099 (aix_thread_target::store_registers)
17100 (aix_thread_target::thread_alive): Adjust.
17101 * amd64-fbsd-tdep.c: Include "inferior.h".
17102 (amd64fbsd_get_thread_local_address): Pass down target.
17103 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
17104 thread's gdbarch instead of target_gdbarch.
17105 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
17106 get_last_target_status.
17107 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
17108 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
17109 inferiors.
17110 (update_inserted_breakpoint_locations): Skip if inferiors with no
17111 execution.
17112 (update_global_location_list): When handling moribund locations,
17113 find representative inferior for location's pspace, and use thread
17114 count of its process_stratum target.
17115 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
17116 * bsd-uthread.c (bsd_uthread_target::wait): Use
17117 as_process_stratum_target and adjust thread_change_ptid and
17118 add_thread calls.
17119 (bsd_uthread_target::update_thread_list): Use
17120 as_process_stratum_target and adjust find_thread_ptid,
17121 thread_change_ptid and add_thread calls.
17122 * btrace.c (maint_btrace_packet_history_cmd): Adjust
17123 find_thread_ptid call.
17124 * corelow.c (add_to_thread_list): Adjust add_thread call.
17125 (core_target_open): Adjust add_thread_silent and thread_count
17126 calls.
17127 (core_target::pid_to_str): Adjust find_inferior_ptid call.
17128 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
17129 * event-top.c (async_disconnect): Pop targets from all inferiors.
17130 * exec.c (add_target_sections): Push exec target on all inferiors
17131 sharing the program space.
17132 (remove_target_sections): Remove the exec target from all
17133 inferiors sharing the program space.
17134 (exec_on_vfork): New.
17135 * exec.h (exec_on_vfork): Declare.
17136 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
17137 Pass it down.
17138 (fbsd_nat_target::update_thread_list): Adjust.
17139 (fbsd_nat_target::resume): Adjust.
17140 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
17141 down.
17142 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
17143 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
17144 get_thread_arch_regcache call.
17145 * fork-child.c (gdb_startup_inferior): Pass target down to
17146 startup_inferior and set_executing.
17147 * gdbthread.h (struct process_stratum_target): Forward declare.
17148 (add_thread, add_thread_silent, add_thread_with_info)
17149 (in_thread_list): Add process_stratum_target parameter.
17150 (find_thread_ptid(inferior*, ptid_t)): New overload.
17151 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
17152 parameter.
17153 (all_threads()): Delete overload.
17154 (all_threads, all_non_exited_threads): Add process_stratum_target
17155 parameter.
17156 (all_threads_safe): Use brace initialization.
17157 (thread_count): Add process_stratum_target parameter.
17158 (set_resumed, set_running, set_stop_requested, set_executing)
17159 (threads_are_executing, finish_thread_state): Add
17160 process_stratum_target parameter.
17161 (switch_to_thread): Use is_current_thread.
17162 * i386-fbsd-tdep.c: Include "inferior.h".
17163 (i386fbsd_get_thread_local_address): Pass down target.
17164 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
17165 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
17166 have_inferiors check.
17167 * inf-ptrace.c (inf_ptrace_target::create_inferior)
17168 (inf_ptrace_target::attach): Adjust.
17169 * infcall.c (run_inferior_call): Adjust.
17170 * infcmd.c (run_command_1): Pass target to
17171 scoped_finish_thread_state.
17172 (proceed_thread_callback): Skip inferiors with no execution.
17173 (continue_command): Rename 'all_threads' local to avoid hiding
17174 'all_threads' function. Adjust get_last_target_status call.
17175 (prepare_one_step): Adjust set_running call.
17176 (signal_command): Use user_visible_resume_target. Compare thread
17177 pointers instead of inferior_ptid.
17178 (info_program_command): Adjust to pass down target.
17179 (attach_command): Mark target's 'thread_executing' flag.
17180 (stop_current_target_threads_ns): New, factored out from ...
17181 (interrupt_target_1): ... this. Switch inferior before making
17182 target calls.
17183 * inferior-iter.h
17184 (struct all_inferiors_iterator, struct all_inferiors_range)
17185 (struct all_inferiors_safe_range)
17186 (struct all_non_exited_inferiors_range): Filter on
17187 process_stratum_target too. Remove explicit.
17188 * inferior.c (inferior::inferior): Push dummy target on target
17189 stack.
17190 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
17191 Add process_stratum_target parameter, and pass it down.
17192 (have_live_inferiors): Adjust.
17193 (switch_to_inferior_and_push_target): New.
17194 (add_inferior_command, clone_inferior_command): Handle
17195 "-no-connection" parameter. Use
17196 switch_to_inferior_and_push_target.
17197 (_initialize_inferior): Mention "-no-connection" option in
17198 the help of "add-inferior" and "clone-inferior" commands.
17199 * inferior.h: Include "process-stratum-target.h".
17200 (interrupt_target_1): Use bool.
17201 (struct inferior) <push_target, unpush_target, target_is_pushed,
17202 find_target_beneath, top_target, process_target, target_at,
17203 m_stack>: New.
17204 (discard_all_inferiors): Delete.
17205 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
17206 (all_inferiors, all_non_exited_inferiors): Add
17207 process_stratum_target parameter.
17208 * infrun.c: Include "gdb_select.h" and <unordered_map>.
17209 (target_last_proc_target): New global.
17210 (follow_fork_inferior): Push target on new inferior. Pass target
17211 to add_thread_silent. Call exec_on_vfork. Handle target's
17212 reference count.
17213 (follow_fork): Adjust get_last_target_status call. Also consider
17214 target.
17215 (follow_exec): Push target on new inferior.
17216 (struct execution_control_state) <target>: New field.
17217 (user_visible_resume_target): New.
17218 (do_target_resume): Call target_async.
17219 (resume_1): Set target's threads_executing flag. Consider resume
17220 target.
17221 (commit_resume_all_targets): New.
17222 (proceed): Also consider resume target. Skip threads of inferiors
17223 with no execution. Commit resumtion in all targets.
17224 (start_remote): Pass current inferior to wait_for_inferior.
17225 (infrun_thread_stop_requested): Consider target as well. Pass
17226 thread_info pointer to clear_inline_frame_state instead of ptid.
17227 (infrun_thread_thread_exit): Consider target as well.
17228 (random_pending_event_thread): New inferior parameter. Use it.
17229 (do_target_wait): Rename to ...
17230 (do_target_wait_1): ... this. Add inferior parameter, and pass it
17231 down.
17232 (threads_are_resumed_pending_p, do_target_wait): New.
17233 (prepare_for_detach): Adjust calls.
17234 (wait_for_inferior): New inferior parameter. Handle it. Use
17235 do_target_wait_1 instead of do_target_wait.
17236 (fetch_inferior_event): Adjust. Switch to representative
17237 inferior. Pass target down.
17238 (set_last_target_status): Add process_stratum_target parameter.
17239 Save target in global.
17240 (get_last_target_status): Add process_stratum_target parameter and
17241 handle it.
17242 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
17243 (context_switch): Check inferior_ptid == null_ptid before calling
17244 inferior_thread().
17245 (get_inferior_stop_soon): Pass down target.
17246 (wait_one): Rename to ...
17247 (poll_one_curr_target): ... this.
17248 (struct wait_one_event): New.
17249 (wait_one): New.
17250 (stop_all_threads): Adjust.
17251 (handle_no_resumed, handle_inferior_event): Adjust to consider the
17252 event's target.
17253 (switch_back_to_stepped_thread): Also consider target.
17254 (print_stop_event): Update.
17255 (normal_stop): Update. Also consider the resume target.
17256 * infrun.h (wait_for_inferior): Remove declaration.
17257 (user_visible_resume_target): New declaration.
17258 (get_last_target_status, set_last_target_status): New
17259 process_stratum_target parameter.
17260 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
17261 process_stratum_target parameter, and use it.
17262 (clear_inline_frame_state (thread_info*)): New.
17263 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
17264 process_stratum_target parameter.
17265 (clear_inline_frame_state (thread_info*)): Declare.
17266 * linux-fork.c (delete_checkpoint_command): Pass target down to
17267 find_thread_ptid.
17268 (checkpoint_command): Adjust.
17269 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
17270 instead of just tweaking inferior_ptid.
17271 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
17272 (exit_lwp): Pass target down to find_thread_ptid.
17273 (attach_proc_task_lwp_callback): Pass target down to
17274 add_thread/set_running/set_executing.
17275 (linux_nat_target::attach): Pass target down to
17276 thread_change_ptid.
17277 (get_detach_signal): Pass target down to find_thread_ptid.
17278 Consider last target status's target.
17279 (linux_resume_one_lwp_throw, resume_lwp)
17280 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
17281 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
17282 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
17283 (linux_nat_target::async_wait_fd): New.
17284 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
17285 target down.
17286 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
17287 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
17288 * linux-thread-db.c (struct thread_db_info::process_target): New
17289 field.
17290 (add_thread_db_info): Save target.
17291 (get_thread_db_info): New process_stratum_target parameter. Also
17292 match target.
17293 (delete_thread_db_info): New process_stratum_target parameter.
17294 Also match target.
17295 (thread_from_lwp): Adjust to pass down target.
17296 (thread_db_notice_clone): Pass down target.
17297 (check_thread_db_callback): Pass down target.
17298 (try_thread_db_load_1): Always push the thread_db target.
17299 (try_thread_db_load, record_thread): Pass target down.
17300 (thread_db_target::detach): Pass target down. Always unpush the
17301 thread_db target.
17302 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
17303 target down. Always unpush the thread_db target.
17304 (find_new_threads_callback, thread_db_find_new_threads_2)
17305 (thread_db_target::update_thread_list): Pass target down.
17306 (thread_db_target::pid_to_str): Pass current inferior down.
17307 (thread_db_target::get_thread_local_address): Pass target down.
17308 (thread_db_target::resume, maintenance_check_libthread_db): Pass
17309 target down.
17310 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
17311 * procfs.c (procfs_target::procfs_init_inferior): Declare.
17312 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
17313 (procfs_init_inferior): Rename to ...
17314 (procfs_target::procfs_init_inferior): ... this and adjust.
17315 (procfs_target::create_inferior, procfs_notice_thread)
17316 (procfs_do_thread_registers): Adjust.
17317 * ppc-fbsd-tdep.c: Include "inferior.h".
17318 (ppcfbsd_get_thread_local_address): Pass down target.
17319 * proc-service.c (ps_xfer_memory): Switch current inferior and
17320 program space as well.
17321 (get_ps_regcache): Pass target down.
17322 * process-stratum-target.c
17323 (process_stratum_target::thread_address_space)
17324 (process_stratum_target::thread_architecture): Pass target down.
17325 * process-stratum-target.h
17326 (process_stratum_target::threads_executing): New field.
17327 (as_process_stratum_target): New.
17328 * ravenscar-thread.c
17329 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
17330 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
17331 down.
17332 * record-btrace.c (record_btrace_target::info_record): Adjust.
17333 (record_btrace_target::record_method)
17334 (record_btrace_target::record_is_replaying)
17335 (record_btrace_target::fetch_registers)
17336 (get_thread_current_frame_id, record_btrace_target::resume)
17337 (record_btrace_target::wait, record_btrace_target::stop): Pass
17338 target down.
17339 * record-full.c (record_full_wait_1): Switch to event thread.
17340 Pass target down.
17341 * regcache.c (regcache::regcache)
17342 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
17343 process_stratum_target parameter and handle it.
17344 (current_thread_target): New global.
17345 (get_thread_regcache): Add process_stratum_target parameter and
17346 handle it. Switch inferior before calling target method.
17347 (get_thread_regcache): Pass target down.
17348 (get_thread_regcache_for_ptid): Pass target down.
17349 (registers_changed_ptid): Add process_stratum_target parameter and
17350 handle it.
17351 (registers_changed_thread, registers_changed): Pass target down.
17352 (test_get_thread_arch_aspace_regcache): New.
17353 (current_regcache_test): Define a couple local test_target_ops
17354 instances and use them for testing.
17355 (readwrite_regcache): Pass process_stratum_target parameter.
17356 (cooked_read_test, cooked_write_test): Pass mock_target down.
17357 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
17358 (get_thread_arch_aspace_regcache): Add process_stratum_target
17359 parameter.
17360 (regcache::target): New method.
17361 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
17362 (regcache::registers_changed_ptid): Add process_stratum_target
17363 parameter.
17364 (regcache::m_target): New field.
17365 (registers_changed_ptid): Add process_stratum_target parameter.
17366 * remote.c (remote_state::supports_vCont_probed): New field.
17367 (remote_target::async_wait_fd): New method.
17368 (remote_unpush_and_throw): Add remote_target parameter.
17369 (get_current_remote_target): Adjust.
17370 (remote_target::remote_add_inferior): Push target.
17371 (remote_target::remote_add_thread)
17372 (remote_target::remote_notice_new_inferior)
17373 (get_remote_thread_info): Pass target down.
17374 (remote_target::update_thread_list): Skip threads of inferiors
17375 bound to other targets. (remote_target::close): Don't discard
17376 inferiors. (remote_target::add_current_inferior_and_thread)
17377 (remote_target::process_initial_stop_replies)
17378 (remote_target::start_remote)
17379 (remote_target::remote_serial_quit_handler): Pass down target.
17380 (remote_target::remote_unpush_target): New remote_target
17381 parameter. Unpush the target from all inferiors.
17382 (remote_target::remote_unpush_and_throw): New remote_target
17383 parameter. Pass it down.
17384 (remote_target::open_1): Check whether the current inferior has
17385 execution instead of checking whether any inferior is live. Pass
17386 target down.
17387 (remote_target::remote_detach_1): Pass down target. Use
17388 remote_unpush_target.
17389 (extended_remote_target::attach): Pass down target.
17390 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
17391 (remote_target::append_resumption): Pass down target.
17392 (remote_target::append_pending_thread_resumptions)
17393 (remote_target::remote_resume_with_hc, remote_target::resume)
17394 (remote_target::commit_resume): Pass down target.
17395 (remote_target::remote_stop_ns): Check supports_vCont_probed.
17396 (remote_target::interrupt_query)
17397 (remote_target::remove_new_fork_children)
17398 (remote_target::check_pending_events_prevent_wildcard_vcont)
17399 (remote_target::remote_parse_stop_reply)
17400 (remote_target::process_stop_reply): Pass down target.
17401 (first_remote_resumed_thread): New remote_target parameter. Pass
17402 it down.
17403 (remote_target::wait_as): Pass down target.
17404 (unpush_and_perror): New remote_target parameter. Pass it down.
17405 (remote_target::readchar, remote_target::remote_serial_write)
17406 (remote_target::getpkt_or_notif_sane_1)
17407 (remote_target::kill_new_fork_children, remote_target::kill): Pass
17408 down target.
17409 (remote_target::mourn_inferior): Pass down target. Use
17410 remote_unpush_target.
17411 (remote_target::core_of_thread)
17412 (remote_target::remote_btrace_maybe_reopen): Pass down target.
17413 (remote_target::pid_to_exec_file)
17414 (remote_target::thread_handle_to_thread_info): Pass down target.
17415 (remote_target::async_wait_fd): New.
17416 * riscv-fbsd-tdep.c: Include "inferior.h".
17417 (riscv_fbsd_get_thread_local_address): Pass down target.
17418 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
17419 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
17420 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
17421 Adjust.
17422 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
17423 * solib-svr4.c (enable_break): Pass down target.
17424 * spu-multiarch.c (parse_spufs_run): Pass down target.
17425 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
17426 * target-delegates.c: Regenerate.
17427 * target.c (g_target_stack): Delete.
17428 (current_top_target): Return the current inferior's top target.
17429 (target_has_execution_1): Refer to the passed-in inferior's top
17430 target.
17431 (target_supports_terminal_ours): Check whether the initial
17432 inferior was already created.
17433 (decref_target): New.
17434 (target_stack::push): Incref/decref the target.
17435 (push_target, push_target, unpush_target): Adjust.
17436 (target_stack::unpush): Defref target.
17437 (target_is_pushed): Return bool. Adjust to refer to the current
17438 inferior's target stack.
17439 (dispose_inferior): Delete, and inline parts ...
17440 (target_preopen): ... here. Only dispose of the current inferior.
17441 (target_detach): Hold strong target reference while detaching.
17442 Pass target down.
17443 (target_thread_name): Add assertion.
17444 (target_resume): Pass down target.
17445 (target_ops::beneath, find_target_at): Adjust to refer to the
17446 current inferior's target stack.
17447 (get_dummy_target): New.
17448 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
17449 has a thread running.
17450 (initialize_targets): Rename to ...
17451 (_initialize_target): ... this.
17452 * target.h: Include "gdbsupport/refcounted-object.h".
17453 (struct target_ops): Inherit refcounted_object.
17454 (target_ops::shortname, target_ops::longname): Make const.
17455 (target_ops::async_wait_fd): New method.
17456 (decref_target): Declare.
17457 (struct target_ops_ref_policy): New.
17458 (target_ops_ref): New typedef.
17459 (get_dummy_target): Declare function.
17460 (target_is_pushed): Return bool.
17461 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
17462 (all_matching_threads_iterator::all_matching_threads_iterator):
17463 Handle filter target.
17464 * thread-iter.h (struct all_matching_threads_iterator, struct
17465 all_matching_threads_range, class all_non_exited_threads_range):
17466 Filter by target too. Remove explicit.
17467 * thread.c (threads_executing): Delete.
17468 (inferior_thread): Pass down current inferior.
17469 (clear_thread_inferior_resources): Pass down thread pointer
17470 instead of ptid_t.
17471 (add_thread_silent, add_thread_with_info, add_thread): Add
17472 process_stratum_target parameter. Use it for thread and inferior
17473 searches.
17474 (is_current_thread): New.
17475 (thread_info::deletable): Use it.
17476 (find_thread_ptid, thread_count, in_thread_list)
17477 (thread_change_ptid, set_resumed, set_running): New
17478 process_stratum_target parameter. Pass it down.
17479 (set_executing): New process_stratum_target parameter. Pass it
17480 down. Adjust reference to 'threads_executing'.
17481 (threads_are_executing): New process_stratum_target parameter.
17482 Adjust reference to 'threads_executing'.
17483 (set_stop_requested, finish_thread_state): New
17484 process_stratum_target parameter. Pass it down.
17485 (switch_to_thread): Also match inferior.
17486 (switch_to_thread): New process_stratum_target parameter. Pass it
17487 down.
17488 (update_threads_executing): Reimplement.
17489 * top.c (quit_force): Pop targets from all inferior.
17490 (gdb_init): Don't call initialize_targets.
17491 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
17492 Declare.
17493 (windows_add_thread, windows_delete_thread): Adjust.
17494 (get_windows_debug_event): Rename to ...
17495 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
17496 * tracefile-tfile.c (tfile_target_open): Pass down target.
17497 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
17498 Forward declare.
17499 (switch_to_thread): Add process_stratum_target parameter.
17500 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
17501 parameter. Use it.
17502 (mi_on_resume): Pass target down.
17503 * nat/fork-inferior.c (startup_inferior): Add
17504 process_stratum_target parameter. Pass it down.
17505 * nat/fork-inferior.h (startup_inferior): Add
17506 process_stratum_target parameter.
17507 * python/py-threadevent.c (py_get_event_thread): Pass target down.
17508
17509 2020-01-10 Pedro Alves <palves@redhat.com>
17510
17511 * remote.c (remote_target::start_remote): Don't set inferior_ptid
17512 directly. Instead find the first thread in the thread list and
17513 use switch_to_thread.
17514
17515 2020-01-10 Pedro Alves <palves@redhat.com>
17516
17517 * remote.c (remote_target::remote_add_inferior): Don't bind a
17518 process to the current inferior if the current inferior is already
17519 bound to a process.
17520
17521 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
17522 Pedro Alves <palves@redhat.com>
17523
17524 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
17525 If no process is specified, return null_ptid instead of
17526 inferior_ptid.
17527 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
17528 TARGET_WAITKIND_SIGNALLED with no pid.
17529
17530 2020-01-10 Pedro Alves <palves@redhat.com>
17531
17532 * remote.c (first_remote_resumed_thread): New.
17533 (remote_target::wait_as): Use it as default event_ptid instead of
17534 inferior_ptid.
17535
17536 2020-01-10 Pedro Alves <palves@redhat.com>
17537
17538 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
17539
17540 2020-01-10 Pedro Alves <palves@redhat.com>
17541
17542 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
17543 not -1.
17544
17545 2020-01-10 Pedro Alves <palves@redhat.com>
17546
17547 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
17548 ptid to get_last_target_status.
17549 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
17550 ptid to get_last_target_status.
17551 * infcmd.c (continue_command): Don't pass a target_waitstatus to
17552 get_last_target_status.
17553 (info_program_command): Don't pass a target_waitstatus to
17554 get_last_target_status.
17555 * infrun.c (init_wait_for_inferior): Use
17556 nullify_last_target_wait_ptid.
17557 (get_last_target_status): Handle nullptr arguments.
17558 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
17559 (print_stop_event): Don't pass a ptid to get_last_target_status.
17560 (normal_stop): Don't pass a ptid to get_last_target_status.
17561 * infrun.h (get_last_target_status, set_last_target_status): Move
17562 comments here and update.
17563 (nullify_last_target_wait_ptid): Declare.
17564 * linux-fork.c (fork_load_infrun_state): Remove local extern
17565 declaration of nullify_last_target_wait_ptid.
17566 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
17567 to get_last_target_status.
17568
17569 2020-01-10 Pedro Alves <palves@redhat.com>
17570
17571 * gdbthread.h (scoped_restore_current_thread)
17572 <dont_restore, restore, m_dont_restore>: Declare.
17573 * thread.c (thread_alive): Add assertion. Return bool.
17574 (switch_to_thread_if_alive): New.
17575 (prune_threads): Switch inferior/thread.
17576 (print_thread_info_1): Switch thread before calling target methods.
17577 (scoped_restore_current_thread::restore): New, factored out from
17578 ...
17579 (scoped_restore_current_thread::~scoped_restore_current_thread):
17580 ... this.
17581 (scoped_restore_current_thread::scoped_restore_current_thread):
17582 Add assertion.
17583 (thread_apply_all_command, thread_select): Use
17584 switch_to_thread_if_alive.
17585 * infrun.c (proceed, restart_threads, handle_signal_stop)
17586 (switch_back_to_stepped_thread): Switch current thread before
17587 calling target methods.
17588
17589 2020-01-10 Pedro Alves <palves@redhat.com>
17590
17591 * inferior.c (switch_to_inferior_no_thread): New function,
17592 factored out from ...
17593 (inferior_command): ... here.
17594 * inferior.h (switch_to_inferior_no_thread): Declare.
17595 * mi/mi-main.c (run_one_inferior): Use
17596 switch_to_inferior_no_thread.
17597
17598 2020-01-10 Pedro Alves <palves@redhat.com>
17599
17600 * infcmd.c (kill_command): Remove dead code.
17601
17602 2020-01-10 Pedro Alves <palves@redhat.com>
17603
17604 * remote.c (remote_target::mourn_inferior): No longer check
17605 whether the target is running.
17606
17607 2020-01-10 Pedro Alves <palves@redhat.com>
17608
17609 * corelow.c (core_target::has_execution): Change parameter type to
17610 inferior pointer.
17611 * inferior.c (number_of_live_inferiors): Use
17612 inferior::has_execution instead of target_has_execution_1.
17613 * inferior.h (inferior::has_execution): New.
17614 * linux-thread-db.c (thread_db_target::update_thread_list): Use
17615 inferior::has_execution instead of target_has_execution_1.
17616 * process-stratum-target.c
17617 (process_stratum_target::has_execution): Change parameter type to
17618 inferior pointer. Check the inferior's PID instead of
17619 inferior_ptid.
17620 * process-stratum-target.h
17621 (process_stratum_target::has_execution): Change parameter type to
17622 inferior pointer.
17623 * record-full.c (record_full_core_target::has_execution): Change
17624 parameter type to inferior pointer.
17625 * target.c (target_has_execution_1): Change parameter type to
17626 inferior pointer.
17627 (target_has_execution_current): Adjust.
17628 * target.h (target_ops::has_execution): Change parameter type to
17629 inferior pointer.
17630 (target_has_execution_1): Change parameter type to inferior
17631 pointer. Change return type to bool.
17632 * tracefile.h (tracefile_target::has_execution): Change parameter
17633 type to inferior pointer.
17634
17635 2020-01-10 Pedro Alves <palves@redhat.com>
17636
17637 * exceptions.c (print_flush): Remove current_top_target() check.
17638
17639 2020-01-10 Pedro Alves <palves@redhat.com>
17640
17641 * remote.c (show_remote_exec_file): Show the current inferior's
17642 exec-file instead of the command variable's value.
17643
17644 2020-01-10 Pedro Alves <palves@redhat.com>
17645
17646 * record-full.c (record_full_resume_ptid): New global.
17647 (record_full_target::resume): Set it.
17648 (record_full_wait_1): Use record_full_resume_ptid instead of
17649 inferior_ptid.
17650
17651 2020-01-10 Pedro Alves <palves@redhat.com>
17652
17653 * gdbthread.h (scoped_restore_current_thread)
17654 <dont_restore, restore, m_dont_restore>: Declare.
17655 * thread.c (thread_alive): Add assertion. Return bool.
17656 (switch_to_thread_if_alive): New.
17657 (prune_threads): Switch inferior/thread.
17658 (print_thread_info_1): Switch thread before calling target methods.
17659 (scoped_restore_current_thread::restore): New, factored out from
17660 ...
17661 (scoped_restore_current_thread::~scoped_restore_current_thread):
17662 ... this.
17663 (scoped_restore_current_thread::scoped_restore_current_thread):
17664 Add assertion.
17665 (thread_apply_all_command, thread_select): Use
17666 switch_to_thread_if_alive.
17667
17668 2020-01-10 George Barrett <bob@bob131.so>
17669
17670 * stap-probe.c (stap_modify_semaphore): Don't check for null
17671 semaphores.
17672 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
17673 for null semaphores.
17674
17675 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
17676
17677 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
17678 all source windows, and maintain horizontal scroll status while
17679 doing so.
17680
17681 2020-01-09 Tom Tromey <tom@tromey.com>
17682
17683 PR tui/18932:
17684 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
17685 update_source_window, not print_source_lines.
17686
17687 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
17688
17689 * tui/tui.c (tui_enable): Register tui hooks after calling
17690 tui_display_main.
17691
17692 2020-01-09 Christian Biesinger <cbiesinger@google.com>
17693
17694 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
17695
17696 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
17697
17698 * thread.c (print_thread_info_1): Fix indentation.
17699
17700 2020-01-09 Christian Biesinger <cbiesinger@google.com>
17701
17702 * symtab.c (general_symbol_info::compute_and_set_names): Move the
17703 unique_xmalloc_ptr outside the if to always free the demangled name.
17704
17705 2020-01-08 Tom Tromey <tromey@adacore.com>
17706
17707 * xcoffread.c (enter_line_range, read_xcoff_symtab)
17708 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
17709 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
17710 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
17711 Remove.
17712 (section_offsets): New typedef.
17713 * symtab.c (fixup_section, get_msymbol_address): Update.
17714 * symmisc.c (dump_msymbols): Update.
17715 * symfile.h (relative_addr_info_to_section_offsets)
17716 (symfile_map_offsets_to_segments): Update.
17717 * symfile.c (build_section_addr_info_from_objfile)
17718 (init_objfile_sect_indices): Update.
17719 (struct place_section_arg): Change type of "offsets".
17720 (place_section): Update.
17721 (relative_addr_info_to_section_offsets): Change type of
17722 "section_offsets". Remove "num_sections" parameter.
17723 (default_symfile_offsets, syms_from_objfile_1)
17724 (set_objfile_default_section_offset): Update.
17725 (reread_symbols): No need to preserve section offsets by hand.
17726 (symfile_map_offsets_to_segments): Change type of "offsets".
17727 * stap-probe.c (relocate_address): Update.
17728 * stabsread.h (process_one_symbol): Update.
17729 * solib-target.c (struct lm_info_target) <offsets>: Change type.
17730 (solib_target_relocate_section_addresses): Update.
17731 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
17732 Update.
17733 * solib-frv.c (frv_relocate_main_executable): Update.
17734 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
17735 * solib-aix.c (solib_aix_get_section_offsets): Change return
17736 type.
17737 (solib_aix_solib_create_inferior_hook): Update.
17738 * remote.c (remote_target::get_offsets): Update.
17739 * psymtab.c (find_pc_sect_psymtab): Update.
17740 * psympriv.h (struct partial_symbol) <address, text_low,
17741 text_high>: Update.
17742 * objfiles.h (obj_section_offset): Update.
17743 (struct objfile) <section_offsets>: Change type.
17744 <num_sections>: Remove.
17745 (objfile_relocate): Update.
17746 * objfiles.c (entry_point_address_query): Update
17747 (relocate_one_symbol): Change type of "section_offsets".
17748 (objfile_relocate1, objfile_relocate1): Change type of
17749 "new_offsets".
17750 (objfile_rebase1): Update.
17751 * mipsread.c (mipscoff_symfile_read): Update.
17752 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
17753 parameter.
17754 * mdebugread.c (parse_symbol): Change type of "section_offsets".
17755 (parse_external, psymtab_to_symtab_1): Update.
17756 * machoread.c (macho_symfile_offsets): Update.
17757 * ia64-tdep.c (ia64_find_unwind_table): Update.
17758 * hppa-tdep.c (read_unwind_info): Update.
17759 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
17760 * dwarf2read.c (create_addrmap_from_index)
17761 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
17762 (process_psymtab_comp_unit_reader, add_partial_symbol)
17763 (add_partial_subprogram, process_full_comp_unit)
17764 (read_file_scope, read_func_scope, read_lexical_block_scope)
17765 (read_call_site_scope, dwarf2_rnglists_process)
17766 (dwarf2_ranges_process, dwarf2_ranges_read)
17767 (dwarf_decode_lines_1, var_decode_location, new_symbol)
17768 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
17769 Update.
17770 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
17771 Update.
17772 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
17773 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
17774 (process_one_symbol): Change type of "section_offsets".
17775 * ctfread.c (get_objfile_text_range): Update.
17776 * coffread.c (coff_symtab_read, enter_linenos)
17777 (process_coff_symbol): Update.
17778 * coff-pe-read.c (add_pe_forwarded_sym): Update.
17779 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
17780
17781 2020-01-08 Tom Tromey <tromey@adacore.com>
17782
17783 * dwarf2read.c (parse_macro_definition): Use std::string.
17784 (parse_macro_definition): Likewise.
17785
17786 2020-01-08 Tom Tromey <tromey@adacore.com>
17787
17788 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
17789 (ATTR_ALLOC_CHUNK): Remove.
17790
17791 2020-01-08 Tom Tromey <tromey@adacore.com>
17792
17793 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
17794
17795 2020-01-08 Tom Tromey <tromey@adacore.com>
17796
17797 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
17798 (dwarf2_compute_name, open_dwo_file): Likewise.
17799 (process_enumeration_scope): Use std::vector.
17800 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
17801 (partial_die_info::fixup, dwarf2_start_subfile)
17802 (guess_full_die_structure_name, dwarf2_name): Likewise.
17803 (determine_prefix): Update.
17804 (guess_full_die_structure_name): Make return type const.
17805 (partial_die_full_name): Return unique_xmalloc_ptr.
17806 (DW_FIELD_ALLOC_CHUNK): Remove.
17807
17808 2020-01-07 Tom Tromey <tromey@adacore.com>
17809
17810 PR build/24937:
17811 * stap-probe.c (class stap_static_probe_ops): Add constructor.
17812
17813 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
17814
17815 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
17816
17817 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
17818
17819 * stack.c (print_frame_info): Move disassemble_next_line code
17820 inside source_print block.
17821
17822 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17823
17824 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
17825 gdb/signals.h, as we are now using native signal symbols.
17826
17827 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
17828
17829 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
17830 overflow by an early check of content vs threshold.
17831 * tui/tui-source.c (tui_source_window::line_is_displayed):
17832 Likewise.
17833
17834 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17835
17836 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
17837
17838 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
17839
17840 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
17841 export table if no section contains it's RVA.
17842
17843 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17844
17845 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
17846
17847 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
17848
17849 * source.c (print_source_lines_base): Set last_line_listed.
17850
17851 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
17852
17853 * tui/tui-disasm.c: Remove trailing spaces.
17854
17855 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17856 Pedro Alves <palves@redhat.com>
17857
17858 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
17859 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
17860 (windows_gdb_signal_to_target): New function, uses the above
17861 enumeration to convert GDB internal signal codes to equivalent
17862 Windows codes.
17863 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
17864 * windows-nat.c: Include "gdb_wait.h".
17865 (get_windows_debug_event): Extract the fatal exception from the
17866 exit status and convert to the equivalent Posix signal number.
17867 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
17868 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
17869 * gdbsupport/gdb_wait.c: New file, implements
17870 windows_status_to_termsig.
17871 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
17872 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
17873
17874 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
17875
17876 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
17877 show_layout.
17878
17879 2020-01-05 Luis Machado <luis.machado@linaro.org>
17880
17881 * aarch64-linux-nat.c
17882 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
17883 and bfd_mach_aarch64.
17884
17885 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
17886
17887 * ui-file.c (stdio_file::can_emit_style_escape)
17888 (tee_file::can_emit_style_escape): Ensure style is used also on
17889 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
17890 to gdb_stdout.
17891 * main.c (set_gdb_data_directory): Use file style to output the
17892 warning that the given pathname is not a directory.
17893 * top.c (show_history_filename, gdb_safe_append_history)
17894 (show_gdb_datadir): Use file style.
17895
17896 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
17897
17898 * solib-target.c (struct lm_info_target):
17899 Change offsets to be a unique_xmalloc_ptr.
17900 (solib_target_relocate_section_addresses): Update.
17901
17902 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
17903
17904 * windows-nat.c (windows_clear_solib): Free so_list linked list.
17905
17906 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
17907
17908 * MAINTAINERS (Write After Approval): Add myself.
17909
17910 2020-01-02 Luis Machado <luis.machado@linaro.org>
17911
17912 * proc-service.c (get_ps_regcache): Remove reference to obsolete
17913 Cell BE architecture.
17914 * target.h (struct target_ops) <thread_architecture>: Likewise.
17915
17916 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
17917
17918 * Makefile.in: Use INSTALL_PROGRAM_ENV.
17919
17920 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
17921
17922 * MAINTAINERS (Write After Approval): Add myself.
17923
17924 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17925
17926 * gdbarch.sh: Update copyright year range of generated files.
17927
17928 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17929
17930 Update copyright year range in all GDB files.
17931
17932 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17933
17934 * copyright.py: Convert to Python 3.
17935
17936 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17937
17938 * copyright.py: Adapt after move of gnulib directory from gdb
17939 directory to toplevel directory.
17940
17941 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17942
17943 * copyright.py (main): Exit if run from the wrong directory.
17944
17945 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17946
17947 * top.c (print_gdb_version): Change copyright year to 2020.
17948
17949 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17950
17951 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
17952
17953 For older changes see ChangeLog-2019.
17954 \f
17955 Local Variables:
17956 mode: change-log
17957 left-margin: 8
17958 fill-column: 74
17959 version-control: never
17960 coding: utf-8
17961 End:
This page took 0.420328 seconds and 4 git commands to generate.