1 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
3 * gdbtypes.h (get_discrete_bounds): Return bool, adjust all
5 * gdbtypes.c (get_discrete_bounds): Return bool.
7 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
9 * ada-lang.c (ada_value_slice_from_ptr): Adjust.
10 (ada_value_slice): Adjust.
12 * gdbtypes.c (get_discrete_bounds): Adjust.
13 (discrete_position): Return optional.
14 * gdbtypes.h (discrete_position): Return optional.
16 2020-12-07 Tom Tromey <tromey@adacore.com>
18 * maint.c (_initialize_maint_cmds): Use expression command
19 completer for "maint print type".
21 2020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
23 * completer.c (complete_explicit_location): Also add keywords
24 that start with '-' to the completion list.
26 2020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
28 * linespec.c (linespec_lexer_lex_keyword): The "-force-condition"
29 keyword may be followed by any keyword.
30 * breakpoint.c (find_condition_and_thread): Advance 'tok' by
31 'toklen' in the case for "-force-condition".
33 2020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
35 * main.c (catch_command_errors): Add a flag parameter; invoke
36 `bpstat_do_actions` if the flag is set.
37 (execute_cmdargs): Update a call to `catch_command_errors`.
39 2020-12-07 Tom de Vries <tdevries@suse.de>
41 * ada-lang.c (replace_operator_with_call): Handle shrink resize.
43 2020-12-06 Tom Tromey <tom@tromey.com>
46 * ada-lang.c (replace_operator_with_call): Rewrite.
48 2020-12-06 Giancarlo Frix <gfrix@rocketsoftware.com> (tiny change)
51 * s390-tdep.h (op_bc): Correct BC opcode value.
53 2020-12-06 Joel Brobecker <brobecker@adacore.com>
55 * gmp-utils.h (gdb_mpz::safe_export): New private method.
56 (gdb_mpz::as_integer): Reimplement using gdb_mpz::safe_export.
57 * gmp-utils.c (gdb_mpz::write): Rewrite using gdb_mpz::safe_export.
58 (gdb_mpz::safe_export): New method.
59 * unittests/gmp-utils-selftests .c (gdb_mpz_as_integer):
60 Update function description.
61 (check_as_integer_raises_out_of_range_error): New function.
62 (gdb_mpz_as_integer_out_of_range): New function.
63 (_initialize_gmp_utils_selftests): Register
64 gdb_mpz_as_integer_out_of_range as a selftest.
66 2020-12-05 Joel Brobecker <brobecker@adacore.com>
68 * gmp-utils.c (gdb_mpz::read): Use HOST_CHAR_BIT instead of
70 (gdb_mpz::write): Likewise.
72 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
74 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass 2 as the
75 number of displaced step buffers.
77 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
79 * displaced-stepping.h (struct displaced_step_buffer): Rename
81 (struct displaced_step_buffers): ... this.
82 <m_addr, m_current_thread, m_copy_insn_closure>: Remove.
83 <struct displaced_step_buffer>: New inner class.
85 * displaced-stepping.c (displaced_step_buffer::prepare): Rename
87 (displaced_step_buffers::prepare): ... this, adjust for multiple
89 (displaced_step_buffer::finish): Rename to...
90 (displaced_step_buffers::finish): ... this, adjust for multiple
92 (displaced_step_buffer::copy_insn_closure_by_addr): Rename to...
93 (displaced_step_buffers::copy_insn_closure_by_addr): ... this,
94 adjust for multiple buffers.
95 (displaced_step_buffer::restore_in_ptid): Rename to...
96 (displaced_step_buffers::restore_in_ptid): ... this, adjust for
98 * linux-tdep.h (linux_init_abi): Change supports_displaced_step
99 for num_disp_step_buffers.
100 * linux-tdep.c (struct linux_gdbarch_data)
101 <num_disp_step_buffers>: New field.
102 (struct linux_info) <disp_step_buf>: Rename to...
103 <disp_step_bufs>: ... this, change type to
104 displaced_step_buffers.
105 (linux_displaced_step_prepare): Use
106 linux_gdbarch_data::num_disp_step_buffers to create that number
108 (linux_displaced_step_finish): Adjust.
109 (linux_displaced_step_copy_insn_closure_by_addr): Adjust.
110 (linux_displaced_step_restore_all_in_ptid): Adjust.
111 (linux_init_abi): Change supports_displaced_step parameter for
112 num_disp_step_buffers, save it in linux_gdbarch_data.
113 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Adjust.
114 * alpha-linux-tdep.c (alpha_linux_init_abi): Adjust.
115 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Change
116 supports_displaced_step parameter for num_disp_step_buffers.
117 (amd64_linux_init_abi): Adjust.
118 (amd64_x32_linux_init_abi): Adjust.
119 * arc-linux-tdep.c (arc_linux_init_osabi): Adjust.
120 * arm-linux-tdep.c (arm_linux_init_abi): Adjust.
121 * bfin-linux-tdep.c (bfin_linux_init_abi): Adjust.
122 * cris-linux-tdep.c (cris_linux_init_abi): Adjust.
123 * csky-linux-tdep.c (csky_linux_init_abi): Adjust.
124 * frv-linux-tdep.c (frv_linux_init_abi): Adjust.
125 * hppa-linux-tdep.c (hppa_linux_init_abi): Adjust.
126 * i386-linux-tdep.c (i386_linux_init_abi): Adjust.
127 * ia64-linux-tdep.c (ia64_linux_init_abi): Adjust.
128 * m32r-linux-tdep.c (m32r_linux_init_abi): Adjust.
129 * m68k-linux-tdep.c (m68k_linux_init_abi):
130 * microblaze-linux-tdep.c (microblaze_linux_init_abi):
131 * mips-linux-tdep.c (mips_linux_init_abi): Adjust.
132 * mn10300-linux-tdep.c (am33_linux_init_osabi): Adjust.
133 * nios2-linux-tdep.c (nios2_linux_init_abi): Adjust.
134 * or1k-linux-tdep.c (or1k_linux_init_abi): Adjust.
135 * ppc-linux-tdep.c (ppc_linux_init_abi): Adjust.
136 * riscv-linux-tdep.c (riscv_linux_init_abi): Adjust.
137 * rs6000-tdep.c (struct ppc_inferior_data) <disp_step_buf>:
138 Change type to displaced_step_buffers.
139 * s390-linux-tdep.c (s390_linux_init_abi_any): Adjust.
140 * sh-linux-tdep.c (sh_linux_init_abi): Adjust.
141 * sparc-linux-tdep.c (sparc32_linux_init_abi): Adjust.
142 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Adjust.
143 * tic6x-linux-tdep.c (tic6x_uclinux_init_abi): Adjust.
144 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Adjust.
145 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Adjust.
147 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
149 * linux-tdep.c (init_linux_gdbarch_data): Change parameter to
151 (_initialize_linux_tdep): Register pre-init gdb data instead of
154 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
156 * displaced-stepping.h (struct
157 displaced_step_copy_insn_closure): Adjust comments.
158 (struct displaced_step_inferior_state) <step_thread,
159 step_gdbarch, step_closure, step_original, step_copy,
160 step_saved_copy>: Remove fields.
161 (struct displaced_step_thread_state): New.
162 (struct displaced_step_buffer): New.
163 * displaced-stepping.c (displaced_step_buffer::prepare): New.
164 (write_memory_ptid): Move from infrun.c.
165 (displaced_step_instruction_executed_successfully): New,
166 factored out of displaced_step_finish.
167 (displaced_step_buffer::finish): New.
168 (displaced_step_buffer::copy_insn_closure_by_addr): New.
169 (displaced_step_buffer::restore_in_ptid): New.
170 * gdbarch.sh (displaced_step_location): Remove.
171 (displaced_step_prepare, displaced_step_finish,
172 displaced_step_copy_insn_closure_by_addr,
173 displaced_step_restore_all_in_ptid): New.
174 * gdbarch.c: Re-generate.
175 * gdbarch.h: Re-generate.
176 * gdbthread.h (class thread_info) <displaced_step_state>: New
178 (thread_step_over_chain_remove): New declaration.
179 (thread_step_over_chain_next): New declaration.
180 (thread_step_over_chain_length): New declaration.
181 * thread.c (thread_step_over_chain_remove): Make non-static.
182 (thread_step_over_chain_next): New.
183 (global_thread_step_over_chain_next): Use
184 thread_step_over_chain_next.
185 (thread_step_over_chain_length): New.
186 (global_thread_step_over_chain_enqueue): Add debug print.
187 (global_thread_step_over_chain_remove): Add debug print.
188 * infrun.h (get_displaced_step_copy_insn_closure_by_addr):
190 * infrun.c (get_displaced_stepping_state): New.
191 (displaced_step_in_progress_any_inferior): Remove.
192 (displaced_step_in_progress_thread): Adjust.
193 (displaced_step_in_progress): Adjust.
194 (displaced_step_in_progress_any_thread): New.
195 (get_displaced_step_copy_insn_closure_by_addr): Remove.
196 (gdbarch_supports_displaced_stepping): Use
197 gdbarch_displaced_step_prepare_p.
198 (displaced_step_reset): Change parameter from inferior to
200 (displaced_step_prepare_throw): Implement using
201 gdbarch_displaced_step_prepare.
202 (write_memory_ptid): Move to displaced-step.c.
203 (displaced_step_restore): Remove.
204 (displaced_step_finish): Implement using
205 gdbarch_displaced_step_finish.
206 (start_step_over): Allow starting more than one displaced step.
207 (prepare_for_detach): Handle possibly multiple threads doing
209 (handle_inferior_event): Handle possibility that fork event
210 happens while another thread displaced steps.
211 * linux-tdep.h (linux_displaced_step_prepare): New.
212 (linux_displaced_step_finish): New.
213 (linux_displaced_step_copy_insn_closure_by_addr): New.
214 (linux_displaced_step_restore_all_in_ptid): New.
215 (linux_init_abi): Add supports_displaced_step parameter.
216 * linux-tdep.c (struct linux_info) <disp_step_buf>: New field.
217 (linux_displaced_step_prepare): New.
218 (linux_displaced_step_finish): New.
219 (linux_displaced_step_copy_insn_closure_by_addr): New.
220 (linux_displaced_step_restore_all_in_ptid): New.
221 (linux_init_abi): Add supports_displaced_step parameter,
222 register displaced step methods if true.
223 (_initialize_linux_tdep): Register inferior_execd observer.
224 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Add
225 supports_displaced_step parameter, adjust call to
226 linux_init_abi. Remove call to
227 set_gdbarch_displaced_step_location.
228 (amd64_linux_init_abi): Adjust call to
229 amd64_linux_init_abi_common.
230 (amd64_x32_linux_init_abi): Likewise.
231 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Adjust call to
232 linux_init_abi. Remove call to
233 set_gdbarch_displaced_step_location.
234 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
235 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
236 * alpha-linux-tdep.c (alpha_linux_init_abi): Adjust call to
238 * arc-linux-tdep.c (arc_linux_init_osabi): Likewise.
239 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
240 * cris-linux-tdep.c (cris_linux_init_abi): Likewise.
241 * csky-linux-tdep.c (csky_linux_init_abi): Likewise.
242 * frv-linux-tdep.c (frv_linux_init_abi): Likewise.
243 * hppa-linux-tdep.c (hppa_linux_init_abi): Likewise.
244 * ia64-linux-tdep.c (ia64_linux_init_abi): Likewise.
245 * m32r-linux-tdep.c (m32r_linux_init_abi): Likewise.
246 * m68k-linux-tdep.c (m68k_linux_init_abi): Likewise.
247 * microblaze-linux-tdep.c (microblaze_linux_init_abi): Likewise.
248 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
249 * mn10300-linux-tdep.c (am33_linux_init_osabi): Likewise.
250 * nios2-linux-tdep.c (nios2_linux_init_abi): Likewise.
251 * or1k-linux-tdep.c (or1k_linux_init_abi): Likewise.
252 * riscv-linux-tdep.c (riscv_linux_init_abi): Likewise.
253 * s390-linux-tdep.c (s390_linux_init_abi_any): Likewise.
254 * sh-linux-tdep.c (sh_linux_init_abi): Likewise.
255 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
256 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
257 * tic6x-linux-tdep.c (tic6x_uclinux_init_abi): Likewise.
258 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
259 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Likewise.
260 * ppc-linux-tdep.c (ppc_linux_init_abi): Adjust call to
261 linux_init_abi. Remove call to
262 set_gdbarch_displaced_step_location.
263 * arm-tdep.c (arm_pc_is_thumb): Call
264 gdbarch_displaced_step_copy_insn_closure_by_addr instead of
265 get_displaced_step_copy_insn_closure_by_addr.
266 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Adjust calls to
267 clear gdbarch methods.
268 * rs6000-tdep.c (struct ppc_inferior_data): New structure.
269 (get_ppc_per_inferior): New function.
270 (ppc_displaced_step_prepare): New function.
271 (ppc_displaced_step_finish): New function.
272 (ppc_displaced_step_restore_all_in_ptid): New function.
273 (rs6000_gdbarch_init): Register new gdbarch methods.
274 * s390-tdep.c (s390_gdbarch_init): Don't call
275 set_gdbarch_displaced_step_location, set new gdbarch methods.
277 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
279 * Makefile.in (COMMON_SFILES): Add displaced-stepping.c.
280 * aarch64-tdep.h: Include displaced-stepping.h.
281 * displaced-stepping.h (struct displaced_step_copy_insn_closure):
283 (displaced_step_copy_insn_closure_up): Move here.
284 (struct buf_displaced_step_copy_insn_closure): Move here.
285 (struct displaced_step_inferior_state): Move here.
286 (debug_displaced): Move here.
287 (displaced_debug_printf_1): Move here.
288 (displaced_debug_printf): Move here.
289 * displaced-stepping.c: New file.
290 * gdbarch.sh: Include displaced-stepping.h in gdbarch.h.
291 * gdbarch.h: Re-generate.
292 * inferior.h: Include displaced-stepping.h.
293 * infrun.h (debug_displaced): Move to displaced-stepping.h.
294 (displaced_debug_printf_1): Likewise.
295 (displaced_debug_printf): Likewise.
296 (struct displaced_step_copy_insn_closure): Likewise.
297 (displaced_step_copy_insn_closure_up): Likewise.
298 (struct buf_displaced_step_copy_insn_closure): Likewise.
299 (struct displaced_step_inferior_state): Likewise.
300 * infrun.c (show_debug_displaced): Move to displaced-stepping.c.
301 (displaced_debug_printf_1): Likewise.
302 (displaced_step_copy_insn_closure::~displaced_step_copy_insn_closure):
304 (_initialize_infrun): Don't register "set/show debug displaced".
306 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
308 * linux-tdep.c (get_linux_inferior_data): Add inferior
310 (linux_vsyscall_range): Pass current inferior.
312 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
314 * infrun.c (displaced_step_prepare_throw): Change return type to
315 displaced_step_prepare_status.
316 (displaced_step_prepare): Likewise.
317 (displaced_step_finish): Change return type to
318 displaced_step_finish_status.
320 (stop_all_threads): Adjust.
321 * displaced-stepping.h: New file.
323 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
325 * infrun.c (displaced_step_fixup): Rename to...
326 (displaced_step_finish): ... this, update all callers.
328 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
330 * infrun.h (get_displaced_step_closure_by_addr): Rename to...
331 (get_displaced_step_copy_insn_closure_by_addr): ... this.
333 (displaced_step_closure): Rename to...
334 (displaced_step_copy_insn_closure): ... this. Update all users.
335 (displaced_step_closure_up): Rename to...
336 (displaced_step_copy_insn_closure_up). ... this. Update all
338 (buf_displaced_step_closure): Rename to...
339 (buf_displaced_step_copy_insn_closure): ... this. Update all
341 * infrun.c (get_displaced_step_closure_by_addr): Rename to...
342 (get_displaced_step_copy_insn_closure_by_addr): ... this.
344 * aarch64-tdep.c (aarch64_displaced_step_closure): Rename to...
345 (aarch64_displaced_step_copy_insn_closure): ... this. Update
347 * amd64-tdep.c (amd64_displaced_step_closure): Rename to...
348 (amd64_displaced_step_copy_insn_closure): ... this. Update all
350 * arm-tdep.h (arm_displaced_step_closure): Rename to...
351 (arm_displaced_step_copy_insn_closure): ... this. Update all
353 * i386-tdep.h (i386_displaced_step_closure): Rename to...
354 (i386_displaced_step_copy_insn_closure): ... this. Update all
356 * rs6000-tdep.c (ppc_displaced_step_closure): Rename to...
357 (ppc_displaced_step_copy_insn_closure): ... this. Update all
359 * s390-tdep.c (s390_displaced_step_closure): Rename to...
360 (s390_displaced_step_copy_insn_closure): ... this. Update all
362 * gdbarch.h: Re-generate.
363 * gdbarch.c: Re-generate.
365 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
367 * gdbthread.h (thread_step_over_chain_enqueue): Rename to...
368 (global_thread_step_over_chain_enqueue): ... this. Update all
370 (thread_step_over_chain_remove): Rename to...
371 (global_thread_step_over_chain_remove): ... this. Update all
373 (thread_step_over_chain_next): Rename to...
374 (global_thread_step_over_chain_next): ... this. Update all
376 * infrun.h (step_over_queue_head): Rename to...
377 (global_thread_step_over_chain_head): ... this. Update all
379 * infrun.c (step_over_queue_head): Rename to...
380 (global_thread_step_over_chain_head): ... this. Update all
382 * thread.c (step_over_chain_remove): Rename to...
383 (thread_step_over_chain_remove): ... this. Update all users.
384 (thread_step_over_chain_next): Rename to...
385 (global_thread_step_over_chain_next): ... this. Update all
387 (thread_step_over_chain_enqueue): Rename to...
388 (global_thread_step_over_chain_enqueue): ... this. Update all
390 (thread_step_over_chain_remove): Rename to...
391 (global_thread_step_over_chain_remove): ... this. Update all
394 2020-12-04 Simon Marchi <simon.marchi@polymtl.ca>
396 * infrun.c (get_displaced_stepping_state): Remove, change
397 callers to access the field directly.
399 2020-12-04 Simon Marchi <simon.marchi@polymtl.ca>
401 * infrun.c (handle_inferior_event): Restore displaced step
402 buffer bytes in child process when handling fork, even if fork
403 happened in another thread than the displaced-stepping one.
405 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
407 * infrun.c (infrun_inferior_execd): New function.
408 (_initialize_infrun): Attach inferior_execd observer.
410 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
412 * observable.h (inferior_execd): Declare new observable.
413 * observable.c (inferior_execd): Declare new observable.
414 * infrun.c (follow_exec): Notify inferior_execd observer.
415 * jit.c (jit_inferior_created_hook): Make static.
416 (_initialize_jit): Register inferior_execd observer.
417 * jit.h (jit_inferior_created_hook): Remove declaration.
418 * solib.c (_initialize_solib): Register inferior_execd observer.
420 2020-12-04 Tom de Vries <tdevries@suse.de>
423 * completer.c (completion_tracker::build_completion_result): Don't
424 access match_list[0][-1].
426 2020-12-04 Tom Tromey <tromey@adacore.com>
428 * linespec.c (struct linespec_token): Rename; remove typedef.
429 * guile/scm-block.c (struct block_smob): Remove typedef.
430 (struct block_syms_progress_smob): Likewise.
431 * guile/scm-symbol.c (struct symbol_smob): Remove typedef.
432 * guile/scm-symtab.c (symtab_smob): Remove typedef.
433 (struct sal_smob): Remove typedef.
434 * guile/scm-param.c (struct param_smob): Remove typedef.
435 * guile/scm-progspace.c (struct pspace_smob): Rename.
436 * guile/scm-objfile.c (struct objfile_smob): Rename.
437 * guile/scm-iterator.c (struct iterator_smob): Rename.
438 * guile/scm-frame.c (struct frame_smob): Rename.
439 * guile/scm-arch.c (struct arch_smob): Rename.
440 * guile/scm-type.c (struct field_smob): Remove typedef.
441 (struct type_smob): Rename.
442 * guile/scm-cmd.c (struct command_smob): Remove typedef.
443 * guile/scm-ports.c (struct ioscm_memory_port): Remove typedef.
444 * guile/scm-value.c (struct value_smob): Remove typedef.
445 * guile/scm-lazy-string.c (lazy_string_smob): Remove typedef.
446 * guile/guile-internal.h (struct scheme_variable)
447 (struct scheme_function, struct scheme_integer_constant)
448 (struct gdb_smob, struct chained_gdb_smob)
449 (struct eqable_gdb_smob, arch_smob, frame_smob, iterator_smob)
450 (objfile_smob, pspace_smob, type_smob): Remove typedef.
451 * guile/scm-pretty-print.c (pretty_printer_smob): Remove typedef.
452 (struct pretty_printer_worker_smob): Remove typedef.
453 * guile/scm-exception.c (struct exception_smob): Remove typedef.
454 * python/py-block.c (struct block_object): Remove typedef.
455 (block_syms_iterator_object): Update.
457 (block_syms_iterator_object): Remove typedef.
458 * python/py-inferior.c (struct membuf_object): Remove typedef.
459 * python/py-symtab.c (struct symtab_object): Remove typedef.
460 (set_symtab): Update.
461 (sal_object): Remove typedef.
463 * python/py-frame.c (frame_object): Remove typedef.
464 * python/py-record-btrace.c (struct btpy_list_object): Remove
466 * python/py-arch.c (struct arch_object): Remove typedef.
467 * python/py-linetable.c (struct linetable_entry_object)
468 (linetable_object, struct ltpy_iterator_object): Remove typedef.
469 * python/py-events.h (eventregistry_object): Remove typedef.
470 (struct events_object): Remove typedef.
471 * python/python-internal.h (gdbpy_breakpoint_object): Remove
473 (thread_object): Remove typedef.
474 * python/py-progspace.c (pspace_object): Remove typedef.
475 * python/py-value.c (struct value_object): Remove typedef.
476 * python/py-record.h (recpy_record_object): Remove typedef.
477 (struct recpy_element_object): Remove typedef.
478 * python/py-lazy-string.c (lazy_string_object): Remove typedef.
479 * python/py-objfile.c (objfile_object): Remove typedef.
480 * python/py-cmd.c (struct cmdpy_object): Remove typedef.
481 * python/py-type.c (type_object): Remove typedef.
482 (typy_iterator_object): Update.
484 (field_object): Remove typedef.
485 (typy_iterator_object): Remove typedef.
486 * python/py-registers.c (register_descriptor_iterator_object):
488 (struct register_descriptor_object)
489 (struct reggroup_iterator_object, struct reggroup_object): Remove
491 * python/py-record.c (recpy_gap_object): Remove typedef.
492 * python/py-symbol.c (symbol_object): Remove typedef.
493 (set_symbol): Update.
494 * python/py-event.h (event_object): Remove typedef.
495 * python/py-param.c (parmpy_object): Remove typedef.
496 * python/py-instruction.c (struct py_insn_obj): Remove typedef.
497 * python/py-unwind.c (struct pending_frame_object): Remove typedef.
498 (unwind_info_object, struct cached_frame_info): Likewise.
500 2020-12-04 Tom Tromey <tromey@adacore.com>
502 * value.c (value_internal_function_name): Make return type const.
503 * value.h (value_internal_function_name): Make return type const.
505 2020-12-04 Luis Machado <luis.machado@linaro.org>
507 * aarch64-tdep.c (submask, bit, bits): Remove.
508 * arch/aarch64-insn.c (extract_signed_bitfield): Remove.
509 (aarch64_decode_adr, aarch64_decode_b aarch64_decode_bcond)
510 (aarch64_decode_cb, aarch64_decode_tb)
511 (aarch64_decode_ldr_literal): Use sbits to extract a signed
513 * arch/aarch64-insn.h (submask, bits, bit, sbits): New macros.
515 2020-12-04 Tom de Vries <tdevries@suse.de>
518 * i386-tdep.c (i386_16_byte_align_p): Skip static fields.
520 2020-12-03 Simon Marchi <simon.marchi@polymtl.ca>
523 * dwarf2/frame.c (find_comp_unit, set_comp_unit): Reverse use of
524 dwarf2_frame_bfd_data and dwarf2_frame_objfile_data.
526 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
528 * arch/riscv.c: Include 'rv32e-xregs.c'.
529 (riscv_create_target_description): Update to handle rv32e.
530 * arch/riscv.h (struct riscv_gdbarch_features) <embedded>: New
532 <operator==>: Update to account for new field.
534 * features/Makefile (FEATURE_XMLFILES): Add riscv/rv32e-xregs.xml.
535 * features/riscv/rv32e-xregs.c: Generated.
536 * features/riscv/rv32e-xregs.xml: New file.
537 * riscv-tdep.c (riscv_debug_breakpoints): Move from later in the
539 (riscv_debug_infcall): Likewise.
540 (riscv_debug_unwinder): Likewise.
541 (riscv_debug_gdbarch): Likewise.
542 (enum riscv_register_required_status): Delete.
543 (struct riscv_register_feature): Add constructor, delete default
544 constructor, copy, and assign constructors.
545 (struct riscv_register_feature::register_info) <required>: Delete.
546 <check>: Update comment and arguments.
547 (struct riscv_register_feature) <name>: Change to member function.
548 <prefer_first_name>: Delete.
549 <tdesc_feature>: New member function.
550 <registers>: Rename to...
551 <m_registers>: ...this.
552 <m_feature_name>: New member variable.
553 (riscv_register_feature::register_info::check): Update arguments.
554 (riscv_xreg_feature): Rewrite as class, create a single static
555 instance of the class.
556 (riscv_freg_feature): Likewise.
557 (riscv_virtual_feature): Likewise.
558 (riscv_csr_feature): Likewise.
559 (riscv_create_csr_aliases): Has become a member function inside
560 riscv_csr_feature class.
561 (riscv_abi_embedded): New function definition.
562 (riscv_register_name): Adjust to use new feature objects.
563 (struct riscv_call_info) <riscv_call_info>: Check for rv32e abi,
564 and adjust available argument registers.
565 (riscv_features_from_gdbarch_info): Check for EF_RISCV_RVE flag.
566 (riscv_check_tdesc_feature): Delete.
567 (riscv_tdesc_unknown_reg): Adjust to use new feature objects.
568 (riscv_gdbarch_init): Delete target description checking code, and
569 instead call to the new feature objects to perform the checks.
570 Reorder handling of no abi information case, allows small code
572 (_initialize_riscv_tdep): Remove call, this is now done in the
573 riscv_csr_feature constructor.
574 * riscv-tdep.h (riscv_abi_embedded): Declare.
576 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
578 * riscv-tdep.c (riscv_create_csr_aliases): Remove use of
581 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
583 * riscv-tdep.c (riscv_is_unknown_csr): New function,
584 implementation moved from riscv_register_reggroup_p.
585 (riscv_register_reggroup_p): Update group handling for unknown
588 2020-12-01 Sergio Durigan Junior <sergiodj@sergiodj.net>
590 * dwarf2/read.c (dwz_search_other_debugdirs): New function.
591 (dwarf2_get_dwz_file): Convert 'filename' to a
592 std::string. Use dwz_search_other_debugdirs to search for DWZ
593 files in the debug-file-directories provided by the user as well.
595 2020-12-01 Tom Tromey <tom@tromey.com>
597 * parse.c (expr_builder::expr_builder): Initialize expout.
598 (expr_builder::release): Use expression::resize.
599 (expression::expression, expression::~expression)
600 (expression::resize): New methods.
601 (write_exp_elt): Use expression::resize.
602 (prefixify_expression): Update.
603 (increase_expout_size): Use expression::resize.
604 * expression.h (struct expression): Add constructor, destructor.
605 <resize>: New method.
606 (expression_up): Change type.
608 2020-12-01 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
609 * ppc-linux-nat.c: (PPC_DEBUG_FEATURE_DATA_BP_ARCH_31): New define.
610 (region_ok_for_hw_watchpoint): Check if 2nd DAWR is avaliable before
613 2020-11-30 Tom de Vries <tdevries@suse.de>
616 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add and handle
617 is_reference parameter.
618 (dwarf2_evaluate_property): Update dwarf2_locexpr_baton_eval call.
620 2020-11-30 Tom Tromey <tom@tromey.com>
622 * rust-lang.c (rust_op_name): Remove.
623 (exp_descriptor_rust): Update.
624 * parser-defs.h (op_name_standard): Don't declare.
625 (struct exp_descriptor) <op_name>: Remove.
626 * parse.c (exp_descriptor_standard): Update.
627 * opencl-lang.c (exp_descriptor_opencl): Update.
628 * m2-lang.c (m2_language::exp_descriptor_modula2): Update.
629 * f-lang.c (op_name_f): Remove.
630 (f_language::exp_descriptor_tab): Update.
631 * expression.h (op_name): Update.
632 * expprint.c (op_name): Rewrite.
633 (op_name_standard): Remove.
634 (dump_raw_expression, dump_subexp): Update.
635 * c-lang.c (exp_descriptor_c): Update.
636 * ax-gdb.c (gen_expr): Update.
637 * ada-lang.c (ada_op_name): Remove.
638 (ada_exp_descriptor): Update.
640 2020-11-30 Tom Tromey <tom@tromey.com>
642 * eval.c (init_array_element): Remove.
643 (evaluate_subexp_standard) <OP_ARRAY>: Remove "index_pc".
645 2020-11-29 Hannes Domani <ssbssa@yahoo.de>
648 * tui/tui-layout.c (tui_apply_current_layout): Don't delete the
649 static locator win info.
651 2020-11-28 Alex Richardson <Alexander.Richardson@cl.cam.ac.uk>
653 * acincludde.m4 (GDB_AC_CHECK_BFD): Include string.h in the test
656 2020-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
658 * printcmd.c (skip_over_slash_fmt): Reorder code to ensure in_fmt
659 is always initialized.
661 2020-11-26 Rogerio Alves <rcardoso@linux.ibm.com>
662 * MAINTAINERS (Write After Approval): Add myself.
664 2020-11-26 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
666 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
667 * features/aarch64-fpu.xml: Add named FPCR and FPSR register bit-fields.
669 2020-11-25 Tom Tromey <tom@tromey.com>
671 * eval.c (evaluate_subexp_standard): Remove unnecessary
674 2020-11-25 Tom Tromey <tom@tromey.com>
676 * d-lang.c: Include parser-defs.h.
677 * rust-lang.c: Include parser-defs.h.
678 * c-lang.h: Do not include parser-defs.h.
680 2020-11-24 Simon Marchi <simon.marchi@polymtl.ca>
682 * regcache.h (struct cached_reg): Remove typedef.
684 2020-11-24 Joel Brobecker <brobecker@adacore.com>
686 * README: Fix the URL of the MPFR library.
688 2020-11-24 Joel Brobecker <brobecker@adacore.com>
690 * README: Document the --with-libgmp-prefix configure option.
692 2020-11-24 Joel Brobecker <brobecker@adacore.com>
694 * NEWS: Add entry documenting support for DWARF-based fixed
697 2020-11-24 Joel Brobecker <brobecker@adacore.com>
699 * NEWS: Document that building GDB now requires GMP.
701 2020-11-24 Joel Brobecker <brobecker@adacore.com>
703 * typeprint.c (print_type_scalar): Add handling of
704 TYPE_CODE_FIXED_POINT.
706 2020-11-24 Joel Brobecker <brobecker@adacore.com>
708 * valarith.c (fixed_point_binop): Replace the
709 INIT_VAL_WITH_FIXED_POINT_VAL macro by a lambda. Update all
712 2020-11-24 Joel Brobecker <brobecker@adacore.com>
714 * gdbtypes.h (struct type) <fixed_point_scaling_factor>: New method,
715 replacing fixed_point_scaling_factor. All callers updated
716 throughout this project.
717 (fixed_point_scaling_factor): Delete declaration.
718 * gdbtypes.c (type::fixed_point_scaling_factor): Replaces
719 fixed_point_scaling_factor. Adjust implementation accordingly.
721 2020-11-24 Joel Brobecker <brobecker@adacore.com>
723 * gdbtypes.h (struct type) <fixed_point_type_base_type> New method,
724 replacing the fixed_point_type_base_type function. All callers
725 updated throughout this project.
726 (fixed_point_type_base_type): Remove declaration.
727 * gdbtypes.c (type::fixed_point_type_base_type): Replaces
728 fixed_point_type_base_type. Adjust implementation accordingly.
730 2020-11-24 Joel Brobecker <brobecker@adacore.com>
732 * gdbtypes.h (struct type) <fixed_point_info, set_fixed_point_info>:
734 (INIT_FIXED_POINT_SPECIFIC): Adjust.
735 (TYPE_FIXED_POINT_INFO): Delete macro.
736 (allocate_fixed_point_type_info): Change return type to void.
737 * gdbtypes.c (copy_type_recursive): Replace the use of
738 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
739 (fixed_point_scaling_factor): Likewise.
740 (allocate_fixed_point_type_info): Change return type to void.
741 Adjust implementation accordingly.
742 * dwarf2/read.c (finish_fixed_point_type): Replace the use of
743 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
745 2020-11-24 Joel Brobecker <brobecker@adacore.com>
747 * gmp-utils.h (gdb_mpz::read): Change buf and len parameters
748 into one single gdb::array_view parameter.
749 (gdb_mpz::write): Likewise.
750 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
751 * gmp-utils.c (gdb_mpz::read): Change buf and len parameters
752 into one single gdb::array_view parameter.
753 Adjust implementation accordingly.
754 (gdb_mpz::write): Likewise.
755 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
756 * unittests/gmp-utils-selftests.c: Adapt following changes above.
757 * valarith.c, valops.c, valprint.c, value.c: Likewise.
759 2020-11-24 Joel Brobecker <brobecker@adacore.com>
761 * gmp-utils.h (gmp_string_printf): Rename from gmp_string_asprintf.
762 Change return type to std::string. Update all callers.
763 * gmp-utils.c (gmp_string_printf): Likewise.
765 2020-11-24 Joel Brobecker <brobecker@adacore.com>
767 * unittests/gmp-utils-selftests.c (write_fp_test): Use mpq_set_si
768 instead of mpq_set_ui to initialize our GMP rational.
770 2020-11-23 Tom de Vries <tdevries@suse.de>
772 * debuginfod-support.c (debuginfod_source_query)
773 (debuginfod_debuginfo_query): Only set DESTNAME if successful.
775 2020-11-21 Tom Tromey <tom@tromey.com>
777 * breakpoint.c (watchpoint_exp_is_const): Return bool.
779 2020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
781 * unittests/gmp-utils-selftests.c (gdb_mpz_read_all_from_small):
783 (gdb_mpz_write_all_from_small): Likewise.
785 2020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
787 * dwarf2/read.c (finish_fixed_point_type): Use std::abs instead
790 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
792 * ctfread.c (elfctf_build_psymtabs): Use ctf_dict_open, not
793 ctf_arc_open_by_name.
795 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
797 * ctfread.c: Change uses of ctf_file_t to ctf_dict_t.
798 (ctf_fp_info::~ctf_fp_info): Call ctf_dict_close, not ctf_file_close.
800 2020-11-20 Pedro Alves <pedro@palves.net>
802 * language.c (language_arch_info::lookup_primitive_type): Use
803 gdb::function_view instead of gdb::function.
804 (template language_lookup_primitive_type): Rename to ...
805 (language_lookup_primitive_type_1): ... this, and make static.
806 (language_lookup_primitive_type(const struct language_defn *,
807 struct gdbarch *, const char *): Make non-template.
808 (language_lookup_primitive_type(const struct language_defn *,
809 struct gdbarch *, std::function<bool (struct type *)>): Make
810 non-template and use gdb::function_view.
811 * language.h (language_arch_info::lookup_primitive_type): Use
812 gdb::function_view instead of std::function.
813 (language_lookup_primitive_type): No longer template.
814 * opencl-lang.c (lookup_opencl_vector_type): 'filter' is now a
815 lambda instead of a std::function.
817 2020-11-19 Andreas Arnez <arnez@linux.ibm.com>
820 * s390-tdep.c (s390_process_record): Fix recording of STOC, STOCG,
823 2020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
825 * f-lang.c (fortran_value_subarray): Use plongest/pulongest.
827 2020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
829 * gdbarch.sh (read_core_file_mappings): Remove `other` parameter
830 in `loop_cb` parameter.
831 * gdbarch.c: Re-generate.
832 * gdbarch.h: Re-generate.
833 * arch-utils.c (default_read_core_file_mappings): Remove `other`
835 * arch-utils.h (default_read_core_file_mappings): Likewise.
836 * corelow.c (core_target::build_file_mappings): Likewise.
837 * linux-tdep.c (linux_read_core_file_mappings): Likewise.
838 (linux_core_info_proc_mappings): Likewise.
840 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
842 * Makefile.in (HFILES_NO_SRCDIR): Add f-array-walker.h.
843 * NEWS: Mention new options.
844 * f-array-walker.h: New file.
845 * f-lang.c: Include 'gdbcmd.h' and 'f-array-walker.h'.
846 (repack_array_slices): New static global.
847 (show_repack_array_slices): New function.
848 (fortran_array_slicing_debug): New static global.
849 (show_fortran_array_slicing_debug): New function.
850 (value_f90_subarray): Delete.
851 (skip_undetermined_arglist): Delete.
852 (class fortran_array_repacker_base_impl): New class.
853 (class fortran_lazy_array_repacker_impl): New class.
854 (class fortran_array_repacker_impl): New class.
855 (fortran_value_subarray): Complete rewrite.
856 (set_fortran_list): New static global.
857 (show_fortran_list): Likewise.
858 (_initialize_f_language): Register new commands.
859 (fortran_adjust_dynamic_array_base_address_hack): New function.
860 * f-lang.h (fortran_adjust_dynamic_array_base_address_hack):
862 * f-valprint.c: Include 'f-array-walker.h'.
863 (class fortran_array_printer_impl): New class.
864 (f77_print_array_1): Delete.
865 (f77_print_array): Delete.
866 (fortran_print_array): New.
867 (f_value_print_inner): Update to call fortran_print_array.
868 * gdbtypes.c: Include 'f-lang.h'.
869 (resolve_dynamic_type_internal): Call
870 fortran_adjust_dynamic_array_base_address_hack.
872 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
874 * breakpoint.c (struct watch_options): New struct.
875 (watch_option_defs): New static global.
876 (make_watch_options_def_group): New function.
877 (watch_maybe_just_location): Convert option parsing.
878 (watch_command_completer): New function.
879 (_initialize_breakpoint): Build help text using options mechanism.
881 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
883 * breakpoint.c (update_watchpoint): Pass 'false' not '0'.
884 (watch_command_1): Update parameter types. Convert locals to
886 (watch_command_wrapper): Change parameter type.
887 (watch_maybe_just_location): Change locals to bool.
888 (rwatch_command_wrapper): Update parameter type.
889 (awatch_command_wrapper): Update parameter type.
890 * breakpoint.h (watch_command_wrapper): Change parameter type.
891 (rwatch_command_wrapper): Update parameter type.
892 (awatch_command_wrapper): Update parameter type.
893 * eval.c (fetch_subexp_value): Change parameter type.
894 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition): Pass
896 * value.h (fetch_subexp_value): Change parameter type in
899 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
901 * printcmd.c (skip_over_slash_fmt): Make use of skip_to_space and
904 2020-11-18 Keith Seitz <keiths@redhat.com>
906 * linux-tdep.c (dump_note_entry_p): Return true instead of
909 2020-11-18 Tom de Vries <tdevries@suse.de>
911 * debuginfod-support.c (debuginfod_source_query)
912 (debuginfod_debuginfo_query): Also do early exit if
913 "(getenv (DEBUGINFOD_URLS_ENV_VAR))[0] == '\0'".
915 2020-11-18 Tom de Vries <tdevries@suse.de>
917 * gdbtypes.c (update_static_array_size): Fix -Werror=bool-compare
920 2020-11-17 Simon Marchi <simon.marchi@polymtl.ca>
922 * gdbtypes.h (get_array_bounds): Return bool, adjust some
923 callers. Move doc here.
924 * gdbtypes.c (get_array_bounds): Return bool
926 2020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
928 * arc-linux-tdep.c (arc_linux_sw_breakpoint_from_kind): Add an
930 * arc-tdep.c (arc_breakpoint_kind_from_pc): Likewise.
931 * disasm-selftests.c (print_one_insn_test): Fall throough from ARC
934 2020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
936 * printcmd.c: Include 'safe-ctype.c'.
937 (skip_over_slash_fmt): New function.
938 (print_command_completer): Call skip_over_slash_fmt.
939 (display_and_x_command_completer): New function.
940 (_initialize_printcmd): Add command completion for 'x' and
943 2020-11-16 Pedro Alves <pedro@palves.net>
945 * frame.c (get_prev_frame): Move get_frame_id call from here ...
946 (get_prev_frame_always_1): ... to here.
947 * inline-frame.c (inline_frame_this_id): Mention
948 get_prev_frame_always_1 in comment.
950 2020-11-15 Joel Brobecker <brobecker@adacore.com>
952 * valarith.c (fixed_point_binop): Add BINOP_EQUAL and BINOP_LESS
954 (value_less): Add fixed-point handling.
956 2020-11-15 Joel Brobecker <brobecker@adacore.com>
958 * eval.c (binop_promote): Add fixed-point type handling.
959 * valarith.c (fixed_point_binop): New function.
960 (scalar_binop): Add fixed-point type handling.
961 (value_neg): Add fixed-point type handling.
962 * valops.c (value_cast_to_fixed_point): New function.
963 (value_cast): Add fixed-point type handling.
965 2020-11-15 Joel Brobecker <brobecker@adacore.com>
967 * ada-typeprint.c (ada_print_type): Add handing of fixed-point
969 * c-typeprint.c (c_type_print_varspec_prefix)
970 (c_type_print_varspec_suffix, c_type_print_base_1): Add
971 TYPE_CODE_FIXED_POINT handling.
972 * p-typeprint.c (pascal_type_print_varspec_prefix)
973 (pascal_type_print_varspec_suffix): Likewise.
974 * typeprint.c (print_type_fixed_point): New function.
975 * typeprint.h (print_type_fixed_point): Add declaration.
977 2020-11-15 Joel Brobecker <brobecker@adacore.com>
979 * printcmd.c (print_scalar_formatted): Add fixed-point type
980 handling when options->format is set.
982 2020-11-15 Joel Brobecker <brobecker@adacore.com>
984 * ada-valprint.c (ada_value_print_1): Add fixed-point type handling.
985 * dwarf2/read.c (get_dwarf2_rational_constant)
986 (get_dwarf2_unsigned_rational_constant, finish_fixed_point_type)
987 (has_zero_over_zero_small_attribute): New functions.
988 read_base_type, set_die_type): Add fixed-point type handling.
989 * gdb-gdb.py.in: Add fixed-point type handling.
990 * gdbtypes.c: #include "gmp-utils.h".
991 (create_range_type, set_type_code): Add fixed-point type handling.
992 (init_fixed_point_type): New function.
993 (is_integral_type, is_scalar_type): Add fixed-point type handling.
994 (print_fixed_point_type_info): New function.
995 (recursive_dump_type, copy_type_recursive): Add fixed-point type
997 (fixed_point_type_storage): New typedef.
998 (fixed_point_objfile_key): New static global.
999 (allocate_fixed_point_type_info, is_fixed_point_type): New functions.
1000 (fixed_point_type_base_type, fixed_point_scaling_factor): New
1002 * gdbtypes.h: #include "gmp-utils.h".
1003 (enum type_code) <TYPE_SPECIFIC_FIXED_POINT>: New enum.
1004 (union type_specific) <fixed_point_info>: New field.
1005 (struct fixed_point_type_info): New struct.
1006 (INIT_FIXED_POINT_SPECIFIC, TYPE_FIXED_POINT_INFO): New macros.
1007 (init_fixed_point_type, is_fixed_point_type)
1008 (fixed_point_type_base_type, fixed_point_scaling_factor)
1009 (allocate_fixed_point_type_info): Add declarations.
1010 * valprint.c (generic_val_print_fixed_point): New function.
1011 (generic_value_print): Add fixed-point type handling.
1012 * value.c (value_as_address, unpack_long): Add fixed-point type
1015 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1017 * utils.h (uinteger_pow): Add declaration.
1018 * utils.c (uinteger_pow): Moved here (without changes)...
1019 * valarith.c (uinteger_pow): ... from here.
1021 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1023 * gmp-utils.h, gmp-utils.c: New file.
1024 * unittests/gmp-utils-selftests.c: New file.
1025 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1026 unittests/gmp-utils-selftests.c.
1027 (COMMON_SFILES) Add gmp-utils.c.
1028 (HFILES_NO_SRCDIR): Add gmp-utils.h.
1030 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1032 * configure.ac: Generate an error if a usable GMP library
1034 * configure: Regenerate.
1036 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1038 * configure.ac: Add support for --with-libgmp-prefix.
1039 * Makefile.in (LIBGMP): New variable.
1040 (CLIBS): Include $(LIBGMP).
1041 * configure, config.in: Regenerate
1043 2020-11-14 Andrew Burgess <andrew.burgess@embecosm.com>
1046 * f-exp.y (COMPLETE): New token.
1047 (exp): Two new rules for tab-completion.
1048 (saw_name_at_eof): New static global.
1049 (last_was_structop): Likewise.
1050 (yylex): Set new variables, and return COMPLETE token at the end
1051 of the input stream in some cases.
1053 2020-11-14 Tom Tromey <tom@tromey.com>
1055 * infrun.c (fetch_inferior_event): Use "bool" for should_stop.
1057 2020-11-14 Tom Tromey <tom@tromey.com>
1059 * opencl-lang.c (opencl_component_ref): Make "comps" const.
1061 2020-11-14 Simon Marchi <simon.marchi@polymtl.ca>
1063 * arm-tdep.c (class arm_instruction_reader) <read>: Fix comment.
1065 2020-11-13 Tom Tromey <tom@tromey.com>
1067 * c-lang.c (convert_ucn, convert_octal, convert_hex)
1068 (convert_escape, parse_one_string): Constify.
1070 2020-11-13 Keith Seitz <keiths@redhat.com>
1072 https://bugzilla.redhat.com/show_bug.cgi?id=1553086
1073 * elfread.c (elf_symfile_segments): Omit "Loadable section ...
1074 outside of ELF segments" warning for debugin
1076 2020-11-13 Keith Seitz <keiths@redhat.com>
1079 * elfread.c (elf_symfile_segments): Output a BFD file name
1080 for the "Loadable section ... outside of ELF segments" warning.
1082 2020-11-13 Simon Marchi <simon.marchi@polymtl.ca>
1085 * arm-tdep.c (class arm_instruction_reader): New.
1086 (target_arm_instruction_reader): New.
1087 (arm_analyze_prologue): Add instruction reader parameter and use
1088 it. Use arm_expand_immediate.
1089 (class target_arm_instruction_reader): Adjust.
1090 (arm_skip_prologue): Adjust.
1091 (arm_expand_immediate): New.
1092 (arm_scan_prologue): Adjust.
1093 (arm_analyze_prologue_test): New.
1094 (class test_arm_instruction_reader): New.
1096 2020-11-13 Andrew Burgess <andrew.burgess@embecosm.com>
1098 * f-lang.c (fortran_argument_convert): Add declaration. Add
1099 header comment, taken from f-lang.h. Make static.
1100 * f-lang.h (f77_get_dynamic_array_length): Delete declaration.
1101 (fortran_argument_convert): Delete declaration.
1103 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1105 * ada-exp.y (find_primitive_type): Make parameter const.
1106 * ada-lang.c (enum ada_primitive_types): Delete.
1107 (ada_language::language_arch_info): Update.
1108 * c-lang.c (enum c_primitive_types): Delete.
1109 (c_language_arch_info): Update.
1110 (enum cplus_primitive_types): Delete.
1111 (cplus_language::language_arch_info): Update.
1112 * d-lang.c (enum d_primitive_types): Delete.
1113 (d_language::language_arch_info): Update.
1114 * f-lang.c (enum f_primitive_types): Delete.
1115 (f_language::language_arch_info): Update.
1116 * go-lang.c (enum go_primitive_types): Delete.
1117 (go_language::language_arch_info): Update.
1118 * language.c (auto_or_unknown_language::language_arch_info):
1120 (language_gdbarch_post_init): Use obstack_new, use array indexing.
1121 (language_string_char_type): Add header comment, call function in
1123 (language_bool_type): Likewise
1124 (language_arch_info::bool_type): Define.
1125 (language_lookup_primitive_type_1): Delete.
1126 (language_lookup_primitive_type): Rewrite as a templated function
1127 to call function in language_arch_info, then instantiate twice.
1128 (language_arch_info::type_and_symbol::alloc_type_symbol): Define.
1129 (language_arch_info::lookup_primitive_type_and_symbol): Define.
1130 (language_arch_info::lookup_primitive_type): Define twice with
1131 different signatures.
1132 (language_arch_info::lookup_primitive_type_as_symbol): Define.
1133 (language_lookup_primitive_type_as_symbol): Rewrite to call a
1134 member function in language_arch_info.
1135 * language.h (language_arch_info): Complete rewrite.
1136 (language_lookup_primitive_type): Make templated.
1137 * m2-lang.c (enum m2_primitive_types): Delete.
1138 (m2_language::language_arch_info): Update.
1139 * opencl-lang.c (OCL_P_TYPE): Delete.
1140 (enum opencl_primitive_types): Delete.
1141 (opencl_type_data): Delete.
1142 (builtin_opencl_type): Delete.
1143 (lookup_opencl_vector_type): Update.
1144 (opencl_language::language_arch_info): Update, lots of content
1146 (build_opencl_types): ...here. This function is now deleted.
1147 (_initialize_opencl_language): Delete.
1148 * p-lang.c (enum pascal_primitive_types): Delete.
1149 (pascal_language::language_arch_info): Update.
1150 * rust-lang.c (enum rust_primitive_types): Delete.
1151 (rust_language::language_arch_info): Update.
1153 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1155 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix call to
1158 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1160 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix typo in
1163 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1165 * dwarf2/read.c (dwarf_read_debug_printf,
1166 dwarf_read_debug_printf_v): New macros, use throughout the file.
1168 2020-11-12 Shahab Vahedi <shahab@synopsys.com>
1171 * arc-linux-tdep.c (collect_register): Populate "eret" by
1172 "pc" value from the regcache when asked for "pc" value.
1174 2020-11-12 Tom Tromey <tom@tromey.com>
1177 * symtab.c (find_symbol_at_address): Search symtabs if no psymtabs
1180 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1182 * features/Makefile (XMLTOC): Add rx.xml.
1183 (FEATURE_XMLFILES): Remove rx.xml.
1184 (FEATURE_CFILES rule): Pass '-single-feature' flag.
1185 * features/rx.c: Regenerate.
1186 * features/rx.xml: Wrap in `target` tags, and reindent.
1187 * target-descriptions.c (struct maint_print_c_tdesc_options): New
1189 (maint_print_c_tdesc_opt_def): New typedef.
1190 (maint_print_c_tdesc_opt_defs): New static global.
1191 (make_maint_print_c_tdesc_options_def_group): New function.
1192 (maint_print_c_tdesc_cmd): Make use of command line flags, only
1193 print single feature C file for target descriptions containing a
1195 (maint_print_c_tdesc_cmd_completer): New function.
1196 (_initialize_target_descriptions): Update call to register command
1197 completer, and include command line flag in help text.
1199 2020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
1201 * riscv-tdep.c (riscv_dwarf_reg_to_regnum): Decode DWARF CSR
1203 * riscv-tdep.h (RISCV_DWARF_FIRST_CSR, RISCV_DWARF_LAST_CSR): New
1206 2020-11-10 Tom Tromey <tom@tromey.com>
1208 * value.h (internalvar_name): Update.
1209 * value.c (internalvar_name): Make return type const.
1211 2020-11-10 Tom Tromey <tom@tromey.com>
1213 * ax-gdb.c (gen_struct_elt_for_reference, gen_namespace_elt)
1214 (gen_maybe_namespace_elt, gen_aggregate_elt_ref, gen_expr): Use
1217 2020-11-10 Tom Tromey <tom@tromey.com>
1219 * objc-lang.h (value_nsstring): Update.
1220 * objc-lang.c (value_nsstring): Make "ptr" const.
1222 2020-11-06 Andrew Burgess <andrew.burgess@embecosm.com>
1224 * expprint.c (print_subexp_funcall): Increment expression position
1225 after reading argument count.
1226 * f-lang.c (print_subexp_f): Skip over opcode before calling
1228 (dump_subexp_body_f): Likewise.
1230 2020-11-06 Romain Geissler <romain.geissler@amadeus.com>
1233 * configure: Regenerate.
1234 * configure.ac: Check for python modules ctypes instead of
1237 2020-11-06 Pedro Alves <pedro@palves.net>
1239 * macroexp.c (struct macro_buffer): Split in two classes. Add
1241 (struct shared_macro_buffer): New, factored out from struct
1243 (struct growable_macro_buffer): New, factored out from struct
1245 (set_token, get_comment, get_identifier, get_pp_number)
1246 (get_character_constant, get_string_literal, get_punctuator)
1247 (get_next_token_for_substitution): Constify parameters.
1248 (substitute_args): Constify locals.
1250 2020-11-05 Tom Tromey <tom@tromey.com>
1252 * dwarf2/read.c (read_cutu_die_from_dwo)
1253 (cutu_reader::cutu_reader, cutu_reader::cutu_reader)
1254 (build_type_psymtabs_1): Update.
1255 * dwarf2/abbrev.h (struct abbrev_table): Remove objfile
1257 * dwarf2/abbrev.c (abbrev_table::read): Remove objfile parameter.
1258 Don't read section. Add assert.
1260 2020-11-04 Tom Tromey <tromey@adacore.com>
1262 * ada-typeprint.c (ada_print_type): Handle __XVL fields.
1264 2020-11-04 Tom Tromey <tromey@adacore.com>
1266 * ada-typeprint.c (ada_print_type): Handle __T types.
1268 2020-11-04 Tom Tromey <tromey@adacore.com>
1270 * dwarf2/read.c (add_partial_symbol, process_die):
1271 Handle DW_TAG_array_type.
1272 (is_type_tag_for_partial): Add "lang" parameter.
1273 (load_partial_dies, new_symbol): Handle DW_TAG_array_type.
1275 2020-11-04 Tom Tromey <tromey@adacore.com>
1277 * ada-lang.c (ada_value_slice_from_ptr): Use bit size.
1279 2020-11-04 Tom Tromey <tromey@adacore.com>
1281 * dwarf2/read.c (read_array_type): Only apply stride to innermost
1284 2020-11-04 Tom Tromey <tromey@adacore.com>
1286 * gdbtypes.c (update_static_array_size): Handle bit stride.
1288 2020-11-04 Tom Tromey <tromey@adacore.com>
1290 * ada-lang.c (ada_value_struct_elt): Resolve dynamic type.
1292 2020-11-04 Tom Tromey <tromey@adacore.com>
1294 * ada-lang.c (ada_is_any_packed_array_type): New function.
1295 (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it.
1297 2020-11-04 Tom Tromey <tromey@adacore.com>
1299 * dwarf2/read.c (recognize_bound_expression)
1300 (quirk_ada_thick_pointer): New functions.
1301 (read_array_type): Call quirk_ada_thick_pointer.
1302 (set_die_type): Add "skip_data_location" parameter.
1303 (quirk_ada_thick_pointer): New function.
1304 (process_structure_scope): Call quirk_ada_thick_pointer.
1305 * ada-lang.c (ada_is_unconstrained_packed_array_type)
1306 (decode_packed_array_bitsize): Handle thick pointers without
1308 (ada_is_gnat_encoded_packed_array_type): Rename from
1309 ada_is_packed_array_type.
1310 (ada_is_constrained_packed_array_type): Update.
1311 * ada-valprint.c (ada_val_print_gnat_array): Remove.
1312 (ada_value_print_1): Use ada_get_decoded_value.
1314 2020-11-04 Tom Tromey <tromey@adacore.com>
1316 * ada-lang.c (recursively_update_array_bitsize): New function.
1317 (decode_constrained_packed_array_type): Call it.
1319 2020-11-04 Tom Tromey <tromey@adacore.com>
1321 * ada-lang.c (to_fixed_array_type): Error if
1322 decode_constrained_packed_array_type returns NULL.
1324 2020-11-04 Tom Tromey <tromey@adacore.com>
1326 * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
1328 2020-11-02 Tom Tromey <tromey@adacore.com>
1330 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
1331 (ALLDEPFILES): Add amd64-ravenscar-thread.c.
1332 (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
1333 * amd64-ravenscar-thread.c: New file.
1334 * amd64-ravenscar-thread.h: New file.
1335 * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
1336 * configure.tgt (amd64_tobjs): Add ravenscar objects.
1338 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1340 * main.c (execute_cmdargs): New function.
1341 (captured_main_1): Make use of execute_cmdargs.
1343 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1345 * NEWS: Mention changes to config file search path.
1348 2020-11-02 Tom Tromey <tromey@adacore.com>
1350 * python/python.c: Consolidate two HAVE_PYTHON blocks.
1351 (python_GdbModuleDef): Move earlier. Now static.
1352 (do_start_initialization): Consolidate some IS_PY3K blocks.
1354 2020-11-02 Simon Marchi <simon.marchi@efficios.com>
1356 * aarch64-linux-tdep.c: Fix indentation.
1357 * aarch64-ravenscar-thread.c: Fix indentation.
1358 * aarch64-tdep.c: Fix indentation.
1359 * aarch64-tdep.h: Fix indentation.
1360 * ada-lang.c: Fix indentation.
1361 * ada-lang.h: Fix indentation.
1362 * ada-tasks.c: Fix indentation.
1363 * ada-typeprint.c: Fix indentation.
1364 * ada-valprint.c: Fix indentation.
1365 * ada-varobj.c: Fix indentation.
1366 * addrmap.c: Fix indentation.
1367 * addrmap.h: Fix indentation.
1368 * agent.c: Fix indentation.
1369 * aix-thread.c: Fix indentation.
1370 * alpha-bsd-nat.c: Fix indentation.
1371 * alpha-linux-tdep.c: Fix indentation.
1372 * alpha-mdebug-tdep.c: Fix indentation.
1373 * alpha-nbsd-tdep.c: Fix indentation.
1374 * alpha-obsd-tdep.c: Fix indentation.
1375 * alpha-tdep.c: Fix indentation.
1376 * amd64-bsd-nat.c: Fix indentation.
1377 * amd64-darwin-tdep.c: Fix indentation.
1378 * amd64-linux-nat.c: Fix indentation.
1379 * amd64-linux-tdep.c: Fix indentation.
1380 * amd64-nat.c: Fix indentation.
1381 * amd64-obsd-tdep.c: Fix indentation.
1382 * amd64-tdep.c: Fix indentation.
1383 * amd64-windows-tdep.c: Fix indentation.
1384 * annotate.c: Fix indentation.
1385 * arc-tdep.c: Fix indentation.
1386 * arch-utils.c: Fix indentation.
1387 * arch/arm-get-next-pcs.c: Fix indentation.
1388 * arch/arm.c: Fix indentation.
1389 * arm-linux-nat.c: Fix indentation.
1390 * arm-linux-tdep.c: Fix indentation.
1391 * arm-nbsd-tdep.c: Fix indentation.
1392 * arm-pikeos-tdep.c: Fix indentation.
1393 * arm-tdep.c: Fix indentation.
1394 * arm-tdep.h: Fix indentation.
1395 * arm-wince-tdep.c: Fix indentation.
1396 * auto-load.c: Fix indentation.
1397 * auxv.c: Fix indentation.
1398 * avr-tdep.c: Fix indentation.
1399 * ax-gdb.c: Fix indentation.
1400 * ax-general.c: Fix indentation.
1401 * bfin-linux-tdep.c: Fix indentation.
1402 * block.c: Fix indentation.
1403 * block.h: Fix indentation.
1404 * blockframe.c: Fix indentation.
1405 * bpf-tdep.c: Fix indentation.
1406 * break-catch-sig.c: Fix indentation.
1407 * break-catch-syscall.c: Fix indentation.
1408 * break-catch-throw.c: Fix indentation.
1409 * breakpoint.c: Fix indentation.
1410 * breakpoint.h: Fix indentation.
1411 * bsd-uthread.c: Fix indentation.
1412 * btrace.c: Fix indentation.
1413 * build-id.c: Fix indentation.
1414 * buildsym-legacy.h: Fix indentation.
1415 * buildsym.c: Fix indentation.
1416 * c-typeprint.c: Fix indentation.
1417 * c-valprint.c: Fix indentation.
1418 * c-varobj.c: Fix indentation.
1419 * charset.c: Fix indentation.
1420 * cli/cli-cmds.c: Fix indentation.
1421 * cli/cli-decode.c: Fix indentation.
1422 * cli/cli-decode.h: Fix indentation.
1423 * cli/cli-script.c: Fix indentation.
1424 * cli/cli-setshow.c: Fix indentation.
1425 * coff-pe-read.c: Fix indentation.
1426 * coffread.c: Fix indentation.
1427 * compile/compile-cplus-types.c: Fix indentation.
1428 * compile/compile-object-load.c: Fix indentation.
1429 * compile/compile-object-run.c: Fix indentation.
1430 * completer.c: Fix indentation.
1431 * corefile.c: Fix indentation.
1432 * corelow.c: Fix indentation.
1433 * cp-abi.h: Fix indentation.
1434 * cp-namespace.c: Fix indentation.
1435 * cp-support.c: Fix indentation.
1436 * cp-valprint.c: Fix indentation.
1437 * cris-linux-tdep.c: Fix indentation.
1438 * cris-tdep.c: Fix indentation.
1439 * darwin-nat-info.c: Fix indentation.
1440 * darwin-nat.c: Fix indentation.
1441 * darwin-nat.h: Fix indentation.
1442 * dbxread.c: Fix indentation.
1443 * dcache.c: Fix indentation.
1444 * disasm.c: Fix indentation.
1445 * dtrace-probe.c: Fix indentation.
1446 * dwarf2/abbrev.c: Fix indentation.
1447 * dwarf2/attribute.c: Fix indentation.
1448 * dwarf2/expr.c: Fix indentation.
1449 * dwarf2/frame.c: Fix indentation.
1450 * dwarf2/index-cache.c: Fix indentation.
1451 * dwarf2/index-write.c: Fix indentation.
1452 * dwarf2/line-header.c: Fix indentation.
1453 * dwarf2/loc.c: Fix indentation.
1454 * dwarf2/macro.c: Fix indentation.
1455 * dwarf2/read.c: Fix indentation.
1456 * dwarf2/read.h: Fix indentation.
1457 * elfread.c: Fix indentation.
1458 * eval.c: Fix indentation.
1459 * event-top.c: Fix indentation.
1460 * exec.c: Fix indentation.
1461 * exec.h: Fix indentation.
1462 * expprint.c: Fix indentation.
1463 * f-lang.c: Fix indentation.
1464 * f-typeprint.c: Fix indentation.
1465 * f-valprint.c: Fix indentation.
1466 * fbsd-nat.c: Fix indentation.
1467 * fbsd-tdep.c: Fix indentation.
1468 * findvar.c: Fix indentation.
1469 * fork-child.c: Fix indentation.
1470 * frame-unwind.c: Fix indentation.
1471 * frame-unwind.h: Fix indentation.
1472 * frame.c: Fix indentation.
1473 * frv-linux-tdep.c: Fix indentation.
1474 * frv-tdep.c: Fix indentation.
1475 * frv-tdep.h: Fix indentation.
1476 * ft32-tdep.c: Fix indentation.
1477 * gcore.c: Fix indentation.
1478 * gdb_bfd.c: Fix indentation.
1479 * gdbarch.sh: Fix indentation.
1480 * gdbarch.c: Re-generate
1481 * gdbarch.h: Re-generate.
1482 * gdbcore.h: Fix indentation.
1483 * gdbthread.h: Fix indentation.
1484 * gdbtypes.c: Fix indentation.
1485 * gdbtypes.h: Fix indentation.
1486 * glibc-tdep.c: Fix indentation.
1487 * gnu-nat.c: Fix indentation.
1488 * gnu-nat.h: Fix indentation.
1489 * gnu-v2-abi.c: Fix indentation.
1490 * gnu-v3-abi.c: Fix indentation.
1491 * go32-nat.c: Fix indentation.
1492 * guile/guile-internal.h: Fix indentation.
1493 * guile/scm-cmd.c: Fix indentation.
1494 * guile/scm-frame.c: Fix indentation.
1495 * guile/scm-iterator.c: Fix indentation.
1496 * guile/scm-math.c: Fix indentation.
1497 * guile/scm-ports.c: Fix indentation.
1498 * guile/scm-pretty-print.c: Fix indentation.
1499 * guile/scm-value.c: Fix indentation.
1500 * h8300-tdep.c: Fix indentation.
1501 * hppa-linux-nat.c: Fix indentation.
1502 * hppa-linux-tdep.c: Fix indentation.
1503 * hppa-nbsd-nat.c: Fix indentation.
1504 * hppa-nbsd-tdep.c: Fix indentation.
1505 * hppa-obsd-nat.c: Fix indentation.
1506 * hppa-tdep.c: Fix indentation.
1507 * hppa-tdep.h: Fix indentation.
1508 * i386-bsd-nat.c: Fix indentation.
1509 * i386-darwin-nat.c: Fix indentation.
1510 * i386-darwin-tdep.c: Fix indentation.
1511 * i386-dicos-tdep.c: Fix indentation.
1512 * i386-gnu-nat.c: Fix indentation.
1513 * i386-linux-nat.c: Fix indentation.
1514 * i386-linux-tdep.c: Fix indentation.
1515 * i386-nto-tdep.c: Fix indentation.
1516 * i386-obsd-tdep.c: Fix indentation.
1517 * i386-sol2-nat.c: Fix indentation.
1518 * i386-tdep.c: Fix indentation.
1519 * i386-tdep.h: Fix indentation.
1520 * i386-windows-tdep.c: Fix indentation.
1521 * i387-tdep.c: Fix indentation.
1522 * i387-tdep.h: Fix indentation.
1523 * ia64-libunwind-tdep.c: Fix indentation.
1524 * ia64-libunwind-tdep.h: Fix indentation.
1525 * ia64-linux-nat.c: Fix indentation.
1526 * ia64-linux-tdep.c: Fix indentation.
1527 * ia64-tdep.c: Fix indentation.
1528 * ia64-tdep.h: Fix indentation.
1529 * ia64-vms-tdep.c: Fix indentation.
1530 * infcall.c: Fix indentation.
1531 * infcmd.c: Fix indentation.
1532 * inferior.c: Fix indentation.
1533 * infrun.c: Fix indentation.
1534 * iq2000-tdep.c: Fix indentation.
1535 * language.c: Fix indentation.
1536 * linespec.c: Fix indentation.
1537 * linux-fork.c: Fix indentation.
1538 * linux-nat.c: Fix indentation.
1539 * linux-tdep.c: Fix indentation.
1540 * linux-thread-db.c: Fix indentation.
1541 * lm32-tdep.c: Fix indentation.
1542 * m2-lang.c: Fix indentation.
1543 * m2-typeprint.c: Fix indentation.
1544 * m2-valprint.c: Fix indentation.
1545 * m32c-tdep.c: Fix indentation.
1546 * m32r-linux-tdep.c: Fix indentation.
1547 * m32r-tdep.c: Fix indentation.
1548 * m68hc11-tdep.c: Fix indentation.
1549 * m68k-bsd-nat.c: Fix indentation.
1550 * m68k-linux-nat.c: Fix indentation.
1551 * m68k-linux-tdep.c: Fix indentation.
1552 * m68k-tdep.c: Fix indentation.
1553 * machoread.c: Fix indentation.
1554 * macrocmd.c: Fix indentation.
1555 * macroexp.c: Fix indentation.
1556 * macroscope.c: Fix indentation.
1557 * macrotab.c: Fix indentation.
1558 * macrotab.h: Fix indentation.
1559 * main.c: Fix indentation.
1560 * mdebugread.c: Fix indentation.
1561 * mep-tdep.c: Fix indentation.
1562 * mi/mi-cmd-catch.c: Fix indentation.
1563 * mi/mi-cmd-disas.c: Fix indentation.
1564 * mi/mi-cmd-env.c: Fix indentation.
1565 * mi/mi-cmd-stack.c: Fix indentation.
1566 * mi/mi-cmd-var.c: Fix indentation.
1567 * mi/mi-cmds.c: Fix indentation.
1568 * mi/mi-main.c: Fix indentation.
1569 * mi/mi-parse.c: Fix indentation.
1570 * microblaze-tdep.c: Fix indentation.
1571 * minidebug.c: Fix indentation.
1572 * minsyms.c: Fix indentation.
1573 * mips-linux-nat.c: Fix indentation.
1574 * mips-linux-tdep.c: Fix indentation.
1575 * mips-nbsd-tdep.c: Fix indentation.
1576 * mips-tdep.c: Fix indentation.
1577 * mn10300-linux-tdep.c: Fix indentation.
1578 * mn10300-tdep.c: Fix indentation.
1579 * moxie-tdep.c: Fix indentation.
1580 * msp430-tdep.c: Fix indentation.
1581 * namespace.h: Fix indentation.
1582 * nat/fork-inferior.c: Fix indentation.
1583 * nat/gdb_ptrace.h: Fix indentation.
1584 * nat/linux-namespaces.c: Fix indentation.
1585 * nat/linux-osdata.c: Fix indentation.
1586 * nat/netbsd-nat.c: Fix indentation.
1587 * nat/x86-dregs.c: Fix indentation.
1588 * nbsd-nat.c: Fix indentation.
1589 * nbsd-tdep.c: Fix indentation.
1590 * nios2-linux-tdep.c: Fix indentation.
1591 * nios2-tdep.c: Fix indentation.
1592 * nto-procfs.c: Fix indentation.
1593 * nto-tdep.c: Fix indentation.
1594 * objfiles.c: Fix indentation.
1595 * objfiles.h: Fix indentation.
1596 * opencl-lang.c: Fix indentation.
1597 * or1k-tdep.c: Fix indentation.
1598 * osabi.c: Fix indentation.
1599 * osabi.h: Fix indentation.
1600 * osdata.c: Fix indentation.
1601 * p-lang.c: Fix indentation.
1602 * p-typeprint.c: Fix indentation.
1603 * p-valprint.c: Fix indentation.
1604 * parse.c: Fix indentation.
1605 * ppc-linux-nat.c: Fix indentation.
1606 * ppc-linux-tdep.c: Fix indentation.
1607 * ppc-nbsd-nat.c: Fix indentation.
1608 * ppc-nbsd-tdep.c: Fix indentation.
1609 * ppc-obsd-nat.c: Fix indentation.
1610 * ppc-ravenscar-thread.c: Fix indentation.
1611 * ppc-sysv-tdep.c: Fix indentation.
1612 * ppc64-tdep.c: Fix indentation.
1613 * printcmd.c: Fix indentation.
1614 * proc-api.c: Fix indentation.
1615 * producer.c: Fix indentation.
1616 * producer.h: Fix indentation.
1617 * prologue-value.c: Fix indentation.
1618 * prologue-value.h: Fix indentation.
1619 * psymtab.c: Fix indentation.
1620 * python/py-arch.c: Fix indentation.
1621 * python/py-bpevent.c: Fix indentation.
1622 * python/py-event.c: Fix indentation.
1623 * python/py-event.h: Fix indentation.
1624 * python/py-finishbreakpoint.c: Fix indentation.
1625 * python/py-frame.c: Fix indentation.
1626 * python/py-framefilter.c: Fix indentation.
1627 * python/py-inferior.c: Fix indentation.
1628 * python/py-infthread.c: Fix indentation.
1629 * python/py-objfile.c: Fix indentation.
1630 * python/py-prettyprint.c: Fix indentation.
1631 * python/py-registers.c: Fix indentation.
1632 * python/py-signalevent.c: Fix indentation.
1633 * python/py-stopevent.c: Fix indentation.
1634 * python/py-stopevent.h: Fix indentation.
1635 * python/py-threadevent.c: Fix indentation.
1636 * python/py-tui.c: Fix indentation.
1637 * python/py-unwind.c: Fix indentation.
1638 * python/py-value.c: Fix indentation.
1639 * python/py-xmethods.c: Fix indentation.
1640 * python/python-internal.h: Fix indentation.
1641 * python/python.c: Fix indentation.
1642 * ravenscar-thread.c: Fix indentation.
1643 * record-btrace.c: Fix indentation.
1644 * record-full.c: Fix indentation.
1645 * record.c: Fix indentation.
1646 * reggroups.c: Fix indentation.
1647 * regset.h: Fix indentation.
1648 * remote-fileio.c: Fix indentation.
1649 * remote.c: Fix indentation.
1650 * reverse.c: Fix indentation.
1651 * riscv-linux-tdep.c: Fix indentation.
1652 * riscv-ravenscar-thread.c: Fix indentation.
1653 * riscv-tdep.c: Fix indentation.
1654 * rl78-tdep.c: Fix indentation.
1655 * rs6000-aix-tdep.c: Fix indentation.
1656 * rs6000-lynx178-tdep.c: Fix indentation.
1657 * rs6000-nat.c: Fix indentation.
1658 * rs6000-tdep.c: Fix indentation.
1659 * rust-lang.c: Fix indentation.
1660 * rx-tdep.c: Fix indentation.
1661 * s12z-tdep.c: Fix indentation.
1662 * s390-linux-tdep.c: Fix indentation.
1663 * score-tdep.c: Fix indentation.
1664 * ser-base.c: Fix indentation.
1665 * ser-mingw.c: Fix indentation.
1666 * ser-uds.c: Fix indentation.
1667 * ser-unix.c: Fix indentation.
1668 * serial.c: Fix indentation.
1669 * sh-linux-tdep.c: Fix indentation.
1670 * sh-nbsd-tdep.c: Fix indentation.
1671 * sh-tdep.c: Fix indentation.
1672 * skip.c: Fix indentation.
1673 * sol-thread.c: Fix indentation.
1674 * solib-aix.c: Fix indentation.
1675 * solib-darwin.c: Fix indentation.
1676 * solib-frv.c: Fix indentation.
1677 * solib-svr4.c: Fix indentation.
1678 * solib.c: Fix indentation.
1679 * source.c: Fix indentation.
1680 * sparc-linux-tdep.c: Fix indentation.
1681 * sparc-nbsd-tdep.c: Fix indentation.
1682 * sparc-obsd-tdep.c: Fix indentation.
1683 * sparc-ravenscar-thread.c: Fix indentation.
1684 * sparc-tdep.c: Fix indentation.
1685 * sparc64-linux-tdep.c: Fix indentation.
1686 * sparc64-nbsd-tdep.c: Fix indentation.
1687 * sparc64-obsd-tdep.c: Fix indentation.
1688 * sparc64-tdep.c: Fix indentation.
1689 * stabsread.c: Fix indentation.
1690 * stack.c: Fix indentation.
1691 * stap-probe.c: Fix indentation.
1692 * stubs/ia64vms-stub.c: Fix indentation.
1693 * stubs/m32r-stub.c: Fix indentation.
1694 * stubs/m68k-stub.c: Fix indentation.
1695 * stubs/sh-stub.c: Fix indentation.
1696 * stubs/sparc-stub.c: Fix indentation.
1697 * symfile-mem.c: Fix indentation.
1698 * symfile.c: Fix indentation.
1699 * symfile.h: Fix indentation.
1700 * symmisc.c: Fix indentation.
1701 * symtab.c: Fix indentation.
1702 * symtab.h: Fix indentation.
1703 * target-float.c: Fix indentation.
1704 * target.c: Fix indentation.
1705 * target.h: Fix indentation.
1706 * tic6x-tdep.c: Fix indentation.
1707 * tilegx-linux-tdep.c: Fix indentation.
1708 * tilegx-tdep.c: Fix indentation.
1709 * top.c: Fix indentation.
1710 * tracefile-tfile.c: Fix indentation.
1711 * tracepoint.c: Fix indentation.
1712 * tui/tui-disasm.c: Fix indentation.
1713 * tui/tui-io.c: Fix indentation.
1714 * tui/tui-regs.c: Fix indentation.
1715 * tui/tui-stack.c: Fix indentation.
1716 * tui/tui-win.c: Fix indentation.
1717 * tui/tui-winsource.c: Fix indentation.
1718 * tui/tui.c: Fix indentation.
1719 * typeprint.c: Fix indentation.
1720 * ui-out.h: Fix indentation.
1721 * unittests/copy_bitwise-selftests.c: Fix indentation.
1722 * unittests/memory-map-selftests.c: Fix indentation.
1723 * utils.c: Fix indentation.
1724 * v850-tdep.c: Fix indentation.
1725 * valarith.c: Fix indentation.
1726 * valops.c: Fix indentation.
1727 * valprint.c: Fix indentation.
1728 * valprint.h: Fix indentation.
1729 * value.c: Fix indentation.
1730 * value.h: Fix indentation.
1731 * varobj.c: Fix indentation.
1732 * vax-tdep.c: Fix indentation.
1733 * windows-nat.c: Fix indentation.
1734 * windows-tdep.c: Fix indentation.
1735 * xcoffread.c: Fix indentation.
1736 * xml-syscall.c: Fix indentation.
1737 * xml-tdesc.c: Fix indentation.
1738 * xstormy16-tdep.c: Fix indentation.
1739 * xtensa-config.c: Fix indentation.
1740 * xtensa-linux-nat.c: Fix indentation.
1741 * xtensa-linux-tdep.c: Fix indentation.
1742 * xtensa-tdep.c: Fix indentation.
1744 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1745 Craig Blackmore <craig.blackmore@embecosm.com>
1747 * riscv-tdep.c (riscv_frame_cache): Read the frame base register
1748 as an unsigned value.
1750 2020-11-01 Tom Tromey <tom@tromey.com>
1752 * dbxread.c (dbx_end_psymtab): Update.
1753 * dwarf2/read.c (process_psymtab_comp_unit_reader)
1754 (build_type_psymtabs_reader): Update.
1755 * xcoffread.c (xcoff_end_psymtab): Update.
1756 * ctfread.c (scan_partial_symbols): Update.
1757 * psymtab.c (sort_pst_symbols): Remove.
1758 (partial_symtab::end): Rename from end_psymtab_common. Inline
1760 * psympriv.h (struct partial_symtab) <end>: New method.
1761 (end_psymtab_common): Don't declare.
1763 2020-11-01 Tom Tromey <tom@tromey.com>
1765 * symmisc.c (count_psyms): New function.
1766 (print_objfile_statistics): Use it.
1767 * psymtab.c (append_psymbol_to_list): Remove.
1768 (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
1769 * objfiles.h (struct objstats) <n_psyms>: Remove.
1771 2020-11-01 Tom Tromey <tom@tromey.com>
1773 * dbxread.c (dbx_end_psymtab): Update.
1774 * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
1775 (build_type_psymtabs_reader): Update.
1776 * xcoffread.c (xcoff_end_psymtab): Update.
1777 * ctfread.c (scan_partial_symbols): Update.
1778 * psympriv.h (end_psymtab_common): Update.
1779 * psymtab.c (end_psymtab_common): Remove objfile parameter.
1780 (sort_pst_symbols): Likewise.
1782 2020-11-01 Tom Tromey <tom@tromey.com>
1784 * dbxread.c (dbx_symfile_read): Update.
1785 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
1786 * xcoffread.c (xcoff_initial_scan): Update.
1787 * psympriv.h (init_psymbol_list): Don't declare.
1788 * psymtab.c (init_psymbol_list): Remove.
1790 2020-11-01 Joel Brobecker <brobecker@adacore.com>
1792 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
1793 gnat_encoded_fixed_type_info. Update all callers.
1795 2020-11-01 Joel Brobecker <brobecker@adacore.com>
1797 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
1800 2020-11-01 Joel Brobecker <brobecker@adacore.com>
1802 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
1803 cast_from_fixed. Update all callers.
1804 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
1806 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
1808 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
1810 * ada-typeprint.c: Replace call to ada_scaling_factor by call
1811 to print_gnat_encoded_fixed_point_type.
1812 * ada-valprint.c: Likewise.
1814 2020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1816 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
1817 (debug_prefixed_printf): Add check of debug_displaced flag.
1818 * linux-nat.c (linux_nat_debug_printf): Add check of
1819 debug_linux_nat flag.
1821 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1823 * infrun.c (infrun_debug_printf_1): Remove.
1824 (displaced_debug_printf_1): Remove.
1825 (stop_all_threads): Use debug_prefixed_printf.
1826 * infrun.h (infrun_debug_printf_1): Remove.
1827 (infrun_debug_printf): Use debug_prefixed_printf.
1828 (displaced_debug_printf_1): Remove.
1829 (displaced_debug_printf): Use debug_prefixed_printf.
1830 * linux-nat.c (linux_nat_debug_printf_1): Remove.
1831 (linux_nat_debug_printf): Use debug_prefixed_printf.
1833 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1835 * configure: Re-generate.
1836 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
1839 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1841 * configure: Re-generate.
1843 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1845 * configure: Re-generate.
1847 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1849 * configure: Re-generate.
1851 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1853 * configure: Re-generate.
1855 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1857 * acinclude.m4: Modernize.
1858 * configure: Re-generate.
1860 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1862 * configure.ac: Modernize.
1863 * configure: Re-generate.
1865 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1867 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
1868 * configure: Re-generate.
1869 * configure.ac: Remove AM_PROG_CC_STDC.
1871 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1873 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
1874 AC_CANONICAL_SYSTEM.
1875 * configure: Re-generate.
1877 2020-10-30 Simon Marchi <simon.marchi@efficios.com>
1879 * infrun.h (displaced_debug_printf): New macro. Replace
1880 displaced debug prints throughout to use it.
1881 (displaced_debug_printf_1): New declaration.
1882 (displaced_step_dump_bytes): Return string, remove ui_file
1883 parameter, update all callers.
1884 * infrun.c (displaced_debug_printf_1): New function.
1885 (displaced_step_dump_bytes): Return string, remove ui_file
1888 2020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
1890 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
1892 2020-10-30 Tom Tromey <tromey@adacore.com>
1894 * Makefile.in (stamp-init): Depend on config.status.
1896 2020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1898 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
1900 2020-10-30 Pedro Alves <pedro@palves.net>
1902 * thread.c (lookup_selected_frame): Move ...
1903 * frame.c (lookup_selected_frame): ... here.
1905 2020-10-30 Pedro Alves <pedro@palves.net>
1907 * blockframe.c (block_innermost_frame): Use get_selected_frame.
1909 (scoped_restore_selected_frame::scoped_restore_selected_frame):
1910 Use save_selected_frame. Save language as well.
1911 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
1912 Use restore_selected_frame, and restore language as well.
1913 (selected_frame_id, selected_frame_level): New.
1914 (selected_frame): Update comments.
1915 (save_selected_frame, restore_selected_frame): New.
1916 (get_selected_frame): Use lookup_selected_frame.
1917 (get_selected_frame_if_set): Delete.
1918 (select_frame): Record selected_frame_level and selected_frame_id.
1919 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
1921 (get_selected_frame): Make 'message' parameter optional.
1922 (get_selected_frame_if_set): Delete declaration.
1923 (select_frame): Update comments.
1924 (save_selected_frame, restore_selected_frame)
1925 (lookup_selected_frame): Declare.
1926 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
1927 * infrun.c (struct infcall_control_state) <selected_frame_level>:
1929 (save_infcall_control_state): Use save_selected_frame.
1930 (restore_selected_frame): Delete.
1931 (restore_infcall_control_state): Use restore_selected_frame.
1932 * stack.c (select_frame_command_core, frame_command_core): Use
1934 * thread.c (restore_selected_frame): Rename to ...
1935 (lookup_selected_frame): ... this and make extern. Select the
1936 current frame if the frame level is -1.
1937 (scoped_restore_current_thread::restore): Also restore the
1939 (scoped_restore_current_thread::~scoped_restore_current_thread):
1941 (scoped_restore_current_thread::scoped_restore_current_thread):
1942 Save the language as well. Use save_selected_frame.
1944 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1946 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
1948 * gdbarch.h: Re-generate.
1950 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1952 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
1954 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
1956 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
1958 * arch-utils.c (default_displaced_step_hw_singlestep):
1960 * arch-utils.h (default_displaced_step_hw_singlestep):
1962 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
1964 * s390-tdep.c (s390_displaced_step_hw_singlestep):
1966 * gdbarch.c: Re-generate.
1967 * gdbarch.h: Re-generate.
1968 * infrun.c (resume_1): Adjust.
1970 2020-10-29 Tom Tromey <tom@tromey.com>
1972 * progspace.c (program_space::~program_space): Don't call
1975 2020-10-29 Tom Tromey <tom@tromey.com>
1977 * exec.c (exec_target::close): Don't change current program
1980 2020-10-29 Tom Tromey <tom@tromey.com>
1982 * symfile.c (add_symbol_file_command): Update.
1983 * exec.c (program_space::add_target_sections): Rename.
1984 * symfile-mem.c (symbol_file_add_from_memory): Update.
1985 * progspace.h (struct program_space) <add_target_sections>:
1986 Declare new overload.
1987 * exec.h (add_target_sections_of_objfile): Don't declare.
1989 2020-10-29 Tom Tromey <tom@tromey.com>
1991 * solib.c (solib_map_sections): Update.
1992 * exec.c (program_space::add_target_sections): Now a method.
1993 (exec_file_attach): Update.
1994 * exec.h (add_target_sections): Don't declare.
1995 * progspace.h (struct program_space) <add_target_sections>:
1998 2020-10-29 Tom Tromey <tom@tromey.com>
2000 * progspace.h (struct program_space) <remove_target_sections>:
2002 * exec.c (program_space::remove_target_sections): Now a method.
2003 * exec.h (remove_target_sections): Don't declare.
2005 2020-10-29 Tom Tromey <tom@tromey.com>
2007 * inferior.c (delete_inferior): Update.
2008 * progspace.c (program_space::empty): Rename from
2009 program_space_empty_p. Return bool.
2010 * progspace.h (struct program_space) <empty>: New method.
2011 (program_space_empty_p): Don't declare.
2013 2020-10-29 Tom Tromey <tom@tromey.com>
2015 * progspace.c (program_space::~program_space): Don't call
2016 clear_program_space_solib_cache.
2017 (program_space::clear_solib_cache): Rename from
2019 * solib.c (handle_solib_event): Update.
2020 * progspace.h (struct program_space) <clear_solib_cache>: New
2022 (clear_program_space_solib_cache): Don't declare.
2024 2020-10-29 Tom Tromey <tom@tromey.com>
2026 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2027 * target.c (info_target_command): Update.
2028 * symfile.c (syms_from_objfile_1, finish_new_objfile)
2029 (symbol_file_clear, reread_symbols): Update.
2030 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
2031 * stabsread.c (scan_file_globals): Update.
2032 * solib.c (update_solib_list): Update.
2033 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
2034 (svr4_fetch_objfile_link_map, enable_break)
2035 (svr4_relocate_main_executable)
2036 (svr4_iterate_over_objfiles_in_search_order): Update.
2037 * solib-frv.c (lm_base, enable_break)
2038 (frv_relocate_main_executable): Update.
2039 (main_got, frv_fdpic_find_canonical_descriptor): Update.
2040 (frv_fetch_objfile_link_map): Update.
2041 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
2042 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
2043 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
2044 * remote.c (remote_target::get_offsets): Update.
2045 (remote_target::start_remote)
2046 (extended_remote_target::post_attach): Update.
2047 * objfiles.c (entry_point_address_query): Update.
2048 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
2049 * minsyms.c (get_symbol_leading_char): Update.
2050 * frame.c (inside_main_func): Update.
2051 * progspace.h (symfile_objfile): Remove macro.
2053 2020-10-29 Tom Tromey <tom@tromey.com>
2055 * exec.c (exec_file_attach): Update.
2056 * progspace.c (program_space::exec_close): Update.
2057 * progspace.h (struct program_space) <ebfd>: Now a
2059 <set_exec_bfd>: Change argument type.
2062 2020-10-29 Tom Tromey <tom@tromey.com>
2064 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2065 * symfile.c (reread_symbols): Update.
2066 * symfile-mem.c (add_symbol_file_from_memory_command)
2067 (add_vsyscall_page): Update.
2068 * source-cache.c (source_cache::get_plain_source_lines): Update.
2069 * solib-svr4.c (find_program_interpreter, elf_locate_base)
2070 (svr4_current_sos_direct, svr4_exec_displacement)
2071 (svr4_relocate_main_executable): Update.
2072 (svr4_iterate_over_objfiles_in_search_order): Update.
2073 * solib-frv.c (enable_break2, enable_break): Update.
2074 * solib-dsbt.c (lm_base, enable_break): Update.
2075 * solib-darwin.c (find_program_interpreter)
2076 (darwin_solib_create_inferior_hook): Update.
2077 * sol-thread.c (rw_common, ps_pdmodel): Update.
2078 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
2079 * remote.c (compare_sections_command)
2080 (remote_target::trace_set_readonly_regions): Update.
2081 * remote-sim.c (get_sim_inferior_data)
2082 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
2083 (gdbsim_target_open, gdbsim_target::files_info): Update.
2084 * exec.h (exec_bfd): Remove macro.
2085 * progspace.c (initialize_progspace): Update.
2086 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
2088 * nto-procfs.c (nto_procfs_target::post_attach)
2089 (nto_procfs_target::create_inferior): Update.
2090 * maint.c (maintenance_info_sections): Update.
2091 * linux-thread-db.c (thread_db_target::get_thread_local_address):
2093 * infcmd.c (post_create_inferior): Update.
2094 * gcore.c (default_gcore_arch, default_gcore_target): Update.
2095 (objfile_find_memory_regions): Update.
2096 * exec.c (validate_exec_file, exec_file_attach)
2097 (exec_read_partial_read_only, print_section_info): Update.
2098 * corelow.c (core_target_open): Update.
2099 * corefile.c (reopen_exec_file, validate_files): Update.
2100 * arm-tdep.c (gdb_print_insn_arm): Update.
2101 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
2102 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
2105 2020-10-29 Tom Tromey <tom@tromey.com>
2107 * progspace.h (current_target_sections): Remove macro.
2108 * solib-svr4.c (scan_dyntag): Update.
2109 * solib-dsbt.c (scan_dyntag): Update.
2110 * exec.c (exec_target::close): Update.
2111 (add_target_sections, add_target_sections_of_objfile)
2112 (remove_target_sections, exec_target::get_section_table)
2113 (exec_target::files_info, set_section_command)
2114 (exec_set_section_address, exec_target::has_memory)
2115 (exec_target::has_memory): Update.
2117 2020-10-29 Tom Tromey <tom@tromey.com>
2119 * source-cache.c (source_cache::get_plain_source_lines): Use
2120 current_program_space.
2121 * corefile.c (reopen_exec_file): Use current_program_space.
2122 * exec.c (exec_file_attach): Use current_program_space.
2123 * exec.h (exec_bfd_mtime): Remove.
2125 2020-10-29 Tom Tromey <tom@tromey.com>
2127 * gcore.c (default_gcore_mach): Remove.
2128 (create_gcore_bfd): Update.
2130 2020-10-29 Tom Tromey <tom@tromey.com>
2132 * progspace.c (program_space::exec_close): New method, from
2133 exec_close in exec.c.
2134 * exec.c (exec_close): Move to progspace.c.
2135 (exec_target::close, exec_file_attach): Update.
2136 * progspace.h (struct program_space) <exec_close>: Declare
2139 2020-10-29 Tom Tromey <tom@tromey.com>
2141 * progspace.h (struct program_space) <exec_filename>: Rename from
2142 pspace_exec_filename. Now a unique_xmalloc_ptr.
2143 * inferior.c (print_selected_inferior): Update.
2144 (print_inferior): Update.
2145 * mi/mi-main.c (print_one_inferior): Update.
2146 * exec.h (exec_filename): Remove macro.
2147 * corefile.c (get_exec_file): Update.
2148 * exec.c (exec_close): Update.
2149 (exec_file_attach): Update.
2150 * progspace.c (clone_program_space): Update.
2151 (print_program_space): Update.
2153 2020-10-29 Tom Tromey <tom@tromey.com>
2155 * target-section.h (struct target_section): Add constructor.
2156 * exec.c (build_section_table, add_target_sections_of_objfile):
2158 * corelow.c (core_target::build_file_mappings): Update.
2160 2020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2163 * inferior.c (detach_inferior_command): Restore the current thread.
2164 (kill_inferior_command): Ditto.
2166 2020-10-28 Tom de Vries <tdevries@suse.de>
2169 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
2170 map, check it in the "best match" loop.
2172 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
2174 * m32c-tdep.c: Remove unused includes.
2176 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
2178 * xtensa-tdep.c: Remove includes.
2180 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2182 * breakpoint.c (struct condition_command_opts): New struct.
2183 (condition_command_option_defs): New static global.
2184 (make_condition_command_options_def_group): New function.
2185 (condition_completer): Update to consider the '-force' flag.
2186 (condition_command): Use gdb::option for the '-force' flag.
2188 2020-10-27 Tom de Vries <tdevries@suse.de>
2190 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
2191 symbols in section check.
2193 2020-10-27 Tom de Vries <tdevries@suse.de>
2195 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
2197 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2199 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
2200 * breakpoint.c: Update the help text of the 'condition' and 'break'
2202 (set_breakpoint_condition): Take a new bool parameter
2203 to control whether condition definition should be forced even when
2204 the condition expression is invalid in all of the current locations.
2205 (condition_command): Update the call to 'set_breakpoint_condition'.
2206 (find_condition_and_thread): Take the "-force-condition" flag into
2208 * linespec.c (linespec_keywords): Add "-force-condition" as an
2210 (FORCE_KEYWORD_INDEX): New #define.
2211 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
2213 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
2214 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
2215 * python/py-breakpoint.c (bppy_set_condition): Ditto.
2216 * NEWS: Mention the changes to the 'break' and 'condition' commands.
2218 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2220 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
2221 * breakpoint.c (set_breakpoint_location_condition): New function.
2222 (set_breakpoint_condition): Disable a breakpoint location if parsing
2223 the condition string gives an error.
2224 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
2225 (build_target_condition_list): Ditto.
2226 (build_target_command_list): Ditto.
2227 (build_bpstat_chain): Ditto.
2228 (print_one_breakpoint_location): Ditto.
2229 (print_one_breakpoint): Ditto.
2230 (breakpoint_1): Ditto.
2231 (bp_location::bp_location): Ditto.
2232 (locations_are_equal): Ditto.
2233 (update_breakpoint_locations): Ditto.
2234 (enable_disable_bp_num_loc): Ditto.
2235 (init_breakpoint_sal): Use set_breakpoint_location_condition.
2236 (find_condition_and_thread_for_sals): New static function.
2237 (create_breakpoint): Call find_condition_and_thread_for_sals.
2238 (location_to_sals): Call find_condition_and_thread_for_sals instead
2239 of find_condition_and_thread.
2241 2020-10-26 Tom de Vries <tdevries@suse.de>
2243 * dwarf2/read.c (process_full_comp_unit): Call
2244 dwarf2_find_base_address.
2246 2020-10-26 Tom Tromey <tromey@adacore.com>
2248 * gdbtypes.c (create_range_type): Revert previous patch. Add
2251 2020-10-26 Pedro Alves <pedro@palves.net>
2253 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
2254 (my_waitpid): Use gdb::handle_eintr.
2256 2020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
2258 * acinclude.m4: Update ptrace.m4 path.
2259 * ptrace.m4: Moved to gdbsupport.
2261 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
2263 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
2264 instead of target_gdbarch.
2266 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
2268 * jit.c (jit_reader_load_command): Pass current inferior.
2269 (jit_inferior_init): Change parameter type to inferior, use it.
2270 (jit_inferior_created): Remove.
2271 (jit_inferior_created_hook): Pass inferior parameter down.
2272 (_initialize_jit): Use jit_inferior_created_hook instead of
2273 jit_inferior_created.
2274 * jit.h (jit_inferior_created_hook): Add inferior parameter.
2275 * infrun.c (follow_exec): Pass inferior to
2276 jit_inferior_created_hook.
2278 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
2280 * linux-thread-db.c (check_pid_namespace_match): Add inferior
2281 parameter and use it.
2282 (thread_db_inferior_created): Pass inferior argument.
2284 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
2286 * aix-thread.c (aix_thread_inferior_created): Add inferior
2288 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
2289 * dummy-frame.c (cleanup_dummy_frames): Likewise.
2290 * jit.c (jit_inferior_created): Likewise.
2291 * linux-thread-db.c (thread_db_inferior_created): Likewise.
2292 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
2293 * observable.h (inferior_created): Likewise.
2294 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
2295 * symfile-mem.c (add_vsyscall_page): Likewise.
2296 * infcmd.c (post_create_inferior): Pass inferior argument.
2298 2020-10-24 Joel Brobecker <brobecker@adacore.com>
2302 2020-10-23 Joel Brobecker <brobecker@adacore.com>
2304 * ada-typeprint.c (ada_print_type): Remove superfluous second call
2305 to ada_check_typedef.
2307 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2309 * f-exp.y (f_parse): Rename to...
2310 (f_language::parser): ...this.
2311 * f-lang.c (f_get_encoding): Rename to...
2312 (f_language::get_encoding): ...this.
2313 (f_op_print_tab): Rename to...
2314 (f_language::op_print_tab): ...this.
2315 (exp_descriptor_f): Rename to...
2316 (f_language::exp_descriptor_tab): ...this.
2317 (class f_language): Moved to f-lang.h.
2318 (f_language::language_arch_info): New function, moved out of class
2320 (f_language::search_name_hash): Likewise.
2321 (f_language::lookup_symbol_nonlocal): Likewise.
2322 (f_language::get_symbol_name_matcher_inner): Likewise.
2323 * f-lang.h: Add 'valprint.h' include.
2324 (class f_language): Moved here from f-lang.c.
2325 * f-typeprint.c (f_type_print_args): Delete commented out
2327 (f_print_typedef): Rename to...
2328 (f_language::print_typedef): ...this.
2329 (f_print_type): Rename to...
2330 (f_language::print_type): ...this.
2331 (f_type_print_varspec_prefix): Delete declaration and rename to...
2332 (f_language::f_type_print_varspec_prefix): ...this.
2333 (f_type_print_varspec_suffix): Delete declaration and rename to...
2334 (f_language::f_type_print_varspec_suffix): ...this.
2335 (f_type_print_base): Delete declaration and rename to...
2336 (f_language::f_type_print_base): ...this.
2337 * f-valprint.c (f_value_print_inner): Rename to...
2338 (f_language::value_print_inner): ...this.
2339 * parse.c: Delete 'f-lang.h' include.
2341 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2343 * language.h (language_defn::print_type): Add variable names in
2344 declaration, and update header comment.
2346 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2348 * ada-lang.c (ada_language::demangle): Rename to...
2349 (ada_language::demangle_symbol): ...this.
2350 * c-lang.c (cplus_language::demangle): Rename to...
2351 (cplus_language::demangle_symbol): ...this.
2352 * d-lang.c (d_language::demangle): Rename to...
2353 (d_language::demangle_symbol): ...this.
2354 * f-lang.c (f_language::demangle): Rename to...
2355 (f_language::demangle_symbol): ...this.
2356 * go-lang.c (go_language::demangle): Rename to...
2357 (go_language::demangle_symbol): ...this.
2358 * language.c (language_demangle): Update call to demangle_symbol.
2359 (auto_or_unknown_language::demangle): Rename to...
2360 (auto_or_unknown_language::demangle_symbol): ...this.
2361 * language.h (language_defn::demangle): Rename to...
2362 (language_defn::demangle_symbol): ...this.
2363 * objc-lang.c (objc_language::demangle): Rename to...
2364 (objc_language::demangle_symbol): ...this.
2365 * rust-lang.c (rust_language::demangle): Rename to...
2366 (rust_language::demangle_symbol): ...this.
2368 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2370 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
2371 (iterate_over_file_blocks): Replace use of macro with the macros
2374 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2376 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
2377 * valprint.c (maybe_print_array_index): Replace use of macro with
2378 the macros definition.
2380 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2382 * ada-lang.c (ada_language::print_array_index): Call value_print
2384 * language.c (language_defn::print_array_index): Likewise.
2385 * language.h (LA_VALUE_PRINT): Delete.
2386 * valprint.c (value_print): Call value_print on the
2387 current_language directly.
2389 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2391 * language.h (LA_PRINT_TYPEDEF): Delete.
2392 * typeprint.c (typedef_print): Call print_typedef directly on the
2393 current_language object.
2395 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2397 * m2-exp.y (m2_parse): Rename to...
2398 (m2_language::parser): ...this. Update function signature.
2399 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
2400 (m2_op_print): Rename to...
2401 (m2_language::op_print_tab): ...this, and make const.
2402 (exp_descriptor_modula2): Rename to...
2403 (m2_language::exp_descriptor_modula2): ...this.
2404 (class m2_language): Move to m2-lang.h.
2405 (m2_language::language_arch_info): New function, moved out of
2407 (m2_language::printchar): New function, body from m2_printchar.
2408 (m2_language::printstr): New function, moved out of class
2410 (m2_language::emitchar): Likewise.
2411 * m2-lang.h (m2_parse): Delete declaration.
2412 (m2_print_typedef): Delete declaration.
2413 (m2_value_print_inner): Delete declaration.
2414 (class m2_language): Class declaration moved from m2-lang.c,
2415 larger functions are left in m2-lang.c.
2416 * m2-typeprint.c (m2_print_typedef): Rename to...
2417 (m2_language::print_typedef): ...this, and update function
2419 * m2-valprint.c (m2_value_print_inner): Rename to...
2420 (m2_language::value_print_inner): ...this, replace use of
2421 LA_PRINT_STRING with a direct call to printstr member function,
2422 and update recursive call.
2424 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2426 * language.c (default_is_string_type_p): Delete, implementation
2427 moved into auto_or_unknown_language::is_string_type_p.
2428 (unk_op_print_tab): Moved into
2429 auto_or_unknown_language::opcode_print_table.
2430 (unknown_language_arch_info): Delete, implementation moved into
2431 auto_or_unknown_language::language_arch_info.
2432 (class auto_or_unknown_language): New class, member functions
2433 copied from unknown_language class, with some updates.
2434 (class unknown_language): Most member functions moved into
2435 auto_or_unknown_language class. Inherit from
2436 auto_or_unknown_language class.
2437 (class auto_language): Inherit from auto_or_unknown_language.
2438 Delete most member functions.
2440 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
2442 * stabsread.c (read_member_functions): Remove gdb_assert.
2444 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
2446 * gdbtypes.c (init_complex_type): Check target type name.
2448 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
2450 * target-debug.h (target_debug_print_struct_target_ops_p):
2452 (target_debug_print_async_callback_ftype_p): Remove.
2453 (target_debug_print_struct_trace_state_variable_p): Remove.
2454 (target_debug_print_struct_traceframe_info_p): Remove.
2455 (target_debug_print_VEC__btrace_block_s__pp): Remove.
2456 (target_debug_print_enum_btrace_format): Remove.
2457 (target_debug_print_enum_info_proc_what): Remove.
2458 (target_debug_print_thread_info_pp): Remove.
2460 2020-10-22 Simon Marchi <simon.marchi@efficios.com>
2462 * target.h (struct target_ops) <make_corefile_notes>:
2463 Change return type to unique pointer.
2464 * target.c (dummy_make_corefile_notes): Likewise.
2465 * exec.c (struct exec_target) <make_corefile_notes>:
2467 (exec_target::make_corefile_notes): Likewise.
2468 * procfs.c (class procfs_target) <make_corefile_notes>:
2470 (procfs_do_thread_registers): Adjust to unique pointer.
2471 (struct procfs_corefile_thread_data): Add constructor.
2472 <note_data>: Change type to unique pointer.
2473 (procfs_corefile_thread_callback): Adjust to unique pointer.
2474 (procfs_target::make_corefile_notes): Change return type to
2476 * target-delegates.c: Re-generate.
2477 * gcore.c (write_gcore_file_1): Adjust.
2478 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
2481 2020-10-22 Tom de Vries <tdevries@suse.de>
2483 * block.c (find_block_in_blockvector): Make sure the returned block
2486 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
2489 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
2491 (load_cu): Pass existing CU.
2492 (process_imported_unit_die): Likewise.
2493 (follow_die_offset): Likewise.
2495 2020-10-22 Luis Machado <luis.machado@linaro.org>
2497 * corelow.c (core_target::xfer_partial): Also check for an empty
2498 m_core_unavailable_mappings vector.
2500 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2502 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
2503 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
2504 * f-exp.y (arglist): Allow for a series of subranges.
2505 (subrange): Add cases for subranges with strides.
2506 * f-lang.c (value_f90_subarray): Catch use of array strides and
2508 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
2510 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2512 * expprint.c (print_subexp_standard): Change enum range_type to
2513 range_flag and rename variables to match.
2514 (dump_subexp_body_standard): Likewise.
2515 * expression.h (enum range_type): Rename to...
2516 (enum range_flag): ...this.
2517 (range_types): Rename to...
2518 (range_flags): ...this.
2519 * f-lang.c (value_f90_subarray): Change enum range_type to
2520 range_flag and rename variables to match.
2521 * parse.c (operator_length_standard): Likewise.
2522 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
2523 range_type to range_flag.
2524 * rust-lang.c (rust_evaluate_funcall): Likewise.
2525 (rust_range): Likewise.
2526 (rust_compute_range): Likewise.
2527 (rust_subscript): Likewise.
2529 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2531 * expprint.c (print_subexp_standard): Update to reflect changes to
2533 (dump_subexp_body_standard): Likewise.
2534 * expression.h (enum range_type): Convert to a bit field enum, and
2535 make the enum unsigned.
2536 * f-exp.y (subrange): Update to reflect changes to enum
2538 * f-lang.c (value_f90_subarray): Likewise.
2539 * parse.c (operator_length_standard): Likewise.
2540 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
2541 * rust-lang.c (rust_range): Likewise.
2542 (rust_compute_range): Likewise.
2543 (rust_subscript): Likewise.
2545 2020-10-21 Simon Marchi <simon.marchi@efficios.com>
2547 * infrun.c (displaced_step_in_progress_thread): Fix comment.
2548 (displaced_step_in_progress): Fix comment.
2550 2020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
2552 * gdbarch.sh (make_corefile_notes): Return unique pointer.
2553 * gdbarch.c: Re-generate.
2554 * gdbarch.h: Re-generate.
2555 * gcore.c (write_gcore_file_1): Adjust.
2556 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
2558 <note_data>: Change type to unique pointer.
2559 <abort_iteration>: Change type to bool.
2560 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
2561 (fbsd_collect_thread_registers): Return void, adjust.
2562 (struct fbsd_corefile_thread_data): Add construtor.
2563 <note_data>: Change type to unique pointer.
2564 (fbsd_corefile_thread): Adjust.
2565 (fbsd_make_corefile_notes): Return unique pointer, adjust.
2566 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
2567 to unique pointer, adjust.
2568 (struct linux_collect_regset_section_cb_data): Add constructor.
2569 <note_data>: Change type to unique pointer.
2570 <abort_iteration>: Change type to bool.
2571 (linux_collect_thread_registers): Return void, adjust.
2572 (struct linux_corefile_thread_data): Add constructor.
2573 <note_data>: Change type to unique pointer.
2574 (linux_corefile_thread): Adjust.
2575 (linux_make_corefile_notes): Return unique pointer, adjust.
2577 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2579 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
2580 * gdbarch.c: Re-generate.
2581 * gdbarch.h: Re-generate.
2582 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
2584 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
2586 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
2587 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
2588 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
2589 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
2591 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2593 * gdbarch.sh: Make generated predicates return bool.
2594 * gdbarch.c: Re-generate.
2595 * gdbarch.h: Re-generate.
2597 2020-10-20 Tom Tromey <tom@tromey.com>
2599 * varobj-iter.h (struct varobj_item): Remove typedef.
2601 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2603 * infrun.c (currently_stepping): Change int to bool
2604 (maybe_software_singlestep): Likewise.
2605 (show_stop_on_solib_events): Likewise.
2606 (stepping_past_nonsteppable_watchpoint): Likewise.
2607 (displaced_step_in_progress_any_inferior): Likewise.
2608 (displaced_step_in_progress_thread): Likewise.
2609 (keep_going_stepped_thread): Likewise.
2610 (thread_still_needs_step_over): Likewise.
2611 (start_step_over): Likewise.
2612 (do_target_resume): Likewise.
2613 (resume_1): Likewise.
2614 (clear_proceed_status): Likewise.
2615 (thread_still_needs_step_over_bp): Likewise.
2616 (proceed): Likewise.
2617 (switch_back_to_stepped_thread): Likewise.
2618 (adjust_pc_after_break): Likewise.
2619 (stepped_in_from): Likewise.
2620 (handle_stop_requested): Likewise.
2621 (handle_syscall_event): Likewise.
2622 (handle_no_resumed): Likewise.
2623 (handle_inferior_event): Likewise.
2624 (finish_step_over): Likewise.
2625 (handle_signal_stop): Likewise.
2626 (process_event_stop_test): Likewise.
2628 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2630 * infrun.c (get_displaced_stepping_state): Fix comment.
2632 2020-10-20 Andreas Schwab <schwab@linux-m68k.org>
2634 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
2636 2020-10-19 Tom Tromey <tromey@adacore.com>
2639 * tui/tui-winsource.h (struct tui_source_window_base)
2640 <refresh_window>: Rename from refresh_pad.
2641 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
2642 Rename from refresh_pad.
2643 (tui_source_window_base::show_source_content)
2644 (tui_source_window_base::do_scroll_horizontal): Update.
2646 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2648 * thread.c (_initialize_thread): Fine-tune the help text of
2651 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2653 * frame.c: Remove the unused 'uinteger_option_def' type alias.
2655 2020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
2657 * breakpoint.c (handle_jit_event): Add an argument, change how
2658 `jit_event_handler` is called.
2660 2020-10-17 Tom Tromey <tom@tromey.com>
2662 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
2663 (scan_xcoff_symtab): Update.
2664 * psymtab.h (class psymtab_storage) <global_psymbols,
2665 static_psymbols, current_global_psymbols,
2666 current_static_psymbols>: Remove.
2667 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
2668 (match_partial_symbol, lookup_partial_symbol): Update.
2669 (print_partial_symbols): Change parameters.
2670 (dump_psymtab, recursively_search_psymtabs)
2671 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
2672 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
2674 (end_psymtab_common): Simplify.
2675 (append_psymbol_to_list): Change parameters.
2676 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
2677 (init_psymbol_list): Simplify.
2678 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
2679 * psympriv.h (struct partial_symtab) <empty>: New method.
2680 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
2682 <global_psymbols, static_psymbols>: New members.
2683 <add_psymbol>: New methods.
2684 (add_psymbol_to_list): Don't declare.
2685 (psymbol_placement): Move earlier.
2686 * mdebugread.c (parse_partial_symbols): Update.
2687 (handle_psymbol_enumerators): Change parameters.
2688 (mdebug_expand_psymtab): Update.
2689 * dwarf2/read.c (process_psymtab_comp_unit_reader)
2690 (add_partial_symbol): Update.
2691 * dwarf2/index-write.c (write_psymbols): Change parameters.
2692 (write_one_signatured_type): Update.
2693 (recursively_count_psymbols): Update.
2694 (recursively_write_psymbols): Update.
2695 (class debug_names) <recursively_write_psymbols>: Update.
2696 <write_psymbols>: Change parameters.
2697 <write_one_signatured_type>: Update.
2698 * dbxread.c (read_dbx_symtab): Update.
2699 (dbx_end_psymtab): Use partial_symtab::empty.
2700 * ctfread.c (struct ctf_context) <pst>: New member.
2701 (create_partial_symtab): Set it.
2702 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
2703 (scan_partial_symbols): Use the psymtab's context. Update.
2705 2020-10-17 Tom Tromey <tom@tromey.com>
2707 * valprint.c (generic_value_print): Remove comment.
2708 * m2-valprint.c (m2_value_print_inner): Remove comment.
2709 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
2712 2020-10-17 Tom de Vries <tdevries@suse.de>
2715 * source.c (select_source_symtab): Handling sal.symtab == NULL for
2718 2020-10-14 Tom de Vries <tdevries@suse.de>
2721 * solib.c (solib_contains_address_p): Handle
2722 'solib->sections == nullptr'.
2724 2020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
2727 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
2728 target can't do async.
2729 * target.c (target_wait): Assert that we don't pass
2730 TARGET_WNOHANG to a target that can't async.
2732 2020-10-13 Kamil Rytarowski <n54@gmx.com>
2734 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
2735 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
2736 * alpha-bsd-nat.c: Adjust include.
2737 * alpha-bsd-tdep.h: Adjust comment.
2738 * alpha-nbsd-tdep.c: Rename to ...
2739 * alpha-netbsd-tdep.c: ... this, adjust include.
2740 * amd64-nbsd-nat.c: Rename to ...
2741 * amd64-netbsd-nat.c: ... this, adjust include.
2742 * amd64-nbsd-tdep.c: Rename to ...
2743 * amd64-netbsd-tdep.c: ... this, adjust include.
2744 * amd64-tdep.h: Adjust include.
2745 * arm-nbsd-nat.c: Rename to ...
2746 * arm-netbsd-nat.c: ... this, adjust include.
2747 * arm-nbsd-tdep.c: Rename to ...
2748 * arm-netbsd-tdep.c: ... this, adjust include.
2749 * arm-nbsd-tdep.h: Rename to ...
2750 * arm-netbsd-tdep.h: ... this, adjust include.
2751 * configure.nat: Adjust file lists.
2752 * configure.tgt: Likewise.
2753 * hppa-nbsd-nat.c: Rename to ...
2754 * hppa-netbsd-nat.c: ... this, adjust include.
2755 * hppa-nbsd-tdep.c: Rename to ...
2756 * hppa-netbsd-tdep.c: ... this, adjust include.
2757 * i386-nbsd-nat.c: Rename to ...
2758 * i386-netbsd-nat.c: ... this, adjust include.
2759 * i386-nbsd-tdep.c: Rename to ...
2760 * i386-netbsd-tdep.c: ... this, adjust include.
2761 * m68k-bsd-nat.c: Adjust include.
2762 * mips-nbsd-nat.c: Rename to ...
2763 * mips-netbsd-nat.c: ... this, adjust include.
2764 * mips-nbsd-tdep.c: Rename to ...
2765 * mips-netbsd-tdep.c: ... this, adjust include.
2766 * mips-nbsd-tdep.h: Rename to ...
2767 * mips-netbsd-tdep.h: ... this.
2768 * nbsd-nat.c: Rename to ...
2769 * netbsd-nat.c: ... this, adjust include.
2770 * nbsd-nat.h: Rename to ...
2771 * netbsd-nat.h: ... this, adjust include.
2772 * nbsd-tdep.c: Rename to ...
2773 * netbsd-tdep.c: ... this, adjust include.
2774 * nbsd-tdep.h: Rename to ...
2775 * netbsd-tdep.h: ... this.
2776 * ppc-nbsd-nat.c: Rename to ...
2777 * ppc-netbsd-nat.c: ... this, adjust include.
2778 * ppc-nbsd-tdep.c: Rename to ...
2779 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
2780 * ppc-nbsd-tdep.h: Rename to ...
2781 * ppc-netbsd-tdep.h: ... this.
2782 * sh-nbsd-nat.c: Rename to ...
2783 * sh-netbsd-nat.c: ... this, adjust include.
2784 * sh-nbsd-tdep.c: Rename to ...
2785 * sh-netbsd-tdep.c: ... this, adjust include.
2786 * sparc-nbsd-nat.c: Rename to ...
2787 * sparc-netbsd-nat.c: ... this.
2788 * sparc-nbsd-tdep.c: Rename to ...
2789 * sparc-netbsd-tdep.c: ... this, adjust include.
2790 * sparc64-nbsd-nat.c: Rename to ...
2791 * sparc64-netbsd-nat.c: ... this.
2792 * sparc64-nbsd-tdep.c: Rename to ...
2793 * sparc64-netbsd-tdep.c: ... this, adjust include.
2794 * sparc64-tdep.h: Adjust comment.
2795 * vax-bsd-nat.c: Adjust include.
2796 * vax-nbsd-tdep.c: Rename to ...
2797 * vax-netbsd-tdep.c: ... this, adjust include.
2799 2020-10-12 Tom Tromey <tom@tromey.com>
2801 * target.h (struct target_ops) <get_section_table>: Update.
2802 (target_get_section_table): Update.
2803 * target.c (target_get_section_table, target_section_by_addr)
2804 (memory_xfer_partial_1): Update.
2805 * target-section.h (target_section_table): Now an alias.
2806 * target-delegates.c: Rebuild.
2807 * target-debug.h (target_debug_print_target_section_table_p):
2808 Rename from target_debug_print_struct_target_section_table_p.
2809 * symfile.c (build_section_addr_info_from_section_table): Update.
2810 * solib.c (solib_map_sections, solib_contains_address_p): Update.
2811 * solib-svr4.c (scan_dyntag): Update.
2812 * solib-dsbt.c (scan_dyntag): Update.
2813 * remote.c (remote_target::remote_xfer_live_readonly_partial):
2815 * record-full.c (record_full_core_target::xfer_partial): Update.
2816 * progspace.h (struct program_space) <target_sections>: Update.
2817 * exec.h (print_section_info): Update.
2818 * exec.c (exec_target::close, build_section_table)
2819 (add_target_sections, add_target_sections_of_objfile)
2820 (remove_target_sections, exec_on_vfork)
2821 (section_table_available_memory)
2822 (section_table_xfer_memory_partial)
2823 (exec_target::get_section_table, exec_target::xfer_partial)
2824 (print_section_info, set_section_command)
2825 (exec_set_section_address, exec_target::has_memory): Update.
2826 * corelow.c (core_target::build_file_mappings)
2827 (core_target::xfer_partial, core_target::info_proc_mappings)
2828 (core_target::info_proc_mappings): Update.
2829 * bfd-target.c (class target_bfd): Update
2831 2020-10-12 Tom Tromey <tom@tromey.com>
2833 * progspace.c (program_space::~program_space): Don't call
2834 clear_section_table.
2835 * exec.h (clear_section_table): Don't declare.
2836 * exec.c (exec_target::close): Update.
2837 (clear_section_table): Remove.
2839 2020-10-12 Tom Tromey <tom@tromey.com>
2841 * exec.c (add_target_sections_of_objfile): Simplify.
2843 2020-10-12 Tom Tromey <tom@tromey.com>
2845 * solib.c (solib_map_sections): Update.
2846 * record-full.c (record_full_core_open_1): Update.
2847 * exec.h (build_section_table): Return a target_section_table.
2848 * exec.c (exec_file_attach): Update.
2849 (build_section_table): Return a target_section_table.
2850 * corelow.c (core_target::core_target): Update.
2851 * bfd-target.c (target_bfd::target_bfd): Update.
2853 2020-10-12 Tom Tromey <tom@tromey.com>
2855 * target.c (target_section_by_addr, memory_xfer_partial_1):
2857 * target-section.h (struct target_section_table): Use
2859 * symfile.h (build_section_addr_info_from_section_table): Take a
2860 target_section_table.
2861 * symfile.c (build_section_addr_info_from_section_table): Take a
2862 target_section_table.
2863 * solist.h (struct so_list) <sections>: Change type.
2864 <sections_end>: Remove.
2865 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
2866 (solib_contains_address_p): Update.
2867 * solib-svr4.c (scan_dyntag): Update.
2868 * solib-dsbt.c (scan_dyntag): Update.
2869 * remote.c (remote_target::remote_xfer_live_readonly_partial):
2871 * record-full.c (record_full_core_start, record_full_core_end):
2873 (record_full_core_sections): New global.
2874 (record_full_core_open_1, record_full_core_target::xfer_partial):
2876 * exec.h (build_section_table, section_table_xfer_memory_partial)
2877 (add_target_sections): Take a target_section_table.
2878 * exec.c (exec_file_attach, clear_section_table): Update.
2879 (resize_section_table): Remove.
2880 (build_section_table, add_target_sections): Take a
2881 target_section_table.
2882 (add_target_sections_of_objfile, remove_target_sections)
2883 (exec_on_vfork): Update.
2884 (section_table_available_memory): Take a target_section_table.
2885 (section_table_read_available_memory): Update.
2886 (section_table_xfer_memory_partial): Take a target_section_table.
2887 (print_section_info, set_section_command)
2888 (exec_set_section_address, exec_target::has_memory): Update.
2889 * corelow.c (class core_target) <m_core_section_table,
2890 m_core_file_mappings>: Remove braces.
2891 <~core_target>: Remove.
2892 (core_target::core_target): Update.
2893 (core_target::~core_target): Remove.
2894 (core_target::build_file_mappings)
2895 (core_target::xfer_memory_via_mappings)
2896 (core_target::xfer_partial, core_target::info_proc_mappings):
2898 * bfd-target.c (target_bfd::xfer_partial): Update.
2899 (target_bfd::target_bfd): Update.
2900 (target_bfd::~target_bfd): Remove.
2902 2020-10-12 Tom Tromey <tom@tromey.com>
2904 * target.h (struct target_section, struct target_section_table):
2905 Move to target-section.h.
2906 * target-section.h: New file.
2908 2020-10-12 Pedro Alves <pedro@palves.net>
2911 * valops.c (struct struct_field_searcher): New.
2912 (update_search_result): Rename to ...
2913 (struct_field_searcher::update_result): ... this. Simplify
2914 prototype. Record all found fields.
2915 (do_search_struct_field): Rename to ...
2916 (struct_field_searcher::search): ... this. Simplify prototype.
2917 Maintain stack of visited baseclass path. Call update_result for
2918 fields too. Keep searching fields in baseclasses instead of
2919 stopping at the first found field.
2920 (search_struct_field): Use struct_field_searcher. When looking
2921 for fields, report ambiguous access attempts.
2923 2020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
2925 * frame.c (inside_main_func): Check full symbols as well as
2928 2020-10-09 Joel Brobecker <brobecker@adacore.com>
2930 * ada-lang.c (advance_wild_match): Rewrite the function's
2931 description. Change the type of target0, t0 and t1 to char.
2933 2020-10-09 Tom Tromey <tromey@adacore.com>
2935 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
2937 2020-10-09 Tom Tromey <tromey@adacore.com>
2939 * ada-lang.h (ada_encode): Return std::string.
2940 * ada-lang.c (ada_encode_1): Return std::string.
2941 (ada_encode): Likewise.
2942 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
2944 * ada-exp.y (block_lookup, write_var_or_type): Update.
2946 2020-10-09 Hannes Domani <ssbssa@yahoo.de>
2949 * printcmd.c (print_formatted): Handle void results as
2952 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
2954 * arch/aarch32.c (aarch32_create_target_description): Release the
2955 target_desc_up as late as possible.
2956 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2957 * arch/amd64.c (amd64_create_target_description): Likewise.
2958 * arch/arc.c (arc_create_target_description): Return a
2959 target_desc_up, don't release it.
2960 * arch/arc.h (arc_create_target_description): Update declaration.
2961 (arc_lookup_target_description): Move target_desc_up into the
2962 cache, and return a borrowed pointer.
2963 * arch/arm.c (arm_create_target_description): Release the
2964 target_desc_up as late as possible.
2965 * arch/i386.c (i386_create_target_description): Likewise.
2966 * arch/riscv.h (riscv_create_target_description): Update
2967 declaration to match definition.
2968 * arch/tic6x.c (tic6x_create_target_description): Release the
2969 target_desc_up as late as possible.
2971 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
2973 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
2974 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
2976 2020-10-09 Jan Vrany <jan.vrany@labware.com>
2978 * source.c (directory_command): Notify observers that "directories"
2979 parameter has changed.
2981 2020-10-08 Tom Tromey <tom@tromey.com>
2983 * cli/cli-cmds.c (print_disassembly): Style function name and
2984 addresses. Add _() wrappers.
2986 2020-10-08 Shahab Vahedi <shahab@synopsys.com>
2988 * NEWS: Mention ARC support in GDBserver.
2990 2020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
2992 * arch/aarch32.c (aarch32_create_target_description): Release
2993 unique_ptr returned from allocate_target_description.
2994 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2995 * arch/amd64.c (amd64_create_target_description): Likewise.
2996 * arch/arc.c (arc_create_target_description): Likewise.
2997 * arch/arm.c (arm_create_target_description): Likewise.
2998 * arch/i386.c (i386_create_target_description): Likewise.
2999 * arch/riscv.c (riscv_create_target_description): Update return
3000 type. Handle allocate_target_description returning a unique_ptr.
3001 (riscv_lookup_target_description): Update to handle unique_ptr.
3002 * arch/tic6x.c (tic6x_create_target_description): Release
3003 unique_ptr returned from allocate_target_description.
3004 * features/microblaze-with-stack-protect.c: Regenerate.
3005 * features/microblaze.c: Regenerate.
3006 * features/mips-dsp-linux.c: Regenerate.
3007 * features/mips-linux.c: Regenerate.
3008 * features/mips64-dsp-linux.c: Regenerate.
3009 * features/mips64-linux.c: Regenerate.
3010 * features/nds32.c: Regenerate.
3011 * features/nios2.c: Regenerate.
3012 * features/or1k.c: Regenerate.
3013 * features/rs6000/powerpc-32.c: Regenerate.
3014 * features/rs6000/powerpc-32l.c: Regenerate.
3015 * features/rs6000/powerpc-403.c: Regenerate.
3016 * features/rs6000/powerpc-403gc.c: Regenerate.
3017 * features/rs6000/powerpc-405.c: Regenerate.
3018 * features/rs6000/powerpc-505.c: Regenerate.
3019 * features/rs6000/powerpc-601.c: Regenerate.
3020 * features/rs6000/powerpc-602.c: Regenerate.
3021 * features/rs6000/powerpc-603.c: Regenerate.
3022 * features/rs6000/powerpc-604.c: Regenerate.
3023 * features/rs6000/powerpc-64.c: Regenerate.
3024 * features/rs6000/powerpc-64l.c: Regenerate.
3025 * features/rs6000/powerpc-7400.c: Regenerate.
3026 * features/rs6000/powerpc-750.c: Regenerate.
3027 * features/rs6000/powerpc-860.c: Regenerate.
3028 * features/rs6000/powerpc-altivec32.c: Regenerate.
3029 * features/rs6000/powerpc-altivec32l.c: Regenerate.
3030 * features/rs6000/powerpc-altivec64.c: Regenerate.
3031 * features/rs6000/powerpc-altivec64l.c: Regenerate.
3032 * features/rs6000/powerpc-e500.c: Regenerate.
3033 * features/rs6000/powerpc-e500l.c: Regenerate.
3034 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
3035 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
3036 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
3037 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
3038 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
3039 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
3040 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
3041 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
3042 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
3043 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
3044 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
3045 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
3046 * features/rs6000/powerpc-vsx32.c: Regenerate.
3047 * features/rs6000/powerpc-vsx32l.c: Regenerate.
3048 * features/rs6000/powerpc-vsx64.c: Regenerate.
3049 * features/rs6000/powerpc-vsx64l.c: Regenerate.
3050 * features/rs6000/rs6000.c: Regenerate.
3051 * features/rx.c: Regenerate.
3052 * features/s390-gs-linux64.c: Regenerate.
3053 * features/s390-linux32.c: Regenerate.
3054 * features/s390-linux32v1.c: Regenerate.
3055 * features/s390-linux32v2.c: Regenerate.
3056 * features/s390-linux64.c: Regenerate.
3057 * features/s390-linux64v1.c: Regenerate.
3058 * features/s390-linux64v2.c: Regenerate.
3059 * features/s390-te-linux64.c: Regenerate.
3060 * features/s390-tevx-linux64.c: Regenerate.
3061 * features/s390-vx-linux64.c: Regenerate.
3062 * features/s390x-gs-linux64.c: Regenerate.
3063 * features/s390x-linux64.c: Regenerate.
3064 * features/s390x-linux64v1.c: Regenerate.
3065 * features/s390x-linux64v2.c: Regenerate.
3066 * features/s390x-te-linux64.c: Regenerate.
3067 * features/s390x-tevx-linux64.c: Regenerate.
3068 * features/s390x-vx-linux64.c: Regenerate.
3069 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
3070 from allocate_target_description.
3071 * target-descriptions.c (allocate_target_description): Update
3073 (print_c_tdesc::visit_pre): Release unique_ptr returned from
3074 allocate_target_description.
3076 2020-10-07 Tom Tromey <tromey@adacore.com>
3078 * unittests/search-memory-selftests.c: New file.
3079 * Makefile.in (SELFTESTS_SRCS): Add
3080 unittests/search-memory-selftests.c.
3082 2020-10-07 Tom Tromey <tromey@adacore.com>
3085 * findcmd.c (_initialize_mem_search): Mention that the range is
3088 2020-10-07 Tom Tromey <tromey@adacore.com>
3090 * target.h (simple_search_memory): Don't declare.
3091 * target.c (simple_search_memory): Move to gdbsupport.
3092 (default_search_memory): Update.
3093 * remote.c (remote_target::search_memory): Update.
3095 2020-10-07 Simon Marchi <simon.marchi@efficios.com>
3097 * Makefile.in (COMPILE): Add CXXFLAGS.
3098 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
3099 (check-headers): Add CXXFLAGS.
3101 2020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
3103 * arc-linux-tdep.h: New file.
3104 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
3105 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
3106 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
3107 arc_linux_gregset, arc_linux_v2_regset,
3108 arc_linux_iterate_over_regset_sections,
3109 arc_linux_core_read_description): Implement.
3110 (arc_linux_init_osabi): Set iterate_over_regset_sections.
3111 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
3112 (arc_gdbarch_features_create): Add.
3113 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
3115 2020-10-07 Shahab Vahedi <shahab@synopsys.com>
3117 * arch/arc.h: Rename "arc_gdbarch_features" to
3118 "arc_arch_features".
3119 * arc-tdep.h: Likewise.
3120 * arc-tdep.c: Likewise.
3122 2020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3124 * infcmd.c (attach_command): Remove the redundant call to
3125 `clear_proceed_status`.
3127 2020-10-07 Kamil Rytarowski <n54@gmx.com>
3129 * nat/netbsd-nat.c (write_memory, read_memory): Update.
3131 2020-10-07 Kamil Rytarowski <n54@gmx.com>
3133 * nat/netbsd-nat.c (write_memory, read_memory): Add.
3134 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
3135 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
3137 2020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
3139 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
3140 (_initialize_break_catch_sig): Don't allocate array.
3142 2020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
3144 * symtab.c (find_pc_line): Return unmapped addresses when the
3145 requested address is also unmapped.
3147 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
3149 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
3152 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
3154 * amd64-windows-tdep.c (amd64_windows_return_value): Use
3155 type::is_vector instead of TYPE_VECTOR.
3157 2020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
3159 * auto-load.c (auto_load_objfile_script_1): Don't use
3160 debugfile_holder as temporary variable when stripping drive
3163 2020-10-05 Hannes Domani <ssbssa@yahoo.de>
3165 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
3166 Add TYPE_CODE_COMPLEX.
3167 (amd64_windows_return_value): Fix types returned via XMM0.
3169 2020-10-05 Alan Hayward <alan.hayward@arm.com>
3171 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
3172 AArch64/ARM maintainers.
3174 2020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
3176 * NEWS: Mention set/show debug event-loop.
3178 2020-10-02 Tom Tromey <tromey@adacore.com>
3180 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
3183 2020-10-02 Simon Marchi <simon.marchi@efficios.com>
3185 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
3186 * procfs.c (procfs_inferior_created): Remove.
3187 (_initialize_procfs): Don't register procfs_inferior_created.
3189 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3191 * async-event.c (invoke_async_signal_handlers): Add debug
3193 (check_async_event_handlers): Likewise.
3194 * event-top.c (show_debug_event_loop): New function.
3195 (_initialize_event_top): Register "set debug event-loop"
3198 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3200 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
3202 * infrun.c: Include gdbsupport/common-debug.h.
3203 * linux-nat.c: Likewise.
3205 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3207 * async-event.h (create_async_signal_handler): Add name
3209 (create_async_event_handler): Likewise.
3210 * async-event.c (struct async_signal_handler) <name>: New field.
3211 (struct async_event_handler) <name>: New field.
3212 (create_async_signal_handler): Assign name.
3213 (create_async_event_handler): Assign name.
3214 * event-top.c (async_init_signals): Pass name when creating
3216 * infrun.c (_initialize_infrun): Likewise.
3217 * record-btrace.c (record_btrace_push_target): Likewise.
3218 * record-full.c (record_full_open): Likewise.
3219 * remote-notif.c (remote_notif_state_allocate): Likewise.
3220 * remote.c (remote_target::open_1): Likewise.
3221 * tui/tui-win.c (tui_initialize_win): Likewise.
3223 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3225 * async-event.c (initialize_async_signal_handlers): Pass name to
3227 * event-top.c (ui_register_input_event_handler): Likewise.
3228 * linux-nat.c (linux_nat_target::async): Likewise.
3229 * run-on-main-thread.c (_initialize_run_on_main_thread):
3231 * ser-base.c (reschedule): Likewise.
3232 (ser_base_async): Likewise.
3233 * tui/tui-io.c: Likewise.
3234 * top.h (struct ui) <num>: New field.
3235 * top.c (highest_ui_num): New variable.
3236 (ui::ui): Initialize num.
3238 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3240 * observable.h <inferior_created>: Remove parameters. Update all
3242 * inferior.h (post_create_inferior): Remove target parameter.
3245 2020-10-02 Nitika Achra <Nitika.Achra@amd.com>
3247 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
3248 and DW_MACRO_undef_strx.
3249 (dwarf_decode_macros): Likewise
3250 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
3251 which is the value of DW_AT_str_offsets_base.
3252 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
3255 2020-10-01 Kamil Rytarowski <n54@gmx.com>
3257 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
3259 2020-10-01 Kamil Rytarowski <n54@gmx.com>
3261 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
3262 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
3264 2020-10-01 Kamil Rytarowski <n54@gmx.com>
3266 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
3268 2020-09-30 Tom de Vries <tdevries@suse.de>
3271 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
3273 2020-09-30 Tom Tromey <tromey@adacore.com>
3275 * dwarf2/read.c (handle_variant): Use constant_value.
3277 2020-09-29 Tom Tromey <tom@tromey.com>
3279 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
3280 (read_file_scope, dwarf2_get_pc_bounds)
3281 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
3282 (read_structure_type, handle_struct_member_die)
3283 (read_enumeration_type, read_array_type, read_set_type)
3284 (read_tag_pointer_type, read_tag_reference_type)
3285 (read_subroutine_type, read_base_type, read_subrange_type)
3286 (read_full_die_1, partial_die_info::read)
3287 (partial_die_info::read, by, new_symbol)
3288 (dwarf2_const_value_data, dwarf2_const_value_attr)
3289 (dump_die_shallow, dwarf2_fetch_constant_bytes)
3290 (prepare_one_comp_unit): Update.
3291 * dwarf2/attribute.h (DW_UNSND): Remove.
3293 2020-09-29 Tom Tromey <tom@tromey.com>
3295 * dwarf2/read.c (read_func_scope, prototyped_function_p)
3296 (read_subroutine_type, partial_die_info::read)
3297 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
3298 (dwarf2_add_member_fn): Update.
3299 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
3300 * dwarf2/attribute.c (attribute::as_boolean): New method.
3302 2020-09-29 Tom Tromey <tom@tromey.com>
3304 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
3305 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
3307 * dwarf2/attribute.c (attribute::as_virtuality): New method.
3309 2020-09-29 Tom Tromey <tom@tromey.com>
3311 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
3312 the attribute's form.
3314 2020-09-29 Tom Tromey <tom@tromey.com>
3316 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
3317 (dwarf2_add_member_fn): Update.
3318 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
3319 * dwarf2/attribute.c (attribute::defaulted): New method, from
3320 is_valid_DW_AT_defaulted.
3322 2020-09-29 Tom Tromey <tom@tromey.com>
3324 * dwarf2/read.c (dw2_get_file_names_reader)
3325 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
3326 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
3327 (dwarf2_symbol_mark_computed): Use as_unsigned.
3328 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
3330 <form_is_section_offset>: Update comment.
3332 2020-09-29 Tom Tromey <tom@tromey.com>
3334 * dwarf2/read.c (dwarf2_access_attribute): Rename from
3335 dwarf2_default_access_attribute. Look up attribute.
3336 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
3339 2020-09-29 Tom Tromey <tom@tromey.com>
3341 * dwarf2/read.c (skip_one_die): Update.
3342 (read_full_die_1): Change how reprocessing is done.
3343 (partial_die_info::read): Update.
3344 (read_attribute_value): Remove need_reprocess parameter.
3345 (read_attribute): Likewise.
3346 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
3349 2020-09-29 Tom Tromey <tom@tromey.com>
3351 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
3352 (dwarf2_const_value_attr, dump_die_shallow)
3353 (dwarf2_fetch_constant_bytes): Update.
3354 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
3356 <set_address>: New method.
3358 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
3359 (attribute::as_string, attribute::as_address): Add assert.
3361 2020-09-29 Tom Tromey <tom@tromey.com>
3363 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
3364 (read_attribute_reprocess, read_attribute_value): Update.
3365 (read_attribute): Clear requires_reprocessing.
3366 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
3367 form_requires_reprocessing>: New methods.
3368 <string_init>: Clear requires_reprocessing.
3369 <set_unsigned_reprocess>: New method.
3370 <name>: Shrink by one bit.
3371 <requires_reprocessing>: New member.
3372 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
3375 2020-09-29 Tom Tromey <tom@tromey.com>
3377 * dwarf2/read.c (read_attribute_value): Update.
3378 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
3379 set_unsigned>: New methods.
3380 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
3382 2020-09-29 Tom Tromey <tom@tromey.com>
3384 * dwarf2/read.c (get_alignment, read_array_order)
3385 (read_attribute_value, dwarf2_const_value_attr)
3386 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
3387 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
3391 2020-09-29 Tom Tromey <tom@tromey.com>
3393 * dwarf2/read.c (read_attribute_value, lookup_die_type)
3394 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
3396 * dwarf2/attribute.h (struct attribute) <as_signature,
3397 set_signature>: New methods.
3398 (DW_SIGNATURE): Remove.
3400 2020-09-29 Tom Tromey <tom@tromey.com>
3402 * dwarf2/read.c (read_call_site_scope)
3403 (handle_data_member_location, dwarf2_add_member_fn)
3404 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3405 (partial_die_info::read, read_attribute_value)
3406 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
3407 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
3408 (dwarf2_symbol_mark_computed): Update.
3409 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
3412 * dwarf2/attribute.c (attribute::form_is_block): Add
3415 2020-09-29 Tom Tromey <tom@tromey.com>
3417 * dwarf2/read.c (read_cutu_die_from_dwo)
3418 (read_attribute_reprocess, read_attribute_value, read_attribute)
3419 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
3420 (dwarf2_fetch_constant_bytes): Update.
3421 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
3422 <set_string_noncanonical, set_string_canonical>: New methods.
3423 <string_is_canonical>: Update comment.
3424 <canonical_string_p>: Add assert.
3425 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
3426 * dwarf2/attribute.c (attribute::form_is_string): New method.
3427 (attribute::string): Use it.
3429 2020-09-29 Tom Tromey <tom@tromey.com>
3431 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
3432 (dump_die_shallow): Use canonical_string_p.
3433 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
3436 2020-09-29 Tom Tromey <tom@tromey.com>
3438 * dwarf2/read.c (partial_die_info::read)
3439 (dwarf2_const_value_attr, anonymous_struct_prefix, )
3440 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
3441 attribute::as_string.
3443 2020-09-29 Tom Tromey <tom@tromey.com>
3445 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
3447 (attribute::string): Don't use DW_STRING.
3448 (attribute::get_ref_die_offset): Don't use DW_UNSND.
3449 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
3451 2020-09-29 Tom Tromey <tom@tromey.com>
3453 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
3454 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
3455 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
3456 * dwarf2/attribute.h (struct attribute): Rename methods.
3457 * dwarf2/attribute.c (attribute::as_address): Rename from
3459 (attribute::as_string): Rename from value_as_string.
3461 2020-09-29 Tom Tromey <tom@tromey.com>
3463 * dwarf2/read.c (partial_die_info::read) <case
3464 DW_AT_linkage_name>: Use value_as_string.
3465 (dwarf2_string_attr): Use value_as_string.
3466 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
3468 * dwarf2/attribute.c (attribute::value_as_string): New method.
3470 2020-09-29 Pedro Alves <pedro@palves.net>
3472 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
3473 defined before using '#pragma GCC diagnostic' instead of checking
3476 2020-09-28 Tom Tromey <tom@tromey.com>
3478 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
3479 (handle_signal_stop): Update.
3480 * procfs.c (procfs_target::insert_watchpoint): Update.
3481 * target.h (target_have_steppable_watchpoint): Now a function.
3483 2020-09-28 Tom Tromey <tom@tromey.com>
3485 * infrun.c (set_schedlock_func): Update.
3486 * target.h (target_can_lock_scheduler): Now a function.
3488 2020-09-28 Tom Tromey <tom@tromey.com>
3490 * inferior.h (class inferior) <has_execution>: Update.
3491 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
3492 * valops.c (find_function_in_inferior)
3493 (value_allocate_space_in_inferior): Update.
3494 * top.c (kill_or_detach): Update.
3495 * target.c (target_preopen, set_target_permissions): Update.
3496 (target_has_execution_current): Remove.
3497 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
3499 * solib.c (update_solib_list, reload_shared_libraries): Update.
3500 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
3501 * solib-dsbt.c (enable_break): Update.
3502 * score-tdep.c (score7_fetch_inst): Update.
3503 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
3505 * remote.c (remote_target::start_remote)
3506 (remote_target::remote_check_symbols, remote_target::open_1)
3507 (remote_target::remote_detach_1, remote_target::verify_memory)
3508 (remote_target::xfer_partial, remote_target::read_description)
3509 (remote_target::get_min_fast_tracepoint_insn_len): Update.
3510 * record-full.c (record_full_open_1): Update.
3511 * record-btrace.c (record_btrace_target_open): Update.
3512 * objc-lang.c (lookup_objc_class, lookup_child_selector)
3513 (value_nsstring): Update.
3514 * linux-thread-db.c (add_thread_db_info)
3515 (thread_db_find_new_threads_silently, check_thread_db_callback)
3516 (try_thread_db_load_1, record_thread): Update.
3517 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
3519 * linux-fork.c (checkpoint_command): Update.
3520 * infrun.c (set_non_stop, set_observer_mode)
3521 (check_multi_target_resumption, for_each_just_stopped_thread)
3522 (maybe_remove_breakpoints, normal_stop)
3523 (class infcall_suspend_state): Update.
3524 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
3525 (info_program_command, attach_command): Update.
3526 * infcall.c (call_function_by_hand_dummy): Update.
3527 * inf-loop.c (inferior_event_handler): Update.
3528 * gcore.c (gcore_command, derive_heap_segment): Update.
3529 * exec.c (exec_file_command): Update.
3530 * eval.c (evaluate_subexp): Update.
3531 * compile/compile.c (compile_to_object): Update.
3532 * cli/cli-dump.c (restore_command): Update.
3533 * breakpoint.c (update_watchpoint)
3534 (update_inserted_breakpoint_locations)
3535 (insert_breakpoint_locations, get_bpstat_thread): Update.
3536 * target.h (target_has_execution): Remove macro.
3537 (target_has_execution_current): Don't declare.
3538 (target_has_execution): Rename from target_has_execution_1. Add
3541 2020-09-28 Tom Tromey <tom@tromey.com>
3543 * mi/mi-main.c (exec_reverse_continue)
3544 (mi_cmd_list_target_features): Update.
3545 * infrun.c (set_exec_direction_func): Update.
3546 * target.c (default_execution_direction): Update.
3547 * reverse.c (exec_reverse_once): Update.
3548 * target.h (target_can_execute_reverse): Now a function.
3550 2020-09-28 Tom Tromey <tom@tromey.com>
3552 * tui/tui-regs.c (tui_get_register)
3553 (tui_data_window::show_registers): Update.
3554 * thread.c (scoped_restore_current_thread::restore)
3555 (scoped_restore_current_thread::scoped_restore_current_thread):
3557 * regcache-dump.c (regcache_print): Update.
3558 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
3560 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
3561 * mep-tdep.c (current_me_module, current_options): Update.
3562 * linux-thread-db.c (thread_db_load): Update.
3563 * infcmd.c (registers_info, info_vector_command)
3564 (info_float_command): Update.
3565 * ia64-tdep.c (ia64_frame_prev_register)
3566 (ia64_sigtramp_frame_prev_register): Update.
3567 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
3568 * gcore.c (derive_stack_segment): Update.
3569 * frame.c (get_current_frame, has_stack_frames): Update.
3570 * findvar.c (language_defn::read_var_value): Update.
3571 * arm-tdep.c (arm_pc_is_thumb): Update.
3572 * target.c (target_has_registers): Rename from
3573 target_has_registers_1.
3574 * target.h (target_has_registers): Remove macro.
3575 (target_has_registers): Rename from target_has_registers_1.
3577 2020-09-28 Tom Tromey <tom@tromey.com>
3579 * windows-tdep.c (tlb_make_value): Update.
3580 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3581 * thread.c (scoped_restore_current_thread::restore)
3582 (scoped_restore_current_thread::scoped_restore_current_thread)
3583 (thread_command): Update.
3584 * stack.c (backtrace_command_1, frame_apply_level_command)
3585 (frame_apply_all_command, frame_apply_command): Update.
3586 * infrun.c (siginfo_make_value, restore_infcall_control_state):
3588 * gcore.c (derive_stack_segment): Update.
3589 * frame.c (get_current_frame, has_stack_frames): Update.
3590 * auxv.c (info_auxv_command): Update.
3591 * ada-tasks.c (ada_build_task_list): Update.
3592 * target.c (target_has_stack): Rename from target_has_stack_1.
3593 * target.h (target_has_stack): Remove macro.
3594 (target_has_stack): Rename from target_has_stack_1.
3596 2020-09-28 Tom Tromey <tom@tromey.com>
3598 * target.c (target_has_memory): Rename from target_has_memory_1.
3599 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3600 * thread.c (scoped_restore_current_thread::restore)
3601 (scoped_restore_current_thread::scoped_restore_current_thread):
3603 * frame.c (get_current_frame, has_stack_frames): Update.
3604 * target.h (target_has_memory): Remove macro.
3605 (target_has_memory): Rename from target_has_memory_1.
3607 2020-09-28 Tom Tromey <tom@tromey.com>
3609 * target.c (target_has_all_memory_1): Remove.
3610 * target.h (target_has_all_memory): Remove define.
3611 (target_has_all_memory_1): Don't declare.
3613 2020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
3615 * ser-base.c: Adjust comments formatting.
3617 2020-09-27 Tom Tromey <tom@tromey.com>
3620 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
3622 2020-09-27 Tom Tromey <tom@tromey.com>
3625 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
3627 2020-09-27 Tom Tromey <tom@tromey.com>
3629 * unittests/tui-selftests.c: Update.
3630 * tui/tui-winsource.h (struct tui_source_window_base)
3631 <extra_margin, show_line_number, refresh_pad>: New methods.
3632 <m_max_length, m_pad>: New members.
3633 (tui_copy_source_line): Update.
3634 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
3635 first_col, line_width, ndigits parameters. Add length.
3636 (tui_source_window_base::show_source_line): Write to pad. Line
3638 (tui_source_window_base::refresh_pad): New method.
3639 (tui_source_window_base::show_source_content): Write to pad. Call
3641 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
3643 (tui_source_window_base::update_exec_info): Call
3645 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
3647 <m_digits>: New member.
3648 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
3650 (tui_source_window::show_line_number): New method.
3651 * tui/tui-io.h (tui_puts): Fix comment.
3652 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
3655 2020-09-27 Tom Tromey <tom@tromey.com>
3657 * tui/tui-winsource.c
3658 (tui_source_window_base::set_is_exec_point_at): Don't call
3661 2020-09-27 Tom Tromey <tom@tromey.com>
3663 * python/py-tui.c (class tui_py_window) <refresh_window>: New
3666 <cursor_x, cursor_y>: Remove.
3667 <m_inner_window>: New member.
3668 (tui_py_window::rerender): Create inner window.
3669 (tui_py_window::output): Write to inner window.
3671 2020-09-26 Gareth Rees <grees@undo.io> (tiny change)
3674 * cli/cli-script.c (execute_control_commands): don't set
3675 instream to nullptr here as this breaks the from_tty argument
3676 to gdb.execute in Python.
3677 (execute_user_command): set instream to nullptr here instead.
3679 2020-09-25 Simon Marchi <simon.marchi@efficios.com>
3681 * infrun.h (infrun_debug_printf): Fix formatting.
3682 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
3684 2020-09-25 Saagar Jha <saagar@saagarjha.com>
3686 * compile/compile-object-load.h (struct munmap_list): Add
3687 explicitly-defined move constructor.
3689 2020-09-24 Tom Tromey <tromey@adacore.com>
3692 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
3694 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
3695 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
3696 (tui_prev_win): Rewrite.
3698 2020-09-23 Hannes Domani <ssbssa@yahoo.de>
3700 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
3701 in WOW64 processes as SIGINT.
3702 * nat/windows-nat.h: Make wow64_process a shared variable.
3703 * windows-nat.c: Remove static wow64_process variable.
3705 2020-09-23 Tom Tromey <tom@tromey.com>
3708 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
3709 offset and bit size.
3710 * printcmd.c (print_scalar_formatted): Handle zero-length
3712 (print_scalar_formatted): Use bit_size_differs_p.
3713 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
3715 (union type_specific): <int_stuff>: New member.
3716 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
3718 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
3719 TYPE_SPECIFIC_FIELD.
3720 (recursive_dump_type, copy_type_recursive): Update.
3721 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
3722 DW_AT_data_bit_offset.
3724 2020-09-23 Tom Tromey <tom@tromey.com>
3726 * utils.h (class gdb_argv): Add move operators.
3727 <append>: New methods.
3728 * compile/compile.c (build_argc_argv): Remove.
3729 (compile_args_argc): Remove.
3730 (compile_args_argv): Change type.
3731 (set_compile_args): Simplify.
3732 (append_args): Remove.
3733 (filter_args): Remove argcp parameter.
3734 (get_args): Return gdb_argv. Simplify.
3735 (compile_to_object): Update.
3737 2020-09-23 Tom Tromey <tom@tromey.com>
3739 * compile/compile-object-run.c (do_module_cleanup)
3740 <~do_module_cleanup> :Remove.
3741 (do_module_cleanup): Update.
3742 * compile/compile-object-load.h (struct munmap_list): Add move
3743 assignment operator.
3744 <source_file>: Now a std::string.
3745 <munmap_list>: Rename. No longer a pointer.
3746 * compile/compile-object-load.c (struct setup_sections_data): Add
3748 <setup_one_section>: Declare.
3749 <munmap_list>: Move earlier.
3750 <m_bfd>: New member.
3751 <m_last_size, m_last_section_first, m_last_prot,
3752 m_last_max_alignment>: Rename, add initializers where needed.
3753 (setup_sections_data::setup_one_section): Rename from
3754 setup_sections. Update.
3755 (compile_object_load): Update. Don't use bfd_map_over_sections.
3757 2020-09-23 Tom Tromey <tom@tromey.com>
3759 * compile/compile-object-run.c (struct do_module_cleanup): Add
3760 parameters to constructor. Update destructor.
3761 <source_file, scope, scope_data, out_value_type, out_value_addr,
3762 munmap_list_head, objfile_name_string>: Remove.
3763 <module>: New member.
3764 (do_module_cleanup): Update.
3765 (compile_object_run): Update.
3767 2020-09-23 Tom Tromey <tom@tromey.com>
3769 * compile/compile.c (eval_compile_command): Update.
3770 * compile/compile-object-run.h (compile_object_run): Take a
3772 * compile/compile-object-run.c (compile_object_run): Take a
3774 * compile/compile-object-load.h (struct compile_module): Add
3775 constructor, destructor.
3776 (compile_module_up): New typedef.
3777 (compile_object_load): Return compile_object_up.
3778 * compile/compile-object-load.c (compile_object_load): Return
3781 2020-09-23 Tom Tromey <tom@tromey.com>
3783 * compile/compile-object-run.c (struct do_module_cleanup): Add
3784 constructor, destructor.
3785 <objfile_name_string>: Don't use struct hack.
3786 (do_module_cleanup): Use delete.
3787 (compile_object_run): Use new.
3789 2020-09-23 Tom Tromey <tom@tromey.com>
3791 * compile/compile-cplus-types.c
3792 (compile_cplus_convert_struct_or_union): Use std::vector.
3793 (compile_cplus_convert_func): Likewise.
3794 * compile/compile-c-types.c (convert_func): Use std::vector.
3796 2020-09-21 Tom Tromey <tromey@adacore.com>
3798 * sparc-tdep.c (sparc32_skip_prologue): Use
3799 skip_prologue_using_sal.
3801 2020-09-19 Tom Tromey <tom@tromey.com>
3803 * symfile.c (add_section_size_callback): Remove.
3804 (load_one_section): Rename from load_section_callback. Change
3806 (generic_load): Use foreach.
3808 2020-09-19 Tom Tromey <tom@tromey.com>
3810 * exec.c (add_to_section_table): Remove.
3811 (build_section_table): Use foreach.
3813 2020-09-19 Tom Tromey <tom@tromey.com>
3815 * elfread.c (elf_locate_sections): Change parameters.
3816 (elf_symfile_read): Use foreach.
3818 2020-09-19 Tom Tromey <tom@tromey.com>
3820 * cli/cli-dump.c (struct callback_data): Remove.
3821 (restore_one_section): Rename from restore_section_callback.
3823 (restore_binary_file): Change parameters.
3824 (restore_command): Use foreach.
3826 2020-09-19 Tom Tromey <tom@tromey.com>
3828 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
3829 (gcore_copy_callback): Likewise.
3830 (gcore_memory_sections): Use foreach.
3832 2020-09-19 Tom Tromey <tom@tromey.com>
3834 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
3835 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
3837 (generic_elf_osabi_sniffer): Use foreach.
3838 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
3839 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
3841 2020-09-19 Tom Tromey <tom@tromey.com>
3843 * dwarf2/read.c (locate_dwz_sections): Change parameters.
3844 (dwarf2_get_dwz_file): Use foreach.
3845 (dwarf2_locate_dwo_sections): Change parameters.
3846 (open_and_init_dwo_file): Use foreach.
3847 (dwarf2_locate_common_dwp_sections): Change parameters.
3848 (open_and_init_dwp_file): Use foreach.
3850 2020-09-19 Tom Tromey <tom@tromey.com>
3852 * symfile.h: (find_lowest_section): Don't declare.
3853 * symfile.c (find_lowest_section): Now static. Change
3855 (struct place_section_arg): Remove.
3856 (place_section): Change parameters.
3857 (addr_info_make_relative): Use foreach.
3858 (symfile_dummy_outputs): Remove.
3859 (default_symfile_relocate): Use foreach.
3861 2020-09-19 Tom Tromey <tom@tromey.com>
3863 * objfiles.c (add_to_objfile_sections): Rename from
3864 add_to_objfile_sections_full.
3865 (add_to_objfile_sections): Remove.
3866 (build_objfile_section_table): Use foreach.
3868 2020-09-19 Tom Tromey <tom@tromey.com>
3870 * stap-probe.c (get_stap_base_address_1): Remove.
3871 (get_stap_base_address): Use foreach.
3873 2020-09-19 Tom Tromey <tom@tromey.com>
3875 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
3877 (gdb_bfd_close_or_warn): Use foreach.
3879 2020-09-19 Tom Tromey <tom@tromey.com>
3881 * corelow.c (add_to_thread_list): Change parameters.
3882 (core_target_open): Use foreach.
3884 2020-09-19 Tom Tromey <tom@tromey.com>
3886 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
3889 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3891 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
3894 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3896 * eval.c: Remove 'f-lang.h' include.
3897 (value_f90_subarray): Moved to f-lang.c.
3898 (eval_call): Renamed to...
3899 (evaluate_subexp_do_call): ...this, is no longer static, header
3900 comment moved into header file.
3901 (evaluate_funcall): Update call to eval_call.
3902 (skip_undetermined_arglist): Moved to f-lang.c.
3903 (fortran_value_subarray): Likewise.
3904 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3905 moved to evaluate_subexp_f.
3906 (calc_f77_array_dims): Moved to f-lang.c
3907 * expprint.c (print_subexp_funcall): New function.
3908 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3909 moved to print_subexp_f, OP_FUNCALL uses new function.
3910 (dump_subexp_body_funcall): New function.
3911 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
3912 moved to dump_subexp_f, OP_FUNCALL uses new function.
3913 * expression.h (evaluate_subexp_do_call): Declare.
3914 * f-lang.c (value_f90_subarray): Moved from eval.c.
3915 (skip_undetermined_arglist): Likewise.
3916 (calc_f77_array_dims): Likewise.
3917 (fortran_value_subarray): Likewise.
3918 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
3919 (operator_length_f): Likewise.
3920 (print_subexp_f): Likewise.
3921 (dump_subexp_body_f): Likewise.
3922 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
3923 declaration of this operation to here.
3924 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
3925 support moved to operator_length_f.
3926 * parser-defs.h (dump_subexp_body_funcall): Declare.
3927 (print_subexp_funcall): Declare.
3928 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
3929 fortran-operator.def.
3931 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3933 * eval.c (fortran_value_subarray): New function, content is taken
3935 (evaluate_subexp_standard): ...here, in two places. Now arrays
3936 and strings both call the new function.
3937 (calc_f77_array_dims): Add header comment, handle strings.
3939 2020-09-18 Victor Collod <vcollod@nvidia.com>
3942 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
3943 (i386_analyze_prologue): Call i386_skip_endbr.
3945 2020-09-18 Tom Tromey <tromey@adacore.com>
3947 * windows-nat.c (struct windows_nat_target) <wait>: Update.
3948 (windows_nat_target::wait): Update.
3949 * target/wait.h (enum target_wait_flag): New. Use
3950 DEF_ENUM_FLAGS_TYPE.
3951 * target/target.h (target_wait): Change type of options.
3952 * target.h (target_options_to_string, default_target_wait):
3954 (struct target_ops) <wait>: Change type of options.
3955 * target.c (target_wait, default_target_wait, do_option): Change
3957 (target_options_to_string): Likewise.
3958 * target-delegates.c: Rebuild.
3959 * target-debug.h (target_debug_print_target_wait_flags): Rename
3960 from target_debug_print_options.
3961 * sol-thread.c (class sol_thread_target) <wait>: Update.
3962 (sol_thread_target::wait): Update.
3963 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
3964 (rs6000_nat_target::wait): Update.
3965 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
3967 (remote_target::wait_ns, remote_target::wait_as): Change type of
3969 (remote_target::wait): Update.
3970 * remote-sim.c (struct gdbsim_target) <wait>: Update.
3971 (gdbsim_target::wait): Update.
3972 * record-full.c (class record_full_base_target) <wait>: Update.
3973 (record_full_wait_1): Change type of "options".
3974 (record_full_base_target::wait): Update.
3975 * record-btrace.c (class record_btrace_target) <wait>: Update.
3976 (record_btrace_target::wait): Update.
3977 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
3979 (ravenscar_thread_target::wait): Update.
3980 * procfs.c (class procfs_target) <wait>: Update.
3981 (procfs_target::wait): Update.
3982 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
3983 * obsd-nat.c (obsd_nat_target::wait): Update.
3984 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
3985 (nto_procfs_target::wait): Update.
3986 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
3987 * nbsd-nat.c (nbsd_wait): Change type of "options".
3988 (nbsd_nat_target::wait): Update.
3989 * linux-thread-db.c (class thread_db_target) <wait>: Update.
3990 (thread_db_target::wait): Update.
3991 * linux-nat.h (class linux_nat_target) <wait>: Update.
3992 * linux-nat.c (linux_nat_target::wait): Update.
3993 (linux_nat_wait_1): Update.
3994 * infrun.c (do_target_wait_1, do_target_wait): Change type of
3996 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
3997 * inf-ptrace.c (inf_ptrace_target::wait): Update.
3998 * go32-nat.c (struct go32_nat_target) <wait>: Update.
3999 (go32_nat_target::wait): Update.
4000 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
4001 * gnu-nat.c (gnu_nat_target::wait): Update.
4002 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
4003 * fbsd-nat.c (fbsd_nat_target::wait): Update.
4004 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
4005 * darwin-nat.c (darwin_nat_target::wait): Update.
4006 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
4007 (bsd_uthread_target::wait): Update.
4008 * aix-thread.c (class aix_thread_target) <wait>: Update.
4009 (aix_thread_target::wait): Update.
4011 2020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
4013 * compile/compile-object-run.c (create_copied_type_recursive): New
4015 (compile_object_run): Use new function.
4017 2020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
4019 * NEWS: Mention x86_64 Cygwin core file support.
4021 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4023 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
4024 (core_process_module_section): Handle NOTE_INFO_MODULE64.
4026 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4028 * windows-tdep.h: Add prototypes.
4029 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
4030 (i386_windows_core_pid_to_str): Move and rename ...
4031 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
4032 (windows_core_pid_to_str): ... and here.
4033 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
4035 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4036 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
4037 (amd64_windows_init_abi_common): ... and register.
4039 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4041 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
4042 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
4044 2020-09-18 Pedro Alves <pedro@palves.net>
4047 * thread.c (thread_find_command): Switch inferior before calling
4050 2020-09-17 Tom Tromey <tromey@adacore.com>
4052 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
4053 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
4054 (tdesc_arch_data_up): New typedef.
4055 (tdesc_use_registers, tdesc_data_alloc): Update.
4056 (tdesc_data_cleanup): Don't declare.
4057 * target-descriptions.c (tdesc_data_alloc): Return a
4059 (tdesc_arch_data_deleter::operator()): Rename from
4060 tdesc_data_cleanup. Change argument type.
4061 (tdesc_use_registers): Change early_data to an rvalue reference.
4062 (tdesc_use_registers): Don't use delete.
4063 * sparc-tdep.c (sparc32_gdbarch_init): Update.
4064 * s390-tdep.c (s390_gdbarch_init): Update.
4065 * rx-tdep.c (rx_gdbarch_init): Update.
4066 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4067 * riscv-tdep.c (riscv_gdbarch_init): Update.
4068 * or1k-tdep.c (or1k_gdbarch_init): Update.
4069 * nios2-tdep.c (nios2_gdbarch_init): Update.
4070 * nds32-tdep.c (nds32_gdbarch_init): Update.
4071 * mips-tdep.c (mips_gdbarch_init): Update.
4072 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
4073 * m68k-tdep.c (m68k_gdbarch_init): Update.
4074 * i386-tdep.c (i386_gdbarch_init): Update.
4075 * arm-tdep.c (arm_gdbarch_init): Update.
4076 * arc-tdep.c (arc_tdesc_init): Update.
4077 (arc_gdbarch_init): Update.
4078 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
4080 2020-09-17 Hannes Domani <ssbssa@yahoo.de>
4082 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
4083 for WOW64 processes.
4085 2020-09-17 Tom Tromey <tom@tromey.com>
4087 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
4089 2020-09-17 Tom Tromey <tom@tromey.com>
4091 * value.c (preserve_values): Update.
4092 * python/py-type.c (save_objfile_types): Update.
4093 * guile/scm-type.c (save_objfile_types): Update.
4094 * gdbtypes.h (create_copied_types_hash): Return htab_up.
4095 * gdbtypes.c (create_copied_types_hash): Return htab_up.
4096 * compile/compile-object-run.c (compile_object_run): Update.
4098 2020-09-17 Tom Tromey <tom@tromey.com>
4100 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
4102 <m_table>: Now htab_up.
4103 * typeprint.c (typedef_hash_table::recursively_update)
4104 (typedef_hash_table::add_template_parameters)
4105 (typedef_hash_table::typedef_hash_table): Update.
4106 (typedef_hash_table::~typedef_hash_table): Remove.
4107 (typedef_hash_table::typedef_hash_table)
4108 (typedef_hash_table::find_global_typedef)
4109 (typedef_hash_table::find_typedef): Update.
4111 2020-09-17 Tom Tromey <tom@tromey.com>
4113 * target-descriptions.c (tdesc_use_registers): Use htab_up.
4115 2020-09-17 Tom Tromey <tom@tromey.com>
4117 * linespec.c (class decode_compound_collector)
4118 <~decode_compound_collector>: Remove.
4119 <m_unique_syms>: Now htab_up.
4120 (decode_compound_collector::operator ()): Update.
4121 (class symtab_collector) <~symtab_collector>: Remove.
4122 <m_symtab_table>: Now htab_up.
4123 (symtab_collector::operator ()): Update.
4125 2020-09-17 Tom Tromey <tom@tromey.com>
4127 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
4128 (filename_seen_cache::clear): Update.
4129 (~filename_seen_cache): Remove.
4130 (filename_seen_cache::seen): Update.
4131 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
4133 <~filename_seen_cache>: Remove.
4136 2020-09-17 Tom Tromey <tom@tromey.com>
4138 * completer.c (completion_tracker::discard_completions)
4139 (completion_tracker::~completion_tracker)
4140 (completion_tracker::maybe_add_completion)
4141 (completion_tracker::remove_completion)
4142 (completion_tracker::recompute_lowest_common_denominator)
4143 (completion_tracker::build_completion_result): Update.
4144 * completer.h (class completion_tracker) <have_completions>:
4146 <m_entries_hash>: Now htab_up.
4148 2020-09-17 Tom Tromey <tom@tromey.com>
4150 * breakpoint.c (ambiguous_names_p): Use htab_up.
4152 2020-09-17 Tom Tromey <tom@tromey.com>
4154 * auto-load.c (struct auto_load_pspace_info)
4155 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
4156 <loaded_script_files, loaded_script_texts>: Change type to
4158 (~auto_load_pspace_info) Remove.
4159 (init_loaded_scripts_info, maybe_add_script_file)
4160 (maybe_add_script_text, auto_load_info_scripts): Update.
4162 2020-09-17 Tom Tromey <tromey@adacore.com>
4164 * c-exp.y (name_obstack): Now static.
4166 2020-09-17 Chungyi Chi <demonic@csie.io>
4168 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
4170 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
4172 * breakpoint.h (init_catchpoint): Change int parameter to bool.
4173 (add_solib_catchpoint): Likewise.
4174 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
4176 (add_solib_catchpoint): Change int parameter/variable to bool.
4177 (catch_load_or_unload): Likewise.
4178 (init_catchpoint): Likewise.
4179 (create_fork_vfork_event_catchpoint): Likewise.
4180 (catch_fork_command_1): Likewise.
4181 (catch_exec_command_1): Likewise.
4183 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
4185 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
4186 Change instance_flags to m_instance_flags.
4188 2020-09-16 Tom Tromey <tromey@adacore.com>
4191 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
4193 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4195 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
4197 (fbsd_nat_target::insert_exec_catchpoint)
4198 (fbsd_nat_target::remove_exec_catchpoint): Always define.
4199 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
4200 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
4202 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4204 * configure.ac: Remove check for kinfo_getvmmap().
4205 * configure, config.in: Regenerate.
4206 * fbsd-nat.c (fbsd_read_mapping): Remove
4207 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
4208 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
4209 kinfo_get_vmmap() are always present.
4211 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4213 * fbsd-nat.c: Always include support for
4214 TARGET_OBJECT_SIGNAL_INFO.
4216 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4218 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
4219 sysctl and remove procfs fallback.
4221 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4223 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
4224 * fbsd-nat.h: Likewise.
4226 2020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4228 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
4231 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4233 * ada-lang.c (ada_language_data): Delete.
4234 (ada_language): Remove references to ada_language_data.
4235 * c-lang.c (c_language_data): Delete.
4236 (c_language): Remove references to c_language_data.
4237 (cplus_language_data): Delete.
4238 (cplus_language): Remove references to cplus_language_data.
4239 (asm_language_data): Delete.
4240 (asm_language): Remove references to asm_language_data.
4241 (minimal_language_data): Delete.
4242 (minimal_language): Remove references to minimal_language_data.
4243 * d-lang.c (d_language_data): Delete.
4244 (d_language): Remove references to d_language_data.
4245 * f-lang.c (f_language_data): Delete.
4246 (f_language): Remove references to f_language_data.
4247 * go-lang.c (go_language_data): Delete.
4248 (go_language): Remove references to go_language_data.
4249 * language.c (unknown_language_data): Delete.
4250 (unknown_language): Remove references to unknown_language_data.
4251 (auto_language_data): Delete.
4252 (auto_language): Remove references to auto_language_data.
4253 * language.h (language_data): Delete struct.
4254 (language_defn): No longer inherit from language_data.
4255 * m2-lang.c (m2_language_data): Delete.
4256 (m2_language): Remove references to m2_language_data.
4257 * objc-lang.c (objc_language_data): Delete.
4258 (objc_language): Remove references to objc_language_data.
4259 * opencl-lang.c (opencl_language_data): Delete.
4260 (opencl_language): Remove references to opencl_language_data.
4261 * p-lang.c (pascal_language_data): Delete.
4262 (pascal_language): Remove references to pascal_language_data.
4263 * rust-lang.c (rust_language_data): Delete.
4264 (rust_language): Remove references to rust_language_data.
4266 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4268 * ada-lang.c (ada_language_data): Remove la_op_print_tab
4270 (ada_language::opcode_print_table): New member function.
4271 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
4272 (c_language::opcode_print_table): New member function.
4273 (cplus_language_data): Remove la_op_print_tab initializer.
4274 (cplus_language::opcode_print_table): New member function.
4275 (asm_language_data): Remove la_op_print_tab initializer.
4276 (asm_language::opcode_print_table): New member function.
4277 (minimal_language_data): Remove la_op_print_tab initializer.
4278 (minimal_language::opcode_print_table): New member function.
4279 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
4280 (d_language::opcode_print_table): New member function.
4281 * expprint.c (print_subexp_standard): Update call to
4283 (op_string): Likewise.
4284 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
4285 (f_language::opcode_print_table): New member function.
4286 * go-lang.c (go_language_data): Remove la_op_print_tab
4288 (go_language::opcode_print_table): New member function.
4289 * language.c (unknown_language_data): Remove la_op_print_tab
4291 (unknown_language::opcode_print_table): New member function.
4292 (auto_language_data): Remove la_op_print_tab initializer.
4293 (auto_language::opcode_print_table): New member function.
4294 * language.h (language_data): Remove la_op_print_tab field.
4295 (language_defn::opcode_print_table): Declare new member function.
4296 * m2-lang.c (m2_language_data): Remove la_op_print_tab
4298 (m2_language::opcode_print_table): New member function.
4299 * objc-lang.c (objc_language_data): Remove la_op_print_tab
4301 (objc_language::opcode_print_table): New member function.
4302 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
4304 (opencl_language::opcode_print_table): New member function.
4305 * p-lang.c (pascal_language_data): Remove la_op_print_tab
4307 (pascal_language::opcode_print_table): New member function.
4308 * rust-lang.c (rust_language_data): Remove la_op_print_tab
4310 (rust_language::opcode_print_table): New member function.
4312 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4314 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
4315 (ada_language::expression_ops): New member function.
4316 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
4317 (c_language::expression_ops): New member function.
4318 (cplus_language_data): Remove la_exp_desc initializer.
4319 (cplus_language::expression_ops): New member function.
4320 (asm_language_data): Remove la_exp_desc initializer.
4321 (asm_language::expression_ops): New member function.
4322 (minimal_language_data): Remove la_exp_desc initializer.
4323 (minimal_language::expression_ops): New member function.
4324 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
4325 (d_language::expression_ops): New member function.
4326 * eval.c (evaluate_subexp): Update call to expression_ops.
4327 * expprint.c (print_subexp): Likewise.
4328 (op_name): Likewise.
4329 (dump_subexp_body): Likewise.
4330 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
4331 (f_language::expression_ops): New member function.
4332 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
4333 (go_language::expression_ops): New member function.
4334 * language.c (language_defn::expression_ops): New function.
4335 (unknown_language_data): Remove la_exp_desc initializer.
4336 (auto_language_data): Likewise.
4337 * language.h (language_data): Remove la_exp_desc field.
4338 (language_defn::expression_ops): Declare new member function.
4339 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
4340 (m2_language::expression_ops): New member function.
4341 * objc-lang.c (objc_language_data): Remove la_exp_desc
4343 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
4345 (opencl_language::expression_ops): New member function.
4346 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
4347 * parse.c (operator_length): Update call to expression_ops.
4348 (exp_iterate): Likewise.
4349 * rust-lang.c (rust_language_data): Remove la_exp_desc
4351 (ruse_language::expression_ops): New member function.
4353 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4355 * ada-lang.c (ada_language_data): Remove la_varobj_ops
4357 (ada_language::varobj_ops): New member function.
4358 * c-lang.c (c_language_data): Remove la_varobj_ops
4360 (cplus_language_data): Likewise.
4361 (cplus_language::varobj_ops): New member function.
4362 (asm_language_data): Remove la_varobj_ops initializer.
4363 (minimal_language_data): Likewise.
4364 * d-lang.c (d_language_data): Likewise.
4365 * f-lang.c (f_language_data): Likewise.
4366 * go-lang.c (go_language_data): Likewise.
4367 * language.c (language_defn::varobj_ops): New function.
4368 (unknown_language_data): Remove la_varobj_ops
4370 (auto_language_data): Likewise.
4371 * language.h (language_data): Remove la_varobj_ops field.
4372 (language_defn::varobj_ops): Declare new member function.
4373 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
4374 * objc-lang.c (objc_language_data): Likewise.
4375 * opencl-lang.c (opencl_language_data): Likewise.
4376 * p-lang.c (pascal_language_data): Likewise.
4377 * rust-lang.c (rust_language_data): Likewise.
4378 * varobj.c (varobj_create): Update call to varobj_ops.
4379 * varobj.h (default_varobj_ops): Delete define.
4381 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4383 * ada-lang.c (ada_language_data): Remove la_macro_expansion
4385 * c-lang.c (c_language_data): Likewise.
4386 (c_language::macro_expansion): New member function.
4387 (cplus_language_data): Likewise.
4388 (cplus_language::macro_expansion): New member function.
4389 (asm_language_data): Likewise.
4390 (asm_language::macro_expansion): New member function.
4391 (minimal_language_data): Likewise.
4392 (minimal_language::macro_expansion): New member function.
4393 * d-lang.c (d_language_data): Remove la_macro_expansion
4395 * f-lang.c (f_language_data): Likewise.
4396 * go-lang.c (go_language_data): Likewise.
4397 * language.c (unknown_language_data): Likewise.
4398 (auto_language_data): Likewise.
4399 * language.h (language_data): Remove la_macro_expansion field.
4400 (language_defn::macro_expansion): New member function.
4401 * m2-lang.c (m2_language_data): Remove la_macro_expansion
4403 * objc-lang.c (objc_language_data): Likewise.
4404 (objc_language::macro_expansion): New member function.
4405 * opencl-lang.c (opencl_language_data): Likewise.
4406 (opencl_language::macro_expansion): New member function.
4407 * p-lang.c (pascal_language_data): Remove la_macro_expansion
4409 * rust-lang.c (rust_language_data): Likewise.
4410 * symtab.c (default_collect_symbol_completion_matches_break_on):
4411 Update call to macro_expansion.
4413 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4415 * ada-lang.c (ada_language_data): Remove la_array_ordering
4417 * c-lang.c (c_language_data): Likewise.
4418 (cplus_language_data): Likewise.
4419 (asm_language_data): Likewise.
4420 (minimal_language_data): Likewise.
4421 * d-lang.c (d_language_data): Likewise.
4422 * dwarf2/read.c (read_array_order): Update for call to
4424 * f-lang.c (f_language_data): Remove la_array_ordering
4426 (f_language::array_ordering): New member function.
4427 * go-lang.c (go_language_data): Remove la_array_ordering
4429 * language.c (unknown_language_data): Likewise.
4430 (auto_language_data): Likewise.
4431 * language.h (language_data): Delete la_array_ordering field.
4432 (language_defn::array_ordering): New member function.
4433 * m2-lang.c (m2_language_data): Remove la_array_ordering
4435 * objc-lang.c (objc_language_data): Likewise.
4436 * opencl-lang.c (opencl_language_data): Likewise.
4437 * p-lang.c (pascal_language_data): Likewise.
4438 * rust-lang.c (rust_language_data): Likewise.
4440 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4442 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
4444 * c-lang.c (c_language_data): Likewise.
4445 (cplus_language_data): Likewise.
4446 (asm_language_data): Likewise.
4447 (minimal_language_data): Likewise.
4448 * d-lang.c (d_language_data): Likewise.
4449 * f-lang.c (f_language_data): Likewise.
4450 (f_language::case_sensitivity): New member function.
4451 * go-lang.c (go_language_data): Remove la_case_sensitivity
4453 * language.c (enum case_mode): Moved here from language.h.
4454 (case_mode): Make static.
4455 (show_case_command): Update for case_sensitivity being a method.
4456 (set_case_command): Likewise.
4457 (set_range_case): Likewise.
4458 (unknown_language_data): Remove la_case_sensitivity initializer.
4459 (auto_language_data): Likewise.
4460 * language.h (case_mode): Delete, move enum declaration to
4462 (language_data): Delete la_case_sensitivity field.
4463 (language_defn::case_sensitivity): New member function.
4464 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
4466 * objc-lang.c (objc_language_data): Likewise.
4467 * opencl-lang.c (opencl_language_data): Likewise.
4468 * p-lang.c (pascal_language_data): Likewise.
4469 * rust-lang.c (rust_language_data): Likewise.
4471 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4473 * ada-lang.c (ada_language_data): Remove la_range_check
4475 * c-lang.c (c_language_data): Likewise.
4476 (cplus_language_data): Likewise.
4477 (asm_language_data): Likewise.
4478 (minimal_language_data): Likewise.
4479 * d-lang.c (d_language_data): Likewise.
4480 * f-lang.c (f_language_data): Likewise.
4481 (f_language::range_checking_on_by_default): New member function.
4482 * go-lang.c (go_language_data): Remove la_range_check initializer.
4483 * language.c (enum range_mode): Moved here from language.h.
4484 (range_mode): Made static.
4485 (show_range_command): Update to use
4486 range_checking_on_by_default.
4487 (set_range_command): Likewise.
4488 (set_range_case): Likewise.
4489 (unknown_language_data): Remove la_range_check initializer.
4490 (auto_language_data): Likewise.
4491 * language.h (range_mode): Delete. Enum definition moved to
4493 (language_data): Remove la_range_check field.
4494 (language_defn::range_checking_on_by_default): New member
4496 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
4497 (m2_language::range_checking_on_by_default): New member function.
4498 * objc-lang.c (objc_language_data): Remove la_range_check
4500 * opencl-lang.c (opencl_language_data): Likewise.
4501 * p-lang.c (pascal_language_data): Likewise.
4502 (pascal_language::range_checking_on_by_default): New member
4504 * rust-lang.c (rust_language_data): Remove la_range_check
4506 (rust_language::range_checking_on_by_default): New member
4509 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4511 * dwarf2/read.c (dwarf2_physname): Remove special case for
4513 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
4516 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4518 * ada-lang.c (ada_language_data): Remove
4519 la_store_sym_names_in_linkage_form_p initializer.
4520 (ada_language::store_sym_names_in_linkage_form_p): New member
4522 * c-lang.c (c_language_data): Remove
4523 la_store_sym_names_in_linkage_form_p initializer.
4524 (c_language::store_sym_names_in_linkage_form_p): New member
4526 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
4528 (asm_language_data): Likewise.
4529 (asm_language::store_sym_names_in_linkage_form_p): New member
4531 (minimal_language_data): Remove
4532 la_store_sym_names_in_linkage_form_p initializer.
4533 (minimal_language::store_sym_names_in_linkage_form_p): New member
4535 * d-lang.c (d_language_data): Remove
4536 la_store_sym_names_in_linkage_form_p initializer.
4537 * dwarf2/read.c (dwarf2_physname): Update call to
4538 store_sym_names_in_linkage_form_p.
4539 * f-lang.c (f_language_data): Remove
4540 la_store_sym_names_in_linkage_form_p initializer.
4541 * go-lang.c (go_language_data): Remove
4542 la_store_sym_names_in_linkage_form_p initializer.
4543 * language.c (unknown_language_data): Remove
4544 la_store_sym_names_in_linkage_form_p initializer.
4545 (unknown_language::store_sym_names_in_linkage_form_p): New member
4547 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
4549 (auto_language::store_sym_names_in_linkage_form_p): New member
4551 * language.h (language_data): Remove
4552 la_store_sym_names_in_linkage_form_p member variable.
4553 (language_defn::store_sym_names_in_linkage_form_p): New member
4555 * m2-lang.c (m2_language_data): Remove
4556 la_store_sym_names_in_linkage_form_p initializer.
4557 * objc-lang.c (objc_language_data): Likewise.
4558 * opencl-lang.c (opencl_language_data): Likewise.
4559 * p-lang.c (pascal_language_data): Likewise.
4560 * rust-lang.c (rust_language_data): Likewise.
4562 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4564 * ada-lang.c (ada_language_data): Remove string_lower_bound
4566 * c-lang.c (c_language_data): Likewise.
4567 (cplus_language_data): Likewise.
4568 (asm_language_data): Likewise.
4569 (minimal_language_data): Likewise.
4570 * d-lang.c (d_language_data): Likewise.
4571 * f-lang.c (f_language_data): Likewise.
4572 * go-lang.c (go_language_data): Likewise.
4573 * language.c (unknown_language_data): Likewise.
4574 (auto_language_data): Likewise.
4575 * language.h (language_data): Remove string_lower_bound field.
4576 (language_defn::string_lower_bound): New member function.
4577 * m2-lang.c (m2_language_data): Remove string_lower_bound
4579 (m2_language::string_lower_bound): New member function.
4580 * objc-lang.c (objc_language_data): Remove string_lower_bound
4582 * opencl-lang.c (opencl_language_data): Likewise.
4583 * p-lang.c (pascal_language_data): Likewise.
4584 * rust-lang.c (rust_language_data): Likewise.
4585 * valops.c (value_cstring): Update call to string_lower_bound.
4586 (value_string): Likewise.
4587 * value.c (allocate_repeated_value): Likewise.
4589 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4591 * valops.c (value_repeat): Fix incorrect argument name in comment.
4593 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4595 * ada-lang.c (ada_language_data): Remove c_style_arrays
4597 (ada_language::c_style_arrays_p): New member fuction.
4598 * c-lang.c (c_language_data): Remove c_style_arrays
4600 (cplus_language_data): Likewise.
4601 (asm_language_data): Likewise.
4602 (minimal_language_data): Likewise.
4603 * d-lang.c (d_language_data): Likewise.
4604 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
4605 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
4606 (f_language::c_style_arrays_p): New member function.
4607 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
4608 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
4609 * language.c (unknown_language_data): Remove c_style_arrays
4611 (auto_language_data): Likewise.
4612 * language.h (language_data): Remove c_style_arrays field.
4613 (language_defn::c_style_arrays_p): New member function.
4614 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
4615 (m2_language::c_style_arrays_p): New member function.
4616 * objc-lang.c (objc_language_data): Remove c_style_arrays
4618 * opencl-lang.c (opencl_language_data): Likewise.
4619 * p-lang.c (pascal_language_data): Likewise.
4620 * rust-lang.c (rust_language_data): Likewise.
4621 * valarith.c (value_subscript): Update call to c_style_arrays_p,
4622 and update local variable to a bool.
4623 * valops.c (value_cast): Update call to c_style_arrays_p.
4624 (value_array): Likewise.
4625 * value.c (coerce_array): Likewise.
4627 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4629 * ada-lang.c (ada_language_data): Remove la_language initializer.
4630 * c-lang.c (c_language_data): Likewise.
4631 (cplus_language_data): Likewise.
4632 (asm_language_data): Likewise.
4633 (minimal_language_data): Likewise.
4634 * d-lang.c (d_language_data): Likewise.
4635 * f-lang.c (f_language_data): Likewise.
4636 * go-lang.c (go_language_data): Likewise.
4637 * language.c (unknown_language_data): Likewise.
4638 (auto_language_data): Likewise.
4639 * language.h (language_data): Remove la_language field.
4640 (language_defn::language_defn): Initialise la_language field.
4641 (language_defn::la_language): New member variable.
4642 * m2-lang.c (m2_language_data): Remove la_language field.
4643 * objc-lang.c (objc_language_data): Likewise.
4644 * opencl-lang.c (opencl_language_data): Likewise.
4645 * p-lang.c (pascal_language_data): Likewise.
4646 * rust-lang.c (rust_language_data): Likewise.
4648 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4650 * ada-lang.c (ada_extensions): Delete, moved into
4651 ada_language::filename_extensions.
4652 (ada_language_data): Remove la_filename_extensions initializer.
4653 (ada_language::filename_extensions): New member function.
4654 * c-lang.c (c_extensions): Delete, moved into
4655 c_language::filename_extensions.
4656 (c_language_data): Remove la_filename_extensions initializer.
4657 (c_language::filename_extensions): New member function.
4658 (cplus_extensions): Delete, moved into
4659 cplus_language::filename_extensions.
4660 (cplus_language_data): Remove la_filename_extensions initializer.
4661 (cplus_language::filename_extensions): New member function.
4662 (asm_extensions): Delete, moved into
4663 asm_language::filename_extensions.
4664 (asm_language_data): Remove la_filename_extensions initializer.
4665 (asm_language::filename_extensions): New member function.
4666 (minimal_language_data): Remove la_filename_extensions
4668 * d-lang.c (d_extensions): Delete, moved into
4669 d_language::filename_extensions.
4670 (d_language_data): Remove la_filename_extensions initializer.
4671 (d_language::filename_extensions): New member function.
4672 * f-lang.c (f_extensions): Delete, moved into
4673 f_language::filename_extensions.
4674 (f_language_data): Remove la_filename_extensions initializer.
4675 (f_language::filename_extensions): New member function.
4676 * go-lang.c (go_language_data): Remove la_filename_extensions
4678 * language.c (add_set_language_command): Update now that
4679 filename_extensions returns a vector.
4680 (unknown_language_data): Remove la_filename_extensions
4682 (auto_language_data): Likewise.
4683 * language.h (language_data): Remove la_filename_extensions field.
4684 (language_defn::filename_extensions): New member function.
4685 * m2-lang.c (m2_language_data): Remove la_filename_extensions
4687 * objc-lang.c (objc_extensions): Delete, moved into
4688 objc_language::filename_extensions.
4689 (objc_language_data): Remove la_filename_extensions initializer.
4690 (objc_language::filename_extensions): New member function.
4691 * opencl-lang.c (opencl_language_data): Remove
4692 la_filename_extensions initializer.
4693 * p-lang.c (pascal_extensions): Delete, moved into
4694 pascal_language::filename_extensions.
4695 (pascal_language_data): Remove la_filename_extensions initializer.
4696 (pascal_language::filename_extensions): New member function.
4697 * rust-lang.c (rust_extensions): Delete, moved into
4698 rust_language::filename_extensions.
4699 (rust_language_data): Remove la_filename_extensions initializer.
4700 (rust_language::filename_extensions): New member function.
4701 * symfile.c (add_filename_language): Add new assert.
4703 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4705 * ada-lang.c (ada_language_data): Remove la_name and
4706 la_natural_name initializers.
4707 (ada_language::name): New member function.
4708 (ada_language::natural_name): New member function.
4709 * c-lang.c (c_language_data): Remove la_name and
4710 la_natural_name initializers.
4711 (c_language::name): New member function.
4712 (c_language::natural_name): New member function.
4713 (cplus_language_data): Remove la_name and
4714 la_natural_name initializers.
4715 (cplus_language::name): New member function.
4716 (cplus_language::natural_name): New member function.
4717 (asm_language_data): Remove la_name and
4718 la_natural_name initializers.
4719 (asm_language::name): New member function.
4720 (asm_language::natural_name): New member function.
4721 (minimal_language_data): Remove la_name and
4722 la_natural_name initializers.
4723 (minimal_language::name): New member function.
4724 (minimal_language::natural_name): New member function.
4725 * compile/compile.c (compile_to_object): Update call to
4726 lanugage_defn::name.
4727 * d-lang.c (d_language_data): Remove la_name and
4728 la_natural_name initializers.
4729 (d_language::name): New member function.
4730 (d_language::natural_name): New member function.
4731 * expprint.c (print_subexp_standard): Update call to
4732 language_defn::name.
4733 (dump_raw_expression): Likewise
4734 (dump_prefix_expression): Likewise.
4735 * f-lang.c (f_language_data): Remove la_name and
4736 la_natural_name initializers.
4737 (f_language::name): New member function.
4738 (f_language::natural_name): New member function.
4739 * go-lang.c (go_language_data): Remove la_name and
4740 la_natural_name initializers.
4741 (go_language::name): New member function.
4742 (go_language::natural_name): New member function.
4743 * language.c (show_language_command): Update call to
4744 language_defn::name.
4745 (set_language_command): Likewise.
4746 (language_enum): Likewise.
4747 (language_str): Likewise.
4748 (add_set_language_command): Likewise, use
4749 language_defn::natural_name in the doc string.
4750 (unknown_language_data): Remove la_name and
4751 la_natural_name initializers.
4752 (unknown_language::name): New member function.
4753 (unknown_language::natural_name): New member function.
4754 (auto_language_data): Remove la_name and
4755 la_natural_name initializers.
4756 (auto_language::name): New member function.
4757 (auto_language::natural_name): New member function.
4758 (language_lookup_primitive_type_as_symbol): Update call to
4759 language_defn::name.
4760 * language.h (language_data): Remove la_name and la_natural_name
4762 (language_defn::name): New member function.
4763 (language_defn::natural_name): New member function.
4764 * m2-lang.c (m2_language_data): Remove la_name and
4765 la_natural_name initializers.
4766 (m2_language::name): New member function.
4767 (m2_language::natural_name): New member function.
4768 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
4769 language_defn::natural_name.
4770 * objc-lang.c (objc_language_data): Remove la_name and
4771 la_natural_name initializers.
4772 (objc_language::name): New member function.
4773 (objc_language::natural_name): New member function.
4774 * opencl-lang.c (opencl_language_data): Remove la_name and
4775 la_natural_name initializers.
4776 (opencl_language::name): New member function.
4777 (opencl_language::natural_name): New member function.
4778 * p-lang.c (pascal_language_data): Remove la_name and
4779 la_natural_name initializers.
4780 (pascal_language::name): New member function.
4781 (pascal_language::natural_name): New member function.
4782 * rust-lang.c (rust_language_data): Remove la_name and
4783 la_natural_name initializers.
4784 (rust_language::name): New member function.
4785 (rust_language::natural_name): New member function.
4786 * symtab.c (lookup_language_this): Update call to
4787 language_defn::name.
4789 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4791 * ada-lang.c (ada_language_data): Remove la_name_of_this
4793 * ax-gdb.c (gen_expr): Update call to name_of_this.
4794 * c-exp.y (classify_name): Likewise.
4795 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
4796 (cplus_language_data): Likewise.
4797 (cplus_language::name_of_this): New member function.
4798 (asm_language_data): Remove la_name_of_this initializer.
4799 (minimal_language_data): Likewise.
4800 * d-lang.c (d_language_data): Likewise.
4801 (d_language::name_of_this): New member function.
4802 * expprint.c (print_subexp_standard): Update call to name_of_this.
4803 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
4804 * go-lang.c (go_language_data): Likewise.
4805 * language.c (unknown_language_data): Likewise.
4806 (unknown_language::name_of_this): New member function.
4807 (auto_language_data): Remove la_name_of_this initializer.
4808 (auto_language::name_of_this): New member function.
4809 * language.h (language_data): Delete la_name_of_this member
4811 (language_defn::name_of_this): New member function.
4812 * m2-lang.c (m2_language_data): Remove la_name_of_this
4814 * objc-lang.c (objc_language_data): Likewise.
4815 (objc_language::name_of_this): New member function.
4816 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
4818 * p-lang.c (pascal_language_data): Likewise.
4819 (pascal_language::name_of_this): New member function.
4820 * rust-lang.c (rust_language_data): Remove la_name_of_this
4822 * symtab.c (lookup_language_this): Update call to name_of_this.
4823 (lookup_symbol_aux): Likewise.
4824 * valops.c (value_of_this): Likewise.
4826 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4828 * ada-lang.c (ada_language_data): Remove
4829 la_struct_too_deep_ellipsis initializer.
4830 (ada_language::struct_too_deep_ellipsis): New member function.
4831 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
4833 (cplus_language_data): Likewise.
4834 (asm_language_data): Likewise.
4835 (minimal_language_data): Likewise.
4836 * cp-valprint.c (cp_print_value): Update call to
4837 struct_too_deep_ellipsis.
4838 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
4840 * f-lang.c (f_language_data): Likewise.
4841 (f_language::struct_too_deep_ellipsis): New member function.
4842 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
4844 * language.c (unknown_language_data): Likewise.
4845 (auto_language_data): Likewise.
4846 * language.h (language_data): Delete la_struct_too_deep_ellipsis
4848 (language_defn::struct_too_deep_ellipsis): New member function.
4849 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
4851 * objc-lang.c (objc_language_data): Likewise.
4852 * opencl-lang.c (opencl_language_data): Likewise.
4853 * p-lang.c (pascal_language_data): Likewise.
4854 * rust-lang.c (rust_language_data): Likewise.
4855 * valprint.c (val_print_check_max_depth): Update call to
4856 struct_too_deep_ellipsis.
4858 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
4860 * MAINTAINERS (Write After Approval): Add myself.
4862 2020-09-15 Tom Tromey <tom@tromey.com>
4864 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
4867 2020-09-15 Tom Tromey <tom@tromey.com>
4869 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
4870 and TYPE_CODE_METHODPTR cases.
4871 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
4872 (c_value_print_inner): Update.
4873 * valprint.c (generic_value_print_memberptr): New function, from
4874 c_value_print_memberptr.
4875 (generic_value_print): Use it. Call cplus_print_method_ptr.
4877 2020-09-15 Tom Tromey <tromey@adacore.com>
4879 * python/python-internal.h (PyInt_FromLong): Remove define.
4880 * python/py-value.c (convert_value_from_python): Use
4881 gdb_py_object_from_longest.
4882 * python/py-type.c (typy_get_code): Use
4883 gdb_py_object_from_longest.
4884 * python/py-symtab.c (salpy_get_line): Use
4885 gdb_py_object_from_longest.
4886 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
4887 gdb_py_object_from_longest.
4888 * python/py-record.c (recpy_gap_reason_code): Use
4889 gdb_py_object_from_longest.
4890 * python/py-record-btrace.c (recpy_bt_insn_size)
4891 (recpy_bt_func_level, btpy_list_count): Use
4892 gdb_py_object_from_longest.
4893 * python/py-infthread.c (gdbpy_create_ptid_object): Use
4894 gdb_py_object_from_longest. Fix error handling.
4895 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
4896 gdb_py_object_from_longest.
4897 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
4898 gdb_py_object_from_longest.
4899 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
4900 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
4901 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
4903 2020-09-15 Tom Tromey <tromey@adacore.com>
4905 * python/python.c (gdbpy_parameter_value): Use
4906 gdb_py_object_from_ulongest.
4908 2020-09-15 Tom Tromey <tromey@adacore.com>
4910 * python/py-infevents.c (create_register_changed_event_object):
4911 Use gdb_py_object_from_longest.
4912 * python/py-exitedevent.c (create_exited_event_object): Use
4913 gdb_py_object_from_longest.
4915 2020-09-15 Tom Tromey <tromey@adacore.com>
4917 * python/python.c (gdbpy_parameter_value): Use
4918 gdb_py_object_from_longest.
4919 * python/py-type.c (convert_field, typy_range): Use
4920 gdb_py_object_from_longest.
4921 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
4922 gdb_py_object_from_longest.
4923 * python/py-lazy-string.c (stpy_get_length): Use
4924 gdb_py_object_from_longest.
4925 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
4926 gdb_py_object_from_longest.
4927 * python/py-infevents.c (create_memory_changed_event_object): Use
4928 gdb_py_object_from_longest.
4929 * python/py-inferior.c (infpy_get_num): Use
4930 gdb_py_object_from_longest.
4931 (infpy_get_pid): Likewise.
4933 2020-09-15 Tom Tromey <tromey@adacore.com>
4935 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
4937 * python/py-value.c (valpy_long): Use
4938 gdb_py_object_from_ulongest.
4939 * python/py-symtab.c (salpy_get_pc): Use
4940 gdb_py_object_from_ulongest.
4941 (salpy_get_last): Likewise.
4942 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
4943 gdb_py_object_from_ulongest.
4944 * python/py-lazy-string.c (stpy_get_address): Use
4945 gdb_py_object_from_ulongest.
4946 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
4947 * python/py-arch.c (archpy_disassemble): Use
4948 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
4951 2020-09-15 Tom Tromey <tromey@adacore.com>
4953 * python/python-internal.h (gdb_py_long_from_longest): Remove
4955 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
4956 * python/py-type.c (convert_field, typy_get_sizeof): Use
4957 gdb_py_object_from_longest.
4958 * python/py-record-btrace.c (btpy_list_index): Use
4959 gdb_py_object_from_longest.
4961 2020-09-15 Tom Tromey <tromey@adacore.com>
4963 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
4964 * python/py-record.c (recpy_element_number): Use
4965 gdb_py_object_from_longest.
4966 (recpy_gap_number): Likewise.
4968 2020-09-15 Tom Tromey <tromey@adacore.com>
4970 * top.c (ui::ui): Update.
4971 (highest_ui_num): Remove.
4972 * top.h (struct ui) <num>: Remove.
4974 2020-09-15 Tom Tromey <tromey@adacore.com>
4976 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
4977 * ui-style.c (ansi_regex_text): Now array.
4978 * rust-exp.y (number_regex_text): Now array.
4979 * linespec.c (linespec_quote_characters): Now array.
4980 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
4983 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4985 * debuginfod-support.c (debuginfod_client_deleter): New.
4986 (debuginfod_client_up): New.
4987 (debuginfod_init): Return debuginfod_client_up.
4988 (debuginfod_source_query): Adjust.
4989 (debuginfod_debuginfo_query): Adjust.
4991 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4993 * debuginfod-support.c (debuginfod_source_query): Use
4994 make_unique_xstrdup.
4996 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4998 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
4999 with `type::instance_flags`.
5001 2020-09-14 Michael Mullin <masmullin@gmail.com>
5003 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
5004 Remove baton parameter.
5006 2020-09-14 Pedro Alves <pedro@palves.net>
5008 * Makefile.in (SELFTESTS_SRCS): Add
5009 unittests/enum-flags-selftests.c.
5010 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
5011 btrace_function_flags instead of enum btrace_function_flag.
5012 * compile/compile-c-types.c (convert_qualified): Use
5014 * compile/compile-cplus-symbols.c (convert_one_symbol)
5015 (convert_symbol_bmsym):
5016 * compile/compile-cplus-types.c (compile_cplus_convert_method)
5017 (compile_cplus_convert_struct_or_union_methods)
5018 (compile_cplus_instance::convert_qualified_base):
5019 * go-exp.y (parse_string_or_char): Add cast to int.
5020 * unittests/enum-flags-selftests.c: New file.
5021 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
5022 type to btrace_thread_flags from btrace_thread_flag.
5023 (record_btrace_cancel_resume, record_btrace_step_thread): Change
5024 local's type to btrace_thread_flags from btrace_thread_flag. Add
5027 2020-09-14 Pedro Alves <pedro@palves.net>
5029 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
5030 * gdbtypes.c (address_space_name_to_int): Rename to ...
5031 (address_space_name_to_type_instance_flags): ... this.
5032 (address_space_int_to_name): Rename to ...
5033 (address_space_type_instance_flags_to_name): ... this.
5034 * gdbtypes.h (address_space_name_to_int): Rename to ...
5035 (address_space_name_to_type_instance_flags): ... this.
5036 (address_space_int_to_name): Rename to ...
5037 (address_space_type_instance_flags_to_name): ... this.
5038 * type-stack.c (type_stack::insert): Adjust to rename.
5039 * type-stack.h (type_stack::insert): Likewise.
5041 2020-09-14 Pedro Alves <pedro@palves.net>
5042 Andrew Burgess <andrew.burgess@embecosm.com>
5044 * avr-tdep.c (avr_address_class_type_flags): Return
5045 type_instance_flags.
5046 (avr_address_class_type_flags_to_name): Take a
5047 type_instance_flags.
5048 (avr_address_class_name_to_type_flags): Return bool and take a
5049 type_instance_flags.
5050 * d-lang.c (build_d_types): Use type::set_instance_flags.
5051 * ft32-tdep.c (ft32_address_class_type_flags): Return
5052 type_instance_flags.
5053 (ft32_address_class_type_flags_to_name): Take a
5054 type_instance_flags.
5055 (ft32_address_class_name_to_type_flags): Return bool and take a
5056 type_instance_flags.
5057 (ft32_gdbarch_init): Use type::set_instance_flags.
5058 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
5059 * gdbarch.h, gdbarch.c: Regenerate.
5060 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
5061 (address_class_name_to_type_flags): Use type_instance_flags and
5063 * gdbtypes.c (address_space_name_to_int)
5064 (address_space_int_to_name, make_qualified_type): Use
5065 type_instance_flags.
5066 (make_qualified_type): Use type_instance_flags and
5067 type::set_instance_flags.
5068 (make_type_with_address_space, make_cv_type, make_vector_type)
5069 (check_typedef): Use type_instance_flags.
5070 (recursive_dump_type): Cast type_instance_flags to unsigned for
5072 (copy_type_recursive): Use type::set_instance_flags.
5073 (gdbtypes_post_init): Use type::set_instance_flags.
5074 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
5075 <m_instance_flags>: ... this.
5076 <instance_flags, set_instance_flags>: New methods.
5077 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
5078 (SET_TYPE_INSTANCE_FLAGS): New.
5079 (address_space_name_to_int, address_space_int_to_name)
5080 (make_type_with_address_space): Pass flags using
5081 type_instance_flags instead of int.
5082 * stabsread.c (cleanup_undefined_types_noname): Use
5083 type::set_instance_flags.
5084 * s390-tdep.c (s390_address_class_type_flags): Return
5085 type_instance_flags.
5086 (s390_address_class_type_flags_to_name): Take a
5087 type_instance_flags.
5088 (s390_address_class_name_to_type_flags): Return bool and take a
5089 type_instance_flags.
5090 * type-stack.c (type_stack::follow_types): Use
5091 type_instance_flags.
5092 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
5094 2020-09-14 Tom Tromey <tromey@adacore.com>
5096 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
5097 * x86-tdep.c (x86_is_thunk_register_name)
5098 (x86_in_indirect_branch_thunk): Update.
5099 * sparc64-tdep.c (sparc64_fpu_register_names)
5100 (sparc64_cp0_register_names, sparc64_register_names)
5101 (sparc64_pseudo_register_names): Now const.
5102 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
5103 cp0_registers_num>: Now const.
5104 * sparc-tdep.c (sparc_core_register_names)
5105 (sparc32_fpu_register_names, sparc32_cp0_register_names)
5106 (sparc32_pseudo_register_names): Now const.
5107 (validate_tdesc_registers): Update.
5108 * rust-lang.c (rust_extensions): Now const.
5109 * p-lang.c (p_extensions): Now const.
5110 * objc-lang.c (objc_extensions): Now const.
5111 * nto-tdep.c (nto_thread_state_str): Now const.
5112 * moxie-tdep.c (moxie_register_names): Now const.
5113 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
5115 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
5116 (mips_linux_reg_names): Now const.
5117 (mips_gdbarch_init): Update.
5118 * microblaze-tdep.c (microblaze_register_names): Now const.
5119 * m68k-tdep.c (m68k_register_names): Now const.
5120 * m32r-tdep.c (m32r_register_names): Now const.
5121 * ia64-tdep.c (ia64_register_names): Now const.
5122 * i386-tdep.h (struct gdbarch_tdep) <register_names,
5123 ymmh_register_names, ymm16h_regnum, mpx_register_names,
5124 k_register_names, zmmh_register_names, xmm_avx512_register_names,
5125 ymm_avx512_register_names, pkeys_register_names>: Now const.
5126 * i386-tdep.c (i386_register_names, i386_zmm_names)
5127 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
5128 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
5129 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
5130 * f-lang.c (f_extensions): Now const.
5131 * d-lang.c (d_extensions): Now const.
5132 * csky-tdep.c (csky_register_names): Now const.
5133 * charset.c (default_charset_names, charset_enum): Now const.
5134 (_initialize_charset): Update.
5135 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
5137 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
5138 (bsd_uthread_solib_loaded): Update.
5139 (bsd_uthread_state): Now const.
5140 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
5141 (amd64_ymm_avx512_names, amd64_ymmh_names)
5142 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
5143 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
5144 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
5145 (amd64_dword_names): Now const.
5146 * agent.c (can_use_agent_enum): Now const.
5147 * ada-tasks.c (task_states, long_task_states): Now const.
5148 * ada-lang.c (known_runtime_file_name_patterns)
5149 (known_auxiliary_function_name_patterns, attribute_names)
5150 (standard_exc, ada_extensions): Now const.
5152 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5154 * bcache.h (struct bcache) <bcache>: Remove constructor.
5155 <m_hash_function, m_compare_function>: Remove.
5156 <~bcache>: Make virtual.
5157 <compare>: Remove static method, introduce virtual method.
5158 <default_hash>: Remove.
5159 <hash>: New virtual method.
5160 * bcache.c (bcache::expand_hash_table): Update.
5161 (bcache::insert): Update.
5162 (bcache::hash): New.
5163 (bcache::compare): Update comment and parameter names.
5164 * gdbtypes.c (types_deeply_equal): Update.
5165 * psymtab.h (struct psymbol_bcache): New struct.
5166 (class psymtab_storage) <psymtab_storage>: Make default.
5167 <psymbol_cache>: Change type to psymbol_bcache.
5168 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
5169 (psymbol_hash): Change to...
5170 (psymbol_bcache::hash): ... this.
5171 (psymbol_compare): Change to...
5172 (psymbol_bcache::compare): ... this.
5174 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5176 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
5177 checking for initial lwp.
5179 2020-09-14 Tom Tromey <tromey@adacore.com>
5181 * m68k-tdep.c (m68k_extract_return_value): Use
5182 pointer_result_regnum.
5183 (m68k_store_return_value): Likewise.
5184 (m68k_reg_struct_return_p): Handle vectors and arrays.
5185 (m68k_return_value): Handle arrays.
5186 (m68k_svr4_return_value): Fix single-element aggregate handling.
5187 Handle long double. Adjust for embedded ABI.
5188 (m68k_svr4_init_abi): Set pointer_result_regnum.
5189 (m68k_embedded_init_abi): New function.
5190 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
5191 (m68k_osabi_sniffer): New function.
5192 (_initialize_m68k_tdep): Register osabi sniffer.
5193 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
5196 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5198 * xml-support.c (xml_fetch_content_from_file): Replace xfree
5199 with gdb::unique_xmalloc_ptr<char>.
5201 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5203 * xml-support.h (xml_fetch_another): Change type to be a
5205 (xml_process_xincludes): Remove baton parameter.
5206 (xml_fetch_content_from_file): Change baton parameter to
5208 * xml-support.c (struct xinclude_parsing_data)
5209 <xinclude_parsing_data>: Remove baton parameter.
5210 <fetcher_baton>: Remove.
5211 (xinclude_start_include): Adjust.
5212 (xml_process_xincludes): Adjust.
5213 (xml_fetch_content_from_file): Replace baton parameter with
5215 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
5216 (xml_init_syscalls_info): Use a lambda.
5217 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
5218 (file_read_description_xml): Use a lambda.
5219 (fetch_available_features_from_target): Change baton parameter
5221 (target_read_description_xml): Use a lambda.
5222 (target_fetch_description_xml): Use a lambda.
5223 (string_read_description_xml): Update.
5225 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5227 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
5228 uses with type::endianity_is_not_default.
5230 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5232 * gdbtypes.h (struct type) <endianity_is_not_default,
5233 set_endianity_is_not_default>: New methods.
5234 (TYPE_ENDIANITY_NOT_DEFAULT): Use
5235 type::endianity_is_not_default, change all write call sites to
5236 use type::set_endianity_is_not_default.
5238 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5240 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
5241 uses with type::is_fixed_instance.
5243 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5245 * gdbtypes.h (struct type) <is_fixed_instance,
5246 set_is_fixed_instance>: New methods.
5247 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
5248 write call sites to use type::set_is_fixed_instance.
5250 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5252 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
5253 uses with type::is_gnu_ifunc.
5255 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5257 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
5258 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
5259 use type::set_is_gnu_ifunc.
5261 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5263 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
5264 uses with type::stub_is_supported.
5266 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5268 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
5269 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
5270 use type::set_stub_is_supported.
5272 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5274 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
5275 uses with type::is_vector.
5277 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5279 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
5280 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
5281 use type::set_is_vector.
5283 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5285 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
5286 uses with type::has_varargs.
5288 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5290 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
5291 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
5292 use type::set_has_varargs.
5294 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5296 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
5297 uses with type::is_prototyped.
5299 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5301 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
5303 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
5304 call sites to use type::set_is_prototyped.
5306 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5308 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
5309 uses with type::target_is_stub.
5311 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5313 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
5315 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
5316 sites to use type::set_target_is_stub.
5318 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5320 * gdbtypes.h (TYPE_STUB): Remove, replace all
5321 uses with type::is_stub.
5323 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5325 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
5326 (TYPE_STUB): Use type::is_stub, change all write call sites to
5327 use type::set_is_stub.
5329 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5331 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
5332 type::has_no_signedness.
5334 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5336 * gdbtypes.h (struct type) <has_no_signedness,
5337 set_has_no_signedness>: New methods.
5338 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
5339 call sites to use type::set_has_no_signedness.
5341 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5343 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
5346 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5348 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
5350 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
5351 sites to use type::set_is_unsigned.
5353 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
5354 Adam Renquinha <arenquinha@cimeq.qc.ca>
5356 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
5357 pointer and stack frame offset when unwinding.
5359 2020-09-13 Pedro Alves <pedro@palves.net>
5361 * NEWS: Document "-break-insert --qualified".
5362 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
5364 2020-09-13 Pedro Alves <pedro@palves.net>
5366 * linespec.c (classify_mtype, compare_msyms): Delete.
5367 (search_minsyms_for_name): Remove classification logic. Instead
5368 filter out trampoline symbols if we also found an external
5369 function of the same name.
5371 2020-09-13 Joel Brobecker <brobecker@adacore.com>
5373 * NEWS: Create a new section for the next release branch.
5374 Rename the section of the current branch, now that it has
5377 2020-09-13 Joel Brobecker <brobecker@adacore.com>
5379 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
5380 * version.in: Bump version to 11.0.50.DATE-git.
5382 2020-09-12 Joel Brobecker <brobecker@adacore.com>
5384 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
5386 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
5387 Felix Willgerodt <Felix.Willgerodt@intel.com>
5389 * gdbarch.sh: Added bfloat16 type.
5390 * gdbarch.c: Regenerated.
5391 * gdbarch.h: Regenerated.
5392 * gdbtypes.c (floatformats_bfloat16): New struct.
5393 (gdbtypes_post_init): Add builtin_bfloat16.
5394 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
5395 (floatformats_bfloat16): New struct.
5396 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
5397 (i386_ymm_type): Add field "v16_bfloat16"
5398 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
5399 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
5400 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
5401 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
5402 * features/i386/64bit-avx512.xml: Add bfloat16 type.
5403 * features/i386/64bit-avx512.c: Regenerated.
5404 * features/i386/64bit-sse.xml: Add bfloat16 type.
5405 * features/i386/64bit-sse.c: Regenerated.
5407 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
5409 * i386-tdep.c (i386_zmm_type): Fix field names.
5410 (i386_ymm_type): Fix field names.
5412 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5414 * breakpoint.c: Fix typo in the help message of the
5415 "set breakpoint condition-evaluation" command.
5417 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5419 * nbsd-nat.c: Include "nat/netbsd-nat.h".
5420 * (nbsd_nat_target::pid_to_exec_file)
5421 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
5422 (nbsd_nat_target::post_startup_inferior)
5423 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
5424 (nbsd_add_threads): Switch local code to common gdb/nat functions.
5425 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
5426 * (nbsd_thread_lister): Remove.
5428 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5430 * fork-inferior.c (startup_inferior): Avoid double free.
5432 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5434 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
5435 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
5437 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5439 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
5440 * netbsd-nat.c: Include <sys/ptrace.h>.
5441 * (netbsd_nat::enable_proc_events): Add.
5443 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5445 * netbsd-nat.h: Include "gdbsupport/function-view.h".
5446 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
5447 (netbsd_nat::for_each_thread): Add.
5448 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
5449 "gdbsupport/common-debug.h".
5450 * (netbsd_nat::netbsd_thread_lister)
5451 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
5452 (netbsd_nat::for_each_thread): Add.
5454 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5456 * netbsd-nat.h: Include <unistd.h>.
5457 * (netbsd_nat::pid_to_exec_file): Add.
5458 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
5459 * (netbsd_nat::pid_to_exec_file) Add.
5461 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5463 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
5465 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5467 * netbsd-nat.h: New file.
5468 * netbsd-nat.c: Likewise.
5470 2020-09-09 Tom Tromey <tromey@adacore.com>
5472 * ada-lang.c (remove_extra_symbols): Do not increment when
5475 2020-09-08 Tom Tromey <tromey@adacore.com>
5477 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
5479 2020-09-08 Tom Tromey <tromey@adacore.com>
5482 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
5483 (gdb_bfd_init_data): New function.
5484 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
5486 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5488 * infrun.c (fetch_inferior_event): Use
5489 `switch_to_target_no_thread` to switch the target.
5491 2020-09-06 Tom Tromey <tom@tromey.com>
5493 * symfile.h (dwarf2_free_objfile): Don't declare.
5495 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5497 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
5498 to match 16 byte real/complex type generated by Flang compiler.
5500 2020-09-03 Tom de Vries <tdevries@suse.de>
5503 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
5504 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
5506 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
5508 * maint.c (index_digits): New function.
5509 (struct maint_print_section_data): Remove.
5510 (print_bfd_section_info): Remove print_data parameter, add arg
5512 (print_objfile_section_info): Likewise.
5513 (print_bfd_section_info_maybe_relocated): Likewise (plus
5515 (maintenance_info_sections): Adjust calls.
5517 2020-09-02 Tom Tromey <tromey@adacore.com>
5519 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
5521 (ada_varobj_adjust_for_child_access): Special-case null pointers.
5523 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
5525 * bcache.h (struct bcache) <insert>: Change type of `added` to
5527 * bcache.c (bcache::insert): Likewise.
5528 * gdbtypes.c (check_types_worklist): Adjust.
5529 * psymtab.c (add_psymbol_to_bcache): Adjust.
5531 2020-08-31 Kevin Buettner <kevinb@redhat.com>
5533 * corelow.c (unordered_set): Include.
5534 (class core_target): Add field 'm_core_unavailable_mappings'.
5535 (core_target::build_file_mappings): Print only one warning
5536 per inaccessible file. Add unavailable/broken mappings
5537 to m_core_unavailable_mappings.
5538 (core_target::xfer_partial): Call...
5539 (core_target::xfer_memory_via_mappings): New method.
5541 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
5543 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
5546 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
5548 * dwarf2/read.c (struct field_info): Fix indentation.
5550 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5552 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
5553 ordering in comment.
5554 * frame.c (frame_id_eq): Fix indentation.
5556 2020-08-31 Scott Linder <scott@scottlinder.com>
5557 Simon Marchi <simon.marchi@efficios.com>
5559 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
5560 inline frame ids in outer frame.
5562 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5564 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
5565 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
5566 (outer_frame_id): Use FID_STACK_OUTER instead of
5568 (frame_id_p): Don't check for outer_frame_id.
5570 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5572 * frame-unwind.c (frame_unwind_got_optimized): Don't set
5573 regnum/frame in value. Call allocate_value_lazy.
5574 * frame.c (frame_unwind_register_value): Use
5575 val_print_not_saved.
5577 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5579 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
5581 2020-08-29 Pedro Alves <pedro@palves.net>
5583 * progspace.c (print_program_space): Use all_inferiors. Switch to
5584 the inferior before calling target_pid_to_str.
5586 2020-08-28 Tom Tromey <tom@tromey.com>
5588 * xcoffread.c (xcoff_end_psymtab): Update comment.
5589 * dbxread.c (dbx_end_psymtab): Update comment.
5591 2020-08-28 Tom de Vries <tdevries@suse.de>
5594 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
5596 (create_breakpoint): Same.
5597 (base_breakpoint_decode_location): Same.
5598 (bkpt_create_sals_from_location): Same.
5599 (bkpt_decode_location): Same.
5600 (bkpt_probe_create_sals_from_location): Same.
5601 (bkpt_probe_decode_location): Same.
5602 (tracepoint_create_sals_from_location): Same.
5603 (tracepoint_decode_location): Same.
5604 (tracepoint_probe_decode_location): Same.
5605 (strace_marker_create_sals_from_location): Same.
5606 (strace_marker_decode_location): Same.
5607 (create_sals_from_location_default): Same.
5608 (decode_location_default): Same.
5609 * breakpoint.h (struct breakpoint_ops): Same.
5610 (create_breakpoint): Same.
5611 * linespec.h (decode_line_full): Same.
5612 * linespec.c (decode_line_full): Same. Throw error if
5613 result.size () == 0.
5615 2020-08-27 Pedro Alves <pedro@palves.net>
5618 * breakpoint.c (until_break_fsm) <location_breakpoint,
5619 caller_breakpoint>: Delete fields.
5620 <breakpoints>: New field.
5621 <until_break_fsm>: Adjust to save a breakpoint vector instead of
5622 two individual breakpoints.
5623 (until_break_fsm::should_stop): Loop over breakpoints in the
5625 (until_break_fsm::clean_up): Adjust to clear the breakpoints
5627 (until_break_command): Handle location expanding into multiple
5630 2020-08-27 Pedro Alves <pedro@palves.net>
5633 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
5634 bp_until breakpoints user-specified locations. Update intro
5637 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
5639 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
5640 gdb_bfd_sections): New.
5641 * maint.c (print_bfd_section_info): Change param type to
5642 maint_print_section_data.
5643 (print_objfile_section_info): Likewise.
5644 (print_bfd_section_info_maybe_relocated): Likewise.
5645 (maintenance_info_sections): Use gdb_bfd_sections.
5647 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5649 * MAINTAINERS: Add ARC target and maintainer.
5651 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
5653 * configure.tgt: ARC support for GNU/Linux.
5654 * Makefile.in (ALL_TARGET_OBJS): Likewise.
5655 * arc-linux-tdep.c: New file.
5656 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
5657 * arc-tdep.c (arc_write_pc): Use it.
5659 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5661 * arc-tdep.c (arc_check_for_hardware_loop): New.
5662 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
5664 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5666 * arc-tdep.h: Include "gdbarch.h".
5668 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5671 (arc_gdbarch_features): New class to stir the selection of target XML.
5672 (arc_create_target_description): Use FEATURES to choose XML target.
5673 (arc_lookup_target_description): Use arc_create_target_description
5674 to create _new_ target descriptions or return the already created
5675 ones if the FEATURES is the same.
5676 * arch/arc.c: Implementation of prototypes described above.
5677 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
5678 (arc_gdbarch_features_init): Initialize the FEATURES struct.
5679 * arc-tdep.c (*_feature_name): Make feature names consistent.
5680 (arc_register_feature): A new struct to hold information about
5681 registers of a particular target/feature.
5682 (arc_check_tdesc_feature): Check if XML provides registers in
5683 compliance with ARC_REGISTER_FEATURE structs.
5684 (arc_update_acc_reg_names): Add aliases for r58 and r59.
5685 (determine_*_reg_feature_set): Which feature name to look for.
5686 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
5687 (mach_type_to_arc_isa): Convert from a set of binutils machine types
5688 to expected ISA enums to be used in arc_gdbarch_features structs.
5689 * features/Makefile (FEATURE_XMLFILES): Add new files.
5690 * gdb/features/arc/v1-aux.c: New file.
5691 * gdb/features/arc/v1-aux.xml: Likewise.
5692 * gdb/features/arc/v1-core.c: Likewise.
5693 * gdb/features/arc/v1-core.xml: Likewise.
5694 * gdb/features/arc/v2-aux.c: Likewise.
5695 * gdb/features/arc/v2-aux.xml: Likewise.
5696 * gdb/features/arc/v2-core.c: Likewise.
5697 * gdb/features/arc/v2-core.xml: Likewise.
5698 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
5700 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
5701 Andrew Burgess <andrew.burgess@embecosm.com>
5704 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
5705 an assert. Remove single element array indexing pattern as the
5706 MULTI_SUBSCRIPT support will handle this case too.
5708 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
5710 * value.h (valprint_check_validity): Move declaration from
5712 * valprint.h (valprint_check_validity): ... to here.
5714 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
5716 * debug.h: New file.
5717 * debug.c (debug_prefixed_vprintf): New function.
5718 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
5719 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
5721 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
5723 * infrun.h (infrun_debug_printf_1): New function declaration.
5724 (infrun_debug_printf): New macro.
5725 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
5727 (infrun_debug_printf): New function.
5728 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
5729 (handle_jit_event): Likewise.
5731 2020-08-21 Mark Wielaard <mark@klomp.org>
5733 * ada-lex.l: Extend register warnings diagnostics comment for g++.
5735 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
5737 * frame.c (enum class frame_id_status): New.
5738 (struct frame_info) <this_id::p>: Change type to frame_id_status.
5739 (fprintf_frame): Update.
5740 (compute_frame_id): Set frame id status to "computing" on entry.
5741 Set it back to "not_computed" on failure and to "computed" on
5743 (get_frame_id): Assert the frame id is not being computed.
5744 (create_sentinel_frame): Use frame_id_status::COMPUTED.
5745 (create_new_frame): Likewise.
5746 (frame_cleanup_after_sniffer): Update assert.
5748 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5750 * regcache.c (pid_ptid_regcache_map): New type.
5751 (target_ptid_regcache_map): Remove.
5752 (target_pid_ptid_regcache_map): New type.
5753 (regcaches): Change type to target_pid_ptid_regcache_map.
5754 (get_thread_arch_aspace_regcache): Update.
5755 (regcache_thread_ptid_changed): Update, handle pid-like ptid
5757 (regcaches_size): Update.
5758 (regcache_count): Update.
5759 (registers_changed_ptid_target_pid_test): New.
5760 (_initialize_regcache): Register new test.
5762 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5764 * regcache.c (regcache_count): New.
5765 (struct regcache_test_data): New.
5766 (regcache_test_data_up): New.
5767 (populate_regcaches_for_test): New.
5768 (regcaches_test): Remove.
5769 (get_thread_arch_aspace_regcache_test): New.
5770 (registers_changed_ptid_all_test): New.
5771 (registers_changed_ptid_target_test): New.
5772 (registers_changed_ptid_target_ptid_test): New.
5773 (regcache_thread_ptid_changed): Remove regcache_count lambda.
5774 (_initialize_regcache): Register new tests.
5776 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5778 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
5779 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
5780 gdbarch and aspace parameter. Use current inferior's aspace.
5781 Validate regcache's arch value.
5782 (regcaches_test): Update.
5784 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5786 * regcache.c (regcaches_test): Call registers_changed.
5788 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5790 * infrun.c (process_event_stop_test): Fix typo "breapoint".
5792 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5794 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
5795 to find the end of prologue for flang compiled binaries.
5796 * arm-tdep.c (arm_skip_prologue): Likewise.
5797 * i386-tdep.c (i386_skip_prologue): Likewise.
5798 * producer.c (producer_is_llvm): New function.
5799 (producer_parsing_tests): Added new tests for clang/flang.
5800 * producer.h (producer_is_llvm): New declaration.
5802 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
5804 * linux-nat.c (linux_nat_debug_printf): New function.
5805 (linux_nat_debug_printf_1): New macro. Use throughout the file.
5807 2020-08-18 Aaron Merey <amerey@redhat.com>
5809 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
5810 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
5811 (CLIBS): Add DEBUGINFOD_LIBS.
5813 2020-08-17 Sergei Trofimovich <siarheit@google.com>
5815 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
5818 2020-08-17 Tom Tromey <tromey@adacore.com>
5820 * ada-varobj.c (ada_varobj_decode_var): Handle case where
5821 ada_get_decoded_value returns NULL.
5823 2020-08-17 Tom Tromey <tromey@adacore.com>
5825 * python/py-inferior.c (infpy_search_memory): Use
5826 gdb_py_object_from_ulongest.
5827 * python/py-infevents.c (create_inferior_call_event_object)
5828 (create_memory_changed_event_object): Use
5829 gdb_py_object_from_ulongest.
5830 * python/py-linetable.c (ltpy_entry_get_pc): Use
5831 gdb_py_object_from_ulongest.
5833 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
5835 * loc.c (class symbol_needs_eval_context): Fix indentation.
5837 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
5839 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
5842 2020-08-17 Tom de Vries <tdevries@suse.de>
5845 * gdbtypes.c (dump_dynamic_prop): New function.
5846 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
5848 2020-08-15 Tom de Vries <tdevries@suse.de>
5851 * stack.c (print_frame_args): Temporarily set the selected
5852 frame to FRAME while printing the frame's arguments.
5854 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5856 PR breakpoints/26385
5857 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
5858 Always clear watchpoint with PTRACE_SET_DEBUGREG.
5860 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5862 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
5863 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
5864 and >= to check return value instead of == -1 and != -1.
5866 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
5868 * utils.h (class gdb_argv) <as_array_view>: New method.
5869 * utils.c (gdb_argv_as_array_view_test): New.
5870 (_initialize_utils): Register selftest.
5871 * maint.c (maintenance_selftest): Use the new method.
5873 2020-08-13 Kamil Rytarowski <n54@gmx.com>
5875 * target.h (supports_dumpcore, dumpcore): New
5876 function declarations.
5877 * target.c (supports_dumpcore, dumpcore): New
5879 * target-delegates.c: Rebuild.
5880 * gcore.c (gcore_command): Use target_supports_dumpcore ()
5881 and target_dumpcore ().
5883 2020-08-13 Aaron Merey <amerey@redhat.com>
5885 * debuginfod-support.c: Replace global variables with user_data.
5887 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
5889 * maint.c (maintenance_selftest): Split args and pass array_view
5892 2020-08-12 Luis Machado <luis.machado@linaro.org>
5894 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
5896 Use %s and pulongest to print the length.
5898 2020-08-12 Pedro Alves <palves@redhat.com>
5900 * NEWS: Move "Multi-target debugging support" item to the
5901 "Changes since GDB 9" section.
5903 2020-08-12 Pedro Alves <palves@redhat.com>
5906 * progspace.c (program_space::remove_objfile): Invalidate the
5909 2020-08-11 Tom de Vries <tdevries@suse.de>
5911 * MAINTAINERS: Mark ms1 as deleted.
5913 2020-08-10 Luis Machado <luis.machado@linaro.org>
5917 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
5919 (aarch64_analyze_prologue_test): Add more unit tests to exercise
5920 movz/str/stur/stp skipping behavior.
5922 2020-08-10 Luis Machado <luis.machado@linaro.org>
5924 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
5925 struct user_sve_header instead of struct sve_context.
5927 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
5929 * read.h (dwarf2_fetch_die_loc_sect_off,
5930 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
5931 `void *` parameter with function_view.
5932 * read.c (dwarf2_fetch_die_loc_sect_off,
5933 dwarf2_fetch_die_loc_cu_off): Likewise.
5934 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
5935 (per_cu_dwarf_call): Adjust.
5936 (get_frame_address_in_block_wrapper): Remove.
5937 (indirect_synthetic_pointer): Adjust.
5938 (get_ax_pc): Remove.
5939 (dwarf2_compile_expr_to_ax): Adjust.
5941 2020-08-08 Tom de Vries <tdevries@suse.de>
5944 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
5946 * regcache.c (get_thread_arch_aspace_regcache): Same.
5948 2020-08-07 Tom Tromey <tromey@adacore.com>
5950 * ravenscar-thread.c
5951 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
5953 (ravenscar_thread_target::wait): Check
5954 runtime_initialized.
5955 (ravenscar_thread_target::prepare_to_store)
5956 (ravenscar_thread_target::stopped_by_sw_breakpoint)
5957 (ravenscar_thread_target::stopped_by_hw_breakpoint)
5958 (ravenscar_thread_target::stopped_by_watchpoint)
5959 (ravenscar_thread_target::stopped_data_address)
5960 (ravenscar_thread_target::core_of_thread): Use
5961 scoped_restore_current_thread and
5962 set_base_thread_from_ravenscar_task.
5964 2020-08-07 Tom Tromey <tromey@adacore.com>
5966 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
5968 2020-08-07 Tom Tromey <tromey@adacore.com>
5970 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
5971 update_inferior_ptid before update_thread_list.
5972 (temporarily_change_regcache_ptid): New class.
5973 (ravenscar_thread_target::fetch_registers)
5974 (ravenscar_thread_target::store_registers)
5975 (ravenscar_thread_target::prepare_to_store): Use base thread when
5976 forwarding operation.
5978 2020-08-07 Tom Tromey <tromey@adacore.com>
5980 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
5983 2020-08-07 Tom Tromey <tromey@adacore.com>
5985 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
5987 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
5989 (ravenscar_thread_target::add_thread): Rename from
5990 ravenscar_add_thread.
5991 (ravenscar_thread_target::update_thread_list): Use a lambda.
5992 (ravenscar_thread_target::xfer_partial): New method.
5994 2020-08-07 Tom Tromey <tromey@adacore.com>
5996 * ada-lang.h (ada_task_list_iterator_ftype): Now a
5998 (iterate_over_live_ada_tasks): Change type of argument.
5999 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
6002 2020-08-07 Tom Tromey <tromey@adacore.com>
6004 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
6006 (ravenscar_thread_target::extra_thread_info): Remove.
6007 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
6008 defer to target beneath for non-Ravenscar threads.
6010 2020-08-07 Tom Tromey <tromey@adacore.com>
6012 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
6013 get_base_thread_from_ravenscar_task>: Now methods.
6014 <m_cpu_map>: New member.
6015 (ravenscar_thread_target::get_thread_base_cpu): Rename from
6016 ravenscar_get_thread_base_cpu. Check m_cpu_map.
6017 (ravenscar_thread_target::task_is_currently_active): Update.
6018 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
6020 (ravenscar_thread_target::add_active_thread): Put initial thread
6023 2020-08-07 Tom Tromey <tromey@adacore.com>
6025 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
6028 2020-08-07 Tom Tromey <tromey@adacore.com>
6030 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
6031 runtime_initialized.
6033 2020-08-07 Tom Tromey <tromey@adacore.com>
6035 * ravenscar-thread.c (ravenscar_thread_target): Don't call
6037 (ravenscar_thread_target::add_active_thread): Now public.
6038 (ravenscar_inferior_created): Call add_active_thread after pushing
6041 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
6043 * regcache.c (ptid_regcache_map): New type.
6044 (target_ptid_regcache_map): New type.
6045 (regcaches): Change type to target_ptid_regcache_map.
6046 (get_thread_arch_aspace_regcache): Update to regcaches' new
6048 (regcache_thread_ptid_changed): Likewise.
6049 (registers_changed_ptid): Likewise.
6050 (regcaches_size): Likewise.
6051 (regcaches_test): Update.
6052 (regcache_thread_ptid_changed): Update.
6053 * regcache.h (regcache_up): New type.
6054 * gdbsupport/ptid.h (hash_ptid): New struct.
6056 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
6058 * observable.h (thread_ptid_changed): Add parameter
6059 `process_stratum_target *`.
6060 * infrun.c (infrun_thread_ptid_changed): Add parameter
6061 `process_stratum_target *` and use it.
6062 (selftests): New namespace.
6063 (infrun_thread_ptid_changed): New function.
6064 (_initialize_infrun): Register selftest.
6065 * regcache.c (regcache_thread_ptid_changed): Add parameter
6066 `process_stratum_target *` and use it.
6067 (regcache_thread_ptid_changed): New function.
6068 (_initialize_regcache): Register selftest.
6069 * thread.c (thread_change_ptid): Pass target to
6070 thread_ptid_changed observable.
6072 2020-08-06 Caroline Tice <cmtice@google.com>
6074 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
6075 (struct dwp_sections): Update field comments. Add loclists and
6077 (struct virtual_v2_dwo_sections): Rename struct to
6078 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
6079 size & offset fields for loclists and rnglists.
6080 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
6081 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
6082 skipping dummy type units.
6083 (create_dwp_hash_table): Update the large comment above the function to
6084 discuss Version 5 DWP files as well, with references. Update all the
6085 version checks in the function to check for version 5 as well. Add new
6086 section at the end to create dwp hash table for version 5.
6087 (create_dwp_v2_section): Rename function to
6088 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
6089 Add V5 to error message text.
6090 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
6091 into calls to create_dwp_v2_or_v5_section.
6092 (create_dwo_unit_in_dwp_v5): New function.
6093 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
6094 check for version2; add else clause to handle version 5.
6095 (open_and_init_dwo_file): Add code to check dwarf version & only call
6096 create_debug_types_hash_table (with sections.types) if version is not 5;
6097 else call create_debug_type_hash_table, with sections.info.
6098 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
6100 (dwarf2_locate_v5_dwp_sections): New function.
6101 (open_and_init_dwp_file): Add else-if clause for version 5 to call
6102 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
6104 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
6106 * regcache.h (class regcache): Remove friend
6107 registers_changed_ptid.
6108 <regcache_thread_ptid_changed>: Remove.
6109 <regcaches>: Remove.
6110 * regcache.c (regcache::regcaches): Rename to...
6111 (regcaches): ... this. Make static.
6112 (get_thread_arch_aspace_regcache): Update.
6113 (regcache::regcache_thread_ptid_changed): Rename to...
6114 (regcache_thread_ptid_changed): ... this. Update.
6115 (class regcache_access): Remove.
6116 (regcaches_test): Update.
6117 (_initialize_regcache): Update.
6118 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
6121 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
6123 * regcache.h (class regcache) <current_regcache>: Rename to...
6124 <regcaches>: ... this. Move doc here.
6125 * regcache.c (regcache::current_regcache) Rename to...
6126 (regcache::regcaches): ... this. Move doc to header.
6127 (get_thread_arch_aspace_regcache): Update.
6128 (regcache::regcache_thread_ptid_changed): Update.
6129 (registers_changed_ptid): Update.
6130 (class regcache_access) <current_regcache_size>: Rename to...
6131 <regcaches_size>: ... this.
6132 (current_regcache_test): Rename to...
6133 (regcaches_test): ... this.
6134 (_initialize_regcache): Update.
6136 2020-08-06 Victor Collod <vcollod@nvidia.com>
6138 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
6140 2020-08-05 Kevin Buettner <kevinb@redhat.com>
6142 * corelow.c (core_target::build_file_mappings): Don't output
6143 null pathname in warning.
6145 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
6147 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
6148 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
6149 gdb.dwarf2/dw2-single-line-discriminators.exp,
6150 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
6152 2020-08-05 Tom Tromey <tromey@adacore.com>
6155 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
6156 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
6157 Fix off-by-one and type size errors in ordinary case.
6159 2020-08-05 Tom de Vries <tdevries@suse.de>
6161 * gdbtypes.c (type_not_allocated, type_not_associated): Use
6162 "prop->const_val () == 0" instead of "prop->const_val () != 0".
6164 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
6166 * frame.h (frame_id_p): Return bool.
6167 (frame_id_artificial_p): Return bool.
6168 (frame_id_eq): Return bool.
6169 (has_stack_frames): Return bool.
6170 (get_selected_frame): Fix typo in comment.
6171 (get_frame_pc_if_available): Return bool.
6172 (get_frame_address_in_block_if_available): Return bool.
6173 (get_frame_func_if_available): Return bool.
6174 (read_frame_register_unsigned): Return bool.
6175 (get_frame_register_bytes): Return bool.
6176 (safe_frame_unwind_memory): Return bool.
6177 (deprecated_frame_register_read): Return bool.
6178 (frame_unwinder_is): Return bool.
6179 * frame.c (struct frame_info) <prev_arch::p>: Change type to
6181 <this_id::p>: Likewise.
6183 (frame_stash_add): Return bool.
6184 (get_frame_id): Use bool.
6185 (frame_id_build_special) Use bool.
6186 (frame_id_build_unavailable_stack): Use bool.
6187 (frame_id_build): Use bool.
6188 (frame_id_p): Return bool, use true/false instead of 1/0.
6189 (frame_id_artificial_p): Likewise.
6190 (frame_id_eq): Likewise.
6191 (frame_id_inner): Likewise.
6192 (get_frame_func_if_available): Likewise.
6193 (read_frame_register_unsigned): Likewise.
6194 (deprecated_frame_register_read): Likewise.
6195 (get_frame_register_bytes): Likewise.
6196 (has_stack_frames): Likewise.
6197 (inside_main_func): Likewise.
6198 (inside_entry_func): Likewise.
6199 (get_frame_pc_if_available): Likewise.
6200 (get_frame_address_in_block_if_available): Likewise.
6201 (frame_unwinder_is): Likewise.
6202 (safe_frame_unwind_memory): Likewise.
6203 (frame_unwind_arch): Likewise.
6205 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
6207 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
6208 type to cached_copy_status.
6209 (fprintf_frame): Adjust.
6210 (get_frame_func_if_available): Adjust.
6211 (frame_cleanup_after_sniffer): Adjust.
6213 2020-08-04 Mark Wielaard <mark@klomp.org>
6215 * MAINTAINERS (Write After Approval): Update email address.
6217 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6219 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
6220 dynamic_prop::const_val.
6222 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6224 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
6227 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6229 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
6231 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
6233 * configure.tgt: Set gdb_sim for bpf-*-* targets.
6235 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
6236 Jose E. Marchesi <jose.marchesi@oracle.com>
6238 * configure.tgt: Add entry for bpf-*-*.
6239 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
6240 (ALLDEPFILES): Add bpf-tdep.c.
6241 * bpf-tdep.c: New file.
6242 * MAINTAINERS: Add bpf target and maintainer.
6243 * NEWS: Mention the support for the new target.
6245 2020-08-04 Tom de Vries <tdevries@suse.de>
6248 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
6251 2020-08-03 John Baldwin <jhb@FreeBSD.org>
6253 * syscalls/freebsd.xml: Regenerate.
6255 2020-08-03 John Baldwin <jhb@FreeBSD.org>
6257 * syscalls/update-freebsd.sh: Fix usage and year range.
6259 2020-08-03 Tom de Vries <tdevries@suse.de>
6262 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
6263 DW_LNE_lo_user/DW_LNE_hi_user range.
6265 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
6268 * ada-lang.c (ada_modulus): Return 0 if property is not of const
6271 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6273 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
6275 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6277 * breakpoint.c (set_breakpoint_condition): Update the condition
6278 expressions after checking that the input condition string parses
6279 successfully and does not contain junk at the end.
6281 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6283 * breakpoint.c (set_breakpoint_condition): Update the
6284 condition string after parsing the new condition successfully.
6286 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6288 * proc-api.c (_STRUCTURED_PROC): Don't define.
6289 * proc-events.c: Likewise.
6290 * proc-flags.c: Likewise.
6291 * proc-why.c: Likewise.
6292 * procfs.c: Likewise.
6294 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
6295 * configure, config.in: Regenerate.
6297 2020-07-30 Tom de Vries <tdevries@suse.de>
6300 * ui-style.h (struct ui_file_style::color): Wrap m_value and
6301 m_red/m_green/m_blue in a union.
6303 2020-07-29 Tom de Vries <tdevries@suse.de>
6306 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
6308 2020-07-28 Tom Tromey <tromey@adacore.com>
6311 * symtab.h (find_pc_partial_function_sym): Declare.
6312 * cli/cli-cmds.c (disassemble_command): Use
6313 find_pc_partial_function_sym. Check asm_demangle.
6314 * blockframe.c (cache_pc_function_sym): New global.
6315 (cache_pc_function_name): Remove.
6316 (clear_pc_function_cache): Update.
6317 (find_pc_partial_function_sym): New function, from
6318 find_pc_partial_function.
6319 (find_pc_partial_function): Rewrite using
6320 find_pc_partial_function_sym.
6322 2020-07-28 Tom Tromey <tromey@adacore.com>
6324 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
6327 2020-07-28 Tom Tromey <tromey@adacore.com>
6329 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
6330 <DW_OP_GNU_variable_value>: Cast to address type.
6332 2020-07-28 Kamil Rytarowski <n54@gmx.com>
6334 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
6335 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
6336 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
6337 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
6338 (nbsd_get_siginfo_type): New.
6339 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
6340 (_initialize_nbsd_tdep): New.
6342 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
6345 * configure: Regenerated.
6347 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
6350 * configure: Regenerated.
6352 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
6354 * python/py-frame.c: Remove 'user-regs.h' include.
6355 (frapy_read_register): Rewrite to make use of
6356 gdbpy_parse_register_id.
6357 * python/py-registers.c (gdbpy_parse_register_id): New function,
6358 moved here from python/py-unwind.c. Updated the return type, and
6359 also accepts register descriptor objects.
6360 * python/py-unwind.c: Remove 'user-regs.h' include.
6361 (pyuw_parse_register_id): Moved to python/py-registers.c.
6362 (unwind_infopy_add_saved_register): Update to use
6363 gdbpy_parse_register_id.
6364 (pending_framepy_read_register): Likewise.
6365 * python/python-internal.h (gdbpy_parse_register_id): Declare.
6367 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
6369 * python/py-registers.c: Add 'user-regs.h' include.
6370 (register_descriptor_iter_find): New function.
6371 (register_descriptor_iterator_object_methods): New static global
6373 (register_descriptor_iterator_object_type): Add pointer to methods
6376 2020-07-27 John Baldwin <jhb@FreeBSD.org>
6378 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
6379 for all architectures on FreeBSD 11.3 and later.
6381 2020-07-27 Tom Tromey <tromey@adacore.com>
6383 * gcore.h (load_corefile): Don't declare.
6385 2020-07-27 Tom de Vries <tdevries@suse.de>
6387 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
6388 * config.in: Regenerate.
6389 * configure: Regenerate.
6391 2020-07-26 Eli Zaretskii <eliz@gnu.org>
6393 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
6394 ws2tcpip.h. When checking whether socklen_t type is defined, use
6395 ws2tcpip.h if it is available and sys/socket.h isn't.
6396 * configure: Regenerate.
6397 * config.in: Regenerate.
6399 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
6403 * valops.c (value_ind): Pass address to
6404 readjust_indirect_value_type.
6405 * value.c (readjust_indirect_value_type): Make parameter
6406 non-const, and add extra address parameter. Resolve original type
6408 * value.h (readjust_indirect_value_type): Update function
6409 signature and comment.
6411 2020-07-25 Tom de Vries <tdevries@suse.de>
6414 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
6417 2020-07-24 Aaron Merey <amerey@redhat.com>
6419 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
6420 * configure: Rebuild.
6422 2020-07-23 Kevin Buettner <kevinb@redhat.com>
6425 * corelow.c (_initialize_corelow): Add period to help text
6426 for "maintenance print core-file-backed-mappings".
6428 2020-07-23 Pedro Alves <pedro@palves.net>
6430 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
6431 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
6433 * frame.c (frame_cache_generation, get_frame_cache_generation):
6435 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
6436 (get_prev_frame_if_no_cycle): On exception, don't touch
6437 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
6438 * frame.h (get_frame_cache_generation): Declare.
6440 2020-07-23 Tom de Vries <tdevries@suse.de>
6443 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
6444 New default constructor.
6446 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
6448 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
6449 exclude non-statement entries.
6451 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6453 * NEWS (New commands): Mention new command
6454 "maintenance print core-file-backed-mappings".
6456 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6458 * corelow.c (gdbcmd.h): Include.
6459 (core_target::info_proc_mappings): New method.
6460 (get_current_core_target): New function.
6461 (maintenance_print_core_file_backed_mappings): New function.
6462 (_initialize_corelow): Add core-file-backed-mappings to
6463 "maint print" commands.
6465 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6467 * linux-tdep.c (dump_note_entry_p): New function.
6468 (linux_dump_mapping_p_ftype): New typedef.
6469 (linux_find_memory_regions_full): Add new parameter,
6470 should_dump_mapping_p.
6471 (linux_find_memory_regions): Adjust call to
6472 linux_find_memory_regions_full.
6473 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
6474 call to linux_find_memory_regions_full.
6476 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6478 * corelow.c (solist.h, unordered_map): Include.
6479 (class core_target): Add field m_core_file_mappings and
6480 method build_file_mappings.
6481 (core_target::core_target): Call build_file_mappings.
6482 (core_target::~core_target): Free memory associated with
6483 m_core_file_mappings.
6484 (core_target::build_file_mappings): New method.
6485 (core_target::xfer_partial): Use m_core_file_mappings
6486 for memory transfers.
6487 * linux-tdep.c (linux_read_core_file_mappings): New
6489 (linux_core_info_proc_mappings): Rewrite to use
6490 linux_read_core_file_mappings.
6491 (linux_init_abi): Register linux_read_core_file_mappings.
6493 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6495 * arch-utils.c (default_read_core_file_mappings): New function.
6496 * arch-utils.c (default_read_core_file_mappings): Declare.
6497 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
6498 * gdbarch.h, gdbarch.c: Regenerate.
6500 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6503 * corelow.c (core_target:xfer_partial): Revise
6504 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
6505 case after first checking the stratum beneath the core
6507 (has_all_memory): Return true.
6508 * target.c (raw_memory_xfer_partial): Revise comment
6509 regarding use of has_all_memory.
6511 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6513 * exec.h (section_table_xfer_memory): Revise declaration,
6514 replacing section name parameter with an optional callback
6516 * exec.c (section_table_xfer_memory): Likewise.
6517 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
6518 of section_table_xfer_memory.
6520 2020-07-22 Tom Tromey <tromey@adacore.com>
6522 * mi/mi-cmd-stack.c (list_args_or_locals): Use
6523 lookup_symbol_search_name.
6525 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6527 * python/py-registers.c (gdbpy_register_object_data_init): Remove
6528 redundant local variable.
6529 (gdbpy_get_register_descriptor): Extract descriptor vector as a
6530 reference, not pointer, update code accordingly.
6532 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6533 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6535 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
6536 * jit.c (jit_breakpoint_re_set_internal): Use the
6537 `skip_jit_symbol_lookup` field.
6539 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6540 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6542 * jit.c (jit_read_descriptor): Define the descriptor address once,
6544 (jit_breakpoint_deleted): Move the declaration of the loop variable
6545 `iter` into the loop header.
6546 (jit_breakpoint_re_set_internal): Move the declaration of the local
6547 variable `objf_data` to the first point of definition.
6548 (jit_event_handler): Move the declaration of local variables
6549 `code_entry`, `entry_addr`, and `objf` to their first point of use.
6550 Rename `objf` to `jited`.
6552 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6554 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
6556 * jit.c (get_jiter_objfile_data): Update.
6558 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6559 Simon Marchi <simon.marchi@polymtl.ca>
6561 * jit.c (struct jit_program_space_data): Remove.
6562 (jit_program_space_key): Remove.
6563 (jiter_objfile_data::~jiter_objfile_data): Remove program space
6565 (get_jit_program_space_data): Remove.
6566 (jit_breakpoint_deleted): Iterate on all of the program space's
6568 (jit_inferior_init): Likewise.
6569 (jit_breakpoint_re_set_internal): Likewise. Also change return
6571 (jit_breakpoint_re_set): Pass current_program_space to
6572 jit_breakpoint_re_set_internal.
6574 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6576 * jit.h (struct jiter_objfile_data) <cached_code_address,
6577 jit_breakpoint>: Move to here from ...
6578 * jit.c (jit_program_space_data): ... here.
6579 (jiter_objfile_data::~jiter_objfile_data): Update.
6580 (jit_breakpoint_deleted): Update.
6581 (jit_breakpoint_re_set_internal): Update.
6583 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6585 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
6587 (jit_read_descriptor): Remove NULL check.
6588 (jit_event_handler): Add an assertion.
6590 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6592 * jit.h (struct jit_objfile_data): Split into...
6593 (struct jiter_objfile_data): ... this ...
6594 (struct jited_objfile_data): ... and this.
6595 * objfiles.h (struct objfile) <jit_data>: Remove.
6596 <jiter_data, jited_data>: New fields.
6597 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
6598 (jiter_objfile_data::~jiter_objfile_data): ... this.
6599 (get_jit_objfile_data): Rename to ...
6600 (get_jiter_objfile_data): ... this.
6601 (add_objfile_entry): Update.
6602 (jit_read_descriptor): Use get_jiter_objfile_data.
6603 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
6604 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
6605 (jit_inferior_exit_hook): Use objfile's jited_data field.
6607 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6609 * jit.h: Forward-declare `struct minimal_symbol`.
6610 (struct jit_objfile_data): Migrate to here from jit.c; also add a
6611 constructor, destructor, and an objfile* field.
6612 * jit.c (jit_objfile_data): Remove.
6613 (struct jit_objfile_data): Migrate from here to jit.h.
6614 (jit_objfile_data::~jit_objfile_data): New destructor
6615 implementation with code moved from free_objfile_data.
6616 (free_objfile_data): Delete.
6617 (get_jit_objfile_data): Update to use the jit_data field of objfile.
6618 (jit_find_objf_with_entry_addr): Ditto.
6619 (jit_inferior_exit_hook): Ditto.
6620 (_initialize_jit): Remove the call to
6621 register_objfile_data_with_cleanup.
6622 * objfiles.h (struct objfile) <jit_data>: New field.
6624 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6626 * jit.h: Forward-declare `struct objfile`.
6627 (jit_event_handler): Add a second parameter, the JITer objfile.
6628 * jit.c (jit_read_descriptor): Change the signature to take the
6629 JITer objfile as an argument instead of the jit_program_space_data.
6630 (jit_inferior_init): Update the call to jit_read_descriptor.
6631 (jit_event_handler): Use the new JITer objfile argument when calling
6632 jit_read_descriptor.
6633 * breakpoint.c (handle_jit_event): Update the call to
6634 jit_event_handler to pass the JITer objfile.
6636 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6638 * gdbarch.c: Regenerate.
6639 * gdbarch.h: Regenerate.
6640 * gdbarch.sh (handle_segmentation_fault): Remove method.
6641 * infrun.c (handle_segmentation_fault): Remove.
6642 (print_signal_received_reason): Remove call to
6643 handle_segmentation_fault.
6645 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6647 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
6648 Rename to sparc64_linux_report_signal_info and add siggnal
6650 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
6651 instead of sparc64_linux_handle_segmentation_fault.
6653 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6655 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
6656 i386_linux_report_signal_info instead of
6657 i386_linux_handle_segmentation_fault.
6658 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
6659 to i386_linux_report_signal_info and add siggnal argument.
6660 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
6661 of i386_linux_handle_segmentation_fault.
6662 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
6663 to i386_linux_report_signal_info and add siggnal argument.
6665 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6667 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
6670 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6672 * gdbarch.c: Regenerate.
6673 * gdbarch.h: Regenerate.
6674 * gdbarch.sh (report_signal_info): New method.
6675 * infrun.c (print_signal_received_reason): Invoke gdbarch
6676 report_signal_info hook if present.
6678 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
6680 * python/py-registers.c : Add 'unordered_map' include.
6681 (gdbpy_new_reggroup): Renamed to...
6682 (gdbpy_get_reggroup): ...this. Update to only create register
6683 group descriptors when needed.
6684 (gdbpy_reggroup_iter_next): Update.
6686 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
6688 * python/py-registers.c (gdbpy_register_object_data): New static
6690 (gdbpy_register_object_data_init): New function.
6691 (gdbpy_new_register_descriptor): Renamed to...
6692 (gdbpy_get_register_descriptor): ...this, and update to reuse
6693 existing register descriptors where possible.
6694 (gdbpy_register_descriptor_iter_next): Update.
6695 (gdbpy_initialize_registers): Register new gdbarch data.
6697 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
6699 * linux-nat.c (stopped_pids): Make static.
6701 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
6704 * gdbtypes.c (ada_discrete_type_low_bound,
6705 ada_discrete_type_high_bound): Handle undefined bounds.
6707 2020-07-21 Kamil Rytarowski <n54@gmx.com>
6709 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
6711 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
6714 2020-07-20 John Baldwin <jhb@FreeBSD.org>
6716 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
6717 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
6718 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
6719 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
6720 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
6723 2020-07-20 Ludovic Courtès <ludo@gnu.org>
6725 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
6726 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
6727 which are deprecated in Guile 3.0.
6728 * configure.ac (try_guile_versions): Add "guile-3.0".
6729 * configure (try_guile_versions): Regenerate.
6730 * NEWS: Update entry.
6732 2020-07-20 Ludovic Courtès <ludo@gnu.org>
6733 Doug Evans <dje@google.com>
6736 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
6737 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
6738 USING_GUILE_BEFORE_2_2.
6739 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
6740 Change type to 'scm_t_port_type *'.
6741 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
6742 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
6743 parameter and honor it. Update callers.
6744 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
6745 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
6747 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
6748 USING_GUILE_BEFORE_2_2.
6749 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
6750 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
6751 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
6752 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
6753 and 'SCM_PORT_TYPE'.
6754 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
6755 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
6756 (gdbscm_memory_port_read, gdbscm_memory_port_write)
6757 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
6758 [!USING_GUILE_BEFORE_2_2]: New functions.
6759 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
6760 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
6761 'gdbscm_memory_port_read'.
6762 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
6763 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
6764 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
6766 (ioscm_init_memory_port): Remove.
6767 (ioscm_init_memory_port_stream): New function
6768 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
6770 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
6771 Return scm_from_uint (0).
6772 (gdbscm_set_memory_port_read_buffer_size_x)
6773 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
6774 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
6775 Return scm_from_uint (0).
6776 (gdbscm_set_memory_port_write_buffer_size_x)
6777 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
6778 * configure.ac (try_guile_versions): Add "guile-2.2".
6779 * configure: Regenerate.
6782 2020-07-18 Tom Tromey <tom@tromey.com>
6784 * linux-nat.c (linux_multi_process): Remove.
6785 (linux_nat_target::supports_multi_process): Return true.
6787 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
6789 * arch/riscv.c (riscv_tdesc_cache): Change map type.
6790 (riscv_lookup_target_description): Return pointer out of
6792 * target-descriptions.c (allocate_target_description): Add
6794 (target_desc_deleter::operator()): Likewise.
6795 * target-descriptions.h (struct target_desc_deleter): Moved to
6797 (target_desc_up): Likewise.
6799 2020-07-17 Tom Tromey <tromey@adacore.com>
6801 * linux-nat.c (linux_nat_target::supports_non_stop)
6802 (linux_nat_target::always_non_stop_p): Use "true".
6803 (linux_nat_target::supports_disable_randomization): Use "true" and
6806 2020-07-16 Caroline Tice <cmtice@google.com>
6808 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
6809 (RNGLIST_HEADER_SIZE64): New constant definition.
6810 (struct dwop_section_names): Add rnglists_dwo.
6811 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
6812 (struct loclist_header): Rename to 'loclists_rnglists_header'.
6813 (struct dwo_sections): Add rnglists field.
6814 (read_attribut_reprocess): Add tag parameter.
6815 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
6816 (cu_debug_rnglists_section): New function (decl & definition).
6817 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
6818 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
6819 die whose range is being checked; get rnglist section from
6820 cu_debug_rnglists_section, to get from either objfile or dwo file as
6821 appropriate. Add cases for DW_RLE_base_addressx,
6822 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
6823 the base address to DW_RLE_offset_pairs (not to all ranges), moving
6824 test inside if-condition and updating complaint message.
6825 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
6826 dwarf2_rnglists_process.
6827 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
6828 dwarf2_ranges_process.
6829 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
6830 need_ranges_base and update comment appropriately. Also pass die tag
6831 to dwarf2_ranges_read.
6832 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
6833 need_ranges_base and update comment appropriately. Also pass die tag
6834 to dwarf2_ranges_process.
6835 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
6836 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
6837 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
6838 need_ranges_base and update comment appropriately. Also pass die tag
6839 to read_attribute_reprocess and dwarf2_ranges_read.
6840 (read_loclist_header): Rename function to read_loclists_rnglists_header,
6841 and update function comment appropriately.
6842 (read_loclist_index): Call read_loclists_rnglists_header instead of
6843 read_loclist_header.
6844 (read_rnglist_index): New function.
6845 (read_attribute_reprocess): Add tag parameter. Add code for
6846 DW_FORM_rnglistx, passing tag to read_rnglist_index.
6847 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
6849 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
6851 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
6854 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
6856 * arch-utils.c (show_architecture): Update formatting of messages.
6858 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6860 * gdbtypes.h (struct type) <bounds>: Handle array and string
6862 * ada-lang.c (assign_aggregate): Use type::bounds on
6864 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
6865 * c-varobj.c (c_number_of_children): Likewise.
6866 (c_describe_child): Likewise.
6867 * eval.c (evaluate_subexp_for_sizeof): Likewise.
6868 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
6869 (f_type_print_base): Likewise.
6870 * f-valprint.c (f77_array_offset_tbl): Likewise.
6871 (f77_get_upperbound): Likewise.
6872 (f77_print_array_1): Likewise.
6873 * guile/scm-type.c (gdbscm_type_range): Likewise.
6874 * m2-typeprint.c (m2_array): Likewise.
6875 (m2_is_long_set_of_type): Likewise.
6876 * m2-valprint.c (get_long_set_bounds): Likewise.
6877 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
6878 * python/py-type.c (typy_range): Likewise.
6879 * rust-lang.c (rust_internal_print_type): Likewise.
6880 * type-stack.c (type_stack::follow_types): Likewise.
6881 * valarith.c (value_subscripted_rvalue): Likewise.
6882 * valops.c (value_cast): Likewise.
6884 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6886 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
6887 callers to use the equivalent accessor methods.
6889 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6891 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
6892 (struct type) <bit_stride>: New method.
6893 (TYPE_BIT_STRIDE): Remove.
6894 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
6896 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6898 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
6899 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
6900 callers to use the equivalent accessor methods instead.
6902 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6904 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
6905 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
6906 callers to use the equivalent accessor methods instead.
6908 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6910 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
6911 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
6912 to use dynamic_prop::kind.
6914 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6916 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
6917 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
6918 to get the bound property's kind and check against
6921 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6923 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
6924 all callers to use type::range_bounds followed by
6925 dynamic_prop::{low,high}.
6927 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
6929 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
6930 const_val, set_const_val, baton, set_locexpr, set_loclist,
6931 set_addr_offset, variant_parts, set_variant_parts,
6932 original_type, set_original_type>: New methods.
6933 <kind>: Rename to...
6934 <m_kind>: ... this. Update all users to use the new methods
6936 <data>: Rename to...
6937 <m_data>: ... this. Update all users to use the new methods
6940 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6942 * gdbtypes.c (get_discrete_bounds): Return failure if
6943 the range type's bounds are not both defined and constant
6945 (get_array_bounds): Update comment. Remove undefined bound check.
6947 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
6949 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
6950 the type::bounds method directly.
6952 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6954 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
6955 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
6956 are used to set the range type's bounds to use set_bounds.
6958 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6960 * exec.c (_initialize_exec): Update exec-file-mismatch help.
6962 2020-07-10 Pedro Alves <pedro@palves.net>
6964 * gdbthread.h (inferior_ref): Define.
6965 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
6966 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
6968 (scoped_restore_current_thread::restore):
6969 Adjust to gdb::ref_ptr.
6970 (scoped_restore_current_thread::~scoped_restore_current_thread):
6971 Remove manual decref handling.
6972 (scoped_restore_current_thread::scoped_restore_current_thread):
6974 inferior_ref::new_reference/thread_info_ref::new_reference.
6975 Incref the thread before calling get_frame_id instead of after.
6976 Let TARGET_CLOSE_ERROR propagate.
6978 2020-07-10 Pedro Alves <pedro@palves.net>
6980 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
6981 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
6982 NOT_AVAILABLE_ERROR.
6983 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
6984 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
6986 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6987 Pedro Alves <pedro@palves.net>
6990 * infrun.c (threads_are_resumed_pending_p): Delete.
6991 (do_target_wait): Remove threads_are_executing and
6992 threads_are_resumed_pending_p checks from the inferior_matches
6993 lambda. Update comments.
6995 2020-07-10 Pedro Alves <pedro@palves.net>
6998 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
7001 2020-07-10 Pedro Alves <pedro@palves.net>
7004 * infrun.c (handle_no_resumed): Handle multiple targets.
7006 2020-07-10 Pedro Alves <pedro@palves.net>
7009 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
7012 2020-07-10 Pedro Alves <pedro@palves.net>
7015 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
7016 threads, not all threads.
7018 2020-07-10 Pedro Alves <pedro@palves.net>
7021 * remote.c (remote_target::open_1): Pass remote target pointer as
7022 data to create_async_event_handler.
7023 (remote_async_inferior_event_handler): Mark async event handler
7024 before returning if the remote target still has either pending
7025 events or unacknowledged notifications.
7027 2020-07-10 John Baldwin <jhb@FreeBSD.org>
7029 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
7031 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
7034 2020-07-09 John Baldwin <jhb@FreeBSD.org>
7036 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
7039 2020-07-09 John Baldwin <jhb@FreeBSD.org>
7041 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
7042 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
7043 AT_FREEBSD_PS_STRINGS.
7045 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
7047 * auto-load.c (auto_load_objfile_script_1): Convert drive part
7048 of debugfile path on Windows.
7050 2020-07-08 John Baldwin <jhb@FreeBSD.org>
7052 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
7055 2020-07-08 Tom Tromey <tromey@adacore.com>
7057 * ada-lang.c (ada_exception_message_1): Use read_memory.
7059 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7062 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
7063 special handling for inline frames.
7064 * findvar.c (value_of_register_lazy): Skip inline frames when
7065 creating lazy register values.
7066 * frame.c (frame_id_computed_p): Delete definition.
7067 * frame.h (frame_id_computed_p): Delete declaration.
7069 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7071 * NEWS: Mention additions to Python API.
7072 * python/py-arch.c (archpy_register_groups): New function.
7073 (arch_object_methods): Add 'register_groups' method.
7074 * python/py-registers.c (reggroup_iterator_object): New struct.
7075 (reggroup_object): New struct.
7076 (gdbpy_new_reggroup): New function.
7077 (gdbpy_reggroup_to_string): New function.
7078 (gdbpy_reggroup_name): New function.
7079 (gdbpy_reggroup_iter): New function.
7080 (gdbpy_reggroup_iter_next): New function.
7081 (gdbpy_new_reggroup_iterator): New function
7082 (gdbpy_initialize_registers): Register new types.
7083 (reggroup_iterator_object_type): Define new Python type.
7084 (gdbpy_reggroup_getset): New static global.
7085 (reggroup_object_type): Define new Python type.
7086 * python/python-internal.h
7088 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7090 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
7091 * python/py-arch.c (archpy_registers): New function.
7092 (arch_object_methods): Add 'registers' method.
7093 * python/py-registers.c: New file.
7094 * python/python-internal.h
7095 (gdbpy_new_register_descriptor_iterator): Declare.
7096 (gdbpy_initialize_registers): Declare.
7097 * python/python.c (do_start_initialization): Call
7098 gdbpy_initialize_registers.
7099 * NEWS: Mention additions to the Python API.
7101 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7103 * NEWS: Mention new Python API method.
7104 * python/py-unwind.c (pending_framepy_architecture): New function.
7105 (pending_frame_object_methods): Add architecture method.
7107 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7109 * gdbarch.c: Regenerate.
7110 * gdbarch.h: Regenerate.
7111 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
7112 (gdbarch_data): Use internal_error for the case where
7113 deprecated_set_gdbarch_data was originally needed.
7114 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
7115 and use passed in obstack.
7116 (libunwind_frame_set_descr): Should no longer get back NULL from
7118 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
7120 * user-regs.c (user_regs_init): Update parameters, and use passed
7122 (user_reg_add): Should no longer get back NULL from gdbarch_data.
7123 (_initialize_user_regs): Register as a pre-init gdbarch data type.
7125 2020-07-06 Tom de Vries <tdevries@suse.de>
7127 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
7128 End-Of-Sequence in lte_is_less_than.
7129 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
7130 "gdb: Don't reorder line table entries too much when sorting".
7132 2020-07-06 Tom de Vries <tdevries@suse.de>
7135 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
7137 2020-07-05 Tom de Vries <tdevries@suse.de>
7140 * inferior.h (struct infcall_suspend_state_deleter): If available, use
7141 std::uncaught_exceptions instead of deprecated
7142 std::uncaught_exception.
7144 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7146 * macroexp.h (macro_stringify): Return
7147 gdb::unique_xmalloc_ptr<char>.
7148 * macroexp.c (macro_stringify): Likewise.
7149 * macrotab.c (fixup_definition): Update.
7151 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7153 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
7154 (lex_one_token): Update.
7155 * macroexp.c (struct macro_buffer) <release>: Return
7156 gdb::unique_xmalloc_ptr<char>.
7157 (macro_stringify): Update.
7158 (macro_expand): Update.
7159 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
7160 * macroexp.h (macro_expand_next): Likewise.
7162 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
7164 * macroexp.h (macro_lookup_ftype): Remove.
7165 (macro_expand, macro_expand_once, macro_expand_next): Remove
7166 lookup function parameters, add scope parameter.
7167 * macroexp.c (scan, substitute_args, expand, maybe_expand,
7168 macro_expand, macro_expand_once, macro_expand_next): Likewise.
7169 * macroscope.h (standard_macro_lookup): Change parameter type
7171 * macroscope.c (standard_macro_lookup): Likewise.
7172 * c-exp.y (lex_one_token): Update.
7173 * macrocmd.c (macro_expand_command): Likewise.
7174 (macro_expand_once_command): Likewise.
7176 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7178 * inf-loop.c (inferior_event_handler): Remove client_data param.
7179 * inf-loop.h (inferior_event_handler): Likewise.
7180 * infcmd.c (step_1): Adjust.
7181 * infrun.c (proceed): Adjust.
7182 (fetch_inferior_event): Remove client_data param.
7183 (infrun_async_inferior_event_handler): Adjust.
7184 * infrun.h (fetch_inferior_event): Remove `void *` param.
7185 * linux-nat.c (handle_target_event): Adjust.
7186 * record-btrace.c (record_btrace_handle_async_inferior_event):
7188 * record-full.c (record_full_async_inferior_event_handler):
7190 * remote.c (remote_async_inferior_event_handler): Adjust.
7192 2020-07-01 Tom Tromey <tom@tromey.com>
7194 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
7195 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
7197 2020-07-01 Tom Tromey <tom@tromey.com>
7199 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
7201 (tui_win_info::make_window): Merge with
7202 tui_gen_win_info::make_window.
7203 (tui_win_info::make_visible): Move from tui_gen_win_info.
7204 * tui/tui-win.c (tui_win_info::max_width): Move from
7206 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
7208 <window_factory>: Likewise.
7209 * tui/tui-layout.c (tui_win_info::resize): Move from
7211 (make_standard_window): Change return type.
7212 (get_locator_window, tui_get_window_by_name): Likewise.
7213 (tui_layout_window::apply): Remove a cast.
7214 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
7215 (struct tui_win_info): Merge with tui_gen_win_info.
7216 (struct tui_gen_win_info): Remove.
7218 2020-07-01 Tom Tromey <tom@tromey.com>
7220 * tui/tui-stack.h (struct tui_locator_window): Derive from
7222 <do_scroll_horizontal, do_scroll_vertical>: New methods.
7223 <can_box>: New method.
7225 2020-07-01 Tom Tromey <tom@tromey.com>
7227 * tui/tui-stack.h (struct tui_locator_window): Remove body.
7229 2020-07-01 Tom Tromey <tom@tromey.com>
7231 * tui/tui-regs.c (tui_data_window::display_registers_from)
7232 (tui_data_window::display_registers_from)
7233 (tui_data_window::first_data_item_displayed)
7234 (tui_data_window::delete_data_content_windows): Update.
7235 (tui_data_window::refresh_window, tui_data_window::no_refresh):
7237 (tui_data_window::check_register_values): Update.
7238 (tui_data_item_window::rerender): Add parameters. Update.
7239 (tui_data_item_window::refresh_window): Remove.
7240 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
7242 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
7244 <refresh_window, max_height, min_height>: Remove.
7245 <rerender>: Add parameters.
7246 <x, y, visible>: New members.
7247 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
7248 <m_item_width>: New member.
7250 2020-07-01 Tom Tromey <tom@tromey.com>
7252 * tui/tui-regs.c (tui_data_window::show_register_group)
7253 (tui_data_window::check_register_values): Update.
7254 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
7257 2020-07-01 Tom Tromey <tom@tromey.com>
7259 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
7262 2020-07-01 Tom Tromey <tom@tromey.com>
7264 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
7265 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
7267 2020-07-01 Tom Tromey <tom@tromey.com>
7269 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
7270 * tui/tui-winsource.h (enum tui_line_or_address_kind)
7271 (struct tui_line_or_address): Move from tui-data.h.
7272 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
7273 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
7274 (tui_cmd_window, tui_source_window_base, tui_source_window)
7275 (tui_disasm_window): Don't declare.
7276 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
7278 (SINGLE_KEY): Move to tui-stack.c.
7280 2020-07-01 Tom Tromey <tom@tromey.com>
7282 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
7284 * tui/tui-regs.c (class tab_expansion_file): New.
7285 (tab_expansion_file::write): New method.
7286 (tui_register_format): Change return type. Use
7288 (tui_get_register, tui_data_window::display_registers_from)
7289 (tui_data_item_window::rerender): Update.
7290 * tui/tui-io.h (tui_expand_tabs): Don't declare.
7291 * tui/tui-io.c (tui_expand_tabs): Remove.
7293 2020-07-01 Tom Tromey <tom@tromey.com>
7295 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
7297 2020-07-01 Fangrui Song <maskray@google.com>
7299 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
7301 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7303 * dwarf2/read.c (set_die_type): Removed conditions to restrict
7304 forms for DW_AT_associated and DW_AT_allocated attributes,
7305 which is already checked in function attr_to_dynamic_prop.
7307 2020-06-30 Tom Tromey <tromey@adacore.com>
7309 * dwarf2/read.c (quirk_rust_enum): Correctly call
7310 alloc_rust_variant for default-less enum.
7312 2020-06-30 Tom Tromey <tromey@adacore.com>
7315 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
7318 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
7320 * gdbarch.sh (displaced_step_copy_insn): Update doc.
7321 * gdbarch.h: Re-generate.
7323 2020-06-28 Tom Tromey <tom@tromey.com>
7325 * command.h (cmd_types): Remove.
7326 (cmd_type): Don't declare.
7327 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
7329 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
7330 * cli/cli-decode.c (cmd_type): Remove.
7332 2020-06-27 Pedro Alves <palves@redhat.com>
7334 * fork-child.c (prefork_hook): Adjust.
7335 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
7337 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
7338 * inferior.c (inferior::set_tty, inferior::tty): New methods.
7339 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
7340 Remove declarations.
7341 (struct inferior) <set_tty, tty>: New methods.
7342 (struct inferior) <terminal>: Rename to ...
7343 (struct inferior) <m_terminal>: ... this and make private.
7344 * main.c (captured_main_1): Adjust.
7345 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
7346 (mi_cmd_inferior_tty_show): Adjust.
7347 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
7348 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
7350 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
7352 * configure.ac: Add --enable-libctf: handle --disable-static
7354 * acinclude.m4: sinclude ../config/enable.m4.
7355 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
7356 (LIBCTF): Substitute in.
7357 (CTF_DEPS): New, likewise.
7358 (CLIBS): libctf needs symbols from libbfd: move earlier.
7359 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
7361 * ctfread.c: Surround in ENABLE_LIBCTF.
7362 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
7363 * configure: Regenerate.
7364 * config.in: Likewise.
7366 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
7368 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
7370 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
7372 * inferior.h (struct inferior) <terminal>: Change type to
7373 gdb::unique_xmalloc_ptr<char>.
7374 * inferior.c (inferior::~inferior): Don't free inf->terminal.
7375 * infcmd.c (set_inferior_io_terminal): Don't free terminal
7376 field, adjust to unique pointer.
7377 (get_inferior_io_terminal): Adjust to unique pointer.
7379 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7381 * riscv-tdep.c (riscv_print_registers_info): Loop over all
7382 registers, not just the known core set of registers.
7384 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7386 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
7387 fflags, frm, and fcsr registers.
7388 (riscv_register_reggroup_p): Remove unknown CSRs from save and
7390 (riscv_tdesc_unknown_reg): New function.
7391 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
7392 tdesc_use_registers.
7393 * riscv-tdep.h (struct gdbarch_tdep): Add
7394 unknown_csrs_first_regnum, unknown_csrs_count,
7395 duplicate_fflags_regnum, duplicate_frm_regnum, and
7396 duplicate_fcsr_regnum fields.
7398 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7400 * target-descriptions.c (tdesc_use_registers): Add new parameter a
7401 callback, use the callback (when not null) to help number unknown
7403 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
7404 (tdesc_use_registers): Add extra parameter to declaration.
7406 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7408 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
7410 (class riscv_pending_register_alias): Likewise.
7411 (riscv_register_feature::register_info): Change 'required_p' field
7412 to 'required', and change its type. Add 'check' member function.
7413 (riscv_register_feature::register_info::check): Define new member
7415 (riscv_xreg_feature): Change initialisation of 'required' field.
7416 (riscv_freg_feature): Likewise.
7417 (riscv_virtual_feature): Likewise.
7418 (riscv_csr_feature): Likewise.
7419 (riscv_check_tdesc_feature): Take extra parameter, the csr
7420 tdesc_feature, rewrite the function to use the new
7421 riscv_register_feature::register_info::check function.
7422 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
7424 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7426 * features/Makefile: Remove all references to the deleted files
7428 * features/riscv/32bit-csr.c: Deleted.
7429 * features/riscv/32bit-csr.xml: Deleted.
7430 * features/riscv/64bit-csr.c: Deleted.
7431 * features/riscv/64bit-csr.xml: Deleted.
7432 * features/riscv/rebuild-csr-xml.sh: Deleted.
7434 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7436 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
7437 whitespace error for declaration of names member variable.
7438 (struct riscv_register_feature): Add new prefer_first_name member
7439 variable, and fix whitespace error in declaration of registers.
7440 (riscv_xreg_feature): Initialize prefer_first_name field.
7441 (riscv_freg_feature): Likewise.
7442 (riscv_virtual_feature): Likewise.
7443 (riscv_csr_feature): Likewise.
7444 (riscv_register_name): Expand on comments. Remove register name
7445 modifications for CSR and virtual registers.
7447 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7449 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
7452 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7454 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
7456 (class riscv_pending_register_alias): New class.
7457 (riscv_check_tdesc_feature): Take vector of pending aliases and
7458 populate it as appropriate.
7459 (riscv_setup_register_aliases): Delete.
7460 (riscv_gdbarch_init): Create vector of pending aliases and pass it
7461 to riscv_check_tdesc_feature in all cases. Use the vector to
7462 create the register aliases.
7464 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7466 * sol2-tdep.c (sol2_static_transform_name): Remove.
7467 (sol2_init_abi): Don't register it.
7468 * gdbarch.sh (static_transform_name): Remove.
7469 * gdbarch.c, gdbarch.h: Regenerate.
7471 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
7472 gdbarch_static_transform_name.
7473 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
7474 * stabsread.c (define_symbol) <'X'>: Remove.
7475 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
7478 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
7479 <'S'>: Remove call to gdbarch_static_transform_name.
7481 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7483 * procfs.c (procfs_pre_trace): New function.
7484 (procfs_target::create_inferior): Pass it to fork_inferior.
7486 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7488 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
7489 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
7490 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
7491 sol2-tdep.o, sparc-sol2-tdep.o.
7492 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
7493 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
7494 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
7495 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
7497 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7499 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
7500 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
7502 Remove calls to set_gdbarch_skip_solib_resolver,
7503 set_gdbarch_core_pid_to_str.
7504 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
7505 (i386_sol2_static_transform_name): Remove.
7506 (i386_sol2_init_abi): Call sol2_init_abi.
7507 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7508 set_gdbarch_static_transform_name,
7509 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
7510 Use sol2_sigtramp_p.
7511 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
7512 (sol2_sigtramp_p): New function.
7513 (sol2_static_transform_name): New function.
7514 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
7515 (sol2_init_abi): New function.
7516 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
7517 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
7518 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
7519 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
7520 (sparc_sol2_static_transform_name): Remove.
7521 (sparc32_sol2_init_abi): Call sol2_init_abi.
7522 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7523 set_gdbarch_static_transform_name,
7524 set_gdbarch_skip_solib_resolver,
7525 set_gdbarch_core_pid_to_str.
7526 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
7527 (sparc_sol2_static_transform_name): Remove
7528 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
7529 call sol2_sigtramp_p.
7530 (sparc64_sol2_init_abi): Call sol2_init_abi.
7531 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7532 set_gdbarch_static_transform_name,
7533 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
7535 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7537 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
7538 * exec.c (validate_exec_file): If from_tty, set both
7539 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
7540 * symfile.c (symbol_file_add_with_addrs): if always_confirm
7541 and from_tty, unconditionally ask a confirmation.
7543 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7545 * target-descriptions.c (tdesc_architecture_name): Protect against
7546 NULL pointer dereference.
7547 (maint_print_xml_tdesc_cmd): New function.
7548 (_initialize_target_descriptions): Register new 'maint print
7549 xml-tdesc' command and give it the filename completer.
7550 * NEWS: Mention new 'maint print xml-tdesc' command.
7552 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7554 * target-descriptions.c (class tdesc_compatible_info): New class.
7555 (struct target_desc): Change type of compatible vector.
7556 (tdesc_compatible_p): Update for change in type of
7557 target_desc::compatible.
7558 (tdesc_compatible_info_list): New function.
7559 (tdesc_compatible_info_arch_name): New function.
7560 (tdesc_add_compatible): Update for change in type of
7561 target_desc::compatible.
7562 (print_c_tdesc::visit_pre): Likewise.
7564 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7566 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
7567 whitespace to underscore.
7568 (maint_print_c_tdesc_cmd): Use fake filename for target
7569 descriptions that came from the target.
7570 (_initialize_target_descriptions): Add filename command completion
7571 for 'maint print c-tdesc'.
7573 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
7575 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
7578 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
7580 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
7582 (dwarf2_find_location_expression): Likewise.
7583 (call_site_parameter_matches): Likewise.
7584 (dwarf2_compile_expr_to_ax): Likewise.
7585 (disassemble_dwarf_expression): Likewise.
7586 (loclist_describe_location): Likewise.
7588 2020-06-23 Pedro Alves <palves@redhat.com>
7590 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
7591 progspace-and-thread.h. Include scoped-mock-context.h instead.
7592 (register_to_value_test): Use scoped_mock_context.
7593 * regcache.c: Include "scoped-mock-context.h".
7594 (cooked_read_test): Don't error out if a target is already pushed.
7595 Use scoped_mock_context. Adjust.
7596 * scoped-mock-context.h: New file.
7598 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7600 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
7602 (ada_language::is_string_type_p): New member function.
7603 * c-lang.c (c_language_data): Delete la_is_string_type_p
7605 (cplus_language_data): Likewise.
7606 (asm_language_data): Likewise.
7607 (minimal_language_data): Likewise.
7608 * d-lang.c (d_language_data): Likewise.
7609 * f-lang.c (f_is_string_type_p): Delete function, implementation
7610 moved to f_language::is_string_type_p.
7611 (f_language_data): Delete la_is_string_type_p initializer.
7612 (f_language::is_string_type_p): New member function,
7613 implementation from f_is_string_type_p.
7614 * go-lang.c (go_is_string_type_p): Delete function, implementation
7615 moved to go_language::is_string_type_p.
7616 (go_language_data): Delete la_is_string_type_p initializer.
7617 (go_language::is_string_type_p): New member function,
7618 implementation from go_is_string_type_p.
7619 * language.c (language_defn::is_string_type_p): Define new member
7621 (default_is_string_type_p): Make static, add comment copied from
7623 (unknown_language_data): Delete la_is_string_type_p initializer.
7624 (unknown_language::is_string_type_p): New member function.
7625 (auto_language_data): Delete la_is_string_type_p initializer.
7626 (auto_language::is_string_type_p): New member function.
7627 * language.h (language_data): Delete la_is_string_type_p field.
7628 (language_defn::is_string_type_p): Declare new function.
7629 (default_is_string_type_p): Delete desclaration, move comment to
7631 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
7632 moved to m2_language::is_string_type_p.
7633 (m2_language_data): Delete la_is_string_type_p initializer.
7634 (m2_language::is_string_type_p): New member function,
7635 implementation from m2_is_string_type_p.
7636 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
7638 * opencl-lang.c (opencl_language_data): Likewise.
7639 * p-lang.c (pascal_is_string_type_p): Delete function,
7640 implementation moved to pascal_language::is_string_type_p.
7641 (pascal_language_data): Delete la_is_string_type_p initializer.
7642 (pascal_language::is_string_type_p): New member function,
7643 implementation from pascal_is_string_type_p.
7644 * rust-lang.c (rust_is_string_type_p): Delete function,
7645 implementation moved to rust_language::is_string_type_p.
7646 (rust_language_data): Delete la_is_string_type_p initializer.
7647 (rust_language::is_string_type_p): New member function,
7648 implementation from rust_is_string_type_p.
7649 * valprint.c (val_print_scalar_or_string_type_p): Update call to
7652 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7654 * ada-lang.c (ada_language_data): Delete la_print_typedef
7656 (ada_language::print_typedef): New member function.
7657 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
7658 (cplus_language_data): Likewise.
7659 (asm_language_data): Likewise.
7660 (minimal_language_data): Likewise.
7661 * d-lang.c (d_language_data): Likewise.
7662 * f-lang.c (f_language_data): Likewise.
7663 (f_language::print_typedef): New member function.
7664 * go-lang.c (go_language_data): Delete la_print_typedef
7666 * language.c (language_defn::print_typedef): Define member
7668 (unknown_language_data): Delete la_print_typedef initializer.
7669 (unknown_language::print_typedef): New member function.
7670 (auto_language_data): Delete la_print_typedef initializer.
7671 (auto_language::print_typedef): New member function.
7672 * language.h (language_data): Delete la_print_typedef field.
7673 (language_defn::print_typedef): Declare new member function.
7674 (LA_PRINT_TYPEDEF): Update call to print_typedef.
7675 (default_print_typedef): Delete declaration.
7676 * m2-lang.c (m2_language_data): Delete la_print_typedef
7678 (m2_language::print_typedef): New member function.
7679 * objc-lang.c (objc_language_data): Delete la_print_typedef
7681 * opencl-lang.c (opencl_language_data): Likewise.
7682 * p-lang.c (pascal_language_data): Likewise.
7683 (pascal_language::print_typedef): New member function.
7684 * rust-lang.c (rust_print_typedef): Delete function,
7685 implementation moved to rust_language::print_typedef.
7686 (rust_language): Delete la_print_typedef initializer.
7687 (rust_language::print_typedef): New member function,
7688 implementation from rust_print_typedef.
7689 * typeprint.c (default_print_typedef): Delete.
7691 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7693 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
7694 (ada_language::printstr): New member function.
7695 * c-lang.c (c_language_data): Delete la_printstr initializer.
7696 (cplus_language_data): Likewise.
7697 (asm_language_data): Likewise.
7698 (minimal_language_data): Likewise.
7699 * d-lang.c (d_language_data): Likewise.
7700 * f-lang.c (f_printstr): Rename to f_language::printstr.
7701 (f_language_data): Delete la_printstr initializer.
7702 (f_language::printstr): New member function, implementation from
7704 * go-lang.c (go_language_data): Delete la_printstr initializer.
7705 * language.c (language_defn::printstr): Define new member
7707 (unk_lang_printstr): Delete.
7708 (unknown_language_data): Delete la_printstr initializer.
7709 (unknown_language::printstr): New member function.
7710 (auto_language_data): Delete la_printstr initializer.
7711 (auto_language::printstr): New member function.
7712 * language.h (language_data): Delete la_printstr field.
7713 (language_defn::printstr): Declare new member function.
7714 (LA_PRINT_STRING): Update call to printstr.
7715 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
7716 (m2_language_data): Delete la_printstr initializer.
7717 (m2_language::printstr): New member function, implementation from
7719 * objc-lang.c (objc_language_data): Delete la_printstr
7721 * opencl-lang.c (opencl_language_data): Likewise.
7722 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
7723 (pascal_language_data): Delete la_printstr initializer.
7724 (pascal_language::printstr): New member function, implementation
7725 from pascal_printstr.
7726 * p-lang.h (pascal_printstr): Delete declaration.
7727 * rust-lang.c (rust_printstr): Update header comment.
7728 (rust_language_data): Delete la_printstr initializer.
7729 (rust_language::printstr): New member function.
7731 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7733 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
7734 (ada_language::printchar): New member function.
7735 * c-lang.c (c_language_data): Delete la_printchar initializer.
7736 (cplus_language_data): Likewise.
7737 (asm_language_data): Likewise.
7738 (minimal_language_data): Likewise.
7739 * d-lang.c (d_language_data): Likewise.
7740 * f-lang.c (f_printchar): Rename to f_language::printchar.
7741 (f_language_data): Delete la_printchar initializer.
7742 (f_language::printchar): New member function, implementation from
7744 * go-lang.c (go_language_data): Delete la_printchar initializer.
7745 * language.c (unk_lang_printchar): Delete.
7746 (language_defn::printchar): Define new member function.
7747 (unknown_language_data): Delete la_printchar initializer.
7748 (unknown_language::printchar): New member function.
7749 (auto_language_data): Delete la_printchar initializer.
7750 (auto_language::printchar): New member function.
7751 * language.h (language_data): Delete la_printchar field.
7752 (language_defn::printchar): Declare new member function.
7753 (LA_PRINT_CHAR): Update call to printchar.
7754 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
7755 (m2_language::printchar): New member function.
7756 * objc-lang.c (objc_language_data): Delete la_printchar
7758 * opencl-lang.c (opencl_language_data): Likewise.
7759 * p-lang.c (pascal_language_data): Delete la_printchar
7761 (pascal_language::printchar): New member function.
7762 * rust-lang.c (rust_printchar): Rename to
7763 rust_language::printchar.
7764 (rust_language_data): Delete la_printchar initializer.
7765 (rust_language::printchar): New member function, implementation
7766 from rust_printchar.
7768 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7770 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
7771 (ada_language_data): Delete la_emitchar initializer.
7772 (ada_language::emitchar): New member function, implementation from
7774 * c-lang.c (c_language_data): Delete la_emitchar initializer.
7775 (cplus_language_data): Likewise.
7776 (asm_language_data): Likewise.
7777 (minimal_language_data): Likewise.
7778 * d-lang.c (d_language_data): Likewise.
7779 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
7780 (f_language_data): Delete la_emitchar initializer.
7781 (f_language::emitchar): New member function, implementation from
7783 * go-lang.c (go_language_data): Delete la_emitchar initializer.
7784 * language.c (unk_lang_emit_char): Delete.
7785 (language_defn::emitchar): New member function definition.
7786 (unknown_language_data): Delete la_emitchar initializer.
7787 (unknown_language::emitchar): New member function.
7788 (auto_language_data): Delete la_emitchar initializer.
7789 (auto_language::emitchar): New member function.
7790 * language.h (language_data): Delete la_emitchar field.
7791 (language_defn::emitchar): New member field declaration.
7792 (LA_EMIT_CHAR): Update call to emitchar.
7793 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
7794 (m2_language_data): Delete la_emitchar initializer.
7795 (m2_language::emitchar): New member function, implementation from
7797 * objc-lang.c (objc_language_data): Delete la_emitchar
7799 * opencl-lang.c (opencl_language_data): Likewise.
7800 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
7801 (pascal_language_data): Delete la_emitchar initializer.
7802 (pascal_language::emitchar): New member function, implementation
7803 from pascal_emit_char.
7804 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
7805 (rust_language_data): Delete la_emitchar initializer.
7806 (rust_language::emitchar): New member function, implementation
7809 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7811 * ada-lang.c (resolve): Rename to ada_language::post_parser.
7812 (ada_language_data): Delete la_post_parser initializer.
7813 (ada_language::post_parser): New member function.
7814 * c-lang.c (c_language_data): Delete la_post_parser initializer.
7815 (cplus_language_data): Likewise.
7816 (asm_language_data): Likewise.
7817 (minimal_language_data): Likewise.
7818 * d-lang.c (d_language_data): Likewise.
7819 * f-lang.c (f_language_data): Likewise.
7820 * go-lang.c (go_language_data): Likewise.
7821 * language.c (unknown_language_data): Likewise.
7822 (auto_language_data): Likewise.
7823 * language.h (language_data): Delete la_post_parser field.
7824 (language_defn::post_parser): New member function.
7825 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
7826 * objc-lang.c (objc_language_data): Likewise.
7827 * opencl-lang.c (opencl_language_data): Likewise.
7828 * p-lang.c (pascal_language_data): Likewise.
7829 * parse.c (parse_exp_in_context): Update call to post_parser.
7830 (null_post_parser): Delete definition.
7831 * parser-defs.h (null_post_parser): Delete declaration.
7832 * rust-lang.c (rust_language_data): Delete la_post_parser
7835 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7837 * ada-lang.c (parse): Rename to ada_language::parser.
7838 (ada_language_data): Delete la_parser initializer.
7839 (ada_language::parser): New member function, implementation from
7841 * c-lang.c (c_language_data): Delete la_parser initializer.
7842 (cplus_language_data): Likewise.
7843 (asm_language_data): Likewise.
7844 (minimal_language_data): Likewise.
7845 * d-lang.c (d_language_data): Likewise.
7846 (d_language::parser): New member function.
7847 * f-lang.c (f_language_data): Delete la_parser initializer.
7848 (f_language::parser): New member function.
7849 * go-lang.c (go_language_data): Delete la_parser initializer.
7850 (go_language::parser): New member function.
7851 * language.c (unk_lang_parser): Delete.
7852 (language_defn::parser): Define new member function.
7853 (unknown_language_data): Delete la_parser initializer.
7854 (unknown_language::parser): New member function.
7855 (auto_language_data): Delete la_parser initializer.
7856 (auto_language::parser): New member function.
7857 * language.h (language_data): Delete la_parser field.
7858 (language_defn::parser): Declare new member function.
7859 * m2-lang.c (m2_language_data): Delete la_parser initializer.
7860 (m2_language::parser): New member function.
7861 * objc-lang.c (objc_language_data): Delete la_parser initializer.
7862 * opencl-lang.c (opencl_language_data): Likewise.
7863 * p-lang.c (pascal_language_data): Likewise.
7864 (pascal_language::parser): New member function.
7865 * parse.c (parse_exp_in_context): Update call to parser.
7866 * rust-lang.c (rust_language_data): Delete la_parser initializer.
7867 (rust_language::parser): New member function.
7869 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7871 * top.c (print_gdb_configuration): Print --with-python-libdir
7872 configuration value.
7874 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7876 * NEWS: Mention change to the alias command.
7878 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7880 * cli/cli-cmds.c (lookup_cmd_for_default_args)
7881 (alias_command_completer)
7882 (make_alias_options_def_group): New functions.
7883 (alias_opts, alias_option_defs): New struct and array.
7884 (alias_usage_error): Update usage.
7885 (alias_command): Handles optional DEFAULT-ARGS... arguments.
7886 Use option framework.
7887 (_initialize_cli_cmds): Update alias command help.
7888 Update aliases command help.
7890 Add NULL for new default_args lookup_cmd argument.
7891 (valid_command_p): Rename to validate_aliased_command.
7892 Add NULL for new default_args lookup_cmd argument. Verify that the
7893 aliased_command has no default args.
7894 * cli/cli-decode.c (help_cmd): Show aliases definitions.
7895 (lookup_cmd_1, lookup_cmd): New argument default_args.
7897 Add NULL for new default_args lookup_cmd argument.
7898 (print_help_for_command): Show default args under the layout
7899 alias some_alias = some_aliased_cmd some_alias_default_arg.
7900 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
7901 xfree default_args in destructor.
7902 * cli/cli-script.c (process_next_line, do_define_command):
7903 Add NULL for new default_args lookup_cmd argument.
7904 * command.h: Declare new default_args argument in lookup_cmd
7906 * completer.c (complete_line_internal_1):
7907 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7908 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
7909 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
7911 * infcmd.c (_initialize_infcmd): Likewise.
7912 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
7913 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
7914 * python/py-param.c (add_setshow_generic): Likewise.
7915 * remote.c (_initialize_remote): Likewise.
7916 * top.c (execute_command): Prepend default_args if command has some.
7918 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7919 * tracepoint.c (validate_actionline, encode_actions_1):
7920 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7922 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7924 * jit.c (jit_read_descriptor): Use bool as the return type.
7925 (jit_breakpoint_re_set_internal): Use bool as the return type.
7926 Invert the return value logic; return true if the jit breakpoint
7927 has been successfully initialized.
7928 (jit_inferior_init): Update the call to
7929 jit_breakpoint_re_set_internal.
7931 2020-06-22 Pedro Alves <palves@redhat.com>
7934 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
7935 Use the current inferior instead. Don't return
7936 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
7938 * sol-thread.c (sol_thread_target::wait): Don't reference
7940 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
7941 (sol_update_thread_list_callback): Use the current inferior's pid
7942 instead of inferior_ptid.
7944 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7946 * procfs.c: Cleanup many comments.
7948 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
7949 (AFTER_WATCHFLAG): Replace by value.
7951 (MAIN_PROC_NAME_FORMAT): Inline ...
7952 (create_procinfo): ... here.
7954 (procfs_debug_inferior): Remove SYS_exec handling.
7955 (syscall_is_exec): Likewise.
7956 (procfs_set_exec_trap): Likewise.
7958 (syscall_is_lwp_exit): Inline in callers.
7959 (syscall_is_exit): Likewise.
7960 (syscall_is_exec): Likewise.
7961 (syscall_is_lwp_create): Likewise.
7963 (invalidate_cache): Remove #if 0 code.
7965 (make_signal_thread_runnable): Remove.
7966 (procfs_target::resume): Remove #if 0 code.
7968 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7971 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
7973 (procfs_target::create_inferior): ... here.
7975 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7977 * exec.c (validate_exec_file): Ensure the build-id is up to
7978 date by calling reopen_exec_file (that checks file timestamp
7979 to decide to re-read the file).
7981 2020-06-18 Pedro Alves <palves@redhat.com>
7984 * gdbthread.h (delete_thread, delete_thread_silent)
7985 (find_thread_ptid): Update comments.
7986 * thread.c (current_thread_): New global.
7987 (is_current_thread): Move higher, and reimplement.
7988 (inferior_thread): Reimplement.
7989 (set_thread_exited): Use bool. Add assertions.
7990 (add_thread_silent): Simplify thread-reuse handling by always
7991 calling delete_thread.
7992 (delete_thread): Remove intro comment.
7993 (find_thread_ptid): Skip exited threads.
7994 (switch_to_thread_no_regs): Write to current_thread_.
7995 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
7996 INFERIOR_PTID. Clear current_thread_.
7998 2020-06-18 Pedro Alves <palves@redhat.com>
8000 * aix-thread.c (pd_update): Use switch_to_thread.
8002 2020-06-18 Pedro Alves <palves@redhat.com>
8004 * ravenscar-thread.c (ravenscar_thread_target): Update.
8005 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
8006 (ravenscar_thread_target::add_active_thread): ... this. Don't
8007 set m_base_ptid here. Update to avoid referencing inferior_ptid.
8008 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
8010 2020-06-18 Pedro Alves <palves@redhat.com>
8012 * nat/windows-nat.c (current_windows_thread): Remove.
8013 * nat/windows-nat.h (current_windows_thread): Remove.
8014 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
8016 (display_selectors): Adjust to fetch the current
8017 windows_thread_info based on inferior_ptid.
8018 (fake_create_process): No longer write to current_windows_thread.
8019 (windows_nat_target::get_windows_debug_event):
8020 Don't set inferior_ptid or current_windows_thread.
8021 (windows_nat_target::wait): Adjust to not rely on
8022 current_windows_thread.
8023 (do_initial_windows_stuff): Now a method of windows_nat_target.
8024 Switch to the last_ptid thread.
8025 (windows_nat_target::attach): Adjust.
8026 (windows_nat_target::detach): Use switch_to_no_thread instead of
8027 writing to inferior_ptid directly.
8028 (windows_nat_target::create_inferior): Adjust.
8030 2020-06-18 Pedro Alves <palves@redhat.com>
8032 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
8034 2020-06-18 Pedro Alves <palves@redhat.com>
8036 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
8037 after creating it, instead of writing to inferior_ptid. Don't
8038 write to inferior_ptid.
8040 2020-06-18 Pedro Alves <palves@redhat.com>
8042 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
8044 2020-06-18 Pedro Alves <palves@redhat.com>
8046 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
8047 it, instead of writing to inferior_ptid.
8049 2020-06-18 Pedro Alves <palves@redhat.com>
8051 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
8054 2020-06-18 Pedro Alves <palves@redhat.com>
8056 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
8057 instead of writing to inferior_ptid directly.
8059 2020-06-18 Pedro Alves <palves@redhat.com>
8061 * corelow.c (core_target::close): Use switch_to_no_thread instead
8062 of writing to inferior_ptid directly.
8063 (add_to_thread_list, core_target_open): Use switch_to_thread
8064 instead of writing to inferior_ptid directly.
8066 2020-06-18 Pedro Alves <palves@redhat.com>
8068 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
8070 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
8072 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
8073 inferior_ptid directly.
8074 (darwin_nat_target::init_thread_list): Switch to thread, instead
8075 of writing to inferior_ptid.
8076 (darwin_nat_target::attach): Don't write to inferior_ptid.
8077 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
8079 2020-06-18 Pedro Alves <palves@redhat.com>
8081 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
8083 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
8084 Instead use switch_to_thread.
8085 (gnu_nat_target::detach): Use switch_to_no_thread
8086 instead of writing to inferior_ptid directly. Used passed-in
8087 inferior instead of looking up the inferior by pid.
8089 2020-06-18 Pedro Alves <palves@redhat.com>
8091 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
8094 2020-06-18 Pedro Alves <palves@redhat.com>
8096 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
8098 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
8100 (nto_procfs_target::detach): Avoid referencing
8101 inferior_ptid. Use switch_to_no_thread instead of writing to
8102 inferior_ptid directly.
8103 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
8104 instead of writing to inferior_ptid directly.
8105 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
8108 2020-06-18 Pedro Alves <palves@redhat.com>
8110 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
8111 after creating it, instead of writing to inferior_ptid.
8112 (gdbsim_target_open): Use switch_to_no_thread instead of writing
8113 to inferior_ptid directly.
8114 (gdbsim_target::wait): Don't write to inferior_ptid.
8116 2020-06-18 Pedro Alves <palves@redhat.com>
8118 * remote.c (remote_target::remote_notice_new_inferior): Use
8119 switch_to_thread instead of writing to inferior_ptid directly.
8120 (remote_target::add_current_inferior_and_thread): Use
8121 switch_to_no_thread instead of writing to inferior_ptid directly.
8122 (extended_remote_target::attach): Use switch_to_inferior_no_thread
8123 and switch_to_thread instead of using set_current_inferior or
8124 writing to inferior_ptid directly.
8126 2020-06-18 Pedro Alves <palves@redhat.com>
8128 * tracectf.c (ctf_target_open): Switch to added thread instead of
8129 writing to inferior_ptid directly.
8130 (ctf_target::close): Use switch_to_no_thread instead of writing to
8131 inferior_ptid directly.
8133 2020-06-18 Pedro Alves <palves@redhat.com>
8135 * tracefile-tfile.c (tfile_target_open): Don't write to
8136 inferior_ptid directly, instead switch to added thread.
8137 (tfile_target::close): Use switch_to_no_thread instead of writing
8138 to inferior_ptid directly.
8140 2020-06-18 Pedro Alves <palves@redhat.com>
8142 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
8143 (procfs_target::detach): Use switch_to_no_thread
8144 instead of writing to inferior_ptid directly.
8145 (do_attach): Change return type to void. Switch to the added
8147 (procfs_target::create_inferior): Switch to the added thread.
8148 (procfs_do_thread_registers): Don't write to inferior_ptid.
8150 2020-06-18 Pedro Alves <palves@redhat.com>
8152 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
8153 of writing to inferior_ptid.
8154 (scoped_restore_exited_inferior): Delete.
8155 (handle_vfork_child_exec_or_exit): Simplify using
8156 scoped_restore_current_pspace_and_thread. Use switch_to_thread
8157 instead of writing to inferior_ptid.
8158 (THREAD_STOPPED_BY): Delete.
8159 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
8160 (thread_stopped_by_hw_breakpoint): Delete.
8161 (save_waitstatus): Use
8162 scoped_restore_current_thread+switch_to_thread, and call
8163 target_stopped_by_watchpoint instead of
8164 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
8165 instead of thread_stopped_by_sw_breakpoint, and
8166 target_stopped_by_hw_breakpoint instead of
8167 thread_stopped_by_hw_breakpoint.
8168 (handle_inferior_event)
8169 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
8170 inferior_ptid directly, nor
8171 set_current_inferior/set_current_program_space. Use
8172 switch_to_thread / switch_to_inferior_no_thread instead.
8174 2020-06-18 Pedro Alves <palves@redhat.com>
8176 * target.c (generic_mourn_inferior): Use switch_to_no_thread
8177 instead of writing to inferior_ptid.
8179 2020-06-18 Pedro Alves <palves@redhat.com>
8181 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
8183 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
8184 to the added thread.
8185 (inf_ptrace_target::detach_success): Use switch_to_no_thread
8186 instead of writing to inferior_ptid.
8188 2020-06-18 Pedro Alves <palves@redhat.com>
8190 * gdbarch-selftests.c: Include "progspace-and-thread.h".
8191 (register_to_value_test): Mock a program_space too. Heap-allocate
8192 the address space. Don't write to inferior_ptid. Use
8193 switch_to_thread instead.
8195 2020-06-18 Pedro Alves <palves@redhat.com>
8197 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
8199 (find_signalled_thread()): New, factored out from
8200 linux_make_corefile_notes and adjusted to handle exited threads.
8201 (linux_make_corefile_notes): Adjust to use the new
8202 find_signalled_thread.
8204 2020-06-18 Pedro Alves <palves@redhat.com>
8206 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
8207 of saving/restoring inferior_ptid.
8209 2020-06-17 Tom Tromey <tom@tromey.com>
8211 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
8212 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
8214 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
8216 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
8218 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
8221 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
8223 * regformats/reg-arm.dat: Remove.
8224 * regformats/reg-bfin.dat: Remove.
8225 * regformats/reg-cris.dat: Remove.
8226 * regformats/reg-crisv32.dat: Remove.
8227 * regformats/reg-m32r.dat: Remove.
8228 * regformats/reg-tilegx.dat: Remove.
8229 * regformats/reg-tilegx32.dat: Remove.
8231 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
8233 * features/Makefile (WHICH): Remove arm files.
8234 * regformats/arm/arm-with-iwmmxt.dat: Remove.
8235 * regformats/arm/arm-with-neon.dat: Remove.
8236 * regformats/arm/arm-with-vfpv2.dat: Remove.
8237 * regformats/arm/arm-with-vfpv3.dat: Remove.
8239 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
8241 * features/Makefile (XMLTOC): Remove rx.xml.
8243 2020-06-17 Pedro Alves <palves@redhat.com>
8245 * gdbthread.h (thread_control_state) <trap_expected> Update
8248 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8250 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
8251 ada_language::lookup_symbol_nonlocal.
8252 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
8253 (ada_language::lookup_symbol_nonlocal): New member function,
8254 implementation from ada_lookup_symbol_nonlocal.
8255 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
8257 (cplus_language_data): Delete la_lookup_symbol_nonlocal
8259 (cplus_language::lookup_symbol_nonlocal): New member function.
8260 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
8261 (minimal_language_data) Likewise.
8262 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
8263 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
8265 (d_language::lookup_symbol_nonlocal): New member function.
8266 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
8268 (f_language::lookup_symbol_nonlocal): New member function.
8269 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
8271 * language.c (unknown_language_data): Likewise.
8272 (auto_language_data): Likewise.
8273 * language.h (language_data): Delete la_lookup_symbol_nonlocal
8275 (language_defn::lookup_symbol_nonlocal): New member function.
8276 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
8278 * objc-lang.c (objc_language_data): Likewise.
8279 * opencl-lang.c (opencl_language_data): Likewise.
8280 * p-lang.c (pascal_language_data): Likewise.
8281 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
8282 rust_language::lookup_symbol_nonlocal.
8283 (rust_language_data): Delete la_lookup_symbol_nonlocal
8285 (rust_language::lookup_symbol_nonlocal): New member function,
8286 implementation from rust_lookup_symbol_nonlocal.
8287 * symtab.c (lookup_symbol_aux): Update call to
8288 lookup_symbol_nonlocal.
8289 (basic_lookup_symbol_nonlocal): Rename to...
8290 (language_defn::lookup_symbol_nonlocal): ...this, and update
8291 header comment. Remove language_defn parameter, and replace with
8293 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
8295 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8297 * ada-lang.c (ada_language_data): Delete la_value_print_inner
8299 (ada_language::value_print_inner): New member function.
8300 * c-lang.c (c_language_data): Delete la_value_print_inner
8302 (cplus_language_data): Likewise.
8303 (asm_language_data): Likewise.
8304 (minimal_language_data): Likewise.
8305 * d-lang.c (d_language_data): Likewise.
8306 (d_language::value_print_inner): New member function.
8307 * f-lang.c (f_language_data): Delete la_value_print_inner
8309 (f_language::value_print_inner): New member function.
8310 * f-lang.h (f_value_print_innner): Rename to...
8311 (f_value_print_inner): ...this (note spelling of 'inner').
8312 * f-valprint.c (f_value_print_innner): Rename to...
8313 (f_value_print_inner): ...this (note spelling of 'inner').
8314 * go-lang.c (go_language_data): Delete la_value_print_inner
8316 (go_language::value_print_inner): New member function.
8317 * language.c (language_defn::value_print_inner): Define new member
8319 (unk_lang_value_print_inner): Delete.
8320 (unknown_language_data): Delete la_value_print_inner initializer.
8321 (unknown_language::value_print_inner): New member function.
8322 (auto_language_data): Delete la_value_print_inner initializer.
8323 (auto_language::value_print_inner): New member function.
8324 * language.h (language_data): Delete la_value_print_inner field.
8325 (language_defn::value_print_inner): Delcare new member function.
8326 * m2-lang.c (m2_language_data): Delete la_value_print_inner
8328 (m2_language::value_print_inner): New member function.
8329 * objc-lang.c (objc_language_data): Delete la_value_print_inner
8331 * opencl-lang.c (opencl_language_data): Likewise.
8332 * p-lang.c (pascal_language_data): Likewise.
8333 (pascal_language::value_print_inner): New member function.
8334 * rust-lang.c (rust_language_data): Delete la_value_print_inner
8336 (rust_language::value_print_inner): New member function.
8337 * valprint.c (do_val_print): Update call to value_print_inner.
8339 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8341 * ada-lang.c (ada_language_data): Delete la_value_print
8343 (ada_language::value_print): New member function.
8344 * c-lang.c (c_language_data): Delete la_value_print initializer.
8345 (cplus_language_data): Likewise.
8346 (asm_language_data): Likewise.
8347 (minimal_language_data): Likewise.
8348 * d-lang.c (d_language_data): Likewise.
8349 * f-lang.c (f_language_data): Likewise.
8350 * go-lang.c (go_language_data): Likewise.
8351 * language.c (unk_lang_value_print): Delete.
8352 (language_defn::value_print): Define new member function.
8353 (unknown_language_data): Delete la_value_print initializer.
8354 (unknown_language::value_print): New member function.
8355 (auto_language_data): Delete la_value_print initializer.
8356 (auto_language::value_print): New member function.
8357 * language.h (language_data): Delete la_value_print field.
8358 (language_defn::value_print): Declare new member function.
8359 (LA_VALUE_PRINT): Update call to value_print.
8360 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
8361 * objc-lang.c (objc_language_data): Likewise.
8362 * opencl-lang.c (opencl_language_data): Likewise.
8363 * p-lang.c (pascal_language_data): Likewise.
8364 (pascal_language::value_print): New member function.
8365 * rust-lang.c (rust_language_data): Delete la_value_print
8368 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8370 * ada-lang.c (ada_watch_location_expression): Rename to
8371 ada_language::watch_location_expression.
8372 (ada_language_data): Delete la_watch_location_expression
8374 (ada_language::watch_location_expression): New member function,
8375 implementation from ada_watch_location_expression.
8376 * breakpoint.c (watch_command_1): Update call to
8377 watch_location_expression.
8378 * c-lang.c (c_watch_location_expression): Rename to
8379 language_defn::watch_location_expression.
8380 (c_language_data): Delete la_watch_location_expression
8382 (cplus_language_data): Likewise.
8383 (asm_language_data): Likewise.
8384 (minimal_language_data): Likewise.
8385 * c-lang.h (c_watch_location_expression): Delete declaration.
8386 * d-lang.c (d_language_data): Delete la_watch_location_expression
8388 * f-lang.c (f_language_data): Likewise.
8389 * go-lang.c (go_language_data): Likewise.
8390 * language.c (language_defn::watch_location_expression): Member
8391 function implementation from c_watch_location_expression.
8392 (unknown_language_data): Delete la_watch_location_expression
8394 (auto_language_data): Likewise.
8395 * language.h (language_data): Delete la_watch_location_expression
8397 (language_defn::watch_location_expression): Declare new member
8399 * m2-lang.c (m2_language_data): Delete
8400 la_watch_location_expression initializer.
8401 * objc-lang.c (objc_language_data): Likewise.
8402 * opencl-lang.c (opencl_language_data): Likewise.
8403 * p-lang.c (pascal_language_data): Likewise.
8404 * rust-lang.c (rust_watch_location_expression): Rename to
8405 rust_language::watch_location_expression.
8406 (rust_language_data): Delete la_watch_location_expression
8408 (rust_language::watch_location_expression): New member function,
8409 implementation from rust_watch_location_expression.
8411 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8413 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
8414 ada_language::collect_symbol_completion_matches.
8415 (ada_language_data): Delete la_collect_symbol_completion_matches
8417 (ada_language::collect_symbol_completion_matches): New member
8418 function, implementation from
8419 ada_collect_symbol_completion_matches.
8420 * c-lang.c (c_language_data): Delete
8421 la_collect_symbol_completion_matches initializer.
8422 (cplus_language_data): Likewise.
8423 (asm_language_data): Likewise.
8424 (minimal_language_data): Likewise.
8425 * d-lang.c (d_language_data): Likewise.
8426 * f-lang.c (f_collect_symbol_completion_matches): Rename to
8427 f_language::collect_symbol_completion_matches.
8428 (f_language_data): Delete la_collect_symbol_completion_matches
8430 (f_language::collect_symbol_completion_matches) New member
8431 function, implementation from f_collect_symbol_completion_matches.
8432 * go-lang.c (go_language_data): Delete
8433 la_collect_symbol_completion_matches initializer.
8434 * language.c (unknown_language_data): Likewise.
8435 (auto_language_data): Likewise.
8436 * language.h (language_data): Delete
8437 la_collect_symbol_completion_matches field.
8438 (language_defn::collect_symbol_completion_matches): New member
8440 * m2-lang.c (m2_language_data): Delete
8441 la_collect_symbol_completion_matches initializer.
8442 * objc-lang.c (objc_language_data): Likewise.
8443 * opencl-lang.c (opencl_language_data): Likewise.
8444 * p-lang.c (pascal_language_data): Likewise.
8445 * rust-lang.c (rust_language_data): Likewise.
8446 * symtab.c (default_collect_symbol_completion_matches): Delete.
8447 (collect_symbol_completion_matches): Update call to
8448 collect_symbol_completion_matches.
8449 (collect_symbol_completion_matches_type): Likewise.
8450 * symtab.h (default_collect_symbol_completion_matches): Delete
8453 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8455 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
8456 (ada_language_data): Delete la_word_break_characters initializer.
8457 (ada_language::word_break_characters): New member function.
8458 * c-lang.c (c_language_data): Delete la_word_break_characters
8460 (cplus_language_data): Likewise.
8461 (asm_language_data): Likewise.
8462 (minimal_language_data): Likewise.
8463 * completer.c: Update global comment.
8464 (advance_to_expression_complete_word_point): Update call to
8465 word_break_characters.
8466 (complete_files_symbols): Likewise.
8467 (complete_line_internal_1): Likewise.
8468 (default_completer_handle_brkchars): Likewise.
8469 (skip_quoted_chars): Likewise.
8470 * d-lang.c (d_language_data): Delete la_word_break_characters
8472 * f-lang.c (f_word_break_characters): Delete.
8473 (f_language_data): Delete la_word_break_characters initializer.
8474 (f_language::word_break_characters): New member function.
8475 * go-lang.c (go_language_data): Delete la_word_break_characters
8477 * language.c (unknown_language_data): Likewise.
8478 (auto_language_data): Likewise.
8479 * language.h (default_word_break_characters): Move declaration to
8480 earlier in the file.
8481 (language_data): Delete la_word_break_characters field.
8482 (language_defn::word_break_characters): New member function.
8483 * m2-lang.c (m2_language_data): Delete la_word_break_characters
8485 * objc-lang.c (objc_language_data): Likewise.
8486 * opencl-lang.c (opencl_language_data): Likewise.
8487 * p-lang.c (pascal_language_data): Likewise.
8488 * rust-lang.c (rust_language_data): Likewise.
8490 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8492 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
8493 (ada_language_data): Delete la_get_symbol_name_matcher
8495 (language_defn::get_symbol_name_matcher_inner): New member
8497 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
8499 (cplus_language_data): Likewise.
8500 (cplus_language::get_symbol_name_matcher_inner): New member
8502 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
8503 (minimal_language_data): Likewise.
8504 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
8505 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
8507 * dictionary.c (iter_match_first_hashed): Update call to
8508 get_symbol_name_matcher.
8509 (iter_match_next_hashed): Likewise.
8510 (iter_match_next_linear): Likewise.
8511 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
8512 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
8514 (f_language::get_symbol_name_matcher_inner): New member function.
8515 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
8517 * language.c (default_symbol_name_matcher): Update header comment,
8519 (language_defn::get_symbol_name_matcher): New definition.
8520 (language_defn::get_symbol_name_matcher_inner): Likewise.
8521 (get_symbol_name_matcher): Delete.
8522 (unknown_language_data): Delete la_get_symbol_name_matcher
8524 (auto_language_data): Likewise.
8525 * language.h (language_data): Delete la_get_symbol_name_matcher
8527 (language_defn::get_symbol_name_matcher): New member function.
8528 (language_defn::get_symbol_name_matcher_inner): Likewise.
8529 (default_symbol_name_matcher): Delete declaration.
8530 * linespec.c (find_methods): Update call to
8531 get_symbol_name_matcher.
8532 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
8534 * minsyms.c (lookup_minimal_symbol): Update call to
8535 get_symbol_name_matcher.
8536 (iterate_over_minimal_symbols): Likewise.
8537 * objc-lang.c (objc_language_data): Delete
8538 la_get_symbol_name_matcher initializer.
8539 * opencl-lang.c (opencl_language_data): Likewise.
8540 * p-lang.c (pascal_language_data): Likewise.
8541 * psymtab.c (psymbol_name_matches): Update call to
8542 get_symbol_name_matcher.
8543 * rust-lang.c (rust_language_data): Delete
8544 la_get_symbol_name_matcher initializer.
8545 * symtab.c (symbol_matches_search_name): Update call to
8546 get_symbol_name_matcher.
8547 (compare_symbol_name): Likewise.
8549 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8551 * ada-lang.c (ada_language_data): Delete la_compute_program
8553 * c-lang.c (c_language_data): Likewise.
8554 (c_language::compute_program): New member function.
8555 (cplus_language_data): Delete la_compute_program initializer.
8556 (cplus_language::compute_program): New member function.
8557 (asm_language_data): Delete la_compute_program initializer.
8558 (minimal_language_data): Likewise.
8559 * c-lang.h (c_compute_program): Update comment.
8560 (cplus_compute_program): Likewise.
8561 * compile/compile-c-support.c (c_compute_program): Likewise.
8562 (cplus_compute_program): Likewise.
8563 * compile/compile.c (compile_to_object): Update call to
8565 * d-lang.c (d_language_data): Delete la_compute_program
8567 * f-lang.c (f_language_data): Likewise.
8568 * go-lang.c (go_language_data): Likewise.
8569 * language.c (unknown_language_data): Likewise.
8570 (auto_language_data): Likewise.
8571 * language.h (language_data): Delete la_compute_program field.
8572 (language_defn::compute_program): New member function.
8573 * m2-lang.c (m2_language_data): Delete la_compute_program
8575 * objc-lang.c (objc_language_data): Likewise.
8576 * opencl-lang.c (opencl_language_data): Likewise.
8577 * p-lang.c (pascal_language_data): Likewise.
8578 * rust-lang.c (rust_language_data): Likewise.
8580 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8582 * ada-lang.c (ada_language_data) Delete
8583 la_class_name_from_physname initializer.
8584 * c-lang.c (c_language_data): Likewise.
8585 (cplus_language_data): Likewise.
8586 (cplus_language::class_name_from_physname): New member function.
8587 (asm_language_data): Delete la_class_name_from_physname
8589 (minimal_language_data): Likewise.
8590 * d-lang.c (d_language_data): Likewise.
8591 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
8592 method on language_defn class.
8593 (guess_full_die_structure_name): Likewise.
8594 * f-lang.c (f_language_data): Delete la_class_name_from_physname
8596 * go-lang.c (go_language_data): Likewise.
8597 * language.c (language_class_name_from_physname): Delete.
8598 (unk_lang_class_name): Delete.
8599 (unknown_language_data): Delete la_class_name_from_physname
8601 (auto_language_data): Likewise.
8602 * language.h (language_data): Delete la_class_name_from_physname
8604 (language_defn::class_name_from_physname): New function.
8605 (language_class_name_from_physname): Delete declaration.
8606 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
8608 * objc-lang.c (objc_language_data): Likewise.
8609 * opencl-lang.c (opencl_language_data): Likewise.
8610 * p-lang.c (pascal_language_data): Likewise.
8611 * rust-lang.c (rust_language_data): Likewise.
8613 2020-06-16 Tom Tromey <tom@tromey.com>
8615 * tui/tui-data.h (STATUS_NAME): New macro.
8616 * tui/tui-layout.c (tui_remove_some_windows)
8617 (initialize_known_windows, tui_register_window)
8618 (tui_layout_split::remove_windows, initialize_layouts)
8619 (tui_new_layout_command): Don't use hard-coded window names.
8621 2020-06-16 Tom Tromey <tom@tromey.com>
8624 * tui/tui.c (tui_ensure_readline_initialized): Rename from
8625 tui_initialize_readline. Only run once. Call rl_initialize.
8626 * tui/tui.h (tui_ensure_readline_initialized): Rename from
8627 tui_initialize_readline.
8628 * tui/tui-io.c (tui_setup_io): Call
8629 tui_ensure_readline_initialized.
8630 * tui/tui-interp.c (tui_interp::init): Update.
8632 2020-06-16 Tom Tromey <tom@tromey.com>
8634 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
8635 Also preserve the status window.
8637 2020-06-16 Tom Tromey <tom@tromey.com>
8639 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
8640 where m_window==nullptr.
8642 2020-06-15 Tom Tromey <tromey@adacore.com>
8644 * windows-nat.c (windows_nat::handle_output_debug_string):
8646 (windows_nat::handle_ms_vc_exception): Update.
8647 * target.h (target_read_string): Change API.
8648 * target.c (target_read_string): Change API.
8649 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
8651 * solib-frv.c (frv_current_sos): Update.
8652 * solib-dsbt.c (dsbt_current_sos): Update.
8653 * solib-darwin.c (darwin_current_sos): Update.
8654 * linux-thread-db.c (inferior_has_bug): Update.
8655 * expprint.c (print_subexp_standard): Update.
8656 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
8657 (ada_exception_message_1): Update.
8659 2020-06-15 Tom Tromey <tromey@adacore.com>
8661 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
8663 2020-06-15 Tom Tromey <tromey@adacore.com>
8665 * valprint.c (read_string): Update comment.
8666 * target.c (MIN): Remove.
8667 (target_read_string): Rewrite.
8669 2020-06-15 Tom Tromey <tromey@adacore.com>
8671 * corefile.c (read_memory_string): Remove.
8672 * ada-valprint.c (ada_value_print_ptr): Update.
8673 * ada-lang.h (ada_tag_name): Change return type.
8674 * ada-lang.c (type_from_tag): Update.
8675 (ada_tag_name_from_tsd): Change return type. Use
8677 (ada_tag_name): Likewise.
8678 * gdbcore.h (read_memory_string): Don't declare.
8680 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
8682 * symtab.c (rbreak_command): Ignore Windows drive colon.
8684 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
8686 * NEWS: Mention removed GDBserver host support.
8688 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
8690 * features/riscv/rebuild-csr-xml.sh: Updated.
8692 2020-06-11 Tom Tromey <tom@tromey.com>
8695 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
8697 2020-06-09 Jonny Grant <jg@jguk.org>
8698 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
8700 * main.c (captured_main_1): Don't print new line after help.
8701 (print_gdb_help): add mailing list and IRC channel information
8702 to --help. Add new lines between items in the footer. Remove
8703 quotes around bug url.
8705 2020-06-11 Keith Seitz <keiths@redhat.com>
8708 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
8709 Resolve typedefs for type length calculations.
8711 2020-06-10 Tom de Vries <tdevries@suse.de>
8714 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
8715 (write_psymbols): Enable .gdb_index for ada.
8716 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
8719 2020-06-10 Tom de Vries <tdevries@suse.de>
8721 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
8722 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
8723 namei" instead of "const char *name" argument.
8724 (dw2_map_matching_symbols): Use "offset_type namei" variant of
8725 dw2_symtab_iter_init.
8727 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8729 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
8730 to use type::field and field::type instead.
8732 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8734 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
8735 to use field::type instead.
8737 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8739 * gdbtypes.h (struct field) <type, set_type>: New methods.
8740 Rename `type` field to...
8741 <m_type>: ... this. Change references throughout to use type or
8743 (FIELD_TYPE): Use field::type. Change call sites that modify
8744 the field's type to use field::set_type instead.
8746 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8748 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
8749 to use type::index_type instead.
8751 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8753 * gdbtypes.h (struct type) <index_type, set_index_type>: New
8755 (TYPE_INDEX_TYPE): Use type::index_type.
8756 * gdbtypes.c (create_array_type_with_stride): Likewise.
8758 2020-06-07 Tom Tromey <tom@tromey.com>
8760 * valprint.c (generic_val_print_float): Remove "embedded_offset"
8762 (generic_value_print): Update.
8764 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8766 Revert commit 982a38f60b0.
8767 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
8769 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8771 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
8772 avoid use after free.
8774 2020-06-05 Tom de Vries <tdevries@suse.de>
8778 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
8780 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
8782 (dwarf2_read_debug_names): Likewise.
8783 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
8784 object when re-using a per_bfd object with an index.
8786 2020-06-03 Tom de Vries <tdevries@suse.de>
8789 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
8791 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
8794 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8796 * ada-lang.c (ada_language_data): Delete skip_trampoline
8798 * c-lang.c (c_language_data): Likewise.
8799 (cplus_language_data): Likewise.
8800 (cplus_language::skip_trampoline): New member function.
8801 (asm_language_data): Delete skip_trampoline initializer.
8802 (minimal_language_data): Likewise.
8803 * d-lang.c (d_language_data): Likewise.
8804 * f-lang.c (f_language_data): Likewise.
8805 * go-lang.c (go_language_data): Likewise.
8806 * language.c (unk_lang_trampoline): Delete function.
8807 (skip_language_trampoline): Update.
8808 (unknown_language_data): Delete skip_trampoline initializer.
8809 (auto_language_data): Likewise.
8810 * language.h (language_data): Delete skip_trampoline field.
8811 (language_defn::skip_trampoline): New function.
8812 * m2-lang.c (m2_language_data): Delete skip_trampoline
8814 * objc-lang.c (objc_skip_trampoline): Delete function, move
8815 implementation to objc_language::skip_trampoline.
8816 (objc_language_data): Delete skip_trampoline initializer.
8817 (objc_language::skip_trampoline): New member function with
8818 implementation from objc_skip_trampoline.
8819 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
8821 * p-lang.c (pascal_language_data): Likewise.
8822 * rust-lang.c (rust_language_data): Likewise.
8824 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8826 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
8827 (ada_language::demangle): New member function.
8828 * c-lang.c (c_language_data): Delete la_demangle initializer.
8829 (cplus_language_data): Delete la_demangle initializer.
8830 (cplus_language::demangle): New member function.
8831 (asm_language_data): Delete la_demangle initializer.
8832 (minimal_language_data): Delete la_demangle initializer.
8833 * d-lang.c (d_language_data): Delete la_demangle initializer.
8834 (d_language::demangle): New member function.
8835 * f-lang.c (f_language_data): Delete la_demangle initializer.
8836 (f_language::demangle): New member function.
8837 * go-lang.c (go_language_data): Delete la_demangle initializer.
8838 (go_language::demangle): New member function.
8839 * language.c (language_demangle): Update.
8840 (unk_lang_demangle): Delete.
8841 (unknown_language_data): Delete la_demangle initializer.
8842 (unknown_language::demangle): New member function.
8843 (auto_language_data): Delete la_demangle initializer.
8844 (auto_language::demangle): New member function.
8845 * language.h (language_data): Delete la_demangle field.
8846 (language_defn::demangle): New function.
8847 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
8848 * objc-lang.c (objc_language_data): Delete la_demangle
8850 (objc_language::demangle): New member function.
8851 * opencl-lang.c (opencl_language_data): Delete la_demangle
8853 * p-lang.c (pascal_language_data): Likewise.
8854 * rust-lang.c (rust_language_data): Likewise.
8855 (rust_language::demangle): New member function.
8857 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8859 * ada-lang.c (ada_language_data): Delete la_print_type
8861 (ada_language::print_type): New member function.
8862 * c-lang.c (c_language_data): Delete la_print_type initializer.
8863 (c_language::print_type): New member function.
8864 (cplus_language_data): Delete la_print_type initializer.
8865 (cplus_language::print_type): New member function.
8866 (asm_language_data): Delete la_print_type initializer.
8867 (asm_language::print_type): New member function.
8868 (minimal_language_data): Delete la_print_type initializer.
8869 (minimal_language::print_type): New member function.
8870 * d-lang.c (d_language_data): Delete la_print_type initializer.
8871 (d_language::print_type): New member function.
8872 * f-lang.c (f_language_data): Delete la_print_type initializer.
8873 (f_language::print_type): New member function.
8874 * go-lang.c (go_language_data): Delete la_print_type initializer.
8875 (go_language::print_type): New member function.
8876 * language.c (unk_lang_print_type): Delete.
8877 (unknown_language_data): Delete la_print_type initializer.
8878 (unknown_language::print_type): New member function.
8879 (auto_language_data): Delete la_print_type initializer.
8880 (auto_language::print_type): New member function.
8881 * language.h (language_data): Delete la_print_type field.
8882 (language_defn::print_type): New function.
8883 (LA_PRINT_TYPE): Update.
8884 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
8885 (m2_language::print_type): New member function.
8886 * objc-lang.c (objc_language_data): Delete la_print_type
8888 (objc_language::print_type): New member function.
8889 * opencl-lang.c (opencl_print_type): Delete, implementation moved
8890 to opencl_language::print_type.
8891 (opencl_language_data): Delete la_print_type initializer.
8892 (opencl_language::print_type): New member function, implementation
8893 from opencl_print_type.
8894 * p-lang.c (pascal_language_data): Delete la_print_type
8896 (pascal_language::print_type): New member function.
8897 * rust-lang.c (rust_print_type): Delete, implementation moved to
8898 rust_language::print_type.
8899 (rust_language_data): Delete la_print_type initializer.
8900 (rust_language::print_type): New member function, implementation
8901 from rust_print_type.
8903 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8905 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
8906 implementation moves to...
8907 (ada_language::sniff_from_mangled_name): ...here. Update return
8909 (ada_language_data): Delete la_sniff_from_mangled_name
8911 * c-lang.c (c_language_data): Likewise.
8912 (cplus_language_data): Likewise.
8913 (cplus_language::sniff_from_mangled_name): New member function,
8914 implementation taken from gdb_sniff_from_mangled_name.
8915 (asm_language_data): Delete la_sniff_from_mangled_name
8917 (minimal_language_data): Likewise.
8918 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
8919 implementation moves to cplus_language::sniff_from_mangled_name.
8920 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
8921 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
8923 (d_language::sniff_from_mangled_name): ...here.
8924 (d_language_data): Delete la_sniff_from_mangled_name initializer.
8925 * f-lang.c (f_language_data): Likewise.
8926 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
8928 (go_language::sniff_from_mangled_name): ...here.
8929 (go_language_data): Delete la_sniff_from_mangled_name initializer.
8930 * language.c (language_sniff_from_mangled_name): Delete.
8931 (unknown_language_data): Delete la_sniff_from_mangled_name
8933 (auto_language_data): Likewise.
8934 * language.h (language_data): Delete la_sniff_from_mangled_name
8936 (language_defn::sniff_from_mangled_name): New function.
8937 (language_sniff_from_mangled_name): Delete declaration.
8938 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
8940 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
8941 implementation moves to...
8942 (objc_language::sniff_from_mangled_name): ...here.
8943 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
8944 * opencl-lang.c (opencl_language_data): Likewise.
8945 * p-lang.c (pascal_language_data): Likewise.
8946 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
8947 implementation moves to...
8948 (rust_language::sniff_from_mangled_name): ...here.
8949 (rust_language_data): Delete la_sniff_from_mangled_name
8951 * symtab.c (symbol_find_demangled_name): Call
8952 sniff_from_mangled_name member function.
8954 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8956 * ada-lang.c (ada_language_data): Delete la_search_name_hash
8958 * c-lang.c (c_language_data): Likewise.
8959 (cplus_language_data): Likewise.
8960 (cplus_language::search_name_hash): New member function.
8961 (asm_language_data): Delete la_search_name_hash initializer.
8962 (minimal_language_data): Likewise.
8963 * d-lang.c (d_language_data): Likewise.
8964 * dictionary.c (default_search_name_hash): Rename to...
8965 (language_defn::search_name_hash): ...this.
8966 * f-lang.c (f_language_data): Likewise.
8967 (f_language::search_name_hash): New member function.
8968 * go-lang.c (go_language_data): Delete la_search_name_hash
8970 * language.c (unknown_language_data): Likewise.
8971 (auto_language_data): Likewise.
8972 * language.h (struct language_data): Delete la_search_name_hash
8974 (language_defn::search_name_hash): Declare new member function.
8975 (default_search_name_hash): Delete declaration.
8976 * m2-lang.c (m2_language_data): Delete la_search_name_hash
8978 * objc-lang.c (objc_language_data): Likewise.
8979 * opencl-lang.c (opencl_language_data): Likewise.
8980 * p-lang.c (pascal_language_data): Likewise.
8981 * rust-lang.c (rust_language_data): Likewise.
8982 * symtab.c (search_name_hash): Update call.
8984 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8986 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
8988 * c-lang.c (class compile_instance): Declare.
8989 (c_language_data): Delete la_get_compile_instance initializer.
8990 (c_language::get_compile_instance): New member function.
8991 (cplus_language_data): Delete la_get_compile_instance initializer.
8992 (cplus_language::get_compile_instance): New member function.
8993 (asm_language_data): Delete la_get_compile_instance initializer.
8994 (minimal_language_data): Likewise.
8995 * c-lang.h (c_get_compile_context): Update comment.
8996 (cplus_get_compile_context): Update comment.
8997 * compile/compile.c (compile_to_object): Update calls, don't rely
8998 on function pointer being NULL.
8999 * d-lang.c (d_language_data): Delete la_get_compile_instance
9001 * f-lang.c (f_language_data): Likewise.
9002 * go-lang.c (go_language_data): Likewise.
9003 * language.c (unknown_language_data): Likewise.
9004 (auto_language_data): Likewise.
9005 * language.h (language_data): Delete la_get_compile_instance field.
9006 (language_defn::get_compile_instance): New member function.
9007 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
9009 * objc-lang.c (objc_language_data): Likewise.
9010 * opencl-lang.c (opencl_language_data): Likewise.
9011 * p-lang.c (pascal_language_data): Likewise.
9012 * rust-lang.c (rust_language_data): Likewise.
9014 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9016 * ada-lang.c (ada_add_all_symbols): Update comment.
9017 (ada_iterate_over_symbols): Delete, move implementation to...
9018 (ada_language::iterate_over_symbols): ...here, a new member
9019 function, rewrite to use range based for loop.
9020 (ada_language_data): Delete la_iterate_over_symbols initializer.
9021 * c-lang.c (c_language_data): Likewise.
9022 (cplus_language_data): Likewise.
9023 (asm_language_data): Likewise.
9024 (minimal_language_data): Likewise.
9025 * d-lang.c (d_language_data): Likewise.
9026 * f-lang.c (f_language_data): Likewise.
9027 * go-lang.c (go_language_data): Likewise.
9028 * language.c (unknown_language_data): Likewise.
9029 (auto_language_data): Likewise.
9030 * language.h (language_data): Delete la_iterate_over_symbols field.
9031 (language_defn::iterate_over_symbols): New member function.
9032 (LA_ITERATE_OVER_SYMBOLS): Update.
9033 * linespec.c (iterate_over_all_matching_symtabs): Update.
9034 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
9036 * objc-lang.c (objc_language_data): Likewise.
9037 * opencl-lang.c (opencl_language_data): Likewise.
9038 * p-lang.c (pascal_language_data): Likewise.
9039 * rust-lang.c (rust_language_data): Likewise.
9041 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9043 * ada-lang.c (ada_language_data): Delete
9044 la_lookup_transparent_type initializer.
9045 * c-lang.c (c_language_data): Likewise.
9046 (cplus_language_data): Likewise.
9047 (cplus_language::lookup_transparent_type): New member function.
9048 (asm_language_data): Delete la_lookup_transparent_type
9050 (minimal_language_data): Likewise.
9051 * d-lang.c (d_language_data): Likewise.
9052 * f-lang.c (f_language_data): Likewise.
9053 * go-lang.c (go_language_data): Likewise.
9054 * language.c (unknown_language_data): Likewise.
9055 (auto_language_data): Likewise.
9056 * language.h (struct language_data): Delete
9057 la_lookup_transparent_type field.
9058 (language_defn::lookup_transparent_type): New member function.
9059 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
9061 * objc-lang.c (objc_language_data): Likewise.
9062 * opencl-lang.c (opencl_language_data): Likewise.
9063 * p-lang.c (pascal_language_data): Likewise.
9064 * rust-lang.c (rust_language_data): Likewise.
9065 * symtab.c (symbol_matches_domain): Update call.
9067 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9069 * ada-lang.c (ada_language_arch_info): Delete function, move
9070 implementation to...
9071 (ada_language::language_arch_info): ...here, a new member
9073 (ada_language_data): Delete la_language_arch_info.
9074 * c-lang.c (c_language_data): Likewise.
9075 (c_language::language_arch_info): New member function.
9076 (cplus_language_arch_info): Delete function, move
9077 implementation to...
9078 (cplus_language::language_arch_info): ...here, a new member
9080 (cplus_language_data): Delete la_language_arch_info.
9081 (asm_language_data): Likewise.
9082 (asm_language::language_arch_info): New member function.
9083 (minimal_language_data): Delete la_language_arch_info.
9084 (minimal_language::language_arch_info): New member function.
9085 * d-lang.c (d_language_arch_info): Delete function, move
9086 implementation to...
9087 (d_language::language_arch_info): ...here, a new member
9089 (d_language_data): Delete la_language_arch_info.
9090 * f-lang.c (f_language_arch_info): Delete function, move
9091 implementation to...
9092 (f_language::language_arch_info): ...here, a new member
9094 (f_language_data): Delete la_language_arch_info.
9095 * go-lang.c (go_language_arch_info): Delete function, move
9096 implementation to...
9097 (go_language::language_arch_info): ...here, a new member
9099 (go_language_data): Delete la_language_arch_info.
9100 * language.c (unknown_language_data): Likewise.
9101 (unknown_language::language_arch_info): New member function.
9102 (auto_language_data): Delete la_language_arch_info.
9103 (auto_language::language_arch_info): New member function.
9104 (language_gdbarch_post_init): Update call to
9105 la_language_arch_info.
9106 * language.h (language_data): Delete la_language_arch_info
9108 (language_defn::language_arch_info): New function.
9109 * m2-lang.c (m2_language_arch_info): Delete function, move
9110 implementation to...
9111 (m2_language::language_arch_info): ...here, a new member
9113 (m2_language_data): Delete la_language_arch_info.
9114 * objc-lang.c (objc_language_arch_info): Delete function, move
9115 implementation to...
9116 (objc_language::language_arch_info): ...here, a new member
9118 (objc_language_data): Delete la_language_arch_info.
9119 * opencl-lang.c (opencl_language_arch_info): Delete function, move
9120 implementation to...
9121 (opencl_language::language_arch_info): ...here, a new member
9123 (opencl_language_data): Delete la_language_arch_info.
9124 * p-lang.c (pascal_language_arch_info): Delete function, move
9125 implementation to...
9126 (pascal_language::language_arch_info): ...here, a new member
9128 (pascal_language_data): Delete la_language_arch_info.
9129 * rust-lang.c (rust_language_arch_info): Delete function, move
9130 implementation to...
9131 (rust_language::language_arch_info): ...here, a new member
9133 (rust_language_data): Delete la_language_arch_info.
9135 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9137 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
9139 * c-lang.c (c_language_data): Likewise.
9140 (cplus_language_data): Likewise.
9141 (cplus_language::pass_by_reference_info): New method.
9142 (asm_language_data): Delete la_pass_by_reference initializer.
9143 (minimal_language_data): Likewise.
9144 * cp-abi.c (cp_pass_by_reference): Remove use of
9145 default_pass_by_reference.
9146 * d-lang.c (d_language_data): Likewise.
9147 * f-lang.c (f_language_data): Likewise.
9148 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
9149 default_pass_by_reference.
9150 * go-lang.c (go_language_data): Likewise.
9151 * language.c (language_pass_by_reference): Update.
9152 (default_pass_by_reference): Delete.
9153 (unknown_language_data): Delete la_pass_by_reference
9155 (auto_language_data): Likewise.
9156 * language.h (struct language_data): Delete la_pass_by_reference
9158 (language_defn::pass_by_reference_info): New member function.
9159 (default_pass_by_reference): Delete declaration.
9160 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
9162 * objc-lang.c (objc_language_data): Likewise.
9163 * opencl-lang.c (opencl_language_data): Likewise.
9164 * p-lang.c (pascal_language_data): Likewise.
9165 * rust-lang.c (rust_language_data): Likewise.
9167 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9169 * ada-lang.c (ada_read_var_value): Delete function, move
9170 implementation to...
9171 (ada_language::read_var_value): ...here.
9172 (ada_language_data): Delete la_read_var_value initializer.
9173 * c-lang.c (c_language_data): Likewise.
9174 (cplus_language_data): Likewise.
9175 (minimal_language_data): Likewise.
9176 * d-lang.c (d_language_data): Likewise.
9177 * f-lang.c (f_language_data): Likewise.
9178 * findvar.c (default_read_var_value): Rename to...
9179 (language_defn::read_var_value): ...this.
9180 * findvar.c (read_var_value): Update header comment, and change to
9181 call member function instead of function pointer.
9182 * go-lang.c (go_language_data): Likewise.
9183 * language.c (unknown_language_data): Delete la_read_var_value
9185 (auto_language_data): Likewise.
9186 * language.h (struct language_data): Delete la_read_var_value
9188 (language_defn::read_var_value): New member function.
9189 (default_read_var_value): Delete declaration.
9190 * m2-lang.c (m2_language_data): Delete la_read_var_value
9192 * objc-lang.c (objc_language_data): Likewise.
9193 * opencl-lang.c (opencl_language_data): Likewise.
9194 * p-lang.c (pascal_language_data): Likewise.
9195 * rust-lang.c (rust_language_data): Likewise.
9196 * value.h (default_read_var_value): Delete declaration.
9198 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9200 * ada-lang.c (ada_print_array_index): Delete function, move
9201 implementation to...
9202 (ada_language::print_array_index): ...here.
9203 (ada_language_data): Delete la_print_array_index initializer.
9204 * c-lang.c (c_language_data): Likewise.
9205 (cplus_language_data): Likewise.
9206 (minimal_language_data): Likewise.
9207 * d-lang.c (d_language_data): Likewise.
9208 * f-lang.c (f_language_data): Likewise.
9209 * go-lang.c (go_language_data): Likewise.
9210 * language.c (default_print_array_index): Delete function, move
9211 implementation to...
9212 (language_defn::print_array_index): ...here.
9213 (unknown_language_data): Delete la_print_array_index initializer.
9214 (auto_language_data): Likewise.
9215 * language.h (struct language_data): Delete la_print_array_index
9217 (language_defn::print_array_index): New member function.
9218 (LA_PRINT_ARRAY_INDEX): Update.
9219 (default_print_array_index): Delete declaration.
9220 * m2-lang.c (m2_language_data): Delete la_print_array_index
9222 * objc-lang.c (objc_language_data): Likewise.
9223 * opencl-lang.c (opencl_language_data): Likewise.
9224 * p-lang.c (pascal_language_data): Likewise.
9225 * rust-lang.c (rust_language_data): Likewise.
9227 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9229 * gdb/ada-lang.c (ada_language_defn): Convert to...
9230 (ada_language_data): ...this.
9231 (class ada_language): New class.
9232 (ada_language_defn): New static global.
9233 * gdb/c-lang.c (c_language_defn): Convert to...
9234 (c_language_data): ...this.
9235 (class c_language): New class.
9236 (c_language_defn): New static global.
9237 (cplus_language_defn): Convert to...
9238 (cplus_language_data): ...this.
9239 (class cplus_language): New class.
9240 (cplus_language_defn): New static global.
9241 (asm_language_defn): Convert to...
9242 (asm_language_data): ...this.
9243 (class asm_language): New class.
9244 (asm_language_defn): New static global.
9245 (minimal_language_defn): Convert to...
9246 (minimal_language_data): ...this.
9247 (class minimal_language): New class.
9248 (minimal_language_defn): New static global.
9249 * gdb/d-lang.c (d_language_defn): Convert to...
9250 (d_language_data): ...this.
9251 (class d_language): New class.
9252 (d_language_defn): New static global.
9253 * gdb/f-lang.c (f_language_defn): Convert to...
9254 (f_language_data): ...this.
9255 (class f_language): New class.
9256 (f_language_defn): New static global.
9257 * gdb/go-lang.c (go_language_defn): Convert to...
9258 (go_language_data): ...this.
9259 (class go_language): New class.
9260 (go_language_defn): New static global.
9261 * gdb/language.c (unknown_language_defn): Remove declaration.
9262 (current_language): Initialize to nullptr, real initialization is
9263 moved to _initialize_language.
9264 (languages): Delete global.
9265 (language_defn::languages): Define.
9266 (set_language_command): Use language_defn::languages.
9267 (set_language): Likewise.
9268 (range_error): Likewise.
9269 (language_enum): Likewise.
9270 (language_def): Likewise.
9271 (add_set_language_command): Use language_def::languages for the
9272 language list, and language_def to lookup language pointers.
9273 (skip_language_trampoline): Use language_defn::languages.
9274 (unknown_language_defn): Convert to...
9275 (unknown_language_data): ...this.
9276 (class unknown_language): New class.
9277 (unknown_language_defn): New static global.
9278 (auto_language_defn): Convert to...
9279 (auto_language_data): ...this.
9280 (class auto_language): New class.
9281 (auto_language_defn): New static global.
9282 (language_gdbarch_post_init): Use language_defn::languages.
9283 (_initialize_language): Initialize current_language.
9284 * gdb/language.h (struct language_defn): Rename to...
9285 (struct language_data): ...this.
9286 (struct language_defn): New.
9287 (auto_language_defn): Delete.
9288 (unknown_language_defn): Delete.
9289 (minimal_language_defn): Delete.
9290 (ada_language_defn): Delete.
9291 (asm_language_defn): Delete.
9292 (c_language_defn): Delete.
9293 (cplus_language_defn): Delete.
9294 (d_language_defn): Delete.
9295 (f_language_defn): Delete.
9296 (go_language_defn): Delete.
9297 (m2_language_defn): Delete.
9298 (objc_language_defn): Delete.
9299 (opencl_language_defn): Delete.
9300 (pascal_language_defn): Delete.
9301 (rust_language_defn): Delete.
9302 * gdb/m2-lang.c (m2_language_defn): Convert to...
9303 (m2_language_data): ...this.
9304 (class m2_language): New class.
9305 (m2_language_defn): New static global.
9306 * gdb/objc-lang.c (objc_language_defn): Convert to...
9307 (objc_language_data): ...this.
9308 (class objc_language): New class.
9309 (objc_language_defn): New static global.
9310 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
9311 (opencl_language_data): ...this.
9312 (class opencl_language): New class.
9313 (opencl_language_defn): New static global.
9314 * gdb/p-lang.c (pascal_language_defn): Convert to...
9315 (pascal_language_data): ...this.
9316 (class pascal_language): New class.
9317 (pascal_language_defn): New static global.
9318 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
9319 language pointer, update comment format.
9320 * gdb/rust-lang.c (rust_language_defn): Convert to...
9321 (rust_language_data): ...this.
9322 (class rust_language): New class.
9323 (rust_language_defn): New static global.
9325 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
9327 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
9329 <m_stmt_at_address>: New member variable.
9330 (lnp_state_machine::record_line): Don't record some lines, update
9331 tracking of is_stmt at the same address.
9332 (lnp_state_machine::lnp_state_machine): Initialise new member
9335 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
9337 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
9338 "-include gnu-nat-mig.h".
9339 * gnu-nat-mig.h: New file.
9340 * gnu-nat.c: Include "gnu-nat-mig.h".
9341 (exc_server, msg_reply_server, notify_server,
9342 process_reply_server): Remove declarations.
9344 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9346 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
9347 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
9348 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
9349 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
9350 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
9351 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
9352 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
9353 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
9354 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
9355 to gnu_nat_target class.
9356 * gnu-nat.c: Likewise.
9357 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
9358 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
9359 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
9361 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
9362 instead of `gnu_target'.
9364 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9366 * i386-gnu-tdep.c: Include "gdbcore.h"
9367 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
9368 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
9369 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
9370 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
9371 i386_gnu_sigcontext_addr): New functions
9372 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
9373 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
9376 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9378 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
9379 before fork_inferior call. Avoid calling it if target_is_pushed returns
9382 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9384 * gnu-nat.h (gnu_target): New variable declaration.
9385 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
9387 * gnu-nat.c (gnu_target): New variable.
9388 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
9389 add_thread_silent, and add_thread calls.
9390 (gnu_nat_target::create_inferior): Pass gnu_target to
9391 add_thread_silent, thread_change_ptid call.
9392 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
9395 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9397 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
9398 (gnu_nat_target::find_memory_regions): Remove unused
9399 `old_address' variable.
9401 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9403 * gnu-nat.c: Include "gdbarch.h".
9405 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9407 * reply_mig_hack.awk (Error return): Cast function through
9408 void *, to bypass compiler function call check.
9410 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9412 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
9413 $(srcdir)/reply_mig_hack.awk.
9415 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9417 * gnu-nat.h (gnu_debug_flag): Set type to bool.
9419 2020-05-30 Jonny Grant <jg@jguk.org>
9421 * configure.ac (ACX_BUGURL): change bug URL to https.
9423 2020-05-30 Pedro Alves <palves@redhat.com>
9425 * cp-support.c (replace_typedefs_template): New.
9426 (replace_typedefs_qualified_name): Handle
9427 DEMANGLE_COMPONENT_TEMPLATE.
9429 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
9431 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
9432 dwarf2/index-cache.h, dwarf2/index-write.c,
9433 dwarf2/index-write.h, dwarf2/line-header.c,
9434 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
9435 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
9436 variables and fields from `dwarf2_per_objfile` to just
9437 `per_objfile` throughout.
9439 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
9441 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9442 <push_dwarf_reg_entry_value>: Add comment.
9444 2020-05-28 Kevin Buettner <kevinb@redhat.com>
9445 Keith Seitz <keiths@redhat.com>
9447 * python/python.c (do_start_initialization): Call PyEval_SaveThread
9448 instead of PyEval_ReleaseLock.
9449 (class gdbpy_gil): Move to earlier in file.
9450 (finalize_python): Set gdb_python_initialized.
9451 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
9452 when not initialized.
9454 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
9456 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9457 <push_dwarf_reg_entry_value>: Remove assert. Override
9458 per_objfile with caller_per_objfile.
9460 2020-05-28 Tom de Vries <tdevries@suse.de>
9462 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
9463 PR gold/15646 workaround to symbol kind "type".
9465 2020-05-27 Tom Tromey <tromey@adacore.com>
9467 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
9469 2020-05-27 Tom Tromey <tromey@adacore.com>
9471 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
9472 Use htab_find_with_hash.
9473 <add_abbrev>: Remove "abbrev_number" parameter.
9474 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
9475 "abbrev_number" parameter. Use htab_find_slot_with_hash.
9476 (hash_abbrev): Add comment.
9477 (abbrev_table::lookup_abbrev): Move to header file.
9478 (abbrev_table::read): Update.
9480 2020-05-27 Tom Tromey <tromey@adacore.com>
9482 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
9484 <canonical_name>: New member.
9485 <raw_name>: Rename from "name".
9486 (partial_die_info): Initialize canonical_name.
9487 (scan_partial_symbols): Check raw_name.
9488 (partial_die_parent_scope, partial_die_full_name)
9489 (add_partial_symbol, add_partial_subprogram)
9490 (add_partial_enumeration, load_partial_dies): Use "name" method.
9491 (partial_die_info::name): New method.
9492 (partial_die_info::read, guess_partial_die_structure_name)
9493 (partial_die_info::fixup): Update.
9495 2020-05-27 Tom Tromey <tromey@adacore.com>
9497 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
9498 <get_ref_die_offset>: Inline.
9499 <get_ref_die_offset_complaint>: New method.
9500 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
9501 (attribute::get_ref_die_offset_complaint): Rename from
9502 get_ref_die_offset. Just issue complaint.
9504 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
9506 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
9508 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
9510 * exec.c (exec_file_attach): Use errno value of first openp failure.
9512 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
9514 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
9515 Don't close thread handle.
9517 2020-05-27 Tom Tromey <tom@tromey.com>
9518 Simon Marchi <simon.marchi@efficios.com>
9520 * objfiles.h (struct objfile) <partial_symtabs>: Now a
9522 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
9524 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
9525 dwarf2_per_bfd_objfile_data_key>: New globals.
9526 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
9527 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
9528 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
9530 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
9531 short-circuit when sharing.
9532 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
9533 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
9535 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9537 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
9539 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
9540 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
9542 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9544 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
9545 build_name_components, find_name_components_bounds>:
9546 Add per_objfile parameter.
9547 (struct mapped_index) <symbol_name_at>: Likewise.
9548 (struct mapped_debug_names): Remove constructor.
9549 <dwarf2_per_objfile>: Remove field.
9550 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
9551 (mapped_index_base::find_name_components_bounds,
9552 mapped_index_base::build_name_components,
9553 dw2_expand_symtabs_matching_symbol): Likewise.
9554 (class mock_mapped_index) <symbol_name_at>: Likewise.
9555 (check_match): Likewise.
9556 (check_find_bounds_finds): Likewise.
9557 (test_mapped_index_find_name_component_bounds): Update.
9558 (CHECK_MATCH): Update.
9559 (dw2_expand_symtabs_matching): Update.
9560 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
9561 per_objfile parameter.
9562 <find_vec_in_debug_names>: Likewise.
9563 <m_per_objfile>: New field.
9564 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
9566 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
9567 (dw2_debug_names_iterator::next): Update.
9568 (dw2_debug_names_lookup_symbol): Update.
9569 (dw2_debug_names_expand_symtabs_for_function): Update.
9570 (dw2_debug_names_map_matching_symbols): Update.
9571 (dw2_debug_names_expand_symtabs_matching): Update.
9572 (dwarf2_read_debug_names): Update.
9574 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9576 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
9577 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
9578 move to dwarf2_per_objfile.
9579 <read_in_chain>: Remove.
9580 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
9581 remove_all_cus, age_comp_units>: New methods.
9582 <m_dwarf2_cus>: New member.
9583 (struct dwarf2_per_cu_data) <cu>: Remove.
9584 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
9585 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
9586 moved to methods of dwarf2_per_objfile.
9587 (dwarf2_clear_marks): Remove.
9588 (dwarf2_queue_item::~dwarf2_queue_item): Update.
9589 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
9590 (dwarf2_per_bfd::free_cached_comp_units): Remove.
9591 (dwarf2_per_objfile::remove_all_cus): New.
9592 (class free_cached_comp_units) <~free_cached_comp_units>:
9595 (dw2_do_instantiate_symtab): Adjust.
9596 (fill_in_sig_entry_from_dwo_entry): Adjust.
9597 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9598 (cutu_reader::cutu_reader): Likewise.
9599 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
9600 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
9601 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
9602 and dwarf2_per_objfile::age_comp_units.
9603 (load_partial_comp_unit): Update.
9604 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
9605 (process_queue): Likewise.
9606 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
9608 (dwarf2_read_addr_index): Likewise.
9609 (follow_die_offset): Likewise.
9610 (dwarf2_fetch_die_loc_sect_off): Likewise.
9611 (dwarf2_fetch_constant_bytes): Likewise.
9612 (dwarf2_fetch_die_type_sect_off): Likewise.
9613 (follow_die_sig_1): Likewise.
9614 (load_full_type_unit): Likewise.
9615 (read_signatured_type): Likewise.
9616 (dwarf2_cu::dwarf2_cu): Don't set cu field.
9617 (dwarf2_cu::~dwarf2_cu): Remove.
9618 (dwarf2_per_objfile::get_cu): New.
9619 (dwarf2_per_objfile::set_cu): New.
9620 (age_cached_comp_units): Rename to...
9621 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
9622 to std::unordered_map.
9623 (free_one_cached_comp_unit): Rename to...
9624 (dwarf2_per_objfile::remove_cu): ... this. Adjust
9625 to std::unordered_map.
9626 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
9627 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
9628 a dwarf2_per_objfile in data.
9629 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
9630 (dwarf2_clear_marks): Remove.
9632 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9634 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
9635 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
9636 (init_tu_and_read_dwo_dies): Likewise.
9637 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
9638 (cutu_reader::cutu_reader): Likewise.
9639 (load_partial_comp_unit): Likewise.
9640 (process_psymtab_comp_unit): Update.
9641 (build_type_psymtabs_1): Update.
9642 (process_skeletonless_type_unit): Update.
9643 (load_full_comp_unit): Update.
9644 (find_partial_die): Update.
9645 (dwarf2_read_addr_index): Update.
9646 (read_signatured_type): Update.
9648 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9650 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
9651 m_header_read_in>: New fields.
9652 <get_header>: New method.
9653 * dwarf2/read.c (per_cu_header_read_in): Remove.
9654 (dwarf2_per_cu_data::get_header): New.
9655 (dwarf2_per_cu_data::addr_size): Update.
9656 (dwarf2_per_cu_data::offset_size): Update.
9657 (dwarf2_per_cu_data::ref_addr_size): Update.
9659 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9661 * dwarf2/read.c (load_cu): Return dwarf2_cu.
9662 (dw2_do_instantiate_symtab): Update.
9663 (queue_and_load_all_dwo_tus): Change parameter from
9664 dwarf2_per_cu_data to dwarf2_cu.
9665 (dwarf2_fetch_die_loc_sect_off): Update.
9666 (dwarf2_fetch_constant_bytes): Update.
9667 (dwarf2_fetch_die_type_sect_off): Update.
9669 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9671 * dwarf2/read.c (process_full_comp_unit,
9672 process_full_type_unit): Remove per_cu, per_objfile paramters.
9673 Add dwarf2_cu parameter.
9674 (process_queue): Update.
9676 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9678 * dwarf2/read.c (create_cu_from_index_list): Replace
9679 dwarf2_per_objfile parameter with dwarf2_per_bfd.
9680 (create_cus_from_index_list): Likewise.
9681 (create_cus_from_index): Likewise.
9682 (create_signatured_type_table_from_index): Likewise.
9683 (create_cus_from_debug_names_list): Likewise.
9684 (create_cus_from_debug_names): Likewise.
9685 (dwarf2_read_gdb_index): Update.
9686 (dwarf2_read_debug_names): Update.
9688 2020-05-27 Tom Tromey <tom@tromey.com>
9689 Simon Marchi <simon.marchi@efficios.com>
9691 * dwarf2/read.h (struct dwarf2_per_objfile)
9692 <get_type_for_signatured_type, set_type_for_signatured_type>:
9694 <m_type_map>: New member.
9695 (struct signatured_type) <type>: Remove.
9697 (dwarf2_per_objfile::get_type_for_signatured_type,
9698 dwarf2_per_objfile::set_type_for_signatured_type): New.
9699 (get_signatured_type): Use new methods.
9701 2020-05-27 Tom Tromey <tom@tromey.com>
9702 Simon Marchi <simon.marchi@efficios.com>
9704 * dwarf2/read.h (struct type_unit_group_unshareable): New.
9705 (struct dwarf2_per_objfile) <type_units>: New member.
9706 <get_type_unit_group_unshareable>: New method.
9707 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
9708 num_symtabs, symtabs>: Remove; move to
9709 type_unit_group_unshareable.
9710 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
9711 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
9712 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
9714 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9716 * dwarf2/read.h (struct dwarf2_per_cu_data):
9717 <dwarf2_per_objfile>: Remove.
9718 * dwarf2/read.c (create_cu_from_index_list): Don't assign
9720 (create_signatured_type_table_from_index): Likewise.
9721 (create_signatured_type_table_from_debug_names): Likewise.
9722 (create_debug_type_hash_table): Likewise.
9723 (fill_in_sig_entry_from_dwo_entry): Likewise.
9724 (create_type_unit_group): Likewise.
9725 (read_comp_units_from_section): Likewise.
9726 (create_cus_hash_table): Likewise.
9728 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9730 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
9731 dwarf2_per_cu_data::dwarf2_per_objfile.
9732 (compute_compunit_symtab_includes): Likewise.
9733 (dwarf2_cu::start_symtab): Likewise.
9735 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9737 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
9739 * dwarf2/read.c (get_die_type_at_offset): Likewise.
9740 (read_namespace_alias): Update.
9741 (lookup_die_type): Update.
9742 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
9743 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
9745 (disassemble_dwarf_expression): Update.
9747 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9749 * dwarf2/read.h (struct dwarf2_queue_item): Add
9750 dwarf2_per_objfile parameter, assign new parameter.
9751 <per_objfile>: New field.
9752 * dwarf2/read.c (free_one_cached_comp_unit): Add
9753 dwarf2_per_objfile parameter.
9754 (queue_comp_unit): Likewise.
9755 (dw2_do_instantiate_symtab): Update.
9756 (process_psymtab_comp_unit): Update.
9757 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
9758 (process_imported_unit_die): Update.
9759 (queue_and_load_dwo_tu): Update.
9760 (follow_die_offset): Update.
9761 (follow_die_sig_1): Update.
9763 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9765 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
9766 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
9767 (read_call_site_scope): Assign per_objfile.
9768 (dwarf2_per_cu_data::objfile): Remove.
9769 * gdbtypes.h (struct call_site) <per_objfile>: New member.
9770 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
9771 dwarf2_per_objfile parameter.
9772 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
9773 dwarf2_per_objfile parameter.
9774 (dwarf_expr_reg_to_entry_parameter): Add output
9775 dwarf2_per_objfile parameter.
9776 (locexpr_get_frame_base): Update.
9777 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
9778 <push_dwarf_reg_entry_value>: Update.
9779 <call_site_to_target_addr>: Update.
9780 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
9782 (value_of_dwarf_reg_entry): Update.
9783 (rw_pieced_value): Update.
9784 (indirect_synthetic_pointer): Update.
9785 (dwarf2_evaluate_property): Update.
9786 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
9788 (locexpr_read_variable): Update.
9789 (locexpr_get_symbol_read_needs): Update.
9790 (loclist_read_variable): Update.
9792 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9794 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
9795 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9796 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
9798 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
9799 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9800 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
9802 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
9803 sect_variable_value): Add dwarf2_per_objfile parameter.
9804 (class dwarf_evaluate_loc_desc) <dwarf_call,
9805 dwarf_variable_value>: Update.
9806 (fetch_const_value_from_synthetic_pointer): Add
9807 dwarf2_per_objfile parameter.
9808 (fetch_const_value_from_synthetic_pointer): Update.
9809 (coerced_pieced_ref): Update.
9810 (class symbol_needs_eval_context) <dwarf_call,
9811 dwarf_variable_value>: Update.
9812 (dwarf2_compile_expr_to_ax): Update.
9814 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9816 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
9818 (dwarf2_evaluate_loc_desc_full): Update.
9820 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9822 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
9824 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
9825 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
9826 dwarf2_per_objfile parameter.
9827 (decode_debug_loc_dwo_addresses): Likewise.
9828 (dwarf2_find_location_expression): Update.
9829 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
9830 (locexpr_describe_location_piece): Add dwarf2_per_objfile
9832 (disassemble_dwarf_expression): Add dwarf2_per_objfile
9834 (locexpr_describe_location_1): Likewise.
9835 (locexpr_describe_location): Update.
9837 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9839 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
9841 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
9842 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
9843 (dwarf2_compile_property_to_c): Update.
9844 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
9845 use text offset from objfile.
9846 (locexpr_tracepoint_var_ref): Update.
9847 (locexpr_generate_c_location): Update.
9848 (loclist_describe_location): Update.
9849 (loclist_tracepoint_var_ref): Update.
9850 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
9851 dwarf2_per_objfile parameter.
9852 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
9853 use text offset from objfile.
9854 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
9856 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9858 * dwarf2/expr.h (struct dwarf_expr_context)
9859 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
9861 <per_objfile>: New member.
9862 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
9863 dwarf2_per_objfile parameter. Don't set offset, set
9865 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
9866 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
9867 a dwarf2_per_objfile object instead of an offset.
9868 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
9870 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
9871 to dwarf2_expr_executor constructor. Don't set offset.
9872 (dwarf2_fetch_cfa_info): Update.
9873 (struct dwarf2_frame_cache) <text_offset>: Remove.
9874 <per_objfile>: New field.
9875 (dwarf2_frame_cache): Update.
9876 (dwarf2_frame_prev_register): Update.
9877 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9878 <dwarf_evaluate_loc_desc>: Add constructor.
9879 (dwarf2_evaluate_loc_desc_full): Update.
9880 (dwarf2_locexpr_baton_eval): Update.
9881 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
9883 (dwarf2_loc_desc_get_symbol_read_needs): Update.
9885 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9887 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
9888 addr_sized_int_type>: Move to dwarf2_cu.
9889 <int_type>: Move to dwarf2_per_objfile.
9890 (struct dwarf2_per_objfile) <int_type>: Move here.
9891 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
9892 addr_sized_int_type>: Move here.
9893 (read_func_scope): Update.
9894 (read_array_type): Update.
9895 (read_tag_string_type): Update.
9896 (attr_to_dynamic_prop): Update.
9897 (dwarf2_per_cu_data::int_type): Rename to...
9898 (dwarf2_per_objfile::int_type): ... this.
9899 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
9900 (dwarf2_cu::addr_sized_int_type): ... this.
9901 (read_subrange_type): Update.
9902 (dwarf2_per_cu_data::addr_type): Rename to...
9903 (dwarf2_cu::addr_type): ... this.
9904 (set_die_type): Update.
9906 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9908 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
9909 data through per_cu->cu.
9911 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9913 * dwarf2/read.c (lookup_dwo_comp_unit): Change
9914 dwarf2_per_cu_data parameter fo dwarf2_cu.
9915 (lookup_dwo_type_unit): Likewise.
9916 (read_cutu_die_from_dwo): Likewise.
9917 (lookup_dwo_unit): Likewise.
9918 (open_and_init_dwo_file): Likewise.
9919 (lookup_dwo_cutu): Likewise.
9920 (lookup_dwo_comp_unit): Likewise.
9921 (lookup_dwo_type_unit): Likewise.
9922 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9923 (cutu_reader::cutu_reader): Update.
9925 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9927 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
9929 (process_full_type_unit): Likewise.
9930 (process_queue): Update.
9932 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9934 * dwarf2/read.c (recursively_compute_inclusions): Add
9935 dwarf2_per_objfile parameter.
9936 (compute_compunit_symtab_includes): Likewise.
9937 (process_cu_includes): Update.
9939 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9941 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
9943 (create_type_unit_group): Update.
9944 (process_psymtab_comp_unit_reader): Update.
9945 (build_type_psymtabs_reader): Update.
9947 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9949 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
9950 object through m_this_cu->cu.
9952 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9954 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
9956 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
9958 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9960 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
9961 per_objfile parameter.
9962 (load_full_type_unit): Add per_objfile parameter.
9963 (read_signatured_type): Likewise.
9964 (load_full_comp_unit): Likewise.
9965 (load_cu): Likewise.
9966 (dw2_do_instantiate_symtab): Likewise.
9967 (dw2_get_file_names): Likewise.
9968 (dw2_map_symtabs_matching_filename): Update.
9969 (dw_expand_symtabs_matching_file_matcher): Update.
9970 (dw2_map_symbol_filenames): Update.
9971 (process_psymtab_comp_unit): Add per_objfile parameter.
9972 (build_type_psymtabs_1): Update.
9973 (process_skeletonless_type_unit): Update.
9974 (dwarf2_build_psymtabs_hard): Update.
9975 (load_partial_comp_unit): Add per_objfile parameter.
9976 (scan_partial_symbols): Update.
9977 (load_full_comp_unit): Add per_objfile parameter.
9978 (process_imported_unit_die): Update.
9979 (create_cus_hash_table): Update.
9980 (find_partial_die): Update.
9981 (dwarf2_read_addr_index): Update.
9982 (follow_die_offset): Update.
9983 (dwarf2_fetch_die_loc_sect_off): Update.
9984 (dwarf2_fetch_constant_bytes): Update.
9985 (dwarf2_fetch_die_type_sect_off): Update.
9986 (follow_die_sig_1): Update.
9987 (load_full_type_unit): Add per_objfile parameter.
9988 (read_signatured_type): Likewise.
9990 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9992 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
9995 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9997 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
9998 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
9999 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
10001 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
10002 (create_cus_from_index): Update.
10003 (dwarf2_read_gdb_index): Update.
10004 (create_cus_from_debug_names): Update.
10005 (dwarf2_read_debug_names): Update.
10006 (get_abbrev_section_for_cu): Update.
10007 (create_all_comp_units): Update.
10008 (read_attribute_value): Update.
10009 (get_debug_line_section): Update.
10010 * dwarf2/index-cache.c (index_cache::store): Update.
10011 * dwarf2/index-write.c (save_gdb_index_command): Update.
10012 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
10014 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10016 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
10018 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
10019 dwarf2_per_cu_data::per_bfd.
10020 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
10021 (create_type_unit_group): Likewise.
10022 (queue_comp_unit): Remove reference to
10023 per_cu->dwarf2_per_objfile.
10024 (maybe_queue_comp_unit): Likewise.
10025 (fill_in_sig_entry_from_dwo_entry): Assign new field.
10026 (create_cus_hash_table): Assign new field.
10028 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10030 * dwarf2/read.c: Replace
10031 dwarf2_cu->per_cu->dwarf2_per_objfile references with
10032 dwarf2_cu->per_objfile throughout.
10034 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10036 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
10037 parameter, don't use per_cu->dwarf2_per_objfile.
10038 (dw2_instantiate_symtab): Likewise.
10039 (dw2_find_last_source_symtab): Update.
10040 (dw2_map_expand_apply): Update.
10041 (dw2_lookup_symbol): Update.
10042 (dw2_expand_symtabs_for_function): Update.
10043 (dw2_expand_all_symtabs): Update.
10044 (dw2_expand_symtabs_with_fullname): Update.
10045 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
10046 don't use per_cu->dwarf2_per_objfile.
10047 (dw2_expand_marked_cus): Update.
10048 (dw2_find_pc_sect_compunit_symtab): Update.
10049 (dw2_debug_names_lookup_symbol): Update.
10050 (dw2_debug_names_expand_symtabs_for_function): Update.
10051 (dw2_debug_names_map_matching_symbols): Update.
10052 (dwarf2_psymtab::expand_psymtab): Update.
10054 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10056 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
10057 <per_objfile>: New member.
10058 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
10059 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
10061 (cutu_reader::cutu_reader): Update.
10062 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
10064 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10066 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
10067 struct dwarf2_per_objfile.
10068 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
10070 * dwarf2/read.c (set_die_type): Update.
10071 (get_die_type_at_offset): Update.
10073 2020-05-27 Tom Tromey <tom@tromey.com>
10074 Simon Marchi <simon.marchi@efficios.com>
10076 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
10078 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
10079 get_symtab, set_symtab>: New methods.
10080 <m_symtabs>: New field.
10081 (struct dwarf2_psymtab): Derive from partial_symtab.
10082 <readin_p, get_compunit_symtab>: Declare methods.
10083 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
10084 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
10086 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
10087 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
10088 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
10089 (dw2_symtab_iter_next, dw2_print_stats)
10090 (dw2_expand_symtabs_with_fullname)
10091 (dw2_expand_symtabs_matching_one)
10092 (dw_expand_symtabs_matching_file_matcher)
10093 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
10094 (dw2_debug_names_iterator::next)
10095 (dw2_debug_names_map_matching_symbols)
10096 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
10097 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
10098 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
10100 (get_compunit_symtab, process_full_comp_unit)
10101 (process_full_type_unit): Update.
10102 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
10104 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10106 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
10107 then introduce a new dwarf2_per_objfile type.
10108 <read_line_string>: Move to the new dwarf2_per_objfile type.
10109 <objfile>: Likewise.
10110 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
10111 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
10112 dwarf2_per_objfile->per_bfd.
10113 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
10114 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
10115 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
10116 (dwarf2_per_bfd::free_cached_comp_units): ... this.
10117 (dwarf2_has_info): Allocate dwarf2_per_bfd.
10118 (dwarf2_per_objfile::locate_sections): Rename to...
10119 (dwarf2_per_bfd::locate_sections): ... this.
10120 (dwarf2_per_objfile::get_cutu): Rename to...
10121 (dwarf2_per_bfd::get_cutu): ... this.
10122 (dwarf2_per_objfile::get_cu): Rename to...
10123 (dwarf2_per_bfd::get_cu): ... this.
10124 (dwarf2_per_objfile::get_tu): Rename to...
10125 (dwarf2_per_bfd::get_tu): ... this.
10126 (dwarf2_per_objfile::allocate_per_cu): Rename to...
10127 (dwarf2_per_bfd::allocate_per_cu): ... this.
10128 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
10129 (dwarf2_per_bfd::allocate_signatured_type): ... this.
10130 (get_gdb_index_contents_ftype): Change parameter from
10131 dwarf2_per_objfile to dwarf2_per_bfd.
10132 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
10133 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
10135 2020-05-27 Tom Tromey <tom@tromey.com>
10136 Simon Marchi <simon.marchi@efficios.com>
10138 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
10139 (allocate_piece_closure): Set "per_objfile" member.
10140 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
10141 (locexpr_describe_location, loclist_describe_location): Use new
10143 * dwarf2/read.c (read_call_site_scope)
10144 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
10145 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
10146 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
10147 handle_data_member_location): Set per_objfile member.
10148 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
10150 (struct dwarf2_loclist_baton) <per_objfile>: New member.
10152 2020-05-27 Tom Tromey <tom@tromey.com>
10154 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
10155 allocate_signatured_type>: Declare new methods.
10156 <m_num_psymtabs>: New member.
10157 (struct dwarf2_per_cu_data) <index>: New member.
10158 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
10159 (dwarf2_per_objfile::allocate_signatured_type): New methods.
10160 (create_cu_from_index_list): Use allocate_per_cu.
10161 (create_signatured_type_table_from_index)
10162 (create_signatured_type_table_from_debug_names)
10163 (create_debug_type_hash_table, add_type_unit)
10164 (read_comp_units_from_section): Use allocate_signatured_type.
10166 2020-05-27 Tom Tromey <tom@tromey.com>
10168 * psymtab.c (partial_map_expand_apply)
10169 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10170 (psym_lookup_global_symbol_language)
10171 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10172 (psym_print_stats, psym_expand_symtabs_for_function)
10173 (psym_map_symbol_filenames, psym_map_matching_symbols)
10174 (psym_expand_symtabs_matching)
10175 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10176 (maintenance_check_psymtabs): Update.
10177 * psympriv.h (struct partial_symtab) <readin_p,
10178 get_compunit_symtab>: Add objfile parameter.
10179 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
10181 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
10182 get_compunit_symtab>: Likewise.
10183 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
10185 2020-05-27 Tom Tromey <tom@tromey.com>
10187 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
10189 * dwarf2/read.c (delete_file_name_entry): Fix comment.
10190 (create_cu_from_index_list)
10191 (create_signatured_type_table_from_index)
10192 (create_signatured_type_table_from_debug_names)
10193 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
10194 (dwarf2_create_include_psymtab)
10195 (create_debug_type_hash_table, add_type_unit)
10196 (create_type_unit_group, read_comp_units_from_section)
10197 (dwarf2_compute_name, create_cus_hash_table)
10198 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
10199 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
10201 (dw2_get_real_path): Likewise. Change argument to
10202 dwarf2_per_objfile.
10204 2020-05-27 Luis Machado <luis.machado@linaro.org>
10207 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
10208 for ldrd (immediate).
10210 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10212 * command.h: Add comment giving the name of class_tui.
10213 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
10214 create the fake command for the help for class_tui.
10216 2020-05-26 Tom Tromey <tromey@adacore.com>
10218 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
10219 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
10220 (val_atr): New function.
10221 (value_val_atr): Use it.
10222 * ada-valprint.c (print_optional_low_bound): Change low bound
10223 handling for enums.
10224 (val_print_packed_array_elements): Don't call discrete_position.
10225 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
10226 discrete_position for enum types.
10227 * language.c (default_print_array_index): Change type.
10228 * language.h (struct language_defn) <la_print_array_index>: Add
10229 index_type parameter, change type of index_value.
10230 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
10231 (default_print_array_index): Update.
10232 * valprint.c (maybe_print_array_index): Don't call
10233 value_from_longest. Update.
10234 (value_print_array_elements): Don't call discrete_position.
10236 2020-05-26 Tom Tromey <tromey@adacore.com>
10238 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
10239 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
10241 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
10244 * avr-tdep.c (avr_integer_to_address): Return data or code
10245 address accordingly to the second 'type' argument of the
10248 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
10250 * infcmd.c, inferior.h: (construct_inferior_arguments):
10251 Moved function from here to gdbsupport/common-inferior.{h,cc}
10253 2020-05-23 Tom Tromey <tom@tromey.com>
10255 Revert commit eca1f90c:
10256 * NEWS: Remove entry for completion styling.
10257 * completer.c (_rl_completion_prefix_display_length): Move
10259 (gdb_fnprint): Revert.
10260 (gdb_display_match_list_1): Likewise.
10261 * cli/cli-style.c (completion_prefix_style)
10262 (completion_difference_style, completion_suffix_style): Remove.
10263 (_initialize_cli_style): Revert.
10264 * cli/cli-style.h (completion_prefix_style)
10265 (completion_difference_style, completion_suffix_style): Don't
10268 2020-05-24 Pedro Alves <palves@redhat.com>
10270 * symtab.c (completion_list_add_name): Return boolean indication
10271 of whether the symbol matched.
10272 (completion_list_add_symbol): Don't try to remove C++ aliases if
10273 the symbol didn't match in the first place.
10274 * symtab.h (completion_list_add_name): Return bool.
10276 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
10278 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
10281 2020-05-23 Joel Brobecker <brobecker@adacore.com>
10285 2020-05-23 Tom Tromey <tom@tromey.com>
10287 * NEWS: Add entry for completion styling.
10288 * completer.c (_rl_completion_prefix_display_length): Move
10289 declaration earlier.
10290 (gdb_fnprint): Use completion_style.
10291 (gdb_display_match_list_1): Likewise.
10292 * cli/cli-style.c (completion_prefix_style)
10293 (completion_difference_style, completion_suffix_style): New
10295 (_initialize_cli_style): Register new globals.
10296 * cli/cli-style.h (completion_prefix_style)
10297 (completion_difference_style, completion_suffix_style): Declare.
10299 2020-05-23 Pedro Alves <palves@redhat.com>
10301 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
10302 (parse_escape): Use ISDIGIT instead of isdigit.
10303 (puts_debug): Use gdb_isprint instead of isprint.
10304 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
10305 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
10306 ISSPACE instead of isspace.
10307 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
10308 instead of isspace.
10309 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
10310 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
10311 instead of isxdigit and ISDIGIT instead of isdigit.
10313 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10315 * gdbtypes.h (struct type) <field>: New method.
10316 (TYPE_FIELDS): Remove, replace all uses with either type::fields
10319 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10321 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
10322 (TYPE_FIELDS): Use type::fields. Change all call sites that
10323 modify the propery to use type::set_fields instead.
10325 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10327 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
10328 type::num_fields instead.
10330 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10332 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
10334 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
10335 that modify the number of fields to use type::set_num_fields
10338 2020-05-22 Tom Tromey <tromey@adacore.com>
10340 * compile/compile-object-load.h (munmap_list_free): Don't
10343 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
10345 * annotate.c (annotate_source_line): Update return type, add call
10346 to update current symtab and line.
10347 * annotate.h (annotate_source_line): Update return type, and
10348 extend header comment.
10349 * source.c (info_line_command): Check annotation_level before
10350 calling annotate_source_line.
10351 * stack.c (print_frame_info): If calling annotate_source_line
10352 returns true, then don't print any other source line information.
10354 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
10356 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
10358 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
10360 * coffread.c (patch_type): Remove NULL check before xfree.
10361 * corefile.c (set_gnutarget): Likewise.
10362 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
10363 * exec.c (build_section_table): Likewise.
10364 * remote.c (remote_target::pass_signals): Likewise.
10365 * utils.c (n_spaces): Likewise.
10366 * cli/cli-script.c (document_command): Likewise.
10367 * i386-windows-tdep.c (core_process_module_section): Likewise.
10368 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
10370 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
10372 * symfile.c (reread_symbols): Clear objfile's section_offsets
10373 vector and section indices, re-compute them by calling
10376 2020-05-20 Tom Tromey <tromey@adacore.com>
10378 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
10379 (desc_one_bound, desc_index_type): Compute field name.
10381 2020-05-20 Tom de Vries <tdevries@suse.de>
10384 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
10386 2020-05-20 Alan Modra <amodra@gmail.com>
10389 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
10391 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
10392 passed to bfd_set_filename.
10393 * symfile-mem.c (add_vsyscall_page): Likewise for string
10394 passed to symbol_file_add_from_memory.
10395 (symbol_file_add_from_memory): Make name param a const char* and
10398 2020-05-20 Alan Modra <amodra@gmail.com>
10400 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
10401 rather than accessing bfd->filename directly.
10402 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
10403 and use bfd_section_name.
10404 * dwarf2/frame.c (decode_frame_entry): Likewise.
10405 * exec.c (exec_set_section_address): Likewise.
10406 * solib-aix.c (solib_aix_bfd_open): Likewise.
10407 * stap-probe.c (get_stap_base_address): Likewise.
10408 * symfile.c (reread_symbols): Likewise.
10410 2020-05-19 Tom Tromey <tromey@adacore.com>
10412 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
10414 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10416 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
10418 2020-05-19 Pedro Alves <palves@redhat.com>
10420 * NEWS (set exec-file-mismatch): Adjust entry.
10421 * exec.c: Include "build-id.h".
10422 (validate_exec_file): Try to match build IDs instead of filenames.
10423 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
10424 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
10425 and pass down 'warn_if_slow'.
10426 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
10427 gdb_bfd_open_closure to pass it down.
10428 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
10430 2020-05-19 Pedro Alves <palves@redhat.com>
10432 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
10433 * target.c (target_fileio_open_1): Rename to target_fileio_open
10434 and make extern. Use bool.
10435 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
10436 (target_fileio_read_alloc_1): Adjust.
10437 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
10438 (target_fileio_open_warn_if_slow): Delete declaration.
10440 2020-05-19 Pedro Alves <palves@redhat.com>
10442 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
10443 Adjust all callers.
10445 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
10447 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
10448 whether disp is negative.
10450 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10452 * symfile.h (struct symfile_segment_data)
10453 <~symfile_segment_data>: Remove.
10454 <segment_info>: Change to std::vector.
10455 * symfile.c (default_symfile_segments): Update.
10456 * elfread.c (elf_symfile_segments): Update.
10458 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10460 * symfile.h (struct symfile_segment_data) <struct segment>: New.
10462 <segment_bases, segment_sizes>: Remove.
10463 * symfile.c (default_symfile_segments): Update.
10464 * elfread.c (elf_symfile_segments): Update.
10465 * remote.c (remote_target::get_offsets): Update.
10466 * solib-target.c (solib_target_relocate_section_addresses):
10469 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10471 * symfile.h (struct symfile_segment_data): Initialize fields.
10472 <~symfile_segment_data>: Add.
10473 (symfile_segment_data_up): New.
10474 (struct sym_fns) <sym_segments>: Return a
10475 symfile_segment_data_up.
10476 (default_symfile_segments): Return a symfile_segment_data_up.
10477 (free_symfile_segment_data): Remove.
10478 (get_symfile_segment_data): Return a symfile_segment_data_up.
10479 * symfile.c (default_symfile_segments): Likewise.
10480 (get_symfile_segment_data): Likewise.
10481 (free_symfile_segment_data): Remove.
10482 (symfile_find_segment_sections): Update.
10483 * elfread.c (elf_symfile_segments): Return a
10484 symfile_segment_data_up.
10485 * remote.c (remote_target::get_offsets): Update.
10486 * solib-target.c (solib_target_relocate_section_addresses):
10488 * symfile-debug.c (debug_sym_segments): Return a
10489 symfile_segment_data_up.
10491 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10494 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
10495 Hardcode register numbers.
10498 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
10499 procfs_find_LDT_entry): Remove.
10500 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
10501 procfs_find_LDT_entry): Remove.
10502 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
10505 2020-05-17 Pedro Alves <palves@redhat.com>
10506 Andrew Burgess <andrew.burgess@embecosm.com>
10507 Keno Fischer <keno@juliacomputing.com>
10510 * breakpoint.c (build_target_condition_list): Update comments.
10511 (build_target_command_list): Update comments and skip matching
10513 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
10514 a separate function. Simplify "set breakpoint auto-hw off"
10516 (insert_breakpoints): Update comment.
10517 (tracepoint_locations_match): New parameter. For breakpoints,
10518 compare location types too, if the caller wants to.
10519 (handle_automatic_hardware_breakpoints): New functions.
10520 (bp_location_is_less_than): Also sort by location type and
10521 hardware breakpoint length.
10522 (update_global_location_list): Handle "set breakpoint auto-hw on"
10524 (update_breakpoint_locations): Ask breakpoint_locations_match to
10525 ignore location types.
10527 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
10529 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
10530 type::name instead.
10532 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
10534 * gdbtypes.h (struct type) <name, set_name>: New methods.
10535 (TYPE_CODE): Use type::name. Change all call sites used to set
10536 the name to use type::set_name instead.
10538 2020-05-16 Tom Tromey <tom@tromey.com>
10540 * top.c (quit_force): Update.
10541 * infrun.c (handle_no_resumed): Update.
10542 * top.h (all_uis): New function.
10545 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
10547 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
10549 2020-05-16 Pedro Alves <palves@redhat.com>
10552 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
10554 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
10556 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
10558 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
10559 (sparc64_adi_info): Likewise.
10561 2020-05-15 Tom Tromey <tom@tromey.com>
10563 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
10565 (lookup_objfile_from_block): Remove.
10566 (lookup_symbol_in_block, lookup_symbol_in_static_block)
10567 (lookup_global_symbol): Use block_objfile.
10568 * symtab.h (lookup_objfile_from_block): Don't declare.
10569 * printcmd.c (clear_dangling_display_expressions): Use
10571 * parse.c (operator_check_standard): Use block_objfile.
10573 2020-05-15 Tom Tromey <tom@tromey.com>
10575 * language.c (language_alloc_type_symbol): Set
10577 * symtab.c (initialize_objfile_symbol): Remove.
10578 (allocate_symbol): Remove.
10579 (allocate_template_symbol): Remove.
10580 * dwarf2/read.c (fixup_go_packaging): Use "new".
10581 (new_symbol): Use "new".
10582 (read_variable): Don't call initialize_objfile_symbol. Use
10584 (read_func_scope): Use "new".
10585 * xcoffread.c (process_xcoff_symbol): Don't call
10586 initialize_objfile_symbol.
10587 (SYMBOL_DUP): Remove.
10588 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
10590 * symtab.h (allocate_symbol, initialize_objfile_symbol)
10591 (allocate_template_symbol): Don't declare.
10592 (struct symbol): Add copy constructor. Change defaults.
10593 * jit.c (finalize_symtab): Use "new".
10594 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
10596 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
10597 (common_block_end): Use "new".
10598 * mdebugread.c (parse_symbol): Use "new".
10599 (new_symbol): Likewise.
10601 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10603 * NEWS: Mention changes to help and apropos.
10605 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10607 * command.h (enum command_class): Improve comments, document
10608 that class_alias is for user-defined aliases, give the class
10609 name for each class, remove unused class_xdb.
10610 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
10611 * breakpoint.c (_initialize_breakpoint): Replace class_alias
10612 by a precise class.
10613 * infcmd.c (_initialize_infcmd): Likewise.
10614 * reverse.c (_initialize_reverse): Likewise.
10615 * stack.c (_initialize_stack): Likewise.
10616 * symfile.c (_initialize_symfile): Likewise.
10617 * tracepoint.c (_initialize_tracepoint): Likewise.
10619 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10621 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
10622 when their aliased command is traversed.
10623 (help_cmd): Add fput_command_names_styled call to
10624 output command name and aliases when command has an alias.
10626 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10628 * cli/cli-decode.h (help_cmd_list): Remove declaration.
10629 * cli/cli-decode.c (help_cmd_list): Declare as static,
10630 remove prefix argument, use bool for recurse arg, rework to show the aliases of
10631 a command together with the command.
10632 (fput_command_name_styled, fput_command_names_styled): New functions.
10633 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
10634 fput_command_name_styled.
10635 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
10636 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
10638 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10640 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
10641 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
10642 * command.h (cmd_show_list): Likewise.
10643 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
10644 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
10646 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10648 * unittests/command-def-selftests.c (traverse_command_structure):
10649 Verify all commands of a list have the same prefix command and
10650 that only the top cmdlist commands have a null prefix.
10652 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10654 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
10655 as prefix, not one of its aliases.
10656 (set_cmd_prefix): Remove.
10657 (do_add_cmd): Centralize the setting of the prefix of a command, when
10658 command is defined after its full chain of prefix commands.
10659 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
10660 (add_setshow_cmd_full): Likewise.
10661 (update_prefix_field_of_prefixed_commands): New function.
10662 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
10663 update_prefix_field_of_prefixed_commands.
10664 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
10665 addresses of remote_set_cmdlist and remote_show_cmdlist given
10666 as argument, not the address of an argument.
10667 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
10668 * gdb/remote.c (_initialize_remote): Likewise.
10670 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10672 * cli/cli-cmds.c (alias_command): Check for an existing alias
10673 using lookup_cmd_composition, as valid_command_p is too strict
10674 and forbids aliases that are the prefix of an existing alias
10676 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
10677 command is properly recognised as a valid command.
10679 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10681 * unittests/help-doc-selftests.c: Rename to
10682 unittests/command-def-selftests.c
10683 * unittests/command-def-selftests.c (help_doc_tests): Update some
10685 (command_structure_tests, traverse_command_structure): New namespace
10687 (command_structure_invariants_tests): New function.
10688 (_initialize_command_def_selftests) Renamed from
10689 _initialize_help_doc_selftests, register command_structure_invariants
10692 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10694 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
10695 an alias of 'show'.
10697 2020-05-15 Joel Brobecker <brobecker@adacore.com>
10699 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
10700 ada_is_fixed_point_type. Update all callers.
10701 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
10703 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
10704 Update all callers.
10705 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
10706 print_fixed_point_type. Update all callers.
10707 * ada-valprint.c (ada_value_print_num): Replace call to
10708 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
10710 2020-05-14 Kevin Buettner <kevinb@redhat.com>
10712 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
10714 (cpu_supports_bts): Add CV_AMD case.
10716 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
10717 Simon Marchi <simon.marchi@efficios.com>
10719 * infrun.c (stop_all_threads): Collect multiple wait events at
10722 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
10724 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
10725 type::code instead.
10727 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
10729 * gdbtypes.h (struct type) <code, set_code>: New methods.
10730 (TYPE_CODE): Use type::code. Change all call sites used to set
10731 the code to use type::set_code instead.
10733 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10734 Tom de Vries <tdevries@suse.de>
10735 Pedro Alves <palves@redhat.com>
10738 * infrun.c (stop_all_threads): Do NOT ignore
10739 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
10740 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
10742 (handle_no_resumed): Remove code handling a live inferior with no
10744 * remote.c (has_single_non_exited_thread): New.
10745 (remote_target::update_thread_list): Do not delete a thread if is
10746 the last thread of the process.
10747 * thread.c (thread_select): Call delete_exited_threads instead of
10750 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10752 * infrun.c (stop_all_threads): Enable/disable thread events of all
10753 targets. Move a debug message denoting the end of the function
10754 into the SCOPED_EXIT block.
10756 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10758 * process-stratum-target.h: Include <set>.
10759 (all_non_exited_process_targets, switch_to_target_no_thread): New
10760 function declarations.
10761 * process-stratum-target.c (all_non_exited_process_targets)
10762 (switch_to_target_no_thread): New function implementations.
10764 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10766 * infrun.c (handle_inferior_event): Extract out a piece of code
10768 (mark_non_executing_threads): ...this new function.
10770 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10772 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
10775 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10777 * regcache.c (regcache_read_pc_protected): New function
10778 implementation that returns 0 if the PC cannot read via
10779 'regcache_read_pc'.
10780 * infrun.c (proceed): Call 'regcache_read_pc_protected'
10781 instead of 'regcache_read_pc'.
10782 (keep_going_pass_signal): Ditto.
10784 2020-05-13 Tom Tromey <tromey@adacore.com>
10786 * ada-lang.c (align_value): Remove.
10787 (ada_template_to_fixed_record_type_1): Use align_up.
10789 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10791 * async-event.c: Update the copyright year.
10792 * async-event.h: Update the copyright year.
10794 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
10796 * objfiles.h (is_addr_in_objfile,
10797 shared_objfile_contains_address_p): Return bool.
10798 * objfile.c (is_addr_in_objfile,
10799 shared_objfile_contains_address_p): Return bool.
10801 2020-05-11 Tom Tromey <tromey@adacore.com>
10803 * cli/cli-cmds.c (info_command): Restore.
10804 (_initialize_cli_cmds): Use add_prefix_command for "info".
10805 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
10807 2020-05-11 Tom Tromey <tromey@adacore.com>
10809 * ada-lang.c (ada_value_primitive_field): Now public.
10810 * ada-lang.h (ada_value_primitive_field): Declare.
10811 * ada-valprint.c (print_field_values): Use
10812 ada_value_primitive_field for wrapper fields.
10814 2020-05-11 Tom de Vries <tdevries@suse.de>
10816 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
10819 2020-05-11 Tom de Vries <tdevries@suse.de>
10822 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
10823 with length 0, if not gdb-produced.
10824 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
10826 2020-05-09 Tom de Vries <tdevries@suse.de>
10829 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
10832 2020-05-09 Tom Tromey <tom@tromey.com>
10834 * top.c (server_command): Now bool.
10835 * top.h (server_command): Now bool.
10837 2020-05-08 Tom Tromey <tromey@adacore.com>
10839 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
10840 already being processed.
10842 2020-05-08 Tom Tromey <tom@tromey.com>
10844 * printcmd.c (struct display) <next>: Remove.
10845 <display>: New constructor.
10846 <exp_string>: Now a std::string.
10847 <enabled_p>: Now a bool.
10848 (display_number): Move definition earlier.
10849 (displays): Rename from display_chain. Now a std::vector.
10850 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
10851 (display_command): Update.
10852 (do_one_display, disable_display)
10853 (enable_disable_display_command, do_enable_disable_display):
10855 (free_display): Remove.
10856 (clear_displays): Rewrite.
10857 (delete_display): Update.
10858 (map_display_numbers): Use function_view. Remove "data"
10860 (do_delete_display): Remove.
10861 (undisplay_command): Update.
10862 (do_one_display, do_displays, disable_display)
10863 (info_display_command): Update.
10864 (do_enable_disable_display): Remove.
10865 (enable_disable_display_command)
10866 (clear_dangling_display_expressions): Update.
10868 2020-05-08 Tom Tromey <tom@tromey.com>
10870 * symtab.c (set_symbol_cache_size)
10871 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
10872 (maintenance_print_symbol_cache_statistics): Update.
10873 * symmisc.c (print_symbol_bcache_statistics)
10874 (print_objfile_statistics, maintenance_print_objfiles)
10875 (maintenance_info_symtabs, maintenance_check_symtabs)
10876 (maintenance_expand_symtabs, maintenance_info_line_tables):
10878 * symfile-debug.c (set_debug_symfile): Update.
10879 * source.c (forget_cached_source_info): Update.
10880 * python/python.c (gdbpy_progspaces): Update.
10881 * psymtab.c (maintenance_info_psymtabs): Update.
10882 * probe.c (parse_probes): Update.
10883 * linespec.c (iterate_over_all_matching_symtabs)
10884 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
10885 * guile/scm-progspace.c (gdbscm_progspaces): Update.
10886 * exec.c (exec_target::close): Update.
10887 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
10888 * breakpoint.c (print_one_breakpoint_location)
10889 (create_longjmp_master_breakpoint)
10890 (create_std_terminate_master_breakpoint): Update.
10891 * progspace.c (program_spaces): Now a std::vector.
10892 (maybe_new_address_space): Update.
10893 (add_program_space): Remove.
10894 (program_space::program_space): Update.
10895 (remove_program_space): Update.
10896 (number_of_program_spaces): Remove.
10897 (print_program_space, update_address_spaces): Update.
10898 * progspace.h (program_spaces): Change type.
10899 (ALL_PSPACES): Remove.
10900 (number_of_program_spaces): Don't declare.
10901 (struct program_space) <next>: Remove.
10903 2020-05-08 Tom Tromey <tom@tromey.com>
10905 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
10906 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
10907 (enable_break): Update.
10908 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
10909 (frv_fdpic_find_canonical_descriptor): Update.
10910 (frv_fetch_objfile_link_map): Update.
10911 * progspace.c (program_space::free_all_objfiles): Update.
10912 (program_space::solibs): New method.
10913 * progspace.h (struct program_space) <solibs>: New method.
10914 * solist.h (master_so_list): Don't declare.
10915 (ALL_SO_LIBS): Remove.
10916 * solib.h (so_list_head): Remove.
10917 (update_solib_list): Update comment.
10918 * solib.c (master_so_list): Remove.
10919 (solib_used, update_solib_list, solib_add)
10920 (info_sharedlibrary_command, clear_solib)
10921 (reload_shared_libraries_1, remove_user_added_objfile): Update.
10923 2020-05-08 Tom Tromey <tom@tromey.com>
10925 * extension.c (extension_languages): Now a std::array.
10926 (ALL_EXTENSION_LANGUAGES): Remove.
10927 (get_ext_lang_defn, get_ext_lang_of_file)
10928 (eval_ext_lang_from_control_command): Update.
10929 (finish_ext_lang_initialization)
10930 (auto_load_ext_lang_scripts_for_objfile)
10931 (ext_lang_type_printers::ext_lang_type_printers)
10932 (apply_ext_lang_type_printers)
10933 (ext_lang_type_printers::~ext_lang_type_printers)
10934 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
10935 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
10936 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
10937 (get_matching_xmethod_workers, ext_lang_colorize)
10938 (ext_lang_before_prompt): Update.
10939 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
10941 2020-05-08 Tom Tromey <tom@tromey.com>
10943 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
10945 <swap_string, m_string>: Remove.
10946 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
10948 * stabsread.c (define_symbol, read_type): Update.
10949 * linespec.c (find_linespec_symbols): Update.
10950 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
10951 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
10952 * dbxread.c (read_dbx_symtab): Update.
10953 * cp-support.h (cp_canonicalize_string_full)
10954 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
10955 Return unique_xmalloc_ptr.
10956 * cp-support.c (inspect_type): Update.
10957 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
10958 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
10960 * c-typeprint.c (print_name_maybe_canonical): Update.
10961 * break-catch-throw.c (check_status_exception_catchpoint):
10964 2020-05-08 Tom de Vries <tdevries@suse.de>
10966 * infrun.c (follow_fork): Copy current_line and current_symtab to
10969 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
10971 * async-event.c (struct async_signal_handler, struct
10972 async_event_handler): Reformat, remove typedef.
10974 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
10976 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
10977 access thistype->main_type->dyn_prop_list directly.
10979 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
10981 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
10982 (remove_dyn_prop): Remove. Update all users to use
10983 type::remove_dyn_prop.
10984 * gdbtypes.c (remove_dyn_prop): Rename to...
10985 (type::remove_dyn_prop): ... this.
10987 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
10989 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
10990 (add_dyn_prop): Remove. Update all users to use
10991 type::add_dyn_prop.
10992 * gdbtypes.c (add_dyn_prop): Rename to...
10993 (type::add_dyn_prop): ... this.
10995 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
10997 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
10998 (get_dyn_prop): Remove. Update all users to use
11000 * gdbtypes.c (get_dyn_prop): Rename to...
11001 (type::dyn_prop): ... this.
11003 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
11005 * gdbtypes.h (struct main_type) <flag_static>: Remove.
11007 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
11009 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
11010 instruction, skip it if it's there.
11012 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
11014 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
11016 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
11018 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
11019 * gdbtypes.c (recursive_dump_type): Remove use of
11022 2020-05-03 Tom Tromey <tom@tromey.com>
11024 * breakpoint.c (catch_command, tcatch_command): Remove.
11025 (_initialize_breakpoint): Use add_basic_prefix_cmd,
11026 add_show_prefix_cmd.
11027 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
11028 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
11030 (add_internal_problem_command): Use add_basic_prefix_cmd,
11031 add_show_prefix_cmd.
11032 * mips-tdep.c (set_mipsfpu_command): Remove.
11033 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
11034 * dwarf2/index-cache.c (set_index_cache_command): Remove.
11035 (_initialize_index_cache): Use add_basic_prefix_cmd.
11036 * memattr.c (dummy_cmd): Remove.
11037 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
11038 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
11039 (_initialize_tui_win): Use add_basic_prefix_cmd,
11040 add_show_prefix_cmd.
11041 * cli/cli-logging.c (set_logging_command): Remove.
11042 (_initialize_cli_logging): Use add_basic_prefix_cmd,
11043 add_show_prefix_cmd.
11044 (show_logging_command): Remove.
11045 * target.c (target_command): Remove.
11046 (add_target): Use add_basic_prefix_cmd.
11048 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
11050 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
11052 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11054 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
11057 2020-04-30 Kamil Rytarowski <n54@gmx.com>
11059 * nbsd-nat.c (nbsd_enable_proc_events)
11060 (nbsd_nat_target::post_startup_inferior): Add.
11061 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
11062 (nbsd_nat_target::update_thread_list): Rewrite.
11063 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
11064 "PTRACE_LWP_CREATE".
11065 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
11067 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11069 * stack.c (_initialize_stack): Remove duplicated creation
11070 of "frame" command and "f" alias.
11072 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
11075 * gdbtypes.c (check_typedef): Calculate size of array of
11078 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
11081 * i386-tdep.c (i386_push_dummy_call): Call
11082 i386_thiscall_push_dummy_call.
11083 (i386_thiscall_push_dummy_call): New function.
11084 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
11085 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
11086 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
11088 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11090 * gdbarch.sh (do_read): Add shellcheck disable directive for
11093 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11095 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
11096 "referenced but not assigned" warning.
11098 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11100 * gdbarch.sh: Remove code that sets fallbackdefault.
11102 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11104 * gdbarch.sh: Use shell operators && and || instead of
11107 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11109 * gdbarch.sh: Use $(...) instead of `...`.
11111 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11113 * gdbarch.sh: Use double quotes around variables.
11115 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11117 * gdbarch.sh: Use %s with printf, instead of variables in the
11120 2020-04-29 Tom Tromey <tromey@adacore.com>
11123 * dwarf2/read.c (update_enumeration_type_from_children): Compute
11125 (read_enumeration_type): Call
11126 update_enumeration_type_from_children later. Update comments.
11127 (process_enumeration_scope): Don't create type fields.
11129 2020-04-29 Kamil Rytarowski <n54@gmx.com>
11131 * nbsd-tdep.c: Include "xml-syscall.h".
11132 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
11134 2020-04-29 Kamil Rytarowski <n54@gmx.com>
11136 * nbsd-nat.c: Include "sys/wait.h".
11137 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
11138 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
11139 (nbsd_nat_target::remove_exec_catchpoint)
11140 (nbsd_nat_target::set_syscall_catchpoint): Add.
11141 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
11142 (nbsd_nat_target::insert_exec_catchpoint)
11143 (nbsd_nat_target::remove_exec_catchpoint)
11144 (nbsd_nat_target::set_syscall_catchpoint): Add.
11145 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
11146 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
11147 `nbsd_get_syscall_number'.
11149 2020-04-29 Tom Tromey <tom@tromey.com>
11151 * stack.c (print_block_frame_labels): Remove.
11153 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
11156 * ada-valprint.c (val_print_packed_array_elements): Move array
11157 end bracket to new line.
11158 (ada_val_print_string): Remove extra spaces before first array
11160 * c-valprint.c (c_value_print_array): Likewise.
11161 * m2-valprint.c (m2_print_array_contents): Likewise.
11162 (m2_value_print_inner): Likewise.
11163 * p-valprint.c (pascal_value_print_inner): Likewise.
11164 * valprint.c (generic_val_print_array): Likewise.
11165 (value_print_array_elements): Move first array element and array
11166 end bracket to new line.
11168 2020-04-29 Tom de Vries <tdevries@suse.de>
11171 * linespec.c (find_method): Fix ix calculation.
11173 2020-04-28 Kamil Rytarowski <n54@gmx.com>
11175 * syscalls/update-netbsd.sh: New file.
11176 * syscalls/netbsd.xml: Regenerate.
11177 * data-directory/Makefile.in: Register `netbsd.xml' in
11180 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
11182 * syscalls/update-freebsd.sh: Add double quotes.
11184 2020-04-28 Tom Tromey <tom@tromey.com>
11187 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
11188 (cmdpy_init): Allow class_tui.
11190 2020-04-28 Mark Williams <mark@myosotissp.com>
11193 * dwarf2read.c: Add missing assingments to list_in_scope when
11194 start_symtab was already called.
11196 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
11199 * dwarf2/read.c (offset_map_type): Use
11200 gdb:hash_enum<sect_offset> as hash function.
11202 2020-04-28 Tom de Vries <tdevries@suse.de>
11204 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
11205 with DW_AT_signature.
11207 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
11209 * configure.ac: Remove check for fs_base/gs_base in
11211 * configure: Re-generate.
11212 * config.in: Re-generate.
11213 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
11214 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
11215 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
11217 2020-04-27 Luis Machado <luis.machado@linaro.org>
11219 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
11220 problematic inline frame unwinding situation.
11221 * frame.c (frame_id_computed_p): New function.
11222 * frame.h (frame_id_computed_p): New prototype.
11224 2020-04-26 Tom Tromey <tom@tromey.com>
11226 * command.h (enum command_class) <class_pseudo>: Remove.
11228 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11230 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
11233 2020-04-25 Kamil Rytarowski <n54@gmx.com>
11235 * inf-ptrace.c (inf_ptrace_target::wait): Remove
11236 `PT_GET_PROCESS_STATE' block.
11238 2020-04-24 Tom Tromey <tom@tromey.com>
11240 * symtab.h (symbol_get_demangled_name): Don't declare.
11241 * symtab.c (symbol_get_demangled_name): Remove.
11242 (general_symbol_info::natural_name)
11243 (general_symbol_info::demangled_name): Update.
11245 2020-04-24 Tom Tromey <tom@tromey.com>
11248 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
11250 2020-04-24 Tom Tromey <tom@tromey.com>
11253 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
11255 (new_symbol): Likewise.
11256 * compile/compile-object-load.c (get_out_value_type): Use
11257 symbol_matches_search_name.
11259 2020-04-24 Tom Tromey <tom@tromey.com>
11261 * dwarf2/read.c (add_partial_symbol): Do not call
11262 compute_and_set_names.
11264 2020-04-24 Tom Tromey <tom@tromey.com>
11266 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
11269 2020-04-24 Tom Tromey <tom@tromey.com>
11271 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
11272 (add_psymbol_to_list): New overload. Make old overload call new
11274 * psympriv.h (add_psymbol_to_list): New overload.
11276 2020-04-24 Tom Tromey <tom@tromey.com>
11278 * dwarf2/read.c (partial_die_info::read) <case
11279 DW_AT_linkage_name>: Use value_as_string.
11280 (dwarf2_string_attr): Use value_as_string.
11281 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
11283 * dwarf2/attribute.c (attribute::value_as_string): New method.
11285 2020-04-24 Tom Tromey <tom@tromey.com>
11287 * symtab.c (general_symbol_info::natural_name)
11288 (general_symbol_info::demangled_name): Check for language_rust.
11290 2020-04-24 Tom Tromey <tom@tromey.com>
11292 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
11293 (dwarf2_physname): ... from here.
11294 (partial_die_info::read): Add Rust "{" hack.
11296 2020-04-24 Tom Tromey <tom@tromey.com>
11298 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
11300 (symbol_set_demangled_name): Don't declare.
11301 * symtab.c (general_symbol_info::set_demangled_name): Rename from
11302 symbol_set_demangled_name.
11303 (general_symbol_info::set_language)
11304 (general_symbol_info::compute_and_set_names): Update.
11305 * minsyms.c (minimal_symbol_reader::install): Update.
11306 * dwarf2/read.c (new_symbol): Update.
11308 2020-04-24 Tom Tromey <tromey@adacore.com>
11311 * python/py-type.c (convert_field): Handle
11312 FIELD_LOC_KIND_DWARF_BLOCK.
11313 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
11314 (typy_get_dynamic): Nw function.
11315 (type_object_getset): Add "dynamic".
11318 2020-04-24 Tom Tromey <tromey@adacore.com>
11320 * ada-typeprint.c (print_choices, print_variant_part)
11321 (print_record_field_types_dynamic): New functions.
11322 (print_record_field_types): Use print_record_field_types_dynamic.
11324 2020-04-24 Tom Tromey <tromey@adacore.com>
11326 * dwarf2/read.c (handle_data_member_location): New overload.
11327 (dwarf2_add_field): Use it.
11328 (decode_locdesc): Add "computed" parameter. Update comment.
11329 * gdbtypes.c (is_dynamic_type_internal): Also look for
11330 FIELD_LOC_KIND_DWARF_BLOCK.
11331 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
11332 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
11333 virtual base classes.
11334 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
11335 FIELD_LOC_KIND_DWARF_BLOCK.
11337 2020-04-24 Tom Tromey <tromey@adacore.com>
11339 * dwarf2/read.c (read_structure_type): Handle dynamic length.
11340 * gdbtypes.c (is_dynamic_type_internal): Check
11341 TYPE_HAS_DYNAMIC_LENGTH.
11342 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
11343 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
11345 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
11348 2020-04-24 Tom Tromey <tromey@adacore.com>
11350 * dwarf2/read.c (struct variant_field): Rewrite.
11351 (struct variant_part_builder): New.
11352 (struct nextfield): Remove "variant" field. Add "offset".
11353 (struct field_info): Add "current_variant_part" and
11355 (alloc_discriminant_info): Remove.
11356 (alloc_rust_variant): New function.
11357 (quirk_rust_enum): Update.
11358 (dwarf2_add_field): Set "offset" member. Don't handle
11359 DW_TAG_variant_part.
11360 (offset_map_type): New typedef.
11361 (convert_variant_range, create_one_variant)
11362 (create_one_variant_part, create_variant_parts)
11363 (add_variant_property): New functions.
11364 (dwarf2_attach_fields_to_type): Call add_variant_property.
11365 (read_structure_type): Don't handle DW_TAG_variant_part.
11366 (handle_variant_part, handle_variant): New functions.
11367 (handle_struct_member_die): Use them.
11368 (process_structure_scope): Don't handle variant parts.
11369 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
11370 (struct discriminant_info): Remove.
11371 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
11372 (struct main_type) <flag_discriminated_union>: Remove.
11373 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
11374 (rust_enum_variant): Return int. Remove "contents". Rewrite.
11375 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
11377 * valops.c (value_union_variant): Remove.
11378 * value.h (value_union_variant): Don't declare.
11380 2020-04-24 Tom Tromey <tromey@adacore.com>
11382 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
11383 (ada_value_primitive_packed_val): Update.
11384 * ada-valprint.c (ada_value_print_1): Update.
11385 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
11386 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
11387 just an address. Use evaluate_for_locexpr_baton.
11388 (dwarf2_evaluate_property): Update.
11389 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
11391 * findvar.c (default_read_var_value): Update.
11392 * gdbtypes.c (compute_variant_fields_inner)
11393 (resolve_dynamic_type_internal): Update.
11394 (resolve_dynamic_type): Change type of valaddr parameter.
11395 * gdbtypes.h (resolve_dynamic_type): Update.
11396 * valarith.c (value_subscripted_rvalue): Update.
11397 * value.c (value_from_contents_and_address): Update.
11399 2020-04-24 Tom Tromey <tromey@adacore.com>
11401 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
11402 "push_initial_value" parameter.
11403 (dwarf2_evaluate_property): Likewise.
11404 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
11406 2020-04-24 Tom Tromey <tromey@adacore.com>
11408 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
11409 (variant::matches, compute_variant_fields_recurse)
11410 (compute_variant_fields_inner, compute_variant_fields): New
11412 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
11413 Use resolved_type after type is made.
11414 (operator==): Add new cases.
11415 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
11416 (struct discriminant_range, struct variant, struct variant_part):
11418 (union dynamic_prop_data) <variant_parts, original_type>: New
11420 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
11421 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
11423 * value.c (unpack_bits_as_long): Now public.
11424 * value.h (unpack_bits_as_long): Declare.
11426 2020-04-24 Tom Tromey <tromey@adacore.com>
11428 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
11429 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
11431 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
11433 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
11435 2020-04-24 Kamil Rytarowski <n54@gmx.com>
11437 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
11438 (remove_fork_catchpoint, post_startup_inferior)
11439 (post_attach): Move...
11440 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
11441 (remove_fork_catchpoint, post_startup_inferior)
11442 (post_attach): ...here.
11443 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
11444 (remove_fork_catchpoint, post_startup_inferior)
11445 (post_attach): Move...
11446 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
11447 (remove_fork_catchpoint, post_startup_inferior)
11448 (post_attach): ...here.
11450 2020-04-24 Tom Tromey <tromey@adacore.com>
11452 * nat/windows-nat.h (struct windows_thread_info)
11453 <pc_adjusted>: New member.
11454 * windows-nat.c (windows_fetch_one_register): Check
11456 (windows_nat_target::get_windows_debug_event)
11457 (windows_nat_target::wait): Set pc_adjusted.
11459 2020-04-24 Tom de Vries <tdevries@suse.de>
11461 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
11462 Run gdb-add-index inside temp dir.
11464 2020-04-23 Tom Tromey <tromey@adacore.com>
11466 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
11469 2020-04-23 Luis Machado <luis.machado@linaro.org>
11471 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
11472 get_frame_register instead of gdbarch_unwind_pc.
11474 2020-04-23 Tom de Vries <tdevries@suse.de>
11476 * symtab.c (lookup_global_symbol): Prefer def over decl.
11478 2020-04-23 Tom de Vries <tdevries@suse.de>
11481 * block.c (best_symbol, better_symbol): Promote to external.
11482 * block.h (best_symbol, better_symbol): Declare.
11483 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
11486 2020-04-23 Tom Tromey <tromey@adacore.com>
11489 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
11490 "const char *", not a "const std::string &".
11491 <name_and_matcher::operator==>: Update.
11492 * unittests/lookup_name_info-selftests.c: Change type of
11495 2020-04-23 Tom Tromey <tom@tromey.com>
11497 * inferior.h (iterate_over_inferiors): Don't declare.
11498 * inferior.c (iterate_over_inferiors): Remove.
11499 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
11501 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
11502 use iterate_over_inferiors.
11503 (darwin_resume_inferior_it)
11504 (struct resume_inferior_threads_param)
11505 (darwin_resume_inferior_threads_it): Remove.
11506 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
11508 2020-04-23 Tom de Vries <tdevries@suse.de>
11510 * blockframe.c (find_pc_partial_function): Use
11511 find_pc_sect_compunit_symtab rather than
11512 objfile->sf->qf->find_pc_sect_compunit_symtab.
11514 2020-04-22 Tom de Vries <tdevries@suse.de>
11517 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
11520 2020-04-22 Tom de Vries <tdevries@suse.de>
11523 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
11526 2020-04-22 Tom de Vries <tdevries@suse.de>
11529 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
11530 CU if already created.
11532 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11534 * infrun.c (displaced_step_fixup): Switch to the event_thread
11535 before calling displaced_step_restore, not after.
11537 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11539 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
11540 its inferior is not recorded by us.
11541 (record_btrace_target_open): Replace call to
11542 all_non_exited_threads () with call to current_inferior
11543 ()->non_exited_threads ().
11544 (record_btrace_target::stop_recording): Likewise.
11545 (record_btrace_target::close): Likewise.
11546 (record_btrace_target::wait): Likewise.
11547 (record_btrace_target::record_stop_replaying): Likewise.
11549 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11551 * btrace.c (btrace_enable): Throw an error on double enables and
11552 when enabling recording fails.
11553 (btrace_disable): Throw an error if the thread is not recorded.
11555 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11557 * record-btrace.c (record_btrace_target::fetch_registers): Forward
11558 request if we do not have a thread_info.
11560 2020-04-21 Tom de Vries <tdevries@suse.de>
11564 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
11565 exception in get_frame_id.
11567 2020-04-20 Tom Tromey <tromey@adacore.com>
11569 * python/python.c (struct gdbpy_event): Mark move constructor as
11571 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
11572 constructor as noexcept.
11573 * completer.h (struct completion_result): Mark move constructor as
11575 * completer.c (completion_result::completion_result): Use
11576 initialization style. Don't call reset_match_list.
11578 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
11580 * MAINTAINERS (Write After Approval): Add myself.
11582 2020-04-18 Tom Tromey <tom@tromey.com>
11584 * windows-tdep.c (init_w32_command_list)
11585 (w32_prefix_command_valid): Restore.
11586 (_initialize_windows_tdep): Call init_w32_command_list.
11588 2020-04-18 Tom Tromey <tom@tromey.com>
11590 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
11591 * value.c (value_fn_field): Update.
11592 * valops.c (find_function_in_inferior)
11593 (value_allocate_space_in_inferior): Update.
11594 * tui/tui-winsource.c (tui_update_source_windows_with_line):
11596 * tui/tui-source.c (tui_source_window::set_contents): Update.
11597 * symtab.c (lookup_global_or_static_symbol)
11598 (find_function_start_sal_1, skip_prologue_sal)
11599 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
11600 * symmisc.c (dump_msymbols, dump_symtab_1)
11601 (maintenance_print_one_line_table): Update.
11602 * symfile.c (init_entry_point_info, section_is_mapped)
11603 (list_overlays_command, simple_read_overlay_table)
11604 (simple_overlay_update_1): Update.
11605 * stap-probe.c (handle_stap_probe): Update.
11606 * stabsread.c (dbx_init_float_type, define_symbol)
11607 (read_one_struct_field, read_enum_type, read_range_type): Update.
11608 * source.c (info_line_command): Update.
11609 * python/python.c (gdbpy_source_objfile_script)
11610 (gdbpy_execute_objfile_script): Update.
11611 * python/py-type.c (save_objfile_types): Update.
11612 * python/py-objfile.c (py_free_objfile): Update.
11613 * python/py-inferior.c (python_new_objfile): Update.
11614 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
11615 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
11616 (maintenance_check_psymtabs): Update.
11617 * printcmd.c (info_address_command): Update.
11618 * objfiles.h (struct objfile) <arch>: New method, from
11620 (get_objfile_arch): Don't declare.
11621 * objfiles.c (get_objfile_arch): Remove.
11622 (filter_overlapping_sections): Update.
11623 * minsyms.c (msymbol_is_function): Update.
11624 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
11625 (output_nondebug_symbol): Update.
11626 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
11627 (mdebug_expand_psymtab): Update.
11628 * machoread.c (macho_add_oso_symfile): Update.
11629 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
11631 * linux-fork.c (checkpoint_command): Update.
11632 * linespec.c (convert_linespec_to_sals): Update.
11633 * jit.c (finalize_symtab): Update.
11634 * infrun.c (insert_exception_resume_from_probe): Update.
11635 * ia64-tdep.c (ia64_find_unwind_table): Update.
11636 * hppa-tdep.c (internalize_unwinds): Update.
11637 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
11639 * gcore.c (call_target_sbrk): Update.
11640 * elfread.c (record_minimal_symbol, elf_symtab_read)
11641 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
11642 (elf_gnu_ifunc_resolve_by_got): Update.
11643 * dwarf2/read.c (create_addrmap_from_index)
11644 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11645 (read_debug_names_from_section)
11646 (process_psymtab_comp_unit_reader, add_partial_symbol)
11647 (add_partial_subprogram, process_full_comp_unit)
11648 (read_file_scope, read_func_scope, read_lexical_block_scope)
11649 (read_call_site_scope, dwarf2_ranges_read)
11650 (dwarf2_record_block_ranges, dwarf2_add_field)
11651 (mark_common_block_symbol_computed, read_tag_pointer_type)
11652 (read_tag_string_type, dwarf2_init_float_type)
11653 (dwarf2_init_complex_target_type, read_base_type)
11654 (partial_die_info::read, partial_die_info::read)
11655 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
11656 (dwarf2_fetch_die_loc_sect_off): Update.
11657 * dwarf2/loc.c (dwarf2_find_location_expression)
11658 (class dwarf_evaluate_loc_desc, rw_pieced_value)
11659 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
11660 (dwarf2_loc_desc_get_symbol_read_needs)
11661 (locexpr_describe_location_piece, locexpr_describe_location_1)
11662 (loclist_describe_location): Update.
11663 * dwarf2/index-write.c (write_debug_names): Update.
11664 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
11665 * dtrace-probe.c (dtrace_process_dof): Update.
11666 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
11667 (process_one_symbol): Update.
11668 * ctfread.c (ctf_init_float_type, read_base_type): Update.
11669 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
11670 (coff_read_enum_type): Update.
11671 * cli/cli-cmds.c (edit_command, list_command): Update.
11672 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
11673 * breakpoint.c (create_overlay_event_breakpoint)
11674 (create_longjmp_master_breakpoint)
11675 (create_std_terminate_master_breakpoint)
11676 (create_exception_master_breakpoint, get_sal_arch): Update.
11677 * block.c (block_gdbarch): Update.
11678 * annotate.c (annotate_source_line): Update.
11680 2020-04-17 Tom Tromey <tromey@adacore.com>
11682 * auto-load.c (show_auto_load_cmd): Remove.
11683 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
11684 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
11685 (maintenance_print_arc_command): Remove.
11686 * tui/tui-win.c (tui_command): Remove.
11687 (tui_get_cmd_list): Use add_basic_prefix_cmd.
11688 * tui/tui-layout.c (tui_layout_command): Remove.
11689 (_initialize_tui_layout): Use add_basic_prefix_cmd.
11690 * python/python.c (user_set_python, user_show_python): Remove.
11691 (_initialize_python): Use add_basic_prefix_cmd,
11692 add_show_prefix_cmd.
11693 * guile/guile.c (set_guile_command, show_guile_command): Remove.
11694 (install_gdb_commands): Use add_basic_prefix_cmd,
11695 add_show_prefix_cmd.
11696 (info_guile_command): Remove.
11697 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
11698 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
11699 add_show_prefix_cmd.
11700 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
11701 Remove do_set and do_show parameters.
11702 * cli/cli-style.c (set_style, show_style): Remove.
11703 (_initialize_cli_style): Use add_basic_prefix_cmd,
11704 add_show_prefix_cmd.
11705 (cli_style_option::add_setshow_commands): Remove do_set and
11706 do_show parameters.
11707 (cli_style_option::add_setshow_commands): Use
11708 add_basic_prefix_cmd, add_show_prefix_cmd.
11709 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
11710 (set_style_name): Remove.
11711 * cli/cli-dump.c (dump_command, append_command): Remove.
11712 (srec_dump_command, ihex_dump_command, verilog_dump_command)
11713 (tekhex_dump_command, binary_dump_command)
11714 (binary_append_command): Remove.
11715 (_initialize_cli_dump): Use add_basic_prefix_cmd.
11716 * windows-tdep.c (w32_prefix_command_valid): Remove global.
11717 (init_w32_command_list): Remove; move into ...
11718 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
11719 * valprint.c (set_print, show_print, set_print_raw)
11720 (show_print_raw): Remove.
11721 (_initialize_valprint): Use add_basic_prefix_cmd,
11722 add_show_prefix_cmd.
11723 * typeprint.c (set_print_type, show_print_type): Remove.
11724 (_initialize_typeprint): Use add_basic_prefix_cmd,
11725 add_show_prefix_cmd.
11726 * record.c (set_record_command, show_record_command): Remove.
11727 (_initialize_record): Use add_basic_prefix_cmd,
11728 add_show_prefix_cmd.
11729 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
11730 add_show_prefix_cmd.
11731 (info_command, show_command, set_debug, show_debug): Remove.
11732 * top.h (set_history, show_history): Don't declare.
11733 * top.c (set_history, show_history): Remove.
11734 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
11735 (unset_tdesc_cmd): Remove.
11736 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
11737 add_show_prefix_cmd.
11738 * symtab.c (info_module_command): Remove.
11739 (_initialize_symtab): Use add_basic_prefix_cmd.
11740 * symfile.c (overlay_command): Remove.
11741 (_initialize_symfile): Use add_basic_prefix_cmd.
11742 * sparc64-tdep.c (info_adi_command): Remove.
11743 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
11744 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
11745 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
11746 add_show_prefix_cmd.
11747 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
11748 (_initialize_serial): Use add_basic_prefix_cmd,
11749 add_show_prefix_cmd.
11750 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
11751 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
11752 add_show_prefix_cmd.
11753 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
11754 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
11755 add_show_prefix_cmd.
11756 * riscv-tdep.c (show_riscv_command, set_riscv_command)
11757 (show_debug_riscv_command, set_debug_riscv_command): Remove.
11758 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
11759 add_show_prefix_cmd.
11760 * remote.c (remote_command, set_remote_cmd): Remove.
11761 (_initialize_remote): Use add_basic_prefix_cmd.
11762 * record-full.c (set_record_full_command)
11763 (show_record_full_command): Remove.
11764 (_initialize_record_full): Use add_basic_prefix_cmd,
11765 add_show_prefix_cmd.
11766 * record-btrace.c (cmd_set_record_btrace)
11767 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
11768 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
11769 (cmd_show_record_btrace_pt): Remove.
11770 (_initialize_record_btrace): Use add_basic_prefix_cmd,
11771 add_show_prefix_cmd.
11772 * ravenscar-thread.c (set_ravenscar_command)
11773 (show_ravenscar_command): Remove.
11774 (_initialize_ravenscar): Use add_basic_prefix_cmd,
11775 add_show_prefix_cmd.
11776 * mips-tdep.c (show_mips_command, set_mips_command)
11777 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
11778 add_show_prefix_cmd.
11779 * maint.c (maintenance_command, maintenance_info_command)
11780 (maintenance_check_command, maintenance_print_command)
11781 (maintenance_set_cmd, maintenance_show_cmd): Remove.
11782 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
11783 add_show_prefix_cmd.
11784 (show_per_command_cmd): Remove.
11785 * maint-test-settings.c (maintenance_set_test_settings_cmd):
11787 (maintenance_show_test_settings_cmd): Remove.
11788 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
11789 add_show_prefix_cmd.
11790 * maint-test-options.c (maintenance_test_options_command):
11792 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
11793 * macrocmd.c (macro_command): Remove
11794 (_initialize_macrocmd): Use add_basic_prefix_cmd.
11795 * language.c (set_check, show_check): Remove.
11796 (_initialize_language): Use add_basic_prefix_cmd,
11797 add_show_prefix_cmd.
11798 * infcmd.c (unset_command): Remove.
11799 (_initialize_infcmd): Use add_basic_prefix_cmd.
11800 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
11801 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
11802 add_show_prefix_cmd.
11803 * go32-nat.c (go32_info_dos_command): Remove.
11804 (_initialize_go32_nat): Use add_basic_prefix_cmd.
11805 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
11806 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
11807 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
11808 (_initialize_frame): Use add_basic_prefix_cmd,
11809 add_show_prefix_cmd.
11810 * dcache.c (set_dcache_command, show_dcache_command): Remove.
11811 (_initialize_dcache): Use add_basic_prefix_cmd,
11812 add_show_prefix_cmd.
11813 * cp-support.c (maint_cplus_command): Remove.
11814 (_initialize_cp_support): Use add_basic_prefix_cmd.
11815 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
11816 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
11817 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
11818 add_basic_prefix_cmd, add_show_prefix_cmd.
11819 * breakpoint.c (save_command): Remove.
11820 (_initialize_breakpoint): Use add_basic_prefix_cmd.
11821 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
11822 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
11823 add_show_prefix_cmd.
11824 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
11825 (set_ada_command, show_ada_command): Remove.
11826 (_initialize_ada_language): Use add_basic_prefix_cmd,
11827 add_show_prefix_cmd.
11828 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
11830 2020-04-16 Kamil Rytarowski <n54@gmx.com>
11832 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
11833 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
11835 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
11837 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
11840 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
11842 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
11843 import table is not at beginning of .idata section.
11845 2020-04-16 Pedro Alves <palves@redhat.com>
11847 * inferior.c (delete_inferior): Use delete operator directly
11848 instead of delete_program_space.
11849 * progspace.c (add_program_space): New, factored out from
11850 program_space::program_space.
11851 (remove_program_space): New, factored out from
11852 delete_program_space.
11853 (program_space::program_space): Remove intro comment. Rewrite.
11854 (program_space::~program_space): Remove intro comment. Call
11855 remove_program_space.
11856 (delete_program_space): Delete.
11857 * progspace.h (program_space::program_space): Make explicit. Move
11858 intro comment here, adjusted.
11859 (program_space::~program_space): Move intro comment here,
11861 (delete_program_space): Remove.
11863 2020-04-16 Tom Tromey <tromey@adacore.com>
11865 * windows-nat.c (windows_nat::handle_access_violation): New
11867 * nat/windows-nat.h (handle_access_violation): Declare.
11868 * nat/windows-nat.c (handle_exception): Move Cygwin code to
11869 windows-nat.c. Call handle_access_violation.
11871 2020-04-16 Tom de Vries <tdevries@suse.de>
11874 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
11875 CUs without psymtab.
11877 2020-04-16 Kevin Buettner <kevinb@redhat.com>
11879 * python/python.c (do_start_initialization): Don't call
11880 PyEval_InitThreads for Python 3.9 and beyond.
11882 2020-04-15 Kamil Rytarowski <n54@gmx.com>
11884 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
11886 (obsd_nat_target::wait): Likewise.
11888 2020-04-15 Tom Tromey <tromey@adacore.com>
11890 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
11891 (DEBUG_EXCEPT): Use debug_printf.
11893 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
11895 * completer.c (class completion_tracker::completion_hash_entry)
11896 <hash_name>: New member function.
11897 (completion_tracker::discard_completions): New callback to hash a
11898 completion_hash_entry, pass this to htab_create_alloc.
11900 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
11902 * windows-nat.c (windows_make_so): Warn rather than stopping with
11903 an error if realpath() fails.
11905 2020-04-14 Kamil Rytarowski <n54@gmx.com>
11907 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
11908 (nbsd_nat_target::info_proc): Add do_status.
11910 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
11911 Tom de Vries <tdevries@suse.de>
11914 * psympriv.h (struct partial_symtab::read_symtab)
11915 (struct partial_symtab::expand_psymtab)
11916 (struct partial_symtab::read_dependencies): Update comments.
11917 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
11918 read_symtab for includer.
11919 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
11920 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
11921 (struct dwarf2_include_psymtab::m_readin): Remove.
11922 (struct dwarf2_include_psymtab::includer): New member function.
11923 (dwarf2_psymtab::expand_psymtab): Assert !readin.
11925 2020-04-14 Tom de Vries <tdevries@suse.de>
11928 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
11929 with NULL symbol_matcher and lookup_name.
11930 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
11932 * dwarf2/read.c (dw2_expand_symtabs_matching)
11933 (dw2_debug_names_expand_symtabs_matching): Same.
11934 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
11935 Make lookup_name a pointer. Update comment.
11936 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
11937 lookup_name being a pointer.
11938 * symfile.c (expand_symtabs_matching): Same.
11939 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
11940 * linespec.c (iterate_over_all_matching_symtabs): Same.
11942 2020-04-13 Tom Tromey <tom@tromey.com>
11944 * run-on-main-thread.c: Update include.
11945 * unittests/main-thread-selftests.c: Update include.
11946 * tui/tui-win.c: Update include.
11947 * tui/tui-io.c: Update include.
11948 * tui/tui-interp.c: Update include.
11949 * tui/tui-hooks.c: Update include.
11950 * top.h: Update include.
11951 * top.c: Update include.
11952 * ser-base.c: Update include.
11953 * remote.c: Update include.
11954 * remote-notif.c: Update include.
11955 * remote-fileio.c: Update include.
11956 * record-full.c: Update include.
11957 * record-btrace.c: Update include.
11958 * python/python.c: Update include.
11959 * posix-hdep.c: Update include.
11960 * mingw-hdep.c: Update include.
11961 * mi/mi-main.c: Update include.
11962 * mi/mi-interp.c: Update include.
11963 * main.c: Update include.
11964 * linux-nat.c: Update include.
11965 * interps.c: Update include.
11966 * infrun.c: Update include.
11967 * inf-loop.c: Update include.
11968 * event-top.c: Update include.
11969 * event-loop.c: Move to ../gdbsupport/.
11970 * event-loop.h: Move to ../gdbsupport/.
11971 * async-event.h: Update include.
11972 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
11974 2020-04-13 Tom Tromey <tom@tromey.com>
11976 * tui/tui-win.c: Include async-event.h.
11977 * remote.c: Include async-event.h.
11978 * remote-notif.c: Include async-event.h.
11979 * record-full.c: Include async-event.h.
11980 * record-btrace.c: Include async-event.h.
11981 * infrun.c: Include async-event.h.
11982 * event-top.c: Include async-event.h.
11983 * event-loop.h: Move some declarations to async-event.h.
11984 * event-loop.c: Don't include ser-event.h or top.h. Move some
11985 code to async-event.c.
11986 * async-event.h: New file.
11987 * async-event.c: New file.
11988 * Makefile.in (COMMON_SFILES): Add async-event.c.
11989 (HFILES_NO_SRCDIR): Add async-event.h.
11991 2020-04-13 Tom Tromey <tom@tromey.com>
11993 * utils.c (flush_streams): New function.
11994 * event-loop.c (gdb_wait_for_event): Call flush_streams.
11996 2020-04-13 Tom Tromey <tom@tromey.com>
11998 * event-loop.c (handle_file_event): Use warning, not
12001 2020-04-13 Tom Tromey <tom@tromey.com>
12003 * event-loop.c: Include <chrono>.
12005 2020-04-13 Tom Tromey <tom@tromey.com>
12007 * gdb_select.h: Move to ../gdbsupport/.
12008 * event-loop.c: Update include path.
12009 * top.c: Update include path.
12010 * ser-base.c: Update include path.
12011 * ui-file.c: Update include path.
12012 * ser-tcp.c: Update include path.
12013 * guile/scm-ports.c: Update include path.
12014 * posix-hdep.c: Update include path.
12015 * ser-unix.c: Update include path.
12016 * gdb_usleep.c: Update include path.
12017 * mingw-hdep.c: Update include path.
12018 * inflow.c: Update include path.
12019 * infrun.c: Update include path.
12020 * event-top.c: Update include path.
12022 2020-04-13 Tom Tromey <tom@tromey.com>
12024 * configure: Rebuild.
12025 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
12027 2020-04-13 Tom Tromey <tom@tromey.com>
12029 * event-loop.h (start_event_loop): Don't declare.
12030 * event-loop.c (start_event_loop): Move...
12031 * main.c (start_event_loop): ...here. Now static.
12033 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
12035 * MAINTAINERS: Update my email address.
12037 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12039 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
12042 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12044 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
12045 (nbsd_nat_target::info_proc): Add do_cmdline.
12047 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12049 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
12050 (nbsd_nat_target::info_proc): Add do_cwd.
12052 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12054 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
12056 2020-04-11 Kamil Rytarowski <n54@gmx.com>
12058 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
12059 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
12060 (nbsd_nat_target::info_proc): New functions.
12061 * nbsd-nat.c (kinfo_get_vmmap): New function.
12062 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
12063 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
12064 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
12065 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
12067 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
12068 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
12069 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
12070 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
12071 (KINFO_VME_FLAG_GROWS_DOWN): New.
12073 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
12075 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
12078 2020-04-10 Tom Tromey <tromey@adacore.com>
12080 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
12082 2020-04-10 Tom Tromey <tromey@adacore.com>
12084 * symtab.c (get_symbol_address, get_msymbol_address): Skip
12085 separate debug files.
12087 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
12089 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
12091 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
12093 * windows-nat.c (windows_nat_target::get_windows_debug_event):
12094 Check for STATUS_WX86_BREAKPOINT.
12095 (windows_nat_target::wait): Same.
12097 2020-04-10 Tom de Vries <tdevries@suse.de>
12100 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
12102 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12104 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
12105 (Write After Approval): Remove Tom de Vries.
12107 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
12110 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12112 * buildsym.c (record_line): Fix undefined behavior and preserve
12115 2020-04-09 Kamil Rytarowski <n54@gmx.com>
12117 * auxv.h (svr4_auxv_parse): New.
12118 * auxv.c (default_auxv_parse): Split into default_auxv_parse
12119 and generic_auxv_parse.
12120 (svr4_auxv_parse): Add.
12121 * obsd-tdep.c: Include "auxv.h".
12122 (obsd_auxv_parse): Remove.
12123 (obsd_init_abi): Remove comment.
12124 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
12125 from `obsd_auxv_parse' to `svr4_auxv_parse'.
12126 * nbsd-tdep.c: Include "auxv.h".
12127 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
12129 2020-04-08 Tom Tromey <tromey@adacore.com>
12131 * nat/windows-nat.h (last_wait_event): Don't declare.
12132 (wait_for_debug_event): Update comment.
12133 * nat/windows-nat.c (last_wait_event): Now static.
12135 2020-04-08 Tom Tromey <tromey@adacore.com>
12137 * windows-nat.c (wait_for_debug_event): Move to
12139 * nat/windows-nat.h (wait_for_debug_event): Declare.
12140 * nat/windows-nat.c (wait_for_debug_event): Move from
12141 windows-nat.c. No longer static.
12143 2020-04-08 Tom Tromey <tromey@adacore.com>
12145 * windows-nat.c (get_windows_debug_event): Use
12146 fetch_pending_stop.
12147 * nat/windows-nat.h (fetch_pending_stop): Declare.
12148 * nat/windows-nat.c (fetch_pending_stop): New function.
12150 2020-04-08 Tom Tromey <tromey@adacore.com>
12152 * windows-nat.c (windows_continue): Use matching_pending_stop and
12153 continue_last_debug_event.
12154 * nat/windows-nat.h (matching_pending_stop)
12155 (continue_last_debug_event): Declare.
12156 * nat/windows-nat.c (DEBUG_EVENTS): New define.
12157 (matching_pending_stop, continue_last_debug_event): New
12160 2020-04-08 Tom Tromey <tromey@adacore.com>
12162 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
12163 (handle_exception_result): Move to nat/windows-nat.h.
12164 (DEBUG_EXCEPTION_SIMPLE): Remove.
12165 (windows_nat::handle_ms_vc_exception): New function.
12166 (handle_exception): Move to nat/windows-nat.c.
12167 (get_windows_debug_event): Update.
12168 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
12170 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
12171 (handle_exception_result): Move from windows-nat.c.
12172 (handle_exception): Declare.
12173 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
12174 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
12177 2020-04-08 Tom Tromey <tromey@adacore.com>
12179 * windows-nat.c (exception_count, event_count): Remove.
12180 (handle_exception, get_windows_debug_event)
12181 (do_initial_windows_stuff): Update.
12183 2020-04-08 Tom Tromey <tromey@adacore.com>
12185 * windows-nat.c (windows_nat::handle_load_dll)
12186 (windows_nat::handle_unload_dll): Rename. No longer static.
12187 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
12190 2020-04-08 Tom Tromey <tromey@adacore.com>
12192 * complaints.h (stop_whining): Declare at top-level.
12193 (complaint): Don't declare stop_whining.
12195 2020-04-08 Tom Tromey <tromey@adacore.com>
12197 * windows-nat.c (windows_nat::handle_output_debug_string):
12198 Rename. No longer static.
12199 * nat/windows-nat.h (handle_output_debug_string): Declare.
12201 2020-04-08 Tom Tromey <tromey@adacore.com>
12203 * windows-nat.c (current_process_handle, current_process_id)
12204 (main_thread_id, last_sig, current_event, last_wait_event)
12205 (current_windows_thread, desired_stop_thread_id, pending_stops)
12206 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
12207 (display_selectors, fake_create_process)
12208 (get_windows_debug_event): Update.
12209 * nat/windows-nat.h (current_process_handle, current_process_id)
12210 (main_thread_id, last_sig, current_event, last_wait_event)
12211 (current_windows_thread, desired_stop_thread_id, pending_stops)
12212 (struct pending_stop, siginfo_er): Move from windows-nat.c.
12213 * nat/windows-nat.c (current_process_handle, current_process_id)
12214 (main_thread_id, last_sig, current_event, last_wait_event)
12215 (current_windows_thread, desired_stop_thread_id, pending_stops)
12216 (siginfo_er): New globals. Move from windows-nat.c.
12218 2020-04-08 Tom Tromey <tromey@adacore.com>
12220 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
12221 (handle_load_dll): Update.
12222 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
12224 2020-04-08 Tom Tromey <tromey@adacore.com>
12226 * windows-nat.c (enum thread_disposition_type): Move to
12228 (windows_nat::thread_rec): Rename from thread_rec. No longer
12230 (windows_add_thread, windows_nat_target::fetch_registers)
12231 (windows_nat_target::store_registers, handle_exception)
12232 (windows_nat_target::resume, get_windows_debug_event)
12233 (windows_nat_target::get_tib_address)
12234 (windows_nat_target::thread_name)
12235 (windows_nat_target::thread_alive): Update.
12236 * nat/windows-nat.h (enum thread_disposition_type): Move from
12238 (thread_rec): Declare.
12240 2020-04-08 Tom Tromey <tromey@adacore.com>
12242 * windows-nat.c: Add "using namespace".
12243 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
12244 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
12246 2020-04-08 Tom Tromey <tromey@adacore.com>
12248 * nat/windows-nat.h (struct windows_thread_info): Declare
12250 * nat/windows-nat.c (~windows_thread_info): New.
12252 2020-04-08 Tom Tromey <tromey@adacore.com>
12255 * windows-nat.c (current_event): Update comment.
12256 (last_wait_event, desired_stop_thread_id): New globals.
12257 (struct pending_stop): New.
12258 (pending_stops): New global.
12259 (windows_nat_target) <stopped_by_sw_breakpoint>
12260 <supports_stopped_by_sw_breakpoint>: New methods.
12261 (windows_fetch_one_register): Add assertions. Adjust PC.
12262 (windows_continue): Handle pending stops. Suspend other threads
12263 when stepping. Use last_wait_event
12264 (wait_for_debug_event): New function.
12265 (get_windows_debug_event): Use wait_for_debug_event. Handle
12266 pending stops. Queue spurious stops.
12267 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
12268 (windows_nat_target::kill): Use wait_for_debug_event.
12269 * nat/windows-nat.h (struct windows_thread_info)
12270 <stopped_at_software_breakpoint>: New field.
12271 * nat/windows-nat.c (windows_thread_info::resume): Clear
12272 stopped_at_software_breakpoint.
12274 2020-04-08 Tom Tromey <tromey@adacore.com>
12276 * windows-nat.c (enum thread_disposition_type): New.
12277 (thread_rec): Replace "get_context" parameter with "disposition";
12279 (windows_add_thread, windows_nat_target::fetch_registers)
12280 (windows_nat_target::store_registers, handle_exception)
12281 (windows_nat_target::resume, get_windows_debug_event)
12282 (windows_nat_target::get_tib_address)
12283 (windows_nat_target::thread_name)
12284 (windows_nat_target::thread_alive): Update.
12286 2020-04-08 Tom Tromey <tromey@adacore.com>
12288 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
12289 (windows_continue): Use windows_continue::resume.
12290 * nat/windows-nat.h (struct windows_thread_info) <suspend,
12291 resume>: Declare new methods.
12292 * nat/windows-nat.c: New file.
12293 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
12295 2020-04-08 Tom Tromey <tromey@adacore.com>
12297 * windows-nat.c (windows_add_thread, windows_delete_thread)
12298 (windows_nat_target::fetch_registers)
12299 (windows_nat_target::store_registers, fake_create_process)
12300 (windows_nat_target::resume, windows_nat_target::resume)
12301 (get_windows_debug_event, windows_nat_target::wait)
12302 (windows_nat_target::pid_to_str)
12303 (windows_nat_target::get_tib_address)
12304 (windows_nat_target::get_ada_task_ptid)
12305 (windows_nat_target::thread_name)
12306 (windows_nat_target::thread_alive): Use lwp, not tid.
12308 2020-04-08 Tom Tromey <tromey@adacore.com>
12310 * windows-nat.c (handle_exception)
12311 (windows_nat_target::thread_name): Update.
12312 * nat/windows-nat.h (windows_thread_info): Remove destructor.
12313 <name>: Now unique_xmalloc_ptr.
12315 2020-04-08 Tom Tromey <tromey@adacore.com>
12317 * windows-nat.c (thread_rec)
12318 (windows_nat_target::fetch_registers): Update.
12319 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
12321 <debug_registers_changed, reload_context>: Now bool.
12323 2020-04-08 Tom Tromey <tromey@adacore.com>
12325 * windows-nat.c (windows_add_thread): Use new.
12326 (windows_init_thread_list, windows_delete_thread): Use delete.
12327 (get_windows_debug_event): Update.
12328 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
12329 destructor, and initializers.
12331 2020-04-08 Tom Tromey <tromey@adacore.com>
12333 * windows-nat.c (struct windows_thread_info): Remove.
12334 * nat/windows-nat.h: New file.
12336 2020-04-08 Tom Tromey <tromey@adacore.com>
12338 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
12339 (thread_rec, windows_add_thread, windows_delete_thread)
12340 (windows_continue): Update.
12342 2020-04-08 Tom Tromey <tromey@adacore.com>
12344 * windows-nat.c (struct windows_thread_info): Remove typedef.
12345 (thread_head): Remove.
12346 (thread_list): New global.
12347 (thread_rec, windows_add_thread, windows_init_thread_list)
12348 (windows_delete_thread, windows_continue): Update.
12350 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
12352 * windows-tdep.h (windows_init_abi): Add comment.
12353 (cygwin_init_abi): New declaration.
12354 * windows-tdep.c: Split signal enumeration in two, one for
12355 Windows and one for Cygwin.
12356 (windows_gdb_signal_to_target): Only deal with signal of the
12358 (cygwin_gdb_signal_to_target): New function.
12359 (windows_init_abi): Rename to windows_init_abi_common, don't set
12360 gdb_signal_to_target gdbarch method. Add new new function with
12362 (cygwin_init_abi): New function.
12363 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
12364 comment. Don't call windows_init_abi.
12365 (amd64_windows_init_abi): Add comment, call windows_init_abi.
12366 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
12367 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
12368 i386_windows_init_abi_common, don't call windows_init_abi. Add
12369 a new function of this name.
12370 (i386_cygwin_init_abi): New function.
12371 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
12374 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
12376 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
12378 (dwarf2_read_gdb_index): Update.
12380 2020-04-07 Kamil Rytarowski <n54@gmx.com>
12382 * nbsd-tdep.c: Include "objfiles.h".
12383 (nbsd_skip_solib_resolver): New.
12384 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
12386 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12388 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
12389 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
12390 with DW_LLE_base_addressx are being emitted in DWARFv5.
12391 Add the newly added kind DW_LOC_OFFSET_PAIR also.
12392 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
12395 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12397 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
12398 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
12399 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
12400 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
12401 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
12402 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
12403 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
12406 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12408 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
12409 (read_loclist_index): New function definition.
12410 (lookup_loclist_base): New function definition.
12411 (read_loclist_header): New function definition.
12412 (dwarf2_cu): Add loclist_base and loclist_header field.
12413 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
12414 (read_full_die_1): Read the value of DW_AT_loclists_base.
12415 (read_attribute_reprocess): Handle DW_FORM_loclistx.
12416 (read_attribute_value): Handle DW_FORM_loclistx.
12417 (skip_one_die): Handle DW_FORM_loclistx.
12418 (loclist_header): New structure declaration.
12419 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
12421 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12423 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
12424 constructor. Remove `addr` parameter from other constructor and
12425 add `per_cu` parameter.
12426 * dwarf2/read.c (create_partial_symtab): Update.
12428 2020-04-07 Tom de Vries <tdevries@suse.de>
12431 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
12432 (partial_die_info::fixup): Inherit has_const_value.
12434 2020-04-07 Tom de Vries <tdevries@suse.de>
12436 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
12437 symbols without address.
12439 2020-04-06 Kamil Rytarowski <n54@gmx.com>
12441 * nbsd-nat.h (struct thread_info): Add forward declaration.
12442 (nbsd_nat_target::thread_alive): Add.
12443 (nbsd_nat_target::thread_name): Likewise.
12444 (nbsd_nat_target::update_thread_list): Likewise.
12445 (update_thread_list::post_attach): Likewise.
12446 (post_attach::pid_to_str): Likewise.
12447 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
12448 (nbsd_thread_lister): Add.
12449 (nbsd_nat_target::thread_alive): Likewise.
12450 (nbsd_nat_target::thread_name): Likewise.
12451 (nbsd_add_threads): Likewise.
12452 (update_thread_list::post_attach): Likewise.
12453 (nbsd_nat_target::update_thread_list): Likewise.
12454 (post_attach::pid_to_str): Likewise.
12456 2020-04-06 Tom Tromey <tromey@adacore.com>
12458 * ada-valprint.c (print_variant_part): Extract the variant field.
12459 (print_field_values): Use the field as the outer value when
12462 2020-04-06 Tom Tromey <tromey@adacore.com>
12464 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
12465 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
12466 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
12467 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
12468 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
12470 2020-04-06 Tom Tromey <tromey@adacore.com>
12472 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
12475 2020-04-06 Kamil Rytarowski <n54@gmx.com>
12477 * nbsd-tdep.c: Include "gdbarch.h".
12478 Define enum with NetBSD signal numbers.
12479 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
12480 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
12481 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
12482 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
12483 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
12484 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
12485 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
12486 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
12487 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
12488 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
12489 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
12490 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
12492 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
12495 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
12497 2020-04-03 Tom Tromey <tromey@adacore.com>
12499 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
12500 Read constant block.
12502 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
12504 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
12505 (gdb_bfd_get_full_section_contents): New declaration.
12506 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
12507 * windows-tdep.c (is_linked_with_cygwin_dll): Use
12508 gdb_bfd_get_full_section_contents.
12510 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
12512 * exec.c (build_section_table): Replace internal_error with
12514 (section_table_xfer_memory_partial): Likewise.
12515 * mdebugread.c (parse_partial_symbols): Likewise.
12516 * psymtab.c (lookup_partial_symbol): Likewise.
12517 * utils.c (wrap_here): Likewise.
12519 2020-04-02 Tom Tromey <tromey@adacore.com>
12521 * f-lang.c (build_fortran_types): Use arch_type to initialize
12522 builtin_complex_s32 in the TYPE_CODE_ERROR case.
12524 2020-04-02 Tom Tromey <tromey@adacore.com>
12526 * dwarf2/read.c (partial_die_info::read): Do not create a vector
12529 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
12530 Bernd Edlinger <bernd.edlinger@hotmail.de>
12531 Tom Tromey <tromey@adacore.com>
12533 * buildsym.c (buildsym_compunit::record_line): Remove
12534 deduplication code.
12536 2020-04-02 Tom de Vries <tdevries@suse.de>
12539 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
12541 2020-04-02 Tom de Vries <tdevries@suse.de>
12543 * dwarf2/read.c (dwarf2_gdb_index_functions,
12544 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
12546 * psymtab.c (psym_lookup_global_symbol_language): New function.
12547 (psym_functions): Init psym_lookup_global_symbol_language with
12548 psym_lookup_global_symbol_language.
12549 * symfile-debug.c (debug_sym_quick_functions): Init
12550 lookup_global_symbol_language with NULL.
12551 * symfile.c (set_initial_language): Remove fixme comment.
12552 * symfile.h (struct quick_symbol_functions): Add
12553 lookup_global_symbol_language.
12554 * symtab.c (find_quick_global_symbol_language): New function.
12555 (find_main_name): Use find_quick_global_symbol_language.
12557 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
12559 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
12561 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12563 * buildsym.c (record_line): Fix undefined behavior and preserve
12566 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12568 * buildsym.c (record_line): Fix the resizing condition.
12570 2020-04-01 Tom Tromey <tom@tromey.com>
12572 * value.h (value_literal_complex): Add comment.
12573 * valops.c (value_literal_complex): Refer to value.h.
12575 2020-04-01 Tom Tromey <tom@tromey.com>
12577 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
12578 (scalar_type): New rule, from typebase.
12579 (typebase): Use scalar_type. Recognize complex types.
12580 (field_name): Handle FLOAT_KEYWORD.
12581 (ident_tokens): Add _Complex and __complex__.
12583 2020-04-01 Tom Tromey <tom@tromey.com>
12586 * valarith.c (promotion_type, complex_binop): New functions.
12587 (scalar_binop): Handle complex numbers. Use promotion_type.
12588 (value_pos, value_neg, value_complement): Handle complex numbers.
12590 2020-04-01 Tom Tromey <tom@tromey.com>
12592 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
12593 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
12594 (parse_number): Handle complex numbers.
12596 2020-04-01 Tom Tromey <tom@tromey.com>
12598 * c-valprint.c (c_decorations): Change complex suffix to "i".
12600 2020-04-01 Tom Tromey <tom@tromey.com>
12602 * valprint.c (generic_value_print_complex): Use accessors.
12603 * value.h (value_real_part, value_imaginary_part): Declare.
12604 * valops.c (value_real_part, value_imaginary_part): New
12606 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
12608 2020-04-01 Tom Tromey <tom@tromey.com>
12610 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
12611 (read_range_type): Update.
12612 * mdebugread.c (basic_type): Update.
12613 * go-lang.c (build_go_types): Use init_complex_type.
12614 * gdbtypes.h (struct main_type) <complex_type>: New member.
12615 (init_complex_type): Update.
12616 (arch_complex_type): Don't declare.
12617 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
12618 Make name if none given. Use alloc_type_copy. Look for cached
12620 (arch_complex_type): Remove.
12621 (gdbtypes_post_init): Use init_complex_type.
12622 * f-lang.c (build_fortran_types): Use init_complex_type.
12623 * dwarf2/read.c (read_base_type): Update.
12624 * d-lang.c (build_d_types): Use init_complex_type.
12625 * ctfread.c (read_base_type): Update.
12627 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12629 * infrun.c (stop_all_threads): Update assertion, plus when
12630 stopping threads, take into account that we might be trying
12631 to stop an all-stop target.
12632 (stop_waiting): Call 'stop_all_threads' if there exists a
12635 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12637 * target.h (exists_non_stop_target): New function declaration.
12638 * target.c (exists_non_stop_target): New function.
12640 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
12643 * eval.c (is_integral_or_integral_reference): New function.
12644 (evaluate_subexp_standard): Allow integer references in
12645 pointer arithmetic.
12647 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12649 * remote.c (remote_target::remote_parse_stop_reply): Remove the
12650 check for no ptid in the stop reply when the target is non-stop.
12652 2020-04-01 Tom Tromey <tromey@adacore.com>
12654 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
12655 "name" parameter to rvalue reference. Initialize m_name_holder.
12656 <lookup_name_info>: New overloads.
12657 <name>: Return gdb::string_view.
12658 <c_str>: New method.
12659 <make_ignore_params>: Update.
12660 <search_name_hash>: Update.
12661 <language_lookup_name>: Return const char *.
12662 <m_name>: Change type.
12663 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
12664 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
12665 (lookup_name_info::match_any): Update.
12666 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
12668 * minsyms.c (linkage_name_str): Update.
12669 * language.c (default_symbol_name_matcher): Update.
12670 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
12672 * ada-lang.c (ada_fold_name): Change parameter to string_view.
12673 (ada_lookup_name_info::ada_lookup_name_info): Update.
12674 (literal_symbol_name_matcher): Update.
12676 2020-04-01 Tom Tromey <tromey@adacore.com>
12678 * psymtab.c (psymtab_search_name): Remove function.
12679 (psym_lookup_symbol): Create search name and lookup name here.
12680 (lookup_partial_symbol): Remove "name" parameter; add
12682 (psym_expand_symtabs_for_function): Update.
12684 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
12687 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
12689 2020-03-31 Tom Tromey <tromey@adacore.com>
12691 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
12694 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
12696 * features/riscv/32bit-csr.xml: Regenerated.
12697 * features/riscv/64bit-csr.xml: Regenerated.
12699 2020-03-30 Tom Tromey <tromey@adacore.com>
12701 * ada-valprint.c (print_variant_part): Update.
12702 * ada-lang.h (ada_which_variant_applies): Update.
12703 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
12704 outer_valaddr parameters; replace with "outer" value parameter.
12705 (to_fixed_variant_branch_type): Update.
12707 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12709 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
12710 <list>. Remove inclusion of observable.h.
12711 (PPC_DEBUG_CURRENT_VERSION): Move up define.
12712 (struct arch_lwp_info): New struct.
12713 (class ppc_linux_dreg_interface): New class.
12714 (struct ppc_linux_process_info): New struct.
12715 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
12716 <low_new_clone, low_forget_process, low_prepare_to_resume>
12717 <copy_thread_dreg_state, mark_thread_stale>
12718 <mark_debug_registers_changed, register_hw_breakpoint>
12719 <clear_hw_breakpoint, register_wp, clear_wp>
12720 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
12721 <num_memory_accesses, get_trigger_type>
12722 <create_watchpoint_request, hwdebug_point_cmp>
12723 <init_arch_lwp_info, get_arch_lwp_info>
12724 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
12726 <struct ptid_hash>: New inner struct.
12727 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
12729 (saved_dabr_value, hwdebug_info, max_slots_number)
12730 (struct hw_break_tuple, struct thread_points, ppc_threads)
12731 (have_ptrace_hwdebug_interface)
12732 (hwdebug_find_thread_points_by_tid)
12733 (hwdebug_insert_point, hwdebug_remove_point): Remove.
12734 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
12735 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
12736 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
12737 use m_dreg_interface.
12738 (hwdebug_point_cmp): Change to...
12739 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
12740 reference arguments instead of pointers.
12741 (ppc_linux_nat_target::ranged_break_num_registers): Use
12743 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
12744 m_dreg_interface. Call register_hw_breakpoint.
12745 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
12746 m_dreg_interface. Call clear_hw_breakpoint.
12747 (get_trigger_type): Change to...
12748 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
12750 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
12751 use m_dreg_interface. Call register_hw_breakpoint.
12752 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
12753 use m_dreg_interface. Call clear_hw_breakpoint.
12754 (can_use_watchpoint_cond_accel): Change to...
12755 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
12756 method. Update comment, use m_dreg_interface and
12758 (calculate_dvc): Change to...
12759 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
12761 (num_memory_accesses): Change to...
12762 (ppc_linux_nat_target::num_memory_accesses): ...this method.
12763 (check_condition): Change to...
12764 (ppc_linux_nat_target::check_condition): ...this method.
12765 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
12766 comment, use m_dreg_interface.
12767 (create_watchpoint_request): Change to...
12768 (ppc_linux_nat_target::create_watchpoint_request): ...this
12769 method. Use m_dreg_interface.
12770 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
12771 m_dreg_interface. Call register_hw_breakpoint or register_wp.
12772 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
12773 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
12774 (ppc_linux_nat_target::low_forget_process)
12775 (ppc_linux_nat_target::low_new_fork)
12776 (ppc_linux_nat_target::low_new_clone)
12777 (ppc_linux_nat_target::low_delete_thread)
12778 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
12779 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
12780 only call mark_thread_stale.
12781 (ppc_linux_thread_exit): Remove.
12782 (ppc_linux_nat_target::stopped_data_address): Change to...
12783 (ppc_linux_nat_target::low_stopped_data_address): This. Add
12784 comment, use m_dreg_interface and m_thread_hw_breakpoints.
12785 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
12786 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
12787 comment. Call low_stopped_data_address.
12788 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
12790 (ppc_linux_nat_target::masked_watch_num_registers): Use
12792 (ppc_linux_nat_target::copy_thread_dreg_state)
12793 (ppc_linux_nat_target::mark_thread_stale)
12794 (ppc_linux_nat_target::mark_debug_registers_changed)
12795 (ppc_linux_nat_target::register_hw_breakpoint)
12796 (ppc_linux_nat_target::clear_hw_breakpoint)
12797 (ppc_linux_nat_target::register_wp)
12798 (ppc_linux_nat_target::clear_wp)
12799 (ppc_linux_nat_target::init_arch_lwp_info)
12800 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
12801 (_initialize_ppc_linux_nat): Remove observer callback.
12803 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12805 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
12806 (ppc_linux_nat_target::auxv_parse)
12807 (ppc_linux_nat_target::read_description)
12808 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
12811 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12813 * linux-nat.h (low_new_clone): New method.
12814 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
12816 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12818 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
12819 (dbx_expand_psymtab): ... this.
12820 (start_psymtab): Update.
12821 * mdebugread.c (psymtab_to_symtab_1): Rename to...
12822 (mdebug_expand_psymtab): ... this.
12823 (parse_partial_symbols): Update.
12824 (new_psymtab): Update.
12825 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
12826 (xcoff_expand_psymtab): ... this.
12827 (xcoff_start_psymtab): Update.
12829 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12831 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
12832 <expand_dependencies>: ... this.
12833 * psymtab.c (partial_symtab::read_dependencies): Rename to...
12834 (partial_symtab::expand_dependencies): ... this.
12835 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
12837 (dwarf2_psymtab::expand_psymtab): Update.
12838 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
12839 * mdebugread.c (psymtab_to_symtab_1): Update.
12840 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
12842 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12844 * psympriv.h (discard_psymtab): Remove.
12845 * dbxread.c (dbx_end_psymtab): Update.
12846 * xcoffread.c (xcoff_end_psymtab): Update.
12848 2020-03-28 Tom Tromey <tom@tromey.com>
12850 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
12853 2020-03-28 Tom Tromey <tom@tromey.com>
12855 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
12857 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
12859 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
12861 2020-03-26 John Baldwin <jhb@FreeBSD.org>
12863 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
12865 2020-03-26 Tom Tromey <tom@tromey.com>
12867 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
12868 (mark_common_block_symbol_computed, read_tag_string_type)
12869 (attr_to_dynamic_prop, read_subrange_type): Update.
12870 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
12871 to be methods on struct attribute.
12872 (skip_one_die, process_imported_unit_die, read_namespace_alias)
12873 (read_call_site_scope, partial_die_info::read)
12874 (partial_die_info::read, lookup_die_type, follow_die_ref):
12876 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
12877 from dwarf2_get_ref_die_offset.
12878 (attribute::constant_value): New method, from
12879 dwarf2_get_attr_constant_value.
12880 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
12882 <constant_value>: New method.
12884 2020-03-26 Tom Tromey <tom@tromey.com>
12886 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
12887 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
12888 (dwarf_type_encoding_name): Move to stringify.c.
12889 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
12890 * dwarf2/stringify.c: New file.
12891 * dwarf2/stringify.h: New file.
12893 2020-03-26 Tom Tromey <tom@tromey.com>
12895 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
12898 2020-03-26 Tom Tromey <tom@tromey.com>
12900 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
12902 * dwarf2/read.c (lookup_addr_base): Move to die.h.
12903 (lookup_ranges_base): Likewise.
12904 (read_cutu_die_from_dwo, read_full_die_1): Update.
12906 2020-03-26 Tom Tromey <tom@tromey.com>
12908 * dwarf2/read.c (read_import_statement, read_file_scope)
12909 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
12910 (read_lexical_block_scope, read_call_site_scope)
12911 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
12912 (handle_struct_member_die, process_structure_scope)
12913 (update_enumeration_type_from_children)
12914 (process_enumeration_scope, read_array_type, read_common_block)
12915 (read_namespace, read_module, read_subroutine_type): Update.
12916 (sibling_die): Remove.
12918 2020-03-26 Tom Tromey <tom@tromey.com>
12920 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
12921 (build_type_psymtabs_reader, read_structure_type)
12922 (read_enumeration_type, read_full_die_1): Update.
12923 (dwarf2_attr_no_follow): Move to die.h.
12924 * dwarf2/die.h (struct die_info) <attr>: New method.
12926 2020-03-26 Tom Tromey <tom@tromey.com>
12928 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
12929 <base_address>: Now an optional.
12930 (dwarf2_find_base_address, dwarf2_rnglists_process)
12931 (dwarf2_ranges_process, fill_in_loclist_baton)
12932 (dwarf2_symbol_mark_computed): Update.
12934 2020-03-26 Tom Tromey <tom@tromey.com>
12936 * dwarf2/read.c (struct die_info): Move to die.h.
12937 * dwarf2/die.h: New file.
12939 2020-03-26 Tom Tromey <tom@tromey.com>
12941 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
12943 (dwarf2_statement_list_fits_in_line_number_section_complaint):
12944 Move to line-header.c.
12945 (read_checked_initial_length_and_offset, read_formatted_entries):
12947 (dwarf_decode_line_header): Split into two.
12948 * dwarf2/line-header.c
12949 (dwarf2_statement_list_fits_in_line_number_section_complaint):
12951 (read_checked_initial_length_and_offset, read_formatted_entries):
12953 (dwarf_decode_line_header): New function, split from read.c.
12955 2020-03-26 Tom Tromey <tom@tromey.com>
12957 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
12959 * dwarf2/read.c (read_attribute_value): Update.
12960 (dwarf2_per_objfile::read_line_string): Rename from
12961 read_indirect_line_string.
12962 (read_formatted_entries): Update.
12964 2020-03-26 Tom Tromey <tom@tromey.com>
12966 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
12969 2020-03-26 Tom Tromey <tom@tromey.com>
12971 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
12973 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
12974 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
12977 2020-03-26 Tom Tromey <tom@tromey.com>
12979 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
12980 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
12981 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
12982 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
12984 2020-03-26 Tom Tromey <tom@tromey.com>
12986 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
12987 file_names_size, file_full_name, file_file_name>: Use const.
12988 <file_name_at, file_names>: Add const overload.
12989 * dwarf2/line-header.c (line_header::file_file_name)
12990 (line_header::file_full_name): Update.
12992 2020-03-26 Tom Tromey <tom@tromey.com>
12994 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
12995 (macro_start_file, consume_improper_spaces)
12996 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
12997 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
12998 (dwarf_decode_macros): Move to macro.c.
12999 * dwarf2/macro.c: New file.
13000 * dwarf2/macro.h: New file.
13001 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
13003 2020-03-26 Tom Tromey <tom@tromey.com>
13005 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
13007 * dwarf2/section.c: New method. From
13008 read_indirect_string_at_offset_from.
13009 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
13010 (read_indirect_string_at_offset_from): Move to section.c.
13011 (read_indirect_string_at_offset): Rewrite.
13012 (read_indirect_line_string_at_offset): Remove.
13013 (read_indirect_string, read_indirect_line_string)
13014 (dwarf_decode_macro_bytes): Update.
13016 2020-03-26 Tom Tromey <tom@tromey.com>
13018 * dwarf2/section.h (struct dwarf2_section_info)
13019 <overload_complaint>: Declare.
13020 (dwarf2_section_buffer_overflow_complaint): Don't declare.
13021 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
13022 Rename from dwarf2_section_buffer_overflow_complaint.
13023 * dwarf2/read.c (skip_one_die, partial_die_info::read)
13024 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
13026 2020-03-26 Tom Tromey <tom@tromey.com>
13028 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
13030 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
13032 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
13035 2020-03-26 Tom Tromey <tom@tromey.com>
13037 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
13039 2020-03-26 Tom Tromey <tom@tromey.com>
13041 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
13043 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
13045 (dwarf_decode_macros): Update.
13047 2020-03-26 Tom Tromey <tom@tromey.com>
13049 * dwarf2/read.c (read_attribute_value): Update.
13050 (read_indirect_string_from_dwz): Move to dwz.c; change into
13052 (dwarf_decode_macro_bytes): Update.
13053 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
13054 * dwarf2/dwz.c: New file.
13055 * Makefile.in (COMMON_SFILES): Add dwz.c.
13057 2020-03-26 Tom Tromey <tom@tromey.com>
13059 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
13060 * dwarf2/read.c: Add include.
13061 * dwarf2/index-write.c: Add include.
13062 * dwarf2/index-cache.c: Add include.
13063 * dwarf2/dwz.h: New file.
13065 2020-03-25 Tom Tromey <tom@tromey.com>
13067 * compile/compile-object-load.c (get_out_value_type): Mention
13068 correct symbol name in error message.
13070 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
13072 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
13074 2020-03-25 Tom de Vries <tdevries@suse.de>
13076 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
13077 * symmisc.c (dump_symtab_1): Print user and includes fields.
13078 (maintenance_info_symtabs): Same.
13080 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
13083 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
13084 (riscv_regcache_cooked_write): New function.
13085 (riscv_push_dummy_call): Use new function.
13086 (riscv_return_value): Likewise.
13088 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
13090 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
13091 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
13092 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
13093 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
13094 * infrun.c (follow_fork): Likewise.
13095 (follow_fork_inferior): Likewise.
13096 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
13097 * linux-nat.h (class linux_nat_target): Likewise.
13098 * remote.c (class remote_target) <follow_fork>: Likewise.
13099 (remote_target::follow_fork): Likewise.
13100 * target-delegates.c: Re-generate.
13101 * target.c (default_follow_fork): Likewise.
13102 (target_follow_fork): Likewise.
13103 * target.h (struct target_ops) <follow_fork>: Likewise.
13104 (target_follow_fork): Likewise.
13106 2020-03-24 Tom de Vries <tdevries@suse.de>
13108 * psymtab.c (maintenance_info_psymtabs): Print user field.
13110 2020-03-20 Tom Tromey <tromey@adacore.com>
13112 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
13114 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
13117 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
13119 * ptrace.m4: Don't check for ptrace declaration.
13120 * config.in: Re-generate.
13121 * configure: Re-generate.
13122 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
13125 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13127 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
13129 * i386-bsd-nat.c (gdb_ptrace): Likewise.
13130 * sparc-nat.c (gdb_ptrace): Likewise.
13131 * x86-bsd-nat.c (gdb_ptrace): Likewise.
13133 2020-03-20 Tom Tromey <tromey@adacore.com>
13135 * c-exp.y (lex_one_token): Fix assert.
13137 2020-03-20 Tom Tromey <tromey@adacore.com>
13139 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
13140 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
13143 2020-03-20 Tom Tromey <tromey@adacore.com>
13145 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
13147 2020-03-20 Tom Tromey <tromey@adacore.com>
13149 * ada-valprint.c (print_variant_part): Remove parameters; switch
13150 to value-based API.
13151 (print_field_values): Likewise.
13152 (ada_val_print_struct_union): Likewise.
13153 (ada_value_print_1): Update.
13155 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13157 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
13158 nbsd_nat_target instead of inf_ptrace_target.
13159 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13162 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13164 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
13165 it to the ptrace call.
13166 * (store_registers): Likewise.
13168 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13170 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
13171 it to the ptrace call.
13172 * (store_registers): Likewise.
13174 2020-03-19 Luis Machado <luis.machado@linaro.org>
13176 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
13177 valid, fetch vg value from ptrace.
13179 2020-03-19 Kamil Rytarowski <n54@gmx.com>
13180 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
13181 * inf-ptrace.c: Likewise.
13182 * (gdb_ptrace): Add.
13183 * (inf_ptrace_target::resume): Update.
13184 * (inf_ptrace_target::xfer_partial): Likewise.
13185 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
13186 * (inf_ptrace_peek_poke): Update.
13188 2020-03-19 Kamil Rytarowski <n54@gmx.com>
13190 * x86-bsd-nat.c (gdb_ptrace): New.
13191 * (x86bsd_dr_set): Add new argument `ptid'.
13192 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
13193 x86bsd_dr_set_addr): Update.
13195 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13197 * remote.c (remote_target::process_stop_reply): Handle events for
13198 all threads differently.
13200 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13202 * completer.c (completion_tracker::remove_completion): Define new
13204 * completer.h (completion_tracker::remove_completion): Declare new
13206 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
13207 when adding a C++ function symbol.
13209 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13211 * completer.c (completion_tracker::completion_hash_entry): Define
13213 (advance_to_filename_complete_word_point): Call
13214 recompute_lowest_common_denominator.
13215 (completion_tracker::completion_tracker): Call discard_completions
13216 to setup the hash table.
13217 (completion_tracker::discard_completions): Allow for being called
13218 from the constructor, pass new equal function, and element deleter
13219 when constructing the hash table. Initialise new class member
13221 (completion_tracker::maybe_add_completion): Remove use of
13222 m_entries_vec, and store more information into m_entries_hash.
13223 (completion_tracker::recompute_lcd_visitor): New function, most
13224 content taken from...
13225 (completion_tracker::recompute_lowest_common_denominator):
13226 ...here, this now just visits each item in the hash calling the
13228 (completion_tracker::build_completion_result): Remove use of
13229 m_entries_vec, call recompute_lowest_common_denominator.
13230 * completer.h (completion_tracker::have_completions): Remove use
13232 (completion_tracker::completion_hash_entry): Declare new class.
13233 (completion_tracker::recompute_lowest_common_denominator): Change
13234 function signature.
13235 (completion_tracker::recompute_lcd_visitor): Declare new function.
13236 (completion_tracker::m_entries_vec): Delete.
13237 (completion_tracker::m_entries_hash): Initialize to NULL.
13238 (completion_tracker::m_lowest_common_denominator_valid): New
13240 (completion_tracker::m_lowest_common_denominator_max_length): New
13243 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13245 * regformats/regdef.h: Put reg in gdb namespace.
13247 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13249 * i386-bsd-nat.c (gdb_ptrace): New.
13250 * (i386bsd_fetch_inferior_registers,
13251 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
13252 * (i386bsd_fetch_inferior_registers,
13253 i386bsd_store_inferior_registers) Use gdb_ptrace.
13255 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13257 * amd64-bsd-nat.c (gdb_ptrace): New.
13258 * (amd64bsd_fetch_inferior_registers,
13259 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
13260 * (amd64bsd_fetch_inferior_registers,
13261 amd64bsd_store_inferior_registers) Use gdb_ptrace.
13263 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13265 * user-regs.c (user_reg::read): Rename to...
13266 (user_reg::xread): ...this.
13267 * (append_user_reg): Rename argument `read' to `xread'.
13268 * (user_reg_add_builtin): Likewise.
13269 * (user_reg_add): Likewise.
13270 * (value_of_user_reg): Likewise.
13272 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13274 * sparc-nat.c (gdb_ptrace): New.
13275 * sparc-nat.c (sparc_fetch_inferior_registers)
13276 (sparc_store_inferior_registers) Remove obsolete comment.
13277 * sparc-nat.c (sparc_fetch_inferior_registers)
13278 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
13279 * sparc-nat.c (sparc_fetch_inferior_registers)
13280 (sparc_store_inferior_registers) Use gdb_ptrace.
13282 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13284 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
13285 it to the ptrace call.
13286 * sh-nbsd-nat.c (store_registers): Likewise.
13288 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13290 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
13291 nbsd_nat_target instead of inf_ptrace_target.
13292 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13295 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13297 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
13299 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13301 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
13303 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
13305 2020-03-17 Tom de Vries <tdevries@suse.de>
13308 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
13310 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
13312 (process_imported_unit_die): Skip import of c++ CUs.
13314 2020-03-16 Tom Tromey <tom@tromey.com>
13316 * p-valprint.c (pascal_object_print_value): Initialize
13319 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
13320 Shahab Vahedi <shahab@synopsys.com>
13322 * Makefile.in: Add arch/arc.o
13323 * configure.tgt: Likewise.
13324 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
13325 (_initialize_arc_tdep): Don't initialize old target descriptions.
13326 (arc_read_description): New function to cache target descriptions.
13327 * arc-tdep.h (arc_read_description): Add proto type.
13328 * arch/arc.c: New file.
13329 * arch/arc.h: Likewise.
13330 * features/Makefile: Replace old target descriptions with new.
13331 * features/arc-arcompact.c: Remove.
13332 * features/arc-arcompact.xml: Likewise.
13333 * features/arc-v2.c: Likewise
13334 * features/arc-v2.xml: Likewise
13335 * features/arc/aux-arcompact.xml: New file.
13336 * features/arc/aux-v2.xml: Likewise.
13337 * features/arc/core-arcompact.xml: Likewise.
13338 * features/arc/core-v2.xml: Likewise.
13339 * features/arc/aux-arcompact.c: Generate.
13340 * features/arc/aux-v2.c: Likewise.
13341 * features/arc/core-arcompact.c: Likewise.
13342 * features/arc/core-v2.c: Likewise.
13343 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
13345 2020-03-16 Tom Tromey <tromey@adacore.com>
13348 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
13349 putting value into bcache.
13351 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13354 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
13356 (amd64_windows_init_abi_common): ... this. Don't set size of
13358 (amd64_windows_init_abi): New function.
13359 (amd64_cygwin_init_abi): New function.
13360 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
13362 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
13365 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13367 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
13368 * windows-tdep.c (CYGWIN_DLL_NAME): New.
13369 (pe_import_directory_entry): New struct type.
13370 (is_linked_with_cygwin_dll): New function.
13371 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
13372 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
13373 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
13375 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13377 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
13378 i386_cygwin_core_osabi_sniffer.
13380 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13382 * i386-cygwin-tdep.c: Rename to...
13383 * i386-windows-tdep.c: ... this.
13384 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
13385 i386-windows-tdep.c.
13386 * configure.tgt: Likewise.
13388 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13390 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
13391 * osabi.c (gdb_osabi_names): Add "Windows".
13392 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
13393 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
13394 (i386_cygwin_core_osabi_sniffer): New function, extracted from
13395 i386_cygwin_osabi_sniffer.
13396 (_initialize_i386_cygwin_tdep): Register OS ABI
13397 GDB_OSABI_WINDOWS for i386.
13398 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
13399 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
13400 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
13402 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
13403 when the target matches '*-*-mingw*'.
13405 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13407 * defs.h (enum gdb_osabi): Move to...
13408 * osabi.h (enum gdb_osabi): ... here.
13409 * gdbarch.sh: Include osabi.h in gdbarch.h.
13410 * gdbarch.h: Re-generate.
13412 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13414 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
13416 (_initialize_amd64_windows_tdep): Register osabi sniffer.
13418 2020-03-14 Tom Tromey <tom@tromey.com>
13420 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
13422 (c_type_print_modifier): Likewise. Add "language" parameter.
13423 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
13424 (c_type_print_base_1): Update.
13425 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
13427 * type-stack.c (type_stack::insert): Handle tp_atomic and
13429 (type_stack::follow_type_instance_flags): Likewise.
13430 (type_stack::follow_types): Likewise. Merge type-following code.
13431 * c-exp.y (RESTRICT, ATOMIC): New tokens.
13432 (space_identifier, cv_with_space_id)
13433 (const_or_volatile_or_space_identifier_noopt)
13434 (const_or_volatile_or_space_identifier): Remove.
13435 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
13437 (ptr_operator, typebase): Update.
13438 (enum token_flag) <FLAG_C>: New constant.
13439 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
13441 (lex_one_token): Handle FLAG_C.
13443 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13445 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
13446 it to the ptrace call.
13447 * m68k-bsd-nat.c (store_registers): Likewise.
13449 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13451 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
13453 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
13454 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
13455 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
13457 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13459 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
13460 nbsd_nat_target instead of inf_ptrace_target.
13461 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13464 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13466 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
13469 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13471 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
13472 it to the ptrace call.
13473 * alpha-bsd-nat.c (store_registers): Likewise.
13475 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13477 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
13479 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
13480 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
13481 fill_fpregset): Likewise.
13483 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13485 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
13486 nbsd_nat_target instead of inf_ptrace_target.
13487 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13490 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13492 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
13495 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13497 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
13498 it to the ptrace call.
13499 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
13500 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
13501 * arm-nbsd-nat.c (store_register): Likewise.
13502 * arm-nbsd-nat.c (store_regs): Likewise.
13503 * arm-nbsd-nat.c (store_fp_register): Likewise.
13504 * arm-nbsd-nat.c (store_fp_regs): Likewise.
13506 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13508 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
13509 nbsd_nat_target instead of inf_ptrace_target.
13510 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13513 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13515 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
13516 it to the ptrace call.
13517 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
13519 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13521 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
13522 it to the ptrace call.
13523 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
13525 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13527 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
13529 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
13531 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13533 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
13534 instead of inf_ptrace_target.
13535 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13538 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13540 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13543 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13545 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13548 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13550 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
13553 2020-03-13 Tom Tromey <tom@tromey.com>
13555 * value.h (val_print): Don't declare.
13556 * valprint.h (val_print_array_elements)
13557 (val_print_scalar_formatted, generic_val_print): Don't declare.
13558 * valprint.c (generic_val_print_array): Take a struct value.
13559 (generic_val_print_ptr, generic_val_print_memberptr)
13560 (generic_val_print_bool, generic_val_print_int)
13561 (generic_val_print_char, generic_val_print_complex)
13562 (generic_val_print): Remove.
13563 (generic_value_print): Update.
13564 (do_val_print): Remove unused parameters. Don't call
13566 (val_print): Remove.
13567 (common_val_print): Update. Don't call value_check_printable.
13568 (val_print_scalar_formatted, val_print_array_elements): Remove.
13569 * rust-lang.c (rust_val_print): Remove.
13570 (rust_language_defn): Update.
13571 * p-valprint.c (pascal_val_print): Remove.
13572 (pascal_value_print_inner): Update.
13573 (pascal_object_print_val_fields, pascal_object_print_val):
13575 (pascal_object_print_static_field): Update.
13576 * p-lang.h (pascal_val_print): Don't declare.
13577 * p-lang.c (pascal_language_defn): Update.
13578 * opencl-lang.c (opencl_language_defn): Update.
13579 * objc-lang.c (objc_language_defn): Update.
13580 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
13581 * m2-lang.h (m2_val_print): Don't declare.
13582 * m2-lang.c (m2_language_defn): Update.
13583 * language.h (struct language_defn) <la_val_print>: Remove.
13584 * language.c (unk_lang_value_print_inner): Rename. Change
13586 (unknown_language_defn, auto_language_defn): Update.
13587 * go-valprint.c (go_val_print): Remove.
13588 * go-lang.h (go_val_print): Don't declare.
13589 * go-lang.c (go_language_defn): Update.
13590 * f-valprint.c (f_val_print): Remove.
13591 * f-lang.h (f_value_print): Don't declare.
13592 * f-lang.c (f_language_defn): Update.
13593 * d-valprint.c (d_val_print): Remove.
13594 * d-lang.h (d_value_print): Don't declare.
13595 * d-lang.c (d_language_defn): Update.
13596 * cp-valprint.c (cp_print_value_fields)
13597 (cp_print_value_fields_rtti, cp_print_value): Remove.
13598 (cp_print_static_field): Update.
13599 * c-valprint.c (c_val_print_array, c_val_print_ptr)
13600 (c_val_print_struct, c_val_print_union, c_val_print_int)
13601 (c_val_print_memberptr, c_val_print): Remove.
13602 * c-lang.h (c_val_print_array, cp_print_value_fields)
13603 (cp_print_value_fields_rtti): Don't declare.
13604 * c-lang.c (c_language_defn, cplus_language_defn)
13605 (asm_language_defn, minimal_language_defn): Update.
13606 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
13607 (ada_val_print_enum): Take a struct value.
13608 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
13609 (ada_val_print): Remove.
13610 (ada_value_print_1): Update.
13611 (printable_val_type): Remove.
13612 * ada-lang.h (ada_val_print): Don't declare.
13613 * ada-lang.c (ada_language_defn): Update.
13615 2020-03-13 Tom Tromey <tom@tromey.com>
13617 * valprint.c (do_val_print): Update.
13618 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
13620 (value_to_value_object_no_release): Declare.
13621 * python/py-value.c (value_to_value_object_no_release): New
13623 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
13625 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
13627 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
13629 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
13631 (gdbscm_apply_val_pretty_printer): Take a struct value.
13632 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
13634 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
13636 * extension-priv.h (struct extension_language_ops)
13637 <apply_val_pretty_printer>: Take a struct value.
13638 * cp-valprint.c (cp_print_value): Create a struct value.
13639 (cp_print_value): Update.
13641 2020-03-13 Tom Tromey <tom@tromey.com>
13643 * ada-valprint.c (print_field_values): Call common_val_print.
13645 2020-03-13 Tom Tromey <tom@tromey.com>
13647 * ada-valprint.c (val_print_packed_array_elements): Remove
13648 bitoffset and val parameters. Call common_val_print.
13649 (ada_val_print_string): Remove offset, address, and original_value
13651 (ada_val_print_array): Update.
13652 (ada_value_print_array): New function.
13653 (ada_value_print_1): Call it.
13655 2020-03-13 Tom Tromey <tom@tromey.com>
13657 * ada-valprint.c (ada_value_print): Use common_val_print.
13659 2020-03-13 Tom Tromey <tom@tromey.com>
13661 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
13663 2020-03-13 Tom Tromey <tom@tromey.com>
13665 * ada-valprint.c (ada_value_print_num): New function.
13666 (ada_value_print_1): Use it.
13668 2020-03-13 Tom Tromey <tom@tromey.com>
13670 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
13672 2020-03-13 Tom Tromey <tom@tromey.com>
13674 * ada-valprint.c (ada_value_print_ptr): New function.
13675 (ada_value_print_1): Use it.
13677 2020-03-13 Tom Tromey <tom@tromey.com>
13679 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
13680 call common_val_print.
13681 (ada_val_print_1): Update.
13682 (ada_value_print_1): New function.
13683 (ada_value_print_inner): Rewrite.
13685 2020-03-13 Tom Tromey <tom@tromey.com>
13687 * cp-valprint.c (cp_print_value_fields): Update.
13688 (cp_print_value): New function.
13690 2020-03-13 Tom Tromey <tom@tromey.com>
13692 * m2-valprint.c (m2_value_print_inner): Use
13693 cp_print_value_fields.
13694 * cp-valprint.c (cp_print_value_fields): New function.
13695 * c-valprint.c (c_value_print_struct): New function.
13696 (c_value_print_inner): Use c_value_print_struct.
13697 * c-lang.h (cp_print_value_fields): Declare.
13699 2020-03-13 Tom Tromey <tom@tromey.com>
13701 * c-valprint.c (c_value_print_array): New function.
13702 (c_value_print_inner): Use it.
13704 2020-03-13 Tom Tromey <tom@tromey.com>
13706 * c-valprint.c (c_value_print_memberptr): New function.
13707 (c_value_print_inner): Use it.
13709 2020-03-13 Tom Tromey <tom@tromey.com>
13711 * c-valprint.c (c_value_print_int): New function.
13712 (c_value_print_inner): Use it.
13714 2020-03-13 Tom Tromey <tom@tromey.com>
13716 * c-valprint.c (c_value_print_ptr): New function.
13717 (c_value_print_inner): Use it.
13719 2020-03-13 Tom Tromey <tom@tromey.com>
13721 * c-valprint.c (c_value_print_inner): Rewrite.
13723 2020-03-13 Tom Tromey <tom@tromey.com>
13725 * valprint.c (generic_value_print_complex): New function.
13726 (generic_value_print): Use it.
13728 2020-03-13 Tom Tromey <tom@tromey.com>
13730 * valprint.c (generic_val_print_float): Don't call
13731 val_print_scalar_formatted.
13732 (generic_val_print, generic_value_print): Update.
13734 2020-03-13 Tom Tromey <tom@tromey.com>
13736 * valprint.c (generic_value_print_char): New function
13737 (generic_value_print): Use it.
13739 2020-03-13 Tom Tromey <tom@tromey.com>
13741 * valprint.c (generic_value_print_int): New function.
13742 (generic_value_print): Use it.
13744 2020-03-13 Tom Tromey <tom@tromey.com>
13746 * valprint.c (generic_value_print_bool): New function.
13747 (generic_value_print): Use it.
13749 2020-03-13 Tom Tromey <tom@tromey.com>
13751 * valprint.c (generic_val_print_func): Simplify.
13752 (generic_val_print, generic_value_print): Update.
13754 2020-03-13 Tom Tromey <tom@tromey.com>
13756 * valprint.c (generic_val_print_flags): Remove.
13757 (generic_val_print, generic_value_print): Update.
13758 (val_print_type_code_flags): Add original_value parameter.
13760 2020-03-13 Tom Tromey <tom@tromey.com>
13762 * valprint.c (generic_val_print): Update.
13763 (generic_value_print): Update.
13764 * valprint.c (generic_val_print_enum): Don't call
13765 val_print_scalar_formatted.
13767 2020-03-13 Tom Tromey <tom@tromey.com>
13769 * valprint.c (generic_value_print): Call generic_value_print_ptr.
13770 * valprint.c (generic_value_print_ptr): New function.
13772 2020-03-13 Tom Tromey <tom@tromey.com>
13774 * valprint.c (generic_value_print): Rewrite.
13776 2020-03-13 Tom Tromey <tom@tromey.com>
13778 * p-valprint.c (pascal_object_print_value_fields)
13779 (pascal_object_print_value): New functions.
13781 2020-03-13 Tom Tromey <tom@tromey.com>
13783 * p-valprint.c (pascal_value_print_inner): Rewrite.
13785 2020-03-13 Tom Tromey <tom@tromey.com>
13787 * f-valprint.c (f_value_print_innner): Rewrite.
13789 2020-03-13 Tom Tromey <tom@tromey.com>
13791 * m2-valprint.c (m2_print_unbounded_array): New overload.
13792 (m2_print_unbounded_array): Update.
13793 (m2_print_array_contents): Take a struct value.
13794 (m2_value_print_inner): Rewrite.
13796 2020-03-13 Tom Tromey <tom@tromey.com>
13798 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
13799 (d_value_print_inner): New function.
13800 * d-lang.h (d_value_print_inner): Declare.
13801 * d-lang.c (d_language_defn): Use d_value_print_inner.
13803 2020-03-13 Tom Tromey <tom@tromey.com>
13805 * go-valprint.c (go_value_print_inner): New function.
13806 * go-lang.h (go_value_print_inner): Declare.
13807 * go-lang.c (go_language_defn): Use go_value_print_inner.
13809 2020-03-13 Tom Tromey <tom@tromey.com>
13811 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
13813 (rust_val_print): Rewrite.
13814 (rust_value_print_inner): New function, from rust_val_print.
13815 (rust_language_defn): Use rust_value_print_inner.
13817 2020-03-13 Tom Tromey <tom@tromey.com>
13819 * ada-valprint.c (ada_value_print_inner): New function.
13820 * ada-lang.h (ada_value_print_inner): Declare.
13821 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
13823 2020-03-13 Tom Tromey <tom@tromey.com>
13825 * f-valprint.c (f_value_print_innner): New function.
13826 * f-lang.h (f_value_print_innner): Declare.
13827 * f-lang.c (f_language_defn): Use f_value_print_innner.
13829 2020-03-13 Tom Tromey <tom@tromey.com>
13831 * p-valprint.c (pascal_value_print_inner): New function.
13832 * p-lang.h (pascal_value_print_inner): Declare.
13833 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
13835 2020-03-13 Tom Tromey <tom@tromey.com>
13837 * m2-valprint.c (m2_value_print_inner): New function.
13838 * m2-lang.h (m2_value_print_inner): Declare.
13839 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
13841 2020-03-13 Tom Tromey <tom@tromey.com>
13843 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
13844 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
13845 * c-valprint.c (c_value_print_inner): New function.
13846 * c-lang.h (c_value_print_inner): Declare.
13847 * c-lang.c (c_language_defn, cplus_language_defn)
13848 (asm_language_defn, minimal_language_defn): Use
13849 c_value_print_inner.
13851 2020-03-13 Tom Tromey <tom@tromey.com>
13853 * p-valprint.c (pascal_object_print_value_fields): Now static.
13854 * p-lang.h (pascal_object_print_value_fields): Don't declare.
13856 2020-03-13 Tom Tromey <tom@tromey.com>
13858 * c-valprint.c (c_val_print_array): Simplify.
13860 2020-03-13 Tom Tromey <tom@tromey.com>
13862 * valprint.c (value_print_array_elements): New function.
13863 * valprint.h (value_print_array_elements): Declare.
13865 2020-03-13 Tom Tromey <tom@tromey.com>
13867 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
13868 * mips-tdep.c (mips_print_register): Use
13869 value_print_scalar_formatted.
13871 2020-03-13 Tom Tromey <tom@tromey.com>
13873 * valprint.h (value_print_scalar_formatted): Declare.
13874 * valprint.c (value_print_scalar_formatted): New function.
13876 2020-03-13 Tom Tromey <tom@tromey.com>
13878 * valprint.h (generic_value_print): Declare.
13879 * valprint.c (generic_value_print): New function.
13881 2020-03-13 Tom Tromey <tom@tromey.com>
13883 * valprint.c (do_val_print): Call la_value_print_inner, if
13885 * rust-lang.c (rust_language_defn): Update.
13886 * p-lang.c (pascal_language_defn): Update.
13887 * opencl-lang.c (opencl_language_defn): Update.
13888 * objc-lang.c (objc_language_defn): Update.
13889 * m2-lang.c (m2_language_defn): Update.
13890 * language.h (struct language_defn) <la_value_print_inner>: New
13892 * language.c (unknown_language_defn, auto_language_defn): Update.
13893 * go-lang.c (go_language_defn): Update.
13894 * f-lang.c (f_language_defn): Update.
13895 * d-lang.c (d_language_defn): Update.
13896 * c-lang.c (c_language_defn, cplus_language_defn)
13897 (asm_language_defn, minimal_language_defn): Update.
13898 * ada-lang.c (ada_language_defn): Update.
13900 2020-03-13 Tom Tromey <tom@tromey.com>
13902 * c-valprint.c (c_value_print): Use common_val_print.
13904 2020-03-13 Tom Tromey <tom@tromey.com>
13906 * cp-valprint.c (cp_print_static_field): Use common_val_print.
13908 2020-03-13 Tom Tromey <tom@tromey.com>
13910 * f-valprint.c (f77_print_array_1, f_val_print): Use
13913 2020-03-13 Tom Tromey <tom@tromey.com>
13915 * riscv-tdep.c (riscv_print_one_register_info): Use
13918 2020-03-13 Tom Tromey <tom@tromey.com>
13920 * mi/mi-main.c (output_register): Use common_val_print.
13922 2020-03-13 Tom Tromey <tom@tromey.com>
13924 * infcmd.c (default_print_one_register_info): Use
13927 2020-03-13 Tom Tromey <tom@tromey.com>
13929 * valprint.h (common_val_print_checked): Declare.
13930 * valprint.c (common_val_print_checked): New function.
13931 * stack.c (print_frame_arg): Use common_val_print_checked.
13933 2020-03-13 Tom Tromey <tom@tromey.com>
13935 * valprint.c (do_val_print): New function, from val_print.
13936 (val_print): Use do_val_print.
13937 (common_val_print): Use do_val_print.
13939 2020-03-13 Tom Tromey <tom@tromey.com>
13941 * valprint.c (value_print): Use scoped_value_mark.
13943 2020-03-13 Tom de Vries <tdevries@suse.de>
13946 * psymtab.c (partial_symtab::partial_symtab): Don't set
13947 globals_offset and statics_offset. Push element onto
13948 current_global_psymbols and current_static_psymbols stacks.
13949 (concat): New function.
13950 (end_psymtab_common): Set globals_offset and statics_offset. Pop
13951 element from current_global_psymbols and current_static_psymbols
13952 stacks. Concat popped elements to global_psymbols and
13954 (add_psymbol_to_list): Use current_global_psymbols and
13955 current_static_psymbols stacks.
13956 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
13957 current_static_psymbols fields.
13959 2020-03-12 Christian Biesinger <cbiesinger@google.com>
13961 * corelow.c (sniff_core_bfd): Remove.
13962 (class core_target) <m_core_vec>: Remove.
13963 (core_target::core_target): Update.
13964 (core_file_fns): Remove.
13965 (deprecated_add_core_fns): Remove.
13966 (default_core_sniffer): Remove.
13967 (sniff_core_bfd): Remove.
13968 (default_check_format): Remove.
13969 (gdb_check_format): Remove.
13970 (core_target_open): Update.
13971 (core_target::get_core_register_section): Update.
13972 (get_core_registers_cb): Update.
13973 (core_target::fetch_registers): Update.
13974 * gdbcore.h (struct core_fns): Remove.
13975 (deprecated_add_core_fns): Remove.
13976 (default_core_sniffer): Remove.
13977 (default_check_format): Remove.
13979 2020-03-12 Tom Tromey <tom@tromey.com>
13981 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
13983 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
13985 2020-03-12 Tom Tromey <tom@tromey.com>
13987 * remote.c (remote_target::download_tracepoint)
13988 (remote_target::enable_tracepoint)
13989 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
13990 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
13993 2020-03-12 Tom Tromey <tom@tromey.com>
13995 * symfile-mem.c: Update CORE_ADDR size assert.
13997 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
13999 * selftest.m4: Move to gdbsupport/.
14000 * acinclude.m4: Update path to selftest.m4.
14002 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14004 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
14005 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
14006 gdbarch-selfselftests.c and selftest-arch.c.
14007 (SUBDIR_UNITTESTS_OBS): Rename to...
14008 (SELFTESTS_OBS): ... this.
14009 (COMMON_SFILES): Remove disasm-selftests.c and
14010 gdbarch-selftests.c.
14011 * configure.ac: Don't add selftest-arch.{c,o} to
14013 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
14014 preprocessor conditions.
14016 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14018 * configure.ac: Don't source bfd/development.sh.
14019 * selftest.m4: Modify comment.
14020 * configure: Re-generate.
14022 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14024 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
14025 not "true" or "false".
14026 * configure: Re-generate.
14028 2020-03-12 Christian Biesinger <cbiesinger@google.com>
14030 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
14031 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
14032 renamed to arm_nbsd_supply_gregset.
14033 (fetch_register): Update to call arm_nbsd_supply_gregset.
14034 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
14035 (arm_netbsd_nat_target::fetch_registers): Update.
14036 (fetch_elfcore_registers): Removed.
14037 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
14038 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
14039 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
14040 not require NetBSD system headers.
14041 (arm_nbsd_regset): New struct.
14042 (arm_nbsd_iterate_over_regset_sections): New function.
14043 (arm_netbsd_init_abi_common): Updated to call
14044 set_gdbarch_iterate_over_regset_sections.
14045 * arm-nbsd-tdep.h: New file.
14047 2020-03-11 Kevin Buettner <kevinb@redhat.com>
14049 * symtab.c (find_pc_sect_line): Add check which prevents infinite
14052 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
14054 * configure: Re-generate.
14056 2020-03-11 Tom Tromey <tromey@adacore.com>
14058 * ada-typeprint.c (print_choices): Fix comment.
14060 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
14062 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
14063 previous item in the list, when the list has no items.
14065 2020-03-11 Tom de Vries <tdevries@suse.de>
14067 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
14068 PROP_LOCLIST handling code.
14070 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
14072 * buildsym-legacy.c (record_line): Pass extra parameter to
14074 * buildsym.c (buildsym_compunit::record_line): Take an extra
14075 parameter, reduce duplication in the line table, and record the
14076 is_stmt flag in the line table.
14077 * buildsym.h (buildsym_compunit::record_line): Add extra
14079 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
14080 non-statement lines.
14081 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
14082 this to the symtab builder.
14083 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
14084 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
14085 through to dwarf_record_line_1.
14086 * infrun.c (process_event_stop_test): When stepping, don't stop at
14087 a non-statement instruction, and only refresh the step info when
14088 we land in the middle of a line's range. Also add an extra
14090 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
14092 * record-btrace.c (btrace_find_line_range): Only record lines
14093 marked as is-statement.
14094 * stack.c (frame_show_address): Show the frame address if we are
14095 in a non-statement sal.
14096 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
14097 (maintenance_print_one_line_table): Print a header for the is_stmt
14098 column, and include is_stmt information in the output.
14099 * symtab.c (find_pc_sect_line): Find lines marked as statements in
14100 preference to non-statements.
14101 (find_pcs_for_symtab_line): Prefer is-statement entries.
14102 (find_line_common): Likewise.
14103 * symtab.h (struct linetable_entry): Add is_stmt field.
14104 (struct symtab_and_line): Likewise.
14105 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
14106 arranging the line table.
14108 2020-03-07 Tom de Vries <tdevries@suse.de>
14110 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
14113 2020-03-07 Tom Tromey <tom@tromey.com>
14115 * valops.c (value_literal_complex): Remove obsolete comment.
14116 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
14119 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
14121 * infrun.h: Forward-declare thread_info.
14122 (set_step_info): Add thread_info parameter, add doc.
14123 * infrun.c (set_step_info): Add thread_info parameter, move doc
14125 * infrun.c (process_event_stop_test): Pass thread to
14126 set_step_info call.
14127 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
14129 (prepare_one_step): Add thread_info parameter, pass it to
14130 set_step_frame and prepare_one_step (recursive) call.
14131 (step_1): Pass thread to prepare_one_step call.
14132 (step_command_fsm::should_stop): Pass thread to
14134 (until_next_fsm): Pass thread to set_step_frame call.
14135 (finish_command): Pass thread to set_step_info call.
14137 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
14139 * windows-tdep.c (windows_solib_create_inferior_hook):
14140 Check if inferior is running.
14142 2020-03-06 Tom de Vries <tdevries@suse.de>
14144 * NEWS: Fix "the the".
14147 2020-03-06 Tom de Vries <tdevries@suse.de>
14149 * psymtab.c (psymtab_to_symtab): Don't print "done.".
14151 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14153 * .dir-locals.el: Add a comment referencing the other copies of
14156 2020-03-05 John Baldwin <jhb@FreeBSD.org>
14158 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
14161 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14163 * .gitattributes: New file.
14165 2020-03-04 Tom Tromey <tom@tromey.com>
14167 * symmisc.c (print_symbol_bcache_statistics)
14168 (print_objfile_statistics): Update.
14169 * symfile.c (allocate_symtab): Use intern.
14170 * psymtab.c (partial_symtab::partial_symtab): Use intern.
14171 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
14172 macro_cache>: Remove.
14173 <string_cache>: New member.
14174 (struct objfile) <intern>: New methods.
14175 * elfread.c (elf_symtab_read): Use intern.
14176 * dwarf2/read.c (fixup_go_packaging): Intern package name.
14177 (dwarf2_compute_name, dwarf2_physname)
14178 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
14180 (guess_partial_die_structure_name): Update.
14181 (partial_die_info::fixup): Intern name.
14182 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
14184 (dwarf2_name): Intern name. Update.
14185 * buildsym.c (buildsym_compunit::get_macro_table): Use
14188 2020-03-04 Tom Tromey <tom@tromey.com>
14190 * jit.c (bfd_open_from_target_memory): Make "target" const.
14191 * corefile.c (gnutarget): Now const.
14192 * gdbcore.h (gnutarget): Now const.
14194 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
14196 * NEWS: Mention support for WOW64 processes.
14197 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
14198 (amd64_windows_segment_register_p): Remove static.
14199 (_initialize_amd64_windows_nat): Update.
14200 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
14201 * i386-windows-nat.c (context_offset): Update.
14202 (i386_mappings): Rename and remove static.
14203 (i386_windows_segment_register_p): Remove static.
14204 (_initialize_i386_windows_nat): Update.
14205 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
14206 (STATUS_WX86_SINGLE_STEP): New macro.
14207 (EnumProcessModulesEx): New macro.
14208 (Wow64SuspendThread): New macro.
14209 (Wow64GetThreadContext): New macro.
14210 (Wow64SetThreadContext): New macro.
14211 (Wow64GetThreadSelectorEntry): New macro.
14212 (windows_set_context_register_offsets): Add static.
14213 (windows_set_segment_register_p): Likewise.
14214 (windows_add_thread): Adapt for WOW64 processes.
14215 (windows_fetch_one_register): Likewise.
14216 (windows_nat_target::fetch_registers): Likewise.
14217 (windows_store_one_register): Likewise.
14218 (display_selector): Likewise.
14219 (display_selectors): Likewise.
14220 (handle_exception): Likewise.
14221 (windows_continue): Likewise.
14222 (windows_nat_target::resume): Likewise.
14223 (windows_add_all_dlls): Likewise.
14224 (do_initial_windows_stuff): Likewise.
14225 (windows_nat_target::attach): Likewise.
14226 (windows_get_exec_module_filename): Likewise.
14227 (windows_nat_target::create_inferior): Likewise.
14228 (windows_xfer_siginfo): Likewise.
14229 (_initialize_loadable): Initialize Wow64SuspendThread,
14230 Wow64GetThreadContext, Wow64SetThreadContext,
14231 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
14232 * windows-nat.h (windows_set_context_register_offsets):
14233 Remove declaration.
14234 (windows_set_segment_register_p): Likewise.
14235 (i386_windows_segment_register_p): Add declaration.
14236 (amd64_windows_segment_register_p): Likewise.
14238 2020-03-04 Luis Machado <luis.machado@linaro.org>
14240 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
14241 in "info registers" for AArch64/ARM.
14243 The change caused "info registers" to not print GPR's.
14247 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
14249 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
14250 when reg->group is empty and reggroup is not.
14252 2020-03-03 Tom Tromey <tromey@adacore.com>
14254 * dwarf2/frame.c (struct dwarf2_frame_cache)
14255 <checked_tailcall_bottom, entry_cfa_sp_offset,
14256 entry_cfa_sp_offset_p>: Remove members.
14257 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
14258 (dwarf2_frame_prev_register): Don't call
14259 dwarf2_tailcall_sniffer_first.
14260 (dwarf2_append_unwinders): Don't append tailcall unwinder.
14261 * frame-unwind.c (add_unwinder): New fuction.
14262 (frame_unwind_init): Use it. Add tailcall unwinder.
14264 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
14265 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14267 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
14268 value should be printed as true.
14270 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
14272 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
14273 (windows_init_abi): Set and use windows_so_ops.
14275 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
14277 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
14278 when verifying if dealing with a convenience variable.
14280 2020-03-03 Luis Machado <luis.machado@linaro.org>
14282 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
14284 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
14286 * infrun.c (gdbarch_supports_displaced_stepping): New.
14287 (use_displaced_stepping): Break up conditions in smaller pieces.
14288 Use gdbarch_supports_displaced_stepping.
14289 (displaced_step_prepare_throw): Use
14290 gdbarch_supports_displaced_stepping.
14292 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
14294 * NEWS: Mention new behaviour of the history filename.
14295 * top.c (write_history_p): Add comment.
14296 (show_write_history_p): Add header comment, give a different
14297 message when history writing is on, but the history filename is
14299 (history_filename): Add comment.
14300 (history_filename_empty): New function.
14301 (show_history_filename): Add header comment, give a different
14302 message when the filename is empty.
14303 (init_history): Compare history_filename against nullptr, and only
14304 read history if the filename is not empty.
14305 (set_history_filename): Add header comment, and only make
14306 non-empty filenames absolute.
14307 (init_main): Make the filename argument to 'set history filename'
14310 2020-03-02 Christian Biesinger <cbiesinger@google.com>
14312 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
14313 (arm_supply_vfpregset): ...this, and update to use VFP registers.
14314 (fetch_fp_register): Update.
14315 (fetch_fp_regs): Update.
14316 (store_fp_register): Update.
14317 (store_fp_regs): Update.
14318 (arm_netbsd_nat_target::read_description): New function.
14319 (fetch_elfcore_registers): Update.
14321 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
14323 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
14324 general_thread if the stop reply is missing a thread-id.
14325 (remote_target::process_stop_reply): Use the first non-exited
14326 thread if the target didn't pass a thread-id.
14327 * infrun.c (do_target_wait): Move call to
14328 switch_to_inferior_no_thread to ....
14329 (do_target_wait_1): ... here.
14331 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
14333 * debuginfod-support.c: Include defs.h first.
14335 2020-02-28 Tom de Vries <tdevries@suse.de>
14337 * symfile.c (set_initial_language): Use default language for lookup.
14339 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
14341 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
14342 reader variable, pass `this` to read_cutu_die_from_dwo.
14344 2020-02-27 Aaron Merey <amerey@redhat.com>
14346 * source.c (open_source_file): Check for nullptr when computing
14349 2020-02-27 Tom Tromey <tromey@adacore.com>
14351 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
14353 (dwarf2_add_field): Don't update nfields.
14354 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
14356 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14358 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
14361 2020-02-26 Tom Tromey <tom@tromey.com>
14363 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
14364 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
14365 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
14366 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
14369 2020-02-26 Tom Tromey <tom@tromey.com>
14371 * dwarf2/index-write.c (psym_index_map): Change type.
14372 (add_address_entry_worker, write_one_signatured_type)
14373 (recursively_count_psymbols, recursively_write_psymbols)
14374 (class debug_names, psyms_seen_size, write_gdbindex)
14375 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
14377 2020-02-26 Aaron Merey <amerey@redhat.com>
14379 * Makefile.in: Handle optional debuginfod support.
14381 * README: Add --with-debuginfod summary.
14382 * config.in: Regenerate.
14383 * configure: Regenerate.
14384 * configure.ac: Handle optional debuginfod support.
14385 * debuginfod-support.c: debuginfod helper functions.
14386 * debuginfod-support.h: Ditto.
14387 * doc/gdb.texinfo: Add --with-debuginfod to configure options
14389 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
14390 when a dwz file cannot be found.
14391 * elfread.c (elf_symfile_read): Query debuginfod servers when a
14392 debuginfo file cannot be found.
14393 * source.c (open_source_file): Query debuginfod servers when a
14394 source file cannot be found.
14395 * top.c (print_gdb_configuration): Include
14396 --{with,without}-debuginfod in the output.
14398 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
14400 * thread.c (thr_try_catch_cmd): Print thread name.
14402 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
14404 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
14405 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14406 dwarf2_fetch_die_type_sect_off): Move to...
14407 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
14408 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14409 dwarf2_fetch_die_type_sect_off): ... here.
14410 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
14411 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14412 dwarf2_fetch_die_type_sect_off): Move doc to header file.
14414 2020-02-26 Tom de Vries <tdevries@suse.de>
14417 * symfile.c (set_initial_language): Exit-early if
14418 language_mode == language_mode_manual.
14420 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
14422 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
14423 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
14424 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
14426 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
14428 * gdbtypes.c (create_array_type_with_stride): Handle negative
14430 * valarith.c (value_subscripted_rvalue): Likewise.
14432 2020-02-25 Luis Machado <luis.machado@linaro.org>
14434 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
14436 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
14438 * loc.h (dwarf2_get_die_type): Move to...
14439 * read.h (dwarf2_get_die_type): ... here.
14440 * read.c (dwarf2_get_die_type): Move doc to header.
14442 2020-02-25 Joel Brobecker <brobecker@adacore.com>
14444 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
14445 'gnulib/Makefile.in' to the list.
14447 2020-02-24 Tom Tromey <tom@tromey.com>
14449 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
14451 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
14454 2020-02-24 Tom Tromey <tom@tromey.com>
14456 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
14458 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
14459 (dw2_do_instantiate_symtab, dw2_get_file_names)
14460 (build_type_psymtab_dependencies, load_full_type_unit): Update.
14462 2020-02-24 Tom Tromey <tom@tromey.com>
14464 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
14465 make_scoped_restore.
14466 (dwarf2_psymtab::read_symtab): Don't clear
14467 reading_partial_symbols.
14469 2020-02-24 Tom de Vries <tdevries@suse.de>
14472 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
14474 2020-02-24 Tom de Vries <tdevries@suse.de>
14476 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
14477 commands layout next/prev/regs.
14479 2020-02-22 Tom Tromey <tom@tromey.com>
14481 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
14482 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
14484 2020-02-22 Tom Tromey <tom@tromey.com>
14486 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
14488 2020-02-22 Tom Tromey <tom@tromey.com>
14490 * tui/tui-win.c (_initialize_tui_win): Add usage text.
14491 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
14492 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
14493 * tui/tui.c (_initialize_tui): Add usage text.
14495 2020-02-22 Tom Tromey <tom@tromey.com>
14497 * tui/tui-win.c (tui_set_focus_command)
14498 (tui_set_win_height_command): Use error_no_arg.
14499 (_initialize_tui_win): Update help text.
14500 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
14502 2020-02-22 Tom Tromey <tom@tromey.com>
14504 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
14505 * tui/tui-disasm.h (struct tui_disasm_window)
14506 <display_start_addr>: Declare.
14507 * tui/tui-source.h (struct tui_source_window)
14508 <display_start_addr>: Declare.
14509 * tui/tui-winsource.h (struct tui_source_window_base)
14510 <show_source_line, display_start_addr>: New methods.
14511 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
14512 Rename and move to protected section.
14513 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
14514 (tui_source_window_base::do_erase_source_content): Update.
14515 (tui_source_window_base::show_source_line): Now a method.
14516 (tui_source_window_base::show_source_content)
14517 (tui_source_window_base::tui_source_window_base)
14518 (tui_source_window_base::rerender)
14519 (tui_source_window_base::refill)
14520 (tui_source_window_base::do_scroll_horizontal)
14521 (tui_source_window_base::set_is_exec_point_at)
14522 (tui_source_window_base::update_breakpoint_info)
14523 (tui_source_window_base::update_exec_info): Update.
14524 * tui/tui-source.c (tui_source_window::set_contents)
14525 (tui_source_window::showing_source_p)
14526 (tui_source_window::do_scroll_vertical)
14527 (tui_source_window::location_matches_p)
14528 (tui_source_window::line_is_displayed): Update.
14529 (tui_source_window::display_start_addr): New method.
14530 * tui/tui-disasm.c (tui_disasm_window::set_contents)
14531 (tui_disasm_window::do_scroll_vertical)
14532 (tui_disasm_window::location_matches_p): Update.
14533 (tui_disasm_window::display_start_addr): New method.
14535 2020-02-22 Tom Tromey <tom@tromey.com>
14537 * NEWS: Add entry for gdb.register_window_type.
14538 * tui/tui-layout.h (window_factory): New typedef.
14539 (tui_register_window): Declare.
14540 * tui/tui-layout.c (saved_tui_windows): New global.
14541 (tui_apply_current_layout): Use it.
14542 (tui_register_window): New function.
14543 * python/python.c (do_start_initialization): Call
14544 gdbpy_initialize_tui.
14545 (python_GdbMethods): Add "register_window_type" function.
14546 * python/python-internal.h (gdbpy_register_tui_window)
14547 (gdbpy_initialize_tui): Declare.
14548 * python/py-tui.c: New file.
14549 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
14551 2020-02-22 Tom Tromey <tom@tromey.com>
14553 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
14555 2020-02-22 Tom Tromey <tom@tromey.com>
14557 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
14558 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
14559 * tui/tui-data.c (tui_set_win_with_focus): Remove.
14560 (tui_set_win_focus_to): Move from tui-win.c.
14562 2020-02-22 Tom Tromey <tom@tromey.com>
14564 * tui/tui-layout.c (make_standard_window, get_locator_window): New
14566 (known_window_types): New global.
14567 (tui_get_window_by_name): Reimplement.
14568 (initialize_known_windows): New function.
14569 (validate_window_name): Rewrite.
14570 (_initialize_tui_layout): Call initialize_known_windows.
14572 2020-02-22 Tom Tromey <tom@tromey.com>
14574 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
14576 * tui/tui-winsource.h (struct tui_source_window_base)
14577 <tui_source_window_base>: Remove parameter.
14578 * tui/tui-winsource.c
14579 (tui_source_window_base::tui_source_window_base): Remove
14581 (tui_source_window_base::refill): Update.
14582 * tui/tui-stack.h (struct tui_locator_window)
14583 <tui_locator_window>: Update.
14584 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
14585 Default the constructor.
14586 * tui/tui-regs.h (struct tui_data_item_window)
14587 <tui_data_item_window>: Default the constructor.
14588 (struct tui_data_window) <tui_data_window>: Likewise.
14589 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
14590 Default the constructor.
14591 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
14592 Default the constructor.
14594 (struct tui_win_info) <tui_win_info>: Default the constructor.
14595 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
14596 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
14597 Default the constructor.
14599 2020-02-22 Tom Tromey <tom@tromey.com>
14601 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
14602 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
14603 * tui/tui-win.c (tui_resize_all): Don't call
14604 tui_delete_invisible_windows.
14605 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
14607 (tui_set_layout): Update.
14608 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
14609 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
14610 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
14612 2020-02-22 Tom Tromey <tom@tromey.com>
14614 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
14617 2020-02-22 Tom Tromey <tom@tromey.com>
14619 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
14621 2020-02-22 Tom Tromey <tom@tromey.com>
14623 * tui/tui-winsource.h (struct tui_source_window_iterator)
14624 <inner_iterator>: New etytypedef.
14625 <tui_source_window_iterator>: Take "end" parameter.
14626 <tui_source_window_iterator>: Take iterator.
14627 <operator*, advance>: Update.
14628 <m_iter>: Change type.
14629 <m_end>: New field.
14630 (struct tui_source_windows) <begin, end>: Update.
14631 * tui/tui-layout.c (tui_windows): New global.
14632 (tui_apply_current_layout): Clear tui_windows.
14633 (tui_layout_window::apply): Update tui_windows.
14634 * tui/tui-data.h (tui_windows): Declare.
14635 (all_tui_windows): Now inline function.
14636 (class tui_window_iterator, struct all_tui_windows): Remove.
14638 2020-02-22 Tom Tromey <tom@tromey.com>
14641 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
14642 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
14644 (class tui_layout_window) <get_sizes>: Likewise.
14645 (class tui_layout_split) <tui_layout_split>: Add "vertical"
14647 <get_sizes>: Add "height" argument.
14648 <m_vertical>: New field.
14649 * tui/tui-layout.c (tui_layout_split::clone): Update.
14650 (tui_layout_split::get_sizes): Add "height" argument.
14651 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
14652 (tui_new_layout_command): Parse "-horizontal".
14653 (_initialize_tui_layout): Update help string.
14654 (tui_layout_split::specification): Add "-horizontal" when needed.
14655 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
14657 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
14660 2020-02-22 Tom Tromey <tom@tromey.com>
14662 * tui/tui-layout.h (enum tui_adjust_result): New.
14663 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
14664 (class tui_layout_window) <adjust_size>: Return
14665 tui_adjust_result. Rewrite.
14666 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
14667 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
14669 2020-02-22 Tom Tromey <tom@tromey.com>
14671 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
14672 parameter and return types.
14673 (class tui_layout_base) <specification>: Add "depth".
14674 (class tui_layout_window) <specification>: Add "depth".
14675 (class tui_layout_split) <specification>: Add "depth".
14676 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
14678 (tui_new_layout_command): Parse sub-layouts.
14679 (_initialize_tui_layout): Update help string.
14680 (tui_layout_window::specification): Add "depth".
14681 (add_layout_command): Update.
14683 2020-02-22 Tom Tromey <tom@tromey.com>
14685 * NEWS: Add "tui new-layout" item.
14686 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
14687 Add new-layout command to help text.
14688 (validate_window_name): New function.
14689 (tui_new_layout_command): New function.
14690 (_initialize_tui_layout): Register "new-layout".
14691 (tui_layout_window::specification): New method.
14692 (tui_layout_window::specification): New method.
14693 * tui/tui-layout.h (class tui_layout_base) <specification>: New
14695 (class tui_layout_window) <specification>: New method.
14696 (class tui_layout_split) <specification>: New method.
14698 2020-02-22 Tom Tromey <tom@tromey.com>
14700 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
14701 * tui/tui-win.c (window_name_completer): Update comment.
14702 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
14704 (class tui_layout_window) <replace_window>: Likewise.
14705 (class tui_layout_split) <replace_window>: Likewise.
14706 (tui_set_layout): Don't declare.
14707 (tui_set_initial_layout): Declare function.
14708 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
14709 (asm_regs_layout): New globals.
14710 (tui_current_layout, show_layout): Remove.
14711 (tui_set_layout, tui_add_win_to_layout): Rewrite.
14712 (find_layout, tui_apply_layout): New function.
14713 (layout_completer): Remove.
14714 (tui_next_layout): Reimplement.
14715 (tui_next_layout_command): New function.
14716 (tui_set_initial_layout, tui_prev_layout_command): New functions.
14717 (tui_regs_layout): Reimplement.
14718 (tui_regs_layout_command): New function.
14719 (extract_display_start_addr): Rewrite.
14720 (next_layout, prev_layout): Remove.
14721 (tui_layout_window::replace_window): New method.
14722 (tui_layout_split::replace_window): New method.
14723 (destroy_layout): New function.
14724 (layout_list): New global.
14725 (add_layout_command): New function.
14726 (initialize_layouts): Update.
14727 (tui_layout_command): New function.
14728 (_initialize_tui_layout): Install "layout" commands.
14729 * tui/tui-data.h (enum tui_layout_type): Remove.
14730 (tui_current_layout): Don't declare.
14732 2020-02-22 Tom Tromey <tom@tromey.com>
14734 * tui/tui-regs.c (tui_reg_layout): Remove.
14735 (tui_reg_command): Use tui_regs_layout.
14736 * tui/tui-layout.h (tui_reg_command): Declare.
14737 * tui/tui-layout.c (tui_reg_command): New function.
14739 2020-02-22 Tom Tromey <tom@tromey.com>
14741 * tui/tui.c (tui_rl_delete_other_windows): Call
14742 tui_remove_some_windows.
14743 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
14745 (class tui_layout_window) <remove_windows>: New method.
14746 (class tui_layout_split) <remove_windows>: Declare.
14747 (tui_remove_some_windows): Declare.
14748 * tui/tui-layout.c (tui_remove_some_windows): New function.
14749 (tui_layout_split::remove_windows): New method.
14751 2020-02-22 Tom Tromey <tom@tromey.com>
14753 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
14754 * tui/tui-layout.h (tui_next_layout): Declare.
14755 * tui/tui-layout.c (tui_next_layout): New function.
14757 2020-02-22 Tom Tromey <tom@tromey.com>
14759 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
14760 correct coordinates.
14762 2020-02-22 Tom Tromey <tom@tromey.com>
14764 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
14765 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
14768 2020-02-22 Tom Tromey <tom@tromey.com>
14770 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
14771 TUI_DISASM_WIN, not tui_win_list.
14773 2020-02-22 Tom Tromey <tom@tromey.com>
14775 * valprint.c (generic_val_print_enum_1)
14776 (val_print_type_code_flags): Style member names.
14777 * rust-lang.c (val_print_struct, rust_print_enum)
14778 (rust_print_struct_def, rust_internal_print_type): Style member
14780 * p-valprint.c (pascal_object_print_value_fields): Style member
14781 names. Only call fprintf_symbol_filtered for static members.
14782 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
14783 * f-valprint.c (f_val_print): Style member names.
14784 * f-typeprint.c (f_type_print_base): Style member names.
14785 * cp-valprint.c (cp_print_value_fields): Style member names. Only
14786 call fprintf_symbol_filtered for static members.
14787 (cp_print_class_member): Style member names.
14788 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
14790 * ada-valprint.c (ada_print_scalar): Style enum names.
14791 (ada_val_print_enum): Likewise.
14792 * ada-typeprint.c (print_enum_type): Style enum names.
14794 2020-02-21 Tom Tromey <tom@tromey.com>
14796 * psympriv.h (struct partial_symtab): Update comment.
14798 2020-02-21 Tom Tromey <tromey@adacore.com>
14800 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
14803 2020-02-21 Tom de Vries <tdevries@suse.de>
14806 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
14807 if dependencies[i]->user != NULL.
14809 2020-02-21 Ali Tamur <tamur@google.com>
14811 * dwarf2/read.c (dwarf2_name): Add null check.
14813 2020-02-20 Tom Tromey <tom@tromey.com>
14815 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
14816 ">=", in binary search.
14817 (dwarf2_find_containing_comp_unit): New overload.
14818 (run_test): New self-test.
14819 (_initialize_dwarf2_read): Register new test.
14821 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
14823 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
14824 * riscv-tdep.h: Likewise.
14825 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
14827 * features/riscv/64bit-csr.xml: Regenerated.
14829 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
14830 Tom Tromey <tom@tromey.com>
14832 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
14833 of 'fputc_unfiltered'.
14834 (putchar_unfiltered): Call 'fputc_unfiltered'.
14835 (fputc_unfiltered): Call 'fputs_unfiltered'.
14837 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
14839 * config.in: Regenerate.
14840 * configure: Regenerate.
14841 * configure.ac: Add --with-python-libdir option.
14842 * main.c: Use WITH_PYTHON_LIBDIR.
14844 2020-02-19 Tom Tromey <tom@tromey.com>
14846 * symtab.c (general_symbol_info::compute_and_set_names): Use
14847 obstack_strndup. Simplify call to symbol_set_demangled_name.
14849 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
14851 * dwarf2/read.c (allocate_signatured_type_table,
14852 allocate_dwo_unit_table, allocate_type_unit_groups_table,
14853 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
14854 Remove objfile parameter, update all callers.
14856 2020-02-19 Doug Evans <dje@google.com>
14859 * rust-lang.c (rust_print_enum): Apply embedded_offset to
14860 rust_enum_variant calculation.
14862 2020-02-19 Tom Tromey <tromey@adacore.com>
14864 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
14866 2020-02-19 Tom Tromey <tromey@adacore.com>
14868 * ada-lang.c (cache_symbol): Use obstack_strdup.
14870 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
14872 * configure: Regenerate.
14874 2020-02-19 Tom Tromey <tromey@adacore.com>
14876 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
14879 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
14881 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
14883 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
14885 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
14886 if GDBSERVER is not defined.
14887 (riscv_tdesc_cache): Likewise, also store const target_desc.
14888 (STATIC_IN_GDB): Define.
14889 (riscv_create_target_description): Update declaration with
14891 (riscv_lookup_target_description): New function, only define if
14892 GDBSERVER is not defined.
14893 * arch/riscv.h (riscv_create_target_description): Declare only
14894 when GDBSERVER is defined.
14895 (riscv_lookup_target_description): New declaration when GDBSERVER
14897 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
14898 (riscv_linux_read_features): ...this, and return
14899 riscv_gdbarch_features instead of target_desc.
14900 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
14901 (riscv_linux_read_description): Rename to...
14902 (riscv_linux_read_features): ...this.
14903 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
14904 Update to use riscv_gdbarch_features and
14905 riscv_lookup_target_description.
14906 * riscv-tdep.c (riscv_find_default_target_description): Use
14907 riscv_lookup_target_description instead of
14908 riscv_create_target_description.
14910 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14912 * valprint.c (generic_val_print_enum_1): When printing a flag
14913 enum with value 0 and there is no enumerator with value 0, print
14914 just "0" instead of "(unknown: 0x0)".
14916 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14918 * valprint.c (generic_val_print_enum_1): Print unknown part of
14921 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14923 * dwarf2/read.c (update_enumeration_type_from_children): Allow
14924 flag enums to contain duplicate enumerators.
14925 * valprint.c (generic_val_print_enum_1): Update comment.
14927 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14929 * dwarf2/read.c: Include "count-one-bits.h".
14930 (update_enumeration_type_from_children): If an enumerator has
14931 multiple bits set, don't treat the enumeration as a "flag enum".
14932 * valprint.c (generic_val_print_enum_1): Assert that enumerators
14933 of flag enums have 0 or 1 bit set.
14935 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
14937 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
14939 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14940 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
14941 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14942 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
14943 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14945 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14947 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
14949 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
14951 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
14952 displaced_step_closure_up.
14953 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
14954 (struct displaced_step_closure_up):
14955 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14956 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
14957 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
14959 * gdbarch.sh (displaced_step_copy_insn): Likewise.
14960 * gdbarch.c, gdbarch.h: Re-generate.
14961 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
14962 displaced_step_closure_up.
14963 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14964 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
14965 * infrun.h (displaced_step_closure_up): New type alias.
14966 (struct displaced_step_inferior_state) <step_closure>: Change
14967 type to displaced_step_closure_up.
14968 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
14969 displaced_step_closure_up.
14970 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14972 2020-02-14 Tom Tromey <tom@tromey.com>
14974 * minidebug.c (gnu_debug_key): New global.
14975 (find_separate_debug_file_in_section): Use it.
14977 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
14979 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
14981 * gdbarch.c: Re-generate.
14982 * gdbarch.h: Re-generate.
14983 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
14985 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
14986 type to std::unique_ptr.
14987 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
14988 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14989 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
14990 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
14991 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
14992 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14993 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
14994 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
14995 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14997 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
14999 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
15001 (displaced_step_clear): Rename to...
15002 (displaced_step_reset): ... this. Just call displaced->reset ().
15003 (displaced_step_clear_cleanup): Rename to...
15004 (displaced_step_reset_cleanup): ... this.
15005 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
15006 (displaced_step_fixup): Likewise.
15007 (resume_1): Likewise.
15008 (handle_inferior_event): Restore child's memory before calling
15009 displaced_step_fixup on the parent.
15010 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
15011 to std::unique_ptr.
15012 <step_closure>: Change type to std::unique_ptr.
15014 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
15016 * arm-tdep.c: Include count-one-bits.h.
15017 (cleanup_block_store_pc): Use count_one_bits.
15018 (cleanup_block_load_pc): Use count_one_bits.
15019 (arm_copy_block_xfer): Use count_one_bits.
15020 (thumb2_copy_block_xfer): Use count_one_bits.
15021 (thumb_copy_pop_pc_16bit): Use count_one_bits.
15022 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
15023 (thumb_get_next_pcs_raw): Use count_one_bits.
15024 (arm_get_next_pcs_raw): Use count_one_bits_l.
15025 * arch/arm.c (bitcount): Remove.
15026 * arch/arm.h (bitcount): Remove.
15028 2020-02-14 Tom Tromey <tromey@adacore.com>
15030 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
15032 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
15033 * dwarf2/loc.c (call_site_find_chain_1): Return
15034 unique_xmalloc_ptr.
15035 (call_site_find_chain): Likewise.
15037 2020-02-14 Richard Biener <rguenther@suse.de>
15039 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
15040 on expression with division operators.
15042 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
15044 * MAINTAINERS (Write After Approval): Adding myself.
15046 2020-02-12 Tom Tromey <tom@tromey.com>
15048 * event-loop.c (event_data, gdb_event, event_handler_func):
15051 2020-02-12 Tom Tromey <tom@tromey.com>
15053 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
15054 (dwarf2_frame_objfile_data): Add comment.
15055 (find_comp_unit, set_comp_unit): New functions.
15056 (dwarf2_frame_find_fde): Use find_comp_unit.
15057 (dwarf2_build_frame_info): Use set_comp_unit.
15059 2020-02-12 Tom Tromey <tom@tromey.com>
15061 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
15062 (comp_unit): Don't initialize objfile.
15063 (execute_cfa_program): Add text_offset parameter.
15064 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
15065 (dwarf2_frame_cache): Update.
15066 (dwarf2_build_frame_info): Don't set "objfile" member.
15068 2020-02-12 Tom Tromey <tom@tromey.com>
15070 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
15071 (decode_frame_entry): Likewise.
15072 (dwarf2_build_frame_info): Update.
15074 2020-02-12 Tom Tromey <tom@tromey.com>
15076 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
15077 (decode_frame_entry_1): Use the comp_unit obstack.
15079 2020-02-12 Tom Tromey <tom@tromey.com>
15081 * dwarf2/frame.c (struct comp_unit): Add initializers and
15083 (dwarf2_frame_objfile_data): Store a comp_unit.
15084 (dwarf2_frame_find_fde): Update.
15085 (dwarf2_build_frame_info): Use "new".
15087 2020-02-12 Tom Tromey <tom@tromey.com>
15089 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
15090 (dwarf2_fde_table): Typedef for std::vector.
15091 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
15092 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
15093 (decode_frame_entry): Update.
15094 (dwarf2_build_frame_info): Use "new".
15096 2020-02-12 Christian Biesinger <cbiesinger@google.com>
15098 * arm-tdep.c (arm_gdbarch_init): Update.
15099 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
15100 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
15101 have_neon, is_m>: Change to bool.
15103 2020-02-12 Christian Biesinger <cbiesinger@google.com>
15105 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
15107 2020-02-12 Tom Tromey <tom@tromey.com>
15109 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
15111 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
15113 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
15114 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
15116 2020-02-11 Tom Tromey <tom@tromey.com>
15118 * psymtab.h: Update comment.
15120 2020-02-11 Tom Tromey <tom@tromey.com>
15122 * gdb_obstack.h (struct auto_obstack): Use
15123 DISABLE_COPY_AND_ASSIGN.
15125 2020-02-11 Tom Tromey <tom@tromey.com>
15127 * dwarf2/frame.h (struct objfile): Don't forward declare.
15129 2020-02-11 Christian Biesinger <cbiesinger@google.com>
15131 * cris-tdep.c (cris_supply_gregset): Change signature to match
15132 what struct regset expects.
15133 (cris_regset): New struct.
15134 (fetch_core_registers): Remove.
15135 (cris_iterate_over_regset_sections): New function.
15136 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
15137 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
15139 2020-02-11 Christian Biesinger <cbiesinger@google.com>
15141 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
15144 2020-02-11 Christian Biesinger <cbiesinger@google.com>
15146 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
15148 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
15150 * configure: Re-generate.
15152 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
15154 * configure: Re-generate.
15156 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
15158 * acinclude: Update warning.m4 path.
15159 * warning.m4: Move to gdbsupport.
15161 2020-02-11 Tom Tromey <tromey@adacore.com>
15163 * remote.c (remote_console_output): Update.
15164 * printcmd.c (printf_command): Update.
15165 * event-loop.c (gdb_wait_for_event): Update.
15166 * linux-nat.c (sigchld_handler): Update.
15167 * remote-sim.c (gdb_os_write_stdout): Update.
15168 (gdb_os_flush_stdout): Update.
15169 (gdb_os_flush_stderr): Update.
15170 (gdb_os_write_stderr): Update.
15171 * exceptions.c (print_exception): Update.
15172 * remote-fileio.c (remote_fileio_func_read): Update.
15173 (remote_fileio_func_write): Update.
15174 * tui/tui.c (tui_enable): Update.
15175 * tui/tui-interp.c (tui_interp::init): Update.
15176 * utils.c (init_page_info): Update.
15177 (putchar_unfiltered, fputc_unfiltered): Update.
15178 (gdb_flush): Update.
15179 (emit_style_escape): Update.
15180 (flush_wrap_buffer, fputs_maybe_filtered): Update.
15181 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
15182 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
15183 (stderr_file::write): Update.
15184 (stderr_file::puts): Update.
15185 * ui-file.h (ui_file_isatty, ui_file_write)
15186 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
15187 (ui_file_puts): Don't declare.
15189 2020-02-10 Tom de Vries <tdevries@suse.de>
15191 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
15192 sentinel to char *.
15194 2020-02-09 Tom de Vries <tdevries@suse.de>
15196 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
15197 filename if it matches "<artificial>".
15199 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
15201 * windows-tdep.c (struct enum_value_name): New struct.
15202 (create_enum): New function.
15203 (windows_get_siginfo_type): Create and use enum types.
15205 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
15207 * NEWS: Mention $_siginfo support for Windows.
15208 * windows-nat.c (handle_exception): Set siginfo_er.
15209 (windows_nat_target::mourn_inferior): Reset siginfo_er.
15210 (windows_xfer_siginfo): New function.
15211 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
15212 * windows-tdep.c (struct windows_gdbarch_data): New struct.
15213 (init_windows_gdbarch_data): New function.
15214 (get_windows_gdbarch_data): New function.
15215 (windows_get_siginfo_type): New function.
15216 (windows_init_abi): Register windows_get_siginfo_type.
15217 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
15219 2020-02-08 Tom Tromey <tom@tromey.com>
15221 * dwarf2/read.c (class cutu_reader) <cutu_reader,
15222 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
15223 <keep>: Declare method.
15224 <m_keep>: Remove member.
15225 <~cutu_reader>: Remove.
15226 (cutu_reader::init_tu_and_read_dwo_dies): Update.
15227 (cutu_reader::cutu_reader): Update.
15228 (cutu_reader::keep): Rename from ~cutu_reader.
15229 (process_psymtab_comp_unit, build_type_psymtabs_1)
15230 (process_skeletonless_type_unit, load_partial_comp_unit)
15231 (load_full_comp_unit, dwarf2_read_addr_index)
15232 (read_signatured_type): Update.
15234 2020-02-08 Tom Tromey <tom@tromey.com>
15236 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
15237 "want_partial_unit" parameter.
15238 (process_psymtab_comp_unit): Change want_partial_unit to bool.
15239 Inline check for DW_TAG_partial_unit.
15240 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
15242 2020-02-08 Tom Tromey <tom@tromey.com>
15244 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
15246 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
15249 2020-02-08 Tom Tromey <tom@tromey.com>
15251 * dwarf2/read.c (read_address): Move to comp-unit.c.
15252 (dwarf2_rnglists_process, dwarf2_ranges_process)
15253 (read_attribute_value, dwarf_decode_lines_1)
15254 (var_decode_location, decode_locdesc): Update.
15255 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
15256 read.c. Remove "cu" parameter.
15257 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
15260 2020-02-08 Tom Tromey <tom@tromey.com>
15262 * dwarf2/read.c (read_attribute_value, read_indirect_string)
15263 (read_indirect_line_string): Update.
15264 * dwarf2/comp-unit.c (read_offset): Remove.
15265 (read_comp_unit_head): Update.
15266 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
15268 (read_offset): Don't declare.
15270 2020-02-08 Tom Tromey <tom@tromey.com>
15272 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
15273 * dwarf2/read.c (struct comp_unit_head): Move to
15274 dwarf2/comp-unit.h.
15275 (enum class rcuh_kind): Move to comp-unit.h.
15276 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
15277 (read_comp_unit_head, error_check_comp_unit_head)
15278 (read_and_check_comp_unit_head): Move to comp-unit.c.
15279 (read_offset, dwarf_unit_type_name): Likewise.
15280 (create_debug_type_hash_table, read_cutu_die_from_dwo)
15281 (cutu_reader::cutu_reader, read_call_site_scope)
15282 (find_partial_die, follow_die_offset): Update.
15283 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
15285 2020-02-08 Tom Tromey <tom@tromey.com>
15287 * dwarf2/read.c (read_offset_1): Move to leb.c.
15288 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
15289 (dwarf_decode_macro_bytes): Update.
15290 * dwarf2/leb.c (read_offset): Rename; move from read.c.
15291 * dwarf2/leb.h (read_offset): Declare.
15293 2020-02-08 Tom Tromey <tom@tromey.com>
15295 * dwarf2/read.c (dwarf2_section_size): Remove.
15296 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
15298 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
15300 2020-02-08 Tom Tromey <tom@tromey.com>
15302 * dwarf2/read.c (read_initial_length): Move to leb.c.
15303 * dwarf2/leb.h (read_initial_length): Declare.
15304 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
15305 handle_nonstd parameter.
15306 * dwarf2/frame.c (read_initial_length): Remove.
15307 (decode_frame_entry_1): Update.
15309 2020-02-08 Tom Tromey <tom@tromey.com>
15311 * dwarf2/loc.c (dwarf2_find_location_expression)
15312 (dwarf_evaluate_loc_desc::get_tls_address)
15313 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
15314 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
15315 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
15316 (dwarf2_compile_property_to_c)
15317 (dwarf2_loc_desc_get_symbol_read_needs)
15318 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
15319 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
15320 (loclist_describe_location, loclist_tracepoint_var_ref)
15321 (loclist_generate_c_location): Update.
15322 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
15323 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
15324 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
15325 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
15326 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
15327 (dwarf2_per_cu_data::addr_size)
15328 (dwarf2_per_cu_data::ref_addr_size)
15329 (dwarf2_per_cu_data::text_offset)
15330 (dwarf2_per_cu_data::addr_type): Now methods.
15331 (per_cu_header_read_in): Make per_cu "const".
15332 (dwarf2_version): Remove.
15333 (dwarf2_per_cu_data::int_type): Now a method.
15334 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
15335 (set_die_type, read_array_type, read_subrange_index_type)
15336 (read_tag_string_type, read_subrange_type): Update.
15337 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
15338 offset_size, ref_addr_size, text_offset, addr_type, version,
15339 objfile, int_type, addr_sized_int_type>: Declare methods.
15341 2020-02-08 Tom Tromey <tom@tromey.com>
15343 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
15346 2020-02-08 Tom Tromey <tom@tromey.com>
15348 * dwarf2/read.h (dwarf_line_debug): Declare.
15349 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
15350 * dwarf2/read.c: Move line_header code to new files.
15351 (dwarf_line_debug): No longer static.
15352 * dwarf2/line-header.c: New file.
15353 * dwarf2/line-header.h: New file.
15355 2020-02-08 Tom Tromey <tom@tromey.com>
15357 * dwarf2/read.c (struct line_header) <file_full_name,
15358 file_file_name>: Return unique_xmalloc_ptr.
15359 (line_header::file_file_name): Update.
15360 (line_header::file_full_name): Update.
15361 (dw2_get_file_names_reader): Update.
15362 (macro_start_file): Update.
15364 2020-02-08 Tom Tromey <tom@tromey.com>
15366 * dwarf2/read.c (struct line_header) <file_full_name,
15367 file_file_name>: Declare methods.
15368 (dw2_get_file_names_reader): Update.
15369 (file_file_name): Now a method.
15370 (file_full_name): Likewise.
15371 (macro_start_file): Update.
15373 2020-02-08 Tom Tromey <tom@tromey.com>
15375 * dwarf2/read.c (dwarf_always_disassemble)
15376 (show_dwarf_always_disassemble): Move to loc.c.
15377 (_initialize_dwarf2_read): Move "always-disassemble" registration
15379 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
15380 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
15382 (show_dwarf_always_disassemble): Move from read.c.
15383 (_initialize_dwarf2loc): Move always-disassemble from read.c.
15385 2020-02-08 Tom Tromey <tom@tromey.com>
15387 * dwarf2/read.c (~dwarf2_per_objfile): Update.
15388 (create_quick_file_names_table): Return htab_up.
15389 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
15391 * dwarf2/read.h (struct dwarf2_per_objfile)
15392 <quick_file_names_table>: Now htab_up.
15394 2020-02-08 Tom Tromey <tom@tromey.com>
15396 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
15398 2020-02-08 Tom Tromey <tom@tromey.com>
15400 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
15402 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
15403 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
15404 (abbrev_table::abbrev_table): No longer inline.
15405 (ABBREV_HASH_SIZE): Remove.
15406 (abbrev_table::m_abbrevs): Now an htab_up.
15408 2020-02-08 Tom Tromey <tom@tromey.com>
15410 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
15411 (cutu_reader): Update.
15412 (build_type_psymtabs_1): Update.
15413 * dwarf2/abbrev.c (abbrev_table::read): Rename.
15414 (abbrev_table::alloc_abbrev): Update.
15415 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
15416 (abbrev_table::read): New static method, renamed from
15417 abbrev_table_read_table.
15418 (abbrev_table::alloc_abbrev)
15419 (abbrev_table::add_abbrev): Now private.
15420 (abbrev_table::abbrev_table): Now private.
15421 (abbrev_table::m_abbrev_obstack): Now private. Rename.
15423 2020-02-08 Tom Tromey <tom@tromey.com>
15425 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
15426 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
15429 2020-02-08 Tom Tromey <tom@tromey.com>
15431 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
15433 (lookup_dwo_unit_in_dwp): Update.
15434 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
15437 2020-02-08 Tom Tromey <tom@tromey.com>
15439 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
15442 2020-02-08 Tom Tromey <tom@tromey.com>
15444 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
15446 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
15447 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
15448 Change type to htab_up.
15450 2020-02-08 Tom Tromey <tom@tromey.com>
15452 * dwarf2/read.c (allocate_type_unit_groups_table): Return
15453 htab_up. Don't allocate on obstack.
15454 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
15455 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
15456 Change type to htab_up.
15458 2020-02-08 Tom Tromey <tom@tromey.com>
15460 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
15461 Change type to htab_up.
15462 * dwarf2/read.c (create_signatured_type_table_from_index)
15463 (create_signatured_type_table_from_debug_names)
15464 (create_all_type_units, add_type_unit)
15465 (lookup_dwo_signatured_type, lookup_signatured_type)
15466 (process_skeletonless_type_unit): Update.
15467 (create_debug_type_hash_table, create_debug_types_hash_table):
15468 Change type of types_htab.
15469 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
15470 htab_up. Don't allocate on obstack.
15471 (create_cus_hash_table): Change type of cus_htab parameter.
15472 (struct dwo_file) <cus, tus>: Now htab_up.
15473 (lookup_dwo_signatured_type, lookup_dwo_cutu)
15474 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
15475 (queue_and_load_all_dwo_tus): Update.
15476 * dwarf2/index-write.c (write_gdbindex): Update.
15477 (write_debug_names): Update.
15479 2020-02-08 Tom Tromey <tom@tromey.com>
15481 * dwarf2/read.h (struct dwarf2_queue_item): Move from
15482 dwarf2/read.c. Remove "next" member. Add constructor ntad
15484 (struct dwarf2_per_objfile) <queue>: New member.
15485 * dwarf2/read.c (struct dwarf2_queue_item): Move to
15487 (dwarf2_queue, dwarf2_queue_tail): Remove.
15488 (class dwarf2_queue_guard): Add parameter to constructor. Use
15489 DISABLE_COPY_AND_ASSIGN.
15490 <m_per_objfile>: New member.
15491 <~dwarf2_queue_guard>: Rewrite.
15492 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
15494 (~dwarf2_queue_item): New.
15496 2020-02-08 Tom Tromey <tom@tromey.com>
15498 * dwarf2/read.c (struct die_info) <has_children>: New member.
15499 (dw2_get_file_names_reader): Remove has_children.
15500 (dw2_get_file_names): Update.
15501 (read_cutu_die_from_dwo): Remove has_children.
15502 (cutu_reader::init_tu_and_read_dwo_dies)
15503 (cutu_reader::cutu_reader): Update.
15504 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
15505 Remove has_children.
15506 (build_type_psymtabs_1, process_skeletonless_type_unit)
15507 (load_partial_comp_unit, load_full_comp_unit): Update.
15508 (create_dwo_cu_reader): Remove has_children.
15509 (create_cus_hash_table, read_die_and_children): Update.
15510 (read_full_die_1,read_full_die): Remove has_children.
15511 (read_signatured_type): Update.
15512 (class cutu_reader) <has_children>: Remove.
15514 2020-02-08 Tom Tromey <tom@tromey.com>
15516 * dwarf2/expr.c: Rename from dwarf2expr.c.
15517 * dwarf2/expr.h: Rename from dwarf2expr.h.
15518 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
15519 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
15520 * dwarf2/frame.c: Rename from dwarf2-frame.c.
15521 * dwarf2/frame.h: Rename from dwarf2-frame.h.
15522 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
15523 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
15524 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
15525 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
15526 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
15527 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
15528 * dwarf2/loc.c: Rename from dwarf2loc.c.
15529 * dwarf2/loc.h: Rename from dwarf2loc.h.
15530 * dwarf2/read.c: Rename from dwarf2read.c.
15531 * dwarf2/read.h: Rename from dwarf2read.h.
15532 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
15533 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
15534 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
15535 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
15536 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
15537 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
15538 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
15539 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
15540 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
15541 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
15542 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
15543 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
15544 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
15546 * Makefile.in (COMMON_SFILES): Update.
15547 (HFILES_NO_SRCDIR): Update.
15549 2020-02-08 Tom Tromey <tom@tromey.com>
15551 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
15552 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
15554 2020-02-08 Tom Tromey <tom@tromey.com>
15556 * dwarf2read.h (struct die_info): Don't declare.
15558 2020-02-08 Tom Tromey <tom@tromey.com>
15560 * dwarf2read.h (die_info_ptr): Remove typedef.
15562 2020-02-08 Tom Tromey <tom@tromey.com>
15564 * dwarf2read.c (read_call_site_scope)
15565 (handle_data_member_location, dwarf2_add_member_fn)
15566 (mark_common_block_symbol_computed, read_common_block)
15567 (attr_to_dynamic_prop, partial_die_info::read)
15568 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
15569 (dwarf2_symbol_mark_computed, set_die_type): Update.
15570 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
15572 (attr_form_is_block): Don't declare.
15573 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
15575 2020-02-08 Tom Tromey <tom@tromey.com>
15577 * dwarf2read.c (dwarf2_find_base_address, )
15578 (read_call_site_scope, rust_containing_type)
15579 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
15580 (handle_data_member_location, dwarf2_add_member_fn)
15581 (get_alignment, read_structure_type, process_structure_scope)
15582 (mark_common_block_symbol_computed, read_common_block)
15583 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
15584 (partial_die_info::read, read_attribute_value, new_symbol)
15585 (lookup_die_type, dwarf2_get_ref_die_offset)
15586 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
15587 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
15588 (dwarf2_symbol_mark_computed): Update.
15589 * dwarf2/attribute.h (struct attribute) <value_as_address,
15590 form_is_section_offset, form_is_constant, form_is_ref>: Declare
15592 (value_as_address, attr_form_is_section_offset)
15593 (attr_form_is_constant, attr_form_is_ref): Don't declare.
15594 * dwarf2/attribute.c (attribute::value_as_address)
15595 (attribute::form_is_section_offset, attribute::form_is_constant)
15596 (attribute::form_is_ref): Now methods.
15598 2020-02-08 Tom Tromey <tom@tromey.com>
15600 * dwarf2read.c (struct attribute, DW_STRING)
15601 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
15602 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
15603 (attr_form_is_block, attr_form_is_section_offset)
15604 (attr_form_is_constant, attr_form_is_ref): Move.
15605 * dwarf2/attribute.h: New file.
15606 * dwarf2/attribute.c: New file, from dwarf2read.c.
15607 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
15609 2020-02-08 Tom Tromey <tom@tromey.com>
15611 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
15612 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
15614 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
15615 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
15616 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
15618 * dwarf2/abbrev.h: New file.
15619 * dwarf2/abbrev.c: New file, from dwarf2read.c.
15620 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
15622 2020-02-08 Tom Tromey <tom@tromey.com>
15624 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
15625 (dwarf2_section_size, dwarf2_get_section_info)
15626 (create_signatured_type_table_from_debug_names)
15627 (create_addrmap_from_aranges, read_debug_names_from_section)
15628 (get_gdb_index_contents_from_section, read_comp_unit_head)
15629 (error_check_comp_unit_head, read_abbrev_offset)
15630 (create_debug_type_hash_table, init_cu_die_reader)
15631 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
15632 (read_comp_units_from_section, create_cus_hash_table)
15633 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
15634 (create_dwp_v2_section, dwarf2_rnglists_process)
15635 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
15636 (abbrev_table_read_table, read_indirect_string_at_offset_from)
15637 (read_indirect_string_from_dwz, read_addr_index_1)
15638 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
15639 (dwarf_decode_macro_bytes, dwarf_decode_macros)
15640 (fill_in_loclist_baton): Update.
15641 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
15642 get_containing_section, get_bfd_owner, get_bfd_section,
15643 get_file_name, get_id, get_flags, empty, read>: Declare methods.
15644 (dwarf2_read_section, get_section_name, get_section_file_name)
15645 (get_containing_section, get_section_bfd_owner)
15646 (get_section_bfd_section, get_section_name, get_section_file_name)
15647 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
15649 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
15650 (dwarf2_section_info::get_bfd_owner)
15651 (dwarf2_section_info::get_bfd_section)
15652 (dwarf2_section_info::get_name)
15653 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
15654 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
15655 (dwarf2_section_info::read): Now methods.
15656 * dwarf-index-write.c (class debug_names): Update.
15658 2020-02-08 Tom Tromey <tom@tromey.com>
15660 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
15661 Move to dwarf2/section.h.
15662 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
15663 (get_section_bfd_section, get_section_name)
15664 (get_section_file_name, get_section_id, get_section_flags)
15665 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
15667 * dwarf2/section.h: New file.
15668 * dwarf2/section.c: New file, from dwarf2read.c.
15669 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
15671 2020-02-08 Tom Tromey <tom@tromey.com>
15673 * dwarf2read.h (read_unsigned_leb128): Don't declare.
15674 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
15675 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
15676 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
15677 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
15678 * dwarf2/leb.h: New file, from dwarf2read.c.
15679 * dwarf2/leb.c: New file, from dwarf2read.c.
15680 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
15682 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
15683 (COMMON_SFILES): Add dwarf2/leb.c.
15685 2020-02-08 Joel Brobecker <brobecker@adacore.com>
15689 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
15692 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
15693 * gdb/remote.c (remote_console_output): Update.
15694 * gdb/ui-file.c (fputs_unfiltered): Rename to...
15695 (ui_file_puts): ...this.
15696 * gdb/ui-file.h (ui_file_puts): Add declaration.
15697 * gdb/utils.c (emit_style_escape): Update.
15698 (flush_wrap_buffer): Update.
15699 (fputs_maybe_filtered): Update.
15700 (fputs_unfiltered): Add function.
15702 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
15704 * gdb/event-loop.c (gdb_wait_for_event): Update.
15705 * gdb/printcmd.c (printf_command): Update.
15706 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
15707 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
15708 (gdb_os_flush_stderr): Update.
15709 * gdb/remote.c (remote_console_output): Update.
15710 * gdb/ui-file.c (gdb_flush): Rename to...
15711 (ui_file_flush): ...this.
15712 (stderr_file::write): Update.
15713 (stderr_file::puts): Update.
15714 * gdb/ui-file.h (gdb_flush): Rename to...
15715 (ui_file_flush): ...this.
15716 * gdb/utils.c (gdb_flush): Add function.
15717 * gdb/utils.h (gdb_flush): Add declaration.
15719 2020-02-07 Tom Tromey <tromey@adacore.com>
15721 PR breakpoints/24915:
15722 * source.c (find_and_open_source): Do not check basenames_may_differ.
15724 2020-02-07 Tom Tromey <tom@tromey.com>
15726 * README: Update gdbserver documentation.
15727 * gdbserver: Move to top level.
15728 * configure.tgt (build_gdbserver): Remove.
15729 * configure.ac: Remove --enable-gdbserver.
15730 * configure: Rebuild.
15731 * Makefile.in (distclean): Don't mention gdbserver.
15733 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
15735 * source-cache.c (source_cache::ensure): Surround
15736 get_plain_source_lines with a try/catch.
15737 (source_cache::get_line_charpos): Get rid of try/catch
15738 and only check for the return value of "ensure".
15739 * tui/tui-source.c (tui_source_window::set_contents):
15740 Simplify "nlines" calculation.
15742 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
15744 * MAINTAINERS (Write After Approval): Add myself.
15746 2020-02-05 Christian Biesinger <cbiesinger@google.com>
15748 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
15751 2020-02-05 Christian Biesinger <cbiesinger@google.com>
15753 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
15755 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
15757 * nat/riscv-linux-tdesc.h: New file.
15758 * nat/riscv-linux-tdesc.c: New file, taking code from...
15759 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
15761 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
15764 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
15766 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
15767 we don't set the fake simulator ptid to the null_ptid.
15769 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
15771 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
15772 * gdbthread.h (class thread_info) <resumed>: Likewise.
15773 * infrun.c (resume_1): Likewise.
15774 (proceed): Likewise.
15775 (infrun_thread_stop_requested): Likewise.
15776 (stop_all_threads): Likewise.
15777 (handle_inferior_event): Likewise.
15778 (restart_threads): Likewise.
15779 (finish_step_over): Likewise.
15780 (keep_going_stepped_thread): Likewise.
15781 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
15782 (linux_handle_extended_wait): Likewise.
15783 * record-btrace.c (get_thread_current_frame_id): Likewise.
15784 * record-full.c (record_full_wait_1): Likewise.
15785 * remote.c (remote_target::process_initial_stop_replies): Likewise.
15786 * target.c (target_resume): Likewise.
15787 * thread.c (set_running_thread): Likewise.
15789 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
15791 * f-valprint.c (f77_print_array_1): Changed datatype of index
15792 variable to LONGEST from int to enable it to contain bound
15795 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
15797 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
15798 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
15799 offsets according to FLEN determined.
15800 (riscv_linux_nat_target::read_description): Determine FLEN
15802 (riscv_linux_nat_target::fetch_registers): Size regset buffer
15803 according to FLEN determined.
15804 (riscv_linux_nat_target::store_registers): Likewise.
15806 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
15808 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
15809 when reg->group is empty and reggroup is not.
15811 2020-01-31 Tom Tromey <tromey@adacore.com>
15813 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
15814 Call beneath target's mourn_inferior after unpushing.
15816 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
15819 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
15820 have enough lines to fill the screen, still return the lowest
15823 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
15825 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
15826 '-', '<', and '>' commands.
15828 2020-01-29 Pedro Alves <palves@redhat.com>
15829 Sergio Durigan Junior <sergiodj@redhat.com>
15831 * infcmd.c (construct_inferior_arguments): Assert that
15832 'argc' is greater than 0.
15834 2020-01-29 Luis Machado <luis.machado@linaro.org>
15836 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
15837 (BRK_INSN_MASK): Define to 0xd4200000.
15838 (aarch64_program_breakpoint_here_p): New function.
15839 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
15840 * arch-utils.c (default_program_breakpoint_here_p): Moved from
15842 * arch-utils.h (default_program_breakpoint_here_p): Moved from
15844 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
15845 call gdbarch_program_breakpoint_here_p.
15846 (program_breakpoint_here): Moved to arch-utils.c, renamed to
15847 default_program_breakpoint_here_p, changed return type to bool and
15849 * breakpoint.h (program_breakpoint_here): Moved prototype to
15850 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
15851 return type to bool.
15852 * gdbarch.c: Regenerate.
15853 * gdbarch.h: Regenerate.
15854 * gdbarch.sh (program_breakpoint_here_p): New method.
15855 * infrun.c (handle_signal_stop): Call
15856 gdbarch_program_breakpoint_here_p.
15858 2020-01-26 Tom Tromey <tom@tromey.com>
15860 * ctfread.c (struct ctf_fp_info): Reindent.
15861 (_initialize_ctfread): Remove.
15863 2020-01-26 Tom Tromey <tom@tromey.com>
15865 * psymtab.c (partial_map_expand_apply)
15866 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
15867 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
15868 (psym_print_stats, psym_expand_symtabs_for_function)
15869 (psym_map_symbol_filenames, psym_map_matching_symbols)
15870 (psym_expand_symtabs_matching)
15871 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
15872 (maintenance_check_psymtabs): Use new methods.
15873 * psympriv.h (struct partial_symtab) <readin_p,
15874 get_compunit_symtab>: New methods.
15875 <readin, compunit_symtab>: Remove members.
15876 (struct standard_psymtab): New.
15877 (struct legacy_psymtab): Derive from standard_psymtab.
15878 * dwarf2read.h (struct dwarf2_psymtab): Derive from
15880 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
15882 2020-01-26 Tom Tromey <tom@tromey.com>
15884 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
15885 read_dependencies. Add assert.
15886 * psymtab.c (partial_symtab::read_dependencies): New method.
15887 * psympriv.h (struct partial_symtab) <read_dependencies>: New
15889 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
15890 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
15892 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
15895 2020-01-26 Tom Tromey <tom@tromey.com>
15897 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
15898 Call expand_psymtab.
15899 (xcoff_read_symtab): Call expand_psymtab.
15900 (xcoff_start_psymtab, xcoff_end_psymtab): Set
15901 legacy_expand_psymtab.
15902 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
15904 (struct legacy_psymtab) <expand_psymtab>: Implement.
15905 <legacy_expand_psymtab>: New member.
15906 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
15907 (parse_partial_symbols): Set legacy_expand_psymtab.
15908 (psymtab_to_symtab_1): Change argument order. Call
15910 (new_psymtab): Set legacy_expand_psymtab.
15911 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
15912 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
15914 (dwarf2_psymtab::expand_psymtab): Rename from
15915 psymtab_to_symtab_1. Call expand_psymtab.
15916 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
15917 (dbx_end_psymtab): Likewise.
15918 (dbx_psymtab_to_symtab_1): Change argument order. Call
15920 (dbx_read_symtab): Call expand_psymtab.
15921 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
15922 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
15923 (ctf_psymtab::read_symtab): Call expand_psymtab.
15925 2020-01-26 Tom Tromey <tom@tromey.com>
15927 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
15928 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
15930 * mdebugread.c (mdebug_read_symtab): Remove prints.
15931 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
15933 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
15935 2020-01-26 Tom Tromey <tom@tromey.com>
15937 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
15938 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
15939 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
15941 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
15942 * psymtab.c (psymtab_to_symtab): Call method.
15943 (dump_psymtab): Update.
15944 * psympriv.h (struct partial_symtab): Add virtual destructor.
15945 <read_symtab>: New method.
15946 (struct legacy_symtab): New.
15947 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
15948 (struct pst_map) <pst>: Now a legacy_psymtab.
15949 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
15950 (new_psymtab): Use legacy_psymtab.
15951 * dwarf2read.h (struct dwarf2_psymtab): New.
15952 (struct dwarf2_per_cu_data) <psymtab>: Use it.
15953 * dwarf2read.c (dwarf2_create_include_psymtab)
15954 (dwarf2_build_include_psymtabs, create_type_unit_group)
15955 (create_partial_symtab, process_psymtab_comp_unit_reader)
15956 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
15957 (set_partial_user): Use dwarf2_psymtab.
15958 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
15959 (psymtab_to_symtab_1, process_full_comp_unit)
15960 (process_full_type_unit, dwarf2_ranges_read)
15961 (dwarf2_get_pc_bounds, psymtab_include_file_name)
15962 (dwarf_decode_lines): Use dwarf2_psymtab.
15963 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
15964 (add_address_entry_worker, write_one_signatured_type)
15965 (recursively_count_psymbols, recursively_write_psymbols)
15966 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
15967 (write_debug_names): Likewise.
15968 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
15969 <pst>: Now a legacy_psymtab.
15970 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
15971 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
15972 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
15973 * ctfread.c (struct ctf_psymtab): New.
15974 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
15976 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
15977 (create_partial_symtab): Return a ctf_psymtab.
15978 (scan_partial_symbols): Update.
15980 2020-01-26 Tom Tromey <tom@tromey.com>
15982 * xcoffread.c (xcoff_start_psymtab): Use new.
15983 * psymtab.c (partial_symtab::partial_symtab): New constructor,
15984 renamed from start_psymtab_common.
15985 * psympriv.h (struct partial_symtab): Add new constructor.
15986 (start_psymtab_common): Don't declare.
15987 * mdebugread.c (parse_partial_symbols): Use new.
15988 * dwarf2read.c (create_partial_symtab): Use new.
15989 * dbxread.c (start_psymtab): Use new.
15990 * ctfread.c (create_partial_symtab): Use new.
15992 2020-01-26 Tom Tromey <tom@tromey.com>
15994 * xcoffread.c (xcoff_end_psymtab): Use new.
15995 * psymtab.c (start_psymtab_common): Use new.
15996 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
15998 * psympriv.h (struct partial_symtab): Add parameters to
15999 constructor. Don't inline.
16000 (allocate_psymtab): Don't declare.
16001 * mdebugread.c (new_psymtab): Use new.
16002 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
16003 * dbxread.c (dbx_end_psymtab): Use new.
16005 2020-01-26 Tom Tromey <tom@tromey.com>
16007 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
16008 allocate_psymtab. Update documentation.
16009 * psymtab.c (psymtab_storage::install_psymtab): Rename from
16010 allocate_psymtab. Do not use new.
16011 (allocate_psymtab): Use new. Update.
16013 2020-01-26 Tom Tromey <tom@tromey.com>
16015 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
16016 * psymtab.c (psym_print_stats): Update.
16017 * psympriv.h (struct partial_symtab) <readin,
16018 psymtabs_addrmap_supported, anonymous>: Now bool.
16019 * mdebugread.c (psymtab_to_symtab_1): Update.
16020 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
16021 (build_type_psymtabs_reader, psymtab_to_symtab_1)
16022 (process_full_comp_unit, process_full_type_unit): Update.
16023 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
16024 * ctfread.c (psymtab_to_symtab): Update.
16026 2020-01-26 Tom Tromey <tom@tromey.com>
16028 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
16029 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
16030 * psymtab.c (psymtab_storage): Delete psymtabs.
16031 (psymtab_storage::allocate_psymtab): Use new.
16032 (psymtab_storage::discard_psymtab): Use delete.
16033 * psympriv.h (struct partial_symtab): Add constructor and
16036 2020-01-26 Tom Tromey <tom@tromey.com>
16038 * machoread.c: Do not include psympriv.h.
16040 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16042 * NEWS: Mention the new option and the set/show commands.
16044 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16046 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
16047 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
16048 (validate_exec_file): New variables, enums, functions.
16049 (exec_file_locate_attach, print_section_info): Style the filenames.
16050 (_initialize_exec): Install show_exec_file_mismatch_command and
16051 set_exec_file_mismatch_command.
16052 * gdbcore.h (validate_exec_file): Declare.
16053 * infcmd.c (attach_command): Call validate_exec_file.
16054 * remote.c ( remote_target::remote_add_inferior): Likewise.
16056 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16058 * frame.c (find_frame_sal): Move call to get_next_frame into more
16060 * inline-frame.c (inilne_state) <inline_state>: Update argument
16062 (inilne_state) <skipped_symbol>: Rename to...
16063 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
16064 (skip_inline_frames): Build vector of skipped symbols and use this
16065 to reate the inline_state.
16066 (inline_skipped_symbol): Add a comment and some assertions, fetch
16067 skipped symbol from the list.
16069 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16071 * buildsym.c (lte_is_less_than): Delete.
16072 (buildsym_compunit::end_symtab_with_blockvector): Create local
16073 lambda function to sort line table entries, and use
16074 std::stable_sort instead of std::sort.
16075 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
16076 markers when looking for a previous line.
16078 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16080 * dwarf2read.c (lnp_state_machine::record_line): Include
16081 end_sequence parameter in debug print out. Record the line if we
16082 are at an end_sequence marker even if it's not the start of a
16084 * symmisc.c (maintenance_print_one_line_table): Print end of
16085 sequence markers with 'END' not '0'.
16087 2020-01-24 Pedro Alves <palves@redhat.com>
16090 * thread.c (scoped_restore_current_thread::restore): Use
16091 switch_to_inferior_no_thread.
16092 * exec.c: Include "progspace-and-thread.h".
16093 (add_target_sections, remove_target_sections):
16094 scoped_restore_current_pspace_and_thread instead of
16095 scoped_restore_current_thread.
16096 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
16097 and aspace to the inferior before calling clone_program_space.
16098 Remove stale comment.
16100 2020-01-24 Christian Biesinger <cbiesinger@google.com>
16102 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
16103 (arm_netbsd_nat_target::fetch_registers): ...this.
16104 (arm_nbsd_nat_target::store_registers): Rename to...
16105 (arm_netbsd_nat_target::store_registers): ...this.
16107 2020-01-24 Christian Biesinger <cbiesinger@google.com>
16109 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
16112 2020-01-24 Christian Biesinger <cbiesinger@google.com>
16114 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
16116 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
16118 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
16119 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
16120 the correct replacement (iterate_over_regset_sections).
16121 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
16124 2020-01-24 Graham Markall <graham.markall@embecosm.com>
16127 * gdb/python/python.c (execute_gdb_command): Call
16128 async_enable_stdin in catch block.
16130 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16132 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
16133 SWITCH_THRU_ALL_UIS.
16135 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16138 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
16139 comment, add extra parameter, and update to store previous symbol
16141 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
16142 add extra parameter.
16143 * tui/tui-disasm.c (tui_disassemble): Update header comment,
16144 remove unneeded parameter, add try/catch around gdb_print_insn,
16145 rewrite to add items to asm_lines vector.
16146 (tui_find_backward_disassembly_start_address): New function.
16147 (tui_find_disassembly_address): Updated throughout.
16148 (tui_disasm_window::set_contents): Update for changes to
16150 (tui_disasm_window::do_scroll_vertical): No need to adjust the
16151 number of lines to scroll.
16153 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
16155 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
16156 (SECT_OFF_DATA): Likewise.
16157 (SECT_OFF_RODATA): Likewise.
16158 (SECT_OFF_TEXT): Likewise.
16159 (SECT_OFF_BSS): Likewise.
16160 (struct objfile) <text_section_offset, data_section_offset>: New
16162 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
16163 objfile::text_section_offset.
16164 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
16165 * coffread.c (coff_symtab_read): Likewise.
16166 (enter_linenos): Likewise.
16167 (process_coff_symbol): Likewise.
16168 * ctfread.c (get_objfile_text_range): Likewise.
16169 * dtrace-probe.c (dtrace_probe::get_relocated_address):
16170 Use objfile::data_section_offset.
16171 * dwarf2-frame.c (execute_cfa_program): Use
16172 objfile::text_section_offset.
16173 (dwarf2_frame_find_fde): Likewise.
16174 * dwarf2read.c (create_addrmap_from_index): Likewise.
16175 (create_addrmap_from_aranges): Likewise.
16176 (dw2_find_pc_sect_compunit_symtab): Likewise.
16177 (process_psymtab_comp_unit_reader): Likewise.
16178 (add_partial_symbol): Likewise.
16179 (add_partial_subprogram): Likewise.
16180 (process_full_comp_unit): Likewise.
16181 (read_file_scope): Likewise.
16182 (read_func_scope): Likewise.
16183 (read_lexical_block_scope): Likewise.
16184 (read_call_site_scope): Likewise.
16185 (dwarf2_rnglists_process): Likewise.
16186 (dwarf2_ranges_process): Likewise.
16187 (dwarf2_ranges_read): Likewise.
16188 (dwarf_decode_lines_1): Likewise.
16189 (new_symbol): Likewise.
16190 (dwarf2_fetch_die_loc_sect_off): Likewise.
16191 (dwarf2_per_cu_text_offset): Likewise.
16192 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
16193 * hppa-tdep.c (read_unwind_info): Likewise.
16194 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
16195 * psympriv.h (struct partial_symtab): Likewise.
16196 * psymtab.c (find_pc_sect_psymtab): Likewise.
16197 * solib-svr4.c (enable_break): Likewise.
16198 * stap-probe.c (relocate_address): Use
16199 objfile::data_section_offset.
16200 * xcoffread.c (enter_line_range): Use
16201 objfile::text_section_offset.
16202 (read_xcoff_symtab): Likewise.
16204 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
16206 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
16207 declaration to narrower scopes.
16209 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
16211 * darwin-nat.h (struct darwin_exception_msg, enum
16212 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
16214 (class darwin_nat_target) <wait_1, check_new_threads,
16215 decode_exception_message, decode_message, stop_inferior,
16216 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
16217 * darwin-nat.c (darwin_check_new_threads): Rename to...
16218 (darwin_nat_target::check_new_threads): ... this.
16219 (darwin_suspend_inferior_it): Remove.
16220 (darwin_decode_exception_message): Rename to...
16221 (darwin_nat_target::decode_exception_message): ... this.
16222 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
16223 (darwin_decode_message): Rename to...
16224 (darwin_nat_target::decode_message): ... this.
16225 (cancel_breakpoint): Rename to...
16226 (darwin_nat_target::cancel_breakpoint): ... this.
16227 (darwin_wait): Rename to...
16228 (darwin_nat_target::wait_1): ... this. Use range-based for loop
16229 instead of iterate_over_inferiors.
16230 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
16231 (darwin_stop_inferior): Rename to...
16232 (darwin_nat_target::stop_inferior): ... this.
16233 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
16234 (darwin_init_thread_list): Rename to...
16235 (darwin_nat_target::init_thread_list): ... this.
16236 (darwin_ptrace_him): Rename to...
16237 (darwin_nat_target::ptrace_him): ... this.
16238 (darwin_nat_target::create_inferior): Pass lambda function to
16240 (darwin_nat_target::detach): Call stop_inferior instead of
16241 darwin_stop_inferior.
16242 * fork-inferior.h (fork_inferior): Change init_trace_fun
16243 parameter to gdb::function_view.
16244 * fork-inferior.c (fork_inferior): Likewise.
16246 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
16248 * i386-cygwin-tdep.c (core_process_module_section): Update.
16249 * windows-nat.c (struct lm_info_windows): Add text_offset.
16250 (windows_xfer_shared_libraries): Update.
16251 * windows-tdep.c (windows_xfer_shared_library):
16252 Add text_offset_cached argument.
16253 * windows-tdep.h (windows_xfer_shared_library): Update.
16255 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
16257 * gdbarch.sh: Add declaration for _initialize_gdbarch.
16259 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
16261 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
16262 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
16263 replace with range-based for.
16264 (gdbsim_interrupt_inferior): Remove.
16265 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
16266 with a range-based for. Inline code from
16267 gdbsim_interrupt_inferior.
16269 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
16271 * infrun.c (proceed): Fix indentation.
16273 2020-01-21 Tom Tromey <tromey@adacore.com>
16275 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
16276 * python/python.c (python_extension_ops): Update.
16277 (gdbpy_colorize): New function.
16278 * python/lib/gdb/__init__.py (colorize): New function.
16279 * extension.h (ext_lang_colorize): Declare.
16280 * extension.c (ext_lang_colorize): New function.
16281 * extension-priv.h (struct extension_language_ops) <colorize>: New
16283 * cli/cli-style.c (_initialize_cli_style): Update help text.
16285 2020-01-21 Luis Machado <luis.machado@linaro.org>
16287 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
16288 <cond>: Change type to bool.
16289 (aarch64_displaced_step_b_cond): Update cond to use bool type.
16290 (aarch64_displaced_step_cb): Likewise.
16291 (aarch64_displaced_step_tb): Likewise.
16293 2020-01-21 Luis Machado <luis.machado@linaro.org>
16295 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
16298 2020-01-21 Luis Machado <luis.machado@linaro.org>
16300 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
16301 <pc_adjust>: Adjust the documentation.
16302 (aarch64_displaced_step_fixup): Check if PC really moved before
16305 2020-01-19 Tom Tromey <tom@tromey.com>
16307 * disasm.c (~gdb_disassembler): New destructor.
16308 (gdb_buffered_insn_length): Call disassemble_free_target.
16309 * disasm.h (class gdb_disassembler): Declare destructor. Use
16310 DISABLE_COPY_AND_ASSIGN.
16312 2020-01-19 Tom Tromey <tom@tromey.com>
16314 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
16315 (die_reader_func_ftype): Remove.
16316 (cutu_reader): New class.
16317 (dw2_get_file_names_reader): Remove "data" parameter.
16318 (dw2_get_file_names): Use cutu_reader.
16319 (create_debug_type_hash_table): Update.
16320 (read_cutu_die_from_dwo): Update comment.
16321 (lookup_dwo_unit): Add dwo_name parameter.
16322 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
16323 die_reader_func_ftype and data parameters.
16324 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
16325 Remove die_reader_func_ftype and data parameters.
16326 (~cutu_reader): New; from init_cutu_and_read_dies.
16327 (cutu_reader::cutu_reader): Rename from
16328 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
16329 and data parameters.
16330 (init_cutu_and_read_dies_simple): Remove.
16331 (struct process_psymtab_comp_unit_data): Remove.
16332 (process_psymtab_comp_unit_reader): Remove data parameter; add
16333 want_partial_unit and pretend_language parameters.
16334 (process_psymtab_comp_unit): Use cutu_reader.
16335 (build_type_psymtabs_reader): Remove data parameter.
16336 (build_type_psymtabs_1): Use cutu_reader.
16337 (process_skeletonless_type_unit): Likewise.
16338 (load_partial_comp_unit_reader): Remove.
16339 (load_partial_comp_unit): Use cutu_reader.
16340 (load_full_comp_unit_reader): Remove.
16341 (load_full_comp_unit): Use cutu_reader.
16342 (struct create_dwo_cu_data): Remove.
16343 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
16344 dwo_unit parameters.
16345 (create_cus_hash_table): Use cutu_reader.
16346 (struct dwarf2_read_addr_index_data): Remove.
16347 (dwarf2_read_addr_index_reader): Remove.
16348 (dwarf2_read_addr_index): Use cutu_reader.
16349 (read_signatured_type_reader): Remove.
16350 (read_signatured_type): Use cutu_reader.
16352 2020-01-19 Tom Tromey <tom@tromey.com>
16354 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
16355 * tui/tui-wingeneral.h (class tui_suppress_output): New.
16356 (tui_wrefresh): Declare.
16357 * tui/tui-wingeneral.c (suppress_output): New global.
16358 (tui_suppress_output, ~tui_suppress_output): New constructor and
16360 (tui_wrefresh): New function.
16361 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
16362 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
16363 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
16365 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
16367 (tui_data_window::no_refresh): New method.
16368 (tui_data_item_window::refresh_window): Call tui_wrefresh.
16369 (tui_reg_command): Use tui_suppress_output
16370 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
16371 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
16373 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
16375 2020-01-19 Tom Tromey <tom@tromey.com>
16377 * tui/tui-winsource.c (tui_update_source_windows_with_line):
16378 Handle case where symtab is null.
16380 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
16382 * linux-fork.c (one_fork_p): Simplify.
16384 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16386 * top.c (struct qt_args): Remove.
16387 (kill_or_detach): Change return type to void, replace `void *`
16388 parameter with a proper one.
16389 (print_inferior_quit_action): Likewise.
16390 (quit_confirm): Use range-based for loop to iterate over inferiors.
16391 (quit_force): Likewise.
16393 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16395 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
16396 `void *` parameter with proper parameters.
16397 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
16398 (print_one_inferior): Change return type to void, replace `void *`
16399 parameter with proper parameters.
16400 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
16402 (get_other_inferior): Remove.
16403 (mi_cmd_remove_inferior): Use range-based loop to iterate over
16406 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16408 * mi/mi-interp.c (report_initial_inferior): Remove.
16409 (mi_interp::init): Use range-based for to iterate over inferiors.
16411 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16413 * python/py-inferior.c (build_inferior_list): Remove.
16414 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
16416 2020-01-16 Christian Biesinger <cbiesinger@google.com>
16418 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
16419 (btrace_stitch_trace): Likewise.
16420 * charset.c (intermediate_encoding): Likewise (vaild).
16421 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
16422 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
16423 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
16425 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
16427 * windows-tdep.c (windows_get_tlb_type):
16428 Add rtl_user_process_parameters type.
16430 2020-01-16 Pedro Alves <palves@redhat.com>
16431 Norbert Lange <nolange79@gmail.com>
16434 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
16435 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
16436 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
16437 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
16438 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
16439 (ps_plog): Redeclare exported functions with default visibility.
16441 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
16443 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
16444 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
16446 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
16448 * infcmd.c (post_create_inferior): Use get_thread_regcache
16449 instead of get_current_regcache.
16451 2020-01-14 Tom Tromey <tom@tromey.com>
16454 * python/python.c (gdbpy_decode_line): Treat empty string the same
16457 2020-01-14 Tom Tromey <tom@tromey.com>
16459 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
16461 2020-01-14 Tom Tromey <tom@tromey.com>
16463 * nat/linux-btrace.c: Don't include <config.h>.
16464 * nat/linux-ptrace.c: Don't include <config.h>.
16465 * nat/x86-linux-dregs.c: Don't include <config.h>.
16467 2020-01-14 Tom Tromey <tom@tromey.com>
16469 * configure: Rebuild.
16470 * configure.ac: Move many checks to ../gdbsupport/common.m4.
16472 2020-01-14 Tom Tromey <tom@tromey.com>
16474 * nat/x86-linux-dregs.c: Include configh.h.
16475 * nat/linux-ptrace.c: Include configh.h.
16476 * nat/linux-btrace.c: Include configh.h.
16477 * defs.h: Include config.h, bfd.h.
16478 * configure.ac: Don't source common.host.
16479 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
16480 * configure: Rebuild.
16481 * acinclude.m4: Update path.
16482 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
16483 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
16484 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
16485 (CLIBS): Add LIBSUPPORT.
16487 (COMMON_SFILES): Remove gdbsupport files.
16488 (HFILES_NO_SRCDIR): Likewise.
16489 (stamp-version): Update path to create-version.sh.
16490 (ALLDEPFILES): Remove gdbsupport files.
16492 2020-01-14 Tom Tromey <tom@tromey.com>
16494 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
16495 USE_WIN32API when needed.
16496 * configure.ac (USE_WIN32API): Don't define.
16497 (WIN32LIBS): Use WIN32APILIBS.
16498 * configure: Rebuild.
16500 2020-01-14 Tom Tromey <tom@tromey.com>
16502 * configure: Rebuild.
16503 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
16505 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
16507 * skip.c (skip_function_command): Make skip w/o arguments use the
16508 name of the inlined function if pc is inside any inlined function.
16510 2020-01-14 Luis Machado <luis.machado@linaro.org>
16512 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
16513 * infrun.c (resume_1): Likewise.
16514 (handle_inferior_event): Remove stale comment.
16515 * linux-nat.c (linux_nat_target::resume): Update comments.
16516 (save_stop_reason): Likewise.
16517 (linux_nat_filter_event): Likewise.
16518 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
16520 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
16522 * elfread.c (record_minimal_symbol): Set section index to 0 for
16523 non-allocatable sections.
16526 2020-01-13 Ali Tamur <tamur@google.com>
16528 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
16529 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
16530 to gdb::optional. Update comments.
16531 (dwo_file): Update comments.
16532 (read_attribute): Update API to take an additional out parameter,
16533 need_reprocess. This is used to mark attributes that need other
16534 attributes (e.g. str_offsets_base) for correct computation which may not
16535 have been read yet.
16536 (read_attribute_reprocess): New function declaration.
16537 (read_addr_index): Likewise.
16538 (read_dwo_str_index): Likewise.
16539 (read_stub_str_index): Likewise.
16540 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
16541 (lookup_addr_base): New function definition.
16542 (lookup_ranges_base): Likewise.
16543 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
16544 lookup_ranges_base.
16545 (init_cutu_and_read_dies): Update comments.
16546 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
16547 unit. This is used to inherit parent's str_offsets_base and addr_base.
16549 (init_cutu_and_read_dies_simple): Reflect API changes.
16550 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
16551 (create_cus_hash_table): Change API to take parent compile unit.
16552 Reflect API changes.
16553 (open_and_init_dwo_file): Reflect API changes.
16554 (dwarf2_get_pc_bounds): Update comments.
16555 (dwarf2_record_block_ranges): Likewise.
16556 (read_full_die_1): Change implementation to reprocess attributes that
16557 need str_offsets_base and addr_base.
16558 (partial_die_info::read): Likewise.
16559 (read_attribute_reprocess): New function definition.
16560 (read_attribute_value): Change API to take an additional out parameter,
16561 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
16562 when a non-dwo compile unit has index based attributes.
16563 (read_attribute): Reflect API changes.
16564 (read_addr_index_1): Reflect API changes. Update comments.
16565 (dwarf2_read_addr_index_data): Reflect API changes.
16566 (dwarf2_read_addr_index): Likewise.
16567 (read_str_index): Change API and implementation. This becomes a helper
16568 to be used by the new string index related methods. Update error
16569 message and comments.
16570 (read_dwo_str_index): New function definition.
16571 (read_stub_str_index): Likewise.
16572 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
16573 * symfile.h (dwarf2_debug_sections): Likewise.
16574 * xcoffread.c (dwarf2_debug_sections): Likewise.
16576 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16578 * gdbcore.h (struct core_fns) <core_read_registers>: Change
16579 core_reg_sect type to gdb_byte *.
16580 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
16581 * cris-tdep.c (fetch_core_registers): Likewise.
16582 * corelow.c (core_target::get_core_register_section): Change
16583 type of `contents` to gdb::byte_vector.
16585 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
16587 * tui/tui-wingeneral.c (box_win): Position the title in the center
16590 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16592 * corelow.c (core_target::get_core_register_section): Use
16593 std::vector instead of alloca.
16595 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16597 * warning.m4: Add -Wmissing-declarations to build_warnings.
16598 * configure: Re-generate.
16600 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16602 * python/python.c (init__gdb_module): Add declaration.
16604 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16606 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
16607 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
16608 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
16609 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
16610 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
16611 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
16612 * ada-exp.y (_initialize_ada_exp): Add declaration.
16613 * ada-lang.c (_initialize_ada_language): Add declaration.
16614 * ada-tasks.c (_initialize_tasks): Add declaration.
16615 * agent.c (_initialize_agent): Add declaration.
16616 * aix-thread.c (_initialize_aix_thread): Add declaration.
16617 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
16618 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
16619 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
16620 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
16621 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
16622 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
16623 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
16624 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
16625 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
16626 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
16627 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
16628 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
16629 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
16630 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
16631 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
16632 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
16633 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
16634 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
16635 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
16636 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
16637 * annotate.c (_initialize_annotate): Add declaration.
16638 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
16639 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
16640 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
16641 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
16642 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
16643 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
16644 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
16645 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
16646 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
16647 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
16648 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
16649 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
16650 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
16651 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
16652 * auto-load.c (_initialize_auto_load): Add declaration.
16653 * auxv.c (_initialize_auxv): Add declaration.
16654 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
16655 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
16656 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
16657 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
16658 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
16659 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
16660 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
16661 * breakpoint.c (_initialize_breakpoint): Add declaration.
16662 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
16663 * btrace.c (_initialize_btrace): Add declaration.
16664 * charset.c (_initialize_charset): Add declaration.
16665 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
16666 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
16667 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
16668 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
16669 * cli/cli-script.c (_initialize_cli_script): Add declaration.
16670 * cli/cli-style.c (_initialize_cli_style): Add declaration.
16671 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
16672 * coffread.c (_initialize_coffread): Add declaration.
16673 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
16674 * compile/compile.c (_initialize_compile): Add declaration.
16675 * complaints.c (_initialize_complaints): Add declaration.
16676 * completer.c (_initialize_completer): Add declaration.
16677 * copying.c (_initialize_copying): Add declaration.
16678 * corefile.c (_initialize_core): Add declaration.
16679 * corelow.c (_initialize_corelow): Add declaration.
16680 * cp-abi.c (_initialize_cp_abi): Add declaration.
16681 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
16682 * cp-support.c (_initialize_cp_support): Add declaration.
16683 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
16684 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
16685 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
16686 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
16687 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
16688 * ctfread.c (_initialize_ctfread): Add declaration.
16689 * d-lang.c (_initialize_d_language): Add declaration.
16690 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
16691 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
16692 * dbxread.c (_initialize_dbxread): Add declaration.
16693 * dcache.c (_initialize_dcache): Add declaration.
16694 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
16695 * disasm.c (_initialize_disasm): Add declaration.
16696 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
16697 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
16698 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
16699 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
16700 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
16701 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
16702 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
16703 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
16704 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
16705 * elfread.c (_initialize_elfread): Add declaration.
16706 * exec.c (_initialize_exec): Add declaration.
16707 * extension.c (_initialize_extension): Add declaration.
16708 * f-lang.c (_initialize_f_language): Add declaration.
16709 * f-valprint.c (_initialize_f_valprint): Add declaration.
16710 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
16711 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
16712 * filesystem.c (_initialize_filesystem): Add declaration.
16713 * findcmd.c (_initialize_mem_search): Add declaration.
16714 * findvar.c (_initialize_findvar): Add declaration.
16715 * fork-child.c (_initialize_fork_child): Add declaration.
16716 * frame-base.c (_initialize_frame_base): Add declaration.
16717 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
16718 * frame.c (_initialize_frame): Add declaration.
16719 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
16720 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
16721 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
16722 * gcore.c (_initialize_gcore): Add declaration.
16723 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
16724 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
16725 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
16726 * gdbarch.c (_initialize_gdbarch): Add declaration.
16727 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
16728 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
16729 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
16730 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
16731 * go-lang.c (_initialize_go_language): Add declaration.
16732 * go32-nat.c (_initialize_go32_nat): Add declaration.
16733 * guile/guile.c (_initialize_guile): Add declaration.
16734 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
16735 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
16736 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
16737 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
16738 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
16739 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
16740 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
16741 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
16742 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
16743 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
16744 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
16745 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
16746 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
16747 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
16748 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
16749 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
16750 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
16751 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
16752 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
16753 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
16754 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
16755 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
16756 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
16757 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
16758 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
16759 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
16760 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
16761 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
16762 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
16763 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
16764 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
16765 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
16766 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
16767 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
16768 * infcall.c (_initialize_infcall): Add declaration.
16769 * infcmd.c (_initialize_infcmd): Add declaration.
16770 * inflow.c (_initialize_inflow): Add declaration.
16771 * infrun.c (_initialize_infrun): Add declaration.
16772 * interps.c (_initialize_interpreter): Add declaration.
16773 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
16774 * jit.c (_initialize_jit): Add declaration.
16775 * language.c (_initialize_language): Add declaration.
16776 * linux-fork.c (_initialize_linux_fork): Add declaration.
16777 * linux-nat.c (_initialize_linux_nat): Add declaration.
16778 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
16779 * linux-thread-db.c (_initialize_thread_db): Add declaration.
16780 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
16781 * m2-lang.c (_initialize_m2_language): Add declaration.
16782 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
16783 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
16784 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
16785 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
16786 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
16787 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
16788 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
16789 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
16790 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
16791 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
16792 * machoread.c (_initialize_machoread): Add declaration.
16793 * macrocmd.c (_initialize_macrocmd): Add declaration.
16794 * macroscope.c (_initialize_macroscope): Add declaration.
16795 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
16796 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
16797 * maint.c (_initialize_maint_cmds): Add declaration.
16798 * mdebugread.c (_initialize_mdebugread): Add declaration.
16799 * memattr.c (_initialize_mem): Add declaration.
16800 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
16801 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
16802 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
16803 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
16804 * mi/mi-main.c (_initialize_mi_main): Add declaration.
16805 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
16806 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
16807 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
16808 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
16809 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
16810 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
16811 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
16812 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
16813 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
16814 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
16815 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
16816 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
16817 * mipsread.c (_initialize_mipsread): Add declaration.
16818 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
16819 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
16820 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
16821 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
16822 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
16823 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
16824 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
16825 * nto-procfs.c (_initialize_procfs): Add declaration.
16826 * objc-lang.c (_initialize_objc_language): Add declaration.
16827 * observable.c (_initialize_observer): Add declaration.
16828 * opencl-lang.c (_initialize_opencl_language): Add declaration.
16829 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
16830 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
16831 * osabi.c (_initialize_gdb_osabi): Add declaration.
16832 * osdata.c (_initialize_osdata): Add declaration.
16833 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
16834 * parse.c (_initialize_parse): Add declaration.
16835 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
16836 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
16837 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
16838 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
16839 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
16840 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
16841 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
16842 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
16843 * printcmd.c (_initialize_printcmd): Add declaration.
16844 * probe.c (_initialize_probe): Add declaration.
16845 * proc-api.c (_initialize_proc_api): Add declaration.
16846 * proc-events.c (_initialize_proc_events): Add declaration.
16847 * proc-service.c (_initialize_proc_service): Add declaration.
16848 * procfs.c (_initialize_procfs): Add declaration.
16849 * producer.c (_initialize_producer): Add declaration.
16850 * psymtab.c (_initialize_psymtab): Add declaration.
16851 * python/python.c (_initialize_python): Add declaration.
16852 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
16853 * record-btrace.c (_initialize_record_btrace): Add declaration.
16854 * record-full.c (_initialize_record_full): Add declaration.
16855 * record.c (_initialize_record): Add declaration.
16856 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
16857 * regcache.c (_initialize_regcache): Add declaration.
16858 * reggroups.c (_initialize_reggroup): Add declaration.
16859 * remote-notif.c (_initialize_notif): Add declaration.
16860 * remote-sim.c (_initialize_remote_sim): Add declaration.
16861 * remote.c (_initialize_remote): Add declaration.
16862 * reverse.c (_initialize_reverse): Add declaration.
16863 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
16864 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
16865 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
16866 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
16867 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
16868 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
16869 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
16870 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
16872 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
16873 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
16874 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
16875 * rust-exp.y (_initialize_rust_exp): Add declaration.
16876 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
16877 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
16878 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
16879 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
16880 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
16881 * score-tdep.c (_initialize_score_tdep): Add declaration.
16882 * ser-go32.c (_initialize_ser_dos): Add declaration.
16883 * ser-mingw.c (_initialize_ser_windows): Add declaration.
16884 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
16885 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
16886 * ser-uds.c (_initialize_ser_socket): Add declaration.
16887 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
16888 * serial.c (_initialize_serial): Add declaration.
16889 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
16890 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
16891 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
16892 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
16893 * skip.c (_initialize_step_skip): Add declaration.
16894 * sol-thread.c (_initialize_sol_thread): Add declaration.
16895 * solib-aix.c (_initialize_solib_aix): Add declaration.
16896 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
16897 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
16898 * solib-frv.c (_initialize_frv_solib): Add declaration.
16899 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
16900 * solib-target.c (_initialize_solib_target): Add declaration.
16901 * solib.c (_initialize_solib): Add declaration.
16902 * source-cache.c (_initialize_source_cache): Add declaration.
16903 * source.c (_initialize_source): Add declaration.
16904 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
16905 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
16906 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
16907 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
16908 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
16909 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
16910 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
16911 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
16912 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
16913 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
16914 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
16915 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
16916 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
16917 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
16918 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
16919 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
16920 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
16921 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
16922 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
16923 * stabsread.c (_initialize_stabsread): Add declaration.
16924 * stack.c (_initialize_stack): Add declaration.
16925 * stap-probe.c (_initialize_stap_probe): Add declaration.
16926 * std-regs.c (_initialize_frame_reg): Add declaration.
16927 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
16928 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
16929 * symfile.c (_initialize_symfile): Add declaration.
16930 * symmisc.c (_initialize_symmisc): Add declaration.
16931 * symtab.c (_initialize_symtab): Add declaration.
16932 * target.c (_initialize_target): Add declaration.
16933 * target-connection.c (_initialize_target_connection): Add
16935 * target-dcache.c (_initialize_target_dcache): Add declaration.
16936 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
16937 * thread.c (_initialize_thread): Add declaration.
16938 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
16939 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
16940 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
16941 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
16942 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
16943 * tracectf.c (_initialize_ctf): Add declaration.
16944 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
16945 * tracefile.c (_initialize_tracefile): Add declaration.
16946 * tracepoint.c (_initialize_tracepoint): Add declaration.
16947 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
16948 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
16949 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
16950 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
16951 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
16952 * tui/tui-win.c (_initialize_tui_win): Add declaration.
16953 * tui/tui.c (_initialize_tui): Add declaration.
16954 * typeprint.c (_initialize_typeprint): Add declaration.
16955 * ui-style.c (_initialize_ui_style): Add declaration.
16956 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
16957 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
16958 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
16959 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
16960 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
16961 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
16962 * unittests/filtered_iterator-selftests.c
16963 (_initialize_filtered_iterator_selftests): Add declaration.
16964 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
16965 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
16966 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
16967 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
16968 * unittests/main-thread-selftests.c
16969 (_initialize_main_thread_selftests): Add declaration.
16970 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
16971 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
16972 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
16973 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
16974 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
16975 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
16976 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
16977 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
16978 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
16979 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
16980 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
16981 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
16982 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
16983 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
16984 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
16986 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
16987 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
16988 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
16989 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
16990 * user-regs.c (_initialize_user_regs): Add declaration.
16991 * utils.c (_initialize_utils): Add declaration.
16992 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
16993 * valops.c (_initialize_valops): Add declaration.
16994 * valprint.c (_initialize_valprint): Add declaration.
16995 * value.c (_initialize_values): Add declaration.
16996 * varobj.c (_initialize_varobj): Add declaration.
16997 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
16998 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
16999 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
17000 * windows-nat.c (_initialize_windows_nat): Add declaration.
17001 (_initialize_check_for_gdb_ini): Add declaration.
17002 (_initialize_loadable): Add declaration.
17003 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
17004 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
17005 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
17006 * xcoffread.c (_initialize_xcoffread): Add declaration.
17007 * xml-support.c (_initialize_xml_support): Add declaration.
17008 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
17009 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
17010 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
17011 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
17013 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
17015 * regformats/regdat.sh: Generate declaration for init function.
17017 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
17019 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
17021 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
17022 close_one_inferior>: New methods.
17023 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
17024 pass down target to find_inferior_pid.
17025 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
17026 Pass down target to find_inferior_ptid.
17027 (gdbsim_target::create_inferior): Pass down target to
17029 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
17030 target down to find_inferior_ptid and switch_to_thread.
17031 (gdbsim_target::close): Update to call close_one_inferior.
17032 (struct resume_data): Remove.
17033 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
17034 directly, rather than through a void pointer.
17035 (gdbsim_target::resume): Update to call resume_one_inferior.
17037 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
17039 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
17041 2020-01-12 Pedro Alves <palves@redhat.com>
17043 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
17044 directly for the current inferior instead of
17045 discard_all_inferiors.
17046 (discard_all_inferiors): Delete.
17048 2020-01-11 Tom Tromey <tom@tromey.com>
17050 * tui/tui-wingeneral.c (box_win): Check cli_styling.
17051 * tui/tui-winsource.c (tui_source_window_base::refill): Use
17052 deprecated_safe_get_selected_frame.
17054 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
17056 * inferior.c (print_inferior): Switch inferior before printing it.
17058 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
17059 Pedro Alves <palves@redhat.com>
17061 * progspace-and-thread.c (switch_to_program_space_and_thread):
17062 Assert there's an inferior for PSPACE. Use
17063 switch_to_inferior_no_thread to switch the inferior too.
17064 * progspace.c (program_space::~program_space): Call
17065 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
17066 (program_space::free_all_objfiles): Don't call clear_symtab_users
17068 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
17070 2020-01-10 Pedro Alves <palves@redhat.com>
17072 * NEWS: Mention multi-target debugging, "info connections", and
17073 "add-inferior -no-connection".
17075 2020-01-10 Pedro Alves <palves@redhat.com>
17077 * infrun.c: Include "target-connection.h".
17078 (check_multi_target_resumption): New.
17079 (proceed): Call it.
17080 * target-connection.c (make_target_connection_string): Make
17082 * target-connection.h (make_target_connection_string): Declare.
17084 2020-01-10 Pedro Alves <palves@redhat.com>
17086 * Makefile.in (COMMON_SFILES): Add target-connection.c.
17087 * inferior.c (uiout_field_connection): New function.
17088 (print_inferior): Add new "connection-id" column.
17089 (add_inferior_command): Show connection number/string of added
17091 * process-stratum-target.h
17092 (process_stratum_target::connection_string): New virtual method.
17093 (process_stratum_target::connection_number): New field.
17094 * remote.c (remote_target::connection_string): New override.
17095 * target-connection.c: New file.
17096 * target-connection.h: New file.
17097 * target.c (decref_target): Remove process_stratum targets from
17098 the connection list.
17099 (target_stack::push): Add process_stratum targets to the
17102 2020-01-10 Pedro Alves <palves@redhat.com>
17105 2016-04-12 Pedro Alves <palves@redhat.com>
17106 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
17107 Remove references to name.
17108 * serial.h (struct serial) <name>: Delete.
17110 2020-01-10 Pedro Alves <palves@redhat.com>
17112 * gdbarch-selftests.c (register_to_value_test): Remove "target
17113 already pushed" check.
17115 2020-01-10 Pedro Alves <palves@redhat.com>
17116 John Baldwin <jhb@FreeBSD.org>
17118 * aarch64-linux-nat.c
17119 (aarch64_linux_nat_target::thread_architecture): Adjust.
17120 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
17121 (task_command_1): Likewise.
17122 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
17123 (aix_thread_target::wait, aix_thread_target::fetch_registers)
17124 (aix_thread_target::store_registers)
17125 (aix_thread_target::thread_alive): Adjust.
17126 * amd64-fbsd-tdep.c: Include "inferior.h".
17127 (amd64fbsd_get_thread_local_address): Pass down target.
17128 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
17129 thread's gdbarch instead of target_gdbarch.
17130 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
17131 get_last_target_status.
17132 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
17133 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
17135 (update_inserted_breakpoint_locations): Skip if inferiors with no
17137 (update_global_location_list): When handling moribund locations,
17138 find representative inferior for location's pspace, and use thread
17139 count of its process_stratum target.
17140 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
17141 * bsd-uthread.c (bsd_uthread_target::wait): Use
17142 as_process_stratum_target and adjust thread_change_ptid and
17144 (bsd_uthread_target::update_thread_list): Use
17145 as_process_stratum_target and adjust find_thread_ptid,
17146 thread_change_ptid and add_thread calls.
17147 * btrace.c (maint_btrace_packet_history_cmd): Adjust
17148 find_thread_ptid call.
17149 * corelow.c (add_to_thread_list): Adjust add_thread call.
17150 (core_target_open): Adjust add_thread_silent and thread_count
17152 (core_target::pid_to_str): Adjust find_inferior_ptid call.
17153 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
17154 * event-top.c (async_disconnect): Pop targets from all inferiors.
17155 * exec.c (add_target_sections): Push exec target on all inferiors
17156 sharing the program space.
17157 (remove_target_sections): Remove the exec target from all
17158 inferiors sharing the program space.
17159 (exec_on_vfork): New.
17160 * exec.h (exec_on_vfork): Declare.
17161 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
17163 (fbsd_nat_target::update_thread_list): Adjust.
17164 (fbsd_nat_target::resume): Adjust.
17165 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
17167 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
17168 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
17169 get_thread_arch_regcache call.
17170 * fork-child.c (gdb_startup_inferior): Pass target down to
17171 startup_inferior and set_executing.
17172 * gdbthread.h (struct process_stratum_target): Forward declare.
17173 (add_thread, add_thread_silent, add_thread_with_info)
17174 (in_thread_list): Add process_stratum_target parameter.
17175 (find_thread_ptid(inferior*, ptid_t)): New overload.
17176 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
17178 (all_threads()): Delete overload.
17179 (all_threads, all_non_exited_threads): Add process_stratum_target
17181 (all_threads_safe): Use brace initialization.
17182 (thread_count): Add process_stratum_target parameter.
17183 (set_resumed, set_running, set_stop_requested, set_executing)
17184 (threads_are_executing, finish_thread_state): Add
17185 process_stratum_target parameter.
17186 (switch_to_thread): Use is_current_thread.
17187 * i386-fbsd-tdep.c: Include "inferior.h".
17188 (i386fbsd_get_thread_local_address): Pass down target.
17189 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
17190 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
17191 have_inferiors check.
17192 * inf-ptrace.c (inf_ptrace_target::create_inferior)
17193 (inf_ptrace_target::attach): Adjust.
17194 * infcall.c (run_inferior_call): Adjust.
17195 * infcmd.c (run_command_1): Pass target to
17196 scoped_finish_thread_state.
17197 (proceed_thread_callback): Skip inferiors with no execution.
17198 (continue_command): Rename 'all_threads' local to avoid hiding
17199 'all_threads' function. Adjust get_last_target_status call.
17200 (prepare_one_step): Adjust set_running call.
17201 (signal_command): Use user_visible_resume_target. Compare thread
17202 pointers instead of inferior_ptid.
17203 (info_program_command): Adjust to pass down target.
17204 (attach_command): Mark target's 'thread_executing' flag.
17205 (stop_current_target_threads_ns): New, factored out from ...
17206 (interrupt_target_1): ... this. Switch inferior before making
17209 (struct all_inferiors_iterator, struct all_inferiors_range)
17210 (struct all_inferiors_safe_range)
17211 (struct all_non_exited_inferiors_range): Filter on
17212 process_stratum_target too. Remove explicit.
17213 * inferior.c (inferior::inferior): Push dummy target on target
17215 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
17216 Add process_stratum_target parameter, and pass it down.
17217 (have_live_inferiors): Adjust.
17218 (switch_to_inferior_and_push_target): New.
17219 (add_inferior_command, clone_inferior_command): Handle
17220 "-no-connection" parameter. Use
17221 switch_to_inferior_and_push_target.
17222 (_initialize_inferior): Mention "-no-connection" option in
17223 the help of "add-inferior" and "clone-inferior" commands.
17224 * inferior.h: Include "process-stratum-target.h".
17225 (interrupt_target_1): Use bool.
17226 (struct inferior) <push_target, unpush_target, target_is_pushed,
17227 find_target_beneath, top_target, process_target, target_at,
17229 (discard_all_inferiors): Delete.
17230 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
17231 (all_inferiors, all_non_exited_inferiors): Add
17232 process_stratum_target parameter.
17233 * infrun.c: Include "gdb_select.h" and <unordered_map>.
17234 (target_last_proc_target): New global.
17235 (follow_fork_inferior): Push target on new inferior. Pass target
17236 to add_thread_silent. Call exec_on_vfork. Handle target's
17238 (follow_fork): Adjust get_last_target_status call. Also consider
17240 (follow_exec): Push target on new inferior.
17241 (struct execution_control_state) <target>: New field.
17242 (user_visible_resume_target): New.
17243 (do_target_resume): Call target_async.
17244 (resume_1): Set target's threads_executing flag. Consider resume
17246 (commit_resume_all_targets): New.
17247 (proceed): Also consider resume target. Skip threads of inferiors
17248 with no execution. Commit resumtion in all targets.
17249 (start_remote): Pass current inferior to wait_for_inferior.
17250 (infrun_thread_stop_requested): Consider target as well. Pass
17251 thread_info pointer to clear_inline_frame_state instead of ptid.
17252 (infrun_thread_thread_exit): Consider target as well.
17253 (random_pending_event_thread): New inferior parameter. Use it.
17254 (do_target_wait): Rename to ...
17255 (do_target_wait_1): ... this. Add inferior parameter, and pass it
17257 (threads_are_resumed_pending_p, do_target_wait): New.
17258 (prepare_for_detach): Adjust calls.
17259 (wait_for_inferior): New inferior parameter. Handle it. Use
17260 do_target_wait_1 instead of do_target_wait.
17261 (fetch_inferior_event): Adjust. Switch to representative
17262 inferior. Pass target down.
17263 (set_last_target_status): Add process_stratum_target parameter.
17264 Save target in global.
17265 (get_last_target_status): Add process_stratum_target parameter and
17267 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
17268 (context_switch): Check inferior_ptid == null_ptid before calling
17270 (get_inferior_stop_soon): Pass down target.
17271 (wait_one): Rename to ...
17272 (poll_one_curr_target): ... this.
17273 (struct wait_one_event): New.
17275 (stop_all_threads): Adjust.
17276 (handle_no_resumed, handle_inferior_event): Adjust to consider the
17278 (switch_back_to_stepped_thread): Also consider target.
17279 (print_stop_event): Update.
17280 (normal_stop): Update. Also consider the resume target.
17281 * infrun.h (wait_for_inferior): Remove declaration.
17282 (user_visible_resume_target): New declaration.
17283 (get_last_target_status, set_last_target_status): New
17284 process_stratum_target parameter.
17285 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
17286 process_stratum_target parameter, and use it.
17287 (clear_inline_frame_state (thread_info*)): New.
17288 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
17289 process_stratum_target parameter.
17290 (clear_inline_frame_state (thread_info*)): Declare.
17291 * linux-fork.c (delete_checkpoint_command): Pass target down to
17293 (checkpoint_command): Adjust.
17294 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
17295 instead of just tweaking inferior_ptid.
17296 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
17297 (exit_lwp): Pass target down to find_thread_ptid.
17298 (attach_proc_task_lwp_callback): Pass target down to
17299 add_thread/set_running/set_executing.
17300 (linux_nat_target::attach): Pass target down to
17301 thread_change_ptid.
17302 (get_detach_signal): Pass target down to find_thread_ptid.
17303 Consider last target status's target.
17304 (linux_resume_one_lwp_throw, resume_lwp)
17305 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
17306 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
17307 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
17308 (linux_nat_target::async_wait_fd): New.
17309 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
17311 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
17312 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
17313 * linux-thread-db.c (struct thread_db_info::process_target): New
17315 (add_thread_db_info): Save target.
17316 (get_thread_db_info): New process_stratum_target parameter. Also
17318 (delete_thread_db_info): New process_stratum_target parameter.
17320 (thread_from_lwp): Adjust to pass down target.
17321 (thread_db_notice_clone): Pass down target.
17322 (check_thread_db_callback): Pass down target.
17323 (try_thread_db_load_1): Always push the thread_db target.
17324 (try_thread_db_load, record_thread): Pass target down.
17325 (thread_db_target::detach): Pass target down. Always unpush the
17327 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
17328 target down. Always unpush the thread_db target.
17329 (find_new_threads_callback, thread_db_find_new_threads_2)
17330 (thread_db_target::update_thread_list): Pass target down.
17331 (thread_db_target::pid_to_str): Pass current inferior down.
17332 (thread_db_target::get_thread_local_address): Pass target down.
17333 (thread_db_target::resume, maintenance_check_libthread_db): Pass
17335 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
17336 * procfs.c (procfs_target::procfs_init_inferior): Declare.
17337 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
17338 (procfs_init_inferior): Rename to ...
17339 (procfs_target::procfs_init_inferior): ... this and adjust.
17340 (procfs_target::create_inferior, procfs_notice_thread)
17341 (procfs_do_thread_registers): Adjust.
17342 * ppc-fbsd-tdep.c: Include "inferior.h".
17343 (ppcfbsd_get_thread_local_address): Pass down target.
17344 * proc-service.c (ps_xfer_memory): Switch current inferior and
17345 program space as well.
17346 (get_ps_regcache): Pass target down.
17347 * process-stratum-target.c
17348 (process_stratum_target::thread_address_space)
17349 (process_stratum_target::thread_architecture): Pass target down.
17350 * process-stratum-target.h
17351 (process_stratum_target::threads_executing): New field.
17352 (as_process_stratum_target): New.
17353 * ravenscar-thread.c
17354 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
17355 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
17357 * record-btrace.c (record_btrace_target::info_record): Adjust.
17358 (record_btrace_target::record_method)
17359 (record_btrace_target::record_is_replaying)
17360 (record_btrace_target::fetch_registers)
17361 (get_thread_current_frame_id, record_btrace_target::resume)
17362 (record_btrace_target::wait, record_btrace_target::stop): Pass
17364 * record-full.c (record_full_wait_1): Switch to event thread.
17366 * regcache.c (regcache::regcache)
17367 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
17368 process_stratum_target parameter and handle it.
17369 (current_thread_target): New global.
17370 (get_thread_regcache): Add process_stratum_target parameter and
17371 handle it. Switch inferior before calling target method.
17372 (get_thread_regcache): Pass target down.
17373 (get_thread_regcache_for_ptid): Pass target down.
17374 (registers_changed_ptid): Add process_stratum_target parameter and
17376 (registers_changed_thread, registers_changed): Pass target down.
17377 (test_get_thread_arch_aspace_regcache): New.
17378 (current_regcache_test): Define a couple local test_target_ops
17379 instances and use them for testing.
17380 (readwrite_regcache): Pass process_stratum_target parameter.
17381 (cooked_read_test, cooked_write_test): Pass mock_target down.
17382 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
17383 (get_thread_arch_aspace_regcache): Add process_stratum_target
17385 (regcache::target): New method.
17386 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
17387 (regcache::registers_changed_ptid): Add process_stratum_target
17389 (regcache::m_target): New field.
17390 (registers_changed_ptid): Add process_stratum_target parameter.
17391 * remote.c (remote_state::supports_vCont_probed): New field.
17392 (remote_target::async_wait_fd): New method.
17393 (remote_unpush_and_throw): Add remote_target parameter.
17394 (get_current_remote_target): Adjust.
17395 (remote_target::remote_add_inferior): Push target.
17396 (remote_target::remote_add_thread)
17397 (remote_target::remote_notice_new_inferior)
17398 (get_remote_thread_info): Pass target down.
17399 (remote_target::update_thread_list): Skip threads of inferiors
17400 bound to other targets. (remote_target::close): Don't discard
17401 inferiors. (remote_target::add_current_inferior_and_thread)
17402 (remote_target::process_initial_stop_replies)
17403 (remote_target::start_remote)
17404 (remote_target::remote_serial_quit_handler): Pass down target.
17405 (remote_target::remote_unpush_target): New remote_target
17406 parameter. Unpush the target from all inferiors.
17407 (remote_target::remote_unpush_and_throw): New remote_target
17408 parameter. Pass it down.
17409 (remote_target::open_1): Check whether the current inferior has
17410 execution instead of checking whether any inferior is live. Pass
17412 (remote_target::remote_detach_1): Pass down target. Use
17413 remote_unpush_target.
17414 (extended_remote_target::attach): Pass down target.
17415 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
17416 (remote_target::append_resumption): Pass down target.
17417 (remote_target::append_pending_thread_resumptions)
17418 (remote_target::remote_resume_with_hc, remote_target::resume)
17419 (remote_target::commit_resume): Pass down target.
17420 (remote_target::remote_stop_ns): Check supports_vCont_probed.
17421 (remote_target::interrupt_query)
17422 (remote_target::remove_new_fork_children)
17423 (remote_target::check_pending_events_prevent_wildcard_vcont)
17424 (remote_target::remote_parse_stop_reply)
17425 (remote_target::process_stop_reply): Pass down target.
17426 (first_remote_resumed_thread): New remote_target parameter. Pass
17428 (remote_target::wait_as): Pass down target.
17429 (unpush_and_perror): New remote_target parameter. Pass it down.
17430 (remote_target::readchar, remote_target::remote_serial_write)
17431 (remote_target::getpkt_or_notif_sane_1)
17432 (remote_target::kill_new_fork_children, remote_target::kill): Pass
17434 (remote_target::mourn_inferior): Pass down target. Use
17435 remote_unpush_target.
17436 (remote_target::core_of_thread)
17437 (remote_target::remote_btrace_maybe_reopen): Pass down target.
17438 (remote_target::pid_to_exec_file)
17439 (remote_target::thread_handle_to_thread_info): Pass down target.
17440 (remote_target::async_wait_fd): New.
17441 * riscv-fbsd-tdep.c: Include "inferior.h".
17442 (riscv_fbsd_get_thread_local_address): Pass down target.
17443 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
17444 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
17445 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
17447 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
17448 * solib-svr4.c (enable_break): Pass down target.
17449 * spu-multiarch.c (parse_spufs_run): Pass down target.
17450 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
17451 * target-delegates.c: Regenerate.
17452 * target.c (g_target_stack): Delete.
17453 (current_top_target): Return the current inferior's top target.
17454 (target_has_execution_1): Refer to the passed-in inferior's top
17456 (target_supports_terminal_ours): Check whether the initial
17457 inferior was already created.
17458 (decref_target): New.
17459 (target_stack::push): Incref/decref the target.
17460 (push_target, push_target, unpush_target): Adjust.
17461 (target_stack::unpush): Defref target.
17462 (target_is_pushed): Return bool. Adjust to refer to the current
17463 inferior's target stack.
17464 (dispose_inferior): Delete, and inline parts ...
17465 (target_preopen): ... here. Only dispose of the current inferior.
17466 (target_detach): Hold strong target reference while detaching.
17468 (target_thread_name): Add assertion.
17469 (target_resume): Pass down target.
17470 (target_ops::beneath, find_target_at): Adjust to refer to the
17471 current inferior's target stack.
17472 (get_dummy_target): New.
17473 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
17474 has a thread running.
17475 (initialize_targets): Rename to ...
17476 (_initialize_target): ... this.
17477 * target.h: Include "gdbsupport/refcounted-object.h".
17478 (struct target_ops): Inherit refcounted_object.
17479 (target_ops::shortname, target_ops::longname): Make const.
17480 (target_ops::async_wait_fd): New method.
17481 (decref_target): Declare.
17482 (struct target_ops_ref_policy): New.
17483 (target_ops_ref): New typedef.
17484 (get_dummy_target): Declare function.
17485 (target_is_pushed): Return bool.
17486 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
17487 (all_matching_threads_iterator::all_matching_threads_iterator):
17488 Handle filter target.
17489 * thread-iter.h (struct all_matching_threads_iterator, struct
17490 all_matching_threads_range, class all_non_exited_threads_range):
17491 Filter by target too. Remove explicit.
17492 * thread.c (threads_executing): Delete.
17493 (inferior_thread): Pass down current inferior.
17494 (clear_thread_inferior_resources): Pass down thread pointer
17496 (add_thread_silent, add_thread_with_info, add_thread): Add
17497 process_stratum_target parameter. Use it for thread and inferior
17499 (is_current_thread): New.
17500 (thread_info::deletable): Use it.
17501 (find_thread_ptid, thread_count, in_thread_list)
17502 (thread_change_ptid, set_resumed, set_running): New
17503 process_stratum_target parameter. Pass it down.
17504 (set_executing): New process_stratum_target parameter. Pass it
17505 down. Adjust reference to 'threads_executing'.
17506 (threads_are_executing): New process_stratum_target parameter.
17507 Adjust reference to 'threads_executing'.
17508 (set_stop_requested, finish_thread_state): New
17509 process_stratum_target parameter. Pass it down.
17510 (switch_to_thread): Also match inferior.
17511 (switch_to_thread): New process_stratum_target parameter. Pass it
17513 (update_threads_executing): Reimplement.
17514 * top.c (quit_force): Pop targets from all inferior.
17515 (gdb_init): Don't call initialize_targets.
17516 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
17518 (windows_add_thread, windows_delete_thread): Adjust.
17519 (get_windows_debug_event): Rename to ...
17520 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
17521 * tracefile-tfile.c (tfile_target_open): Pass down target.
17522 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
17524 (switch_to_thread): Add process_stratum_target parameter.
17525 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
17527 (mi_on_resume): Pass target down.
17528 * nat/fork-inferior.c (startup_inferior): Add
17529 process_stratum_target parameter. Pass it down.
17530 * nat/fork-inferior.h (startup_inferior): Add
17531 process_stratum_target parameter.
17532 * python/py-threadevent.c (py_get_event_thread): Pass target down.
17534 2020-01-10 Pedro Alves <palves@redhat.com>
17536 * remote.c (remote_target::start_remote): Don't set inferior_ptid
17537 directly. Instead find the first thread in the thread list and
17538 use switch_to_thread.
17540 2020-01-10 Pedro Alves <palves@redhat.com>
17542 * remote.c (remote_target::remote_add_inferior): Don't bind a
17543 process to the current inferior if the current inferior is already
17544 bound to a process.
17546 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
17547 Pedro Alves <palves@redhat.com>
17549 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
17550 If no process is specified, return null_ptid instead of
17552 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
17553 TARGET_WAITKIND_SIGNALLED with no pid.
17555 2020-01-10 Pedro Alves <palves@redhat.com>
17557 * remote.c (first_remote_resumed_thread): New.
17558 (remote_target::wait_as): Use it as default event_ptid instead of
17561 2020-01-10 Pedro Alves <palves@redhat.com>
17563 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
17565 2020-01-10 Pedro Alves <palves@redhat.com>
17567 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
17570 2020-01-10 Pedro Alves <palves@redhat.com>
17572 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
17573 ptid to get_last_target_status.
17574 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
17575 ptid to get_last_target_status.
17576 * infcmd.c (continue_command): Don't pass a target_waitstatus to
17577 get_last_target_status.
17578 (info_program_command): Don't pass a target_waitstatus to
17579 get_last_target_status.
17580 * infrun.c (init_wait_for_inferior): Use
17581 nullify_last_target_wait_ptid.
17582 (get_last_target_status): Handle nullptr arguments.
17583 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
17584 (print_stop_event): Don't pass a ptid to get_last_target_status.
17585 (normal_stop): Don't pass a ptid to get_last_target_status.
17586 * infrun.h (get_last_target_status, set_last_target_status): Move
17587 comments here and update.
17588 (nullify_last_target_wait_ptid): Declare.
17589 * linux-fork.c (fork_load_infrun_state): Remove local extern
17590 declaration of nullify_last_target_wait_ptid.
17591 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
17592 to get_last_target_status.
17594 2020-01-10 Pedro Alves <palves@redhat.com>
17596 * gdbthread.h (scoped_restore_current_thread)
17597 <dont_restore, restore, m_dont_restore>: Declare.
17598 * thread.c (thread_alive): Add assertion. Return bool.
17599 (switch_to_thread_if_alive): New.
17600 (prune_threads): Switch inferior/thread.
17601 (print_thread_info_1): Switch thread before calling target methods.
17602 (scoped_restore_current_thread::restore): New, factored out from
17604 (scoped_restore_current_thread::~scoped_restore_current_thread):
17606 (scoped_restore_current_thread::scoped_restore_current_thread):
17608 (thread_apply_all_command, thread_select): Use
17609 switch_to_thread_if_alive.
17610 * infrun.c (proceed, restart_threads, handle_signal_stop)
17611 (switch_back_to_stepped_thread): Switch current thread before
17612 calling target methods.
17614 2020-01-10 Pedro Alves <palves@redhat.com>
17616 * inferior.c (switch_to_inferior_no_thread): New function,
17617 factored out from ...
17618 (inferior_command): ... here.
17619 * inferior.h (switch_to_inferior_no_thread): Declare.
17620 * mi/mi-main.c (run_one_inferior): Use
17621 switch_to_inferior_no_thread.
17623 2020-01-10 Pedro Alves <palves@redhat.com>
17625 * infcmd.c (kill_command): Remove dead code.
17627 2020-01-10 Pedro Alves <palves@redhat.com>
17629 * remote.c (remote_target::mourn_inferior): No longer check
17630 whether the target is running.
17632 2020-01-10 Pedro Alves <palves@redhat.com>
17634 * corelow.c (core_target::has_execution): Change parameter type to
17636 * inferior.c (number_of_live_inferiors): Use
17637 inferior::has_execution instead of target_has_execution_1.
17638 * inferior.h (inferior::has_execution): New.
17639 * linux-thread-db.c (thread_db_target::update_thread_list): Use
17640 inferior::has_execution instead of target_has_execution_1.
17641 * process-stratum-target.c
17642 (process_stratum_target::has_execution): Change parameter type to
17643 inferior pointer. Check the inferior's PID instead of
17645 * process-stratum-target.h
17646 (process_stratum_target::has_execution): Change parameter type to
17648 * record-full.c (record_full_core_target::has_execution): Change
17649 parameter type to inferior pointer.
17650 * target.c (target_has_execution_1): Change parameter type to
17652 (target_has_execution_current): Adjust.
17653 * target.h (target_ops::has_execution): Change parameter type to
17655 (target_has_execution_1): Change parameter type to inferior
17656 pointer. Change return type to bool.
17657 * tracefile.h (tracefile_target::has_execution): Change parameter
17658 type to inferior pointer.
17660 2020-01-10 Pedro Alves <palves@redhat.com>
17662 * exceptions.c (print_flush): Remove current_top_target() check.
17664 2020-01-10 Pedro Alves <palves@redhat.com>
17666 * remote.c (show_remote_exec_file): Show the current inferior's
17667 exec-file instead of the command variable's value.
17669 2020-01-10 Pedro Alves <palves@redhat.com>
17671 * record-full.c (record_full_resume_ptid): New global.
17672 (record_full_target::resume): Set it.
17673 (record_full_wait_1): Use record_full_resume_ptid instead of
17676 2020-01-10 Pedro Alves <palves@redhat.com>
17678 * gdbthread.h (scoped_restore_current_thread)
17679 <dont_restore, restore, m_dont_restore>: Declare.
17680 * thread.c (thread_alive): Add assertion. Return bool.
17681 (switch_to_thread_if_alive): New.
17682 (prune_threads): Switch inferior/thread.
17683 (print_thread_info_1): Switch thread before calling target methods.
17684 (scoped_restore_current_thread::restore): New, factored out from
17686 (scoped_restore_current_thread::~scoped_restore_current_thread):
17688 (scoped_restore_current_thread::scoped_restore_current_thread):
17690 (thread_apply_all_command, thread_select): Use
17691 switch_to_thread_if_alive.
17693 2020-01-10 George Barrett <bob@bob131.so>
17695 * stap-probe.c (stap_modify_semaphore): Don't check for null
17697 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
17698 for null semaphores.
17700 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
17702 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
17703 all source windows, and maintain horizontal scroll status while
17706 2020-01-09 Tom Tromey <tom@tromey.com>
17709 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
17710 update_source_window, not print_source_lines.
17712 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
17714 * tui/tui.c (tui_enable): Register tui hooks after calling
17717 2020-01-09 Christian Biesinger <cbiesinger@google.com>
17719 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
17721 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
17723 * thread.c (print_thread_info_1): Fix indentation.
17725 2020-01-09 Christian Biesinger <cbiesinger@google.com>
17727 * symtab.c (general_symbol_info::compute_and_set_names): Move the
17728 unique_xmalloc_ptr outside the if to always free the demangled name.
17730 2020-01-08 Tom Tromey <tromey@adacore.com>
17732 * xcoffread.c (enter_line_range, read_xcoff_symtab)
17733 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
17734 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
17735 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
17737 (section_offsets): New typedef.
17738 * symtab.c (fixup_section, get_msymbol_address): Update.
17739 * symmisc.c (dump_msymbols): Update.
17740 * symfile.h (relative_addr_info_to_section_offsets)
17741 (symfile_map_offsets_to_segments): Update.
17742 * symfile.c (build_section_addr_info_from_objfile)
17743 (init_objfile_sect_indices): Update.
17744 (struct place_section_arg): Change type of "offsets".
17745 (place_section): Update.
17746 (relative_addr_info_to_section_offsets): Change type of
17747 "section_offsets". Remove "num_sections" parameter.
17748 (default_symfile_offsets, syms_from_objfile_1)
17749 (set_objfile_default_section_offset): Update.
17750 (reread_symbols): No need to preserve section offsets by hand.
17751 (symfile_map_offsets_to_segments): Change type of "offsets".
17752 * stap-probe.c (relocate_address): Update.
17753 * stabsread.h (process_one_symbol): Update.
17754 * solib-target.c (struct lm_info_target) <offsets>: Change type.
17755 (solib_target_relocate_section_addresses): Update.
17756 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
17758 * solib-frv.c (frv_relocate_main_executable): Update.
17759 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
17760 * solib-aix.c (solib_aix_get_section_offsets): Change return
17762 (solib_aix_solib_create_inferior_hook): Update.
17763 * remote.c (remote_target::get_offsets): Update.
17764 * psymtab.c (find_pc_sect_psymtab): Update.
17765 * psympriv.h (struct partial_symbol) <address, text_low,
17766 text_high>: Update.
17767 * objfiles.h (obj_section_offset): Update.
17768 (struct objfile) <section_offsets>: Change type.
17769 <num_sections>: Remove.
17770 (objfile_relocate): Update.
17771 * objfiles.c (entry_point_address_query): Update
17772 (relocate_one_symbol): Change type of "section_offsets".
17773 (objfile_relocate1, objfile_relocate1): Change type of
17775 (objfile_rebase1): Update.
17776 * mipsread.c (mipscoff_symfile_read): Update.
17777 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
17779 * mdebugread.c (parse_symbol): Change type of "section_offsets".
17780 (parse_external, psymtab_to_symtab_1): Update.
17781 * machoread.c (macho_symfile_offsets): Update.
17782 * ia64-tdep.c (ia64_find_unwind_table): Update.
17783 * hppa-tdep.c (read_unwind_info): Update.
17784 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
17785 * dwarf2read.c (create_addrmap_from_index)
17786 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
17787 (process_psymtab_comp_unit_reader, add_partial_symbol)
17788 (add_partial_subprogram, process_full_comp_unit)
17789 (read_file_scope, read_func_scope, read_lexical_block_scope)
17790 (read_call_site_scope, dwarf2_rnglists_process)
17791 (dwarf2_ranges_process, dwarf2_ranges_read)
17792 (dwarf_decode_lines_1, var_decode_location, new_symbol)
17793 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
17795 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
17797 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
17798 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
17799 (process_one_symbol): Change type of "section_offsets".
17800 * ctfread.c (get_objfile_text_range): Update.
17801 * coffread.c (coff_symtab_read, enter_linenos)
17802 (process_coff_symbol): Update.
17803 * coff-pe-read.c (add_pe_forwarded_sym): Update.
17804 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
17806 2020-01-08 Tom Tromey <tromey@adacore.com>
17808 * dwarf2read.c (parse_macro_definition): Use std::string.
17809 (parse_macro_definition): Likewise.
17811 2020-01-08 Tom Tromey <tromey@adacore.com>
17813 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
17814 (ATTR_ALLOC_CHUNK): Remove.
17816 2020-01-08 Tom Tromey <tromey@adacore.com>
17818 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
17820 2020-01-08 Tom Tromey <tromey@adacore.com>
17822 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
17823 (dwarf2_compute_name, open_dwo_file): Likewise.
17824 (process_enumeration_scope): Use std::vector.
17825 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
17826 (partial_die_info::fixup, dwarf2_start_subfile)
17827 (guess_full_die_structure_name, dwarf2_name): Likewise.
17828 (determine_prefix): Update.
17829 (guess_full_die_structure_name): Make return type const.
17830 (partial_die_full_name): Return unique_xmalloc_ptr.
17831 (DW_FIELD_ALLOC_CHUNK): Remove.
17833 2020-01-07 Tom Tromey <tromey@adacore.com>
17836 * stap-probe.c (class stap_static_probe_ops): Add constructor.
17838 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
17840 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
17842 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
17844 * stack.c (print_frame_info): Move disassemble_next_line code
17845 inside source_print block.
17847 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17849 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
17850 gdb/signals.h, as we are now using native signal symbols.
17852 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
17854 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
17855 overflow by an early check of content vs threshold.
17856 * tui/tui-source.c (tui_source_window::line_is_displayed):
17859 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17861 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
17863 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
17865 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
17866 export table if no section contains it's RVA.
17868 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17870 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
17872 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
17874 * source.c (print_source_lines_base): Set last_line_listed.
17876 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
17878 * tui/tui-disasm.c: Remove trailing spaces.
17880 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17881 Pedro Alves <palves@redhat.com>
17883 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
17884 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
17885 (windows_gdb_signal_to_target): New function, uses the above
17886 enumeration to convert GDB internal signal codes to equivalent
17888 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
17889 * windows-nat.c: Include "gdb_wait.h".
17890 (get_windows_debug_event): Extract the fatal exception from the
17891 exit status and convert to the equivalent Posix signal number.
17892 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
17893 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
17894 * gdbsupport/gdb_wait.c: New file, implements
17895 windows_status_to_termsig.
17896 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
17897 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
17899 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
17901 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
17904 2020-01-05 Luis Machado <luis.machado@linaro.org>
17906 * aarch64-linux-nat.c
17907 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
17908 and bfd_mach_aarch64.
17910 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
17912 * ui-file.c (stdio_file::can_emit_style_escape)
17913 (tee_file::can_emit_style_escape): Ensure style is used also on
17914 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
17916 * main.c (set_gdb_data_directory): Use file style to output the
17917 warning that the given pathname is not a directory.
17918 * top.c (show_history_filename, gdb_safe_append_history)
17919 (show_gdb_datadir): Use file style.
17921 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
17923 * solib-target.c (struct lm_info_target):
17924 Change offsets to be a unique_xmalloc_ptr.
17925 (solib_target_relocate_section_addresses): Update.
17927 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
17929 * windows-nat.c (windows_clear_solib): Free so_list linked list.
17931 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
17933 * MAINTAINERS (Write After Approval): Add myself.
17935 2020-01-02 Luis Machado <luis.machado@linaro.org>
17937 * proc-service.c (get_ps_regcache): Remove reference to obsolete
17938 Cell BE architecture.
17939 * target.h (struct target_ops) <thread_architecture>: Likewise.
17941 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
17943 * Makefile.in: Use INSTALL_PROGRAM_ENV.
17945 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
17947 * MAINTAINERS (Write After Approval): Add myself.
17949 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17951 * gdbarch.sh: Update copyright year range of generated files.
17953 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17955 Update copyright year range in all GDB files.
17957 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17959 * copyright.py: Convert to Python 3.
17961 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17963 * copyright.py: Adapt after move of gnulib directory from gdb
17964 directory to toplevel directory.
17966 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17968 * copyright.py (main): Exit if run from the wrong directory.
17970 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17972 * top.c (print_gdb_version): Change copyright year to 2020.
17974 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17976 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
17978 For older changes see ChangeLog-2019.
17984 version-control: never