gdb: split get_discrete_bounds in two
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
14c09924
SM
12020-12-09 Simon Marchi <simon.marchi@efficios.com>
2
3 * gdbtypes.c (get_discrete_bounds): Implement with
4 get_discrete_low_bound and get_discrete_high_bound.
5 (get_discrete_low_bound): New.
6 (get_discrete_high_bound): New.
7
1f8d2881
SM
82020-12-09 Simon Marchi <simon.marchi@efficios.com>
9
10 * gdbtypes.h (get_discrete_bounds): Return bool, adjust all
11 callers.
12 * gdbtypes.c (get_discrete_bounds): Return bool.
13
6244c119
SM
142020-12-09 Simon Marchi <simon.marchi@efficios.com>
15
16 * ada-lang.c (ada_value_slice_from_ptr): Adjust.
17 (ada_value_slice): Adjust.
18 (pos_atr): Adjust.
19 * gdbtypes.c (get_discrete_bounds): Adjust.
20 (discrete_position): Return optional.
21 * gdbtypes.h (discrete_position): Return optional.
22
a4915e8d
TT
232020-12-07 Tom Tromey <tromey@adacore.com>
24
25 * maint.c (_initialize_maint_cmds): Use expression command
26 completer for "maint print type".
27
1f58f6c2
TBA
282020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
29
30 * completer.c (complete_explicit_location): Also add keywords
31 that start with '-' to the completion list.
32
5759831a
TBA
332020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
34
35 * linespec.c (linespec_lexer_lex_keyword): The "-force-condition"
36 keyword may be followed by any keyword.
37 * breakpoint.c (find_condition_and_thread): Advance 'tok' by
38 'toklen' in the case for "-force-condition".
39
21e051b3
TBA
402020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
41
42 * main.c (catch_command_errors): Add a flag parameter; invoke
43 `bpstat_do_actions` if the flag is set.
44 (execute_cmdargs): Update a call to `catch_command_errors`.
45
f51f9f1d
TV
462020-12-07 Tom de Vries <tdevries@suse.de>
47
48 * ada-lang.c (replace_operator_with_call): Handle shrink resize.
49
00158a68
TT
502020-12-06 Tom Tromey <tom@tromey.com>
51
52 PR ada/26999
53 * ada-lang.c (replace_operator_with_call): Rewrite.
54
296cfb88
GF
552020-12-06 Giancarlo Frix <gfrix@rocketsoftware.com> (tiny change)
56
57 PR breakpoints/27009
58 * s390-tdep.h (op_bc): Correct BC opcode value.
59
63c457b9
JB
602020-12-06 Joel Brobecker <brobecker@adacore.com>
61
62 * gmp-utils.h (gdb_mpz::safe_export): New private method.
63 (gdb_mpz::as_integer): Reimplement using gdb_mpz::safe_export.
64 * gmp-utils.c (gdb_mpz::write): Rewrite using gdb_mpz::safe_export.
65 (gdb_mpz::safe_export): New method.
66 * unittests/gmp-utils-selftests .c (gdb_mpz_as_integer):
67 Update function description.
68 (check_as_integer_raises_out_of_range_error): New function.
69 (gdb_mpz_as_integer_out_of_range): New function.
70 (_initialize_gmp_utils_selftests): Register
71 gdb_mpz_as_integer_out_of_range as a selftest.
72
3c7ba803
JB
732020-12-05 Joel Brobecker <brobecker@adacore.com>
74
75 * gmp-utils.c (gdb_mpz::read): Use HOST_CHAR_BIT instead of
76 TARGET_CHAR_BIT.
77 (gdb_mpz::write): Likewise.
78
372ff58f
SM
792020-12-04 Simon Marchi <simon.marchi@efficios.com>
80
81 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass 2 as the
82 number of displaced step buffers.
83
480af54c
SM
842020-12-04 Simon Marchi <simon.marchi@efficios.com>
85
86 * displaced-stepping.h (struct displaced_step_buffer): Rename
87 to...
88 (struct displaced_step_buffers): ... this.
89 <m_addr, m_current_thread, m_copy_insn_closure>: Remove.
90 <struct displaced_step_buffer>: New inner class.
91 <m_buffers>: New.
92 * displaced-stepping.c (displaced_step_buffer::prepare): Rename
93 to...
94 (displaced_step_buffers::prepare): ... this, adjust for multiple
95 buffers.
96 (displaced_step_buffer::finish): Rename to...
97 (displaced_step_buffers::finish): ... this, adjust for multiple
98 buffers.
99 (displaced_step_buffer::copy_insn_closure_by_addr): Rename to...
100 (displaced_step_buffers::copy_insn_closure_by_addr): ... this,
101 adjust for multiple buffers.
102 (displaced_step_buffer::restore_in_ptid): Rename to...
103 (displaced_step_buffers::restore_in_ptid): ... this, adjust for
104 multiple buffers.
105 * linux-tdep.h (linux_init_abi): Change supports_displaced_step
106 for num_disp_step_buffers.
107 * linux-tdep.c (struct linux_gdbarch_data)
108 <num_disp_step_buffers>: New field.
109 (struct linux_info) <disp_step_buf>: Rename to...
110 <disp_step_bufs>: ... this, change type to
111 displaced_step_buffers.
112 (linux_displaced_step_prepare): Use
113 linux_gdbarch_data::num_disp_step_buffers to create that number
114 of buffers.
115 (linux_displaced_step_finish): Adjust.
116 (linux_displaced_step_copy_insn_closure_by_addr): Adjust.
117 (linux_displaced_step_restore_all_in_ptid): Adjust.
118 (linux_init_abi): Change supports_displaced_step parameter for
119 num_disp_step_buffers, save it in linux_gdbarch_data.
120 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Adjust.
121 * alpha-linux-tdep.c (alpha_linux_init_abi): Adjust.
122 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Change
123 supports_displaced_step parameter for num_disp_step_buffers.
124 (amd64_linux_init_abi): Adjust.
125 (amd64_x32_linux_init_abi): Adjust.
126 * arc-linux-tdep.c (arc_linux_init_osabi): Adjust.
127 * arm-linux-tdep.c (arm_linux_init_abi): Adjust.
128 * bfin-linux-tdep.c (bfin_linux_init_abi): Adjust.
129 * cris-linux-tdep.c (cris_linux_init_abi): Adjust.
130 * csky-linux-tdep.c (csky_linux_init_abi): Adjust.
131 * frv-linux-tdep.c (frv_linux_init_abi): Adjust.
132 * hppa-linux-tdep.c (hppa_linux_init_abi): Adjust.
133 * i386-linux-tdep.c (i386_linux_init_abi): Adjust.
134 * ia64-linux-tdep.c (ia64_linux_init_abi): Adjust.
135 * m32r-linux-tdep.c (m32r_linux_init_abi): Adjust.
136 * m68k-linux-tdep.c (m68k_linux_init_abi):
137 * microblaze-linux-tdep.c (microblaze_linux_init_abi):
138 * mips-linux-tdep.c (mips_linux_init_abi): Adjust.
139 * mn10300-linux-tdep.c (am33_linux_init_osabi): Adjust.
140 * nios2-linux-tdep.c (nios2_linux_init_abi): Adjust.
141 * or1k-linux-tdep.c (or1k_linux_init_abi): Adjust.
142 * ppc-linux-tdep.c (ppc_linux_init_abi): Adjust.
143 * riscv-linux-tdep.c (riscv_linux_init_abi): Adjust.
144 * rs6000-tdep.c (struct ppc_inferior_data) <disp_step_buf>:
145 Change type to displaced_step_buffers.
146 * s390-linux-tdep.c (s390_linux_init_abi_any): Adjust.
147 * sh-linux-tdep.c (sh_linux_init_abi): Adjust.
148 * sparc-linux-tdep.c (sparc32_linux_init_abi): Adjust.
149 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Adjust.
150 * tic6x-linux-tdep.c (tic6x_uclinux_init_abi): Adjust.
151 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Adjust.
152 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Adjust.
153
d9655058
SM
1542020-12-04 Simon Marchi <simon.marchi@efficios.com>
155
156 * linux-tdep.c (init_linux_gdbarch_data): Change parameter to
157 obkstack.
158 (_initialize_linux_tdep): Register pre-init gdb data instead of
159 post-init.
160
187b041e
SM
1612020-12-04 Simon Marchi <simon.marchi@efficios.com>
162
163 * displaced-stepping.h (struct
164 displaced_step_copy_insn_closure): Adjust comments.
165 (struct displaced_step_inferior_state) <step_thread,
166 step_gdbarch, step_closure, step_original, step_copy,
167 step_saved_copy>: Remove fields.
168 (struct displaced_step_thread_state): New.
169 (struct displaced_step_buffer): New.
170 * displaced-stepping.c (displaced_step_buffer::prepare): New.
171 (write_memory_ptid): Move from infrun.c.
172 (displaced_step_instruction_executed_successfully): New,
173 factored out of displaced_step_finish.
174 (displaced_step_buffer::finish): New.
175 (displaced_step_buffer::copy_insn_closure_by_addr): New.
176 (displaced_step_buffer::restore_in_ptid): New.
177 * gdbarch.sh (displaced_step_location): Remove.
178 (displaced_step_prepare, displaced_step_finish,
179 displaced_step_copy_insn_closure_by_addr,
180 displaced_step_restore_all_in_ptid): New.
181 * gdbarch.c: Re-generate.
182 * gdbarch.h: Re-generate.
183 * gdbthread.h (class thread_info) <displaced_step_state>: New
184 field.
185 (thread_step_over_chain_remove): New declaration.
186 (thread_step_over_chain_next): New declaration.
187 (thread_step_over_chain_length): New declaration.
188 * thread.c (thread_step_over_chain_remove): Make non-static.
189 (thread_step_over_chain_next): New.
190 (global_thread_step_over_chain_next): Use
191 thread_step_over_chain_next.
192 (thread_step_over_chain_length): New.
193 (global_thread_step_over_chain_enqueue): Add debug print.
194 (global_thread_step_over_chain_remove): Add debug print.
195 * infrun.h (get_displaced_step_copy_insn_closure_by_addr):
196 Remove.
197 * infrun.c (get_displaced_stepping_state): New.
198 (displaced_step_in_progress_any_inferior): Remove.
199 (displaced_step_in_progress_thread): Adjust.
200 (displaced_step_in_progress): Adjust.
201 (displaced_step_in_progress_any_thread): New.
202 (get_displaced_step_copy_insn_closure_by_addr): Remove.
203 (gdbarch_supports_displaced_stepping): Use
204 gdbarch_displaced_step_prepare_p.
205 (displaced_step_reset): Change parameter from inferior to
206 thread.
207 (displaced_step_prepare_throw): Implement using
208 gdbarch_displaced_step_prepare.
209 (write_memory_ptid): Move to displaced-step.c.
210 (displaced_step_restore): Remove.
211 (displaced_step_finish): Implement using
212 gdbarch_displaced_step_finish.
213 (start_step_over): Allow starting more than one displaced step.
214 (prepare_for_detach): Handle possibly multiple threads doing
215 displaced steps.
216 (handle_inferior_event): Handle possibility that fork event
217 happens while another thread displaced steps.
218 * linux-tdep.h (linux_displaced_step_prepare): New.
219 (linux_displaced_step_finish): New.
220 (linux_displaced_step_copy_insn_closure_by_addr): New.
221 (linux_displaced_step_restore_all_in_ptid): New.
222 (linux_init_abi): Add supports_displaced_step parameter.
223 * linux-tdep.c (struct linux_info) <disp_step_buf>: New field.
224 (linux_displaced_step_prepare): New.
225 (linux_displaced_step_finish): New.
226 (linux_displaced_step_copy_insn_closure_by_addr): New.
227 (linux_displaced_step_restore_all_in_ptid): New.
228 (linux_init_abi): Add supports_displaced_step parameter,
229 register displaced step methods if true.
230 (_initialize_linux_tdep): Register inferior_execd observer.
231 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Add
232 supports_displaced_step parameter, adjust call to
233 linux_init_abi. Remove call to
234 set_gdbarch_displaced_step_location.
235 (amd64_linux_init_abi): Adjust call to
236 amd64_linux_init_abi_common.
237 (amd64_x32_linux_init_abi): Likewise.
238 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Adjust call to
239 linux_init_abi. Remove call to
240 set_gdbarch_displaced_step_location.
241 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
242 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
243 * alpha-linux-tdep.c (alpha_linux_init_abi): Adjust call to
244 linux_init_abi.
245 * arc-linux-tdep.c (arc_linux_init_osabi): Likewise.
246 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
247 * cris-linux-tdep.c (cris_linux_init_abi): Likewise.
248 * csky-linux-tdep.c (csky_linux_init_abi): Likewise.
249 * frv-linux-tdep.c (frv_linux_init_abi): Likewise.
250 * hppa-linux-tdep.c (hppa_linux_init_abi): Likewise.
251 * ia64-linux-tdep.c (ia64_linux_init_abi): Likewise.
252 * m32r-linux-tdep.c (m32r_linux_init_abi): Likewise.
253 * m68k-linux-tdep.c (m68k_linux_init_abi): Likewise.
254 * microblaze-linux-tdep.c (microblaze_linux_init_abi): Likewise.
255 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
256 * mn10300-linux-tdep.c (am33_linux_init_osabi): Likewise.
257 * nios2-linux-tdep.c (nios2_linux_init_abi): Likewise.
258 * or1k-linux-tdep.c (or1k_linux_init_abi): Likewise.
259 * riscv-linux-tdep.c (riscv_linux_init_abi): Likewise.
260 * s390-linux-tdep.c (s390_linux_init_abi_any): Likewise.
261 * sh-linux-tdep.c (sh_linux_init_abi): Likewise.
262 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
263 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
264 * tic6x-linux-tdep.c (tic6x_uclinux_init_abi): Likewise.
265 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
266 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Likewise.
267 * ppc-linux-tdep.c (ppc_linux_init_abi): Adjust call to
268 linux_init_abi. Remove call to
269 set_gdbarch_displaced_step_location.
270 * arm-tdep.c (arm_pc_is_thumb): Call
271 gdbarch_displaced_step_copy_insn_closure_by_addr instead of
272 get_displaced_step_copy_insn_closure_by_addr.
273 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Adjust calls to
274 clear gdbarch methods.
275 * rs6000-tdep.c (struct ppc_inferior_data): New structure.
276 (get_ppc_per_inferior): New function.
277 (ppc_displaced_step_prepare): New function.
278 (ppc_displaced_step_finish): New function.
279 (ppc_displaced_step_restore_all_in_ptid): New function.
280 (rs6000_gdbarch_init): Register new gdbarch methods.
281 * s390-tdep.c (s390_gdbarch_init): Don't call
282 set_gdbarch_displaced_step_location, set new gdbarch methods.
283
c7acb87b
SM
2842020-12-04 Simon Marchi <simon.marchi@efficios.com>
285
286 * Makefile.in (COMMON_SFILES): Add displaced-stepping.c.
287 * aarch64-tdep.h: Include displaced-stepping.h.
288 * displaced-stepping.h (struct displaced_step_copy_insn_closure):
289 Move here.
290 (displaced_step_copy_insn_closure_up): Move here.
291 (struct buf_displaced_step_copy_insn_closure): Move here.
292 (struct displaced_step_inferior_state): Move here.
293 (debug_displaced): Move here.
294 (displaced_debug_printf_1): Move here.
295 (displaced_debug_printf): Move here.
296 * displaced-stepping.c: New file.
297 * gdbarch.sh: Include displaced-stepping.h in gdbarch.h.
298 * gdbarch.h: Re-generate.
299 * inferior.h: Include displaced-stepping.h.
300 * infrun.h (debug_displaced): Move to displaced-stepping.h.
301 (displaced_debug_printf_1): Likewise.
302 (displaced_debug_printf): Likewise.
303 (struct displaced_step_copy_insn_closure): Likewise.
304 (displaced_step_copy_insn_closure_up): Likewise.
305 (struct buf_displaced_step_copy_insn_closure): Likewise.
306 (struct displaced_step_inferior_state): Likewise.
307 * infrun.c (show_debug_displaced): Move to displaced-stepping.c.
308 (displaced_debug_printf_1): Likewise.
309 (displaced_step_copy_insn_closure::~displaced_step_copy_insn_closure):
310 Likewise.
311 (_initialize_infrun): Don't register "set/show debug displaced".
312
94b24c74
SM
3132020-12-04 Simon Marchi <simon.marchi@efficios.com>
314
315 * linux-tdep.c (get_linux_inferior_data): Add inferior
316 parameter.
317 (linux_vsyscall_range): Pass current inferior.
318
bab37966
SM
3192020-12-04 Simon Marchi <simon.marchi@efficios.com>
320
321 * infrun.c (displaced_step_prepare_throw): Change return type to
322 displaced_step_prepare_status.
323 (displaced_step_prepare): Likewise.
324 (displaced_step_finish): Change return type to
325 displaced_step_finish_status.
326 (resume_1): Adjust.
327 (stop_all_threads): Adjust.
328 * displaced-stepping.h: New file.
329
7def77a1
SM
3302020-12-04 Simon Marchi <simon.marchi@efficios.com>
331
332 * infrun.c (displaced_step_fixup): Rename to...
333 (displaced_step_finish): ... this, update all callers.
334
1152d984
SM
3352020-12-04 Simon Marchi <simon.marchi@efficios.com>
336
337 * infrun.h (get_displaced_step_closure_by_addr): Rename to...
338 (get_displaced_step_copy_insn_closure_by_addr): ... this.
339 Update all users.
340 (displaced_step_closure): Rename to...
341 (displaced_step_copy_insn_closure): ... this. Update all users.
342 (displaced_step_closure_up): Rename to...
343 (displaced_step_copy_insn_closure_up). ... this. Update all
344 users.
345 (buf_displaced_step_closure): Rename to...
346 (buf_displaced_step_copy_insn_closure): ... this. Update all
347 users.
348 * infrun.c (get_displaced_step_closure_by_addr): Rename to...
349 (get_displaced_step_copy_insn_closure_by_addr): ... this.
350 Update all users.
351 * aarch64-tdep.c (aarch64_displaced_step_closure): Rename to...
352 (aarch64_displaced_step_copy_insn_closure): ... this. Update
353 all users.
354 * amd64-tdep.c (amd64_displaced_step_closure): Rename to...
355 (amd64_displaced_step_copy_insn_closure): ... this. Update all
356 users.
357 * arm-tdep.h (arm_displaced_step_closure): Rename to...
358 (arm_displaced_step_copy_insn_closure): ... this. Update all
359 users.
360 * i386-tdep.h (i386_displaced_step_closure): Rename to...
361 (i386_displaced_step_copy_insn_closure): ... this. Update all
362 users.
363 * rs6000-tdep.c (ppc_displaced_step_closure): Rename to...
364 (ppc_displaced_step_copy_insn_closure): ... this. Update all
365 users.
366 * s390-tdep.c (s390_displaced_step_closure): Rename to...
367 (s390_displaced_step_copy_insn_closure): ... this. Update all
368 users.
369 * gdbarch.h: Re-generate.
370 * gdbarch.c: Re-generate.
371
28d5518b
SM
3722020-12-04 Simon Marchi <simon.marchi@efficios.com>
373
374 * gdbthread.h (thread_step_over_chain_enqueue): Rename to...
375 (global_thread_step_over_chain_enqueue): ... this. Update all
376 users.
377 (thread_step_over_chain_remove): Rename to...
378 (global_thread_step_over_chain_remove): ... this. Update all
379 users.
380 (thread_step_over_chain_next): Rename to...
381 (global_thread_step_over_chain_next): ... this. Update all
382 users.
383 * infrun.h (step_over_queue_head): Rename to...
384 (global_thread_step_over_chain_head): ... this. Update all
385 users.
386 * infrun.c (step_over_queue_head): Rename to...
387 (global_thread_step_over_chain_head): ... this. Update all
388 users.
389 * thread.c (step_over_chain_remove): Rename to...
390 (thread_step_over_chain_remove): ... this. Update all users.
391 (thread_step_over_chain_next): Rename to...
392 (global_thread_step_over_chain_next): ... this. Update all
393 users.
394 (thread_step_over_chain_enqueue): Rename to...
395 (global_thread_step_over_chain_enqueue): ... this. Update all
396 users.
397 (thread_step_over_chain_remove): Rename to...
398 (global_thread_step_over_chain_remove): ... this. Update all
399 users.
400
f5f01699
SM
4012020-12-04 Simon Marchi <simon.marchi@polymtl.ca>
402
403 * infrun.c (get_displaced_stepping_state): Remove, change
404 callers to access the field directly.
405
c0aba012
SM
4062020-12-04 Simon Marchi <simon.marchi@polymtl.ca>
407
408 * infrun.c (handle_inferior_event): Restore displaced step
409 buffer bytes in child process when handling fork, even if fork
410 happened in another thread than the displaced-stepping one.
411
3b7a962d
SM
4122020-12-04 Simon Marchi <simon.marchi@efficios.com>
413
414 * infrun.c (infrun_inferior_execd): New function.
415 (_initialize_infrun): Attach inferior_execd observer.
416
42a4fec5
SM
4172020-12-04 Simon Marchi <simon.marchi@efficios.com>
418
419 * observable.h (inferior_execd): Declare new observable.
420 * observable.c (inferior_execd): Declare new observable.
421 * infrun.c (follow_exec): Notify inferior_execd observer.
422 * jit.c (jit_inferior_created_hook): Make static.
423 (_initialize_jit): Register inferior_execd observer.
424 * jit.h (jit_inferior_created_hook): Remove declaration.
425 * solib.c (_initialize_solib): Register inferior_execd observer.
426
aafdfb4e
TV
4272020-12-04 Tom de Vries <tdevries@suse.de>
428
429 PR gdb/27003
430 * completer.c (completion_tracker::build_completion_result): Don't
431 access match_list[0][-1].
432
f99b5177
TT
4332020-12-04 Tom Tromey <tromey@adacore.com>
434
435 * linespec.c (struct linespec_token): Rename; remove typedef.
436 * guile/scm-block.c (struct block_smob): Remove typedef.
437 (struct block_syms_progress_smob): Likewise.
438 * guile/scm-symbol.c (struct symbol_smob): Remove typedef.
439 * guile/scm-symtab.c (symtab_smob): Remove typedef.
440 (struct sal_smob): Remove typedef.
441 * guile/scm-param.c (struct param_smob): Remove typedef.
442 * guile/scm-progspace.c (struct pspace_smob): Rename.
443 * guile/scm-objfile.c (struct objfile_smob): Rename.
444 * guile/scm-iterator.c (struct iterator_smob): Rename.
445 * guile/scm-frame.c (struct frame_smob): Rename.
446 * guile/scm-arch.c (struct arch_smob): Rename.
447 * guile/scm-type.c (struct field_smob): Remove typedef.
448 (struct type_smob): Rename.
449 * guile/scm-cmd.c (struct command_smob): Remove typedef.
450 * guile/scm-ports.c (struct ioscm_memory_port): Remove typedef.
451 * guile/scm-value.c (struct value_smob): Remove typedef.
452 * guile/scm-lazy-string.c (lazy_string_smob): Remove typedef.
453 * guile/guile-internal.h (struct scheme_variable)
454 (struct scheme_function, struct scheme_integer_constant)
455 (struct gdb_smob, struct chained_gdb_smob)
456 (struct eqable_gdb_smob, arch_smob, frame_smob, iterator_smob)
457 (objfile_smob, pspace_smob, type_smob): Remove typedef.
458 * guile/scm-pretty-print.c (pretty_printer_smob): Remove typedef.
459 (struct pretty_printer_worker_smob): Remove typedef.
460 * guile/scm-exception.c (struct exception_smob): Remove typedef.
461 * python/py-block.c (struct block_object): Remove typedef.
462 (block_syms_iterator_object): Update.
463 (set_block): Update.
464 (block_syms_iterator_object): Remove typedef.
465 * python/py-inferior.c (struct membuf_object): Remove typedef.
466 * python/py-symtab.c (struct symtab_object): Remove typedef.
467 (set_symtab): Update.
468 (sal_object): Remove typedef.
469 (set_sal): Update.
470 * python/py-frame.c (frame_object): Remove typedef.
471 * python/py-record-btrace.c (struct btpy_list_object): Remove
472 typedef.
473 * python/py-arch.c (struct arch_object): Remove typedef.
474 * python/py-linetable.c (struct linetable_entry_object)
475 (linetable_object, struct ltpy_iterator_object): Remove typedef.
476 * python/py-events.h (eventregistry_object): Remove typedef.
477 (struct events_object): Remove typedef.
478 * python/python-internal.h (gdbpy_breakpoint_object): Remove
479 typedef.
480 (thread_object): Remove typedef.
481 * python/py-progspace.c (pspace_object): Remove typedef.
482 * python/py-value.c (struct value_object): Remove typedef.
483 * python/py-record.h (recpy_record_object): Remove typedef.
484 (struct recpy_element_object): Remove typedef.
485 * python/py-lazy-string.c (lazy_string_object): Remove typedef.
486 * python/py-objfile.c (objfile_object): Remove typedef.
487 * python/py-cmd.c (struct cmdpy_object): Remove typedef.
488 * python/py-type.c (type_object): Remove typedef.
489 (typy_iterator_object): Update.
490 (set_type): Update.
491 (field_object): Remove typedef.
492 (typy_iterator_object): Remove typedef.
493 * python/py-registers.c (register_descriptor_iterator_object):
494 Remove typedef.
495 (struct register_descriptor_object)
496 (struct reggroup_iterator_object, struct reggroup_object): Remove
497 typedef.
498 * python/py-record.c (recpy_gap_object): Remove typedef.
499 * python/py-symbol.c (symbol_object): Remove typedef.
500 (set_symbol): Update.
501 * python/py-event.h (event_object): Remove typedef.
502 * python/py-param.c (parmpy_object): Remove typedef.
503 * python/py-instruction.c (struct py_insn_obj): Remove typedef.
504 * python/py-unwind.c (struct pending_frame_object): Remove typedef.
505 (unwind_info_object, struct cached_frame_info): Likewise.
506
91f87213
TT
5072020-12-04 Tom Tromey <tromey@adacore.com>
508
509 * value.c (value_internal_function_name): Make return type const.
510 * value.h (value_internal_function_name): Make return type const.
511
5382f971
LM
5122020-12-04 Luis Machado <luis.machado@linaro.org>
513
514 * aarch64-tdep.c (submask, bit, bits): Remove.
515 * arch/aarch64-insn.c (extract_signed_bitfield): Remove.
516 (aarch64_decode_adr, aarch64_decode_b aarch64_decode_bcond)
517 (aarch64_decode_cb, aarch64_decode_tb)
518 (aarch64_decode_ldr_literal): Use sbits to extract a signed
519 immediate.
520 * arch/aarch64-insn.h (submask, bits, bit, sbits): New macros.
521
b6a6aa07
TV
5222020-12-04 Tom de Vries <tdevries@suse.de>
523
524 PR tdep/27007
525 * i386-tdep.c (i386_16_byte_align_p): Skip static fields.
526
0bc2e38d
SM
5272020-12-03 Simon Marchi <simon.marchi@polymtl.ca>
528
529 PR gdb/26876
530 * dwarf2/frame.c (find_comp_unit, set_comp_unit): Reverse use of
531 dwarf2_frame_bfd_data and dwarf2_frame_objfile_data.
532
25428040
AB
5332020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
534
535 * arch/riscv.c: Include 'rv32e-xregs.c'.
536 (riscv_create_target_description): Update to handle rv32e.
537 * arch/riscv.h (struct riscv_gdbarch_features) <embedded>: New
538 member variable.
539 <operator==>: Update to account for new field.
540 <hash>: Likewise.
541 * features/Makefile (FEATURE_XMLFILES): Add riscv/rv32e-xregs.xml.
542 * features/riscv/rv32e-xregs.c: Generated.
543 * features/riscv/rv32e-xregs.xml: New file.
544 * riscv-tdep.c (riscv_debug_breakpoints): Move from later in the
545 file.
546 (riscv_debug_infcall): Likewise.
547 (riscv_debug_unwinder): Likewise.
548 (riscv_debug_gdbarch): Likewise.
549 (enum riscv_register_required_status): Delete.
550 (struct riscv_register_feature): Add constructor, delete default
551 constructor, copy, and assign constructors.
552 (struct riscv_register_feature::register_info) <required>: Delete.
553 <check>: Update comment and arguments.
554 (struct riscv_register_feature) <name>: Change to member function.
555 <prefer_first_name>: Delete.
556 <tdesc_feature>: New member function.
557 <registers>: Rename to...
558 <m_registers>: ...this.
559 <m_feature_name>: New member variable.
560 (riscv_register_feature::register_info::check): Update arguments.
561 (riscv_xreg_feature): Rewrite as class, create a single static
562 instance of the class.
563 (riscv_freg_feature): Likewise.
564 (riscv_virtual_feature): Likewise.
565 (riscv_csr_feature): Likewise.
566 (riscv_create_csr_aliases): Has become a member function inside
567 riscv_csr_feature class.
568 (riscv_abi_embedded): New function definition.
569 (riscv_register_name): Adjust to use new feature objects.
570 (struct riscv_call_info) <riscv_call_info>: Check for rv32e abi,
571 and adjust available argument registers.
572 (riscv_features_from_gdbarch_info): Check for EF_RISCV_RVE flag.
573 (riscv_check_tdesc_feature): Delete.
574 (riscv_tdesc_unknown_reg): Adjust to use new feature objects.
575 (riscv_gdbarch_init): Delete target description checking code, and
576 instead call to the new feature objects to perform the checks.
577 Reorder handling of no abi information case, allows small code
578 simplification.
579 (_initialize_riscv_tdep): Remove call, this is now done in the
580 riscv_csr_feature constructor.
581 * riscv-tdep.h (riscv_abi_embedded): Declare.
582
533b2ae0
AB
5832020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
584
585 * riscv-tdep.c (riscv_create_csr_aliases): Remove use of
586 DECLARE_CSR_ALIAS.
587
e4502042
AB
5882020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
589
590 * riscv-tdep.c (riscv_is_unknown_csr): New function,
591 implementation moved from riscv_register_reggroup_p.
592 (riscv_register_reggroup_p): Update group handling for unknown
593 CSRs.
594
2bf3b79d
SDJ
5952020-12-01 Sergio Durigan Junior <sergiodj@sergiodj.net>
596
597 * dwarf2/read.c (dwz_search_other_debugdirs): New function.
598 (dwarf2_get_dwz_file): Convert 'filename' to a
599 std::string. Use dwz_search_other_debugdirs to search for DWZ
600 files in the debug-file-directories provided by the user as well.
601
77bf7e99
TT
6022020-12-01 Tom Tromey <tom@tromey.com>
603
604 * parse.c (expr_builder::expr_builder): Initialize expout.
605 (expr_builder::release): Use expression::resize.
606 (expression::expression, expression::~expression)
607 (expression::resize): New methods.
608 (write_exp_elt): Use expression::resize.
609 (prefixify_expression): Update.
610 (increase_expout_size): Use expression::resize.
611 * expression.h (struct expression): Add constructor, destructor.
612 <resize>: New method.
613 (expression_up): Change type.
614
539d71e8
RA
6152020-12-01 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
616 * ppc-linux-nat.c: (PPC_DEBUG_FEATURE_DATA_BP_ARCH_31): New define.
617 (region_ok_for_hw_watchpoint): Check if 2nd DAWR is avaliable before
618 set region.
619
7ce05d21
TV
6202020-11-30 Tom de Vries <tdevries@suse.de>
621
622 PR symtab/26905
623 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add and handle
624 is_reference parameter.
625 (dwarf2_evaluate_property): Update dwarf2_locexpr_baton_eval call.
626
88b91969
TT
6272020-11-30 Tom Tromey <tom@tromey.com>
628
629 * rust-lang.c (rust_op_name): Remove.
630 (exp_descriptor_rust): Update.
631 * parser-defs.h (op_name_standard): Don't declare.
632 (struct exp_descriptor) <op_name>: Remove.
633 * parse.c (exp_descriptor_standard): Update.
634 * opencl-lang.c (exp_descriptor_opencl): Update.
635 * m2-lang.c (m2_language::exp_descriptor_modula2): Update.
636 * f-lang.c (op_name_f): Remove.
637 (f_language::exp_descriptor_tab): Update.
638 * expression.h (op_name): Update.
639 * expprint.c (op_name): Rewrite.
640 (op_name_standard): Remove.
641 (dump_raw_expression, dump_subexp): Update.
642 * c-lang.c (exp_descriptor_c): Update.
643 * ax-gdb.c (gen_expr): Update.
644 * ada-lang.c (ada_op_name): Remove.
645 (ada_exp_descriptor): Update.
646
1cd49c43
TT
6472020-11-30 Tom Tromey <tom@tromey.com>
648
649 * eval.c (init_array_element): Remove.
650 (evaluate_subexp_standard) <OP_ARRAY>: Remove "index_pc".
651
96fb9086
HD
6522020-11-29 Hannes Domani <ssbssa@yahoo.de>
653
654 PR tui/26973
655 * tui/tui-layout.c (tui_apply_current_layout): Don't delete the
656 static locator win info.
657
b4132322
AR
6582020-11-28 Alex Richardson <Alexander.Richardson@cl.cam.ac.uk>
659
660 * acincludde.m4 (GDB_AC_CHECK_BFD): Include string.h in the test
661 program.
662
3df8c6af
AB
6632020-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
664
665 * printcmd.c (skip_over_slash_fmt): Reorder code to ensure in_fmt
666 is always initialized.
667
0ae45769
RA
6682020-11-26 Rogerio Alves <rcardoso@linux.ibm.com>
669 * MAINTAINERS (Write After Approval): Add myself.
670
239ca5e4
PW
6712020-11-26 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
672
673 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
674 * features/aarch64-fpu.xml: Add named FPCR and FPSR register bit-fields.
675
cbfa382a
TT
6762020-11-25 Tom Tromey <tom@tromey.com>
677
678 * eval.c (evaluate_subexp_standard): Remove unnecessary
679 variables.
680
af30c400
TT
6812020-11-25 Tom Tromey <tom@tromey.com>
682
683 * d-lang.c: Include parser-defs.h.
684 * rust-lang.c: Include parser-defs.h.
685 * c-lang.h: Do not include parser-defs.h.
686
1c64f6cb
SM
6872020-11-24 Simon Marchi <simon.marchi@polymtl.ca>
688
689 * regcache.h (struct cached_reg): Remove typedef.
690
2c20a601
JB
6912020-11-24 Joel Brobecker <brobecker@adacore.com>
692
693 * README: Fix the URL of the MPFR library.
694
c609df64
JB
6952020-11-24 Joel Brobecker <brobecker@adacore.com>
696
697 * README: Document the --with-libgmp-prefix configure option.
698
fa123c32
JB
6992020-11-24 Joel Brobecker <brobecker@adacore.com>
700
701 * NEWS: Add entry documenting support for DWARF-based fixed
702 point types.
703
0fb8bb02
JB
7042020-11-24 Joel Brobecker <brobecker@adacore.com>
705
706 * NEWS: Document that building GDB now requires GMP.
707
4afa9fd9
JB
7082020-11-24 Joel Brobecker <brobecker@adacore.com>
709
710 * typeprint.c (print_type_scalar): Add handling of
711 TYPE_CODE_FIXED_POINT.
712
af619ce9
JB
7132020-11-24 Joel Brobecker <brobecker@adacore.com>
714
715 * valarith.c (fixed_point_binop): Replace the
716 INIT_VAL_WITH_FIXED_POINT_VAL macro by a lambda. Update all
717 users accordingly.
718
e6fcee3a
JB
7192020-11-24 Joel Brobecker <brobecker@adacore.com>
720
721 * gdbtypes.h (struct type) <fixed_point_scaling_factor>: New method,
722 replacing fixed_point_scaling_factor. All callers updated
723 throughout this project.
724 (fixed_point_scaling_factor): Delete declaration.
725 * gdbtypes.c (type::fixed_point_scaling_factor): Replaces
726 fixed_point_scaling_factor. Adjust implementation accordingly.
727
d19937a7
JB
7282020-11-24 Joel Brobecker <brobecker@adacore.com>
729
730 * gdbtypes.h (struct type) <fixed_point_type_base_type> New method,
731 replacing the fixed_point_type_base_type function. All callers
732 updated throughout this project.
733 (fixed_point_type_base_type): Remove declaration.
734 * gdbtypes.c (type::fixed_point_type_base_type): Replaces
735 fixed_point_type_base_type. Adjust implementation accordingly.
736
2a12c336
JB
7372020-11-24 Joel Brobecker <brobecker@adacore.com>
738
739 * gdbtypes.h (struct type) <fixed_point_info, set_fixed_point_info>:
740 New methods.
741 (INIT_FIXED_POINT_SPECIFIC): Adjust.
742 (TYPE_FIXED_POINT_INFO): Delete macro.
743 (allocate_fixed_point_type_info): Change return type to void.
744 * gdbtypes.c (copy_type_recursive): Replace the use of
745 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
746 (fixed_point_scaling_factor): Likewise.
747 (allocate_fixed_point_type_info): Change return type to void.
748 Adjust implementation accordingly.
749 * dwarf2/read.c (finish_fixed_point_type): Replace the use of
750 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
751
c9f0b43f
JB
7522020-11-24 Joel Brobecker <brobecker@adacore.com>
753
754 * gmp-utils.h (gdb_mpz::read): Change buf and len parameters
755 into one single gdb::array_view parameter.
756 (gdb_mpz::write): Likewise.
757 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
758 * gmp-utils.c (gdb_mpz::read): Change buf and len parameters
759 into one single gdb::array_view parameter.
760 Adjust implementation accordingly.
761 (gdb_mpz::write): Likewise.
762 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
763 * unittests/gmp-utils-selftests.c: Adapt following changes above.
764 * valarith.c, valops.c, valprint.c, value.c: Likewise.
765
987b6703
JB
7662020-11-24 Joel Brobecker <brobecker@adacore.com>
767
768 * gmp-utils.h (gmp_string_printf): Rename from gmp_string_asprintf.
769 Change return type to std::string. Update all callers.
770 * gmp-utils.c (gmp_string_printf): Likewise.
771
4fbb7cce
JB
7722020-11-24 Joel Brobecker <brobecker@adacore.com>
773
774 * unittests/gmp-utils-selftests.c (write_fp_test): Use mpq_set_si
775 instead of mpq_set_ui to initialize our GMP rational.
776
d6ab69dd
TV
7772020-11-23 Tom de Vries <tdevries@suse.de>
778
779 * debuginfod-support.c (debuginfod_source_query)
780 (debuginfod_debuginfo_query): Only set DESTNAME if successful.
781
dab72643
TT
7822020-11-21 Tom Tromey <tom@tromey.com>
783
784 * breakpoint.c (watchpoint_exp_is_const): Return bool.
785
c0ad05d5
SM
7862020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
787
788 * unittests/gmp-utils-selftests.c (gdb_mpz_read_all_from_small):
789 Pass 2.0 to pow.
790 (gdb_mpz_write_all_from_small): Likewise.
791
a43b29c9
SM
7922020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
793
794 * dwarf2/read.c (finish_fixed_point_type): Use std::abs instead
795 of abs.
796
ae41200b
NA
7972020-11-20 Nick Alcock <nick.alcock@oracle.com>
798
799 * ctfread.c (elfctf_build_psymtabs): Use ctf_dict_open, not
800 ctf_arc_open_by_name.
801
139633c3
NA
8022020-11-20 Nick Alcock <nick.alcock@oracle.com>
803
804 * ctfread.c: Change uses of ctf_file_t to ctf_dict_t.
805 (ctf_fp_info::~ctf_fp_info): Call ctf_dict_close, not ctf_file_close.
806
cbbcd7a7
PA
8072020-11-20 Pedro Alves <pedro@palves.net>
808
809 * language.c (language_arch_info::lookup_primitive_type): Use
810 gdb::function_view instead of gdb::function.
811 (template language_lookup_primitive_type): Rename to ...
812 (language_lookup_primitive_type_1): ... this, and make static.
813 (language_lookup_primitive_type(const struct language_defn *,
814 struct gdbarch *, const char *): Make non-template.
815 (language_lookup_primitive_type(const struct language_defn *,
816 struct gdbarch *, std::function<bool (struct type *)>): Make
817 non-template and use gdb::function_view.
818 * language.h (language_arch_info::lookup_primitive_type): Use
819 gdb::function_view instead of std::function.
820 (language_lookup_primitive_type): No longer template.
821 * opencl-lang.c (lookup_opencl_vector_type): 'filter' is now a
822 lambda instead of a std::function.
823
d5ef21c3
AA
8242020-11-19 Andreas Arnez <arnez@linux.ibm.com>
825
826 PR tdep/26916
827 * s390-tdep.c (s390_process_record): Fix recording of STOC, STOCG,
828 and STOCFH.
829
a5adb8f3
SM
8302020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
831
832 * f-lang.c (fortran_value_subarray): Use plongest/pulongest.
833
70125a45
SM
8342020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
835
836 * gdbarch.sh (read_core_file_mappings): Remove `other` parameter
837 in `loop_cb` parameter.
838 * gdbarch.c: Re-generate.
839 * gdbarch.h: Re-generate.
840 * arch-utils.c (default_read_core_file_mappings): Remove `other`
841 parameter.
842 * arch-utils.h (default_read_core_file_mappings): Likewise.
843 * corelow.c (core_target::build_file_mappings): Likewise.
844 * linux-tdep.c (linux_read_core_file_mappings): Likewise.
845 (linux_core_info_proc_mappings): Likewise.
846
a5c641b5
AB
8472020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
848
849 * Makefile.in (HFILES_NO_SRCDIR): Add f-array-walker.h.
850 * NEWS: Mention new options.
851 * f-array-walker.h: New file.
852 * f-lang.c: Include 'gdbcmd.h' and 'f-array-walker.h'.
853 (repack_array_slices): New static global.
854 (show_repack_array_slices): New function.
855 (fortran_array_slicing_debug): New static global.
856 (show_fortran_array_slicing_debug): New function.
857 (value_f90_subarray): Delete.
858 (skip_undetermined_arglist): Delete.
859 (class fortran_array_repacker_base_impl): New class.
860 (class fortran_lazy_array_repacker_impl): New class.
861 (class fortran_array_repacker_impl): New class.
862 (fortran_value_subarray): Complete rewrite.
863 (set_fortran_list): New static global.
864 (show_fortran_list): Likewise.
865 (_initialize_f_language): Register new commands.
866 (fortran_adjust_dynamic_array_base_address_hack): New function.
867 * f-lang.h (fortran_adjust_dynamic_array_base_address_hack):
868 Declare.
869 * f-valprint.c: Include 'f-array-walker.h'.
870 (class fortran_array_printer_impl): New class.
871 (f77_print_array_1): Delete.
872 (f77_print_array): Delete.
873 (fortran_print_array): New.
874 (f_value_print_inner): Update to call fortran_print_array.
875 * gdbtypes.c: Include 'f-lang.h'.
876 (resolve_dynamic_type_internal): Call
877 fortran_adjust_dynamic_array_base_address_hack.
878
a15a5258
AB
8792020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
880
881 * breakpoint.c (struct watch_options): New struct.
882 (watch_option_defs): New static global.
883 (make_watch_options_def_group): New function.
884 (watch_maybe_just_location): Convert option parsing.
885 (watch_command_completer): New function.
886 (_initialize_breakpoint): Build help text using options mechanism.
887
2e362716
AB
8882020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
889
890 * breakpoint.c (update_watchpoint): Pass 'false' not '0'.
891 (watch_command_1): Update parameter types. Convert locals to
892 bool.
893 (watch_command_wrapper): Change parameter type.
894 (watch_maybe_just_location): Change locals to bool.
895 (rwatch_command_wrapper): Update parameter type.
896 (awatch_command_wrapper): Update parameter type.
897 * breakpoint.h (watch_command_wrapper): Change parameter type.
898 (rwatch_command_wrapper): Update parameter type.
899 (awatch_command_wrapper): Update parameter type.
900 * eval.c (fetch_subexp_value): Change parameter type.
901 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition): Pass
902 'false' not '0'.
903 * value.h (fetch_subexp_value): Change parameter type in
904 declaration.
905
b3ff61f8
AB
9062020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
907
908 * printcmd.c (skip_over_slash_fmt): Make use of skip_to_space and
909 skip_spaces.
910
5b7d45d3
KS
9112020-11-18 Keith Seitz <keiths@redhat.com>
912
913 * linux-tdep.c (dump_note_entry_p): Return true instead of
914 checking `filename'.
915
c44191f8
TV
9162020-11-18 Tom de Vries <tdevries@suse.de>
917
918 * debuginfod-support.c (debuginfod_source_query)
919 (debuginfod_debuginfo_query): Also do early exit if
920 "(getenv (DEBUGINFOD_URLS_ENV_VAR))[0] == '\0'".
921
5d8254e1
TV
9222020-11-18 Tom de Vries <tdevries@suse.de>
923
924 * gdbtypes.c (update_static_array_size): Fix -Werror=bool-compare
925 warning.
926
584903d3
SM
9272020-11-17 Simon Marchi <simon.marchi@polymtl.ca>
928
929 * gdbtypes.h (get_array_bounds): Return bool, adjust some
930 callers. Move doc here.
931 * gdbtypes.c (get_array_bounds): Return bool
932
6f2643db
AB
9332020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
934
935 * arc-linux-tdep.c (arc_linux_sw_breakpoint_from_kind): Add an
936 assert.
937 * arc-tdep.c (arc_breakpoint_kind_from_pc): Likewise.
938 * disasm-selftests.c (print_one_insn_test): Fall throough from ARC
939 case to the default.
940
037d7135
AB
9412020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
942
943 * printcmd.c: Include 'safe-ctype.c'.
944 (skip_over_slash_fmt): New function.
945 (print_command_completer): Call skip_over_slash_fmt.
946 (display_and_x_command_completer): New function.
947 (_initialize_printcmd): Add command completion for 'x' and
948 'display'.
949
2b3cb400
PA
9502020-11-16 Pedro Alves <pedro@palves.net>
951
952 * frame.c (get_prev_frame): Move get_frame_id call from here ...
953 (get_prev_frame_always_1): ... to here.
954 * inline-frame.c (inline_frame_this_id): Mention
955 get_prev_frame_always_1 in comment.
956
b74dbc20
JB
9572020-11-15 Joel Brobecker <brobecker@adacore.com>
958
959 * valarith.c (fixed_point_binop): Add BINOP_EQUAL and BINOP_LESS
960 handling.
961 (value_less): Add fixed-point handling.
962
0a12719e
JB
9632020-11-15 Joel Brobecker <brobecker@adacore.com>
964
965 * eval.c (binop_promote): Add fixed-point type handling.
966 * valarith.c (fixed_point_binop): New function.
967 (scalar_binop): Add fixed-point type handling.
968 (value_neg): Add fixed-point type handling.
969 * valops.c (value_cast_to_fixed_point): New function.
970 (value_cast): Add fixed-point type handling.
971
0c9150e4
JB
9722020-11-15 Joel Brobecker <brobecker@adacore.com>
973
974 * ada-typeprint.c (ada_print_type): Add handing of fixed-point
975 range types.
976 * c-typeprint.c (c_type_print_varspec_prefix)
977 (c_type_print_varspec_suffix, c_type_print_base_1): Add
978 TYPE_CODE_FIXED_POINT handling.
979 * p-typeprint.c (pascal_type_print_varspec_prefix)
980 (pascal_type_print_varspec_suffix): Likewise.
981 * typeprint.c (print_type_fixed_point): New function.
982 * typeprint.h (print_type_fixed_point): Add declaration.
983
b26daff9
JB
9842020-11-15 Joel Brobecker <brobecker@adacore.com>
985
986 * printcmd.c (print_scalar_formatted): Add fixed-point type
987 handling when options->format is set.
988
09584414
JB
9892020-11-15 Joel Brobecker <brobecker@adacore.com>
990
991 * ada-valprint.c (ada_value_print_1): Add fixed-point type handling.
992 * dwarf2/read.c (get_dwarf2_rational_constant)
993 (get_dwarf2_unsigned_rational_constant, finish_fixed_point_type)
994 (has_zero_over_zero_small_attribute): New functions.
995 read_base_type, set_die_type): Add fixed-point type handling.
996 * gdb-gdb.py.in: Add fixed-point type handling.
997 * gdbtypes.c: #include "gmp-utils.h".
998 (create_range_type, set_type_code): Add fixed-point type handling.
999 (init_fixed_point_type): New function.
1000 (is_integral_type, is_scalar_type): Add fixed-point type handling.
1001 (print_fixed_point_type_info): New function.
1002 (recursive_dump_type, copy_type_recursive): Add fixed-point type
1003 handling.
1004 (fixed_point_type_storage): New typedef.
1005 (fixed_point_objfile_key): New static global.
1006 (allocate_fixed_point_type_info, is_fixed_point_type): New functions.
1007 (fixed_point_type_base_type, fixed_point_scaling_factor): New
1008 functions.
1009 * gdbtypes.h: #include "gmp-utils.h".
1010 (enum type_code) <TYPE_SPECIFIC_FIXED_POINT>: New enum.
1011 (union type_specific) <fixed_point_info>: New field.
1012 (struct fixed_point_type_info): New struct.
1013 (INIT_FIXED_POINT_SPECIFIC, TYPE_FIXED_POINT_INFO): New macros.
1014 (init_fixed_point_type, is_fixed_point_type)
1015 (fixed_point_type_base_type, fixed_point_scaling_factor)
1016 (allocate_fixed_point_type_info): Add declarations.
1017 * valprint.c (generic_val_print_fixed_point): New function.
1018 (generic_value_print): Add fixed-point type handling.
1019 * value.c (value_as_address, unpack_long): Add fixed-point type
1020 handling.
1021
e55c6530
JB
10222020-11-15 Joel Brobecker <brobecker@adacore.com>
1023
1024 * utils.h (uinteger_pow): Add declaration.
1025 * utils.c (uinteger_pow): Moved here (without changes)...
1026 * valarith.c (uinteger_pow): ... from here.
1027
b34c74ab
JB
10282020-11-15 Joel Brobecker <brobecker@adacore.com>
1029
40d9d2fd 1030 * gmp-utils.h, gmp-utils.c: New file.
b34c74ab
JB
1031 * unittests/gmp-utils-selftests.c: New file.
1032 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1033 unittests/gmp-utils-selftests.c.
1034 (COMMON_SFILES) Add gmp-utils.c.
1035 (HFILES_NO_SRCDIR): Add gmp-utils.h.
1036
1b4ac058
JB
10372020-11-15 Joel Brobecker <brobecker@adacore.com>
1038
1039 * configure.ac: Generate an error if a usable GMP library
1040 could not be found.
1041 * configure: Regenerate.
1042
2c947d9b
JB
10432020-11-15 Joel Brobecker <brobecker@adacore.com>
1044
1045 * configure.ac: Add support for --with-libgmp-prefix.
1046 * Makefile.in (LIBGMP): New variable.
1047 (CLIBS): Include $(LIBGMP).
1048 * configure, config.in: Regenerate
1049
9dd02fc0
AB
10502020-11-14 Andrew Burgess <andrew.burgess@embecosm.com>
1051
1052 PR cli/26879
1053 * f-exp.y (COMPLETE): New token.
1054 (exp): Two new rules for tab-completion.
1055 (saw_name_at_eof): New static global.
1056 (last_was_structop): Likewise.
1057 (yylex): Set new variables, and return COMPLETE token at the end
1058 of the input stream in some cases.
1059
758cb810
TT
10602020-11-14 Tom Tromey <tom@tromey.com>
1061
1062 * infrun.c (fetch_inferior_event): Use "bool" for should_stop.
1063
749065b7
TT
10642020-11-14 Tom Tromey <tom@tromey.com>
1065
1066 * opencl-lang.c (opencl_component_ref): Make "comps" const.
1067
2c5b1849
SM
10682020-11-14 Simon Marchi <simon.marchi@polymtl.ca>
1069
1070 * arm-tdep.c (class arm_instruction_reader) <read>: Fix comment.
1071
e8b2f0d9
TT
10722020-11-13 Tom Tromey <tom@tromey.com>
1073
1074 * c-lang.c (convert_ucn, convert_octal, convert_hex)
1075 (convert_escape, parse_one_string): Constify.
1076
25f4c262
KS
10772020-11-13 Keith Seitz <keiths@redhat.com>
1078
1079 https://bugzilla.redhat.com/show_bug.cgi?id=1553086
1080 * elfread.c (elf_symfile_segments): Omit "Loadable section ...
1081 outside of ELF segments" warning for debugin
1082
9d3ab915
KS
10832020-11-13 Keith Seitz <keiths@redhat.com>
1084
1085 PR gdb/23034
1086 * elfread.c (elf_symfile_segments): Output a BFD file name
1087 for the "Loadable section ... outside of ELF segments" warning.
1088
9ecab40c
SM
10892020-11-13 Simon Marchi <simon.marchi@polymtl.ca>
1090
1091 PR gdb/26835
1092 * arm-tdep.c (class arm_instruction_reader): New.
1093 (target_arm_instruction_reader): New.
1094 (arm_analyze_prologue): Add instruction reader parameter and use
1095 it. Use arm_expand_immediate.
1096 (class target_arm_instruction_reader): Adjust.
1097 (arm_skip_prologue): Adjust.
1098 (arm_expand_immediate): New.
1099 (arm_scan_prologue): Adjust.
1100 (arm_analyze_prologue_test): New.
1101 (class test_arm_instruction_reader): New.
1102
5a7cf527
AB
11032020-11-13 Andrew Burgess <andrew.burgess@embecosm.com>
1104
1105 * f-lang.c (fortran_argument_convert): Add declaration. Add
1106 header comment, taken from f-lang.h. Make static.
1107 * f-lang.h (f77_get_dynamic_array_length): Delete declaration.
1108 (fortran_argument_convert): Delete declaration.
1109
7bea47f0
AB
11102020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1111
1112 * ada-exp.y (find_primitive_type): Make parameter const.
1113 * ada-lang.c (enum ada_primitive_types): Delete.
1114 (ada_language::language_arch_info): Update.
1115 * c-lang.c (enum c_primitive_types): Delete.
1116 (c_language_arch_info): Update.
1117 (enum cplus_primitive_types): Delete.
1118 (cplus_language::language_arch_info): Update.
1119 * d-lang.c (enum d_primitive_types): Delete.
1120 (d_language::language_arch_info): Update.
1121 * f-lang.c (enum f_primitive_types): Delete.
1122 (f_language::language_arch_info): Update.
1123 * go-lang.c (enum go_primitive_types): Delete.
1124 (go_language::language_arch_info): Update.
1125 * language.c (auto_or_unknown_language::language_arch_info):
1126 Update.
1127 (language_gdbarch_post_init): Use obstack_new, use array indexing.
1128 (language_string_char_type): Add header comment, call function in
1129 language_arch_info.
1130 (language_bool_type): Likewise
1131 (language_arch_info::bool_type): Define.
1132 (language_lookup_primitive_type_1): Delete.
1133 (language_lookup_primitive_type): Rewrite as a templated function
1134 to call function in language_arch_info, then instantiate twice.
1135 (language_arch_info::type_and_symbol::alloc_type_symbol): Define.
1136 (language_arch_info::lookup_primitive_type_and_symbol): Define.
1137 (language_arch_info::lookup_primitive_type): Define twice with
1138 different signatures.
1139 (language_arch_info::lookup_primitive_type_as_symbol): Define.
1140 (language_lookup_primitive_type_as_symbol): Rewrite to call a
1141 member function in language_arch_info.
1142 * language.h (language_arch_info): Complete rewrite.
1143 (language_lookup_primitive_type): Make templated.
1144 * m2-lang.c (enum m2_primitive_types): Delete.
1145 (m2_language::language_arch_info): Update.
1146 * opencl-lang.c (OCL_P_TYPE): Delete.
1147 (enum opencl_primitive_types): Delete.
1148 (opencl_type_data): Delete.
1149 (builtin_opencl_type): Delete.
1150 (lookup_opencl_vector_type): Update.
1151 (opencl_language::language_arch_info): Update, lots of content
1152 moved from...
1153 (build_opencl_types): ...here. This function is now deleted.
1154 (_initialize_opencl_language): Delete.
1155 * p-lang.c (enum pascal_primitive_types): Delete.
1156 (pascal_language::language_arch_info): Update.
1157 * rust-lang.c (enum rust_primitive_types): Delete.
1158 (rust_language::language_arch_info): Update.
1159
bf6e5d01
SM
11602020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1161
1162 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix call to
1163 dwarf2_queue_guard.
1164
1350c3b4
SM
11652020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1166
1167 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix typo in
1168 comment.
1169
6f738b01
SM
11702020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1171
1172 * dwarf2/read.c (dwarf_read_debug_printf,
1173 dwarf_read_debug_printf_v): New macros, use throughout the file.
1174
10c19fad
SV
11752020-11-12 Shahab Vahedi <shahab@synopsys.com>
1176
10806efd 1177 PR tdep/27015
10c19fad
SV
1178 * arc-linux-tdep.c (collect_register): Populate "eret" by
1179 "pc" value from the regcache when asked for "pc" value.
1180
1f2624a3
TT
11812020-11-12 Tom Tromey <tom@tromey.com>
1182
1183 PR rust/26799:
1184 * symtab.c (find_symbol_at_address): Search symtabs if no psymtabs
1185 exist.
1186
ab33b152
AB
11872020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1188
1189 * features/Makefile (XMLTOC): Add rx.xml.
1190 (FEATURE_XMLFILES): Remove rx.xml.
1191 (FEATURE_CFILES rule): Pass '-single-feature' flag.
1192 * features/rx.c: Regenerate.
1193 * features/rx.xml: Wrap in `target` tags, and reindent.
1194 * target-descriptions.c (struct maint_print_c_tdesc_options): New
1195 structure.
1196 (maint_print_c_tdesc_opt_def): New typedef.
1197 (maint_print_c_tdesc_opt_defs): New static global.
1198 (make_maint_print_c_tdesc_options_def_group): New function.
1199 (maint_print_c_tdesc_cmd): Make use of command line flags, only
1200 print single feature C file for target descriptions containing a
1201 single feature.
1202 (maint_print_c_tdesc_cmd_completer): New function.
1203 (_initialize_target_descriptions): Update call to register command
1204 completer, and include command line flag in help text.
1205
550820e1
AB
12062020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
1207
1208 * riscv-tdep.c (riscv_dwarf_reg_to_regnum): Decode DWARF CSR
1209 numbers.
1210 * riscv-tdep.h (RISCV_DWARF_FIRST_CSR, RISCV_DWARF_LAST_CSR): New
1211 enum values.
1212
baf20f76
TT
12132020-11-10 Tom Tromey <tom@tromey.com>
1214
1215 * value.h (internalvar_name): Update.
1216 * value.c (internalvar_name): Make return type const.
1217
caaece0e
TT
12182020-11-10 Tom Tromey <tom@tromey.com>
1219
1220 * ax-gdb.c (gen_struct_elt_for_reference, gen_namespace_elt)
1221 (gen_maybe_namespace_elt, gen_aggregate_elt_ref, gen_expr): Use
1222 const.
1223
8e20b4be
TT
12242020-11-10 Tom Tromey <tom@tromey.com>
1225
1226 * objc-lang.h (value_nsstring): Update.
1227 * objc-lang.c (value_nsstring): Make "ptr" const.
1228
86775fab
AB
12292020-11-06 Andrew Burgess <andrew.burgess@embecosm.com>
1230
1231 * expprint.c (print_subexp_funcall): Increment expression position
1232 after reading argument count.
1233 * f-lang.c (print_subexp_f): Skip over opcode before calling
1234 common function.
1235 (dump_subexp_body_f): Likewise.
1236
3fed4c0b
RG
12372020-11-06 Romain Geissler <romain.geissler@amadeus.com>
1238
1239 PR python/26832
1240 * configure: Regenerate.
1241 * configure.ac: Check for python modules ctypes instead of
1242 itertools.
1243
ac3d4064
PA
12442020-11-06 Pedro Alves <pedro@palves.net>
1245
1246 * macroexp.c (struct macro_buffer): Split in two classes. Add
1247 uses adjusted.
1248 (struct shared_macro_buffer): New, factored out from struct
1249 macro_buffer.
1250 (struct growable_macro_buffer): New, factored out from struct
1251 macro_buffer.
1252 (set_token, get_comment, get_identifier, get_pp_number)
1253 (get_character_constant, get_string_literal, get_punctuator)
1254 (get_next_token_for_substitution): Constify parameters.
1255 (substitute_args): Constify locals.
1256
606decb2
TT
12572020-11-05 Tom Tromey <tom@tromey.com>
1258
1259 * dwarf2/read.c (read_cutu_die_from_dwo)
1260 (cutu_reader::cutu_reader, cutu_reader::cutu_reader)
1261 (build_type_psymtabs_1): Update.
1262 * dwarf2/abbrev.h (struct abbrev_table): Remove objfile
1263 parameter.
1264 * dwarf2/abbrev.c (abbrev_table::read): Remove objfile parameter.
1265 Don't read section. Add assert.
1266
9c91c725
TT
12672020-11-04 Tom Tromey <tromey@adacore.com>
1268
1269 * ada-typeprint.c (ada_print_type): Handle __XVL fields.
1270
8d9fd3a1
TT
12712020-11-04 Tom Tromey <tromey@adacore.com>
1272
1273 * ada-typeprint.c (ada_print_type): Handle __T types.
1274
d8f62e84
TT
12752020-11-04 Tom Tromey <tromey@adacore.com>
1276
1277 * dwarf2/read.c (add_partial_symbol, process_die):
1278 Handle DW_TAG_array_type.
1279 (is_type_tag_for_partial): Add "lang" parameter.
1280 (load_partial_dies, new_symbol): Handle DW_TAG_array_type.
1281
7ff5b937
TT
12822020-11-04 Tom Tromey <tromey@adacore.com>
1283
1284 * ada-lang.c (ada_value_slice_from_ptr): Use bit size.
1285
10f6a3ad
TT
12862020-11-04 Tom Tromey <tromey@adacore.com>
1287
1288 * dwarf2/read.c (read_array_type): Only apply stride to innermost
1289 array.
1290
b72795a8
TT
12912020-11-04 Tom Tromey <tromey@adacore.com>
1292
1293 * gdbtypes.c (update_static_array_size): Handle bit stride.
1294
24aa1b02
TT
12952020-11-04 Tom Tromey <tromey@adacore.com>
1296
1297 * ada-lang.c (ada_value_struct_elt): Resolve dynamic type.
1298
c9a28cbe
TT
12992020-11-04 Tom Tromey <tromey@adacore.com>
1300
1301 * ada-lang.c (ada_is_any_packed_array_type): New function.
1302 (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it.
1303
57567375
TT
13042020-11-04 Tom Tromey <tromey@adacore.com>
1305
1306 * dwarf2/read.c (recognize_bound_expression)
1307 (quirk_ada_thick_pointer): New functions.
1308 (read_array_type): Call quirk_ada_thick_pointer.
1309 (set_die_type): Add "skip_data_location" parameter.
1310 (quirk_ada_thick_pointer): New function.
1311 (process_structure_scope): Call quirk_ada_thick_pointer.
1312 * ada-lang.c (ada_is_unconstrained_packed_array_type)
1313 (decode_packed_array_bitsize): Handle thick pointers without
1314 parallel types.
1315 (ada_is_gnat_encoded_packed_array_type): Rename from
1316 ada_is_packed_array_type.
1317 (ada_is_constrained_packed_array_type): Update.
1318 * ada-valprint.c (ada_val_print_gnat_array): Remove.
1319 (ada_value_print_1): Use ada_get_decoded_value.
1320
a7400e44
TT
13212020-11-04 Tom Tromey <tromey@adacore.com>
1322
1323 * ada-lang.c (recursively_update_array_bitsize): New function.
1324 (decode_constrained_packed_array_type): Call it.
1325
75fd6a26
TT
13262020-11-04 Tom Tromey <tromey@adacore.com>
1327
1328 * ada-lang.c (to_fixed_array_type): Error if
1329 decode_constrained_packed_array_type returns NULL.
1330
93f9561e
TT
13312020-11-04 Tom Tromey <tromey@adacore.com>
1332
1333 * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
1334
257e02d8
TT
13352020-11-02 Tom Tromey <tromey@adacore.com>
1336
1337 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
1338 (ALLDEPFILES): Add amd64-ravenscar-thread.c.
1339 (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
1340 * amd64-ravenscar-thread.c: New file.
1341 * amd64-ravenscar-thread.h: New file.
1342 * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
1343 * configure.tgt (amd64_tobjs): Add ravenscar objects.
1344
74d877e5
AB
13452020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1346
1347 * main.c (execute_cmdargs): New function.
1348 (captured_main_1): Make use of execute_cmdargs.
1349
64aaad63
AB
13502020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1351
1352 * NEWS: Mention changes to config file search path.
1353 * main.c
1354
5b3d3560
TT
13552020-11-02 Tom Tromey <tromey@adacore.com>
1356
1357 * python/python.c: Consolidate two HAVE_PYTHON blocks.
1358 (python_GdbModuleDef): Move earlier. Now static.
1359 (do_start_initialization): Consolidate some IS_PY3K blocks.
1360
dda83cd7
SM
13612020-11-02 Simon Marchi <simon.marchi@efficios.com>
1362
1363 * aarch64-linux-tdep.c: Fix indentation.
1364 * aarch64-ravenscar-thread.c: Fix indentation.
1365 * aarch64-tdep.c: Fix indentation.
1366 * aarch64-tdep.h: Fix indentation.
1367 * ada-lang.c: Fix indentation.
1368 * ada-lang.h: Fix indentation.
1369 * ada-tasks.c: Fix indentation.
1370 * ada-typeprint.c: Fix indentation.
1371 * ada-valprint.c: Fix indentation.
1372 * ada-varobj.c: Fix indentation.
1373 * addrmap.c: Fix indentation.
1374 * addrmap.h: Fix indentation.
1375 * agent.c: Fix indentation.
1376 * aix-thread.c: Fix indentation.
1377 * alpha-bsd-nat.c: Fix indentation.
1378 * alpha-linux-tdep.c: Fix indentation.
1379 * alpha-mdebug-tdep.c: Fix indentation.
1380 * alpha-nbsd-tdep.c: Fix indentation.
1381 * alpha-obsd-tdep.c: Fix indentation.
1382 * alpha-tdep.c: Fix indentation.
1383 * amd64-bsd-nat.c: Fix indentation.
1384 * amd64-darwin-tdep.c: Fix indentation.
1385 * amd64-linux-nat.c: Fix indentation.
1386 * amd64-linux-tdep.c: Fix indentation.
1387 * amd64-nat.c: Fix indentation.
1388 * amd64-obsd-tdep.c: Fix indentation.
1389 * amd64-tdep.c: Fix indentation.
1390 * amd64-windows-tdep.c: Fix indentation.
1391 * annotate.c: Fix indentation.
1392 * arc-tdep.c: Fix indentation.
1393 * arch-utils.c: Fix indentation.
1394 * arch/arm-get-next-pcs.c: Fix indentation.
1395 * arch/arm.c: Fix indentation.
1396 * arm-linux-nat.c: Fix indentation.
1397 * arm-linux-tdep.c: Fix indentation.
1398 * arm-nbsd-tdep.c: Fix indentation.
1399 * arm-pikeos-tdep.c: Fix indentation.
1400 * arm-tdep.c: Fix indentation.
1401 * arm-tdep.h: Fix indentation.
1402 * arm-wince-tdep.c: Fix indentation.
1403 * auto-load.c: Fix indentation.
1404 * auxv.c: Fix indentation.
1405 * avr-tdep.c: Fix indentation.
1406 * ax-gdb.c: Fix indentation.
1407 * ax-general.c: Fix indentation.
1408 * bfin-linux-tdep.c: Fix indentation.
1409 * block.c: Fix indentation.
1410 * block.h: Fix indentation.
1411 * blockframe.c: Fix indentation.
1412 * bpf-tdep.c: Fix indentation.
1413 * break-catch-sig.c: Fix indentation.
1414 * break-catch-syscall.c: Fix indentation.
1415 * break-catch-throw.c: Fix indentation.
1416 * breakpoint.c: Fix indentation.
1417 * breakpoint.h: Fix indentation.
1418 * bsd-uthread.c: Fix indentation.
1419 * btrace.c: Fix indentation.
1420 * build-id.c: Fix indentation.
1421 * buildsym-legacy.h: Fix indentation.
1422 * buildsym.c: Fix indentation.
1423 * c-typeprint.c: Fix indentation.
1424 * c-valprint.c: Fix indentation.
1425 * c-varobj.c: Fix indentation.
1426 * charset.c: Fix indentation.
1427 * cli/cli-cmds.c: Fix indentation.
1428 * cli/cli-decode.c: Fix indentation.
1429 * cli/cli-decode.h: Fix indentation.
1430 * cli/cli-script.c: Fix indentation.
1431 * cli/cli-setshow.c: Fix indentation.
1432 * coff-pe-read.c: Fix indentation.
1433 * coffread.c: Fix indentation.
1434 * compile/compile-cplus-types.c: Fix indentation.
1435 * compile/compile-object-load.c: Fix indentation.
1436 * compile/compile-object-run.c: Fix indentation.
1437 * completer.c: Fix indentation.
1438 * corefile.c: Fix indentation.
1439 * corelow.c: Fix indentation.
1440 * cp-abi.h: Fix indentation.
1441 * cp-namespace.c: Fix indentation.
1442 * cp-support.c: Fix indentation.
1443 * cp-valprint.c: Fix indentation.
1444 * cris-linux-tdep.c: Fix indentation.
1445 * cris-tdep.c: Fix indentation.
1446 * darwin-nat-info.c: Fix indentation.
1447 * darwin-nat.c: Fix indentation.
1448 * darwin-nat.h: Fix indentation.
1449 * dbxread.c: Fix indentation.
1450 * dcache.c: Fix indentation.
1451 * disasm.c: Fix indentation.
1452 * dtrace-probe.c: Fix indentation.
1453 * dwarf2/abbrev.c: Fix indentation.
1454 * dwarf2/attribute.c: Fix indentation.
1455 * dwarf2/expr.c: Fix indentation.
1456 * dwarf2/frame.c: Fix indentation.
1457 * dwarf2/index-cache.c: Fix indentation.
1458 * dwarf2/index-write.c: Fix indentation.
1459 * dwarf2/line-header.c: Fix indentation.
1460 * dwarf2/loc.c: Fix indentation.
1461 * dwarf2/macro.c: Fix indentation.
1462 * dwarf2/read.c: Fix indentation.
1463 * dwarf2/read.h: Fix indentation.
1464 * elfread.c: Fix indentation.
1465 * eval.c: Fix indentation.
1466 * event-top.c: Fix indentation.
1467 * exec.c: Fix indentation.
1468 * exec.h: Fix indentation.
1469 * expprint.c: Fix indentation.
1470 * f-lang.c: Fix indentation.
1471 * f-typeprint.c: Fix indentation.
1472 * f-valprint.c: Fix indentation.
1473 * fbsd-nat.c: Fix indentation.
1474 * fbsd-tdep.c: Fix indentation.
1475 * findvar.c: Fix indentation.
1476 * fork-child.c: Fix indentation.
1477 * frame-unwind.c: Fix indentation.
1478 * frame-unwind.h: Fix indentation.
1479 * frame.c: Fix indentation.
1480 * frv-linux-tdep.c: Fix indentation.
1481 * frv-tdep.c: Fix indentation.
1482 * frv-tdep.h: Fix indentation.
1483 * ft32-tdep.c: Fix indentation.
1484 * gcore.c: Fix indentation.
1485 * gdb_bfd.c: Fix indentation.
1486 * gdbarch.sh: Fix indentation.
1487 * gdbarch.c: Re-generate
1488 * gdbarch.h: Re-generate.
1489 * gdbcore.h: Fix indentation.
1490 * gdbthread.h: Fix indentation.
1491 * gdbtypes.c: Fix indentation.
1492 * gdbtypes.h: Fix indentation.
1493 * glibc-tdep.c: Fix indentation.
1494 * gnu-nat.c: Fix indentation.
1495 * gnu-nat.h: Fix indentation.
1496 * gnu-v2-abi.c: Fix indentation.
1497 * gnu-v3-abi.c: Fix indentation.
1498 * go32-nat.c: Fix indentation.
1499 * guile/guile-internal.h: Fix indentation.
1500 * guile/scm-cmd.c: Fix indentation.
1501 * guile/scm-frame.c: Fix indentation.
1502 * guile/scm-iterator.c: Fix indentation.
1503 * guile/scm-math.c: Fix indentation.
1504 * guile/scm-ports.c: Fix indentation.
1505 * guile/scm-pretty-print.c: Fix indentation.
1506 * guile/scm-value.c: Fix indentation.
1507 * h8300-tdep.c: Fix indentation.
1508 * hppa-linux-nat.c: Fix indentation.
1509 * hppa-linux-tdep.c: Fix indentation.
1510 * hppa-nbsd-nat.c: Fix indentation.
1511 * hppa-nbsd-tdep.c: Fix indentation.
1512 * hppa-obsd-nat.c: Fix indentation.
1513 * hppa-tdep.c: Fix indentation.
1514 * hppa-tdep.h: Fix indentation.
1515 * i386-bsd-nat.c: Fix indentation.
1516 * i386-darwin-nat.c: Fix indentation.
1517 * i386-darwin-tdep.c: Fix indentation.
1518 * i386-dicos-tdep.c: Fix indentation.
1519 * i386-gnu-nat.c: Fix indentation.
1520 * i386-linux-nat.c: Fix indentation.
1521 * i386-linux-tdep.c: Fix indentation.
1522 * i386-nto-tdep.c: Fix indentation.
1523 * i386-obsd-tdep.c: Fix indentation.
1524 * i386-sol2-nat.c: Fix indentation.
1525 * i386-tdep.c: Fix indentation.
1526 * i386-tdep.h: Fix indentation.
1527 * i386-windows-tdep.c: Fix indentation.
1528 * i387-tdep.c: Fix indentation.
1529 * i387-tdep.h: Fix indentation.
1530 * ia64-libunwind-tdep.c: Fix indentation.
1531 * ia64-libunwind-tdep.h: Fix indentation.
1532 * ia64-linux-nat.c: Fix indentation.
1533 * ia64-linux-tdep.c: Fix indentation.
1534 * ia64-tdep.c: Fix indentation.
1535 * ia64-tdep.h: Fix indentation.
1536 * ia64-vms-tdep.c: Fix indentation.
1537 * infcall.c: Fix indentation.
1538 * infcmd.c: Fix indentation.
1539 * inferior.c: Fix indentation.
1540 * infrun.c: Fix indentation.
1541 * iq2000-tdep.c: Fix indentation.
1542 * language.c: Fix indentation.
1543 * linespec.c: Fix indentation.
1544 * linux-fork.c: Fix indentation.
1545 * linux-nat.c: Fix indentation.
1546 * linux-tdep.c: Fix indentation.
1547 * linux-thread-db.c: Fix indentation.
1548 * lm32-tdep.c: Fix indentation.
1549 * m2-lang.c: Fix indentation.
1550 * m2-typeprint.c: Fix indentation.
1551 * m2-valprint.c: Fix indentation.
1552 * m32c-tdep.c: Fix indentation.
1553 * m32r-linux-tdep.c: Fix indentation.
1554 * m32r-tdep.c: Fix indentation.
1555 * m68hc11-tdep.c: Fix indentation.
1556 * m68k-bsd-nat.c: Fix indentation.
1557 * m68k-linux-nat.c: Fix indentation.
1558 * m68k-linux-tdep.c: Fix indentation.
1559 * m68k-tdep.c: Fix indentation.
1560 * machoread.c: Fix indentation.
1561 * macrocmd.c: Fix indentation.
1562 * macroexp.c: Fix indentation.
1563 * macroscope.c: Fix indentation.
1564 * macrotab.c: Fix indentation.
1565 * macrotab.h: Fix indentation.
1566 * main.c: Fix indentation.
1567 * mdebugread.c: Fix indentation.
1568 * mep-tdep.c: Fix indentation.
1569 * mi/mi-cmd-catch.c: Fix indentation.
1570 * mi/mi-cmd-disas.c: Fix indentation.
1571 * mi/mi-cmd-env.c: Fix indentation.
1572 * mi/mi-cmd-stack.c: Fix indentation.
1573 * mi/mi-cmd-var.c: Fix indentation.
1574 * mi/mi-cmds.c: Fix indentation.
1575 * mi/mi-main.c: Fix indentation.
1576 * mi/mi-parse.c: Fix indentation.
1577 * microblaze-tdep.c: Fix indentation.
1578 * minidebug.c: Fix indentation.
1579 * minsyms.c: Fix indentation.
1580 * mips-linux-nat.c: Fix indentation.
1581 * mips-linux-tdep.c: Fix indentation.
1582 * mips-nbsd-tdep.c: Fix indentation.
1583 * mips-tdep.c: Fix indentation.
1584 * mn10300-linux-tdep.c: Fix indentation.
1585 * mn10300-tdep.c: Fix indentation.
1586 * moxie-tdep.c: Fix indentation.
1587 * msp430-tdep.c: Fix indentation.
1588 * namespace.h: Fix indentation.
1589 * nat/fork-inferior.c: Fix indentation.
1590 * nat/gdb_ptrace.h: Fix indentation.
1591 * nat/linux-namespaces.c: Fix indentation.
1592 * nat/linux-osdata.c: Fix indentation.
1593 * nat/netbsd-nat.c: Fix indentation.
1594 * nat/x86-dregs.c: Fix indentation.
1595 * nbsd-nat.c: Fix indentation.
1596 * nbsd-tdep.c: Fix indentation.
1597 * nios2-linux-tdep.c: Fix indentation.
1598 * nios2-tdep.c: Fix indentation.
1599 * nto-procfs.c: Fix indentation.
1600 * nto-tdep.c: Fix indentation.
1601 * objfiles.c: Fix indentation.
1602 * objfiles.h: Fix indentation.
1603 * opencl-lang.c: Fix indentation.
1604 * or1k-tdep.c: Fix indentation.
1605 * osabi.c: Fix indentation.
1606 * osabi.h: Fix indentation.
1607 * osdata.c: Fix indentation.
1608 * p-lang.c: Fix indentation.
1609 * p-typeprint.c: Fix indentation.
1610 * p-valprint.c: Fix indentation.
1611 * parse.c: Fix indentation.
1612 * ppc-linux-nat.c: Fix indentation.
1613 * ppc-linux-tdep.c: Fix indentation.
1614 * ppc-nbsd-nat.c: Fix indentation.
1615 * ppc-nbsd-tdep.c: Fix indentation.
1616 * ppc-obsd-nat.c: Fix indentation.
1617 * ppc-ravenscar-thread.c: Fix indentation.
1618 * ppc-sysv-tdep.c: Fix indentation.
1619 * ppc64-tdep.c: Fix indentation.
1620 * printcmd.c: Fix indentation.
1621 * proc-api.c: Fix indentation.
1622 * producer.c: Fix indentation.
1623 * producer.h: Fix indentation.
1624 * prologue-value.c: Fix indentation.
1625 * prologue-value.h: Fix indentation.
1626 * psymtab.c: Fix indentation.
1627 * python/py-arch.c: Fix indentation.
1628 * python/py-bpevent.c: Fix indentation.
1629 * python/py-event.c: Fix indentation.
1630 * python/py-event.h: Fix indentation.
1631 * python/py-finishbreakpoint.c: Fix indentation.
1632 * python/py-frame.c: Fix indentation.
1633 * python/py-framefilter.c: Fix indentation.
1634 * python/py-inferior.c: Fix indentation.
1635 * python/py-infthread.c: Fix indentation.
1636 * python/py-objfile.c: Fix indentation.
1637 * python/py-prettyprint.c: Fix indentation.
1638 * python/py-registers.c: Fix indentation.
1639 * python/py-signalevent.c: Fix indentation.
1640 * python/py-stopevent.c: Fix indentation.
1641 * python/py-stopevent.h: Fix indentation.
1642 * python/py-threadevent.c: Fix indentation.
1643 * python/py-tui.c: Fix indentation.
1644 * python/py-unwind.c: Fix indentation.
1645 * python/py-value.c: Fix indentation.
1646 * python/py-xmethods.c: Fix indentation.
1647 * python/python-internal.h: Fix indentation.
1648 * python/python.c: Fix indentation.
1649 * ravenscar-thread.c: Fix indentation.
1650 * record-btrace.c: Fix indentation.
1651 * record-full.c: Fix indentation.
1652 * record.c: Fix indentation.
1653 * reggroups.c: Fix indentation.
1654 * regset.h: Fix indentation.
1655 * remote-fileio.c: Fix indentation.
1656 * remote.c: Fix indentation.
1657 * reverse.c: Fix indentation.
1658 * riscv-linux-tdep.c: Fix indentation.
1659 * riscv-ravenscar-thread.c: Fix indentation.
1660 * riscv-tdep.c: Fix indentation.
1661 * rl78-tdep.c: Fix indentation.
1662 * rs6000-aix-tdep.c: Fix indentation.
1663 * rs6000-lynx178-tdep.c: Fix indentation.
1664 * rs6000-nat.c: Fix indentation.
1665 * rs6000-tdep.c: Fix indentation.
1666 * rust-lang.c: Fix indentation.
1667 * rx-tdep.c: Fix indentation.
1668 * s12z-tdep.c: Fix indentation.
1669 * s390-linux-tdep.c: Fix indentation.
1670 * score-tdep.c: Fix indentation.
1671 * ser-base.c: Fix indentation.
1672 * ser-mingw.c: Fix indentation.
1673 * ser-uds.c: Fix indentation.
1674 * ser-unix.c: Fix indentation.
1675 * serial.c: Fix indentation.
1676 * sh-linux-tdep.c: Fix indentation.
1677 * sh-nbsd-tdep.c: Fix indentation.
1678 * sh-tdep.c: Fix indentation.
1679 * skip.c: Fix indentation.
1680 * sol-thread.c: Fix indentation.
1681 * solib-aix.c: Fix indentation.
1682 * solib-darwin.c: Fix indentation.
1683 * solib-frv.c: Fix indentation.
1684 * solib-svr4.c: Fix indentation.
1685 * solib.c: Fix indentation.
1686 * source.c: Fix indentation.
1687 * sparc-linux-tdep.c: Fix indentation.
1688 * sparc-nbsd-tdep.c: Fix indentation.
1689 * sparc-obsd-tdep.c: Fix indentation.
1690 * sparc-ravenscar-thread.c: Fix indentation.
1691 * sparc-tdep.c: Fix indentation.
1692 * sparc64-linux-tdep.c: Fix indentation.
1693 * sparc64-nbsd-tdep.c: Fix indentation.
1694 * sparc64-obsd-tdep.c: Fix indentation.
1695 * sparc64-tdep.c: Fix indentation.
1696 * stabsread.c: Fix indentation.
1697 * stack.c: Fix indentation.
1698 * stap-probe.c: Fix indentation.
1699 * stubs/ia64vms-stub.c: Fix indentation.
1700 * stubs/m32r-stub.c: Fix indentation.
1701 * stubs/m68k-stub.c: Fix indentation.
1702 * stubs/sh-stub.c: Fix indentation.
1703 * stubs/sparc-stub.c: Fix indentation.
1704 * symfile-mem.c: Fix indentation.
1705 * symfile.c: Fix indentation.
1706 * symfile.h: Fix indentation.
1707 * symmisc.c: Fix indentation.
1708 * symtab.c: Fix indentation.
1709 * symtab.h: Fix indentation.
1710 * target-float.c: Fix indentation.
1711 * target.c: Fix indentation.
1712 * target.h: Fix indentation.
1713 * tic6x-tdep.c: Fix indentation.
1714 * tilegx-linux-tdep.c: Fix indentation.
1715 * tilegx-tdep.c: Fix indentation.
1716 * top.c: Fix indentation.
1717 * tracefile-tfile.c: Fix indentation.
1718 * tracepoint.c: Fix indentation.
1719 * tui/tui-disasm.c: Fix indentation.
1720 * tui/tui-io.c: Fix indentation.
1721 * tui/tui-regs.c: Fix indentation.
1722 * tui/tui-stack.c: Fix indentation.
1723 * tui/tui-win.c: Fix indentation.
1724 * tui/tui-winsource.c: Fix indentation.
1725 * tui/tui.c: Fix indentation.
1726 * typeprint.c: Fix indentation.
1727 * ui-out.h: Fix indentation.
1728 * unittests/copy_bitwise-selftests.c: Fix indentation.
1729 * unittests/memory-map-selftests.c: Fix indentation.
1730 * utils.c: Fix indentation.
1731 * v850-tdep.c: Fix indentation.
1732 * valarith.c: Fix indentation.
1733 * valops.c: Fix indentation.
1734 * valprint.c: Fix indentation.
1735 * valprint.h: Fix indentation.
1736 * value.c: Fix indentation.
1737 * value.h: Fix indentation.
1738 * varobj.c: Fix indentation.
1739 * vax-tdep.c: Fix indentation.
1740 * windows-nat.c: Fix indentation.
1741 * windows-tdep.c: Fix indentation.
1742 * xcoffread.c: Fix indentation.
1743 * xml-syscall.c: Fix indentation.
1744 * xml-tdesc.c: Fix indentation.
1745 * xstormy16-tdep.c: Fix indentation.
1746 * xtensa-config.c: Fix indentation.
1747 * xtensa-linux-nat.c: Fix indentation.
1748 * xtensa-linux-tdep.c: Fix indentation.
1749 * xtensa-tdep.c: Fix indentation.
1750
e1f57067
AB
17512020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1752 Craig Blackmore <craig.blackmore@embecosm.com>
1753
1754 * riscv-tdep.c (riscv_frame_cache): Read the frame base register
1755 as an unsigned value.
1756
ae7754b2
TT
17572020-11-01 Tom Tromey <tom@tromey.com>
1758
1759 * dbxread.c (dbx_end_psymtab): Update.
1760 * dwarf2/read.c (process_psymtab_comp_unit_reader)
1761 (build_type_psymtabs_reader): Update.
1762 * xcoffread.c (xcoff_end_psymtab): Update.
1763 * ctfread.c (scan_partial_symbols): Update.
1764 * psymtab.c (sort_pst_symbols): Remove.
1765 (partial_symtab::end): Rename from end_psymtab_common. Inline
1766 sort_pst_symbols.
1767 * psympriv.h (struct partial_symtab) <end>: New method.
1768 (end_psymtab_common): Don't declare.
1769
0684bb51
TT
17702020-11-01 Tom Tromey <tom@tromey.com>
1771
1772 * symmisc.c (count_psyms): New function.
1773 (print_objfile_statistics): Use it.
1774 * psymtab.c (append_psymbol_to_list): Remove.
1775 (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
1776 * objfiles.h (struct objstats) <n_psyms>: Remove.
1777
089002bb
TT
17782020-11-01 Tom Tromey <tom@tromey.com>
1779
1780 * dbxread.c (dbx_end_psymtab): Update.
1781 * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
1782 (build_type_psymtabs_reader): Update.
1783 * xcoffread.c (xcoff_end_psymtab): Update.
1784 * ctfread.c (scan_partial_symbols): Update.
1785 * psympriv.h (end_psymtab_common): Update.
1786 * psymtab.c (end_psymtab_common): Remove objfile parameter.
1787 (sort_pst_symbols): Likewise.
1788
525454d6
TT
17892020-11-01 Tom Tromey <tom@tromey.com>
1790
1791 * dbxread.c (dbx_symfile_read): Update.
1792 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
1793 * xcoffread.c (xcoff_initial_scan): Update.
1794 * psympriv.h (init_psymbol_list): Don't declare.
1795 * psymtab.c (init_psymbol_list): Remove.
1796
60bd1d53
JB
17972020-11-01 Joel Brobecker <brobecker@adacore.com>
1798
1799 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
1800 gnat_encoded_fixed_type_info. Update all callers.
1801
db99d0d0
JB
18022020-11-01 Joel Brobecker <brobecker@adacore.com>
1803
1804 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
1805 line too long.
1806
75f24e86
JB
18072020-11-01 Joel Brobecker <brobecker@adacore.com>
1808
1809 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
1810 cast_from_fixed. Update all callers.
1811 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
1812 Update all callers.
1813 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
1814 Update all callers.
1815 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
1816 ada_scaling_factor.
1817 * ada-typeprint.c: Replace call to ada_scaling_factor by call
1818 to print_gnat_encoded_fixed_point_type.
1819 * ada-valprint.c: Likewise.
1820
4f0469cd
AB
18212020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1822
1823 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
1824 (debug_prefixed_printf): Add check of debug_displaced flag.
1825 * linux-nat.c (linux_nat_debug_printf): Add check of
1826 debug_linux_nat flag.
1827
17417fb0
SM
18282020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1829
1830 * infrun.c (infrun_debug_printf_1): Remove.
1831 (displaced_debug_printf_1): Remove.
1832 (stop_all_threads): Use debug_prefixed_printf.
1833 * infrun.h (infrun_debug_printf_1): Remove.
1834 (infrun_debug_printf): Use debug_prefixed_printf.
1835 (displaced_debug_printf_1): Remove.
1836 (displaced_debug_printf): Use debug_prefixed_printf.
1837 * linux-nat.c (linux_nat_debug_printf_1): Remove.
1838 (linux_nat_debug_printf): Use debug_prefixed_printf.
1839
ad6dba1c
SM
18402020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1841
1842 * configure: Re-generate.
1843 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
1844 AC_LANG_PROGRAM.
1845
b6fb30ed
SM
18462020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1847
1848 * configure: Re-generate.
1849
5164c117
SM
18502020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1851
1852 * configure: Re-generate.
1853
864ca435
SM
18542020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1855
1856 * configure: Re-generate.
1857
b9442ec1
SM
18582020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1859
1860 * configure: Re-generate.
1861
294f2697
SM
18622020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1863
1864 * acinclude.m4: Modernize.
1865 * configure: Re-generate.
1866
5593a99a
SM
18672020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1868
1869 * configure.ac: Modernize.
1870 * configure: Re-generate.
1871
e41fda1d
SM
18722020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1873
1874 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
1875 * configure: Re-generate.
1876 * configure.ac: Remove AM_PROG_CC_STDC.
1877
91e1a0ed
SM
18782020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1879
1880 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
1881 AC_CANONICAL_SYSTEM.
1882 * configure: Re-generate.
1883
136821d9
SM
18842020-10-30 Simon Marchi <simon.marchi@efficios.com>
1885
1886 * infrun.h (displaced_debug_printf): New macro. Replace
1887 displaced debug prints throughout to use it.
1888 (displaced_debug_printf_1): New declaration.
1889 (displaced_step_dump_bytes): Return string, remove ui_file
1890 parameter, update all callers.
1891 * infrun.c (displaced_debug_printf_1): New function.
1892 (displaced_step_dump_bytes): Return string, remove ui_file
1893 parameter
1894
aa2045e7
SM
18952020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
1896
1897 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
1898
b1ec2735
TT
18992020-10-30 Tom Tromey <tromey@adacore.com>
1900
1901 * Makefile.in (stamp-init): Depend on config.status.
1902
b78b3a29
TBA
19032020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1904
1905 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
1906
d70bdd3c
PA
19072020-10-30 Pedro Alves <pedro@palves.net>
1908
1909 * thread.c (lookup_selected_frame): Move ...
1910 * frame.c (lookup_selected_frame): ... here.
1911
79952e69
PA
19122020-10-30 Pedro Alves <pedro@palves.net>
1913
1914 * blockframe.c (block_innermost_frame): Use get_selected_frame.
1915 * frame.c
1916 (scoped_restore_selected_frame::scoped_restore_selected_frame):
1917 Use save_selected_frame. Save language as well.
1918 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
1919 Use restore_selected_frame, and restore language as well.
1920 (selected_frame_id, selected_frame_level): New.
1921 (selected_frame): Update comments.
1922 (save_selected_frame, restore_selected_frame): New.
1923 (get_selected_frame): Use lookup_selected_frame.
1924 (get_selected_frame_if_set): Delete.
1925 (select_frame): Record selected_frame_level and selected_frame_id.
1926 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
1927 fields.
1928 (get_selected_frame): Make 'message' parameter optional.
1929 (get_selected_frame_if_set): Delete declaration.
1930 (select_frame): Update comments.
1931 (save_selected_frame, restore_selected_frame)
1932 (lookup_selected_frame): Declare.
1933 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
1934 * infrun.c (struct infcall_control_state) <selected_frame_level>:
1935 New field.
1936 (save_infcall_control_state): Use save_selected_frame.
1937 (restore_selected_frame): Delete.
1938 (restore_infcall_control_state): Use restore_selected_frame.
1939 * stack.c (select_frame_command_core, frame_command_core): Use
1940 get_selected_frame.
1941 * thread.c (restore_selected_frame): Rename to ...
1942 (lookup_selected_frame): ... this and make extern. Select the
1943 current frame if the frame level is -1.
1944 (scoped_restore_current_thread::restore): Also restore the
1945 language.
1946 (scoped_restore_current_thread::~scoped_restore_current_thread):
1947 Don't try/catch.
1948 (scoped_restore_current_thread::scoped_restore_current_thread):
1949 Save the language as well. Use save_selected_frame.
1950
58103c33
SM
19512020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1952
1953 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
1954 documentation.
1955 * gdbarch.h: Re-generate.
1956
40a53766
SM
19572020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1958
1959 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
1960 parameter.
1961 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
1962 Likewise.
1963 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
1964 Likewise.
1965 * arch-utils.c (default_displaced_step_hw_singlestep):
1966 Likewise.
1967 * arch-utils.h (default_displaced_step_hw_singlestep):
1968 Likewise.
1969 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
1970 Likewise.
1971 * s390-tdep.c (s390_displaced_step_hw_singlestep):
1972 Likewise.
1973 * gdbarch.c: Re-generate.
1974 * gdbarch.h: Re-generate.
1975 * infrun.c (resume_1): Adjust.
1976
8407f91b
TT
19772020-10-29 Tom Tromey <tom@tromey.com>
1978
1979 * progspace.c (program_space::~program_space): Don't call
1980 exec_close.
1981
5008b3b2
TT
19822020-10-29 Tom Tromey <tom@tromey.com>
1983
1984 * exec.c (exec_target::close): Don't change current program
1985 space.
1986
d9eebde0
TT
19872020-10-29 Tom Tromey <tom@tromey.com>
1988
1989 * symfile.c (add_symbol_file_command): Update.
1990 * exec.c (program_space::add_target_sections): Rename.
1991 * symfile-mem.c (symbol_file_add_from_memory): Update.
1992 * progspace.h (struct program_space) <add_target_sections>:
1993 Declare new overload.
1994 * exec.h (add_target_sections_of_objfile): Don't declare.
1995
3769e227
TT
19962020-10-29 Tom Tromey <tom@tromey.com>
1997
1998 * solib.c (solib_map_sections): Update.
1999 * exec.c (program_space::add_target_sections): Now a method.
2000 (exec_file_attach): Update.
2001 * exec.h (add_target_sections): Don't declare.
2002 * progspace.h (struct program_space) <add_target_sections>:
2003 Declare.
2004
2a3f84af
TT
20052020-10-29 Tom Tromey <tom@tromey.com>
2006
2007 * progspace.h (struct program_space) <remove_target_sections>:
2008 Declare.
2009 * exec.c (program_space::remove_target_sections): Now a method.
2010 * exec.h (remove_target_sections): Don't declare.
2011
004eecfd
TT
20122020-10-29 Tom Tromey <tom@tromey.com>
2013
2014 * inferior.c (delete_inferior): Update.
2015 * progspace.c (program_space::empty): Rename from
2016 program_space_empty_p. Return bool.
2017 * progspace.h (struct program_space) <empty>: New method.
2018 (program_space_empty_p): Don't declare.
2019
e39fb971
TT
20202020-10-29 Tom Tromey <tom@tromey.com>
2021
2022 * progspace.c (program_space::~program_space): Don't call
2023 clear_program_space_solib_cache.
2024 (program_space::clear_solib_cache): Rename from
2025 clear_solib_cache.
2026 * solib.c (handle_solib_event): Update.
2027 * progspace.h (struct program_space) <clear_solib_cache>: New
2028 method.
2029 (clear_program_space_solib_cache): Don't declare.
2030
a42d7dd8
TT
20312020-10-29 Tom Tromey <tom@tromey.com>
2032
2033 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2034 * target.c (info_target_command): Update.
2035 * symfile.c (syms_from_objfile_1, finish_new_objfile)
2036 (symbol_file_clear, reread_symbols): Update.
2037 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
2038 * stabsread.c (scan_file_globals): Update.
2039 * solib.c (update_solib_list): Update.
2040 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
2041 (svr4_fetch_objfile_link_map, enable_break)
2042 (svr4_relocate_main_executable)
2043 (svr4_iterate_over_objfiles_in_search_order): Update.
2044 * solib-frv.c (lm_base, enable_break)
2045 (frv_relocate_main_executable): Update.
2046 (main_got, frv_fdpic_find_canonical_descriptor): Update.
2047 (frv_fetch_objfile_link_map): Update.
2048 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
2049 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
2050 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
2051 * remote.c (remote_target::get_offsets): Update.
2052 (remote_target::start_remote)
2053 (extended_remote_target::post_attach): Update.
2054 * objfiles.c (entry_point_address_query): Update.
2055 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
2056 * minsyms.c (get_symbol_leading_char): Update.
2057 * frame.c (inside_main_func): Update.
2058 * progspace.h (symfile_objfile): Remove macro.
2059
19f6550e
TT
20602020-10-29 Tom Tromey <tom@tromey.com>
2061
2062 * exec.c (exec_file_attach): Update.
2063 * progspace.c (program_space::exec_close): Update.
2064 * progspace.h (struct program_space) <ebfd>: Now a
2065 gdb_bfd_ref_ptr.
2066 <set_exec_bfd>: Change argument type.
2067 <exec_bfd>: Update.
2068
7e10abd1
TT
20692020-10-29 Tom Tromey <tom@tromey.com>
2070
2071 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2072 * symfile.c (reread_symbols): Update.
2073 * symfile-mem.c (add_symbol_file_from_memory_command)
2074 (add_vsyscall_page): Update.
2075 * source-cache.c (source_cache::get_plain_source_lines): Update.
2076 * solib-svr4.c (find_program_interpreter, elf_locate_base)
2077 (svr4_current_sos_direct, svr4_exec_displacement)
2078 (svr4_relocate_main_executable): Update.
2079 (svr4_iterate_over_objfiles_in_search_order): Update.
2080 * solib-frv.c (enable_break2, enable_break): Update.
2081 * solib-dsbt.c (lm_base, enable_break): Update.
2082 * solib-darwin.c (find_program_interpreter)
2083 (darwin_solib_create_inferior_hook): Update.
2084 * sol-thread.c (rw_common, ps_pdmodel): Update.
2085 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
2086 * remote.c (compare_sections_command)
2087 (remote_target::trace_set_readonly_regions): Update.
2088 * remote-sim.c (get_sim_inferior_data)
2089 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
2090 (gdbsim_target_open, gdbsim_target::files_info): Update.
2091 * exec.h (exec_bfd): Remove macro.
2092 * progspace.c (initialize_progspace): Update.
2093 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
2094 Update.
2095 * nto-procfs.c (nto_procfs_target::post_attach)
2096 (nto_procfs_target::create_inferior): Update.
2097 * maint.c (maintenance_info_sections): Update.
2098 * linux-thread-db.c (thread_db_target::get_thread_local_address):
2099 Update.
2100 * infcmd.c (post_create_inferior): Update.
2101 * gcore.c (default_gcore_arch, default_gcore_target): Update.
2102 (objfile_find_memory_regions): Update.
2103 * exec.c (validate_exec_file, exec_file_attach)
2104 (exec_read_partial_read_only, print_section_info): Update.
2105 * corelow.c (core_target_open): Update.
2106 * corefile.c (reopen_exec_file, validate_files): Update.
2107 * arm-tdep.c (gdb_print_insn_arm): Update.
2108 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
2109 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
2110 methods.
2111
b55221ab
TT
21122020-10-29 Tom Tromey <tom@tromey.com>
2113
2114 * progspace.h (current_target_sections): Remove macro.
2115 * solib-svr4.c (scan_dyntag): Update.
2116 * solib-dsbt.c (scan_dyntag): Update.
2117 * exec.c (exec_target::close): Update.
2118 (add_target_sections, add_target_sections_of_objfile)
2119 (remove_target_sections, exec_target::get_section_table)
2120 (exec_target::files_info, set_section_command)
2121 (exec_set_section_address, exec_target::has_memory)
2122 (exec_target::has_memory): Update.
2123
5a36e715
TT
21242020-10-29 Tom Tromey <tom@tromey.com>
2125
2126 * source-cache.c (source_cache::get_plain_source_lines): Use
2127 current_program_space.
2128 * corefile.c (reopen_exec_file): Use current_program_space.
2129 * exec.c (exec_file_attach): Use current_program_space.
2130 * exec.h (exec_bfd_mtime): Remove.
2131
784c8592
TT
21322020-10-29 Tom Tromey <tom@tromey.com>
2133
2134 * gcore.c (default_gcore_mach): Remove.
2135 (create_gcore_bfd): Update.
2136
8a4f1402
TT
21372020-10-29 Tom Tromey <tom@tromey.com>
2138
2139 * progspace.c (program_space::exec_close): New method, from
2140 exec_close in exec.c.
2141 * exec.c (exec_close): Move to progspace.c.
2142 (exec_target::close, exec_file_attach): Update.
2143 * progspace.h (struct program_space) <exec_close>: Declare
2144 method.
2145
c20cb686
TT
21462020-10-29 Tom Tromey <tom@tromey.com>
2147
2148 * progspace.h (struct program_space) <exec_filename>: Rename from
2149 pspace_exec_filename. Now a unique_xmalloc_ptr.
2150 * inferior.c (print_selected_inferior): Update.
2151 (print_inferior): Update.
2152 * mi/mi-main.c (print_one_inferior): Update.
2153 * exec.h (exec_filename): Remove macro.
2154 * corefile.c (get_exec_file): Update.
2155 * exec.c (exec_close): Update.
2156 (exec_file_attach): Update.
2157 * progspace.c (clone_program_space): Update.
2158 (print_program_space): Update.
2159
6be2a9ab
TT
21602020-10-29 Tom Tromey <tom@tromey.com>
2161
2162 * target-section.h (struct target_section): Add constructor.
2163 * exec.c (build_section_table, add_target_sections_of_objfile):
2164 Update.
2165 * corelow.c (core_target::build_file_mappings): Update.
2166
cfaa8f76
TBA
21672020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2168
2169 PR gdb/19318
2170 * inferior.c (detach_inferior_command): Restore the current thread.
2171 (kill_inferior_command): Ditto.
2172
1b00ef06
TV
21732020-10-28 Tom de Vries <tdevries@suse.de>
2174
2175 PR symtab/26772
2176 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
2177 map, check it in the "best match" loop.
2178
7f40ce1a
SM
21792020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
2180
2181 * m32c-tdep.c: Remove unused includes.
2182
5eb9e3f5
SM
21832020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
2184
2185 * xtensa-tdep.c: Remove includes.
2186
b1d4d8d1
TBA
21872020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2188
2189 * breakpoint.c (struct condition_command_opts): New struct.
2190 (condition_command_option_defs): New static global.
2191 (make_condition_command_options_def_group): New function.
2192 (condition_completer): Update to consider the '-force' flag.
2193 (condition_command): Use gdb::option for the '-force' flag.
2194
bd24c5d6
TV
21952020-10-27 Tom de Vries <tdevries@suse.de>
2196
2197 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
2198 symbols in section check.
2199
61eb46a4
TV
22002020-10-27 Tom de Vries <tdevries@suse.de>
2201
2202 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
2203
733d554a
TBA
22042020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2205
2206 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
2207 * breakpoint.c: Update the help text of the 'condition' and 'break'
2208 commands.
2209 (set_breakpoint_condition): Take a new bool parameter
2210 to control whether condition definition should be forced even when
2211 the condition expression is invalid in all of the current locations.
2212 (condition_command): Update the call to 'set_breakpoint_condition'.
2213 (find_condition_and_thread): Take the "-force-condition" flag into
2214 account.
2215 * linespec.c (linespec_keywords): Add "-force-condition" as an
2216 element.
2217 (FORCE_KEYWORD_INDEX): New #define.
2218 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
2219 as a keyword.
2220 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
2221 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
2222 * python/py-breakpoint.c (bppy_set_condition): Ditto.
2223 * NEWS: Mention the changes to the 'break' and 'condition' commands.
2224
b5fa468f
TBA
22252020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2226
2227 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
2228 * breakpoint.c (set_breakpoint_location_condition): New function.
2229 (set_breakpoint_condition): Disable a breakpoint location if parsing
2230 the condition string gives an error.
2231 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
2232 (build_target_condition_list): Ditto.
2233 (build_target_command_list): Ditto.
2234 (build_bpstat_chain): Ditto.
2235 (print_one_breakpoint_location): Ditto.
2236 (print_one_breakpoint): Ditto.
2237 (breakpoint_1): Ditto.
2238 (bp_location::bp_location): Ditto.
2239 (locations_are_equal): Ditto.
2240 (update_breakpoint_locations): Ditto.
2241 (enable_disable_bp_num_loc): Ditto.
2242 (init_breakpoint_sal): Use set_breakpoint_location_condition.
2243 (find_condition_and_thread_for_sals): New static function.
2244 (create_breakpoint): Call find_condition_and_thread_for_sals.
2245 (location_to_sals): Call find_condition_and_thread_for_sals instead
2246 of find_condition_and_thread.
2247
1c47ec3e
TV
22482020-10-26 Tom de Vries <tdevries@suse.de>
2249
2250 * dwarf2/read.c (process_full_comp_unit): Call
2251 dwarf2_find_base_address.
2252
6390859c
TT
22532020-10-26 Tom Tromey <tromey@adacore.com>
2254
2255 * gdbtypes.c (create_range_type): Revert previous patch. Add
2256 comment.
2257
d744f0f9
PA
22582020-10-26 Pedro Alves <pedro@palves.net>
2259
2260 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
2261 (my_waitpid): Use gdb::handle_eintr.
2262
006811bc
SM
22632020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
2264
2265 * acinclude.m4: Update ptrace.m4 path.
2266 * ptrace.m4: Moved to gdbsupport.
2267
c75e31a1
SM
22682020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
2269
2270 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
2271 instead of target_gdbarch.
2272
32495661
SM
22732020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
2274
2275 * jit.c (jit_reader_load_command): Pass current inferior.
2276 (jit_inferior_init): Change parameter type to inferior, use it.
2277 (jit_inferior_created): Remove.
2278 (jit_inferior_created_hook): Pass inferior parameter down.
2279 (_initialize_jit): Use jit_inferior_created_hook instead of
2280 jit_inferior_created.
2281 * jit.h (jit_inferior_created_hook): Add inferior parameter.
2282 * infrun.c (follow_exec): Pass inferior to
2283 jit_inferior_created_hook.
2284
3f66685e
SM
22852020-10-24 Simon Marchi <simon.marchi@efficios.com>
2286
2287 * linux-thread-db.c (check_pid_namespace_match): Add inferior
2288 parameter and use it.
2289 (thread_db_inferior_created): Pass inferior argument.
2290
a0ff652f
SM
22912020-10-24 Simon Marchi <simon.marchi@efficios.com>
2292
2293 * aix-thread.c (aix_thread_inferior_created): Add inferior
2294 parameter.
2295 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
2296 * dummy-frame.c (cleanup_dummy_frames): Likewise.
2297 * jit.c (jit_inferior_created): Likewise.
2298 * linux-thread-db.c (thread_db_inferior_created): Likewise.
2299 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
2300 * observable.h (inferior_created): Likewise.
2301 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
2302 * symfile-mem.c (add_vsyscall_page): Likewise.
2303 * infcmd.c (post_create_inferior): Pass inferior argument.
2304
3c67532c
JB
23052020-10-24 Joel Brobecker <brobecker@adacore.com>
2306
2307 GDB 10.1 released.
2308
8747316e
JB
23092020-10-23 Joel Brobecker <brobecker@adacore.com>
2310
2311 * ada-typeprint.c (ada_print_type): Remove superfluous second call
2312 to ada_check_typedef.
2313
1a0ea399
AB
23142020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2315
2316 * f-exp.y (f_parse): Rename to...
2317 (f_language::parser): ...this.
2318 * f-lang.c (f_get_encoding): Rename to...
2319 (f_language::get_encoding): ...this.
2320 (f_op_print_tab): Rename to...
2321 (f_language::op_print_tab): ...this.
2322 (exp_descriptor_f): Rename to...
2323 (f_language::exp_descriptor_tab): ...this.
2324 (class f_language): Moved to f-lang.h.
2325 (f_language::language_arch_info): New function, moved out of class
2326 declaration.
2327 (f_language::search_name_hash): Likewise.
2328 (f_language::lookup_symbol_nonlocal): Likewise.
2329 (f_language::get_symbol_name_matcher_inner): Likewise.
2330 * f-lang.h: Add 'valprint.h' include.
2331 (class f_language): Moved here from f-lang.c.
2332 * f-typeprint.c (f_type_print_args): Delete commented out
2333 declaration.
2334 (f_print_typedef): Rename to...
2335 (f_language::print_typedef): ...this.
2336 (f_print_type): Rename to...
2337 (f_language::print_type): ...this.
2338 (f_type_print_varspec_prefix): Delete declaration and rename to...
2339 (f_language::f_type_print_varspec_prefix): ...this.
2340 (f_type_print_varspec_suffix): Delete declaration and rename to...
2341 (f_language::f_type_print_varspec_suffix): ...this.
2342 (f_type_print_base): Delete declaration and rename to...
2343 (f_language::f_type_print_base): ...this.
2344 * f-valprint.c (f_value_print_inner): Rename to...
2345 (f_language::value_print_inner): ...this.
2346 * parse.c: Delete 'f-lang.h' include.
2347
88cefd9b
AB
23482020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2349
2350 * language.h (language_defn::print_type): Add variable names in
2351 declaration, and update header comment.
2352
5399db93
AB
23532020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2354
2355 * ada-lang.c (ada_language::demangle): Rename to...
2356 (ada_language::demangle_symbol): ...this.
2357 * c-lang.c (cplus_language::demangle): Rename to...
2358 (cplus_language::demangle_symbol): ...this.
2359 * d-lang.c (d_language::demangle): Rename to...
2360 (d_language::demangle_symbol): ...this.
2361 * f-lang.c (f_language::demangle): Rename to...
2362 (f_language::demangle_symbol): ...this.
2363 * go-lang.c (go_language::demangle): Rename to...
2364 (go_language::demangle_symbol): ...this.
2365 * language.c (language_demangle): Update call to demangle_symbol.
2366 (auto_or_unknown_language::demangle): Rename to...
2367 (auto_or_unknown_language::demangle_symbol): ...this.
2368 * language.h (language_defn::demangle): Rename to...
2369 (language_defn::demangle_symbol): ...this.
2370 * objc-lang.c (objc_language::demangle): Rename to...
2371 (objc_language::demangle_symbol): ...this.
2372 * rust-lang.c (rust_language::demangle): Rename to...
2373 (rust_language::demangle_symbol): ...this.
2374
4b2f86ef
AB
23752020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2376
2377 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
2378 (iterate_over_file_blocks): Replace use of macro with the macros
2379 definition.
2380
e74b39de
AB
23812020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2382
2383 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
2384 * valprint.c (maybe_print_array_index): Replace use of macro with
2385 the macros definition.
2386
00c696a6
AB
23872020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2388
2389 * ada-lang.c (ada_language::print_array_index): Call value_print
2390 directly.
2391 * language.c (language_defn::print_array_index): Likewise.
2392 * language.h (LA_VALUE_PRINT): Delete.
2393 * valprint.c (value_print): Call value_print on the
2394 current_language directly.
2395
d3b67c56
AB
23962020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2397
2398 * language.h (LA_PRINT_TYPEDEF): Delete.
2399 * typeprint.c (typedef_print): Call print_typedef directly on the
2400 current_language object.
2401
790e2a12
AB
24022020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2403
2404 * m2-exp.y (m2_parse): Rename to...
2405 (m2_language::parser): ...this. Update function signature.
2406 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
2407 (m2_op_print): Rename to...
2408 (m2_language::op_print_tab): ...this, and make const.
2409 (exp_descriptor_modula2): Rename to...
2410 (m2_language::exp_descriptor_modula2): ...this.
2411 (class m2_language): Move to m2-lang.h.
2412 (m2_language::language_arch_info): New function, moved out of
2413 class declaration.
2414 (m2_language::printchar): New function, body from m2_printchar.
2415 (m2_language::printstr): New function, moved out of class
2416 declaration.
2417 (m2_language::emitchar): Likewise.
2418 * m2-lang.h (m2_parse): Delete declaration.
2419 (m2_print_typedef): Delete declaration.
2420 (m2_value_print_inner): Delete declaration.
2421 (class m2_language): Class declaration moved from m2-lang.c,
2422 larger functions are left in m2-lang.c.
2423 * m2-typeprint.c (m2_print_typedef): Rename to...
2424 (m2_language::print_typedef): ...this, and update function
2425 signature.
2426 * m2-valprint.c (m2_value_print_inner): Rename to...
2427 (m2_language::value_print_inner): ...this, replace use of
2428 LA_PRINT_STRING with a direct call to printstr member function,
2429 and update recursive call.
2430
b01175fc
AB
24312020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2432
2433 * language.c (default_is_string_type_p): Delete, implementation
2434 moved into auto_or_unknown_language::is_string_type_p.
2435 (unk_op_print_tab): Moved into
2436 auto_or_unknown_language::opcode_print_table.
2437 (unknown_language_arch_info): Delete, implementation moved into
2438 auto_or_unknown_language::language_arch_info.
2439 (class auto_or_unknown_language): New class, member functions
2440 copied from unknown_language class, with some updates.
2441 (class unknown_language): Most member functions moved into
2442 auto_or_unknown_language class. Inherit from
2443 auto_or_unknown_language class.
2444 (class auto_language): Inherit from auto_or_unknown_language.
2445 Delete most member functions.
2446
1a97fe8c
HD
24472020-10-22 Hannes Domani <ssbssa@yahoo.de>
2448
2449 * stabsread.c (read_member_functions): Remove gdb_assert.
2450
6b9d0dfd
HD
24512020-10-22 Hannes Domani <ssbssa@yahoo.de>
2452
2453 * gdbtypes.c (init_complex_type): Check target type name.
2454
4b4bb603
SM
24552020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
2456
2457 * target-debug.h (target_debug_print_struct_target_ops_p):
2458 Remove.
2459 (target_debug_print_async_callback_ftype_p): Remove.
2460 (target_debug_print_struct_trace_state_variable_p): Remove.
2461 (target_debug_print_struct_traceframe_info_p): Remove.
2462 (target_debug_print_VEC__btrace_block_s__pp): Remove.
2463 (target_debug_print_enum_btrace_format): Remove.
2464 (target_debug_print_enum_info_proc_what): Remove.
2465 (target_debug_print_thread_info_pp): Remove.
2466
24f5300a
SM
24672020-10-22 Simon Marchi <simon.marchi@efficios.com>
2468
2469 * target.h (struct target_ops) <make_corefile_notes>:
2470 Change return type to unique pointer.
2471 * target.c (dummy_make_corefile_notes): Likewise.
2472 * exec.c (struct exec_target) <make_corefile_notes>:
2473 Likewise.
2474 (exec_target::make_corefile_notes): Likewise.
2475 * procfs.c (class procfs_target) <make_corefile_notes>:
2476 Likewise.
2477 (procfs_do_thread_registers): Adjust to unique pointer.
2478 (struct procfs_corefile_thread_data): Add constructor.
2479 <note_data>: Change type to unique pointer.
2480 (procfs_corefile_thread_callback): Adjust to unique pointer.
2481 (procfs_target::make_corefile_notes): Change return type to
2482 unique pointer.
2483 * target-delegates.c: Re-generate.
2484 * gcore.c (write_gcore_file_1): Adjust.
2485 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
2486 New.
2487
5fb4027f
TV
24882020-10-22 Tom de Vries <tdevries@suse.de>
2489
2490 * block.c (find_block_in_blockvector): Make sure the returned block
2491 contains pc.
2492
4a636814
SM
24932020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
2494
2495 PR gdb/26693
2496 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
2497 parameter.
2498 (load_cu): Pass existing CU.
2499 (process_imported_unit_die): Likewise.
2500 (follow_die_offset): Likewise.
2501
1bd57575
LM
25022020-10-22 Luis Machado <luis.machado@linaro.org>
2503
2504 * corelow.c (core_target::xfer_partial): Also check for an empty
2505 m_core_unavailable_mappings vector.
2506
6b4c676c
AB
25072020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2508
2509 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
2510 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
2511 * f-exp.y (arglist): Allow for a series of subranges.
2512 (subrange): Add cases for subranges with strides.
2513 * f-lang.c (value_f90_subarray): Catch use of array strides and
2514 throw an error.
2515 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
2516
f2d8e4c5
AB
25172020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2518
2519 * expprint.c (print_subexp_standard): Change enum range_type to
2520 range_flag and rename variables to match.
2521 (dump_subexp_body_standard): Likewise.
2522 * expression.h (enum range_type): Rename to...
2523 (enum range_flag): ...this.
2524 (range_types): Rename to...
2525 (range_flags): ...this.
2526 * f-lang.c (value_f90_subarray): Change enum range_type to
2527 range_flag and rename variables to match.
2528 * parse.c (operator_length_standard): Likewise.
2529 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
2530 range_type to range_flag.
2531 * rust-lang.c (rust_evaluate_funcall): Likewise.
2532 (rust_range): Likewise.
2533 (rust_compute_range): Likewise.
2534 (rust_subscript): Likewise.
2535
2f1b18db
AB
25362020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2537
2538 * expprint.c (print_subexp_standard): Update to reflect changes to
2539 enum range_type.
2540 (dump_subexp_body_standard): Likewise.
2541 * expression.h (enum range_type): Convert to a bit field enum, and
2542 make the enum unsigned.
2543 * f-exp.y (subrange): Update to reflect changes to enum
2544 range_type.
2545 * f-lang.c (value_f90_subarray): Likewise.
2546 * parse.c (operator_length_standard): Likewise.
2547 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
2548 * rust-lang.c (rust_range): Likewise.
2549 (rust_compute_range): Likewise.
2550 (rust_subscript): Likewise.
2551
a46d1843
SM
25522020-10-21 Simon Marchi <simon.marchi@efficios.com>
2553
2554 * infrun.c (displaced_step_in_progress_thread): Fix comment.
2555 (displaced_step_in_progress): Fix comment.
2556
c21f37a8
SM
25572020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
2558
2559 * gdbarch.sh (make_corefile_notes): Return unique pointer.
2560 * gdbarch.c: Re-generate.
2561 * gdbarch.h: Re-generate.
2562 * gcore.c (write_gcore_file_1): Adjust.
2563 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
2564 constructor.
2565 <note_data>: Change type to unique pointer.
2566 <abort_iteration>: Change type to bool.
2567 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
2568 (fbsd_collect_thread_registers): Return void, adjust.
2569 (struct fbsd_corefile_thread_data): Add construtor.
2570 <note_data>: Change type to unique pointer.
2571 (fbsd_corefile_thread): Adjust.
2572 (fbsd_make_corefile_notes): Return unique pointer, adjust.
2573 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
2574 to unique pointer, adjust.
2575 (struct linux_collect_regset_section_cb_data): Add constructor.
2576 <note_data>: Change type to unique pointer.
2577 <abort_iteration>: Change type to bool.
2578 (linux_collect_thread_registers): Return void, adjust.
2579 (struct linux_corefile_thread_data): Add constructor.
2580 <note_data>: Change type to unique pointer.
2581 (linux_corefile_thread): Adjust.
2582 (linux_make_corefile_notes): Return unique pointer, adjust.
2583
07fbbd01
SM
25842020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2585
2586 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
2587 * gdbarch.c: Re-generate.
2588 * gdbarch.h: Re-generate.
2589 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
2590 bool.
2591 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
2592 Likewise.
2593 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
2594 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
2595 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
2596 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
2597
39535193
SM
25982020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2599
2600 * gdbarch.sh: Make generated predicates return bool.
2601 * gdbarch.c: Re-generate.
2602 * gdbarch.h: Re-generate.
2603
ad523d01
TT
26042020-10-20 Tom Tromey <tom@tromey.com>
2605
2606 * varobj-iter.h (struct varobj_item): Remove typedef.
2607
c4464ade
SM
26082020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2609
2610 * infrun.c (currently_stepping): Change int to bool
2611 (maybe_software_singlestep): Likewise.
2612 (show_stop_on_solib_events): Likewise.
2613 (stepping_past_nonsteppable_watchpoint): Likewise.
2614 (displaced_step_in_progress_any_inferior): Likewise.
2615 (displaced_step_in_progress_thread): Likewise.
2616 (keep_going_stepped_thread): Likewise.
2617 (thread_still_needs_step_over): Likewise.
2618 (start_step_over): Likewise.
2619 (do_target_resume): Likewise.
2620 (resume_1): Likewise.
2621 (clear_proceed_status): Likewise.
2622 (thread_still_needs_step_over_bp): Likewise.
2623 (proceed): Likewise.
2624 (switch_back_to_stepped_thread): Likewise.
2625 (adjust_pc_after_break): Likewise.
2626 (stepped_in_from): Likewise.
2627 (handle_stop_requested): Likewise.
2628 (handle_syscall_event): Likewise.
2629 (handle_no_resumed): Likewise.
2630 (handle_inferior_event): Likewise.
2631 (finish_step_over): Likewise.
2632 (handle_signal_stop): Likewise.
2633 (process_event_stop_test): Likewise.
2634
2eb20436
SM
26352020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2636
2637 * infrun.c (get_displaced_stepping_state): Fix comment.
2638
e0c45ded
AS
26392020-10-20 Andreas Schwab <schwab@linux-m68k.org>
2640
2641 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
2642
22cc388e
TT
26432020-10-19 Tom Tromey <tromey@adacore.com>
2644
2645 PR tui/26719
2646 * tui/tui-winsource.h (struct tui_source_window_base)
2647 <refresh_window>: Rename from refresh_pad.
2648 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
2649 Rename from refresh_pad.
2650 (tui_source_window_base::show_source_content)
2651 (tui_source_window_base::do_scroll_horizontal): Update.
2652
3c6eb4d4
TBA
26532020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2654
2655 * thread.c (_initialize_thread): Fine-tune the help text of
2656 'info threads'.
2657
26703721
TBA
26582020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2659
2660 * frame.c: Remove the unused 'uinteger_option_def' type alias.
2661
61c26be8
MS
26622020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
2663
2664 * breakpoint.c (handle_jit_event): Add an argument, change how
2665 `jit_event_handler` is called.
2666
932539d7
TT
26672020-10-17 Tom Tromey <tom@tromey.com>
2668
2669 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
2670 (scan_xcoff_symtab): Update.
2671 * psymtab.h (class psymtab_storage) <global_psymbols,
2672 static_psymbols, current_global_psymbols,
2673 current_static_psymbols>: Remove.
2674 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
2675 (match_partial_symbol, lookup_partial_symbol): Update.
2676 (print_partial_symbols): Change parameters.
2677 (dump_psymtab, recursively_search_psymtabs)
2678 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
2679 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
2680 (concat): Remove.
2681 (end_psymtab_common): Simplify.
2682 (append_psymbol_to_list): Change parameters.
2683 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
2684 (init_psymbol_list): Simplify.
2685 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
2686 * psympriv.h (struct partial_symtab) <empty>: New method.
2687 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
2688 Remove.
2689 <global_psymbols, static_psymbols>: New members.
2690 <add_psymbol>: New methods.
2691 (add_psymbol_to_list): Don't declare.
2692 (psymbol_placement): Move earlier.
2693 * mdebugread.c (parse_partial_symbols): Update.
2694 (handle_psymbol_enumerators): Change parameters.
2695 (mdebug_expand_psymtab): Update.
2696 * dwarf2/read.c (process_psymtab_comp_unit_reader)
2697 (add_partial_symbol): Update.
2698 * dwarf2/index-write.c (write_psymbols): Change parameters.
2699 (write_one_signatured_type): Update.
2700 (recursively_count_psymbols): Update.
2701 (recursively_write_psymbols): Update.
2702 (class debug_names) <recursively_write_psymbols>: Update.
2703 <write_psymbols>: Change parameters.
2704 <write_one_signatured_type>: Update.
2705 * dbxread.c (read_dbx_symtab): Update.
2706 (dbx_end_psymtab): Use partial_symtab::empty.
2707 * ctfread.c (struct ctf_context) <pst>: New member.
2708 (create_partial_symtab): Set it.
2709 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
2710 (scan_partial_symbols): Use the psymtab's context. Update.
2711
cfabbd35
TT
27122020-10-17 Tom Tromey <tom@tromey.com>
2713
2714 * valprint.c (generic_value_print): Remove comment.
2715 * m2-valprint.c (m2_value_print_inner): Remove comment.
2716 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
2717 type.
2718
520596f2
TV
27192020-10-17 Tom de Vries <tdevries@suse.de>
2720
2721 PR symtab/26317
2722 * source.c (select_source_symtab): Handling sal.symtab == NULL for
2723 symbol main.
2724
76547ab3
TV
27252020-10-14 Tom de Vries <tdevries@suse.de>
2726
2727 PR gdb/26733
2728 * solib.c (solib_contains_address_p): Handle
2729 'solib->sections == nullptr'.
2730
d3a07122
SM
27312020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
2732
2733 PR gdb/26642
2734 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
2735 target can't do async.
2736 * target.c (target_wait): Assert that we don't pass
2737 TARGET_WNOHANG to a target that can't async.
2738
1b71cfcf
KR
27392020-10-13 Kamil Rytarowski <n54@gmx.com>
2740
2741 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
2742 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
2743 * alpha-bsd-nat.c: Adjust include.
2744 * alpha-bsd-tdep.h: Adjust comment.
2745 * alpha-nbsd-tdep.c: Rename to ...
2746 * alpha-netbsd-tdep.c: ... this, adjust include.
2747 * amd64-nbsd-nat.c: Rename to ...
2748 * amd64-netbsd-nat.c: ... this, adjust include.
2749 * amd64-nbsd-tdep.c: Rename to ...
2750 * amd64-netbsd-tdep.c: ... this, adjust include.
2751 * amd64-tdep.h: Adjust include.
2752 * arm-nbsd-nat.c: Rename to ...
2753 * arm-netbsd-nat.c: ... this, adjust include.
2754 * arm-nbsd-tdep.c: Rename to ...
2755 * arm-netbsd-tdep.c: ... this, adjust include.
2756 * arm-nbsd-tdep.h: Rename to ...
2757 * arm-netbsd-tdep.h: ... this, adjust include.
2758 * configure.nat: Adjust file lists.
2759 * configure.tgt: Likewise.
2760 * hppa-nbsd-nat.c: Rename to ...
2761 * hppa-netbsd-nat.c: ... this, adjust include.
2762 * hppa-nbsd-tdep.c: Rename to ...
2763 * hppa-netbsd-tdep.c: ... this, adjust include.
2764 * i386-nbsd-nat.c: Rename to ...
2765 * i386-netbsd-nat.c: ... this, adjust include.
2766 * i386-nbsd-tdep.c: Rename to ...
2767 * i386-netbsd-tdep.c: ... this, adjust include.
2768 * m68k-bsd-nat.c: Adjust include.
2769 * mips-nbsd-nat.c: Rename to ...
2770 * mips-netbsd-nat.c: ... this, adjust include.
2771 * mips-nbsd-tdep.c: Rename to ...
2772 * mips-netbsd-tdep.c: ... this, adjust include.
2773 * mips-nbsd-tdep.h: Rename to ...
2774 * mips-netbsd-tdep.h: ... this.
2775 * nbsd-nat.c: Rename to ...
2776 * netbsd-nat.c: ... this, adjust include.
2777 * nbsd-nat.h: Rename to ...
2778 * netbsd-nat.h: ... this, adjust include.
2779 * nbsd-tdep.c: Rename to ...
2780 * netbsd-tdep.c: ... this, adjust include.
2781 * nbsd-tdep.h: Rename to ...
2782 * netbsd-tdep.h: ... this.
2783 * ppc-nbsd-nat.c: Rename to ...
2784 * ppc-netbsd-nat.c: ... this, adjust include.
2785 * ppc-nbsd-tdep.c: Rename to ...
2786 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
2787 * ppc-nbsd-tdep.h: Rename to ...
2788 * ppc-netbsd-tdep.h: ... this.
2789 * sh-nbsd-nat.c: Rename to ...
2790 * sh-netbsd-nat.c: ... this, adjust include.
2791 * sh-nbsd-tdep.c: Rename to ...
2792 * sh-netbsd-tdep.c: ... this, adjust include.
2793 * sparc-nbsd-nat.c: Rename to ...
2794 * sparc-netbsd-nat.c: ... this.
2795 * sparc-nbsd-tdep.c: Rename to ...
2796 * sparc-netbsd-tdep.c: ... this, adjust include.
2797 * sparc64-nbsd-nat.c: Rename to ...
2798 * sparc64-netbsd-nat.c: ... this.
2799 * sparc64-nbsd-tdep.c: Rename to ...
2800 * sparc64-netbsd-tdep.c: ... this, adjust include.
2801 * sparc64-tdep.h: Adjust comment.
2802 * vax-bsd-nat.c: Adjust include.
2803 * vax-nbsd-tdep.c: Rename to ...
2804 * vax-netbsd-tdep.c: ... this, adjust include.
2805
d7a78e5c
TT
28062020-10-12 Tom Tromey <tom@tromey.com>
2807
2808 * target.h (struct target_ops) <get_section_table>: Update.
2809 (target_get_section_table): Update.
2810 * target.c (target_get_section_table, target_section_by_addr)
2811 (memory_xfer_partial_1): Update.
2812 * target-section.h (target_section_table): Now an alias.
2813 * target-delegates.c: Rebuild.
2814 * target-debug.h (target_debug_print_target_section_table_p):
2815 Rename from target_debug_print_struct_target_section_table_p.
2816 * symfile.c (build_section_addr_info_from_section_table): Update.
2817 * solib.c (solib_map_sections, solib_contains_address_p): Update.
2818 * solib-svr4.c (scan_dyntag): Update.
2819 * solib-dsbt.c (scan_dyntag): Update.
2820 * remote.c (remote_target::remote_xfer_live_readonly_partial):
2821 Update.
2822 * record-full.c (record_full_core_target::xfer_partial): Update.
2823 * progspace.h (struct program_space) <target_sections>: Update.
2824 * exec.h (print_section_info): Update.
2825 * exec.c (exec_target::close, build_section_table)
2826 (add_target_sections, add_target_sections_of_objfile)
2827 (remove_target_sections, exec_on_vfork)
2828 (section_table_available_memory)
2829 (section_table_xfer_memory_partial)
2830 (exec_target::get_section_table, exec_target::xfer_partial)
2831 (print_section_info, set_section_command)
2832 (exec_set_section_address, exec_target::has_memory): Update.
2833 * corelow.c (core_target::build_file_mappings)
2834 (core_target::xfer_partial, core_target::info_proc_mappings)
2835 (core_target::info_proc_mappings): Update.
2836 * bfd-target.c (class target_bfd): Update
2837
eda214ce
TT
28382020-10-12 Tom Tromey <tom@tromey.com>
2839
2840 * progspace.c (program_space::~program_space): Don't call
2841 clear_section_table.
2842 * exec.h (clear_section_table): Don't declare.
2843 * exec.c (exec_target::close): Update.
2844 (clear_section_table): Remove.
2845
91840ee3
TT
28462020-10-12 Tom Tromey <tom@tromey.com>
2847
2848 * exec.c (add_target_sections_of_objfile): Simplify.
2849
2d128614
TT
28502020-10-12 Tom Tromey <tom@tromey.com>
2851
2852 * solib.c (solib_map_sections): Update.
2853 * record-full.c (record_full_core_open_1): Update.
2854 * exec.h (build_section_table): Return a target_section_table.
2855 * exec.c (exec_file_attach): Update.
2856 (build_section_table): Return a target_section_table.
2857 * corelow.c (core_target::core_target): Update.
2858 * bfd-target.c (target_bfd::target_bfd): Update.
2859
bb2a6777
TT
28602020-10-12 Tom Tromey <tom@tromey.com>
2861
2862 * target.c (target_section_by_addr, memory_xfer_partial_1):
2863 Update.
2864 * target-section.h (struct target_section_table): Use
2865 std::vector.
2866 * symfile.h (build_section_addr_info_from_section_table): Take a
2867 target_section_table.
2868 * symfile.c (build_section_addr_info_from_section_table): Take a
2869 target_section_table.
2870 * solist.h (struct so_list) <sections>: Change type.
2871 <sections_end>: Remove.
2872 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
2873 (solib_contains_address_p): Update.
2874 * solib-svr4.c (scan_dyntag): Update.
2875 * solib-dsbt.c (scan_dyntag): Update.
2876 * remote.c (remote_target::remote_xfer_live_readonly_partial):
2877 Update.
2878 * record-full.c (record_full_core_start, record_full_core_end):
2879 Remove.
2880 (record_full_core_sections): New global.
2881 (record_full_core_open_1, record_full_core_target::xfer_partial):
2882 Update.
2883 * exec.h (build_section_table, section_table_xfer_memory_partial)
2884 (add_target_sections): Take a target_section_table.
2885 * exec.c (exec_file_attach, clear_section_table): Update.
2886 (resize_section_table): Remove.
2887 (build_section_table, add_target_sections): Take a
2888 target_section_table.
2889 (add_target_sections_of_objfile, remove_target_sections)
2890 (exec_on_vfork): Update.
2891 (section_table_available_memory): Take a target_section_table.
2892 (section_table_read_available_memory): Update.
2893 (section_table_xfer_memory_partial): Take a target_section_table.
2894 (print_section_info, set_section_command)
2895 (exec_set_section_address, exec_target::has_memory): Update.
2896 * corelow.c (class core_target) <m_core_section_table,
2897 m_core_file_mappings>: Remove braces.
2898 <~core_target>: Remove.
2899 (core_target::core_target): Update.
2900 (core_target::~core_target): Remove.
2901 (core_target::build_file_mappings)
2902 (core_target::xfer_memory_via_mappings)
2903 (core_target::xfer_partial, core_target::info_proc_mappings):
2904 Update.
2905 * bfd-target.c (target_bfd::xfer_partial): Update.
2906 (target_bfd::target_bfd): Update.
2907 (target_bfd::~target_bfd): Remove.
2908
7b466b10
TT
29092020-10-12 Tom Tromey <tom@tromey.com>
2910
2911 * target.h (struct target_section, struct target_section_table):
2912 Move to target-section.h.
2913 * target-section.h: New file.
2914
87a37e5e
PA
29152020-10-12 Pedro Alves <pedro@palves.net>
2916
2917 PR exp/26602
2918 * valops.c (struct struct_field_searcher): New.
2919 (update_search_result): Rename to ...
2920 (struct_field_searcher::update_result): ... this. Simplify
2921 prototype. Record all found fields.
2922 (do_search_struct_field): Rename to ...
2923 (struct_field_searcher::search): ... this. Simplify prototype.
2924 Maintain stack of visited baseclass path. Call update_result for
2925 fields too. Keep searching fields in baseclasses instead of
2926 stopping at the first found field.
2927 (search_struct_field): Use struct_field_searcher. When looking
2928 for fields, report ambiguous access attempts.
2929
9370fd51
AB
29302020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
2931
2932 * frame.c (inside_main_func): Check full symbols as well as
2933 minimal symbols.
2934
59c8a30b
JB
29352020-10-09 Joel Brobecker <brobecker@adacore.com>
2936
2937 * ada-lang.c (advance_wild_match): Rewrite the function's
2938 description. Change the type of target0, t0 and t1 to char.
2939
7c184d33
TT
29402020-10-09 Tom Tromey <tromey@adacore.com>
2941
2942 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
2943
5c4258f4
TT
29442020-10-09 Tom Tromey <tromey@adacore.com>
2945
2946 * ada-lang.h (ada_encode): Return std::string.
2947 * ada-lang.c (ada_encode_1): Return std::string.
2948 (ada_encode): Likewise.
2949 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
2950 Update.
2951 * ada-exp.y (block_lookup, write_var_or_type): Update.
2952
3d87245c
HD
29532020-10-09 Hannes Domani <ssbssa@yahoo.de>
2954
2955 PR exp/26714
2956 * printcmd.c (print_formatted): Handle void results as
2957 unformatted prints.
2958
bbb826f5
AB
29592020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
2960
2961 * arch/aarch32.c (aarch32_create_target_description): Release the
2962 target_desc_up as late as possible.
2963 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2964 * arch/amd64.c (amd64_create_target_description): Likewise.
2965 * arch/arc.c (arc_create_target_description): Return a
2966 target_desc_up, don't release it.
2967 * arch/arc.h (arc_create_target_description): Update declaration.
2968 (arc_lookup_target_description): Move target_desc_up into the
2969 cache, and return a borrowed pointer.
2970 * arch/arm.c (arm_create_target_description): Release the
2971 target_desc_up as late as possible.
2972 * arch/i386.c (i386_create_target_description): Likewise.
2973 * arch/riscv.h (riscv_create_target_description): Update
2974 declaration to match definition.
2975 * arch/tic6x.c (tic6x_create_target_description): Release the
2976 target_desc_up as late as possible.
2977
361cb219
AB
29782020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
2979
2980 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
2981 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
2982
f5c4b229
JV
29832020-10-09 Jan Vrany <jan.vrany@labware.com>
2984
2985 * source.c (directory_command): Notify observers that "directories"
2986 parameter has changed.
2987
b2701685
TT
29882020-10-08 Tom Tromey <tom@tromey.com>
2989
2990 * cli/cli-cmds.c (print_disassembly): Style function name and
2991 addresses. Add _() wrappers.
2992
ada508b6
SV
29932020-10-08 Shahab Vahedi <shahab@synopsys.com>
2994
2995 * NEWS: Mention ARC support in GDBserver.
2996
51a948fd
AB
29972020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
2998
2999 * arch/aarch32.c (aarch32_create_target_description): Release
3000 unique_ptr returned from allocate_target_description.
3001 * arch/aarch64.c (aarch64_create_target_description): Likewise.
3002 * arch/amd64.c (amd64_create_target_description): Likewise.
3003 * arch/arc.c (arc_create_target_description): Likewise.
3004 * arch/arm.c (arm_create_target_description): Likewise.
3005 * arch/i386.c (i386_create_target_description): Likewise.
3006 * arch/riscv.c (riscv_create_target_description): Update return
3007 type. Handle allocate_target_description returning a unique_ptr.
3008 (riscv_lookup_target_description): Update to handle unique_ptr.
3009 * arch/tic6x.c (tic6x_create_target_description): Release
3010 unique_ptr returned from allocate_target_description.
3011 * features/microblaze-with-stack-protect.c: Regenerate.
3012 * features/microblaze.c: Regenerate.
3013 * features/mips-dsp-linux.c: Regenerate.
3014 * features/mips-linux.c: Regenerate.
3015 * features/mips64-dsp-linux.c: Regenerate.
3016 * features/mips64-linux.c: Regenerate.
3017 * features/nds32.c: Regenerate.
3018 * features/nios2.c: Regenerate.
3019 * features/or1k.c: Regenerate.
3020 * features/rs6000/powerpc-32.c: Regenerate.
3021 * features/rs6000/powerpc-32l.c: Regenerate.
3022 * features/rs6000/powerpc-403.c: Regenerate.
3023 * features/rs6000/powerpc-403gc.c: Regenerate.
3024 * features/rs6000/powerpc-405.c: Regenerate.
3025 * features/rs6000/powerpc-505.c: Regenerate.
3026 * features/rs6000/powerpc-601.c: Regenerate.
3027 * features/rs6000/powerpc-602.c: Regenerate.
3028 * features/rs6000/powerpc-603.c: Regenerate.
3029 * features/rs6000/powerpc-604.c: Regenerate.
3030 * features/rs6000/powerpc-64.c: Regenerate.
3031 * features/rs6000/powerpc-64l.c: Regenerate.
3032 * features/rs6000/powerpc-7400.c: Regenerate.
3033 * features/rs6000/powerpc-750.c: Regenerate.
3034 * features/rs6000/powerpc-860.c: Regenerate.
3035 * features/rs6000/powerpc-altivec32.c: Regenerate.
3036 * features/rs6000/powerpc-altivec32l.c: Regenerate.
3037 * features/rs6000/powerpc-altivec64.c: Regenerate.
3038 * features/rs6000/powerpc-altivec64l.c: Regenerate.
3039 * features/rs6000/powerpc-e500.c: Regenerate.
3040 * features/rs6000/powerpc-e500l.c: Regenerate.
3041 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
3042 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
3043 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
3044 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
3045 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
3046 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
3047 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
3048 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
3049 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
3050 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
3051 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
3052 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
3053 * features/rs6000/powerpc-vsx32.c: Regenerate.
3054 * features/rs6000/powerpc-vsx32l.c: Regenerate.
3055 * features/rs6000/powerpc-vsx64.c: Regenerate.
3056 * features/rs6000/powerpc-vsx64l.c: Regenerate.
3057 * features/rs6000/rs6000.c: Regenerate.
3058 * features/rx.c: Regenerate.
3059 * features/s390-gs-linux64.c: Regenerate.
3060 * features/s390-linux32.c: Regenerate.
3061 * features/s390-linux32v1.c: Regenerate.
3062 * features/s390-linux32v2.c: Regenerate.
3063 * features/s390-linux64.c: Regenerate.
3064 * features/s390-linux64v1.c: Regenerate.
3065 * features/s390-linux64v2.c: Regenerate.
3066 * features/s390-te-linux64.c: Regenerate.
3067 * features/s390-tevx-linux64.c: Regenerate.
3068 * features/s390-vx-linux64.c: Regenerate.
3069 * features/s390x-gs-linux64.c: Regenerate.
3070 * features/s390x-linux64.c: Regenerate.
3071 * features/s390x-linux64v1.c: Regenerate.
3072 * features/s390x-linux64v2.c: Regenerate.
3073 * features/s390x-te-linux64.c: Regenerate.
3074 * features/s390x-tevx-linux64.c: Regenerate.
3075 * features/s390x-vx-linux64.c: Regenerate.
3076 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
3077 from allocate_target_description.
3078 * target-descriptions.c (allocate_target_description): Update
3079 return type.
3080 (print_c_tdesc::visit_pre): Release unique_ptr returned from
3081 allocate_target_description.
3082
485c47e5
TT
30832020-10-07 Tom Tromey <tromey@adacore.com>
3084
3085 * unittests/search-memory-selftests.c: New file.
3086 * Makefile.in (SELFTESTS_SRCS): Add
3087 unittests/search-memory-selftests.c.
3088
3a135a91
TT
30892020-10-07 Tom Tromey <tromey@adacore.com>
3090
3091 PR gdb/16930:
3092 * findcmd.c (_initialize_mem_search): Mention that the range is
3093 inclusive.
3094
4a72de73
TT
30952020-10-07 Tom Tromey <tromey@adacore.com>
3096
3097 * target.h (simple_search_memory): Don't declare.
3098 * target.c (simple_search_memory): Move to gdbsupport.
3099 (default_search_memory): Update.
3100 * remote.c (remote_target::search_memory): Update.
3101
a038ffd8
SM
31022020-10-07 Simon Marchi <simon.marchi@efficios.com>
3103
3104 * Makefile.in (COMPILE): Add CXXFLAGS.
3105 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
3106 (check-headers): Add CXXFLAGS.
3107
cc463201
AK
31082020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
3109
3110 * arc-linux-tdep.h: New file.
3111 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
3112 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
3113 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
3114 arc_linux_gregset, arc_linux_v2_regset,
3115 arc_linux_iterate_over_regset_sections,
3116 arc_linux_core_read_description): Implement.
3117 (arc_linux_init_osabi): Set iterate_over_regset_sections.
3118 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
3119 (arc_gdbarch_features_create): Add.
3120 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
3121
e4bd363f
SV
31222020-10-07 Shahab Vahedi <shahab@synopsys.com>
3123
3124 * arch/arc.h: Rename "arc_gdbarch_features" to
3125 "arc_arch_features".
3126 * arc-tdep.h: Likewise.
3127 * arc-tdep.c: Likewise.
3128
b68bef99
TBA
31292020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3130
3131 * infcmd.c (attach_command): Remove the redundant call to
3132 `clear_proceed_status`.
3133
4641551a
KR
31342020-10-07 Kamil Rytarowski <n54@gmx.com>
3135
3136 * nat/netbsd-nat.c (write_memory, read_memory): Update.
3137
91e5e8db
KR
31382020-10-07 Kamil Rytarowski <n54@gmx.com>
3139
3140 * nat/netbsd-nat.c (write_memory, read_memory): Add.
3141 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
3142 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
3143
64c03bdb
SM
31442020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
3145
3146 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
3147 (_initialize_break_catch_sig): Don't allocate array.
3148
31a8f60f
AB
31492020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
3150
3151 * symtab.c (find_pc_line): Return unmapped addresses when the
3152 requested address is also unmapped.
3153
9e6dbd8b
SM
31542020-10-05 Simon Marchi <simon.marchi@efficios.com>
3155
3156 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
3157 tui/tui-out.h.
3158
a1d217e8
SM
31592020-10-05 Simon Marchi <simon.marchi@efficios.com>
3160
3161 * amd64-windows-tdep.c (amd64_windows_return_value): Use
3162 type::is_vector instead of TYPE_VECTOR.
3163
7d144117
SM
31642020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
3165
3166 * auto-load.c (auto_load_objfile_script_1): Don't use
3167 debugfile_holder as temporary variable when stripping drive
3168 letter.
3169
cd096ec8
HD
31702020-10-05 Hannes Domani <ssbssa@yahoo.de>
3171
3172 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
3173 Add TYPE_CODE_COMPLEX.
3174 (amd64_windows_return_value): Fix types returned via XMM0.
3175
b58e7f72
AH
31762020-10-05 Alan Hayward <alan.hayward@arm.com>
3177
3178 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
3179 AArch64/ARM maintainers.
3180
8d378f27
SM
31812020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
3182
3183 * NEWS: Mention set/show debug event-loop.
3184
d5519913
TT
31852020-10-02 Tom Tromey <tromey@adacore.com>
3186
3187 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
3188 REG_EXTENDED.
3189
18b67edc
SM
31902020-10-02 Simon Marchi <simon.marchi@efficios.com>
3191
3192 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
3193 * procfs.c (procfs_inferior_created): Remove.
3194 (_initialize_procfs): Don't register procfs_inferior_created.
3195
6b01403b
SM
31962020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3197
3198 * async-event.c (invoke_async_signal_handlers): Add debug
3199 print.
3200 (check_async_event_handlers): Likewise.
3201 * event-top.c (show_debug_event_loop): New function.
3202 (_initialize_event_top): Register "set debug event-loop"
3203 setting.
3204
ba988419
SM
32052020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3206
3207 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
3208 * debug.h: Remove.
3209 * infrun.c: Include gdbsupport/common-debug.h.
3210 * linux-nat.c: Likewise.
3211
db20ebdf
SM
32122020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3213
3214 * async-event.h (create_async_signal_handler): Add name
3215 parameter.
3216 (create_async_event_handler): Likewise.
3217 * async-event.c (struct async_signal_handler) <name>: New field.
3218 (struct async_event_handler) <name>: New field.
3219 (create_async_signal_handler): Assign name.
3220 (create_async_event_handler): Assign name.
3221 * event-top.c (async_init_signals): Pass name when creating
3222 handler.
3223 * infrun.c (_initialize_infrun): Likewise.
3224 * record-btrace.c (record_btrace_push_target): Likewise.
3225 * record-full.c (record_full_open): Likewise.
3226 * remote-notif.c (remote_notif_state_allocate): Likewise.
3227 * remote.c (remote_target::open_1): Likewise.
3228 * tui/tui-win.c (tui_initialize_win): Likewise.
3229
2554f6f5
SM
32302020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3231
3232 * async-event.c (initialize_async_signal_handlers): Pass name to
3233 add_file_handler
3234 * event-top.c (ui_register_input_event_handler): Likewise.
3235 * linux-nat.c (linux_nat_target::async): Likewise.
3236 * run-on-main-thread.c (_initialize_run_on_main_thread):
3237 Likewise
3238 * ser-base.c (reschedule): Likewise.
3239 (ser_base_async): Likewise.
3240 * tui/tui-io.c: Likewise.
3241 * top.h (struct ui) <num>: New field.
3242 * top.c (highest_ui_num): New variable.
3243 (ui::ui): Initialize num.
3244
a7aba266
SM
32452020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3246
3247 * observable.h <inferior_created>: Remove parameters. Update all
3248 listeners.
3249 * inferior.h (post_create_inferior): Remove target parameter.
3250 Update all callers.
3251
048fde1e 32522020-10-02 Nitika Achra <Nitika.Achra@amd.com>
3253
3254 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
3255 and DW_MACRO_undef_strx.
3256 (dwarf_decode_macros): Likewise
3257 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
3258 which is the value of DW_AT_str_offsets_base.
3259 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
3260 str_offsets_base.
3261
064280be
KR
32622020-10-01 Kamil Rytarowski <n54@gmx.com>
3263
3264 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
3265
6ff33035
KR
32662020-10-01 Kamil Rytarowski <n54@gmx.com>
3267
3268 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
3269 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
3270
1eb6eb79
KR
32712020-10-01 Kamil Rytarowski <n54@gmx.com>
3272
3273 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
3274
95eb9e54
TV
32752020-09-30 Tom de Vries <tdevries@suse.de>
3276
3277 PR symtab/26683
3278 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
3279
cae21f8e
TT
32802020-09-30 Tom Tromey <tromey@adacore.com>
3281
3282 * dwarf2/read.c (handle_variant): Use constant_value.
3283
529908cb
TT
32842020-09-29 Tom Tromey <tom@tromey.com>
3285
3286 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
3287 (read_file_scope, dwarf2_get_pc_bounds)
3288 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
3289 (read_structure_type, handle_struct_member_die)
3290 (read_enumeration_type, read_array_type, read_set_type)
3291 (read_tag_pointer_type, read_tag_reference_type)
3292 (read_subroutine_type, read_base_type, read_subrange_type)
3293 (read_full_die_1, partial_die_info::read)
3294 (partial_die_info::read, by, new_symbol)
3295 (dwarf2_const_value_data, dwarf2_const_value_attr)
3296 (dump_die_shallow, dwarf2_fetch_constant_bytes)
3297 (prepare_one_comp_unit): Update.
3298 * dwarf2/attribute.h (DW_UNSND): Remove.
3299
c45bc3f8
TT
33002020-09-29 Tom Tromey <tom@tromey.com>
3301
3302 * dwarf2/read.c (read_func_scope, prototyped_function_p)
3303 (read_subroutine_type, partial_die_info::read)
3304 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
3305 (dwarf2_add_member_fn): Update.
3306 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
3307 * dwarf2/attribute.c (attribute::as_boolean): New method.
3308
23dca5c3
TT
33092020-09-29 Tom Tromey <tom@tromey.com>
3310
3311 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
3312 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
3313 method.
3314 * dwarf2/attribute.c (attribute::as_virtuality): New method.
3315
52c14d11
TT
33162020-09-29 Tom Tromey <tom@tromey.com>
3317
3318 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
3319 the attribute's form.
3320
e8e5c158
TT
33212020-09-29 Tom Tromey <tom@tromey.com>
3322
3323 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
3324 (dwarf2_add_member_fn): Update.
3325 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
3326 * dwarf2/attribute.c (attribute::defaulted): New method, from
3327 is_valid_DW_AT_defaulted.
3328
d4df075e
TT
33292020-09-29 Tom Tromey <tom@tromey.com>
3330
3331 * dwarf2/read.c (dw2_get_file_names_reader)
3332 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
3333 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
3334 (dwarf2_symbol_mark_computed): Use as_unsigned.
3335 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
3336 method.
3337 <form_is_section_offset>: Update comment.
3338
bf23a268
TT
33392020-09-29 Tom Tromey <tom@tromey.com>
3340
3341 * dwarf2/read.c (dwarf2_access_attribute): Rename from
3342 dwarf2_default_access_attribute. Look up attribute.
3343 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
3344 Update.
3345
7a5f294d
TT
33462020-09-29 Tom Tromey <tom@tromey.com>
3347
3348 * dwarf2/read.c (skip_one_die): Update.
3349 (read_full_die_1): Change how reprocessing is done.
3350 (partial_die_info::read): Update.
3351 (read_attribute_value): Remove need_reprocess parameter.
3352 (read_attribute): Likewise.
3353 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
3354 New method.
3355
36d378cf
TT
33562020-09-29 Tom Tromey <tom@tromey.com>
3357
3358 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
3359 (dwarf2_const_value_attr, dump_die_shallow)
3360 (dwarf2_fetch_constant_bytes): Update.
3361 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
3362 comment.
3363 <set_address>: New method.
3364 (DW_ADDR): Remove.
3365 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
3366 (attribute::as_string, attribute::as_address): Add assert.
3367
fe56917a
TT
33682020-09-29 Tom Tromey <tom@tromey.com>
3369
3370 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
3371 (read_attribute_reprocess, read_attribute_value): Update.
3372 (read_attribute): Clear requires_reprocessing.
3373 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
3374 form_requires_reprocessing>: New methods.
3375 <string_init>: Clear requires_reprocessing.
3376 <set_unsigned_reprocess>: New method.
3377 <name>: Shrink by one bit.
3378 <requires_reprocessing>: New member.
3379 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
3380 method.
3381
414ad644
TT
33822020-09-29 Tom Tromey <tom@tromey.com>
3383
3384 * dwarf2/read.c (read_attribute_value): Update.
3385 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
3386 set_unsigned>: New methods.
3387 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
3388
1bc397c5
TT
33892020-09-29 Tom Tromey <tom@tromey.com>
3390
3391 * dwarf2/read.c (get_alignment, read_array_order)
3392 (read_attribute_value, dwarf2_const_value_attr)
3393 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
3394 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
3395 New methods.
3396 (DW_SND): Remove.
3397
630ed6b9
TT
33982020-09-29 Tom Tromey <tom@tromey.com>
3399
3400 * dwarf2/read.c (read_attribute_value, lookup_die_type)
3401 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
3402 Update.
3403 * dwarf2/attribute.h (struct attribute) <as_signature,
3404 set_signature>: New methods.
3405 (DW_SIGNATURE): Remove.
3406
9d2246fc
TT
34072020-09-29 Tom Tromey <tom@tromey.com>
3408
3409 * dwarf2/read.c (read_call_site_scope)
3410 (handle_data_member_location, dwarf2_add_member_fn)
3411 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3412 (partial_die_info::read, read_attribute_value)
3413 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
3414 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
3415 (dwarf2_symbol_mark_computed): Update.
3416 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
3417 methods.
3418 (DW_BLOCK): Remove.
3419 * dwarf2/attribute.c (attribute::form_is_block): Add
3420 DW_FORM_data16.
3421
c6481205
TT
34222020-09-29 Tom Tromey <tom@tromey.com>
3423
3424 * dwarf2/read.c (read_cutu_die_from_dwo)
3425 (read_attribute_reprocess, read_attribute_value, read_attribute)
3426 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
3427 (dwarf2_fetch_constant_bytes): Update.
3428 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
3429 <set_string_noncanonical, set_string_canonical>: New methods.
3430 <string_is_canonical>: Update comment.
3431 <canonical_string_p>: Add assert.
3432 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
3433 * dwarf2/attribute.c (attribute::form_is_string): New method.
3434 (attribute::string): Use it.
3435
3b64bf15
TT
34362020-09-29 Tom Tromey <tom@tromey.com>
3437
3438 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
3439 (dump_die_shallow): Use canonical_string_p.
3440 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
3441 method.
3442
2c830f54
TT
34432020-09-29 Tom Tromey <tom@tromey.com>
3444
3445 * dwarf2/read.c (partial_die_info::read)
3446 (dwarf2_const_value_attr, anonymous_struct_prefix, )
3447 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
3448 attribute::as_string.
3449
6c412691
TT
34502020-09-29 Tom Tromey <tom@tromey.com>
3451
3452 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
3453 DW_ADDR.
3454 (attribute::string): Don't use DW_STRING.
3455 (attribute::get_ref_die_offset): Don't use DW_UNSND.
3456 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
3457
95f982e5
TT
34582020-09-29 Tom Tromey <tom@tromey.com>
3459
3460 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
3461 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
3462 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
3463 * dwarf2/attribute.h (struct attribute): Rename methods.
3464 * dwarf2/attribute.c (attribute::as_address): Rename from
3465 value_as_address.
3466 (attribute::as_string): Rename from value_as_string.
3467
f800b00e
TT
34682020-09-29 Tom Tromey <tom@tromey.com>
3469
3470 * dwarf2/read.c (partial_die_info::read) <case
3471 DW_AT_linkage_name>: Use value_as_string.
3472 (dwarf2_string_attr): Use value_as_string.
3473 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
3474 method.
3475 * dwarf2/attribute.c (attribute::value_as_string): New method.
3476
de38d64a
PA
34772020-09-29 Pedro Alves <pedro@palves.net>
3478
3479 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
3480 defined before using '#pragma GCC diagnostic' instead of checking
3481 __clang__.
3482
9aed480c
TT
34832020-09-28 Tom Tromey <tom@tromey.com>
3484
3485 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
3486 (handle_signal_stop): Update.
3487 * procfs.c (procfs_target::insert_watchpoint): Update.
3488 * target.h (target_have_steppable_watchpoint): Now a function.
3489
8a3ecb79
TT
34902020-09-28 Tom Tromey <tom@tromey.com>
3491
3492 * infrun.c (set_schedlock_func): Update.
3493 * target.h (target_can_lock_scheduler): Now a function.
3494
55f6301a
TT
34952020-09-28 Tom Tromey <tom@tromey.com>
3496
3497 * inferior.h (class inferior) <has_execution>: Update.
3498 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
3499 * valops.c (find_function_in_inferior)
3500 (value_allocate_space_in_inferior): Update.
3501 * top.c (kill_or_detach): Update.
3502 * target.c (target_preopen, set_target_permissions): Update.
3503 (target_has_execution_current): Remove.
3504 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
3505 Update.
3506 * solib.c (update_solib_list, reload_shared_libraries): Update.
3507 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
3508 * solib-dsbt.c (enable_break): Update.
3509 * score-tdep.c (score7_fetch_inst): Update.
3510 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
3511 Update.
3512 * remote.c (remote_target::start_remote)
3513 (remote_target::remote_check_symbols, remote_target::open_1)
3514 (remote_target::remote_detach_1, remote_target::verify_memory)
3515 (remote_target::xfer_partial, remote_target::read_description)
3516 (remote_target::get_min_fast_tracepoint_insn_len): Update.
3517 * record-full.c (record_full_open_1): Update.
3518 * record-btrace.c (record_btrace_target_open): Update.
3519 * objc-lang.c (lookup_objc_class, lookup_child_selector)
3520 (value_nsstring): Update.
3521 * linux-thread-db.c (add_thread_db_info)
3522 (thread_db_find_new_threads_silently, check_thread_db_callback)
3523 (try_thread_db_load_1, record_thread): Update.
3524 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
3525 Update.
3526 * linux-fork.c (checkpoint_command): Update.
3527 * infrun.c (set_non_stop, set_observer_mode)
3528 (check_multi_target_resumption, for_each_just_stopped_thread)
3529 (maybe_remove_breakpoints, normal_stop)
3530 (class infcall_suspend_state): Update.
3531 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
3532 (info_program_command, attach_command): Update.
3533 * infcall.c (call_function_by_hand_dummy): Update.
3534 * inf-loop.c (inferior_event_handler): Update.
3535 * gcore.c (gcore_command, derive_heap_segment): Update.
3536 * exec.c (exec_file_command): Update.
3537 * eval.c (evaluate_subexp): Update.
3538 * compile/compile.c (compile_to_object): Update.
3539 * cli/cli-dump.c (restore_command): Update.
3540 * breakpoint.c (update_watchpoint)
3541 (update_inserted_breakpoint_locations)
3542 (insert_breakpoint_locations, get_bpstat_thread): Update.
3543 * target.h (target_has_execution): Remove macro.
3544 (target_has_execution_current): Don't declare.
3545 (target_has_execution): Rename from target_has_execution_1. Add
3546 argument default.
3547
05374cfd
TT
35482020-09-28 Tom Tromey <tom@tromey.com>
3549
3550 * mi/mi-main.c (exec_reverse_continue)
3551 (mi_cmd_list_target_features): Update.
3552 * infrun.c (set_exec_direction_func): Update.
3553 * target.c (default_execution_direction): Update.
3554 * reverse.c (exec_reverse_once): Update.
3555 * target.h (target_can_execute_reverse): Now a function.
3556
9dccd06e
TT
35572020-09-28 Tom Tromey <tom@tromey.com>
3558
3559 * tui/tui-regs.c (tui_get_register)
3560 (tui_data_window::show_registers): Update.
3561 * thread.c (scoped_restore_current_thread::restore)
3562 (scoped_restore_current_thread::scoped_restore_current_thread):
3563 Update.
3564 * regcache-dump.c (regcache_print): Update.
3565 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
3566 Update.
3567 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
3568 * mep-tdep.c (current_me_module, current_options): Update.
3569 * linux-thread-db.c (thread_db_load): Update.
3570 * infcmd.c (registers_info, info_vector_command)
3571 (info_float_command): Update.
3572 * ia64-tdep.c (ia64_frame_prev_register)
3573 (ia64_sigtramp_frame_prev_register): Update.
3574 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
3575 * gcore.c (derive_stack_segment): Update.
3576 * frame.c (get_current_frame, has_stack_frames): Update.
3577 * findvar.c (language_defn::read_var_value): Update.
3578 * arm-tdep.c (arm_pc_is_thumb): Update.
3579 * target.c (target_has_registers): Rename from
3580 target_has_registers_1.
3581 * target.h (target_has_registers): Remove macro.
3582 (target_has_registers): Rename from target_has_registers_1.
3583
841de120
TT
35842020-09-28 Tom Tromey <tom@tromey.com>
3585
3586 * windows-tdep.c (tlb_make_value): Update.
3587 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3588 * thread.c (scoped_restore_current_thread::restore)
3589 (scoped_restore_current_thread::scoped_restore_current_thread)
3590 (thread_command): Update.
3591 * stack.c (backtrace_command_1, frame_apply_level_command)
3592 (frame_apply_all_command, frame_apply_command): Update.
3593 * infrun.c (siginfo_make_value, restore_infcall_control_state):
3594 Update.
3595 * gcore.c (derive_stack_segment): Update.
3596 * frame.c (get_current_frame, has_stack_frames): Update.
3597 * auxv.c (info_auxv_command): Update.
3598 * ada-tasks.c (ada_build_task_list): Update.
3599 * target.c (target_has_stack): Rename from target_has_stack_1.
3600 * target.h (target_has_stack): Remove macro.
3601 (target_has_stack): Rename from target_has_stack_1.
3602
a739972c
TT
36032020-09-28 Tom Tromey <tom@tromey.com>
3604
3605 * target.c (target_has_memory): Rename from target_has_memory_1.
3606 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3607 * thread.c (scoped_restore_current_thread::restore)
3608 (scoped_restore_current_thread::scoped_restore_current_thread):
3609 Update.
3610 * frame.c (get_current_frame, has_stack_frames): Update.
3611 * target.h (target_has_memory): Remove macro.
3612 (target_has_memory): Rename from target_has_memory_1.
3613
5b8a4776
TT
36142020-09-28 Tom Tromey <tom@tromey.com>
3615
3616 * target.c (target_has_all_memory_1): Remove.
3617 * target.h (target_has_all_memory): Remove define.
3618 (target_has_all_memory_1): Don't declare.
3619
bd356ec6
SM
36202020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
3621
3622 * ser-base.c: Adjust comments formatting.
3623
2c72d5e5
TT
36242020-09-27 Tom Tromey <tom@tromey.com>
3625
3626 PR tui/25342:
3627 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
3628
35a98237
TT
36292020-09-27 Tom Tromey <tom@tromey.com>
3630
3631 PR tui/25342:
3632 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
3633
9e820dec
TT
36342020-09-27 Tom Tromey <tom@tromey.com>
3635
3636 * unittests/tui-selftests.c: Update.
3637 * tui/tui-winsource.h (struct tui_source_window_base)
3638 <extra_margin, show_line_number, refresh_pad>: New methods.
3639 <m_max_length, m_pad>: New members.
3640 (tui_copy_source_line): Update.
3641 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
3642 first_col, line_width, ndigits parameters. Add length.
3643 (tui_source_window_base::show_source_line): Write to pad. Line
3644 number now 0-based.
3645 (tui_source_window_base::refresh_pad): New method.
3646 (tui_source_window_base::show_source_content): Write to pad. Call
3647 refresh_pad.
3648 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
3649 not refill.
3650 (tui_source_window_base::update_exec_info): Call
3651 show_line_number.
3652 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
3653 method.
3654 <m_digits>: New member.
3655 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
3656 and m_max_length.
3657 (tui_source_window::show_line_number): New method.
3658 * tui/tui-io.h (tui_puts): Fix comment.
3659 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
3660 m_max_length.
3661
c15c15c8
TT
36622020-09-27 Tom Tromey <tom@tromey.com>
3663
3664 * tui/tui-winsource.c
3665 (tui_source_window_base::set_is_exec_point_at): Don't call
3666 show_source_line.
3667
149830c1
TT
36682020-09-27 Tom Tromey <tom@tromey.com>
3669
3670 * python/py-tui.c (class tui_py_window) <refresh_window>: New
3671 method.
3672 <erase>: Update.
3673 <cursor_x, cursor_y>: Remove.
3674 <m_inner_window>: New member.
3675 (tui_py_window::rerender): Create inner window.
3676 (tui_py_window::output): Write to inner window.
3677
8f9929bb
GR
36782020-09-26 Gareth Rees <grees@undo.io> (tiny change)
3679
3680 PR python/26586
3681 * cli/cli-script.c (execute_control_commands): don't set
3682 instream to nullptr here as this breaks the from_tty argument
3683 to gdb.execute in Python.
3684 (execute_user_command): set instream to nullptr here instead.
3685
956bdb59
SM
36862020-09-25 Simon Marchi <simon.marchi@efficios.com>
3687
3688 * infrun.h (infrun_debug_printf): Fix formatting.
3689 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
3690
3b93626b
SJ
36912020-09-25 Saagar Jha <saagar@saagarjha.com>
3692
3693 * compile/compile-object-load.h (struct munmap_list): Add
3694 explicitly-defined move constructor.
3695
b551a89f
TT
36962020-09-24 Tom Tromey <tromey@adacore.com>
3697
3698 PR tui/26638:
3699 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
3700 method.
3701 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
3702 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
3703 (tui_prev_win): Rewrite.
3704
99bb393f
HD
37052020-09-23 Hannes Domani <ssbssa@yahoo.de>
3706
3707 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
3708 in WOW64 processes as SIGINT.
3709 * nat/windows-nat.h: Make wow64_process a shared variable.
3710 * windows-nat.c: Remove static wow64_process variable.
3711
20a5fcbd
TT
37122020-09-23 Tom Tromey <tom@tromey.com>
3713
3714 PR symtab/25470:
3715 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
3716 offset and bit size.
3717 * printcmd.c (print_scalar_formatted): Handle zero-length
3718 integer.
3719 (print_scalar_formatted): Use bit_size_differs_p.
3720 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
3721 constant.
3722 (union type_specific): <int_stuff>: New member.
3723 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
3724 methods.
3725 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
3726 TYPE_SPECIFIC_FIELD.
3727 (recursive_dump_type, copy_type_recursive): Update.
3728 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
3729 DW_AT_data_bit_offset.
3730
bac51ab7
TT
37312020-09-23 Tom Tromey <tom@tromey.com>
3732
3733 * utils.h (class gdb_argv): Add move operators.
3734 <append>: New methods.
3735 * compile/compile.c (build_argc_argv): Remove.
3736 (compile_args_argc): Remove.
3737 (compile_args_argv): Change type.
3738 (set_compile_args): Simplify.
3739 (append_args): Remove.
3740 (filter_args): Remove argcp parameter.
3741 (get_args): Return gdb_argv. Simplify.
3742 (compile_to_object): Update.
3743
92677124
TT
37442020-09-23 Tom Tromey <tom@tromey.com>
3745
3746 * compile/compile-object-run.c (do_module_cleanup)
3747 <~do_module_cleanup> :Remove.
3748 (do_module_cleanup): Update.
3749 * compile/compile-object-load.h (struct munmap_list): Add move
3750 assignment operator.
3751 <source_file>: Now a std::string.
3752 <munmap_list>: Rename. No longer a pointer.
3753 * compile/compile-object-load.c (struct setup_sections_data): Add
3754 constructor.
3755 <setup_one_section>: Declare.
3756 <munmap_list>: Move earlier.
3757 <m_bfd>: New member.
3758 <m_last_size, m_last_section_first, m_last_prot,
3759 m_last_max_alignment>: Rename, add initializers where needed.
3760 (setup_sections_data::setup_one_section): Rename from
3761 setup_sections. Update.
3762 (compile_object_load): Update. Don't use bfd_map_over_sections.
3763
e616f60a
TT
37642020-09-23 Tom Tromey <tom@tromey.com>
3765
3766 * compile/compile-object-run.c (struct do_module_cleanup): Add
3767 parameters to constructor. Update destructor.
3768 <source_file, scope, scope_data, out_value_type, out_value_addr,
3769 munmap_list_head, objfile_name_string>: Remove.
3770 <module>: New member.
3771 (do_module_cleanup): Update.
3772 (compile_object_run): Update.
3773
e947a848
TT
37742020-09-23 Tom Tromey <tom@tromey.com>
3775
3776 * compile/compile.c (eval_compile_command): Update.
3777 * compile/compile-object-run.h (compile_object_run): Take a
3778 compile_module_up.
3779 * compile/compile-object-run.c (compile_object_run): Take a
3780 compile_module_up.
3781 * compile/compile-object-load.h (struct compile_module): Add
3782 constructor, destructor.
3783 (compile_module_up): New typedef.
3784 (compile_object_load): Return compile_object_up.
3785 * compile/compile-object-load.c (compile_object_load): Return
3786 compile_module_up.
3787
0dbf6ee6
TT
37882020-09-23 Tom Tromey <tom@tromey.com>
3789
3790 * compile/compile-object-run.c (struct do_module_cleanup): Add
3791 constructor, destructor.
3792 <objfile_name_string>: Don't use struct hack.
3793 (do_module_cleanup): Use delete.
3794 (compile_object_run): Use new.
3795
ebe824f5
TT
37962020-09-23 Tom Tromey <tom@tromey.com>
3797
3798 * compile/compile-cplus-types.c
3799 (compile_cplus_convert_struct_or_union): Use std::vector.
3800 (compile_cplus_convert_func): Likewise.
3801 * compile/compile-c-types.c (convert_func): Use std::vector.
3802
5dd918d9
TT
38032020-09-21 Tom Tromey <tromey@adacore.com>
3804
3805 * sparc-tdep.c (sparc32_skip_prologue): Use
3806 skip_prologue_using_sal.
3807
5486c517
TT
38082020-09-19 Tom Tromey <tom@tromey.com>
3809
3810 * symfile.c (add_section_size_callback): Remove.
3811 (load_one_section): Rename from load_section_callback. Change
3812 parameters.
3813 (generic_load): Use foreach.
3814
8a6bb1d1
TT
38152020-09-19 Tom Tromey <tom@tromey.com>
3816
3817 * exec.c (add_to_section_table): Remove.
3818 (build_section_table): Use foreach.
3819
08f93a1a
TT
38202020-09-19 Tom Tromey <tom@tromey.com>
3821
3822 * elfread.c (elf_locate_sections): Change parameters.
3823 (elf_symfile_read): Use foreach.
3824
03cd72b8
TT
38252020-09-19 Tom Tromey <tom@tromey.com>
3826
3827 * cli/cli-dump.c (struct callback_data): Remove.
3828 (restore_one_section): Rename from restore_section_callback.
3829 Change parameters.
3830 (restore_binary_file): Change parameters.
3831 (restore_command): Use foreach.
3832
f4f2b85f
TT
38332020-09-19 Tom Tromey <tom@tromey.com>
3834
3835 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
3836 (gcore_copy_callback): Likewise.
3837 (gcore_memory_sections): Use foreach.
3838
b35c1d1c
TT
38392020-09-19 Tom Tromey <tom@tromey.com>
3840
3841 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
3842 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
3843 parameters.
3844 (generic_elf_osabi_sniffer): Use foreach.
3845 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
3846 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
3847
5bb6e9dd
TT
38482020-09-19 Tom Tromey <tom@tromey.com>
3849
3850 * dwarf2/read.c (locate_dwz_sections): Change parameters.
3851 (dwarf2_get_dwz_file): Use foreach.
3852 (dwarf2_locate_dwo_sections): Change parameters.
3853 (open_and_init_dwo_file): Use foreach.
3854 (dwarf2_locate_common_dwp_sections): Change parameters.
3855 (open_and_init_dwp_file): Use foreach.
3856
ad7277da
TT
38572020-09-19 Tom Tromey <tom@tromey.com>
3858
3859 * symfile.h: (find_lowest_section): Don't declare.
3860 * symfile.c (find_lowest_section): Now static. Change
3861 parameters.
3862 (struct place_section_arg): Remove.
3863 (place_section): Change parameters.
3864 (addr_info_make_relative): Use foreach.
3865 (symfile_dummy_outputs): Remove.
3866 (default_symfile_relocate): Use foreach.
3867
cb814f2e
TT
38682020-09-19 Tom Tromey <tom@tromey.com>
3869
3870 * objfiles.c (add_to_objfile_sections): Rename from
3871 add_to_objfile_sections_full.
3872 (add_to_objfile_sections): Remove.
3873 (build_objfile_section_table): Use foreach.
3874
3cabfd26
TT
38752020-09-19 Tom Tromey <tom@tromey.com>
3876
3877 * stap-probe.c (get_stap_base_address_1): Remove.
3878 (get_stap_base_address): Use foreach.
3879
1ce51eb5
TT
38802020-09-19 Tom Tromey <tom@tromey.com>
3881
3882 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
3883 parameters.
3884 (gdb_bfd_close_or_warn): Use foreach.
3885
a190fabb
TT
38862020-09-19 Tom Tromey <tom@tromey.com>
3887
3888 * corelow.c (add_to_thread_list): Change parameters.
3889 (core_target_open): Use foreach.
3890
cafb0d81
TT
38912020-09-19 Tom Tromey <tom@tromey.com>
3892
3893 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
3894 existing function.
3895
c8d5abea
AB
38962020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3897
3898 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
3899 for arrays.
3900
6d816919
AB
39012020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3902
3903 * eval.c: Remove 'f-lang.h' include.
3904 (value_f90_subarray): Moved to f-lang.c.
3905 (eval_call): Renamed to...
3906 (evaluate_subexp_do_call): ...this, is no longer static, header
3907 comment moved into header file.
3908 (evaluate_funcall): Update call to eval_call.
3909 (skip_undetermined_arglist): Moved to f-lang.c.
3910 (fortran_value_subarray): Likewise.
3911 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3912 moved to evaluate_subexp_f.
3913 (calc_f77_array_dims): Moved to f-lang.c
3914 * expprint.c (print_subexp_funcall): New function.
3915 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3916 moved to print_subexp_f, OP_FUNCALL uses new function.
3917 (dump_subexp_body_funcall): New function.
3918 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
3919 moved to dump_subexp_f, OP_FUNCALL uses new function.
3920 * expression.h (evaluate_subexp_do_call): Declare.
3921 * f-lang.c (value_f90_subarray): Moved from eval.c.
3922 (skip_undetermined_arglist): Likewise.
3923 (calc_f77_array_dims): Likewise.
3924 (fortran_value_subarray): Likewise.
3925 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
3926 (operator_length_f): Likewise.
3927 (print_subexp_f): Likewise.
3928 (dump_subexp_body_f): Likewise.
3929 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
3930 declaration of this operation to here.
3931 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
3932 support moved to operator_length_f.
3933 * parser-defs.h (dump_subexp_body_funcall): Declare.
3934 (print_subexp_funcall): Declare.
3935 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
3936 fortran-operator.def.
3937
8c37706a
AB
39382020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3939
3940 * eval.c (fortran_value_subarray): New function, content is taken
3941 from...
3942 (evaluate_subexp_standard): ...here, in two places. Now arrays
3943 and strings both call the new function.
3944 (calc_f77_array_dims): Add header comment, handle strings.
3945
14f9473c
VC
39462020-09-18 Victor Collod <vcollod@nvidia.com>
3947
3948 PR gdb/26635
3949 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
3950 (i386_analyze_prologue): Call i386_skip_endbr.
3951
b60cea74
TT
39522020-09-18 Tom Tromey <tromey@adacore.com>
3953
3954 * windows-nat.c (struct windows_nat_target) <wait>: Update.
3955 (windows_nat_target::wait): Update.
3956 * target/wait.h (enum target_wait_flag): New. Use
3957 DEF_ENUM_FLAGS_TYPE.
3958 * target/target.h (target_wait): Change type of options.
3959 * target.h (target_options_to_string, default_target_wait):
3960 Update.
3961 (struct target_ops) <wait>: Change type of options.
3962 * target.c (target_wait, default_target_wait, do_option): Change
3963 type of "options".
3964 (target_options_to_string): Likewise.
3965 * target-delegates.c: Rebuild.
3966 * target-debug.h (target_debug_print_target_wait_flags): Rename
3967 from target_debug_print_options.
3968 * sol-thread.c (class sol_thread_target) <wait>: Update.
3969 (sol_thread_target::wait): Update.
3970 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
3971 (rs6000_nat_target::wait): Update.
3972 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
3973 Update.
3974 (remote_target::wait_ns, remote_target::wait_as): Change type of
3975 "options".
3976 (remote_target::wait): Update.
3977 * remote-sim.c (struct gdbsim_target) <wait>: Update.
3978 (gdbsim_target::wait): Update.
3979 * record-full.c (class record_full_base_target) <wait>: Update.
3980 (record_full_wait_1): Change type of "options".
3981 (record_full_base_target::wait): Update.
3982 * record-btrace.c (class record_btrace_target) <wait>: Update.
3983 (record_btrace_target::wait): Update.
3984 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
3985 Update.
3986 (ravenscar_thread_target::wait): Update.
3987 * procfs.c (class procfs_target) <wait>: Update.
3988 (procfs_target::wait): Update.
3989 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
3990 * obsd-nat.c (obsd_nat_target::wait): Update.
3991 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
3992 (nto_procfs_target::wait): Update.
3993 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
3994 * nbsd-nat.c (nbsd_wait): Change type of "options".
3995 (nbsd_nat_target::wait): Update.
3996 * linux-thread-db.c (class thread_db_target) <wait>: Update.
3997 (thread_db_target::wait): Update.
3998 * linux-nat.h (class linux_nat_target) <wait>: Update.
3999 * linux-nat.c (linux_nat_target::wait): Update.
4000 (linux_nat_wait_1): Update.
4001 * infrun.c (do_target_wait_1, do_target_wait): Change type of
4002 "options".
4003 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
4004 * inf-ptrace.c (inf_ptrace_target::wait): Update.
4005 * go32-nat.c (struct go32_nat_target) <wait>: Update.
4006 (go32_nat_target::wait): Update.
4007 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
4008 * gnu-nat.c (gnu_nat_target::wait): Update.
4009 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
4010 * fbsd-nat.c (fbsd_nat_target::wait): Update.
4011 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
4012 * darwin-nat.c (darwin_nat_target::wait): Update.
4013 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
4014 (bsd_uthread_target::wait): Update.
4015 * aix-thread.c (class aix_thread_target) <wait>: Update.
4016 (aix_thread_target::wait): Update.
4017
0295dde6
AB
40182020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
4019
4020 * compile/compile-object-run.c (create_copied_type_recursive): New
4021 function.
4022 (compile_object_run): Use new function.
4023
d3483b43
JT
40242020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
4025
4026 * NEWS: Mention x86_64 Cygwin core file support.
4027
e7d612ad
JT
40282020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4029
4030 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
4031 (core_process_module_section): Handle NOTE_INFO_MODULE64.
4032
aff9d387
JT
40332020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4034
62a5151b
JT
4035 * windows-tdep.h: Add prototypes.
4036 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
4037 (i386_windows_core_pid_to_str): Move and rename ...
4038 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
4039 (windows_core_pid_to_str): ... and here.
4040 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
4041
40422020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
aff9d387
JT
4043 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
4044 (amd64_windows_init_abi_common): ... and register.
4045
7d155da3
JT
40462020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4047
4048 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
4049 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
4050
e8ef12b9
PA
40512020-09-18 Pedro Alves <pedro@palves.net>
4052
4053 PR gdb/26631
4054 * thread.c (thread_find_command): Switch inferior before calling
4055 target methods.
4056
c1e1314d
TT
40572020-09-17 Tom Tromey <tromey@adacore.com>
4058
4059 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
4060 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
4061 (tdesc_arch_data_up): New typedef.
4062 (tdesc_use_registers, tdesc_data_alloc): Update.
4063 (tdesc_data_cleanup): Don't declare.
4064 * target-descriptions.c (tdesc_data_alloc): Return a
4065 tdesc_arch_data_up.
4066 (tdesc_arch_data_deleter::operator()): Rename from
4067 tdesc_data_cleanup. Change argument type.
4068 (tdesc_use_registers): Change early_data to an rvalue reference.
4069 (tdesc_use_registers): Don't use delete.
4070 * sparc-tdep.c (sparc32_gdbarch_init): Update.
4071 * s390-tdep.c (s390_gdbarch_init): Update.
4072 * rx-tdep.c (rx_gdbarch_init): Update.
4073 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4074 * riscv-tdep.c (riscv_gdbarch_init): Update.
4075 * or1k-tdep.c (or1k_gdbarch_init): Update.
4076 * nios2-tdep.c (nios2_gdbarch_init): Update.
4077 * nds32-tdep.c (nds32_gdbarch_init): Update.
4078 * mips-tdep.c (mips_gdbarch_init): Update.
4079 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
4080 * m68k-tdep.c (m68k_gdbarch_init): Update.
4081 * i386-tdep.c (i386_gdbarch_init): Update.
4082 * arm-tdep.c (arm_gdbarch_init): Update.
4083 * arc-tdep.c (arc_tdesc_init): Update.
4084 (arc_gdbarch_init): Update.
4085 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
4086
0363df3d
HD
40872020-09-17 Hannes Domani <ssbssa@yahoo.de>
4088
4089 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
4090 for WOW64 processes.
4091
280a9412
TT
40922020-09-17 Tom Tromey <tom@tromey.com>
4093
4094 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
4095
6108fd18
TT
40962020-09-17 Tom Tromey <tom@tromey.com>
4097
4098 * value.c (preserve_values): Update.
4099 * python/py-type.c (save_objfile_types): Update.
4100 * guile/scm-type.c (save_objfile_types): Update.
4101 * gdbtypes.h (create_copied_types_hash): Return htab_up.
4102 * gdbtypes.c (create_copied_types_hash): Return htab_up.
4103 * compile/compile-object-run.c (compile_object_run): Update.
4104
fa9b1164
TT
41052020-09-17 Tom Tromey <tom@tromey.com>
4106
4107 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
4108 Remove.
4109 <m_table>: Now htab_up.
4110 * typeprint.c (typedef_hash_table::recursively_update)
4111 (typedef_hash_table::add_template_parameters)
4112 (typedef_hash_table::typedef_hash_table): Update.
4113 (typedef_hash_table::~typedef_hash_table): Remove.
4114 (typedef_hash_table::typedef_hash_table)
4115 (typedef_hash_table::find_global_typedef)
4116 (typedef_hash_table::find_typedef): Update.
4117
eb53f105
TT
41182020-09-17 Tom Tromey <tom@tromey.com>
4119
4120 * target-descriptions.c (tdesc_use_registers): Use htab_up.
4121
7a8a5d47
TT
41222020-09-17 Tom Tromey <tom@tromey.com>
4123
4124 * linespec.c (class decode_compound_collector)
4125 <~decode_compound_collector>: Remove.
4126 <m_unique_syms>: Now htab_up.
4127 (decode_compound_collector::operator ()): Update.
4128 (class symtab_collector) <~symtab_collector>: Remove.
4129 <m_symtab_table>: Now htab_up.
4130 (symtab_collector::operator ()): Update.
4131
99032cfc
TT
41322020-09-17 Tom Tromey <tom@tromey.com>
4133
4134 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
4135 (filename_seen_cache::clear): Update.
4136 (~filename_seen_cache): Remove.
4137 (filename_seen_cache::seen): Update.
4138 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
4139 htab_up.
4140 <~filename_seen_cache>: Remove.
4141 <traverse>: Update.
4142
32580f6d
TT
41432020-09-17 Tom Tromey <tom@tromey.com>
4144
4145 * completer.c (completion_tracker::discard_completions)
4146 (completion_tracker::~completion_tracker)
4147 (completion_tracker::maybe_add_completion)
4148 (completion_tracker::remove_completion)
4149 (completion_tracker::recompute_lowest_common_denominator)
4150 (completion_tracker::build_completion_result): Update.
4151 * completer.h (class completion_tracker) <have_completions>:
4152 Update.
4153 <m_entries_hash>: Now htab_up.
4154
c1fb9836
TT
41552020-09-17 Tom Tromey <tom@tromey.com>
4156
4157 * breakpoint.c (ambiguous_names_p): Use htab_up.
4158
88f07206
TT
41592020-09-17 Tom Tromey <tom@tromey.com>
4160
4161 * auto-load.c (struct auto_load_pspace_info)
4162 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
4163 <loaded_script_files, loaded_script_texts>: Change type to
4164 htab_up.
4165 (~auto_load_pspace_info) Remove.
4166 (init_loaded_scripts_info, maybe_add_script_file)
4167 (maybe_add_script_text, auto_load_info_scripts): Update.
4168
9519b2ee
TT
41692020-09-17 Tom Tromey <tromey@adacore.com>
4170
4171 * c-exp.y (name_obstack): Now static.
4172
d2cd4113
CC
41732020-09-17 Chungyi Chi <demonic@csie.io>
4174
4175 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
4176
b650a282
SM
41772020-09-16 Simon Marchi <simon.marchi@efficios.com>
4178
4179 * breakpoint.h (init_catchpoint): Change int parameter to bool.
4180 (add_solib_catchpoint): Likewise.
4181 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
4182 to bool.
4183 (add_solib_catchpoint): Change int parameter/variable to bool.
4184 (catch_load_or_unload): Likewise.
4185 (init_catchpoint): Likewise.
4186 (create_fork_vfork_event_catchpoint): Likewise.
4187 (catch_fork_command_1): Likewise.
4188 (catch_exec_command_1): Likewise.
4189
4d0bcfcf
SM
41902020-09-16 Simon Marchi <simon.marchi@efficios.com>
4191
4192 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
4193 Change instance_flags to m_instance_flags.
4194
fe830662
TT
41952020-09-16 Tom Tromey <tromey@adacore.com>
4196
4197 PR gdb/26598:
4198 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
4199
fe5ddfc3
JB
42002020-09-16 John Baldwin <jhb@FreeBSD.org>
4201
4202 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
4203 PL_FLAG_EXEC.
4204 (fbsd_nat_target::insert_exec_catchpoint)
4205 (fbsd_nat_target::remove_exec_catchpoint): Always define.
4206 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
4207 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
4208
e911c666
JB
42092020-09-16 John Baldwin <jhb@FreeBSD.org>
4210
4211 * configure.ac: Remove check for kinfo_getvmmap().
4212 * configure, config.in: Regenerate.
4213 * fbsd-nat.c (fbsd_read_mapping): Remove
4214 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
4215 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
4216 kinfo_get_vmmap() are always present.
4217
1f17d372
JB
42182020-09-16 John Baldwin <jhb@FreeBSD.org>
4219
4220 * fbsd-nat.c: Always include support for
4221 TARGET_OBJECT_SIGNAL_INFO.
4222
bcb1da7f
JB
42232020-09-16 John Baldwin <jhb@FreeBSD.org>
4224
4225 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
4226 sysctl and remove procfs fallback.
4227
5515f729
JB
42282020-09-16 John Baldwin <jhb@FreeBSD.org>
4229
4230 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
4231 * fbsd-nat.h: Likewise.
4232
da1df1db
TBA
42332020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4234
4235 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
4236 argument.
4237
0e25e767
AB
42382020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4239
4240 * ada-lang.c (ada_language_data): Delete.
4241 (ada_language): Remove references to ada_language_data.
4242 * c-lang.c (c_language_data): Delete.
4243 (c_language): Remove references to c_language_data.
4244 (cplus_language_data): Delete.
4245 (cplus_language): Remove references to cplus_language_data.
4246 (asm_language_data): Delete.
4247 (asm_language): Remove references to asm_language_data.
4248 (minimal_language_data): Delete.
4249 (minimal_language): Remove references to minimal_language_data.
4250 * d-lang.c (d_language_data): Delete.
4251 (d_language): Remove references to d_language_data.
4252 * f-lang.c (f_language_data): Delete.
4253 (f_language): Remove references to f_language_data.
4254 * go-lang.c (go_language_data): Delete.
4255 (go_language): Remove references to go_language_data.
4256 * language.c (unknown_language_data): Delete.
4257 (unknown_language): Remove references to unknown_language_data.
4258 (auto_language_data): Delete.
4259 (auto_language): Remove references to auto_language_data.
4260 * language.h (language_data): Delete struct.
4261 (language_defn): No longer inherit from language_data.
4262 * m2-lang.c (m2_language_data): Delete.
4263 (m2_language): Remove references to m2_language_data.
4264 * objc-lang.c (objc_language_data): Delete.
4265 (objc_language): Remove references to objc_language_data.
4266 * opencl-lang.c (opencl_language_data): Delete.
4267 (opencl_language): Remove references to opencl_language_data.
4268 * p-lang.c (pascal_language_data): Delete.
4269 (pascal_language): Remove references to pascal_language_data.
4270 * rust-lang.c (rust_language_data): Delete.
4271 (rust_language): Remove references to rust_language_data.
4272
b7c6e27d
AB
42732020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4274
4275 * ada-lang.c (ada_language_data): Remove la_op_print_tab
4276 initializer.
4277 (ada_language::opcode_print_table): New member function.
4278 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
4279 (c_language::opcode_print_table): New member function.
4280 (cplus_language_data): Remove la_op_print_tab initializer.
4281 (cplus_language::opcode_print_table): New member function.
4282 (asm_language_data): Remove la_op_print_tab initializer.
4283 (asm_language::opcode_print_table): New member function.
4284 (minimal_language_data): Remove la_op_print_tab initializer.
4285 (minimal_language::opcode_print_table): New member function.
4286 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
4287 (d_language::opcode_print_table): New member function.
4288 * expprint.c (print_subexp_standard): Update call to
4289 opcode_print_table.
4290 (op_string): Likewise.
4291 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
4292 (f_language::opcode_print_table): New member function.
4293 * go-lang.c (go_language_data): Remove la_op_print_tab
4294 initializer.
4295 (go_language::opcode_print_table): New member function.
4296 * language.c (unknown_language_data): Remove la_op_print_tab
4297 initializer.
4298 (unknown_language::opcode_print_table): New member function.
4299 (auto_language_data): Remove la_op_print_tab initializer.
4300 (auto_language::opcode_print_table): New member function.
4301 * language.h (language_data): Remove la_op_print_tab field.
4302 (language_defn::opcode_print_table): Declare new member function.
4303 * m2-lang.c (m2_language_data): Remove la_op_print_tab
4304 initializer.
4305 (m2_language::opcode_print_table): New member function.
4306 * objc-lang.c (objc_language_data): Remove la_op_print_tab
4307 initializer.
4308 (objc_language::opcode_print_table): New member function.
4309 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
4310 initializer.
4311 (opencl_language::opcode_print_table): New member function.
4312 * p-lang.c (pascal_language_data): Remove la_op_print_tab
4313 initializer.
4314 (pascal_language::opcode_print_table): New member function.
4315 * rust-lang.c (rust_language_data): Remove la_op_print_tab
4316 initializer.
4317 (rust_language::opcode_print_table): New member function.
4318
5aba6ebe
AB
43192020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4320
4321 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
4322 (ada_language::expression_ops): New member function.
4323 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
4324 (c_language::expression_ops): New member function.
4325 (cplus_language_data): Remove la_exp_desc initializer.
4326 (cplus_language::expression_ops): New member function.
4327 (asm_language_data): Remove la_exp_desc initializer.
4328 (asm_language::expression_ops): New member function.
4329 (minimal_language_data): Remove la_exp_desc initializer.
4330 (minimal_language::expression_ops): New member function.
4331 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
4332 (d_language::expression_ops): New member function.
4333 * eval.c (evaluate_subexp): Update call to expression_ops.
4334 * expprint.c (print_subexp): Likewise.
4335 (op_name): Likewise.
4336 (dump_subexp_body): Likewise.
4337 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
4338 (f_language::expression_ops): New member function.
4339 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
4340 (go_language::expression_ops): New member function.
4341 * language.c (language_defn::expression_ops): New function.
4342 (unknown_language_data): Remove la_exp_desc initializer.
4343 (auto_language_data): Likewise.
4344 * language.h (language_data): Remove la_exp_desc field.
4345 (language_defn::expression_ops): Declare new member function.
4346 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
4347 (m2_language::expression_ops): New member function.
4348 * objc-lang.c (objc_language_data): Remove la_exp_desc
4349 initializer.
4350 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
4351 initializer.
4352 (opencl_language::expression_ops): New member function.
4353 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
4354 * parse.c (operator_length): Update call to expression_ops.
4355 (exp_iterate): Likewise.
4356 * rust-lang.c (rust_language_data): Remove la_exp_desc
4357 initializer.
4358 (ruse_language::expression_ops): New member function.
4359
b63a3f3f
AB
43602020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4361
4362 * ada-lang.c (ada_language_data): Remove la_varobj_ops
4363 initializer.
4364 (ada_language::varobj_ops): New member function.
4365 * c-lang.c (c_language_data): Remove la_varobj_ops
4366 initializer.
4367 (cplus_language_data): Likewise.
4368 (cplus_language::varobj_ops): New member function.
4369 (asm_language_data): Remove la_varobj_ops initializer.
4370 (minimal_language_data): Likewise.
4371 * d-lang.c (d_language_data): Likewise.
4372 * f-lang.c (f_language_data): Likewise.
4373 * go-lang.c (go_language_data): Likewise.
4374 * language.c (language_defn::varobj_ops): New function.
4375 (unknown_language_data): Remove la_varobj_ops
4376 initializer.
4377 (auto_language_data): Likewise.
4378 * language.h (language_data): Remove la_varobj_ops field.
4379 (language_defn::varobj_ops): Declare new member function.
4380 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
4381 * objc-lang.c (objc_language_data): Likewise.
4382 * opencl-lang.c (opencl_language_data): Likewise.
4383 * p-lang.c (pascal_language_data): Likewise.
4384 * rust-lang.c (rust_language_data): Likewise.
4385 * varobj.c (varobj_create): Update call to varobj_ops.
4386 * varobj.h (default_varobj_ops): Delete define.
4387
1ac14a04
AB
43882020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4389
4390 * ada-lang.c (ada_language_data): Remove la_macro_expansion
4391 initializer.
4392 * c-lang.c (c_language_data): Likewise.
4393 (c_language::macro_expansion): New member function.
4394 (cplus_language_data): Likewise.
4395 (cplus_language::macro_expansion): New member function.
4396 (asm_language_data): Likewise.
4397 (asm_language::macro_expansion): New member function.
4398 (minimal_language_data): Likewise.
4399 (minimal_language::macro_expansion): New member function.
4400 * d-lang.c (d_language_data): Remove la_macro_expansion
4401 initializer.
4402 * f-lang.c (f_language_data): Likewise.
4403 * go-lang.c (go_language_data): Likewise.
4404 * language.c (unknown_language_data): Likewise.
4405 (auto_language_data): Likewise.
4406 * language.h (language_data): Remove la_macro_expansion field.
4407 (language_defn::macro_expansion): New member function.
4408 * m2-lang.c (m2_language_data): Remove la_macro_expansion
4409 initializer.
4410 * objc-lang.c (objc_language_data): Likewise.
4411 (objc_language::macro_expansion): New member function.
4412 * opencl-lang.c (opencl_language_data): Likewise.
4413 (opencl_language::macro_expansion): New member function.
4414 * p-lang.c (pascal_language_data): Remove la_macro_expansion
4415 initializer.
4416 * rust-lang.c (rust_language_data): Likewise.
4417 * symtab.c (default_collect_symbol_completion_matches_break_on):
4418 Update call to macro_expansion.
4419
3a3440fb
AB
44202020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4421
4422 * ada-lang.c (ada_language_data): Remove la_array_ordering
4423 initializer.
4424 * c-lang.c (c_language_data): Likewise.
4425 (cplus_language_data): Likewise.
4426 (asm_language_data): Likewise.
4427 (minimal_language_data): Likewise.
4428 * d-lang.c (d_language_data): Likewise.
4429 * dwarf2/read.c (read_array_order): Update for call to
4430 array_ordering.
4431 * f-lang.c (f_language_data): Remove la_array_ordering
4432 initializer.
4433 (f_language::array_ordering): New member function.
4434 * go-lang.c (go_language_data): Remove la_array_ordering
4435 initializer.
4436 * language.c (unknown_language_data): Likewise.
4437 (auto_language_data): Likewise.
4438 * language.h (language_data): Delete la_array_ordering field.
4439 (language_defn::array_ordering): New member function.
4440 * m2-lang.c (m2_language_data): Remove la_array_ordering
4441 initializer.
4442 * objc-lang.c (objc_language_data): Likewise.
4443 * opencl-lang.c (opencl_language_data): Likewise.
4444 * p-lang.c (pascal_language_data): Likewise.
4445 * rust-lang.c (rust_language_data): Likewise.
4446
0d201fa4
AB
44472020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4448
4449 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
4450 initializer.
4451 * c-lang.c (c_language_data): Likewise.
4452 (cplus_language_data): Likewise.
4453 (asm_language_data): Likewise.
4454 (minimal_language_data): Likewise.
4455 * d-lang.c (d_language_data): Likewise.
4456 * f-lang.c (f_language_data): Likewise.
4457 (f_language::case_sensitivity): New member function.
4458 * go-lang.c (go_language_data): Remove la_case_sensitivity
4459 initializer.
4460 * language.c (enum case_mode): Moved here from language.h.
4461 (case_mode): Make static.
4462 (show_case_command): Update for case_sensitivity being a method.
4463 (set_case_command): Likewise.
4464 (set_range_case): Likewise.
4465 (unknown_language_data): Remove la_case_sensitivity initializer.
4466 (auto_language_data): Likewise.
4467 * language.h (case_mode): Delete, move enum declaration to
4468 language.c.
4469 (language_data): Delete la_case_sensitivity field.
4470 (language_defn::case_sensitivity): New member function.
4471 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
4472 initializer.
4473 * objc-lang.c (objc_language_data): Likewise.
4474 * opencl-lang.c (opencl_language_data): Likewise.
4475 * p-lang.c (pascal_language_data): Likewise.
4476 * rust-lang.c (rust_language_data): Likewise.
4477
efdf6a73
AB
44782020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4479
4480 * ada-lang.c (ada_language_data): Remove la_range_check
4481 initializer.
4482 * c-lang.c (c_language_data): Likewise.
4483 (cplus_language_data): Likewise.
4484 (asm_language_data): Likewise.
4485 (minimal_language_data): Likewise.
4486 * d-lang.c (d_language_data): Likewise.
4487 * f-lang.c (f_language_data): Likewise.
4488 (f_language::range_checking_on_by_default): New member function.
4489 * go-lang.c (go_language_data): Remove la_range_check initializer.
4490 * language.c (enum range_mode): Moved here from language.h.
4491 (range_mode): Made static.
4492 (show_range_command): Update to use
4493 range_checking_on_by_default.
4494 (set_range_command): Likewise.
4495 (set_range_case): Likewise.
4496 (unknown_language_data): Remove la_range_check initializer.
4497 (auto_language_data): Likewise.
4498 * language.h (range_mode): Delete. Enum definition moved to
4499 language.c.
4500 (language_data): Remove la_range_check field.
4501 (language_defn::range_checking_on_by_default): New member
4502 function.
4503 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
4504 (m2_language::range_checking_on_by_default): New member function.
4505 * objc-lang.c (objc_language_data): Remove la_range_check
4506 initializer.
4507 * opencl-lang.c (opencl_language_data): Likewise.
4508 * p-lang.c (pascal_language_data): Likewise.
4509 (pascal_language::range_checking_on_by_default): New member
4510 function.
4511 * rust-lang.c (rust_language_data): Remove la_range_check
4512 initializer.
4513 (rust_language::range_checking_on_by_default): New member
4514 function.
4515
bf92aec5
AB
45162020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4517
4518 * dwarf2/read.c (dwarf2_physname): Remove special case for
4519 language_go.
4520 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
4521 member function.
4522
d3355e4d
AB
45232020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4524
4525 * ada-lang.c (ada_language_data): Remove
4526 la_store_sym_names_in_linkage_form_p initializer.
4527 (ada_language::store_sym_names_in_linkage_form_p): New member
4528 function.
4529 * c-lang.c (c_language_data): Remove
4530 la_store_sym_names_in_linkage_form_p initializer.
4531 (c_language::store_sym_names_in_linkage_form_p): New member
4532 function.
4533 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
4534 initializer.
4535 (asm_language_data): Likewise.
4536 (asm_language::store_sym_names_in_linkage_form_p): New member
4537 function.
4538 (minimal_language_data): Remove
4539 la_store_sym_names_in_linkage_form_p initializer.
4540 (minimal_language::store_sym_names_in_linkage_form_p): New member
4541 function.
4542 * d-lang.c (d_language_data): Remove
4543 la_store_sym_names_in_linkage_form_p initializer.
4544 * dwarf2/read.c (dwarf2_physname): Update call to
4545 store_sym_names_in_linkage_form_p.
4546 * f-lang.c (f_language_data): Remove
4547 la_store_sym_names_in_linkage_form_p initializer.
4548 * go-lang.c (go_language_data): Remove
4549 la_store_sym_names_in_linkage_form_p initializer.
4550 * language.c (unknown_language_data): Remove
4551 la_store_sym_names_in_linkage_form_p initializer.
4552 (unknown_language::store_sym_names_in_linkage_form_p): New member
4553 function.
4554 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
4555 initializer.
4556 (auto_language::store_sym_names_in_linkage_form_p): New member
4557 function.
4558 * language.h (language_data): Remove
4559 la_store_sym_names_in_linkage_form_p member variable.
4560 (language_defn::store_sym_names_in_linkage_form_p): New member
4561 function.
4562 * m2-lang.c (m2_language_data): Remove
4563 la_store_sym_names_in_linkage_form_p initializer.
4564 * objc-lang.c (objc_language_data): Likewise.
4565 * opencl-lang.c (opencl_language_data): Likewise.
4566 * p-lang.c (pascal_language_data): Likewise.
4567 * rust-lang.c (rust_language_data): Likewise.
4568
22c12a6c
AB
45692020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4570
4571 * ada-lang.c (ada_language_data): Remove string_lower_bound
4572 initializer.
4573 * c-lang.c (c_language_data): Likewise.
4574 (cplus_language_data): Likewise.
4575 (asm_language_data): Likewise.
4576 (minimal_language_data): Likewise.
4577 * d-lang.c (d_language_data): Likewise.
4578 * f-lang.c (f_language_data): Likewise.
4579 * go-lang.c (go_language_data): Likewise.
4580 * language.c (unknown_language_data): Likewise.
4581 (auto_language_data): Likewise.
4582 * language.h (language_data): Remove string_lower_bound field.
4583 (language_defn::string_lower_bound): New member function.
4584 * m2-lang.c (m2_language_data): Remove string_lower_bound
4585 initializer.
4586 (m2_language::string_lower_bound): New member function.
4587 * objc-lang.c (objc_language_data): Remove string_lower_bound
4588 initializer.
4589 * opencl-lang.c (opencl_language_data): Likewise.
4590 * p-lang.c (pascal_language_data): Likewise.
4591 * rust-lang.c (rust_language_data): Likewise.
4592 * valops.c (value_cstring): Update call to string_lower_bound.
4593 (value_string): Likewise.
4594 * value.c (allocate_repeated_value): Likewise.
4595
1c236ddd
AB
45962020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4597
4598 * valops.c (value_repeat): Fix incorrect argument name in comment.
4599
67bd3fd5
AB
46002020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4601
4602 * ada-lang.c (ada_language_data): Remove c_style_arrays
4603 initializer.
4604 (ada_language::c_style_arrays_p): New member fuction.
4605 * c-lang.c (c_language_data): Remove c_style_arrays
4606 initializer.
4607 (cplus_language_data): Likewise.
4608 (asm_language_data): Likewise.
4609 (minimal_language_data): Likewise.
4610 * d-lang.c (d_language_data): Likewise.
4611 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
4612 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
4613 (f_language::c_style_arrays_p): New member function.
4614 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
4615 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
4616 * language.c (unknown_language_data): Remove c_style_arrays
4617 initializer.
4618 (auto_language_data): Likewise.
4619 * language.h (language_data): Remove c_style_arrays field.
4620 (language_defn::c_style_arrays_p): New member function.
4621 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
4622 (m2_language::c_style_arrays_p): New member function.
4623 * objc-lang.c (objc_language_data): Remove c_style_arrays
4624 initializer.
4625 * opencl-lang.c (opencl_language_data): Likewise.
4626 * p-lang.c (pascal_language_data): Likewise.
4627 * rust-lang.c (rust_language_data): Likewise.
4628 * valarith.c (value_subscript): Update call to c_style_arrays_p,
4629 and update local variable to a bool.
4630 * valops.c (value_cast): Update call to c_style_arrays_p.
4631 (value_array): Likewise.
4632 * value.c (coerce_array): Likewise.
4633
85967615
AB
46342020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4635
4636 * ada-lang.c (ada_language_data): Remove la_language initializer.
4637 * c-lang.c (c_language_data): Likewise.
4638 (cplus_language_data): Likewise.
4639 (asm_language_data): Likewise.
4640 (minimal_language_data): Likewise.
4641 * d-lang.c (d_language_data): Likewise.
4642 * f-lang.c (f_language_data): Likewise.
4643 * go-lang.c (go_language_data): Likewise.
4644 * language.c (unknown_language_data): Likewise.
4645 (auto_language_data): Likewise.
4646 * language.h (language_data): Remove la_language field.
4647 (language_defn::language_defn): Initialise la_language field.
4648 (language_defn::la_language): New member variable.
4649 * m2-lang.c (m2_language_data): Remove la_language field.
4650 * objc-lang.c (objc_language_data): Likewise.
4651 * opencl-lang.c (opencl_language_data): Likewise.
4652 * p-lang.c (pascal_language_data): Likewise.
4653 * rust-lang.c (rust_language_data): Likewise.
4654
e171d6f1
AB
46552020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4656
4657 * ada-lang.c (ada_extensions): Delete, moved into
4658 ada_language::filename_extensions.
4659 (ada_language_data): Remove la_filename_extensions initializer.
4660 (ada_language::filename_extensions): New member function.
4661 * c-lang.c (c_extensions): Delete, moved into
4662 c_language::filename_extensions.
4663 (c_language_data): Remove la_filename_extensions initializer.
4664 (c_language::filename_extensions): New member function.
4665 (cplus_extensions): Delete, moved into
4666 cplus_language::filename_extensions.
4667 (cplus_language_data): Remove la_filename_extensions initializer.
4668 (cplus_language::filename_extensions): New member function.
4669 (asm_extensions): Delete, moved into
4670 asm_language::filename_extensions.
4671 (asm_language_data): Remove la_filename_extensions initializer.
4672 (asm_language::filename_extensions): New member function.
4673 (minimal_language_data): Remove la_filename_extensions
4674 initializer.
4675 * d-lang.c (d_extensions): Delete, moved into
4676 d_language::filename_extensions.
4677 (d_language_data): Remove la_filename_extensions initializer.
4678 (d_language::filename_extensions): New member function.
4679 * f-lang.c (f_extensions): Delete, moved into
4680 f_language::filename_extensions.
4681 (f_language_data): Remove la_filename_extensions initializer.
4682 (f_language::filename_extensions): New member function.
4683 * go-lang.c (go_language_data): Remove la_filename_extensions
4684 initializer.
4685 * language.c (add_set_language_command): Update now that
4686 filename_extensions returns a vector.
4687 (unknown_language_data): Remove la_filename_extensions
4688 initializer.
4689 (auto_language_data): Likewise.
4690 * language.h (language_data): Remove la_filename_extensions field.
4691 (language_defn::filename_extensions): New member function.
4692 * m2-lang.c (m2_language_data): Remove la_filename_extensions
4693 initializer.
4694 * objc-lang.c (objc_extensions): Delete, moved into
4695 objc_language::filename_extensions.
4696 (objc_language_data): Remove la_filename_extensions initializer.
4697 (objc_language::filename_extensions): New member function.
4698 * opencl-lang.c (opencl_language_data): Remove
4699 la_filename_extensions initializer.
4700 * p-lang.c (pascal_extensions): Delete, moved into
4701 pascal_language::filename_extensions.
4702 (pascal_language_data): Remove la_filename_extensions initializer.
4703 (pascal_language::filename_extensions): New member function.
4704 * rust-lang.c (rust_extensions): Delete, moved into
4705 rust_language::filename_extensions.
4706 (rust_language_data): Remove la_filename_extensions initializer.
4707 (rust_language::filename_extensions): New member function.
4708 * symfile.c (add_filename_language): Add new assert.
4709
6f7664a9
AB
47102020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4711
4712 * ada-lang.c (ada_language_data): Remove la_name and
4713 la_natural_name initializers.
4714 (ada_language::name): New member function.
4715 (ada_language::natural_name): New member function.
4716 * c-lang.c (c_language_data): Remove la_name and
4717 la_natural_name initializers.
4718 (c_language::name): New member function.
4719 (c_language::natural_name): New member function.
4720 (cplus_language_data): Remove la_name and
4721 la_natural_name initializers.
4722 (cplus_language::name): New member function.
4723 (cplus_language::natural_name): New member function.
4724 (asm_language_data): Remove la_name and
4725 la_natural_name initializers.
4726 (asm_language::name): New member function.
4727 (asm_language::natural_name): New member function.
4728 (minimal_language_data): Remove la_name and
4729 la_natural_name initializers.
4730 (minimal_language::name): New member function.
4731 (minimal_language::natural_name): New member function.
4732 * compile/compile.c (compile_to_object): Update call to
4733 lanugage_defn::name.
4734 * d-lang.c (d_language_data): Remove la_name and
4735 la_natural_name initializers.
4736 (d_language::name): New member function.
4737 (d_language::natural_name): New member function.
4738 * expprint.c (print_subexp_standard): Update call to
4739 language_defn::name.
4740 (dump_raw_expression): Likewise
4741 (dump_prefix_expression): Likewise.
4742 * f-lang.c (f_language_data): Remove la_name and
4743 la_natural_name initializers.
4744 (f_language::name): New member function.
4745 (f_language::natural_name): New member function.
4746 * go-lang.c (go_language_data): Remove la_name and
4747 la_natural_name initializers.
4748 (go_language::name): New member function.
4749 (go_language::natural_name): New member function.
4750 * language.c (show_language_command): Update call to
4751 language_defn::name.
4752 (set_language_command): Likewise.
4753 (language_enum): Likewise.
4754 (language_str): Likewise.
4755 (add_set_language_command): Likewise, use
4756 language_defn::natural_name in the doc string.
4757 (unknown_language_data): Remove la_name and
4758 la_natural_name initializers.
4759 (unknown_language::name): New member function.
4760 (unknown_language::natural_name): New member function.
4761 (auto_language_data): Remove la_name and
4762 la_natural_name initializers.
4763 (auto_language::name): New member function.
4764 (auto_language::natural_name): New member function.
4765 (language_lookup_primitive_type_as_symbol): Update call to
4766 language_defn::name.
4767 * language.h (language_data): Remove la_name and la_natural_name
4768 member variables.
4769 (language_defn::name): New member function.
4770 (language_defn::natural_name): New member function.
4771 * m2-lang.c (m2_language_data): Remove la_name and
4772 la_natural_name initializers.
4773 (m2_language::name): New member function.
4774 (m2_language::natural_name): New member function.
4775 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
4776 language_defn::natural_name.
4777 * objc-lang.c (objc_language_data): Remove la_name and
4778 la_natural_name initializers.
4779 (objc_language::name): New member function.
4780 (objc_language::natural_name): New member function.
4781 * opencl-lang.c (opencl_language_data): Remove la_name and
4782 la_natural_name initializers.
4783 (opencl_language::name): New member function.
4784 (opencl_language::natural_name): New member function.
4785 * p-lang.c (pascal_language_data): Remove la_name and
4786 la_natural_name initializers.
4787 (pascal_language::name): New member function.
4788 (pascal_language::natural_name): New member function.
4789 * rust-lang.c (rust_language_data): Remove la_name and
4790 la_natural_name initializers.
4791 (rust_language::name): New member function.
4792 (rust_language::natural_name): New member function.
4793 * symtab.c (lookup_language_this): Update call to
4794 language_defn::name.
4795
5bae7c4e
AB
47962020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4797
4798 * ada-lang.c (ada_language_data): Remove la_name_of_this
4799 initializer.
4800 * ax-gdb.c (gen_expr): Update call to name_of_this.
4801 * c-exp.y (classify_name): Likewise.
4802 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
4803 (cplus_language_data): Likewise.
4804 (cplus_language::name_of_this): New member function.
4805 (asm_language_data): Remove la_name_of_this initializer.
4806 (minimal_language_data): Likewise.
4807 * d-lang.c (d_language_data): Likewise.
4808 (d_language::name_of_this): New member function.
4809 * expprint.c (print_subexp_standard): Update call to name_of_this.
4810 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
4811 * go-lang.c (go_language_data): Likewise.
4812 * language.c (unknown_language_data): Likewise.
4813 (unknown_language::name_of_this): New member function.
4814 (auto_language_data): Remove la_name_of_this initializer.
4815 (auto_language::name_of_this): New member function.
4816 * language.h (language_data): Delete la_name_of_this member
4817 variable.
4818 (language_defn::name_of_this): New member function.
4819 * m2-lang.c (m2_language_data): Remove la_name_of_this
4820 initializer.
4821 * objc-lang.c (objc_language_data): Likewise.
4822 (objc_language::name_of_this): New member function.
4823 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
4824 initializer.
4825 * p-lang.c (pascal_language_data): Likewise.
4826 (pascal_language::name_of_this): New member function.
4827 * rust-lang.c (rust_language_data): Remove la_name_of_this
4828 initializer.
4829 * symtab.c (lookup_language_this): Update call to name_of_this.
4830 (lookup_symbol_aux): Likewise.
4831 * valops.c (value_of_this): Likewise.
4832
22e3f3ed
AB
48332020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4834
4835 * ada-lang.c (ada_language_data): Remove
4836 la_struct_too_deep_ellipsis initializer.
4837 (ada_language::struct_too_deep_ellipsis): New member function.
4838 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
4839 initializer.
4840 (cplus_language_data): Likewise.
4841 (asm_language_data): Likewise.
4842 (minimal_language_data): Likewise.
4843 * cp-valprint.c (cp_print_value): Update call to
4844 struct_too_deep_ellipsis.
4845 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
4846 initializer.
4847 * f-lang.c (f_language_data): Likewise.
4848 (f_language::struct_too_deep_ellipsis): New member function.
4849 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
4850 initializer.
4851 * language.c (unknown_language_data): Likewise.
4852 (auto_language_data): Likewise.
4853 * language.h (language_data): Delete la_struct_too_deep_ellipsis
4854 member variable.
4855 (language_defn::struct_too_deep_ellipsis): New member function.
4856 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
4857 initializer.Q
4858 * objc-lang.c (objc_language_data): Likewise.
4859 * opencl-lang.c (opencl_language_data): Likewise.
4860 * p-lang.c (pascal_language_data): Likewise.
4861 * rust-lang.c (rust_language_data): Likewise.
4862 * valprint.c (val_print_check_max_depth): Update call to
4863 struct_too_deep_ellipsis.
4864
ed29e1c7
FW
48652020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
4866
4867 * MAINTAINERS (Write After Approval): Add myself.
4868
12d8f940
TT
48692020-09-15 Tom Tromey <tom@tromey.com>
4870
4871 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
4872 Remove.
4873
6b5a7bc7
TT
48742020-09-15 Tom Tromey <tom@tromey.com>
4875
4876 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
4877 and TYPE_CODE_METHODPTR cases.
4878 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
4879 (c_value_print_inner): Update.
4880 * valprint.c (generic_value_print_memberptr): New function, from
4881 c_value_print_memberptr.
4882 (generic_value_print): Use it. Call cplus_print_method_ptr.
4883
47f0e2ff
TT
48842020-09-15 Tom Tromey <tromey@adacore.com>
4885
4886 * python/python-internal.h (PyInt_FromLong): Remove define.
4887 * python/py-value.c (convert_value_from_python): Use
4888 gdb_py_object_from_longest.
4889 * python/py-type.c (typy_get_code): Use
4890 gdb_py_object_from_longest.
4891 * python/py-symtab.c (salpy_get_line): Use
4892 gdb_py_object_from_longest.
4893 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
4894 gdb_py_object_from_longest.
4895 * python/py-record.c (recpy_gap_reason_code): Use
4896 gdb_py_object_from_longest.
4897 * python/py-record-btrace.c (recpy_bt_insn_size)
4898 (recpy_bt_func_level, btpy_list_count): Use
4899 gdb_py_object_from_longest.
4900 * python/py-infthread.c (gdbpy_create_ptid_object): Use
4901 gdb_py_object_from_longest. Fix error handling.
4902 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
4903 gdb_py_object_from_longest.
4904 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
4905 gdb_py_object_from_longest.
4906 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
4907 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
4908 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
4909
512116ce
TT
49102020-09-15 Tom Tromey <tromey@adacore.com>
4911
4912 * python/python.c (gdbpy_parameter_value): Use
4913 gdb_py_object_from_ulongest.
4914
4ab1029c
TT
49152020-09-15 Tom Tromey <tromey@adacore.com>
4916
4917 * python/py-infevents.c (create_register_changed_event_object):
4918 Use gdb_py_object_from_longest.
4919 * python/py-exitedevent.c (create_exited_event_object): Use
4920 gdb_py_object_from_longest.
4921
062534d4
TT
49222020-09-15 Tom Tromey <tromey@adacore.com>
4923
4924 * python/python.c (gdbpy_parameter_value): Use
4925 gdb_py_object_from_longest.
4926 * python/py-type.c (convert_field, typy_range): Use
4927 gdb_py_object_from_longest.
4928 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
4929 gdb_py_object_from_longest.
4930 * python/py-lazy-string.c (stpy_get_length): Use
4931 gdb_py_object_from_longest.
4932 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
4933 gdb_py_object_from_longest.
4934 * python/py-infevents.c (create_memory_changed_event_object): Use
4935 gdb_py_object_from_longest.
4936 * python/py-inferior.c (infpy_get_num): Use
4937 gdb_py_object_from_longest.
4938 (infpy_get_pid): Likewise.
4939
d1cab987
TT
49402020-09-15 Tom Tromey <tromey@adacore.com>
4941
4942 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
4943 defines.
4944 * python/py-value.c (valpy_long): Use
4945 gdb_py_object_from_ulongest.
4946 * python/py-symtab.c (salpy_get_pc): Use
4947 gdb_py_object_from_ulongest.
4948 (salpy_get_last): Likewise.
4949 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
4950 gdb_py_object_from_ulongest.
4951 * python/py-lazy-string.c (stpy_get_address): Use
4952 gdb_py_object_from_ulongest.
4953 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
4954 * python/py-arch.c (archpy_disassemble): Use
4955 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
4956 error handling.
4957
4bde49dc
TT
49582020-09-15 Tom Tromey <tromey@adacore.com>
4959
4960 * python/python-internal.h (gdb_py_long_from_longest): Remove
4961 defines.
4962 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
4963 * python/py-type.c (convert_field, typy_get_sizeof): Use
4964 gdb_py_object_from_longest.
4965 * python/py-record-btrace.c (btpy_list_index): Use
4966 gdb_py_object_from_longest.
4967
37431074
TT
49682020-09-15 Tom Tromey <tromey@adacore.com>
4969
4970 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
4971 * python/py-record.c (recpy_element_number): Use
4972 gdb_py_object_from_longest.
4973 (recpy_gap_number): Likewise.
4974
cbe25684
TT
49752020-09-15 Tom Tromey <tromey@adacore.com>
4976
4977 * top.c (ui::ui): Update.
4978 (highest_ui_num): Remove.
4979 * top.h (struct ui) <num>: Remove.
4980
db92ac45
TT
49812020-09-15 Tom Tromey <tromey@adacore.com>
4982
4983 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
4984 * ui-style.c (ansi_regex_text): Now array.
4985 * rust-exp.y (number_regex_text): Now array.
4986 * linespec.c (linespec_quote_characters): Now array.
4987 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
4988 Now arrays.
4989
d2b31b67
SM
49902020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4991
4992 * debuginfod-support.c (debuginfod_client_deleter): New.
4993 (debuginfod_client_up): New.
4994 (debuginfod_init): Return debuginfod_client_up.
4995 (debuginfod_source_query): Adjust.
4996 (debuginfod_debuginfo_query): Adjust.
4997
3246bd8e
SM
49982020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4999
5000 * debuginfod-support.c (debuginfod_source_query): Use
5001 make_unique_xstrdup.
5002
10242f36
SM
50032020-09-14 Simon Marchi <simon.marchi@efficios.com>
5004
5005 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
5006 with `type::instance_flags`.
5007
e1044e6a
MM
50082020-09-14 Michael Mullin <masmullin@gmail.com>
5009
5010 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
5011 Remove baton parameter.
5012
04902b09
PA
50132020-09-14 Pedro Alves <pedro@palves.net>
5014
5015 * Makefile.in (SELFTESTS_SRCS): Add
5016 unittests/enum-flags-selftests.c.
5017 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
5018 btrace_function_flags instead of enum btrace_function_flag.
5019 * compile/compile-c-types.c (convert_qualified): Use
5020 enum_flags::raw.
5021 * compile/compile-cplus-symbols.c (convert_one_symbol)
5022 (convert_symbol_bmsym):
5023 * compile/compile-cplus-types.c (compile_cplus_convert_method)
5024 (compile_cplus_convert_struct_or_union_methods)
5025 (compile_cplus_instance::convert_qualified_base):
5026 * go-exp.y (parse_string_or_char): Add cast to int.
5027 * unittests/enum-flags-selftests.c: New file.
5028 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
5029 type to btrace_thread_flags from btrace_thread_flag.
5030 (record_btrace_cancel_resume, record_btrace_step_thread): Change
5031 local's type to btrace_thread_flags from btrace_thread_flag. Add
5032 cast in DEBUG call.
5033
69896a2c
PA
50342020-09-14 Pedro Alves <pedro@palves.net>
5035
5036 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
5037 * gdbtypes.c (address_space_name_to_int): Rename to ...
5038 (address_space_name_to_type_instance_flags): ... this.
5039 (address_space_int_to_name): Rename to ...
5040 (address_space_type_instance_flags_to_name): ... this.
5041 * gdbtypes.h (address_space_name_to_int): Rename to ...
5042 (address_space_name_to_type_instance_flags): ... this.
5043 (address_space_int_to_name): Rename to ...
5044 (address_space_type_instance_flags_to_name): ... this.
5045 * type-stack.c (type_stack::insert): Adjust to rename.
5046 * type-stack.h (type_stack::insert): Likewise.
5047
314ad88d
PA
50482020-09-14 Pedro Alves <pedro@palves.net>
5049 Andrew Burgess <andrew.burgess@embecosm.com>
5050
5051 * avr-tdep.c (avr_address_class_type_flags): Return
5052 type_instance_flags.
5053 (avr_address_class_type_flags_to_name): Take a
5054 type_instance_flags.
5055 (avr_address_class_name_to_type_flags): Return bool and take a
5056 type_instance_flags.
5057 * d-lang.c (build_d_types): Use type::set_instance_flags.
5058 * ft32-tdep.c (ft32_address_class_type_flags): Return
5059 type_instance_flags.
5060 (ft32_address_class_type_flags_to_name): Take a
5061 type_instance_flags.
5062 (ft32_address_class_name_to_type_flags): Return bool and take a
5063 type_instance_flags.
5064 (ft32_gdbarch_init): Use type::set_instance_flags.
5065 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
5066 * gdbarch.h, gdbarch.c: Regenerate.
5067 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
5068 (address_class_name_to_type_flags): Use type_instance_flags and
5069 bool.
5070 * gdbtypes.c (address_space_name_to_int)
5071 (address_space_int_to_name, make_qualified_type): Use
5072 type_instance_flags.
5073 (make_qualified_type): Use type_instance_flags and
5074 type::set_instance_flags.
5075 (make_type_with_address_space, make_cv_type, make_vector_type)
5076 (check_typedef): Use type_instance_flags.
5077 (recursive_dump_type): Cast type_instance_flags to unsigned for
5078 printing.
5079 (copy_type_recursive): Use type::set_instance_flags.
5080 (gdbtypes_post_init): Use type::set_instance_flags.
5081 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
5082 <m_instance_flags>: ... this.
5083 <instance_flags, set_instance_flags>: New methods.
5084 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
5085 (SET_TYPE_INSTANCE_FLAGS): New.
5086 (address_space_name_to_int, address_space_int_to_name)
5087 (make_type_with_address_space): Pass flags using
5088 type_instance_flags instead of int.
5089 * stabsread.c (cleanup_undefined_types_noname): Use
5090 type::set_instance_flags.
5091 * s390-tdep.c (s390_address_class_type_flags): Return
5092 type_instance_flags.
5093 (s390_address_class_type_flags_to_name): Take a
5094 type_instance_flags.
5095 (s390_address_class_name_to_type_flags): Return bool and take a
5096 type_instance_flags.
5097 * type-stack.c (type_stack::follow_types): Use
5098 type_instance_flags.
5099 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
5100
27087b7f
TT
51012020-09-14 Tom Tromey <tromey@adacore.com>
5102
5103 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
5104 * x86-tdep.c (x86_is_thunk_register_name)
5105 (x86_in_indirect_branch_thunk): Update.
5106 * sparc64-tdep.c (sparc64_fpu_register_names)
5107 (sparc64_cp0_register_names, sparc64_register_names)
5108 (sparc64_pseudo_register_names): Now const.
5109 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
5110 cp0_registers_num>: Now const.
5111 * sparc-tdep.c (sparc_core_register_names)
5112 (sparc32_fpu_register_names, sparc32_cp0_register_names)
5113 (sparc32_pseudo_register_names): Now const.
5114 (validate_tdesc_registers): Update.
5115 * rust-lang.c (rust_extensions): Now const.
5116 * p-lang.c (p_extensions): Now const.
5117 * objc-lang.c (objc_extensions): Now const.
5118 * nto-tdep.c (nto_thread_state_str): Now const.
5119 * moxie-tdep.c (moxie_register_names): Now const.
5120 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
5121 Now const.
5122 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
5123 (mips_linux_reg_names): Now const.
5124 (mips_gdbarch_init): Update.
5125 * microblaze-tdep.c (microblaze_register_names): Now const.
5126 * m68k-tdep.c (m68k_register_names): Now const.
5127 * m32r-tdep.c (m32r_register_names): Now const.
5128 * ia64-tdep.c (ia64_register_names): Now const.
5129 * i386-tdep.h (struct gdbarch_tdep) <register_names,
5130 ymmh_register_names, ymm16h_regnum, mpx_register_names,
5131 k_register_names, zmmh_register_names, xmm_avx512_register_names,
5132 ymm_avx512_register_names, pkeys_register_names>: Now const.
5133 * i386-tdep.c (i386_register_names, i386_zmm_names)
5134 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
5135 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
5136 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
5137 * f-lang.c (f_extensions): Now const.
5138 * d-lang.c (d_extensions): Now const.
5139 * csky-tdep.c (csky_register_names): Now const.
5140 * charset.c (default_charset_names, charset_enum): Now const.
5141 (_initialize_charset): Update.
5142 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
5143 const.
5144 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
5145 (bsd_uthread_solib_loaded): Update.
5146 (bsd_uthread_state): Now const.
5147 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
5148 (amd64_ymm_avx512_names, amd64_ymmh_names)
5149 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
5150 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
5151 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
5152 (amd64_dword_names): Now const.
5153 * agent.c (can_use_agent_enum): Now const.
5154 * ada-tasks.c (task_states, long_task_states): Now const.
5155 * ada-lang.c (known_runtime_file_name_patterns)
5156 (known_auxiliary_function_name_patterns, attribute_names)
5157 (standard_exc, ada_extensions): Now const.
5158
89806626
SM
51592020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5160
5161 * bcache.h (struct bcache) <bcache>: Remove constructor.
5162 <m_hash_function, m_compare_function>: Remove.
5163 <~bcache>: Make virtual.
5164 <compare>: Remove static method, introduce virtual method.
5165 <default_hash>: Remove.
5166 <hash>: New virtual method.
5167 * bcache.c (bcache::expand_hash_table): Update.
5168 (bcache::insert): Update.
5169 (bcache::hash): New.
5170 (bcache::compare): Update comment and parameter names.
5171 * gdbtypes.c (types_deeply_equal): Update.
5172 * psymtab.h (struct psymbol_bcache): New struct.
5173 (class psymtab_storage) <psymtab_storage>: Make default.
5174 <psymbol_cache>: Change type to psymbol_bcache.
5175 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
5176 (psymbol_hash): Change to...
5177 (psymbol_bcache::hash): ... this.
5178 (psymbol_compare): Change to...
5179 (psymbol_bcache::compare): ... this.
5180
677c92fe
SM
51812020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5182
5183 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
5184 checking for initial lwp.
5185
3eba3a01
TT
51862020-09-14 Tom Tromey <tromey@adacore.com>
5187
5188 * m68k-tdep.c (m68k_extract_return_value): Use
5189 pointer_result_regnum.
5190 (m68k_store_return_value): Likewise.
5191 (m68k_reg_struct_return_p): Handle vectors and arrays.
5192 (m68k_return_value): Handle arrays.
5193 (m68k_svr4_return_value): Fix single-element aggregate handling.
5194 Handle long double. Adjust for embedded ABI.
5195 (m68k_svr4_init_abi): Set pointer_result_regnum.
5196 (m68k_embedded_init_abi): New function.
5197 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
5198 (m68k_osabi_sniffer): New function.
5199 (_initialize_m68k_tdep): Register osabi sniffer.
5200 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
5201 member.
5202
33f4dd48
SM
52032020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5204
5205 * xml-support.c (xml_fetch_content_from_file): Replace xfree
5206 with gdb::unique_xmalloc_ptr<char>.
5207
8400a90d
SM
52082020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5209
5210 * xml-support.h (xml_fetch_another): Change type to be a
5211 function_view.
5212 (xml_process_xincludes): Remove baton parameter.
5213 (xml_fetch_content_from_file): Change baton parameter to
5214 dirname.
5215 * xml-support.c (struct xinclude_parsing_data)
5216 <xinclude_parsing_data>: Remove baton parameter.
5217 <fetcher_baton>: Remove.
5218 (xinclude_start_include): Adjust.
5219 (xml_process_xincludes): Adjust.
5220 (xml_fetch_content_from_file): Replace baton parameter with
5221 dirname.
5222 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
5223 (xml_init_syscalls_info): Use a lambda.
5224 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
5225 (file_read_description_xml): Use a lambda.
5226 (fetch_available_features_from_target): Change baton parameter
5227 to target_ops.
5228 (target_read_description_xml): Use a lambda.
5229 (target_fetch_description_xml): Use a lambda.
5230 (string_read_description_xml): Update.
5231
04f5bab2
SM
52322020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5233
5234 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
5235 uses with type::endianity_is_not_default.
5236
db558e34
SM
52372020-09-14 Simon Marchi <simon.marchi@efficios.com>
5238
5239 * gdbtypes.h (struct type) <endianity_is_not_default,
5240 set_endianity_is_not_default>: New methods.
5241 (TYPE_ENDIANITY_NOT_DEFAULT): Use
5242 type::endianity_is_not_default, change all write call sites to
5243 use type::set_endianity_is_not_default.
5244
22c4c60c
SM
52452020-09-14 Simon Marchi <simon.marchi@efficios.com>
5246
5247 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
5248 uses with type::is_fixed_instance.
5249
9cdd0d12
SM
52502020-09-14 Simon Marchi <simon.marchi@efficios.com>
5251
5252 * gdbtypes.h (struct type) <is_fixed_instance,
5253 set_is_fixed_instance>: New methods.
5254 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
5255 write call sites to use type::set_is_fixed_instance.
5256
0becda7a
SM
52572020-09-14 Simon Marchi <simon.marchi@efficios.com>
5258
5259 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
5260 uses with type::is_gnu_ifunc.
5261
03cc7249
SM
52622020-09-14 Simon Marchi <simon.marchi@efficios.com>
5263
5264 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
5265 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
5266 use type::set_is_gnu_ifunc.
5267
3f46044c
SM
52682020-09-14 Simon Marchi <simon.marchi@efficios.com>
5269
5270 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
5271 uses with type::stub_is_supported.
5272
9baccff6
SM
52732020-09-14 Simon Marchi <simon.marchi@efficios.com>
5274
5275 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
5276 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
5277 use type::set_stub_is_supported.
5278
bd63c870
SM
52792020-09-14 Simon Marchi <simon.marchi@efficios.com>
5280
5281 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
5282 uses with type::is_vector.
5283
2062087b
SM
52842020-09-14 Simon Marchi <simon.marchi@efficios.com>
5285
5286 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
5287 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
5288 use type::set_is_vector.
5289
a409645d
SM
52902020-09-14 Simon Marchi <simon.marchi@efficios.com>
5291
5292 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
5293 uses with type::has_varargs.
5294
1d6286ed
SM
52952020-09-14 Simon Marchi <simon.marchi@efficios.com>
5296
5297 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
5298 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
5299 use type::set_has_varargs.
5300
7f9f399b
SM
53012020-09-14 Simon Marchi <simon.marchi@efficios.com>
5302
5303 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
5304 uses with type::is_prototyped.
5305
27e69b7a
SM
53062020-09-14 Simon Marchi <simon.marchi@efficios.com>
5307
5308 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
5309 New methods.
5310 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
5311 call sites to use type::set_is_prototyped.
5312
d2183968
SM
53132020-09-14 Simon Marchi <simon.marchi@efficios.com>
5314
5315 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
5316 uses with type::target_is_stub.
5317
8f53807e
SM
53182020-09-14 Simon Marchi <simon.marchi@efficios.com>
5319
5320 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
5321 New methods.
5322 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
5323 sites to use type::set_target_is_stub.
5324
e46d3488
SM
53252020-09-14 Simon Marchi <simon.marchi@efficios.com>
5326
5327 * gdbtypes.h (TYPE_STUB): Remove, replace all
5328 uses with type::is_stub.
5329
b4b73759
SM
53302020-09-14 Simon Marchi <simon.marchi@efficios.com>
5331
5332 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
5333 (TYPE_STUB): Use type::is_stub, change all write call sites to
5334 use type::set_is_stub.
5335
20ce4123
SM
53362020-09-14 Simon Marchi <simon.marchi@efficios.com>
5337
5338 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
5339 type::has_no_signedness.
5340
15152a54
SM
53412020-09-14 Simon Marchi <simon.marchi@efficios.com>
5342
5343 * gdbtypes.h (struct type) <has_no_signedness,
5344 set_has_no_signedness>: New methods.
5345 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
5346 call sites to use type::set_has_no_signedness.
5347
c6d940a9
SM
53482020-09-14 Simon Marchi <simon.marchi@efficios.com>
5349
5350 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
5351 type::is_unsigned.
5352
653223d3
SM
53532020-09-14 Simon Marchi <simon.marchi@efficios.com>
5354
5355 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
5356 methods.
5357 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
5358 sites to use type::set_is_unsigned.
5359
55ea94da 53602020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
e851246a 5361 Adam Renquinha <arenquinha@cimeq.qc.ca>
55ea94da 5362
e851246a
SM
5363 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
5364 pointer and stack frame offset when unwinding.
55ea94da 5365
6791b117
PA
53662020-09-13 Pedro Alves <pedro@palves.net>
5367
5368 * NEWS: Document "-break-insert --qualified".
5369 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
5370
77f2120b
PA
53712020-09-13 Pedro Alves <pedro@palves.net>
5372
5373 * linespec.c (classify_mtype, compare_msyms): Delete.
5374 (search_minsyms_for_name): Remove classification logic. Instead
5375 filter out trampoline symbols if we also found an external
5376 function of the same name.
5377
ed6a896c
JB
53782020-09-13 Joel Brobecker <brobecker@adacore.com>
5379
5380 * NEWS: Create a new section for the next release branch.
5381 Rename the section of the current branch, now that it has
5382 been cut.
5383
32aea73e
JB
53842020-09-13 Joel Brobecker <brobecker@adacore.com>
5385
5386 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
5387 * version.in: Bump version to 11.0.50.DATE-git.
5388
8087c3fa
JB
53892020-09-12 Joel Brobecker <brobecker@adacore.com>
5390
5391 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
5392
2a67f09d
FW
53932020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
5394 Felix Willgerodt <Felix.Willgerodt@intel.com>
5395
5396 * gdbarch.sh: Added bfloat16 type.
5397 * gdbarch.c: Regenerated.
5398 * gdbarch.h: Regenerated.
5399 * gdbtypes.c (floatformats_bfloat16): New struct.
5400 (gdbtypes_post_init): Add builtin_bfloat16.
5401 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
5402 (floatformats_bfloat16): New struct.
5403 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
5404 (i386_ymm_type): Add field "v16_bfloat16"
5405 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
5406 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
5407 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
5408 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
5409 * features/i386/64bit-avx512.xml: Add bfloat16 type.
5410 * features/i386/64bit-avx512.c: Regenerated.
5411 * features/i386/64bit-sse.xml: Add bfloat16 type.
5412 * features/i386/64bit-sse.c: Regenerated.
5413
1347d111
FW
54142020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
5415
5416 * i386-tdep.c (i386_zmm_type): Fix field names.
5417 (i386_ymm_type): Fix field names.
5418
7a4e8e7d
TBA
54192020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5420
5421 * breakpoint.c: Fix typo in the help message of the
5422 "set breakpoint condition-evaluation" command.
5423
cf4ac4be
KR
54242020-09-10 Kamil Rytarowski <n54@gmx.com>
5425
5426 * nbsd-nat.c: Include "nat/netbsd-nat.h".
5427 * (nbsd_nat_target::pid_to_exec_file)
5428 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
5429 (nbsd_nat_target::post_startup_inferior)
5430 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
5431 (nbsd_add_threads): Switch local code to common gdb/nat functions.
5432 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
5433 * (nbsd_thread_lister): Remove.
5434
f404573e
KR
54352020-09-10 Kamil Rytarowski <n54@gmx.com>
5436
5437 * fork-inferior.c (startup_inferior): Avoid double free.
5438
1ccb2c17
KR
54392020-09-10 Kamil Rytarowski <n54@gmx.com>
5440
5441 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
5442 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
5443
feedfcc7
KR
54442020-09-10 Kamil Rytarowski <n54@gmx.com>
5445
5446 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
5447 * netbsd-nat.c: Include <sys/ptrace.h>.
5448 * (netbsd_nat::enable_proc_events): Add.
5449
c489f8c6
KR
54502020-09-10 Kamil Rytarowski <n54@gmx.com>
5451
5452 * netbsd-nat.h: Include "gdbsupport/function-view.h".
5453 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
5454 (netbsd_nat::for_each_thread): Add.
5455 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
5456 "gdbsupport/common-debug.h".
5457 * (netbsd_nat::netbsd_thread_lister)
5458 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
5459 (netbsd_nat::for_each_thread): Add.
5460
330662f6
KR
54612020-09-10 Kamil Rytarowski <n54@gmx.com>
5462
5463 * netbsd-nat.h: Include <unistd.h>.
5464 * (netbsd_nat::pid_to_exec_file): Add.
5465 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
5466 * (netbsd_nat::pid_to_exec_file) Add.
5467
70b67307
KR
54682020-09-10 Kamil Rytarowski <n54@gmx.com>
5469
5470 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
5471
99cf6da6
KR
54722020-09-10 Kamil Rytarowski <n54@gmx.com>
5473
5474 * netbsd-nat.h: New file.
5475 * netbsd-nat.c: Likewise.
5476
1b788fb6
TT
54772020-09-09 Tom Tromey <tromey@adacore.com>
5478
5479 * ada-lang.c (remove_extra_symbols): Do not increment when
5480 removing an element
5481
03b0a45f
TT
54822020-09-08 Tom Tromey <tromey@adacore.com>
5483
5484 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
5485
3cae4447
TT
54862020-09-08 Tom Tromey <tromey@adacore.com>
5487
5488 PR win32/25302:
5489 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
5490 (gdb_bfd_init_data): New function.
5491 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
5492
7f08fd51
TBA
54932020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5494
5495 * infrun.c (fetch_inferior_event): Use
5496 `switch_to_target_no_thread` to switch the target.
5497
3e6ff933
TT
54982020-09-06 Tom Tromey <tom@tromey.com>
5499
5500 * symfile.h (dwarf2_free_objfile): Don't declare.
5501
e56798df
AKS
55022020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5503
5504 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
5505 to match 16 byte real/complex type generated by Flang compiler.
5506
8f5c6526
TV
55072020-09-03 Tom de Vries <tdevries@suse.de>
5508
5509 PR breakpoint/26546
5510 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
5511 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
5512
c5065df0
SM
55132020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
5514
5515 * maint.c (index_digits): New function.
5516 (struct maint_print_section_data): Remove.
5517 (print_bfd_section_info): Remove print_data parameter, add arg
5518 and index_digits.
5519 (print_objfile_section_info): Likewise.
5520 (print_bfd_section_info_maybe_relocated): Likewise (plus
5521 objfile).
5522 (maintenance_info_sections): Adjust calls.
5523
02c6f3f1
TT
55242020-09-02 Tom Tromey <tromey@adacore.com>
5525
5526 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
5527 for null pointers.
5528 (ada_varobj_adjust_for_child_access): Special-case null pointers.
5529
ef5e5b0b
SM
55302020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
5531
5532 * bcache.h (struct bcache) <insert>: Change type of `added` to
5533 pointer to bool.
5534 * bcache.c (bcache::insert): Likewise.
5535 * gdbtypes.c (check_types_worklist): Adjust.
5536 * psymtab.c (add_psymbol_to_bcache): Adjust.
5537
973695d6
KB
55382020-08-31 Kevin Buettner <kevinb@redhat.com>
5539
5540 * corelow.c (unordered_set): Include.
5541 (class core_target): Add field 'm_core_unavailable_mappings'.
5542 (core_target::build_file_mappings): Print only one warning
5543 per inaccessible file. Add unavailable/broken mappings
5544 to m_core_unavailable_mappings.
5545 (core_target::xfer_partial): Call...
5546 (core_target::xfer_memory_via_mappings): New method.
5547
264fc0e2
SM
55482020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
5549
5550 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
5551 type to bool.
5552
2de01bdb
SM
55532020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
5554
5555 * dwarf2/read.c (struct field_info): Fix indentation.
5556
f3bd50f1
SM
55572020-08-31 Simon Marchi <simon.marchi@efficios.com>
5558
5559 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
5560 ordering in comment.
5561 * frame.c (frame_id_eq): Fix indentation.
5562
22b9b4b0
SL
55632020-08-31 Scott Linder <scott@scottlinder.com>
5564 Simon Marchi <simon.marchi@efficios.com>
5565
5566 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
5567 inline frame ids in outer frame.
5568
84154d16
SM
55692020-08-31 Simon Marchi <simon.marchi@efficios.com>
5570
5571 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
5572 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
5573 (outer_frame_id): Use FID_STACK_OUTER instead of
5574 FID_STACK_INVALID.
5575 (frame_id_p): Don't check for outer_frame_id.
5576
8efaf6b3
SM
55772020-08-31 Simon Marchi <simon.marchi@efficios.com>
5578
5579 * frame-unwind.c (frame_unwind_got_optimized): Don't set
5580 regnum/frame in value. Call allocate_value_lazy.
5581 * frame.c (frame_unwind_register_value): Use
5582 val_print_not_saved.
5583
fe1fe7ea
SM
55842020-08-31 Simon Marchi <simon.marchi@efficios.com>
5585
5586 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
5587
f7c7700d
PA
55882020-08-29 Pedro Alves <pedro@palves.net>
5589
5590 * progspace.c (print_program_space): Use all_inferiors. Switch to
5591 the inferior before calling target_pid_to_str.
5592
e0814aae
TT
55932020-08-28 Tom Tromey <tom@tromey.com>
5594
5595 * xcoffread.c (xcoff_end_psymtab): Update comment.
5596 * dbxread.c (dbx_end_psymtab): Update comment.
5597
626d2320
TV
55982020-08-28 Tom de Vries <tdevries@suse.de>
5599
5600 PR breakpoint/26544
5601 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
5602 event_location.
5603 (create_breakpoint): Same.
5604 (base_breakpoint_decode_location): Same.
5605 (bkpt_create_sals_from_location): Same.
5606 (bkpt_decode_location): Same.
5607 (bkpt_probe_create_sals_from_location): Same.
5608 (bkpt_probe_decode_location): Same.
5609 (tracepoint_create_sals_from_location): Same.
5610 (tracepoint_decode_location): Same.
5611 (tracepoint_probe_decode_location): Same.
5612 (strace_marker_create_sals_from_location): Same.
5613 (strace_marker_decode_location): Same.
5614 (create_sals_from_location_default): Same.
5615 (decode_location_default): Same.
5616 * breakpoint.h (struct breakpoint_ops): Same.
5617 (create_breakpoint): Same.
5618 * linespec.h (decode_line_full): Same.
5619 * linespec.c (decode_line_full): Same. Throw error if
5620 result.size () == 0.
5621
df631783
PA
56222020-08-27 Pedro Alves <pedro@palves.net>
5623
5624 PR gdb/26524
5625 * breakpoint.c (until_break_fsm) <location_breakpoint,
5626 caller_breakpoint>: Delete fields.
5627 <breakpoints>: New field.
5628 <until_break_fsm>: Adjust to save a breakpoint vector instead of
5629 two individual breakpoints.
5630 (until_break_fsm::should_stop): Loop over breakpoints in the
5631 breakpoint vector.
5632 (until_break_fsm::clean_up): Adjust to clear the breakpoints
5633 vector.
5634 (until_break_command): Handle location expanding into multiple
5635 sals.
5636
b2b38aa4
PA
56372020-08-27 Pedro Alves <pedro@palves.net>
5638
5639 PR gdb/26523
5640 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
5641 bp_until breakpoints user-specified locations. Update intro
5642 comment.
5643
b886559f
SM
56442020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
5645
5646 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
5647 gdb_bfd_sections): New.
5648 * maint.c (print_bfd_section_info): Change param type to
5649 maint_print_section_data.
5650 (print_objfile_section_info): Likewise.
5651 (print_bfd_section_info_maybe_relocated): Likewise.
5652 (maintenance_info_sections): Use gdb_bfd_sections.
5653
4c6e63bf
SV
56542020-08-25 Shahab Vahedi <shahab@synopsys.com>
5655
5656 * MAINTAINERS: Add ARC target and maintainer.
5657
8d7f0635
AK
56582020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
5659
5660 * configure.tgt: ARC support for GNU/Linux.
5661 * Makefile.in (ALL_TARGET_OBJS): Likewise.
5662 * arc-linux-tdep.c: New file.
5663 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
5664 * arc-tdep.c (arc_write_pc): Use it.
5665
fdd8731b
SV
56662020-08-25 Shahab Vahedi <shahab@synopsys.com>
5667
5668 * arc-tdep.c (arc_check_for_hardware_loop): New.
5669 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
5670
22459524
SV
56712020-08-25 Shahab Vahedi <shahab@synopsys.com>
5672
5673 * arc-tdep.h: Include "gdbarch.h".
5674
995d3a19
SV
56752020-08-25 Shahab Vahedi <shahab@synopsys.com>
5676
5677 * arch/arc.h
5678 (arc_gdbarch_features): New class to stir the selection of target XML.
5679 (arc_create_target_description): Use FEATURES to choose XML target.
5680 (arc_lookup_target_description): Use arc_create_target_description
5681 to create _new_ target descriptions or return the already created
5682 ones if the FEATURES is the same.
5683 * arch/arc.c: Implementation of prototypes described above.
5684 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
5685 (arc_gdbarch_features_init): Initialize the FEATURES struct.
5686 * arc-tdep.c (*_feature_name): Make feature names consistent.
5687 (arc_register_feature): A new struct to hold information about
5688 registers of a particular target/feature.
5689 (arc_check_tdesc_feature): Check if XML provides registers in
5690 compliance with ARC_REGISTER_FEATURE structs.
5691 (arc_update_acc_reg_names): Add aliases for r58 and r59.
5692 (determine_*_reg_feature_set): Which feature name to look for.
5693 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
5694 (mach_type_to_arc_isa): Convert from a set of binutils machine types
5695 to expected ISA enums to be used in arc_gdbarch_features structs.
5696 * features/Makefile (FEATURE_XMLFILES): Add new files.
5697 * gdb/features/arc/v1-aux.c: New file.
5698 * gdb/features/arc/v1-aux.xml: Likewise.
5699 * gdb/features/arc/v1-core.c: Likewise.
5700 * gdb/features/arc/v1-core.xml: Likewise.
5701 * gdb/features/arc/v2-aux.c: Likewise.
5702 * gdb/features/arc/v2-aux.xml: Likewise.
5703 * gdb/features/arc/v2-core.c: Likewise.
5704 * gdb/features/arc/v2-core.xml: Likewise.
5705 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
5706
3945d2d7
GM
57072020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
5708 Andrew Burgess <andrew.burgess@embecosm.com>
5709
5710 PR m2/26372
fc5d6901 5711 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
5712 an assert. Remove single element array indexing pattern as the
5713 MULTI_SUBSCRIPT support will handle this case too.
5714
2677f2d3
SM
57152020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
5716
5717 * value.h (valprint_check_validity): Move declaration from
5718 here...
5719 * valprint.h (valprint_check_validity): ... to here.
5720
c426fddb
SM
57212020-08-24 Simon Marchi <simon.marchi@efficios.com>
5722
5723 * debug.h: New file.
5724 * debug.c (debug_prefixed_vprintf): New function.
5725 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
5726 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
5727
1eb8556f
SM
57282020-08-24 Simon Marchi <simon.marchi@efficios.com>
5729
5730 * infrun.h (infrun_debug_printf_1): New function declaration.
5731 (infrun_debug_printf): New macro.
5732 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
5733 throughout.
5734 (infrun_debug_printf): New function.
5735 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
5736 (handle_jit_event): Likewise.
5737
b8fff44e
MW
57382020-08-21 Mark Wielaard <mark@klomp.org>
5739
5740 * ada-lex.l: Extend register warnings diagnostics comment for g++.
5741
d19c3068
SM
57422020-08-22 Simon Marchi <simon.marchi@efficios.com>
5743
5744 * frame.c (enum class frame_id_status): New.
5745 (struct frame_info) <this_id::p>: Change type to frame_id_status.
5746 (fprintf_frame): Update.
5747 (compute_frame_id): Set frame id status to "computing" on entry.
5748 Set it back to "not_computed" on failure and to "computed" on
5749 success.
5750 (get_frame_id): Assert the frame id is not being computed.
5751 (create_sentinel_frame): Use frame_id_status::COMPUTED.
5752 (create_new_frame): Likewise.
5753 (frame_cleanup_after_sniffer): Update assert.
5754
b70e516e
SM
57552020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5756
5757 * regcache.c (pid_ptid_regcache_map): New type.
5758 (target_ptid_regcache_map): Remove.
5759 (target_pid_ptid_regcache_map): New type.
5760 (regcaches): Change type to target_pid_ptid_regcache_map.
5761 (get_thread_arch_aspace_regcache): Update.
5762 (regcache_thread_ptid_changed): Update, handle pid-like ptid
5763 case.
5764 (regcaches_size): Update.
5765 (regcache_count): Update.
5766 (registers_changed_ptid_target_pid_test): New.
5767 (_initialize_regcache): Register new test.
5768
cdd9148a
SM
57692020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5770
5771 * regcache.c (regcache_count): New.
5772 (struct regcache_test_data): New.
5773 (regcache_test_data_up): New.
5774 (populate_regcaches_for_test): New.
5775 (regcaches_test): Remove.
5776 (get_thread_arch_aspace_regcache_test): New.
5777 (registers_changed_ptid_all_test): New.
5778 (registers_changed_ptid_target_test): New.
5779 (registers_changed_ptid_target_ptid_test): New.
5780 (regcache_thread_ptid_changed): Remove regcache_count lambda.
5781 (_initialize_regcache): Register new tests.
5782
dd125343
SM
57832020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5784
5785 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
5786 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
5787 gdbarch and aspace parameter. Use current inferior's aspace.
5788 Validate regcache's arch value.
5789 (regcaches_test): Update.
5790
3ee93972
SM
57912020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5792
5793 * regcache.c (regcaches_test): Call registers_changed.
5794
33bf4c5c
TBA
57952020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5796
5797 * infrun.c (process_event_stop_test): Fix typo "breapoint".
5798
c2fd7fae
AKS
57992020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5800
5801 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
5802 to find the end of prologue for flang compiled binaries.
5803 * arm-tdep.c (arm_skip_prologue): Likewise.
5804 * i386-tdep.c (i386_skip_prologue): Likewise.
5805 * producer.c (producer_is_llvm): New function.
5806 (producer_parsing_tests): Added new tests for clang/flang.
5807 * producer.h (producer_is_llvm): New declaration.
5808
9327494e
SM
58092020-08-18 Simon Marchi <simon.marchi@efficios.com>
5810
5811 * linux-nat.c (linux_nat_debug_printf): New function.
5812 (linux_nat_debug_printf_1): New macro. Use throughout the file.
5813
d138725a
AM
58142020-08-18 Aaron Merey <amerey@redhat.com>
5815
5816 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
5817 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
5818 (CLIBS): Add DEBUGINFOD_LIBS.
5819
f9b11e6b
ST
58202020-08-17 Sergei Trofimovich <siarheit@google.com>
5821
5822 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
5823 'gdbarch_num_regs'.
5824
3ae7ab99
TT
58252020-08-17 Tom Tromey <tromey@adacore.com>
5826
5827 * ada-varobj.c (ada_varobj_decode_var): Handle case where
5828 ada_get_decoded_value returns NULL.
5829
b017825f
TT
58302020-08-17 Tom Tromey <tromey@adacore.com>
5831
5832 * python/py-inferior.c (infpy_search_memory): Use
5833 gdb_py_object_from_ulongest.
5834 * python/py-infevents.c (create_inferior_call_event_object)
5835 (create_memory_changed_event_object): Use
5836 gdb_py_object_from_ulongest.
5837 * python/py-linetable.c (ltpy_entry_get_pc): Use
5838 gdb_py_object_from_ulongest.
5839
7635cf79
SM
58402020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
5841
5842 * loc.c (class symbol_needs_eval_context): Fix indentation.
5843
f54be24b
SM
58442020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
5845
5846 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
5847 bool.
5848
53d5a2a5
TV
58492020-08-17 Tom de Vries <tdevries@suse.de>
5850
5851 PR gdb/26393
5852 * gdbtypes.c (dump_dynamic_prop): New function.
5853 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
5854
547ce8f0
TV
58552020-08-15 Tom de Vries <tdevries@suse.de>
5856
5857 PR backtrace/26390
5858 * stack.c (print_frame_args): Temporarily set the selected
5859 frame to FRAME while printing the frame's arguments.
5860
6ea815e7
PFC
58612020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5862
5863 PR breakpoints/26385
5864 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
5865 Always clear watchpoint with PTRACE_SET_DEBUGREG.
5866
6e562fa3
PFC
58672020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5868
5869 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
5870 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
5871 and >= to check return value instead of == -1 and != -1.
5872
d369b608
SM
58732020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
5874
5875 * utils.h (class gdb_argv) <as_array_view>: New method.
5876 * utils.c (gdb_argv_as_array_view_test): New.
5877 (_initialize_utils): Register selftest.
5878 * maint.c (maintenance_selftest): Use the new method.
5879
b31488a3
KR
58802020-08-13 Kamil Rytarowski <n54@gmx.com>
5881
5882 * target.h (supports_dumpcore, dumpcore): New
5883 function declarations.
5884 * target.c (supports_dumpcore, dumpcore): New
5885 functions.
5886 * target-delegates.c: Rebuild.
5887 * gcore.c (gcore_command): Use target_supports_dumpcore ()
5888 and target_dumpcore ().
5889
002a3166
AM
58902020-08-13 Aaron Merey <amerey@redhat.com>
5891
5892 * debuginfod-support.c: Replace global variables with user_data.
5893
ece5bc8a
SM
58942020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
5895
5896 * maint.c (maintenance_selftest): Split args and pass array_view
5897 to run_tests.
5898
6d8a0a5e
LM
58992020-08-12 Luis Machado <luis.machado@linaro.org>
5900
5901 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
5902 type's length.
5903 Use %s and pulongest to print the length.
5904
7cf663a9
PA
59052020-08-12 Pedro Alves <palves@redhat.com>
5906
5907 * NEWS: Move "Multi-target debugging support" item to the
5908 "Changes since GDB 9" section.
5909
27c7b875
PA
59102020-08-12 Pedro Alves <palves@redhat.com>
5911
5912 PR gdb/26336
5913 * progspace.c (program_space::remove_objfile): Invalidate the
5914 frame cache.
5915
1796a2a1
TV
59162020-08-11 Tom de Vries <tdevries@suse.de>
5917
5918 * MAINTAINERS: Mark ms1 as deleted.
5919
f8e3fe0d
LM
59202020-08-10 Luis Machado <luis.machado@linaro.org>
5921
5922 PR gdb/26310
5923
5924 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
5925 act accordingly.
5926 (aarch64_analyze_prologue_test): Add more unit tests to exercise
5927 movz/str/stur/stp skipping behavior.
5928
cc308722
LM
59292020-08-10 Luis Machado <luis.machado@linaro.org>
5930
5931 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
5932 struct user_sve_header instead of struct sve_context.
5933
041d9819
SM
59342020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
5935
5936 * read.h (dwarf2_fetch_die_loc_sect_off,
5937 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
5938 `void *` parameter with function_view.
5939 * read.c (dwarf2_fetch_die_loc_sect_off,
5940 dwarf2_fetch_die_loc_cu_off): Likewise.
5941 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
5942 (per_cu_dwarf_call): Adjust.
5943 (get_frame_address_in_block_wrapper): Remove.
5944 (indirect_synthetic_pointer): Adjust.
5945 (get_ax_pc): Remove.
5946 (dwarf2_compile_expr_to_ax): Adjust.
5947
38f8aa06
TV
59482020-08-08 Tom de Vries <tdevries@suse.de>
5949
5950 PR build/26344
5951 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
5952 constructor.
5953 * regcache.c (get_thread_arch_aspace_regcache): Same.
5954
a52b3ae2
TT
59552020-08-07 Tom Tromey <tromey@adacore.com>
5956
5957 * ravenscar-thread.c
5958 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
5959 New method.
5960 (ravenscar_thread_target::wait): Check
5961 runtime_initialized.
5962 (ravenscar_thread_target::prepare_to_store)
5963 (ravenscar_thread_target::stopped_by_sw_breakpoint)
5964 (ravenscar_thread_target::stopped_by_hw_breakpoint)
5965 (ravenscar_thread_target::stopped_by_watchpoint)
5966 (ravenscar_thread_target::stopped_data_address)
5967 (ravenscar_thread_target::core_of_thread): Use
5968 scoped_restore_current_thread and
5969 set_base_thread_from_ravenscar_task.
5970
0e29517d
TT
59712020-08-07 Tom Tromey <tromey@adacore.com>
5972
5973 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
5974
592f9bd7
TT
59752020-08-07 Tom Tromey <tromey@adacore.com>
5976
5977 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
5978 update_inferior_ptid before update_thread_list.
5979 (temporarily_change_regcache_ptid): New class.
5980 (ravenscar_thread_target::fetch_registers)
5981 (ravenscar_thread_target::store_registers)
5982 (ravenscar_thread_target::prepare_to_store): Use base thread when
5983 forwarding operation.
5984
39e2018a
TT
59852020-08-07 Tom Tromey <tromey@adacore.com>
5986
5987 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
5988 "is_pid" case.
5989
2080266b
TT
59902020-08-07 Tom Tromey <tromey@adacore.com>
5991
5992 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
5993 New methods.
5994 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
5995 first.
5996 (ravenscar_thread_target::add_thread): Rename from
5997 ravenscar_add_thread.
5998 (ravenscar_thread_target::update_thread_list): Use a lambda.
5999 (ravenscar_thread_target::xfer_partial): New method.
6000
78c02f21
TT
60012020-08-07 Tom Tromey <tromey@adacore.com>
6002
6003 * ada-lang.h (ada_task_list_iterator_ftype): Now a
6004 gdb::function_view.
6005 (iterate_over_live_ada_tasks): Change type of argument.
6006 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
6007 of argument.
6008
d5d833af
TT
60092020-08-07 Tom Tromey <tromey@adacore.com>
6010
6011 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
6012 Remove.
6013 (ravenscar_thread_target::extra_thread_info): Remove.
6014 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
6015 defer to target beneath for non-Ravenscar threads.
6016
a8ac85bb
TT
60172020-08-07 Tom Tromey <tromey@adacore.com>
6018
6019 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
6020 get_base_thread_from_ravenscar_task>: Now methods.
6021 <m_cpu_map>: New member.
6022 (ravenscar_thread_target::get_thread_base_cpu): Rename from
6023 ravenscar_get_thread_base_cpu. Check m_cpu_map.
6024 (ravenscar_thread_target::task_is_currently_active): Update.
6025 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
6026 Now a method.
6027 (ravenscar_thread_target::add_active_thread): Put initial thread
6028 into the m_cpu_map.
6029
550ab58d
TT
60302020-08-07 Tom Tromey <tromey@adacore.com>
6031
6032 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
6033 event_ptid.
6034
e9546579
TT
60352020-08-07 Tom Tromey <tromey@adacore.com>
6036
6037 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
6038 runtime_initialized.
6039
3d4470e5
TT
60402020-08-07 Tom Tromey <tromey@adacore.com>
6041
6042 * ravenscar-thread.c (ravenscar_thread_target): Don't call
6043 add_active_thread.
6044 (ravenscar_thread_target::add_active_thread): Now public.
6045 (ravenscar_inferior_created): Call add_active_thread after pushing
6046 the target.
6047
888bdb2b
SM
60482020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
6049
6050 * regcache.c (ptid_regcache_map): New type.
6051 (target_ptid_regcache_map): New type.
6052 (regcaches): Change type to target_ptid_regcache_map.
6053 (get_thread_arch_aspace_regcache): Update to regcaches' new
6054 type.
6055 (regcache_thread_ptid_changed): Likewise.
6056 (registers_changed_ptid): Likewise.
6057 (regcaches_size): Likewise.
6058 (regcaches_test): Update.
6059 (regcache_thread_ptid_changed): Update.
6060 * regcache.h (regcache_up): New type.
6061 * gdbsupport/ptid.h (hash_ptid): New struct.
6062
b161a60d
SM
60632020-08-07 Simon Marchi <simon.marchi@efficios.com>
6064
6065 * observable.h (thread_ptid_changed): Add parameter
6066 `process_stratum_target *`.
6067 * infrun.c (infrun_thread_ptid_changed): Add parameter
6068 `process_stratum_target *` and use it.
6069 (selftests): New namespace.
6070 (infrun_thread_ptid_changed): New function.
6071 (_initialize_infrun): Register selftest.
6072 * regcache.c (regcache_thread_ptid_changed): Add parameter
6073 `process_stratum_target *` and use it.
6074 (regcache_thread_ptid_changed): New function.
6075 (_initialize_regcache): Register selftest.
6076 * thread.c (thread_change_ptid): Pass target to
6077 thread_ptid_changed observable.
6078
d2854d8d
CT
60792020-08-06 Caroline Tice <cmtice@google.com>
6080
fe4c3d43
SM
6081 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
6082 (struct dwp_sections): Update field comments. Add loclists and
6083 rnglists fields.
6084 (struct virtual_v2_dwo_sections): Rename struct to
6085 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
6086 size & offset fields for loclists and rnglists.
6087 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
6088 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
6089 skipping dummy type units.
6090 (create_dwp_hash_table): Update the large comment above the function to
6091 discuss Version 5 DWP files as well, with references. Update all the
6092 version checks in the function to check for version 5 as well. Add new
6093 section at the end to create dwp hash table for version 5.
6094 (create_dwp_v2_section): Rename function to
6095 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
6096 Add V5 to error message text.
6097 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
6098 into calls to create_dwp_v2_or_v5_section.
6099 (create_dwo_unit_in_dwp_v5): New function.
6100 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
6101 check for version2; add else clause to handle version 5.
6102 (open_and_init_dwo_file): Add code to check dwarf version & only call
6103 create_debug_types_hash_table (with sections.types) if version is not 5;
6104 else call create_debug_type_hash_table, with sections.info.
6105 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
6106 version 5.
6107 (dwarf2_locate_v5_dwp_sections): New function.
6108 (open_and_init_dwp_file): Add else-if clause for version 5 to call
6109 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 6110
159ed7d9
SM
61112020-08-06 Simon Marchi <simon.marchi@efficios.com>
6112
6113 * regcache.h (class regcache): Remove friend
6114 registers_changed_ptid.
6115 <regcache_thread_ptid_changed>: Remove.
6116 <regcaches>: Remove.
6117 * regcache.c (regcache::regcaches): Rename to...
6118 (regcaches): ... this. Make static.
6119 (get_thread_arch_aspace_regcache): Update.
6120 (regcache::regcache_thread_ptid_changed): Rename to...
6121 (regcache_thread_ptid_changed): ... this. Update.
6122 (class regcache_access): Remove.
6123 (regcaches_test): Update.
6124 (_initialize_regcache): Update.
6125 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
6126 <forward_list>.
6127
174981ae
SM
61282020-08-06 Simon Marchi <simon.marchi@efficios.com>
6129
6130 * regcache.h (class regcache) <current_regcache>: Rename to...
6131 <regcaches>: ... this. Move doc here.
6132 * regcache.c (regcache::current_regcache) Rename to...
6133 (regcache::regcaches): ... this. Move doc to header.
6134 (get_thread_arch_aspace_regcache): Update.
6135 (regcache::regcache_thread_ptid_changed): Update.
6136 (registers_changed_ptid): Update.
6137 (class regcache_access) <current_regcache_size>: Rename to...
6138 <regcaches_size>: ... this.
6139 (current_regcache_test): Rename to...
6140 (regcaches_test): ... this.
6141 (_initialize_regcache): Update.
6142
ed908db6
VC
61432020-08-06 Victor Collod <vcollod@nvidia.com>
6144
6145 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
6146
b5582ab7
KB
61472020-08-05 Kevin Buettner <kevinb@redhat.com>
6148
6149 * corelow.c (core_target::build_file_mappings): Don't output
6150 null pathname in warning.
6151
ea946b86
SM
61522020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
6153
6154 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
6155 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
6156 gdb.dwarf2/dw2-single-line-discriminators.exp,
6157 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
6158
57d02173
TT
61592020-08-05 Tom Tromey <tromey@adacore.com>
6160
6161 PR rust/26197:
6162 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
6163 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
6164 Fix off-by-one and type size errors in ordinary case.
6165
5555c86d
TV
61662020-08-05 Tom de Vries <tdevries@suse.de>
6167
6168 * gdbtypes.c (type_not_allocated, type_not_associated): Use
6169 "prop->const_val () == 0" instead of "prop->const_val () != 0".
6170
97916bfe
SM
61712020-08-04 Simon Marchi <simon.marchi@efficios.com>
6172
6173 * frame.h (frame_id_p): Return bool.
6174 (frame_id_artificial_p): Return bool.
6175 (frame_id_eq): Return bool.
6176 (has_stack_frames): Return bool.
6177 (get_selected_frame): Fix typo in comment.
6178 (get_frame_pc_if_available): Return bool.
6179 (get_frame_address_in_block_if_available): Return bool.
6180 (get_frame_func_if_available): Return bool.
6181 (read_frame_register_unsigned): Return bool.
6182 (get_frame_register_bytes): Return bool.
6183 (safe_frame_unwind_memory): Return bool.
6184 (deprecated_frame_register_read): Return bool.
6185 (frame_unwinder_is): Return bool.
6186 * frame.c (struct frame_info) <prev_arch::p>: Change type to
6187 bool.
6188 <this_id::p>: Likewise.
6189 <prev_p>: Likewise.
6190 (frame_stash_add): Return bool.
6191 (get_frame_id): Use bool.
6192 (frame_id_build_special) Use bool.
6193 (frame_id_build_unavailable_stack): Use bool.
6194 (frame_id_build): Use bool.
6195 (frame_id_p): Return bool, use true/false instead of 1/0.
6196 (frame_id_artificial_p): Likewise.
6197 (frame_id_eq): Likewise.
6198 (frame_id_inner): Likewise.
6199 (get_frame_func_if_available): Likewise.
6200 (read_frame_register_unsigned): Likewise.
6201 (deprecated_frame_register_read): Likewise.
6202 (get_frame_register_bytes): Likewise.
6203 (has_stack_frames): Likewise.
6204 (inside_main_func): Likewise.
6205 (inside_entry_func): Likewise.
6206 (get_frame_pc_if_available): Likewise.
6207 (get_frame_address_in_block_if_available): Likewise.
6208 (frame_unwinder_is): Likewise.
6209 (safe_frame_unwind_memory): Likewise.
6210 (frame_unwind_arch): Likewise.
6211
fedfee88
SM
62122020-08-04 Simon Marchi <simon.marchi@efficios.com>
6213
6214 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
6215 type to cached_copy_status.
6216 (fprintf_frame): Adjust.
6217 (get_frame_func_if_available): Adjust.
6218 (frame_cleanup_after_sniffer): Adjust.
6219
6cfa9b59
MW
62202020-08-04 Mark Wielaard <mark@klomp.org>
6221
6222 * MAINTAINERS (Write After Approval): Update email address.
6223
66d6346b
SM
62242020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6225
6226 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
6227 dynamic_prop::const_val.
6228
8a6d5e35
SM
62292020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6230
6231 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
6232 dynamic_prop::kind.
6233
51d6067d
SM
62342020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6235
6236 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
6237
b26e2ae7
JM
62382020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
6239
6240 * configure.tgt: Set gdb_sim for bpf-*-* targets.
6241
39791af2
JM
62422020-08-04 Weimin Pan <weimin.pan@oracle.com>
6243 Jose E. Marchesi <jose.marchesi@oracle.com>
6244
6245 * configure.tgt: Add entry for bpf-*-*.
6246 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
6247 (ALLDEPFILES): Add bpf-tdep.c.
6248 * bpf-tdep.c: New file.
6249 * MAINTAINERS: Add bpf target and maintainer.
6250 * NEWS: Mention the support for the new target.
6251
521894aa
TV
62522020-08-04 Tom de Vries <tdevries@suse.de>
6253
6254 PR symtab/23270
6255 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
6256 Error.
6257
5d6356e9
JB
62582020-08-03 John Baldwin <jhb@FreeBSD.org>
6259
6260 * syscalls/freebsd.xml: Regenerate.
6261
0cf82b81
JB
62622020-08-03 John Baldwin <jhb@FreeBSD.org>
6263
6264 * syscalls/update-freebsd.sh: Fix usage and year range.
6265
8f34b746
TV
62662020-08-03 Tom de Vries <tdevries@suse.de>
6267
6268 PR symtab/26333
6269 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
6270 DW_LNE_lo_user/DW_LNE_hi_user range.
6271
5e500d33
SM
62722020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
6273
6274 PR ada/26318
6275 * ada-lang.c (ada_modulus): Return 0 if property is not of const
6276 kind.
6277
78319c15
TBA
62782020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6279
6280 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
6281
4c55e970
TBA
62822020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6283
6284 * breakpoint.c (set_breakpoint_condition): Update the condition
6285 expressions after checking that the input condition string parses
6286 successfully and does not contain junk at the end.
6287
1e620590
TBA
62882020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6289
6290 * breakpoint.c (set_breakpoint_condition): Update the
6291 condition string after parsing the new condition successfully.
6292
c8693053
RO
62932020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6294
6295 * proc-api.c (_STRUCTURED_PROC): Don't define.
6296 * proc-events.c: Likewise.
6297 * proc-flags.c: Likewise.
6298 * proc-why.c: Likewise.
6299 * procfs.c: Likewise.
6300
6301 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
6302 * configure, config.in: Regenerate.
6303
5a99adb8
TV
63042020-07-30 Tom de Vries <tdevries@suse.de>
6305
6306 PR build/26320
6307 * ui-style.h (struct ui_file_style::color): Wrap m_value and
6308 m_red/m_green/m_blue in a union.
6309
8ba83e91
TV
63102020-07-29 Tom de Vries <tdevries@suse.de>
6311
6312 PR tdep/26280
6313 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
6314
f75a0693
AB
63152020-07-28 Tom Tromey <tromey@adacore.com>
6316
6317 PR symtab/26270:
6318 * symtab.h (find_pc_partial_function_sym): Declare.
6319 * cli/cli-cmds.c (disassemble_command): Use
6320 find_pc_partial_function_sym. Check asm_demangle.
6321 * blockframe.c (cache_pc_function_sym): New global.
6322 (cache_pc_function_name): Remove.
6323 (clear_pc_function_cache): Update.
6324 (find_pc_partial_function_sym): New function, from
6325 find_pc_partial_function.
6326 (find_pc_partial_function): Rewrite using
6327 find_pc_partial_function_sym.
6328
16f3242c
TT
63292020-07-28 Tom Tromey <tromey@adacore.com>
6330
6331 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
6332 help. Add usage.
6333
4888741a
TT
63342020-07-28 Tom Tromey <tromey@adacore.com>
6335
6336 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
6337 <DW_OP_GNU_variable_value>: Cast to address type.
6338
4d46f402
KR
63392020-07-28 Kamil Rytarowski <n54@gmx.com>
6340
6341 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
6342 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
6343 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
6344 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
6345 (nbsd_get_siginfo_type): New.
6346 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
6347 (_initialize_nbsd_tdep): New.
6348
d70f978b
L
63492020-07-28 H.J. Lu <hongjiu.lu@intel.com>
6350
6351 PR binutils/26301
6352 * configure: Regenerated.
6353
377170fa
L
63542020-07-28 H.J. Lu <hongjiu.lu@intel.com>
6355
6356 PR binutils/26301
6357 * configure: Regenerated.
6358
43d5901d
AB
63592020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
6360
6361 * python/py-frame.c: Remove 'user-regs.h' include.
6362 (frapy_read_register): Rewrite to make use of
6363 gdbpy_parse_register_id.
6364 * python/py-registers.c (gdbpy_parse_register_id): New function,
6365 moved here from python/py-unwind.c. Updated the return type, and
6366 also accepts register descriptor objects.
6367 * python/py-unwind.c: Remove 'user-regs.h' include.
6368 (pyuw_parse_register_id): Moved to python/py-registers.c.
6369 (unwind_infopy_add_saved_register): Update to use
6370 gdbpy_parse_register_id.
6371 (pending_framepy_read_register): Likewise.
6372 * python/python-internal.h (gdbpy_parse_register_id): Declare.
6373
14fa8fb3
AB
63742020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
6375
6376 * python/py-registers.c: Add 'user-regs.h' include.
6377 (register_descriptor_iter_find): New function.
6378 (register_descriptor_iterator_object_methods): New static global
6379 methods array.
6380 (register_descriptor_iterator_object_type): Add pointer to methods
6381 array.
6382
ddce1758
JB
63832020-07-27 John Baldwin <jhb@FreeBSD.org>
6384
6385 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
6386 for all architectures on FreeBSD 11.3 and later.
6387
a4089f52
TT
63882020-07-27 Tom Tromey <tromey@adacore.com>
6389
6390 * gcore.h (load_corefile): Don't declare.
6391
95420d30
TV
63922020-07-27 Tom de Vries <tdevries@suse.de>
6393
6394 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
6395 * config.in: Regenerate.
6396 * configure: Regenerate.
6397
05a6b8c2
EZ
63982020-07-26 Eli Zaretskii <eliz@gnu.org>
6399
6400 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
6401 ws2tcpip.h. When checking whether socklen_t type is defined, use
6402 ws2tcpip.h if it is available and sys/socket.h isn't.
6403 * configure: Regenerate.
6404 * config.in: Regenerate.
6405
e79eb02f
AB
64062020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
6407
6408 PR fortran/23051
6409 PR fortran/26139
6410 * valops.c (value_ind): Pass address to
6411 readjust_indirect_value_type.
6412 * value.c (readjust_indirect_value_type): Make parameter
6413 non-const, and add extra address parameter. Resolve original type
6414 before using it.
6415 * value.h (readjust_indirect_value_type): Update function
6416 signature and comment.
6417
876518dd
TV
64182020-07-25 Tom de Vries <tdevries@suse.de>
6419
6420 PR symtab/26243
6421 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
6422 entries.
6423
f6720b1c
AM
64242020-07-24 Aaron Merey <amerey@redhat.com>
6425
6426 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
6427 * configure: Rebuild.
6428
513487e1
KB
64292020-07-23 Kevin Buettner <kevinb@redhat.com>
6430
6431 PR corefiles/26294
6432 * corelow.c (_initialize_corelow): Add period to help text
6433 for "maintenance print core-file-backed-mappings".
6434
e7bc9db8
PA
64352020-07-23 Pedro Alves <pedro@palves.net>
6436
6437 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
6438 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
6439 meanwhile.
6440 * frame.c (frame_cache_generation, get_frame_cache_generation):
6441 New.
6442 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
6443 (get_prev_frame_if_no_cycle): On exception, don't touch
6444 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
6445 * frame.h (get_frame_cache_generation): Declare.
6446
90fcc466
TV
64472020-07-23 Tom de Vries <tdevries@suse.de>
6448
6449 PR tui/26282
6450 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
6451 New default constructor.
6452
78344df7
AB
64532020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
6454
6455 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
6456 exclude non-statement entries.
6457
b089853a
KB
64582020-07-22 Kevin Buettner <kevinb@redhat.com>
6459
6460 * NEWS (New commands): Mention new command
6461 "maintenance print core-file-backed-mappings".
6462
09c2f5d4
KB
64632020-07-22 Kevin Buettner <kevinb@redhat.com>
6464
6465 * corelow.c (gdbcmd.h): Include.
6466 (core_target::info_proc_mappings): New method.
6467 (get_current_core_target): New function.
6468 (maintenance_print_core_file_backed_mappings): New function.
6469 (_initialize_corelow): Add core-file-backed-mappings to
6470 "maint print" commands.
6471
9c5ec5c2 64722020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 6473
9c5ec5c2
KB
6474 * linux-tdep.c (dump_note_entry_p): New function.
6475 (linux_dump_mapping_p_ftype): New typedef.
6476 (linux_find_memory_regions_full): Add new parameter,
6477 should_dump_mapping_p.
6478 (linux_find_memory_regions): Adjust call to
6479 linux_find_memory_regions_full.
6480 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
6481 call to linux_find_memory_regions_full.
6482
db082f59
KB
64832020-07-22 Kevin Buettner <kevinb@redhat.com>
6484
6485 * corelow.c (solist.h, unordered_map): Include.
6486 (class core_target): Add field m_core_file_mappings and
6487 method build_file_mappings.
6488 (core_target::core_target): Call build_file_mappings.
6489 (core_target::~core_target): Free memory associated with
6490 m_core_file_mappings.
6491 (core_target::build_file_mappings): New method.
6492 (core_target::xfer_partial): Use m_core_file_mappings
6493 for memory transfers.
6494 * linux-tdep.c (linux_read_core_file_mappings): New
6495 function.
6496 (linux_core_info_proc_mappings): Rewrite to use
6497 linux_read_core_file_mappings.
6498 (linux_init_abi): Register linux_read_core_file_mappings.
6499
7e183d27
KB
65002020-07-22 Kevin Buettner <kevinb@redhat.com>
6501
6502 * arch-utils.c (default_read_core_file_mappings): New function.
6503 * arch-utils.c (default_read_core_file_mappings): Declare.
6504 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
6505 * gdbarch.h, gdbarch.c: Regenerate.
6506
2735d421
KB
65072020-07-22 Kevin Buettner <kevinb@redhat.com>
6508
6509 PR corefiles/25631
6510 * corelow.c (core_target:xfer_partial): Revise
6511 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
6512 case after first checking the stratum beneath the core
6513 target.
6514 (has_all_memory): Return true.
6515 * target.c (raw_memory_xfer_partial): Revise comment
6516 regarding use of has_all_memory.
6517
e56cb451
KB
65182020-07-22 Kevin Buettner <kevinb@redhat.com>
6519
6520 * exec.h (section_table_xfer_memory): Revise declaration,
6521 replacing section name parameter with an optional callback
6522 predicate.
6523 * exec.c (section_table_xfer_memory): Likewise.
6524 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
6525 of section_table_xfer_memory.
6526
32fa152e
TT
65272020-07-22 Tom Tromey <tromey@adacore.com>
6528
6529 * mi/mi-cmd-stack.c (list_args_or_locals): Use
6530 lookup_symbol_search_name.
6531
a67a1c41
AB
65322020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6533
6534 * python/py-registers.c (gdbpy_register_object_data_init): Remove
6535 redundant local variable.
6536 (gdbpy_get_register_descriptor): Extract descriptor vector as a
6537 reference, not pointer, update code accordingly.
6538
a7b4ff4f
SM
65392020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6540 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6541
6542 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
6543 * jit.c (jit_breakpoint_re_set_internal): Use the
6544 `skip_jit_symbol_lookup` field.
6545
2340e834
SM
65462020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6547 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6548
6549 * jit.c (jit_read_descriptor): Define the descriptor address once,
6550 use twice.
6551 (jit_breakpoint_deleted): Move the declaration of the loop variable
6552 `iter` into the loop header.
6553 (jit_breakpoint_re_set_internal): Move the declaration of the local
6554 variable `objf_data` to the first point of definition.
6555 (jit_event_handler): Move the declaration of local variables
6556 `code_entry`, `entry_addr`, and `objf` to their first point of use.
6557 Rename `objf` to `jited`.
6558
c1072906
SM
65592020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6560
6561 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
6562 Remove.
6563 * jit.c (get_jiter_objfile_data): Update.
6564
c8474dc3
TBA
65652020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6566 Simon Marchi <simon.marchi@polymtl.ca>
6567
6568 * jit.c (struct jit_program_space_data): Remove.
6569 (jit_program_space_key): Remove.
6570 (jiter_objfile_data::~jiter_objfile_data): Remove program space
6571 stuff.
6572 (get_jit_program_space_data): Remove.
6573 (jit_breakpoint_deleted): Iterate on all of the program space's
6574 objfiles.
6575 (jit_inferior_init): Likewise.
6576 (jit_breakpoint_re_set_internal): Likewise. Also change return
6577 type to void.
6578 (jit_breakpoint_re_set): Pass current_program_space to
6579 jit_breakpoint_re_set_internal.
6580
77208eb7
SM
65812020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6582
6583 * jit.h (struct jiter_objfile_data) <cached_code_address,
6584 jit_breakpoint>: Move to here from ...
6585 * jit.c (jit_program_space_data): ... here.
6586 (jiter_objfile_data::~jiter_objfile_data): Update.
6587 (jit_breakpoint_deleted): Update.
6588 (jit_breakpoint_re_set_internal): Update.
6589
8c1c720f
SM
65902020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6591
6592 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
6593 checks.
6594 (jit_read_descriptor): Remove NULL check.
6595 (jit_event_handler): Add an assertion.
6596
0e74a041
SM
65972020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6598
6599 * jit.h (struct jit_objfile_data): Split into...
6600 (struct jiter_objfile_data): ... this ...
6601 (struct jited_objfile_data): ... and this.
6602 * objfiles.h (struct objfile) <jit_data>: Remove.
6603 <jiter_data, jited_data>: New fields.
6604 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
6605 (jiter_objfile_data::~jiter_objfile_data): ... this.
6606 (get_jit_objfile_data): Rename to ...
6607 (get_jiter_objfile_data): ... this.
6608 (add_objfile_entry): Update.
6609 (jit_read_descriptor): Use get_jiter_objfile_data.
6610 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
6611 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
6612 (jit_inferior_exit_hook): Use objfile's jited_data field.
6613
238b5c9f
SM
66142020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6615
6616 * jit.h: Forward-declare `struct minimal_symbol`.
6617 (struct jit_objfile_data): Migrate to here from jit.c; also add a
6618 constructor, destructor, and an objfile* field.
6619 * jit.c (jit_objfile_data): Remove.
6620 (struct jit_objfile_data): Migrate from here to jit.h.
6621 (jit_objfile_data::~jit_objfile_data): New destructor
6622 implementation with code moved from free_objfile_data.
6623 (free_objfile_data): Delete.
6624 (get_jit_objfile_data): Update to use the jit_data field of objfile.
6625 (jit_find_objf_with_entry_addr): Ditto.
6626 (jit_inferior_exit_hook): Ditto.
6627 (_initialize_jit): Remove the call to
6628 register_objfile_data_with_cleanup.
6629 * objfiles.h (struct objfile) <jit_data>: New field.
6630
fe053b9e
TBA
66312020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6632
6633 * jit.h: Forward-declare `struct objfile`.
6634 (jit_event_handler): Add a second parameter, the JITer objfile.
6635 * jit.c (jit_read_descriptor): Change the signature to take the
6636 JITer objfile as an argument instead of the jit_program_space_data.
6637 (jit_inferior_init): Update the call to jit_read_descriptor.
6638 (jit_event_handler): Use the new JITer objfile argument when calling
6639 jit_read_descriptor.
6640 * breakpoint.c (handle_jit_event): Update the call to
6641 jit_event_handler to pass the JITer objfile.
6642
4cec0c66
JB
66432020-07-21 John Baldwin <jhb@FreeBSD.org>
6644
6645 * gdbarch.c: Regenerate.
6646 * gdbarch.h: Regenerate.
6647 * gdbarch.sh (handle_segmentation_fault): Remove method.
6648 * infrun.c (handle_segmentation_fault): Remove.
6649 (print_signal_received_reason): Remove call to
6650 handle_segmentation_fault.
6651
0e42f66a
JB
66522020-07-21 John Baldwin <jhb@FreeBSD.org>
6653
6654 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
6655 Rename to sparc64_linux_report_signal_info and add siggnal
6656 argument.
6657 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
6658 instead of sparc64_linux_handle_segmentation_fault.
6659
77bdfeb2
JB
66602020-07-21 John Baldwin <jhb@FreeBSD.org>
6661
6662 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
6663 i386_linux_report_signal_info instead of
6664 i386_linux_handle_segmentation_fault.
6665 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
6666 to i386_linux_report_signal_info and add siggnal argument.
6667 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
6668 of i386_linux_handle_segmentation_fault.
6669 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
6670 to i386_linux_report_signal_info and add siggnal argument.
6671
ad97bfc5
JB
66722020-07-21 John Baldwin <jhb@FreeBSD.org>
6673
6674 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
6675 hook if present.
6676
272bb05c
JB
66772020-07-21 John Baldwin <jhb@FreeBSD.org>
6678
6679 * gdbarch.c: Regenerate.
6680 * gdbarch.h: Regenerate.
6681 * gdbarch.sh (report_signal_info): New method.
6682 * infrun.c (print_signal_received_reason): Invoke gdbarch
6683 report_signal_info hook if present.
6684
baf8791e
AB
66852020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
6686
6687 * python/py-registers.c : Add 'unordered_map' include.
6688 (gdbpy_new_reggroup): Renamed to...
6689 (gdbpy_get_reggroup): ...this. Update to only create register
6690 group descriptors when needed.
6691 (gdbpy_reggroup_iter_next): Update.
6692
f7306dac
AB
66932020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
6694
6695 * python/py-registers.c (gdbpy_register_object_data): New static
6696 global.
6697 (gdbpy_register_object_data_init): New function.
6698 (gdbpy_new_register_descriptor): Renamed to...
6699 (gdbpy_get_register_descriptor): ...this, and update to reuse
6700 existing register descriptors where possible.
6701 (gdbpy_register_descriptor_iter_next): Update.
6702 (gdbpy_initialize_registers): Register new gdbarch data.
6703
05c309a8
SM
67042020-07-21 Simon Marchi <simon.marchi@efficios.com>
6705
6706 * linux-nat.c (stopped_pids): Make static.
6707
d1fd641e
SM
67082020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
6709
6710 PR ada/26235
6711 * gdbtypes.c (ada_discrete_type_low_bound,
6712 ada_discrete_type_high_bound): Handle undefined bounds.
6713
1de14d77
KR
67142020-07-21 Kamil Rytarowski <n54@gmx.com>
6715
6716 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
6717 declaration.
6718 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
6719 function.
6720
ed810cc7
JB
67212020-07-20 John Baldwin <jhb@FreeBSD.org>
6722
6723 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
6724 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
6725 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
6726 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
6727 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
6728 method.
6729
ae5369e7
LC
67302020-07-20 Ludovic Courtès <ludo@gnu.org>
6731
6732 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
6733 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
6734 which are deprecated in Guile 3.0.
6735 * configure.ac (try_guile_versions): Add "guile-3.0".
6736 * configure (try_guile_versions): Regenerate.
6737 * NEWS: Update entry.
6738
68cf161c
LC
67392020-07-20 Ludovic Courtès <ludo@gnu.org>
6740 Doug Evans <dje@google.com>
6741
6742 PR gdb/21104
6743 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
6744 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
6745 USING_GUILE_BEFORE_2_2.
6746 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
6747 Change type to 'scm_t_port_type *'.
6748 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
6749 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
6750 parameter and honor it. Update callers.
6751 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
6752 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
6753 functions.
6754 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
6755 USING_GUILE_BEFORE_2_2.
6756 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
6757 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
6758 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
6759 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
6760 and 'SCM_PORT_TYPE'.
6761 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
6762 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
6763 (gdbscm_memory_port_read, gdbscm_memory_port_write)
6764 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
6765 [!USING_GUILE_BEFORE_2_2]: New functions.
6766 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
6767 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
6768 'gdbscm_memory_port_read'.
6769 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
6770 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
6771 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
6772 function.
6773 (ioscm_init_memory_port): Remove.
6774 (ioscm_init_memory_port_stream): New function
6775 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
6776 function.
6777 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
6778 Return scm_from_uint (0).
6779 (gdbscm_set_memory_port_read_buffer_size_x)
6780 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
6781 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
6782 Return scm_from_uint (0).
6783 (gdbscm_set_memory_port_write_buffer_size_x)
6784 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
6785 * configure.ac (try_guile_versions): Add "guile-2.2".
6786 * configure: Regenerate.
6787 * NEWS: Add entry.
6788
aee91db3
TT
67892020-07-18 Tom Tromey <tom@tromey.com>
6790
6791 * linux-nat.c (linux_multi_process): Remove.
6792 (linux_nat_target::supports_multi_process): Return true.
6793
0e267416
AB
67942020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
6795
6796 * arch/riscv.c (riscv_tdesc_cache): Change map type.
6797 (riscv_lookup_target_description): Return pointer out of
6798 unique_ptr.
6799 * target-descriptions.c (allocate_target_description): Add
6800 comment.
6801 (target_desc_deleter::operator()): Likewise.
6802 * target-descriptions.h (struct target_desc_deleter): Moved to
6803 gdbsupport/tdesc.h.
6804 (target_desc_up): Likewise.
6805
f80c8ec4
TT
68062020-07-17 Tom Tromey <tromey@adacore.com>
6807
6808 * linux-nat.c (linux_nat_target::supports_non_stop)
6809 (linux_nat_target::always_non_stop_p): Use "true".
6810 (linux_nat_target::supports_disable_randomization): Use "true" and
6811 "false".
6812
d0ce17d8
CT
68132020-07-16 Caroline Tice <cmtice@google.com>
6814
6815 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
6816 (RNGLIST_HEADER_SIZE64): New constant definition.
6817 (struct dwop_section_names): Add rnglists_dwo.
6818 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
6819 (struct loclist_header): Rename to 'loclists_rnglists_header'.
6820 (struct dwo_sections): Add rnglists field.
6821 (read_attribut_reprocess): Add tag parameter.
6822 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
6823 (cu_debug_rnglists_section): New function (decl & definition).
6824 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
6825 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
6826 die whose range is being checked; get rnglist section from
6827 cu_debug_rnglists_section, to get from either objfile or dwo file as
6828 appropriate. Add cases for DW_RLE_base_addressx,
6829 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
6830 the base address to DW_RLE_offset_pairs (not to all ranges), moving
6831 test inside if-condition and updating complaint message.
6832 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
6833 dwarf2_rnglists_process.
6834 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
6835 dwarf2_ranges_process.
6836 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
6837 need_ranges_base and update comment appropriately. Also pass die tag
6838 to dwarf2_ranges_read.
6839 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
6840 need_ranges_base and update comment appropriately. Also pass die tag
6841 to dwarf2_ranges_process.
6842 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
6843 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
6844 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
6845 need_ranges_base and update comment appropriately. Also pass die tag
6846 to read_attribute_reprocess and dwarf2_ranges_read.
6847 (read_loclist_header): Rename function to read_loclists_rnglists_header,
6848 and update function comment appropriately.
6849 (read_loclist_index): Call read_loclists_rnglists_header instead of
6850 read_loclist_header.
6851 (read_rnglist_index): New function.
6852 (read_attribute_reprocess): Add tag parameter. Add code for
6853 DW_FORM_rnglistx, passing tag to read_rnglist_index.
6854 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
6855
3dcc261c
AB
68562020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
6857
6858 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
6859 being resolved.
6860
ccb9eba6
AB
68612020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
6862
6863 * arch-utils.c (show_architecture): Update formatting of messages.
6864
cf88be68
SM
68652020-07-12 Simon Marchi <simon.marchi@efficios.com>
6866
6867 * gdbtypes.h (struct type) <bounds>: Handle array and string
6868 types.
6869 * ada-lang.c (assign_aggregate): Use type::bounds on
6870 array/string type.
6871 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
6872 * c-varobj.c (c_number_of_children): Likewise.
6873 (c_describe_child): Likewise.
6874 * eval.c (evaluate_subexp_for_sizeof): Likewise.
6875 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
6876 (f_type_print_base): Likewise.
6877 * f-valprint.c (f77_array_offset_tbl): Likewise.
6878 (f77_get_upperbound): Likewise.
6879 (f77_print_array_1): Likewise.
6880 * guile/scm-type.c (gdbscm_type_range): Likewise.
6881 * m2-typeprint.c (m2_array): Likewise.
6882 (m2_is_long_set_of_type): Likewise.
6883 * m2-valprint.c (get_long_set_bounds): Likewise.
6884 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
6885 * python/py-type.c (typy_range): Likewise.
6886 * rust-lang.c (rust_internal_print_type): Likewise.
6887 * type-stack.c (type_stack::follow_types): Likewise.
6888 * valarith.c (value_subscripted_rvalue): Likewise.
6889 * valops.c (value_cast): Likewise.
6890
509971ae
SM
68912020-07-12 Simon Marchi <simon.marchi@efficios.com>
6892
6893 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
6894 callers to use the equivalent accessor methods.
6895
107406b7
SM
68962020-07-12 Simon Marchi <simon.marchi@efficios.com>
6897
6898 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
6899 (struct type) <bit_stride>: New method.
6900 (TYPE_BIT_STRIDE): Remove.
6901 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
6902
bb789949
SM
69032020-07-12 Simon Marchi <simon.marchi@efficios.com>
6904
6905 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
6906 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
6907 callers to use the equivalent accessor methods instead.
6908
39498edb
SM
69092020-07-12 Simon Marchi <simon.marchi@efficios.com>
6910
6911 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
6912 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
6913 callers to use the equivalent accessor methods instead.
6914
3b606f38
SM
69152020-07-12 Simon Marchi <simon.marchi@efficios.com>
6916
6917 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
6918 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
6919 to use dynamic_prop::kind.
6920
064d9cb9
SM
69212020-07-12 Simon Marchi <simon.marchi@efficios.com>
6922
6923 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
6924 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
6925 to get the bound property's kind and check against
6926 PROP_UNDEFINED.
6927
5537ddd0
SM
69282020-07-12 Simon Marchi <simon.marchi@efficios.com>
6929
6930 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
6931 all callers to use type::range_bounds followed by
6932 dynamic_prop::{low,high}.
6933
8c2e4e06
SM
69342020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
6935
6936 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
6937 const_val, set_const_val, baton, set_locexpr, set_loclist,
6938 set_addr_offset, variant_parts, set_variant_parts,
6939 original_type, set_original_type>: New methods.
6940 <kind>: Rename to...
6941 <m_kind>: ... this. Update all users to use the new methods
6942 instead.
6943 <data>: Rename to...
6944 <m_data>: ... this. Update all users to use the new methods
6945 instead.
6946
7c6f2712
SM
69472020-07-12 Simon Marchi <simon.marchi@efficios.com>
6948
6949 * gdbtypes.c (get_discrete_bounds): Return failure if
6950 the range type's bounds are not both defined and constant
6951 values.
6952 (get_array_bounds): Update comment. Remove undefined bound check.
6953
599088e3
SM
69542020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
6955
6956 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
6957 the type::bounds method directly.
6958
c4dfcb36
SM
69592020-07-12 Simon Marchi <simon.marchi@efficios.com>
6960
6961 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
6962 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
6963 are used to set the range type's bounds to use set_bounds.
6964
0a278aa7
PW
69652020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6966
6967 * exec.c (_initialize_exec): Update exec-file-mismatch help.
6968
cce20f10
PA
69692020-07-10 Pedro Alves <pedro@palves.net>
6970
6971 * gdbthread.h (inferior_ref): Define.
6972 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
6973 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
6974 * thread.c
6975 (scoped_restore_current_thread::restore):
6976 Adjust to gdb::ref_ptr.
6977 (scoped_restore_current_thread::~scoped_restore_current_thread):
6978 Remove manual decref handling.
6979 (scoped_restore_current_thread::scoped_restore_current_thread):
6980 Adjust to use
6981 inferior_ref::new_reference/thread_info_ref::new_reference.
6982 Incref the thread before calling get_frame_id instead of after.
6983 Let TARGET_CLOSE_ERROR propagate.
6984
6d7aa592
PA
69852020-07-10 Pedro Alves <pedro@palves.net>
6986
6987 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
6988 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
6989 NOT_AVAILABLE_ERROR.
6990 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
6991 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
6992
b3e3a4c1
SM
69932020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6994 Pedro Alves <pedro@palves.net>
6995
6996 PR gdb/26199
6997 * infrun.c (threads_are_resumed_pending_p): Delete.
6998 (do_target_wait): Remove threads_are_executing and
6999 threads_are_resumed_pending_p checks from the inferior_matches
7000 lambda. Update comments.
7001
d6cc5d98
PA
70022020-07-10 Pedro Alves <pedro@palves.net>
7003
7004 PR gdb/26199
7005 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
7006 executing threads.
7007
7d3badc6
PA
70082020-07-10 Pedro Alves <pedro@palves.net>
7009
7010 PR gdb/26199
7011 * infrun.c (handle_no_resumed): Handle multiple targets.
7012
42bd97a6
PA
70132020-07-10 Pedro Alves <pedro@palves.net>
7014
7015 PR gdb/26199
7016 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
7017 target_is_async_p.
7018
43667cc6
PA
70192020-07-10 Pedro Alves <pedro@palves.net>
7020
7021 PR gdb/26199
7022 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
7023 threads, not all threads.
7024
96118d11
PA
70252020-07-10 Pedro Alves <pedro@palves.net>
7026
7027 PR gdb/26199
7028 * remote.c (remote_target::open_1): Pass remote target pointer as
7029 data to create_async_event_handler.
7030 (remote_async_inferior_event_handler): Mark async event handler
7031 before returning if the remote target still has either pending
7032 events or unacknowledged notifications.
7033
54904d81
JB
70342020-07-10 John Baldwin <jhb@FreeBSD.org>
7035
7036 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
7037 declaration.
7038 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
7039 function.
7040
f37e5866
JB
70412020-07-09 John Baldwin <jhb@FreeBSD.org>
7042
7043 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
7044 inferior_ptid.
7045
fc238d4a
JB
70462020-07-09 John Baldwin <jhb@FreeBSD.org>
7047
7048 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
7049 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
7050 AT_FREEBSD_PS_STRINGS.
7051
6e2469ff
HD
70522020-07-08 Hannes Domani <ssbssa@yahoo.de>
7053
7054 * auto-load.c (auto_load_objfile_script_1): Convert drive part
7055 of debugfile path on Windows.
7056
d1076c41
JB
70572020-07-08 John Baldwin <jhb@FreeBSD.org>
7058
7059 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
7060 argument to 'data'.
7061
15f3b077
TT
70622020-07-08 Tom Tromey <tromey@adacore.com>
7063
7064 * ada-lang.c (ada_exception_message_1): Use read_memory.
7065
9fc501fd
AB
70662020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7067
7068 PR python/22748
7069 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
7070 special handling for inline frames.
7071 * findvar.c (value_of_register_lazy): Skip inline frames when
7072 creating lazy register values.
7073 * frame.c (frame_id_computed_p): Delete definition.
7074 * frame.h (frame_id_computed_p): Delete declaration.
7075
64cb3757
AB
70762020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7077
7078 * NEWS: Mention additions to Python API.
7079 * python/py-arch.c (archpy_register_groups): New function.
7080 (arch_object_methods): Add 'register_groups' method.
7081 * python/py-registers.c (reggroup_iterator_object): New struct.
7082 (reggroup_object): New struct.
7083 (gdbpy_new_reggroup): New function.
7084 (gdbpy_reggroup_to_string): New function.
7085 (gdbpy_reggroup_name): New function.
7086 (gdbpy_reggroup_iter): New function.
7087 (gdbpy_reggroup_iter_next): New function.
7088 (gdbpy_new_reggroup_iterator): New function
7089 (gdbpy_initialize_registers): Register new types.
7090 (reggroup_iterator_object_type): Define new Python type.
7091 (gdbpy_reggroup_getset): New static global.
7092 (reggroup_object_type): Define new Python type.
7093 * python/python-internal.h
7094
0f767f94
AB
70952020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7096
7097 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
7098 * python/py-arch.c (archpy_registers): New function.
7099 (arch_object_methods): Add 'registers' method.
7100 * python/py-registers.c: New file.
7101 * python/python-internal.h
7102 (gdbpy_new_register_descriptor_iterator): Declare.
7103 (gdbpy_initialize_registers): Declare.
7104 * python/python.c (do_start_initialization): Call
7105 gdbpy_initialize_registers.
7106 * NEWS: Mention additions to the Python API.
7107
87dbc774
AB
71082020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7109
7110 * NEWS: Mention new Python API method.
7111 * python/py-unwind.c (pending_framepy_architecture): New function.
7112 (pending_frame_object_methods): Add architecture method.
7113
3bc98c0c
AB
71142020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7115
7116 * gdbarch.c: Regenerate.
7117 * gdbarch.h: Regenerate.
7118 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
7119 (gdbarch_data): Use internal_error for the case where
7120 deprecated_set_gdbarch_data was originally needed.
7121 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
7122 and use passed in obstack.
7123 (libunwind_frame_set_descr): Should no longer get back NULL from
7124 gdbarch_data.
7125 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
7126 type.
7127 * user-regs.c (user_regs_init): Update parameters, and use passed
7128 in obstack.
7129 (user_reg_add): Should no longer get back NULL from gdbarch_data.
7130 (_initialize_user_regs): Register as a pre-init gdbarch data type.
7131
d8cc8af6
TV
71322020-07-06 Tom de Vries <tdevries@suse.de>
7133
7134 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
7135 End-Of-Sequence in lte_is_less_than.
7136 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
7137 "gdb: Don't reorder line table entries too much when sorting".
7138
947f7597
TV
71392020-07-06 Tom de Vries <tdevries@suse.de>
7140
7141 PR tui/26205
7142 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
7143
1e7c1b22
TV
71442020-07-05 Tom de Vries <tdevries@suse.de>
7145
7146 PR build/26187
7147 * inferior.h (struct infcall_suspend_state_deleter): If available, use
7148 std::uncaught_exceptions instead of deprecated
7149 std::uncaught_exception.
7150
a36158ec
SM
71512020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7152
7153 * macroexp.h (macro_stringify): Return
7154 gdb::unique_xmalloc_ptr<char>.
7155 * macroexp.c (macro_stringify): Likewise.
7156 * macrotab.c (fixup_definition): Update.
7157
14d960c8
SM
71582020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7159
7160 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
7161 (lex_one_token): Update.
7162 * macroexp.c (struct macro_buffer) <release>: Return
7163 gdb::unique_xmalloc_ptr<char>.
7164 (macro_stringify): Update.
7165 (macro_expand): Update.
7166 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
7167 * macroexp.h (macro_expand_next): Likewise.
7168
211d5b1c
SM
71692020-07-02 Simon Marchi <simon.marchi@efficios.com>
7170
7171 * macroexp.h (macro_lookup_ftype): Remove.
7172 (macro_expand, macro_expand_once, macro_expand_next): Remove
7173 lookup function parameters, add scope parameter.
7174 * macroexp.c (scan, substitute_args, expand, maybe_expand,
7175 macro_expand, macro_expand_once, macro_expand_next): Likewise.
7176 * macroscope.h (standard_macro_lookup): Change parameter type
7177 to macro_scope.
7178 * macroscope.c (standard_macro_lookup): Likewise.
7179 * c-exp.y (lex_one_token): Update.
7180 * macrocmd.c (macro_expand_command): Likewise.
7181 (macro_expand_once_command): Likewise.
7182
b1a35af2
SM
71832020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7184
7185 * inf-loop.c (inferior_event_handler): Remove client_data param.
7186 * inf-loop.h (inferior_event_handler): Likewise.
7187 * infcmd.c (step_1): Adjust.
7188 * infrun.c (proceed): Adjust.
7189 (fetch_inferior_event): Remove client_data param.
7190 (infrun_async_inferior_event_handler): Adjust.
7191 * infrun.h (fetch_inferior_event): Remove `void *` param.
7192 * linux-nat.c (handle_target_event): Adjust.
7193 * record-btrace.c (record_btrace_handle_async_inferior_event):
7194 Adjust.
7195 * record-full.c (record_full_async_inferior_event_handler):
7196 Adjust.
7197 * remote.c (remote_async_inferior_event_handler): Adjust.
7198
1cdf9e33
TT
71992020-07-01 Tom Tromey <tom@tromey.com>
7200
7201 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
7202 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
7203
32c1e210
TT
72042020-07-01 Tom Tromey <tom@tromey.com>
7205
7206 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
7207 tui_gen_win_info.
7208 (tui_win_info::make_window): Merge with
7209 tui_gen_win_info::make_window.
7210 (tui_win_info::make_visible): Move from tui_gen_win_info.
7211 * tui/tui-win.c (tui_win_info::max_width): Move from
7212 tui_gen_win_info.
7213 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
7214 type.
7215 <window_factory>: Likewise.
7216 * tui/tui-layout.c (tui_win_info::resize): Move from
7217 tui_gen_win_info.
7218 (make_standard_window): Change return type.
7219 (get_locator_window, tui_get_window_by_name): Likewise.
7220 (tui_layout_window::apply): Remove a cast.
7221 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
7222 (struct tui_win_info): Merge with tui_gen_win_info.
7223 (struct tui_gen_win_info): Remove.
7224
a30cb6da
TT
72252020-07-01 Tom Tromey <tom@tromey.com>
7226
7227 * tui/tui-stack.h (struct tui_locator_window): Derive from
7228 tui_win_info.
7229 <do_scroll_horizontal, do_scroll_vertical>: New methods.
7230 <can_box>: New method.
7231
1eb2161f
TT
72322020-07-01 Tom Tromey <tom@tromey.com>
7233
7234 * tui/tui-stack.h (struct tui_locator_window): Remove body.
7235
7134f2eb
TT
72362020-07-01 Tom Tromey <tom@tromey.com>
7237
7238 * tui/tui-regs.c (tui_data_window::display_registers_from)
7239 (tui_data_window::display_registers_from)
7240 (tui_data_window::first_data_item_displayed)
7241 (tui_data_window::delete_data_content_windows): Update.
7242 (tui_data_window::refresh_window, tui_data_window::no_refresh):
7243 Remove.
7244 (tui_data_window::check_register_values): Update.
7245 (tui_data_item_window::rerender): Add parameters. Update.
7246 (tui_data_item_window::refresh_window): Remove.
7247 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
7248 virtual.
7249 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
7250 tui_gen_win_info.
7251 <refresh_window, max_height, min_height>: Remove.
7252 <rerender>: Add parameters.
7253 <x, y, visible>: New members.
7254 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
7255 <m_item_width>: New member.
7256
22b7b041
TT
72572020-07-01 Tom Tromey <tom@tromey.com>
7258
7259 * tui/tui-regs.c (tui_data_window::show_register_group)
7260 (tui_data_window::check_register_values): Update.
7261 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
7262 from item_no.
7263
c9753adb
TT
72642020-07-01 Tom Tromey <tom@tromey.com>
7265
7266 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
7267 useless "if".
7268
9ab26b4a
TT
72692020-07-01 Tom Tromey <tom@tromey.com>
7270
7271 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
7272 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
7273
e555083f
TT
72742020-07-01 Tom Tromey <tom@tromey.com>
7275
7276 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
7277 * tui/tui-winsource.h (enum tui_line_or_address_kind)
7278 (struct tui_line_or_address): Move from tui-data.h.
7279 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
7280 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
7281 (tui_cmd_window, tui_source_window_base, tui_source_window)
7282 (tui_disasm_window): Don't declare.
7283 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
7284 to tui-winsource.h.
7285 (SINGLE_KEY): Move to tui-stack.c.
7286
7a02bab7
TT
72872020-07-01 Tom Tromey <tom@tromey.com>
7288
7289 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
7290 std::string.
7291 * tui/tui-regs.c (class tab_expansion_file): New.
7292 (tab_expansion_file::write): New method.
7293 (tui_register_format): Change return type. Use
7294 tab_expansion_file.
7295 (tui_get_register, tui_data_window::display_registers_from)
7296 (tui_data_item_window::rerender): Update.
7297 * tui/tui-io.h (tui_expand_tabs): Don't declare.
7298 * tui/tui-io.c (tui_expand_tabs): Remove.
7299
ea68593b
TT
73002020-07-01 Tom Tromey <tom@tromey.com>
7301
7302 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
7303
a8caed5d
FS
73042020-07-01 Fangrui Song <maskray@google.com>
7305
7306 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
7307
9cdf9820
AKS
73082020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7309
7310 * dwarf2/read.c (set_die_type): Removed conditions to restrict
7311 forms for DW_AT_associated and DW_AT_allocated attributes,
7312 which is already checked in function attr_to_dynamic_prop.
7313
a1520ad8
TT
73142020-06-30 Tom Tromey <tromey@adacore.com>
7315
7316 * dwarf2/read.c (quirk_rust_enum): Correctly call
7317 alloc_rust_variant for default-less enum.
7318
5ac58899
TT
73192020-06-30 Tom Tromey <tromey@adacore.com>
7320
7321 PR build/26183:
7322 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
7323 gdb::to_string.
7324
19b187a9
SM
73252020-06-29 Simon Marchi <simon.marchi@efficios.com>
7326
7327 * gdbarch.sh (displaced_step_copy_insn): Update doc.
7328 * gdbarch.h: Re-generate.
7329
cd4c4c07
TT
73302020-06-28 Tom Tromey <tom@tromey.com>
7331
7332 * command.h (cmd_types): Remove.
7333 (cmd_type): Don't declare.
7334 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
7335 typedef.
7336 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
7337 * cli/cli-decode.c (cmd_type): Remove.
7338
05779d57
PA
73392020-06-27 Pedro Alves <palves@redhat.com>
7340
7341 * fork-child.c (prefork_hook): Adjust.
7342 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
7343 Delete.
7344 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
7345 * inferior.c (inferior::set_tty, inferior::tty): New methods.
7346 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
7347 Remove declarations.
7348 (struct inferior) <set_tty, tty>: New methods.
7349 (struct inferior) <terminal>: Rename to ...
7350 (struct inferior) <m_terminal>: ... this and make private.
7351 * main.c (captured_main_1): Adjust.
7352 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
7353 (mi_cmd_inferior_tty_show): Adjust.
7354 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
7355 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
7356
1776e3e5
NA
73572020-06-26 Nick Alcock <nick.alcock@oracle.com>
7358
7359 * configure.ac: Add --enable-libctf: handle --disable-static
7360 properly.
7361 * acinclude.m4: sinclude ../config/enable.m4.
7362 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
7363 (LIBCTF): Substitute in.
7364 (CTF_DEPS): New, likewise.
7365 (CLIBS): libctf needs symbols from libbfd: move earlier.
7366 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
7367 flags.
7368 * ctfread.c: Surround in ENABLE_LIBCTF.
7369 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
7370 * configure: Regenerate.
7371 * config.in: Likewise.
7372
58373b80
SM
73732020-06-25 Simon Marchi <simon.marchi@efficios.com>
7374
7375 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
7376
277474ee
SM
73772020-06-25 Simon Marchi <simon.marchi@efficios.com>
7378
7379 * inferior.h (struct inferior) <terminal>: Change type to
7380 gdb::unique_xmalloc_ptr<char>.
7381 * inferior.c (inferior::~inferior): Don't free inf->terminal.
7382 * infcmd.c (set_inferior_io_terminal): Don't free terminal
7383 field, adjust to unique pointer.
7384 (get_inferior_io_terminal): Adjust to unique pointer.
7385
6d74da72
AB
73862020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7387
7388 * riscv-tdep.c (riscv_print_registers_info): Loop over all
7389 registers, not just the known core set of registers.
7390
2e52d038
AB
73912020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7392
7393 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
7394 fflags, frm, and fcsr registers.
7395 (riscv_register_reggroup_p): Remove unknown CSRs from save and
7396 restore groups.
7397 (riscv_tdesc_unknown_reg): New function.
7398 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
7399 tdesc_use_registers.
7400 * riscv-tdep.h (struct gdbarch_tdep): Add
7401 unknown_csrs_first_regnum, unknown_csrs_count,
7402 duplicate_fflags_regnum, duplicate_frm_regnum, and
7403 duplicate_fcsr_regnum fields.
7404
be64fd07
AB
74052020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7406
7407 * target-descriptions.c (tdesc_use_registers): Add new parameter a
7408 callback, use the callback (when not null) to help number unknown
7409 registers.
7410 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
7411 (tdesc_use_registers): Add extra parameter to declaration.
7412
3b9fce96
AB
74132020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7414
7415 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
7416 in the file.
7417 (class riscv_pending_register_alias): Likewise.
7418 (riscv_register_feature::register_info): Change 'required_p' field
7419 to 'required', and change its type. Add 'check' member function.
7420 (riscv_register_feature::register_info::check): Define new member
7421 function.
7422 (riscv_xreg_feature): Change initialisation of 'required' field.
7423 (riscv_freg_feature): Likewise.
7424 (riscv_virtual_feature): Likewise.
7425 (riscv_csr_feature): Likewise.
7426 (riscv_check_tdesc_feature): Take extra parameter, the csr
7427 tdesc_feature, rewrite the function to use the new
7428 riscv_register_feature::register_info::check function.
7429 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
7430
865bad26
AB
74312020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7432
7433 * features/Makefile: Remove all references to the deleted files
7434 below.
7435 * features/riscv/32bit-csr.c: Deleted.
7436 * features/riscv/32bit-csr.xml: Deleted.
7437 * features/riscv/64bit-csr.c: Deleted.
7438 * features/riscv/64bit-csr.xml: Deleted.
7439 * features/riscv/rebuild-csr-xml.sh: Deleted.
7440
ed69cbc8
AB
74412020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7442
7443 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
7444 whitespace error for declaration of names member variable.
7445 (struct riscv_register_feature): Add new prefer_first_name member
7446 variable, and fix whitespace error in declaration of registers.
7447 (riscv_xreg_feature): Initialize prefer_first_name field.
7448 (riscv_freg_feature): Likewise.
7449 (riscv_virtual_feature): Likewise.
7450 (riscv_csr_feature): Likewise.
7451 (riscv_register_name): Expand on comments. Remove register name
7452 modifications for CSR and virtual registers.
7453
4445e8f5
AB
74542020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7455
7456 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
7457 errors.
7458
767a879e
AB
74592020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7460
7461 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
7462 riscv-opc.h.
7463 (class riscv_pending_register_alias): New class.
7464 (riscv_check_tdesc_feature): Take vector of pending aliases and
7465 populate it as appropriate.
7466 (riscv_setup_register_aliases): Delete.
7467 (riscv_gdbarch_init): Create vector of pending aliases and pass it
7468 to riscv_check_tdesc_feature in all cases. Use the vector to
7469 create the register aliases.
7470
bb6e55f3
RO
74712020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7472
7473 * sol2-tdep.c (sol2_static_transform_name): Remove.
7474 (sol2_init_abi): Don't register it.
7475 * gdbarch.sh (static_transform_name): Remove.
7476 * gdbarch.c, gdbarch.h: Regenerate.
7477
7478 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
7479 gdbarch_static_transform_name.
7480 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
7481 * stabsread.c (define_symbol) <'X'>: Remove.
7482 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
7483 handling.
7484 <'V'>: Likewise.
7485 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
7486 <'S'>: Remove call to gdbarch_static_transform_name.
7487
c6d36836
RO
74882020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7489
7490 * procfs.c (procfs_pre_trace): New function.
7491 (procfs_target::create_inferior): Pass it to fork_inferior.
7492
a7e6196b
RO
74932020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7494
7495 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
7496 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
7497 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
7498 sol2-tdep.o, sparc-sol2-tdep.o.
7499 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
7500 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
7501 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
7502 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
7503
d412e696
RO
75042020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7505
7506 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
7507 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
7508 Call sol2_init_abi.
7509 Remove calls to set_gdbarch_skip_solib_resolver,
7510 set_gdbarch_core_pid_to_str.
7511 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
7512 (i386_sol2_static_transform_name): Remove.
7513 (i386_sol2_init_abi): Call sol2_init_abi.
7514 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7515 set_gdbarch_static_transform_name,
7516 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
7517 Use sol2_sigtramp_p.
7518 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
7519 (sol2_sigtramp_p): New function.
7520 (sol2_static_transform_name): New function.
7521 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
7522 (sol2_init_abi): New function.
7523 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
7524 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
7525 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
7526 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
7527 (sparc_sol2_static_transform_name): Remove.
7528 (sparc32_sol2_init_abi): Call sol2_init_abi.
7529 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7530 set_gdbarch_static_transform_name,
7531 set_gdbarch_skip_solib_resolver,
7532 set_gdbarch_core_pid_to_str.
7533 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
7534 (sparc_sol2_static_transform_name): Remove
7535 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
7536 call sol2_sigtramp_p.
7537 (sparc64_sol2_init_abi): Call sol2_init_abi.
7538 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7539 set_gdbarch_static_transform_name,
7540 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
7541
a8654e7d
PW
75422020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7543
7544 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
7545 * exec.c (validate_exec_file): If from_tty, set both
7546 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
7547 * symfile.c (symbol_file_add_with_addrs): if always_confirm
7548 and from_tty, unconditionally ask a confirmation.
7549
caa7fd04
AB
75502020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7551
7552 * target-descriptions.c (tdesc_architecture_name): Protect against
7553 NULL pointer dereference.
7554 (maint_print_xml_tdesc_cmd): New function.
7555 (_initialize_target_descriptions): Register new 'maint print
7556 xml-tdesc' command and give it the filename completer.
7557 * NEWS: Mention new 'maint print xml-tdesc' command.
7558
fbf42f4e
AB
75592020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7560
7561 * target-descriptions.c (class tdesc_compatible_info): New class.
7562 (struct target_desc): Change type of compatible vector.
7563 (tdesc_compatible_p): Update for change in type of
7564 target_desc::compatible.
7565 (tdesc_compatible_info_list): New function.
7566 (tdesc_compatible_info_arch_name): New function.
7567 (tdesc_add_compatible): Update for change in type of
7568 target_desc::compatible.
7569 (print_c_tdesc::visit_pre): Likewise.
7570
20821f4e
AB
75712020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7572
7573 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
7574 whitespace to underscore.
7575 (maint_print_c_tdesc_cmd): Use fake filename for target
7576 descriptions that came from the target.
7577 (_initialize_target_descriptions): Add filename command completion
7578 for 'maint print c-tdesc'.
7579
1fb5ee62
SM
75802020-06-23 Simon Marchi <simon.marchi@efficios.com>
7581
7582 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
7583 lines.
7584
fc3ecb3e
SM
75852020-06-23 Simon Marchi <simon.marchi@efficios.com>
7586
7587 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
7588 lines.
7589 (dwarf2_find_location_expression): Likewise.
7590 (call_site_parameter_matches): Likewise.
7591 (dwarf2_compile_expr_to_ax): Likewise.
7592 (disassemble_dwarf_expression): Likewise.
7593 (loclist_describe_location): Likewise.
7594
236ef034
PA
75952020-06-23 Pedro Alves <palves@redhat.com>
7596
7597 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
7598 progspace-and-thread.h. Include scoped-mock-context.h instead.
7599 (register_to_value_test): Use scoped_mock_context.
7600 * regcache.c: Include "scoped-mock-context.h".
7601 (cooked_read_test): Don't error out if a target is already pushed.
7602 Use scoped_mock_context. Adjust.
7603 * scoped-mock-context.h: New file.
7604
39e7ecca
AB
76052020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7606
7607 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
7608 initializer.
7609 (ada_language::is_string_type_p): New member function.
7610 * c-lang.c (c_language_data): Delete la_is_string_type_p
7611 initializer.
7612 (cplus_language_data): Likewise.
7613 (asm_language_data): Likewise.
7614 (minimal_language_data): Likewise.
7615 * d-lang.c (d_language_data): Likewise.
7616 * f-lang.c (f_is_string_type_p): Delete function, implementation
7617 moved to f_language::is_string_type_p.
7618 (f_language_data): Delete la_is_string_type_p initializer.
7619 (f_language::is_string_type_p): New member function,
7620 implementation from f_is_string_type_p.
7621 * go-lang.c (go_is_string_type_p): Delete function, implementation
7622 moved to go_language::is_string_type_p.
7623 (go_language_data): Delete la_is_string_type_p initializer.
7624 (go_language::is_string_type_p): New member function,
7625 implementation from go_is_string_type_p.
7626 * language.c (language_defn::is_string_type_p): Define new member
7627 function.
7628 (default_is_string_type_p): Make static, add comment copied from
7629 header file.
7630 (unknown_language_data): Delete la_is_string_type_p initializer.
7631 (unknown_language::is_string_type_p): New member function.
7632 (auto_language_data): Delete la_is_string_type_p initializer.
7633 (auto_language::is_string_type_p): New member function.
7634 * language.h (language_data): Delete la_is_string_type_p field.
7635 (language_defn::is_string_type_p): Declare new function.
7636 (default_is_string_type_p): Delete desclaration, move comment to
7637 definition.
7638 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
7639 moved to m2_language::is_string_type_p.
7640 (m2_language_data): Delete la_is_string_type_p initializer.
7641 (m2_language::is_string_type_p): New member function,
7642 implementation from m2_is_string_type_p.
7643 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
7644 initializer.
7645 * opencl-lang.c (opencl_language_data): Likewise.
7646 * p-lang.c (pascal_is_string_type_p): Delete function,
7647 implementation moved to pascal_language::is_string_type_p.
7648 (pascal_language_data): Delete la_is_string_type_p initializer.
7649 (pascal_language::is_string_type_p): New member function,
7650 implementation from pascal_is_string_type_p.
7651 * rust-lang.c (rust_is_string_type_p): Delete function,
7652 implementation moved to rust_language::is_string_type_p.
7653 (rust_language_data): Delete la_is_string_type_p initializer.
7654 (rust_language::is_string_type_p): New member function,
7655 implementation from rust_is_string_type_p.
7656 * valprint.c (val_print_scalar_or_string_type_p): Update call to
7657 is_string_type_p.
7658
4ffc13fb
AB
76592020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7660
7661 * ada-lang.c (ada_language_data): Delete la_print_typedef
7662 initializer.
7663 (ada_language::print_typedef): New member function.
7664 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
7665 (cplus_language_data): Likewise.
7666 (asm_language_data): Likewise.
7667 (minimal_language_data): Likewise.
7668 * d-lang.c (d_language_data): Likewise.
7669 * f-lang.c (f_language_data): Likewise.
7670 (f_language::print_typedef): New member function.
7671 * go-lang.c (go_language_data): Delete la_print_typedef
7672 initializer.
7673 * language.c (language_defn::print_typedef): Define member
7674 function.
7675 (unknown_language_data): Delete la_print_typedef initializer.
7676 (unknown_language::print_typedef): New member function.
7677 (auto_language_data): Delete la_print_typedef initializer.
7678 (auto_language::print_typedef): New member function.
7679 * language.h (language_data): Delete la_print_typedef field.
7680 (language_defn::print_typedef): Declare new member function.
7681 (LA_PRINT_TYPEDEF): Update call to print_typedef.
7682 (default_print_typedef): Delete declaration.
7683 * m2-lang.c (m2_language_data): Delete la_print_typedef
7684 initializer.
7685 (m2_language::print_typedef): New member function.
7686 * objc-lang.c (objc_language_data): Delete la_print_typedef
7687 initializer.
7688 * opencl-lang.c (opencl_language_data): Likewise.
7689 * p-lang.c (pascal_language_data): Likewise.
7690 (pascal_language::print_typedef): New member function.
7691 * rust-lang.c (rust_print_typedef): Delete function,
7692 implementation moved to rust_language::print_typedef.
7693 (rust_language): Delete la_print_typedef initializer.
7694 (rust_language::print_typedef): New member function,
7695 implementation from rust_print_typedef.
7696 * typeprint.c (default_print_typedef): Delete.
7697
d711ee67
AB
76982020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7699
7700 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
7701 (ada_language::printstr): New member function.
7702 * c-lang.c (c_language_data): Delete la_printstr initializer.
7703 (cplus_language_data): Likewise.
7704 (asm_language_data): Likewise.
7705 (minimal_language_data): Likewise.
7706 * d-lang.c (d_language_data): Likewise.
7707 * f-lang.c (f_printstr): Rename to f_language::printstr.
7708 (f_language_data): Delete la_printstr initializer.
7709 (f_language::printstr): New member function, implementation from
7710 f_printstr.
7711 * go-lang.c (go_language_data): Delete la_printstr initializer.
7712 * language.c (language_defn::printstr): Define new member
7713 function.
7714 (unk_lang_printstr): Delete.
7715 (unknown_language_data): Delete la_printstr initializer.
7716 (unknown_language::printstr): New member function.
7717 (auto_language_data): Delete la_printstr initializer.
7718 (auto_language::printstr): New member function.
7719 * language.h (language_data): Delete la_printstr field.
7720 (language_defn::printstr): Declare new member function.
7721 (LA_PRINT_STRING): Update call to printstr.
7722 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
7723 (m2_language_data): Delete la_printstr initializer.
7724 (m2_language::printstr): New member function, implementation from
7725 m2_printstr.
7726 * objc-lang.c (objc_language_data): Delete la_printstr
7727 initializer.
7728 * opencl-lang.c (opencl_language_data): Likewise.
7729 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
7730 (pascal_language_data): Delete la_printstr initializer.
7731 (pascal_language::printstr): New member function, implementation
7732 from pascal_printstr.
7733 * p-lang.h (pascal_printstr): Delete declaration.
7734 * rust-lang.c (rust_printstr): Update header comment.
7735 (rust_language_data): Delete la_printstr initializer.
7736 (rust_language::printstr): New member function.
7737
52b50f2c
AB
77382020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7739
7740 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
7741 (ada_language::printchar): New member function.
7742 * c-lang.c (c_language_data): Delete la_printchar initializer.
7743 (cplus_language_data): Likewise.
7744 (asm_language_data): Likewise.
7745 (minimal_language_data): Likewise.
7746 * d-lang.c (d_language_data): Likewise.
7747 * f-lang.c (f_printchar): Rename to f_language::printchar.
7748 (f_language_data): Delete la_printchar initializer.
7749 (f_language::printchar): New member function, implementation from
7750 f_printchar.
7751 * go-lang.c (go_language_data): Delete la_printchar initializer.
7752 * language.c (unk_lang_printchar): Delete.
7753 (language_defn::printchar): Define new member function.
7754 (unknown_language_data): Delete la_printchar initializer.
7755 (unknown_language::printchar): New member function.
7756 (auto_language_data): Delete la_printchar initializer.
7757 (auto_language::printchar): New member function.
7758 * language.h (language_data): Delete la_printchar field.
7759 (language_defn::printchar): Declare new member function.
7760 (LA_PRINT_CHAR): Update call to printchar.
7761 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
7762 (m2_language::printchar): New member function.
7763 * objc-lang.c (objc_language_data): Delete la_printchar
7764 initializer.
7765 * opencl-lang.c (opencl_language_data): Likewise.
7766 * p-lang.c (pascal_language_data): Delete la_printchar
7767 initializer.
7768 (pascal_language::printchar): New member function.
7769 * rust-lang.c (rust_printchar): Rename to
7770 rust_language::printchar.
7771 (rust_language_data): Delete la_printchar initializer.
7772 (rust_language::printchar): New member function, implementation
7773 from rust_printchar.
7774
ec8cec5b
AB
77752020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7776
7777 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
7778 (ada_language_data): Delete la_emitchar initializer.
7779 (ada_language::emitchar): New member function, implementation from
7780 emit_char.
7781 * c-lang.c (c_language_data): Delete la_emitchar initializer.
7782 (cplus_language_data): Likewise.
7783 (asm_language_data): Likewise.
7784 (minimal_language_data): Likewise.
7785 * d-lang.c (d_language_data): Likewise.
7786 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
7787 (f_language_data): Delete la_emitchar initializer.
7788 (f_language::emitchar): New member function, implementation from
7789 f_emit_char.
7790 * go-lang.c (go_language_data): Delete la_emitchar initializer.
7791 * language.c (unk_lang_emit_char): Delete.
7792 (language_defn::emitchar): New member function definition.
7793 (unknown_language_data): Delete la_emitchar initializer.
7794 (unknown_language::emitchar): New member function.
7795 (auto_language_data): Delete la_emitchar initializer.
7796 (auto_language::emitchar): New member function.
7797 * language.h (language_data): Delete la_emitchar field.
7798 (language_defn::emitchar): New member field declaration.
7799 (LA_EMIT_CHAR): Update call to emitchar.
7800 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
7801 (m2_language_data): Delete la_emitchar initializer.
7802 (m2_language::emitchar): New member function, implementation from
7803 m2_emit_char.
7804 * objc-lang.c (objc_language_data): Delete la_emitchar
7805 initializer.
7806 * opencl-lang.c (opencl_language_data): Likewise.
7807 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
7808 (pascal_language_data): Delete la_emitchar initializer.
7809 (pascal_language::emitchar): New member function, implementation
7810 from pascal_emit_char.
7811 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
7812 (rust_language_data): Delete la_emitchar initializer.
7813 (rust_language::emitchar): New member function, implementation
7814 from rust_emitchar.
7815
1bf9c363
AB
78162020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7817
7818 * ada-lang.c (resolve): Rename to ada_language::post_parser.
7819 (ada_language_data): Delete la_post_parser initializer.
7820 (ada_language::post_parser): New member function.
7821 * c-lang.c (c_language_data): Delete la_post_parser initializer.
7822 (cplus_language_data): Likewise.
7823 (asm_language_data): Likewise.
7824 (minimal_language_data): Likewise.
7825 * d-lang.c (d_language_data): Likewise.
7826 * f-lang.c (f_language_data): Likewise.
7827 * go-lang.c (go_language_data): Likewise.
7828 * language.c (unknown_language_data): Likewise.
7829 (auto_language_data): Likewise.
7830 * language.h (language_data): Delete la_post_parser field.
7831 (language_defn::post_parser): New member function.
7832 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
7833 * objc-lang.c (objc_language_data): Likewise.
7834 * opencl-lang.c (opencl_language_data): Likewise.
7835 * p-lang.c (pascal_language_data): Likewise.
7836 * parse.c (parse_exp_in_context): Update call to post_parser.
7837 (null_post_parser): Delete definition.
7838 * parser-defs.h (null_post_parser): Delete declaration.
7839 * rust-lang.c (rust_language_data): Delete la_post_parser
7840 initializer.
7841
87afa652
AB
78422020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7843
7844 * ada-lang.c (parse): Rename to ada_language::parser.
7845 (ada_language_data): Delete la_parser initializer.
7846 (ada_language::parser): New member function, implementation from
7847 parse.
7848 * c-lang.c (c_language_data): Delete la_parser initializer.
7849 (cplus_language_data): Likewise.
7850 (asm_language_data): Likewise.
7851 (minimal_language_data): Likewise.
7852 * d-lang.c (d_language_data): Likewise.
7853 (d_language::parser): New member function.
7854 * f-lang.c (f_language_data): Delete la_parser initializer.
7855 (f_language::parser): New member function.
7856 * go-lang.c (go_language_data): Delete la_parser initializer.
7857 (go_language::parser): New member function.
7858 * language.c (unk_lang_parser): Delete.
7859 (language_defn::parser): Define new member function.
7860 (unknown_language_data): Delete la_parser initializer.
7861 (unknown_language::parser): New member function.
7862 (auto_language_data): Delete la_parser initializer.
7863 (auto_language::parser): New member function.
7864 * language.h (language_data): Delete la_parser field.
7865 (language_defn::parser): Declare new member function.
7866 * m2-lang.c (m2_language_data): Delete la_parser initializer.
7867 (m2_language::parser): New member function.
7868 * objc-lang.c (objc_language_data): Delete la_parser initializer.
7869 * opencl-lang.c (opencl_language_data): Likewise.
7870 * p-lang.c (pascal_language_data): Likewise.
7871 (pascal_language::parser): New member function.
7872 * parse.c (parse_exp_in_context): Update call to parser.
7873 * rust-lang.c (rust_language_data): Delete la_parser initializer.
7874 (rust_language::parser): New member function.
7875
37825800
AB
78762020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7877
7878 * top.c (print_gdb_configuration): Print --with-python-libdir
7879 configuration value.
7880
5b860c93
PW
78812020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7882
7883 * NEWS: Mention change to the alias command.
7884
cf00cd6f
PW
78852020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7886
7887 * cli/cli-cmds.c (lookup_cmd_for_default_args)
7888 (alias_command_completer)
7889 (make_alias_options_def_group): New functions.
7890 (alias_opts, alias_option_defs): New struct and array.
7891 (alias_usage_error): Update usage.
7892 (alias_command): Handles optional DEFAULT-ARGS... arguments.
7893 Use option framework.
7894 (_initialize_cli_cmds): Update alias command help.
7895 Update aliases command help.
7896 (show_user):
7897 Add NULL for new default_args lookup_cmd argument.
7898 (valid_command_p): Rename to validate_aliased_command.
7899 Add NULL for new default_args lookup_cmd argument. Verify that the
7900 aliased_command has no default args.
7901 * cli/cli-decode.c (help_cmd): Show aliases definitions.
7902 (lookup_cmd_1, lookup_cmd): New argument default_args.
7903 (add_alias_cmd):
7904 Add NULL for new default_args lookup_cmd argument.
7905 (print_help_for_command): Show default args under the layout
7906 alias some_alias = some_aliased_cmd some_alias_default_arg.
7907 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
7908 xfree default_args in destructor.
7909 * cli/cli-script.c (process_next_line, do_define_command):
7910 Add NULL for new default_args lookup_cmd argument.
7911 * command.h: Declare new default_args argument in lookup_cmd
7912 and lookup_cmd_1.
7913 * completer.c (complete_line_internal_1):
7914 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7915 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
7916 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
7917 Likewise.
7918 * infcmd.c (_initialize_infcmd): Likewise.
7919 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
7920 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
7921 * python/py-param.c (add_setshow_generic): Likewise.
7922 * remote.c (_initialize_remote): Likewise.
7923 * top.c (execute_command): Prepend default_args if command has some.
7924 (set_verbose):
7925 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7926 * tracepoint.c (validate_actionline, encode_actions_1):
7927 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7928
bd920864
TBA
79292020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7930
7931 * jit.c (jit_read_descriptor): Use bool as the return type.
7932 (jit_breakpoint_re_set_internal): Use bool as the return type.
7933 Invert the return value logic; return true if the jit breakpoint
7934 has been successfully initialized.
7935 (jit_inferior_init): Update the call to
7936 jit_breakpoint_re_set_internal.
7937
f8098322
PA
79382020-06-22 Pedro Alves <palves@redhat.com>
7939
7940 PR gdb/25939
7941 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
7942 Use the current inferior instead. Don't return
7943 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
7944 wait again.
7945 * sol-thread.c (sol_thread_target::wait): Don't reference
7946 inferior_ptid.
7947 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
7948 (sol_update_thread_list_callback): Use the current inferior's pid
7949 instead of inferior_ptid.
7950
196535a6
RO
79512020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7952
7953 * procfs.c: Cleanup many comments.
7954
7955 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
7956 (AFTER_WATCHFLAG): Replace by value.
7957
7958 (MAIN_PROC_NAME_FORMAT): Inline ...
7959 (create_procinfo): ... here.
7960
7961 (procfs_debug_inferior): Remove SYS_exec handling.
7962 (syscall_is_exec): Likewise.
7963 (procfs_set_exec_trap): Likewise.
7964
7965 (syscall_is_lwp_exit): Inline in callers.
7966 (syscall_is_exit): Likewise.
7967 (syscall_is_exec): Likewise.
7968 (syscall_is_lwp_create): Likewise.
7969
7970 (invalidate_cache): Remove #if 0 code.
7971
7972 (make_signal_thread_runnable): Remove.
7973 (procfs_target::resume): Remove #if 0 code.
7974
cf6f3e86
RO
79752020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7976
7977 PR gdb/25939
7978 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
7979 call ...
7980 (procfs_target::create_inferior): ... here.
7981
48e9cc84
PW
79822020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7983
7984 * exec.c (validate_exec_file): Ensure the build-id is up to
7985 date by calling reopen_exec_file (that checks file timestamp
7986 to decide to re-read the file).
7987
3922b302
PA
79882020-06-18 Pedro Alves <palves@redhat.com>
7989
7990 PR gdb/25412
7991 * gdbthread.h (delete_thread, delete_thread_silent)
7992 (find_thread_ptid): Update comments.
7993 * thread.c (current_thread_): New global.
7994 (is_current_thread): Move higher, and reimplement.
7995 (inferior_thread): Reimplement.
7996 (set_thread_exited): Use bool. Add assertions.
7997 (add_thread_silent): Simplify thread-reuse handling by always
7998 calling delete_thread.
7999 (delete_thread): Remove intro comment.
8000 (find_thread_ptid): Skip exited threads.
8001 (switch_to_thread_no_regs): Write to current_thread_.
8002 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
8003 INFERIOR_PTID. Clear current_thread_.
8004
6dbdab44
PA
80052020-06-18 Pedro Alves <palves@redhat.com>
8006
8007 * aix-thread.c (pd_update): Use switch_to_thread.
8008
2da4b788
PA
80092020-06-18 Pedro Alves <palves@redhat.com>
8010
8011 * ravenscar-thread.c (ravenscar_thread_target): Update.
8012 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
8013 (ravenscar_thread_target::add_active_thread): ... this. Don't
8014 set m_base_ptid here. Update to avoid referencing inferior_ptid.
8015 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
8016
50838d1b
PA
80172020-06-18 Pedro Alves <palves@redhat.com>
8018
8019 * nat/windows-nat.c (current_windows_thread): Remove.
8020 * nat/windows-nat.h (current_windows_thread): Remove.
8021 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
8022 Adjust.
8023 (display_selectors): Adjust to fetch the current
8024 windows_thread_info based on inferior_ptid.
8025 (fake_create_process): No longer write to current_windows_thread.
8026 (windows_nat_target::get_windows_debug_event):
8027 Don't set inferior_ptid or current_windows_thread.
8028 (windows_nat_target::wait): Adjust to not rely on
8029 current_windows_thread.
8030 (do_initial_windows_stuff): Now a method of windows_nat_target.
8031 Switch to the last_ptid thread.
8032 (windows_nat_target::attach): Adjust.
8033 (windows_nat_target::detach): Use switch_to_no_thread instead of
8034 writing to inferior_ptid directly.
8035 (windows_nat_target::create_inferior): Adjust.
8036
31ce04e9
PA
80372020-06-18 Pedro Alves <palves@redhat.com>
8038
8039 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
8040
1ee1a363
PA
80412020-06-18 Pedro Alves <palves@redhat.com>
8042
8043 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
8044 after creating it, instead of writing to inferior_ptid. Don't
8045 write to inferior_ptid.
8046
6d350754
PA
80472020-06-18 Pedro Alves <palves@redhat.com>
8048
8049 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
8050
5d971d48
PA
80512020-06-18 Pedro Alves <palves@redhat.com>
8052
8053 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
8054 it, instead of writing to inferior_ptid.
8055
86e57d1b
PA
80562020-06-18 Pedro Alves <palves@redhat.com>
8057
8058 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
8059 to inferior_ptid.
8060
f2e1c129
PA
80612020-06-18 Pedro Alves <palves@redhat.com>
8062
8063 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
8064 instead of writing to inferior_ptid directly.
8065
60db1b85
PA
80662020-06-18 Pedro Alves <palves@redhat.com>
8067
8068 * corelow.c (core_target::close): Use switch_to_no_thread instead
8069 of writing to inferior_ptid directly.
8070 (add_to_thread_list, core_target_open): Use switch_to_thread
8071 instead of writing to inferior_ptid directly.
8072
fe7d6a8d
PA
80732020-06-18 Pedro Alves <palves@redhat.com>
8074
8075 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
8076 inferior_ptid.
8077 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
8078 inferior_ptid.
8079 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
8080 inferior_ptid directly.
8081 (darwin_nat_target::init_thread_list): Switch to thread, instead
8082 of writing to inferior_ptid.
8083 (darwin_nat_target::attach): Don't write to inferior_ptid.
8084 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
8085
975f8708
PA
80862020-06-18 Pedro Alves <palves@redhat.com>
8087
8088 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
8089 thread.
8090 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
8091 Instead use switch_to_thread.
8092 (gnu_nat_target::detach): Use switch_to_no_thread
8093 instead of writing to inferior_ptid directly. Used passed-in
8094 inferior instead of looking up the inferior by pid.
8095
1a204730
PA
80962020-06-18 Pedro Alves <palves@redhat.com>
8097
8098 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
8099 inferior_ptid.
8100
ebe84f23
PA
81012020-06-18 Pedro Alves <palves@redhat.com>
8102
8103 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
8104 inferior_ptid.
8105 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
8106 thread.
8107 (nto_procfs_target::detach): Avoid referencing
8108 inferior_ptid. Use switch_to_no_thread instead of writing to
8109 inferior_ptid directly.
8110 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
8111 instead of writing to inferior_ptid directly.
8112 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
8113 to thread.
8114
191f02e5
PA
81152020-06-18 Pedro Alves <palves@redhat.com>
8116
8117 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
8118 after creating it, instead of writing to inferior_ptid.
8119 (gdbsim_target_open): Use switch_to_no_thread instead of writing
8120 to inferior_ptid directly.
8121 (gdbsim_target::wait): Don't write to inferior_ptid.
8122
0ac55310
PA
81232020-06-18 Pedro Alves <palves@redhat.com>
8124
8125 * remote.c (remote_target::remote_notice_new_inferior): Use
8126 switch_to_thread instead of writing to inferior_ptid directly.
8127 (remote_target::add_current_inferior_and_thread): Use
8128 switch_to_no_thread instead of writing to inferior_ptid directly.
8129 (extended_remote_target::attach): Use switch_to_inferior_no_thread
8130 and switch_to_thread instead of using set_current_inferior or
8131 writing to inferior_ptid directly.
8132
5233f39b
PA
81332020-06-18 Pedro Alves <palves@redhat.com>
8134
8135 * tracectf.c (ctf_target_open): Switch to added thread instead of
8136 writing to inferior_ptid directly.
8137 (ctf_target::close): Use switch_to_no_thread instead of writing to
8138 inferior_ptid directly.
8139
087e161b
PA
81402020-06-18 Pedro Alves <palves@redhat.com>
8141
8142 * tracefile-tfile.c (tfile_target_open): Don't write to
8143 inferior_ptid directly, instead switch to added thread.
8144 (tfile_target::close): Use switch_to_no_thread instead of writing
8145 to inferior_ptid directly.
8146
7fb43e53
PA
81472020-06-18 Pedro Alves <palves@redhat.com>
8148
8149 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
8150 (procfs_target::detach): Use switch_to_no_thread
8151 instead of writing to inferior_ptid directly.
8152 (do_attach): Change return type to void. Switch to the added
8153 thread.
8154 (procfs_target::create_inferior): Switch to the added thread.
8155 (procfs_do_thread_registers): Don't write to inferior_ptid.
8156
18493a00
PA
81572020-06-18 Pedro Alves <palves@redhat.com>
8158
8159 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
8160 of writing to inferior_ptid.
8161 (scoped_restore_exited_inferior): Delete.
8162 (handle_vfork_child_exec_or_exit): Simplify using
8163 scoped_restore_current_pspace_and_thread. Use switch_to_thread
8164 instead of writing to inferior_ptid.
8165 (THREAD_STOPPED_BY): Delete.
8166 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
8167 (thread_stopped_by_hw_breakpoint): Delete.
8168 (save_waitstatus): Use
8169 scoped_restore_current_thread+switch_to_thread, and call
8170 target_stopped_by_watchpoint instead of
8171 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
8172 instead of thread_stopped_by_sw_breakpoint, and
8173 target_stopped_by_hw_breakpoint instead of
8174 thread_stopped_by_hw_breakpoint.
8175 (handle_inferior_event)
8176 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
8177 inferior_ptid directly, nor
8178 set_current_inferior/set_current_program_space. Use
8179 switch_to_thread / switch_to_inferior_no_thread instead.
8180
a0776b13
PA
81812020-06-18 Pedro Alves <palves@redhat.com>
8182
8183 * target.c (generic_mourn_inferior): Use switch_to_no_thread
8184 instead of writing to inferior_ptid.
8185
6155c136
PA
81862020-06-18 Pedro Alves <palves@redhat.com>
8187
8188 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
8189 added thread.
8190 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
8191 to the added thread.
8192 (inf_ptrace_target::detach_success): Use switch_to_no_thread
8193 instead of writing to inferior_ptid.
8194
c5316fc6
PA
81952020-06-18 Pedro Alves <palves@redhat.com>
8196
8197 * gdbarch-selftests.c: Include "progspace-and-thread.h".
8198 (register_to_value_test): Mock a program_space too. Heap-allocate
8199 the address space. Don't write to inferior_ptid. Use
8200 switch_to_thread instead.
8201
8df01799
PA
82022020-06-18 Pedro Alves <palves@redhat.com>
8203
8204 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
8205 Delete.
8206 (find_signalled_thread()): New, factored out from
8207 linux_make_corefile_notes and adjusted to handle exited threads.
8208 (linux_make_corefile_notes): Adjust to use the new
8209 find_signalled_thread.
8210
41792d68
PA
82112020-06-18 Pedro Alves <palves@redhat.com>
8212
8213 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
8214 of saving/restoring inferior_ptid.
8215
612f258a
TT
82162020-06-17 Tom Tromey <tom@tromey.com>
8217
8218 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
8219 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
8220 declare.
8221 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
8222
efb763a5
SM
82232020-06-15 Simon Marchi <simon.marchi@efficios.com>
8224
8225 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
8226 of partial symtabs.
8227
2951f6c0
SM
82282020-06-17 Simon Marchi <simon.marchi@efficios.com>
8229
8230 * regformats/reg-arm.dat: Remove.
8231 * regformats/reg-bfin.dat: Remove.
8232 * regformats/reg-cris.dat: Remove.
8233 * regformats/reg-crisv32.dat: Remove.
8234 * regformats/reg-m32r.dat: Remove.
8235 * regformats/reg-tilegx.dat: Remove.
8236 * regformats/reg-tilegx32.dat: Remove.
8237
7d458ea5
SM
82382020-06-17 Simon Marchi <simon.marchi@efficios.com>
8239
8240 * features/Makefile (WHICH): Remove arm files.
8241 * regformats/arm/arm-with-iwmmxt.dat: Remove.
8242 * regformats/arm/arm-with-neon.dat: Remove.
8243 * regformats/arm/arm-with-vfpv2.dat: Remove.
8244 * regformats/arm/arm-with-vfpv3.dat: Remove.
8245
3af96c0d
SM
82462020-06-17 Simon Marchi <simon.marchi@efficios.com>
8247
8248 * features/Makefile (XMLTOC): Remove rx.xml.
8249
b25e22fd
PA
82502020-06-17 Pedro Alves <palves@redhat.com>
8251
8252 * gdbthread.h (thread_control_state) <trap_expected> Update
8253 comments.
8254
a78a19b1
AB
82552020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8256
8257 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
8258 ada_language::lookup_symbol_nonlocal.
8259 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
8260 (ada_language::lookup_symbol_nonlocal): New member function,
8261 implementation from ada_lookup_symbol_nonlocal.
8262 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
8263 initializer.
8264 (cplus_language_data): Delete la_lookup_symbol_nonlocal
8265 initializer.
8266 (cplus_language::lookup_symbol_nonlocal): New member function.
8267 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
8268 (minimal_language_data) Likewise.
8269 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
8270 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
8271 initializer.
8272 (d_language::lookup_symbol_nonlocal): New member function.
8273 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
8274 initializer.
8275 (f_language::lookup_symbol_nonlocal): New member function.
8276 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
8277 initializer.
8278 * language.c (unknown_language_data): Likewise.
8279 (auto_language_data): Likewise.
8280 * language.h (language_data): Delete la_lookup_symbol_nonlocal
8281 field.
8282 (language_defn::lookup_symbol_nonlocal): New member function.
8283 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
8284 initializer.
8285 * objc-lang.c (objc_language_data): Likewise.
8286 * opencl-lang.c (opencl_language_data): Likewise.
8287 * p-lang.c (pascal_language_data): Likewise.
8288 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
8289 rust_language::lookup_symbol_nonlocal.
8290 (rust_language_data): Delete la_lookup_symbol_nonlocal
8291 initializer.
8292 (rust_language::lookup_symbol_nonlocal): New member function,
8293 implementation from rust_lookup_symbol_nonlocal.
8294 * symtab.c (lookup_symbol_aux): Update call to
8295 lookup_symbol_nonlocal.
8296 (basic_lookup_symbol_nonlocal): Rename to...
8297 (language_defn::lookup_symbol_nonlocal): ...this, and update
8298 header comment. Remove language_defn parameter, and replace with
8299 uses of `this'.
8300 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
8301
ebe2334e
AB
83022020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8303
8304 * ada-lang.c (ada_language_data): Delete la_value_print_inner
8305 initializer.
8306 (ada_language::value_print_inner): New member function.
8307 * c-lang.c (c_language_data): Delete la_value_print_inner
8308 initializer.
8309 (cplus_language_data): Likewise.
8310 (asm_language_data): Likewise.
8311 (minimal_language_data): Likewise.
8312 * d-lang.c (d_language_data): Likewise.
8313 (d_language::value_print_inner): New member function.
8314 * f-lang.c (f_language_data): Delete la_value_print_inner
8315 initializer.
8316 (f_language::value_print_inner): New member function.
8317 * f-lang.h (f_value_print_innner): Rename to...
8318 (f_value_print_inner): ...this (note spelling of 'inner').
8319 * f-valprint.c (f_value_print_innner): Rename to...
8320 (f_value_print_inner): ...this (note spelling of 'inner').
8321 * go-lang.c (go_language_data): Delete la_value_print_inner
8322 initializer.
8323 (go_language::value_print_inner): New member function.
8324 * language.c (language_defn::value_print_inner): Define new member
8325 function.
8326 (unk_lang_value_print_inner): Delete.
8327 (unknown_language_data): Delete la_value_print_inner initializer.
8328 (unknown_language::value_print_inner): New member function.
8329 (auto_language_data): Delete la_value_print_inner initializer.
8330 (auto_language::value_print_inner): New member function.
8331 * language.h (language_data): Delete la_value_print_inner field.
8332 (language_defn::value_print_inner): Delcare new member function.
8333 * m2-lang.c (m2_language_data): Delete la_value_print_inner
8334 initializer.
8335 (m2_language::value_print_inner): New member function.
8336 * objc-lang.c (objc_language_data): Delete la_value_print_inner
8337 initializer.
8338 * opencl-lang.c (opencl_language_data): Likewise.
8339 * p-lang.c (pascal_language_data): Likewise.
8340 (pascal_language::value_print_inner): New member function.
8341 * rust-lang.c (rust_language_data): Delete la_value_print_inner
8342 initializer.
8343 (rust_language::value_print_inner): New member function.
8344 * valprint.c (do_val_print): Update call to value_print_inner.
8345
a1d1fa3e
AB
83462020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8347
8348 * ada-lang.c (ada_language_data): Delete la_value_print
8349 initializer.
8350 (ada_language::value_print): New member function.
8351 * c-lang.c (c_language_data): Delete la_value_print initializer.
8352 (cplus_language_data): Likewise.
8353 (asm_language_data): Likewise.
8354 (minimal_language_data): Likewise.
8355 * d-lang.c (d_language_data): Likewise.
8356 * f-lang.c (f_language_data): Likewise.
8357 * go-lang.c (go_language_data): Likewise.
8358 * language.c (unk_lang_value_print): Delete.
8359 (language_defn::value_print): Define new member function.
8360 (unknown_language_data): Delete la_value_print initializer.
8361 (unknown_language::value_print): New member function.
8362 (auto_language_data): Delete la_value_print initializer.
8363 (auto_language::value_print): New member function.
8364 * language.h (language_data): Delete la_value_print field.
8365 (language_defn::value_print): Declare new member function.
8366 (LA_VALUE_PRINT): Update call to value_print.
8367 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
8368 * objc-lang.c (objc_language_data): Likewise.
8369 * opencl-lang.c (opencl_language_data): Likewise.
8370 * p-lang.c (pascal_language_data): Likewise.
8371 (pascal_language::value_print): New member function.
8372 * rust-lang.c (rust_language_data): Delete la_value_print
8373 initializer.
8374
f16a9f57
AB
83752020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8376
8377 * ada-lang.c (ada_watch_location_expression): Rename to
8378 ada_language::watch_location_expression.
8379 (ada_language_data): Delete la_watch_location_expression
8380 initializer.
8381 (ada_language::watch_location_expression): New member function,
8382 implementation from ada_watch_location_expression.
8383 * breakpoint.c (watch_command_1): Update call to
8384 watch_location_expression.
8385 * c-lang.c (c_watch_location_expression): Rename to
8386 language_defn::watch_location_expression.
8387 (c_language_data): Delete la_watch_location_expression
8388 initializer.
8389 (cplus_language_data): Likewise.
8390 (asm_language_data): Likewise.
8391 (minimal_language_data): Likewise.
8392 * c-lang.h (c_watch_location_expression): Delete declaration.
8393 * d-lang.c (d_language_data): Delete la_watch_location_expression
8394 initializer.
8395 * f-lang.c (f_language_data): Likewise.
8396 * go-lang.c (go_language_data): Likewise.
8397 * language.c (language_defn::watch_location_expression): Member
8398 function implementation from c_watch_location_expression.
8399 (unknown_language_data): Delete la_watch_location_expression
8400 initializer.
8401 (auto_language_data): Likewise.
8402 * language.h (language_data): Delete la_watch_location_expression
8403 field.
8404 (language_defn::watch_location_expression): Declare new member
8405 function.
8406 * m2-lang.c (m2_language_data): Delete
8407 la_watch_location_expression initializer.
8408 * objc-lang.c (objc_language_data): Likewise.
8409 * opencl-lang.c (opencl_language_data): Likewise.
8410 * p-lang.c (pascal_language_data): Likewise.
8411 * rust-lang.c (rust_watch_location_expression): Rename to
8412 rust_language::watch_location_expression.
8413 (rust_language_data): Delete la_watch_location_expression
8414 initializer.
8415 (rust_language::watch_location_expression): New member function,
8416 implementation from rust_watch_location_expression.
8417
7e56227d
AB
84182020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8419
8420 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
8421 ada_language::collect_symbol_completion_matches.
8422 (ada_language_data): Delete la_collect_symbol_completion_matches
8423 initializer.
8424 (ada_language::collect_symbol_completion_matches): New member
8425 function, implementation from
8426 ada_collect_symbol_completion_matches.
8427 * c-lang.c (c_language_data): Delete
8428 la_collect_symbol_completion_matches initializer.
8429 (cplus_language_data): Likewise.
8430 (asm_language_data): Likewise.
8431 (minimal_language_data): Likewise.
8432 * d-lang.c (d_language_data): Likewise.
8433 * f-lang.c (f_collect_symbol_completion_matches): Rename to
8434 f_language::collect_symbol_completion_matches.
8435 (f_language_data): Delete la_collect_symbol_completion_matches
8436 initializer.
8437 (f_language::collect_symbol_completion_matches) New member
8438 function, implementation from f_collect_symbol_completion_matches.
8439 * go-lang.c (go_language_data): Delete
8440 la_collect_symbol_completion_matches initializer.
8441 * language.c (unknown_language_data): Likewise.
8442 (auto_language_data): Likewise.
8443 * language.h (language_data): Delete
8444 la_collect_symbol_completion_matches field.
8445 (language_defn::collect_symbol_completion_matches): New member
8446 function.
8447 * m2-lang.c (m2_language_data): Delete
8448 la_collect_symbol_completion_matches initializer.
8449 * objc-lang.c (objc_language_data): Likewise.
8450 * opencl-lang.c (opencl_language_data): Likewise.
8451 * p-lang.c (pascal_language_data): Likewise.
8452 * rust-lang.c (rust_language_data): Likewise.
8453 * symtab.c (default_collect_symbol_completion_matches): Delete.
8454 (collect_symbol_completion_matches): Update call to
8455 collect_symbol_completion_matches.
8456 (collect_symbol_completion_matches_type): Likewise.
8457 * symtab.h (default_collect_symbol_completion_matches): Delete
8458 declaration.
8459
53fc67f8
AB
84602020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8461
8462 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
8463 (ada_language_data): Delete la_word_break_characters initializer.
8464 (ada_language::word_break_characters): New member function.
8465 * c-lang.c (c_language_data): Delete la_word_break_characters
8466 initializer.
8467 (cplus_language_data): Likewise.
8468 (asm_language_data): Likewise.
8469 (minimal_language_data): Likewise.
8470 * completer.c: Update global comment.
8471 (advance_to_expression_complete_word_point): Update call to
8472 word_break_characters.
8473 (complete_files_symbols): Likewise.
8474 (complete_line_internal_1): Likewise.
8475 (default_completer_handle_brkchars): Likewise.
8476 (skip_quoted_chars): Likewise.
8477 * d-lang.c (d_language_data): Delete la_word_break_characters
8478 initializer.
8479 * f-lang.c (f_word_break_characters): Delete.
8480 (f_language_data): Delete la_word_break_characters initializer.
8481 (f_language::word_break_characters): New member function.
8482 * go-lang.c (go_language_data): Delete la_word_break_characters
8483 initializer.
8484 * language.c (unknown_language_data): Likewise.
8485 (auto_language_data): Likewise.
8486 * language.h (default_word_break_characters): Move declaration to
8487 earlier in the file.
8488 (language_data): Delete la_word_break_characters field.
8489 (language_defn::word_break_characters): New member function.
8490 * m2-lang.c (m2_language_data): Delete la_word_break_characters
8491 initializer.
8492 * objc-lang.c (objc_language_data): Likewise.
8493 * opencl-lang.c (opencl_language_data): Likewise.
8494 * p-lang.c (pascal_language_data): Likewise.
8495 * rust-lang.c (rust_language_data): Likewise.
8496
c9debfb9
AB
84972020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8498
8499 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
8500 (ada_language_data): Delete la_get_symbol_name_matcher
8501 initializer.
8502 (language_defn::get_symbol_name_matcher_inner): New member
8503 function.
8504 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
8505 initializer.
8506 (cplus_language_data): Likewise.
8507 (cplus_language::get_symbol_name_matcher_inner): New member
8508 function.
8509 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
8510 (minimal_language_data): Likewise.
8511 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
8512 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
8513 initializer.
8514 * dictionary.c (iter_match_first_hashed): Update call to
8515 get_symbol_name_matcher.
8516 (iter_match_next_hashed): Likewise.
8517 (iter_match_next_linear): Likewise.
8518 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
8519 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
8520 initializer.
8521 (f_language::get_symbol_name_matcher_inner): New member function.
8522 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
8523 initializer.
8524 * language.c (default_symbol_name_matcher): Update header comment,
8525 make static.
8526 (language_defn::get_symbol_name_matcher): New definition.
8527 (language_defn::get_symbol_name_matcher_inner): Likewise.
8528 (get_symbol_name_matcher): Delete.
8529 (unknown_language_data): Delete la_get_symbol_name_matcher
8530 initializer.
8531 (auto_language_data): Likewise.
8532 * language.h (language_data): Delete la_get_symbol_name_matcher
8533 field.
8534 (language_defn::get_symbol_name_matcher): New member function.
8535 (language_defn::get_symbol_name_matcher_inner): Likewise.
8536 (default_symbol_name_matcher): Delete declaration.
8537 * linespec.c (find_methods): Update call to
8538 get_symbol_name_matcher.
8539 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
8540 initializer.
8541 * minsyms.c (lookup_minimal_symbol): Update call to
8542 get_symbol_name_matcher.
8543 (iterate_over_minimal_symbols): Likewise.
8544 * objc-lang.c (objc_language_data): Delete
8545 la_get_symbol_name_matcher initializer.
8546 * opencl-lang.c (opencl_language_data): Likewise.
8547 * p-lang.c (pascal_language_data): Likewise.
8548 * psymtab.c (psymbol_name_matches): Update call to
8549 get_symbol_name_matcher.
8550 * rust-lang.c (rust_language_data): Delete
8551 la_get_symbol_name_matcher initializer.
8552 * symtab.c (symbol_matches_search_name): Update call to
8553 get_symbol_name_matcher.
8554 (compare_symbol_name): Likewise.
8555
9a49ad8c
AB
85562020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8557
8558 * ada-lang.c (ada_language_data): Delete la_compute_program
8559 initializer.
8560 * c-lang.c (c_language_data): Likewise.
8561 (c_language::compute_program): New member function.
8562 (cplus_language_data): Delete la_compute_program initializer.
8563 (cplus_language::compute_program): New member function.
8564 (asm_language_data): Delete la_compute_program initializer.
8565 (minimal_language_data): Likewise.
8566 * c-lang.h (c_compute_program): Update comment.
8567 (cplus_compute_program): Likewise.
8568 * compile/compile-c-support.c (c_compute_program): Likewise.
8569 (cplus_compute_program): Likewise.
8570 * compile/compile.c (compile_to_object): Update call to
8571 la_compute_program.
8572 * d-lang.c (d_language_data): Delete la_compute_program
8573 initializer.
8574 * f-lang.c (f_language_data): Likewise.
8575 * go-lang.c (go_language_data): Likewise.
8576 * language.c (unknown_language_data): Likewise.
8577 (auto_language_data): Likewise.
8578 * language.h (language_data): Delete la_compute_program field.
8579 (language_defn::compute_program): New member function.
8580 * m2-lang.c (m2_language_data): Delete la_compute_program
8581 initializer.
8582 * objc-lang.c (objc_language_data): Likewise.
8583 * opencl-lang.c (opencl_language_data): Likewise.
8584 * p-lang.c (pascal_language_data): Likewise.
8585 * rust-lang.c (rust_language_data): Likewise.
8586
eff93b4d
AB
85872020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8588
8589 * ada-lang.c (ada_language_data) Delete
8590 la_class_name_from_physname initializer.
8591 * c-lang.c (c_language_data): Likewise.
8592 (cplus_language_data): Likewise.
8593 (cplus_language::class_name_from_physname): New member function.
8594 (asm_language_data): Delete la_class_name_from_physname
8595 initializer.
8596 (minimal_language_data): Likewise.
8597 * d-lang.c (d_language_data): Likewise.
8598 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
8599 method on language_defn class.
8600 (guess_full_die_structure_name): Likewise.
8601 * f-lang.c (f_language_data): Delete la_class_name_from_physname
8602 initializer.
8603 * go-lang.c (go_language_data): Likewise.
8604 * language.c (language_class_name_from_physname): Delete.
8605 (unk_lang_class_name): Delete.
8606 (unknown_language_data): Delete la_class_name_from_physname
8607 initializer.
8608 (auto_language_data): Likewise.
8609 * language.h (language_data): Delete la_class_name_from_physname
8610 field.
8611 (language_defn::class_name_from_physname): New function.
8612 (language_class_name_from_physname): Delete declaration.
8613 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
8614 initializer.
8615 * objc-lang.c (objc_language_data): Likewise.
8616 * opencl-lang.c (opencl_language_data): Likewise.
8617 * p-lang.c (pascal_language_data): Likewise.
8618 * rust-lang.c (rust_language_data): Likewise.
8619
de543742
TT
86202020-06-16 Tom Tromey <tom@tromey.com>
8621
8622 * tui/tui-data.h (STATUS_NAME): New macro.
8623 * tui/tui-layout.c (tui_remove_some_windows)
8624 (initialize_known_windows, tui_register_window)
8625 (tui_layout_split::remove_windows, initialize_layouts)
8626 (tui_new_layout_command): Don't use hard-coded window names.
8627
a350efd4
TT
86282020-06-16 Tom Tromey <tom@tromey.com>
8629
8630 PR tui/25348:
8631 * tui/tui.c (tui_ensure_readline_initialized): Rename from
8632 tui_initialize_readline. Only run once. Call rl_initialize.
8633 * tui/tui.h (tui_ensure_readline_initialized): Rename from
8634 tui_initialize_readline.
8635 * tui/tui-io.c (tui_setup_io): Call
8636 tui_ensure_readline_initialized.
8637 * tui/tui-interp.c (tui_interp::init): Update.
8638
39ec0490
TT
86392020-06-16 Tom Tromey <tom@tromey.com>
8640
8641 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
8642 Also preserve the status window.
8643
d2d1ea20
TT
86442020-06-16 Tom Tromey <tom@tromey.com>
8645
8646 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
8647 where m_window==nullptr.
8648
66920317
TT
86492020-06-15 Tom Tromey <tromey@adacore.com>
8650
8651 * windows-nat.c (windows_nat::handle_output_debug_string):
8652 Update.
8653 (windows_nat::handle_ms_vc_exception): Update.
8654 * target.h (target_read_string): Change API.
8655 * target.c (target_read_string): Change API.
8656 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
8657 Update.
8658 * solib-frv.c (frv_current_sos): Update.
8659 * solib-dsbt.c (dsbt_current_sos): Update.
8660 * solib-darwin.c (darwin_current_sos): Update.
8661 * linux-thread-db.c (inferior_has_bug): Update.
8662 * expprint.c (print_subexp_standard): Update.
8663 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
8664 (ada_exception_message_1): Update.
8665
a5d871dd
TT
86662020-06-15 Tom Tromey <tromey@adacore.com>
8667
8668 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
8669
670e35fa
TT
86702020-06-15 Tom Tromey <tromey@adacore.com>
8671
8672 * valprint.c (read_string): Update comment.
8673 * target.c (MIN): Remove.
8674 (target_read_string): Rewrite.
8675
f5272a3b
TT
86762020-06-15 Tom Tromey <tromey@adacore.com>
8677
8678 * corefile.c (read_memory_string): Remove.
8679 * ada-valprint.c (ada_value_print_ptr): Update.
8680 * ada-lang.h (ada_tag_name): Change return type.
8681 * ada-lang.c (type_from_tag): Update.
8682 (ada_tag_name_from_tsd): Change return type. Use
8683 target_read_string.
8684 (ada_tag_name): Likewise.
8685 * gdbcore.h (read_memory_string): Don't declare.
8686
2c074f49
HD
86872020-06-14 Hannes Domani <ssbssa@yahoo.de>
8688
8689 * symtab.c (rbreak_command): Ignore Windows drive colon.
8690
6a17d503
SM
86912020-06-12 Simon Marchi <simon.marchi@efficios.com>
8692
8693 * NEWS: Mention removed GDBserver host support.
8694
453c733f
NC
86952020-06-12 Nelson Chu <nelson.chu@sifive.com>
8696
8697 * features/riscv/rebuild-csr-xml.sh: Updated.
8698
2b4e6a3f
TT
86992020-06-11 Tom Tromey <tom@tromey.com>
8700
8701 PR gdb/18318:
8702 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
8703
4412332f
JG
87042020-06-09 Jonny Grant <jg@jguk.org>
87052020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
8706
8707 * main.c (captured_main_1): Don't print new line after help.
8708 (print_gdb_help): add mailing list and IRC channel information
8709 to --help. Add new lines between items in the footer. Remove
8710 quotes around bug url.
8711
2f33032a
KS
87122020-06-11 Keith Seitz <keiths@redhat.com>
8713
8714 PR gdb/21356
8715 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
8716 Resolve typedefs for type length calculations.
8717
7ab96794
TV
87182020-06-10 Tom de Vries <tdevries@suse.de>
8719
8720 PR ada/24713
8721 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
8722 (write_psymbols): Enable .gdb_index for ada.
8723 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
8724 ada.
8725
e5f3ece2
TV
87262020-06-10 Tom de Vries <tdevries@suse.de>
8727
8728 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
8729 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
8730 namei" instead of "const char *name" argument.
8731 (dw2_map_matching_symbols): Use "offset_type namei" variant of
8732 dw2_symtab_iter_init.
8733
940da03e
SM
87342020-06-08 Simon Marchi <simon.marchi@efficios.com>
8735
8736 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
8737 to use type::field and field::type instead.
8738
b6cdac4b
SM
87392020-06-08 Simon Marchi <simon.marchi@efficios.com>
8740
8741 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
8742 to use field::type instead.
8743
5d14b6e5
SM
87442020-06-08 Simon Marchi <simon.marchi@efficios.com>
8745
8746 * gdbtypes.h (struct field) <type, set_type>: New methods.
8747 Rename `type` field to...
8748 <m_type>: ... this. Change references throughout to use type or
8749 set_type methods.
8750 (FIELD_TYPE): Use field::type. Change call sites that modify
8751 the field's type to use field::set_type instead.
8752
3d967001
SM
87532020-06-08 Simon Marchi <simon.marchi@efficios.com>
8754
8755 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
8756 to use type::index_type instead.
8757
262abc0d
SM
87582020-06-08 Simon Marchi <simon.marchi@efficios.com>
8759
8760 * gdbtypes.h (struct type) <index_type, set_index_type>: New
8761 methods.
8762 (TYPE_INDEX_TYPE): Use type::index_type.
8763 * gdbtypes.c (create_array_type_with_stride): Likewise.
8764
82836c92
TT
87652020-06-07 Tom Tromey <tom@tromey.com>
8766
8767 * valprint.c (generic_val_print_float): Remove "embedded_offset"
8768 parameter.
8769 (generic_value_print): Update.
8770
940dace9
AB
87712020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8772
8773 Revert commit 982a38f60b0.
8774 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
8775
982a38f6
AB
87762020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8777
8778 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
8779 avoid use after free.
8780
82f06518
TV
87812020-06-05 Tom de Vries <tdevries@suse.de>
8782
8783 * NEWS: Fix typos.
8784
f8c41851
SM
87852020-06-04 Simon Marchi <simon.marchi@efficios.com>
8786
8787 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
8788 the per_bfd object.
8789 (dwarf2_read_debug_names): Likewise.
8790 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
8791 object when re-using a per_bfd object with an index.
8792
f9b5d5ea
TV
87932020-06-03 Tom de Vries <tdevries@suse.de>
8794
8795 PR symtab/26046
8796 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
8797 children for C++.
8798 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
8799 DW_TAG_subprogram.
8800
f6eee2d0
AB
88012020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8802
8803 * ada-lang.c (ada_language_data): Delete skip_trampoline
8804 initializer.
8805 * c-lang.c (c_language_data): Likewise.
8806 (cplus_language_data): Likewise.
8807 (cplus_language::skip_trampoline): New member function.
8808 (asm_language_data): Delete skip_trampoline initializer.
8809 (minimal_language_data): Likewise.
8810 * d-lang.c (d_language_data): Likewise.
8811 * f-lang.c (f_language_data): Likewise.
8812 * go-lang.c (go_language_data): Likewise.
8813 * language.c (unk_lang_trampoline): Delete function.
8814 (skip_language_trampoline): Update.
8815 (unknown_language_data): Delete skip_trampoline initializer.
8816 (auto_language_data): Likewise.
8817 * language.h (language_data): Delete skip_trampoline field.
8818 (language_defn::skip_trampoline): New function.
8819 * m2-lang.c (m2_language_data): Delete skip_trampoline
8820 initializer.
8821 * objc-lang.c (objc_skip_trampoline): Delete function, move
8822 implementation to objc_language::skip_trampoline.
8823 (objc_language_data): Delete skip_trampoline initializer.
8824 (objc_language::skip_trampoline): New member function with
8825 implementation from objc_skip_trampoline.
8826 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
8827 initializer.
8828 * p-lang.c (pascal_language_data): Likewise.
8829 * rust-lang.c (rust_language_data): Likewise.
8830
0a50df5d
AB
88312020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8832
8833 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
8834 (ada_language::demangle): New member function.
8835 * c-lang.c (c_language_data): Delete la_demangle initializer.
8836 (cplus_language_data): Delete la_demangle initializer.
8837 (cplus_language::demangle): New member function.
8838 (asm_language_data): Delete la_demangle initializer.
8839 (minimal_language_data): Delete la_demangle initializer.
8840 * d-lang.c (d_language_data): Delete la_demangle initializer.
8841 (d_language::demangle): New member function.
8842 * f-lang.c (f_language_data): Delete la_demangle initializer.
8843 (f_language::demangle): New member function.
8844 * go-lang.c (go_language_data): Delete la_demangle initializer.
8845 (go_language::demangle): New member function.
8846 * language.c (language_demangle): Update.
8847 (unk_lang_demangle): Delete.
8848 (unknown_language_data): Delete la_demangle initializer.
8849 (unknown_language::demangle): New member function.
8850 (auto_language_data): Delete la_demangle initializer.
8851 (auto_language::demangle): New member function.
8852 * language.h (language_data): Delete la_demangle field.
8853 (language_defn::demangle): New function.
8854 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
8855 * objc-lang.c (objc_language_data): Delete la_demangle
8856 initializer.
8857 (objc_language::demangle): New member function.
8858 * opencl-lang.c (opencl_language_data): Delete la_demangle
8859 initializer.
8860 * p-lang.c (pascal_language_data): Likewise.
8861 * rust-lang.c (rust_language_data): Likewise.
8862 (rust_language::demangle): New member function.
8863
fbfb0a46
AB
88642020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8865
8866 * ada-lang.c (ada_language_data): Delete la_print_type
8867 initializer.
8868 (ada_language::print_type): New member function.
8869 * c-lang.c (c_language_data): Delete la_print_type initializer.
8870 (c_language::print_type): New member function.
8871 (cplus_language_data): Delete la_print_type initializer.
8872 (cplus_language::print_type): New member function.
8873 (asm_language_data): Delete la_print_type initializer.
8874 (asm_language::print_type): New member function.
8875 (minimal_language_data): Delete la_print_type initializer.
8876 (minimal_language::print_type): New member function.
8877 * d-lang.c (d_language_data): Delete la_print_type initializer.
8878 (d_language::print_type): New member function.
8879 * f-lang.c (f_language_data): Delete la_print_type initializer.
8880 (f_language::print_type): New member function.
8881 * go-lang.c (go_language_data): Delete la_print_type initializer.
8882 (go_language::print_type): New member function.
8883 * language.c (unk_lang_print_type): Delete.
8884 (unknown_language_data): Delete la_print_type initializer.
8885 (unknown_language::print_type): New member function.
8886 (auto_language_data): Delete la_print_type initializer.
8887 (auto_language::print_type): New member function.
8888 * language.h (language_data): Delete la_print_type field.
8889 (language_defn::print_type): New function.
8890 (LA_PRINT_TYPE): Update.
8891 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
8892 (m2_language::print_type): New member function.
8893 * objc-lang.c (objc_language_data): Delete la_print_type
8894 initializer.
8895 (objc_language::print_type): New member function.
8896 * opencl-lang.c (opencl_print_type): Delete, implementation moved
8897 to opencl_language::print_type.
8898 (opencl_language_data): Delete la_print_type initializer.
8899 (opencl_language::print_type): New member function, implementation
8900 from opencl_print_type.
8901 * p-lang.c (pascal_language_data): Delete la_print_type
8902 initializer.
8903 (pascal_language::print_type): New member function.
8904 * rust-lang.c (rust_print_type): Delete, implementation moved to
8905 rust_language::print_type.
8906 (rust_language_data): Delete la_print_type initializer.
8907 (rust_language::print_type): New member function, implementation
8908 from rust_print_type.
8909
6f827019
AB
89102020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8911
8912 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
8913 implementation moves to...
8914 (ada_language::sniff_from_mangled_name): ...here. Update return
8915 type.
8916 (ada_language_data): Delete la_sniff_from_mangled_name
8917 initializer.
8918 * c-lang.c (c_language_data): Likewise.
8919 (cplus_language_data): Likewise.
8920 (cplus_language::sniff_from_mangled_name): New member function,
8921 implementation taken from gdb_sniff_from_mangled_name.
8922 (asm_language_data): Delete la_sniff_from_mangled_name
8923 initializer.
8924 (minimal_language_data): Likewise.
8925 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
8926 implementation moves to cplus_language::sniff_from_mangled_name.
8927 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
8928 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
8929 moves to...
8930 (d_language::sniff_from_mangled_name): ...here.
8931 (d_language_data): Delete la_sniff_from_mangled_name initializer.
8932 * f-lang.c (f_language_data): Likewise.
8933 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
8934 moves to...
8935 (go_language::sniff_from_mangled_name): ...here.
8936 (go_language_data): Delete la_sniff_from_mangled_name initializer.
8937 * language.c (language_sniff_from_mangled_name): Delete.
8938 (unknown_language_data): Delete la_sniff_from_mangled_name
8939 initializer.
8940 (auto_language_data): Likewise.
8941 * language.h (language_data): Delete la_sniff_from_mangled_name
8942 field.
8943 (language_defn::sniff_from_mangled_name): New function.
8944 (language_sniff_from_mangled_name): Delete declaration.
8945 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
8946 field.
8947 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
8948 implementation moves to...
8949 (objc_language::sniff_from_mangled_name): ...here.
8950 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
8951 * opencl-lang.c (opencl_language_data): Likewise.
8952 * p-lang.c (pascal_language_data): Likewise.
8953 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
8954 implementation moves to...
8955 (rust_language::sniff_from_mangled_name): ...here.
8956 (rust_language_data): Delete la_sniff_from_mangled_name
8957 initializer.
8958 * symtab.c (symbol_find_demangled_name): Call
8959 sniff_from_mangled_name member function.
8960
fb8006fd
AB
89612020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8962
8963 * ada-lang.c (ada_language_data): Delete la_search_name_hash
8964 initializer.
8965 * c-lang.c (c_language_data): Likewise.
8966 (cplus_language_data): Likewise.
8967 (cplus_language::search_name_hash): New member function.
8968 (asm_language_data): Delete la_search_name_hash initializer.
8969 (minimal_language_data): Likewise.
8970 * d-lang.c (d_language_data): Likewise.
8971 * dictionary.c (default_search_name_hash): Rename to...
8972 (language_defn::search_name_hash): ...this.
8973 * f-lang.c (f_language_data): Likewise.
8974 (f_language::search_name_hash): New member function.
8975 * go-lang.c (go_language_data): Delete la_search_name_hash
8976 initializer.
8977 * language.c (unknown_language_data): Likewise.
8978 (auto_language_data): Likewise.
8979 * language.h (struct language_data): Delete la_search_name_hash
8980 field.
8981 (language_defn::search_name_hash): Declare new member function.
8982 (default_search_name_hash): Delete declaration.
8983 * m2-lang.c (m2_language_data): Delete la_search_name_hash
8984 initializer.
8985 * objc-lang.c (objc_language_data): Likewise.
8986 * opencl-lang.c (opencl_language_data): Likewise.
8987 * p-lang.c (pascal_language_data): Likewise.
8988 * rust-lang.c (rust_language_data): Likewise.
8989 * symtab.c (search_name_hash): Update call.
8990
8e25bafe
AB
89912020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8992
8993 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
8994 initializer.
8995 * c-lang.c (class compile_instance): Declare.
8996 (c_language_data): Delete la_get_compile_instance initializer.
8997 (c_language::get_compile_instance): New member function.
8998 (cplus_language_data): Delete la_get_compile_instance initializer.
8999 (cplus_language::get_compile_instance): New member function.
9000 (asm_language_data): Delete la_get_compile_instance initializer.
9001 (minimal_language_data): Likewise.
9002 * c-lang.h (c_get_compile_context): Update comment.
9003 (cplus_get_compile_context): Update comment.
9004 * compile/compile.c (compile_to_object): Update calls, don't rely
9005 on function pointer being NULL.
9006 * d-lang.c (d_language_data): Delete la_get_compile_instance
9007 initializer.
9008 * f-lang.c (f_language_data): Likewise.
9009 * go-lang.c (go_language_data): Likewise.
9010 * language.c (unknown_language_data): Likewise.
9011 (auto_language_data): Likewise.
9012 * language.h (language_data): Delete la_get_compile_instance field.
9013 (language_defn::get_compile_instance): New member function.
9014 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
9015 initializer.
9016 * objc-lang.c (objc_language_data): Likewise.
9017 * opencl-lang.c (opencl_language_data): Likewise.
9018 * p-lang.c (pascal_language_data): Likewise.
9019 * rust-lang.c (rust_language_data): Likewise.
9020
4009ee92
AB
90212020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9022
9023 * ada-lang.c (ada_add_all_symbols): Update comment.
9024 (ada_iterate_over_symbols): Delete, move implementation to...
9025 (ada_language::iterate_over_symbols): ...here, a new member
9026 function, rewrite to use range based for loop.
9027 (ada_language_data): Delete la_iterate_over_symbols initializer.
9028 * c-lang.c (c_language_data): Likewise.
9029 (cplus_language_data): Likewise.
9030 (asm_language_data): Likewise.
9031 (minimal_language_data): Likewise.
9032 * d-lang.c (d_language_data): Likewise.
9033 * f-lang.c (f_language_data): Likewise.
9034 * go-lang.c (go_language_data): Likewise.
9035 * language.c (unknown_language_data): Likewise.
9036 (auto_language_data): Likewise.
9037 * language.h (language_data): Delete la_iterate_over_symbols field.
9038 (language_defn::iterate_over_symbols): New member function.
9039 (LA_ITERATE_OVER_SYMBOLS): Update.
9040 * linespec.c (iterate_over_all_matching_symtabs): Update.
9041 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
9042 initializer.
9043 * objc-lang.c (objc_language_data): Likewise.
9044 * opencl-lang.c (opencl_language_data): Likewise.
9045 * p-lang.c (pascal_language_data): Likewise.
9046 * rust-lang.c (rust_language_data): Likewise.
9047
54f4ca46
AB
90482020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9049
9050 * ada-lang.c (ada_language_data): Delete
9051 la_lookup_transparent_type initializer.
9052 * c-lang.c (c_language_data): Likewise.
9053 (cplus_language_data): Likewise.
9054 (cplus_language::lookup_transparent_type): New member function.
9055 (asm_language_data): Delete la_lookup_transparent_type
9056 initializer.
9057 (minimal_language_data): Likewise.
9058 * d-lang.c (d_language_data): Likewise.
9059 * f-lang.c (f_language_data): Likewise.
9060 * go-lang.c (go_language_data): Likewise.
9061 * language.c (unknown_language_data): Likewise.
9062 (auto_language_data): Likewise.
9063 * language.h (struct language_data): Delete
9064 la_lookup_transparent_type field.
9065 (language_defn::lookup_transparent_type): New member function.
9066 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
9067 initializer.
9068 * objc-lang.c (objc_language_data): Likewise.
9069 * opencl-lang.c (opencl_language_data): Likewise.
9070 * p-lang.c (pascal_language_data): Likewise.
9071 * rust-lang.c (rust_language_data): Likewise.
9072 * symtab.c (symbol_matches_domain): Update call.
9073
1fb314aa
AB
90742020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9075
9076 * ada-lang.c (ada_language_arch_info): Delete function, move
9077 implementation to...
9078 (ada_language::language_arch_info): ...here, a new member
9079 function.
9080 (ada_language_data): Delete la_language_arch_info.
9081 * c-lang.c (c_language_data): Likewise.
9082 (c_language::language_arch_info): New member function.
9083 (cplus_language_arch_info): Delete function, move
9084 implementation to...
9085 (cplus_language::language_arch_info): ...here, a new member
9086 function.
9087 (cplus_language_data): Delete la_language_arch_info.
9088 (asm_language_data): Likewise.
9089 (asm_language::language_arch_info): New member function.
9090 (minimal_language_data): Delete la_language_arch_info.
9091 (minimal_language::language_arch_info): New member function.
9092 * d-lang.c (d_language_arch_info): Delete function, move
9093 implementation to...
9094 (d_language::language_arch_info): ...here, a new member
9095 function.
9096 (d_language_data): Delete la_language_arch_info.
9097 * f-lang.c (f_language_arch_info): Delete function, move
9098 implementation to...
9099 (f_language::language_arch_info): ...here, a new member
9100 function.
9101 (f_language_data): Delete la_language_arch_info.
9102 * go-lang.c (go_language_arch_info): Delete function, move
9103 implementation to...
9104 (go_language::language_arch_info): ...here, a new member
9105 function.
9106 (go_language_data): Delete la_language_arch_info.
9107 * language.c (unknown_language_data): Likewise.
9108 (unknown_language::language_arch_info): New member function.
9109 (auto_language_data): Delete la_language_arch_info.
9110 (auto_language::language_arch_info): New member function.
9111 (language_gdbarch_post_init): Update call to
9112 la_language_arch_info.
9113 * language.h (language_data): Delete la_language_arch_info
9114 function pointer.
9115 (language_defn::language_arch_info): New function.
9116 * m2-lang.c (m2_language_arch_info): Delete function, move
9117 implementation to...
9118 (m2_language::language_arch_info): ...here, a new member
9119 function.
9120 (m2_language_data): Delete la_language_arch_info.
9121 * objc-lang.c (objc_language_arch_info): Delete function, move
9122 implementation to...
9123 (objc_language::language_arch_info): ...here, a new member
9124 function.
9125 (objc_language_data): Delete la_language_arch_info.
9126 * opencl-lang.c (opencl_language_arch_info): Delete function, move
9127 implementation to...
9128 (opencl_language::language_arch_info): ...here, a new member
9129 function.
9130 (opencl_language_data): Delete la_language_arch_info.
9131 * p-lang.c (pascal_language_arch_info): Delete function, move
9132 implementation to...
9133 (pascal_language::language_arch_info): ...here, a new member
9134 function.
9135 (pascal_language_data): Delete la_language_arch_info.
9136 * rust-lang.c (rust_language_arch_info): Delete function, move
9137 implementation to...
9138 (rust_language::language_arch_info): ...here, a new member
9139 function.
9140 (rust_language_data): Delete la_language_arch_info.
9141
48448202
AB
91422020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9143
9144 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
9145 initializer.
9146 * c-lang.c (c_language_data): Likewise.
9147 (cplus_language_data): Likewise.
9148 (cplus_language::pass_by_reference_info): New method.
9149 (asm_language_data): Delete la_pass_by_reference initializer.
9150 (minimal_language_data): Likewise.
9151 * cp-abi.c (cp_pass_by_reference): Remove use of
9152 default_pass_by_reference.
9153 * d-lang.c (d_language_data): Likewise.
9154 * f-lang.c (f_language_data): Likewise.
9155 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
9156 default_pass_by_reference.
9157 * go-lang.c (go_language_data): Likewise.
9158 * language.c (language_pass_by_reference): Update.
9159 (default_pass_by_reference): Delete.
9160 (unknown_language_data): Delete la_pass_by_reference
9161 initializer.
9162 (auto_language_data): Likewise.
9163 * language.h (struct language_data): Delete la_pass_by_reference
9164 field.
9165 (language_defn::pass_by_reference_info): New member function.
9166 (default_pass_by_reference): Delete declaration.
9167 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
9168 initializer.
9169 * objc-lang.c (objc_language_data): Likewise.
9170 * opencl-lang.c (opencl_language_data): Likewise.
9171 * p-lang.c (pascal_language_data): Likewise.
9172 * rust-lang.c (rust_language_data): Likewise.
9173
15e5fd35
AB
91742020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9175
9176 * ada-lang.c (ada_read_var_value): Delete function, move
9177 implementation to...
9178 (ada_language::read_var_value): ...here.
9179 (ada_language_data): Delete la_read_var_value initializer.
9180 * c-lang.c (c_language_data): Likewise.
9181 (cplus_language_data): Likewise.
9182 (minimal_language_data): Likewise.
9183 * d-lang.c (d_language_data): Likewise.
9184 * f-lang.c (f_language_data): Likewise.
9185 * findvar.c (default_read_var_value): Rename to...
9186 (language_defn::read_var_value): ...this.
9187 * findvar.c (read_var_value): Update header comment, and change to
9188 call member function instead of function pointer.
9189 * go-lang.c (go_language_data): Likewise.
9190 * language.c (unknown_language_data): Delete la_read_var_value
9191 initializer.
9192 (auto_language_data): Likewise.
9193 * language.h (struct language_data): Delete la_read_var_value
9194 field.
9195 (language_defn::read_var_value): New member function.
9196 (default_read_var_value): Delete declaration.
9197 * m2-lang.c (m2_language_data): Delete la_read_var_value
9198 initializer.
9199 * objc-lang.c (objc_language_data): Likewise.
9200 * opencl-lang.c (opencl_language_data): Likewise.
9201 * p-lang.c (pascal_language_data): Likewise.
9202 * rust-lang.c (rust_language_data): Likewise.
9203 * value.h (default_read_var_value): Delete declaration.
9204
5bd40f2a
AB
92052020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9206
9207 * ada-lang.c (ada_print_array_index): Delete function, move
9208 implementation to...
9209 (ada_language::print_array_index): ...here.
9210 (ada_language_data): Delete la_print_array_index initializer.
9211 * c-lang.c (c_language_data): Likewise.
9212 (cplus_language_data): Likewise.
9213 (minimal_language_data): Likewise.
9214 * d-lang.c (d_language_data): Likewise.
9215 * f-lang.c (f_language_data): Likewise.
9216 * go-lang.c (go_language_data): Likewise.
9217 * language.c (default_print_array_index): Delete function, move
9218 implementation to...
9219 (language_defn::print_array_index): ...here.
9220 (unknown_language_data): Delete la_print_array_index initializer.
9221 (auto_language_data): Likewise.
9222 * language.h (struct language_data): Delete la_print_array_index
9223 field.
9224 (language_defn::print_array_index): New member function.
9225 (LA_PRINT_ARRAY_INDEX): Update.
9226 (default_print_array_index): Delete declaration.
9227 * m2-lang.c (m2_language_data): Delete la_print_array_index
9228 initializer.
9229 * objc-lang.c (objc_language_data): Likewise.
9230 * opencl-lang.c (opencl_language_data): Likewise.
9231 * p-lang.c (pascal_language_data): Likewise.
9232 * rust-lang.c (rust_language_data): Likewise.
9233
0874fd07
AB
92342020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9235
9236 * gdb/ada-lang.c (ada_language_defn): Convert to...
9237 (ada_language_data): ...this.
9238 (class ada_language): New class.
9239 (ada_language_defn): New static global.
9240 * gdb/c-lang.c (c_language_defn): Convert to...
9241 (c_language_data): ...this.
9242 (class c_language): New class.
9243 (c_language_defn): New static global.
9244 (cplus_language_defn): Convert to...
9245 (cplus_language_data): ...this.
9246 (class cplus_language): New class.
9247 (cplus_language_defn): New static global.
9248 (asm_language_defn): Convert to...
9249 (asm_language_data): ...this.
9250 (class asm_language): New class.
9251 (asm_language_defn): New static global.
9252 (minimal_language_defn): Convert to...
9253 (minimal_language_data): ...this.
9254 (class minimal_language): New class.
9255 (minimal_language_defn): New static global.
9256 * gdb/d-lang.c (d_language_defn): Convert to...
9257 (d_language_data): ...this.
9258 (class d_language): New class.
9259 (d_language_defn): New static global.
9260 * gdb/f-lang.c (f_language_defn): Convert to...
9261 (f_language_data): ...this.
9262 (class f_language): New class.
9263 (f_language_defn): New static global.
9264 * gdb/go-lang.c (go_language_defn): Convert to...
9265 (go_language_data): ...this.
9266 (class go_language): New class.
9267 (go_language_defn): New static global.
9268 * gdb/language.c (unknown_language_defn): Remove declaration.
9269 (current_language): Initialize to nullptr, real initialization is
9270 moved to _initialize_language.
9271 (languages): Delete global.
9272 (language_defn::languages): Define.
9273 (set_language_command): Use language_defn::languages.
9274 (set_language): Likewise.
9275 (range_error): Likewise.
9276 (language_enum): Likewise.
9277 (language_def): Likewise.
9278 (add_set_language_command): Use language_def::languages for the
9279 language list, and language_def to lookup language pointers.
9280 (skip_language_trampoline): Use language_defn::languages.
9281 (unknown_language_defn): Convert to...
9282 (unknown_language_data): ...this.
9283 (class unknown_language): New class.
9284 (unknown_language_defn): New static global.
9285 (auto_language_defn): Convert to...
9286 (auto_language_data): ...this.
9287 (class auto_language): New class.
9288 (auto_language_defn): New static global.
9289 (language_gdbarch_post_init): Use language_defn::languages.
9290 (_initialize_language): Initialize current_language.
9291 * gdb/language.h (struct language_defn): Rename to...
9292 (struct language_data): ...this.
9293 (struct language_defn): New.
9294 (auto_language_defn): Delete.
9295 (unknown_language_defn): Delete.
9296 (minimal_language_defn): Delete.
9297 (ada_language_defn): Delete.
9298 (asm_language_defn): Delete.
9299 (c_language_defn): Delete.
9300 (cplus_language_defn): Delete.
9301 (d_language_defn): Delete.
9302 (f_language_defn): Delete.
9303 (go_language_defn): Delete.
9304 (m2_language_defn): Delete.
9305 (objc_language_defn): Delete.
9306 (opencl_language_defn): Delete.
9307 (pascal_language_defn): Delete.
9308 (rust_language_defn): Delete.
9309 * gdb/m2-lang.c (m2_language_defn): Convert to...
9310 (m2_language_data): ...this.
9311 (class m2_language): New class.
9312 (m2_language_defn): New static global.
9313 * gdb/objc-lang.c (objc_language_defn): Convert to...
9314 (objc_language_data): ...this.
9315 (class objc_language): New class.
9316 (objc_language_defn): New static global.
9317 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
9318 (opencl_language_data): ...this.
9319 (class opencl_language): New class.
9320 (opencl_language_defn): New static global.
9321 * gdb/p-lang.c (pascal_language_defn): Convert to...
9322 (pascal_language_data): ...this.
9323 (class pascal_language): New class.
9324 (pascal_language_defn): New static global.
9325 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
9326 language pointer, update comment format.
9327 * gdb/rust-lang.c (rust_language_defn): Convert to...
9328 (rust_language_data): ...this.
9329 (class rust_language): New class.
9330 (rust_language_defn): New static global.
9331
1313c56e
AB
93322020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
9333
9334 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
9335 member variable.
9336 <m_stmt_at_address>: New member variable.
9337 (lnp_state_machine::record_line): Don't record some lines, update
9338 tracking of is_stmt at the same address.
9339 (lnp_state_machine::lnp_state_machine): Initialise new member
9340 variables.
9341
b7ed9f3d
ST
93422020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
9343
9344 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
9345 "-include gnu-nat-mig.h".
9346 * gnu-nat-mig.h: New file.
9347 * gnu-nat.c: Include "gnu-nat-mig.h".
9348 (exc_server, msg_reply_server, notify_server,
9349 process_reply_server): Remove declarations.
9350
14a8ad62
ST
93512020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9352
9353 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
9354 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
9355 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
9356 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
9357 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
9358 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
9359 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
9360 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
9361 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
9362 to gnu_nat_target class.
9363 * gnu-nat.c: Likewise.
9364 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
9365 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
9366 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
9367 object.
9368 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
9369 instead of `gnu_target'.
9370
0af5e106
ST
93712020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9372
9373 * i386-gnu-tdep.c: Include "gdbcore.h"
9374 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
9375 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
9376 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
9377 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
9378 i386_gnu_sigcontext_addr): New functions
9379 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
9380 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
9381 tdep.
9382
078f2fc9
ST
93832020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9384
9385 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
9386 before fork_inferior call. Avoid calling it if target_is_pushed returns
9387 true.
9388
53dff92c
ST
93892020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9390
9391 * gnu-nat.h (gnu_target): New variable declaration.
9392 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
9393 gnu_target.
9394 * gnu-nat.c (gnu_target): New variable.
9395 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
9396 add_thread_silent, and add_thread calls.
9397 (gnu_nat_target::create_inferior): Pass gnu_target to
9398 add_thread_silent, thread_change_ptid call.
9399 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
9400 call.
9401
5a8b8627
ST
94022020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9403
9404 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
9405 (gnu_nat_target::find_memory_regions): Remove unused
9406 `old_address' variable.
9407
366f550a
ST
94082020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9409
9410 * gnu-nat.c: Include "gdbarch.h".
9411
f14871bf
ST
94122020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9413
9414 * reply_mig_hack.awk (Error return): Cast function through
9415 void *, to bypass compiler function call check.
9416
c6887cfb
ST
94172020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9418
9419 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
9420 $(srcdir)/reply_mig_hack.awk.
9421
6930bffe
ST
94222020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9423
9424 * gnu-nat.h (gnu_debug_flag): Set type to bool.
9425
112c22ed
JG
94262020-05-30 Jonny Grant <jg@jguk.org>
9427
9428 * configure.ac (ACX_BUGURL): change bug URL to https.
9429
f68f85b5
PA
94302020-05-30 Pedro Alves <palves@redhat.com>
9431
9432 * cp-support.c (replace_typedefs_template): New.
9433 (replace_typedefs_qualified_name): Handle
9434 DEMANGLE_COMPONENT_TEMPLATE.
9435
976ca316
SM
94362020-05-29 Simon Marchi <simon.marchi@efficios.com>
9437
9438 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
9439 dwarf2/index-cache.h, dwarf2/index-write.c,
9440 dwarf2/index-write.h, dwarf2/line-header.c,
9441 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
9442 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
9443 variables and fields from `dwarf2_per_objfile` to just
9444 `per_objfile` throughout.
9445
989ade05
SM
94462020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
9447
9448 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9449 <push_dwarf_reg_entry_value>: Add comment.
9450
c47bae85
KB
94512020-05-28 Kevin Buettner <kevinb@redhat.com>
9452 Keith Seitz <keiths@redhat.com>
9453
9454 * python/python.c (do_start_initialization): Call PyEval_SaveThread
9455 instead of PyEval_ReleaseLock.
9456 (class gdbpy_gil): Move to earlier in file.
9457 (finalize_python): Set gdb_python_initialized.
9458 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
9459 when not initialized.
9460
44486dcf
SM
94612020-05-28 Simon Marchi <simon.marchi@efficios.com>
9462
9463 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9464 <push_dwarf_reg_entry_value>: Remove assert. Override
9465 per_objfile with caller_per_objfile.
9466
f030440d
TV
94672020-05-28 Tom de Vries <tdevries@suse.de>
9468
9469 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
9470 PR gold/15646 workaround to symbol kind "type".
9471
f0fbb768
TT
94722020-05-27 Tom Tromey <tromey@adacore.com>
9473
9474 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
9475
af0b2a3e
TT
94762020-05-27 Tom Tromey <tromey@adacore.com>
9477
9478 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
9479 Use htab_find_with_hash.
9480 <add_abbrev>: Remove "abbrev_number" parameter.
9481 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
9482 "abbrev_number" parameter. Use htab_find_slot_with_hash.
9483 (hash_abbrev): Add comment.
9484 (abbrev_table::lookup_abbrev): Move to header file.
9485 (abbrev_table::read): Update.
9486
7d00ffec
TT
94872020-05-27 Tom Tromey <tromey@adacore.com>
9488
9489 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
9490 method.
9491 <canonical_name>: New member.
9492 <raw_name>: Rename from "name".
9493 (partial_die_info): Initialize canonical_name.
9494 (scan_partial_symbols): Check raw_name.
9495 (partial_die_parent_scope, partial_die_full_name)
9496 (add_partial_symbol, add_partial_subprogram)
9497 (add_partial_enumeration, load_partial_dies): Use "name" method.
9498 (partial_die_info::name): New method.
9499 (partial_die_info::read, guess_partial_die_structure_name)
9500 (partial_die_info::fixup): Update.
9501
697bba18
TT
95022020-05-27 Tom Tromey <tromey@adacore.com>
9503
9504 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
9505 <get_ref_die_offset>: Inline.
9506 <get_ref_die_offset_complaint>: New method.
9507 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
9508 (attribute::get_ref_die_offset_complaint): Rename from
9509 get_ref_die_offset. Just issue complaint.
9510
c17ace43
HD
95112020-05-27 Hannes Domani <ssbssa@yahoo.de>
9512
9513 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
9514
96445f0b
HD
95152020-05-27 Hannes Domani <ssbssa@yahoo.de>
9516
9517 * exec.c (exec_file_attach): Use errno value of first openp failure.
9518
ac637ec3
HD
95192020-05-27 Hannes Domani <ssbssa@yahoo.de>
9520
9521 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
9522 Don't close thread handle.
9523
17ee85fc
TT
95242020-05-27 Tom Tromey <tom@tromey.com>
9525 Simon Marchi <simon.marchi@efficios.com>
9526
9527 * objfiles.h (struct objfile) <partial_symtabs>: Now a
9528 shared_ptr.
9529 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
9530 member.
9531 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
9532 dwarf2_per_bfd_objfile_data_key>: New globals.
9533 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
9534 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
9535 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
9536 shared.
9537 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
9538 short-circuit when sharing.
9539 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
9540 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
9541
39b16f87
SM
95422020-05-27 Simon Marchi <simon.marchi@efficios.com>
9543
9544 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
9545 to...
9546 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
9547 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
9548
fcf23d5b
SM
95492020-05-27 Simon Marchi <simon.marchi@efficios.com>
9550
9551 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
9552 build_name_components, find_name_components_bounds>:
9553 Add per_objfile parameter.
9554 (struct mapped_index) <symbol_name_at>: Likewise.
9555 (struct mapped_debug_names): Remove constructor.
9556 <dwarf2_per_objfile>: Remove field.
9557 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
9558 (mapped_index_base::find_name_components_bounds,
9559 mapped_index_base::build_name_components,
9560 dw2_expand_symtabs_matching_symbol): Likewise.
9561 (class mock_mapped_index) <symbol_name_at>: Likewise.
9562 (check_match): Likewise.
9563 (check_find_bounds_finds): Likewise.
9564 (test_mapped_index_find_name_component_bounds): Update.
9565 (CHECK_MATCH): Update.
9566 (dw2_expand_symtabs_matching): Update.
9567 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
9568 per_objfile parameter.
9569 <find_vec_in_debug_names>: Likewise.
9570 <m_per_objfile>: New field.
9571 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
9572 parameter.
9573 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
9574 (dw2_debug_names_iterator::next): Update.
9575 (dw2_debug_names_lookup_symbol): Update.
9576 (dw2_debug_names_expand_symtabs_for_function): Update.
9577 (dw2_debug_names_map_matching_symbols): Update.
9578 (dw2_debug_names_expand_symtabs_matching): Update.
9579 (dwarf2_read_debug_names): Update.
9580
7188ed02
SM
95812020-05-27 Simon Marchi <simon.marchi@efficios.com>
9582
9583 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
9584 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
9585 move to dwarf2_per_objfile.
9586 <read_in_chain>: Remove.
9587 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
9588 remove_all_cus, age_comp_units>: New methods.
9589 <m_dwarf2_cus>: New member.
9590 (struct dwarf2_per_cu_data) <cu>: Remove.
9591 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
9592 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
9593 moved to methods of dwarf2_per_objfile.
9594 (dwarf2_clear_marks): Remove.
9595 (dwarf2_queue_item::~dwarf2_queue_item): Update.
9596 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
9597 (dwarf2_per_bfd::free_cached_comp_units): Remove.
9598 (dwarf2_per_objfile::remove_all_cus): New.
9599 (class free_cached_comp_units) <~free_cached_comp_units>:
9600 Update.
9601 (load_cu): Update.
9602 (dw2_do_instantiate_symtab): Adjust.
9603 (fill_in_sig_entry_from_dwo_entry): Adjust.
9604 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9605 (cutu_reader::cutu_reader): Likewise.
9606 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
9607 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
9608 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
9609 and dwarf2_per_objfile::age_comp_units.
9610 (load_partial_comp_unit): Update.
9611 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
9612 (process_queue): Likewise.
9613 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
9614 backlink.
9615 (dwarf2_read_addr_index): Likewise.
9616 (follow_die_offset): Likewise.
9617 (dwarf2_fetch_die_loc_sect_off): Likewise.
9618 (dwarf2_fetch_constant_bytes): Likewise.
9619 (dwarf2_fetch_die_type_sect_off): Likewise.
9620 (follow_die_sig_1): Likewise.
9621 (load_full_type_unit): Likewise.
9622 (read_signatured_type): Likewise.
9623 (dwarf2_cu::dwarf2_cu): Don't set cu field.
9624 (dwarf2_cu::~dwarf2_cu): Remove.
9625 (dwarf2_per_objfile::get_cu): New.
9626 (dwarf2_per_objfile::set_cu): New.
9627 (age_cached_comp_units): Rename to...
9628 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
9629 to std::unordered_map.
9630 (free_one_cached_comp_unit): Rename to...
9631 (dwarf2_per_objfile::remove_cu): ... this. Adjust
9632 to std::unordered_map.
9633 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
9634 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
9635 a dwarf2_per_objfile in data.
9636 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
9637 (dwarf2_clear_marks): Remove.
9638
2e671100
SM
96392020-05-27 Simon Marchi <simon.marchi@efficios.com>
9640
9641 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
9642 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
9643 (init_tu_and_read_dwo_dies): Likewise.
9644 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
9645 (cutu_reader::cutu_reader): Likewise.
9646 (load_partial_comp_unit): Likewise.
9647 (process_psymtab_comp_unit): Update.
9648 (build_type_psymtabs_1): Update.
9649 (process_skeletonless_type_unit): Update.
9650 (load_full_comp_unit): Update.
9651 (find_partial_die): Update.
9652 (dwarf2_read_addr_index): Update.
9653 (read_signatured_type): Update.
9654
2e6a9f79
SM
96552020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9656
9657 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
9658 m_header_read_in>: New fields.
9659 <get_header>: New method.
9660 * dwarf2/read.c (per_cu_header_read_in): Remove.
9661 (dwarf2_per_cu_data::get_header): New.
9662 (dwarf2_per_cu_data::addr_size): Update.
9663 (dwarf2_per_cu_data::offset_size): Update.
9664 (dwarf2_per_cu_data::ref_addr_size): Update.
9665
1b555f17
SM
96662020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9667
9668 * dwarf2/read.c (load_cu): Return dwarf2_cu.
9669 (dw2_do_instantiate_symtab): Update.
9670 (queue_and_load_all_dwo_tus): Change parameter from
9671 dwarf2_per_cu_data to dwarf2_cu.
9672 (dwarf2_fetch_die_loc_sect_off): Update.
9673 (dwarf2_fetch_constant_bytes): Update.
9674 (dwarf2_fetch_die_type_sect_off): Update.
9675
8fc0b21d
SM
96762020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9677
9678 * dwarf2/read.c (process_full_comp_unit,
9679 process_full_type_unit): Remove per_cu, per_objfile paramters.
9680 Add dwarf2_cu parameter.
9681 (process_queue): Update.
9682
168c9250
SM
96832020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9684
9685 * dwarf2/read.c (create_cu_from_index_list): Replace
9686 dwarf2_per_objfile parameter with dwarf2_per_bfd.
9687 (create_cus_from_index_list): Likewise.
9688 (create_cus_from_index): Likewise.
9689 (create_signatured_type_table_from_index): Likewise.
9690 (create_cus_from_debug_names_list): Likewise.
9691 (create_cus_from_debug_names): Likewise.
9692 (dwarf2_read_gdb_index): Update.
9693 (dwarf2_read_debug_names): Update.
9694
e286671b
TT
96952020-05-27 Tom Tromey <tom@tromey.com>
9696 Simon Marchi <simon.marchi@efficios.com>
9697
9698 * dwarf2/read.h (struct dwarf2_per_objfile)
9699 <get_type_for_signatured_type, set_type_for_signatured_type>:
9700 New methods.
9701 <m_type_map>: New member.
9702 (struct signatured_type) <type>: Remove.
9703 * dwarf2/read.c
9704 (dwarf2_per_objfile::get_type_for_signatured_type,
9705 dwarf2_per_objfile::set_type_for_signatured_type): New.
9706 (get_signatured_type): Use new methods.
9707
8adb8487
TT
97082020-05-27 Tom Tromey <tom@tromey.com>
9709 Simon Marchi <simon.marchi@efficios.com>
9710
9711 * dwarf2/read.h (struct type_unit_group_unshareable): New.
9712 (struct dwarf2_per_objfile) <type_units>: New member.
9713 <get_type_unit_group_unshareable>: New method.
9714 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
9715 num_symtabs, symtabs>: Remove; move to
9716 type_unit_group_unshareable.
9717 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
9718 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
9719 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
9720
127bbf4b
SM
97212020-05-27 Simon Marchi <simon.marchi@efficios.com>
9722
9723 * dwarf2/read.h (struct dwarf2_per_cu_data):
9724 <dwarf2_per_objfile>: Remove.
9725 * dwarf2/read.c (create_cu_from_index_list): Don't assign
9726 dwarf2_per_objfile.
9727 (create_signatured_type_table_from_index): Likewise.
9728 (create_signatured_type_table_from_debug_names): Likewise.
9729 (create_debug_type_hash_table): Likewise.
9730 (fill_in_sig_entry_from_dwo_entry): Likewise.
9731 (create_type_unit_group): Likewise.
9732 (read_comp_units_from_section): Likewise.
9733 (create_cus_hash_table): Likewise.
9734
f6e649dd
SM
97352020-05-27 Simon Marchi <simon.marchi@efficios.com>
9736
9737 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
9738 dwarf2_per_cu_data::dwarf2_per_objfile.
9739 (compute_compunit_symtab_includes): Likewise.
9740 (dwarf2_cu::start_symtab): Likewise.
9741
aa66c379
SM
97422020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9743
9744 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
9745 parameter.
9746 * dwarf2/read.c (get_die_type_at_offset): Likewise.
9747 (read_namespace_alias): Update.
9748 (lookup_die_type): Update.
9749 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
9750 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
9751 Update.
9752 (disassemble_dwarf_expression): Update.
9753
120ce1b5
SM
97542020-05-27 Simon Marchi <simon.marchi@efficios.com>
9755
9756 * dwarf2/read.h (struct dwarf2_queue_item): Add
9757 dwarf2_per_objfile parameter, assign new parameter.
9758 <per_objfile>: New field.
9759 * dwarf2/read.c (free_one_cached_comp_unit): Add
9760 dwarf2_per_objfile parameter.
9761 (queue_comp_unit): Likewise.
9762 (dw2_do_instantiate_symtab): Update.
9763 (process_psymtab_comp_unit): Update.
9764 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
9765 (process_imported_unit_die): Update.
9766 (queue_and_load_dwo_tu): Update.
9767 (follow_die_offset): Update.
9768 (follow_die_sig_1): Update.
9769
9f47c707
SM
97702020-05-27 Simon Marchi <simon.marchi@efficios.com>
9771
9772 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
9773 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
9774 (read_call_site_scope): Assign per_objfile.
9775 (dwarf2_per_cu_data::objfile): Remove.
9776 * gdbtypes.h (struct call_site) <per_objfile>: New member.
9777 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
9778 dwarf2_per_objfile parameter.
9779 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
9780 dwarf2_per_objfile parameter.
9781 (dwarf_expr_reg_to_entry_parameter): Add output
9782 dwarf2_per_objfile parameter.
9783 (locexpr_get_frame_base): Update.
9784 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
9785 <push_dwarf_reg_entry_value>: Update.
9786 <call_site_to_target_addr>: Update.
9787 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
9788 parameter.
9789 (value_of_dwarf_reg_entry): Update.
9790 (rw_pieced_value): Update.
9791 (indirect_synthetic_pointer): Update.
9792 (dwarf2_evaluate_property): Update.
9793 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
9794 parameter.
9795 (locexpr_read_variable): Update.
9796 (locexpr_get_symbol_read_needs): Update.
9797 (loclist_read_variable): Update.
9798
14095eb3
SM
97992020-05-27 Simon Marchi <simon.marchi@efficios.com>
9800
9801 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
9802 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9803 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
9804 parameter.
9805 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
9806 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9807 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
9808 parameter.
9809 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
9810 sect_variable_value): Add dwarf2_per_objfile parameter.
9811 (class dwarf_evaluate_loc_desc) <dwarf_call,
9812 dwarf_variable_value>: Update.
9813 (fetch_const_value_from_synthetic_pointer): Add
9814 dwarf2_per_objfile parameter.
9815 (fetch_const_value_from_synthetic_pointer): Update.
9816 (coerced_pieced_ref): Update.
9817 (class symbol_needs_eval_context) <dwarf_call,
9818 dwarf_variable_value>: Update.
9819 (dwarf2_compile_expr_to_ax): Update.
9820
3c3cd3d4
SM
98212020-05-27 Simon Marchi <simon.marchi@efficios.com>
9822
9823 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
9824 parameter.
9825 (dwarf2_evaluate_loc_desc_full): Update.
9826
82ca3f51
SM
98272020-05-27 Simon Marchi <simon.marchi@efficios.com>
9828
9829 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
9830 parameter.
9831 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
9832 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
9833 dwarf2_per_objfile parameter.
9834 (decode_debug_loc_dwo_addresses): Likewise.
9835 (dwarf2_find_location_expression): Update.
9836 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
9837 (locexpr_describe_location_piece): Add dwarf2_per_objfile
9838 parameter.
9839 (disassemble_dwarf_expression): Add dwarf2_per_objfile
9840 parameter.
9841 (locexpr_describe_location_1): Likewise.
9842 (locexpr_describe_location): Update.
9843
4b167ea1
SM
98442020-05-27 Simon Marchi <simon.marchi@efficios.com>
9845
9846 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
9847 Remove.
9848 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
9849 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
9850 (dwarf2_compile_property_to_c): Update.
9851 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
9852 use text offset from objfile.
9853 (locexpr_tracepoint_var_ref): Update.
9854 (locexpr_generate_c_location): Update.
9855 (loclist_describe_location): Update.
9856 (loclist_tracepoint_var_ref): Update.
9857 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
9858 dwarf2_per_objfile parameter.
9859 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
9860 use text offset from objfile.
9861 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
9862
89b07335
SM
98632020-05-27 Simon Marchi <simon.marchi@efficios.com>
9864
9865 * dwarf2/expr.h (struct dwarf_expr_context)
9866 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
9867 <offset>: Remove.
9868 <per_objfile>: New member.
9869 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
9870 dwarf2_per_objfile parameter. Don't set offset, set
9871 per_objfile.
9872 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
9873 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
9874 a dwarf2_per_objfile object instead of an offset.
9875 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
9876 constructor.
9877 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
9878 to dwarf2_expr_executor constructor. Don't set offset.
9879 (dwarf2_fetch_cfa_info): Update.
9880 (struct dwarf2_frame_cache) <text_offset>: Remove.
9881 <per_objfile>: New field.
9882 (dwarf2_frame_cache): Update.
9883 (dwarf2_frame_prev_register): Update.
9884 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9885 <dwarf_evaluate_loc_desc>: Add constructor.
9886 (dwarf2_evaluate_loc_desc_full): Update.
9887 (dwarf2_locexpr_baton_eval): Update.
9888 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
9889 Add constructor.
9890 (dwarf2_loc_desc_get_symbol_read_needs): Update.
9891
293e7e51
SM
98922020-05-27 Simon Marchi <simon.marchi@efficios.com>
9893
9894 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
9895 addr_sized_int_type>: Move to dwarf2_cu.
9896 <int_type>: Move to dwarf2_per_objfile.
9897 (struct dwarf2_per_objfile) <int_type>: Move here.
9898 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
9899 addr_sized_int_type>: Move here.
9900 (read_func_scope): Update.
9901 (read_array_type): Update.
9902 (read_tag_string_type): Update.
9903 (attr_to_dynamic_prop): Update.
9904 (dwarf2_per_cu_data::int_type): Rename to...
9905 (dwarf2_per_objfile::int_type): ... this.
9906 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
9907 (dwarf2_cu::addr_sized_int_type): ... this.
9908 (read_subrange_type): Update.
9909 (dwarf2_per_cu_data::addr_type): Rename to...
9910 (dwarf2_cu::addr_type): ... this.
9911 (set_die_type): Update.
9912
64874a40
SM
99132020-05-27 Simon Marchi <simon.marchi@efficios.com>
9914
9915 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
9916 data through per_cu->cu.
9917
4ab09049
SM
99182020-05-27 Simon Marchi <simon.marchi@efficios.com>
9919
9920 * dwarf2/read.c (lookup_dwo_comp_unit): Change
9921 dwarf2_per_cu_data parameter fo dwarf2_cu.
9922 (lookup_dwo_type_unit): Likewise.
9923 (read_cutu_die_from_dwo): Likewise.
9924 (lookup_dwo_unit): Likewise.
9925 (open_and_init_dwo_file): Likewise.
9926 (lookup_dwo_cutu): Likewise.
9927 (lookup_dwo_comp_unit): Likewise.
9928 (lookup_dwo_type_unit): Likewise.
9929 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9930 (cutu_reader::cutu_reader): Update.
9931
47b14e86
SM
99322020-05-27 Simon Marchi <simon.marchi@efficios.com>
9933
9934 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
9935 parameter.
9936 (process_full_type_unit): Likewise.
9937 (process_queue): Update.
9938
43182c09
SM
99392020-05-27 Simon Marchi <simon.marchi@efficios.com>
9940
9941 * dwarf2/read.c (recursively_compute_inclusions): Add
9942 dwarf2_per_objfile parameter.
9943 (compute_compunit_symtab_includes): Likewise.
9944 (process_cu_includes): Update.
9945
7aa104c4
SM
99462020-05-27 Simon Marchi <simon.marchi@efficios.com>
9947
9948 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
9949 parameter.
9950 (create_type_unit_group): Update.
9951 (process_psymtab_comp_unit_reader): Update.
9952 (build_type_psymtabs_reader): Update.
9953
e3beb21d
SM
99542020-05-27 Simon Marchi <simon.marchi@efficios.com>
9955
9956 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
9957 object through m_this_cu->cu.
9958
d460f660
SM
99592020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9960
9961 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
9962 the info parameter.
9963 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
9964
ab432490
SM
99652020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9966
9967 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
9968 per_objfile parameter.
9969 (load_full_type_unit): Add per_objfile parameter.
9970 (read_signatured_type): Likewise.
9971 (load_full_comp_unit): Likewise.
9972 (load_cu): Likewise.
9973 (dw2_do_instantiate_symtab): Likewise.
9974 (dw2_get_file_names): Likewise.
9975 (dw2_map_symtabs_matching_filename): Update.
9976 (dw_expand_symtabs_matching_file_matcher): Update.
9977 (dw2_map_symbol_filenames): Update.
9978 (process_psymtab_comp_unit): Add per_objfile parameter.
9979 (build_type_psymtabs_1): Update.
9980 (process_skeletonless_type_unit): Update.
9981 (dwarf2_build_psymtabs_hard): Update.
9982 (load_partial_comp_unit): Add per_objfile parameter.
9983 (scan_partial_symbols): Update.
9984 (load_full_comp_unit): Add per_objfile parameter.
9985 (process_imported_unit_die): Update.
9986 (create_cus_hash_table): Update.
9987 (find_partial_die): Update.
9988 (dwarf2_read_addr_index): Update.
9989 (follow_die_offset): Update.
9990 (dwarf2_fetch_die_loc_sect_off): Update.
9991 (dwarf2_fetch_constant_bytes): Update.
9992 (dwarf2_fetch_die_type_sect_off): Update.
9993 (follow_die_sig_1): Update.
9994 (load_full_type_unit): Add per_objfile parameter.
9995 (read_signatured_type): Likewise.
9996
313bad1b
SM
99972020-05-27 Simon Marchi <simon.marchi@efficios.com>
9998
9999 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
10000 of objfile_name.
10001
c3699833
SM
100022020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10003
10004 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
10005 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
10006 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
10007 field.
10008 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
10009 (create_cus_from_index): Update.
10010 (dwarf2_read_gdb_index): Update.
10011 (create_cus_from_debug_names): Update.
10012 (dwarf2_read_debug_names): Update.
10013 (get_abbrev_section_for_cu): Update.
10014 (create_all_comp_units): Update.
10015 (read_attribute_value): Update.
10016 (get_debug_line_section): Update.
10017 * dwarf2/index-cache.c (index_cache::store): Update.
10018 * dwarf2/index-write.c (save_gdb_index_command): Update.
10019 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
10020
1859c670
SM
100212020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10022
10023 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
10024 member.
10025 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
10026 dwarf2_per_cu_data::per_bfd.
10027 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
10028 (create_type_unit_group): Likewise.
10029 (queue_comp_unit): Remove reference to
10030 per_cu->dwarf2_per_objfile.
10031 (maybe_queue_comp_unit): Likewise.
10032 (fill_in_sig_entry_from_dwo_entry): Assign new field.
10033 (create_cus_hash_table): Assign new field.
10034
5e22e966
SM
100352020-05-27 Simon Marchi <simon.marchi@efficios.com>
10036
10037 * dwarf2/read.c: Replace
10038 dwarf2_cu->per_cu->dwarf2_per_objfile references with
10039 dwarf2_cu->per_objfile throughout.
10040
97a1449a
SM
100412020-05-27 Simon Marchi <simon.marchi@efficios.com>
10042
10043 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
10044 parameter, don't use per_cu->dwarf2_per_objfile.
10045 (dw2_instantiate_symtab): Likewise.
10046 (dw2_find_last_source_symtab): Update.
10047 (dw2_map_expand_apply): Update.
10048 (dw2_lookup_symbol): Update.
10049 (dw2_expand_symtabs_for_function): Update.
10050 (dw2_expand_all_symtabs): Update.
10051 (dw2_expand_symtabs_with_fullname): Update.
10052 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
10053 don't use per_cu->dwarf2_per_objfile.
10054 (dw2_expand_marked_cus): Update.
10055 (dw2_find_pc_sect_compunit_symtab): Update.
10056 (dw2_debug_names_lookup_symbol): Update.
10057 (dw2_debug_names_expand_symtabs_for_function): Update.
10058 (dw2_debug_names_map_matching_symbols): Update.
10059 (dwarf2_psymtab::expand_psymtab): Update.
10060
9e021579
SM
100612020-05-27 Simon Marchi <simon.marchi@efficios.com>
10062
10063 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
10064 <per_objfile>: New member.
10065 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
10066 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
10067 call to dwarf2_cu.
10068 (cutu_reader::cutu_reader): Update.
10069 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
10070
ae090bdb
SM
100712020-05-27 Simon Marchi <simon.marchi@efficios.com>
10072
10073 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
10074 struct dwarf2_per_objfile.
10075 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
10076 dwarf2_per_bfd.
10077 * dwarf2/read.c (set_die_type): Update.
10078 (get_die_type_at_offset): Update.
10079
af758d11
SM
100802020-05-27 Tom Tromey <tom@tromey.com>
10081 Simon Marchi <simon.marchi@efficios.com>
10082
10083 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
10084 method.
10085 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
10086 get_symtab, set_symtab>: New methods.
10087 <m_symtabs>: New field.
10088 (struct dwarf2_psymtab): Derive from partial_symtab.
10089 <readin_p, get_compunit_symtab>: Declare methods.
10090 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
10091 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
10092 New methods.
10093 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
10094 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
10095 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
10096 (dw2_symtab_iter_next, dw2_print_stats)
10097 (dw2_expand_symtabs_with_fullname)
10098 (dw2_expand_symtabs_matching_one)
10099 (dw_expand_symtabs_matching_file_matcher)
10100 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
10101 (dw2_debug_names_iterator::next)
10102 (dw2_debug_names_map_matching_symbols)
10103 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
10104 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
10105 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
10106 New methods.
10107 (get_compunit_symtab, process_full_comp_unit)
10108 (process_full_type_unit): Update.
10109 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
10110
5989a64e
SM
101112020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10112
10113 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
10114 then introduce a new dwarf2_per_objfile type.
10115 <read_line_string>: Move to the new dwarf2_per_objfile type.
10116 <objfile>: Likewise.
10117 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
10118 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
10119 dwarf2_per_objfile->per_bfd.
10120 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
10121 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
10122 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
10123 (dwarf2_per_bfd::free_cached_comp_units): ... this.
10124 (dwarf2_has_info): Allocate dwarf2_per_bfd.
10125 (dwarf2_per_objfile::locate_sections): Rename to...
10126 (dwarf2_per_bfd::locate_sections): ... this.
10127 (dwarf2_per_objfile::get_cutu): Rename to...
10128 (dwarf2_per_bfd::get_cutu): ... this.
10129 (dwarf2_per_objfile::get_cu): Rename to...
10130 (dwarf2_per_bfd::get_cu): ... this.
10131 (dwarf2_per_objfile::get_tu): Rename to...
10132 (dwarf2_per_bfd::get_tu): ... this.
10133 (dwarf2_per_objfile::allocate_per_cu): Rename to...
10134 (dwarf2_per_bfd::allocate_per_cu): ... this.
10135 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
10136 (dwarf2_per_bfd::allocate_signatured_type): ... this.
10137 (get_gdb_index_contents_ftype): Change parameter from
10138 dwarf2_per_objfile to dwarf2_per_bfd.
10139 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
10140 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
10141
a50264ba
TT
101422020-05-27 Tom Tromey <tom@tromey.com>
10143 Simon Marchi <simon.marchi@efficios.com>
10144
10145 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
10146 (allocate_piece_closure): Set "per_objfile" member.
10147 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
10148 (locexpr_describe_location, loclist_describe_location): Use new
10149 member.
10150 * dwarf2/read.c (read_call_site_scope)
10151 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
10152 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
10153 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
10154 handle_data_member_location): Set per_objfile member.
10155 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
10156 member.
10157 (struct dwarf2_loclist_baton) <per_objfile>: New member.
10158
d3473f0c
TT
101592020-05-27 Tom Tromey <tom@tromey.com>
10160
10161 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
10162 allocate_signatured_type>: Declare new methods.
10163 <m_num_psymtabs>: New member.
10164 (struct dwarf2_per_cu_data) <index>: New member.
10165 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
10166 (dwarf2_per_objfile::allocate_signatured_type): New methods.
10167 (create_cu_from_index_list): Use allocate_per_cu.
10168 (create_signatured_type_table_from_index)
10169 (create_signatured_type_table_from_debug_names)
10170 (create_debug_type_hash_table, add_type_unit)
10171 (read_comp_units_from_section): Use allocate_signatured_type.
10172
5717c425
TT
101732020-05-27 Tom Tromey <tom@tromey.com>
10174
10175 * psymtab.c (partial_map_expand_apply)
10176 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10177 (psym_lookup_global_symbol_language)
10178 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10179 (psym_print_stats, psym_expand_symtabs_for_function)
10180 (psym_map_symbol_filenames, psym_map_matching_symbols)
10181 (psym_expand_symtabs_matching)
10182 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10183 (maintenance_check_psymtabs): Update.
10184 * psympriv.h (struct partial_symtab) <readin_p,
10185 get_compunit_symtab>: Add objfile parameter.
10186 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
10187 Likewise.
10188 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
10189 get_compunit_symtab>: Likewise.
10190 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
10191
45940949
TT
101922020-05-27 Tom Tromey <tom@tromey.com>
10193
10194 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
10195 member.
10196 * dwarf2/read.c (delete_file_name_entry): Fix comment.
10197 (create_cu_from_index_list)
10198 (create_signatured_type_table_from_index)
10199 (create_signatured_type_table_from_debug_names)
10200 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
10201 (dwarf2_create_include_psymtab)
10202 (create_debug_type_hash_table, add_type_unit)
10203 (create_type_unit_group, read_comp_units_from_section)
10204 (dwarf2_compute_name, create_cus_hash_table)
10205 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
10206 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
10207 obstack.
10208 (dw2_get_real_path): Likewise. Change argument to
10209 dwarf2_per_objfile.
10210
f8c6d152
LM
102112020-05-27 Luis Machado <luis.machado@linaro.org>
10212
10213 PR tdep/26000
10214 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
10215 for ldrd (immediate).
10216
e98d2e6d
PW
102172020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10218
10219 * command.h: Add comment giving the name of class_tui.
10220 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
10221 create the fake command for the help for class_tui.
10222
53a47a3e
TT
102232020-05-26 Tom Tromey <tromey@adacore.com>
10224
10225 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
10226 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
10227 (val_atr): New function.
10228 (value_val_atr): Use it.
10229 * ada-valprint.c (print_optional_low_bound): Change low bound
10230 handling for enums.
10231 (val_print_packed_array_elements): Don't call discrete_position.
10232 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
10233 discrete_position for enum types.
10234 * language.c (default_print_array_index): Change type.
10235 * language.h (struct language_defn) <la_print_array_index>: Add
10236 index_type parameter, change type of index_value.
10237 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
10238 (default_print_array_index): Update.
10239 * valprint.c (maybe_print_array_index): Don't call
10240 value_from_longest. Update.
10241 (value_print_array_elements): Don't call discrete_position.
10242
0bc2354b
TT
102432020-05-26 Tom Tromey <tromey@adacore.com>
10244
10245 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
10246 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
10247
1218a4bf
CDA
102482020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
10249
10250 PR gdb/13519
10251 * avr-tdep.c (avr_integer_to_address): Return data or code
10252 address accordingly to the second 'type' argument of the
10253 function.
10254
92651b1d
MW
102552020-05-25 Michael Weghorn <m.weghorn@posteo.de>
10256
10257 * infcmd.c, inferior.h: (construct_inferior_arguments):
10258 Moved function from here to gdbsupport/common-inferior.{h,cc}
10259
0a4f5f8c
TT
102602020-05-23 Tom Tromey <tom@tromey.com>
10261
10262 Revert commit eca1f90c:
10263 * NEWS: Remove entry for completion styling.
10264 * completer.c (_rl_completion_prefix_display_length): Move
10265 declaration later.
10266 (gdb_fnprint): Revert.
10267 (gdb_display_match_list_1): Likewise.
10268 * cli/cli-style.c (completion_prefix_style)
10269 (completion_difference_style, completion_suffix_style): Remove.
10270 (_initialize_cli_style): Revert.
10271 * cli/cli-style.h (completion_prefix_style)
10272 (completion_difference_style, completion_suffix_style): Don't
10273 declare.
10274
e08bd6c5
PA
102752020-05-24 Pedro Alves <palves@redhat.com>
10276
10277 * symtab.c (completion_list_add_name): Return boolean indication
10278 of whether the symbol matched.
10279 (completion_list_add_symbol): Don't try to remove C++ aliases if
10280 the symbol didn't match in the first place.
10281 * symtab.h (completion_list_add_name): Return bool.
10282
ceacbf6e
SM
102832020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
10284
10285 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
10286 type::field.
10287
26f16254
JB
102882020-05-23 Joel Brobecker <brobecker@adacore.com>
10289
10290 GDB 9.2 released.
10291
eca1f90c
TT
102922020-05-23 Tom Tromey <tom@tromey.com>
10293
10294 * NEWS: Add entry for completion styling.
10295 * completer.c (_rl_completion_prefix_display_length): Move
10296 declaration earlier.
10297 (gdb_fnprint): Use completion_style.
10298 (gdb_display_match_list_1): Likewise.
10299 * cli/cli-style.c (completion_prefix_style)
10300 (completion_difference_style, completion_suffix_style): New
10301 globals.
10302 (_initialize_cli_style): Register new globals.
10303 * cli/cli-style.h (completion_prefix_style)
10304 (completion_difference_style, completion_suffix_style): Declare.
10305
51e2cfa2
PA
103062020-05-23 Pedro Alves <palves@redhat.com>
10307
10308 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
10309 (parse_escape): Use ISDIGIT instead of isdigit.
10310 (puts_debug): Use gdb_isprint instead of isprint.
10311 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
10312 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
10313 ISSPACE instead of isspace.
10314 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
10315 instead of isspace.
10316 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
10317 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
10318 instead of isxdigit and ISDIGIT instead of isdigit.
10319
80fc5e77
SM
103202020-05-22 Simon Marchi <simon.marchi@efficios.com>
10321
10322 * gdbtypes.h (struct type) <field>: New method.
10323 (TYPE_FIELDS): Remove, replace all uses with either type::fields
10324 or type::field.
10325
3cabb6b0
SM
103262020-05-22 Simon Marchi <simon.marchi@efficios.com>
10327
10328 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
10329 (TYPE_FIELDS): Use type::fields. Change all call sites that
10330 modify the propery to use type::set_fields instead.
10331
1f704f76
SM
103322020-05-22 Simon Marchi <simon.marchi@efficios.com>
10333
10334 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
10335 type::num_fields instead.
10336
5e33d5f4
SM
103372020-05-22 Simon Marchi <simon.marchi@efficios.com>
10338
10339 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
10340 methods.
10341 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
10342 that modify the number of fields to use type::set_num_fields
10343 instead.
10344
9392ebb3
TT
103452020-05-22 Tom Tromey <tromey@adacore.com>
10346
10347 * compile/compile-object-load.h (munmap_list_free): Don't
10348 declare.
10349
7c13f4e8
AB
103502020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
10351
10352 * annotate.c (annotate_source_line): Update return type, add call
10353 to update current symtab and line.
10354 * annotate.h (annotate_source_line): Update return type, and
10355 extend header comment.
10356 * source.c (info_line_command): Check annotation_level before
10357 calling annotate_source_line.
10358 * stack.c (print_frame_info): If calling annotate_source_line
10359 returns true, then don't print any other source line information.
10360
aa370940
SM
103612020-05-21 Simon Marchi <simon.marchi@efficios.com>
10362
10363 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
10364
84d53fa9
SM
103652020-05-21 Simon Marchi <simon.marchi@efficios.com>
10366
10367 * coffread.c (patch_type): Remove NULL check before xfree.
10368 * corefile.c (set_gnutarget): Likewise.
10369 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
10370 * exec.c (build_section_table): Likewise.
10371 * remote.c (remote_target::pass_signals): Likewise.
10372 * utils.c (n_spaces): Likewise.
10373 * cli/cli-script.c (document_command): Likewise.
10374 * i386-windows-tdep.c (core_process_module_section): Likewise.
10375 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
10376
9d428aae
SM
103772020-05-20 Simon Marchi <simon.marchi@efficios.com>
10378
10379 * symfile.c (reread_symbols): Clear objfile's section_offsets
10380 vector and section indices, re-compute them by calling
10381 sym_offsets.
10382
250106a7
TT
103832020-05-20 Tom Tromey <tromey@adacore.com>
10384
10385 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 10386 (desc_one_bound, desc_index_type): Compute field name.
250106a7 10387
9a0bacfb
TV
103882020-05-20 Tom de Vries <tdevries@suse.de>
10389
10390 PR symtab/25833
10391 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
10392
7b958a48
AM
103932020-05-20 Alan Modra <amodra@gmail.com>
10394
10395 PR 25993
10396 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
10397 bfd_set_filename.
10398 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
10399 passed to bfd_set_filename.
10400 * symfile-mem.c (add_vsyscall_page): Likewise for string
10401 passed to symbol_file_add_from_memory.
10402 (symbol_file_add_from_memory): Make name param a const char* and
10403 don't strdup.
10404
c7e97679
AM
104052020-05-20 Alan Modra <amodra@gmail.com>
10406
10407 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
10408 rather than accessing bfd->filename directly.
10409 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
10410 and use bfd_section_name.
10411 * dwarf2/frame.c (decode_frame_entry): Likewise.
10412 * exec.c (exec_set_section_address): Likewise.
10413 * solib-aix.c (solib_aix_bfd_open): Likewise.
10414 * stap-probe.c (get_stap_base_address): Likewise.
10415 * symfile.c (reread_symbols): Likewise.
10416
563c591b
TT
104172020-05-19 Tom Tromey <tromey@adacore.com>
10418
10419 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
10420
f408d82c
SM
104212020-05-19 Simon Marchi <simon.marchi@efficios.com>
10422
10423 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
10424
98c59b52
PA
104252020-05-19 Pedro Alves <palves@redhat.com>
10426
10427 * NEWS (set exec-file-mismatch): Adjust entry.
10428 * exec.c: Include "build-id.h".
10429 (validate_exec_file): Try to match build IDs instead of filenames.
10430 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
10431 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
10432 and pass down 'warn_if_slow'.
10433 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
10434 gdb_bfd_open_closure to pass it down.
10435 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
10436
4111f652
PA
104372020-05-19 Pedro Alves <palves@redhat.com>
10438
10439 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
10440 * target.c (target_fileio_open_1): Rename to target_fileio_open
10441 and make extern. Use bool.
10442 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
10443 (target_fileio_read_alloc_1): Adjust.
10444 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
10445 (target_fileio_open_warn_if_slow): Delete declaration.
10446
ad80db5b
PA
104472020-05-19 Pedro Alves <palves@redhat.com>
10448
10449 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
10450 Adjust all callers.
10451
1d6ce4d3
YS
104522020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
10453
10454 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
10455 whether disp is negative.
10456
9005fbbb
SM
104572020-05-19 Simon Marchi <simon.marchi@efficios.com>
10458
10459 * symfile.h (struct symfile_segment_data)
10460 <~symfile_segment_data>: Remove.
10461 <segment_info>: Change to std::vector.
10462 * symfile.c (default_symfile_segments): Update.
10463 * elfread.c (elf_symfile_segments): Update.
10464
68b888ff
SM
104652020-05-19 Simon Marchi <simon.marchi@efficios.com>
10466
10467 * symfile.h (struct symfile_segment_data) <struct segment>: New.
10468 <segments>: New.
10469 <segment_bases, segment_sizes>: Remove.
10470 * symfile.c (default_symfile_segments): Update.
10471 * elfread.c (elf_symfile_segments): Update.
10472 * remote.c (remote_target::get_offsets): Update.
10473 * solib-target.c (solib_target_relocate_section_addresses):
10474 Update.
10475
62982abd
SM
104762020-05-19 Simon Marchi <simon.marchi@efficios.com>
10477
10478 * symfile.h (struct symfile_segment_data): Initialize fields.
10479 <~symfile_segment_data>: Add.
10480 (symfile_segment_data_up): New.
10481 (struct sym_fns) <sym_segments>: Return a
10482 symfile_segment_data_up.
10483 (default_symfile_segments): Return a symfile_segment_data_up.
10484 (free_symfile_segment_data): Remove.
10485 (get_symfile_segment_data): Return a symfile_segment_data_up.
10486 * symfile.c (default_symfile_segments): Likewise.
10487 (get_symfile_segment_data): Likewise.
10488 (free_symfile_segment_data): Remove.
10489 (symfile_find_segment_sections): Update.
10490 * elfread.c (elf_symfile_segments): Return a
10491 symfile_segment_data_up.
10492 * remote.c (remote_target::get_offsets): Update.
10493 * solib-target.c (solib_target_relocate_section_addresses):
10494 Update.
10495 * symfile-debug.c (debug_sym_segments): Return a
10496 symfile_segment_data_up.
10497
7f204339
RO
104982020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10499
e52a0f1b
RO
10500 PR build/25981
10501 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
10502 Hardcode register numbers.
10503
7f204339
RO
10504 PR build/25981
10505 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
10506 procfs_find_LDT_entry): Remove.
10507 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
10508 procfs_find_LDT_entry): Remove.
10509 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
10510 Remove.
10511
7f32a4d5
PA
105122020-05-17 Pedro Alves <palves@redhat.com>
10513 Andrew Burgess <andrew.burgess@embecosm.com>
10514 Keno Fischer <keno@juliacomputing.com>
10515
10516 PR gdb/25741
10517 * breakpoint.c (build_target_condition_list): Update comments.
10518 (build_target_command_list): Update comments and skip matching
10519 locations.
10520 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
10521 a separate function. Simplify "set breakpoint auto-hw off"
10522 handling.
10523 (insert_breakpoints): Update comment.
10524 (tracepoint_locations_match): New parameter. For breakpoints,
10525 compare location types too, if the caller wants to.
10526 (handle_automatic_hardware_breakpoints): New functions.
10527 (bp_location_is_less_than): Also sort by location type and
10528 hardware breakpoint length.
10529 (update_global_location_list): Handle "set breakpoint auto-hw on"
10530 here.
10531 (update_breakpoint_locations): Ask breakpoint_locations_match to
10532 ignore location types.
10533
7d93a1e0
SM
105342020-05-16 Simon Marchi <simon.marchi@efficios.com>
10535
10536 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
10537 type::name instead.
10538
d0e39ea2
SM
105392020-05-16 Simon Marchi <simon.marchi@efficios.com>
10540
10541 * gdbtypes.h (struct type) <name, set_name>: New methods.
10542 (TYPE_CODE): Use type::name. Change all call sites used to set
10543 the name to use type::set_name instead.
10544
2dab0c7b
TT
105452020-05-16 Tom Tromey <tom@tromey.com>
10546
10547 * top.c (quit_force): Update.
10548 * infrun.c (handle_no_resumed): Update.
10549 * top.h (all_uis): New function.
10550 (ALL_UIS): Remove.
10551
59f7bd8d
SM
105522020-05-16 Simon Marchi <simon.marchi@efficios.com>
10553
10554 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
10555
9bf058f0
PA
105562020-05-16 Pedro Alves <palves@redhat.com>
10557
10558 * ia64-linux-nat.c
10559 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
10560 Declare method.
10561 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
10562
8f86ae1a
SM
105632020-05-15 Simon Marchi <simon.marchi@efficios.com>
10564
10565 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
10566 (sparc64_adi_info): Likewise.
10567
d6bc0792
TT
105682020-05-15 Tom Tromey <tom@tromey.com>
10569
10570 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
10571 block_objfile.
10572 (lookup_objfile_from_block): Remove.
10573 (lookup_symbol_in_block, lookup_symbol_in_static_block)
10574 (lookup_global_symbol): Use block_objfile.
10575 * symtab.h (lookup_objfile_from_block): Don't declare.
10576 * printcmd.c (clear_dangling_display_expressions): Use
10577 block_objfile.
10578 * parse.c (operator_check_standard): Use block_objfile.
10579
8c14c3a3
TT
105802020-05-15 Tom Tromey <tom@tromey.com>
10581
10582 * language.c (language_alloc_type_symbol): Set
10583 SYMBOL_SECTION.
10584 * symtab.c (initialize_objfile_symbol): Remove.
10585 (allocate_symbol): Remove.
10586 (allocate_template_symbol): Remove.
10587 * dwarf2/read.c (fixup_go_packaging): Use "new".
10588 (new_symbol): Use "new".
10589 (read_variable): Don't call initialize_objfile_symbol. Use
10590 "new".
10591 (read_func_scope): Use "new".
10592 * xcoffread.c (process_xcoff_symbol): Don't call
10593 initialize_objfile_symbol.
10594 (SYMBOL_DUP): Remove.
10595 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
10596 "new".
10597 * symtab.h (allocate_symbol, initialize_objfile_symbol)
10598 (allocate_template_symbol): Don't declare.
10599 (struct symbol): Add copy constructor. Change defaults.
10600 * jit.c (finalize_symtab): Use "new".
10601 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
10602 Use "new".
10603 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
10604 (common_block_end): Use "new".
10605 * mdebugread.c (parse_symbol): Use "new".
10606 (new_symbol): Likewise.
10607
5b4a1a8d
PW
106082020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10609
10610 * NEWS: Mention changes to help and apropos.
10611
57b4f16e
PW
106122020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10613
10614 * command.h (enum command_class): Improve comments, document
10615 that class_alias is for user-defined aliases, give the class
10616 name for each class, remove unused class_xdb.
10617 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
10618 * breakpoint.c (_initialize_breakpoint): Replace class_alias
10619 by a precise class.
10620 * infcmd.c (_initialize_infcmd): Likewise.
10621 * reverse.c (_initialize_reverse): Likewise.
10622 * stack.c (_initialize_stack): Likewise.
10623 * symfile.c (_initialize_symfile): Likewise.
10624 * tracepoint.c (_initialize_tracepoint): Likewise.
10625
7c05caf7
PW
106262020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10627
10628 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
10629 when their aliased command is traversed.
10630 (help_cmd): Add fput_command_names_styled call to
10631 output command name and aliases when command has an alias.
10632
3b3aaacb
PW
106332020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10634
10635 * cli/cli-decode.h (help_cmd_list): Remove declaration.
10636 * cli/cli-decode.c (help_cmd_list): Declare as static,
10637 remove prefix argument, use bool for recurse arg, rework to show the aliases of
10638 a command together with the command.
10639 (fput_command_name_styled, fput_command_names_styled): New functions.
10640 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
10641 fput_command_name_styled.
10642 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
10643 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
10644
7aa1b46f
PW
106452020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10646
10647 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
10648 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
10649 * command.h (cmd_show_list): Likewise.
10650 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
10651 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
10652
89bcba74
PW
106532020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10654
10655 * unittests/command-def-selftests.c (traverse_command_structure):
10656 Verify all commands of a list have the same prefix command and
10657 that only the top cmdlist commands have a null prefix.
10658
3f4d92eb
PW
106592020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10660
10661 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
10662 as prefix, not one of its aliases.
10663 (set_cmd_prefix): Remove.
10664 (do_add_cmd): Centralize the setting of the prefix of a command, when
10665 command is defined after its full chain of prefix commands.
10666 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
10667 (add_setshow_cmd_full): Likewise.
10668 (update_prefix_field_of_prefixed_commands): New function.
10669 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
10670 update_prefix_field_of_prefixed_commands.
10671 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
10672 addresses of remote_set_cmdlist and remote_show_cmdlist given
10673 as argument, not the address of an argument.
10674 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
10675 * gdb/remote.c (_initialize_remote): Likewise.
10676
0605465f
PW
106772020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10678
10679 * cli/cli-cmds.c (alias_command): Check for an existing alias
10680 using lookup_cmd_composition, as valid_command_p is too strict
10681 and forbids aliases that are the prefix of an existing alias
10682 or command.
10683 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
10684 command is properly recognised as a valid command.
10685
58e6ac70
PW
106862020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10687
10688 * unittests/help-doc-selftests.c: Rename to
10689 unittests/command-def-selftests.c
10690 * unittests/command-def-selftests.c (help_doc_tests): Update some
10691 comments.
10692 (command_structure_tests, traverse_command_structure): New namespace
10693 and function.
10694 (command_structure_invariants_tests): New function.
10695 (_initialize_command_def_selftests) Renamed from
10696 _initialize_help_doc_selftests, register command_structure_invariants
10697 selftest.
10698
a7b9ceb8
PW
106992020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10700
10701 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
10702 an alias of 'show'.
10703
b2188a06
JB
107042020-05-15 Joel Brobecker <brobecker@adacore.com>
10705
10706 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
10707 ada_is_fixed_point_type. Update all callers.
10708 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
10709 all callers.
10710 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
10711 Update all callers.
10712 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
10713 print_fixed_point_type. Update all callers.
10714 * ada-valprint.c (ada_value_print_num): Replace call to
10715 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
10716
a51951c2
KB
107172020-05-14 Kevin Buettner <kevinb@redhat.com>
10718
10719 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
10720 processors.
10721 (cpu_supports_bts): Add CV_AMD case.
10722
29d6859f
LM
107232020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
10724 Simon Marchi <simon.marchi@efficios.com>
10725
10726 * infrun.c (stop_all_threads): Collect multiple wait events at
10727 each pass.
10728
78134374
SM
107292020-05-14 Simon Marchi <simon.marchi@efficios.com>
10730
10731 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
10732 type::code instead.
10733
67607e24
SM
107342020-05-14 Simon Marchi <simon.marchi@efficios.com>
10735
10736 * gdbtypes.h (struct type) <code, set_code>: New methods.
10737 (TYPE_CODE): Use type::code. Change all call sites used to set
10738 the code to use type::set_code instead.
10739
a05575d3
TBA
107402020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10741 Tom de Vries <tdevries@suse.de>
10742 Pedro Alves <palves@redhat.com>
10743
10744 PR threads/25478
10745 * infrun.c (stop_all_threads): Do NOT ignore
10746 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
10747 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
10748 received.
10749 (handle_no_resumed): Remove code handling a live inferior with no
10750 threads.
10751 * remote.c (has_single_non_exited_thread): New.
10752 (remote_target::update_thread_list): Do not delete a thread if is
10753 the last thread of the process.
10754 * thread.c (thread_select): Call delete_exited_threads instead of
10755 prune_threads.
10756
6ad82919
TBA
107572020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10758
10759 * infrun.c (stop_all_threads): Enable/disable thread events of all
10760 targets. Move a debug message denoting the end of the function
10761 into the SCOPED_EXIT block.
10762
d890404b
TBA
107632020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10764
10765 * process-stratum-target.h: Include <set>.
10766 (all_non_exited_process_targets, switch_to_target_no_thread): New
10767 function declarations.
10768 * process-stratum-target.c (all_non_exited_process_targets)
10769 (switch_to_target_no_thread): New function implementations.
10770
293b3ebc
TBA
107712020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10772
10773 * infrun.c (handle_inferior_event): Extract out a piece of code
10774 into...
10775 (mark_non_executing_threads): ...this new function.
10776
7ca9b62a
TBA
107772020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10778
10779 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
10780 use.
10781
fc75c28b
TBA
107822020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10783
10784 * regcache.c (regcache_read_pc_protected): New function
10785 implementation that returns 0 if the PC cannot read via
10786 'regcache_read_pc'.
10787 * infrun.c (proceed): Call 'regcache_read_pc_protected'
10788 instead of 'regcache_read_pc'.
10789 (keep_going_pass_signal): Ditto.
10790
a89febbd
TT
107912020-05-13 Tom Tromey <tromey@adacore.com>
10792
10793 * ada-lang.c (align_value): Remove.
10794 (ada_template_to_fixed_record_type_1): Use align_up.
10795
f7e23710
TBA
107962020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10797
10798 * async-event.c: Update the copyright year.
10799 * async-event.h: Update the copyright year.
10800
02ff80c2
SM
108012020-05-12 Simon Marchi <simon.marchi@efficios.com>
10802
10803 * objfiles.h (is_addr_in_objfile,
10804 shared_objfile_contains_address_p): Return bool.
10805 * objfile.c (is_addr_in_objfile,
10806 shared_objfile_contains_address_p): Return bool.
10807
4fd6c7e8
TT
108082020-05-11 Tom Tromey <tromey@adacore.com>
10809
10810 * cli/cli-cmds.c (info_command): Restore.
10811 (_initialize_cli_cmds): Use add_prefix_command for "info".
10812 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
10813
5eb68a39
TT
108142020-05-11 Tom Tromey <tromey@adacore.com>
10815
10816 * ada-lang.c (ada_value_primitive_field): Now public.
10817 * ada-lang.h (ada_value_primitive_field): Declare.
10818 * ada-valprint.c (print_field_values): Use
10819 ada_value_primitive_field for wrapper fields.
10820
7666722f
TV
108212020-05-11 Tom de Vries <tdevries@suse.de>
10822
10823 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
10824 MODULE_DOMAIN.
10825
3ee6bb11
TV
108262020-05-11 Tom de Vries <tdevries@suse.de>
10827
10828 PR symtab/25941
10829 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
10830 with length 0, if not gdb-produced.
10831 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
10832
43434996
TV
108332020-05-09 Tom de Vries <tdevries@suse.de>
10834
10835 PR gdb/25955
10836 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
10837 calculation.
10838
2f78cffc
TT
108392020-05-09 Tom Tromey <tom@tromey.com>
10840
10841 * top.c (server_command): Now bool.
10842 * top.h (server_command): Now bool.
10843
4f7bc5ed
TT
108442020-05-08 Tom Tromey <tromey@adacore.com>
10845
10846 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
10847 already being processed.
10848
8be4b118
TT
108492020-05-08 Tom Tromey <tom@tromey.com>
10850
10851 * printcmd.c (struct display) <next>: Remove.
10852 <display>: New constructor.
10853 <exp_string>: Now a std::string.
10854 <enabled_p>: Now a bool.
10855 (display_number): Move definition earlier.
10856 (displays): Rename from display_chain. Now a std::vector.
10857 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
10858 (display_command): Update.
10859 (do_one_display, disable_display)
10860 (enable_disable_display_command, do_enable_disable_display):
10861 Update.
10862 (free_display): Remove.
10863 (clear_displays): Rewrite.
10864 (delete_display): Update.
10865 (map_display_numbers): Use function_view. Remove "data"
10866 parameter. Update.
10867 (do_delete_display): Remove.
10868 (undisplay_command): Update.
10869 (do_one_display, do_displays, disable_display)
10870 (info_display_command): Update.
10871 (do_enable_disable_display): Remove.
10872 (enable_disable_display_command)
10873 (clear_dangling_display_expressions): Update.
10874
94c93c35
TT
108752020-05-08 Tom Tromey <tom@tromey.com>
10876
10877 * symtab.c (set_symbol_cache_size)
10878 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
10879 (maintenance_print_symbol_cache_statistics): Update.
10880 * symmisc.c (print_symbol_bcache_statistics)
10881 (print_objfile_statistics, maintenance_print_objfiles)
10882 (maintenance_info_symtabs, maintenance_check_symtabs)
10883 (maintenance_expand_symtabs, maintenance_info_line_tables):
10884 Update.
10885 * symfile-debug.c (set_debug_symfile): Update.
10886 * source.c (forget_cached_source_info): Update.
10887 * python/python.c (gdbpy_progspaces): Update.
10888 * psymtab.c (maintenance_info_psymtabs): Update.
10889 * probe.c (parse_probes): Update.
10890 * linespec.c (iterate_over_all_matching_symtabs)
10891 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
10892 * guile/scm-progspace.c (gdbscm_progspaces): Update.
10893 * exec.c (exec_target::close): Update.
10894 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
10895 * breakpoint.c (print_one_breakpoint_location)
10896 (create_longjmp_master_breakpoint)
10897 (create_std_terminate_master_breakpoint): Update.
10898 * progspace.c (program_spaces): Now a std::vector.
10899 (maybe_new_address_space): Update.
10900 (add_program_space): Remove.
10901 (program_space::program_space): Update.
10902 (remove_program_space): Update.
10903 (number_of_program_spaces): Remove.
10904 (print_program_space, update_address_spaces): Update.
10905 * progspace.h (program_spaces): Change type.
10906 (ALL_PSPACES): Remove.
10907 (number_of_program_spaces): Don't declare.
10908 (struct program_space) <next>: Remove.
10909
a1fd1ac9
TT
109102020-05-08 Tom Tromey <tom@tromey.com>
10911
10912 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
10913 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
10914 (enable_break): Update.
10915 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
10916 (frv_fdpic_find_canonical_descriptor): Update.
10917 (frv_fetch_objfile_link_map): Update.
10918 * progspace.c (program_space::free_all_objfiles): Update.
10919 (program_space::solibs): New method.
10920 * progspace.h (struct program_space) <solibs>: New method.
10921 * solist.h (master_so_list): Don't declare.
10922 (ALL_SO_LIBS): Remove.
10923 * solib.h (so_list_head): Remove.
10924 (update_solib_list): Update comment.
10925 * solib.c (master_so_list): Remove.
10926 (solib_used, update_solib_list, solib_add)
10927 (info_sharedlibrary_command, clear_solib)
10928 (reload_shared_libraries_1, remove_user_added_objfile): Update.
10929
38eae084
TT
109302020-05-08 Tom Tromey <tom@tromey.com>
10931
10932 * extension.c (extension_languages): Now a std::array.
10933 (ALL_EXTENSION_LANGUAGES): Remove.
10934 (get_ext_lang_defn, get_ext_lang_of_file)
10935 (eval_ext_lang_from_control_command): Update.
10936 (finish_ext_lang_initialization)
10937 (auto_load_ext_lang_scripts_for_objfile)
10938 (ext_lang_type_printers::ext_lang_type_printers)
10939 (apply_ext_lang_type_printers)
10940 (ext_lang_type_printers::~ext_lang_type_printers)
10941 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
10942 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
10943 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
10944 (get_matching_xmethod_workers, ext_lang_colorize)
10945 (ext_lang_before_prompt): Update.
10946 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
10947
596dc4ad
TT
109482020-05-08 Tom Tromey <tom@tromey.com>
10949
10950 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
10951 overload.
10952 <swap_string, m_string>: Remove.
10953 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
10954 Update.
10955 * stabsread.c (define_symbol, read_type): Update.
10956 * linespec.c (find_linespec_symbols): Update.
10957 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
10958 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
10959 * dbxread.c (read_dbx_symtab): Update.
10960 * cp-support.h (cp_canonicalize_string_full)
10961 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
10962 Return unique_xmalloc_ptr.
10963 * cp-support.c (inspect_type): Update.
10964 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
10965 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
10966 Likewise.
10967 * c-typeprint.c (print_name_maybe_canonical): Update.
10968 * break-catch-throw.c (check_status_exception_catchpoint):
10969 Update.
10970
bf4cb9be
TV
109712020-05-08 Tom de Vries <tdevries@suse.de>
10972
10973 * infrun.c (follow_fork): Copy current_line and current_symtab to
10974 child thread.
10975
a1b68f28
SM
109762020-05-07 Simon Marchi <simon.marchi@efficios.com>
10977
10978 * async-event.c (struct async_signal_handler, struct
10979 async_event_handler): Reformat, remove typedef.
10980
98d48915
SM
109812020-05-07 Simon Marchi <simon.marchi@efficios.com>
10982
10983 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
10984 access thistype->main_type->dyn_prop_list directly.
10985
7aa91313
SM
109862020-05-07 Simon Marchi <simon.marchi@efficios.com>
10987
10988 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
10989 (remove_dyn_prop): Remove. Update all users to use
10990 type::remove_dyn_prop.
10991 * gdbtypes.c (remove_dyn_prop): Rename to...
10992 (type::remove_dyn_prop): ... this.
10993
5c54719c
SM
109942020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
10995
10996 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
10997 (add_dyn_prop): Remove. Update all users to use
10998 type::add_dyn_prop.
10999 * gdbtypes.c (add_dyn_prop): Rename to...
11000 (type::add_dyn_prop): ... this.
11001
24e99c6c
SM
110022020-05-07 Simon Marchi <simon.marchi@efficios.com>
11003
11004 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
11005 (get_dyn_prop): Remove. Update all users to use
11006 type::dyn_prop.
11007 * gdbtypes.c (get_dyn_prop): Rename to...
11008 (type::dyn_prop): ... this.
11009
0d4bf016
SM
110102020-05-06 Simon Marchi <simon.marchi@efficios.com>
11011
11012 * gdbtypes.h (struct main_type) <flag_static>: Remove.
11013
ac4a4f1c
SM
110142020-05-06 Simon Marchi <simon.marchi@efficios.com>
11015
11016 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
11017 instruction, skip it if it's there.
11018
a3bbacc1
SM
110192020-05-05 Simon Marchi <simon.marchi@efficios.com>
11020
11021 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
11022
c3236f84
SM
110232020-05-04 Simon Marchi <simon.marchi@efficios.com>
11024
11025 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
11026 * gdbtypes.c (recursive_dump_type): Remove use of
11027 TYPE_INCOMPLETE.
11028
3b6acaee
TT
110292020-05-03 Tom Tromey <tom@tromey.com>
11030
11031 * breakpoint.c (catch_command, tcatch_command): Remove.
11032 (_initialize_breakpoint): Use add_basic_prefix_cmd,
11033 add_show_prefix_cmd.
11034 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
11035 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
11036 Remove.
11037 (add_internal_problem_command): Use add_basic_prefix_cmd,
11038 add_show_prefix_cmd.
11039 * mips-tdep.c (set_mipsfpu_command): Remove.
11040 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
11041 * dwarf2/index-cache.c (set_index_cache_command): Remove.
11042 (_initialize_index_cache): Use add_basic_prefix_cmd.
11043 * memattr.c (dummy_cmd): Remove.
11044 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
11045 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
11046 (_initialize_tui_win): Use add_basic_prefix_cmd,
11047 add_show_prefix_cmd.
11048 * cli/cli-logging.c (set_logging_command): Remove.
11049 (_initialize_cli_logging): Use add_basic_prefix_cmd,
11050 add_show_prefix_cmd.
11051 (show_logging_command): Remove.
11052 * target.c (target_command): Remove.
11053 (add_target): Use add_basic_prefix_cmd.
11054
a51119cd
HD
110552020-05-02 Hannes Domani <ssbssa@yahoo.de>
11056
11057 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
11058
652fc23a 110592020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 11060
652fc23a
PW
11061 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
11062 info_command.
11063
117539e6
KR
110642020-04-30 Kamil Rytarowski <n54@gmx.com>
11065
11066 * nbsd-nat.c (nbsd_enable_proc_events)
11067 (nbsd_nat_target::post_startup_inferior): Add.
11068 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
11069 (nbsd_nat_target::update_thread_list): Rewrite.
11070 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
11071 "PTRACE_LWP_CREATE".
11072 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
11073
102e38eb 110742020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 11075
102e38eb
PW
11076 * stack.c (_initialize_stack): Remove duplicated creation
11077 of "frame" command and "f" alias.
11078
ee9d1e5f
HD
110792020-04-30 Hannes Domani <ssbssa@yahoo.de>
11080
11081 PR gdb/18706
11082 * gdbtypes.c (check_typedef): Calculate size of array of
11083 stubbed type.
11084
627c7fb8
HD
110852020-04-30 Hannes Domani <ssbssa@yahoo.de>
11086
11087 PR gdb/15559
11088 * i386-tdep.c (i386_push_dummy_call): Call
11089 i386_thiscall_push_dummy_call.
11090 (i386_thiscall_push_dummy_call): New function.
11091 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
11092 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
11093 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
11094
ffc2844e
SM
110952020-04-29 Simon Marchi <simon.marchi@efficios.com>
11096
11097 * gdbarch.sh (do_read): Add shellcheck disable directive for
11098 warning SC2162.
11099
1207375d
SM
111002020-04-29 Simon Marchi <simon.marchi@efficios.com>
11101
11102 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
11103 "referenced but not assigned" warning.
11104
9fdb2916
SM
111052020-04-29 Simon Marchi <simon.marchi@efficios.com>
11106
11107 * gdbarch.sh: Remove code that sets fallbackdefault.
11108
759cea5e
SM
111092020-04-29 Simon Marchi <simon.marchi@efficios.com>
11110
11111 * gdbarch.sh: Use shell operators && and || instead of
11112 -a and -o.
11113
cb02ab24
SM
111142020-04-29 Simon Marchi <simon.marchi@efficios.com>
11115
11116 * gdbarch.sh: Use $(...) instead of `...`.
11117
a6fc5ffc
SM
111182020-04-29 Simon Marchi <simon.marchi@efficios.com>
11119
11120 * gdbarch.sh: Use double quotes around variables.
11121
8d113d13
SM
111222020-04-29 Simon Marchi <simon.marchi@efficios.com>
11123
11124 * gdbarch.sh: Use %s with printf, instead of variables in the
11125 format string.
11126
ed6acedd
TT
111272020-04-29 Tom Tromey <tromey@adacore.com>
11128
11129 PR ada/25875:
11130 * dwarf2/read.c (update_enumeration_type_from_children): Compute
11131 type fields here.
11132 (read_enumeration_type): Call
11133 update_enumeration_type_from_children later. Update comments.
11134 (process_enumeration_scope): Don't create type fields.
11135
b68b1b58
KR
111362020-04-29 Kamil Rytarowski <n54@gmx.com>
11137
11138 * nbsd-tdep.c: Include "xml-syscall.h".
11139 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
11140
f94b2e03
KR
111412020-04-29 Kamil Rytarowski <n54@gmx.com>
11142
11143 * nbsd-nat.c: Include "sys/wait.h".
11144 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
11145 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
11146 (nbsd_nat_target::remove_exec_catchpoint)
11147 (nbsd_nat_target::set_syscall_catchpoint): Add.
11148 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
11149 (nbsd_nat_target::insert_exec_catchpoint)
11150 (nbsd_nat_target::remove_exec_catchpoint)
11151 (nbsd_nat_target::set_syscall_catchpoint): Add.
11152 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
11153 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
11154 `nbsd_get_syscall_number'.
11155
fc49bc72
TT
111562020-04-29 Tom Tromey <tom@tromey.com>
11157
11158 * stack.c (print_block_frame_labels): Remove.
11159
d642b692
HD
111602020-04-29 Hannes Domani <ssbssa@yahoo.de>
11161
11162 PR gdb/17320
11163 * ada-valprint.c (val_print_packed_array_elements): Move array
11164 end bracket to new line.
11165 (ada_val_print_string): Remove extra spaces before first array
11166 element.
11167 * c-valprint.c (c_value_print_array): Likewise.
11168 * m2-valprint.c (m2_print_array_contents): Likewise.
11169 (m2_value_print_inner): Likewise.
11170 * p-valprint.c (pascal_value_print_inner): Likewise.
11171 * valprint.c (generic_val_print_array): Likewise.
11172 (value_print_array_elements): Move first array element and array
11173 end bracket to new line.
11174
ea90f227
TV
111752020-04-29 Tom de Vries <tdevries@suse.de>
11176
11177 PR symtab/25889
11178 * linespec.c (find_method): Fix ix calculation.
11179
4498ef4f
KR
111802020-04-28 Kamil Rytarowski <n54@gmx.com>
11181
11182 * syscalls/update-netbsd.sh: New file.
11183 * syscalls/netbsd.xml: Regenerate.
11184 * data-directory/Makefile.in: Register `netbsd.xml' in
11185 `SYSCALLS_FILES'.
11186
a55e30b5
SM
111872020-04-28 Simon Marchi <simon.marchi@efficios.com>
11188
11189 * syscalls/update-freebsd.sh: Add double quotes.
11190
2b2fbab8
TT
111912020-04-28 Tom Tromey <tom@tromey.com>
11192
11193 * NEWS: Update.
11194 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
11195 (cmdpy_init): Allow class_tui.
11196
a65189c9
TV
111972020-04-28 Mark Williams <mark@myosotissp.com>
11198
11199 PR gdb/24480
11200 * dwarf2read.c: Add missing assingments to list_in_scope when
11201 start_symtab was already called.
11202
1b95cdb7
SM
112032020-04-28 Simon Marchi <simon.marchi@efficios.com>
11204
11205 PR gdb/25881
11206 * dwarf2/read.c (offset_map_type): Use
11207 gdb:hash_enum<sect_offset> as hash function.
11208
15cd93d0
TV
112092020-04-28 Tom de Vries <tdevries@suse.de>
11210
11211 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
11212 with DW_AT_signature.
11213
1eb39914
SM
112142020-04-27 Simon Marchi <simon.marchi@efficios.com>
11215
11216 * configure.ac: Remove check for fs_base/gs_base in
11217 user_regs_struct.
11218 * configure: Re-generate.
11219 * config.in: Re-generate.
11220 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
11221 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
11222 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
11223
991a3e2e
LM
112242020-04-27 Luis Machado <luis.machado@linaro.org>
11225
11226 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
11227 problematic inline frame unwinding situation.
11228 * frame.c (frame_id_computed_p): New function.
11229 * frame.h (frame_id_computed_p): New prototype.
11230
361ba0e8
TT
112312020-04-26 Tom Tromey <tom@tromey.com>
11232
11233 * command.h (enum command_class) <class_pseudo>: Remove.
11234
bc3609fd
PW
112352020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11236
11237 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
11238 and whitespace.
11239
b9771db7
KR
112402020-04-25 Kamil Rytarowski <n54@gmx.com>
11241
ec16513e
SM
11242 * inf-ptrace.c (inf_ptrace_target::wait): Remove
11243 `PT_GET_PROCESS_STATE' block.
b9771db7 11244
7151c1af
TT
112452020-04-24 Tom Tromey <tom@tromey.com>
11246
11247 * symtab.h (symbol_get_demangled_name): Don't declare.
11248 * symtab.c (symbol_get_demangled_name): Remove.
11249 (general_symbol_info::natural_name)
11250 (general_symbol_info::demangled_name): Update.
11251
906bb4c5
TT
112522020-04-24 Tom Tromey <tom@tromey.com>
11253
11254 PR rust/25025:
11255 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
11256
bcfe6157
TT
112572020-04-24 Tom Tromey <tom@tromey.com>
11258
11259 PR symtab/12707:
11260 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
11261 exists.
11262 (new_symbol): Likewise.
11263 * compile/compile-object-load.c (get_out_value_type): Use
11264 symbol_matches_search_name.
11265
f049a313
TT
112662020-04-24 Tom Tromey <tom@tromey.com>
11267
11268 * dwarf2/read.c (add_partial_symbol): Do not call
11269 compute_and_set_names.
11270
76e288d1
TT
112712020-04-24 Tom Tromey <tom@tromey.com>
11272
11273 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
11274 overload.
11275
2467f4f6
TT
112762020-04-24 Tom Tromey <tom@tromey.com>
11277
11278 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
11279 (add_psymbol_to_list): New overload. Make old overload call new
11280 one.
11281 * psympriv.h (add_psymbol_to_list): New overload.
11282
e61108c9
TT
112832020-04-24 Tom Tromey <tom@tromey.com>
11284
11285 * dwarf2/read.c (partial_die_info::read) <case
11286 DW_AT_linkage_name>: Use value_as_string.
11287 (dwarf2_string_attr): Use value_as_string.
11288 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
11289 method.
11290 * dwarf2/attribute.c (attribute::value_as_string): New method.
11291
8c87a452
TT
112922020-04-24 Tom Tromey <tom@tromey.com>
11293
11294 * symtab.c (general_symbol_info::natural_name)
11295 (general_symbol_info::demangled_name): Check for language_rust.
11296
787de330
TT
112972020-04-24 Tom Tromey <tom@tromey.com>
11298
11299 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
11300 (dwarf2_physname): ... from here.
11301 (partial_die_info::read): Add Rust "{" hack.
11302
ff985671
TT
113032020-04-24 Tom Tromey <tom@tromey.com>
11304
11305 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
11306 method.
11307 (symbol_set_demangled_name): Don't declare.
11308 * symtab.c (general_symbol_info::set_demangled_name): Rename from
11309 symbol_set_demangled_name.
11310 (general_symbol_info::set_language)
11311 (general_symbol_info::compute_and_set_names): Update.
11312 * minsyms.c (minimal_symbol_reader::install): Update.
11313 * dwarf2/read.c (new_symbol): Update.
11314
1acda803
TT
113152020-04-24 Tom Tromey <tromey@adacore.com>
11316
11317 PR python/23662:
11318 * python/py-type.c (convert_field): Handle
11319 FIELD_LOC_KIND_DWARF_BLOCK.
11320 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
11321 (typy_get_dynamic): Nw function.
11322 (type_object_getset): Add "dynamic".
11323 * NEWS: Add entry.
11324
d656f129
TT
113252020-04-24 Tom Tromey <tromey@adacore.com>
11326
11327 * ada-typeprint.c (print_choices, print_variant_part)
11328 (print_record_field_types_dynamic): New functions.
11329 (print_record_field_types): Use print_record_field_types_dynamic.
11330
7d79de9a
TT
113312020-04-24 Tom Tromey <tromey@adacore.com>
11332
11333 * dwarf2/read.c (handle_data_member_location): New overload.
11334 (dwarf2_add_field): Use it.
11335 (decode_locdesc): Add "computed" parameter. Update comment.
11336 * gdbtypes.c (is_dynamic_type_internal): Also look for
11337 FIELD_LOC_KIND_DWARF_BLOCK.
11338 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
11339 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
11340 virtual base classes.
11341 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
11342 FIELD_LOC_KIND_DWARF_BLOCK.
11343
f8e89861
TT
113442020-04-24 Tom Tromey <tromey@adacore.com>
11345
11346 * dwarf2/read.c (read_structure_type): Handle dynamic length.
11347 * gdbtypes.c (is_dynamic_type_internal): Check
11348 TYPE_HAS_DYNAMIC_LENGTH.
11349 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
11350 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
11351 New macros.
11352 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
11353 constant.
11354
9c6a1327
TT
113552020-04-24 Tom Tromey <tromey@adacore.com>
11356
11357 * dwarf2/read.c (struct variant_field): Rewrite.
11358 (struct variant_part_builder): New.
11359 (struct nextfield): Remove "variant" field. Add "offset".
11360 (struct field_info): Add "current_variant_part" and
11361 "variant_parts".
11362 (alloc_discriminant_info): Remove.
11363 (alloc_rust_variant): New function.
11364 (quirk_rust_enum): Update.
11365 (dwarf2_add_field): Set "offset" member. Don't handle
11366 DW_TAG_variant_part.
11367 (offset_map_type): New typedef.
11368 (convert_variant_range, create_one_variant)
11369 (create_one_variant_part, create_variant_parts)
11370 (add_variant_property): New functions.
11371 (dwarf2_attach_fields_to_type): Call add_variant_property.
11372 (read_structure_type): Don't handle DW_TAG_variant_part.
11373 (handle_variant_part, handle_variant): New functions.
11374 (handle_struct_member_die): Use them.
11375 (process_structure_scope): Don't handle variant parts.
11376 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
11377 (struct discriminant_info): Remove.
11378 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
11379 (struct main_type) <flag_discriminated_union>: Remove.
11380 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
11381 (rust_enum_variant): Return int. Remove "contents". Rewrite.
11382 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
11383 Update.
11384 * valops.c (value_union_variant): Remove.
11385 * value.h (value_union_variant): Don't declare.
11386
b249d2c2
TT
113872020-04-24 Tom Tromey <tromey@adacore.com>
11388
11389 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
11390 (ada_value_primitive_packed_val): Update.
11391 * ada-valprint.c (ada_value_print_1): Update.
11392 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
11393 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
11394 just an address. Use evaluate_for_locexpr_baton.
11395 (dwarf2_evaluate_property): Update.
11396 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
11397 array_view.
11398 * findvar.c (default_read_var_value): Update.
11399 * gdbtypes.c (compute_variant_fields_inner)
11400 (resolve_dynamic_type_internal): Update.
11401 (resolve_dynamic_type): Change type of valaddr parameter.
11402 * gdbtypes.h (resolve_dynamic_type): Update.
11403 * valarith.c (value_subscripted_rvalue): Update.
11404 * value.c (value_from_contents_and_address): Update.
11405
61122aa9
TT
114062020-04-24 Tom Tromey <tromey@adacore.com>
11407
11408 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
11409 "push_initial_value" parameter.
11410 (dwarf2_evaluate_property): Likewise.
11411 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
11412
ef83a141
TT
114132020-04-24 Tom Tromey <tromey@adacore.com>
11414
11415 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
11416 (variant::matches, compute_variant_fields_recurse)
11417 (compute_variant_fields_inner, compute_variant_fields): New
11418 functions.
11419 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
11420 Use resolved_type after type is made.
11421 (operator==): Add new cases.
11422 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
11423 (struct discriminant_range, struct variant, struct variant_part):
11424 New.
11425 (union dynamic_prop_data) <variant_parts, original_type>: New
11426 members.
11427 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
11428 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
11429 constants.
11430 * value.c (unpack_bits_as_long): Now public.
11431 * value.h (unpack_bits_as_long): Declare.
11432
675127ec
TT
114332020-04-24 Tom Tromey <tromey@adacore.com>
11434
11435 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
11436 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
11437
9852ceef
HD
114382020-04-24 Hannes Domani <ssbssa@yahoo.de>
11439
11440 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
11441
7632c6ce
KR
114422020-04-24 Kamil Rytarowski <n54@gmx.com>
11443
11444 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
11445 (remove_fork_catchpoint, post_startup_inferior)
11446 (post_attach): Move...
11447 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
11448 (remove_fork_catchpoint, post_startup_inferior)
11449 (post_attach): ...here.
11450 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
11451 (remove_fork_catchpoint, post_startup_inferior)
11452 (post_attach): Move...
11453 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
11454 (remove_fork_catchpoint, post_startup_inferior)
11455 (post_attach): ...here.
11456
7be2bb4f
TT
114572020-04-24 Tom Tromey <tromey@adacore.com>
11458
11459 * nat/windows-nat.h (struct windows_thread_info)
11460 <pc_adjusted>: New member.
11461 * windows-nat.c (windows_fetch_one_register): Check
11462 pc_adjusted.
11463 (windows_nat_target::get_windows_debug_event)
11464 (windows_nat_target::wait): Set pc_adjusted.
11465
f80cb3b4
TV
114662020-04-24 Tom de Vries <tdevries@suse.de>
11467
11468 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
11469 Run gdb-add-index inside temp dir.
11470
29514b87
TT
114712020-04-23 Tom Tromey <tromey@adacore.com>
11472
11473 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
11474 in loop.
11475
5939967b
LM
114762020-04-23 Luis Machado <luis.machado@linaro.org>
11477
11478 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
11479 get_frame_register instead of gdbarch_unwind_pc.
11480
70bc38f5
TV
114812020-04-23 Tom de Vries <tdevries@suse.de>
11482
11483 * symtab.c (lookup_global_symbol): Prefer def over decl.
11484
de82891c
TV
114852020-04-23 Tom de Vries <tdevries@suse.de>
11486
11487 PR symtab/25807
11488 * block.c (best_symbol, better_symbol): Promote to external.
11489 * block.h (best_symbol, better_symbol): Declare.
11490 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
11491 decl.
11492
ecc6c606
TT
114932020-04-23 Tom Tromey <tromey@adacore.com>
11494
11495 PR ada/25837:
11496 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
11497 "const char *", not a "const std::string &".
11498 <name_and_matcher::operator==>: Update.
11499 * unittests/lookup_name_info-selftests.c: Change type of
11500 "result".
11501
740480b8
TT
115022020-04-23 Tom Tromey <tom@tromey.com>
11503
11504 * inferior.h (iterate_over_inferiors): Don't declare.
11505 * inferior.c (iterate_over_inferiors): Remove.
11506 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
11507 Remove.
11508 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
11509 use iterate_over_inferiors.
11510 (darwin_resume_inferior_it)
11511 (struct resume_inferior_threads_param)
11512 (darwin_resume_inferior_threads_it): Remove.
11513 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
11514
ae3ab1f0
TV
115152020-04-23 Tom de Vries <tdevries@suse.de>
11516
11517 * blockframe.c (find_pc_partial_function): Use
11518 find_pc_sect_compunit_symtab rather than
11519 objfile->sf->qf->find_pc_sect_compunit_symtab.
11520
317d2668
TV
115212020-04-22 Tom de Vries <tdevries@suse.de>
11522
11523 PR symtab/25764
11524 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
11525 in psymtabs.
11526
eea9e357
TV
115272020-04-22 Tom de Vries <tdevries@suse.de>
11528
11529 PR symtab/25801
11530 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
11531 symtabs.
11532
3d5afab3
TV
115332020-04-22 Tom de Vries <tdevries@suse.de>
11534
11535 PR symtab/25700
11536 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
11537 CU if already created.
11538
d43b7a2d
TBA
115392020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11540
11541 * infrun.c (displaced_step_fixup): Switch to the event_thread
11542 before calling displaced_step_restore, not after.
11543
d89edf9b
MM
115442020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11545
11546 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
11547 its inferior is not recorded by us.
11548 (record_btrace_target_open): Replace call to
11549 all_non_exited_threads () with call to current_inferior
11550 ()->non_exited_threads ().
11551 (record_btrace_target::stop_recording): Likewise.
11552 (record_btrace_target::close): Likewise.
11553 (record_btrace_target::wait): Likewise.
11554 (record_btrace_target::record_stop_replaying): Likewise.
11555
5897fd49
MM
115562020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11557
11558 * btrace.c (btrace_enable): Throw an error on double enables and
11559 when enabling recording fails.
11560 (btrace_disable): Throw an error if the thread is not recorded.
11561
1a476b6d
MM
115622020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11563
11564 * record-btrace.c (record_btrace_target::fetch_registers): Forward
11565 request if we do not have a thread_info.
11566
4778a5f8
TV
115672020-04-21 Tom de Vries <tdevries@suse.de>
11568
11569 PR gdb/25471
11570 * thread.c
11571 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
11572 exception in get_frame_id.
11573
0fa7617d
TT
115742020-04-20 Tom Tromey <tromey@adacore.com>
11575
11576 * python/python.c (struct gdbpy_event): Mark move constructor as
11577 noexcept.
11578 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
11579 constructor as noexcept.
11580 * completer.h (struct completion_result): Mark move constructor as
11581 noexcept.
11582 * completer.c (completion_result::completion_result): Use
11583 initialization style. Don't call reset_match_list.
11584
ad23bda0
MS
115852020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
11586
11587 * MAINTAINERS (Write After Approval): Add myself.
11588
45e1f031
TT
115892020-04-18 Tom Tromey <tom@tromey.com>
11590
11591 * windows-tdep.c (init_w32_command_list)
11592 (w32_prefix_command_valid): Restore.
11593 (_initialize_windows_tdep): Call init_w32_command_list.
11594
08feed99
TT
115952020-04-18 Tom Tromey <tom@tromey.com>
11596
11597 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
11598 * value.c (value_fn_field): Update.
11599 * valops.c (find_function_in_inferior)
11600 (value_allocate_space_in_inferior): Update.
11601 * tui/tui-winsource.c (tui_update_source_windows_with_line):
11602 Update.
11603 * tui/tui-source.c (tui_source_window::set_contents): Update.
11604 * symtab.c (lookup_global_or_static_symbol)
11605 (find_function_start_sal_1, skip_prologue_sal)
11606 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
11607 * symmisc.c (dump_msymbols, dump_symtab_1)
11608 (maintenance_print_one_line_table): Update.
11609 * symfile.c (init_entry_point_info, section_is_mapped)
11610 (list_overlays_command, simple_read_overlay_table)
11611 (simple_overlay_update_1): Update.
11612 * stap-probe.c (handle_stap_probe): Update.
11613 * stabsread.c (dbx_init_float_type, define_symbol)
11614 (read_one_struct_field, read_enum_type, read_range_type): Update.
11615 * source.c (info_line_command): Update.
11616 * python/python.c (gdbpy_source_objfile_script)
11617 (gdbpy_execute_objfile_script): Update.
11618 * python/py-type.c (save_objfile_types): Update.
11619 * python/py-objfile.c (py_free_objfile): Update.
11620 * python/py-inferior.c (python_new_objfile): Update.
11621 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
11622 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
11623 (maintenance_check_psymtabs): Update.
11624 * printcmd.c (info_address_command): Update.
11625 * objfiles.h (struct objfile) <arch>: New method, from
11626 get_objfile_arch.
11627 (get_objfile_arch): Don't declare.
11628 * objfiles.c (get_objfile_arch): Remove.
11629 (filter_overlapping_sections): Update.
11630 * minsyms.c (msymbol_is_function): Update.
11631 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
11632 (output_nondebug_symbol): Update.
11633 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
11634 (mdebug_expand_psymtab): Update.
11635 * machoread.c (macho_add_oso_symfile): Update.
11636 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
11637 Update.
11638 * linux-fork.c (checkpoint_command): Update.
11639 * linespec.c (convert_linespec_to_sals): Update.
11640 * jit.c (finalize_symtab): Update.
11641 * infrun.c (insert_exception_resume_from_probe): Update.
11642 * ia64-tdep.c (ia64_find_unwind_table): Update.
11643 * hppa-tdep.c (internalize_unwinds): Update.
11644 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
11645 Update.
11646 * gcore.c (call_target_sbrk): Update.
11647 * elfread.c (record_minimal_symbol, elf_symtab_read)
11648 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
11649 (elf_gnu_ifunc_resolve_by_got): Update.
11650 * dwarf2/read.c (create_addrmap_from_index)
11651 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11652 (read_debug_names_from_section)
11653 (process_psymtab_comp_unit_reader, add_partial_symbol)
11654 (add_partial_subprogram, process_full_comp_unit)
11655 (read_file_scope, read_func_scope, read_lexical_block_scope)
11656 (read_call_site_scope, dwarf2_ranges_read)
11657 (dwarf2_record_block_ranges, dwarf2_add_field)
11658 (mark_common_block_symbol_computed, read_tag_pointer_type)
11659 (read_tag_string_type, dwarf2_init_float_type)
11660 (dwarf2_init_complex_target_type, read_base_type)
11661 (partial_die_info::read, partial_die_info::read)
11662 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
11663 (dwarf2_fetch_die_loc_sect_off): Update.
11664 * dwarf2/loc.c (dwarf2_find_location_expression)
11665 (class dwarf_evaluate_loc_desc, rw_pieced_value)
11666 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
11667 (dwarf2_loc_desc_get_symbol_read_needs)
11668 (locexpr_describe_location_piece, locexpr_describe_location_1)
11669 (loclist_describe_location): Update.
11670 * dwarf2/index-write.c (write_debug_names): Update.
11671 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
11672 * dtrace-probe.c (dtrace_process_dof): Update.
11673 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
11674 (process_one_symbol): Update.
11675 * ctfread.c (ctf_init_float_type, read_base_type): Update.
11676 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
11677 (coff_read_enum_type): Update.
11678 * cli/cli-cmds.c (edit_command, list_command): Update.
11679 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
11680 * breakpoint.c (create_overlay_event_breakpoint)
11681 (create_longjmp_master_breakpoint)
11682 (create_std_terminate_master_breakpoint)
11683 (create_exception_master_breakpoint, get_sal_arch): Update.
11684 * block.c (block_gdbarch): Update.
11685 * annotate.c (annotate_source_line): Update.
11686
0743fc83
TT
116872020-04-17 Tom Tromey <tromey@adacore.com>
11688
11689 * auto-load.c (show_auto_load_cmd): Remove.
11690 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
11691 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
11692 (maintenance_print_arc_command): Remove.
11693 * tui/tui-win.c (tui_command): Remove.
11694 (tui_get_cmd_list): Use add_basic_prefix_cmd.
11695 * tui/tui-layout.c (tui_layout_command): Remove.
11696 (_initialize_tui_layout): Use add_basic_prefix_cmd.
11697 * python/python.c (user_set_python, user_show_python): Remove.
11698 (_initialize_python): Use add_basic_prefix_cmd,
11699 add_show_prefix_cmd.
11700 * guile/guile.c (set_guile_command, show_guile_command): Remove.
11701 (install_gdb_commands): Use add_basic_prefix_cmd,
11702 add_show_prefix_cmd.
11703 (info_guile_command): Remove.
11704 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
11705 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
11706 add_show_prefix_cmd.
11707 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
11708 Remove do_set and do_show parameters.
11709 * cli/cli-style.c (set_style, show_style): Remove.
11710 (_initialize_cli_style): Use add_basic_prefix_cmd,
11711 add_show_prefix_cmd.
11712 (cli_style_option::add_setshow_commands): Remove do_set and
11713 do_show parameters.
11714 (cli_style_option::add_setshow_commands): Use
11715 add_basic_prefix_cmd, add_show_prefix_cmd.
11716 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
11717 (set_style_name): Remove.
11718 * cli/cli-dump.c (dump_command, append_command): Remove.
11719 (srec_dump_command, ihex_dump_command, verilog_dump_command)
11720 (tekhex_dump_command, binary_dump_command)
11721 (binary_append_command): Remove.
11722 (_initialize_cli_dump): Use add_basic_prefix_cmd.
11723 * windows-tdep.c (w32_prefix_command_valid): Remove global.
11724 (init_w32_command_list): Remove; move into ...
11725 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
11726 * valprint.c (set_print, show_print, set_print_raw)
11727 (show_print_raw): Remove.
11728 (_initialize_valprint): Use add_basic_prefix_cmd,
11729 add_show_prefix_cmd.
11730 * typeprint.c (set_print_type, show_print_type): Remove.
11731 (_initialize_typeprint): Use add_basic_prefix_cmd,
11732 add_show_prefix_cmd.
11733 * record.c (set_record_command, show_record_command): Remove.
11734 (_initialize_record): Use add_basic_prefix_cmd,
11735 add_show_prefix_cmd.
11736 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
11737 add_show_prefix_cmd.
11738 (info_command, show_command, set_debug, show_debug): Remove.
11739 * top.h (set_history, show_history): Don't declare.
11740 * top.c (set_history, show_history): Remove.
11741 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
11742 (unset_tdesc_cmd): Remove.
11743 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
11744 add_show_prefix_cmd.
11745 * symtab.c (info_module_command): Remove.
11746 (_initialize_symtab): Use add_basic_prefix_cmd.
11747 * symfile.c (overlay_command): Remove.
11748 (_initialize_symfile): Use add_basic_prefix_cmd.
11749 * sparc64-tdep.c (info_adi_command): Remove.
11750 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
11751 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
11752 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
11753 add_show_prefix_cmd.
11754 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
11755 (_initialize_serial): Use add_basic_prefix_cmd,
11756 add_show_prefix_cmd.
11757 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
11758 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
11759 add_show_prefix_cmd.
11760 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
11761 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
11762 add_show_prefix_cmd.
11763 * riscv-tdep.c (show_riscv_command, set_riscv_command)
11764 (show_debug_riscv_command, set_debug_riscv_command): Remove.
11765 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
11766 add_show_prefix_cmd.
11767 * remote.c (remote_command, set_remote_cmd): Remove.
11768 (_initialize_remote): Use add_basic_prefix_cmd.
11769 * record-full.c (set_record_full_command)
11770 (show_record_full_command): Remove.
11771 (_initialize_record_full): Use add_basic_prefix_cmd,
11772 add_show_prefix_cmd.
11773 * record-btrace.c (cmd_set_record_btrace)
11774 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
11775 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
11776 (cmd_show_record_btrace_pt): Remove.
11777 (_initialize_record_btrace): Use add_basic_prefix_cmd,
11778 add_show_prefix_cmd.
11779 * ravenscar-thread.c (set_ravenscar_command)
11780 (show_ravenscar_command): Remove.
11781 (_initialize_ravenscar): Use add_basic_prefix_cmd,
11782 add_show_prefix_cmd.
11783 * mips-tdep.c (show_mips_command, set_mips_command)
11784 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
11785 add_show_prefix_cmd.
11786 * maint.c (maintenance_command, maintenance_info_command)
11787 (maintenance_check_command, maintenance_print_command)
11788 (maintenance_set_cmd, maintenance_show_cmd): Remove.
11789 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
11790 add_show_prefix_cmd.
11791 (show_per_command_cmd): Remove.
11792 * maint-test-settings.c (maintenance_set_test_settings_cmd):
11793 Remove.
11794 (maintenance_show_test_settings_cmd): Remove.
11795 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
11796 add_show_prefix_cmd.
11797 * maint-test-options.c (maintenance_test_options_command):
11798 Remove.
11799 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
11800 * macrocmd.c (macro_command): Remove
11801 (_initialize_macrocmd): Use add_basic_prefix_cmd.
11802 * language.c (set_check, show_check): Remove.
11803 (_initialize_language): Use add_basic_prefix_cmd,
11804 add_show_prefix_cmd.
11805 * infcmd.c (unset_command): Remove.
11806 (_initialize_infcmd): Use add_basic_prefix_cmd.
11807 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
11808 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
11809 add_show_prefix_cmd.
11810 * go32-nat.c (go32_info_dos_command): Remove.
11811 (_initialize_go32_nat): Use add_basic_prefix_cmd.
11812 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
11813 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
11814 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
11815 (_initialize_frame): Use add_basic_prefix_cmd,
11816 add_show_prefix_cmd.
11817 * dcache.c (set_dcache_command, show_dcache_command): Remove.
11818 (_initialize_dcache): Use add_basic_prefix_cmd,
11819 add_show_prefix_cmd.
11820 * cp-support.c (maint_cplus_command): Remove.
11821 (_initialize_cp_support): Use add_basic_prefix_cmd.
11822 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
11823 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
11824 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
11825 add_basic_prefix_cmd, add_show_prefix_cmd.
11826 * breakpoint.c (save_command): Remove.
11827 (_initialize_breakpoint): Use add_basic_prefix_cmd.
11828 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
11829 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
11830 add_show_prefix_cmd.
11831 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
11832 (set_ada_command, show_ada_command): Remove.
11833 (_initialize_ada_language): Use add_basic_prefix_cmd,
11834 add_show_prefix_cmd.
11835 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
11836
3557f442
KR
118372020-04-16 Kamil Rytarowski <n54@gmx.com>
11838
11839 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
11840 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
11841
16197208
SM
118422020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
11843
11844 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
11845 warning messages.
11846
00ac85d3
SM
118472020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
11848
11849 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
11850 import table is not at beginning of .idata section.
11851
381ce63f
PA
118522020-04-16 Pedro Alves <palves@redhat.com>
11853
11854 * inferior.c (delete_inferior): Use delete operator directly
11855 instead of delete_program_space.
11856 * progspace.c (add_program_space): New, factored out from
11857 program_space::program_space.
11858 (remove_program_space): New, factored out from
11859 delete_program_space.
11860 (program_space::program_space): Remove intro comment. Rewrite.
11861 (program_space::~program_space): Remove intro comment. Call
11862 remove_program_space.
11863 (delete_program_space): Delete.
11864 * progspace.h (program_space::program_space): Make explicit. Move
11865 intro comment here, adjusted.
11866 (program_space::~program_space): Move intro comment here,
11867 adjusted.
11868 (delete_program_space): Remove.
11869
a010605f
TT
118702020-04-16 Tom Tromey <tromey@adacore.com>
11871
11872 * windows-nat.c (windows_nat::handle_access_violation): New
11873 function.
11874 * nat/windows-nat.h (handle_access_violation): Declare.
11875 * nat/windows-nat.c (handle_exception): Move Cygwin code to
11876 windows-nat.c. Call handle_access_violation.
11877
efba5c23
TV
118782020-04-16 Tom de Vries <tdevries@suse.de>
11879
11880 PR symtab/25791
11881 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
11882 CUs without psymtab.
11883
97ed802d
KB
118842020-04-16 Kevin Buettner <kevinb@redhat.com>
11885
11886 * python/python.c (do_start_initialization): Don't call
11887 PyEval_InitThreads for Python 3.9 and beyond.
11888
c7d64809
KR
118892020-04-15 Kamil Rytarowski <n54@gmx.com>
11890
11891 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
11892 thread functions.
11893 (obsd_nat_target::wait): Likewise.
11894
ce127a96
TT
118952020-04-15 Tom Tromey <tromey@adacore.com>
11896
11897 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
11898 (DEBUG_EXCEPT): Use debug_printf.
11899
99f1bc6a
AB
119002020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
11901
11902 * completer.c (class completion_tracker::completion_hash_entry)
11903 <hash_name>: New member function.
11904 (completion_tracker::discard_completions): New callback to hash a
11905 completion_hash_entry, pass this to htab_create_alloc.
11906
a0e9b532
JT
119072016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
11908
11909 * windows-nat.c (windows_make_so): Warn rather than stopping with
11910 an error if realpath() fails.
11911
06ca5dd4
KR
119122020-04-14 Kamil Rytarowski <n54@gmx.com>
11913
11914 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
11915 (nbsd_nat_target::info_proc): Add do_status.
11916
194d088f
TV
119172020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
11918 Tom de Vries <tdevries@suse.de>
11919
11920 PR symtab/25718
11921 * psympriv.h (struct partial_symtab::read_symtab)
11922 (struct partial_symtab::expand_psymtab)
11923 (struct partial_symtab::read_dependencies): Update comments.
11924 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
11925 read_symtab for includer.
11926 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
11927 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
11928 (struct dwarf2_include_psymtab::m_readin): Remove.
11929 (struct dwarf2_include_psymtab::includer): New member function.
11930 (dwarf2_psymtab::expand_psymtab): Assert !readin.
11931
c1a66c06
TV
119322020-04-14 Tom de Vries <tdevries@suse.de>
11933
11934 PR symtab/25720
11935 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
11936 with NULL symbol_matcher and lookup_name.
11937 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
11938 and lookup_name.
11939 * dwarf2/read.c (dw2_expand_symtabs_matching)
11940 (dw2_debug_names_expand_symtabs_matching): Same.
11941 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
11942 Make lookup_name a pointer. Update comment.
11943 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
11944 lookup_name being a pointer.
11945 * symfile.c (expand_symtabs_matching): Same.
11946 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
11947 * linespec.c (iterate_over_all_matching_symtabs): Same.
11948
400b5eca
TT
119492020-04-13 Tom Tromey <tom@tromey.com>
11950
11951 * run-on-main-thread.c: Update include.
11952 * unittests/main-thread-selftests.c: Update include.
11953 * tui/tui-win.c: Update include.
11954 * tui/tui-io.c: Update include.
11955 * tui/tui-interp.c: Update include.
11956 * tui/tui-hooks.c: Update include.
11957 * top.h: Update include.
11958 * top.c: Update include.
11959 * ser-base.c: Update include.
11960 * remote.c: Update include.
11961 * remote-notif.c: Update include.
11962 * remote-fileio.c: Update include.
11963 * record-full.c: Update include.
11964 * record-btrace.c: Update include.
11965 * python/python.c: Update include.
11966 * posix-hdep.c: Update include.
11967 * mingw-hdep.c: Update include.
11968 * mi/mi-main.c: Update include.
11969 * mi/mi-interp.c: Update include.
11970 * main.c: Update include.
11971 * linux-nat.c: Update include.
11972 * interps.c: Update include.
11973 * infrun.c: Update include.
11974 * inf-loop.c: Update include.
11975 * event-top.c: Update include.
11976 * event-loop.c: Move to ../gdbsupport/.
11977 * event-loop.h: Move to ../gdbsupport/.
11978 * async-event.h: Update include.
11979 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
11980
93b54c8e
TT
119812020-04-13 Tom Tromey <tom@tromey.com>
11982
11983 * tui/tui-win.c: Include async-event.h.
11984 * remote.c: Include async-event.h.
11985 * remote-notif.c: Include async-event.h.
11986 * record-full.c: Include async-event.h.
11987 * record-btrace.c: Include async-event.h.
11988 * infrun.c: Include async-event.h.
11989 * event-top.c: Include async-event.h.
11990 * event-loop.h: Move some declarations to async-event.h.
11991 * event-loop.c: Don't include ser-event.h or top.h. Move some
11992 code to async-event.c.
11993 * async-event.h: New file.
11994 * async-event.c: New file.
11995 * Makefile.in (COMMON_SFILES): Add async-event.c.
11996 (HFILES_NO_SRCDIR): Add async-event.h.
11997
c1cd3163
TT
119982020-04-13 Tom Tromey <tom@tromey.com>
11999
12000 * utils.c (flush_streams): New function.
12001 * event-loop.c (gdb_wait_for_event): Call flush_streams.
12002
29f2bf4f
TT
120032020-04-13 Tom Tromey <tom@tromey.com>
12004
12005 * event-loop.c (handle_file_event): Use warning, not
12006 printf_unfiltered.
12007
98029d02
TT
120082020-04-13 Tom Tromey <tom@tromey.com>
12009
12010 * event-loop.c: Include <chrono>.
12011
06cc9596
TT
120122020-04-13 Tom Tromey <tom@tromey.com>
12013
12014 * gdb_select.h: Move to ../gdbsupport/.
12015 * event-loop.c: Update include path.
12016 * top.c: Update include path.
12017 * ser-base.c: Update include path.
12018 * ui-file.c: Update include path.
12019 * ser-tcp.c: Update include path.
12020 * guile/scm-ports.c: Update include path.
12021 * posix-hdep.c: Update include path.
12022 * ser-unix.c: Update include path.
12023 * gdb_usleep.c: Update include path.
12024 * mingw-hdep.c: Update include path.
12025 * inflow.c: Update include path.
12026 * infrun.c: Update include path.
12027 * event-top.c: Update include path.
12028
8ae8e197
TT
120292020-04-13 Tom Tromey <tom@tromey.com>
12030
12031 * configure: Rebuild.
12032 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
12033
58cf28e8
TT
120342020-04-13 Tom Tromey <tom@tromey.com>
12035
12036 * event-loop.h (start_event_loop): Don't declare.
12037 * event-loop.c (start_event_loop): Move...
12038 * main.c (start_event_loop): ...here. Now static.
12039
b7f999ae
SDJ
120402020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
12041
12042 * MAINTAINERS: Update my email address.
12043
1085dfd4
KR
120442020-04-12 Kamil Rytarowski <n54@gmx.com>
12045
12046 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
12047 IP_ALL.
12048
49d1d1f5
KR
120492020-04-12 Kamil Rytarowski <n54@gmx.com>
12050
12051 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 12052 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 12053
b4848d2a
KR
120542020-04-12 Kamil Rytarowski <n54@gmx.com>
12055
12056 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 12057 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 12058
51c133d5
KR
120592020-04-12 Kamil Rytarowski <n54@gmx.com>
12060
12061 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
12062
54b8cbd0
KR
120632020-04-11 Kamil Rytarowski <n54@gmx.com>
12064
12065 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
12066 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
12067 (nbsd_nat_target::info_proc): New functions.
12068 * nbsd-nat.c (kinfo_get_vmmap): New function.
12069 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
12070 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
12071 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
12072 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
12073 functions.
12074 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
12075 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
12076 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
12077 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
12078 (KINFO_VME_FLAG_GROWS_DOWN): New.
12079
cf83625d
AS
120802020-04-10 Artur Shepilko <nomadbyte@gmail.com>
12081
12082 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
12083 bit shift.
12084
0c4311ab
TT
120852020-04-10 Tom Tromey <tromey@adacore.com>
12086
12087 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
12088
3e65b3e9
TT
120892020-04-10 Tom Tromey <tromey@adacore.com>
12090
12091 * symtab.c (get_symbol_address, get_msymbol_address): Skip
12092 separate debug files.
12093
13302e95
HD
120942020-04-10 Hannes Domani <ssbssa@yahoo.de>
12095
12096 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
12097 Move to...
12098 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
12099 ... here.
12100 * windows-nat.c (windows_nat_target::get_windows_debug_event):
12101 Check for STATUS_WX86_BREAKPOINT.
12102 (windows_nat_target::wait): Same.
12103
bdfc1e8a
TV
121042020-04-10 Tom de Vries <tdevries@suse.de>
12105
12106 PR cli/25808
12107 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
12108
f4460aec
SM
121092020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12110
12111 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
12112 (Write After Approval): Remove Tom de Vries.
12113
a25198bb
BE
121142020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
12115
12116 revert partially:
12117 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12118
aac66a4c
SM
12119 * buildsym.c (record_line): Fix undefined behavior and preserve
12120 lines at eof.
a25198bb 12121
206c98a6
KR
121222020-04-09 Kamil Rytarowski <n54@gmx.com>
12123
12124 * auxv.h (svr4_auxv_parse): New.
12125 * auxv.c (default_auxv_parse): Split into default_auxv_parse
12126 and generic_auxv_parse.
12127 (svr4_auxv_parse): Add.
12128 * obsd-tdep.c: Include "auxv.h".
12129 (obsd_auxv_parse): Remove.
12130 (obsd_init_abi): Remove comment.
12131 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
12132 from `obsd_auxv_parse' to `svr4_auxv_parse'.
12133 * nbsd-tdep.c: Include "auxv.h".
12134 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
12135
71fbdbaf
TT
121362020-04-08 Tom Tromey <tromey@adacore.com>
12137
12138 * nat/windows-nat.h (last_wait_event): Don't declare.
12139 (wait_for_debug_event): Update comment.
12140 * nat/windows-nat.c (last_wait_event): Now static.
12141
2c1d95e8
TT
121422020-04-08 Tom Tromey <tromey@adacore.com>
12143
12144 * windows-nat.c (wait_for_debug_event): Move to
12145 nat/windows-nat.c.
12146 * nat/windows-nat.h (wait_for_debug_event): Declare.
12147 * nat/windows-nat.c (wait_for_debug_event): Move from
12148 windows-nat.c. No longer static.
12149
d2977bc4
TT
121502020-04-08 Tom Tromey <tromey@adacore.com>
12151
12152 * windows-nat.c (get_windows_debug_event): Use
12153 fetch_pending_stop.
12154 * nat/windows-nat.h (fetch_pending_stop): Declare.
12155 * nat/windows-nat.c (fetch_pending_stop): New function.
12156
e758e19c
TT
121572020-04-08 Tom Tromey <tromey@adacore.com>
12158
12159 * windows-nat.c (windows_continue): Use matching_pending_stop and
12160 continue_last_debug_event.
12161 * nat/windows-nat.h (matching_pending_stop)
12162 (continue_last_debug_event): Declare.
12163 * nat/windows-nat.c (DEBUG_EVENTS): New define.
12164 (matching_pending_stop, continue_last_debug_event): New
12165 functions.
12166
8d30e395
TT
121672020-04-08 Tom Tromey <tromey@adacore.com>
12168
12169 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
12170 (handle_exception_result): Move to nat/windows-nat.h.
12171 (DEBUG_EXCEPTION_SIMPLE): Remove.
12172 (windows_nat::handle_ms_vc_exception): New function.
12173 (handle_exception): Move to nat/windows-nat.c.
12174 (get_windows_debug_event): Update.
12175 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
12176 nat/windows-nat.c.
12177 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
12178 (handle_exception_result): Move from windows-nat.c.
12179 (handle_exception): Declare.
12180 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
12181 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
12182 windows-nat.c.
12183
29de418d
TT
121842020-04-08 Tom Tromey <tromey@adacore.com>
12185
12186 * windows-nat.c (exception_count, event_count): Remove.
12187 (handle_exception, get_windows_debug_event)
12188 (do_initial_windows_stuff): Update.
12189
a816ba18
TT
121902020-04-08 Tom Tromey <tromey@adacore.com>
12191
12192 * windows-nat.c (windows_nat::handle_load_dll)
12193 (windows_nat::handle_unload_dll): Rename. No longer static.
12194 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
12195 Declare.
12196
a00caa12
TT
121972020-04-08 Tom Tromey <tromey@adacore.com>
12198
12199 * complaints.h (stop_whining): Declare at top-level.
12200 (complaint): Don't declare stop_whining.
12201
d41b524f
TT
122022020-04-08 Tom Tromey <tromey@adacore.com>
12203
12204 * windows-nat.c (windows_nat::handle_output_debug_string):
12205 Rename. No longer static.
12206 * nat/windows-nat.h (handle_output_debug_string): Declare.
12207
3c76026d
TT
122082020-04-08 Tom Tromey <tromey@adacore.com>
12209
12210 * windows-nat.c (current_process_handle, current_process_id)
12211 (main_thread_id, last_sig, current_event, last_wait_event)
12212 (current_windows_thread, desired_stop_thread_id, pending_stops)
12213 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
12214 (display_selectors, fake_create_process)
12215 (get_windows_debug_event): Update.
12216 * nat/windows-nat.h (current_process_handle, current_process_id)
12217 (main_thread_id, last_sig, current_event, last_wait_event)
12218 (current_windows_thread, desired_stop_thread_id, pending_stops)
12219 (struct pending_stop, siginfo_er): Move from windows-nat.c.
12220 * nat/windows-nat.c (current_process_handle, current_process_id)
12221 (main_thread_id, last_sig, current_event, last_wait_event)
12222 (current_windows_thread, desired_stop_thread_id, pending_stops)
12223 (siginfo_er): New globals. Move from windows-nat.c.
12224
9d8679cc
TT
122252020-04-08 Tom Tromey <tromey@adacore.com>
12226
12227 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
12228 (handle_load_dll): Update.
12229 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
12230
28688adf
TT
122312020-04-08 Tom Tromey <tromey@adacore.com>
12232
12233 * windows-nat.c (enum thread_disposition_type): Move to
12234 nat/windows-nat.h.
12235 (windows_nat::thread_rec): Rename from thread_rec. No longer
12236 static.
12237 (windows_add_thread, windows_nat_target::fetch_registers)
12238 (windows_nat_target::store_registers, handle_exception)
12239 (windows_nat_target::resume, get_windows_debug_event)
12240 (windows_nat_target::get_tib_address)
12241 (windows_nat_target::thread_name)
12242 (windows_nat_target::thread_alive): Update.
12243 * nat/windows-nat.h (enum thread_disposition_type): Move from
12244 windows-nat.c.
12245 (thread_rec): Declare.
12246
4834dad0
TT
122472020-04-08 Tom Tromey <tromey@adacore.com>
12248
12249 * windows-nat.c: Add "using namespace".
12250 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
12251 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
12252
65bafd5b
TT
122532020-04-08 Tom Tromey <tromey@adacore.com>
12254
12255 * nat/windows-nat.h (struct windows_thread_info): Declare
12256 destructor.
12257 * nat/windows-nat.c (~windows_thread_info): New.
12258
0a4afda3
TT
122592020-04-08 Tom Tromey <tromey@adacore.com>
12260
12261 PR gdb/22992
12262 * windows-nat.c (current_event): Update comment.
12263 (last_wait_event, desired_stop_thread_id): New globals.
12264 (struct pending_stop): New.
12265 (pending_stops): New global.
12266 (windows_nat_target) <stopped_by_sw_breakpoint>
12267 <supports_stopped_by_sw_breakpoint>: New methods.
12268 (windows_fetch_one_register): Add assertions. Adjust PC.
12269 (windows_continue): Handle pending stops. Suspend other threads
12270 when stepping. Use last_wait_event
12271 (wait_for_debug_event): New function.
12272 (get_windows_debug_event): Use wait_for_debug_event. Handle
12273 pending stops. Queue spurious stops.
12274 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
12275 (windows_nat_target::kill): Use wait_for_debug_event.
12276 * nat/windows-nat.h (struct windows_thread_info)
12277 <stopped_at_software_breakpoint>: New field.
12278 * nat/windows-nat.c (windows_thread_info::resume): Clear
12279 stopped_at_software_breakpoint.
12280
8e61ebec
TT
122812020-04-08 Tom Tromey <tromey@adacore.com>
12282
12283 * windows-nat.c (enum thread_disposition_type): New.
12284 (thread_rec): Replace "get_context" parameter with "disposition";
12285 change type.
12286 (windows_add_thread, windows_nat_target::fetch_registers)
12287 (windows_nat_target::store_registers, handle_exception)
12288 (windows_nat_target::resume, get_windows_debug_event)
12289 (windows_nat_target::get_tib_address)
12290 (windows_nat_target::thread_name)
12291 (windows_nat_target::thread_alive): Update.
12292
98a03287
TT
122932020-04-08 Tom Tromey <tromey@adacore.com>
12294
12295 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
12296 (windows_continue): Use windows_continue::resume.
12297 * nat/windows-nat.h (struct windows_thread_info) <suspend,
12298 resume>: Declare new methods.
12299 * nat/windows-nat.c: New file.
12300 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
12301
7c7411bc
TT
123022020-04-08 Tom Tromey <tromey@adacore.com>
12303
12304 * windows-nat.c (windows_add_thread, windows_delete_thread)
12305 (windows_nat_target::fetch_registers)
12306 (windows_nat_target::store_registers, fake_create_process)
12307 (windows_nat_target::resume, windows_nat_target::resume)
12308 (get_windows_debug_event, windows_nat_target::wait)
12309 (windows_nat_target::pid_to_str)
12310 (windows_nat_target::get_tib_address)
12311 (windows_nat_target::get_ada_task_ptid)
12312 (windows_nat_target::thread_name)
12313 (windows_nat_target::thread_alive): Use lwp, not tid.
12314
2950fdf7
TT
123152020-04-08 Tom Tromey <tromey@adacore.com>
12316
12317 * windows-nat.c (handle_exception)
12318 (windows_nat_target::thread_name): Update.
12319 * nat/windows-nat.h (windows_thread_info): Remove destructor.
12320 <name>: Now unique_xmalloc_ptr.
12321
62fe396b
TT
123222020-04-08 Tom Tromey <tromey@adacore.com>
12323
12324 * windows-nat.c (thread_rec)
12325 (windows_nat_target::fetch_registers): Update.
12326 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
12327 Update comment.
12328 <debug_registers_changed, reload_context>: Now bool.
12329
e9534bd2
TT
123302020-04-08 Tom Tromey <tromey@adacore.com>
12331
12332 * windows-nat.c (windows_add_thread): Use new.
12333 (windows_init_thread_list, windows_delete_thread): Use delete.
12334 (get_windows_debug_event): Update.
12335 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
12336 destructor, and initializers.
12337
ae1f8880
TT
123382020-04-08 Tom Tromey <tromey@adacore.com>
12339
12340 * windows-nat.c (struct windows_thread_info): Remove.
12341 * nat/windows-nat.h: New file.
12342
55a1e039
TT
123432020-04-08 Tom Tromey <tromey@adacore.com>
12344
12345 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
12346 (thread_rec, windows_add_thread, windows_delete_thread)
12347 (windows_continue): Update.
12348
93366324
TT
123492020-04-08 Tom Tromey <tromey@adacore.com>
12350
12351 * windows-nat.c (struct windows_thread_info): Remove typedef.
12352 (thread_head): Remove.
12353 (thread_list): New global.
12354 (thread_rec, windows_add_thread, windows_init_thread_list)
12355 (windows_delete_thread, windows_continue): Update.
12356
0f2265e2
SM
123572020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
12358
12359 * windows-tdep.h (windows_init_abi): Add comment.
12360 (cygwin_init_abi): New declaration.
12361 * windows-tdep.c: Split signal enumeration in two, one for
12362 Windows and one for Cygwin.
12363 (windows_gdb_signal_to_target): Only deal with signal of the
12364 Windows OS ABI.
12365 (cygwin_gdb_signal_to_target): New function.
12366 (windows_init_abi): Rename to windows_init_abi_common, don't set
12367 gdb_signal_to_target gdbarch method. Add new new function with
12368 this name.
12369 (cygwin_init_abi): New function.
12370 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
12371 comment. Don't call windows_init_abi.
12372 (amd64_windows_init_abi): Add comment, call windows_init_abi.
12373 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
12374 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
12375 i386_windows_init_abi_common, don't call windows_init_abi. Add
12376 a new function of this name.
12377 (i386_cygwin_init_abi): New function.
12378 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
12379 OS ABI Cygwin.
12380
3810f182
SM
123812020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
12382
12383 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
12384 parameter.c.
12385 (dwarf2_read_gdb_index): Update.
12386
063f8e80
KR
123872020-04-07 Kamil Rytarowski <n54@gmx.com>
12388
12389 * nbsd-tdep.c: Include "objfiles.h".
12390 (nbsd_skip_solib_resolver): New.
12391 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
12392
85a9510c 123932020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12394
12395 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
12396 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
12397 with DW_LLE_base_addressx are being emitted in DWARFv5.
12398 Add the newly added kind DW_LOC_OFFSET_PAIR also.
12399 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
12400 unsigned integer.
12401
9fc3eaae 124022020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12403
12404 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
12405 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
12406 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
12407 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
12408 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
12409 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
12410 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
12411
12412
41144253 124132020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12414
12415 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
12416 (read_loclist_index): New function definition.
12417 (lookup_loclist_base): New function definition.
12418 (read_loclist_header): New function definition.
12419 (dwarf2_cu): Add loclist_base and loclist_header field.
12420 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
12421 (read_full_die_1): Read the value of DW_AT_loclists_base.
12422 (read_attribute_reprocess): Handle DW_FORM_loclistx.
12423 (read_attribute_value): Handle DW_FORM_loclistx.
12424 (skip_one_die): Handle DW_FORM_loclistx.
12425 (loclist_header): New structure declaration.
12426 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
12427
9f4e76a4
SM
124282020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12429
12430 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
12431 constructor. Remove `addr` parameter from other constructor and
12432 add `per_cu` parameter.
12433 * dwarf2/read.c (create_partial_symtab): Update.
12434
25c11aca
TV
124352020-04-07 Tom de Vries <tdevries@suse.de>
12436
12437 PR symtab/25796
12438 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
12439 (partial_die_info::fixup): Inherit has_const_value.
12440
5707e24b
TV
124412020-04-07 Tom de Vries <tdevries@suse.de>
12442
12443 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
12444 symbols without address.
12445
05f00e22
KR
124462020-04-06 Kamil Rytarowski <n54@gmx.com>
12447
12448 * nbsd-nat.h (struct thread_info): Add forward declaration.
12449 (nbsd_nat_target::thread_alive): Add.
12450 (nbsd_nat_target::thread_name): Likewise.
12451 (nbsd_nat_target::update_thread_list): Likewise.
12452 (update_thread_list::post_attach): Likewise.
12453 (post_attach::pid_to_str): Likewise.
12454 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
12455 (nbsd_thread_lister): Add.
12456 (nbsd_nat_target::thread_alive): Likewise.
12457 (nbsd_nat_target::thread_name): Likewise.
12458 (nbsd_add_threads): Likewise.
12459 (update_thread_list::post_attach): Likewise.
12460 (nbsd_nat_target::update_thread_list): Likewise.
12461 (post_attach::pid_to_str): Likewise.
12462
6ee448cc
TT
124632020-04-06 Tom Tromey <tromey@adacore.com>
12464
12465 * ada-valprint.c (print_variant_part): Extract the variant field.
12466 (print_field_values): Use the field as the outer value when
12467 recursing.
12468
dea34e8c
TT
124692020-04-06 Tom Tromey <tromey@adacore.com>
12470
12471 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
12472 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
12473 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
12474 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
12475 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
12476
93689ce9
TT
124772020-04-06 Tom Tromey <tromey@adacore.com>
12478
12479 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
12480 TYPE_CODE_ERROR.
12481
79743962
KR
124822020-04-06 Kamil Rytarowski <n54@gmx.com>
12483
12484 * nbsd-tdep.c: Include "gdbarch.h".
12485 Define enum with NetBSD signal numbers.
12486 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
12487 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
12488 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
12489 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
12490 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
12491 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
12492 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
12493 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
12494 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
12495 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
12496 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
12497 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
12498
9e7c9a03
HD
124992020-04-03 Hannes Domani <ssbssa@yahoo.de>
12500
12501 PR gdb/25325
12502 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
12503
d9e49b61
TT
125042020-04-03 Tom Tromey <tromey@adacore.com>
12505
12506 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
12507 Read constant block.
12508
e0fc5c3f
SM
125092020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
12510
12511 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
12512 (gdb_bfd_get_full_section_contents): New declaration.
12513 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
12514 * windows-tdep.c (is_linked_with_cygwin_dll): Use
12515 gdb_bfd_get_full_section_contents.
12516
e2ff18a0
SM
125172020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
12518
12519 * exec.c (build_section_table): Replace internal_error with
12520 gdb_assert.
12521 (section_table_xfer_memory_partial): Likewise.
12522 * mdebugread.c (parse_partial_symbols): Likewise.
12523 * psymtab.c (lookup_partial_symbol): Likewise.
12524 * utils.c (wrap_here): Likewise.
12525
0830d301
TT
125262020-04-02 Tom Tromey <tromey@adacore.com>
12527
12528 * f-lang.c (build_fortran_types): Use arch_type to initialize
12529 builtin_complex_s32 in the TYPE_CODE_ERROR case.
12530
e7da7f8f
TT
125312020-04-02 Tom Tromey <tromey@adacore.com>
12532
12533 * dwarf2/read.c (partial_die_info::read): Do not create a vector
12534 of attributes.
12535
c90d28ac
AB
125362020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
12537 Bernd Edlinger <bernd.edlinger@hotmail.de>
12538 Tom Tromey <tromey@adacore.com>
12539
12540 * buildsym.c (buildsym_compunit::record_line): Remove
12541 deduplication code.
12542
1aa98955
TV
125432020-04-02 Tom de Vries <tdevries@suse.de>
12544
12545 PR ada/24671
12546 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
12547
d3214198
TV
125482020-04-02 Tom de Vries <tdevries@suse.de>
12549
12550 * dwarf2/read.c (dwarf2_gdb_index_functions,
12551 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
12552 NULL.
12553 * psymtab.c (psym_lookup_global_symbol_language): New function.
12554 (psym_functions): Init psym_lookup_global_symbol_language with
12555 psym_lookup_global_symbol_language.
12556 * symfile-debug.c (debug_sym_quick_functions): Init
12557 lookup_global_symbol_language with NULL.
12558 * symfile.c (set_initial_language): Remove fixme comment.
12559 * symfile.h (struct quick_symbol_functions): Add
12560 lookup_global_symbol_language.
12561 * symtab.c (find_quick_global_symbol_language): New function.
12562 (find_main_name): Use find_quick_global_symbol_language.
12563
2836752f
SM
125642020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
12565
12566 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
12567
64dc2d4b
BE
125682020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12569
12570 * buildsym.c (record_line): Fix undefined behavior and preserve
12571 lines at eof.
12572
bbe3dc41
BE
125732020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12574
12575 * buildsym.c (record_line): Fix the resizing condition.
12576
6b4a335b
TT
125772020-04-01 Tom Tromey <tom@tromey.com>
12578
12579 * value.h (value_literal_complex): Add comment.
12580 * valops.c (value_literal_complex): Refer to value.h.
12581
3638a098
TT
125822020-04-01 Tom Tromey <tom@tromey.com>
12583
12584 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
12585 (scalar_type): New rule, from typebase.
12586 (typebase): Use scalar_type. Recognize complex types.
12587 (field_name): Handle FLOAT_KEYWORD.
12588 (ident_tokens): Add _Complex and __complex__.
12589
c34e8714
TT
125902020-04-01 Tom Tromey <tom@tromey.com>
12591
12592 PR exp/25299:
12593 * valarith.c (promotion_type, complex_binop): New functions.
12594 (scalar_binop): Handle complex numbers. Use promotion_type.
12595 (value_pos, value_neg, value_complement): Handle complex numbers.
12596
fa649bb7
TT
125972020-04-01 Tom Tromey <tom@tromey.com>
12598
12599 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
12600 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
12601 (parse_number): Handle complex numbers.
12602
981c08ce
TT
126032020-04-01 Tom Tromey <tom@tromey.com>
12604
12605 * c-valprint.c (c_decorations): Change complex suffix to "i".
12606
4c99290d
TT
126072020-04-01 Tom Tromey <tom@tromey.com>
12608
12609 * valprint.c (generic_value_print_complex): Use accessors.
12610 * value.h (value_real_part, value_imaginary_part): Declare.
12611 * valops.c (value_real_part, value_imaginary_part): New
12612 functions.
12613 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
12614
5b930b45
TT
126152020-04-01 Tom Tromey <tom@tromey.com>
12616
12617 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
12618 (read_range_type): Update.
12619 * mdebugread.c (basic_type): Update.
12620 * go-lang.c (build_go_types): Use init_complex_type.
12621 * gdbtypes.h (struct main_type) <complex_type>: New member.
12622 (init_complex_type): Update.
12623 (arch_complex_type): Don't declare.
12624 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
12625 Make name if none given. Use alloc_type_copy. Look for cached
12626 complex type.
12627 (arch_complex_type): Remove.
12628 (gdbtypes_post_init): Use init_complex_type.
12629 * f-lang.c (build_fortran_types): Use init_complex_type.
12630 * dwarf2/read.c (read_base_type): Update.
12631 * d-lang.c (build_d_types): Use init_complex_type.
12632 * ctfread.c (read_base_type): Update.
12633
53cccef1
TBA
126342020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12635
12636 * infrun.c (stop_all_threads): Update assertion, plus when
12637 stopping threads, take into account that we might be trying
12638 to stop an all-stop target.
12639 (stop_waiting): Call 'stop_all_threads' if there exists a
12640 non-stop target.
12641
a0714d30
TBA
126422020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12643
12644 * target.h (exists_non_stop_target): New function declaration.
12645 * target.c (exists_non_stop_target): New function.
12646
60e22c1e
HD
126472020-04-01 Hannes Domani <ssbssa@yahoo.de>
12648
12649 PR gdb/24789
12650 * eval.c (is_integral_or_integral_reference): New function.
12651 (evaluate_subexp_standard): Allow integer references in
12652 pointer arithmetic.
12653
e139a727
TBA
126542020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12655
12656 * remote.c (remote_target::remote_parse_stop_reply): Remove the
12657 check for no ptid in the stop reply when the target is non-stop.
12658
e0802d59
TT
126592020-04-01 Tom Tromey <tromey@adacore.com>
12660
12661 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
12662 "name" parameter to rvalue reference. Initialize m_name_holder.
12663 <lookup_name_info>: New overloads.
12664 <name>: Return gdb::string_view.
12665 <c_str>: New method.
12666 <make_ignore_params>: Update.
12667 <search_name_hash>: Update.
12668 <language_lookup_name>: Return const char *.
12669 <m_name>: Change type.
12670 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
12671 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
12672 (lookup_name_info::match_any): Update.
12673 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
12674 Update.
12675 * minsyms.c (linkage_name_str): Update.
12676 * language.c (default_symbol_name_matcher): Update.
12677 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
12678 Update.
12679 * ada-lang.c (ada_fold_name): Change parameter to string_view.
12680 (ada_lookup_name_info::ada_lookup_name_info): Update.
12681 (literal_symbol_name_matcher): Update.
12682
8c072cb6
TT
126832020-04-01 Tom Tromey <tromey@adacore.com>
12684
12685 * psymtab.c (psymtab_search_name): Remove function.
12686 (psym_lookup_symbol): Create search name and lookup name here.
12687 (lookup_partial_symbol): Remove "name" parameter; add
12688 lookup_name.
12689 (psym_expand_symtabs_for_function): Update.
12690
6f29a534
TT
126912020-03-31 Joel Jones <joelkevinjones@gmail.com>
12692
12693 PR tui/25597:
12694 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
12695
af62665e
TT
126962020-03-31 Tom Tromey <tromey@adacore.com>
12697
12698 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
12699 memcpy.
12700
d1a89da5
NC
127012020-03-30 Nelson Chu <nelson.chu@sifive.com>
12702
12703 * features/riscv/32bit-csr.xml: Regenerated.
12704 * features/riscv/64bit-csr.xml: Regenerated.
12705
d8af9068
TT
127062020-03-30 Tom Tromey <tromey@adacore.com>
12707
12708 * ada-valprint.c (print_variant_part): Update.
12709 * ada-lang.h (ada_which_variant_applies): Update.
12710 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
12711 outer_valaddr parameters; replace with "outer" value parameter.
12712 (to_fixed_variant_branch_type): Update.
12713
227c0bf4
PFC
127142020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12715
12716 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
12717 <list>. Remove inclusion of observable.h.
12718 (PPC_DEBUG_CURRENT_VERSION): Move up define.
12719 (struct arch_lwp_info): New struct.
12720 (class ppc_linux_dreg_interface): New class.
12721 (struct ppc_linux_process_info): New struct.
12722 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
12723 <low_new_clone, low_forget_process, low_prepare_to_resume>
12724 <copy_thread_dreg_state, mark_thread_stale>
12725 <mark_debug_registers_changed, register_hw_breakpoint>
12726 <clear_hw_breakpoint, register_wp, clear_wp>
12727 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
12728 <num_memory_accesses, get_trigger_type>
12729 <create_watchpoint_request, hwdebug_point_cmp>
12730 <init_arch_lwp_info, get_arch_lwp_info>
12731 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
12732 methods.
12733 <struct ptid_hash>: New inner struct.
12734 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
12735 members.
12736 (saved_dabr_value, hwdebug_info, max_slots_number)
12737 (struct hw_break_tuple, struct thread_points, ppc_threads)
12738 (have_ptrace_hwdebug_interface)
12739 (hwdebug_find_thread_points_by_tid)
12740 (hwdebug_insert_point, hwdebug_remove_point): Remove.
12741 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
12742 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
12743 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
12744 use m_dreg_interface.
12745 (hwdebug_point_cmp): Change to...
12746 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
12747 reference arguments instead of pointers.
12748 (ppc_linux_nat_target::ranged_break_num_registers): Use
12749 m_dreg_interface.
12750 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
12751 m_dreg_interface. Call register_hw_breakpoint.
12752 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
12753 m_dreg_interface. Call clear_hw_breakpoint.
12754 (get_trigger_type): Change to...
12755 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
12756 comment.
12757 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
12758 use m_dreg_interface. Call register_hw_breakpoint.
12759 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
12760 use m_dreg_interface. Call clear_hw_breakpoint.
12761 (can_use_watchpoint_cond_accel): Change to...
12762 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
12763 method. Update comment, use m_dreg_interface and
12764 m_process_info.
12765 (calculate_dvc): Change to...
12766 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
12767 m_dreg_interface.
12768 (num_memory_accesses): Change to...
12769 (ppc_linux_nat_target::num_memory_accesses): ...this method.
12770 (check_condition): Change to...
12771 (ppc_linux_nat_target::check_condition): ...this method.
12772 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
12773 comment, use m_dreg_interface.
12774 (create_watchpoint_request): Change to...
12775 (ppc_linux_nat_target::create_watchpoint_request): ...this
12776 method. Use m_dreg_interface.
12777 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
12778 m_dreg_interface. Call register_hw_breakpoint or register_wp.
12779 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
12780 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
12781 (ppc_linux_nat_target::low_forget_process)
12782 (ppc_linux_nat_target::low_new_fork)
12783 (ppc_linux_nat_target::low_new_clone)
12784 (ppc_linux_nat_target::low_delete_thread)
12785 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
12786 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
12787 only call mark_thread_stale.
12788 (ppc_linux_thread_exit): Remove.
12789 (ppc_linux_nat_target::stopped_data_address): Change to...
12790 (ppc_linux_nat_target::low_stopped_data_address): This. Add
12791 comment, use m_dreg_interface and m_thread_hw_breakpoints.
12792 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
12793 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
12794 comment. Call low_stopped_data_address.
12795 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
12796 m_dreg_interface.
12797 (ppc_linux_nat_target::masked_watch_num_registers): Use
12798 m_dreg_interface.
12799 (ppc_linux_nat_target::copy_thread_dreg_state)
12800 (ppc_linux_nat_target::mark_thread_stale)
12801 (ppc_linux_nat_target::mark_debug_registers_changed)
12802 (ppc_linux_nat_target::register_hw_breakpoint)
12803 (ppc_linux_nat_target::clear_hw_breakpoint)
12804 (ppc_linux_nat_target::register_wp)
12805 (ppc_linux_nat_target::clear_wp)
12806 (ppc_linux_nat_target::init_arch_lwp_info)
12807 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
12808 (_initialize_ppc_linux_nat): Remove observer callback.
12809
4db10d8f
PFC
128102020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12811
12812 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
12813 (ppc_linux_nat_target::auxv_parse)
12814 (ppc_linux_nat_target::read_description)
12815 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
12816 Move up.
12817
1310c1b0
PFC
128182020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12819
12820 * linux-nat.h (low_new_clone): New method.
12821 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
12822
69b037c3
SM
128232020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12824
12825 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
12826 (dbx_expand_psymtab): ... this.
12827 (start_psymtab): Update.
12828 * mdebugread.c (psymtab_to_symtab_1): Rename to...
12829 (mdebug_expand_psymtab): ... this.
12830 (parse_partial_symbols): Update.
12831 (new_psymtab): Update.
12832 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
12833 (xcoff_expand_psymtab): ... this.
12834 (xcoff_start_psymtab): Update.
12835
48993951
SM
128362020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12837
12838 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
12839 <expand_dependencies>: ... this.
12840 * psymtab.c (partial_symtab::read_dependencies): Rename to...
12841 (partial_symtab::expand_dependencies): ... this.
12842 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
12843 Update.
12844 (dwarf2_psymtab::expand_psymtab): Update.
12845 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
12846 * mdebugread.c (psymtab_to_symtab_1): Update.
12847 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
12848
3ad83046
SM
128492020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12850
12851 * psympriv.h (discard_psymtab): Remove.
12852 * dbxread.c (dbx_end_psymtab): Update.
12853 * xcoffread.c (xcoff_end_psymtab): Update.
12854
4d1b9ab6
TT
128552020-03-28 Tom Tromey <tom@tromey.com>
12856
12857 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
12858 comment.
12859
f1749218
TT
128602020-03-28 Tom Tromey <tom@tromey.com>
12861
12862 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
12863
ebea7626
HD
128642020-03-27 Hannes Domani <ssbssa@yahoo.de>
12865
12866 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
12867
a879b4d5
JB
128682020-03-26 John Baldwin <jhb@FreeBSD.org>
12869
12870 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
12871
0826b30a
TT
128722020-03-26 Tom Tromey <tom@tromey.com>
12873
12874 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
12875 (mark_common_block_symbol_computed, read_tag_string_type)
12876 (attr_to_dynamic_prop, read_subrange_type): Update.
12877 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
12878 to be methods on struct attribute.
12879 (skip_one_die, process_imported_unit_die, read_namespace_alias)
12880 (read_call_site_scope, partial_die_info::read)
12881 (partial_die_info::read, lookup_die_type, follow_die_ref):
12882 Update.
12883 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
12884 from dwarf2_get_ref_die_offset.
12885 (attribute::constant_value): New method, from
12886 dwarf2_get_attr_constant_value.
12887 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
12888 Declare method.
12889 <constant_value>: New method.
12890
2b2558bf
TT
128912020-03-26 Tom Tromey <tom@tromey.com>
12892
12893 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
12894 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
12895 (dwarf_type_encoding_name): Move to stringify.c.
12896 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
12897 * dwarf2/stringify.c: New file.
12898 * dwarf2/stringify.h: New file.
12899
eeb64781
TT
129002020-03-26 Tom Tromey <tom@tromey.com>
12901
12902 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
12903 Rewrite.
12904
a39fdb41
TT
129052020-03-26 Tom Tromey <tom@tromey.com>
12906
12907 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
12908 methods.
12909 * dwarf2/read.c (lookup_addr_base): Move to die.h.
12910 (lookup_ranges_base): Likewise.
12911 (read_cutu_die_from_dwo, read_full_die_1): Update.
12912
436c571c
TT
129132020-03-26 Tom Tromey <tom@tromey.com>
12914
12915 * dwarf2/read.c (read_import_statement, read_file_scope)
12916 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
12917 (read_lexical_block_scope, read_call_site_scope)
12918 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
12919 (handle_struct_member_die, process_structure_scope)
12920 (update_enumeration_type_from_children)
12921 (process_enumeration_scope, read_array_type, read_common_block)
12922 (read_namespace, read_module, read_subroutine_type): Update.
12923 (sibling_die): Remove.
12924
052c8bb8
TT
129252020-03-26 Tom Tromey <tom@tromey.com>
12926
12927 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
12928 (build_type_psymtabs_reader, read_structure_type)
12929 (read_enumeration_type, read_full_die_1): Update.
12930 (dwarf2_attr_no_follow): Move to die.h.
12931 * dwarf2/die.h (struct die_info) <attr>: New method.
12932
2b24b6e4
TT
129332020-03-26 Tom Tromey <tom@tromey.com>
12934
12935 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
12936 <base_address>: Now an optional.
12937 (dwarf2_find_base_address, dwarf2_rnglists_process)
12938 (dwarf2_ranges_process, fill_in_loclist_baton)
12939 (dwarf2_symbol_mark_computed): Update.
12940
c2d50fd0
TT
129412020-03-26 Tom Tromey <tom@tromey.com>
12942
12943 * dwarf2/read.c (struct die_info): Move to die.h.
12944 * dwarf2/die.h: New file.
12945
0df7ad3a
TT
129462020-03-26 Tom Tromey <tom@tromey.com>
12947
12948 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
12949 * dwarf2/read.c
12950 (dwarf2_statement_list_fits_in_line_number_section_complaint):
12951 Move to line-header.c.
12952 (read_checked_initial_length_and_offset, read_formatted_entries):
12953 Likewise.
12954 (dwarf_decode_line_header): Split into two.
12955 * dwarf2/line-header.c
12956 (dwarf2_statement_list_fits_in_line_number_section_complaint):
12957 Move from read.c.
12958 (read_checked_initial_length_and_offset, read_formatted_entries):
12959 Likewise.
12960 (dwarf_decode_line_header): New function, split from read.c.
12961
86c0bb4c
TT
129622020-03-26 Tom Tromey <tom@tromey.com>
12963
12964 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
12965 Declare method.
12966 * dwarf2/read.c (read_attribute_value): Update.
12967 (dwarf2_per_objfile::read_line_string): Rename from
12968 read_indirect_line_string.
12969 (read_formatted_entries): Update.
12970
2ef46c2f
TT
129712020-03-26 Tom Tromey <tom@tromey.com>
12972
12973 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
12974 variable.
12975
4f9c1eda
TT
129762020-03-26 Tom Tromey <tom@tromey.com>
12977
12978 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
12979 const.
12980 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
12981 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
12982 parameter const.
12983
5a0e026f
TT
129842020-03-26 Tom Tromey <tom@tromey.com>
12985
12986 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
12987 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
12988 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
12989 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
12990
8844c11b
TT
129912020-03-26 Tom Tromey <tom@tromey.com>
12992
12993 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
12994 file_names_size, file_full_name, file_file_name>: Use const.
12995 <file_name_at, file_names>: Add const overload.
12996 * dwarf2/line-header.c (line_header::file_file_name)
12997 (line_header::file_full_name): Update.
12998
c90ec28a
TT
129992020-03-26 Tom Tromey <tom@tromey.com>
13000
13001 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
13002 (macro_start_file, consume_improper_spaces)
13003 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
13004 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
13005 (dwarf_decode_macros): Move to macro.c.
13006 * dwarf2/macro.c: New file.
13007 * dwarf2/macro.h: New file.
13008 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
13009
4f44ae6c
TT
130102020-03-26 Tom Tromey <tom@tromey.com>
13011
13012 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
13013 method.
13014 * dwarf2/section.c: New method. From
13015 read_indirect_string_at_offset_from.
13016 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
13017 (read_indirect_string_at_offset_from): Move to section.c.
13018 (read_indirect_string_at_offset): Rewrite.
13019 (read_indirect_line_string_at_offset): Remove.
13020 (read_indirect_string, read_indirect_line_string)
13021 (dwarf_decode_macro_bytes): Update.
13022
a0194fa8
TT
130232020-03-26 Tom Tromey <tom@tromey.com>
13024
13025 * dwarf2/section.h (struct dwarf2_section_info)
13026 <overload_complaint>: Declare.
13027 (dwarf2_section_buffer_overflow_complaint): Don't declare.
13028 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
13029 Rename from dwarf2_section_buffer_overflow_complaint.
13030 * dwarf2/read.c (skip_one_die, partial_die_info::read)
13031 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
13032
3d27bbdb
TT
130332020-03-26 Tom Tromey <tom@tromey.com>
13034
13035 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
13036 Declare.
13037 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
13038 Move from read.c.
13039 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
13040 to section.c.
13041
9eac9650
TT
130422020-03-26 Tom Tromey <tom@tromey.com>
13043
13044 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
13045
bf80d710
TT
130462020-03-26 Tom Tromey <tom@tromey.com>
13047
13048 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
13049 "builder".
13050 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
13051 parameter.
13052 (dwarf_decode_macros): Update.
13053
0314b390
TT
130542020-03-26 Tom Tromey <tom@tromey.com>
13055
13056 * dwarf2/read.c (read_attribute_value): Update.
13057 (read_indirect_string_from_dwz): Move to dwz.c; change into
13058 method.
13059 (dwarf_decode_macro_bytes): Update.
13060 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
13061 * dwarf2/dwz.c: New file.
13062 * Makefile.in (COMMON_SFILES): Add dwz.c.
13063
9fda78b6
TT
130642020-03-26 Tom Tromey <tom@tromey.com>
13065
13066 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
13067 * dwarf2/read.c: Add include.
13068 * dwarf2/index-write.c: Add include.
13069 * dwarf2/index-cache.c: Add include.
13070 * dwarf2/dwz.h: New file.
13071
33aa3c10
TT
130722020-03-25 Tom Tromey <tom@tromey.com>
13073
13074 * compile/compile-object-load.c (get_out_value_type): Mention
13075 correct symbol name in error message.
13076
d503b685
HD
130772020-03-25 Hannes Domani <ssbssa@yahoo.de>
13078
13079 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
13080
7b1eff95
TV
130812020-03-25 Tom de Vries <tdevries@suse.de>
13082
13083 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
13084 * symmisc.c (dump_symtab_1): Print user and includes fields.
13085 (maintenance_info_symtabs): Same.
13086
dd895392
AB
130872020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
13088
13089 PR gdb/25534
13090 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
13091 (riscv_regcache_cooked_write): New function.
13092 (riscv_push_dummy_call): Use new function.
13093 (riscv_return_value): Likewise.
13094
5ab2fbf1
SM
130952020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
13096
13097 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
13098 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
13099 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
13100 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
13101 * infrun.c (follow_fork): Likewise.
13102 (follow_fork_inferior): Likewise.
13103 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
13104 * linux-nat.h (class linux_nat_target): Likewise.
13105 * remote.c (class remote_target) <follow_fork>: Likewise.
13106 (remote_target::follow_fork): Likewise.
13107 * target-delegates.c: Re-generate.
13108 * target.c (default_follow_fork): Likewise.
13109 (target_follow_fork): Likewise.
13110 * target.h (struct target_ops) <follow_fork>: Likewise.
13111 (target_follow_fork): Likewise.
13112
a64fafb5
TV
131132020-03-24 Tom de Vries <tdevries@suse.de>
13114
13115 * psymtab.c (maintenance_info_psymtabs): Print user field.
13116
fe26d3a3
TT
131172020-03-20 Tom Tromey <tromey@adacore.com>
13118
13119 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
13120 const.
13121 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
13122 const.
13123
c884cc46
SM
131242020-03-20 Simon Marchi <simon.marchi@efficios.com>
13125
13126 * ptrace.m4: Don't check for ptrace declaration.
13127 * config.in: Re-generate.
13128 * configure: Re-generate.
13129 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
13130 not defined.
13131
1ff700c2
KR
131322020-03-20 Kamil Rytarowski <n54@gmx.com>
13133
13134 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
13135 `PTRACE_TYPE_RET'.
13136 * i386-bsd-nat.c (gdb_ptrace): Likewise.
13137 * sparc-nat.c (gdb_ptrace): Likewise.
13138 * x86-bsd-nat.c (gdb_ptrace): Likewise.
13139
f7d4f0b1
TT
131402020-03-20 Tom Tromey <tromey@adacore.com>
13141
13142 * c-exp.y (lex_one_token): Fix assert.
13143
f67210ff
TT
131442020-03-20 Tom Tromey <tromey@adacore.com>
13145
13146 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
13147 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
13148 strncpy call.
13149
1773be9e
TT
131502020-03-20 Tom Tromey <tromey@adacore.com>
13151
13152 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
13153
70304be9
TT
131542020-03-20 Tom Tromey <tromey@adacore.com>
13155
13156 * ada-valprint.c (print_variant_part): Remove parameters; switch
13157 to value-based API.
13158 (print_field_values): Likewise.
13159 (ada_val_print_struct_union): Likewise.
13160 (ada_value_print_1): Update.
13161
9faa006d
KR
131622020-03-20 Kamil Rytarowski <n54@gmx.com>
13163
13164 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
13165 nbsd_nat_target instead of inf_ptrace_target.
13166 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13167 nbsd_nat_target.
13168
4a90f062
KR
131692020-03-20 Kamil Rytarowski <n54@gmx.com>
13170
13171 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
13172 it to the ptrace call.
13173 * (store_registers): Likewise.
13174
131752020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
13176
13177 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
13178 it to the ptrace call.
13179 * (store_registers): Likewise.
13180
2d07da27
LM
131812020-03-19 Luis Machado <luis.machado@linaro.org>
13182
13183 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
13184 valid, fetch vg value from ptrace.
13185
f09db380
KR
131862020-03-19 Kamil Rytarowski <n54@gmx.com>
13187 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
13188 * inf-ptrace.c: Likewise.
13189 * (gdb_ptrace): Add.
13190 * (inf_ptrace_target::resume): Update.
13191 * (inf_ptrace_target::xfer_partial): Likewise.
13192 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
13193 * (inf_ptrace_peek_poke): Update.
13194
fcc7376e
KR
131952020-03-19 Kamil Rytarowski <n54@gmx.com>
13196
13197 * x86-bsd-nat.c (gdb_ptrace): New.
13198 * (x86bsd_dr_set): Add new argument `ptid'.
13199 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
13200 x86bsd_dr_set_addr): Update.
13201
cada5fc9
AB
132022020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13203
13204 * remote.c (remote_target::process_stop_reply): Handle events for
13205 all threads differently.
13206
19a2740f
AB
132072020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13208
13209 * completer.c (completion_tracker::remove_completion): Define new
13210 function.
13211 * completer.h (completion_tracker::remove_completion): Declare new
13212 function.
13213 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
13214 when adding a C++ function symbol.
13215
724fd9ba
AB
132162020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13217
13218 * completer.c (completion_tracker::completion_hash_entry): Define
13219 new class.
13220 (advance_to_filename_complete_word_point): Call
13221 recompute_lowest_common_denominator.
13222 (completion_tracker::completion_tracker): Call discard_completions
13223 to setup the hash table.
13224 (completion_tracker::discard_completions): Allow for being called
13225 from the constructor, pass new equal function, and element deleter
13226 when constructing the hash table. Initialise new class member
13227 variables.
13228 (completion_tracker::maybe_add_completion): Remove use of
13229 m_entries_vec, and store more information into m_entries_hash.
13230 (completion_tracker::recompute_lcd_visitor): New function, most
13231 content taken from...
13232 (completion_tracker::recompute_lowest_common_denominator):
13233 ...here, this now just visits each item in the hash calling the
13234 above visitor.
13235 (completion_tracker::build_completion_result): Remove use of
13236 m_entries_vec, call recompute_lowest_common_denominator.
13237 * completer.h (completion_tracker::have_completions): Remove use
13238 of m_entries_vec.
13239 (completion_tracker::completion_hash_entry): Declare new class.
13240 (completion_tracker::recompute_lowest_common_denominator): Change
13241 function signature.
13242 (completion_tracker::recompute_lcd_visitor): Declare new function.
13243 (completion_tracker::m_entries_vec): Delete.
13244 (completion_tracker::m_entries_hash): Initialize to NULL.
13245 (completion_tracker::m_lowest_common_denominator_valid): New
13246 member variable.
13247 (completion_tracker::m_lowest_common_denominator_max_length): New
13248 member variable.
13249
5a82b8a1
KR
132502020-03-17 Kamil Rytarowski <n54@gmx.com>
13251
13252 * regformats/regdef.h: Put reg in gdb namespace.
13253
fb516a69
KR
132542020-03-17 Kamil Rytarowski <n54@gmx.com>
13255
13256 * i386-bsd-nat.c (gdb_ptrace): New.
13257 * (i386bsd_fetch_inferior_registers,
13258 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
13259 * (i386bsd_fetch_inferior_registers,
13260 i386bsd_store_inferior_registers) Use gdb_ptrace.
13261
1c0aa1fb
KR
132622020-03-17 Kamil Rytarowski <n54@gmx.com>
13263
13264 * amd64-bsd-nat.c (gdb_ptrace): New.
13265 * (amd64bsd_fetch_inferior_registers,
13266 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
13267 * (amd64bsd_fetch_inferior_registers,
13268 amd64bsd_store_inferior_registers) Use gdb_ptrace.
13269
5ccd2fb7
KR
132702020-03-17 Kamil Rytarowski <n54@gmx.com>
13271
13272 * user-regs.c (user_reg::read): Rename to...
13273 (user_reg::xread): ...this.
13274 * (append_user_reg): Rename argument `read' to `xread'.
13275 * (user_reg_add_builtin): Likewise.
13276 * (user_reg_add): Likewise.
13277 * (value_of_user_reg): Likewise.
13278
2108a63a
KR
132792020-03-17 Kamil Rytarowski <n54@gmx.com>
13280
13281 * sparc-nat.c (gdb_ptrace): New.
13282 * sparc-nat.c (sparc_fetch_inferior_registers)
13283 (sparc_store_inferior_registers) Remove obsolete comment.
13284 * sparc-nat.c (sparc_fetch_inferior_registers)
13285 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
13286 * sparc-nat.c (sparc_fetch_inferior_registers)
13287 (sparc_store_inferior_registers) Use gdb_ptrace.
13288
a225c9a8
KR
132892020-03-17 Kamil Rytarowski <n54@gmx.com>
13290
13291 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
13292 it to the ptrace call.
13293 * sh-nbsd-nat.c (store_registers): Likewise.
13294
98097623
KR
132952020-03-17 Kamil Rytarowski <n54@gmx.com>
13296
13297 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
13298 nbsd_nat_target instead of inf_ptrace_target.
13299 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13300 nbsd_nat_target.
13301
9e38d619
KR
133022020-03-17 Kamil Rytarowski <n54@gmx.com>
13303
13304 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
13305
a2ecbe9f
KR
133062020-03-17 Kamil Rytarowski <n54@gmx.com>
13307
13308 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
13309 <sys/sysctl.h>.
13310 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
13311
58990295
TV
133122020-03-17 Tom de Vries <tdevries@suse.de>
13313
13314 PR gdb/23710
13315 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
13316 fields.
13317 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
13318 fields.
13319 (process_imported_unit_die): Skip import of c++ CUs.
13320
771dd3a8
TT
133212020-03-16 Tom Tromey <tom@tromey.com>
13322
13323 * p-valprint.c (pascal_object_print_value): Initialize
13324 base_value.
13325
817a7585
AK
133262020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
13327 Shahab Vahedi <shahab@synopsys.com>
13328
13329 * Makefile.in: Add arch/arc.o
13330 * configure.tgt: Likewise.
13331 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
13332 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 13333 (arc_read_description): New function to cache target descriptions.
817a7585
AK
13334 * arc-tdep.h (arc_read_description): Add proto type.
13335 * arch/arc.c: New file.
13336 * arch/arc.h: Likewise.
13337 * features/Makefile: Replace old target descriptions with new.
13338 * features/arc-arcompact.c: Remove.
13339 * features/arc-arcompact.xml: Likewise.
13340 * features/arc-v2.c: Likewise
13341 * features/arc-v2.xml: Likewise
13342 * features/arc/aux-arcompact.xml: New file.
13343 * features/arc/aux-v2.xml: Likewise.
13344 * features/arc/core-arcompact.xml: Likewise.
13345 * features/arc/core-v2.xml: Likewise.
13346 * features/arc/aux-arcompact.c: Generate.
13347 * features/arc/aux-v2.c: Likewise.
13348 * features/arc/core-arcompact.c: Likewise.
13349 * features/arc/core-v2.c: Likewise.
13350 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
13351
67430cd0
TT
133522020-03-16 Tom Tromey <tromey@adacore.com>
13353
13354 PR gdb/25663:
13355 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
13356 putting value into bcache.
13357
30efb6c7
SM
133582020-03-16 Simon Marchi <simon.marchi@efficios.com>
13359
13360 PR gdb/21500
13361 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
13362 to...
13363 (amd64_windows_init_abi_common): ... this. Don't set size of
13364 long type.
13365 (amd64_windows_init_abi): New function.
13366 (amd64_cygwin_init_abi): New function.
13367 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
13368 the Cygwin OS ABI.
13369 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
13370 comment.
13371
8db52437
SM
133722020-03-16 Simon Marchi <simon.marchi@efficios.com>
13373
13374 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
13375 * windows-tdep.c (CYGWIN_DLL_NAME): New.
13376 (pe_import_directory_entry): New struct type.
13377 (is_linked_with_cygwin_dll): New function.
13378 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
13379 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
13380 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
13381
5982a56a
SM
133822020-03-16 Simon Marchi <simon.marchi@efficios.com>
13383
13384 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
13385 i386_cygwin_core_osabi_sniffer.
13386
7a1998df
SM
133872020-03-16 Simon Marchi <simon.marchi@efficios.com>
13388
13389 * i386-cygwin-tdep.c: Rename to...
13390 * i386-windows-tdep.c: ... this.
13391 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
13392 i386-windows-tdep.c.
13393 * configure.tgt: Likewise.
13394
053205cc
SM
133952020-03-16 Simon Marchi <simon.marchi@efficios.com>
13396
13397 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
13398 * osabi.c (gdb_osabi_names): Add "Windows".
13399 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
13400 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
13401 (i386_cygwin_core_osabi_sniffer): New function, extracted from
13402 i386_cygwin_osabi_sniffer.
13403 (_initialize_i386_cygwin_tdep): Register OS ABI
13404 GDB_OSABI_WINDOWS for i386.
13405 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
13406 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
13407 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
13408 for x86-64.
13409 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
13410 when the target matches '*-*-mingw*'.
13411
fe4b2ee6
SM
134122020-03-16 Simon Marchi <simon.marchi@efficios.com>
13413
13414 * defs.h (enum gdb_osabi): Move to...
13415 * osabi.h (enum gdb_osabi): ... here.
13416 * gdbarch.sh: Include osabi.h in gdbarch.h.
13417 * gdbarch.h: Re-generate.
13418
cb9b645d
SM
134192020-03-16 Simon Marchi <simon.marchi@efficios.com>
13420
13421 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
13422 function.
13423 (_initialize_amd64_windows_tdep): Register osabi sniffer.
13424
3293bbaf
TT
134252020-03-14 Tom Tromey <tom@tromey.com>
13426
13427 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
13428 for C++.
13429 (c_type_print_modifier): Likewise. Add "language" parameter.
13430 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
13431 (c_type_print_base_1): Update.
13432 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
13433 constants.
13434 * type-stack.c (type_stack::insert): Handle tp_atomic and
13435 tp_restrict.
13436 (type_stack::follow_type_instance_flags): Likewise.
13437 (type_stack::follow_types): Likewise. Merge type-following code.
13438 * c-exp.y (RESTRICT, ATOMIC): New tokens.
13439 (space_identifier, cv_with_space_id)
13440 (const_or_volatile_or_space_identifier_noopt)
13441 (const_or_volatile_or_space_identifier): Remove.
13442 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
13443 rules.
13444 (ptr_operator, typebase): Update.
13445 (enum token_flag) <FLAG_C>: New constant.
13446 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
13447 "_Atomic".
13448 (lex_one_token): Handle FLAG_C.
13449
154151a6
KR
134502020-03-14 Kamil Rytarowski <n54@gmx.com>
13451
13452 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
13453 it to the ptrace call.
13454 * m68k-bsd-nat.c (store_registers): Likewise.
13455
bc107784
KR
134562020-03-14 Kamil Rytarowski <n54@gmx.com>
13457
13458 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
13459 gdb_byte *.
13460 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
13461 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
13462 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
13463
01a80117
KR
134642020-03-14 Kamil Rytarowski <n54@gmx.com>
13465
13466 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
13467 nbsd_nat_target instead of inf_ptrace_target.
13468 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13469 nbsd_nat_target.
13470
f90280ca
KR
134712020-03-14 Kamil Rytarowski <n54@gmx.com>
13472
13473 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
13474 register_t.
13475
6def66f1
KR
134762020-03-14 Kamil Rytarowski <n54@gmx.com>
13477
13478 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
13479 it to the ptrace call.
13480 * alpha-bsd-nat.c (store_registers): Likewise.
13481
66eaca97
KR
134822020-03-14 Kamil Rytarowski <n54@gmx.com>
13483
13484 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
13485 includes.
13486 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
13487 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
13488 fill_fpregset): Likewise.
13489
4fed520b
KR
134902020-03-14 Kamil Rytarowski <n54@gmx.com>
13491
13492 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
13493 nbsd_nat_target instead of inf_ptrace_target.
13494 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13495 nbsd_nat_target.
13496
2190cf06
KR
134972020-03-14 Kamil Rytarowski <n54@gmx.com>
13498
13499 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
13500 register_t.
13501
75c56d3d
KR
135022020-03-14 Kamil Rytarowski <n54@gmx.com>
13503
13504 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
13505 it to the ptrace call.
13506 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
13507 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
13508 * arm-nbsd-nat.c (store_register): Likewise.
13509 * arm-nbsd-nat.c (store_regs): Likewise.
13510 * arm-nbsd-nat.c (store_fp_register): Likewise.
13511 * arm-nbsd-nat.c (store_fp_regs): Likewise.
13512
6018d381
KR
135132020-03-14 Kamil Rytarowski <n54@gmx.com>
13514
13515 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
13516 nbsd_nat_target instead of inf_ptrace_target.
13517 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13518 nbsd_nat_target.
13519
013f99f0
KR
135202020-03-14 Kamil Rytarowski <n54@gmx.com>
13521
13522 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
13523 it to the ptrace call.
13524 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
13525
12753073
KR
135262020-03-14 Kamil Rytarowski <n54@gmx.com>
13527
6227b330
KR
13528 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
13529 it to the ptrace call.
13530 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
13531
135322020-03-14 Kamil Rytarowski <n54@gmx.com>
13533
13534 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
13535 gdb_byte *.
12753073
KR
13536 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
13537
d5be5fa4
KR
135382020-03-14 Kamil Rytarowski <n54@gmx.com>
13539
13540 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
13541 instead of inf_ptrace_target.
13542 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13543 nbsd_nat_target.
13544
8110f842
KR
135452020-03-14 Kamil Rytarowski <n54@gmx.com>
13546
13547 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13548 register_t.
13549
52feded7
KR
135502020-03-14 Kamil Rytarowski <n54@gmx.com>
13551
13552 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13553 register_t.
13554
25567eee
KR
135552020-03-14 Kamil Rytarowski <n54@gmx.com>
13556
13557 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
13558 register_t.
13559
426a9c18
TT
135602020-03-13 Tom Tromey <tom@tromey.com>
13561
13562 * value.h (val_print): Don't declare.
13563 * valprint.h (val_print_array_elements)
13564 (val_print_scalar_formatted, generic_val_print): Don't declare.
13565 * valprint.c (generic_val_print_array): Take a struct value.
13566 (generic_val_print_ptr, generic_val_print_memberptr)
13567 (generic_val_print_bool, generic_val_print_int)
13568 (generic_val_print_char, generic_val_print_complex)
13569 (generic_val_print): Remove.
13570 (generic_value_print): Update.
13571 (do_val_print): Remove unused parameters. Don't call
13572 la_val_print.
13573 (val_print): Remove.
13574 (common_val_print): Update. Don't call value_check_printable.
13575 (val_print_scalar_formatted, val_print_array_elements): Remove.
13576 * rust-lang.c (rust_val_print): Remove.
13577 (rust_language_defn): Update.
13578 * p-valprint.c (pascal_val_print): Remove.
13579 (pascal_value_print_inner): Update.
13580 (pascal_object_print_val_fields, pascal_object_print_val):
13581 Remove.
13582 (pascal_object_print_static_field): Update.
13583 * p-lang.h (pascal_val_print): Don't declare.
13584 * p-lang.c (pascal_language_defn): Update.
13585 * opencl-lang.c (opencl_language_defn): Update.
13586 * objc-lang.c (objc_language_defn): Update.
13587 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
13588 * m2-lang.h (m2_val_print): Don't declare.
13589 * m2-lang.c (m2_language_defn): Update.
13590 * language.h (struct language_defn) <la_val_print>: Remove.
13591 * language.c (unk_lang_value_print_inner): Rename. Change
13592 argument types.
13593 (unknown_language_defn, auto_language_defn): Update.
13594 * go-valprint.c (go_val_print): Remove.
13595 * go-lang.h (go_val_print): Don't declare.
13596 * go-lang.c (go_language_defn): Update.
13597 * f-valprint.c (f_val_print): Remove.
13598 * f-lang.h (f_value_print): Don't declare.
13599 * f-lang.c (f_language_defn): Update.
13600 * d-valprint.c (d_val_print): Remove.
13601 * d-lang.h (d_value_print): Don't declare.
13602 * d-lang.c (d_language_defn): Update.
13603 * cp-valprint.c (cp_print_value_fields)
13604 (cp_print_value_fields_rtti, cp_print_value): Remove.
13605 (cp_print_static_field): Update.
13606 * c-valprint.c (c_val_print_array, c_val_print_ptr)
13607 (c_val_print_struct, c_val_print_union, c_val_print_int)
13608 (c_val_print_memberptr, c_val_print): Remove.
13609 * c-lang.h (c_val_print_array, cp_print_value_fields)
13610 (cp_print_value_fields_rtti): Don't declare.
13611 * c-lang.c (c_language_defn, cplus_language_defn)
13612 (asm_language_defn, minimal_language_defn): Update.
13613 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
13614 (ada_val_print_enum): Take a struct value.
13615 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
13616 (ada_val_print): Remove.
13617 (ada_value_print_1): Update.
13618 (printable_val_type): Remove.
13619 * ada-lang.h (ada_val_print): Don't declare.
13620 * ada-lang.c (ada_language_defn): Update.
13621
42331a1e
TT
136222020-03-13 Tom Tromey <tom@tromey.com>
13623
13624 * valprint.c (do_val_print): Update.
13625 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
13626 a struct value.
13627 (value_to_value_object_no_release): Declare.
13628 * python/py-value.c (value_to_value_object_no_release): New
13629 function.
13630 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
13631 struct value.
13632 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
13633 function.
13634 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
13635 a struct value.
13636 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
13637 Declare.
13638 (gdbscm_apply_val_pretty_printer): Take a struct value.
13639 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
13640 value.
13641 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
13642 value.
13643 * extension-priv.h (struct extension_language_ops)
13644 <apply_val_pretty_printer>: Take a struct value.
13645 * cp-valprint.c (cp_print_value): Create a struct value.
13646 (cp_print_value): Update.
13647
3a916a97
TT
136482020-03-13 Tom Tromey <tom@tromey.com>
13649
13650 * ada-valprint.c (print_field_values): Call common_val_print.
13651
b59eac37
TT
136522020-03-13 Tom Tromey <tom@tromey.com>
13653
13654 * ada-valprint.c (val_print_packed_array_elements): Remove
13655 bitoffset and val parameters. Call common_val_print.
13656 (ada_val_print_string): Remove offset, address, and original_value
13657 parameters.
13658 (ada_val_print_array): Update.
13659 (ada_value_print_array): New function.
13660 (ada_value_print_1): Call it.
13661
03371129
TT
136622020-03-13 Tom Tromey <tom@tromey.com>
13663
13664 * ada-valprint.c (ada_value_print): Use common_val_print.
13665
2e088f8b
TT
136662020-03-13 Tom Tromey <tom@tromey.com>
13667
13668 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
13669
39ef85a8
TT
136702020-03-13 Tom Tromey <tom@tromey.com>
13671
13672 * ada-valprint.c (ada_value_print_num): New function.
13673 (ada_value_print_1): Use it.
13674
b9fa6e07
TT
136752020-03-13 Tom Tromey <tom@tromey.com>
13676
13677 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
13678
416595d6
TT
136792020-03-13 Tom Tromey <tom@tromey.com>
13680
13681 * ada-valprint.c (ada_value_print_ptr): New function.
13682 (ada_value_print_1): Use it.
13683
5b5e15ec
TT
136842020-03-13 Tom Tromey <tom@tromey.com>
13685
13686 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
13687 call common_val_print.
13688 (ada_val_print_1): Update.
13689 (ada_value_print_1): New function.
13690 (ada_value_print_inner): Rewrite.
13691
fbf54e75
TT
136922020-03-13 Tom Tromey <tom@tromey.com>
13693
13694 * cp-valprint.c (cp_print_value_fields): Update.
13695 (cp_print_value): New function.
13696
64b653ca
TT
136972020-03-13 Tom Tromey <tom@tromey.com>
13698
13699 * m2-valprint.c (m2_value_print_inner): Use
13700 cp_print_value_fields.
13701 * cp-valprint.c (cp_print_value_fields): New function.
13702 * c-valprint.c (c_value_print_struct): New function.
13703 (c_value_print_inner): Use c_value_print_struct.
13704 * c-lang.h (cp_print_value_fields): Declare.
13705
6999f067
TT
137062020-03-13 Tom Tromey <tom@tromey.com>
13707
13708 * c-valprint.c (c_value_print_array): New function.
13709 (c_value_print_inner): Use it.
13710
ce80b8bd
TT
137112020-03-13 Tom Tromey <tom@tromey.com>
13712
13713 * c-valprint.c (c_value_print_memberptr): New function.
13714 (c_value_print_inner): Use it.
13715
2faac269
TT
137162020-03-13 Tom Tromey <tom@tromey.com>
13717
13718 * c-valprint.c (c_value_print_int): New function.
13719 (c_value_print_inner): Use it.
13720
da3e2c29
TT
137212020-03-13 Tom Tromey <tom@tromey.com>
13722
13723 * c-valprint.c (c_value_print_ptr): New function.
13724 (c_value_print_inner): Use it.
13725
50836231
TT
137262020-03-13 Tom Tromey <tom@tromey.com>
13727
13728 * c-valprint.c (c_value_print_inner): Rewrite.
13729
4f412b6e
TT
137302020-03-13 Tom Tromey <tom@tromey.com>
13731
13732 * valprint.c (generic_value_print_complex): New function.
13733 (generic_value_print): Use it.
13734
f5354008
TT
137352020-03-13 Tom Tromey <tom@tromey.com>
13736
13737 * valprint.c (generic_val_print_float): Don't call
13738 val_print_scalar_formatted.
13739 (generic_val_print, generic_value_print): Update.
13740
3eec3b05
TT
137412020-03-13 Tom Tromey <tom@tromey.com>
13742
13743 * valprint.c (generic_value_print_char): New function
13744 (generic_value_print): Use it.
13745
fdddfccb
TT
137462020-03-13 Tom Tromey <tom@tromey.com>
13747
13748 * valprint.c (generic_value_print_int): New function.
13749 (generic_value_print): Use it.
13750
6dde7521
TT
137512020-03-13 Tom Tromey <tom@tromey.com>
13752
13753 * valprint.c (generic_value_print_bool): New function.
13754 (generic_value_print): Use it.
13755
4112d2e6
TT
137562020-03-13 Tom Tromey <tom@tromey.com>
13757
13758 * valprint.c (generic_val_print_func): Simplify.
13759 (generic_val_print, generic_value_print): Update.
13760
65786af6
TT
137612020-03-13 Tom Tromey <tom@tromey.com>
13762
13763 * valprint.c (generic_val_print_flags): Remove.
13764 (generic_val_print, generic_value_print): Update.
13765 (val_print_type_code_flags): Add original_value parameter.
13766
40f3ce18
TT
137672020-03-13 Tom Tromey <tom@tromey.com>
13768
13769 * valprint.c (generic_val_print): Update.
13770 (generic_value_print): Update.
13771 * valprint.c (generic_val_print_enum): Don't call
13772 val_print_scalar_formatted.
13773
2a5b130b
TT
137742020-03-13 Tom Tromey <tom@tromey.com>
13775
13776 * valprint.c (generic_value_print): Call generic_value_print_ptr.
13777 * valprint.c (generic_value_print_ptr): New function.
13778
abc66ce9
TT
137792020-03-13 Tom Tromey <tom@tromey.com>
13780
13781 * valprint.c (generic_value_print): Rewrite.
13782
07a32858
TT
137832020-03-13 Tom Tromey <tom@tromey.com>
13784
13785 * p-valprint.c (pascal_object_print_value_fields)
13786 (pascal_object_print_value): New functions.
13787
64d64d3a
TT
137882020-03-13 Tom Tromey <tom@tromey.com>
13789
13790 * p-valprint.c (pascal_value_print_inner): Rewrite.
13791
6a95a1f5
TT
137922020-03-13 Tom Tromey <tom@tromey.com>
13793
13794 * f-valprint.c (f_value_print_innner): Rewrite.
13795
59fcdac6
TT
137962020-03-13 Tom Tromey <tom@tromey.com>
13797
13798 * m2-valprint.c (m2_print_unbounded_array): New overload.
13799 (m2_print_unbounded_array): Update.
13800 (m2_print_array_contents): Take a struct value.
13801 (m2_value_print_inner): Rewrite.
13802
d133c3e1
TT
138032020-03-13 Tom Tromey <tom@tromey.com>
13804
13805 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
13806 (d_value_print_inner): New function.
13807 * d-lang.h (d_value_print_inner): Declare.
13808 * d-lang.c (d_language_defn): Use d_value_print_inner.
13809
23b0f06b
TT
138102020-03-13 Tom Tromey <tom@tromey.com>
13811
13812 * go-valprint.c (go_value_print_inner): New function.
13813 * go-lang.h (go_value_print_inner): Declare.
13814 * go-lang.c (go_language_defn): Use go_value_print_inner.
13815
5f56f7cb
TT
138162020-03-13 Tom Tromey <tom@tromey.com>
13817
13818 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
13819 API.
13820 (rust_val_print): Rewrite.
13821 (rust_value_print_inner): New function, from rust_val_print.
13822 (rust_language_defn): Use rust_value_print_inner.
13823
26792ee0
TT
138242020-03-13 Tom Tromey <tom@tromey.com>
13825
13826 * ada-valprint.c (ada_value_print_inner): New function.
13827 * ada-lang.h (ada_value_print_inner): Declare.
13828 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
13829
24051bbe
TT
138302020-03-13 Tom Tromey <tom@tromey.com>
13831
13832 * f-valprint.c (f_value_print_innner): New function.
13833 * f-lang.h (f_value_print_innner): Declare.
13834 * f-lang.c (f_language_defn): Use f_value_print_innner.
13835
c0941be6
TT
138362020-03-13 Tom Tromey <tom@tromey.com>
13837
13838 * p-valprint.c (pascal_value_print_inner): New function.
13839 * p-lang.h (pascal_value_print_inner): Declare.
13840 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
13841
62c4663d
TT
138422020-03-13 Tom Tromey <tom@tromey.com>
13843
13844 * m2-valprint.c (m2_value_print_inner): New function.
13845 * m2-lang.h (m2_value_print_inner): Declare.
13846 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
13847
62182190
TT
138482020-03-13 Tom Tromey <tom@tromey.com>
13849
13850 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
13851 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
13852 * c-valprint.c (c_value_print_inner): New function.
13853 * c-lang.h (c_value_print_inner): Declare.
13854 * c-lang.c (c_language_defn, cplus_language_defn)
13855 (asm_language_defn, minimal_language_defn): Use
13856 c_value_print_inner.
13857
1e592a8a
TT
138582020-03-13 Tom Tromey <tom@tromey.com>
13859
13860 * p-valprint.c (pascal_object_print_value_fields): Now static.
13861 * p-lang.h (pascal_object_print_value_fields): Don't declare.
13862
7fe471e9
TT
138632020-03-13 Tom Tromey <tom@tromey.com>
13864
13865 * c-valprint.c (c_val_print_array): Simplify.
13866
d121c6ce
TT
138672020-03-13 Tom Tromey <tom@tromey.com>
13868
13869 * valprint.c (value_print_array_elements): New function.
13870 * valprint.h (value_print_array_elements): Declare.
13871
4dba70ee
TT
138722020-03-13 Tom Tromey <tom@tromey.com>
13873
13874 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
13875 * mips-tdep.c (mips_print_register): Use
13876 value_print_scalar_formatted.
13877
4f9ae810
TT
138782020-03-13 Tom Tromey <tom@tromey.com>
13879
13880 * valprint.h (value_print_scalar_formatted): Declare.
13881 * valprint.c (value_print_scalar_formatted): New function.
13882
156bfec9
TT
138832020-03-13 Tom Tromey <tom@tromey.com>
13884
13885 * valprint.h (generic_value_print): Declare.
13886 * valprint.c (generic_value_print): New function.
13887
2b4e573d
TT
138882020-03-13 Tom Tromey <tom@tromey.com>
13889
13890 * valprint.c (do_val_print): Call la_value_print_inner, if
13891 available.
13892 * rust-lang.c (rust_language_defn): Update.
13893 * p-lang.c (pascal_language_defn): Update.
13894 * opencl-lang.c (opencl_language_defn): Update.
13895 * objc-lang.c (objc_language_defn): Update.
13896 * m2-lang.c (m2_language_defn): Update.
13897 * language.h (struct language_defn) <la_value_print_inner>: New
13898 member.
13899 * language.c (unknown_language_defn, auto_language_defn): Update.
13900 * go-lang.c (go_language_defn): Update.
13901 * f-lang.c (f_language_defn): Update.
13902 * d-lang.c (d_language_defn): Update.
13903 * c-lang.c (c_language_defn, cplus_language_defn)
13904 (asm_language_defn, minimal_language_defn): Update.
13905 * ada-lang.c (ada_language_defn): Update.
13906
a1f6a07c
TT
139072020-03-13 Tom Tromey <tom@tromey.com>
13908
13909 * c-valprint.c (c_value_print): Use common_val_print.
13910
410cf315
TT
139112020-03-13 Tom Tromey <tom@tromey.com>
13912
13913 * cp-valprint.c (cp_print_static_field): Use common_val_print.
13914
72a45c93
TT
139152020-03-13 Tom Tromey <tom@tromey.com>
13916
13917 * f-valprint.c (f77_print_array_1, f_val_print): Use
13918 common_val_print.
13919
040f66bd
TT
139202020-03-13 Tom Tromey <tom@tromey.com>
13921
13922 * riscv-tdep.c (riscv_print_one_register_info): Use
13923 common_val_print.
13924
a6e05a6c
TT
139252020-03-13 Tom Tromey <tom@tromey.com>
13926
13927 * mi/mi-main.c (output_register): Use common_val_print.
13928
3444c526
TT
139292020-03-13 Tom Tromey <tom@tromey.com>
13930
13931 * infcmd.c (default_print_one_register_info): Use
13932 common_val_print.
13933
c2a44efe
TT
139342020-03-13 Tom Tromey <tom@tromey.com>
13935
13936 * valprint.h (common_val_print_checked): Declare.
13937 * valprint.c (common_val_print_checked): New function.
13938 * stack.c (print_frame_arg): Use common_val_print_checked.
13939
b0c26e99
TT
139402020-03-13 Tom Tromey <tom@tromey.com>
13941
13942 * valprint.c (do_val_print): New function, from val_print.
13943 (val_print): Use do_val_print.
13944 (common_val_print): Use do_val_print.
13945
ce3acbe9
TT
139462020-03-13 Tom Tromey <tom@tromey.com>
13947
13948 * valprint.c (value_print): Use scoped_value_mark.
13949
96c7f873
TV
139502020-03-13 Tom de Vries <tdevries@suse.de>
13951
13952 PR symtab/25646
13953 * psymtab.c (partial_symtab::partial_symtab): Don't set
13954 globals_offset and statics_offset. Push element onto
13955 current_global_psymbols and current_static_psymbols stacks.
13956 (concat): New function.
13957 (end_psymtab_common): Set globals_offset and statics_offset. Pop
13958 element from current_global_psymbols and current_static_psymbols
13959 stacks. Concat popped elements to global_psymbols and
13960 static_symbols.
13961 (add_psymbol_to_list): Use current_global_psymbols and
13962 current_static_psymbols stacks.
13963 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
13964 current_static_psymbols fields.
13965
6ba0a321
CB
139662020-03-12 Christian Biesinger <cbiesinger@google.com>
13967
13968 * corelow.c (sniff_core_bfd): Remove.
13969 (class core_target) <m_core_vec>: Remove.
13970 (core_target::core_target): Update.
13971 (core_file_fns): Remove.
13972 (deprecated_add_core_fns): Remove.
13973 (default_core_sniffer): Remove.
13974 (sniff_core_bfd): Remove.
13975 (default_check_format): Remove.
13976 (gdb_check_format): Remove.
13977 (core_target_open): Update.
13978 (core_target::get_core_register_section): Update.
13979 (get_core_registers_cb): Update.
13980 (core_target::fetch_registers): Update.
13981 * gdbcore.h (struct core_fns): Remove.
13982 (deprecated_add_core_fns): Remove.
13983 (default_core_sniffer): Remove.
13984 (default_check_format): Remove.
13985
227031b2
TT
139862020-03-12 Tom Tromey <tom@tromey.com>
13987
13988 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
13989 CORE_ADDR.
13990 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
13991
53807e9f
TT
139922020-03-12 Tom Tromey <tom@tromey.com>
13993
13994 * remote.c (remote_target::download_tracepoint)
13995 (remote_target::enable_tracepoint)
13996 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
13997 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
13998 sprintf_vma.
13999
64f25102
TT
140002020-03-12 Tom Tromey <tom@tromey.com>
14001
14002 * symfile-mem.c: Update CORE_ADDR size assert.
14003
272cd5a3
SM
140042020-03-12 Simon Marchi <simon.marchi@efficios.com>
14005
14006 * selftest.m4: Move to gdbsupport/.
14007 * acinclude.m4: Update path to selftest.m4.
14008
74cd3f9d
SM
140092020-03-12 Simon Marchi <simon.marchi@efficios.com>
14010
14011 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
14012 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
14013 gdbarch-selfselftests.c and selftest-arch.c.
14014 (SUBDIR_UNITTESTS_OBS): Rename to...
14015 (SELFTESTS_OBS): ... this.
14016 (COMMON_SFILES): Remove disasm-selftests.c and
14017 gdbarch-selftests.c.
14018 * configure.ac: Don't add selftest-arch.{c,o} to
14019 CONFIG_{SRCS,OBS}.
14020 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
14021 preprocessor conditions.
14022
db6878ac
SM
140232020-03-12 Simon Marchi <simon.marchi@efficios.com>
14024
14025 * configure.ac: Don't source bfd/development.sh.
14026 * selftest.m4: Modify comment.
14027 * configure: Re-generate.
14028
4d696a5c
SM
140292020-03-12 Simon Marchi <simon.marchi@efficios.com>
14030
14031 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
14032 not "true" or "false".
14033 * configure: Re-generate.
14034
8dd8e1c7
CB
140352020-03-12 Christian Biesinger <cbiesinger@google.com>
14036
14037 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
14038 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
14039 renamed to arm_nbsd_supply_gregset.
14040 (fetch_register): Update to call arm_nbsd_supply_gregset.
14041 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
14042 (arm_netbsd_nat_target::fetch_registers): Update.
14043 (fetch_elfcore_registers): Removed.
14044 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
14045 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
14046 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
14047 not require NetBSD system headers.
14048 (arm_nbsd_regset): New struct.
14049 (arm_nbsd_iterate_over_regset_sections): New function.
14050 (arm_netbsd_init_abi_common): Updated to call
14051 set_gdbarch_iterate_over_regset_sections.
14052 * arm-nbsd-tdep.h: New file.
14053
dd69bf7a
KB
140542020-03-11 Kevin Buettner <kevinb@redhat.com>
14055
14056 * symtab.c (find_pc_sect_line): Add check which prevents infinite
14057 recursion.
14058
a0761e34
SM
140592020-03-11 Simon Marchi <simon.marchi@efficios.com>
14060
14061 * configure: Re-generate.
14062
e7a82140
TT
140632020-03-11 Tom Tromey <tromey@adacore.com>
14064
14065 * ada-typeprint.c (print_choices): Fix comment.
14066
dcc050c8
AB
140672020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
14068
14069 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
14070 previous item in the list, when the list has no items.
14071
1c33af77
TV
140722020-03-11 Tom de Vries <tdevries@suse.de>
14073
14074 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
14075 PROP_LOCLIST handling code.
14076
8c95582d
AB
140772020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
14078
14079 * buildsym-legacy.c (record_line): Pass extra parameter to
14080 record_line.
14081 * buildsym.c (buildsym_compunit::record_line): Take an extra
14082 parameter, reduce duplication in the line table, and record the
14083 is_stmt flag in the line table.
14084 * buildsym.h (buildsym_compunit::record_line): Add extra
14085 parameter.
14086 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
14087 non-statement lines.
14088 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
14089 this to the symtab builder.
14090 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
14091 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
14092 through to dwarf_record_line_1.
14093 * infrun.c (process_event_stop_test): When stepping, don't stop at
14094 a non-statement instruction, and only refresh the step info when
14095 we land in the middle of a line's range. Also add an extra
14096 comment.
14097 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
14098 field.
14099 * record-btrace.c (btrace_find_line_range): Only record lines
14100 marked as is-statement.
14101 * stack.c (frame_show_address): Show the frame address if we are
14102 in a non-statement sal.
14103 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
14104 (maintenance_print_one_line_table): Print a header for the is_stmt
14105 column, and include is_stmt information in the output.
14106 * symtab.c (find_pc_sect_line): Find lines marked as statements in
14107 preference to non-statements.
14108 (find_pcs_for_symtab_line): Prefer is-statement entries.
14109 (find_line_common): Likewise.
14110 * symtab.h (struct linetable_entry): Add is_stmt field.
14111 (struct symtab_and_line): Likewise.
14112 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
14113 arranging the line table.
14114
e4003a34
TV
141152020-03-07 Tom de Vries <tdevries@suse.de>
14116
14117 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
14118 DIE.
14119
e8932576
TT
141202020-03-07 Tom Tromey <tom@tromey.com>
14121
14122 * valops.c (value_literal_complex): Remove obsolete comment.
14123 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
14124 comment.
14125
29734269
SM
141262020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
14127
14128 * infrun.h: Forward-declare thread_info.
14129 (set_step_info): Add thread_info parameter, add doc.
14130 * infrun.c (set_step_info): Add thread_info parameter, move doc
14131 to header.
14132 * infrun.c (process_event_stop_test): Pass thread to
14133 set_step_info call.
14134 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
14135 set_step_info.
14136 (prepare_one_step): Add thread_info parameter, pass it to
14137 set_step_frame and prepare_one_step (recursive) call.
14138 (step_1): Pass thread to prepare_one_step call.
14139 (step_command_fsm::should_stop): Pass thread to
14140 prepare_one_step.
14141 (until_next_fsm): Pass thread to set_step_frame call.
14142 (finish_command): Pass thread to set_step_info call.
14143
b7d64b29
HD
141442020-03-06 Hannes Domani <ssbssa@yahoo.de>
14145
14146 * windows-tdep.c (windows_solib_create_inferior_hook):
14147 Check if inferior is running.
14148
09f2921c
TV
141492020-03-06 Tom de Vries <tdevries@suse.de>
14150
14151 * NEWS: Fix "the the".
14152 * ctfread.c: Same.
14153
fd760e79
TV
141542020-03-06 Tom de Vries <tdevries@suse.de>
14155
14156 * psymtab.c (psymtab_to_symtab): Don't print "done.".
14157
20ea4a60
AB
141582020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14159
14160 * .dir-locals.el: Add a comment referencing the other copies of
14161 this file.
14162
0afbabf0
JB
141632020-03-05 John Baldwin <jhb@FreeBSD.org>
14164
14165 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
14166 psargs.
14167
842806cb
TBA
141682020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14169
14170 * .gitattributes: New file.
14171
be1e3d3e
TT
141722020-03-04 Tom Tromey <tom@tromey.com>
14173
14174 * symmisc.c (print_symbol_bcache_statistics)
14175 (print_objfile_statistics): Update.
14176 * symfile.c (allocate_symtab): Use intern.
14177 * psymtab.c (partial_symtab::partial_symtab): Use intern.
14178 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
14179 macro_cache>: Remove.
14180 <string_cache>: New member.
14181 (struct objfile) <intern>: New methods.
14182 * elfread.c (elf_symtab_read): Use intern.
14183 * dwarf2/read.c (fixup_go_packaging): Intern package name.
14184 (dwarf2_compute_name, dwarf2_physname)
14185 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
14186 names.
14187 (guess_partial_die_structure_name): Update.
14188 (partial_die_info::fixup): Intern name.
14189 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
14190 name.
14191 (dwarf2_name): Intern name. Update.
14192 * buildsym.c (buildsym_compunit::get_macro_table): Use
14193 string_cache.
14194
4e7625fd
TT
141952020-03-04 Tom Tromey <tom@tromey.com>
14196
14197 * jit.c (bfd_open_from_target_memory): Make "target" const.
14198 * corefile.c (gnutarget): Now const.
14199 * gdbcore.h (gnutarget): Now const.
14200
46f9f931
HD
142012020-03-04 Hannes Domani <ssbssa@yahoo.de>
14202
14203 * NEWS: Mention support for WOW64 processes.
14204 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
14205 (amd64_windows_segment_register_p): Remove static.
14206 (_initialize_amd64_windows_nat): Update.
14207 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
14208 * i386-windows-nat.c (context_offset): Update.
14209 (i386_mappings): Rename and remove static.
14210 (i386_windows_segment_register_p): Remove static.
14211 (_initialize_i386_windows_nat): Update.
14212 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
14213 (STATUS_WX86_SINGLE_STEP): New macro.
14214 (EnumProcessModulesEx): New macro.
14215 (Wow64SuspendThread): New macro.
14216 (Wow64GetThreadContext): New macro.
14217 (Wow64SetThreadContext): New macro.
14218 (Wow64GetThreadSelectorEntry): New macro.
14219 (windows_set_context_register_offsets): Add static.
14220 (windows_set_segment_register_p): Likewise.
14221 (windows_add_thread): Adapt for WOW64 processes.
14222 (windows_fetch_one_register): Likewise.
14223 (windows_nat_target::fetch_registers): Likewise.
14224 (windows_store_one_register): Likewise.
14225 (display_selector): Likewise.
14226 (display_selectors): Likewise.
14227 (handle_exception): Likewise.
14228 (windows_continue): Likewise.
14229 (windows_nat_target::resume): Likewise.
14230 (windows_add_all_dlls): Likewise.
14231 (do_initial_windows_stuff): Likewise.
14232 (windows_nat_target::attach): Likewise.
14233 (windows_get_exec_module_filename): Likewise.
14234 (windows_nat_target::create_inferior): Likewise.
14235 (windows_xfer_siginfo): Likewise.
14236 (_initialize_loadable): Initialize Wow64SuspendThread,
14237 Wow64GetThreadContext, Wow64SetThreadContext,
14238 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
14239 * windows-nat.h (windows_set_context_register_offsets):
14240 Remove declaration.
14241 (windows_set_segment_register_p): Likewise.
14242 (i386_windows_segment_register_p): Add declaration.
14243 (amd64_windows_segment_register_p): Likewise.
14244
440cf44e
LM
142452020-03-04 Luis Machado <luis.machado@linaro.org>
14246
14247 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
14248 in "info registers" for AArch64/ARM.
14249
14250 The change caused "info registers" to not print GPR's.
14251
14252 gdb/ChangeLog:
14253
14254 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
14255
14256 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
14257 when reg->group is empty and reggroup is not.
14258
1009d92f
TT
142592020-03-03 Tom Tromey <tromey@adacore.com>
14260
14261 * dwarf2/frame.c (struct dwarf2_frame_cache)
14262 <checked_tailcall_bottom, entry_cfa_sp_offset,
14263 entry_cfa_sp_offset_p>: Remove members.
14264 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
14265 (dwarf2_frame_prev_register): Don't call
14266 dwarf2_tailcall_sniffer_first.
14267 (dwarf2_append_unwinders): Don't append tailcall unwinder.
14268 * frame-unwind.c (add_unwinder): New fuction.
14269 (frame_unwind_init): Use it. Add tailcall unwinder.
14270
5e5d66b6
AB
142712020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
14272 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14273
14274 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
14275 value should be printed as true.
14276
584cf46d
HD
142772020-03-03 Hannes Domani <ssbssa@yahoo.de>
14278
14279 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
14280 (windows_init_abi): Set and use windows_so_ops.
14281
7b973adc
SDJ
142822020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
14283
14284 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
14285 when verifying if dealing with a convenience variable.
14286
bb7b70ab
LM
142872020-03-03 Luis Machado <luis.machado@linaro.org>
14288
14289 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
14290
9822cb57
SM
142912020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
14292
14293 * infrun.c (gdbarch_supports_displaced_stepping): New.
14294 (use_displaced_stepping): Break up conditions in smaller pieces.
14295 Use gdbarch_supports_displaced_stepping.
14296 (displaced_step_prepare_throw): Use
14297 gdbarch_supports_displaced_stepping.
14298
63e163f2
AB
142992020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
14300
14301 * NEWS: Mention new behaviour of the history filename.
14302 * top.c (write_history_p): Add comment.
14303 (show_write_history_p): Add header comment, give a different
14304 message when history writing is on, but the history filename is
14305 empty.
14306 (history_filename): Add comment.
14307 (history_filename_empty): New function.
14308 (show_history_filename): Add header comment, give a different
14309 message when the filename is empty.
14310 (init_history): Compare history_filename against nullptr, and only
14311 read history if the filename is not empty.
14312 (set_history_filename): Add header comment, and only make
14313 non-empty filenames absolute.
14314 (init_main): Make the filename argument to 'set history filename'
14315 optional.
14316
81b86b97
CB
143172020-03-02 Christian Biesinger <cbiesinger@google.com>
14318
14319 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
14320 (arm_supply_vfpregset): ...this, and update to use VFP registers.
14321 (fetch_fp_register): Update.
14322 (fetch_fp_regs): Update.
14323 (store_fp_register): Update.
14324 (store_fp_regs): Update.
14325 (arm_netbsd_nat_target::read_description): New function.
14326 (fetch_elfcore_registers): Update.
14327
24ed6739
AB
143282020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
14329
14330 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
14331 general_thread if the stop reply is missing a thread-id.
14332 (remote_target::process_stop_reply): Use the first non-exited
14333 thread if the target didn't pass a thread-id.
14334 * infrun.c (do_target_wait): Move call to
14335 switch_to_inferior_no_thread to ....
14336 (do_target_wait_1): ... here.
14337
a84bb2a0
JT
143382020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
14339
14340 * debuginfod-support.c: Include defs.h first.
14341
658dadf0
TV
143422020-02-28 Tom de Vries <tdevries@suse.de>
14343
14344 * symfile.c (set_initial_language): Use default language for lookup.
14345
4ebe4877
SM
143462020-02-28 Simon Marchi <simon.marchi@efficios.com>
14347
14348 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
14349 reader variable, pass `this` to read_cutu_die_from_dwo.
14350
e5da1139
AM
143512020-02-27 Aaron Merey <amerey@redhat.com>
14352
14353 * source.c (open_source_file): Check for nullptr when computing
14354 srcpath.
14355
317f7127
TT
143562020-02-27 Tom Tromey <tromey@adacore.com>
14357
14358 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
14359 member.
14360 (dwarf2_add_field): Don't update nfields.
14361 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
14362
3104d9ee
AB
143632020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14364
14365 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
14366 abs.
14367
b83470bf
TT
143682020-02-26 Tom Tromey <tom@tromey.com>
14369
14370 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
14371 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
14372 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
14373 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
14374 per_cu_data.
14375
edfe0a0c
TT
143762020-02-26 Tom Tromey <tom@tromey.com>
14377
14378 * dwarf2/index-write.c (psym_index_map): Change type.
14379 (add_address_entry_worker, write_one_signatured_type)
14380 (recursively_count_psymbols, recursively_write_psymbols)
14381 (class debug_names, psyms_seen_size, write_gdbindex)
14382 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
14383
0d79cdc4
AM
143842020-02-26 Aaron Merey <amerey@redhat.com>
14385
14386 * Makefile.in: Handle optional debuginfod support.
14387 * NEWS: Update.
14388 * README: Add --with-debuginfod summary.
14389 * config.in: Regenerate.
14390 * configure: Regenerate.
14391 * configure.ac: Handle optional debuginfod support.
14392 * debuginfod-support.c: debuginfod helper functions.
14393 * debuginfod-support.h: Ditto.
14394 * doc/gdb.texinfo: Add --with-debuginfod to configure options
14395 summary.
14396 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
14397 when a dwz file cannot be found.
14398 * elfread.c (elf_symfile_read): Query debuginfod servers when a
14399 debuginfo file cannot be found.
14400 * source.c (open_source_file): Query debuginfod servers when a
14401 source file cannot be found.
14402 * top.c (print_gdb_configuration): Include
14403 --{with,without}-debuginfod in the output.
14404
b65ce565
JG
144052020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
14406
14407 * thread.c (thr_try_catch_cmd): Print thread name.
14408
d4c9a4f8
SM
144092020-02-26 Simon Marchi <simon.marchi@efficios.com>
14410
14411 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
14412 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14413 dwarf2_fetch_die_type_sect_off): Move to...
14414 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
14415 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14416 dwarf2_fetch_die_type_sect_off): ... here.
14417 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
14418 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14419 dwarf2_fetch_die_type_sect_off): Move doc to header file.
14420
0dce4280
TV
144212020-02-26 Tom de Vries <tdevries@suse.de>
14422
14423 PR gdb/25603
14424 * symfile.c (set_initial_language): Exit-early if
14425 language_mode == language_mode_manual.
14426
450a1bfc
SM
144272020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
14428
14429 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
14430 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
14431 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
14432
9e80cfa1
AB
144332020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
14434
14435 * gdbtypes.c (create_array_type_with_stride): Handle negative
14436 array strides.
14437 * valarith.c (value_subscripted_rvalue): Likewise.
14438
09624f1f
LM
144392020-02-25 Luis Machado <luis.machado@linaro.org>
14440
14441 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
14442
8cb5117c
SM
144432020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
14444
14445 * loc.h (dwarf2_get_die_type): Move to...
14446 * read.h (dwarf2_get_die_type): ... here.
14447 * read.c (dwarf2_get_die_type): Move doc to header.
14448
c325c44e
JB
144492020-02-25 Joel Brobecker <brobecker@adacore.com>
14450
14451 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
14452 'gnulib/Makefile.in' to the list.
14453
4ac93832
TT
144542020-02-24 Tom Tromey <tom@tromey.com>
14455
14456 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
14457 Remove.
14458 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
14459 XOBNEWVEC.
14460
197400e8
TT
144612020-02-24 Tom Tromey <tom@tromey.com>
14462
14463 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
14464 New method.
14465 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
14466 (dw2_do_instantiate_symtab, dw2_get_file_names)
14467 (build_type_psymtab_dependencies, load_full_type_unit): Update.
14468
76935768
TT
144692020-02-24 Tom Tromey <tom@tromey.com>
14470
14471 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
14472 make_scoped_restore.
14473 (dwarf2_psymtab::read_symtab): Don't clear
14474 reading_partial_symbols.
14475
a88ef40d
TV
144762020-02-24 Tom de Vries <tdevries@suse.de>
14477
14478 PR gdb/25592
14479 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
14480
c9af6521
TV
144812020-02-24 Tom de Vries <tdevries@suse.de>
14482
14483 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
14484 commands layout next/prev/regs.
14485
5707a07a
TT
144862020-02-22 Tom Tromey <tom@tromey.com>
14487
14488 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
14489 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
14490
3b0fb49e
TT
144912020-02-22 Tom Tromey <tom@tromey.com>
14492
14493 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
14494
283be8bf
TT
144952020-02-22 Tom Tromey <tom@tromey.com>
14496
14497 * tui/tui-win.c (_initialize_tui_win): Add usage text.
14498 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
14499 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
14500 * tui/tui.c (_initialize_tui): Add usage text.
14501
ca793b96
TT
145022020-02-22 Tom Tromey <tom@tromey.com>
14503
14504 * tui/tui-win.c (tui_set_focus_command)
14505 (tui_set_win_height_command): Use error_no_arg.
14506 (_initialize_tui_win): Update help text.
14507 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
14508
432b5c40
TT
145092020-02-22 Tom Tromey <tom@tromey.com>
14510
14511 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
14512 * tui/tui-disasm.h (struct tui_disasm_window)
14513 <display_start_addr>: Declare.
14514 * tui/tui-source.h (struct tui_source_window)
14515 <display_start_addr>: Declare.
14516 * tui/tui-winsource.h (struct tui_source_window_base)
14517 <show_source_line, display_start_addr>: New methods.
14518 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
14519 Rename and move to protected section.
14520 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
14521 (tui_source_window_base::do_erase_source_content): Update.
14522 (tui_source_window_base::show_source_line): Now a method.
14523 (tui_source_window_base::show_source_content)
14524 (tui_source_window_base::tui_source_window_base)
14525 (tui_source_window_base::rerender)
14526 (tui_source_window_base::refill)
14527 (tui_source_window_base::do_scroll_horizontal)
14528 (tui_source_window_base::set_is_exec_point_at)
14529 (tui_source_window_base::update_breakpoint_info)
14530 (tui_source_window_base::update_exec_info): Update.
14531 * tui/tui-source.c (tui_source_window::set_contents)
14532 (tui_source_window::showing_source_p)
14533 (tui_source_window::do_scroll_vertical)
14534 (tui_source_window::location_matches_p)
14535 (tui_source_window::line_is_displayed): Update.
14536 (tui_source_window::display_start_addr): New method.
14537 * tui/tui-disasm.c (tui_disasm_window::set_contents)
14538 (tui_disasm_window::do_scroll_vertical)
14539 (tui_disasm_window::location_matches_p): Update.
14540 (tui_disasm_window::display_start_addr): New method.
14541
01b1af32
TT
145422020-02-22 Tom Tromey <tom@tromey.com>
14543
14544 * NEWS: Add entry for gdb.register_window_type.
14545 * tui/tui-layout.h (window_factory): New typedef.
14546 (tui_register_window): Declare.
14547 * tui/tui-layout.c (saved_tui_windows): New global.
14548 (tui_apply_current_layout): Use it.
14549 (tui_register_window): New function.
14550 * python/python.c (do_start_initialization): Call
14551 gdbpy_initialize_tui.
14552 (python_GdbMethods): Add "register_window_type" function.
14553 * python/python-internal.h (gdbpy_register_tui_window)
14554 (gdbpy_initialize_tui): Declare.
14555 * python/py-tui.c: New file.
14556 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
14557
fc96d20b
TT
145582020-02-22 Tom Tromey <tom@tromey.com>
14559
14560 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
14561
935c78c0
TT
145622020-02-22 Tom Tromey <tom@tromey.com>
14563
14564 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
14565 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
14566 * tui/tui-data.c (tui_set_win_with_focus): Remove.
14567 (tui_set_win_focus_to): Move from tui-win.c.
14568
0240c8f1
TT
145692020-02-22 Tom Tromey <tom@tromey.com>
14570
14571 * tui/tui-layout.c (make_standard_window, get_locator_window): New
14572 functions.
14573 (known_window_types): New global.
14574 (tui_get_window_by_name): Reimplement.
14575 (initialize_known_windows): New function.
14576 (validate_window_name): Rewrite.
14577 (_initialize_tui_layout): Call initialize_known_windows.
14578
fdb01f0c
TT
145792020-02-22 Tom Tromey <tom@tromey.com>
14580
14581 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
14582 Remove constants.
14583 * tui/tui-winsource.h (struct tui_source_window_base)
14584 <tui_source_window_base>: Remove parameter.
14585 * tui/tui-winsource.c
14586 (tui_source_window_base::tui_source_window_base): Remove
14587 parameter.
14588 (tui_source_window_base::refill): Update.
14589 * tui/tui-stack.h (struct tui_locator_window)
14590 <tui_locator_window>: Update.
14591 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
14592 Default the constructor.
14593 * tui/tui-regs.h (struct tui_data_item_window)
14594 <tui_data_item_window>: Default the constructor.
14595 (struct tui_data_window) <tui_data_window>: Likewise.
14596 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
14597 Default the constructor.
14598 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
14599 Default the constructor.
14600 <type>: Remove.
14601 (struct tui_win_info) <tui_win_info>: Default the constructor.
14602 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
14603 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
14604 Default the constructor.
14605
865a5aec
TT
146062020-02-22 Tom Tromey <tom@tromey.com>
14607
14608 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
14609 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
14610 * tui/tui-win.c (tui_resize_all): Don't call
14611 tui_delete_invisible_windows.
14612 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
14613 done.
14614 (tui_set_layout): Update.
14615 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
14616 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
14617 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
14618
e098d18c
TT
146192020-02-22 Tom Tromey <tom@tromey.com>
14620
14621 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
14622 correctly.
14623
eb9c8874
TT
146242020-02-22 Tom Tromey <tom@tromey.com>
14625
14626 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
14627
7eed1a8e
TT
146282020-02-22 Tom Tromey <tom@tromey.com>
14629
14630 * tui/tui-winsource.h (struct tui_source_window_iterator)
14631 <inner_iterator>: New etytypedef.
14632 <tui_source_window_iterator>: Take "end" parameter.
14633 <tui_source_window_iterator>: Take iterator.
14634 <operator*, advance>: Update.
14635 <m_iter>: Change type.
14636 <m_end>: New field.
14637 (struct tui_source_windows) <begin, end>: Update.
14638 * tui/tui-layout.c (tui_windows): New global.
14639 (tui_apply_current_layout): Clear tui_windows.
14640 (tui_layout_window::apply): Update tui_windows.
14641 * tui/tui-data.h (tui_windows): Declare.
14642 (all_tui_windows): Now inline function.
14643 (class tui_window_iterator, struct all_tui_windows): Remove.
14644
7c043ba6
TT
146452020-02-22 Tom Tromey <tom@tromey.com>
14646
14647 PR tui/17850:
14648 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
14649 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
14650 "height" argument.
14651 (class tui_layout_window) <get_sizes>: Likewise.
14652 (class tui_layout_split) <tui_layout_split>: Add "vertical"
14653 argument.
14654 <get_sizes>: Add "height" argument.
14655 <m_vertical>: New field.
14656 * tui/tui-layout.c (tui_layout_split::clone): Update.
14657 (tui_layout_split::get_sizes): Add "height" argument.
14658 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
14659 (tui_new_layout_command): Parse "-horizontal".
14660 (_initialize_tui_layout): Update help string.
14661 (tui_layout_split::specification): Add "-horizontal" when needed.
14662 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
14663 argument.
14664 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
14665 New methods.
14666
6bc56648
TT
146672020-02-22 Tom Tromey <tom@tromey.com>
14668
14669 * tui/tui-layout.h (enum tui_adjust_result): New.
14670 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
14671 (class tui_layout_window) <adjust_size>: Return
14672 tui_adjust_result. Rewrite.
14673 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
14674 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
14675
c22fef7e
TT
146762020-02-22 Tom Tromey <tom@tromey.com>
14677
14678 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
14679 parameter and return types.
14680 (class tui_layout_base) <specification>: Add "depth".
14681 (class tui_layout_window) <specification>: Add "depth".
14682 (class tui_layout_split) <specification>: Add "depth".
14683 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
14684 and return types.
14685 (tui_new_layout_command): Parse sub-layouts.
14686 (_initialize_tui_layout): Update help string.
14687 (tui_layout_window::specification): Add "depth".
14688 (add_layout_command): Update.
14689
ee325b61
TT
146902020-02-22 Tom Tromey <tom@tromey.com>
14691
14692 * NEWS: Add "tui new-layout" item.
14693 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
14694 Add new-layout command to help text.
14695 (validate_window_name): New function.
14696 (tui_new_layout_command): New function.
14697 (_initialize_tui_layout): Register "new-layout".
14698 (tui_layout_window::specification): New method.
14699 (tui_layout_window::specification): New method.
14700 * tui/tui-layout.h (class tui_layout_base) <specification>: New
14701 method.
14702 (class tui_layout_window) <specification>: New method.
14703 (class tui_layout_split) <specification>: New method.
14704
416eb92d
TT
147052020-02-22 Tom Tromey <tom@tromey.com>
14706
14707 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
14708 * tui/tui-win.c (window_name_completer): Update comment.
14709 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
14710 Declare method.
14711 (class tui_layout_window) <replace_window>: Likewise.
14712 (class tui_layout_split) <replace_window>: Likewise.
14713 (tui_set_layout): Don't declare.
14714 (tui_set_initial_layout): Declare function.
14715 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
14716 (asm_regs_layout): New globals.
14717 (tui_current_layout, show_layout): Remove.
14718 (tui_set_layout, tui_add_win_to_layout): Rewrite.
14719 (find_layout, tui_apply_layout): New function.
14720 (layout_completer): Remove.
14721 (tui_next_layout): Reimplement.
14722 (tui_next_layout_command): New function.
14723 (tui_set_initial_layout, tui_prev_layout_command): New functions.
14724 (tui_regs_layout): Reimplement.
14725 (tui_regs_layout_command): New function.
14726 (extract_display_start_addr): Rewrite.
14727 (next_layout, prev_layout): Remove.
14728 (tui_layout_window::replace_window): New method.
14729 (tui_layout_split::replace_window): New method.
14730 (destroy_layout): New function.
14731 (layout_list): New global.
14732 (add_layout_command): New function.
14733 (initialize_layouts): Update.
14734 (tui_layout_command): New function.
14735 (_initialize_tui_layout): Install "layout" commands.
14736 * tui/tui-data.h (enum tui_layout_type): Remove.
14737 (tui_current_layout): Don't declare.
14738
0dbc2fc7
TT
147392020-02-22 Tom Tromey <tom@tromey.com>
14740
14741 * tui/tui-regs.c (tui_reg_layout): Remove.
14742 (tui_reg_command): Use tui_regs_layout.
14743 * tui/tui-layout.h (tui_reg_command): Declare.
14744 * tui/tui-layout.c (tui_reg_command): New function.
14745
5afe342e
TT
147462020-02-22 Tom Tromey <tom@tromey.com>
14747
14748 * tui/tui.c (tui_rl_delete_other_windows): Call
14749 tui_remove_some_windows.
14750 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
14751 Declare method.
14752 (class tui_layout_window) <remove_windows>: New method.
14753 (class tui_layout_split) <remove_windows>: Declare.
14754 (tui_remove_some_windows): Declare.
14755 * tui/tui-layout.c (tui_remove_some_windows): New function.
14756 (tui_layout_split::remove_windows): New method.
14757
427326a8
TT
147582020-02-22 Tom Tromey <tom@tromey.com>
14759
14760 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
14761 * tui/tui-layout.h (tui_next_layout): Declare.
14762 * tui/tui-layout.c (tui_next_layout): New function.
14763
3fe12b6d
TT
147642020-02-22 Tom Tromey <tom@tromey.com>
14765
14766 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
14767 correct coordinates.
14768
59b8b5d2
TT
147692020-02-22 Tom Tromey <tom@tromey.com>
14770
14771 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
14772 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
14773 DATA_WIN case.
14774
2a3d458b
TT
147752020-02-22 Tom Tromey <tom@tromey.com>
14776
14777 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
14778 TUI_DISASM_WIN, not tui_win_list.
14779
3f0cbb04
TT
147802020-02-22 Tom Tromey <tom@tromey.com>
14781
14782 * valprint.c (generic_val_print_enum_1)
14783 (val_print_type_code_flags): Style member names.
14784 * rust-lang.c (val_print_struct, rust_print_enum)
14785 (rust_print_struct_def, rust_internal_print_type): Style member
14786 names.
14787 * p-valprint.c (pascal_object_print_value_fields): Style member
14788 names. Only call fprintf_symbol_filtered for static members.
14789 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
14790 * f-valprint.c (f_val_print): Style member names.
14791 * f-typeprint.c (f_type_print_base): Style member names.
14792 * cp-valprint.c (cp_print_value_fields): Style member names. Only
14793 call fprintf_symbol_filtered for static members.
14794 (cp_print_class_member): Style member names.
14795 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
14796 member names.
14797 * ada-valprint.c (ada_print_scalar): Style enum names.
14798 (ada_val_print_enum): Likewise.
14799 * ada-typeprint.c (print_enum_type): Style enum names.
14800
d4d947ae
TT
148012020-02-21 Tom Tromey <tom@tromey.com>
14802
14803 * psympriv.h (struct partial_symtab): Update comment.
14804
e94e944b
TT
148052020-02-21 Tom Tromey <tromey@adacore.com>
14806
14807 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
14808 type is CORE_ADDR.
14809
1eb73179
TV
148102020-02-21 Tom de Vries <tdevries@suse.de>
14811
14812 PR gdb/25534
14813 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
14814 if dependencies[i]->user != NULL.
14815
4f180d53
AT
148162020-02-21 Ali Tamur <tamur@google.com>
14817
14818 * dwarf2/read.c (dwarf2_name): Add null check.
14819
22b6cd70
TT
148202020-02-20 Tom Tromey <tom@tromey.com>
14821
14822 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
14823 ">=", in binary search.
14824 (dwarf2_find_containing_comp_unit): New overload.
14825 (run_test): New self-test.
14826 (_initialize_dwarf2_read): Register new test.
14827
bd0cf5a6
NC
148282020-02-20 Nelson Chu <nelson.chu@sifive.com>
14829
14830 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
14831 * riscv-tdep.h: Likewise.
14832 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
14833 rv32-only CSR.
14834 * features/riscv/64bit-csr.xml: Regenerated.
14835
3f702acd
SDJ
148362020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
14837 Tom Tromey <tom@tromey.com>
14838
14839 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
14840 of 'fputc_unfiltered'.
14841 (putchar_unfiltered): Call 'fputc_unfiltered'.
14842 (fputc_unfiltered): Call 'fputs_unfiltered'.
14843
d13c7322
AB
148442020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
14845
14846 * config.in: Regenerate.
14847 * configure: Regenerate.
14848 * configure.ac: Add --with-python-libdir option.
14849 * main.c: Use WITH_PYTHON_LIBDIR.
14850
869d8950
TT
148512020-02-19 Tom Tromey <tom@tromey.com>
14852
14853 * symtab.c (general_symbol_info::compute_and_set_names): Use
14854 obstack_strndup. Simplify call to symbol_set_demangled_name.
14855
298e9637
SM
148562020-02-19 Simon Marchi <simon.marchi@efficios.com>
14857
14858 * dwarf2/read.c (allocate_signatured_type_table,
14859 allocate_dwo_unit_table, allocate_type_unit_groups_table,
14860 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
14861 Remove objfile parameter, update all callers.
14862
08410482
DE
148632020-02-19 Doug Evans <dje@google.com>
14864
14865 PR rust/25535
14866 * rust-lang.c (rust_print_enum): Apply embedded_offset to
14867 rust_enum_variant calculation.
14868
dfdeeca1
TT
148692020-02-19 Tom Tromey <tromey@adacore.com>
14870
14871 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
14872
2ef5453b
TT
148732020-02-19 Tom Tromey <tromey@adacore.com>
14874
14875 * ada-lang.c (cache_symbol): Use obstack_strdup.
14876
9f1528a1
AB
148772020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
14878
14879 * configure: Regenerate.
14880
d3c22fa8
TT
148812020-02-19 Tom Tromey <tromey@adacore.com>
14882
14883 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
14884 NULL check.
14885
bf84f706
MR
148862020-02-19 Maciej W. Rozycki <macro@wdc.com>
14887
14888 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
14889
d1c9b20f
AB
148902020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
14891
14892 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
14893 if GDBSERVER is not defined.
14894 (riscv_tdesc_cache): Likewise, also store const target_desc.
14895 (STATIC_IN_GDB): Define.
14896 (riscv_create_target_description): Update declaration with
14897 STATIC_IN_GDB.
14898 (riscv_lookup_target_description): New function, only define if
14899 GDBSERVER is not defined.
14900 * arch/riscv.h (riscv_create_target_description): Declare only
14901 when GDBSERVER is defined.
14902 (riscv_lookup_target_description): New declaration when GDBSERVER
14903 is not defined.
14904 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
14905 (riscv_linux_read_features): ...this, and return
14906 riscv_gdbarch_features instead of target_desc.
14907 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
14908 (riscv_linux_read_description): Rename to...
14909 (riscv_linux_read_features): ...this.
14910 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
14911 Update to use riscv_gdbarch_features and
14912 riscv_lookup_target_description.
14913 * riscv-tdep.c (riscv_find_default_target_description): Use
14914 riscv_lookup_target_description instead of
14915 riscv_create_target_description.
14916
373d7ac0
SM
149172020-02-18 Simon Marchi <simon.marchi@efficios.com>
14918
14919 * valprint.c (generic_val_print_enum_1): When printing a flag
14920 enum with value 0 and there is no enumerator with value 0, print
14921 just "0" instead of "(unknown: 0x0)".
14922
b29a2df0
SM
149232020-02-18 Simon Marchi <simon.marchi@efficios.com>
14924
14925 * valprint.c (generic_val_print_enum_1): Print unknown part of
14926 flag enum in hex.
14927
6740f0cc
SM
149282020-02-18 Simon Marchi <simon.marchi@efficios.com>
14929
14930 * dwarf2/read.c (update_enumeration_type_from_children): Allow
14931 flag enums to contain duplicate enumerators.
14932 * valprint.c (generic_val_print_enum_1): Update comment.
14933
edd45eb0
SM
149342020-02-18 Simon Marchi <simon.marchi@efficios.com>
14935
14936 * dwarf2/read.c: Include "count-one-bits.h".
14937 (update_enumeration_type_from_children): If an enumerator has
14938 multiple bits set, don't treat the enumeration as a "flag enum".
14939 * valprint.c (generic_val_print_enum_1): Assert that enumerators
14940 of flag enums have 0 or 1 bit set.
14941
6d0cf446
BE
149422020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
14943
14944 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
14945 conversion.
14946 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14947 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
14948 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14949 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
14950 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14951
7001c1b7
SM
149522020-02-18 Simon Marchi <simon.marchi@efficios.com>
14953
14954 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
14955
fdb61c6c
SM
149562020-02-14 Simon Marchi <simon.marchi@efficios.com>
14957
14958 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
14959 displaced_step_closure_up.
14960 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
14961 (struct displaced_step_closure_up):
14962 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14963 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
14964 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
14965 Likewise.
14966 * gdbarch.sh (displaced_step_copy_insn): Likewise.
14967 * gdbarch.c, gdbarch.h: Re-generate.
14968 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
14969 displaced_step_closure_up.
14970 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14971 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
14972 * infrun.h (displaced_step_closure_up): New type alias.
14973 (struct displaced_step_inferior_state) <step_closure>: Change
14974 type to displaced_step_closure_up.
14975 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
14976 displaced_step_closure_up.
14977 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14978
a4a38eb4
TT
149792020-02-14 Tom Tromey <tom@tromey.com>
14980
14981 * minidebug.c (gnu_debug_key): New global.
14982 (find_separate_debug_file_in_section): Use it.
14983
e8217e61
SM
149842020-02-14 Simon Marchi <simon.marchi@efficios.com>
14985
14986 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
14987 std::unique_ptr.
14988 * gdbarch.c: Re-generate.
14989 * gdbarch.h: Re-generate.
14990 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
14991 change.
14992 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
14993 type to std::unique_ptr.
14994 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
14995 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14996 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
14997 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
14998 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
14999 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15000 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
15001 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
15002 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15003
d8d83535
SM
150042020-02-14 Simon Marchi <simon.marchi@efficios.com>
15005
15006 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
15007 std::unique_ptr.
15008 (displaced_step_clear): Rename to...
15009 (displaced_step_reset): ... this. Just call displaced->reset ().
15010 (displaced_step_clear_cleanup): Rename to...
15011 (displaced_step_reset_cleanup): ... this.
15012 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
15013 (displaced_step_fixup): Likewise.
15014 (resume_1): Likewise.
15015 (handle_inferior_event): Restore child's memory before calling
15016 displaced_step_fixup on the parent.
15017 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
15018 to std::unique_ptr.
15019 <step_closure>: Change type to std::unique_ptr.
15020
5f661e03
SM
150212020-02-14 Simon Marchi <simon.marchi@efficios.com>
15022
15023 * arm-tdep.c: Include count-one-bits.h.
15024 (cleanup_block_store_pc): Use count_one_bits.
15025 (cleanup_block_load_pc): Use count_one_bits.
15026 (arm_copy_block_xfer): Use count_one_bits.
15027 (thumb2_copy_block_xfer): Use count_one_bits.
15028 (thumb_copy_pop_pc_16bit): Use count_one_bits.
15029 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
15030 (thumb_get_next_pcs_raw): Use count_one_bits.
15031 (arm_get_next_pcs_raw): Use count_one_bits_l.
15032 * arch/arm.c (bitcount): Remove.
15033 * arch/arm.h (bitcount): Remove.
15034
8084e579
TT
150352020-02-14 Tom Tromey <tromey@adacore.com>
15036
15037 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
15038 Update.
15039 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
15040 * dwarf2/loc.c (call_site_find_chain_1): Return
15041 unique_xmalloc_ptr.
15042 (call_site_find_chain): Likewise.
15043
258bf0ee
RB
150442020-02-14 Richard Biener <rguenther@suse.de>
15045
15046 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
15047 on expression with division operators.
15048
f98a8458
AKS
150492020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
15050
15051 * MAINTAINERS (Write After Approval): Adding myself.
15052
d1437c0e
TT
150532020-02-12 Tom Tromey <tom@tromey.com>
15054
15055 * event-loop.c (event_data, gdb_event, event_handler_func):
15056 Remove.
15057
3d4560f7
TT
150582020-02-12 Tom Tromey <tom@tromey.com>
15059
15060 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
15061 (dwarf2_frame_objfile_data): Add comment.
15062 (find_comp_unit, set_comp_unit): New functions.
15063 (dwarf2_frame_find_fde): Use find_comp_unit.
15064 (dwarf2_build_frame_info): Use set_comp_unit.
15065
21982304
TT
150662020-02-12 Tom Tromey <tom@tromey.com>
15067
15068 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
15069 (comp_unit): Don't initialize objfile.
15070 (execute_cfa_program): Add text_offset parameter.
15071 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
15072 (dwarf2_frame_cache): Update.
15073 (dwarf2_build_frame_info): Don't set "objfile" member.
15074
4debb237
TT
150752020-02-12 Tom Tromey <tom@tromey.com>
15076
15077 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
15078 (decode_frame_entry): Likewise.
15079 (dwarf2_build_frame_info): Update.
15080
0d404d44
TT
150812020-02-12 Tom Tromey <tom@tromey.com>
15082
15083 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
15084 (decode_frame_entry_1): Use the comp_unit obstack.
15085
a7a3ae5c
TT
150862020-02-12 Tom Tromey <tom@tromey.com>
15087
15088 * dwarf2/frame.c (struct comp_unit): Add initializers and
15089 constructor.
15090 (dwarf2_frame_objfile_data): Store a comp_unit.
15091 (dwarf2_frame_find_fde): Update.
15092 (dwarf2_build_frame_info): Use "new".
15093
a9d65418
TT
150942020-02-12 Tom Tromey <tom@tromey.com>
15095
15096 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
15097 (dwarf2_fde_table): Typedef for std::vector.
15098 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
15099 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
15100 (decode_frame_entry): Update.
15101 (dwarf2_build_frame_info): Use "new".
15102
7559c217
CB
151032020-02-12 Christian Biesinger <cbiesinger@google.com>
15104
15105 * arm-tdep.c (arm_gdbarch_init): Update.
15106 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
15107 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
15108 have_neon, is_m>: Change to bool.
15109
aeefc73c
CB
151102020-02-12 Christian Biesinger <cbiesinger@google.com>
15111
15112 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
15113
d27b8e5f
TT
151142020-02-12 Tom Tromey <tom@tromey.com>
15115
15116 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
15117
cd5900f3
HD
151182020-02-12 Hannes Domani <ssbssa@yahoo.de>
15119
15120 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
15121 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
15122
f056b22b
TT
151232020-02-11 Tom Tromey <tom@tromey.com>
15124
15125 * psymtab.h: Update comment.
15126
f92ff6b5
TT
151272020-02-11 Tom Tromey <tom@tromey.com>
15128
15129 * gdb_obstack.h (struct auto_obstack): Use
15130 DISABLE_COPY_AND_ASSIGN.
15131
3fd6912b
TT
151322020-02-11 Tom Tromey <tom@tromey.com>
15133
15134 * dwarf2/frame.h (struct objfile): Don't forward declare.
15135
69ed9b74
CB
151362020-02-11 Christian Biesinger <cbiesinger@google.com>
15137
15138 * cris-tdep.c (cris_supply_gregset): Change signature to match
15139 what struct regset expects.
15140 (cris_regset): New struct.
15141 (fetch_core_registers): Remove.
15142 (cris_iterate_over_regset_sections): New function.
15143 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
15144 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
15145
bda874f6
CB
151462020-02-11 Christian Biesinger <cbiesinger@google.com>
15147
15148 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
15149 registers.
15150
754e1564
CB
151512020-02-11 Christian Biesinger <cbiesinger@google.com>
15152
15153 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
15154
8ddd8e0e
SM
151552020-02-11 Simon Marchi <simon.marchi@efficios.com>
15156
15157 * configure: Re-generate.
15158
898e7f60
SM
151592020-02-11 Simon Marchi <simon.marchi@efficios.com>
15160
15161 * configure: Re-generate.
15162
58df732b
SM
151632020-02-11 Simon Marchi <simon.marchi@efficios.com>
15164
15165 * acinclude: Update warning.m4 path.
15166 * warning.m4: Move to gdbsupport.
15167
da5bd37e
TT
151682020-02-11 Tom Tromey <tromey@adacore.com>
15169
15170 * remote.c (remote_console_output): Update.
15171 * printcmd.c (printf_command): Update.
15172 * event-loop.c (gdb_wait_for_event): Update.
15173 * linux-nat.c (sigchld_handler): Update.
15174 * remote-sim.c (gdb_os_write_stdout): Update.
15175 (gdb_os_flush_stdout): Update.
15176 (gdb_os_flush_stderr): Update.
15177 (gdb_os_write_stderr): Update.
15178 * exceptions.c (print_exception): Update.
15179 * remote-fileio.c (remote_fileio_func_read): Update.
15180 (remote_fileio_func_write): Update.
15181 * tui/tui.c (tui_enable): Update.
15182 * tui/tui-interp.c (tui_interp::init): Update.
15183 * utils.c (init_page_info): Update.
15184 (putchar_unfiltered, fputc_unfiltered): Update.
15185 (gdb_flush): Update.
15186 (emit_style_escape): Update.
15187 (flush_wrap_buffer, fputs_maybe_filtered): Update.
15188 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
15189 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
15190 (stderr_file::write): Update.
15191 (stderr_file::puts): Update.
15192 * ui-file.h (ui_file_isatty, ui_file_write)
15193 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
15194 (ui_file_puts): Don't declare.
15195
85f0dd3c
TV
151962020-02-10 Tom de Vries <tdevries@suse.de>
15197
15198 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
15199 sentinel to char *.
15200
2e927613
TV
152012020-02-09 Tom de Vries <tdevries@suse.de>
15202
15203 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
15204 filename if it matches "<artificial>".
15205
6bafc845
HD
152062020-02-09 Hannes Domani <ssbssa@yahoo.de>
15207
15208 * windows-tdep.c (struct enum_value_name): New struct.
15209 (create_enum): New function.
15210 (windows_get_siginfo_type): Create and use enum types.
15211
7928d571
HD
152122020-02-09 Hannes Domani <ssbssa@yahoo.de>
15213
15214 * NEWS: Mention $_siginfo support for Windows.
15215 * windows-nat.c (handle_exception): Set siginfo_er.
15216 (windows_nat_target::mourn_inferior): Reset siginfo_er.
15217 (windows_xfer_siginfo): New function.
15218 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
15219 * windows-tdep.c (struct windows_gdbarch_data): New struct.
15220 (init_windows_gdbarch_data): New function.
15221 (get_windows_gdbarch_data): New function.
15222 (windows_get_siginfo_type): New function.
15223 (windows_init_abi): Register windows_get_siginfo_type.
15224 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
15225
6751ebae
TT
152262020-02-08 Tom Tromey <tom@tromey.com>
15227
15228 * dwarf2/read.c (class cutu_reader) <cutu_reader,
15229 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
15230 <keep>: Declare method.
15231 <m_keep>: Remove member.
15232 <~cutu_reader>: Remove.
15233 (cutu_reader::init_tu_and_read_dwo_dies): Update.
15234 (cutu_reader::cutu_reader): Update.
15235 (cutu_reader::keep): Rename from ~cutu_reader.
15236 (process_psymtab_comp_unit, build_type_psymtabs_1)
15237 (process_skeletonless_type_unit, load_partial_comp_unit)
15238 (load_full_comp_unit, dwarf2_read_addr_index)
15239 (read_signatured_type): Update.
15240
135f5437
TT
152412020-02-08 Tom Tromey <tom@tromey.com>
15242
15243 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
15244 "want_partial_unit" parameter.
15245 (process_psymtab_comp_unit): Change want_partial_unit to bool.
15246 Inline check for DW_TAG_partial_unit.
15247 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
15248
9f66ff1c
TT
152492020-02-08 Tom Tromey <tom@tromey.com>
15250
15251 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
15252 read.c.
15253 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
15254 read.c.
15255
c8a7a66f
TT
152562020-02-08 Tom Tromey <tom@tromey.com>
15257
15258 * dwarf2/read.c (read_address): Move to comp-unit.c.
15259 (dwarf2_rnglists_process, dwarf2_ranges_process)
15260 (read_attribute_value, dwarf_decode_lines_1)
15261 (var_decode_location, decode_locdesc): Update.
15262 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
15263 read.c. Remove "cu" parameter.
15264 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
15265 method.
15266
8266302d
TT
152672020-02-08 Tom Tromey <tom@tromey.com>
15268
15269 * dwarf2/read.c (read_attribute_value, read_indirect_string)
15270 (read_indirect_line_string): Update.
15271 * dwarf2/comp-unit.c (read_offset): Remove.
15272 (read_comp_unit_head): Update.
15273 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
15274 method.
15275 (read_offset): Don't declare.
15276
4057dfde
TT
152772020-02-08 Tom Tromey <tom@tromey.com>
15278
15279 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
15280 * dwarf2/read.c (struct comp_unit_head): Move to
15281 dwarf2/comp-unit.h.
15282 (enum class rcuh_kind): Move to comp-unit.h.
15283 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
15284 (read_comp_unit_head, error_check_comp_unit_head)
15285 (read_and_check_comp_unit_head): Move to comp-unit.c.
15286 (read_offset, dwarf_unit_type_name): Likewise.
15287 (create_debug_type_hash_table, read_cutu_die_from_dwo)
15288 (cutu_reader::cutu_reader, read_call_site_scope)
15289 (find_partial_die, follow_die_offset): Update.
15290 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
15291
24aa364d
TT
152922020-02-08 Tom Tromey <tom@tromey.com>
15293
15294 * dwarf2/read.c (read_offset_1): Move to leb.c.
15295 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
15296 (dwarf_decode_macro_bytes): Update.
15297 * dwarf2/leb.c (read_offset): Rename; move from read.c.
15298 * dwarf2/leb.h (read_offset): Declare.
15299
2c7d5afc
TT
153002020-02-08 Tom Tromey <tom@tromey.com>
15301
15302 * dwarf2/read.c (dwarf2_section_size): Remove.
15303 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
15304 Update.
15305 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
15306
4075cb26
TT
153072020-02-08 Tom Tromey <tom@tromey.com>
15308
15309 * dwarf2/read.c (read_initial_length): Move to leb.c.
15310 * dwarf2/leb.h (read_initial_length): Declare.
15311 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
15312 handle_nonstd parameter.
15313 * dwarf2/frame.c (read_initial_length): Remove.
15314 (decode_frame_entry_1): Update.
15315
09ba997f
TT
153162020-02-08 Tom Tromey <tom@tromey.com>
15317
15318 * dwarf2/loc.c (dwarf2_find_location_expression)
15319 (dwarf_evaluate_loc_desc::get_tls_address)
15320 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
15321 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
15322 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
15323 (dwarf2_compile_property_to_c)
15324 (dwarf2_loc_desc_get_symbol_read_needs)
15325 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
15326 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
15327 (loclist_describe_location, loclist_tracepoint_var_ref)
15328 (loclist_generate_c_location): Update.
15329 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
15330 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
15331 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
15332 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
15333 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
15334 (dwarf2_per_cu_data::addr_size)
15335 (dwarf2_per_cu_data::ref_addr_size)
15336 (dwarf2_per_cu_data::text_offset)
15337 (dwarf2_per_cu_data::addr_type): Now methods.
15338 (per_cu_header_read_in): Make per_cu "const".
15339 (dwarf2_version): Remove.
15340 (dwarf2_per_cu_data::int_type): Now a method.
15341 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
15342 (set_die_type, read_array_type, read_subrange_index_type)
15343 (read_tag_string_type, read_subrange_type): Update.
15344 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
15345 offset_size, ref_addr_size, text_offset, addr_type, version,
15346 objfile, int_type, addr_sized_int_type>: Declare methods.
15347
96c738c0
TT
153482020-02-08 Tom Tromey <tom@tromey.com>
15349
15350 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
15351 Move earlier.
15352
8fdd972c
TT
153532020-02-08 Tom Tromey <tom@tromey.com>
15354
15355 * dwarf2/read.h (dwarf_line_debug): Declare.
15356 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
15357 * dwarf2/read.c: Move line_header code to new files.
15358 (dwarf_line_debug): No longer static.
15359 * dwarf2/line-header.c: New file.
15360 * dwarf2/line-header.h: New file.
15361
03075812
TT
153622020-02-08 Tom Tromey <tom@tromey.com>
15363
15364 * dwarf2/read.c (struct line_header) <file_full_name,
15365 file_file_name>: Return unique_xmalloc_ptr.
15366 (line_header::file_file_name): Update.
15367 (line_header::file_full_name): Update.
15368 (dw2_get_file_names_reader): Update.
15369 (macro_start_file): Update.
15370
bb822404
TT
153712020-02-08 Tom Tromey <tom@tromey.com>
15372
15373 * dwarf2/read.c (struct line_header) <file_full_name,
15374 file_file_name>: Declare methods.
15375 (dw2_get_file_names_reader): Update.
15376 (file_file_name): Now a method.
15377 (file_full_name): Likewise.
15378 (macro_start_file): Update.
15379
009b64fc
TT
153802020-02-08 Tom Tromey <tom@tromey.com>
15381
15382 * dwarf2/read.c (dwarf_always_disassemble)
15383 (show_dwarf_always_disassemble): Move to loc.c.
15384 (_initialize_dwarf2_read): Move "always-disassemble" registration
15385 to loc.c.
15386 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
15387 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
15388 static.
15389 (show_dwarf_always_disassemble): Move from read.c.
15390 (_initialize_dwarf2loc): Move always-disassemble from read.c.
15391
5895093f
TT
153922020-02-08 Tom Tromey <tom@tromey.com>
15393
15394 * dwarf2/read.c (~dwarf2_per_objfile): Update.
15395 (create_quick_file_names_table): Return htab_up.
15396 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
15397 Update.
15398 * dwarf2/read.h (struct dwarf2_per_objfile)
15399 <quick_file_names_table>: Now htab_up.
15400
b3b32279
TT
154012020-02-08 Tom Tromey <tom@tromey.com>
15402
15403 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
15404
1d33d811
TT
154052020-02-08 Tom Tromey <tom@tromey.com>
15406
15407 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
15408 Rewrite.
15409 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
15410 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
15411 (abbrev_table::abbrev_table): No longer inline.
15412 (ABBREV_HASH_SIZE): Remove.
15413 (abbrev_table::m_abbrevs): Now an htab_up.
15414
86de1d91
TT
154152020-02-08 Tom Tromey <tom@tromey.com>
15416
15417 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
15418 (cutu_reader): Update.
15419 (build_type_psymtabs_1): Update.
15420 * dwarf2/abbrev.c (abbrev_table::read): Rename.
15421 (abbrev_table::alloc_abbrev): Update.
15422 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
15423 (abbrev_table::read): New static method, renamed from
15424 abbrev_table_read_table.
15425 (abbrev_table::alloc_abbrev)
15426 (abbrev_table::add_abbrev): Now private.
15427 (abbrev_table::abbrev_table): Now private.
15428 (abbrev_table::m_abbrev_obstack): Now private. Rename.
15429
0335378b
TT
154302020-02-08 Tom Tromey <tom@tromey.com>
15431
15432 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
15433 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
15434 htab_up.
15435
48b490f2
TT
154362020-02-08 Tom Tromey <tom@tromey.com>
15437
15438 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
15439 htab_up.
15440 (lookup_dwo_unit_in_dwp): Update.
15441 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
15442 on obstack.
15443
bc68fb19
TT
154442020-02-08 Tom Tromey <tom@tromey.com>
15445
15446 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
15447 obstack.
15448
d15acc42
TT
154492020-02-08 Tom Tromey <tom@tromey.com>
15450
15451 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
15452 line_header_hash.
15453 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
15454 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
15455 Change type to htab_up.
15456
eaa5fa8b
TT
154572020-02-08 Tom Tromey <tom@tromey.com>
15458
15459 * dwarf2/read.c (allocate_type_unit_groups_table): Return
15460 htab_up. Don't allocate on obstack.
15461 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
15462 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
15463 Change type to htab_up.
15464
b0b6a987
TT
154652020-02-08 Tom Tromey <tom@tromey.com>
15466
15467 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
15468 Change type to htab_up.
15469 * dwarf2/read.c (create_signatured_type_table_from_index)
15470 (create_signatured_type_table_from_debug_names)
15471 (create_all_type_units, add_type_unit)
15472 (lookup_dwo_signatured_type, lookup_signatured_type)
15473 (process_skeletonless_type_unit): Update.
15474 (create_debug_type_hash_table, create_debug_types_hash_table):
15475 Change type of types_htab.
15476 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
15477 htab_up. Don't allocate on obstack.
15478 (create_cus_hash_table): Change type of cus_htab parameter.
15479 (struct dwo_file) <cus, tus>: Now htab_up.
15480 (lookup_dwo_signatured_type, lookup_dwo_cutu)
15481 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
15482 (queue_and_load_all_dwo_tus): Update.
15483 * dwarf2/index-write.c (write_gdbindex): Update.
15484 (write_debug_names): Update.
15485
39856def
TT
154862020-02-08 Tom Tromey <tom@tromey.com>
15487
15488 * dwarf2/read.h (struct dwarf2_queue_item): Move from
15489 dwarf2/read.c. Remove "next" member. Add constructor ntad
15490 destructor.
15491 (struct dwarf2_per_objfile) <queue>: New member.
15492 * dwarf2/read.c (struct dwarf2_queue_item): Move to
15493 dwarf2/read.h.
15494 (dwarf2_queue, dwarf2_queue_tail): Remove.
15495 (class dwarf2_queue_guard): Add parameter to constructor. Use
15496 DISABLE_COPY_AND_ASSIGN.
15497 <m_per_objfile>: New member.
15498 <~dwarf2_queue_guard>: Rewrite.
15499 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
15500 Update.
15501 (~dwarf2_queue_item): New.
15502
3e225074
TT
155032020-02-08 Tom Tromey <tom@tromey.com>
15504
15505 * dwarf2/read.c (struct die_info) <has_children>: New member.
15506 (dw2_get_file_names_reader): Remove has_children.
15507 (dw2_get_file_names): Update.
15508 (read_cutu_die_from_dwo): Remove has_children.
15509 (cutu_reader::init_tu_and_read_dwo_dies)
15510 (cutu_reader::cutu_reader): Update.
15511 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
15512 Remove has_children.
15513 (build_type_psymtabs_1, process_skeletonless_type_unit)
15514 (load_partial_comp_unit, load_full_comp_unit): Update.
15515 (create_dwo_cu_reader): Remove has_children.
15516 (create_cus_hash_table, read_die_and_children): Update.
15517 (read_full_die_1,read_full_die): Remove has_children.
15518 (read_signatured_type): Update.
15519 (class cutu_reader) <has_children>: Remove.
15520
82ca8957
TT
155212020-02-08 Tom Tromey <tom@tromey.com>
15522
15523 * dwarf2/expr.c: Rename from dwarf2expr.c.
15524 * dwarf2/expr.h: Rename from dwarf2expr.h.
15525 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
15526 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
15527 * dwarf2/frame.c: Rename from dwarf2-frame.c.
15528 * dwarf2/frame.h: Rename from dwarf2-frame.h.
15529 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
15530 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
15531 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
15532 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
15533 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
15534 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
15535 * dwarf2/loc.c: Rename from dwarf2loc.c.
15536 * dwarf2/loc.h: Rename from dwarf2loc.h.
15537 * dwarf2/read.c: Rename from dwarf2read.c.
15538 * dwarf2/read.h: Rename from dwarf2read.h.
15539 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
15540 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
15541 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
15542 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
15543 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
15544 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
15545 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
15546 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
15547 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
15548 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
15549 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
15550 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
15551 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
15552 Update.
15553 * Makefile.in (COMMON_SFILES): Update.
15554 (HFILES_NO_SRCDIR): Update.
15555
9e35d499
TT
155562020-02-08 Tom Tromey <tom@tromey.com>
15557
15558 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
15559 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
15560
1eba2311
TT
155612020-02-08 Tom Tromey <tom@tromey.com>
15562
15563 * dwarf2read.h (struct die_info): Don't declare.
15564
e41c2da2
TT
155652020-02-08 Tom Tromey <tom@tromey.com>
15566
15567 * dwarf2read.h (die_info_ptr): Remove typedef.
15568
4fc6c0d5
TT
155692020-02-08 Tom Tromey <tom@tromey.com>
15570
15571 * dwarf2read.c (read_call_site_scope)
15572 (handle_data_member_location, dwarf2_add_member_fn)
15573 (mark_common_block_symbol_computed, read_common_block)
15574 (attr_to_dynamic_prop, partial_die_info::read)
15575 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
15576 (dwarf2_symbol_mark_computed, set_die_type): Update.
15577 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
15578 method.
15579 (attr_form_is_block): Don't declare.
15580 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
15581
cd6c91b4
TT
155822020-02-08 Tom Tromey <tom@tromey.com>
15583
15584 * dwarf2read.c (dwarf2_find_base_address, )
15585 (read_call_site_scope, rust_containing_type)
15586 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
15587 (handle_data_member_location, dwarf2_add_member_fn)
15588 (get_alignment, read_structure_type, process_structure_scope)
15589 (mark_common_block_symbol_computed, read_common_block)
15590 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
15591 (partial_die_info::read, read_attribute_value, new_symbol)
15592 (lookup_die_type, dwarf2_get_ref_die_offset)
15593 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
15594 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
15595 (dwarf2_symbol_mark_computed): Update.
15596 * dwarf2/attribute.h (struct attribute) <value_as_address,
15597 form_is_section_offset, form_is_constant, form_is_ref>: Declare
15598 methods.
15599 (value_as_address, attr_form_is_section_offset)
15600 (attr_form_is_constant, attr_form_is_ref): Don't declare.
15601 * dwarf2/attribute.c (attribute::value_as_address)
15602 (attribute::form_is_section_offset, attribute::form_is_constant)
15603 (attribute::form_is_ref): Now methods.
15604
162dce55
TT
156052020-02-08 Tom Tromey <tom@tromey.com>
15606
15607 * dwarf2read.c (struct attribute, DW_STRING)
15608 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
15609 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
15610 (attr_form_is_block, attr_form_is_section_offset)
15611 (attr_form_is_constant, attr_form_is_ref): Move.
15612 * dwarf2/attribute.h: New file.
15613 * dwarf2/attribute.c: New file, from dwarf2read.c.
15614 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
15615
3054dd54
TT
156162020-02-08 Tom Tromey <tom@tromey.com>
15617
15618 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
15619 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
15620 Move.
15621 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
15622 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
15623 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
15624 abbrev.c.
15625 * dwarf2/abbrev.h: New file.
15626 * dwarf2/abbrev.c: New file, from dwarf2read.c.
15627 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
15628
96b79293
TT
156292020-02-08 Tom Tromey <tom@tromey.com>
15630
15631 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
15632 (dwarf2_section_size, dwarf2_get_section_info)
15633 (create_signatured_type_table_from_debug_names)
15634 (create_addrmap_from_aranges, read_debug_names_from_section)
15635 (get_gdb_index_contents_from_section, read_comp_unit_head)
15636 (error_check_comp_unit_head, read_abbrev_offset)
15637 (create_debug_type_hash_table, init_cu_die_reader)
15638 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
15639 (read_comp_units_from_section, create_cus_hash_table)
15640 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
15641 (create_dwp_v2_section, dwarf2_rnglists_process)
15642 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
15643 (abbrev_table_read_table, read_indirect_string_at_offset_from)
15644 (read_indirect_string_from_dwz, read_addr_index_1)
15645 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
15646 (dwarf_decode_macro_bytes, dwarf_decode_macros)
15647 (fill_in_loclist_baton): Update.
15648 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
15649 get_containing_section, get_bfd_owner, get_bfd_section,
15650 get_file_name, get_id, get_flags, empty, read>: Declare methods.
15651 (dwarf2_read_section, get_section_name, get_section_file_name)
15652 (get_containing_section, get_section_bfd_owner)
15653 (get_section_bfd_section, get_section_name, get_section_file_name)
15654 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
15655 declare.
15656 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
15657 (dwarf2_section_info::get_bfd_owner)
15658 (dwarf2_section_info::get_bfd_section)
15659 (dwarf2_section_info::get_name)
15660 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
15661 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
15662 (dwarf2_section_info::read): Now methods.
15663 * dwarf-index-write.c (class debug_names): Update.
15664
2c86cff9
TT
156652020-02-08 Tom Tromey <tom@tromey.com>
15666
15667 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
15668 Move to dwarf2/section.h.
15669 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
15670 (get_section_bfd_section, get_section_name)
15671 (get_section_file_name, get_section_id, get_section_flags)
15672 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
15673 dwarf2/section.c.
15674 * dwarf2/section.h: New file.
15675 * dwarf2/section.c: New file, from dwarf2read.c.
15676 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
15677
f4382c45
TT
156782020-02-08 Tom Tromey <tom@tromey.com>
15679
15680 * dwarf2read.h (read_unsigned_leb128): Don't declare.
15681 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
15682 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
15683 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
15684 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
15685 * dwarf2/leb.h: New file, from dwarf2read.c.
15686 * dwarf2/leb.c: New file, from dwarf2read.c.
15687 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
15688 Remove.
15689 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
15690 (COMMON_SFILES): Add dwarf2/leb.c.
15691
01840b7a
JB
156922020-02-08 Joel Brobecker <brobecker@adacore.com>
15693
15694 GDB 9.1 released.
15695
dfcb27e4
IB
156962020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
15697
15698 PR gdb/25190:
aac66a4c
SM
15699 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
15700 * gdb/remote.c (remote_console_output): Update.
15701 * gdb/ui-file.c (fputs_unfiltered): Rename to...
15702 (ui_file_puts): ...this.
15703 * gdb/ui-file.h (ui_file_puts): Add declaration.
15704 * gdb/utils.c (emit_style_escape): Update.
15705 (flush_wrap_buffer): Update.
15706 (fputs_maybe_filtered): Update.
15707 (fputs_unfiltered): Add function.
dfcb27e4 15708
faa17681
IB
157092020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
15710
aac66a4c
SM
15711 * gdb/event-loop.c (gdb_wait_for_event): Update.
15712 * gdb/printcmd.c (printf_command): Update.
15713 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
15714 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
15715 (gdb_os_flush_stderr): Update.
15716 * gdb/remote.c (remote_console_output): Update.
15717 * gdb/ui-file.c (gdb_flush): Rename to...
15718 (ui_file_flush): ...this.
15719 (stderr_file::write): Update.
15720 (stderr_file::puts): Update.
15721 * gdb/ui-file.h (gdb_flush): Rename to...
15722 (ui_file_flush): ...this.
15723 * gdb/utils.c (gdb_flush): Add function.
15724 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 15725
5abbbe1d
TT
157262020-02-07 Tom Tromey <tromey@adacore.com>
15727
15728 PR breakpoints/24915:
15729 * source.c (find_and_open_source): Do not check basenames_may_differ.
15730
919adfe8
TT
157312020-02-07 Tom Tromey <tom@tromey.com>
15732
15733 * README: Update gdbserver documentation.
15734 * gdbserver: Move to top level.
15735 * configure.tgt (build_gdbserver): Remove.
15736 * configure.ac: Remove --enable-gdbserver.
15737 * configure: Rebuild.
15738 * Makefile.in (distclean): Don't mention gdbserver.
15739
1d5d29e7
SV
157402020-02-06 Shahab Vahedi <shahab@synopsys.com>
15741
15742 * source-cache.c (source_cache::ensure): Surround
15743 get_plain_source_lines with a try/catch.
15744 (source_cache::get_line_charpos): Get rid of try/catch
15745 and only check for the return value of "ensure".
15746 * tui/tui-source.c (tui_source_window::set_contents):
15747 Simplify "nlines" calculation.
15748
6eb1129c
SV
157492020-02-06 Shahab Vahedi <shahab@synopsys.com>
15750
15751 * MAINTAINERS (Write After Approval): Add myself.
15752
c6a42d11
CB
157532020-02-05 Christian Biesinger <cbiesinger@google.com>
15754
15755 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
15756 function call.
15757
c8ecdda6
CB
157582020-02-05 Christian Biesinger <cbiesinger@google.com>
15759
15760 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
15761
f6480e70
MR
157622020-02-05 Maciej W. Rozycki <macro@wdc.com>
15763
15764 * nat/riscv-linux-tdesc.h: New file.
15765 * nat/riscv-linux-tdesc.c: New file, taking code from...
15766 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
15767 ... here.
15768 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
15769 NATDEPFILES.
15770
dcc9fbc6
AB
157712020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
15772
15773 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
15774 we don't set the fake simulator ptid to the null_ptid.
15775
719546c4
SM
157762020-02-03 Simon Marchi <simon.marchi@efficios.com>
15777
15778 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
15779 * gdbthread.h (class thread_info) <resumed>: Likewise.
15780 * infrun.c (resume_1): Likewise.
15781 (proceed): Likewise.
15782 (infrun_thread_stop_requested): Likewise.
15783 (stop_all_threads): Likewise.
15784 (handle_inferior_event): Likewise.
15785 (restart_threads): Likewise.
15786 (finish_step_over): Likewise.
15787 (keep_going_stepped_thread): Likewise.
15788 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
15789 (linux_handle_extended_wait): Likewise.
15790 * record-btrace.c (get_thread_current_frame_id): Likewise.
15791 * record-full.c (record_full_wait_1): Likewise.
15792 * remote.c (remote_target::process_initial_stop_replies): Likewise.
15793 * target.c (target_resume): Likewise.
15794 * thread.c (set_running_thread): Likewise.
15795
e409c542
AKS
157962020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
15797
15798 * f-valprint.c (f77_print_array_1): Changed datatype of index
15799 variable to LONGEST from int to enable it to contain bound
15800 values correctly.
15801
ee98c0da
MR
158022020-02-03 Maciej W. Rozycki <macro@wdc.com>
15803
15804 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
15805 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
15806 offsets according to FLEN determined.
15807 (riscv_linux_nat_target::read_description): Determine FLEN
15808 dynamically.
15809 (riscv_linux_nat_target::fetch_registers): Size regset buffer
15810 according to FLEN determined.
15811 (riscv_linux_nat_target::store_registers): Likewise.
15812
aa66aac4
SV
158132020-02-01 Shahab Vahedi <shahab@synopsys.com>
15814
15815 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
15816 when reg->group is empty and reggroup is not.
15817
fd9faca8
TT
158182020-01-31 Tom Tromey <tromey@adacore.com>
15819
15820 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
15821 Call beneath target's mourn_inferior after unpushing.
15822
42330a68
AB
158232020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
15824
15825 PR tui/9765
15826 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
15827 have enough lines to fill the screen, still return the lowest
15828 address we found.
15829
7a27a45b
AB
158302020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
15831
15832 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
15833 '-', '<', and '>' commands.
15834
c47f70e2
PA
158352020-01-29 Pedro Alves <palves@redhat.com>
15836 Sergio Durigan Junior <sergiodj@redhat.com>
15837
15838 * infcmd.c (construct_inferior_arguments): Assert that
15839 'argc' is greater than 0.
15840
5133a315
LM
158412020-01-29 Luis Machado <luis.machado@linaro.org>
15842
15843 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
15844 (BRK_INSN_MASK): Define to 0xd4200000.
15845 (aarch64_program_breakpoint_here_p): New function.
15846 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
15847 * arch-utils.c (default_program_breakpoint_here_p): Moved from
15848 breakpoint.c.
15849 * arch-utils.h (default_program_breakpoint_here_p): Moved from
15850 breakpoint.h
15851 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
15852 call gdbarch_program_breakpoint_here_p.
15853 (program_breakpoint_here): Moved to arch-utils.c, renamed to
15854 default_program_breakpoint_here_p, changed return type to bool and
15855 simplified.
15856 * breakpoint.h (program_breakpoint_here): Moved prototype to
15857 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
15858 return type to bool.
15859 * gdbarch.c: Regenerate.
15860 * gdbarch.h: Regenerate.
15861 * gdbarch.sh (program_breakpoint_here_p): New method.
15862 * infrun.c (handle_signal_stop): Call
15863 gdbarch_program_breakpoint_here_p.
15864
168f8c6b
TT
158652020-01-26 Tom Tromey <tom@tromey.com>
15866
15867 * ctfread.c (struct ctf_fp_info): Reindent.
15868 (_initialize_ctfread): Remove.
15869
128a391f
TT
158702020-01-26 Tom Tromey <tom@tromey.com>
15871
15872 * psymtab.c (partial_map_expand_apply)
15873 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
15874 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
15875 (psym_print_stats, psym_expand_symtabs_for_function)
15876 (psym_map_symbol_filenames, psym_map_matching_symbols)
15877 (psym_expand_symtabs_matching)
15878 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
15879 (maintenance_check_psymtabs): Use new methods.
15880 * psympriv.h (struct partial_symtab) <readin_p,
15881 get_compunit_symtab>: New methods.
15882 <readin, compunit_symtab>: Remove members.
15883 (struct standard_psymtab): New.
15884 (struct legacy_psymtab): Derive from standard_psymtab.
15885 * dwarf2read.h (struct dwarf2_psymtab): Derive from
15886 standard_psymtab.
15887 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
15888
0494dbec
TT
158892020-01-26 Tom Tromey <tom@tromey.com>
15890
15891 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
15892 read_dependencies. Add assert.
15893 * psymtab.c (partial_symtab::read_dependencies): New method.
15894 * psympriv.h (struct partial_symtab) <read_dependencies>: New
15895 method.
15896 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
15897 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
15898 read_dependencies.
15899 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
15900 Add assert.
15901
8566b89b
TT
159022020-01-26 Tom Tromey <tom@tromey.com>
15903
15904 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
15905 Call expand_psymtab.
15906 (xcoff_read_symtab): Call expand_psymtab.
15907 (xcoff_start_psymtab, xcoff_end_psymtab): Set
15908 legacy_expand_psymtab.
15909 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
15910 method.
15911 (struct legacy_psymtab) <expand_psymtab>: Implement.
15912 <legacy_expand_psymtab>: New member.
15913 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
15914 (parse_partial_symbols): Set legacy_expand_psymtab.
15915 (psymtab_to_symtab_1): Change argument order. Call
15916 expand_psymtab.
15917 (new_psymtab): Set legacy_expand_psymtab.
15918 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
15919 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
15920 expand_psymtab.
15921 (dwarf2_psymtab::expand_psymtab): Rename from
15922 psymtab_to_symtab_1. Call expand_psymtab.
15923 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
15924 (dbx_end_psymtab): Likewise.
15925 (dbx_psymtab_to_symtab_1): Change argument order. Call
15926 expand_psymtab.
15927 (dbx_read_symtab): Call expand_psymtab.
15928 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
15929 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
15930 (ctf_psymtab::read_symtab): Call expand_psymtab.
15931
077cbab2
TT
159322020-01-26 Tom Tromey <tom@tromey.com>
15933
15934 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
15935 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
15936 messages.
15937 * mdebugread.c (mdebug_read_symtab): Remove prints.
15938 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
15939 assert.
15940 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
15941
891813be
TT
159422020-01-26 Tom Tromey <tom@tromey.com>
15943
15944 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
15945 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
15946 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
15947 legacy_symtab.
15948 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
15949 * psymtab.c (psymtab_to_symtab): Call method.
15950 (dump_psymtab): Update.
15951 * psympriv.h (struct partial_symtab): Add virtual destructor.
15952 <read_symtab>: New method.
15953 (struct legacy_symtab): New.
15954 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
15955 (struct pst_map) <pst>: Now a legacy_psymtab.
15956 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
15957 (new_psymtab): Use legacy_psymtab.
15958 * dwarf2read.h (struct dwarf2_psymtab): New.
15959 (struct dwarf2_per_cu_data) <psymtab>: Use it.
15960 * dwarf2read.c (dwarf2_create_include_psymtab)
15961 (dwarf2_build_include_psymtabs, create_type_unit_group)
15962 (create_partial_symtab, process_psymtab_comp_unit_reader)
15963 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
15964 (set_partial_user): Use dwarf2_psymtab.
15965 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
15966 (psymtab_to_symtab_1, process_full_comp_unit)
15967 (process_full_type_unit, dwarf2_ranges_read)
15968 (dwarf2_get_pc_bounds, psymtab_include_file_name)
15969 (dwarf_decode_lines): Use dwarf2_psymtab.
15970 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
15971 (add_address_entry_worker, write_one_signatured_type)
15972 (recursively_count_psymbols, recursively_write_psymbols)
15973 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
15974 (write_debug_names): Likewise.
15975 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
15976 <pst>: Now a legacy_psymtab.
15977 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
15978 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
15979 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
15980 * ctfread.c (struct ctf_psymtab): New.
15981 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
15982 ctf_psymtab.
15983 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
15984 (create_partial_symtab): Return a ctf_psymtab.
15985 (scan_partial_symbols): Update.
15986
c3693a1d
TT
159872020-01-26 Tom Tromey <tom@tromey.com>
15988
15989 * xcoffread.c (xcoff_start_psymtab): Use new.
15990 * psymtab.c (partial_symtab::partial_symtab): New constructor,
15991 renamed from start_psymtab_common.
15992 * psympriv.h (struct partial_symtab): Add new constructor.
15993 (start_psymtab_common): Don't declare.
15994 * mdebugread.c (parse_partial_symbols): Use new.
15995 * dwarf2read.c (create_partial_symtab): Use new.
15996 * dbxread.c (start_psymtab): Use new.
15997 * ctfread.c (create_partial_symtab): Use new.
15998
32caafd0
TT
159992020-01-26 Tom Tromey <tom@tromey.com>
16000
16001 * xcoffread.c (xcoff_end_psymtab): Use new.
16002 * psymtab.c (start_psymtab_common): Use new.
16003 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
16004 Update.
16005 * psympriv.h (struct partial_symtab): Add parameters to
16006 constructor. Don't inline.
16007 (allocate_psymtab): Don't declare.
16008 * mdebugread.c (new_psymtab): Use new.
16009 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
16010 * dbxread.c (dbx_end_psymtab): Use new.
16011
abaa2f23
TT
160122020-01-26 Tom Tromey <tom@tromey.com>
16013
16014 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
16015 allocate_psymtab. Update documentation.
16016 * psymtab.c (psymtab_storage::install_psymtab): Rename from
16017 allocate_psymtab. Do not use new.
16018 (allocate_psymtab): Use new. Update.
16019
6d94535f
TT
160202020-01-26 Tom Tromey <tom@tromey.com>
16021
16022 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
16023 * psymtab.c (psym_print_stats): Update.
16024 * psympriv.h (struct partial_symtab) <readin,
16025 psymtabs_addrmap_supported, anonymous>: Now bool.
16026 * mdebugread.c (psymtab_to_symtab_1): Update.
16027 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
16028 (build_type_psymtabs_reader, psymtab_to_symtab_1)
16029 (process_full_comp_unit, process_full_type_unit): Update.
16030 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
16031 * ctfread.c (psymtab_to_symtab): Update.
16032
6f17252b
TT
160332020-01-26 Tom Tromey <tom@tromey.com>
16034
16035 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
16036 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
16037 * psymtab.c (psymtab_storage): Delete psymtabs.
16038 (psymtab_storage::allocate_psymtab): Use new.
16039 (psymtab_storage::discard_psymtab): Use delete.
16040 * psympriv.h (struct partial_symtab): Add constructor and
16041 initializers.
16042
f6f1cebc
TT
160432020-01-26 Tom Tromey <tom@tromey.com>
16044
16045 * machoread.c: Do not include psympriv.h.
16046
e47e48f6
PW
160472020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16048
16049 * NEWS: Mention the new option and the set/show commands.
16050
a2fedca9
PW
160512020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16052
16053 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
16054 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
16055 (validate_exec_file): New variables, enums, functions.
16056 (exec_file_locate_attach, print_section_info): Style the filenames.
16057 (_initialize_exec): Install show_exec_file_mismatch_command and
16058 set_exec_file_mismatch_command.
16059 * gdbcore.h (validate_exec_file): Declare.
16060 * infcmd.c (attach_command): Call validate_exec_file.
16061 * remote.c ( remote_target::remote_add_inferior): Likewise.
16062
7ffa82e1
AB
160632020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16064
16065 * frame.c (find_frame_sal): Move call to get_next_frame into more
16066 inner scope.
16067 * inline-frame.c (inilne_state) <inline_state>: Update argument
16068 types.
16069 (inilne_state) <skipped_symbol>: Rename to...
16070 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
16071 (skip_inline_frames): Build vector of skipped symbols and use this
16072 to reate the inline_state.
16073 (inline_skipped_symbol): Add a comment and some assertions, fetch
16074 skipped symbol from the list.
16075
3d92a3e3
AB
160762020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16077
16078 * buildsym.c (lte_is_less_than): Delete.
16079 (buildsym_compunit::end_symtab_with_blockvector): Create local
16080 lambda function to sort line table entries, and use
16081 std::stable_sort instead of std::sort.
16082 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
16083 markers when looking for a previous line.
16084
94a72be7
AB
160852020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16086
16087 * dwarf2read.c (lnp_state_machine::record_line): Include
16088 end_sequence parameter in debug print out. Record the line if we
16089 are at an end_sequence marker even if it's not the start of a
16090 statement.
16091 * symmisc.c (maintenance_print_one_line_table): Print end of
16092 sequence markers with 'END' not '0'.
16093
53af73bf
PA
160942020-01-24 Pedro Alves <palves@redhat.com>
16095
16096 PR gdb/25410
16097 * thread.c (scoped_restore_current_thread::restore): Use
16098 switch_to_inferior_no_thread.
16099 * exec.c: Include "progspace-and-thread.h".
16100 (add_target_sections, remove_target_sections):
16101 scoped_restore_current_pspace_and_thread instead of
16102 scoped_restore_current_thread.
16103 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
16104 and aspace to the inferior before calling clone_program_space.
16105 Remove stale comment.
16106
3050c6f4
CB
161072020-01-24 Christian Biesinger <cbiesinger@google.com>
16108
16109 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
16110 (arm_netbsd_nat_target::fetch_registers): ...this.
16111 (arm_nbsd_nat_target::store_registers): Rename to...
16112 (arm_netbsd_nat_target::store_registers): ...this.
16113
73685c7e
CB
161142020-01-24 Christian Biesinger <cbiesinger@google.com>
16115
16116 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
16117 register_t.
16118
89203d40
CB
161192020-01-24 Christian Biesinger <cbiesinger@google.com>
16120
16121 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
16122 Update comment.
16123 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
16124 Likewise.
16125 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
16126 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
16127 the correct replacement (iterate_over_regset_sections).
16128 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
16129 Update comment.
16130
1ba1ac88
AB
161312020-01-24 Graham Markall <graham.markall@embecosm.com>
16132
16133 PR gdb/23718
16134 * gdb/python/python.c (execute_gdb_command): Call
16135 async_enable_stdin in catch block.
16136
f3364a6d
AB
161372020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16138
16139 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
16140 SWITCH_THRU_ALL_UIS.
16141
733d0a67
AB
161422020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16143
16144 PR tui/9765
16145 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
16146 comment, add extra parameter, and update to store previous symbol
16147 when appropriate.
16148 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
16149 add extra parameter.
16150 * tui/tui-disasm.c (tui_disassemble): Update header comment,
16151 remove unneeded parameter, add try/catch around gdb_print_insn,
16152 rewrite to add items to asm_lines vector.
16153 (tui_find_backward_disassembly_start_address): New function.
16154 (tui_find_disassembly_address): Updated throughout.
16155 (tui_disasm_window::set_contents): Update for changes to
16156 tui_disassemble.
16157 (tui_disasm_window::do_scroll_vertical): No need to adjust the
16158 number of lines to scroll.
16159
b3b3bada
SM
161602020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
16161
16162 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
16163 (SECT_OFF_DATA): Likewise.
16164 (SECT_OFF_RODATA): Likewise.
16165 (SECT_OFF_TEXT): Likewise.
16166 (SECT_OFF_BSS): Likewise.
16167 (struct objfile) <text_section_offset, data_section_offset>: New
16168 methods.
16169 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
16170 objfile::text_section_offset.
16171 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
16172 * coffread.c (coff_symtab_read): Likewise.
16173 (enter_linenos): Likewise.
16174 (process_coff_symbol): Likewise.
16175 * ctfread.c (get_objfile_text_range): Likewise.
16176 * dtrace-probe.c (dtrace_probe::get_relocated_address):
16177 Use objfile::data_section_offset.
16178 * dwarf2-frame.c (execute_cfa_program): Use
16179 objfile::text_section_offset.
16180 (dwarf2_frame_find_fde): Likewise.
16181 * dwarf2read.c (create_addrmap_from_index): Likewise.
16182 (create_addrmap_from_aranges): Likewise.
16183 (dw2_find_pc_sect_compunit_symtab): Likewise.
16184 (process_psymtab_comp_unit_reader): Likewise.
16185 (add_partial_symbol): Likewise.
16186 (add_partial_subprogram): Likewise.
16187 (process_full_comp_unit): Likewise.
16188 (read_file_scope): Likewise.
16189 (read_func_scope): Likewise.
16190 (read_lexical_block_scope): Likewise.
16191 (read_call_site_scope): Likewise.
16192 (dwarf2_rnglists_process): Likewise.
16193 (dwarf2_ranges_process): Likewise.
16194 (dwarf2_ranges_read): Likewise.
16195 (dwarf_decode_lines_1): Likewise.
16196 (new_symbol): Likewise.
16197 (dwarf2_fetch_die_loc_sect_off): Likewise.
16198 (dwarf2_per_cu_text_offset): Likewise.
16199 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
16200 * hppa-tdep.c (read_unwind_info): Likewise.
16201 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
16202 * psympriv.h (struct partial_symtab): Likewise.
16203 * psymtab.c (find_pc_sect_psymtab): Likewise.
16204 * solib-svr4.c (enable_break): Likewise.
16205 * stap-probe.c (relocate_address): Use
16206 objfile::data_section_offset.
16207 * xcoffread.c (enter_line_range): Use
16208 objfile::text_section_offset.
16209 (read_xcoff_symtab): Likewise.
16210
ab53f382
SM
162112020-01-23 Simon Marchi <simon.marchi@efficios.com>
16212
16213 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
16214 declaration to narrower scopes.
16215
e7eee665
SM
162162020-01-23 Simon Marchi <simon.marchi@efficios.com>
16217
16218 * darwin-nat.h (struct darwin_exception_msg, enum
16219 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
16220 Move up.
16221 (class darwin_nat_target) <wait_1, check_new_threads,
16222 decode_exception_message, decode_message, stop_inferior,
16223 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
16224 * darwin-nat.c (darwin_check_new_threads): Rename to...
16225 (darwin_nat_target::check_new_threads): ... this.
16226 (darwin_suspend_inferior_it): Remove.
16227 (darwin_decode_exception_message): Rename to...
16228 (darwin_nat_target::decode_exception_message): ... this.
16229 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
16230 (darwin_decode_message): Rename to...
16231 (darwin_nat_target::decode_message): ... this.
16232 (cancel_breakpoint): Rename to...
16233 (darwin_nat_target::cancel_breakpoint): ... this.
16234 (darwin_wait): Rename to...
16235 (darwin_nat_target::wait_1): ... this. Use range-based for loop
16236 instead of iterate_over_inferiors.
16237 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
16238 (darwin_stop_inferior): Rename to...
16239 (darwin_nat_target::stop_inferior): ... this.
16240 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
16241 (darwin_init_thread_list): Rename to...
16242 (darwin_nat_target::init_thread_list): ... this.
16243 (darwin_ptrace_him): Rename to...
16244 (darwin_nat_target::ptrace_him): ... this.
16245 (darwin_nat_target::create_inferior): Pass lambda function to
16246 fork_inferior.
16247 (darwin_nat_target::detach): Call stop_inferior instead of
16248 darwin_stop_inferior.
16249 * fork-inferior.h (fork_inferior): Change init_trace_fun
16250 parameter to gdb::function_view.
16251 * fork-inferior.c (fork_inferior): Likewise.
16252
c162ed3e
HD
162532020-01-23 Hannes Domani <ssbssa@yahoo.de>
16254
16255 * i386-cygwin-tdep.c (core_process_module_section): Update.
16256 * windows-nat.c (struct lm_info_windows): Add text_offset.
16257 (windows_xfer_shared_libraries): Update.
16258 * windows-tdep.c (windows_xfer_shared_library):
16259 Add text_offset_cached argument.
16260 * windows-tdep.h (windows_xfer_shared_library): Update.
16261
a1237872
SM
162622020-01-21 Simon Marchi <simon.marchi@efficios.com>
16263
16264 * gdbarch.sh: Add declaration for _initialize_gdbarch.
16265
b3ee6dd9
SM
162662020-01-21 Simon Marchi <simon.marchi@efficios.com>
16267
16268 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
16269 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
16270 replace with range-based for.
16271 (gdbsim_interrupt_inferior): Remove.
16272 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
16273 with a range-based for. Inline code from
16274 gdbsim_interrupt_inferior.
16275
f9fac3c8
SM
162762020-01-21 Simon Marchi <simon.marchi@efficios.com>
16277
16278 * infrun.c (proceed): Fix indentation.
16279
f6474de9
TT
162802020-01-21 Tom Tromey <tromey@adacore.com>
16281
16282 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
16283 * python/python.c (python_extension_ops): Update.
16284 (gdbpy_colorize): New function.
16285 * python/lib/gdb/__init__.py (colorize): New function.
16286 * extension.h (ext_lang_colorize): Declare.
16287 * extension.c (ext_lang_colorize): New function.
16288 * extension-priv.h (struct extension_language_ops) <colorize>: New
16289 member.
16290 * cli/cli-style.c (_initialize_cli_style): Update help text.
16291
f0c702d4
LM
162922020-01-21 Luis Machado <luis.machado@linaro.org>
16293
16294 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
16295 <cond>: Change type to bool.
16296 (aarch64_displaced_step_b_cond): Update cond to use bool type.
16297 (aarch64_displaced_step_cb): Likewise.
16298 (aarch64_displaced_step_tb): Likewise.
16299
1ab139e5
LM
163002020-01-21 Luis Machado <luis.machado@linaro.org>
16301
16302 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
16303 output.
16304
0c271889
LM
163052020-01-21 Luis Machado <luis.machado@linaro.org>
16306
16307 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
16308 <pc_adjust>: Adjust the documentation.
16309 (aarch64_displaced_step_fixup): Check if PC really moved before
16310 adjusting it.
16311
4d89c1c7
TT
163122020-01-19 Tom Tromey <tom@tromey.com>
16313
16314 * disasm.c (~gdb_disassembler): New destructor.
16315 (gdb_buffered_insn_length): Call disassemble_free_target.
16316 * disasm.h (class gdb_disassembler): Declare destructor. Use
16317 DISABLE_COPY_AND_ASSIGN.
16318
c0ab21c2
TT
163192020-01-19 Tom Tromey <tom@tromey.com>
16320
16321 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
16322 (die_reader_func_ftype): Remove.
16323 (cutu_reader): New class.
16324 (dw2_get_file_names_reader): Remove "data" parameter.
16325 (dw2_get_file_names): Use cutu_reader.
16326 (create_debug_type_hash_table): Update.
16327 (read_cutu_die_from_dwo): Update comment.
16328 (lookup_dwo_unit): Add dwo_name parameter.
16329 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
16330 die_reader_func_ftype and data parameters.
16331 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
16332 Remove die_reader_func_ftype and data parameters.
16333 (~cutu_reader): New; from init_cutu_and_read_dies.
16334 (cutu_reader::cutu_reader): Rename from
16335 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
16336 and data parameters.
16337 (init_cutu_and_read_dies_simple): Remove.
16338 (struct process_psymtab_comp_unit_data): Remove.
16339 (process_psymtab_comp_unit_reader): Remove data parameter; add
16340 want_partial_unit and pretend_language parameters.
16341 (process_psymtab_comp_unit): Use cutu_reader.
16342 (build_type_psymtabs_reader): Remove data parameter.
16343 (build_type_psymtabs_1): Use cutu_reader.
16344 (process_skeletonless_type_unit): Likewise.
16345 (load_partial_comp_unit_reader): Remove.
16346 (load_partial_comp_unit): Use cutu_reader.
16347 (load_full_comp_unit_reader): Remove.
16348 (load_full_comp_unit): Use cutu_reader.
16349 (struct create_dwo_cu_data): Remove.
16350 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
16351 dwo_unit parameters.
16352 (create_cus_hash_table): Use cutu_reader.
16353 (struct dwarf2_read_addr_index_data): Remove.
16354 (dwarf2_read_addr_index_reader): Remove.
16355 (dwarf2_read_addr_index): Use cutu_reader.
16356 (read_signatured_type_reader): Remove.
16357 (read_signatured_type): Use cutu_reader.
16358
45bbae5c
TT
163592020-01-19 Tom Tromey <tom@tromey.com>
16360
16361 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
16362 * tui/tui-wingeneral.h (class tui_suppress_output): New.
16363 (tui_wrefresh): Declare.
16364 * tui/tui-wingeneral.c (suppress_output): New global.
16365 (tui_suppress_output, ~tui_suppress_output): New constructor and
16366 destructor.
16367 (tui_wrefresh): New function.
16368 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
16369 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
16370 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
16371 method.
16372 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
16373 tui_wrefresh.
16374 (tui_data_window::no_refresh): New method.
16375 (tui_data_item_window::refresh_window): Call tui_wrefresh.
16376 (tui_reg_command): Use tui_suppress_output
16377 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
16378 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
16379 method.
16380 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
16381
4f13c1c0
TT
163822020-01-19 Tom Tromey <tom@tromey.com>
16383
16384 * tui/tui-winsource.c (tui_update_source_windows_with_line):
16385 Handle case where symtab is null.
16386
fa47e446
SM
163872020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
16388
16389 * linux-fork.c (one_fork_p): Simplify.
16390
26f42329
SM
163912020-01-17 Simon Marchi <simon.marchi@efficios.com>
16392
16393 * top.c (struct qt_args): Remove.
16394 (kill_or_detach): Change return type to void, replace `void *`
16395 parameter with a proper one.
16396 (print_inferior_quit_action): Likewise.
16397 (quit_confirm): Use range-based for loop to iterate over inferiors.
16398 (quit_force): Likewise.
16399
a9ac81b1
SM
164002020-01-17 Simon Marchi <simon.marchi@efficios.com>
16401
16402 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
16403 `void *` parameter with proper parameters.
16404 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
16405 (print_one_inferior): Change return type to void, replace `void *`
16406 parameter with proper parameters.
16407 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
16408 inferiors.
16409 (get_other_inferior): Remove.
16410 (mi_cmd_remove_inferior): Use range-based loop to iterate over
16411 inferiors.
16412
788eca49
SM
164132020-01-17 Simon Marchi <simon.marchi@efficios.com>
16414
16415 * mi/mi-interp.c (report_initial_inferior): Remove.
16416 (mi_interp::init): Use range-based for to iterate over inferiors.
16417
d9bc85b6
SM
164182020-01-17 Simon Marchi <simon.marchi@efficios.com>
16419
16420 * python/py-inferior.c (build_inferior_list): Remove.
16421 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
16422
40c94099
CB
164232020-01-16 Christian Biesinger <cbiesinger@google.com>
16424
16425 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
16426 (btrace_stitch_trace): Likewise.
16427 * charset.c (intermediate_encoding): Likewise (vaild).
16428 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
16429 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
16430 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
16431
e0cdfe3c
HD
164322020-01-16 Hannes Domani <ssbssa@yahoo.de>
16433
16434 * windows-tdep.c (windows_get_tlb_type):
16435 Add rtl_user_process_parameters type.
16436
790f1718 164372020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 16438 Norbert Lange <nolange79@gmail.com>
790f1718
PA
16439
16440 PR build/24805
16441 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
16442 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
16443 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
16444 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
16445 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
16446 (ps_plog): Redeclare exported functions with default visibility.
16447
3112ed97
NA
164482020-01-16 Nitika Achra <Nitika.Achra@amd.com>
16449
16450 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
16451 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
16452
8dc3273e
SM
164532020-01-15 Simon Marchi <simon.marchi@efficios.com>
16454
16455 * infcmd.c (post_create_inferior): Use get_thread_regcache
16456 instead of get_current_regcache.
16457
ff47f4f0
TT
164582020-01-14 Tom Tromey <tom@tromey.com>
16459
16460 PR symtab/12535:
16461 * python/python.c (gdbpy_decode_line): Treat empty string the same
16462 as no argument.
16463
975f45b7
TT
164642020-01-14 Tom Tromey <tom@tromey.com>
16465
16466 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
16467
25e57356
TT
164682020-01-14 Tom Tromey <tom@tromey.com>
16469
16470 * nat/linux-btrace.c: Don't include <config.h>.
16471 * nat/linux-ptrace.c: Don't include <config.h>.
16472 * nat/x86-linux-dregs.c: Don't include <config.h>.
16473
05ea2a05
TT
164742020-01-14 Tom Tromey <tom@tromey.com>
16475
16476 * configure: Rebuild.
16477 * configure.ac: Move many checks to ../gdbsupport/common.m4.
16478
01027315
TT
164792020-01-14 Tom Tromey <tom@tromey.com>
16480
16481 * nat/x86-linux-dregs.c: Include configh.h.
16482 * nat/linux-ptrace.c: Include configh.h.
16483 * nat/linux-btrace.c: Include configh.h.
16484 * defs.h: Include config.h, bfd.h.
16485 * configure.ac: Don't source common.host.
16486 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
16487 * configure: Rebuild.
16488 * acinclude.m4: Update path.
16489 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
16490 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
16491 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
16492 (CLIBS): Add LIBSUPPORT.
16493 (CDEPS): Likewise.
16494 (COMMON_SFILES): Remove gdbsupport files.
16495 (HFILES_NO_SRCDIR): Likewise.
16496 (stamp-version): Update path to create-version.sh.
16497 (ALLDEPFILES): Remove gdbsupport files.
16498
b2ceabe8
TT
164992020-01-14 Tom Tromey <tom@tromey.com>
16500
16501 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
16502 USE_WIN32API when needed.
16503 * configure.ac (USE_WIN32API): Don't define.
16504 (WIN32LIBS): Use WIN32APILIBS.
16505 * configure: Rebuild.
16506
25c51f71
TT
165072020-01-14 Tom Tromey <tom@tromey.com>
16508
16509 * configure: Rebuild.
16510 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
16511
717c684d
BE
165122020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
16513
16514 * skip.c (skip_function_command): Make skip w/o arguments use the
16515 name of the inlined function if pc is inside any inlined function.
16516
7da6a5b9
LM
165172020-01-14 Luis Machado <luis.machado@linaro.org>
16518
16519 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
16520 * infrun.c (resume_1): Likewise.
16521 (handle_inferior_event): Remove stale comment.
16522 * linux-nat.c (linux_nat_target::resume): Update comments.
16523 (save_stop_reason): Likewise.
16524 (linux_nat_filter_event): Likewise.
16525 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
16526
44e4c775
AB
165272020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
16528
16529 * elfread.c (record_minimal_symbol): Set section index to 0 for
16530 non-allocatable sections.
16531
18a8505e
AT
16532
165332020-01-13 Ali Tamur <tamur@google.com>
16534
16535 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
16536 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
16537 to gdb::optional. Update comments.
16538 (dwo_file): Update comments.
16539 (read_attribute): Update API to take an additional out parameter,
16540 need_reprocess. This is used to mark attributes that need other
16541 attributes (e.g. str_offsets_base) for correct computation which may not
16542 have been read yet.
16543 (read_attribute_reprocess): New function declaration.
16544 (read_addr_index): Likewise.
16545 (read_dwo_str_index): Likewise.
16546 (read_stub_str_index): Likewise.
16547 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
16548 (lookup_addr_base): New function definition.
16549 (lookup_ranges_base): Likewise.
16550 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
16551 lookup_ranges_base.
16552 (init_cutu_and_read_dies): Update comments.
16553 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
16554 unit. This is used to inherit parent's str_offsets_base and addr_base.
16555 Update comments.
16556 (init_cutu_and_read_dies_simple): Reflect API changes.
16557 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
16558 (create_cus_hash_table): Change API to take parent compile unit.
16559 Reflect API changes.
16560 (open_and_init_dwo_file): Reflect API changes.
16561 (dwarf2_get_pc_bounds): Update comments.
16562 (dwarf2_record_block_ranges): Likewise.
16563 (read_full_die_1): Change implementation to reprocess attributes that
16564 need str_offsets_base and addr_base.
16565 (partial_die_info::read): Likewise.
16566 (read_attribute_reprocess): New function definition.
16567 (read_attribute_value): Change API to take an additional out parameter,
16568 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
16569 when a non-dwo compile unit has index based attributes.
16570 (read_attribute): Reflect API changes.
16571 (read_addr_index_1): Reflect API changes. Update comments.
16572 (dwarf2_read_addr_index_data): Reflect API changes.
16573 (dwarf2_read_addr_index): Likewise.
16574 (read_str_index): Change API and implementation. This becomes a helper
16575 to be used by the new string index related methods. Update error
16576 message and comments.
16577 (read_dwo_str_index): New function definition.
16578 (read_stub_str_index): Likewise.
16579 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
16580 * symfile.h (dwarf2_debug_sections): Likewise.
16581 * xcoffread.c (dwarf2_debug_sections): Likewise.
16582
0cac9354
SM
165832020-01-13 Simon Marchi <simon.marchi@efficios.com>
16584
16585 * gdbcore.h (struct core_fns) <core_read_registers>: Change
16586 core_reg_sect type to gdb_byte *.
16587 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
16588 * cris-tdep.c (fetch_core_registers): Likewise.
16589 * corelow.c (core_target::get_core_register_section): Change
16590 type of `contents` to gdb::byte_vector.
16591
9a6d629c
AB
165922020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
16593
16594 * tui/tui-wingeneral.c (box_win): Position the title in the center
16595 of the border.
16596
d8b2f9e3
SM
165972020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16598
16599 * corelow.c (core_target::get_core_register_section): Use
16600 std::vector instead of alloca.
16601
bb564c58
SM
166022020-01-13 Simon Marchi <simon.marchi@efficios.com>
16603
16604 * warning.m4: Add -Wmissing-declarations to build_warnings.
16605 * configure: Re-generate.
16606
6b366111
SM
166072020-01-13 Simon Marchi <simon.marchi@efficios.com>
16608
16609 * python/python.c (init__gdb_module): Add declaration.
16610
6c265988
SM
166112020-01-13 Simon Marchi <simon.marchi@efficios.com>
16612
16613 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
16614 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
16615 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
16616 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
16617 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
16618 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
16619 * ada-exp.y (_initialize_ada_exp): Add declaration.
16620 * ada-lang.c (_initialize_ada_language): Add declaration.
16621 * ada-tasks.c (_initialize_tasks): Add declaration.
16622 * agent.c (_initialize_agent): Add declaration.
16623 * aix-thread.c (_initialize_aix_thread): Add declaration.
16624 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
16625 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
16626 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
16627 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
16628 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
16629 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
16630 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
16631 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
16632 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
16633 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
16634 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
16635 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
16636 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
16637 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
16638 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
16639 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
16640 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
16641 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
16642 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
16643 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
16644 * annotate.c (_initialize_annotate): Add declaration.
16645 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
16646 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
16647 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
16648 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
16649 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
16650 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
16651 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
16652 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
16653 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
16654 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
16655 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
16656 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
16657 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
16658 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
16659 * auto-load.c (_initialize_auto_load): Add declaration.
16660 * auxv.c (_initialize_auxv): Add declaration.
16661 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
16662 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
16663 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
16664 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
16665 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
16666 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
16667 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
16668 * breakpoint.c (_initialize_breakpoint): Add declaration.
16669 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
16670 * btrace.c (_initialize_btrace): Add declaration.
16671 * charset.c (_initialize_charset): Add declaration.
16672 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
16673 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
16674 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
16675 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
16676 * cli/cli-script.c (_initialize_cli_script): Add declaration.
16677 * cli/cli-style.c (_initialize_cli_style): Add declaration.
16678 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
16679 * coffread.c (_initialize_coffread): Add declaration.
16680 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
16681 * compile/compile.c (_initialize_compile): Add declaration.
16682 * complaints.c (_initialize_complaints): Add declaration.
16683 * completer.c (_initialize_completer): Add declaration.
16684 * copying.c (_initialize_copying): Add declaration.
16685 * corefile.c (_initialize_core): Add declaration.
16686 * corelow.c (_initialize_corelow): Add declaration.
16687 * cp-abi.c (_initialize_cp_abi): Add declaration.
16688 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
16689 * cp-support.c (_initialize_cp_support): Add declaration.
16690 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
16691 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
16692 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
16693 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
16694 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
16695 * ctfread.c (_initialize_ctfread): Add declaration.
16696 * d-lang.c (_initialize_d_language): Add declaration.
16697 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
16698 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
16699 * dbxread.c (_initialize_dbxread): Add declaration.
16700 * dcache.c (_initialize_dcache): Add declaration.
16701 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
16702 * disasm.c (_initialize_disasm): Add declaration.
16703 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
16704 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
16705 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
16706 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
16707 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
16708 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
16709 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
16710 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
16711 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
16712 * elfread.c (_initialize_elfread): Add declaration.
16713 * exec.c (_initialize_exec): Add declaration.
16714 * extension.c (_initialize_extension): Add declaration.
16715 * f-lang.c (_initialize_f_language): Add declaration.
16716 * f-valprint.c (_initialize_f_valprint): Add declaration.
16717 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
16718 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
16719 * filesystem.c (_initialize_filesystem): Add declaration.
16720 * findcmd.c (_initialize_mem_search): Add declaration.
16721 * findvar.c (_initialize_findvar): Add declaration.
16722 * fork-child.c (_initialize_fork_child): Add declaration.
16723 * frame-base.c (_initialize_frame_base): Add declaration.
16724 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
16725 * frame.c (_initialize_frame): Add declaration.
16726 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
16727 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
16728 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
16729 * gcore.c (_initialize_gcore): Add declaration.
16730 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
16731 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
16732 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
16733 * gdbarch.c (_initialize_gdbarch): Add declaration.
16734 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
16735 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
16736 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
16737 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
16738 * go-lang.c (_initialize_go_language): Add declaration.
16739 * go32-nat.c (_initialize_go32_nat): Add declaration.
16740 * guile/guile.c (_initialize_guile): Add declaration.
16741 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
16742 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
16743 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
16744 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
16745 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
16746 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
16747 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
16748 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
16749 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
16750 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
16751 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
16752 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
16753 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
16754 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
16755 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
16756 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
16757 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
16758 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
16759 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
16760 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
16761 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
16762 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
16763 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
16764 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
16765 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
16766 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
16767 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
16768 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
16769 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
16770 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
16771 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
16772 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
16773 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
16774 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
16775 * infcall.c (_initialize_infcall): Add declaration.
16776 * infcmd.c (_initialize_infcmd): Add declaration.
16777 * inflow.c (_initialize_inflow): Add declaration.
16778 * infrun.c (_initialize_infrun): Add declaration.
16779 * interps.c (_initialize_interpreter): Add declaration.
16780 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
16781 * jit.c (_initialize_jit): Add declaration.
16782 * language.c (_initialize_language): Add declaration.
16783 * linux-fork.c (_initialize_linux_fork): Add declaration.
16784 * linux-nat.c (_initialize_linux_nat): Add declaration.
16785 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
16786 * linux-thread-db.c (_initialize_thread_db): Add declaration.
16787 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
16788 * m2-lang.c (_initialize_m2_language): Add declaration.
16789 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
16790 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
16791 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
16792 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
16793 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
16794 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
16795 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
16796 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
16797 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
16798 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
16799 * machoread.c (_initialize_machoread): Add declaration.
16800 * macrocmd.c (_initialize_macrocmd): Add declaration.
16801 * macroscope.c (_initialize_macroscope): Add declaration.
16802 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
16803 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
16804 * maint.c (_initialize_maint_cmds): Add declaration.
16805 * mdebugread.c (_initialize_mdebugread): Add declaration.
16806 * memattr.c (_initialize_mem): Add declaration.
16807 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
16808 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
16809 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
16810 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
16811 * mi/mi-main.c (_initialize_mi_main): Add declaration.
16812 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
16813 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
16814 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
16815 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
16816 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
16817 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
16818 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
16819 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
16820 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
16821 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
16822 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
16823 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
16824 * mipsread.c (_initialize_mipsread): Add declaration.
16825 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
16826 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
16827 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
16828 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
16829 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
16830 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
16831 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
16832 * nto-procfs.c (_initialize_procfs): Add declaration.
16833 * objc-lang.c (_initialize_objc_language): Add declaration.
16834 * observable.c (_initialize_observer): Add declaration.
16835 * opencl-lang.c (_initialize_opencl_language): Add declaration.
16836 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
16837 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
16838 * osabi.c (_initialize_gdb_osabi): Add declaration.
16839 * osdata.c (_initialize_osdata): Add declaration.
16840 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
16841 * parse.c (_initialize_parse): Add declaration.
16842 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
16843 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
16844 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
16845 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
16846 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
16847 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
16848 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
16849 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
16850 * printcmd.c (_initialize_printcmd): Add declaration.
16851 * probe.c (_initialize_probe): Add declaration.
16852 * proc-api.c (_initialize_proc_api): Add declaration.
16853 * proc-events.c (_initialize_proc_events): Add declaration.
16854 * proc-service.c (_initialize_proc_service): Add declaration.
16855 * procfs.c (_initialize_procfs): Add declaration.
16856 * producer.c (_initialize_producer): Add declaration.
16857 * psymtab.c (_initialize_psymtab): Add declaration.
16858 * python/python.c (_initialize_python): Add declaration.
16859 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
16860 * record-btrace.c (_initialize_record_btrace): Add declaration.
16861 * record-full.c (_initialize_record_full): Add declaration.
16862 * record.c (_initialize_record): Add declaration.
16863 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
16864 * regcache.c (_initialize_regcache): Add declaration.
16865 * reggroups.c (_initialize_reggroup): Add declaration.
16866 * remote-notif.c (_initialize_notif): Add declaration.
16867 * remote-sim.c (_initialize_remote_sim): Add declaration.
16868 * remote.c (_initialize_remote): Add declaration.
16869 * reverse.c (_initialize_reverse): Add declaration.
16870 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
16871 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
16872 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
16873 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
16874 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
16875 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
16876 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
16877 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
16878 Add declaration.
16879 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
16880 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
16881 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
16882 * rust-exp.y (_initialize_rust_exp): Add declaration.
16883 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
16884 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
16885 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
16886 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
16887 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
16888 * score-tdep.c (_initialize_score_tdep): Add declaration.
16889 * ser-go32.c (_initialize_ser_dos): Add declaration.
16890 * ser-mingw.c (_initialize_ser_windows): Add declaration.
16891 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
16892 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
16893 * ser-uds.c (_initialize_ser_socket): Add declaration.
16894 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
16895 * serial.c (_initialize_serial): Add declaration.
16896 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
16897 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
16898 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
16899 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
16900 * skip.c (_initialize_step_skip): Add declaration.
16901 * sol-thread.c (_initialize_sol_thread): Add declaration.
16902 * solib-aix.c (_initialize_solib_aix): Add declaration.
16903 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
16904 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
16905 * solib-frv.c (_initialize_frv_solib): Add declaration.
16906 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
16907 * solib-target.c (_initialize_solib_target): Add declaration.
16908 * solib.c (_initialize_solib): Add declaration.
16909 * source-cache.c (_initialize_source_cache): Add declaration.
16910 * source.c (_initialize_source): Add declaration.
16911 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
16912 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
16913 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
16914 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
16915 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
16916 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
16917 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
16918 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
16919 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
16920 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
16921 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
16922 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
16923 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
16924 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
16925 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
16926 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
16927 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
16928 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
16929 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
16930 * stabsread.c (_initialize_stabsread): Add declaration.
16931 * stack.c (_initialize_stack): Add declaration.
16932 * stap-probe.c (_initialize_stap_probe): Add declaration.
16933 * std-regs.c (_initialize_frame_reg): Add declaration.
16934 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
16935 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
16936 * symfile.c (_initialize_symfile): Add declaration.
16937 * symmisc.c (_initialize_symmisc): Add declaration.
16938 * symtab.c (_initialize_symtab): Add declaration.
16939 * target.c (_initialize_target): Add declaration.
16940 * target-connection.c (_initialize_target_connection): Add
16941 declaration.
16942 * target-dcache.c (_initialize_target_dcache): Add declaration.
16943 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
16944 * thread.c (_initialize_thread): Add declaration.
16945 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
16946 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
16947 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
16948 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
16949 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
16950 * tracectf.c (_initialize_ctf): Add declaration.
16951 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
16952 * tracefile.c (_initialize_tracefile): Add declaration.
16953 * tracepoint.c (_initialize_tracepoint): Add declaration.
16954 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
16955 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
16956 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
16957 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
16958 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
16959 * tui/tui-win.c (_initialize_tui_win): Add declaration.
16960 * tui/tui.c (_initialize_tui): Add declaration.
16961 * typeprint.c (_initialize_typeprint): Add declaration.
16962 * ui-style.c (_initialize_ui_style): Add declaration.
16963 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
16964 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
16965 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
16966 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
16967 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
16968 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
16969 * unittests/filtered_iterator-selftests.c
16970 (_initialize_filtered_iterator_selftests): Add declaration.
16971 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
16972 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
16973 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
16974 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
16975 * unittests/main-thread-selftests.c
16976 (_initialize_main_thread_selftests): Add declaration.
16977 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
16978 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
16979 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
16980 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
16981 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
16982 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
16983 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
16984 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
16985 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
16986 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
16987 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
16988 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
16989 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
16990 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
16991 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
16992 declaration.
16993 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
16994 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
16995 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
16996 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
16997 * user-regs.c (_initialize_user_regs): Add declaration.
16998 * utils.c (_initialize_utils): Add declaration.
16999 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
17000 * valops.c (_initialize_valops): Add declaration.
17001 * valprint.c (_initialize_valprint): Add declaration.
17002 * value.c (_initialize_values): Add declaration.
17003 * varobj.c (_initialize_varobj): Add declaration.
17004 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
17005 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
17006 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
17007 * windows-nat.c (_initialize_windows_nat): Add declaration.
17008 (_initialize_check_for_gdb_ini): Add declaration.
17009 (_initialize_loadable): Add declaration.
17010 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
17011 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
17012 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
17013 * xcoffread.c (_initialize_xcoffread): Add declaration.
17014 * xml-support.c (_initialize_xml_support): Add declaration.
17015 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
17016 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
17017 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
17018 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
17019
e2de1eec
SM
170202020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
17021
17022 * regformats/regdat.sh: Generate declaration for init function.
17023
e0037b4c
SM
170242020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
17025
17026 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
17027 up.
17028 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
17029 close_one_inferior>: New methods.
17030 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
17031 pass down target to find_inferior_pid.
17032 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
17033 Pass down target to find_inferior_ptid.
17034 (gdbsim_target::create_inferior): Pass down target to
17035 add_thread_silent.
17036 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
17037 target down to find_inferior_ptid and switch_to_thread.
17038 (gdbsim_target::close): Update to call close_one_inferior.
17039 (struct resume_data): Remove.
17040 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
17041 directly, rather than through a void pointer.
17042 (gdbsim_target::resume): Update to call resume_one_inferior.
17043
58920b5b
SM
170442020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
17045
17046 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
17047
4ec89149
PA
170482020-01-12 Pedro Alves <palves@redhat.com>
17049
17050 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
17051 directly for the current inferior instead of
17052 discard_all_inferiors.
17053 (discard_all_inferiors): Delete.
17054
7c392d1d
TT
170552020-01-11 Tom Tromey <tom@tromey.com>
17056
17057 * tui/tui-wingeneral.c (box_win): Check cli_styling.
17058 * tui/tui-winsource.c (tui_source_window_base::refill): Use
17059 deprecated_safe_get_selected_frame.
17060
d9ebdab7
TBA
170612020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
17062
17063 * inferior.c (print_inferior): Switch inferior before printing it.
17064
f3c469b9
PA
170652020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
17066 Pedro Alves <palves@redhat.com>
17067
17068 * progspace-and-thread.c (switch_to_program_space_and_thread):
17069 Assert there's an inferior for PSPACE. Use
17070 switch_to_inferior_no_thread to switch the inferior too.
17071 * progspace.c (program_space::~program_space): Call
17072 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
17073 (program_space::free_all_objfiles): Don't call clear_symtab_users
17074 here.
17075 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
17076
65c574f6
PA
170772020-01-10 Pedro Alves <palves@redhat.com>
17078
17079 * NEWS: Mention multi-target debugging, "info connections", and
17080 "add-inferior -no-connection".
17081
2f4fcf00
PA
170822020-01-10 Pedro Alves <palves@redhat.com>
17083
17084 * infrun.c: Include "target-connection.h".
17085 (check_multi_target_resumption): New.
17086 (proceed): Call it.
17087 * target-connection.c (make_target_connection_string): Make
17088 extern.
17089 * target-connection.h (make_target_connection_string): Declare.
17090
121b3efd
PA
170912020-01-10 Pedro Alves <palves@redhat.com>
17092
17093 * Makefile.in (COMMON_SFILES): Add target-connection.c.
17094 * inferior.c (uiout_field_connection): New function.
17095 (print_inferior): Add new "connection-id" column.
17096 (add_inferior_command): Show connection number/string of added
17097 inferior.
17098 * process-stratum-target.h
17099 (process_stratum_target::connection_string): New virtual method.
17100 (process_stratum_target::connection_number): New field.
17101 * remote.c (remote_target::connection_string): New override.
17102 * target-connection.c: New file.
17103 * target-connection.h: New file.
17104 * target.c (decref_target): Remove process_stratum targets from
17105 the connection list.
17106 (target_stack::push): Add process_stratum targets to the
17107 connection list.
17108
4f837581
PA
171092020-01-10 Pedro Alves <palves@redhat.com>
17110
17111 Revert:
17112 2016-04-12 Pedro Alves <palves@redhat.com>
17113 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
17114 Remove references to name.
17115 * serial.h (struct serial) <name>: Delete.
17116
f4ec508e
PA
171172020-01-10 Pedro Alves <palves@redhat.com>
17118
17119 * gdbarch-selftests.c (register_to_value_test): Remove "target
17120 already pushed" check.
17121
5b6d1e4f
PA
171222020-01-10 Pedro Alves <palves@redhat.com>
17123 John Baldwin <jhb@FreeBSD.org>
17124
17125 * aarch64-linux-nat.c
17126 (aarch64_linux_nat_target::thread_architecture): Adjust.
17127 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
17128 (task_command_1): Likewise.
17129 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
17130 (aix_thread_target::wait, aix_thread_target::fetch_registers)
17131 (aix_thread_target::store_registers)
17132 (aix_thread_target::thread_alive): Adjust.
17133 * amd64-fbsd-tdep.c: Include "inferior.h".
17134 (amd64fbsd_get_thread_local_address): Pass down target.
17135 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
17136 thread's gdbarch instead of target_gdbarch.
17137 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
17138 get_last_target_status.
17139 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
17140 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
17141 inferiors.
17142 (update_inserted_breakpoint_locations): Skip if inferiors with no
17143 execution.
17144 (update_global_location_list): When handling moribund locations,
17145 find representative inferior for location's pspace, and use thread
17146 count of its process_stratum target.
17147 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
17148 * bsd-uthread.c (bsd_uthread_target::wait): Use
17149 as_process_stratum_target and adjust thread_change_ptid and
17150 add_thread calls.
17151 (bsd_uthread_target::update_thread_list): Use
17152 as_process_stratum_target and adjust find_thread_ptid,
17153 thread_change_ptid and add_thread calls.
17154 * btrace.c (maint_btrace_packet_history_cmd): Adjust
17155 find_thread_ptid call.
17156 * corelow.c (add_to_thread_list): Adjust add_thread call.
17157 (core_target_open): Adjust add_thread_silent and thread_count
17158 calls.
17159 (core_target::pid_to_str): Adjust find_inferior_ptid call.
17160 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
17161 * event-top.c (async_disconnect): Pop targets from all inferiors.
17162 * exec.c (add_target_sections): Push exec target on all inferiors
17163 sharing the program space.
17164 (remove_target_sections): Remove the exec target from all
17165 inferiors sharing the program space.
17166 (exec_on_vfork): New.
17167 * exec.h (exec_on_vfork): Declare.
17168 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
17169 Pass it down.
17170 (fbsd_nat_target::update_thread_list): Adjust.
17171 (fbsd_nat_target::resume): Adjust.
17172 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
17173 down.
17174 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
17175 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
17176 get_thread_arch_regcache call.
17177 * fork-child.c (gdb_startup_inferior): Pass target down to
17178 startup_inferior and set_executing.
17179 * gdbthread.h (struct process_stratum_target): Forward declare.
17180 (add_thread, add_thread_silent, add_thread_with_info)
17181 (in_thread_list): Add process_stratum_target parameter.
17182 (find_thread_ptid(inferior*, ptid_t)): New overload.
17183 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
17184 parameter.
17185 (all_threads()): Delete overload.
17186 (all_threads, all_non_exited_threads): Add process_stratum_target
17187 parameter.
17188 (all_threads_safe): Use brace initialization.
17189 (thread_count): Add process_stratum_target parameter.
17190 (set_resumed, set_running, set_stop_requested, set_executing)
17191 (threads_are_executing, finish_thread_state): Add
17192 process_stratum_target parameter.
17193 (switch_to_thread): Use is_current_thread.
17194 * i386-fbsd-tdep.c: Include "inferior.h".
17195 (i386fbsd_get_thread_local_address): Pass down target.
17196 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
17197 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
17198 have_inferiors check.
17199 * inf-ptrace.c (inf_ptrace_target::create_inferior)
17200 (inf_ptrace_target::attach): Adjust.
17201 * infcall.c (run_inferior_call): Adjust.
17202 * infcmd.c (run_command_1): Pass target to
17203 scoped_finish_thread_state.
17204 (proceed_thread_callback): Skip inferiors with no execution.
17205 (continue_command): Rename 'all_threads' local to avoid hiding
17206 'all_threads' function. Adjust get_last_target_status call.
17207 (prepare_one_step): Adjust set_running call.
17208 (signal_command): Use user_visible_resume_target. Compare thread
17209 pointers instead of inferior_ptid.
17210 (info_program_command): Adjust to pass down target.
17211 (attach_command): Mark target's 'thread_executing' flag.
17212 (stop_current_target_threads_ns): New, factored out from ...
17213 (interrupt_target_1): ... this. Switch inferior before making
17214 target calls.
17215 * inferior-iter.h
17216 (struct all_inferiors_iterator, struct all_inferiors_range)
17217 (struct all_inferiors_safe_range)
17218 (struct all_non_exited_inferiors_range): Filter on
17219 process_stratum_target too. Remove explicit.
17220 * inferior.c (inferior::inferior): Push dummy target on target
17221 stack.
17222 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
17223 Add process_stratum_target parameter, and pass it down.
17224 (have_live_inferiors): Adjust.
17225 (switch_to_inferior_and_push_target): New.
17226 (add_inferior_command, clone_inferior_command): Handle
17227 "-no-connection" parameter. Use
17228 switch_to_inferior_and_push_target.
17229 (_initialize_inferior): Mention "-no-connection" option in
17230 the help of "add-inferior" and "clone-inferior" commands.
17231 * inferior.h: Include "process-stratum-target.h".
17232 (interrupt_target_1): Use bool.
17233 (struct inferior) <push_target, unpush_target, target_is_pushed,
17234 find_target_beneath, top_target, process_target, target_at,
17235 m_stack>: New.
17236 (discard_all_inferiors): Delete.
17237 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
17238 (all_inferiors, all_non_exited_inferiors): Add
17239 process_stratum_target parameter.
17240 * infrun.c: Include "gdb_select.h" and <unordered_map>.
17241 (target_last_proc_target): New global.
17242 (follow_fork_inferior): Push target on new inferior. Pass target
17243 to add_thread_silent. Call exec_on_vfork. Handle target's
17244 reference count.
17245 (follow_fork): Adjust get_last_target_status call. Also consider
17246 target.
17247 (follow_exec): Push target on new inferior.
17248 (struct execution_control_state) <target>: New field.
17249 (user_visible_resume_target): New.
17250 (do_target_resume): Call target_async.
17251 (resume_1): Set target's threads_executing flag. Consider resume
17252 target.
17253 (commit_resume_all_targets): New.
17254 (proceed): Also consider resume target. Skip threads of inferiors
17255 with no execution. Commit resumtion in all targets.
17256 (start_remote): Pass current inferior to wait_for_inferior.
17257 (infrun_thread_stop_requested): Consider target as well. Pass
17258 thread_info pointer to clear_inline_frame_state instead of ptid.
17259 (infrun_thread_thread_exit): Consider target as well.
17260 (random_pending_event_thread): New inferior parameter. Use it.
17261 (do_target_wait): Rename to ...
17262 (do_target_wait_1): ... this. Add inferior parameter, and pass it
17263 down.
17264 (threads_are_resumed_pending_p, do_target_wait): New.
17265 (prepare_for_detach): Adjust calls.
17266 (wait_for_inferior): New inferior parameter. Handle it. Use
17267 do_target_wait_1 instead of do_target_wait.
17268 (fetch_inferior_event): Adjust. Switch to representative
17269 inferior. Pass target down.
17270 (set_last_target_status): Add process_stratum_target parameter.
17271 Save target in global.
17272 (get_last_target_status): Add process_stratum_target parameter and
17273 handle it.
17274 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
17275 (context_switch): Check inferior_ptid == null_ptid before calling
17276 inferior_thread().
17277 (get_inferior_stop_soon): Pass down target.
17278 (wait_one): Rename to ...
17279 (poll_one_curr_target): ... this.
17280 (struct wait_one_event): New.
17281 (wait_one): New.
17282 (stop_all_threads): Adjust.
17283 (handle_no_resumed, handle_inferior_event): Adjust to consider the
17284 event's target.
17285 (switch_back_to_stepped_thread): Also consider target.
17286 (print_stop_event): Update.
17287 (normal_stop): Update. Also consider the resume target.
17288 * infrun.h (wait_for_inferior): Remove declaration.
17289 (user_visible_resume_target): New declaration.
17290 (get_last_target_status, set_last_target_status): New
17291 process_stratum_target parameter.
17292 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
17293 process_stratum_target parameter, and use it.
17294 (clear_inline_frame_state (thread_info*)): New.
17295 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
17296 process_stratum_target parameter.
17297 (clear_inline_frame_state (thread_info*)): Declare.
17298 * linux-fork.c (delete_checkpoint_command): Pass target down to
17299 find_thread_ptid.
17300 (checkpoint_command): Adjust.
17301 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
17302 instead of just tweaking inferior_ptid.
17303 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
17304 (exit_lwp): Pass target down to find_thread_ptid.
17305 (attach_proc_task_lwp_callback): Pass target down to
17306 add_thread/set_running/set_executing.
17307 (linux_nat_target::attach): Pass target down to
17308 thread_change_ptid.
17309 (get_detach_signal): Pass target down to find_thread_ptid.
17310 Consider last target status's target.
17311 (linux_resume_one_lwp_throw, resume_lwp)
17312 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
17313 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
17314 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
17315 (linux_nat_target::async_wait_fd): New.
17316 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
17317 target down.
17318 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
17319 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
17320 * linux-thread-db.c (struct thread_db_info::process_target): New
17321 field.
17322 (add_thread_db_info): Save target.
17323 (get_thread_db_info): New process_stratum_target parameter. Also
17324 match target.
17325 (delete_thread_db_info): New process_stratum_target parameter.
17326 Also match target.
17327 (thread_from_lwp): Adjust to pass down target.
17328 (thread_db_notice_clone): Pass down target.
17329 (check_thread_db_callback): Pass down target.
17330 (try_thread_db_load_1): Always push the thread_db target.
17331 (try_thread_db_load, record_thread): Pass target down.
17332 (thread_db_target::detach): Pass target down. Always unpush the
17333 thread_db target.
17334 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
17335 target down. Always unpush the thread_db target.
17336 (find_new_threads_callback, thread_db_find_new_threads_2)
17337 (thread_db_target::update_thread_list): Pass target down.
17338 (thread_db_target::pid_to_str): Pass current inferior down.
17339 (thread_db_target::get_thread_local_address): Pass target down.
17340 (thread_db_target::resume, maintenance_check_libthread_db): Pass
17341 target down.
17342 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
17343 * procfs.c (procfs_target::procfs_init_inferior): Declare.
17344 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
17345 (procfs_init_inferior): Rename to ...
17346 (procfs_target::procfs_init_inferior): ... this and adjust.
17347 (procfs_target::create_inferior, procfs_notice_thread)
17348 (procfs_do_thread_registers): Adjust.
17349 * ppc-fbsd-tdep.c: Include "inferior.h".
17350 (ppcfbsd_get_thread_local_address): Pass down target.
17351 * proc-service.c (ps_xfer_memory): Switch current inferior and
17352 program space as well.
17353 (get_ps_regcache): Pass target down.
17354 * process-stratum-target.c
17355 (process_stratum_target::thread_address_space)
17356 (process_stratum_target::thread_architecture): Pass target down.
17357 * process-stratum-target.h
17358 (process_stratum_target::threads_executing): New field.
17359 (as_process_stratum_target): New.
17360 * ravenscar-thread.c
17361 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
17362 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
17363 down.
17364 * record-btrace.c (record_btrace_target::info_record): Adjust.
17365 (record_btrace_target::record_method)
17366 (record_btrace_target::record_is_replaying)
17367 (record_btrace_target::fetch_registers)
17368 (get_thread_current_frame_id, record_btrace_target::resume)
17369 (record_btrace_target::wait, record_btrace_target::stop): Pass
17370 target down.
17371 * record-full.c (record_full_wait_1): Switch to event thread.
17372 Pass target down.
17373 * regcache.c (regcache::regcache)
17374 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
17375 process_stratum_target parameter and handle it.
17376 (current_thread_target): New global.
17377 (get_thread_regcache): Add process_stratum_target parameter and
17378 handle it. Switch inferior before calling target method.
17379 (get_thread_regcache): Pass target down.
17380 (get_thread_regcache_for_ptid): Pass target down.
17381 (registers_changed_ptid): Add process_stratum_target parameter and
17382 handle it.
17383 (registers_changed_thread, registers_changed): Pass target down.
17384 (test_get_thread_arch_aspace_regcache): New.
17385 (current_regcache_test): Define a couple local test_target_ops
17386 instances and use them for testing.
17387 (readwrite_regcache): Pass process_stratum_target parameter.
17388 (cooked_read_test, cooked_write_test): Pass mock_target down.
17389 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
17390 (get_thread_arch_aspace_regcache): Add process_stratum_target
17391 parameter.
17392 (regcache::target): New method.
17393 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
17394 (regcache::registers_changed_ptid): Add process_stratum_target
17395 parameter.
17396 (regcache::m_target): New field.
17397 (registers_changed_ptid): Add process_stratum_target parameter.
17398 * remote.c (remote_state::supports_vCont_probed): New field.
17399 (remote_target::async_wait_fd): New method.
17400 (remote_unpush_and_throw): Add remote_target parameter.
17401 (get_current_remote_target): Adjust.
17402 (remote_target::remote_add_inferior): Push target.
17403 (remote_target::remote_add_thread)
17404 (remote_target::remote_notice_new_inferior)
17405 (get_remote_thread_info): Pass target down.
17406 (remote_target::update_thread_list): Skip threads of inferiors
17407 bound to other targets. (remote_target::close): Don't discard
17408 inferiors. (remote_target::add_current_inferior_and_thread)
17409 (remote_target::process_initial_stop_replies)
17410 (remote_target::start_remote)
17411 (remote_target::remote_serial_quit_handler): Pass down target.
17412 (remote_target::remote_unpush_target): New remote_target
17413 parameter. Unpush the target from all inferiors.
17414 (remote_target::remote_unpush_and_throw): New remote_target
17415 parameter. Pass it down.
17416 (remote_target::open_1): Check whether the current inferior has
17417 execution instead of checking whether any inferior is live. Pass
17418 target down.
17419 (remote_target::remote_detach_1): Pass down target. Use
17420 remote_unpush_target.
17421 (extended_remote_target::attach): Pass down target.
17422 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
17423 (remote_target::append_resumption): Pass down target.
17424 (remote_target::append_pending_thread_resumptions)
17425 (remote_target::remote_resume_with_hc, remote_target::resume)
17426 (remote_target::commit_resume): Pass down target.
17427 (remote_target::remote_stop_ns): Check supports_vCont_probed.
17428 (remote_target::interrupt_query)
17429 (remote_target::remove_new_fork_children)
17430 (remote_target::check_pending_events_prevent_wildcard_vcont)
17431 (remote_target::remote_parse_stop_reply)
17432 (remote_target::process_stop_reply): Pass down target.
17433 (first_remote_resumed_thread): New remote_target parameter. Pass
17434 it down.
17435 (remote_target::wait_as): Pass down target.
17436 (unpush_and_perror): New remote_target parameter. Pass it down.
17437 (remote_target::readchar, remote_target::remote_serial_write)
17438 (remote_target::getpkt_or_notif_sane_1)
17439 (remote_target::kill_new_fork_children, remote_target::kill): Pass
17440 down target.
17441 (remote_target::mourn_inferior): Pass down target. Use
17442 remote_unpush_target.
17443 (remote_target::core_of_thread)
17444 (remote_target::remote_btrace_maybe_reopen): Pass down target.
17445 (remote_target::pid_to_exec_file)
17446 (remote_target::thread_handle_to_thread_info): Pass down target.
17447 (remote_target::async_wait_fd): New.
17448 * riscv-fbsd-tdep.c: Include "inferior.h".
17449 (riscv_fbsd_get_thread_local_address): Pass down target.
17450 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
17451 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
17452 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
17453 Adjust.
17454 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
17455 * solib-svr4.c (enable_break): Pass down target.
17456 * spu-multiarch.c (parse_spufs_run): Pass down target.
17457 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
17458 * target-delegates.c: Regenerate.
17459 * target.c (g_target_stack): Delete.
17460 (current_top_target): Return the current inferior's top target.
17461 (target_has_execution_1): Refer to the passed-in inferior's top
17462 target.
17463 (target_supports_terminal_ours): Check whether the initial
17464 inferior was already created.
17465 (decref_target): New.
17466 (target_stack::push): Incref/decref the target.
17467 (push_target, push_target, unpush_target): Adjust.
17468 (target_stack::unpush): Defref target.
17469 (target_is_pushed): Return bool. Adjust to refer to the current
17470 inferior's target stack.
17471 (dispose_inferior): Delete, and inline parts ...
17472 (target_preopen): ... here. Only dispose of the current inferior.
17473 (target_detach): Hold strong target reference while detaching.
17474 Pass target down.
17475 (target_thread_name): Add assertion.
17476 (target_resume): Pass down target.
17477 (target_ops::beneath, find_target_at): Adjust to refer to the
17478 current inferior's target stack.
17479 (get_dummy_target): New.
17480 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
17481 has a thread running.
17482 (initialize_targets): Rename to ...
17483 (_initialize_target): ... this.
17484 * target.h: Include "gdbsupport/refcounted-object.h".
17485 (struct target_ops): Inherit refcounted_object.
17486 (target_ops::shortname, target_ops::longname): Make const.
17487 (target_ops::async_wait_fd): New method.
17488 (decref_target): Declare.
17489 (struct target_ops_ref_policy): New.
17490 (target_ops_ref): New typedef.
17491 (get_dummy_target): Declare function.
17492 (target_is_pushed): Return bool.
17493 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
17494 (all_matching_threads_iterator::all_matching_threads_iterator):
17495 Handle filter target.
17496 * thread-iter.h (struct all_matching_threads_iterator, struct
17497 all_matching_threads_range, class all_non_exited_threads_range):
17498 Filter by target too. Remove explicit.
17499 * thread.c (threads_executing): Delete.
17500 (inferior_thread): Pass down current inferior.
17501 (clear_thread_inferior_resources): Pass down thread pointer
17502 instead of ptid_t.
17503 (add_thread_silent, add_thread_with_info, add_thread): Add
17504 process_stratum_target parameter. Use it for thread and inferior
17505 searches.
17506 (is_current_thread): New.
17507 (thread_info::deletable): Use it.
17508 (find_thread_ptid, thread_count, in_thread_list)
17509 (thread_change_ptid, set_resumed, set_running): New
17510 process_stratum_target parameter. Pass it down.
17511 (set_executing): New process_stratum_target parameter. Pass it
17512 down. Adjust reference to 'threads_executing'.
17513 (threads_are_executing): New process_stratum_target parameter.
17514 Adjust reference to 'threads_executing'.
17515 (set_stop_requested, finish_thread_state): New
17516 process_stratum_target parameter. Pass it down.
17517 (switch_to_thread): Also match inferior.
17518 (switch_to_thread): New process_stratum_target parameter. Pass it
17519 down.
17520 (update_threads_executing): Reimplement.
17521 * top.c (quit_force): Pop targets from all inferior.
17522 (gdb_init): Don't call initialize_targets.
17523 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
17524 Declare.
17525 (windows_add_thread, windows_delete_thread): Adjust.
17526 (get_windows_debug_event): Rename to ...
17527 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
17528 * tracefile-tfile.c (tfile_target_open): Pass down target.
17529 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
17530 Forward declare.
17531 (switch_to_thread): Add process_stratum_target parameter.
17532 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
17533 parameter. Use it.
17534 (mi_on_resume): Pass target down.
17535 * nat/fork-inferior.c (startup_inferior): Add
17536 process_stratum_target parameter. Pass it down.
17537 * nat/fork-inferior.h (startup_inferior): Add
17538 process_stratum_target parameter.
17539 * python/py-threadevent.c (py_get_event_thread): Pass target down.
17540
75c6c844
PA
175412020-01-10 Pedro Alves <palves@redhat.com>
17542
17543 * remote.c (remote_target::start_remote): Don't set inferior_ptid
17544 directly. Instead find the first thread in the thread list and
17545 use switch_to_thread.
17546
78f2c40a
PA
175472020-01-10 Pedro Alves <palves@redhat.com>
17548
17549 * remote.c (remote_target::remote_add_inferior): Don't bind a
17550 process to the current inferior if the current inferior is already
17551 bound to a process.
17552
e7af6c70
TBA
175532020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
17554 Pedro Alves <palves@redhat.com>
17555
17556 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
17557 If no process is specified, return null_ptid instead of
17558 inferior_ptid.
17559 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
17560 TARGET_WAITKIND_SIGNALLED with no pid.
17561
31ba933e
PA
175622020-01-10 Pedro Alves <palves@redhat.com>
17563
17564 * remote.c (first_remote_resumed_thread): New.
17565 (remote_target::wait_as): Use it as default event_ptid instead of
17566 inferior_ptid.
17567
735fc2ca
PA
175682020-01-10 Pedro Alves <palves@redhat.com>
17569
17570 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
17571
c17e02e1
PA
175722020-01-10 Pedro Alves <palves@redhat.com>
17573
17574 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
17575 not -1.
17576
ab1ddbcf
PA
175772020-01-10 Pedro Alves <palves@redhat.com>
17578
17579 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
17580 ptid to get_last_target_status.
17581 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
17582 ptid to get_last_target_status.
17583 * infcmd.c (continue_command): Don't pass a target_waitstatus to
17584 get_last_target_status.
17585 (info_program_command): Don't pass a target_waitstatus to
17586 get_last_target_status.
17587 * infrun.c (init_wait_for_inferior): Use
17588 nullify_last_target_wait_ptid.
17589 (get_last_target_status): Handle nullptr arguments.
17590 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
17591 (print_stop_event): Don't pass a ptid to get_last_target_status.
17592 (normal_stop): Don't pass a ptid to get_last_target_status.
17593 * infrun.h (get_last_target_status, set_last_target_status): Move
17594 comments here and update.
17595 (nullify_last_target_wait_ptid): Declare.
17596 * linux-fork.c (fork_load_infrun_state): Remove local extern
17597 declaration of nullify_last_target_wait_ptid.
17598 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
17599 to get_last_target_status.
17600
f3f8ece4
PA
176012020-01-10 Pedro Alves <palves@redhat.com>
17602
17603 * gdbthread.h (scoped_restore_current_thread)
17604 <dont_restore, restore, m_dont_restore>: Declare.
17605 * thread.c (thread_alive): Add assertion. Return bool.
17606 (switch_to_thread_if_alive): New.
17607 (prune_threads): Switch inferior/thread.
17608 (print_thread_info_1): Switch thread before calling target methods.
17609 (scoped_restore_current_thread::restore): New, factored out from
17610 ...
17611 (scoped_restore_current_thread::~scoped_restore_current_thread):
17612 ... this.
17613 (scoped_restore_current_thread::scoped_restore_current_thread):
17614 Add assertion.
17615 (thread_apply_all_command, thread_select): Use
17616 switch_to_thread_if_alive.
17617 * infrun.c (proceed, restart_threads, handle_signal_stop)
17618 (switch_back_to_stepped_thread): Switch current thread before
17619 calling target methods.
17620
db2d40f7
PA
176212020-01-10 Pedro Alves <palves@redhat.com>
17622
17623 * inferior.c (switch_to_inferior_no_thread): New function,
17624 factored out from ...
17625 (inferior_command): ... here.
17626 * inferior.h (switch_to_inferior_no_thread): Declare.
17627 * mi/mi-main.c (run_one_inferior): Use
17628 switch_to_inferior_no_thread.
17629
bd420a2d
PA
176302020-01-10 Pedro Alves <palves@redhat.com>
17631
17632 * infcmd.c (kill_command): Remove dead code.
17633
ddf5db90
PA
176342020-01-10 Pedro Alves <palves@redhat.com>
17635
17636 * remote.c (remote_target::mourn_inferior): No longer check
17637 whether the target is running.
17638
5018ce90
PA
176392020-01-10 Pedro Alves <palves@redhat.com>
17640
17641 * corelow.c (core_target::has_execution): Change parameter type to
17642 inferior pointer.
17643 * inferior.c (number_of_live_inferiors): Use
17644 inferior::has_execution instead of target_has_execution_1.
17645 * inferior.h (inferior::has_execution): New.
17646 * linux-thread-db.c (thread_db_target::update_thread_list): Use
17647 inferior::has_execution instead of target_has_execution_1.
17648 * process-stratum-target.c
17649 (process_stratum_target::has_execution): Change parameter type to
17650 inferior pointer. Check the inferior's PID instead of
17651 inferior_ptid.
17652 * process-stratum-target.h
17653 (process_stratum_target::has_execution): Change parameter type to
17654 inferior pointer.
17655 * record-full.c (record_full_core_target::has_execution): Change
17656 parameter type to inferior pointer.
17657 * target.c (target_has_execution_1): Change parameter type to
17658 inferior pointer.
17659 (target_has_execution_current): Adjust.
17660 * target.h (target_ops::has_execution): Change parameter type to
17661 inferior pointer.
17662 (target_has_execution_1): Change parameter type to inferior
17663 pointer. Change return type to bool.
17664 * tracefile.h (tracefile_target::has_execution): Change parameter
17665 type to inferior pointer.
17666
74375d18
PA
176672020-01-10 Pedro Alves <palves@redhat.com>
17668
17669 * exceptions.c (print_flush): Remove current_top_target() check.
17670
acdf84a6
PA
176712020-01-10 Pedro Alves <palves@redhat.com>
17672
17673 * remote.c (show_remote_exec_file): Show the current inferior's
17674 exec-file instead of the command variable's value.
17675
ec506636
PA
176762020-01-10 Pedro Alves <palves@redhat.com>
17677
17678 * record-full.c (record_full_resume_ptid): New global.
17679 (record_full_target::resume): Set it.
17680 (record_full_wait_1): Use record_full_resume_ptid instead of
17681 inferior_ptid.
17682
873657b9
PA
176832020-01-10 Pedro Alves <palves@redhat.com>
17684
17685 * gdbthread.h (scoped_restore_current_thread)
17686 <dont_restore, restore, m_dont_restore>: Declare.
17687 * thread.c (thread_alive): Add assertion. Return bool.
17688 (switch_to_thread_if_alive): New.
17689 (prune_threads): Switch inferior/thread.
17690 (print_thread_info_1): Switch thread before calling target methods.
17691 (scoped_restore_current_thread::restore): New, factored out from
17692 ...
17693 (scoped_restore_current_thread::~scoped_restore_current_thread):
17694 ... this.
17695 (scoped_restore_current_thread::scoped_restore_current_thread):
17696 Add assertion.
17697 (thread_apply_all_command, thread_select): Use
17698 switch_to_thread_if_alive.
17699
7f0ae84c
GB
177002020-01-10 George Barrett <bob@bob131.so>
17701
17702 * stap-probe.c (stap_modify_semaphore): Don't check for null
17703 semaphores.
17704 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
17705 for null semaphores.
17706
f5a7c406
AB
177072020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
17708
17709 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
17710 all source windows, and maintain horizontal scroll status while
17711 doing so.
17712
9ae6bf64
TT
177132020-01-09 Tom Tromey <tom@tromey.com>
17714
17715 PR tui/18932:
17716 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
17717 update_source_window, not print_source_lines.
17718
b2efe70c
AB
177192020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
17720
17721 * tui/tui.c (tui_enable): Register tui hooks after calling
17722 tui_display_main.
17723
5f23a082
CB
177242020-01-09 Christian Biesinger <cbiesinger@google.com>
17725
17726 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
17727
3061113b
SM
177282020-01-08 Simon Marchi <simon.marchi@efficios.com>
17729
17730 * thread.c (print_thread_info_1): Fix indentation.
17731
57d75002
CB
177322020-01-09 Christian Biesinger <cbiesinger@google.com>
17733
17734 * symtab.c (general_symbol_info::compute_and_set_names): Move the
17735 unique_xmalloc_ptr outside the if to always free the demangled name.
17736
6a053cb1
TT
177372020-01-08 Tom Tromey <tromey@adacore.com>
17738
17739 * xcoffread.c (enter_line_range, read_xcoff_symtab)
17740 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
17741 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
17742 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
17743 Remove.
17744 (section_offsets): New typedef.
17745 * symtab.c (fixup_section, get_msymbol_address): Update.
17746 * symmisc.c (dump_msymbols): Update.
17747 * symfile.h (relative_addr_info_to_section_offsets)
17748 (symfile_map_offsets_to_segments): Update.
17749 * symfile.c (build_section_addr_info_from_objfile)
17750 (init_objfile_sect_indices): Update.
17751 (struct place_section_arg): Change type of "offsets".
17752 (place_section): Update.
17753 (relative_addr_info_to_section_offsets): Change type of
17754 "section_offsets". Remove "num_sections" parameter.
17755 (default_symfile_offsets, syms_from_objfile_1)
17756 (set_objfile_default_section_offset): Update.
17757 (reread_symbols): No need to preserve section offsets by hand.
17758 (symfile_map_offsets_to_segments): Change type of "offsets".
17759 * stap-probe.c (relocate_address): Update.
17760 * stabsread.h (process_one_symbol): Update.
17761 * solib-target.c (struct lm_info_target) <offsets>: Change type.
17762 (solib_target_relocate_section_addresses): Update.
17763 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
17764 Update.
17765 * solib-frv.c (frv_relocate_main_executable): Update.
17766 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
17767 * solib-aix.c (solib_aix_get_section_offsets): Change return
17768 type.
17769 (solib_aix_solib_create_inferior_hook): Update.
17770 * remote.c (remote_target::get_offsets): Update.
17771 * psymtab.c (find_pc_sect_psymtab): Update.
17772 * psympriv.h (struct partial_symbol) <address, text_low,
17773 text_high>: Update.
17774 * objfiles.h (obj_section_offset): Update.
17775 (struct objfile) <section_offsets>: Change type.
17776 <num_sections>: Remove.
17777 (objfile_relocate): Update.
17778 * objfiles.c (entry_point_address_query): Update
17779 (relocate_one_symbol): Change type of "section_offsets".
17780 (objfile_relocate1, objfile_relocate1): Change type of
17781 "new_offsets".
17782 (objfile_rebase1): Update.
17783 * mipsread.c (mipscoff_symfile_read): Update.
17784 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
17785 parameter.
17786 * mdebugread.c (parse_symbol): Change type of "section_offsets".
17787 (parse_external, psymtab_to_symtab_1): Update.
17788 * machoread.c (macho_symfile_offsets): Update.
17789 * ia64-tdep.c (ia64_find_unwind_table): Update.
17790 * hppa-tdep.c (read_unwind_info): Update.
17791 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
17792 * dwarf2read.c (create_addrmap_from_index)
17793 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
17794 (process_psymtab_comp_unit_reader, add_partial_symbol)
17795 (add_partial_subprogram, process_full_comp_unit)
17796 (read_file_scope, read_func_scope, read_lexical_block_scope)
17797 (read_call_site_scope, dwarf2_rnglists_process)
17798 (dwarf2_ranges_process, dwarf2_ranges_read)
17799 (dwarf_decode_lines_1, var_decode_location, new_symbol)
17800 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
17801 Update.
17802 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
17803 Update.
17804 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
17805 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
17806 (process_one_symbol): Change type of "section_offsets".
17807 * ctfread.c (get_objfile_text_range): Update.
17808 * coffread.c (coff_symtab_read, enter_linenos)
17809 (process_coff_symbol): Update.
17810 * coff-pe-read.c (add_pe_forwarded_sym): Update.
17811 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
17812
456e800a
TT
178132020-01-08 Tom Tromey <tromey@adacore.com>
17814
17815 * dwarf2read.c (parse_macro_definition): Use std::string.
17816 (parse_macro_definition): Likewise.
17817
6dfa2fc2
TT
178182020-01-08 Tom Tromey <tromey@adacore.com>
17819
17820 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
17821 (ATTR_ALLOC_CHUNK): Remove.
17822
421d1616
TT
178232020-01-08 Tom Tromey <tromey@adacore.com>
17824
17825 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
17826
43816ebc
TT
178272020-01-08 Tom Tromey <tromey@adacore.com>
17828
17829 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
17830 (dwarf2_compute_name, open_dwo_file): Likewise.
17831 (process_enumeration_scope): Use std::vector.
17832 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
17833 (partial_die_info::fixup, dwarf2_start_subfile)
17834 (guess_full_die_structure_name, dwarf2_name): Likewise.
17835 (determine_prefix): Update.
17836 (guess_full_die_structure_name): Make return type const.
17837 (partial_die_full_name): Return unique_xmalloc_ptr.
17838 (DW_FIELD_ALLOC_CHUNK): Remove.
17839
4212d509
TT
178402020-01-07 Tom Tromey <tromey@adacore.com>
17841
17842 PR build/24937:
17843 * stap-probe.c (class stap_static_probe_ops): Add constructor.
17844
06a6207a
JT
178452020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
17846
17847 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
17848
153d79c4
AB
178492020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
17850
17851 * stack.c (print_frame_info): Move disassemble_next_line code
17852 inside source_print block.
17853
66182876
EZ
178542020-01-06 Eli Zaretskii <eliz@gnu.org>
17855
17856 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
17857 gdb/signals.h, as we are now using native signal symbols.
17858
cbfa8581
SV
178592020-01-06 Shahab Vahedi <shahab@synopsys.com>
17860
17861 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
17862 overflow by an early check of content vs threshold.
aac66a4c 17863 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
17864 Likewise.
17865
3f602821
EZ
178662020-01-06 Eli Zaretskii <eliz@gnu.org>
17867
17868 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
17869
a08c904d
JT
178702020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
17871
17872 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
17873 export table if no section contains it's RVA.
17874
89a65580
EZ
178752020-01-06 Eli Zaretskii <eliz@gnu.org>
17876
17877 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
17878
8b7fcda2
HD
178792020-01-06 Hannes Domani <ssbssa@yahoo.de>
17880
17881 * source.c (print_source_lines_base): Set last_line_listed.
17882
a61b4f69
SV
178832020-01-06 Shahab Vahedi <shahab@synopsys.com>
17884
17885 * tui/tui-disasm.c: Remove trailing spaces.
17886
559e7e50
EZ
178872020-01-06 Eli Zaretskii <eliz@gnu.org>
17888 Pedro Alves <palves@redhat.com>
17889
17890 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
17891 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
17892 (windows_gdb_signal_to_target): New function, uses the above
17893 enumeration to convert GDB internal signal codes to equivalent
17894 Windows codes.
17895 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
17896 * windows-nat.c: Include "gdb_wait.h".
17897 (get_windows_debug_event): Extract the fatal exception from the
17898 exit status and convert to the equivalent Posix signal number.
17899 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
17900 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
17901 * gdbsupport/gdb_wait.c: New file, implements
17902 windows_status_to_termsig.
17903 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
17904 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
17905
f2302a34
AB
179062020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
17907
17908 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
17909 show_layout.
17910
6a5206eb
LM
179112020-01-05 Luis Machado <luis.machado@linaro.org>
17912
17913 * aarch64-linux-nat.c
17914 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
17915 and bfd_mach_aarch64.
17916
6ec1d75e
PW
179172020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
17918
17919 * ui-file.c (stdio_file::can_emit_style_escape)
17920 (tee_file::can_emit_style_escape): Ensure style is used also on
17921 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
17922 to gdb_stdout.
17923 * main.c (set_gdb_data_directory): Use file style to output the
17924 warning that the given pathname is not a directory.
17925 * top.c (show_history_filename, gdb_safe_append_history)
17926 (show_gdb_datadir): Use file style.
17927
44f81a76
HD
179282020-01-03 Hannes Domani <ssbssa@yahoo.de>
17929
17930 * solib-target.c (struct lm_info_target):
17931 Change offsets to be a unique_xmalloc_ptr.
17932 (solib_target_relocate_section_addresses): Update.
17933
25057eb0
HD
179342020-01-03 Hannes Domani <ssbssa@yahoo.de>
17935
17936 * windows-nat.c (windows_clear_solib): Free so_list linked list.
17937
6e2118f5
BE
179382020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
17939
17940 * MAINTAINERS (Write After Approval): Add myself.
17941
8133c7dc
LM
179422020-01-02 Luis Machado <luis.machado@linaro.org>
17943
17944 * proc-service.c (get_ps_regcache): Remove reference to obsolete
17945 Cell BE architecture.
17946 * target.h (struct target_ops) <thread_architecture>: Likewise.
17947
48189bec
HD
179482020-01-01 Hannes Domani <ssbssa@yahoo.de>
17949
17950 * Makefile.in: Use INSTALL_PROGRAM_ENV.
17951
ead1063b
HD
179522020-01-01 Hannes Domani <ssbssa@yahoo.de>
17953
17954 * MAINTAINERS (Write After Approval): Add myself.
17955
e5d78223
JB
179562020-01-01 Joel Brobecker <brobecker@adacore.com>
17957
17958 * gdbarch.sh: Update copyright year range of generated files.
17959
b811d2c2
JB
179602020-01-01 Joel Brobecker <brobecker@adacore.com>
17961
17962 Update copyright year range in all GDB files.
17963
5f4def5c
JB
179642020-01-01 Joel Brobecker <brobecker@adacore.com>
17965
17966 * copyright.py: Convert to Python 3.
17967
51fd4002
JB
179682020-01-01 Joel Brobecker <brobecker@adacore.com>
17969
17970 * copyright.py: Adapt after move of gnulib directory from gdb
17971 directory to toplevel directory.
17972
5fb651f2
JB
179732020-01-01 Joel Brobecker <brobecker@adacore.com>
17974
17975 * copyright.py (main): Exit if run from the wrong directory.
17976
5dd8bf88
JB
179772020-01-01 Joel Brobecker <brobecker@adacore.com>
17978
17979 * top.c (print_gdb_version): Change copyright year to 2020.
17980
9f71dacb 179812020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 17982
9f71dacb 17983 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 17984
9f71dacb 17985For older changes see ChangeLog-2019.
c906108c
SS
17986\f
17987Local Variables:
17988mode: change-log
17989left-margin: 8
17990fill-column: 74
17991version-control: never
57da7796 17992coding: utf-8
c906108c 17993End:
This page took 3.499496 seconds and 4 git commands to generate.