1 2020-12-09 Tom Tromey <tromey@adacore.com>
3 * expprint.c (op_name): Update.
4 * expression.h (enum exp_opcode): Update.
5 * std-operator.def: Add more opcodes.
6 * ada-operator.def, fortran-operator.def: Remove, moving contents
9 2020-12-09 Simon Marchi <simon.marchi@polymtl.ca>
11 * gdbtypes.c (get_discrete_low_bound, get_discrete_high_bound):
12 Return {} instead of false.
13 (get_discrete_bounds): Compute high bound only if low bound is
16 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
19 * gdbtypes.c (get_discrete_low_bound): Make non-static.
20 (get_discrete_high_bound): Make non-static.
21 * gdbtypes.h (get_discrete_low_bound): New declaration.
22 (get_discrete_high_bound): New declaration.
23 * valarith.c (value_subscript): Only fetch high bound if
26 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
28 * gdbtypes.c (get_discrete_bounds): Implement with
29 get_discrete_low_bound and get_discrete_high_bound.
30 (get_discrete_low_bound): New.
31 (get_discrete_high_bound): New.
33 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
35 * gdbtypes.h (get_discrete_bounds): Return bool, adjust all
37 * gdbtypes.c (get_discrete_bounds): Return bool.
39 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
41 * ada-lang.c (ada_value_slice_from_ptr): Adjust.
42 (ada_value_slice): Adjust.
44 * gdbtypes.c (get_discrete_bounds): Adjust.
45 (discrete_position): Return optional.
46 * gdbtypes.h (discrete_position): Return optional.
48 2020-12-07 Tom Tromey <tromey@adacore.com>
50 * maint.c (_initialize_maint_cmds): Use expression command
51 completer for "maint print type".
53 2020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
55 * completer.c (complete_explicit_location): Also add keywords
56 that start with '-' to the completion list.
58 2020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
60 * linespec.c (linespec_lexer_lex_keyword): The "-force-condition"
61 keyword may be followed by any keyword.
62 * breakpoint.c (find_condition_and_thread): Advance 'tok' by
63 'toklen' in the case for "-force-condition".
65 2020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
67 * main.c (catch_command_errors): Add a flag parameter; invoke
68 `bpstat_do_actions` if the flag is set.
69 (execute_cmdargs): Update a call to `catch_command_errors`.
71 2020-12-07 Tom de Vries <tdevries@suse.de>
73 * ada-lang.c (replace_operator_with_call): Handle shrink resize.
75 2020-12-06 Tom Tromey <tom@tromey.com>
78 * ada-lang.c (replace_operator_with_call): Rewrite.
80 2020-12-06 Giancarlo Frix <gfrix@rocketsoftware.com> (tiny change)
83 * s390-tdep.h (op_bc): Correct BC opcode value.
85 2020-12-06 Joel Brobecker <brobecker@adacore.com>
87 * gmp-utils.h (gdb_mpz::safe_export): New private method.
88 (gdb_mpz::as_integer): Reimplement using gdb_mpz::safe_export.
89 * gmp-utils.c (gdb_mpz::write): Rewrite using gdb_mpz::safe_export.
90 (gdb_mpz::safe_export): New method.
91 * unittests/gmp-utils-selftests .c (gdb_mpz_as_integer):
92 Update function description.
93 (check_as_integer_raises_out_of_range_error): New function.
94 (gdb_mpz_as_integer_out_of_range): New function.
95 (_initialize_gmp_utils_selftests): Register
96 gdb_mpz_as_integer_out_of_range as a selftest.
98 2020-12-05 Joel Brobecker <brobecker@adacore.com>
100 * gmp-utils.c (gdb_mpz::read): Use HOST_CHAR_BIT instead of
102 (gdb_mpz::write): Likewise.
104 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
106 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass 2 as the
107 number of displaced step buffers.
109 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
111 * displaced-stepping.h (struct displaced_step_buffer): Rename
113 (struct displaced_step_buffers): ... this.
114 <m_addr, m_current_thread, m_copy_insn_closure>: Remove.
115 <struct displaced_step_buffer>: New inner class.
117 * displaced-stepping.c (displaced_step_buffer::prepare): Rename
119 (displaced_step_buffers::prepare): ... this, adjust for multiple
121 (displaced_step_buffer::finish): Rename to...
122 (displaced_step_buffers::finish): ... this, adjust for multiple
124 (displaced_step_buffer::copy_insn_closure_by_addr): Rename to...
125 (displaced_step_buffers::copy_insn_closure_by_addr): ... this,
126 adjust for multiple buffers.
127 (displaced_step_buffer::restore_in_ptid): Rename to...
128 (displaced_step_buffers::restore_in_ptid): ... this, adjust for
130 * linux-tdep.h (linux_init_abi): Change supports_displaced_step
131 for num_disp_step_buffers.
132 * linux-tdep.c (struct linux_gdbarch_data)
133 <num_disp_step_buffers>: New field.
134 (struct linux_info) <disp_step_buf>: Rename to...
135 <disp_step_bufs>: ... this, change type to
136 displaced_step_buffers.
137 (linux_displaced_step_prepare): Use
138 linux_gdbarch_data::num_disp_step_buffers to create that number
140 (linux_displaced_step_finish): Adjust.
141 (linux_displaced_step_copy_insn_closure_by_addr): Adjust.
142 (linux_displaced_step_restore_all_in_ptid): Adjust.
143 (linux_init_abi): Change supports_displaced_step parameter for
144 num_disp_step_buffers, save it in linux_gdbarch_data.
145 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Adjust.
146 * alpha-linux-tdep.c (alpha_linux_init_abi): Adjust.
147 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Change
148 supports_displaced_step parameter for num_disp_step_buffers.
149 (amd64_linux_init_abi): Adjust.
150 (amd64_x32_linux_init_abi): Adjust.
151 * arc-linux-tdep.c (arc_linux_init_osabi): Adjust.
152 * arm-linux-tdep.c (arm_linux_init_abi): Adjust.
153 * bfin-linux-tdep.c (bfin_linux_init_abi): Adjust.
154 * cris-linux-tdep.c (cris_linux_init_abi): Adjust.
155 * csky-linux-tdep.c (csky_linux_init_abi): Adjust.
156 * frv-linux-tdep.c (frv_linux_init_abi): Adjust.
157 * hppa-linux-tdep.c (hppa_linux_init_abi): Adjust.
158 * i386-linux-tdep.c (i386_linux_init_abi): Adjust.
159 * ia64-linux-tdep.c (ia64_linux_init_abi): Adjust.
160 * m32r-linux-tdep.c (m32r_linux_init_abi): Adjust.
161 * m68k-linux-tdep.c (m68k_linux_init_abi):
162 * microblaze-linux-tdep.c (microblaze_linux_init_abi):
163 * mips-linux-tdep.c (mips_linux_init_abi): Adjust.
164 * mn10300-linux-tdep.c (am33_linux_init_osabi): Adjust.
165 * nios2-linux-tdep.c (nios2_linux_init_abi): Adjust.
166 * or1k-linux-tdep.c (or1k_linux_init_abi): Adjust.
167 * ppc-linux-tdep.c (ppc_linux_init_abi): Adjust.
168 * riscv-linux-tdep.c (riscv_linux_init_abi): Adjust.
169 * rs6000-tdep.c (struct ppc_inferior_data) <disp_step_buf>:
170 Change type to displaced_step_buffers.
171 * s390-linux-tdep.c (s390_linux_init_abi_any): Adjust.
172 * sh-linux-tdep.c (sh_linux_init_abi): Adjust.
173 * sparc-linux-tdep.c (sparc32_linux_init_abi): Adjust.
174 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Adjust.
175 * tic6x-linux-tdep.c (tic6x_uclinux_init_abi): Adjust.
176 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Adjust.
177 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Adjust.
179 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
181 * linux-tdep.c (init_linux_gdbarch_data): Change parameter to
183 (_initialize_linux_tdep): Register pre-init gdb data instead of
186 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
188 * displaced-stepping.h (struct
189 displaced_step_copy_insn_closure): Adjust comments.
190 (struct displaced_step_inferior_state) <step_thread,
191 step_gdbarch, step_closure, step_original, step_copy,
192 step_saved_copy>: Remove fields.
193 (struct displaced_step_thread_state): New.
194 (struct displaced_step_buffer): New.
195 * displaced-stepping.c (displaced_step_buffer::prepare): New.
196 (write_memory_ptid): Move from infrun.c.
197 (displaced_step_instruction_executed_successfully): New,
198 factored out of displaced_step_finish.
199 (displaced_step_buffer::finish): New.
200 (displaced_step_buffer::copy_insn_closure_by_addr): New.
201 (displaced_step_buffer::restore_in_ptid): New.
202 * gdbarch.sh (displaced_step_location): Remove.
203 (displaced_step_prepare, displaced_step_finish,
204 displaced_step_copy_insn_closure_by_addr,
205 displaced_step_restore_all_in_ptid): New.
206 * gdbarch.c: Re-generate.
207 * gdbarch.h: Re-generate.
208 * gdbthread.h (class thread_info) <displaced_step_state>: New
210 (thread_step_over_chain_remove): New declaration.
211 (thread_step_over_chain_next): New declaration.
212 (thread_step_over_chain_length): New declaration.
213 * thread.c (thread_step_over_chain_remove): Make non-static.
214 (thread_step_over_chain_next): New.
215 (global_thread_step_over_chain_next): Use
216 thread_step_over_chain_next.
217 (thread_step_over_chain_length): New.
218 (global_thread_step_over_chain_enqueue): Add debug print.
219 (global_thread_step_over_chain_remove): Add debug print.
220 * infrun.h (get_displaced_step_copy_insn_closure_by_addr):
222 * infrun.c (get_displaced_stepping_state): New.
223 (displaced_step_in_progress_any_inferior): Remove.
224 (displaced_step_in_progress_thread): Adjust.
225 (displaced_step_in_progress): Adjust.
226 (displaced_step_in_progress_any_thread): New.
227 (get_displaced_step_copy_insn_closure_by_addr): Remove.
228 (gdbarch_supports_displaced_stepping): Use
229 gdbarch_displaced_step_prepare_p.
230 (displaced_step_reset): Change parameter from inferior to
232 (displaced_step_prepare_throw): Implement using
233 gdbarch_displaced_step_prepare.
234 (write_memory_ptid): Move to displaced-step.c.
235 (displaced_step_restore): Remove.
236 (displaced_step_finish): Implement using
237 gdbarch_displaced_step_finish.
238 (start_step_over): Allow starting more than one displaced step.
239 (prepare_for_detach): Handle possibly multiple threads doing
241 (handle_inferior_event): Handle possibility that fork event
242 happens while another thread displaced steps.
243 * linux-tdep.h (linux_displaced_step_prepare): New.
244 (linux_displaced_step_finish): New.
245 (linux_displaced_step_copy_insn_closure_by_addr): New.
246 (linux_displaced_step_restore_all_in_ptid): New.
247 (linux_init_abi): Add supports_displaced_step parameter.
248 * linux-tdep.c (struct linux_info) <disp_step_buf>: New field.
249 (linux_displaced_step_prepare): New.
250 (linux_displaced_step_finish): New.
251 (linux_displaced_step_copy_insn_closure_by_addr): New.
252 (linux_displaced_step_restore_all_in_ptid): New.
253 (linux_init_abi): Add supports_displaced_step parameter,
254 register displaced step methods if true.
255 (_initialize_linux_tdep): Register inferior_execd observer.
256 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Add
257 supports_displaced_step parameter, adjust call to
258 linux_init_abi. Remove call to
259 set_gdbarch_displaced_step_location.
260 (amd64_linux_init_abi): Adjust call to
261 amd64_linux_init_abi_common.
262 (amd64_x32_linux_init_abi): Likewise.
263 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Adjust call to
264 linux_init_abi. Remove call to
265 set_gdbarch_displaced_step_location.
266 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
267 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
268 * alpha-linux-tdep.c (alpha_linux_init_abi): Adjust call to
270 * arc-linux-tdep.c (arc_linux_init_osabi): Likewise.
271 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
272 * cris-linux-tdep.c (cris_linux_init_abi): Likewise.
273 * csky-linux-tdep.c (csky_linux_init_abi): Likewise.
274 * frv-linux-tdep.c (frv_linux_init_abi): Likewise.
275 * hppa-linux-tdep.c (hppa_linux_init_abi): Likewise.
276 * ia64-linux-tdep.c (ia64_linux_init_abi): Likewise.
277 * m32r-linux-tdep.c (m32r_linux_init_abi): Likewise.
278 * m68k-linux-tdep.c (m68k_linux_init_abi): Likewise.
279 * microblaze-linux-tdep.c (microblaze_linux_init_abi): Likewise.
280 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
281 * mn10300-linux-tdep.c (am33_linux_init_osabi): Likewise.
282 * nios2-linux-tdep.c (nios2_linux_init_abi): Likewise.
283 * or1k-linux-tdep.c (or1k_linux_init_abi): Likewise.
284 * riscv-linux-tdep.c (riscv_linux_init_abi): Likewise.
285 * s390-linux-tdep.c (s390_linux_init_abi_any): Likewise.
286 * sh-linux-tdep.c (sh_linux_init_abi): Likewise.
287 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
288 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
289 * tic6x-linux-tdep.c (tic6x_uclinux_init_abi): Likewise.
290 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
291 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Likewise.
292 * ppc-linux-tdep.c (ppc_linux_init_abi): Adjust call to
293 linux_init_abi. Remove call to
294 set_gdbarch_displaced_step_location.
295 * arm-tdep.c (arm_pc_is_thumb): Call
296 gdbarch_displaced_step_copy_insn_closure_by_addr instead of
297 get_displaced_step_copy_insn_closure_by_addr.
298 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Adjust calls to
299 clear gdbarch methods.
300 * rs6000-tdep.c (struct ppc_inferior_data): New structure.
301 (get_ppc_per_inferior): New function.
302 (ppc_displaced_step_prepare): New function.
303 (ppc_displaced_step_finish): New function.
304 (ppc_displaced_step_restore_all_in_ptid): New function.
305 (rs6000_gdbarch_init): Register new gdbarch methods.
306 * s390-tdep.c (s390_gdbarch_init): Don't call
307 set_gdbarch_displaced_step_location, set new gdbarch methods.
309 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
311 * Makefile.in (COMMON_SFILES): Add displaced-stepping.c.
312 * aarch64-tdep.h: Include displaced-stepping.h.
313 * displaced-stepping.h (struct displaced_step_copy_insn_closure):
315 (displaced_step_copy_insn_closure_up): Move here.
316 (struct buf_displaced_step_copy_insn_closure): Move here.
317 (struct displaced_step_inferior_state): Move here.
318 (debug_displaced): Move here.
319 (displaced_debug_printf_1): Move here.
320 (displaced_debug_printf): Move here.
321 * displaced-stepping.c: New file.
322 * gdbarch.sh: Include displaced-stepping.h in gdbarch.h.
323 * gdbarch.h: Re-generate.
324 * inferior.h: Include displaced-stepping.h.
325 * infrun.h (debug_displaced): Move to displaced-stepping.h.
326 (displaced_debug_printf_1): Likewise.
327 (displaced_debug_printf): Likewise.
328 (struct displaced_step_copy_insn_closure): Likewise.
329 (displaced_step_copy_insn_closure_up): Likewise.
330 (struct buf_displaced_step_copy_insn_closure): Likewise.
331 (struct displaced_step_inferior_state): Likewise.
332 * infrun.c (show_debug_displaced): Move to displaced-stepping.c.
333 (displaced_debug_printf_1): Likewise.
334 (displaced_step_copy_insn_closure::~displaced_step_copy_insn_closure):
336 (_initialize_infrun): Don't register "set/show debug displaced".
338 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
340 * linux-tdep.c (get_linux_inferior_data): Add inferior
342 (linux_vsyscall_range): Pass current inferior.
344 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
346 * infrun.c (displaced_step_prepare_throw): Change return type to
347 displaced_step_prepare_status.
348 (displaced_step_prepare): Likewise.
349 (displaced_step_finish): Change return type to
350 displaced_step_finish_status.
352 (stop_all_threads): Adjust.
353 * displaced-stepping.h: New file.
355 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
357 * infrun.c (displaced_step_fixup): Rename to...
358 (displaced_step_finish): ... this, update all callers.
360 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
362 * infrun.h (get_displaced_step_closure_by_addr): Rename to...
363 (get_displaced_step_copy_insn_closure_by_addr): ... this.
365 (displaced_step_closure): Rename to...
366 (displaced_step_copy_insn_closure): ... this. Update all users.
367 (displaced_step_closure_up): Rename to...
368 (displaced_step_copy_insn_closure_up). ... this. Update all
370 (buf_displaced_step_closure): Rename to...
371 (buf_displaced_step_copy_insn_closure): ... this. Update all
373 * infrun.c (get_displaced_step_closure_by_addr): Rename to...
374 (get_displaced_step_copy_insn_closure_by_addr): ... this.
376 * aarch64-tdep.c (aarch64_displaced_step_closure): Rename to...
377 (aarch64_displaced_step_copy_insn_closure): ... this. Update
379 * amd64-tdep.c (amd64_displaced_step_closure): Rename to...
380 (amd64_displaced_step_copy_insn_closure): ... this. Update all
382 * arm-tdep.h (arm_displaced_step_closure): Rename to...
383 (arm_displaced_step_copy_insn_closure): ... this. Update all
385 * i386-tdep.h (i386_displaced_step_closure): Rename to...
386 (i386_displaced_step_copy_insn_closure): ... this. Update all
388 * rs6000-tdep.c (ppc_displaced_step_closure): Rename to...
389 (ppc_displaced_step_copy_insn_closure): ... this. Update all
391 * s390-tdep.c (s390_displaced_step_closure): Rename to...
392 (s390_displaced_step_copy_insn_closure): ... this. Update all
394 * gdbarch.h: Re-generate.
395 * gdbarch.c: Re-generate.
397 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
399 * gdbthread.h (thread_step_over_chain_enqueue): Rename to...
400 (global_thread_step_over_chain_enqueue): ... this. Update all
402 (thread_step_over_chain_remove): Rename to...
403 (global_thread_step_over_chain_remove): ... this. Update all
405 (thread_step_over_chain_next): Rename to...
406 (global_thread_step_over_chain_next): ... this. Update all
408 * infrun.h (step_over_queue_head): Rename to...
409 (global_thread_step_over_chain_head): ... this. Update all
411 * infrun.c (step_over_queue_head): Rename to...
412 (global_thread_step_over_chain_head): ... this. Update all
414 * thread.c (step_over_chain_remove): Rename to...
415 (thread_step_over_chain_remove): ... this. Update all users.
416 (thread_step_over_chain_next): Rename to...
417 (global_thread_step_over_chain_next): ... this. Update all
419 (thread_step_over_chain_enqueue): Rename to...
420 (global_thread_step_over_chain_enqueue): ... this. Update all
422 (thread_step_over_chain_remove): Rename to...
423 (global_thread_step_over_chain_remove): ... this. Update all
426 2020-12-04 Simon Marchi <simon.marchi@polymtl.ca>
428 * infrun.c (get_displaced_stepping_state): Remove, change
429 callers to access the field directly.
431 2020-12-04 Simon Marchi <simon.marchi@polymtl.ca>
433 * infrun.c (handle_inferior_event): Restore displaced step
434 buffer bytes in child process when handling fork, even if fork
435 happened in another thread than the displaced-stepping one.
437 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
439 * infrun.c (infrun_inferior_execd): New function.
440 (_initialize_infrun): Attach inferior_execd observer.
442 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
444 * observable.h (inferior_execd): Declare new observable.
445 * observable.c (inferior_execd): Declare new observable.
446 * infrun.c (follow_exec): Notify inferior_execd observer.
447 * jit.c (jit_inferior_created_hook): Make static.
448 (_initialize_jit): Register inferior_execd observer.
449 * jit.h (jit_inferior_created_hook): Remove declaration.
450 * solib.c (_initialize_solib): Register inferior_execd observer.
452 2020-12-04 Tom de Vries <tdevries@suse.de>
455 * completer.c (completion_tracker::build_completion_result): Don't
456 access match_list[0][-1].
458 2020-12-04 Tom Tromey <tromey@adacore.com>
460 * linespec.c (struct linespec_token): Rename; remove typedef.
461 * guile/scm-block.c (struct block_smob): Remove typedef.
462 (struct block_syms_progress_smob): Likewise.
463 * guile/scm-symbol.c (struct symbol_smob): Remove typedef.
464 * guile/scm-symtab.c (symtab_smob): Remove typedef.
465 (struct sal_smob): Remove typedef.
466 * guile/scm-param.c (struct param_smob): Remove typedef.
467 * guile/scm-progspace.c (struct pspace_smob): Rename.
468 * guile/scm-objfile.c (struct objfile_smob): Rename.
469 * guile/scm-iterator.c (struct iterator_smob): Rename.
470 * guile/scm-frame.c (struct frame_smob): Rename.
471 * guile/scm-arch.c (struct arch_smob): Rename.
472 * guile/scm-type.c (struct field_smob): Remove typedef.
473 (struct type_smob): Rename.
474 * guile/scm-cmd.c (struct command_smob): Remove typedef.
475 * guile/scm-ports.c (struct ioscm_memory_port): Remove typedef.
476 * guile/scm-value.c (struct value_smob): Remove typedef.
477 * guile/scm-lazy-string.c (lazy_string_smob): Remove typedef.
478 * guile/guile-internal.h (struct scheme_variable)
479 (struct scheme_function, struct scheme_integer_constant)
480 (struct gdb_smob, struct chained_gdb_smob)
481 (struct eqable_gdb_smob, arch_smob, frame_smob, iterator_smob)
482 (objfile_smob, pspace_smob, type_smob): Remove typedef.
483 * guile/scm-pretty-print.c (pretty_printer_smob): Remove typedef.
484 (struct pretty_printer_worker_smob): Remove typedef.
485 * guile/scm-exception.c (struct exception_smob): Remove typedef.
486 * python/py-block.c (struct block_object): Remove typedef.
487 (block_syms_iterator_object): Update.
489 (block_syms_iterator_object): Remove typedef.
490 * python/py-inferior.c (struct membuf_object): Remove typedef.
491 * python/py-symtab.c (struct symtab_object): Remove typedef.
492 (set_symtab): Update.
493 (sal_object): Remove typedef.
495 * python/py-frame.c (frame_object): Remove typedef.
496 * python/py-record-btrace.c (struct btpy_list_object): Remove
498 * python/py-arch.c (struct arch_object): Remove typedef.
499 * python/py-linetable.c (struct linetable_entry_object)
500 (linetable_object, struct ltpy_iterator_object): Remove typedef.
501 * python/py-events.h (eventregistry_object): Remove typedef.
502 (struct events_object): Remove typedef.
503 * python/python-internal.h (gdbpy_breakpoint_object): Remove
505 (thread_object): Remove typedef.
506 * python/py-progspace.c (pspace_object): Remove typedef.
507 * python/py-value.c (struct value_object): Remove typedef.
508 * python/py-record.h (recpy_record_object): Remove typedef.
509 (struct recpy_element_object): Remove typedef.
510 * python/py-lazy-string.c (lazy_string_object): Remove typedef.
511 * python/py-objfile.c (objfile_object): Remove typedef.
512 * python/py-cmd.c (struct cmdpy_object): Remove typedef.
513 * python/py-type.c (type_object): Remove typedef.
514 (typy_iterator_object): Update.
516 (field_object): Remove typedef.
517 (typy_iterator_object): Remove typedef.
518 * python/py-registers.c (register_descriptor_iterator_object):
520 (struct register_descriptor_object)
521 (struct reggroup_iterator_object, struct reggroup_object): Remove
523 * python/py-record.c (recpy_gap_object): Remove typedef.
524 * python/py-symbol.c (symbol_object): Remove typedef.
525 (set_symbol): Update.
526 * python/py-event.h (event_object): Remove typedef.
527 * python/py-param.c (parmpy_object): Remove typedef.
528 * python/py-instruction.c (struct py_insn_obj): Remove typedef.
529 * python/py-unwind.c (struct pending_frame_object): Remove typedef.
530 (unwind_info_object, struct cached_frame_info): Likewise.
532 2020-12-04 Tom Tromey <tromey@adacore.com>
534 * value.c (value_internal_function_name): Make return type const.
535 * value.h (value_internal_function_name): Make return type const.
537 2020-12-04 Luis Machado <luis.machado@linaro.org>
539 * aarch64-tdep.c (submask, bit, bits): Remove.
540 * arch/aarch64-insn.c (extract_signed_bitfield): Remove.
541 (aarch64_decode_adr, aarch64_decode_b aarch64_decode_bcond)
542 (aarch64_decode_cb, aarch64_decode_tb)
543 (aarch64_decode_ldr_literal): Use sbits to extract a signed
545 * arch/aarch64-insn.h (submask, bits, bit, sbits): New macros.
547 2020-12-04 Tom de Vries <tdevries@suse.de>
550 * i386-tdep.c (i386_16_byte_align_p): Skip static fields.
552 2020-12-03 Simon Marchi <simon.marchi@polymtl.ca>
555 * dwarf2/frame.c (find_comp_unit, set_comp_unit): Reverse use of
556 dwarf2_frame_bfd_data and dwarf2_frame_objfile_data.
558 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
560 * arch/riscv.c: Include 'rv32e-xregs.c'.
561 (riscv_create_target_description): Update to handle rv32e.
562 * arch/riscv.h (struct riscv_gdbarch_features) <embedded>: New
564 <operator==>: Update to account for new field.
566 * features/Makefile (FEATURE_XMLFILES): Add riscv/rv32e-xregs.xml.
567 * features/riscv/rv32e-xregs.c: Generated.
568 * features/riscv/rv32e-xregs.xml: New file.
569 * riscv-tdep.c (riscv_debug_breakpoints): Move from later in the
571 (riscv_debug_infcall): Likewise.
572 (riscv_debug_unwinder): Likewise.
573 (riscv_debug_gdbarch): Likewise.
574 (enum riscv_register_required_status): Delete.
575 (struct riscv_register_feature): Add constructor, delete default
576 constructor, copy, and assign constructors.
577 (struct riscv_register_feature::register_info) <required>: Delete.
578 <check>: Update comment and arguments.
579 (struct riscv_register_feature) <name>: Change to member function.
580 <prefer_first_name>: Delete.
581 <tdesc_feature>: New member function.
582 <registers>: Rename to...
583 <m_registers>: ...this.
584 <m_feature_name>: New member variable.
585 (riscv_register_feature::register_info::check): Update arguments.
586 (riscv_xreg_feature): Rewrite as class, create a single static
587 instance of the class.
588 (riscv_freg_feature): Likewise.
589 (riscv_virtual_feature): Likewise.
590 (riscv_csr_feature): Likewise.
591 (riscv_create_csr_aliases): Has become a member function inside
592 riscv_csr_feature class.
593 (riscv_abi_embedded): New function definition.
594 (riscv_register_name): Adjust to use new feature objects.
595 (struct riscv_call_info) <riscv_call_info>: Check for rv32e abi,
596 and adjust available argument registers.
597 (riscv_features_from_gdbarch_info): Check for EF_RISCV_RVE flag.
598 (riscv_check_tdesc_feature): Delete.
599 (riscv_tdesc_unknown_reg): Adjust to use new feature objects.
600 (riscv_gdbarch_init): Delete target description checking code, and
601 instead call to the new feature objects to perform the checks.
602 Reorder handling of no abi information case, allows small code
604 (_initialize_riscv_tdep): Remove call, this is now done in the
605 riscv_csr_feature constructor.
606 * riscv-tdep.h (riscv_abi_embedded): Declare.
608 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
610 * riscv-tdep.c (riscv_create_csr_aliases): Remove use of
613 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
615 * riscv-tdep.c (riscv_is_unknown_csr): New function,
616 implementation moved from riscv_register_reggroup_p.
617 (riscv_register_reggroup_p): Update group handling for unknown
620 2020-12-01 Sergio Durigan Junior <sergiodj@sergiodj.net>
622 * dwarf2/read.c (dwz_search_other_debugdirs): New function.
623 (dwarf2_get_dwz_file): Convert 'filename' to a
624 std::string. Use dwz_search_other_debugdirs to search for DWZ
625 files in the debug-file-directories provided by the user as well.
627 2020-12-01 Tom Tromey <tom@tromey.com>
629 * parse.c (expr_builder::expr_builder): Initialize expout.
630 (expr_builder::release): Use expression::resize.
631 (expression::expression, expression::~expression)
632 (expression::resize): New methods.
633 (write_exp_elt): Use expression::resize.
634 (prefixify_expression): Update.
635 (increase_expout_size): Use expression::resize.
636 * expression.h (struct expression): Add constructor, destructor.
637 <resize>: New method.
638 (expression_up): Change type.
640 2020-12-01 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
641 * ppc-linux-nat.c: (PPC_DEBUG_FEATURE_DATA_BP_ARCH_31): New define.
642 (region_ok_for_hw_watchpoint): Check if 2nd DAWR is avaliable before
645 2020-11-30 Tom de Vries <tdevries@suse.de>
648 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add and handle
649 is_reference parameter.
650 (dwarf2_evaluate_property): Update dwarf2_locexpr_baton_eval call.
652 2020-11-30 Tom Tromey <tom@tromey.com>
654 * rust-lang.c (rust_op_name): Remove.
655 (exp_descriptor_rust): Update.
656 * parser-defs.h (op_name_standard): Don't declare.
657 (struct exp_descriptor) <op_name>: Remove.
658 * parse.c (exp_descriptor_standard): Update.
659 * opencl-lang.c (exp_descriptor_opencl): Update.
660 * m2-lang.c (m2_language::exp_descriptor_modula2): Update.
661 * f-lang.c (op_name_f): Remove.
662 (f_language::exp_descriptor_tab): Update.
663 * expression.h (op_name): Update.
664 * expprint.c (op_name): Rewrite.
665 (op_name_standard): Remove.
666 (dump_raw_expression, dump_subexp): Update.
667 * c-lang.c (exp_descriptor_c): Update.
668 * ax-gdb.c (gen_expr): Update.
669 * ada-lang.c (ada_op_name): Remove.
670 (ada_exp_descriptor): Update.
672 2020-11-30 Tom Tromey <tom@tromey.com>
674 * eval.c (init_array_element): Remove.
675 (evaluate_subexp_standard) <OP_ARRAY>: Remove "index_pc".
677 2020-11-29 Hannes Domani <ssbssa@yahoo.de>
680 * tui/tui-layout.c (tui_apply_current_layout): Don't delete the
681 static locator win info.
683 2020-11-28 Alex Richardson <Alexander.Richardson@cl.cam.ac.uk>
685 * acincludde.m4 (GDB_AC_CHECK_BFD): Include string.h in the test
688 2020-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
690 * printcmd.c (skip_over_slash_fmt): Reorder code to ensure in_fmt
691 is always initialized.
693 2020-11-26 Rogerio Alves <rcardoso@linux.ibm.com>
694 * MAINTAINERS (Write After Approval): Add myself.
696 2020-11-26 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
698 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
699 * features/aarch64-fpu.xml: Add named FPCR and FPSR register bit-fields.
701 2020-11-25 Tom Tromey <tom@tromey.com>
703 * eval.c (evaluate_subexp_standard): Remove unnecessary
706 2020-11-25 Tom Tromey <tom@tromey.com>
708 * d-lang.c: Include parser-defs.h.
709 * rust-lang.c: Include parser-defs.h.
710 * c-lang.h: Do not include parser-defs.h.
712 2020-11-24 Simon Marchi <simon.marchi@polymtl.ca>
714 * regcache.h (struct cached_reg): Remove typedef.
716 2020-11-24 Joel Brobecker <brobecker@adacore.com>
718 * README: Fix the URL of the MPFR library.
720 2020-11-24 Joel Brobecker <brobecker@adacore.com>
722 * README: Document the --with-libgmp-prefix configure option.
724 2020-11-24 Joel Brobecker <brobecker@adacore.com>
726 * NEWS: Add entry documenting support for DWARF-based fixed
729 2020-11-24 Joel Brobecker <brobecker@adacore.com>
731 * NEWS: Document that building GDB now requires GMP.
733 2020-11-24 Joel Brobecker <brobecker@adacore.com>
735 * typeprint.c (print_type_scalar): Add handling of
736 TYPE_CODE_FIXED_POINT.
738 2020-11-24 Joel Brobecker <brobecker@adacore.com>
740 * valarith.c (fixed_point_binop): Replace the
741 INIT_VAL_WITH_FIXED_POINT_VAL macro by a lambda. Update all
744 2020-11-24 Joel Brobecker <brobecker@adacore.com>
746 * gdbtypes.h (struct type) <fixed_point_scaling_factor>: New method,
747 replacing fixed_point_scaling_factor. All callers updated
748 throughout this project.
749 (fixed_point_scaling_factor): Delete declaration.
750 * gdbtypes.c (type::fixed_point_scaling_factor): Replaces
751 fixed_point_scaling_factor. Adjust implementation accordingly.
753 2020-11-24 Joel Brobecker <brobecker@adacore.com>
755 * gdbtypes.h (struct type) <fixed_point_type_base_type> New method,
756 replacing the fixed_point_type_base_type function. All callers
757 updated throughout this project.
758 (fixed_point_type_base_type): Remove declaration.
759 * gdbtypes.c (type::fixed_point_type_base_type): Replaces
760 fixed_point_type_base_type. Adjust implementation accordingly.
762 2020-11-24 Joel Brobecker <brobecker@adacore.com>
764 * gdbtypes.h (struct type) <fixed_point_info, set_fixed_point_info>:
766 (INIT_FIXED_POINT_SPECIFIC): Adjust.
767 (TYPE_FIXED_POINT_INFO): Delete macro.
768 (allocate_fixed_point_type_info): Change return type to void.
769 * gdbtypes.c (copy_type_recursive): Replace the use of
770 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
771 (fixed_point_scaling_factor): Likewise.
772 (allocate_fixed_point_type_info): Change return type to void.
773 Adjust implementation accordingly.
774 * dwarf2/read.c (finish_fixed_point_type): Replace the use of
775 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
777 2020-11-24 Joel Brobecker <brobecker@adacore.com>
779 * gmp-utils.h (gdb_mpz::read): Change buf and len parameters
780 into one single gdb::array_view parameter.
781 (gdb_mpz::write): Likewise.
782 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
783 * gmp-utils.c (gdb_mpz::read): Change buf and len parameters
784 into one single gdb::array_view parameter.
785 Adjust implementation accordingly.
786 (gdb_mpz::write): Likewise.
787 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
788 * unittests/gmp-utils-selftests.c: Adapt following changes above.
789 * valarith.c, valops.c, valprint.c, value.c: Likewise.
791 2020-11-24 Joel Brobecker <brobecker@adacore.com>
793 * gmp-utils.h (gmp_string_printf): Rename from gmp_string_asprintf.
794 Change return type to std::string. Update all callers.
795 * gmp-utils.c (gmp_string_printf): Likewise.
797 2020-11-24 Joel Brobecker <brobecker@adacore.com>
799 * unittests/gmp-utils-selftests.c (write_fp_test): Use mpq_set_si
800 instead of mpq_set_ui to initialize our GMP rational.
802 2020-11-23 Tom de Vries <tdevries@suse.de>
804 * debuginfod-support.c (debuginfod_source_query)
805 (debuginfod_debuginfo_query): Only set DESTNAME if successful.
807 2020-11-21 Tom Tromey <tom@tromey.com>
809 * breakpoint.c (watchpoint_exp_is_const): Return bool.
811 2020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
813 * unittests/gmp-utils-selftests.c (gdb_mpz_read_all_from_small):
815 (gdb_mpz_write_all_from_small): Likewise.
817 2020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
819 * dwarf2/read.c (finish_fixed_point_type): Use std::abs instead
822 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
824 * ctfread.c (elfctf_build_psymtabs): Use ctf_dict_open, not
825 ctf_arc_open_by_name.
827 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
829 * ctfread.c: Change uses of ctf_file_t to ctf_dict_t.
830 (ctf_fp_info::~ctf_fp_info): Call ctf_dict_close, not ctf_file_close.
832 2020-11-20 Pedro Alves <pedro@palves.net>
834 * language.c (language_arch_info::lookup_primitive_type): Use
835 gdb::function_view instead of gdb::function.
836 (template language_lookup_primitive_type): Rename to ...
837 (language_lookup_primitive_type_1): ... this, and make static.
838 (language_lookup_primitive_type(const struct language_defn *,
839 struct gdbarch *, const char *): Make non-template.
840 (language_lookup_primitive_type(const struct language_defn *,
841 struct gdbarch *, std::function<bool (struct type *)>): Make
842 non-template and use gdb::function_view.
843 * language.h (language_arch_info::lookup_primitive_type): Use
844 gdb::function_view instead of std::function.
845 (language_lookup_primitive_type): No longer template.
846 * opencl-lang.c (lookup_opencl_vector_type): 'filter' is now a
847 lambda instead of a std::function.
849 2020-11-19 Andreas Arnez <arnez@linux.ibm.com>
852 * s390-tdep.c (s390_process_record): Fix recording of STOC, STOCG,
855 2020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
857 * f-lang.c (fortran_value_subarray): Use plongest/pulongest.
859 2020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
861 * gdbarch.sh (read_core_file_mappings): Remove `other` parameter
862 in `loop_cb` parameter.
863 * gdbarch.c: Re-generate.
864 * gdbarch.h: Re-generate.
865 * arch-utils.c (default_read_core_file_mappings): Remove `other`
867 * arch-utils.h (default_read_core_file_mappings): Likewise.
868 * corelow.c (core_target::build_file_mappings): Likewise.
869 * linux-tdep.c (linux_read_core_file_mappings): Likewise.
870 (linux_core_info_proc_mappings): Likewise.
872 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
874 * Makefile.in (HFILES_NO_SRCDIR): Add f-array-walker.h.
875 * NEWS: Mention new options.
876 * f-array-walker.h: New file.
877 * f-lang.c: Include 'gdbcmd.h' and 'f-array-walker.h'.
878 (repack_array_slices): New static global.
879 (show_repack_array_slices): New function.
880 (fortran_array_slicing_debug): New static global.
881 (show_fortran_array_slicing_debug): New function.
882 (value_f90_subarray): Delete.
883 (skip_undetermined_arglist): Delete.
884 (class fortran_array_repacker_base_impl): New class.
885 (class fortran_lazy_array_repacker_impl): New class.
886 (class fortran_array_repacker_impl): New class.
887 (fortran_value_subarray): Complete rewrite.
888 (set_fortran_list): New static global.
889 (show_fortran_list): Likewise.
890 (_initialize_f_language): Register new commands.
891 (fortran_adjust_dynamic_array_base_address_hack): New function.
892 * f-lang.h (fortran_adjust_dynamic_array_base_address_hack):
894 * f-valprint.c: Include 'f-array-walker.h'.
895 (class fortran_array_printer_impl): New class.
896 (f77_print_array_1): Delete.
897 (f77_print_array): Delete.
898 (fortran_print_array): New.
899 (f_value_print_inner): Update to call fortran_print_array.
900 * gdbtypes.c: Include 'f-lang.h'.
901 (resolve_dynamic_type_internal): Call
902 fortran_adjust_dynamic_array_base_address_hack.
904 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
906 * breakpoint.c (struct watch_options): New struct.
907 (watch_option_defs): New static global.
908 (make_watch_options_def_group): New function.
909 (watch_maybe_just_location): Convert option parsing.
910 (watch_command_completer): New function.
911 (_initialize_breakpoint): Build help text using options mechanism.
913 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
915 * breakpoint.c (update_watchpoint): Pass 'false' not '0'.
916 (watch_command_1): Update parameter types. Convert locals to
918 (watch_command_wrapper): Change parameter type.
919 (watch_maybe_just_location): Change locals to bool.
920 (rwatch_command_wrapper): Update parameter type.
921 (awatch_command_wrapper): Update parameter type.
922 * breakpoint.h (watch_command_wrapper): Change parameter type.
923 (rwatch_command_wrapper): Update parameter type.
924 (awatch_command_wrapper): Update parameter type.
925 * eval.c (fetch_subexp_value): Change parameter type.
926 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition): Pass
928 * value.h (fetch_subexp_value): Change parameter type in
931 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
933 * printcmd.c (skip_over_slash_fmt): Make use of skip_to_space and
936 2020-11-18 Keith Seitz <keiths@redhat.com>
938 * linux-tdep.c (dump_note_entry_p): Return true instead of
941 2020-11-18 Tom de Vries <tdevries@suse.de>
943 * debuginfod-support.c (debuginfod_source_query)
944 (debuginfod_debuginfo_query): Also do early exit if
945 "(getenv (DEBUGINFOD_URLS_ENV_VAR))[0] == '\0'".
947 2020-11-18 Tom de Vries <tdevries@suse.de>
949 * gdbtypes.c (update_static_array_size): Fix -Werror=bool-compare
952 2020-11-17 Simon Marchi <simon.marchi@polymtl.ca>
954 * gdbtypes.h (get_array_bounds): Return bool, adjust some
955 callers. Move doc here.
956 * gdbtypes.c (get_array_bounds): Return bool
958 2020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
960 * arc-linux-tdep.c (arc_linux_sw_breakpoint_from_kind): Add an
962 * arc-tdep.c (arc_breakpoint_kind_from_pc): Likewise.
963 * disasm-selftests.c (print_one_insn_test): Fall throough from ARC
966 2020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
968 * printcmd.c: Include 'safe-ctype.c'.
969 (skip_over_slash_fmt): New function.
970 (print_command_completer): Call skip_over_slash_fmt.
971 (display_and_x_command_completer): New function.
972 (_initialize_printcmd): Add command completion for 'x' and
975 2020-11-16 Pedro Alves <pedro@palves.net>
977 * frame.c (get_prev_frame): Move get_frame_id call from here ...
978 (get_prev_frame_always_1): ... to here.
979 * inline-frame.c (inline_frame_this_id): Mention
980 get_prev_frame_always_1 in comment.
982 2020-11-15 Joel Brobecker <brobecker@adacore.com>
984 * valarith.c (fixed_point_binop): Add BINOP_EQUAL and BINOP_LESS
986 (value_less): Add fixed-point handling.
988 2020-11-15 Joel Brobecker <brobecker@adacore.com>
990 * eval.c (binop_promote): Add fixed-point type handling.
991 * valarith.c (fixed_point_binop): New function.
992 (scalar_binop): Add fixed-point type handling.
993 (value_neg): Add fixed-point type handling.
994 * valops.c (value_cast_to_fixed_point): New function.
995 (value_cast): Add fixed-point type handling.
997 2020-11-15 Joel Brobecker <brobecker@adacore.com>
999 * ada-typeprint.c (ada_print_type): Add handing of fixed-point
1001 * c-typeprint.c (c_type_print_varspec_prefix)
1002 (c_type_print_varspec_suffix, c_type_print_base_1): Add
1003 TYPE_CODE_FIXED_POINT handling.
1004 * p-typeprint.c (pascal_type_print_varspec_prefix)
1005 (pascal_type_print_varspec_suffix): Likewise.
1006 * typeprint.c (print_type_fixed_point): New function.
1007 * typeprint.h (print_type_fixed_point): Add declaration.
1009 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1011 * printcmd.c (print_scalar_formatted): Add fixed-point type
1012 handling when options->format is set.
1014 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1016 * ada-valprint.c (ada_value_print_1): Add fixed-point type handling.
1017 * dwarf2/read.c (get_dwarf2_rational_constant)
1018 (get_dwarf2_unsigned_rational_constant, finish_fixed_point_type)
1019 (has_zero_over_zero_small_attribute): New functions.
1020 read_base_type, set_die_type): Add fixed-point type handling.
1021 * gdb-gdb.py.in: Add fixed-point type handling.
1022 * gdbtypes.c: #include "gmp-utils.h".
1023 (create_range_type, set_type_code): Add fixed-point type handling.
1024 (init_fixed_point_type): New function.
1025 (is_integral_type, is_scalar_type): Add fixed-point type handling.
1026 (print_fixed_point_type_info): New function.
1027 (recursive_dump_type, copy_type_recursive): Add fixed-point type
1029 (fixed_point_type_storage): New typedef.
1030 (fixed_point_objfile_key): New static global.
1031 (allocate_fixed_point_type_info, is_fixed_point_type): New functions.
1032 (fixed_point_type_base_type, fixed_point_scaling_factor): New
1034 * gdbtypes.h: #include "gmp-utils.h".
1035 (enum type_code) <TYPE_SPECIFIC_FIXED_POINT>: New enum.
1036 (union type_specific) <fixed_point_info>: New field.
1037 (struct fixed_point_type_info): New struct.
1038 (INIT_FIXED_POINT_SPECIFIC, TYPE_FIXED_POINT_INFO): New macros.
1039 (init_fixed_point_type, is_fixed_point_type)
1040 (fixed_point_type_base_type, fixed_point_scaling_factor)
1041 (allocate_fixed_point_type_info): Add declarations.
1042 * valprint.c (generic_val_print_fixed_point): New function.
1043 (generic_value_print): Add fixed-point type handling.
1044 * value.c (value_as_address, unpack_long): Add fixed-point type
1047 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1049 * utils.h (uinteger_pow): Add declaration.
1050 * utils.c (uinteger_pow): Moved here (without changes)...
1051 * valarith.c (uinteger_pow): ... from here.
1053 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1055 * gmp-utils.h, gmp-utils.c: New file.
1056 * unittests/gmp-utils-selftests.c: New file.
1057 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1058 unittests/gmp-utils-selftests.c.
1059 (COMMON_SFILES) Add gmp-utils.c.
1060 (HFILES_NO_SRCDIR): Add gmp-utils.h.
1062 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1064 * configure.ac: Generate an error if a usable GMP library
1066 * configure: Regenerate.
1068 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1070 * configure.ac: Add support for --with-libgmp-prefix.
1071 * Makefile.in (LIBGMP): New variable.
1072 (CLIBS): Include $(LIBGMP).
1073 * configure, config.in: Regenerate
1075 2020-11-14 Andrew Burgess <andrew.burgess@embecosm.com>
1078 * f-exp.y (COMPLETE): New token.
1079 (exp): Two new rules for tab-completion.
1080 (saw_name_at_eof): New static global.
1081 (last_was_structop): Likewise.
1082 (yylex): Set new variables, and return COMPLETE token at the end
1083 of the input stream in some cases.
1085 2020-11-14 Tom Tromey <tom@tromey.com>
1087 * infrun.c (fetch_inferior_event): Use "bool" for should_stop.
1089 2020-11-14 Tom Tromey <tom@tromey.com>
1091 * opencl-lang.c (opencl_component_ref): Make "comps" const.
1093 2020-11-14 Simon Marchi <simon.marchi@polymtl.ca>
1095 * arm-tdep.c (class arm_instruction_reader) <read>: Fix comment.
1097 2020-11-13 Tom Tromey <tom@tromey.com>
1099 * c-lang.c (convert_ucn, convert_octal, convert_hex)
1100 (convert_escape, parse_one_string): Constify.
1102 2020-11-13 Keith Seitz <keiths@redhat.com>
1104 https://bugzilla.redhat.com/show_bug.cgi?id=1553086
1105 * elfread.c (elf_symfile_segments): Omit "Loadable section ...
1106 outside of ELF segments" warning for debugin
1108 2020-11-13 Keith Seitz <keiths@redhat.com>
1111 * elfread.c (elf_symfile_segments): Output a BFD file name
1112 for the "Loadable section ... outside of ELF segments" warning.
1114 2020-11-13 Simon Marchi <simon.marchi@polymtl.ca>
1117 * arm-tdep.c (class arm_instruction_reader): New.
1118 (target_arm_instruction_reader): New.
1119 (arm_analyze_prologue): Add instruction reader parameter and use
1120 it. Use arm_expand_immediate.
1121 (class target_arm_instruction_reader): Adjust.
1122 (arm_skip_prologue): Adjust.
1123 (arm_expand_immediate): New.
1124 (arm_scan_prologue): Adjust.
1125 (arm_analyze_prologue_test): New.
1126 (class test_arm_instruction_reader): New.
1128 2020-11-13 Andrew Burgess <andrew.burgess@embecosm.com>
1130 * f-lang.c (fortran_argument_convert): Add declaration. Add
1131 header comment, taken from f-lang.h. Make static.
1132 * f-lang.h (f77_get_dynamic_array_length): Delete declaration.
1133 (fortran_argument_convert): Delete declaration.
1135 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1137 * ada-exp.y (find_primitive_type): Make parameter const.
1138 * ada-lang.c (enum ada_primitive_types): Delete.
1139 (ada_language::language_arch_info): Update.
1140 * c-lang.c (enum c_primitive_types): Delete.
1141 (c_language_arch_info): Update.
1142 (enum cplus_primitive_types): Delete.
1143 (cplus_language::language_arch_info): Update.
1144 * d-lang.c (enum d_primitive_types): Delete.
1145 (d_language::language_arch_info): Update.
1146 * f-lang.c (enum f_primitive_types): Delete.
1147 (f_language::language_arch_info): Update.
1148 * go-lang.c (enum go_primitive_types): Delete.
1149 (go_language::language_arch_info): Update.
1150 * language.c (auto_or_unknown_language::language_arch_info):
1152 (language_gdbarch_post_init): Use obstack_new, use array indexing.
1153 (language_string_char_type): Add header comment, call function in
1155 (language_bool_type): Likewise
1156 (language_arch_info::bool_type): Define.
1157 (language_lookup_primitive_type_1): Delete.
1158 (language_lookup_primitive_type): Rewrite as a templated function
1159 to call function in language_arch_info, then instantiate twice.
1160 (language_arch_info::type_and_symbol::alloc_type_symbol): Define.
1161 (language_arch_info::lookup_primitive_type_and_symbol): Define.
1162 (language_arch_info::lookup_primitive_type): Define twice with
1163 different signatures.
1164 (language_arch_info::lookup_primitive_type_as_symbol): Define.
1165 (language_lookup_primitive_type_as_symbol): Rewrite to call a
1166 member function in language_arch_info.
1167 * language.h (language_arch_info): Complete rewrite.
1168 (language_lookup_primitive_type): Make templated.
1169 * m2-lang.c (enum m2_primitive_types): Delete.
1170 (m2_language::language_arch_info): Update.
1171 * opencl-lang.c (OCL_P_TYPE): Delete.
1172 (enum opencl_primitive_types): Delete.
1173 (opencl_type_data): Delete.
1174 (builtin_opencl_type): Delete.
1175 (lookup_opencl_vector_type): Update.
1176 (opencl_language::language_arch_info): Update, lots of content
1178 (build_opencl_types): ...here. This function is now deleted.
1179 (_initialize_opencl_language): Delete.
1180 * p-lang.c (enum pascal_primitive_types): Delete.
1181 (pascal_language::language_arch_info): Update.
1182 * rust-lang.c (enum rust_primitive_types): Delete.
1183 (rust_language::language_arch_info): Update.
1185 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1187 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix call to
1190 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1192 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix typo in
1195 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1197 * dwarf2/read.c (dwarf_read_debug_printf,
1198 dwarf_read_debug_printf_v): New macros, use throughout the file.
1200 2020-11-12 Shahab Vahedi <shahab@synopsys.com>
1203 * arc-linux-tdep.c (collect_register): Populate "eret" by
1204 "pc" value from the regcache when asked for "pc" value.
1206 2020-11-12 Tom Tromey <tom@tromey.com>
1209 * symtab.c (find_symbol_at_address): Search symtabs if no psymtabs
1212 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1214 * features/Makefile (XMLTOC): Add rx.xml.
1215 (FEATURE_XMLFILES): Remove rx.xml.
1216 (FEATURE_CFILES rule): Pass '-single-feature' flag.
1217 * features/rx.c: Regenerate.
1218 * features/rx.xml: Wrap in `target` tags, and reindent.
1219 * target-descriptions.c (struct maint_print_c_tdesc_options): New
1221 (maint_print_c_tdesc_opt_def): New typedef.
1222 (maint_print_c_tdesc_opt_defs): New static global.
1223 (make_maint_print_c_tdesc_options_def_group): New function.
1224 (maint_print_c_tdesc_cmd): Make use of command line flags, only
1225 print single feature C file for target descriptions containing a
1227 (maint_print_c_tdesc_cmd_completer): New function.
1228 (_initialize_target_descriptions): Update call to register command
1229 completer, and include command line flag in help text.
1231 2020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
1233 * riscv-tdep.c (riscv_dwarf_reg_to_regnum): Decode DWARF CSR
1235 * riscv-tdep.h (RISCV_DWARF_FIRST_CSR, RISCV_DWARF_LAST_CSR): New
1238 2020-11-10 Tom Tromey <tom@tromey.com>
1240 * value.h (internalvar_name): Update.
1241 * value.c (internalvar_name): Make return type const.
1243 2020-11-10 Tom Tromey <tom@tromey.com>
1245 * ax-gdb.c (gen_struct_elt_for_reference, gen_namespace_elt)
1246 (gen_maybe_namespace_elt, gen_aggregate_elt_ref, gen_expr): Use
1249 2020-11-10 Tom Tromey <tom@tromey.com>
1251 * objc-lang.h (value_nsstring): Update.
1252 * objc-lang.c (value_nsstring): Make "ptr" const.
1254 2020-11-06 Andrew Burgess <andrew.burgess@embecosm.com>
1256 * expprint.c (print_subexp_funcall): Increment expression position
1257 after reading argument count.
1258 * f-lang.c (print_subexp_f): Skip over opcode before calling
1260 (dump_subexp_body_f): Likewise.
1262 2020-11-06 Romain Geissler <romain.geissler@amadeus.com>
1265 * configure: Regenerate.
1266 * configure.ac: Check for python modules ctypes instead of
1269 2020-11-06 Pedro Alves <pedro@palves.net>
1271 * macroexp.c (struct macro_buffer): Split in two classes. Add
1273 (struct shared_macro_buffer): New, factored out from struct
1275 (struct growable_macro_buffer): New, factored out from struct
1277 (set_token, get_comment, get_identifier, get_pp_number)
1278 (get_character_constant, get_string_literal, get_punctuator)
1279 (get_next_token_for_substitution): Constify parameters.
1280 (substitute_args): Constify locals.
1282 2020-11-05 Tom Tromey <tom@tromey.com>
1284 * dwarf2/read.c (read_cutu_die_from_dwo)
1285 (cutu_reader::cutu_reader, cutu_reader::cutu_reader)
1286 (build_type_psymtabs_1): Update.
1287 * dwarf2/abbrev.h (struct abbrev_table): Remove objfile
1289 * dwarf2/abbrev.c (abbrev_table::read): Remove objfile parameter.
1290 Don't read section. Add assert.
1292 2020-11-04 Tom Tromey <tromey@adacore.com>
1294 * ada-typeprint.c (ada_print_type): Handle __XVL fields.
1296 2020-11-04 Tom Tromey <tromey@adacore.com>
1298 * ada-typeprint.c (ada_print_type): Handle __T types.
1300 2020-11-04 Tom Tromey <tromey@adacore.com>
1302 * dwarf2/read.c (add_partial_symbol, process_die):
1303 Handle DW_TAG_array_type.
1304 (is_type_tag_for_partial): Add "lang" parameter.
1305 (load_partial_dies, new_symbol): Handle DW_TAG_array_type.
1307 2020-11-04 Tom Tromey <tromey@adacore.com>
1309 * ada-lang.c (ada_value_slice_from_ptr): Use bit size.
1311 2020-11-04 Tom Tromey <tromey@adacore.com>
1313 * dwarf2/read.c (read_array_type): Only apply stride to innermost
1316 2020-11-04 Tom Tromey <tromey@adacore.com>
1318 * gdbtypes.c (update_static_array_size): Handle bit stride.
1320 2020-11-04 Tom Tromey <tromey@adacore.com>
1322 * ada-lang.c (ada_value_struct_elt): Resolve dynamic type.
1324 2020-11-04 Tom Tromey <tromey@adacore.com>
1326 * ada-lang.c (ada_is_any_packed_array_type): New function.
1327 (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it.
1329 2020-11-04 Tom Tromey <tromey@adacore.com>
1331 * dwarf2/read.c (recognize_bound_expression)
1332 (quirk_ada_thick_pointer): New functions.
1333 (read_array_type): Call quirk_ada_thick_pointer.
1334 (set_die_type): Add "skip_data_location" parameter.
1335 (quirk_ada_thick_pointer): New function.
1336 (process_structure_scope): Call quirk_ada_thick_pointer.
1337 * ada-lang.c (ada_is_unconstrained_packed_array_type)
1338 (decode_packed_array_bitsize): Handle thick pointers without
1340 (ada_is_gnat_encoded_packed_array_type): Rename from
1341 ada_is_packed_array_type.
1342 (ada_is_constrained_packed_array_type): Update.
1343 * ada-valprint.c (ada_val_print_gnat_array): Remove.
1344 (ada_value_print_1): Use ada_get_decoded_value.
1346 2020-11-04 Tom Tromey <tromey@adacore.com>
1348 * ada-lang.c (recursively_update_array_bitsize): New function.
1349 (decode_constrained_packed_array_type): Call it.
1351 2020-11-04 Tom Tromey <tromey@adacore.com>
1353 * ada-lang.c (to_fixed_array_type): Error if
1354 decode_constrained_packed_array_type returns NULL.
1356 2020-11-04 Tom Tromey <tromey@adacore.com>
1358 * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
1360 2020-11-02 Tom Tromey <tromey@adacore.com>
1362 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
1363 (ALLDEPFILES): Add amd64-ravenscar-thread.c.
1364 (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
1365 * amd64-ravenscar-thread.c: New file.
1366 * amd64-ravenscar-thread.h: New file.
1367 * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
1368 * configure.tgt (amd64_tobjs): Add ravenscar objects.
1370 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1372 * main.c (execute_cmdargs): New function.
1373 (captured_main_1): Make use of execute_cmdargs.
1375 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1377 * NEWS: Mention changes to config file search path.
1380 2020-11-02 Tom Tromey <tromey@adacore.com>
1382 * python/python.c: Consolidate two HAVE_PYTHON blocks.
1383 (python_GdbModuleDef): Move earlier. Now static.
1384 (do_start_initialization): Consolidate some IS_PY3K blocks.
1386 2020-11-02 Simon Marchi <simon.marchi@efficios.com>
1388 * aarch64-linux-tdep.c: Fix indentation.
1389 * aarch64-ravenscar-thread.c: Fix indentation.
1390 * aarch64-tdep.c: Fix indentation.
1391 * aarch64-tdep.h: Fix indentation.
1392 * ada-lang.c: Fix indentation.
1393 * ada-lang.h: Fix indentation.
1394 * ada-tasks.c: Fix indentation.
1395 * ada-typeprint.c: Fix indentation.
1396 * ada-valprint.c: Fix indentation.
1397 * ada-varobj.c: Fix indentation.
1398 * addrmap.c: Fix indentation.
1399 * addrmap.h: Fix indentation.
1400 * agent.c: Fix indentation.
1401 * aix-thread.c: Fix indentation.
1402 * alpha-bsd-nat.c: Fix indentation.
1403 * alpha-linux-tdep.c: Fix indentation.
1404 * alpha-mdebug-tdep.c: Fix indentation.
1405 * alpha-nbsd-tdep.c: Fix indentation.
1406 * alpha-obsd-tdep.c: Fix indentation.
1407 * alpha-tdep.c: Fix indentation.
1408 * amd64-bsd-nat.c: Fix indentation.
1409 * amd64-darwin-tdep.c: Fix indentation.
1410 * amd64-linux-nat.c: Fix indentation.
1411 * amd64-linux-tdep.c: Fix indentation.
1412 * amd64-nat.c: Fix indentation.
1413 * amd64-obsd-tdep.c: Fix indentation.
1414 * amd64-tdep.c: Fix indentation.
1415 * amd64-windows-tdep.c: Fix indentation.
1416 * annotate.c: Fix indentation.
1417 * arc-tdep.c: Fix indentation.
1418 * arch-utils.c: Fix indentation.
1419 * arch/arm-get-next-pcs.c: Fix indentation.
1420 * arch/arm.c: Fix indentation.
1421 * arm-linux-nat.c: Fix indentation.
1422 * arm-linux-tdep.c: Fix indentation.
1423 * arm-nbsd-tdep.c: Fix indentation.
1424 * arm-pikeos-tdep.c: Fix indentation.
1425 * arm-tdep.c: Fix indentation.
1426 * arm-tdep.h: Fix indentation.
1427 * arm-wince-tdep.c: Fix indentation.
1428 * auto-load.c: Fix indentation.
1429 * auxv.c: Fix indentation.
1430 * avr-tdep.c: Fix indentation.
1431 * ax-gdb.c: Fix indentation.
1432 * ax-general.c: Fix indentation.
1433 * bfin-linux-tdep.c: Fix indentation.
1434 * block.c: Fix indentation.
1435 * block.h: Fix indentation.
1436 * blockframe.c: Fix indentation.
1437 * bpf-tdep.c: Fix indentation.
1438 * break-catch-sig.c: Fix indentation.
1439 * break-catch-syscall.c: Fix indentation.
1440 * break-catch-throw.c: Fix indentation.
1441 * breakpoint.c: Fix indentation.
1442 * breakpoint.h: Fix indentation.
1443 * bsd-uthread.c: Fix indentation.
1444 * btrace.c: Fix indentation.
1445 * build-id.c: Fix indentation.
1446 * buildsym-legacy.h: Fix indentation.
1447 * buildsym.c: Fix indentation.
1448 * c-typeprint.c: Fix indentation.
1449 * c-valprint.c: Fix indentation.
1450 * c-varobj.c: Fix indentation.
1451 * charset.c: Fix indentation.
1452 * cli/cli-cmds.c: Fix indentation.
1453 * cli/cli-decode.c: Fix indentation.
1454 * cli/cli-decode.h: Fix indentation.
1455 * cli/cli-script.c: Fix indentation.
1456 * cli/cli-setshow.c: Fix indentation.
1457 * coff-pe-read.c: Fix indentation.
1458 * coffread.c: Fix indentation.
1459 * compile/compile-cplus-types.c: Fix indentation.
1460 * compile/compile-object-load.c: Fix indentation.
1461 * compile/compile-object-run.c: Fix indentation.
1462 * completer.c: Fix indentation.
1463 * corefile.c: Fix indentation.
1464 * corelow.c: Fix indentation.
1465 * cp-abi.h: Fix indentation.
1466 * cp-namespace.c: Fix indentation.
1467 * cp-support.c: Fix indentation.
1468 * cp-valprint.c: Fix indentation.
1469 * cris-linux-tdep.c: Fix indentation.
1470 * cris-tdep.c: Fix indentation.
1471 * darwin-nat-info.c: Fix indentation.
1472 * darwin-nat.c: Fix indentation.
1473 * darwin-nat.h: Fix indentation.
1474 * dbxread.c: Fix indentation.
1475 * dcache.c: Fix indentation.
1476 * disasm.c: Fix indentation.
1477 * dtrace-probe.c: Fix indentation.
1478 * dwarf2/abbrev.c: Fix indentation.
1479 * dwarf2/attribute.c: Fix indentation.
1480 * dwarf2/expr.c: Fix indentation.
1481 * dwarf2/frame.c: Fix indentation.
1482 * dwarf2/index-cache.c: Fix indentation.
1483 * dwarf2/index-write.c: Fix indentation.
1484 * dwarf2/line-header.c: Fix indentation.
1485 * dwarf2/loc.c: Fix indentation.
1486 * dwarf2/macro.c: Fix indentation.
1487 * dwarf2/read.c: Fix indentation.
1488 * dwarf2/read.h: Fix indentation.
1489 * elfread.c: Fix indentation.
1490 * eval.c: Fix indentation.
1491 * event-top.c: Fix indentation.
1492 * exec.c: Fix indentation.
1493 * exec.h: Fix indentation.
1494 * expprint.c: Fix indentation.
1495 * f-lang.c: Fix indentation.
1496 * f-typeprint.c: Fix indentation.
1497 * f-valprint.c: Fix indentation.
1498 * fbsd-nat.c: Fix indentation.
1499 * fbsd-tdep.c: Fix indentation.
1500 * findvar.c: Fix indentation.
1501 * fork-child.c: Fix indentation.
1502 * frame-unwind.c: Fix indentation.
1503 * frame-unwind.h: Fix indentation.
1504 * frame.c: Fix indentation.
1505 * frv-linux-tdep.c: Fix indentation.
1506 * frv-tdep.c: Fix indentation.
1507 * frv-tdep.h: Fix indentation.
1508 * ft32-tdep.c: Fix indentation.
1509 * gcore.c: Fix indentation.
1510 * gdb_bfd.c: Fix indentation.
1511 * gdbarch.sh: Fix indentation.
1512 * gdbarch.c: Re-generate
1513 * gdbarch.h: Re-generate.
1514 * gdbcore.h: Fix indentation.
1515 * gdbthread.h: Fix indentation.
1516 * gdbtypes.c: Fix indentation.
1517 * gdbtypes.h: Fix indentation.
1518 * glibc-tdep.c: Fix indentation.
1519 * gnu-nat.c: Fix indentation.
1520 * gnu-nat.h: Fix indentation.
1521 * gnu-v2-abi.c: Fix indentation.
1522 * gnu-v3-abi.c: Fix indentation.
1523 * go32-nat.c: Fix indentation.
1524 * guile/guile-internal.h: Fix indentation.
1525 * guile/scm-cmd.c: Fix indentation.
1526 * guile/scm-frame.c: Fix indentation.
1527 * guile/scm-iterator.c: Fix indentation.
1528 * guile/scm-math.c: Fix indentation.
1529 * guile/scm-ports.c: Fix indentation.
1530 * guile/scm-pretty-print.c: Fix indentation.
1531 * guile/scm-value.c: Fix indentation.
1532 * h8300-tdep.c: Fix indentation.
1533 * hppa-linux-nat.c: Fix indentation.
1534 * hppa-linux-tdep.c: Fix indentation.
1535 * hppa-nbsd-nat.c: Fix indentation.
1536 * hppa-nbsd-tdep.c: Fix indentation.
1537 * hppa-obsd-nat.c: Fix indentation.
1538 * hppa-tdep.c: Fix indentation.
1539 * hppa-tdep.h: Fix indentation.
1540 * i386-bsd-nat.c: Fix indentation.
1541 * i386-darwin-nat.c: Fix indentation.
1542 * i386-darwin-tdep.c: Fix indentation.
1543 * i386-dicos-tdep.c: Fix indentation.
1544 * i386-gnu-nat.c: Fix indentation.
1545 * i386-linux-nat.c: Fix indentation.
1546 * i386-linux-tdep.c: Fix indentation.
1547 * i386-nto-tdep.c: Fix indentation.
1548 * i386-obsd-tdep.c: Fix indentation.
1549 * i386-sol2-nat.c: Fix indentation.
1550 * i386-tdep.c: Fix indentation.
1551 * i386-tdep.h: Fix indentation.
1552 * i386-windows-tdep.c: Fix indentation.
1553 * i387-tdep.c: Fix indentation.
1554 * i387-tdep.h: Fix indentation.
1555 * ia64-libunwind-tdep.c: Fix indentation.
1556 * ia64-libunwind-tdep.h: Fix indentation.
1557 * ia64-linux-nat.c: Fix indentation.
1558 * ia64-linux-tdep.c: Fix indentation.
1559 * ia64-tdep.c: Fix indentation.
1560 * ia64-tdep.h: Fix indentation.
1561 * ia64-vms-tdep.c: Fix indentation.
1562 * infcall.c: Fix indentation.
1563 * infcmd.c: Fix indentation.
1564 * inferior.c: Fix indentation.
1565 * infrun.c: Fix indentation.
1566 * iq2000-tdep.c: Fix indentation.
1567 * language.c: Fix indentation.
1568 * linespec.c: Fix indentation.
1569 * linux-fork.c: Fix indentation.
1570 * linux-nat.c: Fix indentation.
1571 * linux-tdep.c: Fix indentation.
1572 * linux-thread-db.c: Fix indentation.
1573 * lm32-tdep.c: Fix indentation.
1574 * m2-lang.c: Fix indentation.
1575 * m2-typeprint.c: Fix indentation.
1576 * m2-valprint.c: Fix indentation.
1577 * m32c-tdep.c: Fix indentation.
1578 * m32r-linux-tdep.c: Fix indentation.
1579 * m32r-tdep.c: Fix indentation.
1580 * m68hc11-tdep.c: Fix indentation.
1581 * m68k-bsd-nat.c: Fix indentation.
1582 * m68k-linux-nat.c: Fix indentation.
1583 * m68k-linux-tdep.c: Fix indentation.
1584 * m68k-tdep.c: Fix indentation.
1585 * machoread.c: Fix indentation.
1586 * macrocmd.c: Fix indentation.
1587 * macroexp.c: Fix indentation.
1588 * macroscope.c: Fix indentation.
1589 * macrotab.c: Fix indentation.
1590 * macrotab.h: Fix indentation.
1591 * main.c: Fix indentation.
1592 * mdebugread.c: Fix indentation.
1593 * mep-tdep.c: Fix indentation.
1594 * mi/mi-cmd-catch.c: Fix indentation.
1595 * mi/mi-cmd-disas.c: Fix indentation.
1596 * mi/mi-cmd-env.c: Fix indentation.
1597 * mi/mi-cmd-stack.c: Fix indentation.
1598 * mi/mi-cmd-var.c: Fix indentation.
1599 * mi/mi-cmds.c: Fix indentation.
1600 * mi/mi-main.c: Fix indentation.
1601 * mi/mi-parse.c: Fix indentation.
1602 * microblaze-tdep.c: Fix indentation.
1603 * minidebug.c: Fix indentation.
1604 * minsyms.c: Fix indentation.
1605 * mips-linux-nat.c: Fix indentation.
1606 * mips-linux-tdep.c: Fix indentation.
1607 * mips-nbsd-tdep.c: Fix indentation.
1608 * mips-tdep.c: Fix indentation.
1609 * mn10300-linux-tdep.c: Fix indentation.
1610 * mn10300-tdep.c: Fix indentation.
1611 * moxie-tdep.c: Fix indentation.
1612 * msp430-tdep.c: Fix indentation.
1613 * namespace.h: Fix indentation.
1614 * nat/fork-inferior.c: Fix indentation.
1615 * nat/gdb_ptrace.h: Fix indentation.
1616 * nat/linux-namespaces.c: Fix indentation.
1617 * nat/linux-osdata.c: Fix indentation.
1618 * nat/netbsd-nat.c: Fix indentation.
1619 * nat/x86-dregs.c: Fix indentation.
1620 * nbsd-nat.c: Fix indentation.
1621 * nbsd-tdep.c: Fix indentation.
1622 * nios2-linux-tdep.c: Fix indentation.
1623 * nios2-tdep.c: Fix indentation.
1624 * nto-procfs.c: Fix indentation.
1625 * nto-tdep.c: Fix indentation.
1626 * objfiles.c: Fix indentation.
1627 * objfiles.h: Fix indentation.
1628 * opencl-lang.c: Fix indentation.
1629 * or1k-tdep.c: Fix indentation.
1630 * osabi.c: Fix indentation.
1631 * osabi.h: Fix indentation.
1632 * osdata.c: Fix indentation.
1633 * p-lang.c: Fix indentation.
1634 * p-typeprint.c: Fix indentation.
1635 * p-valprint.c: Fix indentation.
1636 * parse.c: Fix indentation.
1637 * ppc-linux-nat.c: Fix indentation.
1638 * ppc-linux-tdep.c: Fix indentation.
1639 * ppc-nbsd-nat.c: Fix indentation.
1640 * ppc-nbsd-tdep.c: Fix indentation.
1641 * ppc-obsd-nat.c: Fix indentation.
1642 * ppc-ravenscar-thread.c: Fix indentation.
1643 * ppc-sysv-tdep.c: Fix indentation.
1644 * ppc64-tdep.c: Fix indentation.
1645 * printcmd.c: Fix indentation.
1646 * proc-api.c: Fix indentation.
1647 * producer.c: Fix indentation.
1648 * producer.h: Fix indentation.
1649 * prologue-value.c: Fix indentation.
1650 * prologue-value.h: Fix indentation.
1651 * psymtab.c: Fix indentation.
1652 * python/py-arch.c: Fix indentation.
1653 * python/py-bpevent.c: Fix indentation.
1654 * python/py-event.c: Fix indentation.
1655 * python/py-event.h: Fix indentation.
1656 * python/py-finishbreakpoint.c: Fix indentation.
1657 * python/py-frame.c: Fix indentation.
1658 * python/py-framefilter.c: Fix indentation.
1659 * python/py-inferior.c: Fix indentation.
1660 * python/py-infthread.c: Fix indentation.
1661 * python/py-objfile.c: Fix indentation.
1662 * python/py-prettyprint.c: Fix indentation.
1663 * python/py-registers.c: Fix indentation.
1664 * python/py-signalevent.c: Fix indentation.
1665 * python/py-stopevent.c: Fix indentation.
1666 * python/py-stopevent.h: Fix indentation.
1667 * python/py-threadevent.c: Fix indentation.
1668 * python/py-tui.c: Fix indentation.
1669 * python/py-unwind.c: Fix indentation.
1670 * python/py-value.c: Fix indentation.
1671 * python/py-xmethods.c: Fix indentation.
1672 * python/python-internal.h: Fix indentation.
1673 * python/python.c: Fix indentation.
1674 * ravenscar-thread.c: Fix indentation.
1675 * record-btrace.c: Fix indentation.
1676 * record-full.c: Fix indentation.
1677 * record.c: Fix indentation.
1678 * reggroups.c: Fix indentation.
1679 * regset.h: Fix indentation.
1680 * remote-fileio.c: Fix indentation.
1681 * remote.c: Fix indentation.
1682 * reverse.c: Fix indentation.
1683 * riscv-linux-tdep.c: Fix indentation.
1684 * riscv-ravenscar-thread.c: Fix indentation.
1685 * riscv-tdep.c: Fix indentation.
1686 * rl78-tdep.c: Fix indentation.
1687 * rs6000-aix-tdep.c: Fix indentation.
1688 * rs6000-lynx178-tdep.c: Fix indentation.
1689 * rs6000-nat.c: Fix indentation.
1690 * rs6000-tdep.c: Fix indentation.
1691 * rust-lang.c: Fix indentation.
1692 * rx-tdep.c: Fix indentation.
1693 * s12z-tdep.c: Fix indentation.
1694 * s390-linux-tdep.c: Fix indentation.
1695 * score-tdep.c: Fix indentation.
1696 * ser-base.c: Fix indentation.
1697 * ser-mingw.c: Fix indentation.
1698 * ser-uds.c: Fix indentation.
1699 * ser-unix.c: Fix indentation.
1700 * serial.c: Fix indentation.
1701 * sh-linux-tdep.c: Fix indentation.
1702 * sh-nbsd-tdep.c: Fix indentation.
1703 * sh-tdep.c: Fix indentation.
1704 * skip.c: Fix indentation.
1705 * sol-thread.c: Fix indentation.
1706 * solib-aix.c: Fix indentation.
1707 * solib-darwin.c: Fix indentation.
1708 * solib-frv.c: Fix indentation.
1709 * solib-svr4.c: Fix indentation.
1710 * solib.c: Fix indentation.
1711 * source.c: Fix indentation.
1712 * sparc-linux-tdep.c: Fix indentation.
1713 * sparc-nbsd-tdep.c: Fix indentation.
1714 * sparc-obsd-tdep.c: Fix indentation.
1715 * sparc-ravenscar-thread.c: Fix indentation.
1716 * sparc-tdep.c: Fix indentation.
1717 * sparc64-linux-tdep.c: Fix indentation.
1718 * sparc64-nbsd-tdep.c: Fix indentation.
1719 * sparc64-obsd-tdep.c: Fix indentation.
1720 * sparc64-tdep.c: Fix indentation.
1721 * stabsread.c: Fix indentation.
1722 * stack.c: Fix indentation.
1723 * stap-probe.c: Fix indentation.
1724 * stubs/ia64vms-stub.c: Fix indentation.
1725 * stubs/m32r-stub.c: Fix indentation.
1726 * stubs/m68k-stub.c: Fix indentation.
1727 * stubs/sh-stub.c: Fix indentation.
1728 * stubs/sparc-stub.c: Fix indentation.
1729 * symfile-mem.c: Fix indentation.
1730 * symfile.c: Fix indentation.
1731 * symfile.h: Fix indentation.
1732 * symmisc.c: Fix indentation.
1733 * symtab.c: Fix indentation.
1734 * symtab.h: Fix indentation.
1735 * target-float.c: Fix indentation.
1736 * target.c: Fix indentation.
1737 * target.h: Fix indentation.
1738 * tic6x-tdep.c: Fix indentation.
1739 * tilegx-linux-tdep.c: Fix indentation.
1740 * tilegx-tdep.c: Fix indentation.
1741 * top.c: Fix indentation.
1742 * tracefile-tfile.c: Fix indentation.
1743 * tracepoint.c: Fix indentation.
1744 * tui/tui-disasm.c: Fix indentation.
1745 * tui/tui-io.c: Fix indentation.
1746 * tui/tui-regs.c: Fix indentation.
1747 * tui/tui-stack.c: Fix indentation.
1748 * tui/tui-win.c: Fix indentation.
1749 * tui/tui-winsource.c: Fix indentation.
1750 * tui/tui.c: Fix indentation.
1751 * typeprint.c: Fix indentation.
1752 * ui-out.h: Fix indentation.
1753 * unittests/copy_bitwise-selftests.c: Fix indentation.
1754 * unittests/memory-map-selftests.c: Fix indentation.
1755 * utils.c: Fix indentation.
1756 * v850-tdep.c: Fix indentation.
1757 * valarith.c: Fix indentation.
1758 * valops.c: Fix indentation.
1759 * valprint.c: Fix indentation.
1760 * valprint.h: Fix indentation.
1761 * value.c: Fix indentation.
1762 * value.h: Fix indentation.
1763 * varobj.c: Fix indentation.
1764 * vax-tdep.c: Fix indentation.
1765 * windows-nat.c: Fix indentation.
1766 * windows-tdep.c: Fix indentation.
1767 * xcoffread.c: Fix indentation.
1768 * xml-syscall.c: Fix indentation.
1769 * xml-tdesc.c: Fix indentation.
1770 * xstormy16-tdep.c: Fix indentation.
1771 * xtensa-config.c: Fix indentation.
1772 * xtensa-linux-nat.c: Fix indentation.
1773 * xtensa-linux-tdep.c: Fix indentation.
1774 * xtensa-tdep.c: Fix indentation.
1776 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1777 Craig Blackmore <craig.blackmore@embecosm.com>
1779 * riscv-tdep.c (riscv_frame_cache): Read the frame base register
1780 as an unsigned value.
1782 2020-11-01 Tom Tromey <tom@tromey.com>
1784 * dbxread.c (dbx_end_psymtab): Update.
1785 * dwarf2/read.c (process_psymtab_comp_unit_reader)
1786 (build_type_psymtabs_reader): Update.
1787 * xcoffread.c (xcoff_end_psymtab): Update.
1788 * ctfread.c (scan_partial_symbols): Update.
1789 * psymtab.c (sort_pst_symbols): Remove.
1790 (partial_symtab::end): Rename from end_psymtab_common. Inline
1792 * psympriv.h (struct partial_symtab) <end>: New method.
1793 (end_psymtab_common): Don't declare.
1795 2020-11-01 Tom Tromey <tom@tromey.com>
1797 * symmisc.c (count_psyms): New function.
1798 (print_objfile_statistics): Use it.
1799 * psymtab.c (append_psymbol_to_list): Remove.
1800 (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
1801 * objfiles.h (struct objstats) <n_psyms>: Remove.
1803 2020-11-01 Tom Tromey <tom@tromey.com>
1805 * dbxread.c (dbx_end_psymtab): Update.
1806 * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
1807 (build_type_psymtabs_reader): Update.
1808 * xcoffread.c (xcoff_end_psymtab): Update.
1809 * ctfread.c (scan_partial_symbols): Update.
1810 * psympriv.h (end_psymtab_common): Update.
1811 * psymtab.c (end_psymtab_common): Remove objfile parameter.
1812 (sort_pst_symbols): Likewise.
1814 2020-11-01 Tom Tromey <tom@tromey.com>
1816 * dbxread.c (dbx_symfile_read): Update.
1817 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
1818 * xcoffread.c (xcoff_initial_scan): Update.
1819 * psympriv.h (init_psymbol_list): Don't declare.
1820 * psymtab.c (init_psymbol_list): Remove.
1822 2020-11-01 Joel Brobecker <brobecker@adacore.com>
1824 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
1825 gnat_encoded_fixed_type_info. Update all callers.
1827 2020-11-01 Joel Brobecker <brobecker@adacore.com>
1829 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
1832 2020-11-01 Joel Brobecker <brobecker@adacore.com>
1834 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
1835 cast_from_fixed. Update all callers.
1836 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
1838 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
1840 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
1842 * ada-typeprint.c: Replace call to ada_scaling_factor by call
1843 to print_gnat_encoded_fixed_point_type.
1844 * ada-valprint.c: Likewise.
1846 2020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1848 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
1849 (debug_prefixed_printf): Add check of debug_displaced flag.
1850 * linux-nat.c (linux_nat_debug_printf): Add check of
1851 debug_linux_nat flag.
1853 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1855 * infrun.c (infrun_debug_printf_1): Remove.
1856 (displaced_debug_printf_1): Remove.
1857 (stop_all_threads): Use debug_prefixed_printf.
1858 * infrun.h (infrun_debug_printf_1): Remove.
1859 (infrun_debug_printf): Use debug_prefixed_printf.
1860 (displaced_debug_printf_1): Remove.
1861 (displaced_debug_printf): Use debug_prefixed_printf.
1862 * linux-nat.c (linux_nat_debug_printf_1): Remove.
1863 (linux_nat_debug_printf): Use debug_prefixed_printf.
1865 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1867 * configure: Re-generate.
1868 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
1871 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1873 * configure: Re-generate.
1875 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1877 * configure: Re-generate.
1879 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1881 * configure: Re-generate.
1883 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1885 * configure: Re-generate.
1887 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1889 * acinclude.m4: Modernize.
1890 * configure: Re-generate.
1892 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1894 * configure.ac: Modernize.
1895 * configure: Re-generate.
1897 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1899 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
1900 * configure: Re-generate.
1901 * configure.ac: Remove AM_PROG_CC_STDC.
1903 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1905 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
1906 AC_CANONICAL_SYSTEM.
1907 * configure: Re-generate.
1909 2020-10-30 Simon Marchi <simon.marchi@efficios.com>
1911 * infrun.h (displaced_debug_printf): New macro. Replace
1912 displaced debug prints throughout to use it.
1913 (displaced_debug_printf_1): New declaration.
1914 (displaced_step_dump_bytes): Return string, remove ui_file
1915 parameter, update all callers.
1916 * infrun.c (displaced_debug_printf_1): New function.
1917 (displaced_step_dump_bytes): Return string, remove ui_file
1920 2020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
1922 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
1924 2020-10-30 Tom Tromey <tromey@adacore.com>
1926 * Makefile.in (stamp-init): Depend on config.status.
1928 2020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1930 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
1932 2020-10-30 Pedro Alves <pedro@palves.net>
1934 * thread.c (lookup_selected_frame): Move ...
1935 * frame.c (lookup_selected_frame): ... here.
1937 2020-10-30 Pedro Alves <pedro@palves.net>
1939 * blockframe.c (block_innermost_frame): Use get_selected_frame.
1941 (scoped_restore_selected_frame::scoped_restore_selected_frame):
1942 Use save_selected_frame. Save language as well.
1943 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
1944 Use restore_selected_frame, and restore language as well.
1945 (selected_frame_id, selected_frame_level): New.
1946 (selected_frame): Update comments.
1947 (save_selected_frame, restore_selected_frame): New.
1948 (get_selected_frame): Use lookup_selected_frame.
1949 (get_selected_frame_if_set): Delete.
1950 (select_frame): Record selected_frame_level and selected_frame_id.
1951 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
1953 (get_selected_frame): Make 'message' parameter optional.
1954 (get_selected_frame_if_set): Delete declaration.
1955 (select_frame): Update comments.
1956 (save_selected_frame, restore_selected_frame)
1957 (lookup_selected_frame): Declare.
1958 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
1959 * infrun.c (struct infcall_control_state) <selected_frame_level>:
1961 (save_infcall_control_state): Use save_selected_frame.
1962 (restore_selected_frame): Delete.
1963 (restore_infcall_control_state): Use restore_selected_frame.
1964 * stack.c (select_frame_command_core, frame_command_core): Use
1966 * thread.c (restore_selected_frame): Rename to ...
1967 (lookup_selected_frame): ... this and make extern. Select the
1968 current frame if the frame level is -1.
1969 (scoped_restore_current_thread::restore): Also restore the
1971 (scoped_restore_current_thread::~scoped_restore_current_thread):
1973 (scoped_restore_current_thread::scoped_restore_current_thread):
1974 Save the language as well. Use save_selected_frame.
1976 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1978 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
1980 * gdbarch.h: Re-generate.
1982 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1984 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
1986 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
1988 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
1990 * arch-utils.c (default_displaced_step_hw_singlestep):
1992 * arch-utils.h (default_displaced_step_hw_singlestep):
1994 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
1996 * s390-tdep.c (s390_displaced_step_hw_singlestep):
1998 * gdbarch.c: Re-generate.
1999 * gdbarch.h: Re-generate.
2000 * infrun.c (resume_1): Adjust.
2002 2020-10-29 Tom Tromey <tom@tromey.com>
2004 * progspace.c (program_space::~program_space): Don't call
2007 2020-10-29 Tom Tromey <tom@tromey.com>
2009 * exec.c (exec_target::close): Don't change current program
2012 2020-10-29 Tom Tromey <tom@tromey.com>
2014 * symfile.c (add_symbol_file_command): Update.
2015 * exec.c (program_space::add_target_sections): Rename.
2016 * symfile-mem.c (symbol_file_add_from_memory): Update.
2017 * progspace.h (struct program_space) <add_target_sections>:
2018 Declare new overload.
2019 * exec.h (add_target_sections_of_objfile): Don't declare.
2021 2020-10-29 Tom Tromey <tom@tromey.com>
2023 * solib.c (solib_map_sections): Update.
2024 * exec.c (program_space::add_target_sections): Now a method.
2025 (exec_file_attach): Update.
2026 * exec.h (add_target_sections): Don't declare.
2027 * progspace.h (struct program_space) <add_target_sections>:
2030 2020-10-29 Tom Tromey <tom@tromey.com>
2032 * progspace.h (struct program_space) <remove_target_sections>:
2034 * exec.c (program_space::remove_target_sections): Now a method.
2035 * exec.h (remove_target_sections): Don't declare.
2037 2020-10-29 Tom Tromey <tom@tromey.com>
2039 * inferior.c (delete_inferior): Update.
2040 * progspace.c (program_space::empty): Rename from
2041 program_space_empty_p. Return bool.
2042 * progspace.h (struct program_space) <empty>: New method.
2043 (program_space_empty_p): Don't declare.
2045 2020-10-29 Tom Tromey <tom@tromey.com>
2047 * progspace.c (program_space::~program_space): Don't call
2048 clear_program_space_solib_cache.
2049 (program_space::clear_solib_cache): Rename from
2051 * solib.c (handle_solib_event): Update.
2052 * progspace.h (struct program_space) <clear_solib_cache>: New
2054 (clear_program_space_solib_cache): Don't declare.
2056 2020-10-29 Tom Tromey <tom@tromey.com>
2058 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2059 * target.c (info_target_command): Update.
2060 * symfile.c (syms_from_objfile_1, finish_new_objfile)
2061 (symbol_file_clear, reread_symbols): Update.
2062 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
2063 * stabsread.c (scan_file_globals): Update.
2064 * solib.c (update_solib_list): Update.
2065 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
2066 (svr4_fetch_objfile_link_map, enable_break)
2067 (svr4_relocate_main_executable)
2068 (svr4_iterate_over_objfiles_in_search_order): Update.
2069 * solib-frv.c (lm_base, enable_break)
2070 (frv_relocate_main_executable): Update.
2071 (main_got, frv_fdpic_find_canonical_descriptor): Update.
2072 (frv_fetch_objfile_link_map): Update.
2073 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
2074 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
2075 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
2076 * remote.c (remote_target::get_offsets): Update.
2077 (remote_target::start_remote)
2078 (extended_remote_target::post_attach): Update.
2079 * objfiles.c (entry_point_address_query): Update.
2080 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
2081 * minsyms.c (get_symbol_leading_char): Update.
2082 * frame.c (inside_main_func): Update.
2083 * progspace.h (symfile_objfile): Remove macro.
2085 2020-10-29 Tom Tromey <tom@tromey.com>
2087 * exec.c (exec_file_attach): Update.
2088 * progspace.c (program_space::exec_close): Update.
2089 * progspace.h (struct program_space) <ebfd>: Now a
2091 <set_exec_bfd>: Change argument type.
2094 2020-10-29 Tom Tromey <tom@tromey.com>
2096 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2097 * symfile.c (reread_symbols): Update.
2098 * symfile-mem.c (add_symbol_file_from_memory_command)
2099 (add_vsyscall_page): Update.
2100 * source-cache.c (source_cache::get_plain_source_lines): Update.
2101 * solib-svr4.c (find_program_interpreter, elf_locate_base)
2102 (svr4_current_sos_direct, svr4_exec_displacement)
2103 (svr4_relocate_main_executable): Update.
2104 (svr4_iterate_over_objfiles_in_search_order): Update.
2105 * solib-frv.c (enable_break2, enable_break): Update.
2106 * solib-dsbt.c (lm_base, enable_break): Update.
2107 * solib-darwin.c (find_program_interpreter)
2108 (darwin_solib_create_inferior_hook): Update.
2109 * sol-thread.c (rw_common, ps_pdmodel): Update.
2110 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
2111 * remote.c (compare_sections_command)
2112 (remote_target::trace_set_readonly_regions): Update.
2113 * remote-sim.c (get_sim_inferior_data)
2114 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
2115 (gdbsim_target_open, gdbsim_target::files_info): Update.
2116 * exec.h (exec_bfd): Remove macro.
2117 * progspace.c (initialize_progspace): Update.
2118 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
2120 * nto-procfs.c (nto_procfs_target::post_attach)
2121 (nto_procfs_target::create_inferior): Update.
2122 * maint.c (maintenance_info_sections): Update.
2123 * linux-thread-db.c (thread_db_target::get_thread_local_address):
2125 * infcmd.c (post_create_inferior): Update.
2126 * gcore.c (default_gcore_arch, default_gcore_target): Update.
2127 (objfile_find_memory_regions): Update.
2128 * exec.c (validate_exec_file, exec_file_attach)
2129 (exec_read_partial_read_only, print_section_info): Update.
2130 * corelow.c (core_target_open): Update.
2131 * corefile.c (reopen_exec_file, validate_files): Update.
2132 * arm-tdep.c (gdb_print_insn_arm): Update.
2133 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
2134 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
2137 2020-10-29 Tom Tromey <tom@tromey.com>
2139 * progspace.h (current_target_sections): Remove macro.
2140 * solib-svr4.c (scan_dyntag): Update.
2141 * solib-dsbt.c (scan_dyntag): Update.
2142 * exec.c (exec_target::close): Update.
2143 (add_target_sections, add_target_sections_of_objfile)
2144 (remove_target_sections, exec_target::get_section_table)
2145 (exec_target::files_info, set_section_command)
2146 (exec_set_section_address, exec_target::has_memory)
2147 (exec_target::has_memory): Update.
2149 2020-10-29 Tom Tromey <tom@tromey.com>
2151 * source-cache.c (source_cache::get_plain_source_lines): Use
2152 current_program_space.
2153 * corefile.c (reopen_exec_file): Use current_program_space.
2154 * exec.c (exec_file_attach): Use current_program_space.
2155 * exec.h (exec_bfd_mtime): Remove.
2157 2020-10-29 Tom Tromey <tom@tromey.com>
2159 * gcore.c (default_gcore_mach): Remove.
2160 (create_gcore_bfd): Update.
2162 2020-10-29 Tom Tromey <tom@tromey.com>
2164 * progspace.c (program_space::exec_close): New method, from
2165 exec_close in exec.c.
2166 * exec.c (exec_close): Move to progspace.c.
2167 (exec_target::close, exec_file_attach): Update.
2168 * progspace.h (struct program_space) <exec_close>: Declare
2171 2020-10-29 Tom Tromey <tom@tromey.com>
2173 * progspace.h (struct program_space) <exec_filename>: Rename from
2174 pspace_exec_filename. Now a unique_xmalloc_ptr.
2175 * inferior.c (print_selected_inferior): Update.
2176 (print_inferior): Update.
2177 * mi/mi-main.c (print_one_inferior): Update.
2178 * exec.h (exec_filename): Remove macro.
2179 * corefile.c (get_exec_file): Update.
2180 * exec.c (exec_close): Update.
2181 (exec_file_attach): Update.
2182 * progspace.c (clone_program_space): Update.
2183 (print_program_space): Update.
2185 2020-10-29 Tom Tromey <tom@tromey.com>
2187 * target-section.h (struct target_section): Add constructor.
2188 * exec.c (build_section_table, add_target_sections_of_objfile):
2190 * corelow.c (core_target::build_file_mappings): Update.
2192 2020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2195 * inferior.c (detach_inferior_command): Restore the current thread.
2196 (kill_inferior_command): Ditto.
2198 2020-10-28 Tom de Vries <tdevries@suse.de>
2201 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
2202 map, check it in the "best match" loop.
2204 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
2206 * m32c-tdep.c: Remove unused includes.
2208 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
2210 * xtensa-tdep.c: Remove includes.
2212 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2214 * breakpoint.c (struct condition_command_opts): New struct.
2215 (condition_command_option_defs): New static global.
2216 (make_condition_command_options_def_group): New function.
2217 (condition_completer): Update to consider the '-force' flag.
2218 (condition_command): Use gdb::option for the '-force' flag.
2220 2020-10-27 Tom de Vries <tdevries@suse.de>
2222 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
2223 symbols in section check.
2225 2020-10-27 Tom de Vries <tdevries@suse.de>
2227 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
2229 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2231 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
2232 * breakpoint.c: Update the help text of the 'condition' and 'break'
2234 (set_breakpoint_condition): Take a new bool parameter
2235 to control whether condition definition should be forced even when
2236 the condition expression is invalid in all of the current locations.
2237 (condition_command): Update the call to 'set_breakpoint_condition'.
2238 (find_condition_and_thread): Take the "-force-condition" flag into
2240 * linespec.c (linespec_keywords): Add "-force-condition" as an
2242 (FORCE_KEYWORD_INDEX): New #define.
2243 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
2245 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
2246 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
2247 * python/py-breakpoint.c (bppy_set_condition): Ditto.
2248 * NEWS: Mention the changes to the 'break' and 'condition' commands.
2250 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2252 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
2253 * breakpoint.c (set_breakpoint_location_condition): New function.
2254 (set_breakpoint_condition): Disable a breakpoint location if parsing
2255 the condition string gives an error.
2256 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
2257 (build_target_condition_list): Ditto.
2258 (build_target_command_list): Ditto.
2259 (build_bpstat_chain): Ditto.
2260 (print_one_breakpoint_location): Ditto.
2261 (print_one_breakpoint): Ditto.
2262 (breakpoint_1): Ditto.
2263 (bp_location::bp_location): Ditto.
2264 (locations_are_equal): Ditto.
2265 (update_breakpoint_locations): Ditto.
2266 (enable_disable_bp_num_loc): Ditto.
2267 (init_breakpoint_sal): Use set_breakpoint_location_condition.
2268 (find_condition_and_thread_for_sals): New static function.
2269 (create_breakpoint): Call find_condition_and_thread_for_sals.
2270 (location_to_sals): Call find_condition_and_thread_for_sals instead
2271 of find_condition_and_thread.
2273 2020-10-26 Tom de Vries <tdevries@suse.de>
2275 * dwarf2/read.c (process_full_comp_unit): Call
2276 dwarf2_find_base_address.
2278 2020-10-26 Tom Tromey <tromey@adacore.com>
2280 * gdbtypes.c (create_range_type): Revert previous patch. Add
2283 2020-10-26 Pedro Alves <pedro@palves.net>
2285 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
2286 (my_waitpid): Use gdb::handle_eintr.
2288 2020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
2290 * acinclude.m4: Update ptrace.m4 path.
2291 * ptrace.m4: Moved to gdbsupport.
2293 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
2295 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
2296 instead of target_gdbarch.
2298 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
2300 * jit.c (jit_reader_load_command): Pass current inferior.
2301 (jit_inferior_init): Change parameter type to inferior, use it.
2302 (jit_inferior_created): Remove.
2303 (jit_inferior_created_hook): Pass inferior parameter down.
2304 (_initialize_jit): Use jit_inferior_created_hook instead of
2305 jit_inferior_created.
2306 * jit.h (jit_inferior_created_hook): Add inferior parameter.
2307 * infrun.c (follow_exec): Pass inferior to
2308 jit_inferior_created_hook.
2310 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
2312 * linux-thread-db.c (check_pid_namespace_match): Add inferior
2313 parameter and use it.
2314 (thread_db_inferior_created): Pass inferior argument.
2316 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
2318 * aix-thread.c (aix_thread_inferior_created): Add inferior
2320 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
2321 * dummy-frame.c (cleanup_dummy_frames): Likewise.
2322 * jit.c (jit_inferior_created): Likewise.
2323 * linux-thread-db.c (thread_db_inferior_created): Likewise.
2324 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
2325 * observable.h (inferior_created): Likewise.
2326 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
2327 * symfile-mem.c (add_vsyscall_page): Likewise.
2328 * infcmd.c (post_create_inferior): Pass inferior argument.
2330 2020-10-24 Joel Brobecker <brobecker@adacore.com>
2334 2020-10-23 Joel Brobecker <brobecker@adacore.com>
2336 * ada-typeprint.c (ada_print_type): Remove superfluous second call
2337 to ada_check_typedef.
2339 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2341 * f-exp.y (f_parse): Rename to...
2342 (f_language::parser): ...this.
2343 * f-lang.c (f_get_encoding): Rename to...
2344 (f_language::get_encoding): ...this.
2345 (f_op_print_tab): Rename to...
2346 (f_language::op_print_tab): ...this.
2347 (exp_descriptor_f): Rename to...
2348 (f_language::exp_descriptor_tab): ...this.
2349 (class f_language): Moved to f-lang.h.
2350 (f_language::language_arch_info): New function, moved out of class
2352 (f_language::search_name_hash): Likewise.
2353 (f_language::lookup_symbol_nonlocal): Likewise.
2354 (f_language::get_symbol_name_matcher_inner): Likewise.
2355 * f-lang.h: Add 'valprint.h' include.
2356 (class f_language): Moved here from f-lang.c.
2357 * f-typeprint.c (f_type_print_args): Delete commented out
2359 (f_print_typedef): Rename to...
2360 (f_language::print_typedef): ...this.
2361 (f_print_type): Rename to...
2362 (f_language::print_type): ...this.
2363 (f_type_print_varspec_prefix): Delete declaration and rename to...
2364 (f_language::f_type_print_varspec_prefix): ...this.
2365 (f_type_print_varspec_suffix): Delete declaration and rename to...
2366 (f_language::f_type_print_varspec_suffix): ...this.
2367 (f_type_print_base): Delete declaration and rename to...
2368 (f_language::f_type_print_base): ...this.
2369 * f-valprint.c (f_value_print_inner): Rename to...
2370 (f_language::value_print_inner): ...this.
2371 * parse.c: Delete 'f-lang.h' include.
2373 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2375 * language.h (language_defn::print_type): Add variable names in
2376 declaration, and update header comment.
2378 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2380 * ada-lang.c (ada_language::demangle): Rename to...
2381 (ada_language::demangle_symbol): ...this.
2382 * c-lang.c (cplus_language::demangle): Rename to...
2383 (cplus_language::demangle_symbol): ...this.
2384 * d-lang.c (d_language::demangle): Rename to...
2385 (d_language::demangle_symbol): ...this.
2386 * f-lang.c (f_language::demangle): Rename to...
2387 (f_language::demangle_symbol): ...this.
2388 * go-lang.c (go_language::demangle): Rename to...
2389 (go_language::demangle_symbol): ...this.
2390 * language.c (language_demangle): Update call to demangle_symbol.
2391 (auto_or_unknown_language::demangle): Rename to...
2392 (auto_or_unknown_language::demangle_symbol): ...this.
2393 * language.h (language_defn::demangle): Rename to...
2394 (language_defn::demangle_symbol): ...this.
2395 * objc-lang.c (objc_language::demangle): Rename to...
2396 (objc_language::demangle_symbol): ...this.
2397 * rust-lang.c (rust_language::demangle): Rename to...
2398 (rust_language::demangle_symbol): ...this.
2400 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2402 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
2403 (iterate_over_file_blocks): Replace use of macro with the macros
2406 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2408 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
2409 * valprint.c (maybe_print_array_index): Replace use of macro with
2410 the macros definition.
2412 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2414 * ada-lang.c (ada_language::print_array_index): Call value_print
2416 * language.c (language_defn::print_array_index): Likewise.
2417 * language.h (LA_VALUE_PRINT): Delete.
2418 * valprint.c (value_print): Call value_print on the
2419 current_language directly.
2421 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2423 * language.h (LA_PRINT_TYPEDEF): Delete.
2424 * typeprint.c (typedef_print): Call print_typedef directly on the
2425 current_language object.
2427 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2429 * m2-exp.y (m2_parse): Rename to...
2430 (m2_language::parser): ...this. Update function signature.
2431 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
2432 (m2_op_print): Rename to...
2433 (m2_language::op_print_tab): ...this, and make const.
2434 (exp_descriptor_modula2): Rename to...
2435 (m2_language::exp_descriptor_modula2): ...this.
2436 (class m2_language): Move to m2-lang.h.
2437 (m2_language::language_arch_info): New function, moved out of
2439 (m2_language::printchar): New function, body from m2_printchar.
2440 (m2_language::printstr): New function, moved out of class
2442 (m2_language::emitchar): Likewise.
2443 * m2-lang.h (m2_parse): Delete declaration.
2444 (m2_print_typedef): Delete declaration.
2445 (m2_value_print_inner): Delete declaration.
2446 (class m2_language): Class declaration moved from m2-lang.c,
2447 larger functions are left in m2-lang.c.
2448 * m2-typeprint.c (m2_print_typedef): Rename to...
2449 (m2_language::print_typedef): ...this, and update function
2451 * m2-valprint.c (m2_value_print_inner): Rename to...
2452 (m2_language::value_print_inner): ...this, replace use of
2453 LA_PRINT_STRING with a direct call to printstr member function,
2454 and update recursive call.
2456 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2458 * language.c (default_is_string_type_p): Delete, implementation
2459 moved into auto_or_unknown_language::is_string_type_p.
2460 (unk_op_print_tab): Moved into
2461 auto_or_unknown_language::opcode_print_table.
2462 (unknown_language_arch_info): Delete, implementation moved into
2463 auto_or_unknown_language::language_arch_info.
2464 (class auto_or_unknown_language): New class, member functions
2465 copied from unknown_language class, with some updates.
2466 (class unknown_language): Most member functions moved into
2467 auto_or_unknown_language class. Inherit from
2468 auto_or_unknown_language class.
2469 (class auto_language): Inherit from auto_or_unknown_language.
2470 Delete most member functions.
2472 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
2474 * stabsread.c (read_member_functions): Remove gdb_assert.
2476 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
2478 * gdbtypes.c (init_complex_type): Check target type name.
2480 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
2482 * target-debug.h (target_debug_print_struct_target_ops_p):
2484 (target_debug_print_async_callback_ftype_p): Remove.
2485 (target_debug_print_struct_trace_state_variable_p): Remove.
2486 (target_debug_print_struct_traceframe_info_p): Remove.
2487 (target_debug_print_VEC__btrace_block_s__pp): Remove.
2488 (target_debug_print_enum_btrace_format): Remove.
2489 (target_debug_print_enum_info_proc_what): Remove.
2490 (target_debug_print_thread_info_pp): Remove.
2492 2020-10-22 Simon Marchi <simon.marchi@efficios.com>
2494 * target.h (struct target_ops) <make_corefile_notes>:
2495 Change return type to unique pointer.
2496 * target.c (dummy_make_corefile_notes): Likewise.
2497 * exec.c (struct exec_target) <make_corefile_notes>:
2499 (exec_target::make_corefile_notes): Likewise.
2500 * procfs.c (class procfs_target) <make_corefile_notes>:
2502 (procfs_do_thread_registers): Adjust to unique pointer.
2503 (struct procfs_corefile_thread_data): Add constructor.
2504 <note_data>: Change type to unique pointer.
2505 (procfs_corefile_thread_callback): Adjust to unique pointer.
2506 (procfs_target::make_corefile_notes): Change return type to
2508 * target-delegates.c: Re-generate.
2509 * gcore.c (write_gcore_file_1): Adjust.
2510 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
2513 2020-10-22 Tom de Vries <tdevries@suse.de>
2515 * block.c (find_block_in_blockvector): Make sure the returned block
2518 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
2521 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
2523 (load_cu): Pass existing CU.
2524 (process_imported_unit_die): Likewise.
2525 (follow_die_offset): Likewise.
2527 2020-10-22 Luis Machado <luis.machado@linaro.org>
2529 * corelow.c (core_target::xfer_partial): Also check for an empty
2530 m_core_unavailable_mappings vector.
2532 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2534 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
2535 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
2536 * f-exp.y (arglist): Allow for a series of subranges.
2537 (subrange): Add cases for subranges with strides.
2538 * f-lang.c (value_f90_subarray): Catch use of array strides and
2540 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
2542 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2544 * expprint.c (print_subexp_standard): Change enum range_type to
2545 range_flag and rename variables to match.
2546 (dump_subexp_body_standard): Likewise.
2547 * expression.h (enum range_type): Rename to...
2548 (enum range_flag): ...this.
2549 (range_types): Rename to...
2550 (range_flags): ...this.
2551 * f-lang.c (value_f90_subarray): Change enum range_type to
2552 range_flag and rename variables to match.
2553 * parse.c (operator_length_standard): Likewise.
2554 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
2555 range_type to range_flag.
2556 * rust-lang.c (rust_evaluate_funcall): Likewise.
2557 (rust_range): Likewise.
2558 (rust_compute_range): Likewise.
2559 (rust_subscript): Likewise.
2561 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2563 * expprint.c (print_subexp_standard): Update to reflect changes to
2565 (dump_subexp_body_standard): Likewise.
2566 * expression.h (enum range_type): Convert to a bit field enum, and
2567 make the enum unsigned.
2568 * f-exp.y (subrange): Update to reflect changes to enum
2570 * f-lang.c (value_f90_subarray): Likewise.
2571 * parse.c (operator_length_standard): Likewise.
2572 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
2573 * rust-lang.c (rust_range): Likewise.
2574 (rust_compute_range): Likewise.
2575 (rust_subscript): Likewise.
2577 2020-10-21 Simon Marchi <simon.marchi@efficios.com>
2579 * infrun.c (displaced_step_in_progress_thread): Fix comment.
2580 (displaced_step_in_progress): Fix comment.
2582 2020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
2584 * gdbarch.sh (make_corefile_notes): Return unique pointer.
2585 * gdbarch.c: Re-generate.
2586 * gdbarch.h: Re-generate.
2587 * gcore.c (write_gcore_file_1): Adjust.
2588 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
2590 <note_data>: Change type to unique pointer.
2591 <abort_iteration>: Change type to bool.
2592 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
2593 (fbsd_collect_thread_registers): Return void, adjust.
2594 (struct fbsd_corefile_thread_data): Add construtor.
2595 <note_data>: Change type to unique pointer.
2596 (fbsd_corefile_thread): Adjust.
2597 (fbsd_make_corefile_notes): Return unique pointer, adjust.
2598 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
2599 to unique pointer, adjust.
2600 (struct linux_collect_regset_section_cb_data): Add constructor.
2601 <note_data>: Change type to unique pointer.
2602 <abort_iteration>: Change type to bool.
2603 (linux_collect_thread_registers): Return void, adjust.
2604 (struct linux_corefile_thread_data): Add constructor.
2605 <note_data>: Change type to unique pointer.
2606 (linux_corefile_thread): Adjust.
2607 (linux_make_corefile_notes): Return unique pointer, adjust.
2609 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2611 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
2612 * gdbarch.c: Re-generate.
2613 * gdbarch.h: Re-generate.
2614 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
2616 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
2618 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
2619 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
2620 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
2621 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
2623 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2625 * gdbarch.sh: Make generated predicates return bool.
2626 * gdbarch.c: Re-generate.
2627 * gdbarch.h: Re-generate.
2629 2020-10-20 Tom Tromey <tom@tromey.com>
2631 * varobj-iter.h (struct varobj_item): Remove typedef.
2633 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2635 * infrun.c (currently_stepping): Change int to bool
2636 (maybe_software_singlestep): Likewise.
2637 (show_stop_on_solib_events): Likewise.
2638 (stepping_past_nonsteppable_watchpoint): Likewise.
2639 (displaced_step_in_progress_any_inferior): Likewise.
2640 (displaced_step_in_progress_thread): Likewise.
2641 (keep_going_stepped_thread): Likewise.
2642 (thread_still_needs_step_over): Likewise.
2643 (start_step_over): Likewise.
2644 (do_target_resume): Likewise.
2645 (resume_1): Likewise.
2646 (clear_proceed_status): Likewise.
2647 (thread_still_needs_step_over_bp): Likewise.
2648 (proceed): Likewise.
2649 (switch_back_to_stepped_thread): Likewise.
2650 (adjust_pc_after_break): Likewise.
2651 (stepped_in_from): Likewise.
2652 (handle_stop_requested): Likewise.
2653 (handle_syscall_event): Likewise.
2654 (handle_no_resumed): Likewise.
2655 (handle_inferior_event): Likewise.
2656 (finish_step_over): Likewise.
2657 (handle_signal_stop): Likewise.
2658 (process_event_stop_test): Likewise.
2660 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2662 * infrun.c (get_displaced_stepping_state): Fix comment.
2664 2020-10-20 Andreas Schwab <schwab@linux-m68k.org>
2666 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
2668 2020-10-19 Tom Tromey <tromey@adacore.com>
2671 * tui/tui-winsource.h (struct tui_source_window_base)
2672 <refresh_window>: Rename from refresh_pad.
2673 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
2674 Rename from refresh_pad.
2675 (tui_source_window_base::show_source_content)
2676 (tui_source_window_base::do_scroll_horizontal): Update.
2678 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2680 * thread.c (_initialize_thread): Fine-tune the help text of
2683 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2685 * frame.c: Remove the unused 'uinteger_option_def' type alias.
2687 2020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
2689 * breakpoint.c (handle_jit_event): Add an argument, change how
2690 `jit_event_handler` is called.
2692 2020-10-17 Tom Tromey <tom@tromey.com>
2694 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
2695 (scan_xcoff_symtab): Update.
2696 * psymtab.h (class psymtab_storage) <global_psymbols,
2697 static_psymbols, current_global_psymbols,
2698 current_static_psymbols>: Remove.
2699 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
2700 (match_partial_symbol, lookup_partial_symbol): Update.
2701 (print_partial_symbols): Change parameters.
2702 (dump_psymtab, recursively_search_psymtabs)
2703 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
2704 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
2706 (end_psymtab_common): Simplify.
2707 (append_psymbol_to_list): Change parameters.
2708 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
2709 (init_psymbol_list): Simplify.
2710 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
2711 * psympriv.h (struct partial_symtab) <empty>: New method.
2712 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
2714 <global_psymbols, static_psymbols>: New members.
2715 <add_psymbol>: New methods.
2716 (add_psymbol_to_list): Don't declare.
2717 (psymbol_placement): Move earlier.
2718 * mdebugread.c (parse_partial_symbols): Update.
2719 (handle_psymbol_enumerators): Change parameters.
2720 (mdebug_expand_psymtab): Update.
2721 * dwarf2/read.c (process_psymtab_comp_unit_reader)
2722 (add_partial_symbol): Update.
2723 * dwarf2/index-write.c (write_psymbols): Change parameters.
2724 (write_one_signatured_type): Update.
2725 (recursively_count_psymbols): Update.
2726 (recursively_write_psymbols): Update.
2727 (class debug_names) <recursively_write_psymbols>: Update.
2728 <write_psymbols>: Change parameters.
2729 <write_one_signatured_type>: Update.
2730 * dbxread.c (read_dbx_symtab): Update.
2731 (dbx_end_psymtab): Use partial_symtab::empty.
2732 * ctfread.c (struct ctf_context) <pst>: New member.
2733 (create_partial_symtab): Set it.
2734 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
2735 (scan_partial_symbols): Use the psymtab's context. Update.
2737 2020-10-17 Tom Tromey <tom@tromey.com>
2739 * valprint.c (generic_value_print): Remove comment.
2740 * m2-valprint.c (m2_value_print_inner): Remove comment.
2741 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
2744 2020-10-17 Tom de Vries <tdevries@suse.de>
2747 * source.c (select_source_symtab): Handling sal.symtab == NULL for
2750 2020-10-14 Tom de Vries <tdevries@suse.de>
2753 * solib.c (solib_contains_address_p): Handle
2754 'solib->sections == nullptr'.
2756 2020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
2759 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
2760 target can't do async.
2761 * target.c (target_wait): Assert that we don't pass
2762 TARGET_WNOHANG to a target that can't async.
2764 2020-10-13 Kamil Rytarowski <n54@gmx.com>
2766 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
2767 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
2768 * alpha-bsd-nat.c: Adjust include.
2769 * alpha-bsd-tdep.h: Adjust comment.
2770 * alpha-nbsd-tdep.c: Rename to ...
2771 * alpha-netbsd-tdep.c: ... this, adjust include.
2772 * amd64-nbsd-nat.c: Rename to ...
2773 * amd64-netbsd-nat.c: ... this, adjust include.
2774 * amd64-nbsd-tdep.c: Rename to ...
2775 * amd64-netbsd-tdep.c: ... this, adjust include.
2776 * amd64-tdep.h: Adjust include.
2777 * arm-nbsd-nat.c: Rename to ...
2778 * arm-netbsd-nat.c: ... this, adjust include.
2779 * arm-nbsd-tdep.c: Rename to ...
2780 * arm-netbsd-tdep.c: ... this, adjust include.
2781 * arm-nbsd-tdep.h: Rename to ...
2782 * arm-netbsd-tdep.h: ... this, adjust include.
2783 * configure.nat: Adjust file lists.
2784 * configure.tgt: Likewise.
2785 * hppa-nbsd-nat.c: Rename to ...
2786 * hppa-netbsd-nat.c: ... this, adjust include.
2787 * hppa-nbsd-tdep.c: Rename to ...
2788 * hppa-netbsd-tdep.c: ... this, adjust include.
2789 * i386-nbsd-nat.c: Rename to ...
2790 * i386-netbsd-nat.c: ... this, adjust include.
2791 * i386-nbsd-tdep.c: Rename to ...
2792 * i386-netbsd-tdep.c: ... this, adjust include.
2793 * m68k-bsd-nat.c: Adjust include.
2794 * mips-nbsd-nat.c: Rename to ...
2795 * mips-netbsd-nat.c: ... this, adjust include.
2796 * mips-nbsd-tdep.c: Rename to ...
2797 * mips-netbsd-tdep.c: ... this, adjust include.
2798 * mips-nbsd-tdep.h: Rename to ...
2799 * mips-netbsd-tdep.h: ... this.
2800 * nbsd-nat.c: Rename to ...
2801 * netbsd-nat.c: ... this, adjust include.
2802 * nbsd-nat.h: Rename to ...
2803 * netbsd-nat.h: ... this, adjust include.
2804 * nbsd-tdep.c: Rename to ...
2805 * netbsd-tdep.c: ... this, adjust include.
2806 * nbsd-tdep.h: Rename to ...
2807 * netbsd-tdep.h: ... this.
2808 * ppc-nbsd-nat.c: Rename to ...
2809 * ppc-netbsd-nat.c: ... this, adjust include.
2810 * ppc-nbsd-tdep.c: Rename to ...
2811 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
2812 * ppc-nbsd-tdep.h: Rename to ...
2813 * ppc-netbsd-tdep.h: ... this.
2814 * sh-nbsd-nat.c: Rename to ...
2815 * sh-netbsd-nat.c: ... this, adjust include.
2816 * sh-nbsd-tdep.c: Rename to ...
2817 * sh-netbsd-tdep.c: ... this, adjust include.
2818 * sparc-nbsd-nat.c: Rename to ...
2819 * sparc-netbsd-nat.c: ... this.
2820 * sparc-nbsd-tdep.c: Rename to ...
2821 * sparc-netbsd-tdep.c: ... this, adjust include.
2822 * sparc64-nbsd-nat.c: Rename to ...
2823 * sparc64-netbsd-nat.c: ... this.
2824 * sparc64-nbsd-tdep.c: Rename to ...
2825 * sparc64-netbsd-tdep.c: ... this, adjust include.
2826 * sparc64-tdep.h: Adjust comment.
2827 * vax-bsd-nat.c: Adjust include.
2828 * vax-nbsd-tdep.c: Rename to ...
2829 * vax-netbsd-tdep.c: ... this, adjust include.
2831 2020-10-12 Tom Tromey <tom@tromey.com>
2833 * target.h (struct target_ops) <get_section_table>: Update.
2834 (target_get_section_table): Update.
2835 * target.c (target_get_section_table, target_section_by_addr)
2836 (memory_xfer_partial_1): Update.
2837 * target-section.h (target_section_table): Now an alias.
2838 * target-delegates.c: Rebuild.
2839 * target-debug.h (target_debug_print_target_section_table_p):
2840 Rename from target_debug_print_struct_target_section_table_p.
2841 * symfile.c (build_section_addr_info_from_section_table): Update.
2842 * solib.c (solib_map_sections, solib_contains_address_p): Update.
2843 * solib-svr4.c (scan_dyntag): Update.
2844 * solib-dsbt.c (scan_dyntag): Update.
2845 * remote.c (remote_target::remote_xfer_live_readonly_partial):
2847 * record-full.c (record_full_core_target::xfer_partial): Update.
2848 * progspace.h (struct program_space) <target_sections>: Update.
2849 * exec.h (print_section_info): Update.
2850 * exec.c (exec_target::close, build_section_table)
2851 (add_target_sections, add_target_sections_of_objfile)
2852 (remove_target_sections, exec_on_vfork)
2853 (section_table_available_memory)
2854 (section_table_xfer_memory_partial)
2855 (exec_target::get_section_table, exec_target::xfer_partial)
2856 (print_section_info, set_section_command)
2857 (exec_set_section_address, exec_target::has_memory): Update.
2858 * corelow.c (core_target::build_file_mappings)
2859 (core_target::xfer_partial, core_target::info_proc_mappings)
2860 (core_target::info_proc_mappings): Update.
2861 * bfd-target.c (class target_bfd): Update
2863 2020-10-12 Tom Tromey <tom@tromey.com>
2865 * progspace.c (program_space::~program_space): Don't call
2866 clear_section_table.
2867 * exec.h (clear_section_table): Don't declare.
2868 * exec.c (exec_target::close): Update.
2869 (clear_section_table): Remove.
2871 2020-10-12 Tom Tromey <tom@tromey.com>
2873 * exec.c (add_target_sections_of_objfile): Simplify.
2875 2020-10-12 Tom Tromey <tom@tromey.com>
2877 * solib.c (solib_map_sections): Update.
2878 * record-full.c (record_full_core_open_1): Update.
2879 * exec.h (build_section_table): Return a target_section_table.
2880 * exec.c (exec_file_attach): Update.
2881 (build_section_table): Return a target_section_table.
2882 * corelow.c (core_target::core_target): Update.
2883 * bfd-target.c (target_bfd::target_bfd): Update.
2885 2020-10-12 Tom Tromey <tom@tromey.com>
2887 * target.c (target_section_by_addr, memory_xfer_partial_1):
2889 * target-section.h (struct target_section_table): Use
2891 * symfile.h (build_section_addr_info_from_section_table): Take a
2892 target_section_table.
2893 * symfile.c (build_section_addr_info_from_section_table): Take a
2894 target_section_table.
2895 * solist.h (struct so_list) <sections>: Change type.
2896 <sections_end>: Remove.
2897 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
2898 (solib_contains_address_p): Update.
2899 * solib-svr4.c (scan_dyntag): Update.
2900 * solib-dsbt.c (scan_dyntag): Update.
2901 * remote.c (remote_target::remote_xfer_live_readonly_partial):
2903 * record-full.c (record_full_core_start, record_full_core_end):
2905 (record_full_core_sections): New global.
2906 (record_full_core_open_1, record_full_core_target::xfer_partial):
2908 * exec.h (build_section_table, section_table_xfer_memory_partial)
2909 (add_target_sections): Take a target_section_table.
2910 * exec.c (exec_file_attach, clear_section_table): Update.
2911 (resize_section_table): Remove.
2912 (build_section_table, add_target_sections): Take a
2913 target_section_table.
2914 (add_target_sections_of_objfile, remove_target_sections)
2915 (exec_on_vfork): Update.
2916 (section_table_available_memory): Take a target_section_table.
2917 (section_table_read_available_memory): Update.
2918 (section_table_xfer_memory_partial): Take a target_section_table.
2919 (print_section_info, set_section_command)
2920 (exec_set_section_address, exec_target::has_memory): Update.
2921 * corelow.c (class core_target) <m_core_section_table,
2922 m_core_file_mappings>: Remove braces.
2923 <~core_target>: Remove.
2924 (core_target::core_target): Update.
2925 (core_target::~core_target): Remove.
2926 (core_target::build_file_mappings)
2927 (core_target::xfer_memory_via_mappings)
2928 (core_target::xfer_partial, core_target::info_proc_mappings):
2930 * bfd-target.c (target_bfd::xfer_partial): Update.
2931 (target_bfd::target_bfd): Update.
2932 (target_bfd::~target_bfd): Remove.
2934 2020-10-12 Tom Tromey <tom@tromey.com>
2936 * target.h (struct target_section, struct target_section_table):
2937 Move to target-section.h.
2938 * target-section.h: New file.
2940 2020-10-12 Pedro Alves <pedro@palves.net>
2943 * valops.c (struct struct_field_searcher): New.
2944 (update_search_result): Rename to ...
2945 (struct_field_searcher::update_result): ... this. Simplify
2946 prototype. Record all found fields.
2947 (do_search_struct_field): Rename to ...
2948 (struct_field_searcher::search): ... this. Simplify prototype.
2949 Maintain stack of visited baseclass path. Call update_result for
2950 fields too. Keep searching fields in baseclasses instead of
2951 stopping at the first found field.
2952 (search_struct_field): Use struct_field_searcher. When looking
2953 for fields, report ambiguous access attempts.
2955 2020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
2957 * frame.c (inside_main_func): Check full symbols as well as
2960 2020-10-09 Joel Brobecker <brobecker@adacore.com>
2962 * ada-lang.c (advance_wild_match): Rewrite the function's
2963 description. Change the type of target0, t0 and t1 to char.
2965 2020-10-09 Tom Tromey <tromey@adacore.com>
2967 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
2969 2020-10-09 Tom Tromey <tromey@adacore.com>
2971 * ada-lang.h (ada_encode): Return std::string.
2972 * ada-lang.c (ada_encode_1): Return std::string.
2973 (ada_encode): Likewise.
2974 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
2976 * ada-exp.y (block_lookup, write_var_or_type): Update.
2978 2020-10-09 Hannes Domani <ssbssa@yahoo.de>
2981 * printcmd.c (print_formatted): Handle void results as
2984 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
2986 * arch/aarch32.c (aarch32_create_target_description): Release the
2987 target_desc_up as late as possible.
2988 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2989 * arch/amd64.c (amd64_create_target_description): Likewise.
2990 * arch/arc.c (arc_create_target_description): Return a
2991 target_desc_up, don't release it.
2992 * arch/arc.h (arc_create_target_description): Update declaration.
2993 (arc_lookup_target_description): Move target_desc_up into the
2994 cache, and return a borrowed pointer.
2995 * arch/arm.c (arm_create_target_description): Release the
2996 target_desc_up as late as possible.
2997 * arch/i386.c (i386_create_target_description): Likewise.
2998 * arch/riscv.h (riscv_create_target_description): Update
2999 declaration to match definition.
3000 * arch/tic6x.c (tic6x_create_target_description): Release the
3001 target_desc_up as late as possible.
3003 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
3005 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
3006 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
3008 2020-10-09 Jan Vrany <jan.vrany@labware.com>
3010 * source.c (directory_command): Notify observers that "directories"
3011 parameter has changed.
3013 2020-10-08 Tom Tromey <tom@tromey.com>
3015 * cli/cli-cmds.c (print_disassembly): Style function name and
3016 addresses. Add _() wrappers.
3018 2020-10-08 Shahab Vahedi <shahab@synopsys.com>
3020 * NEWS: Mention ARC support in GDBserver.
3022 2020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
3024 * arch/aarch32.c (aarch32_create_target_description): Release
3025 unique_ptr returned from allocate_target_description.
3026 * arch/aarch64.c (aarch64_create_target_description): Likewise.
3027 * arch/amd64.c (amd64_create_target_description): Likewise.
3028 * arch/arc.c (arc_create_target_description): Likewise.
3029 * arch/arm.c (arm_create_target_description): Likewise.
3030 * arch/i386.c (i386_create_target_description): Likewise.
3031 * arch/riscv.c (riscv_create_target_description): Update return
3032 type. Handle allocate_target_description returning a unique_ptr.
3033 (riscv_lookup_target_description): Update to handle unique_ptr.
3034 * arch/tic6x.c (tic6x_create_target_description): Release
3035 unique_ptr returned from allocate_target_description.
3036 * features/microblaze-with-stack-protect.c: Regenerate.
3037 * features/microblaze.c: Regenerate.
3038 * features/mips-dsp-linux.c: Regenerate.
3039 * features/mips-linux.c: Regenerate.
3040 * features/mips64-dsp-linux.c: Regenerate.
3041 * features/mips64-linux.c: Regenerate.
3042 * features/nds32.c: Regenerate.
3043 * features/nios2.c: Regenerate.
3044 * features/or1k.c: Regenerate.
3045 * features/rs6000/powerpc-32.c: Regenerate.
3046 * features/rs6000/powerpc-32l.c: Regenerate.
3047 * features/rs6000/powerpc-403.c: Regenerate.
3048 * features/rs6000/powerpc-403gc.c: Regenerate.
3049 * features/rs6000/powerpc-405.c: Regenerate.
3050 * features/rs6000/powerpc-505.c: Regenerate.
3051 * features/rs6000/powerpc-601.c: Regenerate.
3052 * features/rs6000/powerpc-602.c: Regenerate.
3053 * features/rs6000/powerpc-603.c: Regenerate.
3054 * features/rs6000/powerpc-604.c: Regenerate.
3055 * features/rs6000/powerpc-64.c: Regenerate.
3056 * features/rs6000/powerpc-64l.c: Regenerate.
3057 * features/rs6000/powerpc-7400.c: Regenerate.
3058 * features/rs6000/powerpc-750.c: Regenerate.
3059 * features/rs6000/powerpc-860.c: Regenerate.
3060 * features/rs6000/powerpc-altivec32.c: Regenerate.
3061 * features/rs6000/powerpc-altivec32l.c: Regenerate.
3062 * features/rs6000/powerpc-altivec64.c: Regenerate.
3063 * features/rs6000/powerpc-altivec64l.c: Regenerate.
3064 * features/rs6000/powerpc-e500.c: Regenerate.
3065 * features/rs6000/powerpc-e500l.c: Regenerate.
3066 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
3067 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
3068 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
3069 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
3070 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
3071 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
3072 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
3073 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
3074 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
3075 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
3076 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
3077 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
3078 * features/rs6000/powerpc-vsx32.c: Regenerate.
3079 * features/rs6000/powerpc-vsx32l.c: Regenerate.
3080 * features/rs6000/powerpc-vsx64.c: Regenerate.
3081 * features/rs6000/powerpc-vsx64l.c: Regenerate.
3082 * features/rs6000/rs6000.c: Regenerate.
3083 * features/rx.c: Regenerate.
3084 * features/s390-gs-linux64.c: Regenerate.
3085 * features/s390-linux32.c: Regenerate.
3086 * features/s390-linux32v1.c: Regenerate.
3087 * features/s390-linux32v2.c: Regenerate.
3088 * features/s390-linux64.c: Regenerate.
3089 * features/s390-linux64v1.c: Regenerate.
3090 * features/s390-linux64v2.c: Regenerate.
3091 * features/s390-te-linux64.c: Regenerate.
3092 * features/s390-tevx-linux64.c: Regenerate.
3093 * features/s390-vx-linux64.c: Regenerate.
3094 * features/s390x-gs-linux64.c: Regenerate.
3095 * features/s390x-linux64.c: Regenerate.
3096 * features/s390x-linux64v1.c: Regenerate.
3097 * features/s390x-linux64v2.c: Regenerate.
3098 * features/s390x-te-linux64.c: Regenerate.
3099 * features/s390x-tevx-linux64.c: Regenerate.
3100 * features/s390x-vx-linux64.c: Regenerate.
3101 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
3102 from allocate_target_description.
3103 * target-descriptions.c (allocate_target_description): Update
3105 (print_c_tdesc::visit_pre): Release unique_ptr returned from
3106 allocate_target_description.
3108 2020-10-07 Tom Tromey <tromey@adacore.com>
3110 * unittests/search-memory-selftests.c: New file.
3111 * Makefile.in (SELFTESTS_SRCS): Add
3112 unittests/search-memory-selftests.c.
3114 2020-10-07 Tom Tromey <tromey@adacore.com>
3117 * findcmd.c (_initialize_mem_search): Mention that the range is
3120 2020-10-07 Tom Tromey <tromey@adacore.com>
3122 * target.h (simple_search_memory): Don't declare.
3123 * target.c (simple_search_memory): Move to gdbsupport.
3124 (default_search_memory): Update.
3125 * remote.c (remote_target::search_memory): Update.
3127 2020-10-07 Simon Marchi <simon.marchi@efficios.com>
3129 * Makefile.in (COMPILE): Add CXXFLAGS.
3130 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
3131 (check-headers): Add CXXFLAGS.
3133 2020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
3135 * arc-linux-tdep.h: New file.
3136 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
3137 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
3138 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
3139 arc_linux_gregset, arc_linux_v2_regset,
3140 arc_linux_iterate_over_regset_sections,
3141 arc_linux_core_read_description): Implement.
3142 (arc_linux_init_osabi): Set iterate_over_regset_sections.
3143 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
3144 (arc_gdbarch_features_create): Add.
3145 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
3147 2020-10-07 Shahab Vahedi <shahab@synopsys.com>
3149 * arch/arc.h: Rename "arc_gdbarch_features" to
3150 "arc_arch_features".
3151 * arc-tdep.h: Likewise.
3152 * arc-tdep.c: Likewise.
3154 2020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3156 * infcmd.c (attach_command): Remove the redundant call to
3157 `clear_proceed_status`.
3159 2020-10-07 Kamil Rytarowski <n54@gmx.com>
3161 * nat/netbsd-nat.c (write_memory, read_memory): Update.
3163 2020-10-07 Kamil Rytarowski <n54@gmx.com>
3165 * nat/netbsd-nat.c (write_memory, read_memory): Add.
3166 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
3167 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
3169 2020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
3171 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
3172 (_initialize_break_catch_sig): Don't allocate array.
3174 2020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
3176 * symtab.c (find_pc_line): Return unmapped addresses when the
3177 requested address is also unmapped.
3179 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
3181 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
3184 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
3186 * amd64-windows-tdep.c (amd64_windows_return_value): Use
3187 type::is_vector instead of TYPE_VECTOR.
3189 2020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
3191 * auto-load.c (auto_load_objfile_script_1): Don't use
3192 debugfile_holder as temporary variable when stripping drive
3195 2020-10-05 Hannes Domani <ssbssa@yahoo.de>
3197 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
3198 Add TYPE_CODE_COMPLEX.
3199 (amd64_windows_return_value): Fix types returned via XMM0.
3201 2020-10-05 Alan Hayward <alan.hayward@arm.com>
3203 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
3204 AArch64/ARM maintainers.
3206 2020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
3208 * NEWS: Mention set/show debug event-loop.
3210 2020-10-02 Tom Tromey <tromey@adacore.com>
3212 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
3215 2020-10-02 Simon Marchi <simon.marchi@efficios.com>
3217 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
3218 * procfs.c (procfs_inferior_created): Remove.
3219 (_initialize_procfs): Don't register procfs_inferior_created.
3221 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3223 * async-event.c (invoke_async_signal_handlers): Add debug
3225 (check_async_event_handlers): Likewise.
3226 * event-top.c (show_debug_event_loop): New function.
3227 (_initialize_event_top): Register "set debug event-loop"
3230 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3232 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
3234 * infrun.c: Include gdbsupport/common-debug.h.
3235 * linux-nat.c: Likewise.
3237 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3239 * async-event.h (create_async_signal_handler): Add name
3241 (create_async_event_handler): Likewise.
3242 * async-event.c (struct async_signal_handler) <name>: New field.
3243 (struct async_event_handler) <name>: New field.
3244 (create_async_signal_handler): Assign name.
3245 (create_async_event_handler): Assign name.
3246 * event-top.c (async_init_signals): Pass name when creating
3248 * infrun.c (_initialize_infrun): Likewise.
3249 * record-btrace.c (record_btrace_push_target): Likewise.
3250 * record-full.c (record_full_open): Likewise.
3251 * remote-notif.c (remote_notif_state_allocate): Likewise.
3252 * remote.c (remote_target::open_1): Likewise.
3253 * tui/tui-win.c (tui_initialize_win): Likewise.
3255 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3257 * async-event.c (initialize_async_signal_handlers): Pass name to
3259 * event-top.c (ui_register_input_event_handler): Likewise.
3260 * linux-nat.c (linux_nat_target::async): Likewise.
3261 * run-on-main-thread.c (_initialize_run_on_main_thread):
3263 * ser-base.c (reschedule): Likewise.
3264 (ser_base_async): Likewise.
3265 * tui/tui-io.c: Likewise.
3266 * top.h (struct ui) <num>: New field.
3267 * top.c (highest_ui_num): New variable.
3268 (ui::ui): Initialize num.
3270 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3272 * observable.h <inferior_created>: Remove parameters. Update all
3274 * inferior.h (post_create_inferior): Remove target parameter.
3277 2020-10-02 Nitika Achra <Nitika.Achra@amd.com>
3279 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
3280 and DW_MACRO_undef_strx.
3281 (dwarf_decode_macros): Likewise
3282 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
3283 which is the value of DW_AT_str_offsets_base.
3284 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
3287 2020-10-01 Kamil Rytarowski <n54@gmx.com>
3289 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
3291 2020-10-01 Kamil Rytarowski <n54@gmx.com>
3293 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
3294 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
3296 2020-10-01 Kamil Rytarowski <n54@gmx.com>
3298 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
3300 2020-09-30 Tom de Vries <tdevries@suse.de>
3303 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
3305 2020-09-30 Tom Tromey <tromey@adacore.com>
3307 * dwarf2/read.c (handle_variant): Use constant_value.
3309 2020-09-29 Tom Tromey <tom@tromey.com>
3311 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
3312 (read_file_scope, dwarf2_get_pc_bounds)
3313 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
3314 (read_structure_type, handle_struct_member_die)
3315 (read_enumeration_type, read_array_type, read_set_type)
3316 (read_tag_pointer_type, read_tag_reference_type)
3317 (read_subroutine_type, read_base_type, read_subrange_type)
3318 (read_full_die_1, partial_die_info::read)
3319 (partial_die_info::read, by, new_symbol)
3320 (dwarf2_const_value_data, dwarf2_const_value_attr)
3321 (dump_die_shallow, dwarf2_fetch_constant_bytes)
3322 (prepare_one_comp_unit): Update.
3323 * dwarf2/attribute.h (DW_UNSND): Remove.
3325 2020-09-29 Tom Tromey <tom@tromey.com>
3327 * dwarf2/read.c (read_func_scope, prototyped_function_p)
3328 (read_subroutine_type, partial_die_info::read)
3329 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
3330 (dwarf2_add_member_fn): Update.
3331 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
3332 * dwarf2/attribute.c (attribute::as_boolean): New method.
3334 2020-09-29 Tom Tromey <tom@tromey.com>
3336 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
3337 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
3339 * dwarf2/attribute.c (attribute::as_virtuality): New method.
3341 2020-09-29 Tom Tromey <tom@tromey.com>
3343 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
3344 the attribute's form.
3346 2020-09-29 Tom Tromey <tom@tromey.com>
3348 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
3349 (dwarf2_add_member_fn): Update.
3350 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
3351 * dwarf2/attribute.c (attribute::defaulted): New method, from
3352 is_valid_DW_AT_defaulted.
3354 2020-09-29 Tom Tromey <tom@tromey.com>
3356 * dwarf2/read.c (dw2_get_file_names_reader)
3357 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
3358 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
3359 (dwarf2_symbol_mark_computed): Use as_unsigned.
3360 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
3362 <form_is_section_offset>: Update comment.
3364 2020-09-29 Tom Tromey <tom@tromey.com>
3366 * dwarf2/read.c (dwarf2_access_attribute): Rename from
3367 dwarf2_default_access_attribute. Look up attribute.
3368 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
3371 2020-09-29 Tom Tromey <tom@tromey.com>
3373 * dwarf2/read.c (skip_one_die): Update.
3374 (read_full_die_1): Change how reprocessing is done.
3375 (partial_die_info::read): Update.
3376 (read_attribute_value): Remove need_reprocess parameter.
3377 (read_attribute): Likewise.
3378 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
3381 2020-09-29 Tom Tromey <tom@tromey.com>
3383 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
3384 (dwarf2_const_value_attr, dump_die_shallow)
3385 (dwarf2_fetch_constant_bytes): Update.
3386 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
3388 <set_address>: New method.
3390 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
3391 (attribute::as_string, attribute::as_address): Add assert.
3393 2020-09-29 Tom Tromey <tom@tromey.com>
3395 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
3396 (read_attribute_reprocess, read_attribute_value): Update.
3397 (read_attribute): Clear requires_reprocessing.
3398 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
3399 form_requires_reprocessing>: New methods.
3400 <string_init>: Clear requires_reprocessing.
3401 <set_unsigned_reprocess>: New method.
3402 <name>: Shrink by one bit.
3403 <requires_reprocessing>: New member.
3404 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
3407 2020-09-29 Tom Tromey <tom@tromey.com>
3409 * dwarf2/read.c (read_attribute_value): Update.
3410 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
3411 set_unsigned>: New methods.
3412 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
3414 2020-09-29 Tom Tromey <tom@tromey.com>
3416 * dwarf2/read.c (get_alignment, read_array_order)
3417 (read_attribute_value, dwarf2_const_value_attr)
3418 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
3419 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
3423 2020-09-29 Tom Tromey <tom@tromey.com>
3425 * dwarf2/read.c (read_attribute_value, lookup_die_type)
3426 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
3428 * dwarf2/attribute.h (struct attribute) <as_signature,
3429 set_signature>: New methods.
3430 (DW_SIGNATURE): Remove.
3432 2020-09-29 Tom Tromey <tom@tromey.com>
3434 * dwarf2/read.c (read_call_site_scope)
3435 (handle_data_member_location, dwarf2_add_member_fn)
3436 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3437 (partial_die_info::read, read_attribute_value)
3438 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
3439 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
3440 (dwarf2_symbol_mark_computed): Update.
3441 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
3444 * dwarf2/attribute.c (attribute::form_is_block): Add
3447 2020-09-29 Tom Tromey <tom@tromey.com>
3449 * dwarf2/read.c (read_cutu_die_from_dwo)
3450 (read_attribute_reprocess, read_attribute_value, read_attribute)
3451 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
3452 (dwarf2_fetch_constant_bytes): Update.
3453 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
3454 <set_string_noncanonical, set_string_canonical>: New methods.
3455 <string_is_canonical>: Update comment.
3456 <canonical_string_p>: Add assert.
3457 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
3458 * dwarf2/attribute.c (attribute::form_is_string): New method.
3459 (attribute::string): Use it.
3461 2020-09-29 Tom Tromey <tom@tromey.com>
3463 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
3464 (dump_die_shallow): Use canonical_string_p.
3465 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
3468 2020-09-29 Tom Tromey <tom@tromey.com>
3470 * dwarf2/read.c (partial_die_info::read)
3471 (dwarf2_const_value_attr, anonymous_struct_prefix, )
3472 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
3473 attribute::as_string.
3475 2020-09-29 Tom Tromey <tom@tromey.com>
3477 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
3479 (attribute::string): Don't use DW_STRING.
3480 (attribute::get_ref_die_offset): Don't use DW_UNSND.
3481 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
3483 2020-09-29 Tom Tromey <tom@tromey.com>
3485 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
3486 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
3487 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
3488 * dwarf2/attribute.h (struct attribute): Rename methods.
3489 * dwarf2/attribute.c (attribute::as_address): Rename from
3491 (attribute::as_string): Rename from value_as_string.
3493 2020-09-29 Tom Tromey <tom@tromey.com>
3495 * dwarf2/read.c (partial_die_info::read) <case
3496 DW_AT_linkage_name>: Use value_as_string.
3497 (dwarf2_string_attr): Use value_as_string.
3498 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
3500 * dwarf2/attribute.c (attribute::value_as_string): New method.
3502 2020-09-29 Pedro Alves <pedro@palves.net>
3504 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
3505 defined before using '#pragma GCC diagnostic' instead of checking
3508 2020-09-28 Tom Tromey <tom@tromey.com>
3510 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
3511 (handle_signal_stop): Update.
3512 * procfs.c (procfs_target::insert_watchpoint): Update.
3513 * target.h (target_have_steppable_watchpoint): Now a function.
3515 2020-09-28 Tom Tromey <tom@tromey.com>
3517 * infrun.c (set_schedlock_func): Update.
3518 * target.h (target_can_lock_scheduler): Now a function.
3520 2020-09-28 Tom Tromey <tom@tromey.com>
3522 * inferior.h (class inferior) <has_execution>: Update.
3523 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
3524 * valops.c (find_function_in_inferior)
3525 (value_allocate_space_in_inferior): Update.
3526 * top.c (kill_or_detach): Update.
3527 * target.c (target_preopen, set_target_permissions): Update.
3528 (target_has_execution_current): Remove.
3529 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
3531 * solib.c (update_solib_list, reload_shared_libraries): Update.
3532 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
3533 * solib-dsbt.c (enable_break): Update.
3534 * score-tdep.c (score7_fetch_inst): Update.
3535 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
3537 * remote.c (remote_target::start_remote)
3538 (remote_target::remote_check_symbols, remote_target::open_1)
3539 (remote_target::remote_detach_1, remote_target::verify_memory)
3540 (remote_target::xfer_partial, remote_target::read_description)
3541 (remote_target::get_min_fast_tracepoint_insn_len): Update.
3542 * record-full.c (record_full_open_1): Update.
3543 * record-btrace.c (record_btrace_target_open): Update.
3544 * objc-lang.c (lookup_objc_class, lookup_child_selector)
3545 (value_nsstring): Update.
3546 * linux-thread-db.c (add_thread_db_info)
3547 (thread_db_find_new_threads_silently, check_thread_db_callback)
3548 (try_thread_db_load_1, record_thread): Update.
3549 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
3551 * linux-fork.c (checkpoint_command): Update.
3552 * infrun.c (set_non_stop, set_observer_mode)
3553 (check_multi_target_resumption, for_each_just_stopped_thread)
3554 (maybe_remove_breakpoints, normal_stop)
3555 (class infcall_suspend_state): Update.
3556 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
3557 (info_program_command, attach_command): Update.
3558 * infcall.c (call_function_by_hand_dummy): Update.
3559 * inf-loop.c (inferior_event_handler): Update.
3560 * gcore.c (gcore_command, derive_heap_segment): Update.
3561 * exec.c (exec_file_command): Update.
3562 * eval.c (evaluate_subexp): Update.
3563 * compile/compile.c (compile_to_object): Update.
3564 * cli/cli-dump.c (restore_command): Update.
3565 * breakpoint.c (update_watchpoint)
3566 (update_inserted_breakpoint_locations)
3567 (insert_breakpoint_locations, get_bpstat_thread): Update.
3568 * target.h (target_has_execution): Remove macro.
3569 (target_has_execution_current): Don't declare.
3570 (target_has_execution): Rename from target_has_execution_1. Add
3573 2020-09-28 Tom Tromey <tom@tromey.com>
3575 * mi/mi-main.c (exec_reverse_continue)
3576 (mi_cmd_list_target_features): Update.
3577 * infrun.c (set_exec_direction_func): Update.
3578 * target.c (default_execution_direction): Update.
3579 * reverse.c (exec_reverse_once): Update.
3580 * target.h (target_can_execute_reverse): Now a function.
3582 2020-09-28 Tom Tromey <tom@tromey.com>
3584 * tui/tui-regs.c (tui_get_register)
3585 (tui_data_window::show_registers): Update.
3586 * thread.c (scoped_restore_current_thread::restore)
3587 (scoped_restore_current_thread::scoped_restore_current_thread):
3589 * regcache-dump.c (regcache_print): Update.
3590 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
3592 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
3593 * mep-tdep.c (current_me_module, current_options): Update.
3594 * linux-thread-db.c (thread_db_load): Update.
3595 * infcmd.c (registers_info, info_vector_command)
3596 (info_float_command): Update.
3597 * ia64-tdep.c (ia64_frame_prev_register)
3598 (ia64_sigtramp_frame_prev_register): Update.
3599 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
3600 * gcore.c (derive_stack_segment): Update.
3601 * frame.c (get_current_frame, has_stack_frames): Update.
3602 * findvar.c (language_defn::read_var_value): Update.
3603 * arm-tdep.c (arm_pc_is_thumb): Update.
3604 * target.c (target_has_registers): Rename from
3605 target_has_registers_1.
3606 * target.h (target_has_registers): Remove macro.
3607 (target_has_registers): Rename from target_has_registers_1.
3609 2020-09-28 Tom Tromey <tom@tromey.com>
3611 * windows-tdep.c (tlb_make_value): Update.
3612 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3613 * thread.c (scoped_restore_current_thread::restore)
3614 (scoped_restore_current_thread::scoped_restore_current_thread)
3615 (thread_command): Update.
3616 * stack.c (backtrace_command_1, frame_apply_level_command)
3617 (frame_apply_all_command, frame_apply_command): Update.
3618 * infrun.c (siginfo_make_value, restore_infcall_control_state):
3620 * gcore.c (derive_stack_segment): Update.
3621 * frame.c (get_current_frame, has_stack_frames): Update.
3622 * auxv.c (info_auxv_command): Update.
3623 * ada-tasks.c (ada_build_task_list): Update.
3624 * target.c (target_has_stack): Rename from target_has_stack_1.
3625 * target.h (target_has_stack): Remove macro.
3626 (target_has_stack): Rename from target_has_stack_1.
3628 2020-09-28 Tom Tromey <tom@tromey.com>
3630 * target.c (target_has_memory): Rename from target_has_memory_1.
3631 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3632 * thread.c (scoped_restore_current_thread::restore)
3633 (scoped_restore_current_thread::scoped_restore_current_thread):
3635 * frame.c (get_current_frame, has_stack_frames): Update.
3636 * target.h (target_has_memory): Remove macro.
3637 (target_has_memory): Rename from target_has_memory_1.
3639 2020-09-28 Tom Tromey <tom@tromey.com>
3641 * target.c (target_has_all_memory_1): Remove.
3642 * target.h (target_has_all_memory): Remove define.
3643 (target_has_all_memory_1): Don't declare.
3645 2020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
3647 * ser-base.c: Adjust comments formatting.
3649 2020-09-27 Tom Tromey <tom@tromey.com>
3652 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
3654 2020-09-27 Tom Tromey <tom@tromey.com>
3657 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
3659 2020-09-27 Tom Tromey <tom@tromey.com>
3661 * unittests/tui-selftests.c: Update.
3662 * tui/tui-winsource.h (struct tui_source_window_base)
3663 <extra_margin, show_line_number, refresh_pad>: New methods.
3664 <m_max_length, m_pad>: New members.
3665 (tui_copy_source_line): Update.
3666 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
3667 first_col, line_width, ndigits parameters. Add length.
3668 (tui_source_window_base::show_source_line): Write to pad. Line
3670 (tui_source_window_base::refresh_pad): New method.
3671 (tui_source_window_base::show_source_content): Write to pad. Call
3673 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
3675 (tui_source_window_base::update_exec_info): Call
3677 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
3679 <m_digits>: New member.
3680 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
3682 (tui_source_window::show_line_number): New method.
3683 * tui/tui-io.h (tui_puts): Fix comment.
3684 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
3687 2020-09-27 Tom Tromey <tom@tromey.com>
3689 * tui/tui-winsource.c
3690 (tui_source_window_base::set_is_exec_point_at): Don't call
3693 2020-09-27 Tom Tromey <tom@tromey.com>
3695 * python/py-tui.c (class tui_py_window) <refresh_window>: New
3698 <cursor_x, cursor_y>: Remove.
3699 <m_inner_window>: New member.
3700 (tui_py_window::rerender): Create inner window.
3701 (tui_py_window::output): Write to inner window.
3703 2020-09-26 Gareth Rees <grees@undo.io> (tiny change)
3706 * cli/cli-script.c (execute_control_commands): don't set
3707 instream to nullptr here as this breaks the from_tty argument
3708 to gdb.execute in Python.
3709 (execute_user_command): set instream to nullptr here instead.
3711 2020-09-25 Simon Marchi <simon.marchi@efficios.com>
3713 * infrun.h (infrun_debug_printf): Fix formatting.
3714 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
3716 2020-09-25 Saagar Jha <saagar@saagarjha.com>
3718 * compile/compile-object-load.h (struct munmap_list): Add
3719 explicitly-defined move constructor.
3721 2020-09-24 Tom Tromey <tromey@adacore.com>
3724 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
3726 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
3727 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
3728 (tui_prev_win): Rewrite.
3730 2020-09-23 Hannes Domani <ssbssa@yahoo.de>
3732 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
3733 in WOW64 processes as SIGINT.
3734 * nat/windows-nat.h: Make wow64_process a shared variable.
3735 * windows-nat.c: Remove static wow64_process variable.
3737 2020-09-23 Tom Tromey <tom@tromey.com>
3740 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
3741 offset and bit size.
3742 * printcmd.c (print_scalar_formatted): Handle zero-length
3744 (print_scalar_formatted): Use bit_size_differs_p.
3745 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
3747 (union type_specific): <int_stuff>: New member.
3748 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
3750 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
3751 TYPE_SPECIFIC_FIELD.
3752 (recursive_dump_type, copy_type_recursive): Update.
3753 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
3754 DW_AT_data_bit_offset.
3756 2020-09-23 Tom Tromey <tom@tromey.com>
3758 * utils.h (class gdb_argv): Add move operators.
3759 <append>: New methods.
3760 * compile/compile.c (build_argc_argv): Remove.
3761 (compile_args_argc): Remove.
3762 (compile_args_argv): Change type.
3763 (set_compile_args): Simplify.
3764 (append_args): Remove.
3765 (filter_args): Remove argcp parameter.
3766 (get_args): Return gdb_argv. Simplify.
3767 (compile_to_object): Update.
3769 2020-09-23 Tom Tromey <tom@tromey.com>
3771 * compile/compile-object-run.c (do_module_cleanup)
3772 <~do_module_cleanup> :Remove.
3773 (do_module_cleanup): Update.
3774 * compile/compile-object-load.h (struct munmap_list): Add move
3775 assignment operator.
3776 <source_file>: Now a std::string.
3777 <munmap_list>: Rename. No longer a pointer.
3778 * compile/compile-object-load.c (struct setup_sections_data): Add
3780 <setup_one_section>: Declare.
3781 <munmap_list>: Move earlier.
3782 <m_bfd>: New member.
3783 <m_last_size, m_last_section_first, m_last_prot,
3784 m_last_max_alignment>: Rename, add initializers where needed.
3785 (setup_sections_data::setup_one_section): Rename from
3786 setup_sections. Update.
3787 (compile_object_load): Update. Don't use bfd_map_over_sections.
3789 2020-09-23 Tom Tromey <tom@tromey.com>
3791 * compile/compile-object-run.c (struct do_module_cleanup): Add
3792 parameters to constructor. Update destructor.
3793 <source_file, scope, scope_data, out_value_type, out_value_addr,
3794 munmap_list_head, objfile_name_string>: Remove.
3795 <module>: New member.
3796 (do_module_cleanup): Update.
3797 (compile_object_run): Update.
3799 2020-09-23 Tom Tromey <tom@tromey.com>
3801 * compile/compile.c (eval_compile_command): Update.
3802 * compile/compile-object-run.h (compile_object_run): Take a
3804 * compile/compile-object-run.c (compile_object_run): Take a
3806 * compile/compile-object-load.h (struct compile_module): Add
3807 constructor, destructor.
3808 (compile_module_up): New typedef.
3809 (compile_object_load): Return compile_object_up.
3810 * compile/compile-object-load.c (compile_object_load): Return
3813 2020-09-23 Tom Tromey <tom@tromey.com>
3815 * compile/compile-object-run.c (struct do_module_cleanup): Add
3816 constructor, destructor.
3817 <objfile_name_string>: Don't use struct hack.
3818 (do_module_cleanup): Use delete.
3819 (compile_object_run): Use new.
3821 2020-09-23 Tom Tromey <tom@tromey.com>
3823 * compile/compile-cplus-types.c
3824 (compile_cplus_convert_struct_or_union): Use std::vector.
3825 (compile_cplus_convert_func): Likewise.
3826 * compile/compile-c-types.c (convert_func): Use std::vector.
3828 2020-09-21 Tom Tromey <tromey@adacore.com>
3830 * sparc-tdep.c (sparc32_skip_prologue): Use
3831 skip_prologue_using_sal.
3833 2020-09-19 Tom Tromey <tom@tromey.com>
3835 * symfile.c (add_section_size_callback): Remove.
3836 (load_one_section): Rename from load_section_callback. Change
3838 (generic_load): Use foreach.
3840 2020-09-19 Tom Tromey <tom@tromey.com>
3842 * exec.c (add_to_section_table): Remove.
3843 (build_section_table): Use foreach.
3845 2020-09-19 Tom Tromey <tom@tromey.com>
3847 * elfread.c (elf_locate_sections): Change parameters.
3848 (elf_symfile_read): Use foreach.
3850 2020-09-19 Tom Tromey <tom@tromey.com>
3852 * cli/cli-dump.c (struct callback_data): Remove.
3853 (restore_one_section): Rename from restore_section_callback.
3855 (restore_binary_file): Change parameters.
3856 (restore_command): Use foreach.
3858 2020-09-19 Tom Tromey <tom@tromey.com>
3860 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
3861 (gcore_copy_callback): Likewise.
3862 (gcore_memory_sections): Use foreach.
3864 2020-09-19 Tom Tromey <tom@tromey.com>
3866 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
3867 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
3869 (generic_elf_osabi_sniffer): Use foreach.
3870 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
3871 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
3873 2020-09-19 Tom Tromey <tom@tromey.com>
3875 * dwarf2/read.c (locate_dwz_sections): Change parameters.
3876 (dwarf2_get_dwz_file): Use foreach.
3877 (dwarf2_locate_dwo_sections): Change parameters.
3878 (open_and_init_dwo_file): Use foreach.
3879 (dwarf2_locate_common_dwp_sections): Change parameters.
3880 (open_and_init_dwp_file): Use foreach.
3882 2020-09-19 Tom Tromey <tom@tromey.com>
3884 * symfile.h: (find_lowest_section): Don't declare.
3885 * symfile.c (find_lowest_section): Now static. Change
3887 (struct place_section_arg): Remove.
3888 (place_section): Change parameters.
3889 (addr_info_make_relative): Use foreach.
3890 (symfile_dummy_outputs): Remove.
3891 (default_symfile_relocate): Use foreach.
3893 2020-09-19 Tom Tromey <tom@tromey.com>
3895 * objfiles.c (add_to_objfile_sections): Rename from
3896 add_to_objfile_sections_full.
3897 (add_to_objfile_sections): Remove.
3898 (build_objfile_section_table): Use foreach.
3900 2020-09-19 Tom Tromey <tom@tromey.com>
3902 * stap-probe.c (get_stap_base_address_1): Remove.
3903 (get_stap_base_address): Use foreach.
3905 2020-09-19 Tom Tromey <tom@tromey.com>
3907 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
3909 (gdb_bfd_close_or_warn): Use foreach.
3911 2020-09-19 Tom Tromey <tom@tromey.com>
3913 * corelow.c (add_to_thread_list): Change parameters.
3914 (core_target_open): Use foreach.
3916 2020-09-19 Tom Tromey <tom@tromey.com>
3918 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
3921 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3923 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
3926 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3928 * eval.c: Remove 'f-lang.h' include.
3929 (value_f90_subarray): Moved to f-lang.c.
3930 (eval_call): Renamed to...
3931 (evaluate_subexp_do_call): ...this, is no longer static, header
3932 comment moved into header file.
3933 (evaluate_funcall): Update call to eval_call.
3934 (skip_undetermined_arglist): Moved to f-lang.c.
3935 (fortran_value_subarray): Likewise.
3936 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3937 moved to evaluate_subexp_f.
3938 (calc_f77_array_dims): Moved to f-lang.c
3939 * expprint.c (print_subexp_funcall): New function.
3940 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3941 moved to print_subexp_f, OP_FUNCALL uses new function.
3942 (dump_subexp_body_funcall): New function.
3943 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
3944 moved to dump_subexp_f, OP_FUNCALL uses new function.
3945 * expression.h (evaluate_subexp_do_call): Declare.
3946 * f-lang.c (value_f90_subarray): Moved from eval.c.
3947 (skip_undetermined_arglist): Likewise.
3948 (calc_f77_array_dims): Likewise.
3949 (fortran_value_subarray): Likewise.
3950 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
3951 (operator_length_f): Likewise.
3952 (print_subexp_f): Likewise.
3953 (dump_subexp_body_f): Likewise.
3954 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
3955 declaration of this operation to here.
3956 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
3957 support moved to operator_length_f.
3958 * parser-defs.h (dump_subexp_body_funcall): Declare.
3959 (print_subexp_funcall): Declare.
3960 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
3961 fortran-operator.def.
3963 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3965 * eval.c (fortran_value_subarray): New function, content is taken
3967 (evaluate_subexp_standard): ...here, in two places. Now arrays
3968 and strings both call the new function.
3969 (calc_f77_array_dims): Add header comment, handle strings.
3971 2020-09-18 Victor Collod <vcollod@nvidia.com>
3974 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
3975 (i386_analyze_prologue): Call i386_skip_endbr.
3977 2020-09-18 Tom Tromey <tromey@adacore.com>
3979 * windows-nat.c (struct windows_nat_target) <wait>: Update.
3980 (windows_nat_target::wait): Update.
3981 * target/wait.h (enum target_wait_flag): New. Use
3982 DEF_ENUM_FLAGS_TYPE.
3983 * target/target.h (target_wait): Change type of options.
3984 * target.h (target_options_to_string, default_target_wait):
3986 (struct target_ops) <wait>: Change type of options.
3987 * target.c (target_wait, default_target_wait, do_option): Change
3989 (target_options_to_string): Likewise.
3990 * target-delegates.c: Rebuild.
3991 * target-debug.h (target_debug_print_target_wait_flags): Rename
3992 from target_debug_print_options.
3993 * sol-thread.c (class sol_thread_target) <wait>: Update.
3994 (sol_thread_target::wait): Update.
3995 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
3996 (rs6000_nat_target::wait): Update.
3997 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
3999 (remote_target::wait_ns, remote_target::wait_as): Change type of
4001 (remote_target::wait): Update.
4002 * remote-sim.c (struct gdbsim_target) <wait>: Update.
4003 (gdbsim_target::wait): Update.
4004 * record-full.c (class record_full_base_target) <wait>: Update.
4005 (record_full_wait_1): Change type of "options".
4006 (record_full_base_target::wait): Update.
4007 * record-btrace.c (class record_btrace_target) <wait>: Update.
4008 (record_btrace_target::wait): Update.
4009 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
4011 (ravenscar_thread_target::wait): Update.
4012 * procfs.c (class procfs_target) <wait>: Update.
4013 (procfs_target::wait): Update.
4014 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
4015 * obsd-nat.c (obsd_nat_target::wait): Update.
4016 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
4017 (nto_procfs_target::wait): Update.
4018 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
4019 * nbsd-nat.c (nbsd_wait): Change type of "options".
4020 (nbsd_nat_target::wait): Update.
4021 * linux-thread-db.c (class thread_db_target) <wait>: Update.
4022 (thread_db_target::wait): Update.
4023 * linux-nat.h (class linux_nat_target) <wait>: Update.
4024 * linux-nat.c (linux_nat_target::wait): Update.
4025 (linux_nat_wait_1): Update.
4026 * infrun.c (do_target_wait_1, do_target_wait): Change type of
4028 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
4029 * inf-ptrace.c (inf_ptrace_target::wait): Update.
4030 * go32-nat.c (struct go32_nat_target) <wait>: Update.
4031 (go32_nat_target::wait): Update.
4032 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
4033 * gnu-nat.c (gnu_nat_target::wait): Update.
4034 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
4035 * fbsd-nat.c (fbsd_nat_target::wait): Update.
4036 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
4037 * darwin-nat.c (darwin_nat_target::wait): Update.
4038 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
4039 (bsd_uthread_target::wait): Update.
4040 * aix-thread.c (class aix_thread_target) <wait>: Update.
4041 (aix_thread_target::wait): Update.
4043 2020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
4045 * compile/compile-object-run.c (create_copied_type_recursive): New
4047 (compile_object_run): Use new function.
4049 2020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
4051 * NEWS: Mention x86_64 Cygwin core file support.
4053 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4055 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
4056 (core_process_module_section): Handle NOTE_INFO_MODULE64.
4058 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4060 * windows-tdep.h: Add prototypes.
4061 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
4062 (i386_windows_core_pid_to_str): Move and rename ...
4063 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
4064 (windows_core_pid_to_str): ... and here.
4065 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
4067 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4068 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
4069 (amd64_windows_init_abi_common): ... and register.
4071 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4073 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
4074 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
4076 2020-09-18 Pedro Alves <pedro@palves.net>
4079 * thread.c (thread_find_command): Switch inferior before calling
4082 2020-09-17 Tom Tromey <tromey@adacore.com>
4084 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
4085 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
4086 (tdesc_arch_data_up): New typedef.
4087 (tdesc_use_registers, tdesc_data_alloc): Update.
4088 (tdesc_data_cleanup): Don't declare.
4089 * target-descriptions.c (tdesc_data_alloc): Return a
4091 (tdesc_arch_data_deleter::operator()): Rename from
4092 tdesc_data_cleanup. Change argument type.
4093 (tdesc_use_registers): Change early_data to an rvalue reference.
4094 (tdesc_use_registers): Don't use delete.
4095 * sparc-tdep.c (sparc32_gdbarch_init): Update.
4096 * s390-tdep.c (s390_gdbarch_init): Update.
4097 * rx-tdep.c (rx_gdbarch_init): Update.
4098 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4099 * riscv-tdep.c (riscv_gdbarch_init): Update.
4100 * or1k-tdep.c (or1k_gdbarch_init): Update.
4101 * nios2-tdep.c (nios2_gdbarch_init): Update.
4102 * nds32-tdep.c (nds32_gdbarch_init): Update.
4103 * mips-tdep.c (mips_gdbarch_init): Update.
4104 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
4105 * m68k-tdep.c (m68k_gdbarch_init): Update.
4106 * i386-tdep.c (i386_gdbarch_init): Update.
4107 * arm-tdep.c (arm_gdbarch_init): Update.
4108 * arc-tdep.c (arc_tdesc_init): Update.
4109 (arc_gdbarch_init): Update.
4110 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
4112 2020-09-17 Hannes Domani <ssbssa@yahoo.de>
4114 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
4115 for WOW64 processes.
4117 2020-09-17 Tom Tromey <tom@tromey.com>
4119 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
4121 2020-09-17 Tom Tromey <tom@tromey.com>
4123 * value.c (preserve_values): Update.
4124 * python/py-type.c (save_objfile_types): Update.
4125 * guile/scm-type.c (save_objfile_types): Update.
4126 * gdbtypes.h (create_copied_types_hash): Return htab_up.
4127 * gdbtypes.c (create_copied_types_hash): Return htab_up.
4128 * compile/compile-object-run.c (compile_object_run): Update.
4130 2020-09-17 Tom Tromey <tom@tromey.com>
4132 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
4134 <m_table>: Now htab_up.
4135 * typeprint.c (typedef_hash_table::recursively_update)
4136 (typedef_hash_table::add_template_parameters)
4137 (typedef_hash_table::typedef_hash_table): Update.
4138 (typedef_hash_table::~typedef_hash_table): Remove.
4139 (typedef_hash_table::typedef_hash_table)
4140 (typedef_hash_table::find_global_typedef)
4141 (typedef_hash_table::find_typedef): Update.
4143 2020-09-17 Tom Tromey <tom@tromey.com>
4145 * target-descriptions.c (tdesc_use_registers): Use htab_up.
4147 2020-09-17 Tom Tromey <tom@tromey.com>
4149 * linespec.c (class decode_compound_collector)
4150 <~decode_compound_collector>: Remove.
4151 <m_unique_syms>: Now htab_up.
4152 (decode_compound_collector::operator ()): Update.
4153 (class symtab_collector) <~symtab_collector>: Remove.
4154 <m_symtab_table>: Now htab_up.
4155 (symtab_collector::operator ()): Update.
4157 2020-09-17 Tom Tromey <tom@tromey.com>
4159 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
4160 (filename_seen_cache::clear): Update.
4161 (~filename_seen_cache): Remove.
4162 (filename_seen_cache::seen): Update.
4163 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
4165 <~filename_seen_cache>: Remove.
4168 2020-09-17 Tom Tromey <tom@tromey.com>
4170 * completer.c (completion_tracker::discard_completions)
4171 (completion_tracker::~completion_tracker)
4172 (completion_tracker::maybe_add_completion)
4173 (completion_tracker::remove_completion)
4174 (completion_tracker::recompute_lowest_common_denominator)
4175 (completion_tracker::build_completion_result): Update.
4176 * completer.h (class completion_tracker) <have_completions>:
4178 <m_entries_hash>: Now htab_up.
4180 2020-09-17 Tom Tromey <tom@tromey.com>
4182 * breakpoint.c (ambiguous_names_p): Use htab_up.
4184 2020-09-17 Tom Tromey <tom@tromey.com>
4186 * auto-load.c (struct auto_load_pspace_info)
4187 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
4188 <loaded_script_files, loaded_script_texts>: Change type to
4190 (~auto_load_pspace_info) Remove.
4191 (init_loaded_scripts_info, maybe_add_script_file)
4192 (maybe_add_script_text, auto_load_info_scripts): Update.
4194 2020-09-17 Tom Tromey <tromey@adacore.com>
4196 * c-exp.y (name_obstack): Now static.
4198 2020-09-17 Chungyi Chi <demonic@csie.io>
4200 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
4202 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
4204 * breakpoint.h (init_catchpoint): Change int parameter to bool.
4205 (add_solib_catchpoint): Likewise.
4206 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
4208 (add_solib_catchpoint): Change int parameter/variable to bool.
4209 (catch_load_or_unload): Likewise.
4210 (init_catchpoint): Likewise.
4211 (create_fork_vfork_event_catchpoint): Likewise.
4212 (catch_fork_command_1): Likewise.
4213 (catch_exec_command_1): Likewise.
4215 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
4217 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
4218 Change instance_flags to m_instance_flags.
4220 2020-09-16 Tom Tromey <tromey@adacore.com>
4223 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
4225 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4227 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
4229 (fbsd_nat_target::insert_exec_catchpoint)
4230 (fbsd_nat_target::remove_exec_catchpoint): Always define.
4231 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
4232 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
4234 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4236 * configure.ac: Remove check for kinfo_getvmmap().
4237 * configure, config.in: Regenerate.
4238 * fbsd-nat.c (fbsd_read_mapping): Remove
4239 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
4240 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
4241 kinfo_get_vmmap() are always present.
4243 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4245 * fbsd-nat.c: Always include support for
4246 TARGET_OBJECT_SIGNAL_INFO.
4248 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4250 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
4251 sysctl and remove procfs fallback.
4253 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4255 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
4256 * fbsd-nat.h: Likewise.
4258 2020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4260 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
4263 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4265 * ada-lang.c (ada_language_data): Delete.
4266 (ada_language): Remove references to ada_language_data.
4267 * c-lang.c (c_language_data): Delete.
4268 (c_language): Remove references to c_language_data.
4269 (cplus_language_data): Delete.
4270 (cplus_language): Remove references to cplus_language_data.
4271 (asm_language_data): Delete.
4272 (asm_language): Remove references to asm_language_data.
4273 (minimal_language_data): Delete.
4274 (minimal_language): Remove references to minimal_language_data.
4275 * d-lang.c (d_language_data): Delete.
4276 (d_language): Remove references to d_language_data.
4277 * f-lang.c (f_language_data): Delete.
4278 (f_language): Remove references to f_language_data.
4279 * go-lang.c (go_language_data): Delete.
4280 (go_language): Remove references to go_language_data.
4281 * language.c (unknown_language_data): Delete.
4282 (unknown_language): Remove references to unknown_language_data.
4283 (auto_language_data): Delete.
4284 (auto_language): Remove references to auto_language_data.
4285 * language.h (language_data): Delete struct.
4286 (language_defn): No longer inherit from language_data.
4287 * m2-lang.c (m2_language_data): Delete.
4288 (m2_language): Remove references to m2_language_data.
4289 * objc-lang.c (objc_language_data): Delete.
4290 (objc_language): Remove references to objc_language_data.
4291 * opencl-lang.c (opencl_language_data): Delete.
4292 (opencl_language): Remove references to opencl_language_data.
4293 * p-lang.c (pascal_language_data): Delete.
4294 (pascal_language): Remove references to pascal_language_data.
4295 * rust-lang.c (rust_language_data): Delete.
4296 (rust_language): Remove references to rust_language_data.
4298 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4300 * ada-lang.c (ada_language_data): Remove la_op_print_tab
4302 (ada_language::opcode_print_table): New member function.
4303 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
4304 (c_language::opcode_print_table): New member function.
4305 (cplus_language_data): Remove la_op_print_tab initializer.
4306 (cplus_language::opcode_print_table): New member function.
4307 (asm_language_data): Remove la_op_print_tab initializer.
4308 (asm_language::opcode_print_table): New member function.
4309 (minimal_language_data): Remove la_op_print_tab initializer.
4310 (minimal_language::opcode_print_table): New member function.
4311 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
4312 (d_language::opcode_print_table): New member function.
4313 * expprint.c (print_subexp_standard): Update call to
4315 (op_string): Likewise.
4316 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
4317 (f_language::opcode_print_table): New member function.
4318 * go-lang.c (go_language_data): Remove la_op_print_tab
4320 (go_language::opcode_print_table): New member function.
4321 * language.c (unknown_language_data): Remove la_op_print_tab
4323 (unknown_language::opcode_print_table): New member function.
4324 (auto_language_data): Remove la_op_print_tab initializer.
4325 (auto_language::opcode_print_table): New member function.
4326 * language.h (language_data): Remove la_op_print_tab field.
4327 (language_defn::opcode_print_table): Declare new member function.
4328 * m2-lang.c (m2_language_data): Remove la_op_print_tab
4330 (m2_language::opcode_print_table): New member function.
4331 * objc-lang.c (objc_language_data): Remove la_op_print_tab
4333 (objc_language::opcode_print_table): New member function.
4334 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
4336 (opencl_language::opcode_print_table): New member function.
4337 * p-lang.c (pascal_language_data): Remove la_op_print_tab
4339 (pascal_language::opcode_print_table): New member function.
4340 * rust-lang.c (rust_language_data): Remove la_op_print_tab
4342 (rust_language::opcode_print_table): New member function.
4344 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4346 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
4347 (ada_language::expression_ops): New member function.
4348 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
4349 (c_language::expression_ops): New member function.
4350 (cplus_language_data): Remove la_exp_desc initializer.
4351 (cplus_language::expression_ops): New member function.
4352 (asm_language_data): Remove la_exp_desc initializer.
4353 (asm_language::expression_ops): New member function.
4354 (minimal_language_data): Remove la_exp_desc initializer.
4355 (minimal_language::expression_ops): New member function.
4356 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
4357 (d_language::expression_ops): New member function.
4358 * eval.c (evaluate_subexp): Update call to expression_ops.
4359 * expprint.c (print_subexp): Likewise.
4360 (op_name): Likewise.
4361 (dump_subexp_body): Likewise.
4362 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
4363 (f_language::expression_ops): New member function.
4364 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
4365 (go_language::expression_ops): New member function.
4366 * language.c (language_defn::expression_ops): New function.
4367 (unknown_language_data): Remove la_exp_desc initializer.
4368 (auto_language_data): Likewise.
4369 * language.h (language_data): Remove la_exp_desc field.
4370 (language_defn::expression_ops): Declare new member function.
4371 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
4372 (m2_language::expression_ops): New member function.
4373 * objc-lang.c (objc_language_data): Remove la_exp_desc
4375 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
4377 (opencl_language::expression_ops): New member function.
4378 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
4379 * parse.c (operator_length): Update call to expression_ops.
4380 (exp_iterate): Likewise.
4381 * rust-lang.c (rust_language_data): Remove la_exp_desc
4383 (ruse_language::expression_ops): New member function.
4385 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4387 * ada-lang.c (ada_language_data): Remove la_varobj_ops
4389 (ada_language::varobj_ops): New member function.
4390 * c-lang.c (c_language_data): Remove la_varobj_ops
4392 (cplus_language_data): Likewise.
4393 (cplus_language::varobj_ops): New member function.
4394 (asm_language_data): Remove la_varobj_ops initializer.
4395 (minimal_language_data): Likewise.
4396 * d-lang.c (d_language_data): Likewise.
4397 * f-lang.c (f_language_data): Likewise.
4398 * go-lang.c (go_language_data): Likewise.
4399 * language.c (language_defn::varobj_ops): New function.
4400 (unknown_language_data): Remove la_varobj_ops
4402 (auto_language_data): Likewise.
4403 * language.h (language_data): Remove la_varobj_ops field.
4404 (language_defn::varobj_ops): Declare new member function.
4405 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
4406 * objc-lang.c (objc_language_data): Likewise.
4407 * opencl-lang.c (opencl_language_data): Likewise.
4408 * p-lang.c (pascal_language_data): Likewise.
4409 * rust-lang.c (rust_language_data): Likewise.
4410 * varobj.c (varobj_create): Update call to varobj_ops.
4411 * varobj.h (default_varobj_ops): Delete define.
4413 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4415 * ada-lang.c (ada_language_data): Remove la_macro_expansion
4417 * c-lang.c (c_language_data): Likewise.
4418 (c_language::macro_expansion): New member function.
4419 (cplus_language_data): Likewise.
4420 (cplus_language::macro_expansion): New member function.
4421 (asm_language_data): Likewise.
4422 (asm_language::macro_expansion): New member function.
4423 (minimal_language_data): Likewise.
4424 (minimal_language::macro_expansion): New member function.
4425 * d-lang.c (d_language_data): Remove la_macro_expansion
4427 * f-lang.c (f_language_data): Likewise.
4428 * go-lang.c (go_language_data): Likewise.
4429 * language.c (unknown_language_data): Likewise.
4430 (auto_language_data): Likewise.
4431 * language.h (language_data): Remove la_macro_expansion field.
4432 (language_defn::macro_expansion): New member function.
4433 * m2-lang.c (m2_language_data): Remove la_macro_expansion
4435 * objc-lang.c (objc_language_data): Likewise.
4436 (objc_language::macro_expansion): New member function.
4437 * opencl-lang.c (opencl_language_data): Likewise.
4438 (opencl_language::macro_expansion): New member function.
4439 * p-lang.c (pascal_language_data): Remove la_macro_expansion
4441 * rust-lang.c (rust_language_data): Likewise.
4442 * symtab.c (default_collect_symbol_completion_matches_break_on):
4443 Update call to macro_expansion.
4445 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4447 * ada-lang.c (ada_language_data): Remove la_array_ordering
4449 * c-lang.c (c_language_data): Likewise.
4450 (cplus_language_data): Likewise.
4451 (asm_language_data): Likewise.
4452 (minimal_language_data): Likewise.
4453 * d-lang.c (d_language_data): Likewise.
4454 * dwarf2/read.c (read_array_order): Update for call to
4456 * f-lang.c (f_language_data): Remove la_array_ordering
4458 (f_language::array_ordering): New member function.
4459 * go-lang.c (go_language_data): Remove la_array_ordering
4461 * language.c (unknown_language_data): Likewise.
4462 (auto_language_data): Likewise.
4463 * language.h (language_data): Delete la_array_ordering field.
4464 (language_defn::array_ordering): New member function.
4465 * m2-lang.c (m2_language_data): Remove la_array_ordering
4467 * objc-lang.c (objc_language_data): Likewise.
4468 * opencl-lang.c (opencl_language_data): Likewise.
4469 * p-lang.c (pascal_language_data): Likewise.
4470 * rust-lang.c (rust_language_data): Likewise.
4472 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4474 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
4476 * c-lang.c (c_language_data): Likewise.
4477 (cplus_language_data): Likewise.
4478 (asm_language_data): Likewise.
4479 (minimal_language_data): Likewise.
4480 * d-lang.c (d_language_data): Likewise.
4481 * f-lang.c (f_language_data): Likewise.
4482 (f_language::case_sensitivity): New member function.
4483 * go-lang.c (go_language_data): Remove la_case_sensitivity
4485 * language.c (enum case_mode): Moved here from language.h.
4486 (case_mode): Make static.
4487 (show_case_command): Update for case_sensitivity being a method.
4488 (set_case_command): Likewise.
4489 (set_range_case): Likewise.
4490 (unknown_language_data): Remove la_case_sensitivity initializer.
4491 (auto_language_data): Likewise.
4492 * language.h (case_mode): Delete, move enum declaration to
4494 (language_data): Delete la_case_sensitivity field.
4495 (language_defn::case_sensitivity): New member function.
4496 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
4498 * objc-lang.c (objc_language_data): Likewise.
4499 * opencl-lang.c (opencl_language_data): Likewise.
4500 * p-lang.c (pascal_language_data): Likewise.
4501 * rust-lang.c (rust_language_data): Likewise.
4503 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4505 * ada-lang.c (ada_language_data): Remove la_range_check
4507 * c-lang.c (c_language_data): Likewise.
4508 (cplus_language_data): Likewise.
4509 (asm_language_data): Likewise.
4510 (minimal_language_data): Likewise.
4511 * d-lang.c (d_language_data): Likewise.
4512 * f-lang.c (f_language_data): Likewise.
4513 (f_language::range_checking_on_by_default): New member function.
4514 * go-lang.c (go_language_data): Remove la_range_check initializer.
4515 * language.c (enum range_mode): Moved here from language.h.
4516 (range_mode): Made static.
4517 (show_range_command): Update to use
4518 range_checking_on_by_default.
4519 (set_range_command): Likewise.
4520 (set_range_case): Likewise.
4521 (unknown_language_data): Remove la_range_check initializer.
4522 (auto_language_data): Likewise.
4523 * language.h (range_mode): Delete. Enum definition moved to
4525 (language_data): Remove la_range_check field.
4526 (language_defn::range_checking_on_by_default): New member
4528 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
4529 (m2_language::range_checking_on_by_default): New member function.
4530 * objc-lang.c (objc_language_data): Remove la_range_check
4532 * opencl-lang.c (opencl_language_data): Likewise.
4533 * p-lang.c (pascal_language_data): Likewise.
4534 (pascal_language::range_checking_on_by_default): New member
4536 * rust-lang.c (rust_language_data): Remove la_range_check
4538 (rust_language::range_checking_on_by_default): New member
4541 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4543 * dwarf2/read.c (dwarf2_physname): Remove special case for
4545 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
4548 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4550 * ada-lang.c (ada_language_data): Remove
4551 la_store_sym_names_in_linkage_form_p initializer.
4552 (ada_language::store_sym_names_in_linkage_form_p): New member
4554 * c-lang.c (c_language_data): Remove
4555 la_store_sym_names_in_linkage_form_p initializer.
4556 (c_language::store_sym_names_in_linkage_form_p): New member
4558 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
4560 (asm_language_data): Likewise.
4561 (asm_language::store_sym_names_in_linkage_form_p): New member
4563 (minimal_language_data): Remove
4564 la_store_sym_names_in_linkage_form_p initializer.
4565 (minimal_language::store_sym_names_in_linkage_form_p): New member
4567 * d-lang.c (d_language_data): Remove
4568 la_store_sym_names_in_linkage_form_p initializer.
4569 * dwarf2/read.c (dwarf2_physname): Update call to
4570 store_sym_names_in_linkage_form_p.
4571 * f-lang.c (f_language_data): Remove
4572 la_store_sym_names_in_linkage_form_p initializer.
4573 * go-lang.c (go_language_data): Remove
4574 la_store_sym_names_in_linkage_form_p initializer.
4575 * language.c (unknown_language_data): Remove
4576 la_store_sym_names_in_linkage_form_p initializer.
4577 (unknown_language::store_sym_names_in_linkage_form_p): New member
4579 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
4581 (auto_language::store_sym_names_in_linkage_form_p): New member
4583 * language.h (language_data): Remove
4584 la_store_sym_names_in_linkage_form_p member variable.
4585 (language_defn::store_sym_names_in_linkage_form_p): New member
4587 * m2-lang.c (m2_language_data): Remove
4588 la_store_sym_names_in_linkage_form_p initializer.
4589 * objc-lang.c (objc_language_data): Likewise.
4590 * opencl-lang.c (opencl_language_data): Likewise.
4591 * p-lang.c (pascal_language_data): Likewise.
4592 * rust-lang.c (rust_language_data): Likewise.
4594 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4596 * ada-lang.c (ada_language_data): Remove string_lower_bound
4598 * c-lang.c (c_language_data): Likewise.
4599 (cplus_language_data): Likewise.
4600 (asm_language_data): Likewise.
4601 (minimal_language_data): Likewise.
4602 * d-lang.c (d_language_data): Likewise.
4603 * f-lang.c (f_language_data): Likewise.
4604 * go-lang.c (go_language_data): Likewise.
4605 * language.c (unknown_language_data): Likewise.
4606 (auto_language_data): Likewise.
4607 * language.h (language_data): Remove string_lower_bound field.
4608 (language_defn::string_lower_bound): New member function.
4609 * m2-lang.c (m2_language_data): Remove string_lower_bound
4611 (m2_language::string_lower_bound): New member function.
4612 * objc-lang.c (objc_language_data): Remove string_lower_bound
4614 * opencl-lang.c (opencl_language_data): Likewise.
4615 * p-lang.c (pascal_language_data): Likewise.
4616 * rust-lang.c (rust_language_data): Likewise.
4617 * valops.c (value_cstring): Update call to string_lower_bound.
4618 (value_string): Likewise.
4619 * value.c (allocate_repeated_value): Likewise.
4621 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4623 * valops.c (value_repeat): Fix incorrect argument name in comment.
4625 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4627 * ada-lang.c (ada_language_data): Remove c_style_arrays
4629 (ada_language::c_style_arrays_p): New member fuction.
4630 * c-lang.c (c_language_data): Remove c_style_arrays
4632 (cplus_language_data): Likewise.
4633 (asm_language_data): Likewise.
4634 (minimal_language_data): Likewise.
4635 * d-lang.c (d_language_data): Likewise.
4636 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
4637 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
4638 (f_language::c_style_arrays_p): New member function.
4639 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
4640 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
4641 * language.c (unknown_language_data): Remove c_style_arrays
4643 (auto_language_data): Likewise.
4644 * language.h (language_data): Remove c_style_arrays field.
4645 (language_defn::c_style_arrays_p): New member function.
4646 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
4647 (m2_language::c_style_arrays_p): New member function.
4648 * objc-lang.c (objc_language_data): Remove c_style_arrays
4650 * opencl-lang.c (opencl_language_data): Likewise.
4651 * p-lang.c (pascal_language_data): Likewise.
4652 * rust-lang.c (rust_language_data): Likewise.
4653 * valarith.c (value_subscript): Update call to c_style_arrays_p,
4654 and update local variable to a bool.
4655 * valops.c (value_cast): Update call to c_style_arrays_p.
4656 (value_array): Likewise.
4657 * value.c (coerce_array): Likewise.
4659 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4661 * ada-lang.c (ada_language_data): Remove la_language initializer.
4662 * c-lang.c (c_language_data): Likewise.
4663 (cplus_language_data): Likewise.
4664 (asm_language_data): Likewise.
4665 (minimal_language_data): Likewise.
4666 * d-lang.c (d_language_data): Likewise.
4667 * f-lang.c (f_language_data): Likewise.
4668 * go-lang.c (go_language_data): Likewise.
4669 * language.c (unknown_language_data): Likewise.
4670 (auto_language_data): Likewise.
4671 * language.h (language_data): Remove la_language field.
4672 (language_defn::language_defn): Initialise la_language field.
4673 (language_defn::la_language): New member variable.
4674 * m2-lang.c (m2_language_data): Remove la_language field.
4675 * objc-lang.c (objc_language_data): Likewise.
4676 * opencl-lang.c (opencl_language_data): Likewise.
4677 * p-lang.c (pascal_language_data): Likewise.
4678 * rust-lang.c (rust_language_data): Likewise.
4680 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4682 * ada-lang.c (ada_extensions): Delete, moved into
4683 ada_language::filename_extensions.
4684 (ada_language_data): Remove la_filename_extensions initializer.
4685 (ada_language::filename_extensions): New member function.
4686 * c-lang.c (c_extensions): Delete, moved into
4687 c_language::filename_extensions.
4688 (c_language_data): Remove la_filename_extensions initializer.
4689 (c_language::filename_extensions): New member function.
4690 (cplus_extensions): Delete, moved into
4691 cplus_language::filename_extensions.
4692 (cplus_language_data): Remove la_filename_extensions initializer.
4693 (cplus_language::filename_extensions): New member function.
4694 (asm_extensions): Delete, moved into
4695 asm_language::filename_extensions.
4696 (asm_language_data): Remove la_filename_extensions initializer.
4697 (asm_language::filename_extensions): New member function.
4698 (minimal_language_data): Remove la_filename_extensions
4700 * d-lang.c (d_extensions): Delete, moved into
4701 d_language::filename_extensions.
4702 (d_language_data): Remove la_filename_extensions initializer.
4703 (d_language::filename_extensions): New member function.
4704 * f-lang.c (f_extensions): Delete, moved into
4705 f_language::filename_extensions.
4706 (f_language_data): Remove la_filename_extensions initializer.
4707 (f_language::filename_extensions): New member function.
4708 * go-lang.c (go_language_data): Remove la_filename_extensions
4710 * language.c (add_set_language_command): Update now that
4711 filename_extensions returns a vector.
4712 (unknown_language_data): Remove la_filename_extensions
4714 (auto_language_data): Likewise.
4715 * language.h (language_data): Remove la_filename_extensions field.
4716 (language_defn::filename_extensions): New member function.
4717 * m2-lang.c (m2_language_data): Remove la_filename_extensions
4719 * objc-lang.c (objc_extensions): Delete, moved into
4720 objc_language::filename_extensions.
4721 (objc_language_data): Remove la_filename_extensions initializer.
4722 (objc_language::filename_extensions): New member function.
4723 * opencl-lang.c (opencl_language_data): Remove
4724 la_filename_extensions initializer.
4725 * p-lang.c (pascal_extensions): Delete, moved into
4726 pascal_language::filename_extensions.
4727 (pascal_language_data): Remove la_filename_extensions initializer.
4728 (pascal_language::filename_extensions): New member function.
4729 * rust-lang.c (rust_extensions): Delete, moved into
4730 rust_language::filename_extensions.
4731 (rust_language_data): Remove la_filename_extensions initializer.
4732 (rust_language::filename_extensions): New member function.
4733 * symfile.c (add_filename_language): Add new assert.
4735 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4737 * ada-lang.c (ada_language_data): Remove la_name and
4738 la_natural_name initializers.
4739 (ada_language::name): New member function.
4740 (ada_language::natural_name): New member function.
4741 * c-lang.c (c_language_data): Remove la_name and
4742 la_natural_name initializers.
4743 (c_language::name): New member function.
4744 (c_language::natural_name): New member function.
4745 (cplus_language_data): Remove la_name and
4746 la_natural_name initializers.
4747 (cplus_language::name): New member function.
4748 (cplus_language::natural_name): New member function.
4749 (asm_language_data): Remove la_name and
4750 la_natural_name initializers.
4751 (asm_language::name): New member function.
4752 (asm_language::natural_name): New member function.
4753 (minimal_language_data): Remove la_name and
4754 la_natural_name initializers.
4755 (minimal_language::name): New member function.
4756 (minimal_language::natural_name): New member function.
4757 * compile/compile.c (compile_to_object): Update call to
4758 lanugage_defn::name.
4759 * d-lang.c (d_language_data): Remove la_name and
4760 la_natural_name initializers.
4761 (d_language::name): New member function.
4762 (d_language::natural_name): New member function.
4763 * expprint.c (print_subexp_standard): Update call to
4764 language_defn::name.
4765 (dump_raw_expression): Likewise
4766 (dump_prefix_expression): Likewise.
4767 * f-lang.c (f_language_data): Remove la_name and
4768 la_natural_name initializers.
4769 (f_language::name): New member function.
4770 (f_language::natural_name): New member function.
4771 * go-lang.c (go_language_data): Remove la_name and
4772 la_natural_name initializers.
4773 (go_language::name): New member function.
4774 (go_language::natural_name): New member function.
4775 * language.c (show_language_command): Update call to
4776 language_defn::name.
4777 (set_language_command): Likewise.
4778 (language_enum): Likewise.
4779 (language_str): Likewise.
4780 (add_set_language_command): Likewise, use
4781 language_defn::natural_name in the doc string.
4782 (unknown_language_data): Remove la_name and
4783 la_natural_name initializers.
4784 (unknown_language::name): New member function.
4785 (unknown_language::natural_name): New member function.
4786 (auto_language_data): Remove la_name and
4787 la_natural_name initializers.
4788 (auto_language::name): New member function.
4789 (auto_language::natural_name): New member function.
4790 (language_lookup_primitive_type_as_symbol): Update call to
4791 language_defn::name.
4792 * language.h (language_data): Remove la_name and la_natural_name
4794 (language_defn::name): New member function.
4795 (language_defn::natural_name): New member function.
4796 * m2-lang.c (m2_language_data): Remove la_name and
4797 la_natural_name initializers.
4798 (m2_language::name): New member function.
4799 (m2_language::natural_name): New member function.
4800 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
4801 language_defn::natural_name.
4802 * objc-lang.c (objc_language_data): Remove la_name and
4803 la_natural_name initializers.
4804 (objc_language::name): New member function.
4805 (objc_language::natural_name): New member function.
4806 * opencl-lang.c (opencl_language_data): Remove la_name and
4807 la_natural_name initializers.
4808 (opencl_language::name): New member function.
4809 (opencl_language::natural_name): New member function.
4810 * p-lang.c (pascal_language_data): Remove la_name and
4811 la_natural_name initializers.
4812 (pascal_language::name): New member function.
4813 (pascal_language::natural_name): New member function.
4814 * rust-lang.c (rust_language_data): Remove la_name and
4815 la_natural_name initializers.
4816 (rust_language::name): New member function.
4817 (rust_language::natural_name): New member function.
4818 * symtab.c (lookup_language_this): Update call to
4819 language_defn::name.
4821 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4823 * ada-lang.c (ada_language_data): Remove la_name_of_this
4825 * ax-gdb.c (gen_expr): Update call to name_of_this.
4826 * c-exp.y (classify_name): Likewise.
4827 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
4828 (cplus_language_data): Likewise.
4829 (cplus_language::name_of_this): New member function.
4830 (asm_language_data): Remove la_name_of_this initializer.
4831 (minimal_language_data): Likewise.
4832 * d-lang.c (d_language_data): Likewise.
4833 (d_language::name_of_this): New member function.
4834 * expprint.c (print_subexp_standard): Update call to name_of_this.
4835 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
4836 * go-lang.c (go_language_data): Likewise.
4837 * language.c (unknown_language_data): Likewise.
4838 (unknown_language::name_of_this): New member function.
4839 (auto_language_data): Remove la_name_of_this initializer.
4840 (auto_language::name_of_this): New member function.
4841 * language.h (language_data): Delete la_name_of_this member
4843 (language_defn::name_of_this): New member function.
4844 * m2-lang.c (m2_language_data): Remove la_name_of_this
4846 * objc-lang.c (objc_language_data): Likewise.
4847 (objc_language::name_of_this): New member function.
4848 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
4850 * p-lang.c (pascal_language_data): Likewise.
4851 (pascal_language::name_of_this): New member function.
4852 * rust-lang.c (rust_language_data): Remove la_name_of_this
4854 * symtab.c (lookup_language_this): Update call to name_of_this.
4855 (lookup_symbol_aux): Likewise.
4856 * valops.c (value_of_this): Likewise.
4858 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4860 * ada-lang.c (ada_language_data): Remove
4861 la_struct_too_deep_ellipsis initializer.
4862 (ada_language::struct_too_deep_ellipsis): New member function.
4863 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
4865 (cplus_language_data): Likewise.
4866 (asm_language_data): Likewise.
4867 (minimal_language_data): Likewise.
4868 * cp-valprint.c (cp_print_value): Update call to
4869 struct_too_deep_ellipsis.
4870 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
4872 * f-lang.c (f_language_data): Likewise.
4873 (f_language::struct_too_deep_ellipsis): New member function.
4874 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
4876 * language.c (unknown_language_data): Likewise.
4877 (auto_language_data): Likewise.
4878 * language.h (language_data): Delete la_struct_too_deep_ellipsis
4880 (language_defn::struct_too_deep_ellipsis): New member function.
4881 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
4883 * objc-lang.c (objc_language_data): Likewise.
4884 * opencl-lang.c (opencl_language_data): Likewise.
4885 * p-lang.c (pascal_language_data): Likewise.
4886 * rust-lang.c (rust_language_data): Likewise.
4887 * valprint.c (val_print_check_max_depth): Update call to
4888 struct_too_deep_ellipsis.
4890 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
4892 * MAINTAINERS (Write After Approval): Add myself.
4894 2020-09-15 Tom Tromey <tom@tromey.com>
4896 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
4899 2020-09-15 Tom Tromey <tom@tromey.com>
4901 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
4902 and TYPE_CODE_METHODPTR cases.
4903 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
4904 (c_value_print_inner): Update.
4905 * valprint.c (generic_value_print_memberptr): New function, from
4906 c_value_print_memberptr.
4907 (generic_value_print): Use it. Call cplus_print_method_ptr.
4909 2020-09-15 Tom Tromey <tromey@adacore.com>
4911 * python/python-internal.h (PyInt_FromLong): Remove define.
4912 * python/py-value.c (convert_value_from_python): Use
4913 gdb_py_object_from_longest.
4914 * python/py-type.c (typy_get_code): Use
4915 gdb_py_object_from_longest.
4916 * python/py-symtab.c (salpy_get_line): Use
4917 gdb_py_object_from_longest.
4918 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
4919 gdb_py_object_from_longest.
4920 * python/py-record.c (recpy_gap_reason_code): Use
4921 gdb_py_object_from_longest.
4922 * python/py-record-btrace.c (recpy_bt_insn_size)
4923 (recpy_bt_func_level, btpy_list_count): Use
4924 gdb_py_object_from_longest.
4925 * python/py-infthread.c (gdbpy_create_ptid_object): Use
4926 gdb_py_object_from_longest. Fix error handling.
4927 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
4928 gdb_py_object_from_longest.
4929 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
4930 gdb_py_object_from_longest.
4931 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
4932 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
4933 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
4935 2020-09-15 Tom Tromey <tromey@adacore.com>
4937 * python/python.c (gdbpy_parameter_value): Use
4938 gdb_py_object_from_ulongest.
4940 2020-09-15 Tom Tromey <tromey@adacore.com>
4942 * python/py-infevents.c (create_register_changed_event_object):
4943 Use gdb_py_object_from_longest.
4944 * python/py-exitedevent.c (create_exited_event_object): Use
4945 gdb_py_object_from_longest.
4947 2020-09-15 Tom Tromey <tromey@adacore.com>
4949 * python/python.c (gdbpy_parameter_value): Use
4950 gdb_py_object_from_longest.
4951 * python/py-type.c (convert_field, typy_range): Use
4952 gdb_py_object_from_longest.
4953 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
4954 gdb_py_object_from_longest.
4955 * python/py-lazy-string.c (stpy_get_length): Use
4956 gdb_py_object_from_longest.
4957 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
4958 gdb_py_object_from_longest.
4959 * python/py-infevents.c (create_memory_changed_event_object): Use
4960 gdb_py_object_from_longest.
4961 * python/py-inferior.c (infpy_get_num): Use
4962 gdb_py_object_from_longest.
4963 (infpy_get_pid): Likewise.
4965 2020-09-15 Tom Tromey <tromey@adacore.com>
4967 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
4969 * python/py-value.c (valpy_long): Use
4970 gdb_py_object_from_ulongest.
4971 * python/py-symtab.c (salpy_get_pc): Use
4972 gdb_py_object_from_ulongest.
4973 (salpy_get_last): Likewise.
4974 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
4975 gdb_py_object_from_ulongest.
4976 * python/py-lazy-string.c (stpy_get_address): Use
4977 gdb_py_object_from_ulongest.
4978 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
4979 * python/py-arch.c (archpy_disassemble): Use
4980 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
4983 2020-09-15 Tom Tromey <tromey@adacore.com>
4985 * python/python-internal.h (gdb_py_long_from_longest): Remove
4987 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
4988 * python/py-type.c (convert_field, typy_get_sizeof): Use
4989 gdb_py_object_from_longest.
4990 * python/py-record-btrace.c (btpy_list_index): Use
4991 gdb_py_object_from_longest.
4993 2020-09-15 Tom Tromey <tromey@adacore.com>
4995 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
4996 * python/py-record.c (recpy_element_number): Use
4997 gdb_py_object_from_longest.
4998 (recpy_gap_number): Likewise.
5000 2020-09-15 Tom Tromey <tromey@adacore.com>
5002 * top.c (ui::ui): Update.
5003 (highest_ui_num): Remove.
5004 * top.h (struct ui) <num>: Remove.
5006 2020-09-15 Tom Tromey <tromey@adacore.com>
5008 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
5009 * ui-style.c (ansi_regex_text): Now array.
5010 * rust-exp.y (number_regex_text): Now array.
5011 * linespec.c (linespec_quote_characters): Now array.
5012 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
5015 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5017 * debuginfod-support.c (debuginfod_client_deleter): New.
5018 (debuginfod_client_up): New.
5019 (debuginfod_init): Return debuginfod_client_up.
5020 (debuginfod_source_query): Adjust.
5021 (debuginfod_debuginfo_query): Adjust.
5023 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5025 * debuginfod-support.c (debuginfod_source_query): Use
5026 make_unique_xstrdup.
5028 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5030 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
5031 with `type::instance_flags`.
5033 2020-09-14 Michael Mullin <masmullin@gmail.com>
5035 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
5036 Remove baton parameter.
5038 2020-09-14 Pedro Alves <pedro@palves.net>
5040 * Makefile.in (SELFTESTS_SRCS): Add
5041 unittests/enum-flags-selftests.c.
5042 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
5043 btrace_function_flags instead of enum btrace_function_flag.
5044 * compile/compile-c-types.c (convert_qualified): Use
5046 * compile/compile-cplus-symbols.c (convert_one_symbol)
5047 (convert_symbol_bmsym):
5048 * compile/compile-cplus-types.c (compile_cplus_convert_method)
5049 (compile_cplus_convert_struct_or_union_methods)
5050 (compile_cplus_instance::convert_qualified_base):
5051 * go-exp.y (parse_string_or_char): Add cast to int.
5052 * unittests/enum-flags-selftests.c: New file.
5053 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
5054 type to btrace_thread_flags from btrace_thread_flag.
5055 (record_btrace_cancel_resume, record_btrace_step_thread): Change
5056 local's type to btrace_thread_flags from btrace_thread_flag. Add
5059 2020-09-14 Pedro Alves <pedro@palves.net>
5061 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
5062 * gdbtypes.c (address_space_name_to_int): Rename to ...
5063 (address_space_name_to_type_instance_flags): ... this.
5064 (address_space_int_to_name): Rename to ...
5065 (address_space_type_instance_flags_to_name): ... this.
5066 * gdbtypes.h (address_space_name_to_int): Rename to ...
5067 (address_space_name_to_type_instance_flags): ... this.
5068 (address_space_int_to_name): Rename to ...
5069 (address_space_type_instance_flags_to_name): ... this.
5070 * type-stack.c (type_stack::insert): Adjust to rename.
5071 * type-stack.h (type_stack::insert): Likewise.
5073 2020-09-14 Pedro Alves <pedro@palves.net>
5074 Andrew Burgess <andrew.burgess@embecosm.com>
5076 * avr-tdep.c (avr_address_class_type_flags): Return
5077 type_instance_flags.
5078 (avr_address_class_type_flags_to_name): Take a
5079 type_instance_flags.
5080 (avr_address_class_name_to_type_flags): Return bool and take a
5081 type_instance_flags.
5082 * d-lang.c (build_d_types): Use type::set_instance_flags.
5083 * ft32-tdep.c (ft32_address_class_type_flags): Return
5084 type_instance_flags.
5085 (ft32_address_class_type_flags_to_name): Take a
5086 type_instance_flags.
5087 (ft32_address_class_name_to_type_flags): Return bool and take a
5088 type_instance_flags.
5089 (ft32_gdbarch_init): Use type::set_instance_flags.
5090 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
5091 * gdbarch.h, gdbarch.c: Regenerate.
5092 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
5093 (address_class_name_to_type_flags): Use type_instance_flags and
5095 * gdbtypes.c (address_space_name_to_int)
5096 (address_space_int_to_name, make_qualified_type): Use
5097 type_instance_flags.
5098 (make_qualified_type): Use type_instance_flags and
5099 type::set_instance_flags.
5100 (make_type_with_address_space, make_cv_type, make_vector_type)
5101 (check_typedef): Use type_instance_flags.
5102 (recursive_dump_type): Cast type_instance_flags to unsigned for
5104 (copy_type_recursive): Use type::set_instance_flags.
5105 (gdbtypes_post_init): Use type::set_instance_flags.
5106 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
5107 <m_instance_flags>: ... this.
5108 <instance_flags, set_instance_flags>: New methods.
5109 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
5110 (SET_TYPE_INSTANCE_FLAGS): New.
5111 (address_space_name_to_int, address_space_int_to_name)
5112 (make_type_with_address_space): Pass flags using
5113 type_instance_flags instead of int.
5114 * stabsread.c (cleanup_undefined_types_noname): Use
5115 type::set_instance_flags.
5116 * s390-tdep.c (s390_address_class_type_flags): Return
5117 type_instance_flags.
5118 (s390_address_class_type_flags_to_name): Take a
5119 type_instance_flags.
5120 (s390_address_class_name_to_type_flags): Return bool and take a
5121 type_instance_flags.
5122 * type-stack.c (type_stack::follow_types): Use
5123 type_instance_flags.
5124 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
5126 2020-09-14 Tom Tromey <tromey@adacore.com>
5128 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
5129 * x86-tdep.c (x86_is_thunk_register_name)
5130 (x86_in_indirect_branch_thunk): Update.
5131 * sparc64-tdep.c (sparc64_fpu_register_names)
5132 (sparc64_cp0_register_names, sparc64_register_names)
5133 (sparc64_pseudo_register_names): Now const.
5134 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
5135 cp0_registers_num>: Now const.
5136 * sparc-tdep.c (sparc_core_register_names)
5137 (sparc32_fpu_register_names, sparc32_cp0_register_names)
5138 (sparc32_pseudo_register_names): Now const.
5139 (validate_tdesc_registers): Update.
5140 * rust-lang.c (rust_extensions): Now const.
5141 * p-lang.c (p_extensions): Now const.
5142 * objc-lang.c (objc_extensions): Now const.
5143 * nto-tdep.c (nto_thread_state_str): Now const.
5144 * moxie-tdep.c (moxie_register_names): Now const.
5145 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
5147 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
5148 (mips_linux_reg_names): Now const.
5149 (mips_gdbarch_init): Update.
5150 * microblaze-tdep.c (microblaze_register_names): Now const.
5151 * m68k-tdep.c (m68k_register_names): Now const.
5152 * m32r-tdep.c (m32r_register_names): Now const.
5153 * ia64-tdep.c (ia64_register_names): Now const.
5154 * i386-tdep.h (struct gdbarch_tdep) <register_names,
5155 ymmh_register_names, ymm16h_regnum, mpx_register_names,
5156 k_register_names, zmmh_register_names, xmm_avx512_register_names,
5157 ymm_avx512_register_names, pkeys_register_names>: Now const.
5158 * i386-tdep.c (i386_register_names, i386_zmm_names)
5159 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
5160 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
5161 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
5162 * f-lang.c (f_extensions): Now const.
5163 * d-lang.c (d_extensions): Now const.
5164 * csky-tdep.c (csky_register_names): Now const.
5165 * charset.c (default_charset_names, charset_enum): Now const.
5166 (_initialize_charset): Update.
5167 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
5169 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
5170 (bsd_uthread_solib_loaded): Update.
5171 (bsd_uthread_state): Now const.
5172 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
5173 (amd64_ymm_avx512_names, amd64_ymmh_names)
5174 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
5175 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
5176 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
5177 (amd64_dword_names): Now const.
5178 * agent.c (can_use_agent_enum): Now const.
5179 * ada-tasks.c (task_states, long_task_states): Now const.
5180 * ada-lang.c (known_runtime_file_name_patterns)
5181 (known_auxiliary_function_name_patterns, attribute_names)
5182 (standard_exc, ada_extensions): Now const.
5184 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5186 * bcache.h (struct bcache) <bcache>: Remove constructor.
5187 <m_hash_function, m_compare_function>: Remove.
5188 <~bcache>: Make virtual.
5189 <compare>: Remove static method, introduce virtual method.
5190 <default_hash>: Remove.
5191 <hash>: New virtual method.
5192 * bcache.c (bcache::expand_hash_table): Update.
5193 (bcache::insert): Update.
5194 (bcache::hash): New.
5195 (bcache::compare): Update comment and parameter names.
5196 * gdbtypes.c (types_deeply_equal): Update.
5197 * psymtab.h (struct psymbol_bcache): New struct.
5198 (class psymtab_storage) <psymtab_storage>: Make default.
5199 <psymbol_cache>: Change type to psymbol_bcache.
5200 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
5201 (psymbol_hash): Change to...
5202 (psymbol_bcache::hash): ... this.
5203 (psymbol_compare): Change to...
5204 (psymbol_bcache::compare): ... this.
5206 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5208 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
5209 checking for initial lwp.
5211 2020-09-14 Tom Tromey <tromey@adacore.com>
5213 * m68k-tdep.c (m68k_extract_return_value): Use
5214 pointer_result_regnum.
5215 (m68k_store_return_value): Likewise.
5216 (m68k_reg_struct_return_p): Handle vectors and arrays.
5217 (m68k_return_value): Handle arrays.
5218 (m68k_svr4_return_value): Fix single-element aggregate handling.
5219 Handle long double. Adjust for embedded ABI.
5220 (m68k_svr4_init_abi): Set pointer_result_regnum.
5221 (m68k_embedded_init_abi): New function.
5222 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
5223 (m68k_osabi_sniffer): New function.
5224 (_initialize_m68k_tdep): Register osabi sniffer.
5225 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
5228 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5230 * xml-support.c (xml_fetch_content_from_file): Replace xfree
5231 with gdb::unique_xmalloc_ptr<char>.
5233 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5235 * xml-support.h (xml_fetch_another): Change type to be a
5237 (xml_process_xincludes): Remove baton parameter.
5238 (xml_fetch_content_from_file): Change baton parameter to
5240 * xml-support.c (struct xinclude_parsing_data)
5241 <xinclude_parsing_data>: Remove baton parameter.
5242 <fetcher_baton>: Remove.
5243 (xinclude_start_include): Adjust.
5244 (xml_process_xincludes): Adjust.
5245 (xml_fetch_content_from_file): Replace baton parameter with
5247 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
5248 (xml_init_syscalls_info): Use a lambda.
5249 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
5250 (file_read_description_xml): Use a lambda.
5251 (fetch_available_features_from_target): Change baton parameter
5253 (target_read_description_xml): Use a lambda.
5254 (target_fetch_description_xml): Use a lambda.
5255 (string_read_description_xml): Update.
5257 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5259 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
5260 uses with type::endianity_is_not_default.
5262 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5264 * gdbtypes.h (struct type) <endianity_is_not_default,
5265 set_endianity_is_not_default>: New methods.
5266 (TYPE_ENDIANITY_NOT_DEFAULT): Use
5267 type::endianity_is_not_default, change all write call sites to
5268 use type::set_endianity_is_not_default.
5270 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5272 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
5273 uses with type::is_fixed_instance.
5275 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5277 * gdbtypes.h (struct type) <is_fixed_instance,
5278 set_is_fixed_instance>: New methods.
5279 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
5280 write call sites to use type::set_is_fixed_instance.
5282 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5284 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
5285 uses with type::is_gnu_ifunc.
5287 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5289 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
5290 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
5291 use type::set_is_gnu_ifunc.
5293 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5295 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
5296 uses with type::stub_is_supported.
5298 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5300 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
5301 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
5302 use type::set_stub_is_supported.
5304 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5306 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
5307 uses with type::is_vector.
5309 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5311 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
5312 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
5313 use type::set_is_vector.
5315 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5317 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
5318 uses with type::has_varargs.
5320 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5322 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
5323 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
5324 use type::set_has_varargs.
5326 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5328 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
5329 uses with type::is_prototyped.
5331 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5333 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
5335 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
5336 call sites to use type::set_is_prototyped.
5338 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5340 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
5341 uses with type::target_is_stub.
5343 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5345 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
5347 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
5348 sites to use type::set_target_is_stub.
5350 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5352 * gdbtypes.h (TYPE_STUB): Remove, replace all
5353 uses with type::is_stub.
5355 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5357 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
5358 (TYPE_STUB): Use type::is_stub, change all write call sites to
5359 use type::set_is_stub.
5361 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5363 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
5364 type::has_no_signedness.
5366 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5368 * gdbtypes.h (struct type) <has_no_signedness,
5369 set_has_no_signedness>: New methods.
5370 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
5371 call sites to use type::set_has_no_signedness.
5373 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5375 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
5378 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5380 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
5382 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
5383 sites to use type::set_is_unsigned.
5385 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
5386 Adam Renquinha <arenquinha@cimeq.qc.ca>
5388 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
5389 pointer and stack frame offset when unwinding.
5391 2020-09-13 Pedro Alves <pedro@palves.net>
5393 * NEWS: Document "-break-insert --qualified".
5394 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
5396 2020-09-13 Pedro Alves <pedro@palves.net>
5398 * linespec.c (classify_mtype, compare_msyms): Delete.
5399 (search_minsyms_for_name): Remove classification logic. Instead
5400 filter out trampoline symbols if we also found an external
5401 function of the same name.
5403 2020-09-13 Joel Brobecker <brobecker@adacore.com>
5405 * NEWS: Create a new section for the next release branch.
5406 Rename the section of the current branch, now that it has
5409 2020-09-13 Joel Brobecker <brobecker@adacore.com>
5411 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
5412 * version.in: Bump version to 11.0.50.DATE-git.
5414 2020-09-12 Joel Brobecker <brobecker@adacore.com>
5416 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
5418 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
5419 Felix Willgerodt <Felix.Willgerodt@intel.com>
5421 * gdbarch.sh: Added bfloat16 type.
5422 * gdbarch.c: Regenerated.
5423 * gdbarch.h: Regenerated.
5424 * gdbtypes.c (floatformats_bfloat16): New struct.
5425 (gdbtypes_post_init): Add builtin_bfloat16.
5426 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
5427 (floatformats_bfloat16): New struct.
5428 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
5429 (i386_ymm_type): Add field "v16_bfloat16"
5430 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
5431 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
5432 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
5433 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
5434 * features/i386/64bit-avx512.xml: Add bfloat16 type.
5435 * features/i386/64bit-avx512.c: Regenerated.
5436 * features/i386/64bit-sse.xml: Add bfloat16 type.
5437 * features/i386/64bit-sse.c: Regenerated.
5439 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
5441 * i386-tdep.c (i386_zmm_type): Fix field names.
5442 (i386_ymm_type): Fix field names.
5444 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5446 * breakpoint.c: Fix typo in the help message of the
5447 "set breakpoint condition-evaluation" command.
5449 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5451 * nbsd-nat.c: Include "nat/netbsd-nat.h".
5452 * (nbsd_nat_target::pid_to_exec_file)
5453 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
5454 (nbsd_nat_target::post_startup_inferior)
5455 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
5456 (nbsd_add_threads): Switch local code to common gdb/nat functions.
5457 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
5458 * (nbsd_thread_lister): Remove.
5460 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5462 * fork-inferior.c (startup_inferior): Avoid double free.
5464 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5466 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
5467 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
5469 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5471 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
5472 * netbsd-nat.c: Include <sys/ptrace.h>.
5473 * (netbsd_nat::enable_proc_events): Add.
5475 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5477 * netbsd-nat.h: Include "gdbsupport/function-view.h".
5478 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
5479 (netbsd_nat::for_each_thread): Add.
5480 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
5481 "gdbsupport/common-debug.h".
5482 * (netbsd_nat::netbsd_thread_lister)
5483 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
5484 (netbsd_nat::for_each_thread): Add.
5486 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5488 * netbsd-nat.h: Include <unistd.h>.
5489 * (netbsd_nat::pid_to_exec_file): Add.
5490 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
5491 * (netbsd_nat::pid_to_exec_file) Add.
5493 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5495 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
5497 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5499 * netbsd-nat.h: New file.
5500 * netbsd-nat.c: Likewise.
5502 2020-09-09 Tom Tromey <tromey@adacore.com>
5504 * ada-lang.c (remove_extra_symbols): Do not increment when
5507 2020-09-08 Tom Tromey <tromey@adacore.com>
5509 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
5511 2020-09-08 Tom Tromey <tromey@adacore.com>
5514 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
5515 (gdb_bfd_init_data): New function.
5516 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
5518 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5520 * infrun.c (fetch_inferior_event): Use
5521 `switch_to_target_no_thread` to switch the target.
5523 2020-09-06 Tom Tromey <tom@tromey.com>
5525 * symfile.h (dwarf2_free_objfile): Don't declare.
5527 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5529 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
5530 to match 16 byte real/complex type generated by Flang compiler.
5532 2020-09-03 Tom de Vries <tdevries@suse.de>
5535 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
5536 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
5538 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
5540 * maint.c (index_digits): New function.
5541 (struct maint_print_section_data): Remove.
5542 (print_bfd_section_info): Remove print_data parameter, add arg
5544 (print_objfile_section_info): Likewise.
5545 (print_bfd_section_info_maybe_relocated): Likewise (plus
5547 (maintenance_info_sections): Adjust calls.
5549 2020-09-02 Tom Tromey <tromey@adacore.com>
5551 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
5553 (ada_varobj_adjust_for_child_access): Special-case null pointers.
5555 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
5557 * bcache.h (struct bcache) <insert>: Change type of `added` to
5559 * bcache.c (bcache::insert): Likewise.
5560 * gdbtypes.c (check_types_worklist): Adjust.
5561 * psymtab.c (add_psymbol_to_bcache): Adjust.
5563 2020-08-31 Kevin Buettner <kevinb@redhat.com>
5565 * corelow.c (unordered_set): Include.
5566 (class core_target): Add field 'm_core_unavailable_mappings'.
5567 (core_target::build_file_mappings): Print only one warning
5568 per inaccessible file. Add unavailable/broken mappings
5569 to m_core_unavailable_mappings.
5570 (core_target::xfer_partial): Call...
5571 (core_target::xfer_memory_via_mappings): New method.
5573 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
5575 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
5578 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
5580 * dwarf2/read.c (struct field_info): Fix indentation.
5582 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5584 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
5585 ordering in comment.
5586 * frame.c (frame_id_eq): Fix indentation.
5588 2020-08-31 Scott Linder <scott@scottlinder.com>
5589 Simon Marchi <simon.marchi@efficios.com>
5591 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
5592 inline frame ids in outer frame.
5594 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5596 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
5597 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
5598 (outer_frame_id): Use FID_STACK_OUTER instead of
5600 (frame_id_p): Don't check for outer_frame_id.
5602 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5604 * frame-unwind.c (frame_unwind_got_optimized): Don't set
5605 regnum/frame in value. Call allocate_value_lazy.
5606 * frame.c (frame_unwind_register_value): Use
5607 val_print_not_saved.
5609 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5611 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
5613 2020-08-29 Pedro Alves <pedro@palves.net>
5615 * progspace.c (print_program_space): Use all_inferiors. Switch to
5616 the inferior before calling target_pid_to_str.
5618 2020-08-28 Tom Tromey <tom@tromey.com>
5620 * xcoffread.c (xcoff_end_psymtab): Update comment.
5621 * dbxread.c (dbx_end_psymtab): Update comment.
5623 2020-08-28 Tom de Vries <tdevries@suse.de>
5626 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
5628 (create_breakpoint): Same.
5629 (base_breakpoint_decode_location): Same.
5630 (bkpt_create_sals_from_location): Same.
5631 (bkpt_decode_location): Same.
5632 (bkpt_probe_create_sals_from_location): Same.
5633 (bkpt_probe_decode_location): Same.
5634 (tracepoint_create_sals_from_location): Same.
5635 (tracepoint_decode_location): Same.
5636 (tracepoint_probe_decode_location): Same.
5637 (strace_marker_create_sals_from_location): Same.
5638 (strace_marker_decode_location): Same.
5639 (create_sals_from_location_default): Same.
5640 (decode_location_default): Same.
5641 * breakpoint.h (struct breakpoint_ops): Same.
5642 (create_breakpoint): Same.
5643 * linespec.h (decode_line_full): Same.
5644 * linespec.c (decode_line_full): Same. Throw error if
5645 result.size () == 0.
5647 2020-08-27 Pedro Alves <pedro@palves.net>
5650 * breakpoint.c (until_break_fsm) <location_breakpoint,
5651 caller_breakpoint>: Delete fields.
5652 <breakpoints>: New field.
5653 <until_break_fsm>: Adjust to save a breakpoint vector instead of
5654 two individual breakpoints.
5655 (until_break_fsm::should_stop): Loop over breakpoints in the
5657 (until_break_fsm::clean_up): Adjust to clear the breakpoints
5659 (until_break_command): Handle location expanding into multiple
5662 2020-08-27 Pedro Alves <pedro@palves.net>
5665 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
5666 bp_until breakpoints user-specified locations. Update intro
5669 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
5671 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
5672 gdb_bfd_sections): New.
5673 * maint.c (print_bfd_section_info): Change param type to
5674 maint_print_section_data.
5675 (print_objfile_section_info): Likewise.
5676 (print_bfd_section_info_maybe_relocated): Likewise.
5677 (maintenance_info_sections): Use gdb_bfd_sections.
5679 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5681 * MAINTAINERS: Add ARC target and maintainer.
5683 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
5685 * configure.tgt: ARC support for GNU/Linux.
5686 * Makefile.in (ALL_TARGET_OBJS): Likewise.
5687 * arc-linux-tdep.c: New file.
5688 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
5689 * arc-tdep.c (arc_write_pc): Use it.
5691 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5693 * arc-tdep.c (arc_check_for_hardware_loop): New.
5694 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
5696 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5698 * arc-tdep.h: Include "gdbarch.h".
5700 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5703 (arc_gdbarch_features): New class to stir the selection of target XML.
5704 (arc_create_target_description): Use FEATURES to choose XML target.
5705 (arc_lookup_target_description): Use arc_create_target_description
5706 to create _new_ target descriptions or return the already created
5707 ones if the FEATURES is the same.
5708 * arch/arc.c: Implementation of prototypes described above.
5709 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
5710 (arc_gdbarch_features_init): Initialize the FEATURES struct.
5711 * arc-tdep.c (*_feature_name): Make feature names consistent.
5712 (arc_register_feature): A new struct to hold information about
5713 registers of a particular target/feature.
5714 (arc_check_tdesc_feature): Check if XML provides registers in
5715 compliance with ARC_REGISTER_FEATURE structs.
5716 (arc_update_acc_reg_names): Add aliases for r58 and r59.
5717 (determine_*_reg_feature_set): Which feature name to look for.
5718 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
5719 (mach_type_to_arc_isa): Convert from a set of binutils machine types
5720 to expected ISA enums to be used in arc_gdbarch_features structs.
5721 * features/Makefile (FEATURE_XMLFILES): Add new files.
5722 * gdb/features/arc/v1-aux.c: New file.
5723 * gdb/features/arc/v1-aux.xml: Likewise.
5724 * gdb/features/arc/v1-core.c: Likewise.
5725 * gdb/features/arc/v1-core.xml: Likewise.
5726 * gdb/features/arc/v2-aux.c: Likewise.
5727 * gdb/features/arc/v2-aux.xml: Likewise.
5728 * gdb/features/arc/v2-core.c: Likewise.
5729 * gdb/features/arc/v2-core.xml: Likewise.
5730 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
5732 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
5733 Andrew Burgess <andrew.burgess@embecosm.com>
5736 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
5737 an assert. Remove single element array indexing pattern as the
5738 MULTI_SUBSCRIPT support will handle this case too.
5740 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
5742 * value.h (valprint_check_validity): Move declaration from
5744 * valprint.h (valprint_check_validity): ... to here.
5746 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
5748 * debug.h: New file.
5749 * debug.c (debug_prefixed_vprintf): New function.
5750 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
5751 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
5753 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
5755 * infrun.h (infrun_debug_printf_1): New function declaration.
5756 (infrun_debug_printf): New macro.
5757 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
5759 (infrun_debug_printf): New function.
5760 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
5761 (handle_jit_event): Likewise.
5763 2020-08-21 Mark Wielaard <mark@klomp.org>
5765 * ada-lex.l: Extend register warnings diagnostics comment for g++.
5767 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
5769 * frame.c (enum class frame_id_status): New.
5770 (struct frame_info) <this_id::p>: Change type to frame_id_status.
5771 (fprintf_frame): Update.
5772 (compute_frame_id): Set frame id status to "computing" on entry.
5773 Set it back to "not_computed" on failure and to "computed" on
5775 (get_frame_id): Assert the frame id is not being computed.
5776 (create_sentinel_frame): Use frame_id_status::COMPUTED.
5777 (create_new_frame): Likewise.
5778 (frame_cleanup_after_sniffer): Update assert.
5780 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5782 * regcache.c (pid_ptid_regcache_map): New type.
5783 (target_ptid_regcache_map): Remove.
5784 (target_pid_ptid_regcache_map): New type.
5785 (regcaches): Change type to target_pid_ptid_regcache_map.
5786 (get_thread_arch_aspace_regcache): Update.
5787 (regcache_thread_ptid_changed): Update, handle pid-like ptid
5789 (regcaches_size): Update.
5790 (regcache_count): Update.
5791 (registers_changed_ptid_target_pid_test): New.
5792 (_initialize_regcache): Register new test.
5794 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5796 * regcache.c (regcache_count): New.
5797 (struct regcache_test_data): New.
5798 (regcache_test_data_up): New.
5799 (populate_regcaches_for_test): New.
5800 (regcaches_test): Remove.
5801 (get_thread_arch_aspace_regcache_test): New.
5802 (registers_changed_ptid_all_test): New.
5803 (registers_changed_ptid_target_test): New.
5804 (registers_changed_ptid_target_ptid_test): New.
5805 (regcache_thread_ptid_changed): Remove regcache_count lambda.
5806 (_initialize_regcache): Register new tests.
5808 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5810 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
5811 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
5812 gdbarch and aspace parameter. Use current inferior's aspace.
5813 Validate regcache's arch value.
5814 (regcaches_test): Update.
5816 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5818 * regcache.c (regcaches_test): Call registers_changed.
5820 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5822 * infrun.c (process_event_stop_test): Fix typo "breapoint".
5824 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5826 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
5827 to find the end of prologue for flang compiled binaries.
5828 * arm-tdep.c (arm_skip_prologue): Likewise.
5829 * i386-tdep.c (i386_skip_prologue): Likewise.
5830 * producer.c (producer_is_llvm): New function.
5831 (producer_parsing_tests): Added new tests for clang/flang.
5832 * producer.h (producer_is_llvm): New declaration.
5834 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
5836 * linux-nat.c (linux_nat_debug_printf): New function.
5837 (linux_nat_debug_printf_1): New macro. Use throughout the file.
5839 2020-08-18 Aaron Merey <amerey@redhat.com>
5841 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
5842 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
5843 (CLIBS): Add DEBUGINFOD_LIBS.
5845 2020-08-17 Sergei Trofimovich <siarheit@google.com>
5847 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
5850 2020-08-17 Tom Tromey <tromey@adacore.com>
5852 * ada-varobj.c (ada_varobj_decode_var): Handle case where
5853 ada_get_decoded_value returns NULL.
5855 2020-08-17 Tom Tromey <tromey@adacore.com>
5857 * python/py-inferior.c (infpy_search_memory): Use
5858 gdb_py_object_from_ulongest.
5859 * python/py-infevents.c (create_inferior_call_event_object)
5860 (create_memory_changed_event_object): Use
5861 gdb_py_object_from_ulongest.
5862 * python/py-linetable.c (ltpy_entry_get_pc): Use
5863 gdb_py_object_from_ulongest.
5865 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
5867 * loc.c (class symbol_needs_eval_context): Fix indentation.
5869 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
5871 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
5874 2020-08-17 Tom de Vries <tdevries@suse.de>
5877 * gdbtypes.c (dump_dynamic_prop): New function.
5878 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
5880 2020-08-15 Tom de Vries <tdevries@suse.de>
5883 * stack.c (print_frame_args): Temporarily set the selected
5884 frame to FRAME while printing the frame's arguments.
5886 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5888 PR breakpoints/26385
5889 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
5890 Always clear watchpoint with PTRACE_SET_DEBUGREG.
5892 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5894 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
5895 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
5896 and >= to check return value instead of == -1 and != -1.
5898 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
5900 * utils.h (class gdb_argv) <as_array_view>: New method.
5901 * utils.c (gdb_argv_as_array_view_test): New.
5902 (_initialize_utils): Register selftest.
5903 * maint.c (maintenance_selftest): Use the new method.
5905 2020-08-13 Kamil Rytarowski <n54@gmx.com>
5907 * target.h (supports_dumpcore, dumpcore): New
5908 function declarations.
5909 * target.c (supports_dumpcore, dumpcore): New
5911 * target-delegates.c: Rebuild.
5912 * gcore.c (gcore_command): Use target_supports_dumpcore ()
5913 and target_dumpcore ().
5915 2020-08-13 Aaron Merey <amerey@redhat.com>
5917 * debuginfod-support.c: Replace global variables with user_data.
5919 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
5921 * maint.c (maintenance_selftest): Split args and pass array_view
5924 2020-08-12 Luis Machado <luis.machado@linaro.org>
5926 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
5928 Use %s and pulongest to print the length.
5930 2020-08-12 Pedro Alves <palves@redhat.com>
5932 * NEWS: Move "Multi-target debugging support" item to the
5933 "Changes since GDB 9" section.
5935 2020-08-12 Pedro Alves <palves@redhat.com>
5938 * progspace.c (program_space::remove_objfile): Invalidate the
5941 2020-08-11 Tom de Vries <tdevries@suse.de>
5943 * MAINTAINERS: Mark ms1 as deleted.
5945 2020-08-10 Luis Machado <luis.machado@linaro.org>
5949 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
5951 (aarch64_analyze_prologue_test): Add more unit tests to exercise
5952 movz/str/stur/stp skipping behavior.
5954 2020-08-10 Luis Machado <luis.machado@linaro.org>
5956 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
5957 struct user_sve_header instead of struct sve_context.
5959 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
5961 * read.h (dwarf2_fetch_die_loc_sect_off,
5962 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
5963 `void *` parameter with function_view.
5964 * read.c (dwarf2_fetch_die_loc_sect_off,
5965 dwarf2_fetch_die_loc_cu_off): Likewise.
5966 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
5967 (per_cu_dwarf_call): Adjust.
5968 (get_frame_address_in_block_wrapper): Remove.
5969 (indirect_synthetic_pointer): Adjust.
5970 (get_ax_pc): Remove.
5971 (dwarf2_compile_expr_to_ax): Adjust.
5973 2020-08-08 Tom de Vries <tdevries@suse.de>
5976 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
5978 * regcache.c (get_thread_arch_aspace_regcache): Same.
5980 2020-08-07 Tom Tromey <tromey@adacore.com>
5982 * ravenscar-thread.c
5983 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
5985 (ravenscar_thread_target::wait): Check
5986 runtime_initialized.
5987 (ravenscar_thread_target::prepare_to_store)
5988 (ravenscar_thread_target::stopped_by_sw_breakpoint)
5989 (ravenscar_thread_target::stopped_by_hw_breakpoint)
5990 (ravenscar_thread_target::stopped_by_watchpoint)
5991 (ravenscar_thread_target::stopped_data_address)
5992 (ravenscar_thread_target::core_of_thread): Use
5993 scoped_restore_current_thread and
5994 set_base_thread_from_ravenscar_task.
5996 2020-08-07 Tom Tromey <tromey@adacore.com>
5998 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
6000 2020-08-07 Tom Tromey <tromey@adacore.com>
6002 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
6003 update_inferior_ptid before update_thread_list.
6004 (temporarily_change_regcache_ptid): New class.
6005 (ravenscar_thread_target::fetch_registers)
6006 (ravenscar_thread_target::store_registers)
6007 (ravenscar_thread_target::prepare_to_store): Use base thread when
6008 forwarding operation.
6010 2020-08-07 Tom Tromey <tromey@adacore.com>
6012 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
6015 2020-08-07 Tom Tromey <tromey@adacore.com>
6017 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
6019 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
6021 (ravenscar_thread_target::add_thread): Rename from
6022 ravenscar_add_thread.
6023 (ravenscar_thread_target::update_thread_list): Use a lambda.
6024 (ravenscar_thread_target::xfer_partial): New method.
6026 2020-08-07 Tom Tromey <tromey@adacore.com>
6028 * ada-lang.h (ada_task_list_iterator_ftype): Now a
6030 (iterate_over_live_ada_tasks): Change type of argument.
6031 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
6034 2020-08-07 Tom Tromey <tromey@adacore.com>
6036 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
6038 (ravenscar_thread_target::extra_thread_info): Remove.
6039 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
6040 defer to target beneath for non-Ravenscar threads.
6042 2020-08-07 Tom Tromey <tromey@adacore.com>
6044 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
6045 get_base_thread_from_ravenscar_task>: Now methods.
6046 <m_cpu_map>: New member.
6047 (ravenscar_thread_target::get_thread_base_cpu): Rename from
6048 ravenscar_get_thread_base_cpu. Check m_cpu_map.
6049 (ravenscar_thread_target::task_is_currently_active): Update.
6050 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
6052 (ravenscar_thread_target::add_active_thread): Put initial thread
6055 2020-08-07 Tom Tromey <tromey@adacore.com>
6057 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
6060 2020-08-07 Tom Tromey <tromey@adacore.com>
6062 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
6063 runtime_initialized.
6065 2020-08-07 Tom Tromey <tromey@adacore.com>
6067 * ravenscar-thread.c (ravenscar_thread_target): Don't call
6069 (ravenscar_thread_target::add_active_thread): Now public.
6070 (ravenscar_inferior_created): Call add_active_thread after pushing
6073 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
6075 * regcache.c (ptid_regcache_map): New type.
6076 (target_ptid_regcache_map): New type.
6077 (regcaches): Change type to target_ptid_regcache_map.
6078 (get_thread_arch_aspace_regcache): Update to regcaches' new
6080 (regcache_thread_ptid_changed): Likewise.
6081 (registers_changed_ptid): Likewise.
6082 (regcaches_size): Likewise.
6083 (regcaches_test): Update.
6084 (regcache_thread_ptid_changed): Update.
6085 * regcache.h (regcache_up): New type.
6086 * gdbsupport/ptid.h (hash_ptid): New struct.
6088 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
6090 * observable.h (thread_ptid_changed): Add parameter
6091 `process_stratum_target *`.
6092 * infrun.c (infrun_thread_ptid_changed): Add parameter
6093 `process_stratum_target *` and use it.
6094 (selftests): New namespace.
6095 (infrun_thread_ptid_changed): New function.
6096 (_initialize_infrun): Register selftest.
6097 * regcache.c (regcache_thread_ptid_changed): Add parameter
6098 `process_stratum_target *` and use it.
6099 (regcache_thread_ptid_changed): New function.
6100 (_initialize_regcache): Register selftest.
6101 * thread.c (thread_change_ptid): Pass target to
6102 thread_ptid_changed observable.
6104 2020-08-06 Caroline Tice <cmtice@google.com>
6106 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
6107 (struct dwp_sections): Update field comments. Add loclists and
6109 (struct virtual_v2_dwo_sections): Rename struct to
6110 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
6111 size & offset fields for loclists and rnglists.
6112 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
6113 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
6114 skipping dummy type units.
6115 (create_dwp_hash_table): Update the large comment above the function to
6116 discuss Version 5 DWP files as well, with references. Update all the
6117 version checks in the function to check for version 5 as well. Add new
6118 section at the end to create dwp hash table for version 5.
6119 (create_dwp_v2_section): Rename function to
6120 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
6121 Add V5 to error message text.
6122 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
6123 into calls to create_dwp_v2_or_v5_section.
6124 (create_dwo_unit_in_dwp_v5): New function.
6125 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
6126 check for version2; add else clause to handle version 5.
6127 (open_and_init_dwo_file): Add code to check dwarf version & only call
6128 create_debug_types_hash_table (with sections.types) if version is not 5;
6129 else call create_debug_type_hash_table, with sections.info.
6130 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
6132 (dwarf2_locate_v5_dwp_sections): New function.
6133 (open_and_init_dwp_file): Add else-if clause for version 5 to call
6134 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
6136 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
6138 * regcache.h (class regcache): Remove friend
6139 registers_changed_ptid.
6140 <regcache_thread_ptid_changed>: Remove.
6141 <regcaches>: Remove.
6142 * regcache.c (regcache::regcaches): Rename to...
6143 (regcaches): ... this. Make static.
6144 (get_thread_arch_aspace_regcache): Update.
6145 (regcache::regcache_thread_ptid_changed): Rename to...
6146 (regcache_thread_ptid_changed): ... this. Update.
6147 (class regcache_access): Remove.
6148 (regcaches_test): Update.
6149 (_initialize_regcache): Update.
6150 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
6153 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
6155 * regcache.h (class regcache) <current_regcache>: Rename to...
6156 <regcaches>: ... this. Move doc here.
6157 * regcache.c (regcache::current_regcache) Rename to...
6158 (regcache::regcaches): ... this. Move doc to header.
6159 (get_thread_arch_aspace_regcache): Update.
6160 (regcache::regcache_thread_ptid_changed): Update.
6161 (registers_changed_ptid): Update.
6162 (class regcache_access) <current_regcache_size>: Rename to...
6163 <regcaches_size>: ... this.
6164 (current_regcache_test): Rename to...
6165 (regcaches_test): ... this.
6166 (_initialize_regcache): Update.
6168 2020-08-06 Victor Collod <vcollod@nvidia.com>
6170 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
6172 2020-08-05 Kevin Buettner <kevinb@redhat.com>
6174 * corelow.c (core_target::build_file_mappings): Don't output
6175 null pathname in warning.
6177 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
6179 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
6180 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
6181 gdb.dwarf2/dw2-single-line-discriminators.exp,
6182 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
6184 2020-08-05 Tom Tromey <tromey@adacore.com>
6187 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
6188 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
6189 Fix off-by-one and type size errors in ordinary case.
6191 2020-08-05 Tom de Vries <tdevries@suse.de>
6193 * gdbtypes.c (type_not_allocated, type_not_associated): Use
6194 "prop->const_val () == 0" instead of "prop->const_val () != 0".
6196 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
6198 * frame.h (frame_id_p): Return bool.
6199 (frame_id_artificial_p): Return bool.
6200 (frame_id_eq): Return bool.
6201 (has_stack_frames): Return bool.
6202 (get_selected_frame): Fix typo in comment.
6203 (get_frame_pc_if_available): Return bool.
6204 (get_frame_address_in_block_if_available): Return bool.
6205 (get_frame_func_if_available): Return bool.
6206 (read_frame_register_unsigned): Return bool.
6207 (get_frame_register_bytes): Return bool.
6208 (safe_frame_unwind_memory): Return bool.
6209 (deprecated_frame_register_read): Return bool.
6210 (frame_unwinder_is): Return bool.
6211 * frame.c (struct frame_info) <prev_arch::p>: Change type to
6213 <this_id::p>: Likewise.
6215 (frame_stash_add): Return bool.
6216 (get_frame_id): Use bool.
6217 (frame_id_build_special) Use bool.
6218 (frame_id_build_unavailable_stack): Use bool.
6219 (frame_id_build): Use bool.
6220 (frame_id_p): Return bool, use true/false instead of 1/0.
6221 (frame_id_artificial_p): Likewise.
6222 (frame_id_eq): Likewise.
6223 (frame_id_inner): Likewise.
6224 (get_frame_func_if_available): Likewise.
6225 (read_frame_register_unsigned): Likewise.
6226 (deprecated_frame_register_read): Likewise.
6227 (get_frame_register_bytes): Likewise.
6228 (has_stack_frames): Likewise.
6229 (inside_main_func): Likewise.
6230 (inside_entry_func): Likewise.
6231 (get_frame_pc_if_available): Likewise.
6232 (get_frame_address_in_block_if_available): Likewise.
6233 (frame_unwinder_is): Likewise.
6234 (safe_frame_unwind_memory): Likewise.
6235 (frame_unwind_arch): Likewise.
6237 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
6239 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
6240 type to cached_copy_status.
6241 (fprintf_frame): Adjust.
6242 (get_frame_func_if_available): Adjust.
6243 (frame_cleanup_after_sniffer): Adjust.
6245 2020-08-04 Mark Wielaard <mark@klomp.org>
6247 * MAINTAINERS (Write After Approval): Update email address.
6249 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6251 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
6252 dynamic_prop::const_val.
6254 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6256 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
6259 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6261 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
6263 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
6265 * configure.tgt: Set gdb_sim for bpf-*-* targets.
6267 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
6268 Jose E. Marchesi <jose.marchesi@oracle.com>
6270 * configure.tgt: Add entry for bpf-*-*.
6271 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
6272 (ALLDEPFILES): Add bpf-tdep.c.
6273 * bpf-tdep.c: New file.
6274 * MAINTAINERS: Add bpf target and maintainer.
6275 * NEWS: Mention the support for the new target.
6277 2020-08-04 Tom de Vries <tdevries@suse.de>
6280 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
6283 2020-08-03 John Baldwin <jhb@FreeBSD.org>
6285 * syscalls/freebsd.xml: Regenerate.
6287 2020-08-03 John Baldwin <jhb@FreeBSD.org>
6289 * syscalls/update-freebsd.sh: Fix usage and year range.
6291 2020-08-03 Tom de Vries <tdevries@suse.de>
6294 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
6295 DW_LNE_lo_user/DW_LNE_hi_user range.
6297 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
6300 * ada-lang.c (ada_modulus): Return 0 if property is not of const
6303 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6305 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
6307 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6309 * breakpoint.c (set_breakpoint_condition): Update the condition
6310 expressions after checking that the input condition string parses
6311 successfully and does not contain junk at the end.
6313 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6315 * breakpoint.c (set_breakpoint_condition): Update the
6316 condition string after parsing the new condition successfully.
6318 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6320 * proc-api.c (_STRUCTURED_PROC): Don't define.
6321 * proc-events.c: Likewise.
6322 * proc-flags.c: Likewise.
6323 * proc-why.c: Likewise.
6324 * procfs.c: Likewise.
6326 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
6327 * configure, config.in: Regenerate.
6329 2020-07-30 Tom de Vries <tdevries@suse.de>
6332 * ui-style.h (struct ui_file_style::color): Wrap m_value and
6333 m_red/m_green/m_blue in a union.
6335 2020-07-29 Tom de Vries <tdevries@suse.de>
6338 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
6340 2020-07-28 Tom Tromey <tromey@adacore.com>
6343 * symtab.h (find_pc_partial_function_sym): Declare.
6344 * cli/cli-cmds.c (disassemble_command): Use
6345 find_pc_partial_function_sym. Check asm_demangle.
6346 * blockframe.c (cache_pc_function_sym): New global.
6347 (cache_pc_function_name): Remove.
6348 (clear_pc_function_cache): Update.
6349 (find_pc_partial_function_sym): New function, from
6350 find_pc_partial_function.
6351 (find_pc_partial_function): Rewrite using
6352 find_pc_partial_function_sym.
6354 2020-07-28 Tom Tromey <tromey@adacore.com>
6356 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
6359 2020-07-28 Tom Tromey <tromey@adacore.com>
6361 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
6362 <DW_OP_GNU_variable_value>: Cast to address type.
6364 2020-07-28 Kamil Rytarowski <n54@gmx.com>
6366 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
6367 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
6368 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
6369 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
6370 (nbsd_get_siginfo_type): New.
6371 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
6372 (_initialize_nbsd_tdep): New.
6374 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
6377 * configure: Regenerated.
6379 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
6382 * configure: Regenerated.
6384 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
6386 * python/py-frame.c: Remove 'user-regs.h' include.
6387 (frapy_read_register): Rewrite to make use of
6388 gdbpy_parse_register_id.
6389 * python/py-registers.c (gdbpy_parse_register_id): New function,
6390 moved here from python/py-unwind.c. Updated the return type, and
6391 also accepts register descriptor objects.
6392 * python/py-unwind.c: Remove 'user-regs.h' include.
6393 (pyuw_parse_register_id): Moved to python/py-registers.c.
6394 (unwind_infopy_add_saved_register): Update to use
6395 gdbpy_parse_register_id.
6396 (pending_framepy_read_register): Likewise.
6397 * python/python-internal.h (gdbpy_parse_register_id): Declare.
6399 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
6401 * python/py-registers.c: Add 'user-regs.h' include.
6402 (register_descriptor_iter_find): New function.
6403 (register_descriptor_iterator_object_methods): New static global
6405 (register_descriptor_iterator_object_type): Add pointer to methods
6408 2020-07-27 John Baldwin <jhb@FreeBSD.org>
6410 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
6411 for all architectures on FreeBSD 11.3 and later.
6413 2020-07-27 Tom Tromey <tromey@adacore.com>
6415 * gcore.h (load_corefile): Don't declare.
6417 2020-07-27 Tom de Vries <tdevries@suse.de>
6419 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
6420 * config.in: Regenerate.
6421 * configure: Regenerate.
6423 2020-07-26 Eli Zaretskii <eliz@gnu.org>
6425 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
6426 ws2tcpip.h. When checking whether socklen_t type is defined, use
6427 ws2tcpip.h if it is available and sys/socket.h isn't.
6428 * configure: Regenerate.
6429 * config.in: Regenerate.
6431 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
6435 * valops.c (value_ind): Pass address to
6436 readjust_indirect_value_type.
6437 * value.c (readjust_indirect_value_type): Make parameter
6438 non-const, and add extra address parameter. Resolve original type
6440 * value.h (readjust_indirect_value_type): Update function
6441 signature and comment.
6443 2020-07-25 Tom de Vries <tdevries@suse.de>
6446 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
6449 2020-07-24 Aaron Merey <amerey@redhat.com>
6451 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
6452 * configure: Rebuild.
6454 2020-07-23 Kevin Buettner <kevinb@redhat.com>
6457 * corelow.c (_initialize_corelow): Add period to help text
6458 for "maintenance print core-file-backed-mappings".
6460 2020-07-23 Pedro Alves <pedro@palves.net>
6462 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
6463 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
6465 * frame.c (frame_cache_generation, get_frame_cache_generation):
6467 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
6468 (get_prev_frame_if_no_cycle): On exception, don't touch
6469 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
6470 * frame.h (get_frame_cache_generation): Declare.
6472 2020-07-23 Tom de Vries <tdevries@suse.de>
6475 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
6476 New default constructor.
6478 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
6480 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
6481 exclude non-statement entries.
6483 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6485 * NEWS (New commands): Mention new command
6486 "maintenance print core-file-backed-mappings".
6488 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6490 * corelow.c (gdbcmd.h): Include.
6491 (core_target::info_proc_mappings): New method.
6492 (get_current_core_target): New function.
6493 (maintenance_print_core_file_backed_mappings): New function.
6494 (_initialize_corelow): Add core-file-backed-mappings to
6495 "maint print" commands.
6497 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6499 * linux-tdep.c (dump_note_entry_p): New function.
6500 (linux_dump_mapping_p_ftype): New typedef.
6501 (linux_find_memory_regions_full): Add new parameter,
6502 should_dump_mapping_p.
6503 (linux_find_memory_regions): Adjust call to
6504 linux_find_memory_regions_full.
6505 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
6506 call to linux_find_memory_regions_full.
6508 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6510 * corelow.c (solist.h, unordered_map): Include.
6511 (class core_target): Add field m_core_file_mappings and
6512 method build_file_mappings.
6513 (core_target::core_target): Call build_file_mappings.
6514 (core_target::~core_target): Free memory associated with
6515 m_core_file_mappings.
6516 (core_target::build_file_mappings): New method.
6517 (core_target::xfer_partial): Use m_core_file_mappings
6518 for memory transfers.
6519 * linux-tdep.c (linux_read_core_file_mappings): New
6521 (linux_core_info_proc_mappings): Rewrite to use
6522 linux_read_core_file_mappings.
6523 (linux_init_abi): Register linux_read_core_file_mappings.
6525 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6527 * arch-utils.c (default_read_core_file_mappings): New function.
6528 * arch-utils.c (default_read_core_file_mappings): Declare.
6529 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
6530 * gdbarch.h, gdbarch.c: Regenerate.
6532 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6535 * corelow.c (core_target:xfer_partial): Revise
6536 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
6537 case after first checking the stratum beneath the core
6539 (has_all_memory): Return true.
6540 * target.c (raw_memory_xfer_partial): Revise comment
6541 regarding use of has_all_memory.
6543 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6545 * exec.h (section_table_xfer_memory): Revise declaration,
6546 replacing section name parameter with an optional callback
6548 * exec.c (section_table_xfer_memory): Likewise.
6549 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
6550 of section_table_xfer_memory.
6552 2020-07-22 Tom Tromey <tromey@adacore.com>
6554 * mi/mi-cmd-stack.c (list_args_or_locals): Use
6555 lookup_symbol_search_name.
6557 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6559 * python/py-registers.c (gdbpy_register_object_data_init): Remove
6560 redundant local variable.
6561 (gdbpy_get_register_descriptor): Extract descriptor vector as a
6562 reference, not pointer, update code accordingly.
6564 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6565 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6567 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
6568 * jit.c (jit_breakpoint_re_set_internal): Use the
6569 `skip_jit_symbol_lookup` field.
6571 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6572 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6574 * jit.c (jit_read_descriptor): Define the descriptor address once,
6576 (jit_breakpoint_deleted): Move the declaration of the loop variable
6577 `iter` into the loop header.
6578 (jit_breakpoint_re_set_internal): Move the declaration of the local
6579 variable `objf_data` to the first point of definition.
6580 (jit_event_handler): Move the declaration of local variables
6581 `code_entry`, `entry_addr`, and `objf` to their first point of use.
6582 Rename `objf` to `jited`.
6584 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6586 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
6588 * jit.c (get_jiter_objfile_data): Update.
6590 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6591 Simon Marchi <simon.marchi@polymtl.ca>
6593 * jit.c (struct jit_program_space_data): Remove.
6594 (jit_program_space_key): Remove.
6595 (jiter_objfile_data::~jiter_objfile_data): Remove program space
6597 (get_jit_program_space_data): Remove.
6598 (jit_breakpoint_deleted): Iterate on all of the program space's
6600 (jit_inferior_init): Likewise.
6601 (jit_breakpoint_re_set_internal): Likewise. Also change return
6603 (jit_breakpoint_re_set): Pass current_program_space to
6604 jit_breakpoint_re_set_internal.
6606 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6608 * jit.h (struct jiter_objfile_data) <cached_code_address,
6609 jit_breakpoint>: Move to here from ...
6610 * jit.c (jit_program_space_data): ... here.
6611 (jiter_objfile_data::~jiter_objfile_data): Update.
6612 (jit_breakpoint_deleted): Update.
6613 (jit_breakpoint_re_set_internal): Update.
6615 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6617 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
6619 (jit_read_descriptor): Remove NULL check.
6620 (jit_event_handler): Add an assertion.
6622 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6624 * jit.h (struct jit_objfile_data): Split into...
6625 (struct jiter_objfile_data): ... this ...
6626 (struct jited_objfile_data): ... and this.
6627 * objfiles.h (struct objfile) <jit_data>: Remove.
6628 <jiter_data, jited_data>: New fields.
6629 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
6630 (jiter_objfile_data::~jiter_objfile_data): ... this.
6631 (get_jit_objfile_data): Rename to ...
6632 (get_jiter_objfile_data): ... this.
6633 (add_objfile_entry): Update.
6634 (jit_read_descriptor): Use get_jiter_objfile_data.
6635 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
6636 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
6637 (jit_inferior_exit_hook): Use objfile's jited_data field.
6639 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6641 * jit.h: Forward-declare `struct minimal_symbol`.
6642 (struct jit_objfile_data): Migrate to here from jit.c; also add a
6643 constructor, destructor, and an objfile* field.
6644 * jit.c (jit_objfile_data): Remove.
6645 (struct jit_objfile_data): Migrate from here to jit.h.
6646 (jit_objfile_data::~jit_objfile_data): New destructor
6647 implementation with code moved from free_objfile_data.
6648 (free_objfile_data): Delete.
6649 (get_jit_objfile_data): Update to use the jit_data field of objfile.
6650 (jit_find_objf_with_entry_addr): Ditto.
6651 (jit_inferior_exit_hook): Ditto.
6652 (_initialize_jit): Remove the call to
6653 register_objfile_data_with_cleanup.
6654 * objfiles.h (struct objfile) <jit_data>: New field.
6656 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6658 * jit.h: Forward-declare `struct objfile`.
6659 (jit_event_handler): Add a second parameter, the JITer objfile.
6660 * jit.c (jit_read_descriptor): Change the signature to take the
6661 JITer objfile as an argument instead of the jit_program_space_data.
6662 (jit_inferior_init): Update the call to jit_read_descriptor.
6663 (jit_event_handler): Use the new JITer objfile argument when calling
6664 jit_read_descriptor.
6665 * breakpoint.c (handle_jit_event): Update the call to
6666 jit_event_handler to pass the JITer objfile.
6668 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6670 * gdbarch.c: Regenerate.
6671 * gdbarch.h: Regenerate.
6672 * gdbarch.sh (handle_segmentation_fault): Remove method.
6673 * infrun.c (handle_segmentation_fault): Remove.
6674 (print_signal_received_reason): Remove call to
6675 handle_segmentation_fault.
6677 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6679 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
6680 Rename to sparc64_linux_report_signal_info and add siggnal
6682 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
6683 instead of sparc64_linux_handle_segmentation_fault.
6685 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6687 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
6688 i386_linux_report_signal_info instead of
6689 i386_linux_handle_segmentation_fault.
6690 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
6691 to i386_linux_report_signal_info and add siggnal argument.
6692 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
6693 of i386_linux_handle_segmentation_fault.
6694 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
6695 to i386_linux_report_signal_info and add siggnal argument.
6697 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6699 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
6702 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6704 * gdbarch.c: Regenerate.
6705 * gdbarch.h: Regenerate.
6706 * gdbarch.sh (report_signal_info): New method.
6707 * infrun.c (print_signal_received_reason): Invoke gdbarch
6708 report_signal_info hook if present.
6710 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
6712 * python/py-registers.c : Add 'unordered_map' include.
6713 (gdbpy_new_reggroup): Renamed to...
6714 (gdbpy_get_reggroup): ...this. Update to only create register
6715 group descriptors when needed.
6716 (gdbpy_reggroup_iter_next): Update.
6718 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
6720 * python/py-registers.c (gdbpy_register_object_data): New static
6722 (gdbpy_register_object_data_init): New function.
6723 (gdbpy_new_register_descriptor): Renamed to...
6724 (gdbpy_get_register_descriptor): ...this, and update to reuse
6725 existing register descriptors where possible.
6726 (gdbpy_register_descriptor_iter_next): Update.
6727 (gdbpy_initialize_registers): Register new gdbarch data.
6729 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
6731 * linux-nat.c (stopped_pids): Make static.
6733 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
6736 * gdbtypes.c (ada_discrete_type_low_bound,
6737 ada_discrete_type_high_bound): Handle undefined bounds.
6739 2020-07-21 Kamil Rytarowski <n54@gmx.com>
6741 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
6743 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
6746 2020-07-20 John Baldwin <jhb@FreeBSD.org>
6748 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
6749 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
6750 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
6751 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
6752 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
6755 2020-07-20 Ludovic Courtès <ludo@gnu.org>
6757 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
6758 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
6759 which are deprecated in Guile 3.0.
6760 * configure.ac (try_guile_versions): Add "guile-3.0".
6761 * configure (try_guile_versions): Regenerate.
6762 * NEWS: Update entry.
6764 2020-07-20 Ludovic Courtès <ludo@gnu.org>
6765 Doug Evans <dje@google.com>
6768 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
6769 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
6770 USING_GUILE_BEFORE_2_2.
6771 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
6772 Change type to 'scm_t_port_type *'.
6773 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
6774 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
6775 parameter and honor it. Update callers.
6776 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
6777 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
6779 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
6780 USING_GUILE_BEFORE_2_2.
6781 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
6782 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
6783 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
6784 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
6785 and 'SCM_PORT_TYPE'.
6786 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
6787 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
6788 (gdbscm_memory_port_read, gdbscm_memory_port_write)
6789 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
6790 [!USING_GUILE_BEFORE_2_2]: New functions.
6791 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
6792 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
6793 'gdbscm_memory_port_read'.
6794 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
6795 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
6796 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
6798 (ioscm_init_memory_port): Remove.
6799 (ioscm_init_memory_port_stream): New function
6800 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
6802 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
6803 Return scm_from_uint (0).
6804 (gdbscm_set_memory_port_read_buffer_size_x)
6805 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
6806 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
6807 Return scm_from_uint (0).
6808 (gdbscm_set_memory_port_write_buffer_size_x)
6809 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
6810 * configure.ac (try_guile_versions): Add "guile-2.2".
6811 * configure: Regenerate.
6814 2020-07-18 Tom Tromey <tom@tromey.com>
6816 * linux-nat.c (linux_multi_process): Remove.
6817 (linux_nat_target::supports_multi_process): Return true.
6819 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
6821 * arch/riscv.c (riscv_tdesc_cache): Change map type.
6822 (riscv_lookup_target_description): Return pointer out of
6824 * target-descriptions.c (allocate_target_description): Add
6826 (target_desc_deleter::operator()): Likewise.
6827 * target-descriptions.h (struct target_desc_deleter): Moved to
6829 (target_desc_up): Likewise.
6831 2020-07-17 Tom Tromey <tromey@adacore.com>
6833 * linux-nat.c (linux_nat_target::supports_non_stop)
6834 (linux_nat_target::always_non_stop_p): Use "true".
6835 (linux_nat_target::supports_disable_randomization): Use "true" and
6838 2020-07-16 Caroline Tice <cmtice@google.com>
6840 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
6841 (RNGLIST_HEADER_SIZE64): New constant definition.
6842 (struct dwop_section_names): Add rnglists_dwo.
6843 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
6844 (struct loclist_header): Rename to 'loclists_rnglists_header'.
6845 (struct dwo_sections): Add rnglists field.
6846 (read_attribut_reprocess): Add tag parameter.
6847 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
6848 (cu_debug_rnglists_section): New function (decl & definition).
6849 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
6850 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
6851 die whose range is being checked; get rnglist section from
6852 cu_debug_rnglists_section, to get from either objfile or dwo file as
6853 appropriate. Add cases for DW_RLE_base_addressx,
6854 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
6855 the base address to DW_RLE_offset_pairs (not to all ranges), moving
6856 test inside if-condition and updating complaint message.
6857 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
6858 dwarf2_rnglists_process.
6859 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
6860 dwarf2_ranges_process.
6861 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
6862 need_ranges_base and update comment appropriately. Also pass die tag
6863 to dwarf2_ranges_read.
6864 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
6865 need_ranges_base and update comment appropriately. Also pass die tag
6866 to dwarf2_ranges_process.
6867 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
6868 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
6869 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
6870 need_ranges_base and update comment appropriately. Also pass die tag
6871 to read_attribute_reprocess and dwarf2_ranges_read.
6872 (read_loclist_header): Rename function to read_loclists_rnglists_header,
6873 and update function comment appropriately.
6874 (read_loclist_index): Call read_loclists_rnglists_header instead of
6875 read_loclist_header.
6876 (read_rnglist_index): New function.
6877 (read_attribute_reprocess): Add tag parameter. Add code for
6878 DW_FORM_rnglistx, passing tag to read_rnglist_index.
6879 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
6881 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
6883 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
6886 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
6888 * arch-utils.c (show_architecture): Update formatting of messages.
6890 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6892 * gdbtypes.h (struct type) <bounds>: Handle array and string
6894 * ada-lang.c (assign_aggregate): Use type::bounds on
6896 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
6897 * c-varobj.c (c_number_of_children): Likewise.
6898 (c_describe_child): Likewise.
6899 * eval.c (evaluate_subexp_for_sizeof): Likewise.
6900 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
6901 (f_type_print_base): Likewise.
6902 * f-valprint.c (f77_array_offset_tbl): Likewise.
6903 (f77_get_upperbound): Likewise.
6904 (f77_print_array_1): Likewise.
6905 * guile/scm-type.c (gdbscm_type_range): Likewise.
6906 * m2-typeprint.c (m2_array): Likewise.
6907 (m2_is_long_set_of_type): Likewise.
6908 * m2-valprint.c (get_long_set_bounds): Likewise.
6909 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
6910 * python/py-type.c (typy_range): Likewise.
6911 * rust-lang.c (rust_internal_print_type): Likewise.
6912 * type-stack.c (type_stack::follow_types): Likewise.
6913 * valarith.c (value_subscripted_rvalue): Likewise.
6914 * valops.c (value_cast): Likewise.
6916 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6918 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
6919 callers to use the equivalent accessor methods.
6921 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6923 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
6924 (struct type) <bit_stride>: New method.
6925 (TYPE_BIT_STRIDE): Remove.
6926 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
6928 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6930 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
6931 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
6932 callers to use the equivalent accessor methods instead.
6934 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6936 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
6937 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
6938 callers to use the equivalent accessor methods instead.
6940 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6942 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
6943 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
6944 to use dynamic_prop::kind.
6946 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6948 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
6949 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
6950 to get the bound property's kind and check against
6953 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6955 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
6956 all callers to use type::range_bounds followed by
6957 dynamic_prop::{low,high}.
6959 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
6961 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
6962 const_val, set_const_val, baton, set_locexpr, set_loclist,
6963 set_addr_offset, variant_parts, set_variant_parts,
6964 original_type, set_original_type>: New methods.
6965 <kind>: Rename to...
6966 <m_kind>: ... this. Update all users to use the new methods
6968 <data>: Rename to...
6969 <m_data>: ... this. Update all users to use the new methods
6972 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6974 * gdbtypes.c (get_discrete_bounds): Return failure if
6975 the range type's bounds are not both defined and constant
6977 (get_array_bounds): Update comment. Remove undefined bound check.
6979 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
6981 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
6982 the type::bounds method directly.
6984 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6986 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
6987 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
6988 are used to set the range type's bounds to use set_bounds.
6990 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6992 * exec.c (_initialize_exec): Update exec-file-mismatch help.
6994 2020-07-10 Pedro Alves <pedro@palves.net>
6996 * gdbthread.h (inferior_ref): Define.
6997 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
6998 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
7000 (scoped_restore_current_thread::restore):
7001 Adjust to gdb::ref_ptr.
7002 (scoped_restore_current_thread::~scoped_restore_current_thread):
7003 Remove manual decref handling.
7004 (scoped_restore_current_thread::scoped_restore_current_thread):
7006 inferior_ref::new_reference/thread_info_ref::new_reference.
7007 Incref the thread before calling get_frame_id instead of after.
7008 Let TARGET_CLOSE_ERROR propagate.
7010 2020-07-10 Pedro Alves <pedro@palves.net>
7012 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
7013 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
7014 NOT_AVAILABLE_ERROR.
7015 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
7016 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
7018 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7019 Pedro Alves <pedro@palves.net>
7022 * infrun.c (threads_are_resumed_pending_p): Delete.
7023 (do_target_wait): Remove threads_are_executing and
7024 threads_are_resumed_pending_p checks from the inferior_matches
7025 lambda. Update comments.
7027 2020-07-10 Pedro Alves <pedro@palves.net>
7030 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
7033 2020-07-10 Pedro Alves <pedro@palves.net>
7036 * infrun.c (handle_no_resumed): Handle multiple targets.
7038 2020-07-10 Pedro Alves <pedro@palves.net>
7041 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
7044 2020-07-10 Pedro Alves <pedro@palves.net>
7047 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
7048 threads, not all threads.
7050 2020-07-10 Pedro Alves <pedro@palves.net>
7053 * remote.c (remote_target::open_1): Pass remote target pointer as
7054 data to create_async_event_handler.
7055 (remote_async_inferior_event_handler): Mark async event handler
7056 before returning if the remote target still has either pending
7057 events or unacknowledged notifications.
7059 2020-07-10 John Baldwin <jhb@FreeBSD.org>
7061 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
7063 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
7066 2020-07-09 John Baldwin <jhb@FreeBSD.org>
7068 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
7071 2020-07-09 John Baldwin <jhb@FreeBSD.org>
7073 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
7074 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
7075 AT_FREEBSD_PS_STRINGS.
7077 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
7079 * auto-load.c (auto_load_objfile_script_1): Convert drive part
7080 of debugfile path on Windows.
7082 2020-07-08 John Baldwin <jhb@FreeBSD.org>
7084 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
7087 2020-07-08 Tom Tromey <tromey@adacore.com>
7089 * ada-lang.c (ada_exception_message_1): Use read_memory.
7091 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7094 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
7095 special handling for inline frames.
7096 * findvar.c (value_of_register_lazy): Skip inline frames when
7097 creating lazy register values.
7098 * frame.c (frame_id_computed_p): Delete definition.
7099 * frame.h (frame_id_computed_p): Delete declaration.
7101 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7103 * NEWS: Mention additions to Python API.
7104 * python/py-arch.c (archpy_register_groups): New function.
7105 (arch_object_methods): Add 'register_groups' method.
7106 * python/py-registers.c (reggroup_iterator_object): New struct.
7107 (reggroup_object): New struct.
7108 (gdbpy_new_reggroup): New function.
7109 (gdbpy_reggroup_to_string): New function.
7110 (gdbpy_reggroup_name): New function.
7111 (gdbpy_reggroup_iter): New function.
7112 (gdbpy_reggroup_iter_next): New function.
7113 (gdbpy_new_reggroup_iterator): New function
7114 (gdbpy_initialize_registers): Register new types.
7115 (reggroup_iterator_object_type): Define new Python type.
7116 (gdbpy_reggroup_getset): New static global.
7117 (reggroup_object_type): Define new Python type.
7118 * python/python-internal.h
7120 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7122 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
7123 * python/py-arch.c (archpy_registers): New function.
7124 (arch_object_methods): Add 'registers' method.
7125 * python/py-registers.c: New file.
7126 * python/python-internal.h
7127 (gdbpy_new_register_descriptor_iterator): Declare.
7128 (gdbpy_initialize_registers): Declare.
7129 * python/python.c (do_start_initialization): Call
7130 gdbpy_initialize_registers.
7131 * NEWS: Mention additions to the Python API.
7133 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7135 * NEWS: Mention new Python API method.
7136 * python/py-unwind.c (pending_framepy_architecture): New function.
7137 (pending_frame_object_methods): Add architecture method.
7139 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7141 * gdbarch.c: Regenerate.
7142 * gdbarch.h: Regenerate.
7143 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
7144 (gdbarch_data): Use internal_error for the case where
7145 deprecated_set_gdbarch_data was originally needed.
7146 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
7147 and use passed in obstack.
7148 (libunwind_frame_set_descr): Should no longer get back NULL from
7150 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
7152 * user-regs.c (user_regs_init): Update parameters, and use passed
7154 (user_reg_add): Should no longer get back NULL from gdbarch_data.
7155 (_initialize_user_regs): Register as a pre-init gdbarch data type.
7157 2020-07-06 Tom de Vries <tdevries@suse.de>
7159 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
7160 End-Of-Sequence in lte_is_less_than.
7161 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
7162 "gdb: Don't reorder line table entries too much when sorting".
7164 2020-07-06 Tom de Vries <tdevries@suse.de>
7167 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
7169 2020-07-05 Tom de Vries <tdevries@suse.de>
7172 * inferior.h (struct infcall_suspend_state_deleter): If available, use
7173 std::uncaught_exceptions instead of deprecated
7174 std::uncaught_exception.
7176 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7178 * macroexp.h (macro_stringify): Return
7179 gdb::unique_xmalloc_ptr<char>.
7180 * macroexp.c (macro_stringify): Likewise.
7181 * macrotab.c (fixup_definition): Update.
7183 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7185 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
7186 (lex_one_token): Update.
7187 * macroexp.c (struct macro_buffer) <release>: Return
7188 gdb::unique_xmalloc_ptr<char>.
7189 (macro_stringify): Update.
7190 (macro_expand): Update.
7191 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
7192 * macroexp.h (macro_expand_next): Likewise.
7194 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
7196 * macroexp.h (macro_lookup_ftype): Remove.
7197 (macro_expand, macro_expand_once, macro_expand_next): Remove
7198 lookup function parameters, add scope parameter.
7199 * macroexp.c (scan, substitute_args, expand, maybe_expand,
7200 macro_expand, macro_expand_once, macro_expand_next): Likewise.
7201 * macroscope.h (standard_macro_lookup): Change parameter type
7203 * macroscope.c (standard_macro_lookup): Likewise.
7204 * c-exp.y (lex_one_token): Update.
7205 * macrocmd.c (macro_expand_command): Likewise.
7206 (macro_expand_once_command): Likewise.
7208 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7210 * inf-loop.c (inferior_event_handler): Remove client_data param.
7211 * inf-loop.h (inferior_event_handler): Likewise.
7212 * infcmd.c (step_1): Adjust.
7213 * infrun.c (proceed): Adjust.
7214 (fetch_inferior_event): Remove client_data param.
7215 (infrun_async_inferior_event_handler): Adjust.
7216 * infrun.h (fetch_inferior_event): Remove `void *` param.
7217 * linux-nat.c (handle_target_event): Adjust.
7218 * record-btrace.c (record_btrace_handle_async_inferior_event):
7220 * record-full.c (record_full_async_inferior_event_handler):
7222 * remote.c (remote_async_inferior_event_handler): Adjust.
7224 2020-07-01 Tom Tromey <tom@tromey.com>
7226 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
7227 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
7229 2020-07-01 Tom Tromey <tom@tromey.com>
7231 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
7233 (tui_win_info::make_window): Merge with
7234 tui_gen_win_info::make_window.
7235 (tui_win_info::make_visible): Move from tui_gen_win_info.
7236 * tui/tui-win.c (tui_win_info::max_width): Move from
7238 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
7240 <window_factory>: Likewise.
7241 * tui/tui-layout.c (tui_win_info::resize): Move from
7243 (make_standard_window): Change return type.
7244 (get_locator_window, tui_get_window_by_name): Likewise.
7245 (tui_layout_window::apply): Remove a cast.
7246 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
7247 (struct tui_win_info): Merge with tui_gen_win_info.
7248 (struct tui_gen_win_info): Remove.
7250 2020-07-01 Tom Tromey <tom@tromey.com>
7252 * tui/tui-stack.h (struct tui_locator_window): Derive from
7254 <do_scroll_horizontal, do_scroll_vertical>: New methods.
7255 <can_box>: New method.
7257 2020-07-01 Tom Tromey <tom@tromey.com>
7259 * tui/tui-stack.h (struct tui_locator_window): Remove body.
7261 2020-07-01 Tom Tromey <tom@tromey.com>
7263 * tui/tui-regs.c (tui_data_window::display_registers_from)
7264 (tui_data_window::display_registers_from)
7265 (tui_data_window::first_data_item_displayed)
7266 (tui_data_window::delete_data_content_windows): Update.
7267 (tui_data_window::refresh_window, tui_data_window::no_refresh):
7269 (tui_data_window::check_register_values): Update.
7270 (tui_data_item_window::rerender): Add parameters. Update.
7271 (tui_data_item_window::refresh_window): Remove.
7272 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
7274 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
7276 <refresh_window, max_height, min_height>: Remove.
7277 <rerender>: Add parameters.
7278 <x, y, visible>: New members.
7279 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
7280 <m_item_width>: New member.
7282 2020-07-01 Tom Tromey <tom@tromey.com>
7284 * tui/tui-regs.c (tui_data_window::show_register_group)
7285 (tui_data_window::check_register_values): Update.
7286 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
7289 2020-07-01 Tom Tromey <tom@tromey.com>
7291 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
7294 2020-07-01 Tom Tromey <tom@tromey.com>
7296 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
7297 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
7299 2020-07-01 Tom Tromey <tom@tromey.com>
7301 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
7302 * tui/tui-winsource.h (enum tui_line_or_address_kind)
7303 (struct tui_line_or_address): Move from tui-data.h.
7304 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
7305 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
7306 (tui_cmd_window, tui_source_window_base, tui_source_window)
7307 (tui_disasm_window): Don't declare.
7308 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
7310 (SINGLE_KEY): Move to tui-stack.c.
7312 2020-07-01 Tom Tromey <tom@tromey.com>
7314 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
7316 * tui/tui-regs.c (class tab_expansion_file): New.
7317 (tab_expansion_file::write): New method.
7318 (tui_register_format): Change return type. Use
7320 (tui_get_register, tui_data_window::display_registers_from)
7321 (tui_data_item_window::rerender): Update.
7322 * tui/tui-io.h (tui_expand_tabs): Don't declare.
7323 * tui/tui-io.c (tui_expand_tabs): Remove.
7325 2020-07-01 Tom Tromey <tom@tromey.com>
7327 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
7329 2020-07-01 Fangrui Song <maskray@google.com>
7331 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
7333 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7335 * dwarf2/read.c (set_die_type): Removed conditions to restrict
7336 forms for DW_AT_associated and DW_AT_allocated attributes,
7337 which is already checked in function attr_to_dynamic_prop.
7339 2020-06-30 Tom Tromey <tromey@adacore.com>
7341 * dwarf2/read.c (quirk_rust_enum): Correctly call
7342 alloc_rust_variant for default-less enum.
7344 2020-06-30 Tom Tromey <tromey@adacore.com>
7347 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
7350 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
7352 * gdbarch.sh (displaced_step_copy_insn): Update doc.
7353 * gdbarch.h: Re-generate.
7355 2020-06-28 Tom Tromey <tom@tromey.com>
7357 * command.h (cmd_types): Remove.
7358 (cmd_type): Don't declare.
7359 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
7361 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
7362 * cli/cli-decode.c (cmd_type): Remove.
7364 2020-06-27 Pedro Alves <palves@redhat.com>
7366 * fork-child.c (prefork_hook): Adjust.
7367 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
7369 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
7370 * inferior.c (inferior::set_tty, inferior::tty): New methods.
7371 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
7372 Remove declarations.
7373 (struct inferior) <set_tty, tty>: New methods.
7374 (struct inferior) <terminal>: Rename to ...
7375 (struct inferior) <m_terminal>: ... this and make private.
7376 * main.c (captured_main_1): Adjust.
7377 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
7378 (mi_cmd_inferior_tty_show): Adjust.
7379 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
7380 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
7382 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
7384 * configure.ac: Add --enable-libctf: handle --disable-static
7386 * acinclude.m4: sinclude ../config/enable.m4.
7387 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
7388 (LIBCTF): Substitute in.
7389 (CTF_DEPS): New, likewise.
7390 (CLIBS): libctf needs symbols from libbfd: move earlier.
7391 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
7393 * ctfread.c: Surround in ENABLE_LIBCTF.
7394 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
7395 * configure: Regenerate.
7396 * config.in: Likewise.
7398 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
7400 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
7402 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
7404 * inferior.h (struct inferior) <terminal>: Change type to
7405 gdb::unique_xmalloc_ptr<char>.
7406 * inferior.c (inferior::~inferior): Don't free inf->terminal.
7407 * infcmd.c (set_inferior_io_terminal): Don't free terminal
7408 field, adjust to unique pointer.
7409 (get_inferior_io_terminal): Adjust to unique pointer.
7411 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7413 * riscv-tdep.c (riscv_print_registers_info): Loop over all
7414 registers, not just the known core set of registers.
7416 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7418 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
7419 fflags, frm, and fcsr registers.
7420 (riscv_register_reggroup_p): Remove unknown CSRs from save and
7422 (riscv_tdesc_unknown_reg): New function.
7423 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
7424 tdesc_use_registers.
7425 * riscv-tdep.h (struct gdbarch_tdep): Add
7426 unknown_csrs_first_regnum, unknown_csrs_count,
7427 duplicate_fflags_regnum, duplicate_frm_regnum, and
7428 duplicate_fcsr_regnum fields.
7430 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7432 * target-descriptions.c (tdesc_use_registers): Add new parameter a
7433 callback, use the callback (when not null) to help number unknown
7435 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
7436 (tdesc_use_registers): Add extra parameter to declaration.
7438 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7440 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
7442 (class riscv_pending_register_alias): Likewise.
7443 (riscv_register_feature::register_info): Change 'required_p' field
7444 to 'required', and change its type. Add 'check' member function.
7445 (riscv_register_feature::register_info::check): Define new member
7447 (riscv_xreg_feature): Change initialisation of 'required' field.
7448 (riscv_freg_feature): Likewise.
7449 (riscv_virtual_feature): Likewise.
7450 (riscv_csr_feature): Likewise.
7451 (riscv_check_tdesc_feature): Take extra parameter, the csr
7452 tdesc_feature, rewrite the function to use the new
7453 riscv_register_feature::register_info::check function.
7454 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
7456 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7458 * features/Makefile: Remove all references to the deleted files
7460 * features/riscv/32bit-csr.c: Deleted.
7461 * features/riscv/32bit-csr.xml: Deleted.
7462 * features/riscv/64bit-csr.c: Deleted.
7463 * features/riscv/64bit-csr.xml: Deleted.
7464 * features/riscv/rebuild-csr-xml.sh: Deleted.
7466 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7468 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
7469 whitespace error for declaration of names member variable.
7470 (struct riscv_register_feature): Add new prefer_first_name member
7471 variable, and fix whitespace error in declaration of registers.
7472 (riscv_xreg_feature): Initialize prefer_first_name field.
7473 (riscv_freg_feature): Likewise.
7474 (riscv_virtual_feature): Likewise.
7475 (riscv_csr_feature): Likewise.
7476 (riscv_register_name): Expand on comments. Remove register name
7477 modifications for CSR and virtual registers.
7479 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7481 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
7484 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7486 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
7488 (class riscv_pending_register_alias): New class.
7489 (riscv_check_tdesc_feature): Take vector of pending aliases and
7490 populate it as appropriate.
7491 (riscv_setup_register_aliases): Delete.
7492 (riscv_gdbarch_init): Create vector of pending aliases and pass it
7493 to riscv_check_tdesc_feature in all cases. Use the vector to
7494 create the register aliases.
7496 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7498 * sol2-tdep.c (sol2_static_transform_name): Remove.
7499 (sol2_init_abi): Don't register it.
7500 * gdbarch.sh (static_transform_name): Remove.
7501 * gdbarch.c, gdbarch.h: Regenerate.
7503 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
7504 gdbarch_static_transform_name.
7505 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
7506 * stabsread.c (define_symbol) <'X'>: Remove.
7507 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
7510 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
7511 <'S'>: Remove call to gdbarch_static_transform_name.
7513 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7515 * procfs.c (procfs_pre_trace): New function.
7516 (procfs_target::create_inferior): Pass it to fork_inferior.
7518 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7520 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
7521 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
7522 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
7523 sol2-tdep.o, sparc-sol2-tdep.o.
7524 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
7525 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
7526 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
7527 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
7529 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7531 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
7532 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
7534 Remove calls to set_gdbarch_skip_solib_resolver,
7535 set_gdbarch_core_pid_to_str.
7536 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
7537 (i386_sol2_static_transform_name): Remove.
7538 (i386_sol2_init_abi): Call sol2_init_abi.
7539 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7540 set_gdbarch_static_transform_name,
7541 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
7542 Use sol2_sigtramp_p.
7543 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
7544 (sol2_sigtramp_p): New function.
7545 (sol2_static_transform_name): New function.
7546 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
7547 (sol2_init_abi): New function.
7548 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
7549 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
7550 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
7551 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
7552 (sparc_sol2_static_transform_name): Remove.
7553 (sparc32_sol2_init_abi): Call sol2_init_abi.
7554 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7555 set_gdbarch_static_transform_name,
7556 set_gdbarch_skip_solib_resolver,
7557 set_gdbarch_core_pid_to_str.
7558 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
7559 (sparc_sol2_static_transform_name): Remove
7560 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
7561 call sol2_sigtramp_p.
7562 (sparc64_sol2_init_abi): Call sol2_init_abi.
7563 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7564 set_gdbarch_static_transform_name,
7565 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
7567 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7569 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
7570 * exec.c (validate_exec_file): If from_tty, set both
7571 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
7572 * symfile.c (symbol_file_add_with_addrs): if always_confirm
7573 and from_tty, unconditionally ask a confirmation.
7575 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7577 * target-descriptions.c (tdesc_architecture_name): Protect against
7578 NULL pointer dereference.
7579 (maint_print_xml_tdesc_cmd): New function.
7580 (_initialize_target_descriptions): Register new 'maint print
7581 xml-tdesc' command and give it the filename completer.
7582 * NEWS: Mention new 'maint print xml-tdesc' command.
7584 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7586 * target-descriptions.c (class tdesc_compatible_info): New class.
7587 (struct target_desc): Change type of compatible vector.
7588 (tdesc_compatible_p): Update for change in type of
7589 target_desc::compatible.
7590 (tdesc_compatible_info_list): New function.
7591 (tdesc_compatible_info_arch_name): New function.
7592 (tdesc_add_compatible): Update for change in type of
7593 target_desc::compatible.
7594 (print_c_tdesc::visit_pre): Likewise.
7596 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7598 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
7599 whitespace to underscore.
7600 (maint_print_c_tdesc_cmd): Use fake filename for target
7601 descriptions that came from the target.
7602 (_initialize_target_descriptions): Add filename command completion
7603 for 'maint print c-tdesc'.
7605 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
7607 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
7610 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
7612 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
7614 (dwarf2_find_location_expression): Likewise.
7615 (call_site_parameter_matches): Likewise.
7616 (dwarf2_compile_expr_to_ax): Likewise.
7617 (disassemble_dwarf_expression): Likewise.
7618 (loclist_describe_location): Likewise.
7620 2020-06-23 Pedro Alves <palves@redhat.com>
7622 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
7623 progspace-and-thread.h. Include scoped-mock-context.h instead.
7624 (register_to_value_test): Use scoped_mock_context.
7625 * regcache.c: Include "scoped-mock-context.h".
7626 (cooked_read_test): Don't error out if a target is already pushed.
7627 Use scoped_mock_context. Adjust.
7628 * scoped-mock-context.h: New file.
7630 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7632 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
7634 (ada_language::is_string_type_p): New member function.
7635 * c-lang.c (c_language_data): Delete la_is_string_type_p
7637 (cplus_language_data): Likewise.
7638 (asm_language_data): Likewise.
7639 (minimal_language_data): Likewise.
7640 * d-lang.c (d_language_data): Likewise.
7641 * f-lang.c (f_is_string_type_p): Delete function, implementation
7642 moved to f_language::is_string_type_p.
7643 (f_language_data): Delete la_is_string_type_p initializer.
7644 (f_language::is_string_type_p): New member function,
7645 implementation from f_is_string_type_p.
7646 * go-lang.c (go_is_string_type_p): Delete function, implementation
7647 moved to go_language::is_string_type_p.
7648 (go_language_data): Delete la_is_string_type_p initializer.
7649 (go_language::is_string_type_p): New member function,
7650 implementation from go_is_string_type_p.
7651 * language.c (language_defn::is_string_type_p): Define new member
7653 (default_is_string_type_p): Make static, add comment copied from
7655 (unknown_language_data): Delete la_is_string_type_p initializer.
7656 (unknown_language::is_string_type_p): New member function.
7657 (auto_language_data): Delete la_is_string_type_p initializer.
7658 (auto_language::is_string_type_p): New member function.
7659 * language.h (language_data): Delete la_is_string_type_p field.
7660 (language_defn::is_string_type_p): Declare new function.
7661 (default_is_string_type_p): Delete desclaration, move comment to
7663 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
7664 moved to m2_language::is_string_type_p.
7665 (m2_language_data): Delete la_is_string_type_p initializer.
7666 (m2_language::is_string_type_p): New member function,
7667 implementation from m2_is_string_type_p.
7668 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
7670 * opencl-lang.c (opencl_language_data): Likewise.
7671 * p-lang.c (pascal_is_string_type_p): Delete function,
7672 implementation moved to pascal_language::is_string_type_p.
7673 (pascal_language_data): Delete la_is_string_type_p initializer.
7674 (pascal_language::is_string_type_p): New member function,
7675 implementation from pascal_is_string_type_p.
7676 * rust-lang.c (rust_is_string_type_p): Delete function,
7677 implementation moved to rust_language::is_string_type_p.
7678 (rust_language_data): Delete la_is_string_type_p initializer.
7679 (rust_language::is_string_type_p): New member function,
7680 implementation from rust_is_string_type_p.
7681 * valprint.c (val_print_scalar_or_string_type_p): Update call to
7684 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7686 * ada-lang.c (ada_language_data): Delete la_print_typedef
7688 (ada_language::print_typedef): New member function.
7689 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
7690 (cplus_language_data): Likewise.
7691 (asm_language_data): Likewise.
7692 (minimal_language_data): Likewise.
7693 * d-lang.c (d_language_data): Likewise.
7694 * f-lang.c (f_language_data): Likewise.
7695 (f_language::print_typedef): New member function.
7696 * go-lang.c (go_language_data): Delete la_print_typedef
7698 * language.c (language_defn::print_typedef): Define member
7700 (unknown_language_data): Delete la_print_typedef initializer.
7701 (unknown_language::print_typedef): New member function.
7702 (auto_language_data): Delete la_print_typedef initializer.
7703 (auto_language::print_typedef): New member function.
7704 * language.h (language_data): Delete la_print_typedef field.
7705 (language_defn::print_typedef): Declare new member function.
7706 (LA_PRINT_TYPEDEF): Update call to print_typedef.
7707 (default_print_typedef): Delete declaration.
7708 * m2-lang.c (m2_language_data): Delete la_print_typedef
7710 (m2_language::print_typedef): New member function.
7711 * objc-lang.c (objc_language_data): Delete la_print_typedef
7713 * opencl-lang.c (opencl_language_data): Likewise.
7714 * p-lang.c (pascal_language_data): Likewise.
7715 (pascal_language::print_typedef): New member function.
7716 * rust-lang.c (rust_print_typedef): Delete function,
7717 implementation moved to rust_language::print_typedef.
7718 (rust_language): Delete la_print_typedef initializer.
7719 (rust_language::print_typedef): New member function,
7720 implementation from rust_print_typedef.
7721 * typeprint.c (default_print_typedef): Delete.
7723 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7725 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
7726 (ada_language::printstr): New member function.
7727 * c-lang.c (c_language_data): Delete la_printstr initializer.
7728 (cplus_language_data): Likewise.
7729 (asm_language_data): Likewise.
7730 (minimal_language_data): Likewise.
7731 * d-lang.c (d_language_data): Likewise.
7732 * f-lang.c (f_printstr): Rename to f_language::printstr.
7733 (f_language_data): Delete la_printstr initializer.
7734 (f_language::printstr): New member function, implementation from
7736 * go-lang.c (go_language_data): Delete la_printstr initializer.
7737 * language.c (language_defn::printstr): Define new member
7739 (unk_lang_printstr): Delete.
7740 (unknown_language_data): Delete la_printstr initializer.
7741 (unknown_language::printstr): New member function.
7742 (auto_language_data): Delete la_printstr initializer.
7743 (auto_language::printstr): New member function.
7744 * language.h (language_data): Delete la_printstr field.
7745 (language_defn::printstr): Declare new member function.
7746 (LA_PRINT_STRING): Update call to printstr.
7747 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
7748 (m2_language_data): Delete la_printstr initializer.
7749 (m2_language::printstr): New member function, implementation from
7751 * objc-lang.c (objc_language_data): Delete la_printstr
7753 * opencl-lang.c (opencl_language_data): Likewise.
7754 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
7755 (pascal_language_data): Delete la_printstr initializer.
7756 (pascal_language::printstr): New member function, implementation
7757 from pascal_printstr.
7758 * p-lang.h (pascal_printstr): Delete declaration.
7759 * rust-lang.c (rust_printstr): Update header comment.
7760 (rust_language_data): Delete la_printstr initializer.
7761 (rust_language::printstr): New member function.
7763 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7765 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
7766 (ada_language::printchar): New member function.
7767 * c-lang.c (c_language_data): Delete la_printchar initializer.
7768 (cplus_language_data): Likewise.
7769 (asm_language_data): Likewise.
7770 (minimal_language_data): Likewise.
7771 * d-lang.c (d_language_data): Likewise.
7772 * f-lang.c (f_printchar): Rename to f_language::printchar.
7773 (f_language_data): Delete la_printchar initializer.
7774 (f_language::printchar): New member function, implementation from
7776 * go-lang.c (go_language_data): Delete la_printchar initializer.
7777 * language.c (unk_lang_printchar): Delete.
7778 (language_defn::printchar): Define new member function.
7779 (unknown_language_data): Delete la_printchar initializer.
7780 (unknown_language::printchar): New member function.
7781 (auto_language_data): Delete la_printchar initializer.
7782 (auto_language::printchar): New member function.
7783 * language.h (language_data): Delete la_printchar field.
7784 (language_defn::printchar): Declare new member function.
7785 (LA_PRINT_CHAR): Update call to printchar.
7786 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
7787 (m2_language::printchar): New member function.
7788 * objc-lang.c (objc_language_data): Delete la_printchar
7790 * opencl-lang.c (opencl_language_data): Likewise.
7791 * p-lang.c (pascal_language_data): Delete la_printchar
7793 (pascal_language::printchar): New member function.
7794 * rust-lang.c (rust_printchar): Rename to
7795 rust_language::printchar.
7796 (rust_language_data): Delete la_printchar initializer.
7797 (rust_language::printchar): New member function, implementation
7798 from rust_printchar.
7800 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7802 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
7803 (ada_language_data): Delete la_emitchar initializer.
7804 (ada_language::emitchar): New member function, implementation from
7806 * c-lang.c (c_language_data): Delete la_emitchar initializer.
7807 (cplus_language_data): Likewise.
7808 (asm_language_data): Likewise.
7809 (minimal_language_data): Likewise.
7810 * d-lang.c (d_language_data): Likewise.
7811 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
7812 (f_language_data): Delete la_emitchar initializer.
7813 (f_language::emitchar): New member function, implementation from
7815 * go-lang.c (go_language_data): Delete la_emitchar initializer.
7816 * language.c (unk_lang_emit_char): Delete.
7817 (language_defn::emitchar): New member function definition.
7818 (unknown_language_data): Delete la_emitchar initializer.
7819 (unknown_language::emitchar): New member function.
7820 (auto_language_data): Delete la_emitchar initializer.
7821 (auto_language::emitchar): New member function.
7822 * language.h (language_data): Delete la_emitchar field.
7823 (language_defn::emitchar): New member field declaration.
7824 (LA_EMIT_CHAR): Update call to emitchar.
7825 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
7826 (m2_language_data): Delete la_emitchar initializer.
7827 (m2_language::emitchar): New member function, implementation from
7829 * objc-lang.c (objc_language_data): Delete la_emitchar
7831 * opencl-lang.c (opencl_language_data): Likewise.
7832 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
7833 (pascal_language_data): Delete la_emitchar initializer.
7834 (pascal_language::emitchar): New member function, implementation
7835 from pascal_emit_char.
7836 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
7837 (rust_language_data): Delete la_emitchar initializer.
7838 (rust_language::emitchar): New member function, implementation
7841 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7843 * ada-lang.c (resolve): Rename to ada_language::post_parser.
7844 (ada_language_data): Delete la_post_parser initializer.
7845 (ada_language::post_parser): New member function.
7846 * c-lang.c (c_language_data): Delete la_post_parser initializer.
7847 (cplus_language_data): Likewise.
7848 (asm_language_data): Likewise.
7849 (minimal_language_data): Likewise.
7850 * d-lang.c (d_language_data): Likewise.
7851 * f-lang.c (f_language_data): Likewise.
7852 * go-lang.c (go_language_data): Likewise.
7853 * language.c (unknown_language_data): Likewise.
7854 (auto_language_data): Likewise.
7855 * language.h (language_data): Delete la_post_parser field.
7856 (language_defn::post_parser): New member function.
7857 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
7858 * objc-lang.c (objc_language_data): Likewise.
7859 * opencl-lang.c (opencl_language_data): Likewise.
7860 * p-lang.c (pascal_language_data): Likewise.
7861 * parse.c (parse_exp_in_context): Update call to post_parser.
7862 (null_post_parser): Delete definition.
7863 * parser-defs.h (null_post_parser): Delete declaration.
7864 * rust-lang.c (rust_language_data): Delete la_post_parser
7867 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7869 * ada-lang.c (parse): Rename to ada_language::parser.
7870 (ada_language_data): Delete la_parser initializer.
7871 (ada_language::parser): New member function, implementation from
7873 * c-lang.c (c_language_data): Delete la_parser initializer.
7874 (cplus_language_data): Likewise.
7875 (asm_language_data): Likewise.
7876 (minimal_language_data): Likewise.
7877 * d-lang.c (d_language_data): Likewise.
7878 (d_language::parser): New member function.
7879 * f-lang.c (f_language_data): Delete la_parser initializer.
7880 (f_language::parser): New member function.
7881 * go-lang.c (go_language_data): Delete la_parser initializer.
7882 (go_language::parser): New member function.
7883 * language.c (unk_lang_parser): Delete.
7884 (language_defn::parser): Define new member function.
7885 (unknown_language_data): Delete la_parser initializer.
7886 (unknown_language::parser): New member function.
7887 (auto_language_data): Delete la_parser initializer.
7888 (auto_language::parser): New member function.
7889 * language.h (language_data): Delete la_parser field.
7890 (language_defn::parser): Declare new member function.
7891 * m2-lang.c (m2_language_data): Delete la_parser initializer.
7892 (m2_language::parser): New member function.
7893 * objc-lang.c (objc_language_data): Delete la_parser initializer.
7894 * opencl-lang.c (opencl_language_data): Likewise.
7895 * p-lang.c (pascal_language_data): Likewise.
7896 (pascal_language::parser): New member function.
7897 * parse.c (parse_exp_in_context): Update call to parser.
7898 * rust-lang.c (rust_language_data): Delete la_parser initializer.
7899 (rust_language::parser): New member function.
7901 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7903 * top.c (print_gdb_configuration): Print --with-python-libdir
7904 configuration value.
7906 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7908 * NEWS: Mention change to the alias command.
7910 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7912 * cli/cli-cmds.c (lookup_cmd_for_default_args)
7913 (alias_command_completer)
7914 (make_alias_options_def_group): New functions.
7915 (alias_opts, alias_option_defs): New struct and array.
7916 (alias_usage_error): Update usage.
7917 (alias_command): Handles optional DEFAULT-ARGS... arguments.
7918 Use option framework.
7919 (_initialize_cli_cmds): Update alias command help.
7920 Update aliases command help.
7922 Add NULL for new default_args lookup_cmd argument.
7923 (valid_command_p): Rename to validate_aliased_command.
7924 Add NULL for new default_args lookup_cmd argument. Verify that the
7925 aliased_command has no default args.
7926 * cli/cli-decode.c (help_cmd): Show aliases definitions.
7927 (lookup_cmd_1, lookup_cmd): New argument default_args.
7929 Add NULL for new default_args lookup_cmd argument.
7930 (print_help_for_command): Show default args under the layout
7931 alias some_alias = some_aliased_cmd some_alias_default_arg.
7932 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
7933 xfree default_args in destructor.
7934 * cli/cli-script.c (process_next_line, do_define_command):
7935 Add NULL for new default_args lookup_cmd argument.
7936 * command.h: Declare new default_args argument in lookup_cmd
7938 * completer.c (complete_line_internal_1):
7939 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7940 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
7941 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
7943 * infcmd.c (_initialize_infcmd): Likewise.
7944 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
7945 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
7946 * python/py-param.c (add_setshow_generic): Likewise.
7947 * remote.c (_initialize_remote): Likewise.
7948 * top.c (execute_command): Prepend default_args if command has some.
7950 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7951 * tracepoint.c (validate_actionline, encode_actions_1):
7952 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7954 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7956 * jit.c (jit_read_descriptor): Use bool as the return type.
7957 (jit_breakpoint_re_set_internal): Use bool as the return type.
7958 Invert the return value logic; return true if the jit breakpoint
7959 has been successfully initialized.
7960 (jit_inferior_init): Update the call to
7961 jit_breakpoint_re_set_internal.
7963 2020-06-22 Pedro Alves <palves@redhat.com>
7966 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
7967 Use the current inferior instead. Don't return
7968 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
7970 * sol-thread.c (sol_thread_target::wait): Don't reference
7972 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
7973 (sol_update_thread_list_callback): Use the current inferior's pid
7974 instead of inferior_ptid.
7976 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7978 * procfs.c: Cleanup many comments.
7980 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
7981 (AFTER_WATCHFLAG): Replace by value.
7983 (MAIN_PROC_NAME_FORMAT): Inline ...
7984 (create_procinfo): ... here.
7986 (procfs_debug_inferior): Remove SYS_exec handling.
7987 (syscall_is_exec): Likewise.
7988 (procfs_set_exec_trap): Likewise.
7990 (syscall_is_lwp_exit): Inline in callers.
7991 (syscall_is_exit): Likewise.
7992 (syscall_is_exec): Likewise.
7993 (syscall_is_lwp_create): Likewise.
7995 (invalidate_cache): Remove #if 0 code.
7997 (make_signal_thread_runnable): Remove.
7998 (procfs_target::resume): Remove #if 0 code.
8000 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8003 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
8005 (procfs_target::create_inferior): ... here.
8007 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8009 * exec.c (validate_exec_file): Ensure the build-id is up to
8010 date by calling reopen_exec_file (that checks file timestamp
8011 to decide to re-read the file).
8013 2020-06-18 Pedro Alves <palves@redhat.com>
8016 * gdbthread.h (delete_thread, delete_thread_silent)
8017 (find_thread_ptid): Update comments.
8018 * thread.c (current_thread_): New global.
8019 (is_current_thread): Move higher, and reimplement.
8020 (inferior_thread): Reimplement.
8021 (set_thread_exited): Use bool. Add assertions.
8022 (add_thread_silent): Simplify thread-reuse handling by always
8023 calling delete_thread.
8024 (delete_thread): Remove intro comment.
8025 (find_thread_ptid): Skip exited threads.
8026 (switch_to_thread_no_regs): Write to current_thread_.
8027 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
8028 INFERIOR_PTID. Clear current_thread_.
8030 2020-06-18 Pedro Alves <palves@redhat.com>
8032 * aix-thread.c (pd_update): Use switch_to_thread.
8034 2020-06-18 Pedro Alves <palves@redhat.com>
8036 * ravenscar-thread.c (ravenscar_thread_target): Update.
8037 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
8038 (ravenscar_thread_target::add_active_thread): ... this. Don't
8039 set m_base_ptid here. Update to avoid referencing inferior_ptid.
8040 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
8042 2020-06-18 Pedro Alves <palves@redhat.com>
8044 * nat/windows-nat.c (current_windows_thread): Remove.
8045 * nat/windows-nat.h (current_windows_thread): Remove.
8046 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
8048 (display_selectors): Adjust to fetch the current
8049 windows_thread_info based on inferior_ptid.
8050 (fake_create_process): No longer write to current_windows_thread.
8051 (windows_nat_target::get_windows_debug_event):
8052 Don't set inferior_ptid or current_windows_thread.
8053 (windows_nat_target::wait): Adjust to not rely on
8054 current_windows_thread.
8055 (do_initial_windows_stuff): Now a method of windows_nat_target.
8056 Switch to the last_ptid thread.
8057 (windows_nat_target::attach): Adjust.
8058 (windows_nat_target::detach): Use switch_to_no_thread instead of
8059 writing to inferior_ptid directly.
8060 (windows_nat_target::create_inferior): Adjust.
8062 2020-06-18 Pedro Alves <palves@redhat.com>
8064 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
8066 2020-06-18 Pedro Alves <palves@redhat.com>
8068 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
8069 after creating it, instead of writing to inferior_ptid. Don't
8070 write to inferior_ptid.
8072 2020-06-18 Pedro Alves <palves@redhat.com>
8074 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
8076 2020-06-18 Pedro Alves <palves@redhat.com>
8078 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
8079 it, instead of writing to inferior_ptid.
8081 2020-06-18 Pedro Alves <palves@redhat.com>
8083 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
8086 2020-06-18 Pedro Alves <palves@redhat.com>
8088 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
8089 instead of writing to inferior_ptid directly.
8091 2020-06-18 Pedro Alves <palves@redhat.com>
8093 * corelow.c (core_target::close): Use switch_to_no_thread instead
8094 of writing to inferior_ptid directly.
8095 (add_to_thread_list, core_target_open): Use switch_to_thread
8096 instead of writing to inferior_ptid directly.
8098 2020-06-18 Pedro Alves <palves@redhat.com>
8100 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
8102 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
8104 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
8105 inferior_ptid directly.
8106 (darwin_nat_target::init_thread_list): Switch to thread, instead
8107 of writing to inferior_ptid.
8108 (darwin_nat_target::attach): Don't write to inferior_ptid.
8109 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
8111 2020-06-18 Pedro Alves <palves@redhat.com>
8113 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
8115 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
8116 Instead use switch_to_thread.
8117 (gnu_nat_target::detach): Use switch_to_no_thread
8118 instead of writing to inferior_ptid directly. Used passed-in
8119 inferior instead of looking up the inferior by pid.
8121 2020-06-18 Pedro Alves <palves@redhat.com>
8123 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
8126 2020-06-18 Pedro Alves <palves@redhat.com>
8128 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
8130 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
8132 (nto_procfs_target::detach): Avoid referencing
8133 inferior_ptid. Use switch_to_no_thread instead of writing to
8134 inferior_ptid directly.
8135 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
8136 instead of writing to inferior_ptid directly.
8137 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
8140 2020-06-18 Pedro Alves <palves@redhat.com>
8142 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
8143 after creating it, instead of writing to inferior_ptid.
8144 (gdbsim_target_open): Use switch_to_no_thread instead of writing
8145 to inferior_ptid directly.
8146 (gdbsim_target::wait): Don't write to inferior_ptid.
8148 2020-06-18 Pedro Alves <palves@redhat.com>
8150 * remote.c (remote_target::remote_notice_new_inferior): Use
8151 switch_to_thread instead of writing to inferior_ptid directly.
8152 (remote_target::add_current_inferior_and_thread): Use
8153 switch_to_no_thread instead of writing to inferior_ptid directly.
8154 (extended_remote_target::attach): Use switch_to_inferior_no_thread
8155 and switch_to_thread instead of using set_current_inferior or
8156 writing to inferior_ptid directly.
8158 2020-06-18 Pedro Alves <palves@redhat.com>
8160 * tracectf.c (ctf_target_open): Switch to added thread instead of
8161 writing to inferior_ptid directly.
8162 (ctf_target::close): Use switch_to_no_thread instead of writing to
8163 inferior_ptid directly.
8165 2020-06-18 Pedro Alves <palves@redhat.com>
8167 * tracefile-tfile.c (tfile_target_open): Don't write to
8168 inferior_ptid directly, instead switch to added thread.
8169 (tfile_target::close): Use switch_to_no_thread instead of writing
8170 to inferior_ptid directly.
8172 2020-06-18 Pedro Alves <palves@redhat.com>
8174 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
8175 (procfs_target::detach): Use switch_to_no_thread
8176 instead of writing to inferior_ptid directly.
8177 (do_attach): Change return type to void. Switch to the added
8179 (procfs_target::create_inferior): Switch to the added thread.
8180 (procfs_do_thread_registers): Don't write to inferior_ptid.
8182 2020-06-18 Pedro Alves <palves@redhat.com>
8184 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
8185 of writing to inferior_ptid.
8186 (scoped_restore_exited_inferior): Delete.
8187 (handle_vfork_child_exec_or_exit): Simplify using
8188 scoped_restore_current_pspace_and_thread. Use switch_to_thread
8189 instead of writing to inferior_ptid.
8190 (THREAD_STOPPED_BY): Delete.
8191 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
8192 (thread_stopped_by_hw_breakpoint): Delete.
8193 (save_waitstatus): Use
8194 scoped_restore_current_thread+switch_to_thread, and call
8195 target_stopped_by_watchpoint instead of
8196 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
8197 instead of thread_stopped_by_sw_breakpoint, and
8198 target_stopped_by_hw_breakpoint instead of
8199 thread_stopped_by_hw_breakpoint.
8200 (handle_inferior_event)
8201 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
8202 inferior_ptid directly, nor
8203 set_current_inferior/set_current_program_space. Use
8204 switch_to_thread / switch_to_inferior_no_thread instead.
8206 2020-06-18 Pedro Alves <palves@redhat.com>
8208 * target.c (generic_mourn_inferior): Use switch_to_no_thread
8209 instead of writing to inferior_ptid.
8211 2020-06-18 Pedro Alves <palves@redhat.com>
8213 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
8215 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
8216 to the added thread.
8217 (inf_ptrace_target::detach_success): Use switch_to_no_thread
8218 instead of writing to inferior_ptid.
8220 2020-06-18 Pedro Alves <palves@redhat.com>
8222 * gdbarch-selftests.c: Include "progspace-and-thread.h".
8223 (register_to_value_test): Mock a program_space too. Heap-allocate
8224 the address space. Don't write to inferior_ptid. Use
8225 switch_to_thread instead.
8227 2020-06-18 Pedro Alves <palves@redhat.com>
8229 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
8231 (find_signalled_thread()): New, factored out from
8232 linux_make_corefile_notes and adjusted to handle exited threads.
8233 (linux_make_corefile_notes): Adjust to use the new
8234 find_signalled_thread.
8236 2020-06-18 Pedro Alves <palves@redhat.com>
8238 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
8239 of saving/restoring inferior_ptid.
8241 2020-06-17 Tom Tromey <tom@tromey.com>
8243 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
8244 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
8246 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
8248 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
8250 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
8253 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
8255 * regformats/reg-arm.dat: Remove.
8256 * regformats/reg-bfin.dat: Remove.
8257 * regformats/reg-cris.dat: Remove.
8258 * regformats/reg-crisv32.dat: Remove.
8259 * regformats/reg-m32r.dat: Remove.
8260 * regformats/reg-tilegx.dat: Remove.
8261 * regformats/reg-tilegx32.dat: Remove.
8263 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
8265 * features/Makefile (WHICH): Remove arm files.
8266 * regformats/arm/arm-with-iwmmxt.dat: Remove.
8267 * regformats/arm/arm-with-neon.dat: Remove.
8268 * regformats/arm/arm-with-vfpv2.dat: Remove.
8269 * regformats/arm/arm-with-vfpv3.dat: Remove.
8271 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
8273 * features/Makefile (XMLTOC): Remove rx.xml.
8275 2020-06-17 Pedro Alves <palves@redhat.com>
8277 * gdbthread.h (thread_control_state) <trap_expected> Update
8280 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8282 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
8283 ada_language::lookup_symbol_nonlocal.
8284 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
8285 (ada_language::lookup_symbol_nonlocal): New member function,
8286 implementation from ada_lookup_symbol_nonlocal.
8287 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
8289 (cplus_language_data): Delete la_lookup_symbol_nonlocal
8291 (cplus_language::lookup_symbol_nonlocal): New member function.
8292 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
8293 (minimal_language_data) Likewise.
8294 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
8295 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
8297 (d_language::lookup_symbol_nonlocal): New member function.
8298 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
8300 (f_language::lookup_symbol_nonlocal): New member function.
8301 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
8303 * language.c (unknown_language_data): Likewise.
8304 (auto_language_data): Likewise.
8305 * language.h (language_data): Delete la_lookup_symbol_nonlocal
8307 (language_defn::lookup_symbol_nonlocal): New member function.
8308 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
8310 * objc-lang.c (objc_language_data): Likewise.
8311 * opencl-lang.c (opencl_language_data): Likewise.
8312 * p-lang.c (pascal_language_data): Likewise.
8313 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
8314 rust_language::lookup_symbol_nonlocal.
8315 (rust_language_data): Delete la_lookup_symbol_nonlocal
8317 (rust_language::lookup_symbol_nonlocal): New member function,
8318 implementation from rust_lookup_symbol_nonlocal.
8319 * symtab.c (lookup_symbol_aux): Update call to
8320 lookup_symbol_nonlocal.
8321 (basic_lookup_symbol_nonlocal): Rename to...
8322 (language_defn::lookup_symbol_nonlocal): ...this, and update
8323 header comment. Remove language_defn parameter, and replace with
8325 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
8327 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8329 * ada-lang.c (ada_language_data): Delete la_value_print_inner
8331 (ada_language::value_print_inner): New member function.
8332 * c-lang.c (c_language_data): Delete la_value_print_inner
8334 (cplus_language_data): Likewise.
8335 (asm_language_data): Likewise.
8336 (minimal_language_data): Likewise.
8337 * d-lang.c (d_language_data): Likewise.
8338 (d_language::value_print_inner): New member function.
8339 * f-lang.c (f_language_data): Delete la_value_print_inner
8341 (f_language::value_print_inner): New member function.
8342 * f-lang.h (f_value_print_innner): Rename to...
8343 (f_value_print_inner): ...this (note spelling of 'inner').
8344 * f-valprint.c (f_value_print_innner): Rename to...
8345 (f_value_print_inner): ...this (note spelling of 'inner').
8346 * go-lang.c (go_language_data): Delete la_value_print_inner
8348 (go_language::value_print_inner): New member function.
8349 * language.c (language_defn::value_print_inner): Define new member
8351 (unk_lang_value_print_inner): Delete.
8352 (unknown_language_data): Delete la_value_print_inner initializer.
8353 (unknown_language::value_print_inner): New member function.
8354 (auto_language_data): Delete la_value_print_inner initializer.
8355 (auto_language::value_print_inner): New member function.
8356 * language.h (language_data): Delete la_value_print_inner field.
8357 (language_defn::value_print_inner): Delcare new member function.
8358 * m2-lang.c (m2_language_data): Delete la_value_print_inner
8360 (m2_language::value_print_inner): New member function.
8361 * objc-lang.c (objc_language_data): Delete la_value_print_inner
8363 * opencl-lang.c (opencl_language_data): Likewise.
8364 * p-lang.c (pascal_language_data): Likewise.
8365 (pascal_language::value_print_inner): New member function.
8366 * rust-lang.c (rust_language_data): Delete la_value_print_inner
8368 (rust_language::value_print_inner): New member function.
8369 * valprint.c (do_val_print): Update call to value_print_inner.
8371 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8373 * ada-lang.c (ada_language_data): Delete la_value_print
8375 (ada_language::value_print): New member function.
8376 * c-lang.c (c_language_data): Delete la_value_print initializer.
8377 (cplus_language_data): Likewise.
8378 (asm_language_data): Likewise.
8379 (minimal_language_data): Likewise.
8380 * d-lang.c (d_language_data): Likewise.
8381 * f-lang.c (f_language_data): Likewise.
8382 * go-lang.c (go_language_data): Likewise.
8383 * language.c (unk_lang_value_print): Delete.
8384 (language_defn::value_print): Define new member function.
8385 (unknown_language_data): Delete la_value_print initializer.
8386 (unknown_language::value_print): New member function.
8387 (auto_language_data): Delete la_value_print initializer.
8388 (auto_language::value_print): New member function.
8389 * language.h (language_data): Delete la_value_print field.
8390 (language_defn::value_print): Declare new member function.
8391 (LA_VALUE_PRINT): Update call to value_print.
8392 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
8393 * objc-lang.c (objc_language_data): Likewise.
8394 * opencl-lang.c (opencl_language_data): Likewise.
8395 * p-lang.c (pascal_language_data): Likewise.
8396 (pascal_language::value_print): New member function.
8397 * rust-lang.c (rust_language_data): Delete la_value_print
8400 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8402 * ada-lang.c (ada_watch_location_expression): Rename to
8403 ada_language::watch_location_expression.
8404 (ada_language_data): Delete la_watch_location_expression
8406 (ada_language::watch_location_expression): New member function,
8407 implementation from ada_watch_location_expression.
8408 * breakpoint.c (watch_command_1): Update call to
8409 watch_location_expression.
8410 * c-lang.c (c_watch_location_expression): Rename to
8411 language_defn::watch_location_expression.
8412 (c_language_data): Delete la_watch_location_expression
8414 (cplus_language_data): Likewise.
8415 (asm_language_data): Likewise.
8416 (minimal_language_data): Likewise.
8417 * c-lang.h (c_watch_location_expression): Delete declaration.
8418 * d-lang.c (d_language_data): Delete la_watch_location_expression
8420 * f-lang.c (f_language_data): Likewise.
8421 * go-lang.c (go_language_data): Likewise.
8422 * language.c (language_defn::watch_location_expression): Member
8423 function implementation from c_watch_location_expression.
8424 (unknown_language_data): Delete la_watch_location_expression
8426 (auto_language_data): Likewise.
8427 * language.h (language_data): Delete la_watch_location_expression
8429 (language_defn::watch_location_expression): Declare new member
8431 * m2-lang.c (m2_language_data): Delete
8432 la_watch_location_expression initializer.
8433 * objc-lang.c (objc_language_data): Likewise.
8434 * opencl-lang.c (opencl_language_data): Likewise.
8435 * p-lang.c (pascal_language_data): Likewise.
8436 * rust-lang.c (rust_watch_location_expression): Rename to
8437 rust_language::watch_location_expression.
8438 (rust_language_data): Delete la_watch_location_expression
8440 (rust_language::watch_location_expression): New member function,
8441 implementation from rust_watch_location_expression.
8443 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8445 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
8446 ada_language::collect_symbol_completion_matches.
8447 (ada_language_data): Delete la_collect_symbol_completion_matches
8449 (ada_language::collect_symbol_completion_matches): New member
8450 function, implementation from
8451 ada_collect_symbol_completion_matches.
8452 * c-lang.c (c_language_data): Delete
8453 la_collect_symbol_completion_matches initializer.
8454 (cplus_language_data): Likewise.
8455 (asm_language_data): Likewise.
8456 (minimal_language_data): Likewise.
8457 * d-lang.c (d_language_data): Likewise.
8458 * f-lang.c (f_collect_symbol_completion_matches): Rename to
8459 f_language::collect_symbol_completion_matches.
8460 (f_language_data): Delete la_collect_symbol_completion_matches
8462 (f_language::collect_symbol_completion_matches) New member
8463 function, implementation from f_collect_symbol_completion_matches.
8464 * go-lang.c (go_language_data): Delete
8465 la_collect_symbol_completion_matches initializer.
8466 * language.c (unknown_language_data): Likewise.
8467 (auto_language_data): Likewise.
8468 * language.h (language_data): Delete
8469 la_collect_symbol_completion_matches field.
8470 (language_defn::collect_symbol_completion_matches): New member
8472 * m2-lang.c (m2_language_data): Delete
8473 la_collect_symbol_completion_matches initializer.
8474 * objc-lang.c (objc_language_data): Likewise.
8475 * opencl-lang.c (opencl_language_data): Likewise.
8476 * p-lang.c (pascal_language_data): Likewise.
8477 * rust-lang.c (rust_language_data): Likewise.
8478 * symtab.c (default_collect_symbol_completion_matches): Delete.
8479 (collect_symbol_completion_matches): Update call to
8480 collect_symbol_completion_matches.
8481 (collect_symbol_completion_matches_type): Likewise.
8482 * symtab.h (default_collect_symbol_completion_matches): Delete
8485 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8487 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
8488 (ada_language_data): Delete la_word_break_characters initializer.
8489 (ada_language::word_break_characters): New member function.
8490 * c-lang.c (c_language_data): Delete la_word_break_characters
8492 (cplus_language_data): Likewise.
8493 (asm_language_data): Likewise.
8494 (minimal_language_data): Likewise.
8495 * completer.c: Update global comment.
8496 (advance_to_expression_complete_word_point): Update call to
8497 word_break_characters.
8498 (complete_files_symbols): Likewise.
8499 (complete_line_internal_1): Likewise.
8500 (default_completer_handle_brkchars): Likewise.
8501 (skip_quoted_chars): Likewise.
8502 * d-lang.c (d_language_data): Delete la_word_break_characters
8504 * f-lang.c (f_word_break_characters): Delete.
8505 (f_language_data): Delete la_word_break_characters initializer.
8506 (f_language::word_break_characters): New member function.
8507 * go-lang.c (go_language_data): Delete la_word_break_characters
8509 * language.c (unknown_language_data): Likewise.
8510 (auto_language_data): Likewise.
8511 * language.h (default_word_break_characters): Move declaration to
8512 earlier in the file.
8513 (language_data): Delete la_word_break_characters field.
8514 (language_defn::word_break_characters): New member function.
8515 * m2-lang.c (m2_language_data): Delete la_word_break_characters
8517 * objc-lang.c (objc_language_data): Likewise.
8518 * opencl-lang.c (opencl_language_data): Likewise.
8519 * p-lang.c (pascal_language_data): Likewise.
8520 * rust-lang.c (rust_language_data): Likewise.
8522 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8524 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
8525 (ada_language_data): Delete la_get_symbol_name_matcher
8527 (language_defn::get_symbol_name_matcher_inner): New member
8529 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
8531 (cplus_language_data): Likewise.
8532 (cplus_language::get_symbol_name_matcher_inner): New member
8534 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
8535 (minimal_language_data): Likewise.
8536 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
8537 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
8539 * dictionary.c (iter_match_first_hashed): Update call to
8540 get_symbol_name_matcher.
8541 (iter_match_next_hashed): Likewise.
8542 (iter_match_next_linear): Likewise.
8543 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
8544 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
8546 (f_language::get_symbol_name_matcher_inner): New member function.
8547 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
8549 * language.c (default_symbol_name_matcher): Update header comment,
8551 (language_defn::get_symbol_name_matcher): New definition.
8552 (language_defn::get_symbol_name_matcher_inner): Likewise.
8553 (get_symbol_name_matcher): Delete.
8554 (unknown_language_data): Delete la_get_symbol_name_matcher
8556 (auto_language_data): Likewise.
8557 * language.h (language_data): Delete la_get_symbol_name_matcher
8559 (language_defn::get_symbol_name_matcher): New member function.
8560 (language_defn::get_symbol_name_matcher_inner): Likewise.
8561 (default_symbol_name_matcher): Delete declaration.
8562 * linespec.c (find_methods): Update call to
8563 get_symbol_name_matcher.
8564 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
8566 * minsyms.c (lookup_minimal_symbol): Update call to
8567 get_symbol_name_matcher.
8568 (iterate_over_minimal_symbols): Likewise.
8569 * objc-lang.c (objc_language_data): Delete
8570 la_get_symbol_name_matcher initializer.
8571 * opencl-lang.c (opencl_language_data): Likewise.
8572 * p-lang.c (pascal_language_data): Likewise.
8573 * psymtab.c (psymbol_name_matches): Update call to
8574 get_symbol_name_matcher.
8575 * rust-lang.c (rust_language_data): Delete
8576 la_get_symbol_name_matcher initializer.
8577 * symtab.c (symbol_matches_search_name): Update call to
8578 get_symbol_name_matcher.
8579 (compare_symbol_name): Likewise.
8581 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8583 * ada-lang.c (ada_language_data): Delete la_compute_program
8585 * c-lang.c (c_language_data): Likewise.
8586 (c_language::compute_program): New member function.
8587 (cplus_language_data): Delete la_compute_program initializer.
8588 (cplus_language::compute_program): New member function.
8589 (asm_language_data): Delete la_compute_program initializer.
8590 (minimal_language_data): Likewise.
8591 * c-lang.h (c_compute_program): Update comment.
8592 (cplus_compute_program): Likewise.
8593 * compile/compile-c-support.c (c_compute_program): Likewise.
8594 (cplus_compute_program): Likewise.
8595 * compile/compile.c (compile_to_object): Update call to
8597 * d-lang.c (d_language_data): Delete la_compute_program
8599 * f-lang.c (f_language_data): Likewise.
8600 * go-lang.c (go_language_data): Likewise.
8601 * language.c (unknown_language_data): Likewise.
8602 (auto_language_data): Likewise.
8603 * language.h (language_data): Delete la_compute_program field.
8604 (language_defn::compute_program): New member function.
8605 * m2-lang.c (m2_language_data): Delete la_compute_program
8607 * objc-lang.c (objc_language_data): Likewise.
8608 * opencl-lang.c (opencl_language_data): Likewise.
8609 * p-lang.c (pascal_language_data): Likewise.
8610 * rust-lang.c (rust_language_data): Likewise.
8612 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8614 * ada-lang.c (ada_language_data) Delete
8615 la_class_name_from_physname initializer.
8616 * c-lang.c (c_language_data): Likewise.
8617 (cplus_language_data): Likewise.
8618 (cplus_language::class_name_from_physname): New member function.
8619 (asm_language_data): Delete la_class_name_from_physname
8621 (minimal_language_data): Likewise.
8622 * d-lang.c (d_language_data): Likewise.
8623 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
8624 method on language_defn class.
8625 (guess_full_die_structure_name): Likewise.
8626 * f-lang.c (f_language_data): Delete la_class_name_from_physname
8628 * go-lang.c (go_language_data): Likewise.
8629 * language.c (language_class_name_from_physname): Delete.
8630 (unk_lang_class_name): Delete.
8631 (unknown_language_data): Delete la_class_name_from_physname
8633 (auto_language_data): Likewise.
8634 * language.h (language_data): Delete la_class_name_from_physname
8636 (language_defn::class_name_from_physname): New function.
8637 (language_class_name_from_physname): Delete declaration.
8638 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
8640 * objc-lang.c (objc_language_data): Likewise.
8641 * opencl-lang.c (opencl_language_data): Likewise.
8642 * p-lang.c (pascal_language_data): Likewise.
8643 * rust-lang.c (rust_language_data): Likewise.
8645 2020-06-16 Tom Tromey <tom@tromey.com>
8647 * tui/tui-data.h (STATUS_NAME): New macro.
8648 * tui/tui-layout.c (tui_remove_some_windows)
8649 (initialize_known_windows, tui_register_window)
8650 (tui_layout_split::remove_windows, initialize_layouts)
8651 (tui_new_layout_command): Don't use hard-coded window names.
8653 2020-06-16 Tom Tromey <tom@tromey.com>
8656 * tui/tui.c (tui_ensure_readline_initialized): Rename from
8657 tui_initialize_readline. Only run once. Call rl_initialize.
8658 * tui/tui.h (tui_ensure_readline_initialized): Rename from
8659 tui_initialize_readline.
8660 * tui/tui-io.c (tui_setup_io): Call
8661 tui_ensure_readline_initialized.
8662 * tui/tui-interp.c (tui_interp::init): Update.
8664 2020-06-16 Tom Tromey <tom@tromey.com>
8666 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
8667 Also preserve the status window.
8669 2020-06-16 Tom Tromey <tom@tromey.com>
8671 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
8672 where m_window==nullptr.
8674 2020-06-15 Tom Tromey <tromey@adacore.com>
8676 * windows-nat.c (windows_nat::handle_output_debug_string):
8678 (windows_nat::handle_ms_vc_exception): Update.
8679 * target.h (target_read_string): Change API.
8680 * target.c (target_read_string): Change API.
8681 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
8683 * solib-frv.c (frv_current_sos): Update.
8684 * solib-dsbt.c (dsbt_current_sos): Update.
8685 * solib-darwin.c (darwin_current_sos): Update.
8686 * linux-thread-db.c (inferior_has_bug): Update.
8687 * expprint.c (print_subexp_standard): Update.
8688 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
8689 (ada_exception_message_1): Update.
8691 2020-06-15 Tom Tromey <tromey@adacore.com>
8693 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
8695 2020-06-15 Tom Tromey <tromey@adacore.com>
8697 * valprint.c (read_string): Update comment.
8698 * target.c (MIN): Remove.
8699 (target_read_string): Rewrite.
8701 2020-06-15 Tom Tromey <tromey@adacore.com>
8703 * corefile.c (read_memory_string): Remove.
8704 * ada-valprint.c (ada_value_print_ptr): Update.
8705 * ada-lang.h (ada_tag_name): Change return type.
8706 * ada-lang.c (type_from_tag): Update.
8707 (ada_tag_name_from_tsd): Change return type. Use
8709 (ada_tag_name): Likewise.
8710 * gdbcore.h (read_memory_string): Don't declare.
8712 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
8714 * symtab.c (rbreak_command): Ignore Windows drive colon.
8716 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
8718 * NEWS: Mention removed GDBserver host support.
8720 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
8722 * features/riscv/rebuild-csr-xml.sh: Updated.
8724 2020-06-11 Tom Tromey <tom@tromey.com>
8727 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
8729 2020-06-09 Jonny Grant <jg@jguk.org>
8730 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
8732 * main.c (captured_main_1): Don't print new line after help.
8733 (print_gdb_help): add mailing list and IRC channel information
8734 to --help. Add new lines between items in the footer. Remove
8735 quotes around bug url.
8737 2020-06-11 Keith Seitz <keiths@redhat.com>
8740 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
8741 Resolve typedefs for type length calculations.
8743 2020-06-10 Tom de Vries <tdevries@suse.de>
8746 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
8747 (write_psymbols): Enable .gdb_index for ada.
8748 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
8751 2020-06-10 Tom de Vries <tdevries@suse.de>
8753 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
8754 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
8755 namei" instead of "const char *name" argument.
8756 (dw2_map_matching_symbols): Use "offset_type namei" variant of
8757 dw2_symtab_iter_init.
8759 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8761 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
8762 to use type::field and field::type instead.
8764 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8766 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
8767 to use field::type instead.
8769 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8771 * gdbtypes.h (struct field) <type, set_type>: New methods.
8772 Rename `type` field to...
8773 <m_type>: ... this. Change references throughout to use type or
8775 (FIELD_TYPE): Use field::type. Change call sites that modify
8776 the field's type to use field::set_type instead.
8778 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8780 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
8781 to use type::index_type instead.
8783 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8785 * gdbtypes.h (struct type) <index_type, set_index_type>: New
8787 (TYPE_INDEX_TYPE): Use type::index_type.
8788 * gdbtypes.c (create_array_type_with_stride): Likewise.
8790 2020-06-07 Tom Tromey <tom@tromey.com>
8792 * valprint.c (generic_val_print_float): Remove "embedded_offset"
8794 (generic_value_print): Update.
8796 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8798 Revert commit 982a38f60b0.
8799 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
8801 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8803 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
8804 avoid use after free.
8806 2020-06-05 Tom de Vries <tdevries@suse.de>
8810 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
8812 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
8814 (dwarf2_read_debug_names): Likewise.
8815 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
8816 object when re-using a per_bfd object with an index.
8818 2020-06-03 Tom de Vries <tdevries@suse.de>
8821 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
8823 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
8826 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8828 * ada-lang.c (ada_language_data): Delete skip_trampoline
8830 * c-lang.c (c_language_data): Likewise.
8831 (cplus_language_data): Likewise.
8832 (cplus_language::skip_trampoline): New member function.
8833 (asm_language_data): Delete skip_trampoline initializer.
8834 (minimal_language_data): Likewise.
8835 * d-lang.c (d_language_data): Likewise.
8836 * f-lang.c (f_language_data): Likewise.
8837 * go-lang.c (go_language_data): Likewise.
8838 * language.c (unk_lang_trampoline): Delete function.
8839 (skip_language_trampoline): Update.
8840 (unknown_language_data): Delete skip_trampoline initializer.
8841 (auto_language_data): Likewise.
8842 * language.h (language_data): Delete skip_trampoline field.
8843 (language_defn::skip_trampoline): New function.
8844 * m2-lang.c (m2_language_data): Delete skip_trampoline
8846 * objc-lang.c (objc_skip_trampoline): Delete function, move
8847 implementation to objc_language::skip_trampoline.
8848 (objc_language_data): Delete skip_trampoline initializer.
8849 (objc_language::skip_trampoline): New member function with
8850 implementation from objc_skip_trampoline.
8851 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
8853 * p-lang.c (pascal_language_data): Likewise.
8854 * rust-lang.c (rust_language_data): Likewise.
8856 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8858 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
8859 (ada_language::demangle): New member function.
8860 * c-lang.c (c_language_data): Delete la_demangle initializer.
8861 (cplus_language_data): Delete la_demangle initializer.
8862 (cplus_language::demangle): New member function.
8863 (asm_language_data): Delete la_demangle initializer.
8864 (minimal_language_data): Delete la_demangle initializer.
8865 * d-lang.c (d_language_data): Delete la_demangle initializer.
8866 (d_language::demangle): New member function.
8867 * f-lang.c (f_language_data): Delete la_demangle initializer.
8868 (f_language::demangle): New member function.
8869 * go-lang.c (go_language_data): Delete la_demangle initializer.
8870 (go_language::demangle): New member function.
8871 * language.c (language_demangle): Update.
8872 (unk_lang_demangle): Delete.
8873 (unknown_language_data): Delete la_demangle initializer.
8874 (unknown_language::demangle): New member function.
8875 (auto_language_data): Delete la_demangle initializer.
8876 (auto_language::demangle): New member function.
8877 * language.h (language_data): Delete la_demangle field.
8878 (language_defn::demangle): New function.
8879 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
8880 * objc-lang.c (objc_language_data): Delete la_demangle
8882 (objc_language::demangle): New member function.
8883 * opencl-lang.c (opencl_language_data): Delete la_demangle
8885 * p-lang.c (pascal_language_data): Likewise.
8886 * rust-lang.c (rust_language_data): Likewise.
8887 (rust_language::demangle): New member function.
8889 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8891 * ada-lang.c (ada_language_data): Delete la_print_type
8893 (ada_language::print_type): New member function.
8894 * c-lang.c (c_language_data): Delete la_print_type initializer.
8895 (c_language::print_type): New member function.
8896 (cplus_language_data): Delete la_print_type initializer.
8897 (cplus_language::print_type): New member function.
8898 (asm_language_data): Delete la_print_type initializer.
8899 (asm_language::print_type): New member function.
8900 (minimal_language_data): Delete la_print_type initializer.
8901 (minimal_language::print_type): New member function.
8902 * d-lang.c (d_language_data): Delete la_print_type initializer.
8903 (d_language::print_type): New member function.
8904 * f-lang.c (f_language_data): Delete la_print_type initializer.
8905 (f_language::print_type): New member function.
8906 * go-lang.c (go_language_data): Delete la_print_type initializer.
8907 (go_language::print_type): New member function.
8908 * language.c (unk_lang_print_type): Delete.
8909 (unknown_language_data): Delete la_print_type initializer.
8910 (unknown_language::print_type): New member function.
8911 (auto_language_data): Delete la_print_type initializer.
8912 (auto_language::print_type): New member function.
8913 * language.h (language_data): Delete la_print_type field.
8914 (language_defn::print_type): New function.
8915 (LA_PRINT_TYPE): Update.
8916 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
8917 (m2_language::print_type): New member function.
8918 * objc-lang.c (objc_language_data): Delete la_print_type
8920 (objc_language::print_type): New member function.
8921 * opencl-lang.c (opencl_print_type): Delete, implementation moved
8922 to opencl_language::print_type.
8923 (opencl_language_data): Delete la_print_type initializer.
8924 (opencl_language::print_type): New member function, implementation
8925 from opencl_print_type.
8926 * p-lang.c (pascal_language_data): Delete la_print_type
8928 (pascal_language::print_type): New member function.
8929 * rust-lang.c (rust_print_type): Delete, implementation moved to
8930 rust_language::print_type.
8931 (rust_language_data): Delete la_print_type initializer.
8932 (rust_language::print_type): New member function, implementation
8933 from rust_print_type.
8935 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8937 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
8938 implementation moves to...
8939 (ada_language::sniff_from_mangled_name): ...here. Update return
8941 (ada_language_data): Delete la_sniff_from_mangled_name
8943 * c-lang.c (c_language_data): Likewise.
8944 (cplus_language_data): Likewise.
8945 (cplus_language::sniff_from_mangled_name): New member function,
8946 implementation taken from gdb_sniff_from_mangled_name.
8947 (asm_language_data): Delete la_sniff_from_mangled_name
8949 (minimal_language_data): Likewise.
8950 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
8951 implementation moves to cplus_language::sniff_from_mangled_name.
8952 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
8953 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
8955 (d_language::sniff_from_mangled_name): ...here.
8956 (d_language_data): Delete la_sniff_from_mangled_name initializer.
8957 * f-lang.c (f_language_data): Likewise.
8958 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
8960 (go_language::sniff_from_mangled_name): ...here.
8961 (go_language_data): Delete la_sniff_from_mangled_name initializer.
8962 * language.c (language_sniff_from_mangled_name): Delete.
8963 (unknown_language_data): Delete la_sniff_from_mangled_name
8965 (auto_language_data): Likewise.
8966 * language.h (language_data): Delete la_sniff_from_mangled_name
8968 (language_defn::sniff_from_mangled_name): New function.
8969 (language_sniff_from_mangled_name): Delete declaration.
8970 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
8972 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
8973 implementation moves to...
8974 (objc_language::sniff_from_mangled_name): ...here.
8975 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
8976 * opencl-lang.c (opencl_language_data): Likewise.
8977 * p-lang.c (pascal_language_data): Likewise.
8978 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
8979 implementation moves to...
8980 (rust_language::sniff_from_mangled_name): ...here.
8981 (rust_language_data): Delete la_sniff_from_mangled_name
8983 * symtab.c (symbol_find_demangled_name): Call
8984 sniff_from_mangled_name member function.
8986 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8988 * ada-lang.c (ada_language_data): Delete la_search_name_hash
8990 * c-lang.c (c_language_data): Likewise.
8991 (cplus_language_data): Likewise.
8992 (cplus_language::search_name_hash): New member function.
8993 (asm_language_data): Delete la_search_name_hash initializer.
8994 (minimal_language_data): Likewise.
8995 * d-lang.c (d_language_data): Likewise.
8996 * dictionary.c (default_search_name_hash): Rename to...
8997 (language_defn::search_name_hash): ...this.
8998 * f-lang.c (f_language_data): Likewise.
8999 (f_language::search_name_hash): New member function.
9000 * go-lang.c (go_language_data): Delete la_search_name_hash
9002 * language.c (unknown_language_data): Likewise.
9003 (auto_language_data): Likewise.
9004 * language.h (struct language_data): Delete la_search_name_hash
9006 (language_defn::search_name_hash): Declare new member function.
9007 (default_search_name_hash): Delete declaration.
9008 * m2-lang.c (m2_language_data): Delete la_search_name_hash
9010 * objc-lang.c (objc_language_data): Likewise.
9011 * opencl-lang.c (opencl_language_data): Likewise.
9012 * p-lang.c (pascal_language_data): Likewise.
9013 * rust-lang.c (rust_language_data): Likewise.
9014 * symtab.c (search_name_hash): Update call.
9016 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9018 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
9020 * c-lang.c (class compile_instance): Declare.
9021 (c_language_data): Delete la_get_compile_instance initializer.
9022 (c_language::get_compile_instance): New member function.
9023 (cplus_language_data): Delete la_get_compile_instance initializer.
9024 (cplus_language::get_compile_instance): New member function.
9025 (asm_language_data): Delete la_get_compile_instance initializer.
9026 (minimal_language_data): Likewise.
9027 * c-lang.h (c_get_compile_context): Update comment.
9028 (cplus_get_compile_context): Update comment.
9029 * compile/compile.c (compile_to_object): Update calls, don't rely
9030 on function pointer being NULL.
9031 * d-lang.c (d_language_data): Delete la_get_compile_instance
9033 * f-lang.c (f_language_data): Likewise.
9034 * go-lang.c (go_language_data): Likewise.
9035 * language.c (unknown_language_data): Likewise.
9036 (auto_language_data): Likewise.
9037 * language.h (language_data): Delete la_get_compile_instance field.
9038 (language_defn::get_compile_instance): New member function.
9039 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
9041 * objc-lang.c (objc_language_data): Likewise.
9042 * opencl-lang.c (opencl_language_data): Likewise.
9043 * p-lang.c (pascal_language_data): Likewise.
9044 * rust-lang.c (rust_language_data): Likewise.
9046 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9048 * ada-lang.c (ada_add_all_symbols): Update comment.
9049 (ada_iterate_over_symbols): Delete, move implementation to...
9050 (ada_language::iterate_over_symbols): ...here, a new member
9051 function, rewrite to use range based for loop.
9052 (ada_language_data): Delete la_iterate_over_symbols initializer.
9053 * c-lang.c (c_language_data): Likewise.
9054 (cplus_language_data): Likewise.
9055 (asm_language_data): Likewise.
9056 (minimal_language_data): Likewise.
9057 * d-lang.c (d_language_data): Likewise.
9058 * f-lang.c (f_language_data): Likewise.
9059 * go-lang.c (go_language_data): Likewise.
9060 * language.c (unknown_language_data): Likewise.
9061 (auto_language_data): Likewise.
9062 * language.h (language_data): Delete la_iterate_over_symbols field.
9063 (language_defn::iterate_over_symbols): New member function.
9064 (LA_ITERATE_OVER_SYMBOLS): Update.
9065 * linespec.c (iterate_over_all_matching_symtabs): Update.
9066 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
9068 * objc-lang.c (objc_language_data): Likewise.
9069 * opencl-lang.c (opencl_language_data): Likewise.
9070 * p-lang.c (pascal_language_data): Likewise.
9071 * rust-lang.c (rust_language_data): Likewise.
9073 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9075 * ada-lang.c (ada_language_data): Delete
9076 la_lookup_transparent_type initializer.
9077 * c-lang.c (c_language_data): Likewise.
9078 (cplus_language_data): Likewise.
9079 (cplus_language::lookup_transparent_type): New member function.
9080 (asm_language_data): Delete la_lookup_transparent_type
9082 (minimal_language_data): Likewise.
9083 * d-lang.c (d_language_data): Likewise.
9084 * f-lang.c (f_language_data): Likewise.
9085 * go-lang.c (go_language_data): Likewise.
9086 * language.c (unknown_language_data): Likewise.
9087 (auto_language_data): Likewise.
9088 * language.h (struct language_data): Delete
9089 la_lookup_transparent_type field.
9090 (language_defn::lookup_transparent_type): New member function.
9091 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
9093 * objc-lang.c (objc_language_data): Likewise.
9094 * opencl-lang.c (opencl_language_data): Likewise.
9095 * p-lang.c (pascal_language_data): Likewise.
9096 * rust-lang.c (rust_language_data): Likewise.
9097 * symtab.c (symbol_matches_domain): Update call.
9099 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9101 * ada-lang.c (ada_language_arch_info): Delete function, move
9102 implementation to...
9103 (ada_language::language_arch_info): ...here, a new member
9105 (ada_language_data): Delete la_language_arch_info.
9106 * c-lang.c (c_language_data): Likewise.
9107 (c_language::language_arch_info): New member function.
9108 (cplus_language_arch_info): Delete function, move
9109 implementation to...
9110 (cplus_language::language_arch_info): ...here, a new member
9112 (cplus_language_data): Delete la_language_arch_info.
9113 (asm_language_data): Likewise.
9114 (asm_language::language_arch_info): New member function.
9115 (minimal_language_data): Delete la_language_arch_info.
9116 (minimal_language::language_arch_info): New member function.
9117 * d-lang.c (d_language_arch_info): Delete function, move
9118 implementation to...
9119 (d_language::language_arch_info): ...here, a new member
9121 (d_language_data): Delete la_language_arch_info.
9122 * f-lang.c (f_language_arch_info): Delete function, move
9123 implementation to...
9124 (f_language::language_arch_info): ...here, a new member
9126 (f_language_data): Delete la_language_arch_info.
9127 * go-lang.c (go_language_arch_info): Delete function, move
9128 implementation to...
9129 (go_language::language_arch_info): ...here, a new member
9131 (go_language_data): Delete la_language_arch_info.
9132 * language.c (unknown_language_data): Likewise.
9133 (unknown_language::language_arch_info): New member function.
9134 (auto_language_data): Delete la_language_arch_info.
9135 (auto_language::language_arch_info): New member function.
9136 (language_gdbarch_post_init): Update call to
9137 la_language_arch_info.
9138 * language.h (language_data): Delete la_language_arch_info
9140 (language_defn::language_arch_info): New function.
9141 * m2-lang.c (m2_language_arch_info): Delete function, move
9142 implementation to...
9143 (m2_language::language_arch_info): ...here, a new member
9145 (m2_language_data): Delete la_language_arch_info.
9146 * objc-lang.c (objc_language_arch_info): Delete function, move
9147 implementation to...
9148 (objc_language::language_arch_info): ...here, a new member
9150 (objc_language_data): Delete la_language_arch_info.
9151 * opencl-lang.c (opencl_language_arch_info): Delete function, move
9152 implementation to...
9153 (opencl_language::language_arch_info): ...here, a new member
9155 (opencl_language_data): Delete la_language_arch_info.
9156 * p-lang.c (pascal_language_arch_info): Delete function, move
9157 implementation to...
9158 (pascal_language::language_arch_info): ...here, a new member
9160 (pascal_language_data): Delete la_language_arch_info.
9161 * rust-lang.c (rust_language_arch_info): Delete function, move
9162 implementation to...
9163 (rust_language::language_arch_info): ...here, a new member
9165 (rust_language_data): Delete la_language_arch_info.
9167 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9169 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
9171 * c-lang.c (c_language_data): Likewise.
9172 (cplus_language_data): Likewise.
9173 (cplus_language::pass_by_reference_info): New method.
9174 (asm_language_data): Delete la_pass_by_reference initializer.
9175 (minimal_language_data): Likewise.
9176 * cp-abi.c (cp_pass_by_reference): Remove use of
9177 default_pass_by_reference.
9178 * d-lang.c (d_language_data): Likewise.
9179 * f-lang.c (f_language_data): Likewise.
9180 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
9181 default_pass_by_reference.
9182 * go-lang.c (go_language_data): Likewise.
9183 * language.c (language_pass_by_reference): Update.
9184 (default_pass_by_reference): Delete.
9185 (unknown_language_data): Delete la_pass_by_reference
9187 (auto_language_data): Likewise.
9188 * language.h (struct language_data): Delete la_pass_by_reference
9190 (language_defn::pass_by_reference_info): New member function.
9191 (default_pass_by_reference): Delete declaration.
9192 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
9194 * objc-lang.c (objc_language_data): Likewise.
9195 * opencl-lang.c (opencl_language_data): Likewise.
9196 * p-lang.c (pascal_language_data): Likewise.
9197 * rust-lang.c (rust_language_data): Likewise.
9199 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9201 * ada-lang.c (ada_read_var_value): Delete function, move
9202 implementation to...
9203 (ada_language::read_var_value): ...here.
9204 (ada_language_data): Delete la_read_var_value initializer.
9205 * c-lang.c (c_language_data): Likewise.
9206 (cplus_language_data): Likewise.
9207 (minimal_language_data): Likewise.
9208 * d-lang.c (d_language_data): Likewise.
9209 * f-lang.c (f_language_data): Likewise.
9210 * findvar.c (default_read_var_value): Rename to...
9211 (language_defn::read_var_value): ...this.
9212 * findvar.c (read_var_value): Update header comment, and change to
9213 call member function instead of function pointer.
9214 * go-lang.c (go_language_data): Likewise.
9215 * language.c (unknown_language_data): Delete la_read_var_value
9217 (auto_language_data): Likewise.
9218 * language.h (struct language_data): Delete la_read_var_value
9220 (language_defn::read_var_value): New member function.
9221 (default_read_var_value): Delete declaration.
9222 * m2-lang.c (m2_language_data): Delete la_read_var_value
9224 * objc-lang.c (objc_language_data): Likewise.
9225 * opencl-lang.c (opencl_language_data): Likewise.
9226 * p-lang.c (pascal_language_data): Likewise.
9227 * rust-lang.c (rust_language_data): Likewise.
9228 * value.h (default_read_var_value): Delete declaration.
9230 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9232 * ada-lang.c (ada_print_array_index): Delete function, move
9233 implementation to...
9234 (ada_language::print_array_index): ...here.
9235 (ada_language_data): Delete la_print_array_index initializer.
9236 * c-lang.c (c_language_data): Likewise.
9237 (cplus_language_data): Likewise.
9238 (minimal_language_data): Likewise.
9239 * d-lang.c (d_language_data): Likewise.
9240 * f-lang.c (f_language_data): Likewise.
9241 * go-lang.c (go_language_data): Likewise.
9242 * language.c (default_print_array_index): Delete function, move
9243 implementation to...
9244 (language_defn::print_array_index): ...here.
9245 (unknown_language_data): Delete la_print_array_index initializer.
9246 (auto_language_data): Likewise.
9247 * language.h (struct language_data): Delete la_print_array_index
9249 (language_defn::print_array_index): New member function.
9250 (LA_PRINT_ARRAY_INDEX): Update.
9251 (default_print_array_index): Delete declaration.
9252 * m2-lang.c (m2_language_data): Delete la_print_array_index
9254 * objc-lang.c (objc_language_data): Likewise.
9255 * opencl-lang.c (opencl_language_data): Likewise.
9256 * p-lang.c (pascal_language_data): Likewise.
9257 * rust-lang.c (rust_language_data): Likewise.
9259 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9261 * gdb/ada-lang.c (ada_language_defn): Convert to...
9262 (ada_language_data): ...this.
9263 (class ada_language): New class.
9264 (ada_language_defn): New static global.
9265 * gdb/c-lang.c (c_language_defn): Convert to...
9266 (c_language_data): ...this.
9267 (class c_language): New class.
9268 (c_language_defn): New static global.
9269 (cplus_language_defn): Convert to...
9270 (cplus_language_data): ...this.
9271 (class cplus_language): New class.
9272 (cplus_language_defn): New static global.
9273 (asm_language_defn): Convert to...
9274 (asm_language_data): ...this.
9275 (class asm_language): New class.
9276 (asm_language_defn): New static global.
9277 (minimal_language_defn): Convert to...
9278 (minimal_language_data): ...this.
9279 (class minimal_language): New class.
9280 (minimal_language_defn): New static global.
9281 * gdb/d-lang.c (d_language_defn): Convert to...
9282 (d_language_data): ...this.
9283 (class d_language): New class.
9284 (d_language_defn): New static global.
9285 * gdb/f-lang.c (f_language_defn): Convert to...
9286 (f_language_data): ...this.
9287 (class f_language): New class.
9288 (f_language_defn): New static global.
9289 * gdb/go-lang.c (go_language_defn): Convert to...
9290 (go_language_data): ...this.
9291 (class go_language): New class.
9292 (go_language_defn): New static global.
9293 * gdb/language.c (unknown_language_defn): Remove declaration.
9294 (current_language): Initialize to nullptr, real initialization is
9295 moved to _initialize_language.
9296 (languages): Delete global.
9297 (language_defn::languages): Define.
9298 (set_language_command): Use language_defn::languages.
9299 (set_language): Likewise.
9300 (range_error): Likewise.
9301 (language_enum): Likewise.
9302 (language_def): Likewise.
9303 (add_set_language_command): Use language_def::languages for the
9304 language list, and language_def to lookup language pointers.
9305 (skip_language_trampoline): Use language_defn::languages.
9306 (unknown_language_defn): Convert to...
9307 (unknown_language_data): ...this.
9308 (class unknown_language): New class.
9309 (unknown_language_defn): New static global.
9310 (auto_language_defn): Convert to...
9311 (auto_language_data): ...this.
9312 (class auto_language): New class.
9313 (auto_language_defn): New static global.
9314 (language_gdbarch_post_init): Use language_defn::languages.
9315 (_initialize_language): Initialize current_language.
9316 * gdb/language.h (struct language_defn): Rename to...
9317 (struct language_data): ...this.
9318 (struct language_defn): New.
9319 (auto_language_defn): Delete.
9320 (unknown_language_defn): Delete.
9321 (minimal_language_defn): Delete.
9322 (ada_language_defn): Delete.
9323 (asm_language_defn): Delete.
9324 (c_language_defn): Delete.
9325 (cplus_language_defn): Delete.
9326 (d_language_defn): Delete.
9327 (f_language_defn): Delete.
9328 (go_language_defn): Delete.
9329 (m2_language_defn): Delete.
9330 (objc_language_defn): Delete.
9331 (opencl_language_defn): Delete.
9332 (pascal_language_defn): Delete.
9333 (rust_language_defn): Delete.
9334 * gdb/m2-lang.c (m2_language_defn): Convert to...
9335 (m2_language_data): ...this.
9336 (class m2_language): New class.
9337 (m2_language_defn): New static global.
9338 * gdb/objc-lang.c (objc_language_defn): Convert to...
9339 (objc_language_data): ...this.
9340 (class objc_language): New class.
9341 (objc_language_defn): New static global.
9342 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
9343 (opencl_language_data): ...this.
9344 (class opencl_language): New class.
9345 (opencl_language_defn): New static global.
9346 * gdb/p-lang.c (pascal_language_defn): Convert to...
9347 (pascal_language_data): ...this.
9348 (class pascal_language): New class.
9349 (pascal_language_defn): New static global.
9350 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
9351 language pointer, update comment format.
9352 * gdb/rust-lang.c (rust_language_defn): Convert to...
9353 (rust_language_data): ...this.
9354 (class rust_language): New class.
9355 (rust_language_defn): New static global.
9357 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
9359 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
9361 <m_stmt_at_address>: New member variable.
9362 (lnp_state_machine::record_line): Don't record some lines, update
9363 tracking of is_stmt at the same address.
9364 (lnp_state_machine::lnp_state_machine): Initialise new member
9367 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
9369 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
9370 "-include gnu-nat-mig.h".
9371 * gnu-nat-mig.h: New file.
9372 * gnu-nat.c: Include "gnu-nat-mig.h".
9373 (exc_server, msg_reply_server, notify_server,
9374 process_reply_server): Remove declarations.
9376 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9378 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
9379 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
9380 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
9381 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
9382 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
9383 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
9384 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
9385 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
9386 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
9387 to gnu_nat_target class.
9388 * gnu-nat.c: Likewise.
9389 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
9390 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
9391 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
9393 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
9394 instead of `gnu_target'.
9396 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9398 * i386-gnu-tdep.c: Include "gdbcore.h"
9399 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
9400 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
9401 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
9402 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
9403 i386_gnu_sigcontext_addr): New functions
9404 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
9405 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
9408 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9410 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
9411 before fork_inferior call. Avoid calling it if target_is_pushed returns
9414 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9416 * gnu-nat.h (gnu_target): New variable declaration.
9417 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
9419 * gnu-nat.c (gnu_target): New variable.
9420 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
9421 add_thread_silent, and add_thread calls.
9422 (gnu_nat_target::create_inferior): Pass gnu_target to
9423 add_thread_silent, thread_change_ptid call.
9424 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
9427 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9429 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
9430 (gnu_nat_target::find_memory_regions): Remove unused
9431 `old_address' variable.
9433 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9435 * gnu-nat.c: Include "gdbarch.h".
9437 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9439 * reply_mig_hack.awk (Error return): Cast function through
9440 void *, to bypass compiler function call check.
9442 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9444 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
9445 $(srcdir)/reply_mig_hack.awk.
9447 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9449 * gnu-nat.h (gnu_debug_flag): Set type to bool.
9451 2020-05-30 Jonny Grant <jg@jguk.org>
9453 * configure.ac (ACX_BUGURL): change bug URL to https.
9455 2020-05-30 Pedro Alves <palves@redhat.com>
9457 * cp-support.c (replace_typedefs_template): New.
9458 (replace_typedefs_qualified_name): Handle
9459 DEMANGLE_COMPONENT_TEMPLATE.
9461 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
9463 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
9464 dwarf2/index-cache.h, dwarf2/index-write.c,
9465 dwarf2/index-write.h, dwarf2/line-header.c,
9466 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
9467 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
9468 variables and fields from `dwarf2_per_objfile` to just
9469 `per_objfile` throughout.
9471 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
9473 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9474 <push_dwarf_reg_entry_value>: Add comment.
9476 2020-05-28 Kevin Buettner <kevinb@redhat.com>
9477 Keith Seitz <keiths@redhat.com>
9479 * python/python.c (do_start_initialization): Call PyEval_SaveThread
9480 instead of PyEval_ReleaseLock.
9481 (class gdbpy_gil): Move to earlier in file.
9482 (finalize_python): Set gdb_python_initialized.
9483 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
9484 when not initialized.
9486 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
9488 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9489 <push_dwarf_reg_entry_value>: Remove assert. Override
9490 per_objfile with caller_per_objfile.
9492 2020-05-28 Tom de Vries <tdevries@suse.de>
9494 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
9495 PR gold/15646 workaround to symbol kind "type".
9497 2020-05-27 Tom Tromey <tromey@adacore.com>
9499 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
9501 2020-05-27 Tom Tromey <tromey@adacore.com>
9503 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
9504 Use htab_find_with_hash.
9505 <add_abbrev>: Remove "abbrev_number" parameter.
9506 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
9507 "abbrev_number" parameter. Use htab_find_slot_with_hash.
9508 (hash_abbrev): Add comment.
9509 (abbrev_table::lookup_abbrev): Move to header file.
9510 (abbrev_table::read): Update.
9512 2020-05-27 Tom Tromey <tromey@adacore.com>
9514 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
9516 <canonical_name>: New member.
9517 <raw_name>: Rename from "name".
9518 (partial_die_info): Initialize canonical_name.
9519 (scan_partial_symbols): Check raw_name.
9520 (partial_die_parent_scope, partial_die_full_name)
9521 (add_partial_symbol, add_partial_subprogram)
9522 (add_partial_enumeration, load_partial_dies): Use "name" method.
9523 (partial_die_info::name): New method.
9524 (partial_die_info::read, guess_partial_die_structure_name)
9525 (partial_die_info::fixup): Update.
9527 2020-05-27 Tom Tromey <tromey@adacore.com>
9529 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
9530 <get_ref_die_offset>: Inline.
9531 <get_ref_die_offset_complaint>: New method.
9532 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
9533 (attribute::get_ref_die_offset_complaint): Rename from
9534 get_ref_die_offset. Just issue complaint.
9536 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
9538 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
9540 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
9542 * exec.c (exec_file_attach): Use errno value of first openp failure.
9544 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
9546 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
9547 Don't close thread handle.
9549 2020-05-27 Tom Tromey <tom@tromey.com>
9550 Simon Marchi <simon.marchi@efficios.com>
9552 * objfiles.h (struct objfile) <partial_symtabs>: Now a
9554 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
9556 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
9557 dwarf2_per_bfd_objfile_data_key>: New globals.
9558 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
9559 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
9560 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
9562 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
9563 short-circuit when sharing.
9564 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
9565 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
9567 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9569 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
9571 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
9572 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
9574 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9576 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
9577 build_name_components, find_name_components_bounds>:
9578 Add per_objfile parameter.
9579 (struct mapped_index) <symbol_name_at>: Likewise.
9580 (struct mapped_debug_names): Remove constructor.
9581 <dwarf2_per_objfile>: Remove field.
9582 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
9583 (mapped_index_base::find_name_components_bounds,
9584 mapped_index_base::build_name_components,
9585 dw2_expand_symtabs_matching_symbol): Likewise.
9586 (class mock_mapped_index) <symbol_name_at>: Likewise.
9587 (check_match): Likewise.
9588 (check_find_bounds_finds): Likewise.
9589 (test_mapped_index_find_name_component_bounds): Update.
9590 (CHECK_MATCH): Update.
9591 (dw2_expand_symtabs_matching): Update.
9592 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
9593 per_objfile parameter.
9594 <find_vec_in_debug_names>: Likewise.
9595 <m_per_objfile>: New field.
9596 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
9598 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
9599 (dw2_debug_names_iterator::next): Update.
9600 (dw2_debug_names_lookup_symbol): Update.
9601 (dw2_debug_names_expand_symtabs_for_function): Update.
9602 (dw2_debug_names_map_matching_symbols): Update.
9603 (dw2_debug_names_expand_symtabs_matching): Update.
9604 (dwarf2_read_debug_names): Update.
9606 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9608 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
9609 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
9610 move to dwarf2_per_objfile.
9611 <read_in_chain>: Remove.
9612 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
9613 remove_all_cus, age_comp_units>: New methods.
9614 <m_dwarf2_cus>: New member.
9615 (struct dwarf2_per_cu_data) <cu>: Remove.
9616 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
9617 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
9618 moved to methods of dwarf2_per_objfile.
9619 (dwarf2_clear_marks): Remove.
9620 (dwarf2_queue_item::~dwarf2_queue_item): Update.
9621 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
9622 (dwarf2_per_bfd::free_cached_comp_units): Remove.
9623 (dwarf2_per_objfile::remove_all_cus): New.
9624 (class free_cached_comp_units) <~free_cached_comp_units>:
9627 (dw2_do_instantiate_symtab): Adjust.
9628 (fill_in_sig_entry_from_dwo_entry): Adjust.
9629 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9630 (cutu_reader::cutu_reader): Likewise.
9631 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
9632 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
9633 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
9634 and dwarf2_per_objfile::age_comp_units.
9635 (load_partial_comp_unit): Update.
9636 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
9637 (process_queue): Likewise.
9638 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
9640 (dwarf2_read_addr_index): Likewise.
9641 (follow_die_offset): Likewise.
9642 (dwarf2_fetch_die_loc_sect_off): Likewise.
9643 (dwarf2_fetch_constant_bytes): Likewise.
9644 (dwarf2_fetch_die_type_sect_off): Likewise.
9645 (follow_die_sig_1): Likewise.
9646 (load_full_type_unit): Likewise.
9647 (read_signatured_type): Likewise.
9648 (dwarf2_cu::dwarf2_cu): Don't set cu field.
9649 (dwarf2_cu::~dwarf2_cu): Remove.
9650 (dwarf2_per_objfile::get_cu): New.
9651 (dwarf2_per_objfile::set_cu): New.
9652 (age_cached_comp_units): Rename to...
9653 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
9654 to std::unordered_map.
9655 (free_one_cached_comp_unit): Rename to...
9656 (dwarf2_per_objfile::remove_cu): ... this. Adjust
9657 to std::unordered_map.
9658 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
9659 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
9660 a dwarf2_per_objfile in data.
9661 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
9662 (dwarf2_clear_marks): Remove.
9664 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9666 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
9667 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
9668 (init_tu_and_read_dwo_dies): Likewise.
9669 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
9670 (cutu_reader::cutu_reader): Likewise.
9671 (load_partial_comp_unit): Likewise.
9672 (process_psymtab_comp_unit): Update.
9673 (build_type_psymtabs_1): Update.
9674 (process_skeletonless_type_unit): Update.
9675 (load_full_comp_unit): Update.
9676 (find_partial_die): Update.
9677 (dwarf2_read_addr_index): Update.
9678 (read_signatured_type): Update.
9680 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9682 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
9683 m_header_read_in>: New fields.
9684 <get_header>: New method.
9685 * dwarf2/read.c (per_cu_header_read_in): Remove.
9686 (dwarf2_per_cu_data::get_header): New.
9687 (dwarf2_per_cu_data::addr_size): Update.
9688 (dwarf2_per_cu_data::offset_size): Update.
9689 (dwarf2_per_cu_data::ref_addr_size): Update.
9691 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9693 * dwarf2/read.c (load_cu): Return dwarf2_cu.
9694 (dw2_do_instantiate_symtab): Update.
9695 (queue_and_load_all_dwo_tus): Change parameter from
9696 dwarf2_per_cu_data to dwarf2_cu.
9697 (dwarf2_fetch_die_loc_sect_off): Update.
9698 (dwarf2_fetch_constant_bytes): Update.
9699 (dwarf2_fetch_die_type_sect_off): Update.
9701 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9703 * dwarf2/read.c (process_full_comp_unit,
9704 process_full_type_unit): Remove per_cu, per_objfile paramters.
9705 Add dwarf2_cu parameter.
9706 (process_queue): Update.
9708 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9710 * dwarf2/read.c (create_cu_from_index_list): Replace
9711 dwarf2_per_objfile parameter with dwarf2_per_bfd.
9712 (create_cus_from_index_list): Likewise.
9713 (create_cus_from_index): Likewise.
9714 (create_signatured_type_table_from_index): Likewise.
9715 (create_cus_from_debug_names_list): Likewise.
9716 (create_cus_from_debug_names): Likewise.
9717 (dwarf2_read_gdb_index): Update.
9718 (dwarf2_read_debug_names): Update.
9720 2020-05-27 Tom Tromey <tom@tromey.com>
9721 Simon Marchi <simon.marchi@efficios.com>
9723 * dwarf2/read.h (struct dwarf2_per_objfile)
9724 <get_type_for_signatured_type, set_type_for_signatured_type>:
9726 <m_type_map>: New member.
9727 (struct signatured_type) <type>: Remove.
9729 (dwarf2_per_objfile::get_type_for_signatured_type,
9730 dwarf2_per_objfile::set_type_for_signatured_type): New.
9731 (get_signatured_type): Use new methods.
9733 2020-05-27 Tom Tromey <tom@tromey.com>
9734 Simon Marchi <simon.marchi@efficios.com>
9736 * dwarf2/read.h (struct type_unit_group_unshareable): New.
9737 (struct dwarf2_per_objfile) <type_units>: New member.
9738 <get_type_unit_group_unshareable>: New method.
9739 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
9740 num_symtabs, symtabs>: Remove; move to
9741 type_unit_group_unshareable.
9742 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
9743 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
9744 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
9746 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9748 * dwarf2/read.h (struct dwarf2_per_cu_data):
9749 <dwarf2_per_objfile>: Remove.
9750 * dwarf2/read.c (create_cu_from_index_list): Don't assign
9752 (create_signatured_type_table_from_index): Likewise.
9753 (create_signatured_type_table_from_debug_names): Likewise.
9754 (create_debug_type_hash_table): Likewise.
9755 (fill_in_sig_entry_from_dwo_entry): Likewise.
9756 (create_type_unit_group): Likewise.
9757 (read_comp_units_from_section): Likewise.
9758 (create_cus_hash_table): Likewise.
9760 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9762 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
9763 dwarf2_per_cu_data::dwarf2_per_objfile.
9764 (compute_compunit_symtab_includes): Likewise.
9765 (dwarf2_cu::start_symtab): Likewise.
9767 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9769 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
9771 * dwarf2/read.c (get_die_type_at_offset): Likewise.
9772 (read_namespace_alias): Update.
9773 (lookup_die_type): Update.
9774 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
9775 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
9777 (disassemble_dwarf_expression): Update.
9779 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9781 * dwarf2/read.h (struct dwarf2_queue_item): Add
9782 dwarf2_per_objfile parameter, assign new parameter.
9783 <per_objfile>: New field.
9784 * dwarf2/read.c (free_one_cached_comp_unit): Add
9785 dwarf2_per_objfile parameter.
9786 (queue_comp_unit): Likewise.
9787 (dw2_do_instantiate_symtab): Update.
9788 (process_psymtab_comp_unit): Update.
9789 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
9790 (process_imported_unit_die): Update.
9791 (queue_and_load_dwo_tu): Update.
9792 (follow_die_offset): Update.
9793 (follow_die_sig_1): Update.
9795 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9797 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
9798 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
9799 (read_call_site_scope): Assign per_objfile.
9800 (dwarf2_per_cu_data::objfile): Remove.
9801 * gdbtypes.h (struct call_site) <per_objfile>: New member.
9802 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
9803 dwarf2_per_objfile parameter.
9804 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
9805 dwarf2_per_objfile parameter.
9806 (dwarf_expr_reg_to_entry_parameter): Add output
9807 dwarf2_per_objfile parameter.
9808 (locexpr_get_frame_base): Update.
9809 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
9810 <push_dwarf_reg_entry_value>: Update.
9811 <call_site_to_target_addr>: Update.
9812 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
9814 (value_of_dwarf_reg_entry): Update.
9815 (rw_pieced_value): Update.
9816 (indirect_synthetic_pointer): Update.
9817 (dwarf2_evaluate_property): Update.
9818 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
9820 (locexpr_read_variable): Update.
9821 (locexpr_get_symbol_read_needs): Update.
9822 (loclist_read_variable): Update.
9824 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9826 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
9827 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9828 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
9830 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
9831 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9832 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
9834 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
9835 sect_variable_value): Add dwarf2_per_objfile parameter.
9836 (class dwarf_evaluate_loc_desc) <dwarf_call,
9837 dwarf_variable_value>: Update.
9838 (fetch_const_value_from_synthetic_pointer): Add
9839 dwarf2_per_objfile parameter.
9840 (fetch_const_value_from_synthetic_pointer): Update.
9841 (coerced_pieced_ref): Update.
9842 (class symbol_needs_eval_context) <dwarf_call,
9843 dwarf_variable_value>: Update.
9844 (dwarf2_compile_expr_to_ax): Update.
9846 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9848 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
9850 (dwarf2_evaluate_loc_desc_full): Update.
9852 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9854 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
9856 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
9857 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
9858 dwarf2_per_objfile parameter.
9859 (decode_debug_loc_dwo_addresses): Likewise.
9860 (dwarf2_find_location_expression): Update.
9861 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
9862 (locexpr_describe_location_piece): Add dwarf2_per_objfile
9864 (disassemble_dwarf_expression): Add dwarf2_per_objfile
9866 (locexpr_describe_location_1): Likewise.
9867 (locexpr_describe_location): Update.
9869 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9871 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
9873 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
9874 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
9875 (dwarf2_compile_property_to_c): Update.
9876 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
9877 use text offset from objfile.
9878 (locexpr_tracepoint_var_ref): Update.
9879 (locexpr_generate_c_location): Update.
9880 (loclist_describe_location): Update.
9881 (loclist_tracepoint_var_ref): Update.
9882 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
9883 dwarf2_per_objfile parameter.
9884 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
9885 use text offset from objfile.
9886 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
9888 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9890 * dwarf2/expr.h (struct dwarf_expr_context)
9891 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
9893 <per_objfile>: New member.
9894 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
9895 dwarf2_per_objfile parameter. Don't set offset, set
9897 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
9898 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
9899 a dwarf2_per_objfile object instead of an offset.
9900 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
9902 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
9903 to dwarf2_expr_executor constructor. Don't set offset.
9904 (dwarf2_fetch_cfa_info): Update.
9905 (struct dwarf2_frame_cache) <text_offset>: Remove.
9906 <per_objfile>: New field.
9907 (dwarf2_frame_cache): Update.
9908 (dwarf2_frame_prev_register): Update.
9909 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9910 <dwarf_evaluate_loc_desc>: Add constructor.
9911 (dwarf2_evaluate_loc_desc_full): Update.
9912 (dwarf2_locexpr_baton_eval): Update.
9913 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
9915 (dwarf2_loc_desc_get_symbol_read_needs): Update.
9917 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9919 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
9920 addr_sized_int_type>: Move to dwarf2_cu.
9921 <int_type>: Move to dwarf2_per_objfile.
9922 (struct dwarf2_per_objfile) <int_type>: Move here.
9923 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
9924 addr_sized_int_type>: Move here.
9925 (read_func_scope): Update.
9926 (read_array_type): Update.
9927 (read_tag_string_type): Update.
9928 (attr_to_dynamic_prop): Update.
9929 (dwarf2_per_cu_data::int_type): Rename to...
9930 (dwarf2_per_objfile::int_type): ... this.
9931 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
9932 (dwarf2_cu::addr_sized_int_type): ... this.
9933 (read_subrange_type): Update.
9934 (dwarf2_per_cu_data::addr_type): Rename to...
9935 (dwarf2_cu::addr_type): ... this.
9936 (set_die_type): Update.
9938 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9940 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
9941 data through per_cu->cu.
9943 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9945 * dwarf2/read.c (lookup_dwo_comp_unit): Change
9946 dwarf2_per_cu_data parameter fo dwarf2_cu.
9947 (lookup_dwo_type_unit): Likewise.
9948 (read_cutu_die_from_dwo): Likewise.
9949 (lookup_dwo_unit): Likewise.
9950 (open_and_init_dwo_file): Likewise.
9951 (lookup_dwo_cutu): Likewise.
9952 (lookup_dwo_comp_unit): Likewise.
9953 (lookup_dwo_type_unit): Likewise.
9954 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9955 (cutu_reader::cutu_reader): Update.
9957 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9959 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
9961 (process_full_type_unit): Likewise.
9962 (process_queue): Update.
9964 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9966 * dwarf2/read.c (recursively_compute_inclusions): Add
9967 dwarf2_per_objfile parameter.
9968 (compute_compunit_symtab_includes): Likewise.
9969 (process_cu_includes): Update.
9971 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9973 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
9975 (create_type_unit_group): Update.
9976 (process_psymtab_comp_unit_reader): Update.
9977 (build_type_psymtabs_reader): Update.
9979 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9981 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
9982 object through m_this_cu->cu.
9984 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9986 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
9988 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
9990 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9992 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
9993 per_objfile parameter.
9994 (load_full_type_unit): Add per_objfile parameter.
9995 (read_signatured_type): Likewise.
9996 (load_full_comp_unit): Likewise.
9997 (load_cu): Likewise.
9998 (dw2_do_instantiate_symtab): Likewise.
9999 (dw2_get_file_names): Likewise.
10000 (dw2_map_symtabs_matching_filename): Update.
10001 (dw_expand_symtabs_matching_file_matcher): Update.
10002 (dw2_map_symbol_filenames): Update.
10003 (process_psymtab_comp_unit): Add per_objfile parameter.
10004 (build_type_psymtabs_1): Update.
10005 (process_skeletonless_type_unit): Update.
10006 (dwarf2_build_psymtabs_hard): Update.
10007 (load_partial_comp_unit): Add per_objfile parameter.
10008 (scan_partial_symbols): Update.
10009 (load_full_comp_unit): Add per_objfile parameter.
10010 (process_imported_unit_die): Update.
10011 (create_cus_hash_table): Update.
10012 (find_partial_die): Update.
10013 (dwarf2_read_addr_index): Update.
10014 (follow_die_offset): Update.
10015 (dwarf2_fetch_die_loc_sect_off): Update.
10016 (dwarf2_fetch_constant_bytes): Update.
10017 (dwarf2_fetch_die_type_sect_off): Update.
10018 (follow_die_sig_1): Update.
10019 (load_full_type_unit): Add per_objfile parameter.
10020 (read_signatured_type): Likewise.
10022 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10024 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
10027 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10029 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
10030 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
10031 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
10033 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
10034 (create_cus_from_index): Update.
10035 (dwarf2_read_gdb_index): Update.
10036 (create_cus_from_debug_names): Update.
10037 (dwarf2_read_debug_names): Update.
10038 (get_abbrev_section_for_cu): Update.
10039 (create_all_comp_units): Update.
10040 (read_attribute_value): Update.
10041 (get_debug_line_section): Update.
10042 * dwarf2/index-cache.c (index_cache::store): Update.
10043 * dwarf2/index-write.c (save_gdb_index_command): Update.
10044 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
10046 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10048 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
10050 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
10051 dwarf2_per_cu_data::per_bfd.
10052 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
10053 (create_type_unit_group): Likewise.
10054 (queue_comp_unit): Remove reference to
10055 per_cu->dwarf2_per_objfile.
10056 (maybe_queue_comp_unit): Likewise.
10057 (fill_in_sig_entry_from_dwo_entry): Assign new field.
10058 (create_cus_hash_table): Assign new field.
10060 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10062 * dwarf2/read.c: Replace
10063 dwarf2_cu->per_cu->dwarf2_per_objfile references with
10064 dwarf2_cu->per_objfile throughout.
10066 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10068 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
10069 parameter, don't use per_cu->dwarf2_per_objfile.
10070 (dw2_instantiate_symtab): Likewise.
10071 (dw2_find_last_source_symtab): Update.
10072 (dw2_map_expand_apply): Update.
10073 (dw2_lookup_symbol): Update.
10074 (dw2_expand_symtabs_for_function): Update.
10075 (dw2_expand_all_symtabs): Update.
10076 (dw2_expand_symtabs_with_fullname): Update.
10077 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
10078 don't use per_cu->dwarf2_per_objfile.
10079 (dw2_expand_marked_cus): Update.
10080 (dw2_find_pc_sect_compunit_symtab): Update.
10081 (dw2_debug_names_lookup_symbol): Update.
10082 (dw2_debug_names_expand_symtabs_for_function): Update.
10083 (dw2_debug_names_map_matching_symbols): Update.
10084 (dwarf2_psymtab::expand_psymtab): Update.
10086 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10088 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
10089 <per_objfile>: New member.
10090 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
10091 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
10093 (cutu_reader::cutu_reader): Update.
10094 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
10096 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10098 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
10099 struct dwarf2_per_objfile.
10100 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
10102 * dwarf2/read.c (set_die_type): Update.
10103 (get_die_type_at_offset): Update.
10105 2020-05-27 Tom Tromey <tom@tromey.com>
10106 Simon Marchi <simon.marchi@efficios.com>
10108 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
10110 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
10111 get_symtab, set_symtab>: New methods.
10112 <m_symtabs>: New field.
10113 (struct dwarf2_psymtab): Derive from partial_symtab.
10114 <readin_p, get_compunit_symtab>: Declare methods.
10115 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
10116 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
10118 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
10119 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
10120 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
10121 (dw2_symtab_iter_next, dw2_print_stats)
10122 (dw2_expand_symtabs_with_fullname)
10123 (dw2_expand_symtabs_matching_one)
10124 (dw_expand_symtabs_matching_file_matcher)
10125 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
10126 (dw2_debug_names_iterator::next)
10127 (dw2_debug_names_map_matching_symbols)
10128 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
10129 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
10130 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
10132 (get_compunit_symtab, process_full_comp_unit)
10133 (process_full_type_unit): Update.
10134 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
10136 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10138 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
10139 then introduce a new dwarf2_per_objfile type.
10140 <read_line_string>: Move to the new dwarf2_per_objfile type.
10141 <objfile>: Likewise.
10142 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
10143 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
10144 dwarf2_per_objfile->per_bfd.
10145 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
10146 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
10147 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
10148 (dwarf2_per_bfd::free_cached_comp_units): ... this.
10149 (dwarf2_has_info): Allocate dwarf2_per_bfd.
10150 (dwarf2_per_objfile::locate_sections): Rename to...
10151 (dwarf2_per_bfd::locate_sections): ... this.
10152 (dwarf2_per_objfile::get_cutu): Rename to...
10153 (dwarf2_per_bfd::get_cutu): ... this.
10154 (dwarf2_per_objfile::get_cu): Rename to...
10155 (dwarf2_per_bfd::get_cu): ... this.
10156 (dwarf2_per_objfile::get_tu): Rename to...
10157 (dwarf2_per_bfd::get_tu): ... this.
10158 (dwarf2_per_objfile::allocate_per_cu): Rename to...
10159 (dwarf2_per_bfd::allocate_per_cu): ... this.
10160 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
10161 (dwarf2_per_bfd::allocate_signatured_type): ... this.
10162 (get_gdb_index_contents_ftype): Change parameter from
10163 dwarf2_per_objfile to dwarf2_per_bfd.
10164 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
10165 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
10167 2020-05-27 Tom Tromey <tom@tromey.com>
10168 Simon Marchi <simon.marchi@efficios.com>
10170 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
10171 (allocate_piece_closure): Set "per_objfile" member.
10172 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
10173 (locexpr_describe_location, loclist_describe_location): Use new
10175 * dwarf2/read.c (read_call_site_scope)
10176 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
10177 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
10178 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
10179 handle_data_member_location): Set per_objfile member.
10180 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
10182 (struct dwarf2_loclist_baton) <per_objfile>: New member.
10184 2020-05-27 Tom Tromey <tom@tromey.com>
10186 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
10187 allocate_signatured_type>: Declare new methods.
10188 <m_num_psymtabs>: New member.
10189 (struct dwarf2_per_cu_data) <index>: New member.
10190 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
10191 (dwarf2_per_objfile::allocate_signatured_type): New methods.
10192 (create_cu_from_index_list): Use allocate_per_cu.
10193 (create_signatured_type_table_from_index)
10194 (create_signatured_type_table_from_debug_names)
10195 (create_debug_type_hash_table, add_type_unit)
10196 (read_comp_units_from_section): Use allocate_signatured_type.
10198 2020-05-27 Tom Tromey <tom@tromey.com>
10200 * psymtab.c (partial_map_expand_apply)
10201 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10202 (psym_lookup_global_symbol_language)
10203 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10204 (psym_print_stats, psym_expand_symtabs_for_function)
10205 (psym_map_symbol_filenames, psym_map_matching_symbols)
10206 (psym_expand_symtabs_matching)
10207 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10208 (maintenance_check_psymtabs): Update.
10209 * psympriv.h (struct partial_symtab) <readin_p,
10210 get_compunit_symtab>: Add objfile parameter.
10211 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
10213 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
10214 get_compunit_symtab>: Likewise.
10215 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
10217 2020-05-27 Tom Tromey <tom@tromey.com>
10219 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
10221 * dwarf2/read.c (delete_file_name_entry): Fix comment.
10222 (create_cu_from_index_list)
10223 (create_signatured_type_table_from_index)
10224 (create_signatured_type_table_from_debug_names)
10225 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
10226 (dwarf2_create_include_psymtab)
10227 (create_debug_type_hash_table, add_type_unit)
10228 (create_type_unit_group, read_comp_units_from_section)
10229 (dwarf2_compute_name, create_cus_hash_table)
10230 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
10231 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
10233 (dw2_get_real_path): Likewise. Change argument to
10234 dwarf2_per_objfile.
10236 2020-05-27 Luis Machado <luis.machado@linaro.org>
10239 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
10240 for ldrd (immediate).
10242 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10244 * command.h: Add comment giving the name of class_tui.
10245 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
10246 create the fake command for the help for class_tui.
10248 2020-05-26 Tom Tromey <tromey@adacore.com>
10250 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
10251 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
10252 (val_atr): New function.
10253 (value_val_atr): Use it.
10254 * ada-valprint.c (print_optional_low_bound): Change low bound
10255 handling for enums.
10256 (val_print_packed_array_elements): Don't call discrete_position.
10257 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
10258 discrete_position for enum types.
10259 * language.c (default_print_array_index): Change type.
10260 * language.h (struct language_defn) <la_print_array_index>: Add
10261 index_type parameter, change type of index_value.
10262 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
10263 (default_print_array_index): Update.
10264 * valprint.c (maybe_print_array_index): Don't call
10265 value_from_longest. Update.
10266 (value_print_array_elements): Don't call discrete_position.
10268 2020-05-26 Tom Tromey <tromey@adacore.com>
10270 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
10271 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
10273 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
10276 * avr-tdep.c (avr_integer_to_address): Return data or code
10277 address accordingly to the second 'type' argument of the
10280 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
10282 * infcmd.c, inferior.h: (construct_inferior_arguments):
10283 Moved function from here to gdbsupport/common-inferior.{h,cc}
10285 2020-05-23 Tom Tromey <tom@tromey.com>
10287 Revert commit eca1f90c:
10288 * NEWS: Remove entry for completion styling.
10289 * completer.c (_rl_completion_prefix_display_length): Move
10291 (gdb_fnprint): Revert.
10292 (gdb_display_match_list_1): Likewise.
10293 * cli/cli-style.c (completion_prefix_style)
10294 (completion_difference_style, completion_suffix_style): Remove.
10295 (_initialize_cli_style): Revert.
10296 * cli/cli-style.h (completion_prefix_style)
10297 (completion_difference_style, completion_suffix_style): Don't
10300 2020-05-24 Pedro Alves <palves@redhat.com>
10302 * symtab.c (completion_list_add_name): Return boolean indication
10303 of whether the symbol matched.
10304 (completion_list_add_symbol): Don't try to remove C++ aliases if
10305 the symbol didn't match in the first place.
10306 * symtab.h (completion_list_add_name): Return bool.
10308 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
10310 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
10313 2020-05-23 Joel Brobecker <brobecker@adacore.com>
10317 2020-05-23 Tom Tromey <tom@tromey.com>
10319 * NEWS: Add entry for completion styling.
10320 * completer.c (_rl_completion_prefix_display_length): Move
10321 declaration earlier.
10322 (gdb_fnprint): Use completion_style.
10323 (gdb_display_match_list_1): Likewise.
10324 * cli/cli-style.c (completion_prefix_style)
10325 (completion_difference_style, completion_suffix_style): New
10327 (_initialize_cli_style): Register new globals.
10328 * cli/cli-style.h (completion_prefix_style)
10329 (completion_difference_style, completion_suffix_style): Declare.
10331 2020-05-23 Pedro Alves <palves@redhat.com>
10333 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
10334 (parse_escape): Use ISDIGIT instead of isdigit.
10335 (puts_debug): Use gdb_isprint instead of isprint.
10336 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
10337 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
10338 ISSPACE instead of isspace.
10339 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
10340 instead of isspace.
10341 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
10342 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
10343 instead of isxdigit and ISDIGIT instead of isdigit.
10345 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10347 * gdbtypes.h (struct type) <field>: New method.
10348 (TYPE_FIELDS): Remove, replace all uses with either type::fields
10351 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10353 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
10354 (TYPE_FIELDS): Use type::fields. Change all call sites that
10355 modify the propery to use type::set_fields instead.
10357 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10359 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
10360 type::num_fields instead.
10362 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10364 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
10366 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
10367 that modify the number of fields to use type::set_num_fields
10370 2020-05-22 Tom Tromey <tromey@adacore.com>
10372 * compile/compile-object-load.h (munmap_list_free): Don't
10375 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
10377 * annotate.c (annotate_source_line): Update return type, add call
10378 to update current symtab and line.
10379 * annotate.h (annotate_source_line): Update return type, and
10380 extend header comment.
10381 * source.c (info_line_command): Check annotation_level before
10382 calling annotate_source_line.
10383 * stack.c (print_frame_info): If calling annotate_source_line
10384 returns true, then don't print any other source line information.
10386 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
10388 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
10390 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
10392 * coffread.c (patch_type): Remove NULL check before xfree.
10393 * corefile.c (set_gnutarget): Likewise.
10394 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
10395 * exec.c (build_section_table): Likewise.
10396 * remote.c (remote_target::pass_signals): Likewise.
10397 * utils.c (n_spaces): Likewise.
10398 * cli/cli-script.c (document_command): Likewise.
10399 * i386-windows-tdep.c (core_process_module_section): Likewise.
10400 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
10402 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
10404 * symfile.c (reread_symbols): Clear objfile's section_offsets
10405 vector and section indices, re-compute them by calling
10408 2020-05-20 Tom Tromey <tromey@adacore.com>
10410 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
10411 (desc_one_bound, desc_index_type): Compute field name.
10413 2020-05-20 Tom de Vries <tdevries@suse.de>
10416 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
10418 2020-05-20 Alan Modra <amodra@gmail.com>
10421 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
10423 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
10424 passed to bfd_set_filename.
10425 * symfile-mem.c (add_vsyscall_page): Likewise for string
10426 passed to symbol_file_add_from_memory.
10427 (symbol_file_add_from_memory): Make name param a const char* and
10430 2020-05-20 Alan Modra <amodra@gmail.com>
10432 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
10433 rather than accessing bfd->filename directly.
10434 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
10435 and use bfd_section_name.
10436 * dwarf2/frame.c (decode_frame_entry): Likewise.
10437 * exec.c (exec_set_section_address): Likewise.
10438 * solib-aix.c (solib_aix_bfd_open): Likewise.
10439 * stap-probe.c (get_stap_base_address): Likewise.
10440 * symfile.c (reread_symbols): Likewise.
10442 2020-05-19 Tom Tromey <tromey@adacore.com>
10444 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
10446 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10448 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
10450 2020-05-19 Pedro Alves <palves@redhat.com>
10452 * NEWS (set exec-file-mismatch): Adjust entry.
10453 * exec.c: Include "build-id.h".
10454 (validate_exec_file): Try to match build IDs instead of filenames.
10455 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
10456 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
10457 and pass down 'warn_if_slow'.
10458 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
10459 gdb_bfd_open_closure to pass it down.
10460 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
10462 2020-05-19 Pedro Alves <palves@redhat.com>
10464 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
10465 * target.c (target_fileio_open_1): Rename to target_fileio_open
10466 and make extern. Use bool.
10467 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
10468 (target_fileio_read_alloc_1): Adjust.
10469 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
10470 (target_fileio_open_warn_if_slow): Delete declaration.
10472 2020-05-19 Pedro Alves <palves@redhat.com>
10474 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
10475 Adjust all callers.
10477 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
10479 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
10480 whether disp is negative.
10482 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10484 * symfile.h (struct symfile_segment_data)
10485 <~symfile_segment_data>: Remove.
10486 <segment_info>: Change to std::vector.
10487 * symfile.c (default_symfile_segments): Update.
10488 * elfread.c (elf_symfile_segments): Update.
10490 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10492 * symfile.h (struct symfile_segment_data) <struct segment>: New.
10494 <segment_bases, segment_sizes>: Remove.
10495 * symfile.c (default_symfile_segments): Update.
10496 * elfread.c (elf_symfile_segments): Update.
10497 * remote.c (remote_target::get_offsets): Update.
10498 * solib-target.c (solib_target_relocate_section_addresses):
10501 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10503 * symfile.h (struct symfile_segment_data): Initialize fields.
10504 <~symfile_segment_data>: Add.
10505 (symfile_segment_data_up): New.
10506 (struct sym_fns) <sym_segments>: Return a
10507 symfile_segment_data_up.
10508 (default_symfile_segments): Return a symfile_segment_data_up.
10509 (free_symfile_segment_data): Remove.
10510 (get_symfile_segment_data): Return a symfile_segment_data_up.
10511 * symfile.c (default_symfile_segments): Likewise.
10512 (get_symfile_segment_data): Likewise.
10513 (free_symfile_segment_data): Remove.
10514 (symfile_find_segment_sections): Update.
10515 * elfread.c (elf_symfile_segments): Return a
10516 symfile_segment_data_up.
10517 * remote.c (remote_target::get_offsets): Update.
10518 * solib-target.c (solib_target_relocate_section_addresses):
10520 * symfile-debug.c (debug_sym_segments): Return a
10521 symfile_segment_data_up.
10523 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10526 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
10527 Hardcode register numbers.
10530 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
10531 procfs_find_LDT_entry): Remove.
10532 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
10533 procfs_find_LDT_entry): Remove.
10534 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
10537 2020-05-17 Pedro Alves <palves@redhat.com>
10538 Andrew Burgess <andrew.burgess@embecosm.com>
10539 Keno Fischer <keno@juliacomputing.com>
10542 * breakpoint.c (build_target_condition_list): Update comments.
10543 (build_target_command_list): Update comments and skip matching
10545 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
10546 a separate function. Simplify "set breakpoint auto-hw off"
10548 (insert_breakpoints): Update comment.
10549 (tracepoint_locations_match): New parameter. For breakpoints,
10550 compare location types too, if the caller wants to.
10551 (handle_automatic_hardware_breakpoints): New functions.
10552 (bp_location_is_less_than): Also sort by location type and
10553 hardware breakpoint length.
10554 (update_global_location_list): Handle "set breakpoint auto-hw on"
10556 (update_breakpoint_locations): Ask breakpoint_locations_match to
10557 ignore location types.
10559 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
10561 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
10562 type::name instead.
10564 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
10566 * gdbtypes.h (struct type) <name, set_name>: New methods.
10567 (TYPE_CODE): Use type::name. Change all call sites used to set
10568 the name to use type::set_name instead.
10570 2020-05-16 Tom Tromey <tom@tromey.com>
10572 * top.c (quit_force): Update.
10573 * infrun.c (handle_no_resumed): Update.
10574 * top.h (all_uis): New function.
10577 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
10579 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
10581 2020-05-16 Pedro Alves <palves@redhat.com>
10584 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
10586 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
10588 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
10590 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
10591 (sparc64_adi_info): Likewise.
10593 2020-05-15 Tom Tromey <tom@tromey.com>
10595 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
10597 (lookup_objfile_from_block): Remove.
10598 (lookup_symbol_in_block, lookup_symbol_in_static_block)
10599 (lookup_global_symbol): Use block_objfile.
10600 * symtab.h (lookup_objfile_from_block): Don't declare.
10601 * printcmd.c (clear_dangling_display_expressions): Use
10603 * parse.c (operator_check_standard): Use block_objfile.
10605 2020-05-15 Tom Tromey <tom@tromey.com>
10607 * language.c (language_alloc_type_symbol): Set
10609 * symtab.c (initialize_objfile_symbol): Remove.
10610 (allocate_symbol): Remove.
10611 (allocate_template_symbol): Remove.
10612 * dwarf2/read.c (fixup_go_packaging): Use "new".
10613 (new_symbol): Use "new".
10614 (read_variable): Don't call initialize_objfile_symbol. Use
10616 (read_func_scope): Use "new".
10617 * xcoffread.c (process_xcoff_symbol): Don't call
10618 initialize_objfile_symbol.
10619 (SYMBOL_DUP): Remove.
10620 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
10622 * symtab.h (allocate_symbol, initialize_objfile_symbol)
10623 (allocate_template_symbol): Don't declare.
10624 (struct symbol): Add copy constructor. Change defaults.
10625 * jit.c (finalize_symtab): Use "new".
10626 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
10628 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
10629 (common_block_end): Use "new".
10630 * mdebugread.c (parse_symbol): Use "new".
10631 (new_symbol): Likewise.
10633 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10635 * NEWS: Mention changes to help and apropos.
10637 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10639 * command.h (enum command_class): Improve comments, document
10640 that class_alias is for user-defined aliases, give the class
10641 name for each class, remove unused class_xdb.
10642 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
10643 * breakpoint.c (_initialize_breakpoint): Replace class_alias
10644 by a precise class.
10645 * infcmd.c (_initialize_infcmd): Likewise.
10646 * reverse.c (_initialize_reverse): Likewise.
10647 * stack.c (_initialize_stack): Likewise.
10648 * symfile.c (_initialize_symfile): Likewise.
10649 * tracepoint.c (_initialize_tracepoint): Likewise.
10651 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10653 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
10654 when their aliased command is traversed.
10655 (help_cmd): Add fput_command_names_styled call to
10656 output command name and aliases when command has an alias.
10658 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10660 * cli/cli-decode.h (help_cmd_list): Remove declaration.
10661 * cli/cli-decode.c (help_cmd_list): Declare as static,
10662 remove prefix argument, use bool for recurse arg, rework to show the aliases of
10663 a command together with the command.
10664 (fput_command_name_styled, fput_command_names_styled): New functions.
10665 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
10666 fput_command_name_styled.
10667 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
10668 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
10670 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10672 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
10673 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
10674 * command.h (cmd_show_list): Likewise.
10675 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
10676 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
10678 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10680 * unittests/command-def-selftests.c (traverse_command_structure):
10681 Verify all commands of a list have the same prefix command and
10682 that only the top cmdlist commands have a null prefix.
10684 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10686 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
10687 as prefix, not one of its aliases.
10688 (set_cmd_prefix): Remove.
10689 (do_add_cmd): Centralize the setting of the prefix of a command, when
10690 command is defined after its full chain of prefix commands.
10691 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
10692 (add_setshow_cmd_full): Likewise.
10693 (update_prefix_field_of_prefixed_commands): New function.
10694 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
10695 update_prefix_field_of_prefixed_commands.
10696 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
10697 addresses of remote_set_cmdlist and remote_show_cmdlist given
10698 as argument, not the address of an argument.
10699 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
10700 * gdb/remote.c (_initialize_remote): Likewise.
10702 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10704 * cli/cli-cmds.c (alias_command): Check for an existing alias
10705 using lookup_cmd_composition, as valid_command_p is too strict
10706 and forbids aliases that are the prefix of an existing alias
10708 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
10709 command is properly recognised as a valid command.
10711 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10713 * unittests/help-doc-selftests.c: Rename to
10714 unittests/command-def-selftests.c
10715 * unittests/command-def-selftests.c (help_doc_tests): Update some
10717 (command_structure_tests, traverse_command_structure): New namespace
10719 (command_structure_invariants_tests): New function.
10720 (_initialize_command_def_selftests) Renamed from
10721 _initialize_help_doc_selftests, register command_structure_invariants
10724 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10726 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
10727 an alias of 'show'.
10729 2020-05-15 Joel Brobecker <brobecker@adacore.com>
10731 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
10732 ada_is_fixed_point_type. Update all callers.
10733 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
10735 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
10736 Update all callers.
10737 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
10738 print_fixed_point_type. Update all callers.
10739 * ada-valprint.c (ada_value_print_num): Replace call to
10740 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
10742 2020-05-14 Kevin Buettner <kevinb@redhat.com>
10744 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
10746 (cpu_supports_bts): Add CV_AMD case.
10748 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
10749 Simon Marchi <simon.marchi@efficios.com>
10751 * infrun.c (stop_all_threads): Collect multiple wait events at
10754 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
10756 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
10757 type::code instead.
10759 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
10761 * gdbtypes.h (struct type) <code, set_code>: New methods.
10762 (TYPE_CODE): Use type::code. Change all call sites used to set
10763 the code to use type::set_code instead.
10765 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10766 Tom de Vries <tdevries@suse.de>
10767 Pedro Alves <palves@redhat.com>
10770 * infrun.c (stop_all_threads): Do NOT ignore
10771 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
10772 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
10774 (handle_no_resumed): Remove code handling a live inferior with no
10776 * remote.c (has_single_non_exited_thread): New.
10777 (remote_target::update_thread_list): Do not delete a thread if is
10778 the last thread of the process.
10779 * thread.c (thread_select): Call delete_exited_threads instead of
10782 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10784 * infrun.c (stop_all_threads): Enable/disable thread events of all
10785 targets. Move a debug message denoting the end of the function
10786 into the SCOPED_EXIT block.
10788 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10790 * process-stratum-target.h: Include <set>.
10791 (all_non_exited_process_targets, switch_to_target_no_thread): New
10792 function declarations.
10793 * process-stratum-target.c (all_non_exited_process_targets)
10794 (switch_to_target_no_thread): New function implementations.
10796 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10798 * infrun.c (handle_inferior_event): Extract out a piece of code
10800 (mark_non_executing_threads): ...this new function.
10802 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10804 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
10807 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10809 * regcache.c (regcache_read_pc_protected): New function
10810 implementation that returns 0 if the PC cannot read via
10811 'regcache_read_pc'.
10812 * infrun.c (proceed): Call 'regcache_read_pc_protected'
10813 instead of 'regcache_read_pc'.
10814 (keep_going_pass_signal): Ditto.
10816 2020-05-13 Tom Tromey <tromey@adacore.com>
10818 * ada-lang.c (align_value): Remove.
10819 (ada_template_to_fixed_record_type_1): Use align_up.
10821 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10823 * async-event.c: Update the copyright year.
10824 * async-event.h: Update the copyright year.
10826 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
10828 * objfiles.h (is_addr_in_objfile,
10829 shared_objfile_contains_address_p): Return bool.
10830 * objfile.c (is_addr_in_objfile,
10831 shared_objfile_contains_address_p): Return bool.
10833 2020-05-11 Tom Tromey <tromey@adacore.com>
10835 * cli/cli-cmds.c (info_command): Restore.
10836 (_initialize_cli_cmds): Use add_prefix_command for "info".
10837 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
10839 2020-05-11 Tom Tromey <tromey@adacore.com>
10841 * ada-lang.c (ada_value_primitive_field): Now public.
10842 * ada-lang.h (ada_value_primitive_field): Declare.
10843 * ada-valprint.c (print_field_values): Use
10844 ada_value_primitive_field for wrapper fields.
10846 2020-05-11 Tom de Vries <tdevries@suse.de>
10848 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
10851 2020-05-11 Tom de Vries <tdevries@suse.de>
10854 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
10855 with length 0, if not gdb-produced.
10856 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
10858 2020-05-09 Tom de Vries <tdevries@suse.de>
10861 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
10864 2020-05-09 Tom Tromey <tom@tromey.com>
10866 * top.c (server_command): Now bool.
10867 * top.h (server_command): Now bool.
10869 2020-05-08 Tom Tromey <tromey@adacore.com>
10871 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
10872 already being processed.
10874 2020-05-08 Tom Tromey <tom@tromey.com>
10876 * printcmd.c (struct display) <next>: Remove.
10877 <display>: New constructor.
10878 <exp_string>: Now a std::string.
10879 <enabled_p>: Now a bool.
10880 (display_number): Move definition earlier.
10881 (displays): Rename from display_chain. Now a std::vector.
10882 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
10883 (display_command): Update.
10884 (do_one_display, disable_display)
10885 (enable_disable_display_command, do_enable_disable_display):
10887 (free_display): Remove.
10888 (clear_displays): Rewrite.
10889 (delete_display): Update.
10890 (map_display_numbers): Use function_view. Remove "data"
10892 (do_delete_display): Remove.
10893 (undisplay_command): Update.
10894 (do_one_display, do_displays, disable_display)
10895 (info_display_command): Update.
10896 (do_enable_disable_display): Remove.
10897 (enable_disable_display_command)
10898 (clear_dangling_display_expressions): Update.
10900 2020-05-08 Tom Tromey <tom@tromey.com>
10902 * symtab.c (set_symbol_cache_size)
10903 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
10904 (maintenance_print_symbol_cache_statistics): Update.
10905 * symmisc.c (print_symbol_bcache_statistics)
10906 (print_objfile_statistics, maintenance_print_objfiles)
10907 (maintenance_info_symtabs, maintenance_check_symtabs)
10908 (maintenance_expand_symtabs, maintenance_info_line_tables):
10910 * symfile-debug.c (set_debug_symfile): Update.
10911 * source.c (forget_cached_source_info): Update.
10912 * python/python.c (gdbpy_progspaces): Update.
10913 * psymtab.c (maintenance_info_psymtabs): Update.
10914 * probe.c (parse_probes): Update.
10915 * linespec.c (iterate_over_all_matching_symtabs)
10916 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
10917 * guile/scm-progspace.c (gdbscm_progspaces): Update.
10918 * exec.c (exec_target::close): Update.
10919 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
10920 * breakpoint.c (print_one_breakpoint_location)
10921 (create_longjmp_master_breakpoint)
10922 (create_std_terminate_master_breakpoint): Update.
10923 * progspace.c (program_spaces): Now a std::vector.
10924 (maybe_new_address_space): Update.
10925 (add_program_space): Remove.
10926 (program_space::program_space): Update.
10927 (remove_program_space): Update.
10928 (number_of_program_spaces): Remove.
10929 (print_program_space, update_address_spaces): Update.
10930 * progspace.h (program_spaces): Change type.
10931 (ALL_PSPACES): Remove.
10932 (number_of_program_spaces): Don't declare.
10933 (struct program_space) <next>: Remove.
10935 2020-05-08 Tom Tromey <tom@tromey.com>
10937 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
10938 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
10939 (enable_break): Update.
10940 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
10941 (frv_fdpic_find_canonical_descriptor): Update.
10942 (frv_fetch_objfile_link_map): Update.
10943 * progspace.c (program_space::free_all_objfiles): Update.
10944 (program_space::solibs): New method.
10945 * progspace.h (struct program_space) <solibs>: New method.
10946 * solist.h (master_so_list): Don't declare.
10947 (ALL_SO_LIBS): Remove.
10948 * solib.h (so_list_head): Remove.
10949 (update_solib_list): Update comment.
10950 * solib.c (master_so_list): Remove.
10951 (solib_used, update_solib_list, solib_add)
10952 (info_sharedlibrary_command, clear_solib)
10953 (reload_shared_libraries_1, remove_user_added_objfile): Update.
10955 2020-05-08 Tom Tromey <tom@tromey.com>
10957 * extension.c (extension_languages): Now a std::array.
10958 (ALL_EXTENSION_LANGUAGES): Remove.
10959 (get_ext_lang_defn, get_ext_lang_of_file)
10960 (eval_ext_lang_from_control_command): Update.
10961 (finish_ext_lang_initialization)
10962 (auto_load_ext_lang_scripts_for_objfile)
10963 (ext_lang_type_printers::ext_lang_type_printers)
10964 (apply_ext_lang_type_printers)
10965 (ext_lang_type_printers::~ext_lang_type_printers)
10966 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
10967 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
10968 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
10969 (get_matching_xmethod_workers, ext_lang_colorize)
10970 (ext_lang_before_prompt): Update.
10971 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
10973 2020-05-08 Tom Tromey <tom@tromey.com>
10975 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
10977 <swap_string, m_string>: Remove.
10978 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
10980 * stabsread.c (define_symbol, read_type): Update.
10981 * linespec.c (find_linespec_symbols): Update.
10982 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
10983 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
10984 * dbxread.c (read_dbx_symtab): Update.
10985 * cp-support.h (cp_canonicalize_string_full)
10986 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
10987 Return unique_xmalloc_ptr.
10988 * cp-support.c (inspect_type): Update.
10989 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
10990 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
10992 * c-typeprint.c (print_name_maybe_canonical): Update.
10993 * break-catch-throw.c (check_status_exception_catchpoint):
10996 2020-05-08 Tom de Vries <tdevries@suse.de>
10998 * infrun.c (follow_fork): Copy current_line and current_symtab to
11001 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
11003 * async-event.c (struct async_signal_handler, struct
11004 async_event_handler): Reformat, remove typedef.
11006 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
11008 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
11009 access thistype->main_type->dyn_prop_list directly.
11011 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
11013 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
11014 (remove_dyn_prop): Remove. Update all users to use
11015 type::remove_dyn_prop.
11016 * gdbtypes.c (remove_dyn_prop): Rename to...
11017 (type::remove_dyn_prop): ... this.
11019 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
11021 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
11022 (add_dyn_prop): Remove. Update all users to use
11023 type::add_dyn_prop.
11024 * gdbtypes.c (add_dyn_prop): Rename to...
11025 (type::add_dyn_prop): ... this.
11027 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
11029 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
11030 (get_dyn_prop): Remove. Update all users to use
11032 * gdbtypes.c (get_dyn_prop): Rename to...
11033 (type::dyn_prop): ... this.
11035 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
11037 * gdbtypes.h (struct main_type) <flag_static>: Remove.
11039 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
11041 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
11042 instruction, skip it if it's there.
11044 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
11046 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
11048 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
11050 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
11051 * gdbtypes.c (recursive_dump_type): Remove use of
11054 2020-05-03 Tom Tromey <tom@tromey.com>
11056 * breakpoint.c (catch_command, tcatch_command): Remove.
11057 (_initialize_breakpoint): Use add_basic_prefix_cmd,
11058 add_show_prefix_cmd.
11059 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
11060 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
11062 (add_internal_problem_command): Use add_basic_prefix_cmd,
11063 add_show_prefix_cmd.
11064 * mips-tdep.c (set_mipsfpu_command): Remove.
11065 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
11066 * dwarf2/index-cache.c (set_index_cache_command): Remove.
11067 (_initialize_index_cache): Use add_basic_prefix_cmd.
11068 * memattr.c (dummy_cmd): Remove.
11069 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
11070 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
11071 (_initialize_tui_win): Use add_basic_prefix_cmd,
11072 add_show_prefix_cmd.
11073 * cli/cli-logging.c (set_logging_command): Remove.
11074 (_initialize_cli_logging): Use add_basic_prefix_cmd,
11075 add_show_prefix_cmd.
11076 (show_logging_command): Remove.
11077 * target.c (target_command): Remove.
11078 (add_target): Use add_basic_prefix_cmd.
11080 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
11082 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
11084 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11086 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
11089 2020-04-30 Kamil Rytarowski <n54@gmx.com>
11091 * nbsd-nat.c (nbsd_enable_proc_events)
11092 (nbsd_nat_target::post_startup_inferior): Add.
11093 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
11094 (nbsd_nat_target::update_thread_list): Rewrite.
11095 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
11096 "PTRACE_LWP_CREATE".
11097 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
11099 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11101 * stack.c (_initialize_stack): Remove duplicated creation
11102 of "frame" command and "f" alias.
11104 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
11107 * gdbtypes.c (check_typedef): Calculate size of array of
11110 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
11113 * i386-tdep.c (i386_push_dummy_call): Call
11114 i386_thiscall_push_dummy_call.
11115 (i386_thiscall_push_dummy_call): New function.
11116 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
11117 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
11118 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
11120 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11122 * gdbarch.sh (do_read): Add shellcheck disable directive for
11125 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11127 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
11128 "referenced but not assigned" warning.
11130 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11132 * gdbarch.sh: Remove code that sets fallbackdefault.
11134 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11136 * gdbarch.sh: Use shell operators && and || instead of
11139 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11141 * gdbarch.sh: Use $(...) instead of `...`.
11143 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11145 * gdbarch.sh: Use double quotes around variables.
11147 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11149 * gdbarch.sh: Use %s with printf, instead of variables in the
11152 2020-04-29 Tom Tromey <tromey@adacore.com>
11155 * dwarf2/read.c (update_enumeration_type_from_children): Compute
11157 (read_enumeration_type): Call
11158 update_enumeration_type_from_children later. Update comments.
11159 (process_enumeration_scope): Don't create type fields.
11161 2020-04-29 Kamil Rytarowski <n54@gmx.com>
11163 * nbsd-tdep.c: Include "xml-syscall.h".
11164 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
11166 2020-04-29 Kamil Rytarowski <n54@gmx.com>
11168 * nbsd-nat.c: Include "sys/wait.h".
11169 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
11170 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
11171 (nbsd_nat_target::remove_exec_catchpoint)
11172 (nbsd_nat_target::set_syscall_catchpoint): Add.
11173 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
11174 (nbsd_nat_target::insert_exec_catchpoint)
11175 (nbsd_nat_target::remove_exec_catchpoint)
11176 (nbsd_nat_target::set_syscall_catchpoint): Add.
11177 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
11178 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
11179 `nbsd_get_syscall_number'.
11181 2020-04-29 Tom Tromey <tom@tromey.com>
11183 * stack.c (print_block_frame_labels): Remove.
11185 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
11188 * ada-valprint.c (val_print_packed_array_elements): Move array
11189 end bracket to new line.
11190 (ada_val_print_string): Remove extra spaces before first array
11192 * c-valprint.c (c_value_print_array): Likewise.
11193 * m2-valprint.c (m2_print_array_contents): Likewise.
11194 (m2_value_print_inner): Likewise.
11195 * p-valprint.c (pascal_value_print_inner): Likewise.
11196 * valprint.c (generic_val_print_array): Likewise.
11197 (value_print_array_elements): Move first array element and array
11198 end bracket to new line.
11200 2020-04-29 Tom de Vries <tdevries@suse.de>
11203 * linespec.c (find_method): Fix ix calculation.
11205 2020-04-28 Kamil Rytarowski <n54@gmx.com>
11207 * syscalls/update-netbsd.sh: New file.
11208 * syscalls/netbsd.xml: Regenerate.
11209 * data-directory/Makefile.in: Register `netbsd.xml' in
11212 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
11214 * syscalls/update-freebsd.sh: Add double quotes.
11216 2020-04-28 Tom Tromey <tom@tromey.com>
11219 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
11220 (cmdpy_init): Allow class_tui.
11222 2020-04-28 Mark Williams <mark@myosotissp.com>
11225 * dwarf2read.c: Add missing assingments to list_in_scope when
11226 start_symtab was already called.
11228 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
11231 * dwarf2/read.c (offset_map_type): Use
11232 gdb:hash_enum<sect_offset> as hash function.
11234 2020-04-28 Tom de Vries <tdevries@suse.de>
11236 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
11237 with DW_AT_signature.
11239 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
11241 * configure.ac: Remove check for fs_base/gs_base in
11243 * configure: Re-generate.
11244 * config.in: Re-generate.
11245 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
11246 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
11247 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
11249 2020-04-27 Luis Machado <luis.machado@linaro.org>
11251 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
11252 problematic inline frame unwinding situation.
11253 * frame.c (frame_id_computed_p): New function.
11254 * frame.h (frame_id_computed_p): New prototype.
11256 2020-04-26 Tom Tromey <tom@tromey.com>
11258 * command.h (enum command_class) <class_pseudo>: Remove.
11260 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11262 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
11265 2020-04-25 Kamil Rytarowski <n54@gmx.com>
11267 * inf-ptrace.c (inf_ptrace_target::wait): Remove
11268 `PT_GET_PROCESS_STATE' block.
11270 2020-04-24 Tom Tromey <tom@tromey.com>
11272 * symtab.h (symbol_get_demangled_name): Don't declare.
11273 * symtab.c (symbol_get_demangled_name): Remove.
11274 (general_symbol_info::natural_name)
11275 (general_symbol_info::demangled_name): Update.
11277 2020-04-24 Tom Tromey <tom@tromey.com>
11280 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
11282 2020-04-24 Tom Tromey <tom@tromey.com>
11285 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
11287 (new_symbol): Likewise.
11288 * compile/compile-object-load.c (get_out_value_type): Use
11289 symbol_matches_search_name.
11291 2020-04-24 Tom Tromey <tom@tromey.com>
11293 * dwarf2/read.c (add_partial_symbol): Do not call
11294 compute_and_set_names.
11296 2020-04-24 Tom Tromey <tom@tromey.com>
11298 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
11301 2020-04-24 Tom Tromey <tom@tromey.com>
11303 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
11304 (add_psymbol_to_list): New overload. Make old overload call new
11306 * psympriv.h (add_psymbol_to_list): New overload.
11308 2020-04-24 Tom Tromey <tom@tromey.com>
11310 * dwarf2/read.c (partial_die_info::read) <case
11311 DW_AT_linkage_name>: Use value_as_string.
11312 (dwarf2_string_attr): Use value_as_string.
11313 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
11315 * dwarf2/attribute.c (attribute::value_as_string): New method.
11317 2020-04-24 Tom Tromey <tom@tromey.com>
11319 * symtab.c (general_symbol_info::natural_name)
11320 (general_symbol_info::demangled_name): Check for language_rust.
11322 2020-04-24 Tom Tromey <tom@tromey.com>
11324 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
11325 (dwarf2_physname): ... from here.
11326 (partial_die_info::read): Add Rust "{" hack.
11328 2020-04-24 Tom Tromey <tom@tromey.com>
11330 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
11332 (symbol_set_demangled_name): Don't declare.
11333 * symtab.c (general_symbol_info::set_demangled_name): Rename from
11334 symbol_set_demangled_name.
11335 (general_symbol_info::set_language)
11336 (general_symbol_info::compute_and_set_names): Update.
11337 * minsyms.c (minimal_symbol_reader::install): Update.
11338 * dwarf2/read.c (new_symbol): Update.
11340 2020-04-24 Tom Tromey <tromey@adacore.com>
11343 * python/py-type.c (convert_field): Handle
11344 FIELD_LOC_KIND_DWARF_BLOCK.
11345 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
11346 (typy_get_dynamic): Nw function.
11347 (type_object_getset): Add "dynamic".
11350 2020-04-24 Tom Tromey <tromey@adacore.com>
11352 * ada-typeprint.c (print_choices, print_variant_part)
11353 (print_record_field_types_dynamic): New functions.
11354 (print_record_field_types): Use print_record_field_types_dynamic.
11356 2020-04-24 Tom Tromey <tromey@adacore.com>
11358 * dwarf2/read.c (handle_data_member_location): New overload.
11359 (dwarf2_add_field): Use it.
11360 (decode_locdesc): Add "computed" parameter. Update comment.
11361 * gdbtypes.c (is_dynamic_type_internal): Also look for
11362 FIELD_LOC_KIND_DWARF_BLOCK.
11363 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
11364 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
11365 virtual base classes.
11366 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
11367 FIELD_LOC_KIND_DWARF_BLOCK.
11369 2020-04-24 Tom Tromey <tromey@adacore.com>
11371 * dwarf2/read.c (read_structure_type): Handle dynamic length.
11372 * gdbtypes.c (is_dynamic_type_internal): Check
11373 TYPE_HAS_DYNAMIC_LENGTH.
11374 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
11375 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
11377 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
11380 2020-04-24 Tom Tromey <tromey@adacore.com>
11382 * dwarf2/read.c (struct variant_field): Rewrite.
11383 (struct variant_part_builder): New.
11384 (struct nextfield): Remove "variant" field. Add "offset".
11385 (struct field_info): Add "current_variant_part" and
11387 (alloc_discriminant_info): Remove.
11388 (alloc_rust_variant): New function.
11389 (quirk_rust_enum): Update.
11390 (dwarf2_add_field): Set "offset" member. Don't handle
11391 DW_TAG_variant_part.
11392 (offset_map_type): New typedef.
11393 (convert_variant_range, create_one_variant)
11394 (create_one_variant_part, create_variant_parts)
11395 (add_variant_property): New functions.
11396 (dwarf2_attach_fields_to_type): Call add_variant_property.
11397 (read_structure_type): Don't handle DW_TAG_variant_part.
11398 (handle_variant_part, handle_variant): New functions.
11399 (handle_struct_member_die): Use them.
11400 (process_structure_scope): Don't handle variant parts.
11401 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
11402 (struct discriminant_info): Remove.
11403 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
11404 (struct main_type) <flag_discriminated_union>: Remove.
11405 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
11406 (rust_enum_variant): Return int. Remove "contents". Rewrite.
11407 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
11409 * valops.c (value_union_variant): Remove.
11410 * value.h (value_union_variant): Don't declare.
11412 2020-04-24 Tom Tromey <tromey@adacore.com>
11414 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
11415 (ada_value_primitive_packed_val): Update.
11416 * ada-valprint.c (ada_value_print_1): Update.
11417 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
11418 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
11419 just an address. Use evaluate_for_locexpr_baton.
11420 (dwarf2_evaluate_property): Update.
11421 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
11423 * findvar.c (default_read_var_value): Update.
11424 * gdbtypes.c (compute_variant_fields_inner)
11425 (resolve_dynamic_type_internal): Update.
11426 (resolve_dynamic_type): Change type of valaddr parameter.
11427 * gdbtypes.h (resolve_dynamic_type): Update.
11428 * valarith.c (value_subscripted_rvalue): Update.
11429 * value.c (value_from_contents_and_address): Update.
11431 2020-04-24 Tom Tromey <tromey@adacore.com>
11433 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
11434 "push_initial_value" parameter.
11435 (dwarf2_evaluate_property): Likewise.
11436 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
11438 2020-04-24 Tom Tromey <tromey@adacore.com>
11440 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
11441 (variant::matches, compute_variant_fields_recurse)
11442 (compute_variant_fields_inner, compute_variant_fields): New
11444 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
11445 Use resolved_type after type is made.
11446 (operator==): Add new cases.
11447 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
11448 (struct discriminant_range, struct variant, struct variant_part):
11450 (union dynamic_prop_data) <variant_parts, original_type>: New
11452 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
11453 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
11455 * value.c (unpack_bits_as_long): Now public.
11456 * value.h (unpack_bits_as_long): Declare.
11458 2020-04-24 Tom Tromey <tromey@adacore.com>
11460 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
11461 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
11463 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
11465 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
11467 2020-04-24 Kamil Rytarowski <n54@gmx.com>
11469 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
11470 (remove_fork_catchpoint, post_startup_inferior)
11471 (post_attach): Move...
11472 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
11473 (remove_fork_catchpoint, post_startup_inferior)
11474 (post_attach): ...here.
11475 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
11476 (remove_fork_catchpoint, post_startup_inferior)
11477 (post_attach): Move...
11478 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
11479 (remove_fork_catchpoint, post_startup_inferior)
11480 (post_attach): ...here.
11482 2020-04-24 Tom Tromey <tromey@adacore.com>
11484 * nat/windows-nat.h (struct windows_thread_info)
11485 <pc_adjusted>: New member.
11486 * windows-nat.c (windows_fetch_one_register): Check
11488 (windows_nat_target::get_windows_debug_event)
11489 (windows_nat_target::wait): Set pc_adjusted.
11491 2020-04-24 Tom de Vries <tdevries@suse.de>
11493 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
11494 Run gdb-add-index inside temp dir.
11496 2020-04-23 Tom Tromey <tromey@adacore.com>
11498 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
11501 2020-04-23 Luis Machado <luis.machado@linaro.org>
11503 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
11504 get_frame_register instead of gdbarch_unwind_pc.
11506 2020-04-23 Tom de Vries <tdevries@suse.de>
11508 * symtab.c (lookup_global_symbol): Prefer def over decl.
11510 2020-04-23 Tom de Vries <tdevries@suse.de>
11513 * block.c (best_symbol, better_symbol): Promote to external.
11514 * block.h (best_symbol, better_symbol): Declare.
11515 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
11518 2020-04-23 Tom Tromey <tromey@adacore.com>
11521 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
11522 "const char *", not a "const std::string &".
11523 <name_and_matcher::operator==>: Update.
11524 * unittests/lookup_name_info-selftests.c: Change type of
11527 2020-04-23 Tom Tromey <tom@tromey.com>
11529 * inferior.h (iterate_over_inferiors): Don't declare.
11530 * inferior.c (iterate_over_inferiors): Remove.
11531 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
11533 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
11534 use iterate_over_inferiors.
11535 (darwin_resume_inferior_it)
11536 (struct resume_inferior_threads_param)
11537 (darwin_resume_inferior_threads_it): Remove.
11538 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
11540 2020-04-23 Tom de Vries <tdevries@suse.de>
11542 * blockframe.c (find_pc_partial_function): Use
11543 find_pc_sect_compunit_symtab rather than
11544 objfile->sf->qf->find_pc_sect_compunit_symtab.
11546 2020-04-22 Tom de Vries <tdevries@suse.de>
11549 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
11552 2020-04-22 Tom de Vries <tdevries@suse.de>
11555 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
11558 2020-04-22 Tom de Vries <tdevries@suse.de>
11561 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
11562 CU if already created.
11564 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11566 * infrun.c (displaced_step_fixup): Switch to the event_thread
11567 before calling displaced_step_restore, not after.
11569 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11571 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
11572 its inferior is not recorded by us.
11573 (record_btrace_target_open): Replace call to
11574 all_non_exited_threads () with call to current_inferior
11575 ()->non_exited_threads ().
11576 (record_btrace_target::stop_recording): Likewise.
11577 (record_btrace_target::close): Likewise.
11578 (record_btrace_target::wait): Likewise.
11579 (record_btrace_target::record_stop_replaying): Likewise.
11581 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11583 * btrace.c (btrace_enable): Throw an error on double enables and
11584 when enabling recording fails.
11585 (btrace_disable): Throw an error if the thread is not recorded.
11587 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11589 * record-btrace.c (record_btrace_target::fetch_registers): Forward
11590 request if we do not have a thread_info.
11592 2020-04-21 Tom de Vries <tdevries@suse.de>
11596 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
11597 exception in get_frame_id.
11599 2020-04-20 Tom Tromey <tromey@adacore.com>
11601 * python/python.c (struct gdbpy_event): Mark move constructor as
11603 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
11604 constructor as noexcept.
11605 * completer.h (struct completion_result): Mark move constructor as
11607 * completer.c (completion_result::completion_result): Use
11608 initialization style. Don't call reset_match_list.
11610 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
11612 * MAINTAINERS (Write After Approval): Add myself.
11614 2020-04-18 Tom Tromey <tom@tromey.com>
11616 * windows-tdep.c (init_w32_command_list)
11617 (w32_prefix_command_valid): Restore.
11618 (_initialize_windows_tdep): Call init_w32_command_list.
11620 2020-04-18 Tom Tromey <tom@tromey.com>
11622 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
11623 * value.c (value_fn_field): Update.
11624 * valops.c (find_function_in_inferior)
11625 (value_allocate_space_in_inferior): Update.
11626 * tui/tui-winsource.c (tui_update_source_windows_with_line):
11628 * tui/tui-source.c (tui_source_window::set_contents): Update.
11629 * symtab.c (lookup_global_or_static_symbol)
11630 (find_function_start_sal_1, skip_prologue_sal)
11631 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
11632 * symmisc.c (dump_msymbols, dump_symtab_1)
11633 (maintenance_print_one_line_table): Update.
11634 * symfile.c (init_entry_point_info, section_is_mapped)
11635 (list_overlays_command, simple_read_overlay_table)
11636 (simple_overlay_update_1): Update.
11637 * stap-probe.c (handle_stap_probe): Update.
11638 * stabsread.c (dbx_init_float_type, define_symbol)
11639 (read_one_struct_field, read_enum_type, read_range_type): Update.
11640 * source.c (info_line_command): Update.
11641 * python/python.c (gdbpy_source_objfile_script)
11642 (gdbpy_execute_objfile_script): Update.
11643 * python/py-type.c (save_objfile_types): Update.
11644 * python/py-objfile.c (py_free_objfile): Update.
11645 * python/py-inferior.c (python_new_objfile): Update.
11646 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
11647 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
11648 (maintenance_check_psymtabs): Update.
11649 * printcmd.c (info_address_command): Update.
11650 * objfiles.h (struct objfile) <arch>: New method, from
11652 (get_objfile_arch): Don't declare.
11653 * objfiles.c (get_objfile_arch): Remove.
11654 (filter_overlapping_sections): Update.
11655 * minsyms.c (msymbol_is_function): Update.
11656 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
11657 (output_nondebug_symbol): Update.
11658 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
11659 (mdebug_expand_psymtab): Update.
11660 * machoread.c (macho_add_oso_symfile): Update.
11661 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
11663 * linux-fork.c (checkpoint_command): Update.
11664 * linespec.c (convert_linespec_to_sals): Update.
11665 * jit.c (finalize_symtab): Update.
11666 * infrun.c (insert_exception_resume_from_probe): Update.
11667 * ia64-tdep.c (ia64_find_unwind_table): Update.
11668 * hppa-tdep.c (internalize_unwinds): Update.
11669 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
11671 * gcore.c (call_target_sbrk): Update.
11672 * elfread.c (record_minimal_symbol, elf_symtab_read)
11673 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
11674 (elf_gnu_ifunc_resolve_by_got): Update.
11675 * dwarf2/read.c (create_addrmap_from_index)
11676 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11677 (read_debug_names_from_section)
11678 (process_psymtab_comp_unit_reader, add_partial_symbol)
11679 (add_partial_subprogram, process_full_comp_unit)
11680 (read_file_scope, read_func_scope, read_lexical_block_scope)
11681 (read_call_site_scope, dwarf2_ranges_read)
11682 (dwarf2_record_block_ranges, dwarf2_add_field)
11683 (mark_common_block_symbol_computed, read_tag_pointer_type)
11684 (read_tag_string_type, dwarf2_init_float_type)
11685 (dwarf2_init_complex_target_type, read_base_type)
11686 (partial_die_info::read, partial_die_info::read)
11687 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
11688 (dwarf2_fetch_die_loc_sect_off): Update.
11689 * dwarf2/loc.c (dwarf2_find_location_expression)
11690 (class dwarf_evaluate_loc_desc, rw_pieced_value)
11691 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
11692 (dwarf2_loc_desc_get_symbol_read_needs)
11693 (locexpr_describe_location_piece, locexpr_describe_location_1)
11694 (loclist_describe_location): Update.
11695 * dwarf2/index-write.c (write_debug_names): Update.
11696 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
11697 * dtrace-probe.c (dtrace_process_dof): Update.
11698 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
11699 (process_one_symbol): Update.
11700 * ctfread.c (ctf_init_float_type, read_base_type): Update.
11701 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
11702 (coff_read_enum_type): Update.
11703 * cli/cli-cmds.c (edit_command, list_command): Update.
11704 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
11705 * breakpoint.c (create_overlay_event_breakpoint)
11706 (create_longjmp_master_breakpoint)
11707 (create_std_terminate_master_breakpoint)
11708 (create_exception_master_breakpoint, get_sal_arch): Update.
11709 * block.c (block_gdbarch): Update.
11710 * annotate.c (annotate_source_line): Update.
11712 2020-04-17 Tom Tromey <tromey@adacore.com>
11714 * auto-load.c (show_auto_load_cmd): Remove.
11715 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
11716 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
11717 (maintenance_print_arc_command): Remove.
11718 * tui/tui-win.c (tui_command): Remove.
11719 (tui_get_cmd_list): Use add_basic_prefix_cmd.
11720 * tui/tui-layout.c (tui_layout_command): Remove.
11721 (_initialize_tui_layout): Use add_basic_prefix_cmd.
11722 * python/python.c (user_set_python, user_show_python): Remove.
11723 (_initialize_python): Use add_basic_prefix_cmd,
11724 add_show_prefix_cmd.
11725 * guile/guile.c (set_guile_command, show_guile_command): Remove.
11726 (install_gdb_commands): Use add_basic_prefix_cmd,
11727 add_show_prefix_cmd.
11728 (info_guile_command): Remove.
11729 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
11730 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
11731 add_show_prefix_cmd.
11732 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
11733 Remove do_set and do_show parameters.
11734 * cli/cli-style.c (set_style, show_style): Remove.
11735 (_initialize_cli_style): Use add_basic_prefix_cmd,
11736 add_show_prefix_cmd.
11737 (cli_style_option::add_setshow_commands): Remove do_set and
11738 do_show parameters.
11739 (cli_style_option::add_setshow_commands): Use
11740 add_basic_prefix_cmd, add_show_prefix_cmd.
11741 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
11742 (set_style_name): Remove.
11743 * cli/cli-dump.c (dump_command, append_command): Remove.
11744 (srec_dump_command, ihex_dump_command, verilog_dump_command)
11745 (tekhex_dump_command, binary_dump_command)
11746 (binary_append_command): Remove.
11747 (_initialize_cli_dump): Use add_basic_prefix_cmd.
11748 * windows-tdep.c (w32_prefix_command_valid): Remove global.
11749 (init_w32_command_list): Remove; move into ...
11750 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
11751 * valprint.c (set_print, show_print, set_print_raw)
11752 (show_print_raw): Remove.
11753 (_initialize_valprint): Use add_basic_prefix_cmd,
11754 add_show_prefix_cmd.
11755 * typeprint.c (set_print_type, show_print_type): Remove.
11756 (_initialize_typeprint): Use add_basic_prefix_cmd,
11757 add_show_prefix_cmd.
11758 * record.c (set_record_command, show_record_command): Remove.
11759 (_initialize_record): Use add_basic_prefix_cmd,
11760 add_show_prefix_cmd.
11761 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
11762 add_show_prefix_cmd.
11763 (info_command, show_command, set_debug, show_debug): Remove.
11764 * top.h (set_history, show_history): Don't declare.
11765 * top.c (set_history, show_history): Remove.
11766 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
11767 (unset_tdesc_cmd): Remove.
11768 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
11769 add_show_prefix_cmd.
11770 * symtab.c (info_module_command): Remove.
11771 (_initialize_symtab): Use add_basic_prefix_cmd.
11772 * symfile.c (overlay_command): Remove.
11773 (_initialize_symfile): Use add_basic_prefix_cmd.
11774 * sparc64-tdep.c (info_adi_command): Remove.
11775 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
11776 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
11777 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
11778 add_show_prefix_cmd.
11779 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
11780 (_initialize_serial): Use add_basic_prefix_cmd,
11781 add_show_prefix_cmd.
11782 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
11783 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
11784 add_show_prefix_cmd.
11785 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
11786 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
11787 add_show_prefix_cmd.
11788 * riscv-tdep.c (show_riscv_command, set_riscv_command)
11789 (show_debug_riscv_command, set_debug_riscv_command): Remove.
11790 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
11791 add_show_prefix_cmd.
11792 * remote.c (remote_command, set_remote_cmd): Remove.
11793 (_initialize_remote): Use add_basic_prefix_cmd.
11794 * record-full.c (set_record_full_command)
11795 (show_record_full_command): Remove.
11796 (_initialize_record_full): Use add_basic_prefix_cmd,
11797 add_show_prefix_cmd.
11798 * record-btrace.c (cmd_set_record_btrace)
11799 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
11800 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
11801 (cmd_show_record_btrace_pt): Remove.
11802 (_initialize_record_btrace): Use add_basic_prefix_cmd,
11803 add_show_prefix_cmd.
11804 * ravenscar-thread.c (set_ravenscar_command)
11805 (show_ravenscar_command): Remove.
11806 (_initialize_ravenscar): Use add_basic_prefix_cmd,
11807 add_show_prefix_cmd.
11808 * mips-tdep.c (show_mips_command, set_mips_command)
11809 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
11810 add_show_prefix_cmd.
11811 * maint.c (maintenance_command, maintenance_info_command)
11812 (maintenance_check_command, maintenance_print_command)
11813 (maintenance_set_cmd, maintenance_show_cmd): Remove.
11814 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
11815 add_show_prefix_cmd.
11816 (show_per_command_cmd): Remove.
11817 * maint-test-settings.c (maintenance_set_test_settings_cmd):
11819 (maintenance_show_test_settings_cmd): Remove.
11820 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
11821 add_show_prefix_cmd.
11822 * maint-test-options.c (maintenance_test_options_command):
11824 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
11825 * macrocmd.c (macro_command): Remove
11826 (_initialize_macrocmd): Use add_basic_prefix_cmd.
11827 * language.c (set_check, show_check): Remove.
11828 (_initialize_language): Use add_basic_prefix_cmd,
11829 add_show_prefix_cmd.
11830 * infcmd.c (unset_command): Remove.
11831 (_initialize_infcmd): Use add_basic_prefix_cmd.
11832 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
11833 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
11834 add_show_prefix_cmd.
11835 * go32-nat.c (go32_info_dos_command): Remove.
11836 (_initialize_go32_nat): Use add_basic_prefix_cmd.
11837 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
11838 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
11839 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
11840 (_initialize_frame): Use add_basic_prefix_cmd,
11841 add_show_prefix_cmd.
11842 * dcache.c (set_dcache_command, show_dcache_command): Remove.
11843 (_initialize_dcache): Use add_basic_prefix_cmd,
11844 add_show_prefix_cmd.
11845 * cp-support.c (maint_cplus_command): Remove.
11846 (_initialize_cp_support): Use add_basic_prefix_cmd.
11847 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
11848 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
11849 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
11850 add_basic_prefix_cmd, add_show_prefix_cmd.
11851 * breakpoint.c (save_command): Remove.
11852 (_initialize_breakpoint): Use add_basic_prefix_cmd.
11853 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
11854 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
11855 add_show_prefix_cmd.
11856 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
11857 (set_ada_command, show_ada_command): Remove.
11858 (_initialize_ada_language): Use add_basic_prefix_cmd,
11859 add_show_prefix_cmd.
11860 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
11862 2020-04-16 Kamil Rytarowski <n54@gmx.com>
11864 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
11865 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
11867 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
11869 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
11872 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
11874 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
11875 import table is not at beginning of .idata section.
11877 2020-04-16 Pedro Alves <palves@redhat.com>
11879 * inferior.c (delete_inferior): Use delete operator directly
11880 instead of delete_program_space.
11881 * progspace.c (add_program_space): New, factored out from
11882 program_space::program_space.
11883 (remove_program_space): New, factored out from
11884 delete_program_space.
11885 (program_space::program_space): Remove intro comment. Rewrite.
11886 (program_space::~program_space): Remove intro comment. Call
11887 remove_program_space.
11888 (delete_program_space): Delete.
11889 * progspace.h (program_space::program_space): Make explicit. Move
11890 intro comment here, adjusted.
11891 (program_space::~program_space): Move intro comment here,
11893 (delete_program_space): Remove.
11895 2020-04-16 Tom Tromey <tromey@adacore.com>
11897 * windows-nat.c (windows_nat::handle_access_violation): New
11899 * nat/windows-nat.h (handle_access_violation): Declare.
11900 * nat/windows-nat.c (handle_exception): Move Cygwin code to
11901 windows-nat.c. Call handle_access_violation.
11903 2020-04-16 Tom de Vries <tdevries@suse.de>
11906 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
11907 CUs without psymtab.
11909 2020-04-16 Kevin Buettner <kevinb@redhat.com>
11911 * python/python.c (do_start_initialization): Don't call
11912 PyEval_InitThreads for Python 3.9 and beyond.
11914 2020-04-15 Kamil Rytarowski <n54@gmx.com>
11916 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
11918 (obsd_nat_target::wait): Likewise.
11920 2020-04-15 Tom Tromey <tromey@adacore.com>
11922 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
11923 (DEBUG_EXCEPT): Use debug_printf.
11925 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
11927 * completer.c (class completion_tracker::completion_hash_entry)
11928 <hash_name>: New member function.
11929 (completion_tracker::discard_completions): New callback to hash a
11930 completion_hash_entry, pass this to htab_create_alloc.
11932 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
11934 * windows-nat.c (windows_make_so): Warn rather than stopping with
11935 an error if realpath() fails.
11937 2020-04-14 Kamil Rytarowski <n54@gmx.com>
11939 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
11940 (nbsd_nat_target::info_proc): Add do_status.
11942 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
11943 Tom de Vries <tdevries@suse.de>
11946 * psympriv.h (struct partial_symtab::read_symtab)
11947 (struct partial_symtab::expand_psymtab)
11948 (struct partial_symtab::read_dependencies): Update comments.
11949 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
11950 read_symtab for includer.
11951 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
11952 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
11953 (struct dwarf2_include_psymtab::m_readin): Remove.
11954 (struct dwarf2_include_psymtab::includer): New member function.
11955 (dwarf2_psymtab::expand_psymtab): Assert !readin.
11957 2020-04-14 Tom de Vries <tdevries@suse.de>
11960 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
11961 with NULL symbol_matcher and lookup_name.
11962 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
11964 * dwarf2/read.c (dw2_expand_symtabs_matching)
11965 (dw2_debug_names_expand_symtabs_matching): Same.
11966 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
11967 Make lookup_name a pointer. Update comment.
11968 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
11969 lookup_name being a pointer.
11970 * symfile.c (expand_symtabs_matching): Same.
11971 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
11972 * linespec.c (iterate_over_all_matching_symtabs): Same.
11974 2020-04-13 Tom Tromey <tom@tromey.com>
11976 * run-on-main-thread.c: Update include.
11977 * unittests/main-thread-selftests.c: Update include.
11978 * tui/tui-win.c: Update include.
11979 * tui/tui-io.c: Update include.
11980 * tui/tui-interp.c: Update include.
11981 * tui/tui-hooks.c: Update include.
11982 * top.h: Update include.
11983 * top.c: Update include.
11984 * ser-base.c: Update include.
11985 * remote.c: Update include.
11986 * remote-notif.c: Update include.
11987 * remote-fileio.c: Update include.
11988 * record-full.c: Update include.
11989 * record-btrace.c: Update include.
11990 * python/python.c: Update include.
11991 * posix-hdep.c: Update include.
11992 * mingw-hdep.c: Update include.
11993 * mi/mi-main.c: Update include.
11994 * mi/mi-interp.c: Update include.
11995 * main.c: Update include.
11996 * linux-nat.c: Update include.
11997 * interps.c: Update include.
11998 * infrun.c: Update include.
11999 * inf-loop.c: Update include.
12000 * event-top.c: Update include.
12001 * event-loop.c: Move to ../gdbsupport/.
12002 * event-loop.h: Move to ../gdbsupport/.
12003 * async-event.h: Update include.
12004 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
12006 2020-04-13 Tom Tromey <tom@tromey.com>
12008 * tui/tui-win.c: Include async-event.h.
12009 * remote.c: Include async-event.h.
12010 * remote-notif.c: Include async-event.h.
12011 * record-full.c: Include async-event.h.
12012 * record-btrace.c: Include async-event.h.
12013 * infrun.c: Include async-event.h.
12014 * event-top.c: Include async-event.h.
12015 * event-loop.h: Move some declarations to async-event.h.
12016 * event-loop.c: Don't include ser-event.h or top.h. Move some
12017 code to async-event.c.
12018 * async-event.h: New file.
12019 * async-event.c: New file.
12020 * Makefile.in (COMMON_SFILES): Add async-event.c.
12021 (HFILES_NO_SRCDIR): Add async-event.h.
12023 2020-04-13 Tom Tromey <tom@tromey.com>
12025 * utils.c (flush_streams): New function.
12026 * event-loop.c (gdb_wait_for_event): Call flush_streams.
12028 2020-04-13 Tom Tromey <tom@tromey.com>
12030 * event-loop.c (handle_file_event): Use warning, not
12033 2020-04-13 Tom Tromey <tom@tromey.com>
12035 * event-loop.c: Include <chrono>.
12037 2020-04-13 Tom Tromey <tom@tromey.com>
12039 * gdb_select.h: Move to ../gdbsupport/.
12040 * event-loop.c: Update include path.
12041 * top.c: Update include path.
12042 * ser-base.c: Update include path.
12043 * ui-file.c: Update include path.
12044 * ser-tcp.c: Update include path.
12045 * guile/scm-ports.c: Update include path.
12046 * posix-hdep.c: Update include path.
12047 * ser-unix.c: Update include path.
12048 * gdb_usleep.c: Update include path.
12049 * mingw-hdep.c: Update include path.
12050 * inflow.c: Update include path.
12051 * infrun.c: Update include path.
12052 * event-top.c: Update include path.
12054 2020-04-13 Tom Tromey <tom@tromey.com>
12056 * configure: Rebuild.
12057 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
12059 2020-04-13 Tom Tromey <tom@tromey.com>
12061 * event-loop.h (start_event_loop): Don't declare.
12062 * event-loop.c (start_event_loop): Move...
12063 * main.c (start_event_loop): ...here. Now static.
12065 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
12067 * MAINTAINERS: Update my email address.
12069 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12071 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
12074 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12076 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
12077 (nbsd_nat_target::info_proc): Add do_cmdline.
12079 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12081 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
12082 (nbsd_nat_target::info_proc): Add do_cwd.
12084 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12086 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
12088 2020-04-11 Kamil Rytarowski <n54@gmx.com>
12090 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
12091 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
12092 (nbsd_nat_target::info_proc): New functions.
12093 * nbsd-nat.c (kinfo_get_vmmap): New function.
12094 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
12095 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
12096 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
12097 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
12099 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
12100 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
12101 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
12102 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
12103 (KINFO_VME_FLAG_GROWS_DOWN): New.
12105 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
12107 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
12110 2020-04-10 Tom Tromey <tromey@adacore.com>
12112 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
12114 2020-04-10 Tom Tromey <tromey@adacore.com>
12116 * symtab.c (get_symbol_address, get_msymbol_address): Skip
12117 separate debug files.
12119 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
12121 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
12123 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
12125 * windows-nat.c (windows_nat_target::get_windows_debug_event):
12126 Check for STATUS_WX86_BREAKPOINT.
12127 (windows_nat_target::wait): Same.
12129 2020-04-10 Tom de Vries <tdevries@suse.de>
12132 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
12134 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12136 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
12137 (Write After Approval): Remove Tom de Vries.
12139 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
12142 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12144 * buildsym.c (record_line): Fix undefined behavior and preserve
12147 2020-04-09 Kamil Rytarowski <n54@gmx.com>
12149 * auxv.h (svr4_auxv_parse): New.
12150 * auxv.c (default_auxv_parse): Split into default_auxv_parse
12151 and generic_auxv_parse.
12152 (svr4_auxv_parse): Add.
12153 * obsd-tdep.c: Include "auxv.h".
12154 (obsd_auxv_parse): Remove.
12155 (obsd_init_abi): Remove comment.
12156 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
12157 from `obsd_auxv_parse' to `svr4_auxv_parse'.
12158 * nbsd-tdep.c: Include "auxv.h".
12159 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
12161 2020-04-08 Tom Tromey <tromey@adacore.com>
12163 * nat/windows-nat.h (last_wait_event): Don't declare.
12164 (wait_for_debug_event): Update comment.
12165 * nat/windows-nat.c (last_wait_event): Now static.
12167 2020-04-08 Tom Tromey <tromey@adacore.com>
12169 * windows-nat.c (wait_for_debug_event): Move to
12171 * nat/windows-nat.h (wait_for_debug_event): Declare.
12172 * nat/windows-nat.c (wait_for_debug_event): Move from
12173 windows-nat.c. No longer static.
12175 2020-04-08 Tom Tromey <tromey@adacore.com>
12177 * windows-nat.c (get_windows_debug_event): Use
12178 fetch_pending_stop.
12179 * nat/windows-nat.h (fetch_pending_stop): Declare.
12180 * nat/windows-nat.c (fetch_pending_stop): New function.
12182 2020-04-08 Tom Tromey <tromey@adacore.com>
12184 * windows-nat.c (windows_continue): Use matching_pending_stop and
12185 continue_last_debug_event.
12186 * nat/windows-nat.h (matching_pending_stop)
12187 (continue_last_debug_event): Declare.
12188 * nat/windows-nat.c (DEBUG_EVENTS): New define.
12189 (matching_pending_stop, continue_last_debug_event): New
12192 2020-04-08 Tom Tromey <tromey@adacore.com>
12194 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
12195 (handle_exception_result): Move to nat/windows-nat.h.
12196 (DEBUG_EXCEPTION_SIMPLE): Remove.
12197 (windows_nat::handle_ms_vc_exception): New function.
12198 (handle_exception): Move to nat/windows-nat.c.
12199 (get_windows_debug_event): Update.
12200 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
12202 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
12203 (handle_exception_result): Move from windows-nat.c.
12204 (handle_exception): Declare.
12205 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
12206 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
12209 2020-04-08 Tom Tromey <tromey@adacore.com>
12211 * windows-nat.c (exception_count, event_count): Remove.
12212 (handle_exception, get_windows_debug_event)
12213 (do_initial_windows_stuff): Update.
12215 2020-04-08 Tom Tromey <tromey@adacore.com>
12217 * windows-nat.c (windows_nat::handle_load_dll)
12218 (windows_nat::handle_unload_dll): Rename. No longer static.
12219 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
12222 2020-04-08 Tom Tromey <tromey@adacore.com>
12224 * complaints.h (stop_whining): Declare at top-level.
12225 (complaint): Don't declare stop_whining.
12227 2020-04-08 Tom Tromey <tromey@adacore.com>
12229 * windows-nat.c (windows_nat::handle_output_debug_string):
12230 Rename. No longer static.
12231 * nat/windows-nat.h (handle_output_debug_string): Declare.
12233 2020-04-08 Tom Tromey <tromey@adacore.com>
12235 * windows-nat.c (current_process_handle, current_process_id)
12236 (main_thread_id, last_sig, current_event, last_wait_event)
12237 (current_windows_thread, desired_stop_thread_id, pending_stops)
12238 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
12239 (display_selectors, fake_create_process)
12240 (get_windows_debug_event): Update.
12241 * nat/windows-nat.h (current_process_handle, current_process_id)
12242 (main_thread_id, last_sig, current_event, last_wait_event)
12243 (current_windows_thread, desired_stop_thread_id, pending_stops)
12244 (struct pending_stop, siginfo_er): Move from windows-nat.c.
12245 * nat/windows-nat.c (current_process_handle, current_process_id)
12246 (main_thread_id, last_sig, current_event, last_wait_event)
12247 (current_windows_thread, desired_stop_thread_id, pending_stops)
12248 (siginfo_er): New globals. Move from windows-nat.c.
12250 2020-04-08 Tom Tromey <tromey@adacore.com>
12252 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
12253 (handle_load_dll): Update.
12254 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
12256 2020-04-08 Tom Tromey <tromey@adacore.com>
12258 * windows-nat.c (enum thread_disposition_type): Move to
12260 (windows_nat::thread_rec): Rename from thread_rec. No longer
12262 (windows_add_thread, windows_nat_target::fetch_registers)
12263 (windows_nat_target::store_registers, handle_exception)
12264 (windows_nat_target::resume, get_windows_debug_event)
12265 (windows_nat_target::get_tib_address)
12266 (windows_nat_target::thread_name)
12267 (windows_nat_target::thread_alive): Update.
12268 * nat/windows-nat.h (enum thread_disposition_type): Move from
12270 (thread_rec): Declare.
12272 2020-04-08 Tom Tromey <tromey@adacore.com>
12274 * windows-nat.c: Add "using namespace".
12275 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
12276 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
12278 2020-04-08 Tom Tromey <tromey@adacore.com>
12280 * nat/windows-nat.h (struct windows_thread_info): Declare
12282 * nat/windows-nat.c (~windows_thread_info): New.
12284 2020-04-08 Tom Tromey <tromey@adacore.com>
12287 * windows-nat.c (current_event): Update comment.
12288 (last_wait_event, desired_stop_thread_id): New globals.
12289 (struct pending_stop): New.
12290 (pending_stops): New global.
12291 (windows_nat_target) <stopped_by_sw_breakpoint>
12292 <supports_stopped_by_sw_breakpoint>: New methods.
12293 (windows_fetch_one_register): Add assertions. Adjust PC.
12294 (windows_continue): Handle pending stops. Suspend other threads
12295 when stepping. Use last_wait_event
12296 (wait_for_debug_event): New function.
12297 (get_windows_debug_event): Use wait_for_debug_event. Handle
12298 pending stops. Queue spurious stops.
12299 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
12300 (windows_nat_target::kill): Use wait_for_debug_event.
12301 * nat/windows-nat.h (struct windows_thread_info)
12302 <stopped_at_software_breakpoint>: New field.
12303 * nat/windows-nat.c (windows_thread_info::resume): Clear
12304 stopped_at_software_breakpoint.
12306 2020-04-08 Tom Tromey <tromey@adacore.com>
12308 * windows-nat.c (enum thread_disposition_type): New.
12309 (thread_rec): Replace "get_context" parameter with "disposition";
12311 (windows_add_thread, windows_nat_target::fetch_registers)
12312 (windows_nat_target::store_registers, handle_exception)
12313 (windows_nat_target::resume, get_windows_debug_event)
12314 (windows_nat_target::get_tib_address)
12315 (windows_nat_target::thread_name)
12316 (windows_nat_target::thread_alive): Update.
12318 2020-04-08 Tom Tromey <tromey@adacore.com>
12320 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
12321 (windows_continue): Use windows_continue::resume.
12322 * nat/windows-nat.h (struct windows_thread_info) <suspend,
12323 resume>: Declare new methods.
12324 * nat/windows-nat.c: New file.
12325 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
12327 2020-04-08 Tom Tromey <tromey@adacore.com>
12329 * windows-nat.c (windows_add_thread, windows_delete_thread)
12330 (windows_nat_target::fetch_registers)
12331 (windows_nat_target::store_registers, fake_create_process)
12332 (windows_nat_target::resume, windows_nat_target::resume)
12333 (get_windows_debug_event, windows_nat_target::wait)
12334 (windows_nat_target::pid_to_str)
12335 (windows_nat_target::get_tib_address)
12336 (windows_nat_target::get_ada_task_ptid)
12337 (windows_nat_target::thread_name)
12338 (windows_nat_target::thread_alive): Use lwp, not tid.
12340 2020-04-08 Tom Tromey <tromey@adacore.com>
12342 * windows-nat.c (handle_exception)
12343 (windows_nat_target::thread_name): Update.
12344 * nat/windows-nat.h (windows_thread_info): Remove destructor.
12345 <name>: Now unique_xmalloc_ptr.
12347 2020-04-08 Tom Tromey <tromey@adacore.com>
12349 * windows-nat.c (thread_rec)
12350 (windows_nat_target::fetch_registers): Update.
12351 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
12353 <debug_registers_changed, reload_context>: Now bool.
12355 2020-04-08 Tom Tromey <tromey@adacore.com>
12357 * windows-nat.c (windows_add_thread): Use new.
12358 (windows_init_thread_list, windows_delete_thread): Use delete.
12359 (get_windows_debug_event): Update.
12360 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
12361 destructor, and initializers.
12363 2020-04-08 Tom Tromey <tromey@adacore.com>
12365 * windows-nat.c (struct windows_thread_info): Remove.
12366 * nat/windows-nat.h: New file.
12368 2020-04-08 Tom Tromey <tromey@adacore.com>
12370 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
12371 (thread_rec, windows_add_thread, windows_delete_thread)
12372 (windows_continue): Update.
12374 2020-04-08 Tom Tromey <tromey@adacore.com>
12376 * windows-nat.c (struct windows_thread_info): Remove typedef.
12377 (thread_head): Remove.
12378 (thread_list): New global.
12379 (thread_rec, windows_add_thread, windows_init_thread_list)
12380 (windows_delete_thread, windows_continue): Update.
12382 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
12384 * windows-tdep.h (windows_init_abi): Add comment.
12385 (cygwin_init_abi): New declaration.
12386 * windows-tdep.c: Split signal enumeration in two, one for
12387 Windows and one for Cygwin.
12388 (windows_gdb_signal_to_target): Only deal with signal of the
12390 (cygwin_gdb_signal_to_target): New function.
12391 (windows_init_abi): Rename to windows_init_abi_common, don't set
12392 gdb_signal_to_target gdbarch method. Add new new function with
12394 (cygwin_init_abi): New function.
12395 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
12396 comment. Don't call windows_init_abi.
12397 (amd64_windows_init_abi): Add comment, call windows_init_abi.
12398 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
12399 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
12400 i386_windows_init_abi_common, don't call windows_init_abi. Add
12401 a new function of this name.
12402 (i386_cygwin_init_abi): New function.
12403 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
12406 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
12408 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
12410 (dwarf2_read_gdb_index): Update.
12412 2020-04-07 Kamil Rytarowski <n54@gmx.com>
12414 * nbsd-tdep.c: Include "objfiles.h".
12415 (nbsd_skip_solib_resolver): New.
12416 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
12418 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12420 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
12421 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
12422 with DW_LLE_base_addressx are being emitted in DWARFv5.
12423 Add the newly added kind DW_LOC_OFFSET_PAIR also.
12424 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
12427 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12429 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
12430 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
12431 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
12432 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
12433 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
12434 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
12435 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
12438 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12440 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
12441 (read_loclist_index): New function definition.
12442 (lookup_loclist_base): New function definition.
12443 (read_loclist_header): New function definition.
12444 (dwarf2_cu): Add loclist_base and loclist_header field.
12445 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
12446 (read_full_die_1): Read the value of DW_AT_loclists_base.
12447 (read_attribute_reprocess): Handle DW_FORM_loclistx.
12448 (read_attribute_value): Handle DW_FORM_loclistx.
12449 (skip_one_die): Handle DW_FORM_loclistx.
12450 (loclist_header): New structure declaration.
12451 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
12453 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12455 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
12456 constructor. Remove `addr` parameter from other constructor and
12457 add `per_cu` parameter.
12458 * dwarf2/read.c (create_partial_symtab): Update.
12460 2020-04-07 Tom de Vries <tdevries@suse.de>
12463 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
12464 (partial_die_info::fixup): Inherit has_const_value.
12466 2020-04-07 Tom de Vries <tdevries@suse.de>
12468 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
12469 symbols without address.
12471 2020-04-06 Kamil Rytarowski <n54@gmx.com>
12473 * nbsd-nat.h (struct thread_info): Add forward declaration.
12474 (nbsd_nat_target::thread_alive): Add.
12475 (nbsd_nat_target::thread_name): Likewise.
12476 (nbsd_nat_target::update_thread_list): Likewise.
12477 (update_thread_list::post_attach): Likewise.
12478 (post_attach::pid_to_str): Likewise.
12479 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
12480 (nbsd_thread_lister): Add.
12481 (nbsd_nat_target::thread_alive): Likewise.
12482 (nbsd_nat_target::thread_name): Likewise.
12483 (nbsd_add_threads): Likewise.
12484 (update_thread_list::post_attach): Likewise.
12485 (nbsd_nat_target::update_thread_list): Likewise.
12486 (post_attach::pid_to_str): Likewise.
12488 2020-04-06 Tom Tromey <tromey@adacore.com>
12490 * ada-valprint.c (print_variant_part): Extract the variant field.
12491 (print_field_values): Use the field as the outer value when
12494 2020-04-06 Tom Tromey <tromey@adacore.com>
12496 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
12497 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
12498 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
12499 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
12500 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
12502 2020-04-06 Tom Tromey <tromey@adacore.com>
12504 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
12507 2020-04-06 Kamil Rytarowski <n54@gmx.com>
12509 * nbsd-tdep.c: Include "gdbarch.h".
12510 Define enum with NetBSD signal numbers.
12511 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
12512 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
12513 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
12514 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
12515 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
12516 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
12517 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
12518 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
12519 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
12520 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
12521 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
12522 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
12524 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
12527 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
12529 2020-04-03 Tom Tromey <tromey@adacore.com>
12531 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
12532 Read constant block.
12534 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
12536 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
12537 (gdb_bfd_get_full_section_contents): New declaration.
12538 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
12539 * windows-tdep.c (is_linked_with_cygwin_dll): Use
12540 gdb_bfd_get_full_section_contents.
12542 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
12544 * exec.c (build_section_table): Replace internal_error with
12546 (section_table_xfer_memory_partial): Likewise.
12547 * mdebugread.c (parse_partial_symbols): Likewise.
12548 * psymtab.c (lookup_partial_symbol): Likewise.
12549 * utils.c (wrap_here): Likewise.
12551 2020-04-02 Tom Tromey <tromey@adacore.com>
12553 * f-lang.c (build_fortran_types): Use arch_type to initialize
12554 builtin_complex_s32 in the TYPE_CODE_ERROR case.
12556 2020-04-02 Tom Tromey <tromey@adacore.com>
12558 * dwarf2/read.c (partial_die_info::read): Do not create a vector
12561 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
12562 Bernd Edlinger <bernd.edlinger@hotmail.de>
12563 Tom Tromey <tromey@adacore.com>
12565 * buildsym.c (buildsym_compunit::record_line): Remove
12566 deduplication code.
12568 2020-04-02 Tom de Vries <tdevries@suse.de>
12571 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
12573 2020-04-02 Tom de Vries <tdevries@suse.de>
12575 * dwarf2/read.c (dwarf2_gdb_index_functions,
12576 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
12578 * psymtab.c (psym_lookup_global_symbol_language): New function.
12579 (psym_functions): Init psym_lookup_global_symbol_language with
12580 psym_lookup_global_symbol_language.
12581 * symfile-debug.c (debug_sym_quick_functions): Init
12582 lookup_global_symbol_language with NULL.
12583 * symfile.c (set_initial_language): Remove fixme comment.
12584 * symfile.h (struct quick_symbol_functions): Add
12585 lookup_global_symbol_language.
12586 * symtab.c (find_quick_global_symbol_language): New function.
12587 (find_main_name): Use find_quick_global_symbol_language.
12589 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
12591 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
12593 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12595 * buildsym.c (record_line): Fix undefined behavior and preserve
12598 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12600 * buildsym.c (record_line): Fix the resizing condition.
12602 2020-04-01 Tom Tromey <tom@tromey.com>
12604 * value.h (value_literal_complex): Add comment.
12605 * valops.c (value_literal_complex): Refer to value.h.
12607 2020-04-01 Tom Tromey <tom@tromey.com>
12609 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
12610 (scalar_type): New rule, from typebase.
12611 (typebase): Use scalar_type. Recognize complex types.
12612 (field_name): Handle FLOAT_KEYWORD.
12613 (ident_tokens): Add _Complex and __complex__.
12615 2020-04-01 Tom Tromey <tom@tromey.com>
12618 * valarith.c (promotion_type, complex_binop): New functions.
12619 (scalar_binop): Handle complex numbers. Use promotion_type.
12620 (value_pos, value_neg, value_complement): Handle complex numbers.
12622 2020-04-01 Tom Tromey <tom@tromey.com>
12624 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
12625 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
12626 (parse_number): Handle complex numbers.
12628 2020-04-01 Tom Tromey <tom@tromey.com>
12630 * c-valprint.c (c_decorations): Change complex suffix to "i".
12632 2020-04-01 Tom Tromey <tom@tromey.com>
12634 * valprint.c (generic_value_print_complex): Use accessors.
12635 * value.h (value_real_part, value_imaginary_part): Declare.
12636 * valops.c (value_real_part, value_imaginary_part): New
12638 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
12640 2020-04-01 Tom Tromey <tom@tromey.com>
12642 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
12643 (read_range_type): Update.
12644 * mdebugread.c (basic_type): Update.
12645 * go-lang.c (build_go_types): Use init_complex_type.
12646 * gdbtypes.h (struct main_type) <complex_type>: New member.
12647 (init_complex_type): Update.
12648 (arch_complex_type): Don't declare.
12649 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
12650 Make name if none given. Use alloc_type_copy. Look for cached
12652 (arch_complex_type): Remove.
12653 (gdbtypes_post_init): Use init_complex_type.
12654 * f-lang.c (build_fortran_types): Use init_complex_type.
12655 * dwarf2/read.c (read_base_type): Update.
12656 * d-lang.c (build_d_types): Use init_complex_type.
12657 * ctfread.c (read_base_type): Update.
12659 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12661 * infrun.c (stop_all_threads): Update assertion, plus when
12662 stopping threads, take into account that we might be trying
12663 to stop an all-stop target.
12664 (stop_waiting): Call 'stop_all_threads' if there exists a
12667 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12669 * target.h (exists_non_stop_target): New function declaration.
12670 * target.c (exists_non_stop_target): New function.
12672 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
12675 * eval.c (is_integral_or_integral_reference): New function.
12676 (evaluate_subexp_standard): Allow integer references in
12677 pointer arithmetic.
12679 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12681 * remote.c (remote_target::remote_parse_stop_reply): Remove the
12682 check for no ptid in the stop reply when the target is non-stop.
12684 2020-04-01 Tom Tromey <tromey@adacore.com>
12686 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
12687 "name" parameter to rvalue reference. Initialize m_name_holder.
12688 <lookup_name_info>: New overloads.
12689 <name>: Return gdb::string_view.
12690 <c_str>: New method.
12691 <make_ignore_params>: Update.
12692 <search_name_hash>: Update.
12693 <language_lookup_name>: Return const char *.
12694 <m_name>: Change type.
12695 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
12696 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
12697 (lookup_name_info::match_any): Update.
12698 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
12700 * minsyms.c (linkage_name_str): Update.
12701 * language.c (default_symbol_name_matcher): Update.
12702 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
12704 * ada-lang.c (ada_fold_name): Change parameter to string_view.
12705 (ada_lookup_name_info::ada_lookup_name_info): Update.
12706 (literal_symbol_name_matcher): Update.
12708 2020-04-01 Tom Tromey <tromey@adacore.com>
12710 * psymtab.c (psymtab_search_name): Remove function.
12711 (psym_lookup_symbol): Create search name and lookup name here.
12712 (lookup_partial_symbol): Remove "name" parameter; add
12714 (psym_expand_symtabs_for_function): Update.
12716 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
12719 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
12721 2020-03-31 Tom Tromey <tromey@adacore.com>
12723 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
12726 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
12728 * features/riscv/32bit-csr.xml: Regenerated.
12729 * features/riscv/64bit-csr.xml: Regenerated.
12731 2020-03-30 Tom Tromey <tromey@adacore.com>
12733 * ada-valprint.c (print_variant_part): Update.
12734 * ada-lang.h (ada_which_variant_applies): Update.
12735 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
12736 outer_valaddr parameters; replace with "outer" value parameter.
12737 (to_fixed_variant_branch_type): Update.
12739 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12741 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
12742 <list>. Remove inclusion of observable.h.
12743 (PPC_DEBUG_CURRENT_VERSION): Move up define.
12744 (struct arch_lwp_info): New struct.
12745 (class ppc_linux_dreg_interface): New class.
12746 (struct ppc_linux_process_info): New struct.
12747 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
12748 <low_new_clone, low_forget_process, low_prepare_to_resume>
12749 <copy_thread_dreg_state, mark_thread_stale>
12750 <mark_debug_registers_changed, register_hw_breakpoint>
12751 <clear_hw_breakpoint, register_wp, clear_wp>
12752 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
12753 <num_memory_accesses, get_trigger_type>
12754 <create_watchpoint_request, hwdebug_point_cmp>
12755 <init_arch_lwp_info, get_arch_lwp_info>
12756 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
12758 <struct ptid_hash>: New inner struct.
12759 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
12761 (saved_dabr_value, hwdebug_info, max_slots_number)
12762 (struct hw_break_tuple, struct thread_points, ppc_threads)
12763 (have_ptrace_hwdebug_interface)
12764 (hwdebug_find_thread_points_by_tid)
12765 (hwdebug_insert_point, hwdebug_remove_point): Remove.
12766 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
12767 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
12768 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
12769 use m_dreg_interface.
12770 (hwdebug_point_cmp): Change to...
12771 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
12772 reference arguments instead of pointers.
12773 (ppc_linux_nat_target::ranged_break_num_registers): Use
12775 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
12776 m_dreg_interface. Call register_hw_breakpoint.
12777 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
12778 m_dreg_interface. Call clear_hw_breakpoint.
12779 (get_trigger_type): Change to...
12780 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
12782 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
12783 use m_dreg_interface. Call register_hw_breakpoint.
12784 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
12785 use m_dreg_interface. Call clear_hw_breakpoint.
12786 (can_use_watchpoint_cond_accel): Change to...
12787 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
12788 method. Update comment, use m_dreg_interface and
12790 (calculate_dvc): Change to...
12791 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
12793 (num_memory_accesses): Change to...
12794 (ppc_linux_nat_target::num_memory_accesses): ...this method.
12795 (check_condition): Change to...
12796 (ppc_linux_nat_target::check_condition): ...this method.
12797 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
12798 comment, use m_dreg_interface.
12799 (create_watchpoint_request): Change to...
12800 (ppc_linux_nat_target::create_watchpoint_request): ...this
12801 method. Use m_dreg_interface.
12802 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
12803 m_dreg_interface. Call register_hw_breakpoint or register_wp.
12804 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
12805 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
12806 (ppc_linux_nat_target::low_forget_process)
12807 (ppc_linux_nat_target::low_new_fork)
12808 (ppc_linux_nat_target::low_new_clone)
12809 (ppc_linux_nat_target::low_delete_thread)
12810 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
12811 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
12812 only call mark_thread_stale.
12813 (ppc_linux_thread_exit): Remove.
12814 (ppc_linux_nat_target::stopped_data_address): Change to...
12815 (ppc_linux_nat_target::low_stopped_data_address): This. Add
12816 comment, use m_dreg_interface and m_thread_hw_breakpoints.
12817 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
12818 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
12819 comment. Call low_stopped_data_address.
12820 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
12822 (ppc_linux_nat_target::masked_watch_num_registers): Use
12824 (ppc_linux_nat_target::copy_thread_dreg_state)
12825 (ppc_linux_nat_target::mark_thread_stale)
12826 (ppc_linux_nat_target::mark_debug_registers_changed)
12827 (ppc_linux_nat_target::register_hw_breakpoint)
12828 (ppc_linux_nat_target::clear_hw_breakpoint)
12829 (ppc_linux_nat_target::register_wp)
12830 (ppc_linux_nat_target::clear_wp)
12831 (ppc_linux_nat_target::init_arch_lwp_info)
12832 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
12833 (_initialize_ppc_linux_nat): Remove observer callback.
12835 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12837 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
12838 (ppc_linux_nat_target::auxv_parse)
12839 (ppc_linux_nat_target::read_description)
12840 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
12843 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12845 * linux-nat.h (low_new_clone): New method.
12846 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
12848 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12850 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
12851 (dbx_expand_psymtab): ... this.
12852 (start_psymtab): Update.
12853 * mdebugread.c (psymtab_to_symtab_1): Rename to...
12854 (mdebug_expand_psymtab): ... this.
12855 (parse_partial_symbols): Update.
12856 (new_psymtab): Update.
12857 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
12858 (xcoff_expand_psymtab): ... this.
12859 (xcoff_start_psymtab): Update.
12861 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12863 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
12864 <expand_dependencies>: ... this.
12865 * psymtab.c (partial_symtab::read_dependencies): Rename to...
12866 (partial_symtab::expand_dependencies): ... this.
12867 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
12869 (dwarf2_psymtab::expand_psymtab): Update.
12870 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
12871 * mdebugread.c (psymtab_to_symtab_1): Update.
12872 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
12874 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12876 * psympriv.h (discard_psymtab): Remove.
12877 * dbxread.c (dbx_end_psymtab): Update.
12878 * xcoffread.c (xcoff_end_psymtab): Update.
12880 2020-03-28 Tom Tromey <tom@tromey.com>
12882 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
12885 2020-03-28 Tom Tromey <tom@tromey.com>
12887 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
12889 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
12891 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
12893 2020-03-26 John Baldwin <jhb@FreeBSD.org>
12895 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
12897 2020-03-26 Tom Tromey <tom@tromey.com>
12899 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
12900 (mark_common_block_symbol_computed, read_tag_string_type)
12901 (attr_to_dynamic_prop, read_subrange_type): Update.
12902 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
12903 to be methods on struct attribute.
12904 (skip_one_die, process_imported_unit_die, read_namespace_alias)
12905 (read_call_site_scope, partial_die_info::read)
12906 (partial_die_info::read, lookup_die_type, follow_die_ref):
12908 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
12909 from dwarf2_get_ref_die_offset.
12910 (attribute::constant_value): New method, from
12911 dwarf2_get_attr_constant_value.
12912 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
12914 <constant_value>: New method.
12916 2020-03-26 Tom Tromey <tom@tromey.com>
12918 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
12919 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
12920 (dwarf_type_encoding_name): Move to stringify.c.
12921 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
12922 * dwarf2/stringify.c: New file.
12923 * dwarf2/stringify.h: New file.
12925 2020-03-26 Tom Tromey <tom@tromey.com>
12927 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
12930 2020-03-26 Tom Tromey <tom@tromey.com>
12932 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
12934 * dwarf2/read.c (lookup_addr_base): Move to die.h.
12935 (lookup_ranges_base): Likewise.
12936 (read_cutu_die_from_dwo, read_full_die_1): Update.
12938 2020-03-26 Tom Tromey <tom@tromey.com>
12940 * dwarf2/read.c (read_import_statement, read_file_scope)
12941 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
12942 (read_lexical_block_scope, read_call_site_scope)
12943 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
12944 (handle_struct_member_die, process_structure_scope)
12945 (update_enumeration_type_from_children)
12946 (process_enumeration_scope, read_array_type, read_common_block)
12947 (read_namespace, read_module, read_subroutine_type): Update.
12948 (sibling_die): Remove.
12950 2020-03-26 Tom Tromey <tom@tromey.com>
12952 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
12953 (build_type_psymtabs_reader, read_structure_type)
12954 (read_enumeration_type, read_full_die_1): Update.
12955 (dwarf2_attr_no_follow): Move to die.h.
12956 * dwarf2/die.h (struct die_info) <attr>: New method.
12958 2020-03-26 Tom Tromey <tom@tromey.com>
12960 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
12961 <base_address>: Now an optional.
12962 (dwarf2_find_base_address, dwarf2_rnglists_process)
12963 (dwarf2_ranges_process, fill_in_loclist_baton)
12964 (dwarf2_symbol_mark_computed): Update.
12966 2020-03-26 Tom Tromey <tom@tromey.com>
12968 * dwarf2/read.c (struct die_info): Move to die.h.
12969 * dwarf2/die.h: New file.
12971 2020-03-26 Tom Tromey <tom@tromey.com>
12973 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
12975 (dwarf2_statement_list_fits_in_line_number_section_complaint):
12976 Move to line-header.c.
12977 (read_checked_initial_length_and_offset, read_formatted_entries):
12979 (dwarf_decode_line_header): Split into two.
12980 * dwarf2/line-header.c
12981 (dwarf2_statement_list_fits_in_line_number_section_complaint):
12983 (read_checked_initial_length_and_offset, read_formatted_entries):
12985 (dwarf_decode_line_header): New function, split from read.c.
12987 2020-03-26 Tom Tromey <tom@tromey.com>
12989 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
12991 * dwarf2/read.c (read_attribute_value): Update.
12992 (dwarf2_per_objfile::read_line_string): Rename from
12993 read_indirect_line_string.
12994 (read_formatted_entries): Update.
12996 2020-03-26 Tom Tromey <tom@tromey.com>
12998 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
13001 2020-03-26 Tom Tromey <tom@tromey.com>
13003 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
13005 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
13006 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
13009 2020-03-26 Tom Tromey <tom@tromey.com>
13011 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
13012 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
13013 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
13014 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
13016 2020-03-26 Tom Tromey <tom@tromey.com>
13018 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
13019 file_names_size, file_full_name, file_file_name>: Use const.
13020 <file_name_at, file_names>: Add const overload.
13021 * dwarf2/line-header.c (line_header::file_file_name)
13022 (line_header::file_full_name): Update.
13024 2020-03-26 Tom Tromey <tom@tromey.com>
13026 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
13027 (macro_start_file, consume_improper_spaces)
13028 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
13029 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
13030 (dwarf_decode_macros): Move to macro.c.
13031 * dwarf2/macro.c: New file.
13032 * dwarf2/macro.h: New file.
13033 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
13035 2020-03-26 Tom Tromey <tom@tromey.com>
13037 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
13039 * dwarf2/section.c: New method. From
13040 read_indirect_string_at_offset_from.
13041 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
13042 (read_indirect_string_at_offset_from): Move to section.c.
13043 (read_indirect_string_at_offset): Rewrite.
13044 (read_indirect_line_string_at_offset): Remove.
13045 (read_indirect_string, read_indirect_line_string)
13046 (dwarf_decode_macro_bytes): Update.
13048 2020-03-26 Tom Tromey <tom@tromey.com>
13050 * dwarf2/section.h (struct dwarf2_section_info)
13051 <overload_complaint>: Declare.
13052 (dwarf2_section_buffer_overflow_complaint): Don't declare.
13053 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
13054 Rename from dwarf2_section_buffer_overflow_complaint.
13055 * dwarf2/read.c (skip_one_die, partial_die_info::read)
13056 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
13058 2020-03-26 Tom Tromey <tom@tromey.com>
13060 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
13062 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
13064 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
13067 2020-03-26 Tom Tromey <tom@tromey.com>
13069 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
13071 2020-03-26 Tom Tromey <tom@tromey.com>
13073 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
13075 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
13077 (dwarf_decode_macros): Update.
13079 2020-03-26 Tom Tromey <tom@tromey.com>
13081 * dwarf2/read.c (read_attribute_value): Update.
13082 (read_indirect_string_from_dwz): Move to dwz.c; change into
13084 (dwarf_decode_macro_bytes): Update.
13085 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
13086 * dwarf2/dwz.c: New file.
13087 * Makefile.in (COMMON_SFILES): Add dwz.c.
13089 2020-03-26 Tom Tromey <tom@tromey.com>
13091 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
13092 * dwarf2/read.c: Add include.
13093 * dwarf2/index-write.c: Add include.
13094 * dwarf2/index-cache.c: Add include.
13095 * dwarf2/dwz.h: New file.
13097 2020-03-25 Tom Tromey <tom@tromey.com>
13099 * compile/compile-object-load.c (get_out_value_type): Mention
13100 correct symbol name in error message.
13102 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
13104 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
13106 2020-03-25 Tom de Vries <tdevries@suse.de>
13108 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
13109 * symmisc.c (dump_symtab_1): Print user and includes fields.
13110 (maintenance_info_symtabs): Same.
13112 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
13115 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
13116 (riscv_regcache_cooked_write): New function.
13117 (riscv_push_dummy_call): Use new function.
13118 (riscv_return_value): Likewise.
13120 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
13122 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
13123 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
13124 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
13125 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
13126 * infrun.c (follow_fork): Likewise.
13127 (follow_fork_inferior): Likewise.
13128 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
13129 * linux-nat.h (class linux_nat_target): Likewise.
13130 * remote.c (class remote_target) <follow_fork>: Likewise.
13131 (remote_target::follow_fork): Likewise.
13132 * target-delegates.c: Re-generate.
13133 * target.c (default_follow_fork): Likewise.
13134 (target_follow_fork): Likewise.
13135 * target.h (struct target_ops) <follow_fork>: Likewise.
13136 (target_follow_fork): Likewise.
13138 2020-03-24 Tom de Vries <tdevries@suse.de>
13140 * psymtab.c (maintenance_info_psymtabs): Print user field.
13142 2020-03-20 Tom Tromey <tromey@adacore.com>
13144 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
13146 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
13149 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
13151 * ptrace.m4: Don't check for ptrace declaration.
13152 * config.in: Re-generate.
13153 * configure: Re-generate.
13154 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
13157 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13159 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
13161 * i386-bsd-nat.c (gdb_ptrace): Likewise.
13162 * sparc-nat.c (gdb_ptrace): Likewise.
13163 * x86-bsd-nat.c (gdb_ptrace): Likewise.
13165 2020-03-20 Tom Tromey <tromey@adacore.com>
13167 * c-exp.y (lex_one_token): Fix assert.
13169 2020-03-20 Tom Tromey <tromey@adacore.com>
13171 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
13172 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
13175 2020-03-20 Tom Tromey <tromey@adacore.com>
13177 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
13179 2020-03-20 Tom Tromey <tromey@adacore.com>
13181 * ada-valprint.c (print_variant_part): Remove parameters; switch
13182 to value-based API.
13183 (print_field_values): Likewise.
13184 (ada_val_print_struct_union): Likewise.
13185 (ada_value_print_1): Update.
13187 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13189 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
13190 nbsd_nat_target instead of inf_ptrace_target.
13191 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13194 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13196 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
13197 it to the ptrace call.
13198 * (store_registers): Likewise.
13200 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13202 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
13203 it to the ptrace call.
13204 * (store_registers): Likewise.
13206 2020-03-19 Luis Machado <luis.machado@linaro.org>
13208 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
13209 valid, fetch vg value from ptrace.
13211 2020-03-19 Kamil Rytarowski <n54@gmx.com>
13212 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
13213 * inf-ptrace.c: Likewise.
13214 * (gdb_ptrace): Add.
13215 * (inf_ptrace_target::resume): Update.
13216 * (inf_ptrace_target::xfer_partial): Likewise.
13217 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
13218 * (inf_ptrace_peek_poke): Update.
13220 2020-03-19 Kamil Rytarowski <n54@gmx.com>
13222 * x86-bsd-nat.c (gdb_ptrace): New.
13223 * (x86bsd_dr_set): Add new argument `ptid'.
13224 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
13225 x86bsd_dr_set_addr): Update.
13227 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13229 * remote.c (remote_target::process_stop_reply): Handle events for
13230 all threads differently.
13232 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13234 * completer.c (completion_tracker::remove_completion): Define new
13236 * completer.h (completion_tracker::remove_completion): Declare new
13238 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
13239 when adding a C++ function symbol.
13241 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13243 * completer.c (completion_tracker::completion_hash_entry): Define
13245 (advance_to_filename_complete_word_point): Call
13246 recompute_lowest_common_denominator.
13247 (completion_tracker::completion_tracker): Call discard_completions
13248 to setup the hash table.
13249 (completion_tracker::discard_completions): Allow for being called
13250 from the constructor, pass new equal function, and element deleter
13251 when constructing the hash table. Initialise new class member
13253 (completion_tracker::maybe_add_completion): Remove use of
13254 m_entries_vec, and store more information into m_entries_hash.
13255 (completion_tracker::recompute_lcd_visitor): New function, most
13256 content taken from...
13257 (completion_tracker::recompute_lowest_common_denominator):
13258 ...here, this now just visits each item in the hash calling the
13260 (completion_tracker::build_completion_result): Remove use of
13261 m_entries_vec, call recompute_lowest_common_denominator.
13262 * completer.h (completion_tracker::have_completions): Remove use
13264 (completion_tracker::completion_hash_entry): Declare new class.
13265 (completion_tracker::recompute_lowest_common_denominator): Change
13266 function signature.
13267 (completion_tracker::recompute_lcd_visitor): Declare new function.
13268 (completion_tracker::m_entries_vec): Delete.
13269 (completion_tracker::m_entries_hash): Initialize to NULL.
13270 (completion_tracker::m_lowest_common_denominator_valid): New
13272 (completion_tracker::m_lowest_common_denominator_max_length): New
13275 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13277 * regformats/regdef.h: Put reg in gdb namespace.
13279 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13281 * i386-bsd-nat.c (gdb_ptrace): New.
13282 * (i386bsd_fetch_inferior_registers,
13283 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
13284 * (i386bsd_fetch_inferior_registers,
13285 i386bsd_store_inferior_registers) Use gdb_ptrace.
13287 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13289 * amd64-bsd-nat.c (gdb_ptrace): New.
13290 * (amd64bsd_fetch_inferior_registers,
13291 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
13292 * (amd64bsd_fetch_inferior_registers,
13293 amd64bsd_store_inferior_registers) Use gdb_ptrace.
13295 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13297 * user-regs.c (user_reg::read): Rename to...
13298 (user_reg::xread): ...this.
13299 * (append_user_reg): Rename argument `read' to `xread'.
13300 * (user_reg_add_builtin): Likewise.
13301 * (user_reg_add): Likewise.
13302 * (value_of_user_reg): Likewise.
13304 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13306 * sparc-nat.c (gdb_ptrace): New.
13307 * sparc-nat.c (sparc_fetch_inferior_registers)
13308 (sparc_store_inferior_registers) Remove obsolete comment.
13309 * sparc-nat.c (sparc_fetch_inferior_registers)
13310 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
13311 * sparc-nat.c (sparc_fetch_inferior_registers)
13312 (sparc_store_inferior_registers) Use gdb_ptrace.
13314 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13316 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
13317 it to the ptrace call.
13318 * sh-nbsd-nat.c (store_registers): Likewise.
13320 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13322 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
13323 nbsd_nat_target instead of inf_ptrace_target.
13324 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13327 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13329 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
13331 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13333 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
13335 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
13337 2020-03-17 Tom de Vries <tdevries@suse.de>
13340 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
13342 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
13344 (process_imported_unit_die): Skip import of c++ CUs.
13346 2020-03-16 Tom Tromey <tom@tromey.com>
13348 * p-valprint.c (pascal_object_print_value): Initialize
13351 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
13352 Shahab Vahedi <shahab@synopsys.com>
13354 * Makefile.in: Add arch/arc.o
13355 * configure.tgt: Likewise.
13356 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
13357 (_initialize_arc_tdep): Don't initialize old target descriptions.
13358 (arc_read_description): New function to cache target descriptions.
13359 * arc-tdep.h (arc_read_description): Add proto type.
13360 * arch/arc.c: New file.
13361 * arch/arc.h: Likewise.
13362 * features/Makefile: Replace old target descriptions with new.
13363 * features/arc-arcompact.c: Remove.
13364 * features/arc-arcompact.xml: Likewise.
13365 * features/arc-v2.c: Likewise
13366 * features/arc-v2.xml: Likewise
13367 * features/arc/aux-arcompact.xml: New file.
13368 * features/arc/aux-v2.xml: Likewise.
13369 * features/arc/core-arcompact.xml: Likewise.
13370 * features/arc/core-v2.xml: Likewise.
13371 * features/arc/aux-arcompact.c: Generate.
13372 * features/arc/aux-v2.c: Likewise.
13373 * features/arc/core-arcompact.c: Likewise.
13374 * features/arc/core-v2.c: Likewise.
13375 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
13377 2020-03-16 Tom Tromey <tromey@adacore.com>
13380 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
13381 putting value into bcache.
13383 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13386 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
13388 (amd64_windows_init_abi_common): ... this. Don't set size of
13390 (amd64_windows_init_abi): New function.
13391 (amd64_cygwin_init_abi): New function.
13392 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
13394 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
13397 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13399 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
13400 * windows-tdep.c (CYGWIN_DLL_NAME): New.
13401 (pe_import_directory_entry): New struct type.
13402 (is_linked_with_cygwin_dll): New function.
13403 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
13404 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
13405 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
13407 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13409 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
13410 i386_cygwin_core_osabi_sniffer.
13412 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13414 * i386-cygwin-tdep.c: Rename to...
13415 * i386-windows-tdep.c: ... this.
13416 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
13417 i386-windows-tdep.c.
13418 * configure.tgt: Likewise.
13420 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13422 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
13423 * osabi.c (gdb_osabi_names): Add "Windows".
13424 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
13425 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
13426 (i386_cygwin_core_osabi_sniffer): New function, extracted from
13427 i386_cygwin_osabi_sniffer.
13428 (_initialize_i386_cygwin_tdep): Register OS ABI
13429 GDB_OSABI_WINDOWS for i386.
13430 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
13431 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
13432 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
13434 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
13435 when the target matches '*-*-mingw*'.
13437 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13439 * defs.h (enum gdb_osabi): Move to...
13440 * osabi.h (enum gdb_osabi): ... here.
13441 * gdbarch.sh: Include osabi.h in gdbarch.h.
13442 * gdbarch.h: Re-generate.
13444 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13446 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
13448 (_initialize_amd64_windows_tdep): Register osabi sniffer.
13450 2020-03-14 Tom Tromey <tom@tromey.com>
13452 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
13454 (c_type_print_modifier): Likewise. Add "language" parameter.
13455 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
13456 (c_type_print_base_1): Update.
13457 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
13459 * type-stack.c (type_stack::insert): Handle tp_atomic and
13461 (type_stack::follow_type_instance_flags): Likewise.
13462 (type_stack::follow_types): Likewise. Merge type-following code.
13463 * c-exp.y (RESTRICT, ATOMIC): New tokens.
13464 (space_identifier, cv_with_space_id)
13465 (const_or_volatile_or_space_identifier_noopt)
13466 (const_or_volatile_or_space_identifier): Remove.
13467 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
13469 (ptr_operator, typebase): Update.
13470 (enum token_flag) <FLAG_C>: New constant.
13471 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
13473 (lex_one_token): Handle FLAG_C.
13475 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13477 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
13478 it to the ptrace call.
13479 * m68k-bsd-nat.c (store_registers): Likewise.
13481 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13483 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
13485 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
13486 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
13487 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
13489 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13491 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
13492 nbsd_nat_target instead of inf_ptrace_target.
13493 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13496 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13498 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
13501 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13503 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
13504 it to the ptrace call.
13505 * alpha-bsd-nat.c (store_registers): Likewise.
13507 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13509 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
13511 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
13512 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
13513 fill_fpregset): Likewise.
13515 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13517 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
13518 nbsd_nat_target instead of inf_ptrace_target.
13519 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13522 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13524 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
13527 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13529 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
13530 it to the ptrace call.
13531 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
13532 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
13533 * arm-nbsd-nat.c (store_register): Likewise.
13534 * arm-nbsd-nat.c (store_regs): Likewise.
13535 * arm-nbsd-nat.c (store_fp_register): Likewise.
13536 * arm-nbsd-nat.c (store_fp_regs): Likewise.
13538 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13540 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
13541 nbsd_nat_target instead of inf_ptrace_target.
13542 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13545 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13547 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
13548 it to the ptrace call.
13549 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
13551 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13553 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
13554 it to the ptrace call.
13555 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
13557 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13559 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
13561 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
13563 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13565 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
13566 instead of inf_ptrace_target.
13567 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13570 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13572 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13575 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13577 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13580 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13582 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
13585 2020-03-13 Tom Tromey <tom@tromey.com>
13587 * value.h (val_print): Don't declare.
13588 * valprint.h (val_print_array_elements)
13589 (val_print_scalar_formatted, generic_val_print): Don't declare.
13590 * valprint.c (generic_val_print_array): Take a struct value.
13591 (generic_val_print_ptr, generic_val_print_memberptr)
13592 (generic_val_print_bool, generic_val_print_int)
13593 (generic_val_print_char, generic_val_print_complex)
13594 (generic_val_print): Remove.
13595 (generic_value_print): Update.
13596 (do_val_print): Remove unused parameters. Don't call
13598 (val_print): Remove.
13599 (common_val_print): Update. Don't call value_check_printable.
13600 (val_print_scalar_formatted, val_print_array_elements): Remove.
13601 * rust-lang.c (rust_val_print): Remove.
13602 (rust_language_defn): Update.
13603 * p-valprint.c (pascal_val_print): Remove.
13604 (pascal_value_print_inner): Update.
13605 (pascal_object_print_val_fields, pascal_object_print_val):
13607 (pascal_object_print_static_field): Update.
13608 * p-lang.h (pascal_val_print): Don't declare.
13609 * p-lang.c (pascal_language_defn): Update.
13610 * opencl-lang.c (opencl_language_defn): Update.
13611 * objc-lang.c (objc_language_defn): Update.
13612 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
13613 * m2-lang.h (m2_val_print): Don't declare.
13614 * m2-lang.c (m2_language_defn): Update.
13615 * language.h (struct language_defn) <la_val_print>: Remove.
13616 * language.c (unk_lang_value_print_inner): Rename. Change
13618 (unknown_language_defn, auto_language_defn): Update.
13619 * go-valprint.c (go_val_print): Remove.
13620 * go-lang.h (go_val_print): Don't declare.
13621 * go-lang.c (go_language_defn): Update.
13622 * f-valprint.c (f_val_print): Remove.
13623 * f-lang.h (f_value_print): Don't declare.
13624 * f-lang.c (f_language_defn): Update.
13625 * d-valprint.c (d_val_print): Remove.
13626 * d-lang.h (d_value_print): Don't declare.
13627 * d-lang.c (d_language_defn): Update.
13628 * cp-valprint.c (cp_print_value_fields)
13629 (cp_print_value_fields_rtti, cp_print_value): Remove.
13630 (cp_print_static_field): Update.
13631 * c-valprint.c (c_val_print_array, c_val_print_ptr)
13632 (c_val_print_struct, c_val_print_union, c_val_print_int)
13633 (c_val_print_memberptr, c_val_print): Remove.
13634 * c-lang.h (c_val_print_array, cp_print_value_fields)
13635 (cp_print_value_fields_rtti): Don't declare.
13636 * c-lang.c (c_language_defn, cplus_language_defn)
13637 (asm_language_defn, minimal_language_defn): Update.
13638 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
13639 (ada_val_print_enum): Take a struct value.
13640 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
13641 (ada_val_print): Remove.
13642 (ada_value_print_1): Update.
13643 (printable_val_type): Remove.
13644 * ada-lang.h (ada_val_print): Don't declare.
13645 * ada-lang.c (ada_language_defn): Update.
13647 2020-03-13 Tom Tromey <tom@tromey.com>
13649 * valprint.c (do_val_print): Update.
13650 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
13652 (value_to_value_object_no_release): Declare.
13653 * python/py-value.c (value_to_value_object_no_release): New
13655 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
13657 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
13659 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
13661 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
13663 (gdbscm_apply_val_pretty_printer): Take a struct value.
13664 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
13666 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
13668 * extension-priv.h (struct extension_language_ops)
13669 <apply_val_pretty_printer>: Take a struct value.
13670 * cp-valprint.c (cp_print_value): Create a struct value.
13671 (cp_print_value): Update.
13673 2020-03-13 Tom Tromey <tom@tromey.com>
13675 * ada-valprint.c (print_field_values): Call common_val_print.
13677 2020-03-13 Tom Tromey <tom@tromey.com>
13679 * ada-valprint.c (val_print_packed_array_elements): Remove
13680 bitoffset and val parameters. Call common_val_print.
13681 (ada_val_print_string): Remove offset, address, and original_value
13683 (ada_val_print_array): Update.
13684 (ada_value_print_array): New function.
13685 (ada_value_print_1): Call it.
13687 2020-03-13 Tom Tromey <tom@tromey.com>
13689 * ada-valprint.c (ada_value_print): Use common_val_print.
13691 2020-03-13 Tom Tromey <tom@tromey.com>
13693 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
13695 2020-03-13 Tom Tromey <tom@tromey.com>
13697 * ada-valprint.c (ada_value_print_num): New function.
13698 (ada_value_print_1): Use it.
13700 2020-03-13 Tom Tromey <tom@tromey.com>
13702 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
13704 2020-03-13 Tom Tromey <tom@tromey.com>
13706 * ada-valprint.c (ada_value_print_ptr): New function.
13707 (ada_value_print_1): Use it.
13709 2020-03-13 Tom Tromey <tom@tromey.com>
13711 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
13712 call common_val_print.
13713 (ada_val_print_1): Update.
13714 (ada_value_print_1): New function.
13715 (ada_value_print_inner): Rewrite.
13717 2020-03-13 Tom Tromey <tom@tromey.com>
13719 * cp-valprint.c (cp_print_value_fields): Update.
13720 (cp_print_value): New function.
13722 2020-03-13 Tom Tromey <tom@tromey.com>
13724 * m2-valprint.c (m2_value_print_inner): Use
13725 cp_print_value_fields.
13726 * cp-valprint.c (cp_print_value_fields): New function.
13727 * c-valprint.c (c_value_print_struct): New function.
13728 (c_value_print_inner): Use c_value_print_struct.
13729 * c-lang.h (cp_print_value_fields): Declare.
13731 2020-03-13 Tom Tromey <tom@tromey.com>
13733 * c-valprint.c (c_value_print_array): New function.
13734 (c_value_print_inner): Use it.
13736 2020-03-13 Tom Tromey <tom@tromey.com>
13738 * c-valprint.c (c_value_print_memberptr): New function.
13739 (c_value_print_inner): Use it.
13741 2020-03-13 Tom Tromey <tom@tromey.com>
13743 * c-valprint.c (c_value_print_int): New function.
13744 (c_value_print_inner): Use it.
13746 2020-03-13 Tom Tromey <tom@tromey.com>
13748 * c-valprint.c (c_value_print_ptr): New function.
13749 (c_value_print_inner): Use it.
13751 2020-03-13 Tom Tromey <tom@tromey.com>
13753 * c-valprint.c (c_value_print_inner): Rewrite.
13755 2020-03-13 Tom Tromey <tom@tromey.com>
13757 * valprint.c (generic_value_print_complex): New function.
13758 (generic_value_print): Use it.
13760 2020-03-13 Tom Tromey <tom@tromey.com>
13762 * valprint.c (generic_val_print_float): Don't call
13763 val_print_scalar_formatted.
13764 (generic_val_print, generic_value_print): Update.
13766 2020-03-13 Tom Tromey <tom@tromey.com>
13768 * valprint.c (generic_value_print_char): New function
13769 (generic_value_print): Use it.
13771 2020-03-13 Tom Tromey <tom@tromey.com>
13773 * valprint.c (generic_value_print_int): New function.
13774 (generic_value_print): Use it.
13776 2020-03-13 Tom Tromey <tom@tromey.com>
13778 * valprint.c (generic_value_print_bool): New function.
13779 (generic_value_print): Use it.
13781 2020-03-13 Tom Tromey <tom@tromey.com>
13783 * valprint.c (generic_val_print_func): Simplify.
13784 (generic_val_print, generic_value_print): Update.
13786 2020-03-13 Tom Tromey <tom@tromey.com>
13788 * valprint.c (generic_val_print_flags): Remove.
13789 (generic_val_print, generic_value_print): Update.
13790 (val_print_type_code_flags): Add original_value parameter.
13792 2020-03-13 Tom Tromey <tom@tromey.com>
13794 * valprint.c (generic_val_print): Update.
13795 (generic_value_print): Update.
13796 * valprint.c (generic_val_print_enum): Don't call
13797 val_print_scalar_formatted.
13799 2020-03-13 Tom Tromey <tom@tromey.com>
13801 * valprint.c (generic_value_print): Call generic_value_print_ptr.
13802 * valprint.c (generic_value_print_ptr): New function.
13804 2020-03-13 Tom Tromey <tom@tromey.com>
13806 * valprint.c (generic_value_print): Rewrite.
13808 2020-03-13 Tom Tromey <tom@tromey.com>
13810 * p-valprint.c (pascal_object_print_value_fields)
13811 (pascal_object_print_value): New functions.
13813 2020-03-13 Tom Tromey <tom@tromey.com>
13815 * p-valprint.c (pascal_value_print_inner): Rewrite.
13817 2020-03-13 Tom Tromey <tom@tromey.com>
13819 * f-valprint.c (f_value_print_innner): Rewrite.
13821 2020-03-13 Tom Tromey <tom@tromey.com>
13823 * m2-valprint.c (m2_print_unbounded_array): New overload.
13824 (m2_print_unbounded_array): Update.
13825 (m2_print_array_contents): Take a struct value.
13826 (m2_value_print_inner): Rewrite.
13828 2020-03-13 Tom Tromey <tom@tromey.com>
13830 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
13831 (d_value_print_inner): New function.
13832 * d-lang.h (d_value_print_inner): Declare.
13833 * d-lang.c (d_language_defn): Use d_value_print_inner.
13835 2020-03-13 Tom Tromey <tom@tromey.com>
13837 * go-valprint.c (go_value_print_inner): New function.
13838 * go-lang.h (go_value_print_inner): Declare.
13839 * go-lang.c (go_language_defn): Use go_value_print_inner.
13841 2020-03-13 Tom Tromey <tom@tromey.com>
13843 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
13845 (rust_val_print): Rewrite.
13846 (rust_value_print_inner): New function, from rust_val_print.
13847 (rust_language_defn): Use rust_value_print_inner.
13849 2020-03-13 Tom Tromey <tom@tromey.com>
13851 * ada-valprint.c (ada_value_print_inner): New function.
13852 * ada-lang.h (ada_value_print_inner): Declare.
13853 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
13855 2020-03-13 Tom Tromey <tom@tromey.com>
13857 * f-valprint.c (f_value_print_innner): New function.
13858 * f-lang.h (f_value_print_innner): Declare.
13859 * f-lang.c (f_language_defn): Use f_value_print_innner.
13861 2020-03-13 Tom Tromey <tom@tromey.com>
13863 * p-valprint.c (pascal_value_print_inner): New function.
13864 * p-lang.h (pascal_value_print_inner): Declare.
13865 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
13867 2020-03-13 Tom Tromey <tom@tromey.com>
13869 * m2-valprint.c (m2_value_print_inner): New function.
13870 * m2-lang.h (m2_value_print_inner): Declare.
13871 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
13873 2020-03-13 Tom Tromey <tom@tromey.com>
13875 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
13876 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
13877 * c-valprint.c (c_value_print_inner): New function.
13878 * c-lang.h (c_value_print_inner): Declare.
13879 * c-lang.c (c_language_defn, cplus_language_defn)
13880 (asm_language_defn, minimal_language_defn): Use
13881 c_value_print_inner.
13883 2020-03-13 Tom Tromey <tom@tromey.com>
13885 * p-valprint.c (pascal_object_print_value_fields): Now static.
13886 * p-lang.h (pascal_object_print_value_fields): Don't declare.
13888 2020-03-13 Tom Tromey <tom@tromey.com>
13890 * c-valprint.c (c_val_print_array): Simplify.
13892 2020-03-13 Tom Tromey <tom@tromey.com>
13894 * valprint.c (value_print_array_elements): New function.
13895 * valprint.h (value_print_array_elements): Declare.
13897 2020-03-13 Tom Tromey <tom@tromey.com>
13899 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
13900 * mips-tdep.c (mips_print_register): Use
13901 value_print_scalar_formatted.
13903 2020-03-13 Tom Tromey <tom@tromey.com>
13905 * valprint.h (value_print_scalar_formatted): Declare.
13906 * valprint.c (value_print_scalar_formatted): New function.
13908 2020-03-13 Tom Tromey <tom@tromey.com>
13910 * valprint.h (generic_value_print): Declare.
13911 * valprint.c (generic_value_print): New function.
13913 2020-03-13 Tom Tromey <tom@tromey.com>
13915 * valprint.c (do_val_print): Call la_value_print_inner, if
13917 * rust-lang.c (rust_language_defn): Update.
13918 * p-lang.c (pascal_language_defn): Update.
13919 * opencl-lang.c (opencl_language_defn): Update.
13920 * objc-lang.c (objc_language_defn): Update.
13921 * m2-lang.c (m2_language_defn): Update.
13922 * language.h (struct language_defn) <la_value_print_inner>: New
13924 * language.c (unknown_language_defn, auto_language_defn): Update.
13925 * go-lang.c (go_language_defn): Update.
13926 * f-lang.c (f_language_defn): Update.
13927 * d-lang.c (d_language_defn): Update.
13928 * c-lang.c (c_language_defn, cplus_language_defn)
13929 (asm_language_defn, minimal_language_defn): Update.
13930 * ada-lang.c (ada_language_defn): Update.
13932 2020-03-13 Tom Tromey <tom@tromey.com>
13934 * c-valprint.c (c_value_print): Use common_val_print.
13936 2020-03-13 Tom Tromey <tom@tromey.com>
13938 * cp-valprint.c (cp_print_static_field): Use common_val_print.
13940 2020-03-13 Tom Tromey <tom@tromey.com>
13942 * f-valprint.c (f77_print_array_1, f_val_print): Use
13945 2020-03-13 Tom Tromey <tom@tromey.com>
13947 * riscv-tdep.c (riscv_print_one_register_info): Use
13950 2020-03-13 Tom Tromey <tom@tromey.com>
13952 * mi/mi-main.c (output_register): Use common_val_print.
13954 2020-03-13 Tom Tromey <tom@tromey.com>
13956 * infcmd.c (default_print_one_register_info): Use
13959 2020-03-13 Tom Tromey <tom@tromey.com>
13961 * valprint.h (common_val_print_checked): Declare.
13962 * valprint.c (common_val_print_checked): New function.
13963 * stack.c (print_frame_arg): Use common_val_print_checked.
13965 2020-03-13 Tom Tromey <tom@tromey.com>
13967 * valprint.c (do_val_print): New function, from val_print.
13968 (val_print): Use do_val_print.
13969 (common_val_print): Use do_val_print.
13971 2020-03-13 Tom Tromey <tom@tromey.com>
13973 * valprint.c (value_print): Use scoped_value_mark.
13975 2020-03-13 Tom de Vries <tdevries@suse.de>
13978 * psymtab.c (partial_symtab::partial_symtab): Don't set
13979 globals_offset and statics_offset. Push element onto
13980 current_global_psymbols and current_static_psymbols stacks.
13981 (concat): New function.
13982 (end_psymtab_common): Set globals_offset and statics_offset. Pop
13983 element from current_global_psymbols and current_static_psymbols
13984 stacks. Concat popped elements to global_psymbols and
13986 (add_psymbol_to_list): Use current_global_psymbols and
13987 current_static_psymbols stacks.
13988 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
13989 current_static_psymbols fields.
13991 2020-03-12 Christian Biesinger <cbiesinger@google.com>
13993 * corelow.c (sniff_core_bfd): Remove.
13994 (class core_target) <m_core_vec>: Remove.
13995 (core_target::core_target): Update.
13996 (core_file_fns): Remove.
13997 (deprecated_add_core_fns): Remove.
13998 (default_core_sniffer): Remove.
13999 (sniff_core_bfd): Remove.
14000 (default_check_format): Remove.
14001 (gdb_check_format): Remove.
14002 (core_target_open): Update.
14003 (core_target::get_core_register_section): Update.
14004 (get_core_registers_cb): Update.
14005 (core_target::fetch_registers): Update.
14006 * gdbcore.h (struct core_fns): Remove.
14007 (deprecated_add_core_fns): Remove.
14008 (default_core_sniffer): Remove.
14009 (default_check_format): Remove.
14011 2020-03-12 Tom Tromey <tom@tromey.com>
14013 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
14015 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
14017 2020-03-12 Tom Tromey <tom@tromey.com>
14019 * remote.c (remote_target::download_tracepoint)
14020 (remote_target::enable_tracepoint)
14021 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
14022 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
14025 2020-03-12 Tom Tromey <tom@tromey.com>
14027 * symfile-mem.c: Update CORE_ADDR size assert.
14029 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14031 * selftest.m4: Move to gdbsupport/.
14032 * acinclude.m4: Update path to selftest.m4.
14034 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14036 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
14037 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
14038 gdbarch-selfselftests.c and selftest-arch.c.
14039 (SUBDIR_UNITTESTS_OBS): Rename to...
14040 (SELFTESTS_OBS): ... this.
14041 (COMMON_SFILES): Remove disasm-selftests.c and
14042 gdbarch-selftests.c.
14043 * configure.ac: Don't add selftest-arch.{c,o} to
14045 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
14046 preprocessor conditions.
14048 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14050 * configure.ac: Don't source bfd/development.sh.
14051 * selftest.m4: Modify comment.
14052 * configure: Re-generate.
14054 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14056 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
14057 not "true" or "false".
14058 * configure: Re-generate.
14060 2020-03-12 Christian Biesinger <cbiesinger@google.com>
14062 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
14063 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
14064 renamed to arm_nbsd_supply_gregset.
14065 (fetch_register): Update to call arm_nbsd_supply_gregset.
14066 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
14067 (arm_netbsd_nat_target::fetch_registers): Update.
14068 (fetch_elfcore_registers): Removed.
14069 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
14070 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
14071 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
14072 not require NetBSD system headers.
14073 (arm_nbsd_regset): New struct.
14074 (arm_nbsd_iterate_over_regset_sections): New function.
14075 (arm_netbsd_init_abi_common): Updated to call
14076 set_gdbarch_iterate_over_regset_sections.
14077 * arm-nbsd-tdep.h: New file.
14079 2020-03-11 Kevin Buettner <kevinb@redhat.com>
14081 * symtab.c (find_pc_sect_line): Add check which prevents infinite
14084 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
14086 * configure: Re-generate.
14088 2020-03-11 Tom Tromey <tromey@adacore.com>
14090 * ada-typeprint.c (print_choices): Fix comment.
14092 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
14094 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
14095 previous item in the list, when the list has no items.
14097 2020-03-11 Tom de Vries <tdevries@suse.de>
14099 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
14100 PROP_LOCLIST handling code.
14102 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
14104 * buildsym-legacy.c (record_line): Pass extra parameter to
14106 * buildsym.c (buildsym_compunit::record_line): Take an extra
14107 parameter, reduce duplication in the line table, and record the
14108 is_stmt flag in the line table.
14109 * buildsym.h (buildsym_compunit::record_line): Add extra
14111 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
14112 non-statement lines.
14113 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
14114 this to the symtab builder.
14115 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
14116 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
14117 through to dwarf_record_line_1.
14118 * infrun.c (process_event_stop_test): When stepping, don't stop at
14119 a non-statement instruction, and only refresh the step info when
14120 we land in the middle of a line's range. Also add an extra
14122 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
14124 * record-btrace.c (btrace_find_line_range): Only record lines
14125 marked as is-statement.
14126 * stack.c (frame_show_address): Show the frame address if we are
14127 in a non-statement sal.
14128 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
14129 (maintenance_print_one_line_table): Print a header for the is_stmt
14130 column, and include is_stmt information in the output.
14131 * symtab.c (find_pc_sect_line): Find lines marked as statements in
14132 preference to non-statements.
14133 (find_pcs_for_symtab_line): Prefer is-statement entries.
14134 (find_line_common): Likewise.
14135 * symtab.h (struct linetable_entry): Add is_stmt field.
14136 (struct symtab_and_line): Likewise.
14137 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
14138 arranging the line table.
14140 2020-03-07 Tom de Vries <tdevries@suse.de>
14142 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
14145 2020-03-07 Tom Tromey <tom@tromey.com>
14147 * valops.c (value_literal_complex): Remove obsolete comment.
14148 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
14151 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
14153 * infrun.h: Forward-declare thread_info.
14154 (set_step_info): Add thread_info parameter, add doc.
14155 * infrun.c (set_step_info): Add thread_info parameter, move doc
14157 * infrun.c (process_event_stop_test): Pass thread to
14158 set_step_info call.
14159 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
14161 (prepare_one_step): Add thread_info parameter, pass it to
14162 set_step_frame and prepare_one_step (recursive) call.
14163 (step_1): Pass thread to prepare_one_step call.
14164 (step_command_fsm::should_stop): Pass thread to
14166 (until_next_fsm): Pass thread to set_step_frame call.
14167 (finish_command): Pass thread to set_step_info call.
14169 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
14171 * windows-tdep.c (windows_solib_create_inferior_hook):
14172 Check if inferior is running.
14174 2020-03-06 Tom de Vries <tdevries@suse.de>
14176 * NEWS: Fix "the the".
14179 2020-03-06 Tom de Vries <tdevries@suse.de>
14181 * psymtab.c (psymtab_to_symtab): Don't print "done.".
14183 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14185 * .dir-locals.el: Add a comment referencing the other copies of
14188 2020-03-05 John Baldwin <jhb@FreeBSD.org>
14190 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
14193 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14195 * .gitattributes: New file.
14197 2020-03-04 Tom Tromey <tom@tromey.com>
14199 * symmisc.c (print_symbol_bcache_statistics)
14200 (print_objfile_statistics): Update.
14201 * symfile.c (allocate_symtab): Use intern.
14202 * psymtab.c (partial_symtab::partial_symtab): Use intern.
14203 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
14204 macro_cache>: Remove.
14205 <string_cache>: New member.
14206 (struct objfile) <intern>: New methods.
14207 * elfread.c (elf_symtab_read): Use intern.
14208 * dwarf2/read.c (fixup_go_packaging): Intern package name.
14209 (dwarf2_compute_name, dwarf2_physname)
14210 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
14212 (guess_partial_die_structure_name): Update.
14213 (partial_die_info::fixup): Intern name.
14214 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
14216 (dwarf2_name): Intern name. Update.
14217 * buildsym.c (buildsym_compunit::get_macro_table): Use
14220 2020-03-04 Tom Tromey <tom@tromey.com>
14222 * jit.c (bfd_open_from_target_memory): Make "target" const.
14223 * corefile.c (gnutarget): Now const.
14224 * gdbcore.h (gnutarget): Now const.
14226 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
14228 * NEWS: Mention support for WOW64 processes.
14229 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
14230 (amd64_windows_segment_register_p): Remove static.
14231 (_initialize_amd64_windows_nat): Update.
14232 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
14233 * i386-windows-nat.c (context_offset): Update.
14234 (i386_mappings): Rename and remove static.
14235 (i386_windows_segment_register_p): Remove static.
14236 (_initialize_i386_windows_nat): Update.
14237 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
14238 (STATUS_WX86_SINGLE_STEP): New macro.
14239 (EnumProcessModulesEx): New macro.
14240 (Wow64SuspendThread): New macro.
14241 (Wow64GetThreadContext): New macro.
14242 (Wow64SetThreadContext): New macro.
14243 (Wow64GetThreadSelectorEntry): New macro.
14244 (windows_set_context_register_offsets): Add static.
14245 (windows_set_segment_register_p): Likewise.
14246 (windows_add_thread): Adapt for WOW64 processes.
14247 (windows_fetch_one_register): Likewise.
14248 (windows_nat_target::fetch_registers): Likewise.
14249 (windows_store_one_register): Likewise.
14250 (display_selector): Likewise.
14251 (display_selectors): Likewise.
14252 (handle_exception): Likewise.
14253 (windows_continue): Likewise.
14254 (windows_nat_target::resume): Likewise.
14255 (windows_add_all_dlls): Likewise.
14256 (do_initial_windows_stuff): Likewise.
14257 (windows_nat_target::attach): Likewise.
14258 (windows_get_exec_module_filename): Likewise.
14259 (windows_nat_target::create_inferior): Likewise.
14260 (windows_xfer_siginfo): Likewise.
14261 (_initialize_loadable): Initialize Wow64SuspendThread,
14262 Wow64GetThreadContext, Wow64SetThreadContext,
14263 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
14264 * windows-nat.h (windows_set_context_register_offsets):
14265 Remove declaration.
14266 (windows_set_segment_register_p): Likewise.
14267 (i386_windows_segment_register_p): Add declaration.
14268 (amd64_windows_segment_register_p): Likewise.
14270 2020-03-04 Luis Machado <luis.machado@linaro.org>
14272 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
14273 in "info registers" for AArch64/ARM.
14275 The change caused "info registers" to not print GPR's.
14279 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
14281 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
14282 when reg->group is empty and reggroup is not.
14284 2020-03-03 Tom Tromey <tromey@adacore.com>
14286 * dwarf2/frame.c (struct dwarf2_frame_cache)
14287 <checked_tailcall_bottom, entry_cfa_sp_offset,
14288 entry_cfa_sp_offset_p>: Remove members.
14289 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
14290 (dwarf2_frame_prev_register): Don't call
14291 dwarf2_tailcall_sniffer_first.
14292 (dwarf2_append_unwinders): Don't append tailcall unwinder.
14293 * frame-unwind.c (add_unwinder): New fuction.
14294 (frame_unwind_init): Use it. Add tailcall unwinder.
14296 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
14297 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14299 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
14300 value should be printed as true.
14302 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
14304 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
14305 (windows_init_abi): Set and use windows_so_ops.
14307 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
14309 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
14310 when verifying if dealing with a convenience variable.
14312 2020-03-03 Luis Machado <luis.machado@linaro.org>
14314 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
14316 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
14318 * infrun.c (gdbarch_supports_displaced_stepping): New.
14319 (use_displaced_stepping): Break up conditions in smaller pieces.
14320 Use gdbarch_supports_displaced_stepping.
14321 (displaced_step_prepare_throw): Use
14322 gdbarch_supports_displaced_stepping.
14324 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
14326 * NEWS: Mention new behaviour of the history filename.
14327 * top.c (write_history_p): Add comment.
14328 (show_write_history_p): Add header comment, give a different
14329 message when history writing is on, but the history filename is
14331 (history_filename): Add comment.
14332 (history_filename_empty): New function.
14333 (show_history_filename): Add header comment, give a different
14334 message when the filename is empty.
14335 (init_history): Compare history_filename against nullptr, and only
14336 read history if the filename is not empty.
14337 (set_history_filename): Add header comment, and only make
14338 non-empty filenames absolute.
14339 (init_main): Make the filename argument to 'set history filename'
14342 2020-03-02 Christian Biesinger <cbiesinger@google.com>
14344 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
14345 (arm_supply_vfpregset): ...this, and update to use VFP registers.
14346 (fetch_fp_register): Update.
14347 (fetch_fp_regs): Update.
14348 (store_fp_register): Update.
14349 (store_fp_regs): Update.
14350 (arm_netbsd_nat_target::read_description): New function.
14351 (fetch_elfcore_registers): Update.
14353 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
14355 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
14356 general_thread if the stop reply is missing a thread-id.
14357 (remote_target::process_stop_reply): Use the first non-exited
14358 thread if the target didn't pass a thread-id.
14359 * infrun.c (do_target_wait): Move call to
14360 switch_to_inferior_no_thread to ....
14361 (do_target_wait_1): ... here.
14363 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
14365 * debuginfod-support.c: Include defs.h first.
14367 2020-02-28 Tom de Vries <tdevries@suse.de>
14369 * symfile.c (set_initial_language): Use default language for lookup.
14371 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
14373 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
14374 reader variable, pass `this` to read_cutu_die_from_dwo.
14376 2020-02-27 Aaron Merey <amerey@redhat.com>
14378 * source.c (open_source_file): Check for nullptr when computing
14381 2020-02-27 Tom Tromey <tromey@adacore.com>
14383 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
14385 (dwarf2_add_field): Don't update nfields.
14386 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
14388 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14390 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
14393 2020-02-26 Tom Tromey <tom@tromey.com>
14395 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
14396 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
14397 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
14398 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
14401 2020-02-26 Tom Tromey <tom@tromey.com>
14403 * dwarf2/index-write.c (psym_index_map): Change type.
14404 (add_address_entry_worker, write_one_signatured_type)
14405 (recursively_count_psymbols, recursively_write_psymbols)
14406 (class debug_names, psyms_seen_size, write_gdbindex)
14407 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
14409 2020-02-26 Aaron Merey <amerey@redhat.com>
14411 * Makefile.in: Handle optional debuginfod support.
14413 * README: Add --with-debuginfod summary.
14414 * config.in: Regenerate.
14415 * configure: Regenerate.
14416 * configure.ac: Handle optional debuginfod support.
14417 * debuginfod-support.c: debuginfod helper functions.
14418 * debuginfod-support.h: Ditto.
14419 * doc/gdb.texinfo: Add --with-debuginfod to configure options
14421 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
14422 when a dwz file cannot be found.
14423 * elfread.c (elf_symfile_read): Query debuginfod servers when a
14424 debuginfo file cannot be found.
14425 * source.c (open_source_file): Query debuginfod servers when a
14426 source file cannot be found.
14427 * top.c (print_gdb_configuration): Include
14428 --{with,without}-debuginfod in the output.
14430 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
14432 * thread.c (thr_try_catch_cmd): Print thread name.
14434 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
14436 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
14437 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14438 dwarf2_fetch_die_type_sect_off): Move to...
14439 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
14440 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14441 dwarf2_fetch_die_type_sect_off): ... here.
14442 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
14443 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14444 dwarf2_fetch_die_type_sect_off): Move doc to header file.
14446 2020-02-26 Tom de Vries <tdevries@suse.de>
14449 * symfile.c (set_initial_language): Exit-early if
14450 language_mode == language_mode_manual.
14452 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
14454 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
14455 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
14456 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
14458 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
14460 * gdbtypes.c (create_array_type_with_stride): Handle negative
14462 * valarith.c (value_subscripted_rvalue): Likewise.
14464 2020-02-25 Luis Machado <luis.machado@linaro.org>
14466 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
14468 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
14470 * loc.h (dwarf2_get_die_type): Move to...
14471 * read.h (dwarf2_get_die_type): ... here.
14472 * read.c (dwarf2_get_die_type): Move doc to header.
14474 2020-02-25 Joel Brobecker <brobecker@adacore.com>
14476 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
14477 'gnulib/Makefile.in' to the list.
14479 2020-02-24 Tom Tromey <tom@tromey.com>
14481 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
14483 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
14486 2020-02-24 Tom Tromey <tom@tromey.com>
14488 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
14490 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
14491 (dw2_do_instantiate_symtab, dw2_get_file_names)
14492 (build_type_psymtab_dependencies, load_full_type_unit): Update.
14494 2020-02-24 Tom Tromey <tom@tromey.com>
14496 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
14497 make_scoped_restore.
14498 (dwarf2_psymtab::read_symtab): Don't clear
14499 reading_partial_symbols.
14501 2020-02-24 Tom de Vries <tdevries@suse.de>
14504 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
14506 2020-02-24 Tom de Vries <tdevries@suse.de>
14508 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
14509 commands layout next/prev/regs.
14511 2020-02-22 Tom Tromey <tom@tromey.com>
14513 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
14514 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
14516 2020-02-22 Tom Tromey <tom@tromey.com>
14518 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
14520 2020-02-22 Tom Tromey <tom@tromey.com>
14522 * tui/tui-win.c (_initialize_tui_win): Add usage text.
14523 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
14524 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
14525 * tui/tui.c (_initialize_tui): Add usage text.
14527 2020-02-22 Tom Tromey <tom@tromey.com>
14529 * tui/tui-win.c (tui_set_focus_command)
14530 (tui_set_win_height_command): Use error_no_arg.
14531 (_initialize_tui_win): Update help text.
14532 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
14534 2020-02-22 Tom Tromey <tom@tromey.com>
14536 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
14537 * tui/tui-disasm.h (struct tui_disasm_window)
14538 <display_start_addr>: Declare.
14539 * tui/tui-source.h (struct tui_source_window)
14540 <display_start_addr>: Declare.
14541 * tui/tui-winsource.h (struct tui_source_window_base)
14542 <show_source_line, display_start_addr>: New methods.
14543 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
14544 Rename and move to protected section.
14545 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
14546 (tui_source_window_base::do_erase_source_content): Update.
14547 (tui_source_window_base::show_source_line): Now a method.
14548 (tui_source_window_base::show_source_content)
14549 (tui_source_window_base::tui_source_window_base)
14550 (tui_source_window_base::rerender)
14551 (tui_source_window_base::refill)
14552 (tui_source_window_base::do_scroll_horizontal)
14553 (tui_source_window_base::set_is_exec_point_at)
14554 (tui_source_window_base::update_breakpoint_info)
14555 (tui_source_window_base::update_exec_info): Update.
14556 * tui/tui-source.c (tui_source_window::set_contents)
14557 (tui_source_window::showing_source_p)
14558 (tui_source_window::do_scroll_vertical)
14559 (tui_source_window::location_matches_p)
14560 (tui_source_window::line_is_displayed): Update.
14561 (tui_source_window::display_start_addr): New method.
14562 * tui/tui-disasm.c (tui_disasm_window::set_contents)
14563 (tui_disasm_window::do_scroll_vertical)
14564 (tui_disasm_window::location_matches_p): Update.
14565 (tui_disasm_window::display_start_addr): New method.
14567 2020-02-22 Tom Tromey <tom@tromey.com>
14569 * NEWS: Add entry for gdb.register_window_type.
14570 * tui/tui-layout.h (window_factory): New typedef.
14571 (tui_register_window): Declare.
14572 * tui/tui-layout.c (saved_tui_windows): New global.
14573 (tui_apply_current_layout): Use it.
14574 (tui_register_window): New function.
14575 * python/python.c (do_start_initialization): Call
14576 gdbpy_initialize_tui.
14577 (python_GdbMethods): Add "register_window_type" function.
14578 * python/python-internal.h (gdbpy_register_tui_window)
14579 (gdbpy_initialize_tui): Declare.
14580 * python/py-tui.c: New file.
14581 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
14583 2020-02-22 Tom Tromey <tom@tromey.com>
14585 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
14587 2020-02-22 Tom Tromey <tom@tromey.com>
14589 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
14590 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
14591 * tui/tui-data.c (tui_set_win_with_focus): Remove.
14592 (tui_set_win_focus_to): Move from tui-win.c.
14594 2020-02-22 Tom Tromey <tom@tromey.com>
14596 * tui/tui-layout.c (make_standard_window, get_locator_window): New
14598 (known_window_types): New global.
14599 (tui_get_window_by_name): Reimplement.
14600 (initialize_known_windows): New function.
14601 (validate_window_name): Rewrite.
14602 (_initialize_tui_layout): Call initialize_known_windows.
14604 2020-02-22 Tom Tromey <tom@tromey.com>
14606 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
14608 * tui/tui-winsource.h (struct tui_source_window_base)
14609 <tui_source_window_base>: Remove parameter.
14610 * tui/tui-winsource.c
14611 (tui_source_window_base::tui_source_window_base): Remove
14613 (tui_source_window_base::refill): Update.
14614 * tui/tui-stack.h (struct tui_locator_window)
14615 <tui_locator_window>: Update.
14616 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
14617 Default the constructor.
14618 * tui/tui-regs.h (struct tui_data_item_window)
14619 <tui_data_item_window>: Default the constructor.
14620 (struct tui_data_window) <tui_data_window>: Likewise.
14621 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
14622 Default the constructor.
14623 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
14624 Default the constructor.
14626 (struct tui_win_info) <tui_win_info>: Default the constructor.
14627 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
14628 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
14629 Default the constructor.
14631 2020-02-22 Tom Tromey <tom@tromey.com>
14633 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
14634 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
14635 * tui/tui-win.c (tui_resize_all): Don't call
14636 tui_delete_invisible_windows.
14637 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
14639 (tui_set_layout): Update.
14640 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
14641 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
14642 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
14644 2020-02-22 Tom Tromey <tom@tromey.com>
14646 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
14649 2020-02-22 Tom Tromey <tom@tromey.com>
14651 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
14653 2020-02-22 Tom Tromey <tom@tromey.com>
14655 * tui/tui-winsource.h (struct tui_source_window_iterator)
14656 <inner_iterator>: New etytypedef.
14657 <tui_source_window_iterator>: Take "end" parameter.
14658 <tui_source_window_iterator>: Take iterator.
14659 <operator*, advance>: Update.
14660 <m_iter>: Change type.
14661 <m_end>: New field.
14662 (struct tui_source_windows) <begin, end>: Update.
14663 * tui/tui-layout.c (tui_windows): New global.
14664 (tui_apply_current_layout): Clear tui_windows.
14665 (tui_layout_window::apply): Update tui_windows.
14666 * tui/tui-data.h (tui_windows): Declare.
14667 (all_tui_windows): Now inline function.
14668 (class tui_window_iterator, struct all_tui_windows): Remove.
14670 2020-02-22 Tom Tromey <tom@tromey.com>
14673 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
14674 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
14676 (class tui_layout_window) <get_sizes>: Likewise.
14677 (class tui_layout_split) <tui_layout_split>: Add "vertical"
14679 <get_sizes>: Add "height" argument.
14680 <m_vertical>: New field.
14681 * tui/tui-layout.c (tui_layout_split::clone): Update.
14682 (tui_layout_split::get_sizes): Add "height" argument.
14683 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
14684 (tui_new_layout_command): Parse "-horizontal".
14685 (_initialize_tui_layout): Update help string.
14686 (tui_layout_split::specification): Add "-horizontal" when needed.
14687 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
14689 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
14692 2020-02-22 Tom Tromey <tom@tromey.com>
14694 * tui/tui-layout.h (enum tui_adjust_result): New.
14695 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
14696 (class tui_layout_window) <adjust_size>: Return
14697 tui_adjust_result. Rewrite.
14698 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
14699 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
14701 2020-02-22 Tom Tromey <tom@tromey.com>
14703 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
14704 parameter and return types.
14705 (class tui_layout_base) <specification>: Add "depth".
14706 (class tui_layout_window) <specification>: Add "depth".
14707 (class tui_layout_split) <specification>: Add "depth".
14708 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
14710 (tui_new_layout_command): Parse sub-layouts.
14711 (_initialize_tui_layout): Update help string.
14712 (tui_layout_window::specification): Add "depth".
14713 (add_layout_command): Update.
14715 2020-02-22 Tom Tromey <tom@tromey.com>
14717 * NEWS: Add "tui new-layout" item.
14718 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
14719 Add new-layout command to help text.
14720 (validate_window_name): New function.
14721 (tui_new_layout_command): New function.
14722 (_initialize_tui_layout): Register "new-layout".
14723 (tui_layout_window::specification): New method.
14724 (tui_layout_window::specification): New method.
14725 * tui/tui-layout.h (class tui_layout_base) <specification>: New
14727 (class tui_layout_window) <specification>: New method.
14728 (class tui_layout_split) <specification>: New method.
14730 2020-02-22 Tom Tromey <tom@tromey.com>
14732 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
14733 * tui/tui-win.c (window_name_completer): Update comment.
14734 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
14736 (class tui_layout_window) <replace_window>: Likewise.
14737 (class tui_layout_split) <replace_window>: Likewise.
14738 (tui_set_layout): Don't declare.
14739 (tui_set_initial_layout): Declare function.
14740 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
14741 (asm_regs_layout): New globals.
14742 (tui_current_layout, show_layout): Remove.
14743 (tui_set_layout, tui_add_win_to_layout): Rewrite.
14744 (find_layout, tui_apply_layout): New function.
14745 (layout_completer): Remove.
14746 (tui_next_layout): Reimplement.
14747 (tui_next_layout_command): New function.
14748 (tui_set_initial_layout, tui_prev_layout_command): New functions.
14749 (tui_regs_layout): Reimplement.
14750 (tui_regs_layout_command): New function.
14751 (extract_display_start_addr): Rewrite.
14752 (next_layout, prev_layout): Remove.
14753 (tui_layout_window::replace_window): New method.
14754 (tui_layout_split::replace_window): New method.
14755 (destroy_layout): New function.
14756 (layout_list): New global.
14757 (add_layout_command): New function.
14758 (initialize_layouts): Update.
14759 (tui_layout_command): New function.
14760 (_initialize_tui_layout): Install "layout" commands.
14761 * tui/tui-data.h (enum tui_layout_type): Remove.
14762 (tui_current_layout): Don't declare.
14764 2020-02-22 Tom Tromey <tom@tromey.com>
14766 * tui/tui-regs.c (tui_reg_layout): Remove.
14767 (tui_reg_command): Use tui_regs_layout.
14768 * tui/tui-layout.h (tui_reg_command): Declare.
14769 * tui/tui-layout.c (tui_reg_command): New function.
14771 2020-02-22 Tom Tromey <tom@tromey.com>
14773 * tui/tui.c (tui_rl_delete_other_windows): Call
14774 tui_remove_some_windows.
14775 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
14777 (class tui_layout_window) <remove_windows>: New method.
14778 (class tui_layout_split) <remove_windows>: Declare.
14779 (tui_remove_some_windows): Declare.
14780 * tui/tui-layout.c (tui_remove_some_windows): New function.
14781 (tui_layout_split::remove_windows): New method.
14783 2020-02-22 Tom Tromey <tom@tromey.com>
14785 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
14786 * tui/tui-layout.h (tui_next_layout): Declare.
14787 * tui/tui-layout.c (tui_next_layout): New function.
14789 2020-02-22 Tom Tromey <tom@tromey.com>
14791 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
14792 correct coordinates.
14794 2020-02-22 Tom Tromey <tom@tromey.com>
14796 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
14797 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
14800 2020-02-22 Tom Tromey <tom@tromey.com>
14802 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
14803 TUI_DISASM_WIN, not tui_win_list.
14805 2020-02-22 Tom Tromey <tom@tromey.com>
14807 * valprint.c (generic_val_print_enum_1)
14808 (val_print_type_code_flags): Style member names.
14809 * rust-lang.c (val_print_struct, rust_print_enum)
14810 (rust_print_struct_def, rust_internal_print_type): Style member
14812 * p-valprint.c (pascal_object_print_value_fields): Style member
14813 names. Only call fprintf_symbol_filtered for static members.
14814 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
14815 * f-valprint.c (f_val_print): Style member names.
14816 * f-typeprint.c (f_type_print_base): Style member names.
14817 * cp-valprint.c (cp_print_value_fields): Style member names. Only
14818 call fprintf_symbol_filtered for static members.
14819 (cp_print_class_member): Style member names.
14820 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
14822 * ada-valprint.c (ada_print_scalar): Style enum names.
14823 (ada_val_print_enum): Likewise.
14824 * ada-typeprint.c (print_enum_type): Style enum names.
14826 2020-02-21 Tom Tromey <tom@tromey.com>
14828 * psympriv.h (struct partial_symtab): Update comment.
14830 2020-02-21 Tom Tromey <tromey@adacore.com>
14832 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
14835 2020-02-21 Tom de Vries <tdevries@suse.de>
14838 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
14839 if dependencies[i]->user != NULL.
14841 2020-02-21 Ali Tamur <tamur@google.com>
14843 * dwarf2/read.c (dwarf2_name): Add null check.
14845 2020-02-20 Tom Tromey <tom@tromey.com>
14847 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
14848 ">=", in binary search.
14849 (dwarf2_find_containing_comp_unit): New overload.
14850 (run_test): New self-test.
14851 (_initialize_dwarf2_read): Register new test.
14853 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
14855 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
14856 * riscv-tdep.h: Likewise.
14857 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
14859 * features/riscv/64bit-csr.xml: Regenerated.
14861 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
14862 Tom Tromey <tom@tromey.com>
14864 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
14865 of 'fputc_unfiltered'.
14866 (putchar_unfiltered): Call 'fputc_unfiltered'.
14867 (fputc_unfiltered): Call 'fputs_unfiltered'.
14869 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
14871 * config.in: Regenerate.
14872 * configure: Regenerate.
14873 * configure.ac: Add --with-python-libdir option.
14874 * main.c: Use WITH_PYTHON_LIBDIR.
14876 2020-02-19 Tom Tromey <tom@tromey.com>
14878 * symtab.c (general_symbol_info::compute_and_set_names): Use
14879 obstack_strndup. Simplify call to symbol_set_demangled_name.
14881 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
14883 * dwarf2/read.c (allocate_signatured_type_table,
14884 allocate_dwo_unit_table, allocate_type_unit_groups_table,
14885 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
14886 Remove objfile parameter, update all callers.
14888 2020-02-19 Doug Evans <dje@google.com>
14891 * rust-lang.c (rust_print_enum): Apply embedded_offset to
14892 rust_enum_variant calculation.
14894 2020-02-19 Tom Tromey <tromey@adacore.com>
14896 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
14898 2020-02-19 Tom Tromey <tromey@adacore.com>
14900 * ada-lang.c (cache_symbol): Use obstack_strdup.
14902 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
14904 * configure: Regenerate.
14906 2020-02-19 Tom Tromey <tromey@adacore.com>
14908 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
14911 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
14913 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
14915 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
14917 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
14918 if GDBSERVER is not defined.
14919 (riscv_tdesc_cache): Likewise, also store const target_desc.
14920 (STATIC_IN_GDB): Define.
14921 (riscv_create_target_description): Update declaration with
14923 (riscv_lookup_target_description): New function, only define if
14924 GDBSERVER is not defined.
14925 * arch/riscv.h (riscv_create_target_description): Declare only
14926 when GDBSERVER is defined.
14927 (riscv_lookup_target_description): New declaration when GDBSERVER
14929 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
14930 (riscv_linux_read_features): ...this, and return
14931 riscv_gdbarch_features instead of target_desc.
14932 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
14933 (riscv_linux_read_description): Rename to...
14934 (riscv_linux_read_features): ...this.
14935 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
14936 Update to use riscv_gdbarch_features and
14937 riscv_lookup_target_description.
14938 * riscv-tdep.c (riscv_find_default_target_description): Use
14939 riscv_lookup_target_description instead of
14940 riscv_create_target_description.
14942 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14944 * valprint.c (generic_val_print_enum_1): When printing a flag
14945 enum with value 0 and there is no enumerator with value 0, print
14946 just "0" instead of "(unknown: 0x0)".
14948 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14950 * valprint.c (generic_val_print_enum_1): Print unknown part of
14953 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14955 * dwarf2/read.c (update_enumeration_type_from_children): Allow
14956 flag enums to contain duplicate enumerators.
14957 * valprint.c (generic_val_print_enum_1): Update comment.
14959 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14961 * dwarf2/read.c: Include "count-one-bits.h".
14962 (update_enumeration_type_from_children): If an enumerator has
14963 multiple bits set, don't treat the enumeration as a "flag enum".
14964 * valprint.c (generic_val_print_enum_1): Assert that enumerators
14965 of flag enums have 0 or 1 bit set.
14967 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
14969 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
14971 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14972 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
14973 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14974 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
14975 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14977 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14979 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
14981 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
14983 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
14984 displaced_step_closure_up.
14985 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
14986 (struct displaced_step_closure_up):
14987 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14988 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
14989 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
14991 * gdbarch.sh (displaced_step_copy_insn): Likewise.
14992 * gdbarch.c, gdbarch.h: Re-generate.
14993 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
14994 displaced_step_closure_up.
14995 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14996 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
14997 * infrun.h (displaced_step_closure_up): New type alias.
14998 (struct displaced_step_inferior_state) <step_closure>: Change
14999 type to displaced_step_closure_up.
15000 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
15001 displaced_step_closure_up.
15002 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15004 2020-02-14 Tom Tromey <tom@tromey.com>
15006 * minidebug.c (gnu_debug_key): New global.
15007 (find_separate_debug_file_in_section): Use it.
15009 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
15011 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
15013 * gdbarch.c: Re-generate.
15014 * gdbarch.h: Re-generate.
15015 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
15017 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
15018 type to std::unique_ptr.
15019 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
15020 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15021 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
15022 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
15023 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
15024 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15025 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
15026 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
15027 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15029 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
15031 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
15033 (displaced_step_clear): Rename to...
15034 (displaced_step_reset): ... this. Just call displaced->reset ().
15035 (displaced_step_clear_cleanup): Rename to...
15036 (displaced_step_reset_cleanup): ... this.
15037 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
15038 (displaced_step_fixup): Likewise.
15039 (resume_1): Likewise.
15040 (handle_inferior_event): Restore child's memory before calling
15041 displaced_step_fixup on the parent.
15042 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
15043 to std::unique_ptr.
15044 <step_closure>: Change type to std::unique_ptr.
15046 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
15048 * arm-tdep.c: Include count-one-bits.h.
15049 (cleanup_block_store_pc): Use count_one_bits.
15050 (cleanup_block_load_pc): Use count_one_bits.
15051 (arm_copy_block_xfer): Use count_one_bits.
15052 (thumb2_copy_block_xfer): Use count_one_bits.
15053 (thumb_copy_pop_pc_16bit): Use count_one_bits.
15054 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
15055 (thumb_get_next_pcs_raw): Use count_one_bits.
15056 (arm_get_next_pcs_raw): Use count_one_bits_l.
15057 * arch/arm.c (bitcount): Remove.
15058 * arch/arm.h (bitcount): Remove.
15060 2020-02-14 Tom Tromey <tromey@adacore.com>
15062 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
15064 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
15065 * dwarf2/loc.c (call_site_find_chain_1): Return
15066 unique_xmalloc_ptr.
15067 (call_site_find_chain): Likewise.
15069 2020-02-14 Richard Biener <rguenther@suse.de>
15071 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
15072 on expression with division operators.
15074 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
15076 * MAINTAINERS (Write After Approval): Adding myself.
15078 2020-02-12 Tom Tromey <tom@tromey.com>
15080 * event-loop.c (event_data, gdb_event, event_handler_func):
15083 2020-02-12 Tom Tromey <tom@tromey.com>
15085 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
15086 (dwarf2_frame_objfile_data): Add comment.
15087 (find_comp_unit, set_comp_unit): New functions.
15088 (dwarf2_frame_find_fde): Use find_comp_unit.
15089 (dwarf2_build_frame_info): Use set_comp_unit.
15091 2020-02-12 Tom Tromey <tom@tromey.com>
15093 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
15094 (comp_unit): Don't initialize objfile.
15095 (execute_cfa_program): Add text_offset parameter.
15096 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
15097 (dwarf2_frame_cache): Update.
15098 (dwarf2_build_frame_info): Don't set "objfile" member.
15100 2020-02-12 Tom Tromey <tom@tromey.com>
15102 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
15103 (decode_frame_entry): Likewise.
15104 (dwarf2_build_frame_info): Update.
15106 2020-02-12 Tom Tromey <tom@tromey.com>
15108 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
15109 (decode_frame_entry_1): Use the comp_unit obstack.
15111 2020-02-12 Tom Tromey <tom@tromey.com>
15113 * dwarf2/frame.c (struct comp_unit): Add initializers and
15115 (dwarf2_frame_objfile_data): Store a comp_unit.
15116 (dwarf2_frame_find_fde): Update.
15117 (dwarf2_build_frame_info): Use "new".
15119 2020-02-12 Tom Tromey <tom@tromey.com>
15121 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
15122 (dwarf2_fde_table): Typedef for std::vector.
15123 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
15124 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
15125 (decode_frame_entry): Update.
15126 (dwarf2_build_frame_info): Use "new".
15128 2020-02-12 Christian Biesinger <cbiesinger@google.com>
15130 * arm-tdep.c (arm_gdbarch_init): Update.
15131 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
15132 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
15133 have_neon, is_m>: Change to bool.
15135 2020-02-12 Christian Biesinger <cbiesinger@google.com>
15137 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
15139 2020-02-12 Tom Tromey <tom@tromey.com>
15141 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
15143 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
15145 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
15146 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
15148 2020-02-11 Tom Tromey <tom@tromey.com>
15150 * psymtab.h: Update comment.
15152 2020-02-11 Tom Tromey <tom@tromey.com>
15154 * gdb_obstack.h (struct auto_obstack): Use
15155 DISABLE_COPY_AND_ASSIGN.
15157 2020-02-11 Tom Tromey <tom@tromey.com>
15159 * dwarf2/frame.h (struct objfile): Don't forward declare.
15161 2020-02-11 Christian Biesinger <cbiesinger@google.com>
15163 * cris-tdep.c (cris_supply_gregset): Change signature to match
15164 what struct regset expects.
15165 (cris_regset): New struct.
15166 (fetch_core_registers): Remove.
15167 (cris_iterate_over_regset_sections): New function.
15168 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
15169 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
15171 2020-02-11 Christian Biesinger <cbiesinger@google.com>
15173 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
15176 2020-02-11 Christian Biesinger <cbiesinger@google.com>
15178 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
15180 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
15182 * configure: Re-generate.
15184 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
15186 * configure: Re-generate.
15188 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
15190 * acinclude: Update warning.m4 path.
15191 * warning.m4: Move to gdbsupport.
15193 2020-02-11 Tom Tromey <tromey@adacore.com>
15195 * remote.c (remote_console_output): Update.
15196 * printcmd.c (printf_command): Update.
15197 * event-loop.c (gdb_wait_for_event): Update.
15198 * linux-nat.c (sigchld_handler): Update.
15199 * remote-sim.c (gdb_os_write_stdout): Update.
15200 (gdb_os_flush_stdout): Update.
15201 (gdb_os_flush_stderr): Update.
15202 (gdb_os_write_stderr): Update.
15203 * exceptions.c (print_exception): Update.
15204 * remote-fileio.c (remote_fileio_func_read): Update.
15205 (remote_fileio_func_write): Update.
15206 * tui/tui.c (tui_enable): Update.
15207 * tui/tui-interp.c (tui_interp::init): Update.
15208 * utils.c (init_page_info): Update.
15209 (putchar_unfiltered, fputc_unfiltered): Update.
15210 (gdb_flush): Update.
15211 (emit_style_escape): Update.
15212 (flush_wrap_buffer, fputs_maybe_filtered): Update.
15213 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
15214 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
15215 (stderr_file::write): Update.
15216 (stderr_file::puts): Update.
15217 * ui-file.h (ui_file_isatty, ui_file_write)
15218 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
15219 (ui_file_puts): Don't declare.
15221 2020-02-10 Tom de Vries <tdevries@suse.de>
15223 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
15224 sentinel to char *.
15226 2020-02-09 Tom de Vries <tdevries@suse.de>
15228 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
15229 filename if it matches "<artificial>".
15231 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
15233 * windows-tdep.c (struct enum_value_name): New struct.
15234 (create_enum): New function.
15235 (windows_get_siginfo_type): Create and use enum types.
15237 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
15239 * NEWS: Mention $_siginfo support for Windows.
15240 * windows-nat.c (handle_exception): Set siginfo_er.
15241 (windows_nat_target::mourn_inferior): Reset siginfo_er.
15242 (windows_xfer_siginfo): New function.
15243 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
15244 * windows-tdep.c (struct windows_gdbarch_data): New struct.
15245 (init_windows_gdbarch_data): New function.
15246 (get_windows_gdbarch_data): New function.
15247 (windows_get_siginfo_type): New function.
15248 (windows_init_abi): Register windows_get_siginfo_type.
15249 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
15251 2020-02-08 Tom Tromey <tom@tromey.com>
15253 * dwarf2/read.c (class cutu_reader) <cutu_reader,
15254 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
15255 <keep>: Declare method.
15256 <m_keep>: Remove member.
15257 <~cutu_reader>: Remove.
15258 (cutu_reader::init_tu_and_read_dwo_dies): Update.
15259 (cutu_reader::cutu_reader): Update.
15260 (cutu_reader::keep): Rename from ~cutu_reader.
15261 (process_psymtab_comp_unit, build_type_psymtabs_1)
15262 (process_skeletonless_type_unit, load_partial_comp_unit)
15263 (load_full_comp_unit, dwarf2_read_addr_index)
15264 (read_signatured_type): Update.
15266 2020-02-08 Tom Tromey <tom@tromey.com>
15268 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
15269 "want_partial_unit" parameter.
15270 (process_psymtab_comp_unit): Change want_partial_unit to bool.
15271 Inline check for DW_TAG_partial_unit.
15272 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
15274 2020-02-08 Tom Tromey <tom@tromey.com>
15276 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
15278 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
15281 2020-02-08 Tom Tromey <tom@tromey.com>
15283 * dwarf2/read.c (read_address): Move to comp-unit.c.
15284 (dwarf2_rnglists_process, dwarf2_ranges_process)
15285 (read_attribute_value, dwarf_decode_lines_1)
15286 (var_decode_location, decode_locdesc): Update.
15287 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
15288 read.c. Remove "cu" parameter.
15289 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
15292 2020-02-08 Tom Tromey <tom@tromey.com>
15294 * dwarf2/read.c (read_attribute_value, read_indirect_string)
15295 (read_indirect_line_string): Update.
15296 * dwarf2/comp-unit.c (read_offset): Remove.
15297 (read_comp_unit_head): Update.
15298 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
15300 (read_offset): Don't declare.
15302 2020-02-08 Tom Tromey <tom@tromey.com>
15304 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
15305 * dwarf2/read.c (struct comp_unit_head): Move to
15306 dwarf2/comp-unit.h.
15307 (enum class rcuh_kind): Move to comp-unit.h.
15308 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
15309 (read_comp_unit_head, error_check_comp_unit_head)
15310 (read_and_check_comp_unit_head): Move to comp-unit.c.
15311 (read_offset, dwarf_unit_type_name): Likewise.
15312 (create_debug_type_hash_table, read_cutu_die_from_dwo)
15313 (cutu_reader::cutu_reader, read_call_site_scope)
15314 (find_partial_die, follow_die_offset): Update.
15315 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
15317 2020-02-08 Tom Tromey <tom@tromey.com>
15319 * dwarf2/read.c (read_offset_1): Move to leb.c.
15320 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
15321 (dwarf_decode_macro_bytes): Update.
15322 * dwarf2/leb.c (read_offset): Rename; move from read.c.
15323 * dwarf2/leb.h (read_offset): Declare.
15325 2020-02-08 Tom Tromey <tom@tromey.com>
15327 * dwarf2/read.c (dwarf2_section_size): Remove.
15328 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
15330 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
15332 2020-02-08 Tom Tromey <tom@tromey.com>
15334 * dwarf2/read.c (read_initial_length): Move to leb.c.
15335 * dwarf2/leb.h (read_initial_length): Declare.
15336 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
15337 handle_nonstd parameter.
15338 * dwarf2/frame.c (read_initial_length): Remove.
15339 (decode_frame_entry_1): Update.
15341 2020-02-08 Tom Tromey <tom@tromey.com>
15343 * dwarf2/loc.c (dwarf2_find_location_expression)
15344 (dwarf_evaluate_loc_desc::get_tls_address)
15345 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
15346 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
15347 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
15348 (dwarf2_compile_property_to_c)
15349 (dwarf2_loc_desc_get_symbol_read_needs)
15350 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
15351 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
15352 (loclist_describe_location, loclist_tracepoint_var_ref)
15353 (loclist_generate_c_location): Update.
15354 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
15355 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
15356 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
15357 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
15358 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
15359 (dwarf2_per_cu_data::addr_size)
15360 (dwarf2_per_cu_data::ref_addr_size)
15361 (dwarf2_per_cu_data::text_offset)
15362 (dwarf2_per_cu_data::addr_type): Now methods.
15363 (per_cu_header_read_in): Make per_cu "const".
15364 (dwarf2_version): Remove.
15365 (dwarf2_per_cu_data::int_type): Now a method.
15366 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
15367 (set_die_type, read_array_type, read_subrange_index_type)
15368 (read_tag_string_type, read_subrange_type): Update.
15369 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
15370 offset_size, ref_addr_size, text_offset, addr_type, version,
15371 objfile, int_type, addr_sized_int_type>: Declare methods.
15373 2020-02-08 Tom Tromey <tom@tromey.com>
15375 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
15378 2020-02-08 Tom Tromey <tom@tromey.com>
15380 * dwarf2/read.h (dwarf_line_debug): Declare.
15381 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
15382 * dwarf2/read.c: Move line_header code to new files.
15383 (dwarf_line_debug): No longer static.
15384 * dwarf2/line-header.c: New file.
15385 * dwarf2/line-header.h: New file.
15387 2020-02-08 Tom Tromey <tom@tromey.com>
15389 * dwarf2/read.c (struct line_header) <file_full_name,
15390 file_file_name>: Return unique_xmalloc_ptr.
15391 (line_header::file_file_name): Update.
15392 (line_header::file_full_name): Update.
15393 (dw2_get_file_names_reader): Update.
15394 (macro_start_file): Update.
15396 2020-02-08 Tom Tromey <tom@tromey.com>
15398 * dwarf2/read.c (struct line_header) <file_full_name,
15399 file_file_name>: Declare methods.
15400 (dw2_get_file_names_reader): Update.
15401 (file_file_name): Now a method.
15402 (file_full_name): Likewise.
15403 (macro_start_file): Update.
15405 2020-02-08 Tom Tromey <tom@tromey.com>
15407 * dwarf2/read.c (dwarf_always_disassemble)
15408 (show_dwarf_always_disassemble): Move to loc.c.
15409 (_initialize_dwarf2_read): Move "always-disassemble" registration
15411 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
15412 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
15414 (show_dwarf_always_disassemble): Move from read.c.
15415 (_initialize_dwarf2loc): Move always-disassemble from read.c.
15417 2020-02-08 Tom Tromey <tom@tromey.com>
15419 * dwarf2/read.c (~dwarf2_per_objfile): Update.
15420 (create_quick_file_names_table): Return htab_up.
15421 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
15423 * dwarf2/read.h (struct dwarf2_per_objfile)
15424 <quick_file_names_table>: Now htab_up.
15426 2020-02-08 Tom Tromey <tom@tromey.com>
15428 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
15430 2020-02-08 Tom Tromey <tom@tromey.com>
15432 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
15434 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
15435 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
15436 (abbrev_table::abbrev_table): No longer inline.
15437 (ABBREV_HASH_SIZE): Remove.
15438 (abbrev_table::m_abbrevs): Now an htab_up.
15440 2020-02-08 Tom Tromey <tom@tromey.com>
15442 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
15443 (cutu_reader): Update.
15444 (build_type_psymtabs_1): Update.
15445 * dwarf2/abbrev.c (abbrev_table::read): Rename.
15446 (abbrev_table::alloc_abbrev): Update.
15447 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
15448 (abbrev_table::read): New static method, renamed from
15449 abbrev_table_read_table.
15450 (abbrev_table::alloc_abbrev)
15451 (abbrev_table::add_abbrev): Now private.
15452 (abbrev_table::abbrev_table): Now private.
15453 (abbrev_table::m_abbrev_obstack): Now private. Rename.
15455 2020-02-08 Tom Tromey <tom@tromey.com>
15457 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
15458 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
15461 2020-02-08 Tom Tromey <tom@tromey.com>
15463 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
15465 (lookup_dwo_unit_in_dwp): Update.
15466 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
15469 2020-02-08 Tom Tromey <tom@tromey.com>
15471 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
15474 2020-02-08 Tom Tromey <tom@tromey.com>
15476 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
15478 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
15479 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
15480 Change type to htab_up.
15482 2020-02-08 Tom Tromey <tom@tromey.com>
15484 * dwarf2/read.c (allocate_type_unit_groups_table): Return
15485 htab_up. Don't allocate on obstack.
15486 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
15487 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
15488 Change type to htab_up.
15490 2020-02-08 Tom Tromey <tom@tromey.com>
15492 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
15493 Change type to htab_up.
15494 * dwarf2/read.c (create_signatured_type_table_from_index)
15495 (create_signatured_type_table_from_debug_names)
15496 (create_all_type_units, add_type_unit)
15497 (lookup_dwo_signatured_type, lookup_signatured_type)
15498 (process_skeletonless_type_unit): Update.
15499 (create_debug_type_hash_table, create_debug_types_hash_table):
15500 Change type of types_htab.
15501 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
15502 htab_up. Don't allocate on obstack.
15503 (create_cus_hash_table): Change type of cus_htab parameter.
15504 (struct dwo_file) <cus, tus>: Now htab_up.
15505 (lookup_dwo_signatured_type, lookup_dwo_cutu)
15506 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
15507 (queue_and_load_all_dwo_tus): Update.
15508 * dwarf2/index-write.c (write_gdbindex): Update.
15509 (write_debug_names): Update.
15511 2020-02-08 Tom Tromey <tom@tromey.com>
15513 * dwarf2/read.h (struct dwarf2_queue_item): Move from
15514 dwarf2/read.c. Remove "next" member. Add constructor ntad
15516 (struct dwarf2_per_objfile) <queue>: New member.
15517 * dwarf2/read.c (struct dwarf2_queue_item): Move to
15519 (dwarf2_queue, dwarf2_queue_tail): Remove.
15520 (class dwarf2_queue_guard): Add parameter to constructor. Use
15521 DISABLE_COPY_AND_ASSIGN.
15522 <m_per_objfile>: New member.
15523 <~dwarf2_queue_guard>: Rewrite.
15524 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
15526 (~dwarf2_queue_item): New.
15528 2020-02-08 Tom Tromey <tom@tromey.com>
15530 * dwarf2/read.c (struct die_info) <has_children>: New member.
15531 (dw2_get_file_names_reader): Remove has_children.
15532 (dw2_get_file_names): Update.
15533 (read_cutu_die_from_dwo): Remove has_children.
15534 (cutu_reader::init_tu_and_read_dwo_dies)
15535 (cutu_reader::cutu_reader): Update.
15536 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
15537 Remove has_children.
15538 (build_type_psymtabs_1, process_skeletonless_type_unit)
15539 (load_partial_comp_unit, load_full_comp_unit): Update.
15540 (create_dwo_cu_reader): Remove has_children.
15541 (create_cus_hash_table, read_die_and_children): Update.
15542 (read_full_die_1,read_full_die): Remove has_children.
15543 (read_signatured_type): Update.
15544 (class cutu_reader) <has_children>: Remove.
15546 2020-02-08 Tom Tromey <tom@tromey.com>
15548 * dwarf2/expr.c: Rename from dwarf2expr.c.
15549 * dwarf2/expr.h: Rename from dwarf2expr.h.
15550 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
15551 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
15552 * dwarf2/frame.c: Rename from dwarf2-frame.c.
15553 * dwarf2/frame.h: Rename from dwarf2-frame.h.
15554 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
15555 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
15556 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
15557 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
15558 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
15559 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
15560 * dwarf2/loc.c: Rename from dwarf2loc.c.
15561 * dwarf2/loc.h: Rename from dwarf2loc.h.
15562 * dwarf2/read.c: Rename from dwarf2read.c.
15563 * dwarf2/read.h: Rename from dwarf2read.h.
15564 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
15565 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
15566 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
15567 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
15568 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
15569 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
15570 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
15571 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
15572 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
15573 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
15574 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
15575 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
15576 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
15578 * Makefile.in (COMMON_SFILES): Update.
15579 (HFILES_NO_SRCDIR): Update.
15581 2020-02-08 Tom Tromey <tom@tromey.com>
15583 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
15584 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
15586 2020-02-08 Tom Tromey <tom@tromey.com>
15588 * dwarf2read.h (struct die_info): Don't declare.
15590 2020-02-08 Tom Tromey <tom@tromey.com>
15592 * dwarf2read.h (die_info_ptr): Remove typedef.
15594 2020-02-08 Tom Tromey <tom@tromey.com>
15596 * dwarf2read.c (read_call_site_scope)
15597 (handle_data_member_location, dwarf2_add_member_fn)
15598 (mark_common_block_symbol_computed, read_common_block)
15599 (attr_to_dynamic_prop, partial_die_info::read)
15600 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
15601 (dwarf2_symbol_mark_computed, set_die_type): Update.
15602 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
15604 (attr_form_is_block): Don't declare.
15605 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
15607 2020-02-08 Tom Tromey <tom@tromey.com>
15609 * dwarf2read.c (dwarf2_find_base_address, )
15610 (read_call_site_scope, rust_containing_type)
15611 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
15612 (handle_data_member_location, dwarf2_add_member_fn)
15613 (get_alignment, read_structure_type, process_structure_scope)
15614 (mark_common_block_symbol_computed, read_common_block)
15615 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
15616 (partial_die_info::read, read_attribute_value, new_symbol)
15617 (lookup_die_type, dwarf2_get_ref_die_offset)
15618 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
15619 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
15620 (dwarf2_symbol_mark_computed): Update.
15621 * dwarf2/attribute.h (struct attribute) <value_as_address,
15622 form_is_section_offset, form_is_constant, form_is_ref>: Declare
15624 (value_as_address, attr_form_is_section_offset)
15625 (attr_form_is_constant, attr_form_is_ref): Don't declare.
15626 * dwarf2/attribute.c (attribute::value_as_address)
15627 (attribute::form_is_section_offset, attribute::form_is_constant)
15628 (attribute::form_is_ref): Now methods.
15630 2020-02-08 Tom Tromey <tom@tromey.com>
15632 * dwarf2read.c (struct attribute, DW_STRING)
15633 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
15634 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
15635 (attr_form_is_block, attr_form_is_section_offset)
15636 (attr_form_is_constant, attr_form_is_ref): Move.
15637 * dwarf2/attribute.h: New file.
15638 * dwarf2/attribute.c: New file, from dwarf2read.c.
15639 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
15641 2020-02-08 Tom Tromey <tom@tromey.com>
15643 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
15644 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
15646 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
15647 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
15648 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
15650 * dwarf2/abbrev.h: New file.
15651 * dwarf2/abbrev.c: New file, from dwarf2read.c.
15652 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
15654 2020-02-08 Tom Tromey <tom@tromey.com>
15656 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
15657 (dwarf2_section_size, dwarf2_get_section_info)
15658 (create_signatured_type_table_from_debug_names)
15659 (create_addrmap_from_aranges, read_debug_names_from_section)
15660 (get_gdb_index_contents_from_section, read_comp_unit_head)
15661 (error_check_comp_unit_head, read_abbrev_offset)
15662 (create_debug_type_hash_table, init_cu_die_reader)
15663 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
15664 (read_comp_units_from_section, create_cus_hash_table)
15665 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
15666 (create_dwp_v2_section, dwarf2_rnglists_process)
15667 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
15668 (abbrev_table_read_table, read_indirect_string_at_offset_from)
15669 (read_indirect_string_from_dwz, read_addr_index_1)
15670 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
15671 (dwarf_decode_macro_bytes, dwarf_decode_macros)
15672 (fill_in_loclist_baton): Update.
15673 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
15674 get_containing_section, get_bfd_owner, get_bfd_section,
15675 get_file_name, get_id, get_flags, empty, read>: Declare methods.
15676 (dwarf2_read_section, get_section_name, get_section_file_name)
15677 (get_containing_section, get_section_bfd_owner)
15678 (get_section_bfd_section, get_section_name, get_section_file_name)
15679 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
15681 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
15682 (dwarf2_section_info::get_bfd_owner)
15683 (dwarf2_section_info::get_bfd_section)
15684 (dwarf2_section_info::get_name)
15685 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
15686 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
15687 (dwarf2_section_info::read): Now methods.
15688 * dwarf-index-write.c (class debug_names): Update.
15690 2020-02-08 Tom Tromey <tom@tromey.com>
15692 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
15693 Move to dwarf2/section.h.
15694 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
15695 (get_section_bfd_section, get_section_name)
15696 (get_section_file_name, get_section_id, get_section_flags)
15697 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
15699 * dwarf2/section.h: New file.
15700 * dwarf2/section.c: New file, from dwarf2read.c.
15701 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
15703 2020-02-08 Tom Tromey <tom@tromey.com>
15705 * dwarf2read.h (read_unsigned_leb128): Don't declare.
15706 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
15707 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
15708 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
15709 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
15710 * dwarf2/leb.h: New file, from dwarf2read.c.
15711 * dwarf2/leb.c: New file, from dwarf2read.c.
15712 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
15714 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
15715 (COMMON_SFILES): Add dwarf2/leb.c.
15717 2020-02-08 Joel Brobecker <brobecker@adacore.com>
15721 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
15724 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
15725 * gdb/remote.c (remote_console_output): Update.
15726 * gdb/ui-file.c (fputs_unfiltered): Rename to...
15727 (ui_file_puts): ...this.
15728 * gdb/ui-file.h (ui_file_puts): Add declaration.
15729 * gdb/utils.c (emit_style_escape): Update.
15730 (flush_wrap_buffer): Update.
15731 (fputs_maybe_filtered): Update.
15732 (fputs_unfiltered): Add function.
15734 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
15736 * gdb/event-loop.c (gdb_wait_for_event): Update.
15737 * gdb/printcmd.c (printf_command): Update.
15738 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
15739 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
15740 (gdb_os_flush_stderr): Update.
15741 * gdb/remote.c (remote_console_output): Update.
15742 * gdb/ui-file.c (gdb_flush): Rename to...
15743 (ui_file_flush): ...this.
15744 (stderr_file::write): Update.
15745 (stderr_file::puts): Update.
15746 * gdb/ui-file.h (gdb_flush): Rename to...
15747 (ui_file_flush): ...this.
15748 * gdb/utils.c (gdb_flush): Add function.
15749 * gdb/utils.h (gdb_flush): Add declaration.
15751 2020-02-07 Tom Tromey <tromey@adacore.com>
15753 PR breakpoints/24915:
15754 * source.c (find_and_open_source): Do not check basenames_may_differ.
15756 2020-02-07 Tom Tromey <tom@tromey.com>
15758 * README: Update gdbserver documentation.
15759 * gdbserver: Move to top level.
15760 * configure.tgt (build_gdbserver): Remove.
15761 * configure.ac: Remove --enable-gdbserver.
15762 * configure: Rebuild.
15763 * Makefile.in (distclean): Don't mention gdbserver.
15765 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
15767 * source-cache.c (source_cache::ensure): Surround
15768 get_plain_source_lines with a try/catch.
15769 (source_cache::get_line_charpos): Get rid of try/catch
15770 and only check for the return value of "ensure".
15771 * tui/tui-source.c (tui_source_window::set_contents):
15772 Simplify "nlines" calculation.
15774 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
15776 * MAINTAINERS (Write After Approval): Add myself.
15778 2020-02-05 Christian Biesinger <cbiesinger@google.com>
15780 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
15783 2020-02-05 Christian Biesinger <cbiesinger@google.com>
15785 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
15787 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
15789 * nat/riscv-linux-tdesc.h: New file.
15790 * nat/riscv-linux-tdesc.c: New file, taking code from...
15791 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
15793 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
15796 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
15798 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
15799 we don't set the fake simulator ptid to the null_ptid.
15801 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
15803 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
15804 * gdbthread.h (class thread_info) <resumed>: Likewise.
15805 * infrun.c (resume_1): Likewise.
15806 (proceed): Likewise.
15807 (infrun_thread_stop_requested): Likewise.
15808 (stop_all_threads): Likewise.
15809 (handle_inferior_event): Likewise.
15810 (restart_threads): Likewise.
15811 (finish_step_over): Likewise.
15812 (keep_going_stepped_thread): Likewise.
15813 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
15814 (linux_handle_extended_wait): Likewise.
15815 * record-btrace.c (get_thread_current_frame_id): Likewise.
15816 * record-full.c (record_full_wait_1): Likewise.
15817 * remote.c (remote_target::process_initial_stop_replies): Likewise.
15818 * target.c (target_resume): Likewise.
15819 * thread.c (set_running_thread): Likewise.
15821 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
15823 * f-valprint.c (f77_print_array_1): Changed datatype of index
15824 variable to LONGEST from int to enable it to contain bound
15827 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
15829 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
15830 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
15831 offsets according to FLEN determined.
15832 (riscv_linux_nat_target::read_description): Determine FLEN
15834 (riscv_linux_nat_target::fetch_registers): Size regset buffer
15835 according to FLEN determined.
15836 (riscv_linux_nat_target::store_registers): Likewise.
15838 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
15840 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
15841 when reg->group is empty and reggroup is not.
15843 2020-01-31 Tom Tromey <tromey@adacore.com>
15845 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
15846 Call beneath target's mourn_inferior after unpushing.
15848 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
15851 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
15852 have enough lines to fill the screen, still return the lowest
15855 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
15857 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
15858 '-', '<', and '>' commands.
15860 2020-01-29 Pedro Alves <palves@redhat.com>
15861 Sergio Durigan Junior <sergiodj@redhat.com>
15863 * infcmd.c (construct_inferior_arguments): Assert that
15864 'argc' is greater than 0.
15866 2020-01-29 Luis Machado <luis.machado@linaro.org>
15868 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
15869 (BRK_INSN_MASK): Define to 0xd4200000.
15870 (aarch64_program_breakpoint_here_p): New function.
15871 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
15872 * arch-utils.c (default_program_breakpoint_here_p): Moved from
15874 * arch-utils.h (default_program_breakpoint_here_p): Moved from
15876 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
15877 call gdbarch_program_breakpoint_here_p.
15878 (program_breakpoint_here): Moved to arch-utils.c, renamed to
15879 default_program_breakpoint_here_p, changed return type to bool and
15881 * breakpoint.h (program_breakpoint_here): Moved prototype to
15882 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
15883 return type to bool.
15884 * gdbarch.c: Regenerate.
15885 * gdbarch.h: Regenerate.
15886 * gdbarch.sh (program_breakpoint_here_p): New method.
15887 * infrun.c (handle_signal_stop): Call
15888 gdbarch_program_breakpoint_here_p.
15890 2020-01-26 Tom Tromey <tom@tromey.com>
15892 * ctfread.c (struct ctf_fp_info): Reindent.
15893 (_initialize_ctfread): Remove.
15895 2020-01-26 Tom Tromey <tom@tromey.com>
15897 * psymtab.c (partial_map_expand_apply)
15898 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
15899 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
15900 (psym_print_stats, psym_expand_symtabs_for_function)
15901 (psym_map_symbol_filenames, psym_map_matching_symbols)
15902 (psym_expand_symtabs_matching)
15903 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
15904 (maintenance_check_psymtabs): Use new methods.
15905 * psympriv.h (struct partial_symtab) <readin_p,
15906 get_compunit_symtab>: New methods.
15907 <readin, compunit_symtab>: Remove members.
15908 (struct standard_psymtab): New.
15909 (struct legacy_psymtab): Derive from standard_psymtab.
15910 * dwarf2read.h (struct dwarf2_psymtab): Derive from
15912 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
15914 2020-01-26 Tom Tromey <tom@tromey.com>
15916 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
15917 read_dependencies. Add assert.
15918 * psymtab.c (partial_symtab::read_dependencies): New method.
15919 * psympriv.h (struct partial_symtab) <read_dependencies>: New
15921 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
15922 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
15924 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
15927 2020-01-26 Tom Tromey <tom@tromey.com>
15929 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
15930 Call expand_psymtab.
15931 (xcoff_read_symtab): Call expand_psymtab.
15932 (xcoff_start_psymtab, xcoff_end_psymtab): Set
15933 legacy_expand_psymtab.
15934 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
15936 (struct legacy_psymtab) <expand_psymtab>: Implement.
15937 <legacy_expand_psymtab>: New member.
15938 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
15939 (parse_partial_symbols): Set legacy_expand_psymtab.
15940 (psymtab_to_symtab_1): Change argument order. Call
15942 (new_psymtab): Set legacy_expand_psymtab.
15943 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
15944 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
15946 (dwarf2_psymtab::expand_psymtab): Rename from
15947 psymtab_to_symtab_1. Call expand_psymtab.
15948 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
15949 (dbx_end_psymtab): Likewise.
15950 (dbx_psymtab_to_symtab_1): Change argument order. Call
15952 (dbx_read_symtab): Call expand_psymtab.
15953 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
15954 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
15955 (ctf_psymtab::read_symtab): Call expand_psymtab.
15957 2020-01-26 Tom Tromey <tom@tromey.com>
15959 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
15960 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
15962 * mdebugread.c (mdebug_read_symtab): Remove prints.
15963 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
15965 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
15967 2020-01-26 Tom Tromey <tom@tromey.com>
15969 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
15970 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
15971 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
15973 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
15974 * psymtab.c (psymtab_to_symtab): Call method.
15975 (dump_psymtab): Update.
15976 * psympriv.h (struct partial_symtab): Add virtual destructor.
15977 <read_symtab>: New method.
15978 (struct legacy_symtab): New.
15979 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
15980 (struct pst_map) <pst>: Now a legacy_psymtab.
15981 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
15982 (new_psymtab): Use legacy_psymtab.
15983 * dwarf2read.h (struct dwarf2_psymtab): New.
15984 (struct dwarf2_per_cu_data) <psymtab>: Use it.
15985 * dwarf2read.c (dwarf2_create_include_psymtab)
15986 (dwarf2_build_include_psymtabs, create_type_unit_group)
15987 (create_partial_symtab, process_psymtab_comp_unit_reader)
15988 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
15989 (set_partial_user): Use dwarf2_psymtab.
15990 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
15991 (psymtab_to_symtab_1, process_full_comp_unit)
15992 (process_full_type_unit, dwarf2_ranges_read)
15993 (dwarf2_get_pc_bounds, psymtab_include_file_name)
15994 (dwarf_decode_lines): Use dwarf2_psymtab.
15995 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
15996 (add_address_entry_worker, write_one_signatured_type)
15997 (recursively_count_psymbols, recursively_write_psymbols)
15998 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
15999 (write_debug_names): Likewise.
16000 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
16001 <pst>: Now a legacy_psymtab.
16002 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
16003 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
16004 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
16005 * ctfread.c (struct ctf_psymtab): New.
16006 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
16008 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
16009 (create_partial_symtab): Return a ctf_psymtab.
16010 (scan_partial_symbols): Update.
16012 2020-01-26 Tom Tromey <tom@tromey.com>
16014 * xcoffread.c (xcoff_start_psymtab): Use new.
16015 * psymtab.c (partial_symtab::partial_symtab): New constructor,
16016 renamed from start_psymtab_common.
16017 * psympriv.h (struct partial_symtab): Add new constructor.
16018 (start_psymtab_common): Don't declare.
16019 * mdebugread.c (parse_partial_symbols): Use new.
16020 * dwarf2read.c (create_partial_symtab): Use new.
16021 * dbxread.c (start_psymtab): Use new.
16022 * ctfread.c (create_partial_symtab): Use new.
16024 2020-01-26 Tom Tromey <tom@tromey.com>
16026 * xcoffread.c (xcoff_end_psymtab): Use new.
16027 * psymtab.c (start_psymtab_common): Use new.
16028 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
16030 * psympriv.h (struct partial_symtab): Add parameters to
16031 constructor. Don't inline.
16032 (allocate_psymtab): Don't declare.
16033 * mdebugread.c (new_psymtab): Use new.
16034 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
16035 * dbxread.c (dbx_end_psymtab): Use new.
16037 2020-01-26 Tom Tromey <tom@tromey.com>
16039 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
16040 allocate_psymtab. Update documentation.
16041 * psymtab.c (psymtab_storage::install_psymtab): Rename from
16042 allocate_psymtab. Do not use new.
16043 (allocate_psymtab): Use new. Update.
16045 2020-01-26 Tom Tromey <tom@tromey.com>
16047 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
16048 * psymtab.c (psym_print_stats): Update.
16049 * psympriv.h (struct partial_symtab) <readin,
16050 psymtabs_addrmap_supported, anonymous>: Now bool.
16051 * mdebugread.c (psymtab_to_symtab_1): Update.
16052 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
16053 (build_type_psymtabs_reader, psymtab_to_symtab_1)
16054 (process_full_comp_unit, process_full_type_unit): Update.
16055 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
16056 * ctfread.c (psymtab_to_symtab): Update.
16058 2020-01-26 Tom Tromey <tom@tromey.com>
16060 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
16061 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
16062 * psymtab.c (psymtab_storage): Delete psymtabs.
16063 (psymtab_storage::allocate_psymtab): Use new.
16064 (psymtab_storage::discard_psymtab): Use delete.
16065 * psympriv.h (struct partial_symtab): Add constructor and
16068 2020-01-26 Tom Tromey <tom@tromey.com>
16070 * machoread.c: Do not include psympriv.h.
16072 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16074 * NEWS: Mention the new option and the set/show commands.
16076 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16078 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
16079 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
16080 (validate_exec_file): New variables, enums, functions.
16081 (exec_file_locate_attach, print_section_info): Style the filenames.
16082 (_initialize_exec): Install show_exec_file_mismatch_command and
16083 set_exec_file_mismatch_command.
16084 * gdbcore.h (validate_exec_file): Declare.
16085 * infcmd.c (attach_command): Call validate_exec_file.
16086 * remote.c ( remote_target::remote_add_inferior): Likewise.
16088 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16090 * frame.c (find_frame_sal): Move call to get_next_frame into more
16092 * inline-frame.c (inilne_state) <inline_state>: Update argument
16094 (inilne_state) <skipped_symbol>: Rename to...
16095 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
16096 (skip_inline_frames): Build vector of skipped symbols and use this
16097 to reate the inline_state.
16098 (inline_skipped_symbol): Add a comment and some assertions, fetch
16099 skipped symbol from the list.
16101 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16103 * buildsym.c (lte_is_less_than): Delete.
16104 (buildsym_compunit::end_symtab_with_blockvector): Create local
16105 lambda function to sort line table entries, and use
16106 std::stable_sort instead of std::sort.
16107 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
16108 markers when looking for a previous line.
16110 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16112 * dwarf2read.c (lnp_state_machine::record_line): Include
16113 end_sequence parameter in debug print out. Record the line if we
16114 are at an end_sequence marker even if it's not the start of a
16116 * symmisc.c (maintenance_print_one_line_table): Print end of
16117 sequence markers with 'END' not '0'.
16119 2020-01-24 Pedro Alves <palves@redhat.com>
16122 * thread.c (scoped_restore_current_thread::restore): Use
16123 switch_to_inferior_no_thread.
16124 * exec.c: Include "progspace-and-thread.h".
16125 (add_target_sections, remove_target_sections):
16126 scoped_restore_current_pspace_and_thread instead of
16127 scoped_restore_current_thread.
16128 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
16129 and aspace to the inferior before calling clone_program_space.
16130 Remove stale comment.
16132 2020-01-24 Christian Biesinger <cbiesinger@google.com>
16134 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
16135 (arm_netbsd_nat_target::fetch_registers): ...this.
16136 (arm_nbsd_nat_target::store_registers): Rename to...
16137 (arm_netbsd_nat_target::store_registers): ...this.
16139 2020-01-24 Christian Biesinger <cbiesinger@google.com>
16141 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
16144 2020-01-24 Christian Biesinger <cbiesinger@google.com>
16146 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
16148 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
16150 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
16151 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
16152 the correct replacement (iterate_over_regset_sections).
16153 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
16156 2020-01-24 Graham Markall <graham.markall@embecosm.com>
16159 * gdb/python/python.c (execute_gdb_command): Call
16160 async_enable_stdin in catch block.
16162 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16164 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
16165 SWITCH_THRU_ALL_UIS.
16167 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16170 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
16171 comment, add extra parameter, and update to store previous symbol
16173 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
16174 add extra parameter.
16175 * tui/tui-disasm.c (tui_disassemble): Update header comment,
16176 remove unneeded parameter, add try/catch around gdb_print_insn,
16177 rewrite to add items to asm_lines vector.
16178 (tui_find_backward_disassembly_start_address): New function.
16179 (tui_find_disassembly_address): Updated throughout.
16180 (tui_disasm_window::set_contents): Update for changes to
16182 (tui_disasm_window::do_scroll_vertical): No need to adjust the
16183 number of lines to scroll.
16185 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
16187 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
16188 (SECT_OFF_DATA): Likewise.
16189 (SECT_OFF_RODATA): Likewise.
16190 (SECT_OFF_TEXT): Likewise.
16191 (SECT_OFF_BSS): Likewise.
16192 (struct objfile) <text_section_offset, data_section_offset>: New
16194 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
16195 objfile::text_section_offset.
16196 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
16197 * coffread.c (coff_symtab_read): Likewise.
16198 (enter_linenos): Likewise.
16199 (process_coff_symbol): Likewise.
16200 * ctfread.c (get_objfile_text_range): Likewise.
16201 * dtrace-probe.c (dtrace_probe::get_relocated_address):
16202 Use objfile::data_section_offset.
16203 * dwarf2-frame.c (execute_cfa_program): Use
16204 objfile::text_section_offset.
16205 (dwarf2_frame_find_fde): Likewise.
16206 * dwarf2read.c (create_addrmap_from_index): Likewise.
16207 (create_addrmap_from_aranges): Likewise.
16208 (dw2_find_pc_sect_compunit_symtab): Likewise.
16209 (process_psymtab_comp_unit_reader): Likewise.
16210 (add_partial_symbol): Likewise.
16211 (add_partial_subprogram): Likewise.
16212 (process_full_comp_unit): Likewise.
16213 (read_file_scope): Likewise.
16214 (read_func_scope): Likewise.
16215 (read_lexical_block_scope): Likewise.
16216 (read_call_site_scope): Likewise.
16217 (dwarf2_rnglists_process): Likewise.
16218 (dwarf2_ranges_process): Likewise.
16219 (dwarf2_ranges_read): Likewise.
16220 (dwarf_decode_lines_1): Likewise.
16221 (new_symbol): Likewise.
16222 (dwarf2_fetch_die_loc_sect_off): Likewise.
16223 (dwarf2_per_cu_text_offset): Likewise.
16224 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
16225 * hppa-tdep.c (read_unwind_info): Likewise.
16226 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
16227 * psympriv.h (struct partial_symtab): Likewise.
16228 * psymtab.c (find_pc_sect_psymtab): Likewise.
16229 * solib-svr4.c (enable_break): Likewise.
16230 * stap-probe.c (relocate_address): Use
16231 objfile::data_section_offset.
16232 * xcoffread.c (enter_line_range): Use
16233 objfile::text_section_offset.
16234 (read_xcoff_symtab): Likewise.
16236 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
16238 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
16239 declaration to narrower scopes.
16241 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
16243 * darwin-nat.h (struct darwin_exception_msg, enum
16244 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
16246 (class darwin_nat_target) <wait_1, check_new_threads,
16247 decode_exception_message, decode_message, stop_inferior,
16248 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
16249 * darwin-nat.c (darwin_check_new_threads): Rename to...
16250 (darwin_nat_target::check_new_threads): ... this.
16251 (darwin_suspend_inferior_it): Remove.
16252 (darwin_decode_exception_message): Rename to...
16253 (darwin_nat_target::decode_exception_message): ... this.
16254 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
16255 (darwin_decode_message): Rename to...
16256 (darwin_nat_target::decode_message): ... this.
16257 (cancel_breakpoint): Rename to...
16258 (darwin_nat_target::cancel_breakpoint): ... this.
16259 (darwin_wait): Rename to...
16260 (darwin_nat_target::wait_1): ... this. Use range-based for loop
16261 instead of iterate_over_inferiors.
16262 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
16263 (darwin_stop_inferior): Rename to...
16264 (darwin_nat_target::stop_inferior): ... this.
16265 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
16266 (darwin_init_thread_list): Rename to...
16267 (darwin_nat_target::init_thread_list): ... this.
16268 (darwin_ptrace_him): Rename to...
16269 (darwin_nat_target::ptrace_him): ... this.
16270 (darwin_nat_target::create_inferior): Pass lambda function to
16272 (darwin_nat_target::detach): Call stop_inferior instead of
16273 darwin_stop_inferior.
16274 * fork-inferior.h (fork_inferior): Change init_trace_fun
16275 parameter to gdb::function_view.
16276 * fork-inferior.c (fork_inferior): Likewise.
16278 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
16280 * i386-cygwin-tdep.c (core_process_module_section): Update.
16281 * windows-nat.c (struct lm_info_windows): Add text_offset.
16282 (windows_xfer_shared_libraries): Update.
16283 * windows-tdep.c (windows_xfer_shared_library):
16284 Add text_offset_cached argument.
16285 * windows-tdep.h (windows_xfer_shared_library): Update.
16287 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
16289 * gdbarch.sh: Add declaration for _initialize_gdbarch.
16291 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
16293 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
16294 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
16295 replace with range-based for.
16296 (gdbsim_interrupt_inferior): Remove.
16297 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
16298 with a range-based for. Inline code from
16299 gdbsim_interrupt_inferior.
16301 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
16303 * infrun.c (proceed): Fix indentation.
16305 2020-01-21 Tom Tromey <tromey@adacore.com>
16307 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
16308 * python/python.c (python_extension_ops): Update.
16309 (gdbpy_colorize): New function.
16310 * python/lib/gdb/__init__.py (colorize): New function.
16311 * extension.h (ext_lang_colorize): Declare.
16312 * extension.c (ext_lang_colorize): New function.
16313 * extension-priv.h (struct extension_language_ops) <colorize>: New
16315 * cli/cli-style.c (_initialize_cli_style): Update help text.
16317 2020-01-21 Luis Machado <luis.machado@linaro.org>
16319 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
16320 <cond>: Change type to bool.
16321 (aarch64_displaced_step_b_cond): Update cond to use bool type.
16322 (aarch64_displaced_step_cb): Likewise.
16323 (aarch64_displaced_step_tb): Likewise.
16325 2020-01-21 Luis Machado <luis.machado@linaro.org>
16327 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
16330 2020-01-21 Luis Machado <luis.machado@linaro.org>
16332 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
16333 <pc_adjust>: Adjust the documentation.
16334 (aarch64_displaced_step_fixup): Check if PC really moved before
16337 2020-01-19 Tom Tromey <tom@tromey.com>
16339 * disasm.c (~gdb_disassembler): New destructor.
16340 (gdb_buffered_insn_length): Call disassemble_free_target.
16341 * disasm.h (class gdb_disassembler): Declare destructor. Use
16342 DISABLE_COPY_AND_ASSIGN.
16344 2020-01-19 Tom Tromey <tom@tromey.com>
16346 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
16347 (die_reader_func_ftype): Remove.
16348 (cutu_reader): New class.
16349 (dw2_get_file_names_reader): Remove "data" parameter.
16350 (dw2_get_file_names): Use cutu_reader.
16351 (create_debug_type_hash_table): Update.
16352 (read_cutu_die_from_dwo): Update comment.
16353 (lookup_dwo_unit): Add dwo_name parameter.
16354 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
16355 die_reader_func_ftype and data parameters.
16356 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
16357 Remove die_reader_func_ftype and data parameters.
16358 (~cutu_reader): New; from init_cutu_and_read_dies.
16359 (cutu_reader::cutu_reader): Rename from
16360 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
16361 and data parameters.
16362 (init_cutu_and_read_dies_simple): Remove.
16363 (struct process_psymtab_comp_unit_data): Remove.
16364 (process_psymtab_comp_unit_reader): Remove data parameter; add
16365 want_partial_unit and pretend_language parameters.
16366 (process_psymtab_comp_unit): Use cutu_reader.
16367 (build_type_psymtabs_reader): Remove data parameter.
16368 (build_type_psymtabs_1): Use cutu_reader.
16369 (process_skeletonless_type_unit): Likewise.
16370 (load_partial_comp_unit_reader): Remove.
16371 (load_partial_comp_unit): Use cutu_reader.
16372 (load_full_comp_unit_reader): Remove.
16373 (load_full_comp_unit): Use cutu_reader.
16374 (struct create_dwo_cu_data): Remove.
16375 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
16376 dwo_unit parameters.
16377 (create_cus_hash_table): Use cutu_reader.
16378 (struct dwarf2_read_addr_index_data): Remove.
16379 (dwarf2_read_addr_index_reader): Remove.
16380 (dwarf2_read_addr_index): Use cutu_reader.
16381 (read_signatured_type_reader): Remove.
16382 (read_signatured_type): Use cutu_reader.
16384 2020-01-19 Tom Tromey <tom@tromey.com>
16386 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
16387 * tui/tui-wingeneral.h (class tui_suppress_output): New.
16388 (tui_wrefresh): Declare.
16389 * tui/tui-wingeneral.c (suppress_output): New global.
16390 (tui_suppress_output, ~tui_suppress_output): New constructor and
16392 (tui_wrefresh): New function.
16393 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
16394 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
16395 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
16397 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
16399 (tui_data_window::no_refresh): New method.
16400 (tui_data_item_window::refresh_window): Call tui_wrefresh.
16401 (tui_reg_command): Use tui_suppress_output
16402 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
16403 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
16405 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
16407 2020-01-19 Tom Tromey <tom@tromey.com>
16409 * tui/tui-winsource.c (tui_update_source_windows_with_line):
16410 Handle case where symtab is null.
16412 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
16414 * linux-fork.c (one_fork_p): Simplify.
16416 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16418 * top.c (struct qt_args): Remove.
16419 (kill_or_detach): Change return type to void, replace `void *`
16420 parameter with a proper one.
16421 (print_inferior_quit_action): Likewise.
16422 (quit_confirm): Use range-based for loop to iterate over inferiors.
16423 (quit_force): Likewise.
16425 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16427 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
16428 `void *` parameter with proper parameters.
16429 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
16430 (print_one_inferior): Change return type to void, replace `void *`
16431 parameter with proper parameters.
16432 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
16434 (get_other_inferior): Remove.
16435 (mi_cmd_remove_inferior): Use range-based loop to iterate over
16438 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16440 * mi/mi-interp.c (report_initial_inferior): Remove.
16441 (mi_interp::init): Use range-based for to iterate over inferiors.
16443 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16445 * python/py-inferior.c (build_inferior_list): Remove.
16446 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
16448 2020-01-16 Christian Biesinger <cbiesinger@google.com>
16450 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
16451 (btrace_stitch_trace): Likewise.
16452 * charset.c (intermediate_encoding): Likewise (vaild).
16453 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
16454 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
16455 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
16457 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
16459 * windows-tdep.c (windows_get_tlb_type):
16460 Add rtl_user_process_parameters type.
16462 2020-01-16 Pedro Alves <palves@redhat.com>
16463 Norbert Lange <nolange79@gmail.com>
16466 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
16467 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
16468 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
16469 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
16470 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
16471 (ps_plog): Redeclare exported functions with default visibility.
16473 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
16475 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
16476 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
16478 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
16480 * infcmd.c (post_create_inferior): Use get_thread_regcache
16481 instead of get_current_regcache.
16483 2020-01-14 Tom Tromey <tom@tromey.com>
16486 * python/python.c (gdbpy_decode_line): Treat empty string the same
16489 2020-01-14 Tom Tromey <tom@tromey.com>
16491 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
16493 2020-01-14 Tom Tromey <tom@tromey.com>
16495 * nat/linux-btrace.c: Don't include <config.h>.
16496 * nat/linux-ptrace.c: Don't include <config.h>.
16497 * nat/x86-linux-dregs.c: Don't include <config.h>.
16499 2020-01-14 Tom Tromey <tom@tromey.com>
16501 * configure: Rebuild.
16502 * configure.ac: Move many checks to ../gdbsupport/common.m4.
16504 2020-01-14 Tom Tromey <tom@tromey.com>
16506 * nat/x86-linux-dregs.c: Include configh.h.
16507 * nat/linux-ptrace.c: Include configh.h.
16508 * nat/linux-btrace.c: Include configh.h.
16509 * defs.h: Include config.h, bfd.h.
16510 * configure.ac: Don't source common.host.
16511 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
16512 * configure: Rebuild.
16513 * acinclude.m4: Update path.
16514 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
16515 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
16516 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
16517 (CLIBS): Add LIBSUPPORT.
16519 (COMMON_SFILES): Remove gdbsupport files.
16520 (HFILES_NO_SRCDIR): Likewise.
16521 (stamp-version): Update path to create-version.sh.
16522 (ALLDEPFILES): Remove gdbsupport files.
16524 2020-01-14 Tom Tromey <tom@tromey.com>
16526 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
16527 USE_WIN32API when needed.
16528 * configure.ac (USE_WIN32API): Don't define.
16529 (WIN32LIBS): Use WIN32APILIBS.
16530 * configure: Rebuild.
16532 2020-01-14 Tom Tromey <tom@tromey.com>
16534 * configure: Rebuild.
16535 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
16537 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
16539 * skip.c (skip_function_command): Make skip w/o arguments use the
16540 name of the inlined function if pc is inside any inlined function.
16542 2020-01-14 Luis Machado <luis.machado@linaro.org>
16544 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
16545 * infrun.c (resume_1): Likewise.
16546 (handle_inferior_event): Remove stale comment.
16547 * linux-nat.c (linux_nat_target::resume): Update comments.
16548 (save_stop_reason): Likewise.
16549 (linux_nat_filter_event): Likewise.
16550 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
16552 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
16554 * elfread.c (record_minimal_symbol): Set section index to 0 for
16555 non-allocatable sections.
16558 2020-01-13 Ali Tamur <tamur@google.com>
16560 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
16561 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
16562 to gdb::optional. Update comments.
16563 (dwo_file): Update comments.
16564 (read_attribute): Update API to take an additional out parameter,
16565 need_reprocess. This is used to mark attributes that need other
16566 attributes (e.g. str_offsets_base) for correct computation which may not
16567 have been read yet.
16568 (read_attribute_reprocess): New function declaration.
16569 (read_addr_index): Likewise.
16570 (read_dwo_str_index): Likewise.
16571 (read_stub_str_index): Likewise.
16572 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
16573 (lookup_addr_base): New function definition.
16574 (lookup_ranges_base): Likewise.
16575 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
16576 lookup_ranges_base.
16577 (init_cutu_and_read_dies): Update comments.
16578 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
16579 unit. This is used to inherit parent's str_offsets_base and addr_base.
16581 (init_cutu_and_read_dies_simple): Reflect API changes.
16582 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
16583 (create_cus_hash_table): Change API to take parent compile unit.
16584 Reflect API changes.
16585 (open_and_init_dwo_file): Reflect API changes.
16586 (dwarf2_get_pc_bounds): Update comments.
16587 (dwarf2_record_block_ranges): Likewise.
16588 (read_full_die_1): Change implementation to reprocess attributes that
16589 need str_offsets_base and addr_base.
16590 (partial_die_info::read): Likewise.
16591 (read_attribute_reprocess): New function definition.
16592 (read_attribute_value): Change API to take an additional out parameter,
16593 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
16594 when a non-dwo compile unit has index based attributes.
16595 (read_attribute): Reflect API changes.
16596 (read_addr_index_1): Reflect API changes. Update comments.
16597 (dwarf2_read_addr_index_data): Reflect API changes.
16598 (dwarf2_read_addr_index): Likewise.
16599 (read_str_index): Change API and implementation. This becomes a helper
16600 to be used by the new string index related methods. Update error
16601 message and comments.
16602 (read_dwo_str_index): New function definition.
16603 (read_stub_str_index): Likewise.
16604 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
16605 * symfile.h (dwarf2_debug_sections): Likewise.
16606 * xcoffread.c (dwarf2_debug_sections): Likewise.
16608 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16610 * gdbcore.h (struct core_fns) <core_read_registers>: Change
16611 core_reg_sect type to gdb_byte *.
16612 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
16613 * cris-tdep.c (fetch_core_registers): Likewise.
16614 * corelow.c (core_target::get_core_register_section): Change
16615 type of `contents` to gdb::byte_vector.
16617 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
16619 * tui/tui-wingeneral.c (box_win): Position the title in the center
16622 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16624 * corelow.c (core_target::get_core_register_section): Use
16625 std::vector instead of alloca.
16627 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16629 * warning.m4: Add -Wmissing-declarations to build_warnings.
16630 * configure: Re-generate.
16632 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16634 * python/python.c (init__gdb_module): Add declaration.
16636 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16638 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
16639 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
16640 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
16641 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
16642 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
16643 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
16644 * ada-exp.y (_initialize_ada_exp): Add declaration.
16645 * ada-lang.c (_initialize_ada_language): Add declaration.
16646 * ada-tasks.c (_initialize_tasks): Add declaration.
16647 * agent.c (_initialize_agent): Add declaration.
16648 * aix-thread.c (_initialize_aix_thread): Add declaration.
16649 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
16650 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
16651 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
16652 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
16653 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
16654 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
16655 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
16656 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
16657 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
16658 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
16659 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
16660 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
16661 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
16662 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
16663 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
16664 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
16665 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
16666 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
16667 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
16668 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
16669 * annotate.c (_initialize_annotate): Add declaration.
16670 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
16671 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
16672 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
16673 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
16674 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
16675 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
16676 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
16677 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
16678 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
16679 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
16680 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
16681 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
16682 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
16683 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
16684 * auto-load.c (_initialize_auto_load): Add declaration.
16685 * auxv.c (_initialize_auxv): Add declaration.
16686 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
16687 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
16688 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
16689 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
16690 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
16691 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
16692 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
16693 * breakpoint.c (_initialize_breakpoint): Add declaration.
16694 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
16695 * btrace.c (_initialize_btrace): Add declaration.
16696 * charset.c (_initialize_charset): Add declaration.
16697 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
16698 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
16699 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
16700 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
16701 * cli/cli-script.c (_initialize_cli_script): Add declaration.
16702 * cli/cli-style.c (_initialize_cli_style): Add declaration.
16703 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
16704 * coffread.c (_initialize_coffread): Add declaration.
16705 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
16706 * compile/compile.c (_initialize_compile): Add declaration.
16707 * complaints.c (_initialize_complaints): Add declaration.
16708 * completer.c (_initialize_completer): Add declaration.
16709 * copying.c (_initialize_copying): Add declaration.
16710 * corefile.c (_initialize_core): Add declaration.
16711 * corelow.c (_initialize_corelow): Add declaration.
16712 * cp-abi.c (_initialize_cp_abi): Add declaration.
16713 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
16714 * cp-support.c (_initialize_cp_support): Add declaration.
16715 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
16716 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
16717 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
16718 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
16719 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
16720 * ctfread.c (_initialize_ctfread): Add declaration.
16721 * d-lang.c (_initialize_d_language): Add declaration.
16722 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
16723 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
16724 * dbxread.c (_initialize_dbxread): Add declaration.
16725 * dcache.c (_initialize_dcache): Add declaration.
16726 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
16727 * disasm.c (_initialize_disasm): Add declaration.
16728 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
16729 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
16730 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
16731 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
16732 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
16733 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
16734 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
16735 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
16736 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
16737 * elfread.c (_initialize_elfread): Add declaration.
16738 * exec.c (_initialize_exec): Add declaration.
16739 * extension.c (_initialize_extension): Add declaration.
16740 * f-lang.c (_initialize_f_language): Add declaration.
16741 * f-valprint.c (_initialize_f_valprint): Add declaration.
16742 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
16743 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
16744 * filesystem.c (_initialize_filesystem): Add declaration.
16745 * findcmd.c (_initialize_mem_search): Add declaration.
16746 * findvar.c (_initialize_findvar): Add declaration.
16747 * fork-child.c (_initialize_fork_child): Add declaration.
16748 * frame-base.c (_initialize_frame_base): Add declaration.
16749 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
16750 * frame.c (_initialize_frame): Add declaration.
16751 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
16752 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
16753 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
16754 * gcore.c (_initialize_gcore): Add declaration.
16755 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
16756 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
16757 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
16758 * gdbarch.c (_initialize_gdbarch): Add declaration.
16759 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
16760 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
16761 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
16762 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
16763 * go-lang.c (_initialize_go_language): Add declaration.
16764 * go32-nat.c (_initialize_go32_nat): Add declaration.
16765 * guile/guile.c (_initialize_guile): Add declaration.
16766 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
16767 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
16768 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
16769 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
16770 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
16771 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
16772 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
16773 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
16774 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
16775 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
16776 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
16777 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
16778 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
16779 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
16780 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
16781 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
16782 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
16783 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
16784 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
16785 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
16786 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
16787 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
16788 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
16789 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
16790 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
16791 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
16792 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
16793 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
16794 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
16795 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
16796 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
16797 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
16798 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
16799 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
16800 * infcall.c (_initialize_infcall): Add declaration.
16801 * infcmd.c (_initialize_infcmd): Add declaration.
16802 * inflow.c (_initialize_inflow): Add declaration.
16803 * infrun.c (_initialize_infrun): Add declaration.
16804 * interps.c (_initialize_interpreter): Add declaration.
16805 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
16806 * jit.c (_initialize_jit): Add declaration.
16807 * language.c (_initialize_language): Add declaration.
16808 * linux-fork.c (_initialize_linux_fork): Add declaration.
16809 * linux-nat.c (_initialize_linux_nat): Add declaration.
16810 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
16811 * linux-thread-db.c (_initialize_thread_db): Add declaration.
16812 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
16813 * m2-lang.c (_initialize_m2_language): Add declaration.
16814 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
16815 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
16816 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
16817 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
16818 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
16819 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
16820 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
16821 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
16822 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
16823 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
16824 * machoread.c (_initialize_machoread): Add declaration.
16825 * macrocmd.c (_initialize_macrocmd): Add declaration.
16826 * macroscope.c (_initialize_macroscope): Add declaration.
16827 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
16828 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
16829 * maint.c (_initialize_maint_cmds): Add declaration.
16830 * mdebugread.c (_initialize_mdebugread): Add declaration.
16831 * memattr.c (_initialize_mem): Add declaration.
16832 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
16833 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
16834 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
16835 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
16836 * mi/mi-main.c (_initialize_mi_main): Add declaration.
16837 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
16838 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
16839 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
16840 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
16841 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
16842 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
16843 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
16844 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
16845 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
16846 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
16847 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
16848 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
16849 * mipsread.c (_initialize_mipsread): Add declaration.
16850 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
16851 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
16852 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
16853 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
16854 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
16855 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
16856 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
16857 * nto-procfs.c (_initialize_procfs): Add declaration.
16858 * objc-lang.c (_initialize_objc_language): Add declaration.
16859 * observable.c (_initialize_observer): Add declaration.
16860 * opencl-lang.c (_initialize_opencl_language): Add declaration.
16861 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
16862 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
16863 * osabi.c (_initialize_gdb_osabi): Add declaration.
16864 * osdata.c (_initialize_osdata): Add declaration.
16865 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
16866 * parse.c (_initialize_parse): Add declaration.
16867 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
16868 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
16869 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
16870 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
16871 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
16872 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
16873 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
16874 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
16875 * printcmd.c (_initialize_printcmd): Add declaration.
16876 * probe.c (_initialize_probe): Add declaration.
16877 * proc-api.c (_initialize_proc_api): Add declaration.
16878 * proc-events.c (_initialize_proc_events): Add declaration.
16879 * proc-service.c (_initialize_proc_service): Add declaration.
16880 * procfs.c (_initialize_procfs): Add declaration.
16881 * producer.c (_initialize_producer): Add declaration.
16882 * psymtab.c (_initialize_psymtab): Add declaration.
16883 * python/python.c (_initialize_python): Add declaration.
16884 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
16885 * record-btrace.c (_initialize_record_btrace): Add declaration.
16886 * record-full.c (_initialize_record_full): Add declaration.
16887 * record.c (_initialize_record): Add declaration.
16888 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
16889 * regcache.c (_initialize_regcache): Add declaration.
16890 * reggroups.c (_initialize_reggroup): Add declaration.
16891 * remote-notif.c (_initialize_notif): Add declaration.
16892 * remote-sim.c (_initialize_remote_sim): Add declaration.
16893 * remote.c (_initialize_remote): Add declaration.
16894 * reverse.c (_initialize_reverse): Add declaration.
16895 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
16896 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
16897 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
16898 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
16899 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
16900 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
16901 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
16902 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
16904 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
16905 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
16906 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
16907 * rust-exp.y (_initialize_rust_exp): Add declaration.
16908 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
16909 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
16910 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
16911 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
16912 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
16913 * score-tdep.c (_initialize_score_tdep): Add declaration.
16914 * ser-go32.c (_initialize_ser_dos): Add declaration.
16915 * ser-mingw.c (_initialize_ser_windows): Add declaration.
16916 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
16917 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
16918 * ser-uds.c (_initialize_ser_socket): Add declaration.
16919 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
16920 * serial.c (_initialize_serial): Add declaration.
16921 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
16922 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
16923 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
16924 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
16925 * skip.c (_initialize_step_skip): Add declaration.
16926 * sol-thread.c (_initialize_sol_thread): Add declaration.
16927 * solib-aix.c (_initialize_solib_aix): Add declaration.
16928 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
16929 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
16930 * solib-frv.c (_initialize_frv_solib): Add declaration.
16931 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
16932 * solib-target.c (_initialize_solib_target): Add declaration.
16933 * solib.c (_initialize_solib): Add declaration.
16934 * source-cache.c (_initialize_source_cache): Add declaration.
16935 * source.c (_initialize_source): Add declaration.
16936 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
16937 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
16938 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
16939 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
16940 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
16941 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
16942 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
16943 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
16944 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
16945 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
16946 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
16947 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
16948 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
16949 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
16950 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
16951 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
16952 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
16953 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
16954 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
16955 * stabsread.c (_initialize_stabsread): Add declaration.
16956 * stack.c (_initialize_stack): Add declaration.
16957 * stap-probe.c (_initialize_stap_probe): Add declaration.
16958 * std-regs.c (_initialize_frame_reg): Add declaration.
16959 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
16960 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
16961 * symfile.c (_initialize_symfile): Add declaration.
16962 * symmisc.c (_initialize_symmisc): Add declaration.
16963 * symtab.c (_initialize_symtab): Add declaration.
16964 * target.c (_initialize_target): Add declaration.
16965 * target-connection.c (_initialize_target_connection): Add
16967 * target-dcache.c (_initialize_target_dcache): Add declaration.
16968 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
16969 * thread.c (_initialize_thread): Add declaration.
16970 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
16971 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
16972 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
16973 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
16974 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
16975 * tracectf.c (_initialize_ctf): Add declaration.
16976 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
16977 * tracefile.c (_initialize_tracefile): Add declaration.
16978 * tracepoint.c (_initialize_tracepoint): Add declaration.
16979 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
16980 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
16981 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
16982 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
16983 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
16984 * tui/tui-win.c (_initialize_tui_win): Add declaration.
16985 * tui/tui.c (_initialize_tui): Add declaration.
16986 * typeprint.c (_initialize_typeprint): Add declaration.
16987 * ui-style.c (_initialize_ui_style): Add declaration.
16988 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
16989 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
16990 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
16991 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
16992 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
16993 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
16994 * unittests/filtered_iterator-selftests.c
16995 (_initialize_filtered_iterator_selftests): Add declaration.
16996 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
16997 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
16998 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
16999 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
17000 * unittests/main-thread-selftests.c
17001 (_initialize_main_thread_selftests): Add declaration.
17002 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
17003 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
17004 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
17005 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
17006 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
17007 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
17008 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
17009 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
17010 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
17011 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
17012 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
17013 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
17014 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
17015 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
17016 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
17018 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
17019 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
17020 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
17021 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
17022 * user-regs.c (_initialize_user_regs): Add declaration.
17023 * utils.c (_initialize_utils): Add declaration.
17024 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
17025 * valops.c (_initialize_valops): Add declaration.
17026 * valprint.c (_initialize_valprint): Add declaration.
17027 * value.c (_initialize_values): Add declaration.
17028 * varobj.c (_initialize_varobj): Add declaration.
17029 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
17030 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
17031 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
17032 * windows-nat.c (_initialize_windows_nat): Add declaration.
17033 (_initialize_check_for_gdb_ini): Add declaration.
17034 (_initialize_loadable): Add declaration.
17035 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
17036 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
17037 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
17038 * xcoffread.c (_initialize_xcoffread): Add declaration.
17039 * xml-support.c (_initialize_xml_support): Add declaration.
17040 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
17041 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
17042 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
17043 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
17045 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
17047 * regformats/regdat.sh: Generate declaration for init function.
17049 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
17051 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
17053 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
17054 close_one_inferior>: New methods.
17055 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
17056 pass down target to find_inferior_pid.
17057 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
17058 Pass down target to find_inferior_ptid.
17059 (gdbsim_target::create_inferior): Pass down target to
17061 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
17062 target down to find_inferior_ptid and switch_to_thread.
17063 (gdbsim_target::close): Update to call close_one_inferior.
17064 (struct resume_data): Remove.
17065 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
17066 directly, rather than through a void pointer.
17067 (gdbsim_target::resume): Update to call resume_one_inferior.
17069 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
17071 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
17073 2020-01-12 Pedro Alves <palves@redhat.com>
17075 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
17076 directly for the current inferior instead of
17077 discard_all_inferiors.
17078 (discard_all_inferiors): Delete.
17080 2020-01-11 Tom Tromey <tom@tromey.com>
17082 * tui/tui-wingeneral.c (box_win): Check cli_styling.
17083 * tui/tui-winsource.c (tui_source_window_base::refill): Use
17084 deprecated_safe_get_selected_frame.
17086 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
17088 * inferior.c (print_inferior): Switch inferior before printing it.
17090 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
17091 Pedro Alves <palves@redhat.com>
17093 * progspace-and-thread.c (switch_to_program_space_and_thread):
17094 Assert there's an inferior for PSPACE. Use
17095 switch_to_inferior_no_thread to switch the inferior too.
17096 * progspace.c (program_space::~program_space): Call
17097 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
17098 (program_space::free_all_objfiles): Don't call clear_symtab_users
17100 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
17102 2020-01-10 Pedro Alves <palves@redhat.com>
17104 * NEWS: Mention multi-target debugging, "info connections", and
17105 "add-inferior -no-connection".
17107 2020-01-10 Pedro Alves <palves@redhat.com>
17109 * infrun.c: Include "target-connection.h".
17110 (check_multi_target_resumption): New.
17111 (proceed): Call it.
17112 * target-connection.c (make_target_connection_string): Make
17114 * target-connection.h (make_target_connection_string): Declare.
17116 2020-01-10 Pedro Alves <palves@redhat.com>
17118 * Makefile.in (COMMON_SFILES): Add target-connection.c.
17119 * inferior.c (uiout_field_connection): New function.
17120 (print_inferior): Add new "connection-id" column.
17121 (add_inferior_command): Show connection number/string of added
17123 * process-stratum-target.h
17124 (process_stratum_target::connection_string): New virtual method.
17125 (process_stratum_target::connection_number): New field.
17126 * remote.c (remote_target::connection_string): New override.
17127 * target-connection.c: New file.
17128 * target-connection.h: New file.
17129 * target.c (decref_target): Remove process_stratum targets from
17130 the connection list.
17131 (target_stack::push): Add process_stratum targets to the
17134 2020-01-10 Pedro Alves <palves@redhat.com>
17137 2016-04-12 Pedro Alves <palves@redhat.com>
17138 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
17139 Remove references to name.
17140 * serial.h (struct serial) <name>: Delete.
17142 2020-01-10 Pedro Alves <palves@redhat.com>
17144 * gdbarch-selftests.c (register_to_value_test): Remove "target
17145 already pushed" check.
17147 2020-01-10 Pedro Alves <palves@redhat.com>
17148 John Baldwin <jhb@FreeBSD.org>
17150 * aarch64-linux-nat.c
17151 (aarch64_linux_nat_target::thread_architecture): Adjust.
17152 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
17153 (task_command_1): Likewise.
17154 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
17155 (aix_thread_target::wait, aix_thread_target::fetch_registers)
17156 (aix_thread_target::store_registers)
17157 (aix_thread_target::thread_alive): Adjust.
17158 * amd64-fbsd-tdep.c: Include "inferior.h".
17159 (amd64fbsd_get_thread_local_address): Pass down target.
17160 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
17161 thread's gdbarch instead of target_gdbarch.
17162 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
17163 get_last_target_status.
17164 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
17165 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
17167 (update_inserted_breakpoint_locations): Skip if inferiors with no
17169 (update_global_location_list): When handling moribund locations,
17170 find representative inferior for location's pspace, and use thread
17171 count of its process_stratum target.
17172 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
17173 * bsd-uthread.c (bsd_uthread_target::wait): Use
17174 as_process_stratum_target and adjust thread_change_ptid and
17176 (bsd_uthread_target::update_thread_list): Use
17177 as_process_stratum_target and adjust find_thread_ptid,
17178 thread_change_ptid and add_thread calls.
17179 * btrace.c (maint_btrace_packet_history_cmd): Adjust
17180 find_thread_ptid call.
17181 * corelow.c (add_to_thread_list): Adjust add_thread call.
17182 (core_target_open): Adjust add_thread_silent and thread_count
17184 (core_target::pid_to_str): Adjust find_inferior_ptid call.
17185 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
17186 * event-top.c (async_disconnect): Pop targets from all inferiors.
17187 * exec.c (add_target_sections): Push exec target on all inferiors
17188 sharing the program space.
17189 (remove_target_sections): Remove the exec target from all
17190 inferiors sharing the program space.
17191 (exec_on_vfork): New.
17192 * exec.h (exec_on_vfork): Declare.
17193 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
17195 (fbsd_nat_target::update_thread_list): Adjust.
17196 (fbsd_nat_target::resume): Adjust.
17197 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
17199 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
17200 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
17201 get_thread_arch_regcache call.
17202 * fork-child.c (gdb_startup_inferior): Pass target down to
17203 startup_inferior and set_executing.
17204 * gdbthread.h (struct process_stratum_target): Forward declare.
17205 (add_thread, add_thread_silent, add_thread_with_info)
17206 (in_thread_list): Add process_stratum_target parameter.
17207 (find_thread_ptid(inferior*, ptid_t)): New overload.
17208 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
17210 (all_threads()): Delete overload.
17211 (all_threads, all_non_exited_threads): Add process_stratum_target
17213 (all_threads_safe): Use brace initialization.
17214 (thread_count): Add process_stratum_target parameter.
17215 (set_resumed, set_running, set_stop_requested, set_executing)
17216 (threads_are_executing, finish_thread_state): Add
17217 process_stratum_target parameter.
17218 (switch_to_thread): Use is_current_thread.
17219 * i386-fbsd-tdep.c: Include "inferior.h".
17220 (i386fbsd_get_thread_local_address): Pass down target.
17221 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
17222 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
17223 have_inferiors check.
17224 * inf-ptrace.c (inf_ptrace_target::create_inferior)
17225 (inf_ptrace_target::attach): Adjust.
17226 * infcall.c (run_inferior_call): Adjust.
17227 * infcmd.c (run_command_1): Pass target to
17228 scoped_finish_thread_state.
17229 (proceed_thread_callback): Skip inferiors with no execution.
17230 (continue_command): Rename 'all_threads' local to avoid hiding
17231 'all_threads' function. Adjust get_last_target_status call.
17232 (prepare_one_step): Adjust set_running call.
17233 (signal_command): Use user_visible_resume_target. Compare thread
17234 pointers instead of inferior_ptid.
17235 (info_program_command): Adjust to pass down target.
17236 (attach_command): Mark target's 'thread_executing' flag.
17237 (stop_current_target_threads_ns): New, factored out from ...
17238 (interrupt_target_1): ... this. Switch inferior before making
17241 (struct all_inferiors_iterator, struct all_inferiors_range)
17242 (struct all_inferiors_safe_range)
17243 (struct all_non_exited_inferiors_range): Filter on
17244 process_stratum_target too. Remove explicit.
17245 * inferior.c (inferior::inferior): Push dummy target on target
17247 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
17248 Add process_stratum_target parameter, and pass it down.
17249 (have_live_inferiors): Adjust.
17250 (switch_to_inferior_and_push_target): New.
17251 (add_inferior_command, clone_inferior_command): Handle
17252 "-no-connection" parameter. Use
17253 switch_to_inferior_and_push_target.
17254 (_initialize_inferior): Mention "-no-connection" option in
17255 the help of "add-inferior" and "clone-inferior" commands.
17256 * inferior.h: Include "process-stratum-target.h".
17257 (interrupt_target_1): Use bool.
17258 (struct inferior) <push_target, unpush_target, target_is_pushed,
17259 find_target_beneath, top_target, process_target, target_at,
17261 (discard_all_inferiors): Delete.
17262 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
17263 (all_inferiors, all_non_exited_inferiors): Add
17264 process_stratum_target parameter.
17265 * infrun.c: Include "gdb_select.h" and <unordered_map>.
17266 (target_last_proc_target): New global.
17267 (follow_fork_inferior): Push target on new inferior. Pass target
17268 to add_thread_silent. Call exec_on_vfork. Handle target's
17270 (follow_fork): Adjust get_last_target_status call. Also consider
17272 (follow_exec): Push target on new inferior.
17273 (struct execution_control_state) <target>: New field.
17274 (user_visible_resume_target): New.
17275 (do_target_resume): Call target_async.
17276 (resume_1): Set target's threads_executing flag. Consider resume
17278 (commit_resume_all_targets): New.
17279 (proceed): Also consider resume target. Skip threads of inferiors
17280 with no execution. Commit resumtion in all targets.
17281 (start_remote): Pass current inferior to wait_for_inferior.
17282 (infrun_thread_stop_requested): Consider target as well. Pass
17283 thread_info pointer to clear_inline_frame_state instead of ptid.
17284 (infrun_thread_thread_exit): Consider target as well.
17285 (random_pending_event_thread): New inferior parameter. Use it.
17286 (do_target_wait): Rename to ...
17287 (do_target_wait_1): ... this. Add inferior parameter, and pass it
17289 (threads_are_resumed_pending_p, do_target_wait): New.
17290 (prepare_for_detach): Adjust calls.
17291 (wait_for_inferior): New inferior parameter. Handle it. Use
17292 do_target_wait_1 instead of do_target_wait.
17293 (fetch_inferior_event): Adjust. Switch to representative
17294 inferior. Pass target down.
17295 (set_last_target_status): Add process_stratum_target parameter.
17296 Save target in global.
17297 (get_last_target_status): Add process_stratum_target parameter and
17299 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
17300 (context_switch): Check inferior_ptid == null_ptid before calling
17302 (get_inferior_stop_soon): Pass down target.
17303 (wait_one): Rename to ...
17304 (poll_one_curr_target): ... this.
17305 (struct wait_one_event): New.
17307 (stop_all_threads): Adjust.
17308 (handle_no_resumed, handle_inferior_event): Adjust to consider the
17310 (switch_back_to_stepped_thread): Also consider target.
17311 (print_stop_event): Update.
17312 (normal_stop): Update. Also consider the resume target.
17313 * infrun.h (wait_for_inferior): Remove declaration.
17314 (user_visible_resume_target): New declaration.
17315 (get_last_target_status, set_last_target_status): New
17316 process_stratum_target parameter.
17317 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
17318 process_stratum_target parameter, and use it.
17319 (clear_inline_frame_state (thread_info*)): New.
17320 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
17321 process_stratum_target parameter.
17322 (clear_inline_frame_state (thread_info*)): Declare.
17323 * linux-fork.c (delete_checkpoint_command): Pass target down to
17325 (checkpoint_command): Adjust.
17326 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
17327 instead of just tweaking inferior_ptid.
17328 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
17329 (exit_lwp): Pass target down to find_thread_ptid.
17330 (attach_proc_task_lwp_callback): Pass target down to
17331 add_thread/set_running/set_executing.
17332 (linux_nat_target::attach): Pass target down to
17333 thread_change_ptid.
17334 (get_detach_signal): Pass target down to find_thread_ptid.
17335 Consider last target status's target.
17336 (linux_resume_one_lwp_throw, resume_lwp)
17337 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
17338 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
17339 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
17340 (linux_nat_target::async_wait_fd): New.
17341 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
17343 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
17344 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
17345 * linux-thread-db.c (struct thread_db_info::process_target): New
17347 (add_thread_db_info): Save target.
17348 (get_thread_db_info): New process_stratum_target parameter. Also
17350 (delete_thread_db_info): New process_stratum_target parameter.
17352 (thread_from_lwp): Adjust to pass down target.
17353 (thread_db_notice_clone): Pass down target.
17354 (check_thread_db_callback): Pass down target.
17355 (try_thread_db_load_1): Always push the thread_db target.
17356 (try_thread_db_load, record_thread): Pass target down.
17357 (thread_db_target::detach): Pass target down. Always unpush the
17359 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
17360 target down. Always unpush the thread_db target.
17361 (find_new_threads_callback, thread_db_find_new_threads_2)
17362 (thread_db_target::update_thread_list): Pass target down.
17363 (thread_db_target::pid_to_str): Pass current inferior down.
17364 (thread_db_target::get_thread_local_address): Pass target down.
17365 (thread_db_target::resume, maintenance_check_libthread_db): Pass
17367 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
17368 * procfs.c (procfs_target::procfs_init_inferior): Declare.
17369 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
17370 (procfs_init_inferior): Rename to ...
17371 (procfs_target::procfs_init_inferior): ... this and adjust.
17372 (procfs_target::create_inferior, procfs_notice_thread)
17373 (procfs_do_thread_registers): Adjust.
17374 * ppc-fbsd-tdep.c: Include "inferior.h".
17375 (ppcfbsd_get_thread_local_address): Pass down target.
17376 * proc-service.c (ps_xfer_memory): Switch current inferior and
17377 program space as well.
17378 (get_ps_regcache): Pass target down.
17379 * process-stratum-target.c
17380 (process_stratum_target::thread_address_space)
17381 (process_stratum_target::thread_architecture): Pass target down.
17382 * process-stratum-target.h
17383 (process_stratum_target::threads_executing): New field.
17384 (as_process_stratum_target): New.
17385 * ravenscar-thread.c
17386 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
17387 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
17389 * record-btrace.c (record_btrace_target::info_record): Adjust.
17390 (record_btrace_target::record_method)
17391 (record_btrace_target::record_is_replaying)
17392 (record_btrace_target::fetch_registers)
17393 (get_thread_current_frame_id, record_btrace_target::resume)
17394 (record_btrace_target::wait, record_btrace_target::stop): Pass
17396 * record-full.c (record_full_wait_1): Switch to event thread.
17398 * regcache.c (regcache::regcache)
17399 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
17400 process_stratum_target parameter and handle it.
17401 (current_thread_target): New global.
17402 (get_thread_regcache): Add process_stratum_target parameter and
17403 handle it. Switch inferior before calling target method.
17404 (get_thread_regcache): Pass target down.
17405 (get_thread_regcache_for_ptid): Pass target down.
17406 (registers_changed_ptid): Add process_stratum_target parameter and
17408 (registers_changed_thread, registers_changed): Pass target down.
17409 (test_get_thread_arch_aspace_regcache): New.
17410 (current_regcache_test): Define a couple local test_target_ops
17411 instances and use them for testing.
17412 (readwrite_regcache): Pass process_stratum_target parameter.
17413 (cooked_read_test, cooked_write_test): Pass mock_target down.
17414 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
17415 (get_thread_arch_aspace_regcache): Add process_stratum_target
17417 (regcache::target): New method.
17418 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
17419 (regcache::registers_changed_ptid): Add process_stratum_target
17421 (regcache::m_target): New field.
17422 (registers_changed_ptid): Add process_stratum_target parameter.
17423 * remote.c (remote_state::supports_vCont_probed): New field.
17424 (remote_target::async_wait_fd): New method.
17425 (remote_unpush_and_throw): Add remote_target parameter.
17426 (get_current_remote_target): Adjust.
17427 (remote_target::remote_add_inferior): Push target.
17428 (remote_target::remote_add_thread)
17429 (remote_target::remote_notice_new_inferior)
17430 (get_remote_thread_info): Pass target down.
17431 (remote_target::update_thread_list): Skip threads of inferiors
17432 bound to other targets. (remote_target::close): Don't discard
17433 inferiors. (remote_target::add_current_inferior_and_thread)
17434 (remote_target::process_initial_stop_replies)
17435 (remote_target::start_remote)
17436 (remote_target::remote_serial_quit_handler): Pass down target.
17437 (remote_target::remote_unpush_target): New remote_target
17438 parameter. Unpush the target from all inferiors.
17439 (remote_target::remote_unpush_and_throw): New remote_target
17440 parameter. Pass it down.
17441 (remote_target::open_1): Check whether the current inferior has
17442 execution instead of checking whether any inferior is live. Pass
17444 (remote_target::remote_detach_1): Pass down target. Use
17445 remote_unpush_target.
17446 (extended_remote_target::attach): Pass down target.
17447 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
17448 (remote_target::append_resumption): Pass down target.
17449 (remote_target::append_pending_thread_resumptions)
17450 (remote_target::remote_resume_with_hc, remote_target::resume)
17451 (remote_target::commit_resume): Pass down target.
17452 (remote_target::remote_stop_ns): Check supports_vCont_probed.
17453 (remote_target::interrupt_query)
17454 (remote_target::remove_new_fork_children)
17455 (remote_target::check_pending_events_prevent_wildcard_vcont)
17456 (remote_target::remote_parse_stop_reply)
17457 (remote_target::process_stop_reply): Pass down target.
17458 (first_remote_resumed_thread): New remote_target parameter. Pass
17460 (remote_target::wait_as): Pass down target.
17461 (unpush_and_perror): New remote_target parameter. Pass it down.
17462 (remote_target::readchar, remote_target::remote_serial_write)
17463 (remote_target::getpkt_or_notif_sane_1)
17464 (remote_target::kill_new_fork_children, remote_target::kill): Pass
17466 (remote_target::mourn_inferior): Pass down target. Use
17467 remote_unpush_target.
17468 (remote_target::core_of_thread)
17469 (remote_target::remote_btrace_maybe_reopen): Pass down target.
17470 (remote_target::pid_to_exec_file)
17471 (remote_target::thread_handle_to_thread_info): Pass down target.
17472 (remote_target::async_wait_fd): New.
17473 * riscv-fbsd-tdep.c: Include "inferior.h".
17474 (riscv_fbsd_get_thread_local_address): Pass down target.
17475 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
17476 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
17477 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
17479 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
17480 * solib-svr4.c (enable_break): Pass down target.
17481 * spu-multiarch.c (parse_spufs_run): Pass down target.
17482 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
17483 * target-delegates.c: Regenerate.
17484 * target.c (g_target_stack): Delete.
17485 (current_top_target): Return the current inferior's top target.
17486 (target_has_execution_1): Refer to the passed-in inferior's top
17488 (target_supports_terminal_ours): Check whether the initial
17489 inferior was already created.
17490 (decref_target): New.
17491 (target_stack::push): Incref/decref the target.
17492 (push_target, push_target, unpush_target): Adjust.
17493 (target_stack::unpush): Defref target.
17494 (target_is_pushed): Return bool. Adjust to refer to the current
17495 inferior's target stack.
17496 (dispose_inferior): Delete, and inline parts ...
17497 (target_preopen): ... here. Only dispose of the current inferior.
17498 (target_detach): Hold strong target reference while detaching.
17500 (target_thread_name): Add assertion.
17501 (target_resume): Pass down target.
17502 (target_ops::beneath, find_target_at): Adjust to refer to the
17503 current inferior's target stack.
17504 (get_dummy_target): New.
17505 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
17506 has a thread running.
17507 (initialize_targets): Rename to ...
17508 (_initialize_target): ... this.
17509 * target.h: Include "gdbsupport/refcounted-object.h".
17510 (struct target_ops): Inherit refcounted_object.
17511 (target_ops::shortname, target_ops::longname): Make const.
17512 (target_ops::async_wait_fd): New method.
17513 (decref_target): Declare.
17514 (struct target_ops_ref_policy): New.
17515 (target_ops_ref): New typedef.
17516 (get_dummy_target): Declare function.
17517 (target_is_pushed): Return bool.
17518 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
17519 (all_matching_threads_iterator::all_matching_threads_iterator):
17520 Handle filter target.
17521 * thread-iter.h (struct all_matching_threads_iterator, struct
17522 all_matching_threads_range, class all_non_exited_threads_range):
17523 Filter by target too. Remove explicit.
17524 * thread.c (threads_executing): Delete.
17525 (inferior_thread): Pass down current inferior.
17526 (clear_thread_inferior_resources): Pass down thread pointer
17528 (add_thread_silent, add_thread_with_info, add_thread): Add
17529 process_stratum_target parameter. Use it for thread and inferior
17531 (is_current_thread): New.
17532 (thread_info::deletable): Use it.
17533 (find_thread_ptid, thread_count, in_thread_list)
17534 (thread_change_ptid, set_resumed, set_running): New
17535 process_stratum_target parameter. Pass it down.
17536 (set_executing): New process_stratum_target parameter. Pass it
17537 down. Adjust reference to 'threads_executing'.
17538 (threads_are_executing): New process_stratum_target parameter.
17539 Adjust reference to 'threads_executing'.
17540 (set_stop_requested, finish_thread_state): New
17541 process_stratum_target parameter. Pass it down.
17542 (switch_to_thread): Also match inferior.
17543 (switch_to_thread): New process_stratum_target parameter. Pass it
17545 (update_threads_executing): Reimplement.
17546 * top.c (quit_force): Pop targets from all inferior.
17547 (gdb_init): Don't call initialize_targets.
17548 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
17550 (windows_add_thread, windows_delete_thread): Adjust.
17551 (get_windows_debug_event): Rename to ...
17552 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
17553 * tracefile-tfile.c (tfile_target_open): Pass down target.
17554 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
17556 (switch_to_thread): Add process_stratum_target parameter.
17557 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
17559 (mi_on_resume): Pass target down.
17560 * nat/fork-inferior.c (startup_inferior): Add
17561 process_stratum_target parameter. Pass it down.
17562 * nat/fork-inferior.h (startup_inferior): Add
17563 process_stratum_target parameter.
17564 * python/py-threadevent.c (py_get_event_thread): Pass target down.
17566 2020-01-10 Pedro Alves <palves@redhat.com>
17568 * remote.c (remote_target::start_remote): Don't set inferior_ptid
17569 directly. Instead find the first thread in the thread list and
17570 use switch_to_thread.
17572 2020-01-10 Pedro Alves <palves@redhat.com>
17574 * remote.c (remote_target::remote_add_inferior): Don't bind a
17575 process to the current inferior if the current inferior is already
17576 bound to a process.
17578 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
17579 Pedro Alves <palves@redhat.com>
17581 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
17582 If no process is specified, return null_ptid instead of
17584 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
17585 TARGET_WAITKIND_SIGNALLED with no pid.
17587 2020-01-10 Pedro Alves <palves@redhat.com>
17589 * remote.c (first_remote_resumed_thread): New.
17590 (remote_target::wait_as): Use it as default event_ptid instead of
17593 2020-01-10 Pedro Alves <palves@redhat.com>
17595 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
17597 2020-01-10 Pedro Alves <palves@redhat.com>
17599 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
17602 2020-01-10 Pedro Alves <palves@redhat.com>
17604 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
17605 ptid to get_last_target_status.
17606 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
17607 ptid to get_last_target_status.
17608 * infcmd.c (continue_command): Don't pass a target_waitstatus to
17609 get_last_target_status.
17610 (info_program_command): Don't pass a target_waitstatus to
17611 get_last_target_status.
17612 * infrun.c (init_wait_for_inferior): Use
17613 nullify_last_target_wait_ptid.
17614 (get_last_target_status): Handle nullptr arguments.
17615 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
17616 (print_stop_event): Don't pass a ptid to get_last_target_status.
17617 (normal_stop): Don't pass a ptid to get_last_target_status.
17618 * infrun.h (get_last_target_status, set_last_target_status): Move
17619 comments here and update.
17620 (nullify_last_target_wait_ptid): Declare.
17621 * linux-fork.c (fork_load_infrun_state): Remove local extern
17622 declaration of nullify_last_target_wait_ptid.
17623 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
17624 to get_last_target_status.
17626 2020-01-10 Pedro Alves <palves@redhat.com>
17628 * gdbthread.h (scoped_restore_current_thread)
17629 <dont_restore, restore, m_dont_restore>: Declare.
17630 * thread.c (thread_alive): Add assertion. Return bool.
17631 (switch_to_thread_if_alive): New.
17632 (prune_threads): Switch inferior/thread.
17633 (print_thread_info_1): Switch thread before calling target methods.
17634 (scoped_restore_current_thread::restore): New, factored out from
17636 (scoped_restore_current_thread::~scoped_restore_current_thread):
17638 (scoped_restore_current_thread::scoped_restore_current_thread):
17640 (thread_apply_all_command, thread_select): Use
17641 switch_to_thread_if_alive.
17642 * infrun.c (proceed, restart_threads, handle_signal_stop)
17643 (switch_back_to_stepped_thread): Switch current thread before
17644 calling target methods.
17646 2020-01-10 Pedro Alves <palves@redhat.com>
17648 * inferior.c (switch_to_inferior_no_thread): New function,
17649 factored out from ...
17650 (inferior_command): ... here.
17651 * inferior.h (switch_to_inferior_no_thread): Declare.
17652 * mi/mi-main.c (run_one_inferior): Use
17653 switch_to_inferior_no_thread.
17655 2020-01-10 Pedro Alves <palves@redhat.com>
17657 * infcmd.c (kill_command): Remove dead code.
17659 2020-01-10 Pedro Alves <palves@redhat.com>
17661 * remote.c (remote_target::mourn_inferior): No longer check
17662 whether the target is running.
17664 2020-01-10 Pedro Alves <palves@redhat.com>
17666 * corelow.c (core_target::has_execution): Change parameter type to
17668 * inferior.c (number_of_live_inferiors): Use
17669 inferior::has_execution instead of target_has_execution_1.
17670 * inferior.h (inferior::has_execution): New.
17671 * linux-thread-db.c (thread_db_target::update_thread_list): Use
17672 inferior::has_execution instead of target_has_execution_1.
17673 * process-stratum-target.c
17674 (process_stratum_target::has_execution): Change parameter type to
17675 inferior pointer. Check the inferior's PID instead of
17677 * process-stratum-target.h
17678 (process_stratum_target::has_execution): Change parameter type to
17680 * record-full.c (record_full_core_target::has_execution): Change
17681 parameter type to inferior pointer.
17682 * target.c (target_has_execution_1): Change parameter type to
17684 (target_has_execution_current): Adjust.
17685 * target.h (target_ops::has_execution): Change parameter type to
17687 (target_has_execution_1): Change parameter type to inferior
17688 pointer. Change return type to bool.
17689 * tracefile.h (tracefile_target::has_execution): Change parameter
17690 type to inferior pointer.
17692 2020-01-10 Pedro Alves <palves@redhat.com>
17694 * exceptions.c (print_flush): Remove current_top_target() check.
17696 2020-01-10 Pedro Alves <palves@redhat.com>
17698 * remote.c (show_remote_exec_file): Show the current inferior's
17699 exec-file instead of the command variable's value.
17701 2020-01-10 Pedro Alves <palves@redhat.com>
17703 * record-full.c (record_full_resume_ptid): New global.
17704 (record_full_target::resume): Set it.
17705 (record_full_wait_1): Use record_full_resume_ptid instead of
17708 2020-01-10 Pedro Alves <palves@redhat.com>
17710 * gdbthread.h (scoped_restore_current_thread)
17711 <dont_restore, restore, m_dont_restore>: Declare.
17712 * thread.c (thread_alive): Add assertion. Return bool.
17713 (switch_to_thread_if_alive): New.
17714 (prune_threads): Switch inferior/thread.
17715 (print_thread_info_1): Switch thread before calling target methods.
17716 (scoped_restore_current_thread::restore): New, factored out from
17718 (scoped_restore_current_thread::~scoped_restore_current_thread):
17720 (scoped_restore_current_thread::scoped_restore_current_thread):
17722 (thread_apply_all_command, thread_select): Use
17723 switch_to_thread_if_alive.
17725 2020-01-10 George Barrett <bob@bob131.so>
17727 * stap-probe.c (stap_modify_semaphore): Don't check for null
17729 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
17730 for null semaphores.
17732 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
17734 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
17735 all source windows, and maintain horizontal scroll status while
17738 2020-01-09 Tom Tromey <tom@tromey.com>
17741 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
17742 update_source_window, not print_source_lines.
17744 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
17746 * tui/tui.c (tui_enable): Register tui hooks after calling
17749 2020-01-09 Christian Biesinger <cbiesinger@google.com>
17751 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
17753 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
17755 * thread.c (print_thread_info_1): Fix indentation.
17757 2020-01-09 Christian Biesinger <cbiesinger@google.com>
17759 * symtab.c (general_symbol_info::compute_and_set_names): Move the
17760 unique_xmalloc_ptr outside the if to always free the demangled name.
17762 2020-01-08 Tom Tromey <tromey@adacore.com>
17764 * xcoffread.c (enter_line_range, read_xcoff_symtab)
17765 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
17766 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
17767 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
17769 (section_offsets): New typedef.
17770 * symtab.c (fixup_section, get_msymbol_address): Update.
17771 * symmisc.c (dump_msymbols): Update.
17772 * symfile.h (relative_addr_info_to_section_offsets)
17773 (symfile_map_offsets_to_segments): Update.
17774 * symfile.c (build_section_addr_info_from_objfile)
17775 (init_objfile_sect_indices): Update.
17776 (struct place_section_arg): Change type of "offsets".
17777 (place_section): Update.
17778 (relative_addr_info_to_section_offsets): Change type of
17779 "section_offsets". Remove "num_sections" parameter.
17780 (default_symfile_offsets, syms_from_objfile_1)
17781 (set_objfile_default_section_offset): Update.
17782 (reread_symbols): No need to preserve section offsets by hand.
17783 (symfile_map_offsets_to_segments): Change type of "offsets".
17784 * stap-probe.c (relocate_address): Update.
17785 * stabsread.h (process_one_symbol): Update.
17786 * solib-target.c (struct lm_info_target) <offsets>: Change type.
17787 (solib_target_relocate_section_addresses): Update.
17788 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
17790 * solib-frv.c (frv_relocate_main_executable): Update.
17791 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
17792 * solib-aix.c (solib_aix_get_section_offsets): Change return
17794 (solib_aix_solib_create_inferior_hook): Update.
17795 * remote.c (remote_target::get_offsets): Update.
17796 * psymtab.c (find_pc_sect_psymtab): Update.
17797 * psympriv.h (struct partial_symbol) <address, text_low,
17798 text_high>: Update.
17799 * objfiles.h (obj_section_offset): Update.
17800 (struct objfile) <section_offsets>: Change type.
17801 <num_sections>: Remove.
17802 (objfile_relocate): Update.
17803 * objfiles.c (entry_point_address_query): Update
17804 (relocate_one_symbol): Change type of "section_offsets".
17805 (objfile_relocate1, objfile_relocate1): Change type of
17807 (objfile_rebase1): Update.
17808 * mipsread.c (mipscoff_symfile_read): Update.
17809 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
17811 * mdebugread.c (parse_symbol): Change type of "section_offsets".
17812 (parse_external, psymtab_to_symtab_1): Update.
17813 * machoread.c (macho_symfile_offsets): Update.
17814 * ia64-tdep.c (ia64_find_unwind_table): Update.
17815 * hppa-tdep.c (read_unwind_info): Update.
17816 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
17817 * dwarf2read.c (create_addrmap_from_index)
17818 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
17819 (process_psymtab_comp_unit_reader, add_partial_symbol)
17820 (add_partial_subprogram, process_full_comp_unit)
17821 (read_file_scope, read_func_scope, read_lexical_block_scope)
17822 (read_call_site_scope, dwarf2_rnglists_process)
17823 (dwarf2_ranges_process, dwarf2_ranges_read)
17824 (dwarf_decode_lines_1, var_decode_location, new_symbol)
17825 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
17827 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
17829 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
17830 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
17831 (process_one_symbol): Change type of "section_offsets".
17832 * ctfread.c (get_objfile_text_range): Update.
17833 * coffread.c (coff_symtab_read, enter_linenos)
17834 (process_coff_symbol): Update.
17835 * coff-pe-read.c (add_pe_forwarded_sym): Update.
17836 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
17838 2020-01-08 Tom Tromey <tromey@adacore.com>
17840 * dwarf2read.c (parse_macro_definition): Use std::string.
17841 (parse_macro_definition): Likewise.
17843 2020-01-08 Tom Tromey <tromey@adacore.com>
17845 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
17846 (ATTR_ALLOC_CHUNK): Remove.
17848 2020-01-08 Tom Tromey <tromey@adacore.com>
17850 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
17852 2020-01-08 Tom Tromey <tromey@adacore.com>
17854 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
17855 (dwarf2_compute_name, open_dwo_file): Likewise.
17856 (process_enumeration_scope): Use std::vector.
17857 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
17858 (partial_die_info::fixup, dwarf2_start_subfile)
17859 (guess_full_die_structure_name, dwarf2_name): Likewise.
17860 (determine_prefix): Update.
17861 (guess_full_die_structure_name): Make return type const.
17862 (partial_die_full_name): Return unique_xmalloc_ptr.
17863 (DW_FIELD_ALLOC_CHUNK): Remove.
17865 2020-01-07 Tom Tromey <tromey@adacore.com>
17868 * stap-probe.c (class stap_static_probe_ops): Add constructor.
17870 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
17872 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
17874 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
17876 * stack.c (print_frame_info): Move disassemble_next_line code
17877 inside source_print block.
17879 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17881 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
17882 gdb/signals.h, as we are now using native signal symbols.
17884 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
17886 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
17887 overflow by an early check of content vs threshold.
17888 * tui/tui-source.c (tui_source_window::line_is_displayed):
17891 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17893 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
17895 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
17897 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
17898 export table if no section contains it's RVA.
17900 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17902 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
17904 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
17906 * source.c (print_source_lines_base): Set last_line_listed.
17908 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
17910 * tui/tui-disasm.c: Remove trailing spaces.
17912 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17913 Pedro Alves <palves@redhat.com>
17915 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
17916 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
17917 (windows_gdb_signal_to_target): New function, uses the above
17918 enumeration to convert GDB internal signal codes to equivalent
17920 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
17921 * windows-nat.c: Include "gdb_wait.h".
17922 (get_windows_debug_event): Extract the fatal exception from the
17923 exit status and convert to the equivalent Posix signal number.
17924 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
17925 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
17926 * gdbsupport/gdb_wait.c: New file, implements
17927 windows_status_to_termsig.
17928 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
17929 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
17931 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
17933 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
17936 2020-01-05 Luis Machado <luis.machado@linaro.org>
17938 * aarch64-linux-nat.c
17939 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
17940 and bfd_mach_aarch64.
17942 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
17944 * ui-file.c (stdio_file::can_emit_style_escape)
17945 (tee_file::can_emit_style_escape): Ensure style is used also on
17946 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
17948 * main.c (set_gdb_data_directory): Use file style to output the
17949 warning that the given pathname is not a directory.
17950 * top.c (show_history_filename, gdb_safe_append_history)
17951 (show_gdb_datadir): Use file style.
17953 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
17955 * solib-target.c (struct lm_info_target):
17956 Change offsets to be a unique_xmalloc_ptr.
17957 (solib_target_relocate_section_addresses): Update.
17959 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
17961 * windows-nat.c (windows_clear_solib): Free so_list linked list.
17963 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
17965 * MAINTAINERS (Write After Approval): Add myself.
17967 2020-01-02 Luis Machado <luis.machado@linaro.org>
17969 * proc-service.c (get_ps_regcache): Remove reference to obsolete
17970 Cell BE architecture.
17971 * target.h (struct target_ops) <thread_architecture>: Likewise.
17973 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
17975 * Makefile.in: Use INSTALL_PROGRAM_ENV.
17977 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
17979 * MAINTAINERS (Write After Approval): Add myself.
17981 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17983 * gdbarch.sh: Update copyright year range of generated files.
17985 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17987 Update copyright year range in all GDB files.
17989 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17991 * copyright.py: Convert to Python 3.
17993 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17995 * copyright.py: Adapt after move of gnulib directory from gdb
17996 directory to toplevel directory.
17998 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18000 * copyright.py (main): Exit if run from the wrong directory.
18002 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18004 * top.c (print_gdb_version): Change copyright year to 2020.
18006 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18008 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
18010 For older changes see ChangeLog-2019.
18016 version-control: never