]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
[GOLD] gcc-11 stringop-overflow warning
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
1f58f6c2
TBA
12020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2
3 * completer.c (complete_explicit_location): Also add keywords
4 that start with '-' to the completion list.
5
5759831a
TBA
62020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7
8 * linespec.c (linespec_lexer_lex_keyword): The "-force-condition"
9 keyword may be followed by any keyword.
10 * breakpoint.c (find_condition_and_thread): Advance 'tok' by
11 'toklen' in the case for "-force-condition".
12
21e051b3
TBA
132020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14
15 * main.c (catch_command_errors): Add a flag parameter; invoke
16 `bpstat_do_actions` if the flag is set.
17 (execute_cmdargs): Update a call to `catch_command_errors`.
18
f51f9f1d
TV
192020-12-07 Tom de Vries <tdevries@suse.de>
20
21 * ada-lang.c (replace_operator_with_call): Handle shrink resize.
22
00158a68
TT
232020-12-06 Tom Tromey <tom@tromey.com>
24
25 PR ada/26999
26 * ada-lang.c (replace_operator_with_call): Rewrite.
27
296cfb88
GF
282020-12-06 Giancarlo Frix <gfrix@rocketsoftware.com> (tiny change)
29
30 PR breakpoints/27009
31 * s390-tdep.h (op_bc): Correct BC opcode value.
32
63c457b9
JB
332020-12-06 Joel Brobecker <brobecker@adacore.com>
34
35 * gmp-utils.h (gdb_mpz::safe_export): New private method.
36 (gdb_mpz::as_integer): Reimplement using gdb_mpz::safe_export.
37 * gmp-utils.c (gdb_mpz::write): Rewrite using gdb_mpz::safe_export.
38 (gdb_mpz::safe_export): New method.
39 * unittests/gmp-utils-selftests .c (gdb_mpz_as_integer):
40 Update function description.
41 (check_as_integer_raises_out_of_range_error): New function.
42 (gdb_mpz_as_integer_out_of_range): New function.
43 (_initialize_gmp_utils_selftests): Register
44 gdb_mpz_as_integer_out_of_range as a selftest.
45
3c7ba803
JB
462020-12-05 Joel Brobecker <brobecker@adacore.com>
47
48 * gmp-utils.c (gdb_mpz::read): Use HOST_CHAR_BIT instead of
49 TARGET_CHAR_BIT.
50 (gdb_mpz::write): Likewise.
51
372ff58f
SM
522020-12-04 Simon Marchi <simon.marchi@efficios.com>
53
54 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass 2 as the
55 number of displaced step buffers.
56
480af54c
SM
572020-12-04 Simon Marchi <simon.marchi@efficios.com>
58
59 * displaced-stepping.h (struct displaced_step_buffer): Rename
60 to...
61 (struct displaced_step_buffers): ... this.
62 <m_addr, m_current_thread, m_copy_insn_closure>: Remove.
63 <struct displaced_step_buffer>: New inner class.
64 <m_buffers>: New.
65 * displaced-stepping.c (displaced_step_buffer::prepare): Rename
66 to...
67 (displaced_step_buffers::prepare): ... this, adjust for multiple
68 buffers.
69 (displaced_step_buffer::finish): Rename to...
70 (displaced_step_buffers::finish): ... this, adjust for multiple
71 buffers.
72 (displaced_step_buffer::copy_insn_closure_by_addr): Rename to...
73 (displaced_step_buffers::copy_insn_closure_by_addr): ... this,
74 adjust for multiple buffers.
75 (displaced_step_buffer::restore_in_ptid): Rename to...
76 (displaced_step_buffers::restore_in_ptid): ... this, adjust for
77 multiple buffers.
78 * linux-tdep.h (linux_init_abi): Change supports_displaced_step
79 for num_disp_step_buffers.
80 * linux-tdep.c (struct linux_gdbarch_data)
81 <num_disp_step_buffers>: New field.
82 (struct linux_info) <disp_step_buf>: Rename to...
83 <disp_step_bufs>: ... this, change type to
84 displaced_step_buffers.
85 (linux_displaced_step_prepare): Use
86 linux_gdbarch_data::num_disp_step_buffers to create that number
87 of buffers.
88 (linux_displaced_step_finish): Adjust.
89 (linux_displaced_step_copy_insn_closure_by_addr): Adjust.
90 (linux_displaced_step_restore_all_in_ptid): Adjust.
91 (linux_init_abi): Change supports_displaced_step parameter for
92 num_disp_step_buffers, save it in linux_gdbarch_data.
93 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Adjust.
94 * alpha-linux-tdep.c (alpha_linux_init_abi): Adjust.
95 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Change
96 supports_displaced_step parameter for num_disp_step_buffers.
97 (amd64_linux_init_abi): Adjust.
98 (amd64_x32_linux_init_abi): Adjust.
99 * arc-linux-tdep.c (arc_linux_init_osabi): Adjust.
100 * arm-linux-tdep.c (arm_linux_init_abi): Adjust.
101 * bfin-linux-tdep.c (bfin_linux_init_abi): Adjust.
102 * cris-linux-tdep.c (cris_linux_init_abi): Adjust.
103 * csky-linux-tdep.c (csky_linux_init_abi): Adjust.
104 * frv-linux-tdep.c (frv_linux_init_abi): Adjust.
105 * hppa-linux-tdep.c (hppa_linux_init_abi): Adjust.
106 * i386-linux-tdep.c (i386_linux_init_abi): Adjust.
107 * ia64-linux-tdep.c (ia64_linux_init_abi): Adjust.
108 * m32r-linux-tdep.c (m32r_linux_init_abi): Adjust.
109 * m68k-linux-tdep.c (m68k_linux_init_abi):
110 * microblaze-linux-tdep.c (microblaze_linux_init_abi):
111 * mips-linux-tdep.c (mips_linux_init_abi): Adjust.
112 * mn10300-linux-tdep.c (am33_linux_init_osabi): Adjust.
113 * nios2-linux-tdep.c (nios2_linux_init_abi): Adjust.
114 * or1k-linux-tdep.c (or1k_linux_init_abi): Adjust.
115 * ppc-linux-tdep.c (ppc_linux_init_abi): Adjust.
116 * riscv-linux-tdep.c (riscv_linux_init_abi): Adjust.
117 * rs6000-tdep.c (struct ppc_inferior_data) <disp_step_buf>:
118 Change type to displaced_step_buffers.
119 * s390-linux-tdep.c (s390_linux_init_abi_any): Adjust.
120 * sh-linux-tdep.c (sh_linux_init_abi): Adjust.
121 * sparc-linux-tdep.c (sparc32_linux_init_abi): Adjust.
122 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Adjust.
123 * tic6x-linux-tdep.c (tic6x_uclinux_init_abi): Adjust.
124 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Adjust.
125 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Adjust.
126
d9655058
SM
1272020-12-04 Simon Marchi <simon.marchi@efficios.com>
128
129 * linux-tdep.c (init_linux_gdbarch_data): Change parameter to
130 obkstack.
131 (_initialize_linux_tdep): Register pre-init gdb data instead of
132 post-init.
133
187b041e
SM
1342020-12-04 Simon Marchi <simon.marchi@efficios.com>
135
136 * displaced-stepping.h (struct
137 displaced_step_copy_insn_closure): Adjust comments.
138 (struct displaced_step_inferior_state) <step_thread,
139 step_gdbarch, step_closure, step_original, step_copy,
140 step_saved_copy>: Remove fields.
141 (struct displaced_step_thread_state): New.
142 (struct displaced_step_buffer): New.
143 * displaced-stepping.c (displaced_step_buffer::prepare): New.
144 (write_memory_ptid): Move from infrun.c.
145 (displaced_step_instruction_executed_successfully): New,
146 factored out of displaced_step_finish.
147 (displaced_step_buffer::finish): New.
148 (displaced_step_buffer::copy_insn_closure_by_addr): New.
149 (displaced_step_buffer::restore_in_ptid): New.
150 * gdbarch.sh (displaced_step_location): Remove.
151 (displaced_step_prepare, displaced_step_finish,
152 displaced_step_copy_insn_closure_by_addr,
153 displaced_step_restore_all_in_ptid): New.
154 * gdbarch.c: Re-generate.
155 * gdbarch.h: Re-generate.
156 * gdbthread.h (class thread_info) <displaced_step_state>: New
157 field.
158 (thread_step_over_chain_remove): New declaration.
159 (thread_step_over_chain_next): New declaration.
160 (thread_step_over_chain_length): New declaration.
161 * thread.c (thread_step_over_chain_remove): Make non-static.
162 (thread_step_over_chain_next): New.
163 (global_thread_step_over_chain_next): Use
164 thread_step_over_chain_next.
165 (thread_step_over_chain_length): New.
166 (global_thread_step_over_chain_enqueue): Add debug print.
167 (global_thread_step_over_chain_remove): Add debug print.
168 * infrun.h (get_displaced_step_copy_insn_closure_by_addr):
169 Remove.
170 * infrun.c (get_displaced_stepping_state): New.
171 (displaced_step_in_progress_any_inferior): Remove.
172 (displaced_step_in_progress_thread): Adjust.
173 (displaced_step_in_progress): Adjust.
174 (displaced_step_in_progress_any_thread): New.
175 (get_displaced_step_copy_insn_closure_by_addr): Remove.
176 (gdbarch_supports_displaced_stepping): Use
177 gdbarch_displaced_step_prepare_p.
178 (displaced_step_reset): Change parameter from inferior to
179 thread.
180 (displaced_step_prepare_throw): Implement using
181 gdbarch_displaced_step_prepare.
182 (write_memory_ptid): Move to displaced-step.c.
183 (displaced_step_restore): Remove.
184 (displaced_step_finish): Implement using
185 gdbarch_displaced_step_finish.
186 (start_step_over): Allow starting more than one displaced step.
187 (prepare_for_detach): Handle possibly multiple threads doing
188 displaced steps.
189 (handle_inferior_event): Handle possibility that fork event
190 happens while another thread displaced steps.
191 * linux-tdep.h (linux_displaced_step_prepare): New.
192 (linux_displaced_step_finish): New.
193 (linux_displaced_step_copy_insn_closure_by_addr): New.
194 (linux_displaced_step_restore_all_in_ptid): New.
195 (linux_init_abi): Add supports_displaced_step parameter.
196 * linux-tdep.c (struct linux_info) <disp_step_buf>: New field.
197 (linux_displaced_step_prepare): New.
198 (linux_displaced_step_finish): New.
199 (linux_displaced_step_copy_insn_closure_by_addr): New.
200 (linux_displaced_step_restore_all_in_ptid): New.
201 (linux_init_abi): Add supports_displaced_step parameter,
202 register displaced step methods if true.
203 (_initialize_linux_tdep): Register inferior_execd observer.
204 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Add
205 supports_displaced_step parameter, adjust call to
206 linux_init_abi. Remove call to
207 set_gdbarch_displaced_step_location.
208 (amd64_linux_init_abi): Adjust call to
209 amd64_linux_init_abi_common.
210 (amd64_x32_linux_init_abi): Likewise.
211 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Adjust call to
212 linux_init_abi. Remove call to
213 set_gdbarch_displaced_step_location.
214 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
215 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
216 * alpha-linux-tdep.c (alpha_linux_init_abi): Adjust call to
217 linux_init_abi.
218 * arc-linux-tdep.c (arc_linux_init_osabi): Likewise.
219 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
220 * cris-linux-tdep.c (cris_linux_init_abi): Likewise.
221 * csky-linux-tdep.c (csky_linux_init_abi): Likewise.
222 * frv-linux-tdep.c (frv_linux_init_abi): Likewise.
223 * hppa-linux-tdep.c (hppa_linux_init_abi): Likewise.
224 * ia64-linux-tdep.c (ia64_linux_init_abi): Likewise.
225 * m32r-linux-tdep.c (m32r_linux_init_abi): Likewise.
226 * m68k-linux-tdep.c (m68k_linux_init_abi): Likewise.
227 * microblaze-linux-tdep.c (microblaze_linux_init_abi): Likewise.
228 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
229 * mn10300-linux-tdep.c (am33_linux_init_osabi): Likewise.
230 * nios2-linux-tdep.c (nios2_linux_init_abi): Likewise.
231 * or1k-linux-tdep.c (or1k_linux_init_abi): Likewise.
232 * riscv-linux-tdep.c (riscv_linux_init_abi): Likewise.
233 * s390-linux-tdep.c (s390_linux_init_abi_any): Likewise.
234 * sh-linux-tdep.c (sh_linux_init_abi): Likewise.
235 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
236 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
237 * tic6x-linux-tdep.c (tic6x_uclinux_init_abi): Likewise.
238 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
239 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Likewise.
240 * ppc-linux-tdep.c (ppc_linux_init_abi): Adjust call to
241 linux_init_abi. Remove call to
242 set_gdbarch_displaced_step_location.
243 * arm-tdep.c (arm_pc_is_thumb): Call
244 gdbarch_displaced_step_copy_insn_closure_by_addr instead of
245 get_displaced_step_copy_insn_closure_by_addr.
246 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Adjust calls to
247 clear gdbarch methods.
248 * rs6000-tdep.c (struct ppc_inferior_data): New structure.
249 (get_ppc_per_inferior): New function.
250 (ppc_displaced_step_prepare): New function.
251 (ppc_displaced_step_finish): New function.
252 (ppc_displaced_step_restore_all_in_ptid): New function.
253 (rs6000_gdbarch_init): Register new gdbarch methods.
254 * s390-tdep.c (s390_gdbarch_init): Don't call
255 set_gdbarch_displaced_step_location, set new gdbarch methods.
256
c7acb87b
SM
2572020-12-04 Simon Marchi <simon.marchi@efficios.com>
258
259 * Makefile.in (COMMON_SFILES): Add displaced-stepping.c.
260 * aarch64-tdep.h: Include displaced-stepping.h.
261 * displaced-stepping.h (struct displaced_step_copy_insn_closure):
262 Move here.
263 (displaced_step_copy_insn_closure_up): Move here.
264 (struct buf_displaced_step_copy_insn_closure): Move here.
265 (struct displaced_step_inferior_state): Move here.
266 (debug_displaced): Move here.
267 (displaced_debug_printf_1): Move here.
268 (displaced_debug_printf): Move here.
269 * displaced-stepping.c: New file.
270 * gdbarch.sh: Include displaced-stepping.h in gdbarch.h.
271 * gdbarch.h: Re-generate.
272 * inferior.h: Include displaced-stepping.h.
273 * infrun.h (debug_displaced): Move to displaced-stepping.h.
274 (displaced_debug_printf_1): Likewise.
275 (displaced_debug_printf): Likewise.
276 (struct displaced_step_copy_insn_closure): Likewise.
277 (displaced_step_copy_insn_closure_up): Likewise.
278 (struct buf_displaced_step_copy_insn_closure): Likewise.
279 (struct displaced_step_inferior_state): Likewise.
280 * infrun.c (show_debug_displaced): Move to displaced-stepping.c.
281 (displaced_debug_printf_1): Likewise.
282 (displaced_step_copy_insn_closure::~displaced_step_copy_insn_closure):
283 Likewise.
284 (_initialize_infrun): Don't register "set/show debug displaced".
285
94b24c74
SM
2862020-12-04 Simon Marchi <simon.marchi@efficios.com>
287
288 * linux-tdep.c (get_linux_inferior_data): Add inferior
289 parameter.
290 (linux_vsyscall_range): Pass current inferior.
291
bab37966
SM
2922020-12-04 Simon Marchi <simon.marchi@efficios.com>
293
294 * infrun.c (displaced_step_prepare_throw): Change return type to
295 displaced_step_prepare_status.
296 (displaced_step_prepare): Likewise.
297 (displaced_step_finish): Change return type to
298 displaced_step_finish_status.
299 (resume_1): Adjust.
300 (stop_all_threads): Adjust.
301 * displaced-stepping.h: New file.
302
7def77a1
SM
3032020-12-04 Simon Marchi <simon.marchi@efficios.com>
304
305 * infrun.c (displaced_step_fixup): Rename to...
306 (displaced_step_finish): ... this, update all callers.
307
1152d984
SM
3082020-12-04 Simon Marchi <simon.marchi@efficios.com>
309
310 * infrun.h (get_displaced_step_closure_by_addr): Rename to...
311 (get_displaced_step_copy_insn_closure_by_addr): ... this.
312 Update all users.
313 (displaced_step_closure): Rename to...
314 (displaced_step_copy_insn_closure): ... this. Update all users.
315 (displaced_step_closure_up): Rename to...
316 (displaced_step_copy_insn_closure_up). ... this. Update all
317 users.
318 (buf_displaced_step_closure): Rename to...
319 (buf_displaced_step_copy_insn_closure): ... this. Update all
320 users.
321 * infrun.c (get_displaced_step_closure_by_addr): Rename to...
322 (get_displaced_step_copy_insn_closure_by_addr): ... this.
323 Update all users.
324 * aarch64-tdep.c (aarch64_displaced_step_closure): Rename to...
325 (aarch64_displaced_step_copy_insn_closure): ... this. Update
326 all users.
327 * amd64-tdep.c (amd64_displaced_step_closure): Rename to...
328 (amd64_displaced_step_copy_insn_closure): ... this. Update all
329 users.
330 * arm-tdep.h (arm_displaced_step_closure): Rename to...
331 (arm_displaced_step_copy_insn_closure): ... this. Update all
332 users.
333 * i386-tdep.h (i386_displaced_step_closure): Rename to...
334 (i386_displaced_step_copy_insn_closure): ... this. Update all
335 users.
336 * rs6000-tdep.c (ppc_displaced_step_closure): Rename to...
337 (ppc_displaced_step_copy_insn_closure): ... this. Update all
338 users.
339 * s390-tdep.c (s390_displaced_step_closure): Rename to...
340 (s390_displaced_step_copy_insn_closure): ... this. Update all
341 users.
342 * gdbarch.h: Re-generate.
343 * gdbarch.c: Re-generate.
344
28d5518b
SM
3452020-12-04 Simon Marchi <simon.marchi@efficios.com>
346
347 * gdbthread.h (thread_step_over_chain_enqueue): Rename to...
348 (global_thread_step_over_chain_enqueue): ... this. Update all
349 users.
350 (thread_step_over_chain_remove): Rename to...
351 (global_thread_step_over_chain_remove): ... this. Update all
352 users.
353 (thread_step_over_chain_next): Rename to...
354 (global_thread_step_over_chain_next): ... this. Update all
355 users.
356 * infrun.h (step_over_queue_head): Rename to...
357 (global_thread_step_over_chain_head): ... this. Update all
358 users.
359 * infrun.c (step_over_queue_head): Rename to...
360 (global_thread_step_over_chain_head): ... this. Update all
361 users.
362 * thread.c (step_over_chain_remove): Rename to...
363 (thread_step_over_chain_remove): ... this. Update all users.
364 (thread_step_over_chain_next): Rename to...
365 (global_thread_step_over_chain_next): ... this. Update all
366 users.
367 (thread_step_over_chain_enqueue): Rename to...
368 (global_thread_step_over_chain_enqueue): ... this. Update all
369 users.
370 (thread_step_over_chain_remove): Rename to...
371 (global_thread_step_over_chain_remove): ... this. Update all
372 users.
373
f5f01699
SM
3742020-12-04 Simon Marchi <simon.marchi@polymtl.ca>
375
376 * infrun.c (get_displaced_stepping_state): Remove, change
377 callers to access the field directly.
378
c0aba012
SM
3792020-12-04 Simon Marchi <simon.marchi@polymtl.ca>
380
381 * infrun.c (handle_inferior_event): Restore displaced step
382 buffer bytes in child process when handling fork, even if fork
383 happened in another thread than the displaced-stepping one.
384
3b7a962d
SM
3852020-12-04 Simon Marchi <simon.marchi@efficios.com>
386
387 * infrun.c (infrun_inferior_execd): New function.
388 (_initialize_infrun): Attach inferior_execd observer.
389
42a4fec5
SM
3902020-12-04 Simon Marchi <simon.marchi@efficios.com>
391
392 * observable.h (inferior_execd): Declare new observable.
393 * observable.c (inferior_execd): Declare new observable.
394 * infrun.c (follow_exec): Notify inferior_execd observer.
395 * jit.c (jit_inferior_created_hook): Make static.
396 (_initialize_jit): Register inferior_execd observer.
397 * jit.h (jit_inferior_created_hook): Remove declaration.
398 * solib.c (_initialize_solib): Register inferior_execd observer.
399
aafdfb4e
TV
4002020-12-04 Tom de Vries <tdevries@suse.de>
401
402 PR gdb/27003
403 * completer.c (completion_tracker::build_completion_result): Don't
404 access match_list[0][-1].
405
f99b5177
TT
4062020-12-04 Tom Tromey <tromey@adacore.com>
407
408 * linespec.c (struct linespec_token): Rename; remove typedef.
409 * guile/scm-block.c (struct block_smob): Remove typedef.
410 (struct block_syms_progress_smob): Likewise.
411 * guile/scm-symbol.c (struct symbol_smob): Remove typedef.
412 * guile/scm-symtab.c (symtab_smob): Remove typedef.
413 (struct sal_smob): Remove typedef.
414 * guile/scm-param.c (struct param_smob): Remove typedef.
415 * guile/scm-progspace.c (struct pspace_smob): Rename.
416 * guile/scm-objfile.c (struct objfile_smob): Rename.
417 * guile/scm-iterator.c (struct iterator_smob): Rename.
418 * guile/scm-frame.c (struct frame_smob): Rename.
419 * guile/scm-arch.c (struct arch_smob): Rename.
420 * guile/scm-type.c (struct field_smob): Remove typedef.
421 (struct type_smob): Rename.
422 * guile/scm-cmd.c (struct command_smob): Remove typedef.
423 * guile/scm-ports.c (struct ioscm_memory_port): Remove typedef.
424 * guile/scm-value.c (struct value_smob): Remove typedef.
425 * guile/scm-lazy-string.c (lazy_string_smob): Remove typedef.
426 * guile/guile-internal.h (struct scheme_variable)
427 (struct scheme_function, struct scheme_integer_constant)
428 (struct gdb_smob, struct chained_gdb_smob)
429 (struct eqable_gdb_smob, arch_smob, frame_smob, iterator_smob)
430 (objfile_smob, pspace_smob, type_smob): Remove typedef.
431 * guile/scm-pretty-print.c (pretty_printer_smob): Remove typedef.
432 (struct pretty_printer_worker_smob): Remove typedef.
433 * guile/scm-exception.c (struct exception_smob): Remove typedef.
434 * python/py-block.c (struct block_object): Remove typedef.
435 (block_syms_iterator_object): Update.
436 (set_block): Update.
437 (block_syms_iterator_object): Remove typedef.
438 * python/py-inferior.c (struct membuf_object): Remove typedef.
439 * python/py-symtab.c (struct symtab_object): Remove typedef.
440 (set_symtab): Update.
441 (sal_object): Remove typedef.
442 (set_sal): Update.
443 * python/py-frame.c (frame_object): Remove typedef.
444 * python/py-record-btrace.c (struct btpy_list_object): Remove
445 typedef.
446 * python/py-arch.c (struct arch_object): Remove typedef.
447 * python/py-linetable.c (struct linetable_entry_object)
448 (linetable_object, struct ltpy_iterator_object): Remove typedef.
449 * python/py-events.h (eventregistry_object): Remove typedef.
450 (struct events_object): Remove typedef.
451 * python/python-internal.h (gdbpy_breakpoint_object): Remove
452 typedef.
453 (thread_object): Remove typedef.
454 * python/py-progspace.c (pspace_object): Remove typedef.
455 * python/py-value.c (struct value_object): Remove typedef.
456 * python/py-record.h (recpy_record_object): Remove typedef.
457 (struct recpy_element_object): Remove typedef.
458 * python/py-lazy-string.c (lazy_string_object): Remove typedef.
459 * python/py-objfile.c (objfile_object): Remove typedef.
460 * python/py-cmd.c (struct cmdpy_object): Remove typedef.
461 * python/py-type.c (type_object): Remove typedef.
462 (typy_iterator_object): Update.
463 (set_type): Update.
464 (field_object): Remove typedef.
465 (typy_iterator_object): Remove typedef.
466 * python/py-registers.c (register_descriptor_iterator_object):
467 Remove typedef.
468 (struct register_descriptor_object)
469 (struct reggroup_iterator_object, struct reggroup_object): Remove
470 typedef.
471 * python/py-record.c (recpy_gap_object): Remove typedef.
472 * python/py-symbol.c (symbol_object): Remove typedef.
473 (set_symbol): Update.
474 * python/py-event.h (event_object): Remove typedef.
475 * python/py-param.c (parmpy_object): Remove typedef.
476 * python/py-instruction.c (struct py_insn_obj): Remove typedef.
477 * python/py-unwind.c (struct pending_frame_object): Remove typedef.
478 (unwind_info_object, struct cached_frame_info): Likewise.
479
91f87213
TT
4802020-12-04 Tom Tromey <tromey@adacore.com>
481
482 * value.c (value_internal_function_name): Make return type const.
483 * value.h (value_internal_function_name): Make return type const.
484
5382f971
LM
4852020-12-04 Luis Machado <luis.machado@linaro.org>
486
487 * aarch64-tdep.c (submask, bit, bits): Remove.
488 * arch/aarch64-insn.c (extract_signed_bitfield): Remove.
489 (aarch64_decode_adr, aarch64_decode_b aarch64_decode_bcond)
490 (aarch64_decode_cb, aarch64_decode_tb)
491 (aarch64_decode_ldr_literal): Use sbits to extract a signed
492 immediate.
493 * arch/aarch64-insn.h (submask, bits, bit, sbits): New macros.
494
b6a6aa07
TV
4952020-12-04 Tom de Vries <tdevries@suse.de>
496
497 PR tdep/27007
498 * i386-tdep.c (i386_16_byte_align_p): Skip static fields.
499
0bc2e38d
SM
5002020-12-03 Simon Marchi <simon.marchi@polymtl.ca>
501
502 PR gdb/26876
503 * dwarf2/frame.c (find_comp_unit, set_comp_unit): Reverse use of
504 dwarf2_frame_bfd_data and dwarf2_frame_objfile_data.
505
25428040
AB
5062020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
507
508 * arch/riscv.c: Include 'rv32e-xregs.c'.
509 (riscv_create_target_description): Update to handle rv32e.
510 * arch/riscv.h (struct riscv_gdbarch_features) <embedded>: New
511 member variable.
512 <operator==>: Update to account for new field.
513 <hash>: Likewise.
514 * features/Makefile (FEATURE_XMLFILES): Add riscv/rv32e-xregs.xml.
515 * features/riscv/rv32e-xregs.c: Generated.
516 * features/riscv/rv32e-xregs.xml: New file.
517 * riscv-tdep.c (riscv_debug_breakpoints): Move from later in the
518 file.
519 (riscv_debug_infcall): Likewise.
520 (riscv_debug_unwinder): Likewise.
521 (riscv_debug_gdbarch): Likewise.
522 (enum riscv_register_required_status): Delete.
523 (struct riscv_register_feature): Add constructor, delete default
524 constructor, copy, and assign constructors.
525 (struct riscv_register_feature::register_info) <required>: Delete.
526 <check>: Update comment and arguments.
527 (struct riscv_register_feature) <name>: Change to member function.
528 <prefer_first_name>: Delete.
529 <tdesc_feature>: New member function.
530 <registers>: Rename to...
531 <m_registers>: ...this.
532 <m_feature_name>: New member variable.
533 (riscv_register_feature::register_info::check): Update arguments.
534 (riscv_xreg_feature): Rewrite as class, create a single static
535 instance of the class.
536 (riscv_freg_feature): Likewise.
537 (riscv_virtual_feature): Likewise.
538 (riscv_csr_feature): Likewise.
539 (riscv_create_csr_aliases): Has become a member function inside
540 riscv_csr_feature class.
541 (riscv_abi_embedded): New function definition.
542 (riscv_register_name): Adjust to use new feature objects.
543 (struct riscv_call_info) <riscv_call_info>: Check for rv32e abi,
544 and adjust available argument registers.
545 (riscv_features_from_gdbarch_info): Check for EF_RISCV_RVE flag.
546 (riscv_check_tdesc_feature): Delete.
547 (riscv_tdesc_unknown_reg): Adjust to use new feature objects.
548 (riscv_gdbarch_init): Delete target description checking code, and
549 instead call to the new feature objects to perform the checks.
550 Reorder handling of no abi information case, allows small code
551 simplification.
552 (_initialize_riscv_tdep): Remove call, this is now done in the
553 riscv_csr_feature constructor.
554 * riscv-tdep.h (riscv_abi_embedded): Declare.
555
533b2ae0
AB
5562020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
557
558 * riscv-tdep.c (riscv_create_csr_aliases): Remove use of
559 DECLARE_CSR_ALIAS.
560
e4502042
AB
5612020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
562
563 * riscv-tdep.c (riscv_is_unknown_csr): New function,
564 implementation moved from riscv_register_reggroup_p.
565 (riscv_register_reggroup_p): Update group handling for unknown
566 CSRs.
567
2bf3b79d
SDJ
5682020-12-01 Sergio Durigan Junior <sergiodj@sergiodj.net>
569
570 * dwarf2/read.c (dwz_search_other_debugdirs): New function.
571 (dwarf2_get_dwz_file): Convert 'filename' to a
572 std::string. Use dwz_search_other_debugdirs to search for DWZ
573 files in the debug-file-directories provided by the user as well.
574
77bf7e99
TT
5752020-12-01 Tom Tromey <tom@tromey.com>
576
577 * parse.c (expr_builder::expr_builder): Initialize expout.
578 (expr_builder::release): Use expression::resize.
579 (expression::expression, expression::~expression)
580 (expression::resize): New methods.
581 (write_exp_elt): Use expression::resize.
582 (prefixify_expression): Update.
583 (increase_expout_size): Use expression::resize.
584 * expression.h (struct expression): Add constructor, destructor.
585 <resize>: New method.
586 (expression_up): Change type.
587
539d71e8
RA
5882020-12-01 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
589 * ppc-linux-nat.c: (PPC_DEBUG_FEATURE_DATA_BP_ARCH_31): New define.
590 (region_ok_for_hw_watchpoint): Check if 2nd DAWR is avaliable before
591 set region.
592
7ce05d21
TV
5932020-11-30 Tom de Vries <tdevries@suse.de>
594
595 PR symtab/26905
596 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add and handle
597 is_reference parameter.
598 (dwarf2_evaluate_property): Update dwarf2_locexpr_baton_eval call.
599
88b91969
TT
6002020-11-30 Tom Tromey <tom@tromey.com>
601
602 * rust-lang.c (rust_op_name): Remove.
603 (exp_descriptor_rust): Update.
604 * parser-defs.h (op_name_standard): Don't declare.
605 (struct exp_descriptor) <op_name>: Remove.
606 * parse.c (exp_descriptor_standard): Update.
607 * opencl-lang.c (exp_descriptor_opencl): Update.
608 * m2-lang.c (m2_language::exp_descriptor_modula2): Update.
609 * f-lang.c (op_name_f): Remove.
610 (f_language::exp_descriptor_tab): Update.
611 * expression.h (op_name): Update.
612 * expprint.c (op_name): Rewrite.
613 (op_name_standard): Remove.
614 (dump_raw_expression, dump_subexp): Update.
615 * c-lang.c (exp_descriptor_c): Update.
616 * ax-gdb.c (gen_expr): Update.
617 * ada-lang.c (ada_op_name): Remove.
618 (ada_exp_descriptor): Update.
619
1cd49c43
TT
6202020-11-30 Tom Tromey <tom@tromey.com>
621
622 * eval.c (init_array_element): Remove.
623 (evaluate_subexp_standard) <OP_ARRAY>: Remove "index_pc".
624
96fb9086
HD
6252020-11-29 Hannes Domani <ssbssa@yahoo.de>
626
627 PR tui/26973
628 * tui/tui-layout.c (tui_apply_current_layout): Don't delete the
629 static locator win info.
630
b4132322
AR
6312020-11-28 Alex Richardson <Alexander.Richardson@cl.cam.ac.uk>
632
633 * acincludde.m4 (GDB_AC_CHECK_BFD): Include string.h in the test
634 program.
635
3df8c6af
AB
6362020-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
637
638 * printcmd.c (skip_over_slash_fmt): Reorder code to ensure in_fmt
639 is always initialized.
640
0ae45769
RA
6412020-11-26 Rogerio Alves <rcardoso@linux.ibm.com>
642 * MAINTAINERS (Write After Approval): Add myself.
643
239ca5e4
PW
6442020-11-26 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
645
646 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
647 * features/aarch64-fpu.xml: Add named FPCR and FPSR register bit-fields.
648
cbfa382a
TT
6492020-11-25 Tom Tromey <tom@tromey.com>
650
651 * eval.c (evaluate_subexp_standard): Remove unnecessary
652 variables.
653
af30c400
TT
6542020-11-25 Tom Tromey <tom@tromey.com>
655
656 * d-lang.c: Include parser-defs.h.
657 * rust-lang.c: Include parser-defs.h.
658 * c-lang.h: Do not include parser-defs.h.
659
1c64f6cb
SM
6602020-11-24 Simon Marchi <simon.marchi@polymtl.ca>
661
662 * regcache.h (struct cached_reg): Remove typedef.
663
2c20a601
JB
6642020-11-24 Joel Brobecker <brobecker@adacore.com>
665
666 * README: Fix the URL of the MPFR library.
667
c609df64
JB
6682020-11-24 Joel Brobecker <brobecker@adacore.com>
669
670 * README: Document the --with-libgmp-prefix configure option.
671
fa123c32
JB
6722020-11-24 Joel Brobecker <brobecker@adacore.com>
673
674 * NEWS: Add entry documenting support for DWARF-based fixed
675 point types.
676
0fb8bb02
JB
6772020-11-24 Joel Brobecker <brobecker@adacore.com>
678
679 * NEWS: Document that building GDB now requires GMP.
680
4afa9fd9
JB
6812020-11-24 Joel Brobecker <brobecker@adacore.com>
682
683 * typeprint.c (print_type_scalar): Add handling of
684 TYPE_CODE_FIXED_POINT.
685
af619ce9
JB
6862020-11-24 Joel Brobecker <brobecker@adacore.com>
687
688 * valarith.c (fixed_point_binop): Replace the
689 INIT_VAL_WITH_FIXED_POINT_VAL macro by a lambda. Update all
690 users accordingly.
691
e6fcee3a
JB
6922020-11-24 Joel Brobecker <brobecker@adacore.com>
693
694 * gdbtypes.h (struct type) <fixed_point_scaling_factor>: New method,
695 replacing fixed_point_scaling_factor. All callers updated
696 throughout this project.
697 (fixed_point_scaling_factor): Delete declaration.
698 * gdbtypes.c (type::fixed_point_scaling_factor): Replaces
699 fixed_point_scaling_factor. Adjust implementation accordingly.
700
d19937a7
JB
7012020-11-24 Joel Brobecker <brobecker@adacore.com>
702
703 * gdbtypes.h (struct type) <fixed_point_type_base_type> New method,
704 replacing the fixed_point_type_base_type function. All callers
705 updated throughout this project.
706 (fixed_point_type_base_type): Remove declaration.
707 * gdbtypes.c (type::fixed_point_type_base_type): Replaces
708 fixed_point_type_base_type. Adjust implementation accordingly.
709
2a12c336
JB
7102020-11-24 Joel Brobecker <brobecker@adacore.com>
711
712 * gdbtypes.h (struct type) <fixed_point_info, set_fixed_point_info>:
713 New methods.
714 (INIT_FIXED_POINT_SPECIFIC): Adjust.
715 (TYPE_FIXED_POINT_INFO): Delete macro.
716 (allocate_fixed_point_type_info): Change return type to void.
717 * gdbtypes.c (copy_type_recursive): Replace the use of
718 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
719 (fixed_point_scaling_factor): Likewise.
720 (allocate_fixed_point_type_info): Change return type to void.
721 Adjust implementation accordingly.
722 * dwarf2/read.c (finish_fixed_point_type): Replace the use of
723 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
724
c9f0b43f
JB
7252020-11-24 Joel Brobecker <brobecker@adacore.com>
726
727 * gmp-utils.h (gdb_mpz::read): Change buf and len parameters
728 into one single gdb::array_view parameter.
729 (gdb_mpz::write): Likewise.
730 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
731 * gmp-utils.c (gdb_mpz::read): Change buf and len parameters
732 into one single gdb::array_view parameter.
733 Adjust implementation accordingly.
734 (gdb_mpz::write): Likewise.
735 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
736 * unittests/gmp-utils-selftests.c: Adapt following changes above.
737 * valarith.c, valops.c, valprint.c, value.c: Likewise.
738
987b6703
JB
7392020-11-24 Joel Brobecker <brobecker@adacore.com>
740
741 * gmp-utils.h (gmp_string_printf): Rename from gmp_string_asprintf.
742 Change return type to std::string. Update all callers.
743 * gmp-utils.c (gmp_string_printf): Likewise.
744
4fbb7cce
JB
7452020-11-24 Joel Brobecker <brobecker@adacore.com>
746
747 * unittests/gmp-utils-selftests.c (write_fp_test): Use mpq_set_si
748 instead of mpq_set_ui to initialize our GMP rational.
749
d6ab69dd
TV
7502020-11-23 Tom de Vries <tdevries@suse.de>
751
752 * debuginfod-support.c (debuginfod_source_query)
753 (debuginfod_debuginfo_query): Only set DESTNAME if successful.
754
dab72643
TT
7552020-11-21 Tom Tromey <tom@tromey.com>
756
757 * breakpoint.c (watchpoint_exp_is_const): Return bool.
758
c0ad05d5
SM
7592020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
760
761 * unittests/gmp-utils-selftests.c (gdb_mpz_read_all_from_small):
762 Pass 2.0 to pow.
763 (gdb_mpz_write_all_from_small): Likewise.
764
a43b29c9
SM
7652020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
766
767 * dwarf2/read.c (finish_fixed_point_type): Use std::abs instead
768 of abs.
769
ae41200b
NA
7702020-11-20 Nick Alcock <nick.alcock@oracle.com>
771
772 * ctfread.c (elfctf_build_psymtabs): Use ctf_dict_open, not
773 ctf_arc_open_by_name.
774
139633c3
NA
7752020-11-20 Nick Alcock <nick.alcock@oracle.com>
776
777 * ctfread.c: Change uses of ctf_file_t to ctf_dict_t.
778 (ctf_fp_info::~ctf_fp_info): Call ctf_dict_close, not ctf_file_close.
779
cbbcd7a7
PA
7802020-11-20 Pedro Alves <pedro@palves.net>
781
782 * language.c (language_arch_info::lookup_primitive_type): Use
783 gdb::function_view instead of gdb::function.
784 (template language_lookup_primitive_type): Rename to ...
785 (language_lookup_primitive_type_1): ... this, and make static.
786 (language_lookup_primitive_type(const struct language_defn *,
787 struct gdbarch *, const char *): Make non-template.
788 (language_lookup_primitive_type(const struct language_defn *,
789 struct gdbarch *, std::function<bool (struct type *)>): Make
790 non-template and use gdb::function_view.
791 * language.h (language_arch_info::lookup_primitive_type): Use
792 gdb::function_view instead of std::function.
793 (language_lookup_primitive_type): No longer template.
794 * opencl-lang.c (lookup_opencl_vector_type): 'filter' is now a
795 lambda instead of a std::function.
796
d5ef21c3
AA
7972020-11-19 Andreas Arnez <arnez@linux.ibm.com>
798
799 PR tdep/26916
800 * s390-tdep.c (s390_process_record): Fix recording of STOC, STOCG,
801 and STOCFH.
802
a5adb8f3
SM
8032020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
804
805 * f-lang.c (fortran_value_subarray): Use plongest/pulongest.
806
70125a45
SM
8072020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
808
809 * gdbarch.sh (read_core_file_mappings): Remove `other` parameter
810 in `loop_cb` parameter.
811 * gdbarch.c: Re-generate.
812 * gdbarch.h: Re-generate.
813 * arch-utils.c (default_read_core_file_mappings): Remove `other`
814 parameter.
815 * arch-utils.h (default_read_core_file_mappings): Likewise.
816 * corelow.c (core_target::build_file_mappings): Likewise.
817 * linux-tdep.c (linux_read_core_file_mappings): Likewise.
818 (linux_core_info_proc_mappings): Likewise.
819
a5c641b5
AB
8202020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
821
822 * Makefile.in (HFILES_NO_SRCDIR): Add f-array-walker.h.
823 * NEWS: Mention new options.
824 * f-array-walker.h: New file.
825 * f-lang.c: Include 'gdbcmd.h' and 'f-array-walker.h'.
826 (repack_array_slices): New static global.
827 (show_repack_array_slices): New function.
828 (fortran_array_slicing_debug): New static global.
829 (show_fortran_array_slicing_debug): New function.
830 (value_f90_subarray): Delete.
831 (skip_undetermined_arglist): Delete.
832 (class fortran_array_repacker_base_impl): New class.
833 (class fortran_lazy_array_repacker_impl): New class.
834 (class fortran_array_repacker_impl): New class.
835 (fortran_value_subarray): Complete rewrite.
836 (set_fortran_list): New static global.
837 (show_fortran_list): Likewise.
838 (_initialize_f_language): Register new commands.
839 (fortran_adjust_dynamic_array_base_address_hack): New function.
840 * f-lang.h (fortran_adjust_dynamic_array_base_address_hack):
841 Declare.
842 * f-valprint.c: Include 'f-array-walker.h'.
843 (class fortran_array_printer_impl): New class.
844 (f77_print_array_1): Delete.
845 (f77_print_array): Delete.
846 (fortran_print_array): New.
847 (f_value_print_inner): Update to call fortran_print_array.
848 * gdbtypes.c: Include 'f-lang.h'.
849 (resolve_dynamic_type_internal): Call
850 fortran_adjust_dynamic_array_base_address_hack.
851
a15a5258
AB
8522020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
853
854 * breakpoint.c (struct watch_options): New struct.
855 (watch_option_defs): New static global.
856 (make_watch_options_def_group): New function.
857 (watch_maybe_just_location): Convert option parsing.
858 (watch_command_completer): New function.
859 (_initialize_breakpoint): Build help text using options mechanism.
860
2e362716
AB
8612020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
862
863 * breakpoint.c (update_watchpoint): Pass 'false' not '0'.
864 (watch_command_1): Update parameter types. Convert locals to
865 bool.
866 (watch_command_wrapper): Change parameter type.
867 (watch_maybe_just_location): Change locals to bool.
868 (rwatch_command_wrapper): Update parameter type.
869 (awatch_command_wrapper): Update parameter type.
870 * breakpoint.h (watch_command_wrapper): Change parameter type.
871 (rwatch_command_wrapper): Update parameter type.
872 (awatch_command_wrapper): Update parameter type.
873 * eval.c (fetch_subexp_value): Change parameter type.
874 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition): Pass
875 'false' not '0'.
876 * value.h (fetch_subexp_value): Change parameter type in
877 declaration.
878
b3ff61f8
AB
8792020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
880
881 * printcmd.c (skip_over_slash_fmt): Make use of skip_to_space and
882 skip_spaces.
883
5b7d45d3
KS
8842020-11-18 Keith Seitz <keiths@redhat.com>
885
886 * linux-tdep.c (dump_note_entry_p): Return true instead of
887 checking `filename'.
888
c44191f8
TV
8892020-11-18 Tom de Vries <tdevries@suse.de>
890
891 * debuginfod-support.c (debuginfod_source_query)
892 (debuginfod_debuginfo_query): Also do early exit if
893 "(getenv (DEBUGINFOD_URLS_ENV_VAR))[0] == '\0'".
894
5d8254e1
TV
8952020-11-18 Tom de Vries <tdevries@suse.de>
896
897 * gdbtypes.c (update_static_array_size): Fix -Werror=bool-compare
898 warning.
899
584903d3
SM
9002020-11-17 Simon Marchi <simon.marchi@polymtl.ca>
901
902 * gdbtypes.h (get_array_bounds): Return bool, adjust some
903 callers. Move doc here.
904 * gdbtypes.c (get_array_bounds): Return bool
905
6f2643db
AB
9062020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
907
908 * arc-linux-tdep.c (arc_linux_sw_breakpoint_from_kind): Add an
909 assert.
910 * arc-tdep.c (arc_breakpoint_kind_from_pc): Likewise.
911 * disasm-selftests.c (print_one_insn_test): Fall throough from ARC
912 case to the default.
913
037d7135
AB
9142020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
915
916 * printcmd.c: Include 'safe-ctype.c'.
917 (skip_over_slash_fmt): New function.
918 (print_command_completer): Call skip_over_slash_fmt.
919 (display_and_x_command_completer): New function.
920 (_initialize_printcmd): Add command completion for 'x' and
921 'display'.
922
2b3cb400
PA
9232020-11-16 Pedro Alves <pedro@palves.net>
924
925 * frame.c (get_prev_frame): Move get_frame_id call from here ...
926 (get_prev_frame_always_1): ... to here.
927 * inline-frame.c (inline_frame_this_id): Mention
928 get_prev_frame_always_1 in comment.
929
b74dbc20
JB
9302020-11-15 Joel Brobecker <brobecker@adacore.com>
931
932 * valarith.c (fixed_point_binop): Add BINOP_EQUAL and BINOP_LESS
933 handling.
934 (value_less): Add fixed-point handling.
935
0a12719e
JB
9362020-11-15 Joel Brobecker <brobecker@adacore.com>
937
938 * eval.c (binop_promote): Add fixed-point type handling.
939 * valarith.c (fixed_point_binop): New function.
940 (scalar_binop): Add fixed-point type handling.
941 (value_neg): Add fixed-point type handling.
942 * valops.c (value_cast_to_fixed_point): New function.
943 (value_cast): Add fixed-point type handling.
944
0c9150e4
JB
9452020-11-15 Joel Brobecker <brobecker@adacore.com>
946
947 * ada-typeprint.c (ada_print_type): Add handing of fixed-point
948 range types.
949 * c-typeprint.c (c_type_print_varspec_prefix)
950 (c_type_print_varspec_suffix, c_type_print_base_1): Add
951 TYPE_CODE_FIXED_POINT handling.
952 * p-typeprint.c (pascal_type_print_varspec_prefix)
953 (pascal_type_print_varspec_suffix): Likewise.
954 * typeprint.c (print_type_fixed_point): New function.
955 * typeprint.h (print_type_fixed_point): Add declaration.
956
b26daff9
JB
9572020-11-15 Joel Brobecker <brobecker@adacore.com>
958
959 * printcmd.c (print_scalar_formatted): Add fixed-point type
960 handling when options->format is set.
961
09584414
JB
9622020-11-15 Joel Brobecker <brobecker@adacore.com>
963
964 * ada-valprint.c (ada_value_print_1): Add fixed-point type handling.
965 * dwarf2/read.c (get_dwarf2_rational_constant)
966 (get_dwarf2_unsigned_rational_constant, finish_fixed_point_type)
967 (has_zero_over_zero_small_attribute): New functions.
968 read_base_type, set_die_type): Add fixed-point type handling.
969 * gdb-gdb.py.in: Add fixed-point type handling.
970 * gdbtypes.c: #include "gmp-utils.h".
971 (create_range_type, set_type_code): Add fixed-point type handling.
972 (init_fixed_point_type): New function.
973 (is_integral_type, is_scalar_type): Add fixed-point type handling.
974 (print_fixed_point_type_info): New function.
975 (recursive_dump_type, copy_type_recursive): Add fixed-point type
976 handling.
977 (fixed_point_type_storage): New typedef.
978 (fixed_point_objfile_key): New static global.
979 (allocate_fixed_point_type_info, is_fixed_point_type): New functions.
980 (fixed_point_type_base_type, fixed_point_scaling_factor): New
981 functions.
982 * gdbtypes.h: #include "gmp-utils.h".
983 (enum type_code) <TYPE_SPECIFIC_FIXED_POINT>: New enum.
984 (union type_specific) <fixed_point_info>: New field.
985 (struct fixed_point_type_info): New struct.
986 (INIT_FIXED_POINT_SPECIFIC, TYPE_FIXED_POINT_INFO): New macros.
987 (init_fixed_point_type, is_fixed_point_type)
988 (fixed_point_type_base_type, fixed_point_scaling_factor)
989 (allocate_fixed_point_type_info): Add declarations.
990 * valprint.c (generic_val_print_fixed_point): New function.
991 (generic_value_print): Add fixed-point type handling.
992 * value.c (value_as_address, unpack_long): Add fixed-point type
993 handling.
994
e55c6530
JB
9952020-11-15 Joel Brobecker <brobecker@adacore.com>
996
997 * utils.h (uinteger_pow): Add declaration.
998 * utils.c (uinteger_pow): Moved here (without changes)...
999 * valarith.c (uinteger_pow): ... from here.
1000
b34c74ab
JB
10012020-11-15 Joel Brobecker <brobecker@adacore.com>
1002
40d9d2fd 1003 * gmp-utils.h, gmp-utils.c: New file.
b34c74ab
JB
1004 * unittests/gmp-utils-selftests.c: New file.
1005 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1006 unittests/gmp-utils-selftests.c.
1007 (COMMON_SFILES) Add gmp-utils.c.
1008 (HFILES_NO_SRCDIR): Add gmp-utils.h.
1009
1b4ac058
JB
10102020-11-15 Joel Brobecker <brobecker@adacore.com>
1011
1012 * configure.ac: Generate an error if a usable GMP library
1013 could not be found.
1014 * configure: Regenerate.
1015
2c947d9b
JB
10162020-11-15 Joel Brobecker <brobecker@adacore.com>
1017
1018 * configure.ac: Add support for --with-libgmp-prefix.
1019 * Makefile.in (LIBGMP): New variable.
1020 (CLIBS): Include $(LIBGMP).
1021 * configure, config.in: Regenerate
1022
9dd02fc0
AB
10232020-11-14 Andrew Burgess <andrew.burgess@embecosm.com>
1024
1025 PR cli/26879
1026 * f-exp.y (COMPLETE): New token.
1027 (exp): Two new rules for tab-completion.
1028 (saw_name_at_eof): New static global.
1029 (last_was_structop): Likewise.
1030 (yylex): Set new variables, and return COMPLETE token at the end
1031 of the input stream in some cases.
1032
758cb810
TT
10332020-11-14 Tom Tromey <tom@tromey.com>
1034
1035 * infrun.c (fetch_inferior_event): Use "bool" for should_stop.
1036
749065b7
TT
10372020-11-14 Tom Tromey <tom@tromey.com>
1038
1039 * opencl-lang.c (opencl_component_ref): Make "comps" const.
1040
2c5b1849
SM
10412020-11-14 Simon Marchi <simon.marchi@polymtl.ca>
1042
1043 * arm-tdep.c (class arm_instruction_reader) <read>: Fix comment.
1044
e8b2f0d9
TT
10452020-11-13 Tom Tromey <tom@tromey.com>
1046
1047 * c-lang.c (convert_ucn, convert_octal, convert_hex)
1048 (convert_escape, parse_one_string): Constify.
1049
25f4c262
KS
10502020-11-13 Keith Seitz <keiths@redhat.com>
1051
1052 https://bugzilla.redhat.com/show_bug.cgi?id=1553086
1053 * elfread.c (elf_symfile_segments): Omit "Loadable section ...
1054 outside of ELF segments" warning for debugin
1055
9d3ab915
KS
10562020-11-13 Keith Seitz <keiths@redhat.com>
1057
1058 PR gdb/23034
1059 * elfread.c (elf_symfile_segments): Output a BFD file name
1060 for the "Loadable section ... outside of ELF segments" warning.
1061
9ecab40c
SM
10622020-11-13 Simon Marchi <simon.marchi@polymtl.ca>
1063
1064 PR gdb/26835
1065 * arm-tdep.c (class arm_instruction_reader): New.
1066 (target_arm_instruction_reader): New.
1067 (arm_analyze_prologue): Add instruction reader parameter and use
1068 it. Use arm_expand_immediate.
1069 (class target_arm_instruction_reader): Adjust.
1070 (arm_skip_prologue): Adjust.
1071 (arm_expand_immediate): New.
1072 (arm_scan_prologue): Adjust.
1073 (arm_analyze_prologue_test): New.
1074 (class test_arm_instruction_reader): New.
1075
5a7cf527
AB
10762020-11-13 Andrew Burgess <andrew.burgess@embecosm.com>
1077
1078 * f-lang.c (fortran_argument_convert): Add declaration. Add
1079 header comment, taken from f-lang.h. Make static.
1080 * f-lang.h (f77_get_dynamic_array_length): Delete declaration.
1081 (fortran_argument_convert): Delete declaration.
1082
7bea47f0
AB
10832020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1084
1085 * ada-exp.y (find_primitive_type): Make parameter const.
1086 * ada-lang.c (enum ada_primitive_types): Delete.
1087 (ada_language::language_arch_info): Update.
1088 * c-lang.c (enum c_primitive_types): Delete.
1089 (c_language_arch_info): Update.
1090 (enum cplus_primitive_types): Delete.
1091 (cplus_language::language_arch_info): Update.
1092 * d-lang.c (enum d_primitive_types): Delete.
1093 (d_language::language_arch_info): Update.
1094 * f-lang.c (enum f_primitive_types): Delete.
1095 (f_language::language_arch_info): Update.
1096 * go-lang.c (enum go_primitive_types): Delete.
1097 (go_language::language_arch_info): Update.
1098 * language.c (auto_or_unknown_language::language_arch_info):
1099 Update.
1100 (language_gdbarch_post_init): Use obstack_new, use array indexing.
1101 (language_string_char_type): Add header comment, call function in
1102 language_arch_info.
1103 (language_bool_type): Likewise
1104 (language_arch_info::bool_type): Define.
1105 (language_lookup_primitive_type_1): Delete.
1106 (language_lookup_primitive_type): Rewrite as a templated function
1107 to call function in language_arch_info, then instantiate twice.
1108 (language_arch_info::type_and_symbol::alloc_type_symbol): Define.
1109 (language_arch_info::lookup_primitive_type_and_symbol): Define.
1110 (language_arch_info::lookup_primitive_type): Define twice with
1111 different signatures.
1112 (language_arch_info::lookup_primitive_type_as_symbol): Define.
1113 (language_lookup_primitive_type_as_symbol): Rewrite to call a
1114 member function in language_arch_info.
1115 * language.h (language_arch_info): Complete rewrite.
1116 (language_lookup_primitive_type): Make templated.
1117 * m2-lang.c (enum m2_primitive_types): Delete.
1118 (m2_language::language_arch_info): Update.
1119 * opencl-lang.c (OCL_P_TYPE): Delete.
1120 (enum opencl_primitive_types): Delete.
1121 (opencl_type_data): Delete.
1122 (builtin_opencl_type): Delete.
1123 (lookup_opencl_vector_type): Update.
1124 (opencl_language::language_arch_info): Update, lots of content
1125 moved from...
1126 (build_opencl_types): ...here. This function is now deleted.
1127 (_initialize_opencl_language): Delete.
1128 * p-lang.c (enum pascal_primitive_types): Delete.
1129 (pascal_language::language_arch_info): Update.
1130 * rust-lang.c (enum rust_primitive_types): Delete.
1131 (rust_language::language_arch_info): Update.
1132
bf6e5d01
SM
11332020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1134
1135 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix call to
1136 dwarf2_queue_guard.
1137
1350c3b4
SM
11382020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1139
1140 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix typo in
1141 comment.
1142
6f738b01
SM
11432020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1144
1145 * dwarf2/read.c (dwarf_read_debug_printf,
1146 dwarf_read_debug_printf_v): New macros, use throughout the file.
1147
10c19fad
SV
11482020-11-12 Shahab Vahedi <shahab@synopsys.com>
1149
10806efd 1150 PR tdep/27015
10c19fad
SV
1151 * arc-linux-tdep.c (collect_register): Populate "eret" by
1152 "pc" value from the regcache when asked for "pc" value.
1153
1f2624a3
TT
11542020-11-12 Tom Tromey <tom@tromey.com>
1155
1156 PR rust/26799:
1157 * symtab.c (find_symbol_at_address): Search symtabs if no psymtabs
1158 exist.
1159
ab33b152
AB
11602020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1161
1162 * features/Makefile (XMLTOC): Add rx.xml.
1163 (FEATURE_XMLFILES): Remove rx.xml.
1164 (FEATURE_CFILES rule): Pass '-single-feature' flag.
1165 * features/rx.c: Regenerate.
1166 * features/rx.xml: Wrap in `target` tags, and reindent.
1167 * target-descriptions.c (struct maint_print_c_tdesc_options): New
1168 structure.
1169 (maint_print_c_tdesc_opt_def): New typedef.
1170 (maint_print_c_tdesc_opt_defs): New static global.
1171 (make_maint_print_c_tdesc_options_def_group): New function.
1172 (maint_print_c_tdesc_cmd): Make use of command line flags, only
1173 print single feature C file for target descriptions containing a
1174 single feature.
1175 (maint_print_c_tdesc_cmd_completer): New function.
1176 (_initialize_target_descriptions): Update call to register command
1177 completer, and include command line flag in help text.
1178
550820e1
AB
11792020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
1180
1181 * riscv-tdep.c (riscv_dwarf_reg_to_regnum): Decode DWARF CSR
1182 numbers.
1183 * riscv-tdep.h (RISCV_DWARF_FIRST_CSR, RISCV_DWARF_LAST_CSR): New
1184 enum values.
1185
baf20f76
TT
11862020-11-10 Tom Tromey <tom@tromey.com>
1187
1188 * value.h (internalvar_name): Update.
1189 * value.c (internalvar_name): Make return type const.
1190
caaece0e
TT
11912020-11-10 Tom Tromey <tom@tromey.com>
1192
1193 * ax-gdb.c (gen_struct_elt_for_reference, gen_namespace_elt)
1194 (gen_maybe_namespace_elt, gen_aggregate_elt_ref, gen_expr): Use
1195 const.
1196
8e20b4be
TT
11972020-11-10 Tom Tromey <tom@tromey.com>
1198
1199 * objc-lang.h (value_nsstring): Update.
1200 * objc-lang.c (value_nsstring): Make "ptr" const.
1201
86775fab
AB
12022020-11-06 Andrew Burgess <andrew.burgess@embecosm.com>
1203
1204 * expprint.c (print_subexp_funcall): Increment expression position
1205 after reading argument count.
1206 * f-lang.c (print_subexp_f): Skip over opcode before calling
1207 common function.
1208 (dump_subexp_body_f): Likewise.
1209
3fed4c0b
RG
12102020-11-06 Romain Geissler <romain.geissler@amadeus.com>
1211
1212 PR python/26832
1213 * configure: Regenerate.
1214 * configure.ac: Check for python modules ctypes instead of
1215 itertools.
1216
ac3d4064
PA
12172020-11-06 Pedro Alves <pedro@palves.net>
1218
1219 * macroexp.c (struct macro_buffer): Split in two classes. Add
1220 uses adjusted.
1221 (struct shared_macro_buffer): New, factored out from struct
1222 macro_buffer.
1223 (struct growable_macro_buffer): New, factored out from struct
1224 macro_buffer.
1225 (set_token, get_comment, get_identifier, get_pp_number)
1226 (get_character_constant, get_string_literal, get_punctuator)
1227 (get_next_token_for_substitution): Constify parameters.
1228 (substitute_args): Constify locals.
1229
606decb2
TT
12302020-11-05 Tom Tromey <tom@tromey.com>
1231
1232 * dwarf2/read.c (read_cutu_die_from_dwo)
1233 (cutu_reader::cutu_reader, cutu_reader::cutu_reader)
1234 (build_type_psymtabs_1): Update.
1235 * dwarf2/abbrev.h (struct abbrev_table): Remove objfile
1236 parameter.
1237 * dwarf2/abbrev.c (abbrev_table::read): Remove objfile parameter.
1238 Don't read section. Add assert.
1239
9c91c725
TT
12402020-11-04 Tom Tromey <tromey@adacore.com>
1241
1242 * ada-typeprint.c (ada_print_type): Handle __XVL fields.
1243
8d9fd3a1
TT
12442020-11-04 Tom Tromey <tromey@adacore.com>
1245
1246 * ada-typeprint.c (ada_print_type): Handle __T types.
1247
d8f62e84
TT
12482020-11-04 Tom Tromey <tromey@adacore.com>
1249
1250 * dwarf2/read.c (add_partial_symbol, process_die):
1251 Handle DW_TAG_array_type.
1252 (is_type_tag_for_partial): Add "lang" parameter.
1253 (load_partial_dies, new_symbol): Handle DW_TAG_array_type.
1254
7ff5b937
TT
12552020-11-04 Tom Tromey <tromey@adacore.com>
1256
1257 * ada-lang.c (ada_value_slice_from_ptr): Use bit size.
1258
10f6a3ad
TT
12592020-11-04 Tom Tromey <tromey@adacore.com>
1260
1261 * dwarf2/read.c (read_array_type): Only apply stride to innermost
1262 array.
1263
b72795a8
TT
12642020-11-04 Tom Tromey <tromey@adacore.com>
1265
1266 * gdbtypes.c (update_static_array_size): Handle bit stride.
1267
24aa1b02
TT
12682020-11-04 Tom Tromey <tromey@adacore.com>
1269
1270 * ada-lang.c (ada_value_struct_elt): Resolve dynamic type.
1271
c9a28cbe
TT
12722020-11-04 Tom Tromey <tromey@adacore.com>
1273
1274 * ada-lang.c (ada_is_any_packed_array_type): New function.
1275 (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it.
1276
57567375
TT
12772020-11-04 Tom Tromey <tromey@adacore.com>
1278
1279 * dwarf2/read.c (recognize_bound_expression)
1280 (quirk_ada_thick_pointer): New functions.
1281 (read_array_type): Call quirk_ada_thick_pointer.
1282 (set_die_type): Add "skip_data_location" parameter.
1283 (quirk_ada_thick_pointer): New function.
1284 (process_structure_scope): Call quirk_ada_thick_pointer.
1285 * ada-lang.c (ada_is_unconstrained_packed_array_type)
1286 (decode_packed_array_bitsize): Handle thick pointers without
1287 parallel types.
1288 (ada_is_gnat_encoded_packed_array_type): Rename from
1289 ada_is_packed_array_type.
1290 (ada_is_constrained_packed_array_type): Update.
1291 * ada-valprint.c (ada_val_print_gnat_array): Remove.
1292 (ada_value_print_1): Use ada_get_decoded_value.
1293
a7400e44
TT
12942020-11-04 Tom Tromey <tromey@adacore.com>
1295
1296 * ada-lang.c (recursively_update_array_bitsize): New function.
1297 (decode_constrained_packed_array_type): Call it.
1298
75fd6a26
TT
12992020-11-04 Tom Tromey <tromey@adacore.com>
1300
1301 * ada-lang.c (to_fixed_array_type): Error if
1302 decode_constrained_packed_array_type returns NULL.
1303
93f9561e
TT
13042020-11-04 Tom Tromey <tromey@adacore.com>
1305
1306 * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
1307
257e02d8
TT
13082020-11-02 Tom Tromey <tromey@adacore.com>
1309
1310 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
1311 (ALLDEPFILES): Add amd64-ravenscar-thread.c.
1312 (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
1313 * amd64-ravenscar-thread.c: New file.
1314 * amd64-ravenscar-thread.h: New file.
1315 * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
1316 * configure.tgt (amd64_tobjs): Add ravenscar objects.
1317
74d877e5
AB
13182020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1319
1320 * main.c (execute_cmdargs): New function.
1321 (captured_main_1): Make use of execute_cmdargs.
1322
64aaad63
AB
13232020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1324
1325 * NEWS: Mention changes to config file search path.
1326 * main.c
1327
5b3d3560
TT
13282020-11-02 Tom Tromey <tromey@adacore.com>
1329
1330 * python/python.c: Consolidate two HAVE_PYTHON blocks.
1331 (python_GdbModuleDef): Move earlier. Now static.
1332 (do_start_initialization): Consolidate some IS_PY3K blocks.
1333
dda83cd7
SM
13342020-11-02 Simon Marchi <simon.marchi@efficios.com>
1335
1336 * aarch64-linux-tdep.c: Fix indentation.
1337 * aarch64-ravenscar-thread.c: Fix indentation.
1338 * aarch64-tdep.c: Fix indentation.
1339 * aarch64-tdep.h: Fix indentation.
1340 * ada-lang.c: Fix indentation.
1341 * ada-lang.h: Fix indentation.
1342 * ada-tasks.c: Fix indentation.
1343 * ada-typeprint.c: Fix indentation.
1344 * ada-valprint.c: Fix indentation.
1345 * ada-varobj.c: Fix indentation.
1346 * addrmap.c: Fix indentation.
1347 * addrmap.h: Fix indentation.
1348 * agent.c: Fix indentation.
1349 * aix-thread.c: Fix indentation.
1350 * alpha-bsd-nat.c: Fix indentation.
1351 * alpha-linux-tdep.c: Fix indentation.
1352 * alpha-mdebug-tdep.c: Fix indentation.
1353 * alpha-nbsd-tdep.c: Fix indentation.
1354 * alpha-obsd-tdep.c: Fix indentation.
1355 * alpha-tdep.c: Fix indentation.
1356 * amd64-bsd-nat.c: Fix indentation.
1357 * amd64-darwin-tdep.c: Fix indentation.
1358 * amd64-linux-nat.c: Fix indentation.
1359 * amd64-linux-tdep.c: Fix indentation.
1360 * amd64-nat.c: Fix indentation.
1361 * amd64-obsd-tdep.c: Fix indentation.
1362 * amd64-tdep.c: Fix indentation.
1363 * amd64-windows-tdep.c: Fix indentation.
1364 * annotate.c: Fix indentation.
1365 * arc-tdep.c: Fix indentation.
1366 * arch-utils.c: Fix indentation.
1367 * arch/arm-get-next-pcs.c: Fix indentation.
1368 * arch/arm.c: Fix indentation.
1369 * arm-linux-nat.c: Fix indentation.
1370 * arm-linux-tdep.c: Fix indentation.
1371 * arm-nbsd-tdep.c: Fix indentation.
1372 * arm-pikeos-tdep.c: Fix indentation.
1373 * arm-tdep.c: Fix indentation.
1374 * arm-tdep.h: Fix indentation.
1375 * arm-wince-tdep.c: Fix indentation.
1376 * auto-load.c: Fix indentation.
1377 * auxv.c: Fix indentation.
1378 * avr-tdep.c: Fix indentation.
1379 * ax-gdb.c: Fix indentation.
1380 * ax-general.c: Fix indentation.
1381 * bfin-linux-tdep.c: Fix indentation.
1382 * block.c: Fix indentation.
1383 * block.h: Fix indentation.
1384 * blockframe.c: Fix indentation.
1385 * bpf-tdep.c: Fix indentation.
1386 * break-catch-sig.c: Fix indentation.
1387 * break-catch-syscall.c: Fix indentation.
1388 * break-catch-throw.c: Fix indentation.
1389 * breakpoint.c: Fix indentation.
1390 * breakpoint.h: Fix indentation.
1391 * bsd-uthread.c: Fix indentation.
1392 * btrace.c: Fix indentation.
1393 * build-id.c: Fix indentation.
1394 * buildsym-legacy.h: Fix indentation.
1395 * buildsym.c: Fix indentation.
1396 * c-typeprint.c: Fix indentation.
1397 * c-valprint.c: Fix indentation.
1398 * c-varobj.c: Fix indentation.
1399 * charset.c: Fix indentation.
1400 * cli/cli-cmds.c: Fix indentation.
1401 * cli/cli-decode.c: Fix indentation.
1402 * cli/cli-decode.h: Fix indentation.
1403 * cli/cli-script.c: Fix indentation.
1404 * cli/cli-setshow.c: Fix indentation.
1405 * coff-pe-read.c: Fix indentation.
1406 * coffread.c: Fix indentation.
1407 * compile/compile-cplus-types.c: Fix indentation.
1408 * compile/compile-object-load.c: Fix indentation.
1409 * compile/compile-object-run.c: Fix indentation.
1410 * completer.c: Fix indentation.
1411 * corefile.c: Fix indentation.
1412 * corelow.c: Fix indentation.
1413 * cp-abi.h: Fix indentation.
1414 * cp-namespace.c: Fix indentation.
1415 * cp-support.c: Fix indentation.
1416 * cp-valprint.c: Fix indentation.
1417 * cris-linux-tdep.c: Fix indentation.
1418 * cris-tdep.c: Fix indentation.
1419 * darwin-nat-info.c: Fix indentation.
1420 * darwin-nat.c: Fix indentation.
1421 * darwin-nat.h: Fix indentation.
1422 * dbxread.c: Fix indentation.
1423 * dcache.c: Fix indentation.
1424 * disasm.c: Fix indentation.
1425 * dtrace-probe.c: Fix indentation.
1426 * dwarf2/abbrev.c: Fix indentation.
1427 * dwarf2/attribute.c: Fix indentation.
1428 * dwarf2/expr.c: Fix indentation.
1429 * dwarf2/frame.c: Fix indentation.
1430 * dwarf2/index-cache.c: Fix indentation.
1431 * dwarf2/index-write.c: Fix indentation.
1432 * dwarf2/line-header.c: Fix indentation.
1433 * dwarf2/loc.c: Fix indentation.
1434 * dwarf2/macro.c: Fix indentation.
1435 * dwarf2/read.c: Fix indentation.
1436 * dwarf2/read.h: Fix indentation.
1437 * elfread.c: Fix indentation.
1438 * eval.c: Fix indentation.
1439 * event-top.c: Fix indentation.
1440 * exec.c: Fix indentation.
1441 * exec.h: Fix indentation.
1442 * expprint.c: Fix indentation.
1443 * f-lang.c: Fix indentation.
1444 * f-typeprint.c: Fix indentation.
1445 * f-valprint.c: Fix indentation.
1446 * fbsd-nat.c: Fix indentation.
1447 * fbsd-tdep.c: Fix indentation.
1448 * findvar.c: Fix indentation.
1449 * fork-child.c: Fix indentation.
1450 * frame-unwind.c: Fix indentation.
1451 * frame-unwind.h: Fix indentation.
1452 * frame.c: Fix indentation.
1453 * frv-linux-tdep.c: Fix indentation.
1454 * frv-tdep.c: Fix indentation.
1455 * frv-tdep.h: Fix indentation.
1456 * ft32-tdep.c: Fix indentation.
1457 * gcore.c: Fix indentation.
1458 * gdb_bfd.c: Fix indentation.
1459 * gdbarch.sh: Fix indentation.
1460 * gdbarch.c: Re-generate
1461 * gdbarch.h: Re-generate.
1462 * gdbcore.h: Fix indentation.
1463 * gdbthread.h: Fix indentation.
1464 * gdbtypes.c: Fix indentation.
1465 * gdbtypes.h: Fix indentation.
1466 * glibc-tdep.c: Fix indentation.
1467 * gnu-nat.c: Fix indentation.
1468 * gnu-nat.h: Fix indentation.
1469 * gnu-v2-abi.c: Fix indentation.
1470 * gnu-v3-abi.c: Fix indentation.
1471 * go32-nat.c: Fix indentation.
1472 * guile/guile-internal.h: Fix indentation.
1473 * guile/scm-cmd.c: Fix indentation.
1474 * guile/scm-frame.c: Fix indentation.
1475 * guile/scm-iterator.c: Fix indentation.
1476 * guile/scm-math.c: Fix indentation.
1477 * guile/scm-ports.c: Fix indentation.
1478 * guile/scm-pretty-print.c: Fix indentation.
1479 * guile/scm-value.c: Fix indentation.
1480 * h8300-tdep.c: Fix indentation.
1481 * hppa-linux-nat.c: Fix indentation.
1482 * hppa-linux-tdep.c: Fix indentation.
1483 * hppa-nbsd-nat.c: Fix indentation.
1484 * hppa-nbsd-tdep.c: Fix indentation.
1485 * hppa-obsd-nat.c: Fix indentation.
1486 * hppa-tdep.c: Fix indentation.
1487 * hppa-tdep.h: Fix indentation.
1488 * i386-bsd-nat.c: Fix indentation.
1489 * i386-darwin-nat.c: Fix indentation.
1490 * i386-darwin-tdep.c: Fix indentation.
1491 * i386-dicos-tdep.c: Fix indentation.
1492 * i386-gnu-nat.c: Fix indentation.
1493 * i386-linux-nat.c: Fix indentation.
1494 * i386-linux-tdep.c: Fix indentation.
1495 * i386-nto-tdep.c: Fix indentation.
1496 * i386-obsd-tdep.c: Fix indentation.
1497 * i386-sol2-nat.c: Fix indentation.
1498 * i386-tdep.c: Fix indentation.
1499 * i386-tdep.h: Fix indentation.
1500 * i386-windows-tdep.c: Fix indentation.
1501 * i387-tdep.c: Fix indentation.
1502 * i387-tdep.h: Fix indentation.
1503 * ia64-libunwind-tdep.c: Fix indentation.
1504 * ia64-libunwind-tdep.h: Fix indentation.
1505 * ia64-linux-nat.c: Fix indentation.
1506 * ia64-linux-tdep.c: Fix indentation.
1507 * ia64-tdep.c: Fix indentation.
1508 * ia64-tdep.h: Fix indentation.
1509 * ia64-vms-tdep.c: Fix indentation.
1510 * infcall.c: Fix indentation.
1511 * infcmd.c: Fix indentation.
1512 * inferior.c: Fix indentation.
1513 * infrun.c: Fix indentation.
1514 * iq2000-tdep.c: Fix indentation.
1515 * language.c: Fix indentation.
1516 * linespec.c: Fix indentation.
1517 * linux-fork.c: Fix indentation.
1518 * linux-nat.c: Fix indentation.
1519 * linux-tdep.c: Fix indentation.
1520 * linux-thread-db.c: Fix indentation.
1521 * lm32-tdep.c: Fix indentation.
1522 * m2-lang.c: Fix indentation.
1523 * m2-typeprint.c: Fix indentation.
1524 * m2-valprint.c: Fix indentation.
1525 * m32c-tdep.c: Fix indentation.
1526 * m32r-linux-tdep.c: Fix indentation.
1527 * m32r-tdep.c: Fix indentation.
1528 * m68hc11-tdep.c: Fix indentation.
1529 * m68k-bsd-nat.c: Fix indentation.
1530 * m68k-linux-nat.c: Fix indentation.
1531 * m68k-linux-tdep.c: Fix indentation.
1532 * m68k-tdep.c: Fix indentation.
1533 * machoread.c: Fix indentation.
1534 * macrocmd.c: Fix indentation.
1535 * macroexp.c: Fix indentation.
1536 * macroscope.c: Fix indentation.
1537 * macrotab.c: Fix indentation.
1538 * macrotab.h: Fix indentation.
1539 * main.c: Fix indentation.
1540 * mdebugread.c: Fix indentation.
1541 * mep-tdep.c: Fix indentation.
1542 * mi/mi-cmd-catch.c: Fix indentation.
1543 * mi/mi-cmd-disas.c: Fix indentation.
1544 * mi/mi-cmd-env.c: Fix indentation.
1545 * mi/mi-cmd-stack.c: Fix indentation.
1546 * mi/mi-cmd-var.c: Fix indentation.
1547 * mi/mi-cmds.c: Fix indentation.
1548 * mi/mi-main.c: Fix indentation.
1549 * mi/mi-parse.c: Fix indentation.
1550 * microblaze-tdep.c: Fix indentation.
1551 * minidebug.c: Fix indentation.
1552 * minsyms.c: Fix indentation.
1553 * mips-linux-nat.c: Fix indentation.
1554 * mips-linux-tdep.c: Fix indentation.
1555 * mips-nbsd-tdep.c: Fix indentation.
1556 * mips-tdep.c: Fix indentation.
1557 * mn10300-linux-tdep.c: Fix indentation.
1558 * mn10300-tdep.c: Fix indentation.
1559 * moxie-tdep.c: Fix indentation.
1560 * msp430-tdep.c: Fix indentation.
1561 * namespace.h: Fix indentation.
1562 * nat/fork-inferior.c: Fix indentation.
1563 * nat/gdb_ptrace.h: Fix indentation.
1564 * nat/linux-namespaces.c: Fix indentation.
1565 * nat/linux-osdata.c: Fix indentation.
1566 * nat/netbsd-nat.c: Fix indentation.
1567 * nat/x86-dregs.c: Fix indentation.
1568 * nbsd-nat.c: Fix indentation.
1569 * nbsd-tdep.c: Fix indentation.
1570 * nios2-linux-tdep.c: Fix indentation.
1571 * nios2-tdep.c: Fix indentation.
1572 * nto-procfs.c: Fix indentation.
1573 * nto-tdep.c: Fix indentation.
1574 * objfiles.c: Fix indentation.
1575 * objfiles.h: Fix indentation.
1576 * opencl-lang.c: Fix indentation.
1577 * or1k-tdep.c: Fix indentation.
1578 * osabi.c: Fix indentation.
1579 * osabi.h: Fix indentation.
1580 * osdata.c: Fix indentation.
1581 * p-lang.c: Fix indentation.
1582 * p-typeprint.c: Fix indentation.
1583 * p-valprint.c: Fix indentation.
1584 * parse.c: Fix indentation.
1585 * ppc-linux-nat.c: Fix indentation.
1586 * ppc-linux-tdep.c: Fix indentation.
1587 * ppc-nbsd-nat.c: Fix indentation.
1588 * ppc-nbsd-tdep.c: Fix indentation.
1589 * ppc-obsd-nat.c: Fix indentation.
1590 * ppc-ravenscar-thread.c: Fix indentation.
1591 * ppc-sysv-tdep.c: Fix indentation.
1592 * ppc64-tdep.c: Fix indentation.
1593 * printcmd.c: Fix indentation.
1594 * proc-api.c: Fix indentation.
1595 * producer.c: Fix indentation.
1596 * producer.h: Fix indentation.
1597 * prologue-value.c: Fix indentation.
1598 * prologue-value.h: Fix indentation.
1599 * psymtab.c: Fix indentation.
1600 * python/py-arch.c: Fix indentation.
1601 * python/py-bpevent.c: Fix indentation.
1602 * python/py-event.c: Fix indentation.
1603 * python/py-event.h: Fix indentation.
1604 * python/py-finishbreakpoint.c: Fix indentation.
1605 * python/py-frame.c: Fix indentation.
1606 * python/py-framefilter.c: Fix indentation.
1607 * python/py-inferior.c: Fix indentation.
1608 * python/py-infthread.c: Fix indentation.
1609 * python/py-objfile.c: Fix indentation.
1610 * python/py-prettyprint.c: Fix indentation.
1611 * python/py-registers.c: Fix indentation.
1612 * python/py-signalevent.c: Fix indentation.
1613 * python/py-stopevent.c: Fix indentation.
1614 * python/py-stopevent.h: Fix indentation.
1615 * python/py-threadevent.c: Fix indentation.
1616 * python/py-tui.c: Fix indentation.
1617 * python/py-unwind.c: Fix indentation.
1618 * python/py-value.c: Fix indentation.
1619 * python/py-xmethods.c: Fix indentation.
1620 * python/python-internal.h: Fix indentation.
1621 * python/python.c: Fix indentation.
1622 * ravenscar-thread.c: Fix indentation.
1623 * record-btrace.c: Fix indentation.
1624 * record-full.c: Fix indentation.
1625 * record.c: Fix indentation.
1626 * reggroups.c: Fix indentation.
1627 * regset.h: Fix indentation.
1628 * remote-fileio.c: Fix indentation.
1629 * remote.c: Fix indentation.
1630 * reverse.c: Fix indentation.
1631 * riscv-linux-tdep.c: Fix indentation.
1632 * riscv-ravenscar-thread.c: Fix indentation.
1633 * riscv-tdep.c: Fix indentation.
1634 * rl78-tdep.c: Fix indentation.
1635 * rs6000-aix-tdep.c: Fix indentation.
1636 * rs6000-lynx178-tdep.c: Fix indentation.
1637 * rs6000-nat.c: Fix indentation.
1638 * rs6000-tdep.c: Fix indentation.
1639 * rust-lang.c: Fix indentation.
1640 * rx-tdep.c: Fix indentation.
1641 * s12z-tdep.c: Fix indentation.
1642 * s390-linux-tdep.c: Fix indentation.
1643 * score-tdep.c: Fix indentation.
1644 * ser-base.c: Fix indentation.
1645 * ser-mingw.c: Fix indentation.
1646 * ser-uds.c: Fix indentation.
1647 * ser-unix.c: Fix indentation.
1648 * serial.c: Fix indentation.
1649 * sh-linux-tdep.c: Fix indentation.
1650 * sh-nbsd-tdep.c: Fix indentation.
1651 * sh-tdep.c: Fix indentation.
1652 * skip.c: Fix indentation.
1653 * sol-thread.c: Fix indentation.
1654 * solib-aix.c: Fix indentation.
1655 * solib-darwin.c: Fix indentation.
1656 * solib-frv.c: Fix indentation.
1657 * solib-svr4.c: Fix indentation.
1658 * solib.c: Fix indentation.
1659 * source.c: Fix indentation.
1660 * sparc-linux-tdep.c: Fix indentation.
1661 * sparc-nbsd-tdep.c: Fix indentation.
1662 * sparc-obsd-tdep.c: Fix indentation.
1663 * sparc-ravenscar-thread.c: Fix indentation.
1664 * sparc-tdep.c: Fix indentation.
1665 * sparc64-linux-tdep.c: Fix indentation.
1666 * sparc64-nbsd-tdep.c: Fix indentation.
1667 * sparc64-obsd-tdep.c: Fix indentation.
1668 * sparc64-tdep.c: Fix indentation.
1669 * stabsread.c: Fix indentation.
1670 * stack.c: Fix indentation.
1671 * stap-probe.c: Fix indentation.
1672 * stubs/ia64vms-stub.c: Fix indentation.
1673 * stubs/m32r-stub.c: Fix indentation.
1674 * stubs/m68k-stub.c: Fix indentation.
1675 * stubs/sh-stub.c: Fix indentation.
1676 * stubs/sparc-stub.c: Fix indentation.
1677 * symfile-mem.c: Fix indentation.
1678 * symfile.c: Fix indentation.
1679 * symfile.h: Fix indentation.
1680 * symmisc.c: Fix indentation.
1681 * symtab.c: Fix indentation.
1682 * symtab.h: Fix indentation.
1683 * target-float.c: Fix indentation.
1684 * target.c: Fix indentation.
1685 * target.h: Fix indentation.
1686 * tic6x-tdep.c: Fix indentation.
1687 * tilegx-linux-tdep.c: Fix indentation.
1688 * tilegx-tdep.c: Fix indentation.
1689 * top.c: Fix indentation.
1690 * tracefile-tfile.c: Fix indentation.
1691 * tracepoint.c: Fix indentation.
1692 * tui/tui-disasm.c: Fix indentation.
1693 * tui/tui-io.c: Fix indentation.
1694 * tui/tui-regs.c: Fix indentation.
1695 * tui/tui-stack.c: Fix indentation.
1696 * tui/tui-win.c: Fix indentation.
1697 * tui/tui-winsource.c: Fix indentation.
1698 * tui/tui.c: Fix indentation.
1699 * typeprint.c: Fix indentation.
1700 * ui-out.h: Fix indentation.
1701 * unittests/copy_bitwise-selftests.c: Fix indentation.
1702 * unittests/memory-map-selftests.c: Fix indentation.
1703 * utils.c: Fix indentation.
1704 * v850-tdep.c: Fix indentation.
1705 * valarith.c: Fix indentation.
1706 * valops.c: Fix indentation.
1707 * valprint.c: Fix indentation.
1708 * valprint.h: Fix indentation.
1709 * value.c: Fix indentation.
1710 * value.h: Fix indentation.
1711 * varobj.c: Fix indentation.
1712 * vax-tdep.c: Fix indentation.
1713 * windows-nat.c: Fix indentation.
1714 * windows-tdep.c: Fix indentation.
1715 * xcoffread.c: Fix indentation.
1716 * xml-syscall.c: Fix indentation.
1717 * xml-tdesc.c: Fix indentation.
1718 * xstormy16-tdep.c: Fix indentation.
1719 * xtensa-config.c: Fix indentation.
1720 * xtensa-linux-nat.c: Fix indentation.
1721 * xtensa-linux-tdep.c: Fix indentation.
1722 * xtensa-tdep.c: Fix indentation.
1723
e1f57067
AB
17242020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1725 Craig Blackmore <craig.blackmore@embecosm.com>
1726
1727 * riscv-tdep.c (riscv_frame_cache): Read the frame base register
1728 as an unsigned value.
1729
ae7754b2
TT
17302020-11-01 Tom Tromey <tom@tromey.com>
1731
1732 * dbxread.c (dbx_end_psymtab): Update.
1733 * dwarf2/read.c (process_psymtab_comp_unit_reader)
1734 (build_type_psymtabs_reader): Update.
1735 * xcoffread.c (xcoff_end_psymtab): Update.
1736 * ctfread.c (scan_partial_symbols): Update.
1737 * psymtab.c (sort_pst_symbols): Remove.
1738 (partial_symtab::end): Rename from end_psymtab_common. Inline
1739 sort_pst_symbols.
1740 * psympriv.h (struct partial_symtab) <end>: New method.
1741 (end_psymtab_common): Don't declare.
1742
0684bb51
TT
17432020-11-01 Tom Tromey <tom@tromey.com>
1744
1745 * symmisc.c (count_psyms): New function.
1746 (print_objfile_statistics): Use it.
1747 * psymtab.c (append_psymbol_to_list): Remove.
1748 (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
1749 * objfiles.h (struct objstats) <n_psyms>: Remove.
1750
089002bb
TT
17512020-11-01 Tom Tromey <tom@tromey.com>
1752
1753 * dbxread.c (dbx_end_psymtab): Update.
1754 * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
1755 (build_type_psymtabs_reader): Update.
1756 * xcoffread.c (xcoff_end_psymtab): Update.
1757 * ctfread.c (scan_partial_symbols): Update.
1758 * psympriv.h (end_psymtab_common): Update.
1759 * psymtab.c (end_psymtab_common): Remove objfile parameter.
1760 (sort_pst_symbols): Likewise.
1761
525454d6
TT
17622020-11-01 Tom Tromey <tom@tromey.com>
1763
1764 * dbxread.c (dbx_symfile_read): Update.
1765 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
1766 * xcoffread.c (xcoff_initial_scan): Update.
1767 * psympriv.h (init_psymbol_list): Don't declare.
1768 * psymtab.c (init_psymbol_list): Remove.
1769
60bd1d53
JB
17702020-11-01 Joel Brobecker <brobecker@adacore.com>
1771
1772 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
1773 gnat_encoded_fixed_type_info. Update all callers.
1774
db99d0d0
JB
17752020-11-01 Joel Brobecker <brobecker@adacore.com>
1776
1777 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
1778 line too long.
1779
75f24e86
JB
17802020-11-01 Joel Brobecker <brobecker@adacore.com>
1781
1782 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
1783 cast_from_fixed. Update all callers.
1784 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
1785 Update all callers.
1786 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
1787 Update all callers.
1788 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
1789 ada_scaling_factor.
1790 * ada-typeprint.c: Replace call to ada_scaling_factor by call
1791 to print_gnat_encoded_fixed_point_type.
1792 * ada-valprint.c: Likewise.
1793
4f0469cd
AB
17942020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1795
1796 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
1797 (debug_prefixed_printf): Add check of debug_displaced flag.
1798 * linux-nat.c (linux_nat_debug_printf): Add check of
1799 debug_linux_nat flag.
1800
17417fb0
SM
18012020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1802
1803 * infrun.c (infrun_debug_printf_1): Remove.
1804 (displaced_debug_printf_1): Remove.
1805 (stop_all_threads): Use debug_prefixed_printf.
1806 * infrun.h (infrun_debug_printf_1): Remove.
1807 (infrun_debug_printf): Use debug_prefixed_printf.
1808 (displaced_debug_printf_1): Remove.
1809 (displaced_debug_printf): Use debug_prefixed_printf.
1810 * linux-nat.c (linux_nat_debug_printf_1): Remove.
1811 (linux_nat_debug_printf): Use debug_prefixed_printf.
1812
ad6dba1c
SM
18132020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1814
1815 * configure: Re-generate.
1816 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
1817 AC_LANG_PROGRAM.
1818
b6fb30ed
SM
18192020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1820
1821 * configure: Re-generate.
1822
5164c117
SM
18232020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1824
1825 * configure: Re-generate.
1826
864ca435
SM
18272020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1828
1829 * configure: Re-generate.
1830
b9442ec1
SM
18312020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1832
1833 * configure: Re-generate.
1834
294f2697
SM
18352020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1836
1837 * acinclude.m4: Modernize.
1838 * configure: Re-generate.
1839
5593a99a
SM
18402020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1841
1842 * configure.ac: Modernize.
1843 * configure: Re-generate.
1844
e41fda1d
SM
18452020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1846
1847 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
1848 * configure: Re-generate.
1849 * configure.ac: Remove AM_PROG_CC_STDC.
1850
91e1a0ed
SM
18512020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1852
1853 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
1854 AC_CANONICAL_SYSTEM.
1855 * configure: Re-generate.
1856
136821d9
SM
18572020-10-30 Simon Marchi <simon.marchi@efficios.com>
1858
1859 * infrun.h (displaced_debug_printf): New macro. Replace
1860 displaced debug prints throughout to use it.
1861 (displaced_debug_printf_1): New declaration.
1862 (displaced_step_dump_bytes): Return string, remove ui_file
1863 parameter, update all callers.
1864 * infrun.c (displaced_debug_printf_1): New function.
1865 (displaced_step_dump_bytes): Return string, remove ui_file
1866 parameter
1867
aa2045e7
SM
18682020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
1869
1870 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
1871
b1ec2735
TT
18722020-10-30 Tom Tromey <tromey@adacore.com>
1873
1874 * Makefile.in (stamp-init): Depend on config.status.
1875
b78b3a29
TBA
18762020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1877
1878 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
1879
d70bdd3c
PA
18802020-10-30 Pedro Alves <pedro@palves.net>
1881
1882 * thread.c (lookup_selected_frame): Move ...
1883 * frame.c (lookup_selected_frame): ... here.
1884
79952e69
PA
18852020-10-30 Pedro Alves <pedro@palves.net>
1886
1887 * blockframe.c (block_innermost_frame): Use get_selected_frame.
1888 * frame.c
1889 (scoped_restore_selected_frame::scoped_restore_selected_frame):
1890 Use save_selected_frame. Save language as well.
1891 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
1892 Use restore_selected_frame, and restore language as well.
1893 (selected_frame_id, selected_frame_level): New.
1894 (selected_frame): Update comments.
1895 (save_selected_frame, restore_selected_frame): New.
1896 (get_selected_frame): Use lookup_selected_frame.
1897 (get_selected_frame_if_set): Delete.
1898 (select_frame): Record selected_frame_level and selected_frame_id.
1899 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
1900 fields.
1901 (get_selected_frame): Make 'message' parameter optional.
1902 (get_selected_frame_if_set): Delete declaration.
1903 (select_frame): Update comments.
1904 (save_selected_frame, restore_selected_frame)
1905 (lookup_selected_frame): Declare.
1906 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
1907 * infrun.c (struct infcall_control_state) <selected_frame_level>:
1908 New field.
1909 (save_infcall_control_state): Use save_selected_frame.
1910 (restore_selected_frame): Delete.
1911 (restore_infcall_control_state): Use restore_selected_frame.
1912 * stack.c (select_frame_command_core, frame_command_core): Use
1913 get_selected_frame.
1914 * thread.c (restore_selected_frame): Rename to ...
1915 (lookup_selected_frame): ... this and make extern. Select the
1916 current frame if the frame level is -1.
1917 (scoped_restore_current_thread::restore): Also restore the
1918 language.
1919 (scoped_restore_current_thread::~scoped_restore_current_thread):
1920 Don't try/catch.
1921 (scoped_restore_current_thread::scoped_restore_current_thread):
1922 Save the language as well. Use save_selected_frame.
1923
58103c33
SM
19242020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1925
1926 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
1927 documentation.
1928 * gdbarch.h: Re-generate.
1929
40a53766
SM
19302020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1931
1932 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
1933 parameter.
1934 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
1935 Likewise.
1936 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
1937 Likewise.
1938 * arch-utils.c (default_displaced_step_hw_singlestep):
1939 Likewise.
1940 * arch-utils.h (default_displaced_step_hw_singlestep):
1941 Likewise.
1942 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
1943 Likewise.
1944 * s390-tdep.c (s390_displaced_step_hw_singlestep):
1945 Likewise.
1946 * gdbarch.c: Re-generate.
1947 * gdbarch.h: Re-generate.
1948 * infrun.c (resume_1): Adjust.
1949
8407f91b
TT
19502020-10-29 Tom Tromey <tom@tromey.com>
1951
1952 * progspace.c (program_space::~program_space): Don't call
1953 exec_close.
1954
5008b3b2
TT
19552020-10-29 Tom Tromey <tom@tromey.com>
1956
1957 * exec.c (exec_target::close): Don't change current program
1958 space.
1959
d9eebde0
TT
19602020-10-29 Tom Tromey <tom@tromey.com>
1961
1962 * symfile.c (add_symbol_file_command): Update.
1963 * exec.c (program_space::add_target_sections): Rename.
1964 * symfile-mem.c (symbol_file_add_from_memory): Update.
1965 * progspace.h (struct program_space) <add_target_sections>:
1966 Declare new overload.
1967 * exec.h (add_target_sections_of_objfile): Don't declare.
1968
3769e227
TT
19692020-10-29 Tom Tromey <tom@tromey.com>
1970
1971 * solib.c (solib_map_sections): Update.
1972 * exec.c (program_space::add_target_sections): Now a method.
1973 (exec_file_attach): Update.
1974 * exec.h (add_target_sections): Don't declare.
1975 * progspace.h (struct program_space) <add_target_sections>:
1976 Declare.
1977
2a3f84af
TT
19782020-10-29 Tom Tromey <tom@tromey.com>
1979
1980 * progspace.h (struct program_space) <remove_target_sections>:
1981 Declare.
1982 * exec.c (program_space::remove_target_sections): Now a method.
1983 * exec.h (remove_target_sections): Don't declare.
1984
004eecfd
TT
19852020-10-29 Tom Tromey <tom@tromey.com>
1986
1987 * inferior.c (delete_inferior): Update.
1988 * progspace.c (program_space::empty): Rename from
1989 program_space_empty_p. Return bool.
1990 * progspace.h (struct program_space) <empty>: New method.
1991 (program_space_empty_p): Don't declare.
1992
e39fb971
TT
19932020-10-29 Tom Tromey <tom@tromey.com>
1994
1995 * progspace.c (program_space::~program_space): Don't call
1996 clear_program_space_solib_cache.
1997 (program_space::clear_solib_cache): Rename from
1998 clear_solib_cache.
1999 * solib.c (handle_solib_event): Update.
2000 * progspace.h (struct program_space) <clear_solib_cache>: New
2001 method.
2002 (clear_program_space_solib_cache): Don't declare.
2003
a42d7dd8
TT
20042020-10-29 Tom Tromey <tom@tromey.com>
2005
2006 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2007 * target.c (info_target_command): Update.
2008 * symfile.c (syms_from_objfile_1, finish_new_objfile)
2009 (symbol_file_clear, reread_symbols): Update.
2010 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
2011 * stabsread.c (scan_file_globals): Update.
2012 * solib.c (update_solib_list): Update.
2013 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
2014 (svr4_fetch_objfile_link_map, enable_break)
2015 (svr4_relocate_main_executable)
2016 (svr4_iterate_over_objfiles_in_search_order): Update.
2017 * solib-frv.c (lm_base, enable_break)
2018 (frv_relocate_main_executable): Update.
2019 (main_got, frv_fdpic_find_canonical_descriptor): Update.
2020 (frv_fetch_objfile_link_map): Update.
2021 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
2022 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
2023 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
2024 * remote.c (remote_target::get_offsets): Update.
2025 (remote_target::start_remote)
2026 (extended_remote_target::post_attach): Update.
2027 * objfiles.c (entry_point_address_query): Update.
2028 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
2029 * minsyms.c (get_symbol_leading_char): Update.
2030 * frame.c (inside_main_func): Update.
2031 * progspace.h (symfile_objfile): Remove macro.
2032
19f6550e
TT
20332020-10-29 Tom Tromey <tom@tromey.com>
2034
2035 * exec.c (exec_file_attach): Update.
2036 * progspace.c (program_space::exec_close): Update.
2037 * progspace.h (struct program_space) <ebfd>: Now a
2038 gdb_bfd_ref_ptr.
2039 <set_exec_bfd>: Change argument type.
2040 <exec_bfd>: Update.
2041
7e10abd1
TT
20422020-10-29 Tom Tromey <tom@tromey.com>
2043
2044 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2045 * symfile.c (reread_symbols): Update.
2046 * symfile-mem.c (add_symbol_file_from_memory_command)
2047 (add_vsyscall_page): Update.
2048 * source-cache.c (source_cache::get_plain_source_lines): Update.
2049 * solib-svr4.c (find_program_interpreter, elf_locate_base)
2050 (svr4_current_sos_direct, svr4_exec_displacement)
2051 (svr4_relocate_main_executable): Update.
2052 (svr4_iterate_over_objfiles_in_search_order): Update.
2053 * solib-frv.c (enable_break2, enable_break): Update.
2054 * solib-dsbt.c (lm_base, enable_break): Update.
2055 * solib-darwin.c (find_program_interpreter)
2056 (darwin_solib_create_inferior_hook): Update.
2057 * sol-thread.c (rw_common, ps_pdmodel): Update.
2058 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
2059 * remote.c (compare_sections_command)
2060 (remote_target::trace_set_readonly_regions): Update.
2061 * remote-sim.c (get_sim_inferior_data)
2062 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
2063 (gdbsim_target_open, gdbsim_target::files_info): Update.
2064 * exec.h (exec_bfd): Remove macro.
2065 * progspace.c (initialize_progspace): Update.
2066 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
2067 Update.
2068 * nto-procfs.c (nto_procfs_target::post_attach)
2069 (nto_procfs_target::create_inferior): Update.
2070 * maint.c (maintenance_info_sections): Update.
2071 * linux-thread-db.c (thread_db_target::get_thread_local_address):
2072 Update.
2073 * infcmd.c (post_create_inferior): Update.
2074 * gcore.c (default_gcore_arch, default_gcore_target): Update.
2075 (objfile_find_memory_regions): Update.
2076 * exec.c (validate_exec_file, exec_file_attach)
2077 (exec_read_partial_read_only, print_section_info): Update.
2078 * corelow.c (core_target_open): Update.
2079 * corefile.c (reopen_exec_file, validate_files): Update.
2080 * arm-tdep.c (gdb_print_insn_arm): Update.
2081 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
2082 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
2083 methods.
2084
b55221ab
TT
20852020-10-29 Tom Tromey <tom@tromey.com>
2086
2087 * progspace.h (current_target_sections): Remove macro.
2088 * solib-svr4.c (scan_dyntag): Update.
2089 * solib-dsbt.c (scan_dyntag): Update.
2090 * exec.c (exec_target::close): Update.
2091 (add_target_sections, add_target_sections_of_objfile)
2092 (remove_target_sections, exec_target::get_section_table)
2093 (exec_target::files_info, set_section_command)
2094 (exec_set_section_address, exec_target::has_memory)
2095 (exec_target::has_memory): Update.
2096
5a36e715
TT
20972020-10-29 Tom Tromey <tom@tromey.com>
2098
2099 * source-cache.c (source_cache::get_plain_source_lines): Use
2100 current_program_space.
2101 * corefile.c (reopen_exec_file): Use current_program_space.
2102 * exec.c (exec_file_attach): Use current_program_space.
2103 * exec.h (exec_bfd_mtime): Remove.
2104
784c8592
TT
21052020-10-29 Tom Tromey <tom@tromey.com>
2106
2107 * gcore.c (default_gcore_mach): Remove.
2108 (create_gcore_bfd): Update.
2109
8a4f1402
TT
21102020-10-29 Tom Tromey <tom@tromey.com>
2111
2112 * progspace.c (program_space::exec_close): New method, from
2113 exec_close in exec.c.
2114 * exec.c (exec_close): Move to progspace.c.
2115 (exec_target::close, exec_file_attach): Update.
2116 * progspace.h (struct program_space) <exec_close>: Declare
2117 method.
2118
c20cb686
TT
21192020-10-29 Tom Tromey <tom@tromey.com>
2120
2121 * progspace.h (struct program_space) <exec_filename>: Rename from
2122 pspace_exec_filename. Now a unique_xmalloc_ptr.
2123 * inferior.c (print_selected_inferior): Update.
2124 (print_inferior): Update.
2125 * mi/mi-main.c (print_one_inferior): Update.
2126 * exec.h (exec_filename): Remove macro.
2127 * corefile.c (get_exec_file): Update.
2128 * exec.c (exec_close): Update.
2129 (exec_file_attach): Update.
2130 * progspace.c (clone_program_space): Update.
2131 (print_program_space): Update.
2132
6be2a9ab
TT
21332020-10-29 Tom Tromey <tom@tromey.com>
2134
2135 * target-section.h (struct target_section): Add constructor.
2136 * exec.c (build_section_table, add_target_sections_of_objfile):
2137 Update.
2138 * corelow.c (core_target::build_file_mappings): Update.
2139
cfaa8f76
TBA
21402020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2141
2142 PR gdb/19318
2143 * inferior.c (detach_inferior_command): Restore the current thread.
2144 (kill_inferior_command): Ditto.
2145
1b00ef06
TV
21462020-10-28 Tom de Vries <tdevries@suse.de>
2147
2148 PR symtab/26772
2149 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
2150 map, check it in the "best match" loop.
2151
7f40ce1a
SM
21522020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
2153
2154 * m32c-tdep.c: Remove unused includes.
2155
5eb9e3f5
SM
21562020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
2157
2158 * xtensa-tdep.c: Remove includes.
2159
b1d4d8d1
TBA
21602020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2161
2162 * breakpoint.c (struct condition_command_opts): New struct.
2163 (condition_command_option_defs): New static global.
2164 (make_condition_command_options_def_group): New function.
2165 (condition_completer): Update to consider the '-force' flag.
2166 (condition_command): Use gdb::option for the '-force' flag.
2167
bd24c5d6
TV
21682020-10-27 Tom de Vries <tdevries@suse.de>
2169
2170 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
2171 symbols in section check.
2172
61eb46a4
TV
21732020-10-27 Tom de Vries <tdevries@suse.de>
2174
2175 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
2176
733d554a
TBA
21772020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2178
2179 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
2180 * breakpoint.c: Update the help text of the 'condition' and 'break'
2181 commands.
2182 (set_breakpoint_condition): Take a new bool parameter
2183 to control whether condition definition should be forced even when
2184 the condition expression is invalid in all of the current locations.
2185 (condition_command): Update the call to 'set_breakpoint_condition'.
2186 (find_condition_and_thread): Take the "-force-condition" flag into
2187 account.
2188 * linespec.c (linespec_keywords): Add "-force-condition" as an
2189 element.
2190 (FORCE_KEYWORD_INDEX): New #define.
2191 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
2192 as a keyword.
2193 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
2194 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
2195 * python/py-breakpoint.c (bppy_set_condition): Ditto.
2196 * NEWS: Mention the changes to the 'break' and 'condition' commands.
2197
b5fa468f
TBA
21982020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2199
2200 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
2201 * breakpoint.c (set_breakpoint_location_condition): New function.
2202 (set_breakpoint_condition): Disable a breakpoint location if parsing
2203 the condition string gives an error.
2204 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
2205 (build_target_condition_list): Ditto.
2206 (build_target_command_list): Ditto.
2207 (build_bpstat_chain): Ditto.
2208 (print_one_breakpoint_location): Ditto.
2209 (print_one_breakpoint): Ditto.
2210 (breakpoint_1): Ditto.
2211 (bp_location::bp_location): Ditto.
2212 (locations_are_equal): Ditto.
2213 (update_breakpoint_locations): Ditto.
2214 (enable_disable_bp_num_loc): Ditto.
2215 (init_breakpoint_sal): Use set_breakpoint_location_condition.
2216 (find_condition_and_thread_for_sals): New static function.
2217 (create_breakpoint): Call find_condition_and_thread_for_sals.
2218 (location_to_sals): Call find_condition_and_thread_for_sals instead
2219 of find_condition_and_thread.
2220
1c47ec3e
TV
22212020-10-26 Tom de Vries <tdevries@suse.de>
2222
2223 * dwarf2/read.c (process_full_comp_unit): Call
2224 dwarf2_find_base_address.
2225
6390859c
TT
22262020-10-26 Tom Tromey <tromey@adacore.com>
2227
2228 * gdbtypes.c (create_range_type): Revert previous patch. Add
2229 comment.
2230
d744f0f9
PA
22312020-10-26 Pedro Alves <pedro@palves.net>
2232
2233 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
2234 (my_waitpid): Use gdb::handle_eintr.
2235
006811bc
SM
22362020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
2237
2238 * acinclude.m4: Update ptrace.m4 path.
2239 * ptrace.m4: Moved to gdbsupport.
2240
c75e31a1
SM
22412020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
2242
2243 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
2244 instead of target_gdbarch.
2245
32495661
SM
22462020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
2247
2248 * jit.c (jit_reader_load_command): Pass current inferior.
2249 (jit_inferior_init): Change parameter type to inferior, use it.
2250 (jit_inferior_created): Remove.
2251 (jit_inferior_created_hook): Pass inferior parameter down.
2252 (_initialize_jit): Use jit_inferior_created_hook instead of
2253 jit_inferior_created.
2254 * jit.h (jit_inferior_created_hook): Add inferior parameter.
2255 * infrun.c (follow_exec): Pass inferior to
2256 jit_inferior_created_hook.
2257
3f66685e
SM
22582020-10-24 Simon Marchi <simon.marchi@efficios.com>
2259
2260 * linux-thread-db.c (check_pid_namespace_match): Add inferior
2261 parameter and use it.
2262 (thread_db_inferior_created): Pass inferior argument.
2263
a0ff652f
SM
22642020-10-24 Simon Marchi <simon.marchi@efficios.com>
2265
2266 * aix-thread.c (aix_thread_inferior_created): Add inferior
2267 parameter.
2268 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
2269 * dummy-frame.c (cleanup_dummy_frames): Likewise.
2270 * jit.c (jit_inferior_created): Likewise.
2271 * linux-thread-db.c (thread_db_inferior_created): Likewise.
2272 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
2273 * observable.h (inferior_created): Likewise.
2274 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
2275 * symfile-mem.c (add_vsyscall_page): Likewise.
2276 * infcmd.c (post_create_inferior): Pass inferior argument.
2277
3c67532c
JB
22782020-10-24 Joel Brobecker <brobecker@adacore.com>
2279
2280 GDB 10.1 released.
2281
8747316e
JB
22822020-10-23 Joel Brobecker <brobecker@adacore.com>
2283
2284 * ada-typeprint.c (ada_print_type): Remove superfluous second call
2285 to ada_check_typedef.
2286
1a0ea399
AB
22872020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2288
2289 * f-exp.y (f_parse): Rename to...
2290 (f_language::parser): ...this.
2291 * f-lang.c (f_get_encoding): Rename to...
2292 (f_language::get_encoding): ...this.
2293 (f_op_print_tab): Rename to...
2294 (f_language::op_print_tab): ...this.
2295 (exp_descriptor_f): Rename to...
2296 (f_language::exp_descriptor_tab): ...this.
2297 (class f_language): Moved to f-lang.h.
2298 (f_language::language_arch_info): New function, moved out of class
2299 declaration.
2300 (f_language::search_name_hash): Likewise.
2301 (f_language::lookup_symbol_nonlocal): Likewise.
2302 (f_language::get_symbol_name_matcher_inner): Likewise.
2303 * f-lang.h: Add 'valprint.h' include.
2304 (class f_language): Moved here from f-lang.c.
2305 * f-typeprint.c (f_type_print_args): Delete commented out
2306 declaration.
2307 (f_print_typedef): Rename to...
2308 (f_language::print_typedef): ...this.
2309 (f_print_type): Rename to...
2310 (f_language::print_type): ...this.
2311 (f_type_print_varspec_prefix): Delete declaration and rename to...
2312 (f_language::f_type_print_varspec_prefix): ...this.
2313 (f_type_print_varspec_suffix): Delete declaration and rename to...
2314 (f_language::f_type_print_varspec_suffix): ...this.
2315 (f_type_print_base): Delete declaration and rename to...
2316 (f_language::f_type_print_base): ...this.
2317 * f-valprint.c (f_value_print_inner): Rename to...
2318 (f_language::value_print_inner): ...this.
2319 * parse.c: Delete 'f-lang.h' include.
2320
88cefd9b
AB
23212020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2322
2323 * language.h (language_defn::print_type): Add variable names in
2324 declaration, and update header comment.
2325
5399db93
AB
23262020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2327
2328 * ada-lang.c (ada_language::demangle): Rename to...
2329 (ada_language::demangle_symbol): ...this.
2330 * c-lang.c (cplus_language::demangle): Rename to...
2331 (cplus_language::demangle_symbol): ...this.
2332 * d-lang.c (d_language::demangle): Rename to...
2333 (d_language::demangle_symbol): ...this.
2334 * f-lang.c (f_language::demangle): Rename to...
2335 (f_language::demangle_symbol): ...this.
2336 * go-lang.c (go_language::demangle): Rename to...
2337 (go_language::demangle_symbol): ...this.
2338 * language.c (language_demangle): Update call to demangle_symbol.
2339 (auto_or_unknown_language::demangle): Rename to...
2340 (auto_or_unknown_language::demangle_symbol): ...this.
2341 * language.h (language_defn::demangle): Rename to...
2342 (language_defn::demangle_symbol): ...this.
2343 * objc-lang.c (objc_language::demangle): Rename to...
2344 (objc_language::demangle_symbol): ...this.
2345 * rust-lang.c (rust_language::demangle): Rename to...
2346 (rust_language::demangle_symbol): ...this.
2347
4b2f86ef
AB
23482020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2349
2350 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
2351 (iterate_over_file_blocks): Replace use of macro with the macros
2352 definition.
2353
e74b39de
AB
23542020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2355
2356 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
2357 * valprint.c (maybe_print_array_index): Replace use of macro with
2358 the macros definition.
2359
00c696a6
AB
23602020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2361
2362 * ada-lang.c (ada_language::print_array_index): Call value_print
2363 directly.
2364 * language.c (language_defn::print_array_index): Likewise.
2365 * language.h (LA_VALUE_PRINT): Delete.
2366 * valprint.c (value_print): Call value_print on the
2367 current_language directly.
2368
d3b67c56
AB
23692020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2370
2371 * language.h (LA_PRINT_TYPEDEF): Delete.
2372 * typeprint.c (typedef_print): Call print_typedef directly on the
2373 current_language object.
2374
790e2a12
AB
23752020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2376
2377 * m2-exp.y (m2_parse): Rename to...
2378 (m2_language::parser): ...this. Update function signature.
2379 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
2380 (m2_op_print): Rename to...
2381 (m2_language::op_print_tab): ...this, and make const.
2382 (exp_descriptor_modula2): Rename to...
2383 (m2_language::exp_descriptor_modula2): ...this.
2384 (class m2_language): Move to m2-lang.h.
2385 (m2_language::language_arch_info): New function, moved out of
2386 class declaration.
2387 (m2_language::printchar): New function, body from m2_printchar.
2388 (m2_language::printstr): New function, moved out of class
2389 declaration.
2390 (m2_language::emitchar): Likewise.
2391 * m2-lang.h (m2_parse): Delete declaration.
2392 (m2_print_typedef): Delete declaration.
2393 (m2_value_print_inner): Delete declaration.
2394 (class m2_language): Class declaration moved from m2-lang.c,
2395 larger functions are left in m2-lang.c.
2396 * m2-typeprint.c (m2_print_typedef): Rename to...
2397 (m2_language::print_typedef): ...this, and update function
2398 signature.
2399 * m2-valprint.c (m2_value_print_inner): Rename to...
2400 (m2_language::value_print_inner): ...this, replace use of
2401 LA_PRINT_STRING with a direct call to printstr member function,
2402 and update recursive call.
2403
b01175fc
AB
24042020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2405
2406 * language.c (default_is_string_type_p): Delete, implementation
2407 moved into auto_or_unknown_language::is_string_type_p.
2408 (unk_op_print_tab): Moved into
2409 auto_or_unknown_language::opcode_print_table.
2410 (unknown_language_arch_info): Delete, implementation moved into
2411 auto_or_unknown_language::language_arch_info.
2412 (class auto_or_unknown_language): New class, member functions
2413 copied from unknown_language class, with some updates.
2414 (class unknown_language): Most member functions moved into
2415 auto_or_unknown_language class. Inherit from
2416 auto_or_unknown_language class.
2417 (class auto_language): Inherit from auto_or_unknown_language.
2418 Delete most member functions.
2419
1a97fe8c
HD
24202020-10-22 Hannes Domani <ssbssa@yahoo.de>
2421
2422 * stabsread.c (read_member_functions): Remove gdb_assert.
2423
6b9d0dfd
HD
24242020-10-22 Hannes Domani <ssbssa@yahoo.de>
2425
2426 * gdbtypes.c (init_complex_type): Check target type name.
2427
4b4bb603
SM
24282020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
2429
2430 * target-debug.h (target_debug_print_struct_target_ops_p):
2431 Remove.
2432 (target_debug_print_async_callback_ftype_p): Remove.
2433 (target_debug_print_struct_trace_state_variable_p): Remove.
2434 (target_debug_print_struct_traceframe_info_p): Remove.
2435 (target_debug_print_VEC__btrace_block_s__pp): Remove.
2436 (target_debug_print_enum_btrace_format): Remove.
2437 (target_debug_print_enum_info_proc_what): Remove.
2438 (target_debug_print_thread_info_pp): Remove.
2439
24f5300a
SM
24402020-10-22 Simon Marchi <simon.marchi@efficios.com>
2441
2442 * target.h (struct target_ops) <make_corefile_notes>:
2443 Change return type to unique pointer.
2444 * target.c (dummy_make_corefile_notes): Likewise.
2445 * exec.c (struct exec_target) <make_corefile_notes>:
2446 Likewise.
2447 (exec_target::make_corefile_notes): Likewise.
2448 * procfs.c (class procfs_target) <make_corefile_notes>:
2449 Likewise.
2450 (procfs_do_thread_registers): Adjust to unique pointer.
2451 (struct procfs_corefile_thread_data): Add constructor.
2452 <note_data>: Change type to unique pointer.
2453 (procfs_corefile_thread_callback): Adjust to unique pointer.
2454 (procfs_target::make_corefile_notes): Change return type to
2455 unique pointer.
2456 * target-delegates.c: Re-generate.
2457 * gcore.c (write_gcore_file_1): Adjust.
2458 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
2459 New.
2460
5fb4027f
TV
24612020-10-22 Tom de Vries <tdevries@suse.de>
2462
2463 * block.c (find_block_in_blockvector): Make sure the returned block
2464 contains pc.
2465
4a636814
SM
24662020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
2467
2468 PR gdb/26693
2469 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
2470 parameter.
2471 (load_cu): Pass existing CU.
2472 (process_imported_unit_die): Likewise.
2473 (follow_die_offset): Likewise.
2474
1bd57575
LM
24752020-10-22 Luis Machado <luis.machado@linaro.org>
2476
2477 * corelow.c (core_target::xfer_partial): Also check for an empty
2478 m_core_unavailable_mappings vector.
2479
6b4c676c
AB
24802020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2481
2482 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
2483 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
2484 * f-exp.y (arglist): Allow for a series of subranges.
2485 (subrange): Add cases for subranges with strides.
2486 * f-lang.c (value_f90_subarray): Catch use of array strides and
2487 throw an error.
2488 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
2489
f2d8e4c5
AB
24902020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2491
2492 * expprint.c (print_subexp_standard): Change enum range_type to
2493 range_flag and rename variables to match.
2494 (dump_subexp_body_standard): Likewise.
2495 * expression.h (enum range_type): Rename to...
2496 (enum range_flag): ...this.
2497 (range_types): Rename to...
2498 (range_flags): ...this.
2499 * f-lang.c (value_f90_subarray): Change enum range_type to
2500 range_flag and rename variables to match.
2501 * parse.c (operator_length_standard): Likewise.
2502 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
2503 range_type to range_flag.
2504 * rust-lang.c (rust_evaluate_funcall): Likewise.
2505 (rust_range): Likewise.
2506 (rust_compute_range): Likewise.
2507 (rust_subscript): Likewise.
2508
2f1b18db
AB
25092020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2510
2511 * expprint.c (print_subexp_standard): Update to reflect changes to
2512 enum range_type.
2513 (dump_subexp_body_standard): Likewise.
2514 * expression.h (enum range_type): Convert to a bit field enum, and
2515 make the enum unsigned.
2516 * f-exp.y (subrange): Update to reflect changes to enum
2517 range_type.
2518 * f-lang.c (value_f90_subarray): Likewise.
2519 * parse.c (operator_length_standard): Likewise.
2520 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
2521 * rust-lang.c (rust_range): Likewise.
2522 (rust_compute_range): Likewise.
2523 (rust_subscript): Likewise.
2524
a46d1843
SM
25252020-10-21 Simon Marchi <simon.marchi@efficios.com>
2526
2527 * infrun.c (displaced_step_in_progress_thread): Fix comment.
2528 (displaced_step_in_progress): Fix comment.
2529
c21f37a8
SM
25302020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
2531
2532 * gdbarch.sh (make_corefile_notes): Return unique pointer.
2533 * gdbarch.c: Re-generate.
2534 * gdbarch.h: Re-generate.
2535 * gcore.c (write_gcore_file_1): Adjust.
2536 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
2537 constructor.
2538 <note_data>: Change type to unique pointer.
2539 <abort_iteration>: Change type to bool.
2540 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
2541 (fbsd_collect_thread_registers): Return void, adjust.
2542 (struct fbsd_corefile_thread_data): Add construtor.
2543 <note_data>: Change type to unique pointer.
2544 (fbsd_corefile_thread): Adjust.
2545 (fbsd_make_corefile_notes): Return unique pointer, adjust.
2546 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
2547 to unique pointer, adjust.
2548 (struct linux_collect_regset_section_cb_data): Add constructor.
2549 <note_data>: Change type to unique pointer.
2550 <abort_iteration>: Change type to bool.
2551 (linux_collect_thread_registers): Return void, adjust.
2552 (struct linux_corefile_thread_data): Add constructor.
2553 <note_data>: Change type to unique pointer.
2554 (linux_corefile_thread): Adjust.
2555 (linux_make_corefile_notes): Return unique pointer, adjust.
2556
07fbbd01
SM
25572020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2558
2559 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
2560 * gdbarch.c: Re-generate.
2561 * gdbarch.h: Re-generate.
2562 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
2563 bool.
2564 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
2565 Likewise.
2566 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
2567 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
2568 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
2569 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
2570
39535193
SM
25712020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2572
2573 * gdbarch.sh: Make generated predicates return bool.
2574 * gdbarch.c: Re-generate.
2575 * gdbarch.h: Re-generate.
2576
ad523d01
TT
25772020-10-20 Tom Tromey <tom@tromey.com>
2578
2579 * varobj-iter.h (struct varobj_item): Remove typedef.
2580
c4464ade
SM
25812020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2582
2583 * infrun.c (currently_stepping): Change int to bool
2584 (maybe_software_singlestep): Likewise.
2585 (show_stop_on_solib_events): Likewise.
2586 (stepping_past_nonsteppable_watchpoint): Likewise.
2587 (displaced_step_in_progress_any_inferior): Likewise.
2588 (displaced_step_in_progress_thread): Likewise.
2589 (keep_going_stepped_thread): Likewise.
2590 (thread_still_needs_step_over): Likewise.
2591 (start_step_over): Likewise.
2592 (do_target_resume): Likewise.
2593 (resume_1): Likewise.
2594 (clear_proceed_status): Likewise.
2595 (thread_still_needs_step_over_bp): Likewise.
2596 (proceed): Likewise.
2597 (switch_back_to_stepped_thread): Likewise.
2598 (adjust_pc_after_break): Likewise.
2599 (stepped_in_from): Likewise.
2600 (handle_stop_requested): Likewise.
2601 (handle_syscall_event): Likewise.
2602 (handle_no_resumed): Likewise.
2603 (handle_inferior_event): Likewise.
2604 (finish_step_over): Likewise.
2605 (handle_signal_stop): Likewise.
2606 (process_event_stop_test): Likewise.
2607
2eb20436
SM
26082020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2609
2610 * infrun.c (get_displaced_stepping_state): Fix comment.
2611
e0c45ded
AS
26122020-10-20 Andreas Schwab <schwab@linux-m68k.org>
2613
2614 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
2615
22cc388e
TT
26162020-10-19 Tom Tromey <tromey@adacore.com>
2617
2618 PR tui/26719
2619 * tui/tui-winsource.h (struct tui_source_window_base)
2620 <refresh_window>: Rename from refresh_pad.
2621 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
2622 Rename from refresh_pad.
2623 (tui_source_window_base::show_source_content)
2624 (tui_source_window_base::do_scroll_horizontal): Update.
2625
3c6eb4d4
TBA
26262020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2627
2628 * thread.c (_initialize_thread): Fine-tune the help text of
2629 'info threads'.
2630
26703721
TBA
26312020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2632
2633 * frame.c: Remove the unused 'uinteger_option_def' type alias.
2634
61c26be8
MS
26352020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
2636
2637 * breakpoint.c (handle_jit_event): Add an argument, change how
2638 `jit_event_handler` is called.
2639
932539d7
TT
26402020-10-17 Tom Tromey <tom@tromey.com>
2641
2642 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
2643 (scan_xcoff_symtab): Update.
2644 * psymtab.h (class psymtab_storage) <global_psymbols,
2645 static_psymbols, current_global_psymbols,
2646 current_static_psymbols>: Remove.
2647 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
2648 (match_partial_symbol, lookup_partial_symbol): Update.
2649 (print_partial_symbols): Change parameters.
2650 (dump_psymtab, recursively_search_psymtabs)
2651 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
2652 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
2653 (concat): Remove.
2654 (end_psymtab_common): Simplify.
2655 (append_psymbol_to_list): Change parameters.
2656 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
2657 (init_psymbol_list): Simplify.
2658 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
2659 * psympriv.h (struct partial_symtab) <empty>: New method.
2660 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
2661 Remove.
2662 <global_psymbols, static_psymbols>: New members.
2663 <add_psymbol>: New methods.
2664 (add_psymbol_to_list): Don't declare.
2665 (psymbol_placement): Move earlier.
2666 * mdebugread.c (parse_partial_symbols): Update.
2667 (handle_psymbol_enumerators): Change parameters.
2668 (mdebug_expand_psymtab): Update.
2669 * dwarf2/read.c (process_psymtab_comp_unit_reader)
2670 (add_partial_symbol): Update.
2671 * dwarf2/index-write.c (write_psymbols): Change parameters.
2672 (write_one_signatured_type): Update.
2673 (recursively_count_psymbols): Update.
2674 (recursively_write_psymbols): Update.
2675 (class debug_names) <recursively_write_psymbols>: Update.
2676 <write_psymbols>: Change parameters.
2677 <write_one_signatured_type>: Update.
2678 * dbxread.c (read_dbx_symtab): Update.
2679 (dbx_end_psymtab): Use partial_symtab::empty.
2680 * ctfread.c (struct ctf_context) <pst>: New member.
2681 (create_partial_symtab): Set it.
2682 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
2683 (scan_partial_symbols): Use the psymtab's context. Update.
2684
cfabbd35
TT
26852020-10-17 Tom Tromey <tom@tromey.com>
2686
2687 * valprint.c (generic_value_print): Remove comment.
2688 * m2-valprint.c (m2_value_print_inner): Remove comment.
2689 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
2690 type.
2691
520596f2
TV
26922020-10-17 Tom de Vries <tdevries@suse.de>
2693
2694 PR symtab/26317
2695 * source.c (select_source_symtab): Handling sal.symtab == NULL for
2696 symbol main.
2697
76547ab3
TV
26982020-10-14 Tom de Vries <tdevries@suse.de>
2699
2700 PR gdb/26733
2701 * solib.c (solib_contains_address_p): Handle
2702 'solib->sections == nullptr'.
2703
d3a07122
SM
27042020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
2705
2706 PR gdb/26642
2707 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
2708 target can't do async.
2709 * target.c (target_wait): Assert that we don't pass
2710 TARGET_WNOHANG to a target that can't async.
2711
1b71cfcf
KR
27122020-10-13 Kamil Rytarowski <n54@gmx.com>
2713
2714 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
2715 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
2716 * alpha-bsd-nat.c: Adjust include.
2717 * alpha-bsd-tdep.h: Adjust comment.
2718 * alpha-nbsd-tdep.c: Rename to ...
2719 * alpha-netbsd-tdep.c: ... this, adjust include.
2720 * amd64-nbsd-nat.c: Rename to ...
2721 * amd64-netbsd-nat.c: ... this, adjust include.
2722 * amd64-nbsd-tdep.c: Rename to ...
2723 * amd64-netbsd-tdep.c: ... this, adjust include.
2724 * amd64-tdep.h: Adjust include.
2725 * arm-nbsd-nat.c: Rename to ...
2726 * arm-netbsd-nat.c: ... this, adjust include.
2727 * arm-nbsd-tdep.c: Rename to ...
2728 * arm-netbsd-tdep.c: ... this, adjust include.
2729 * arm-nbsd-tdep.h: Rename to ...
2730 * arm-netbsd-tdep.h: ... this, adjust include.
2731 * configure.nat: Adjust file lists.
2732 * configure.tgt: Likewise.
2733 * hppa-nbsd-nat.c: Rename to ...
2734 * hppa-netbsd-nat.c: ... this, adjust include.
2735 * hppa-nbsd-tdep.c: Rename to ...
2736 * hppa-netbsd-tdep.c: ... this, adjust include.
2737 * i386-nbsd-nat.c: Rename to ...
2738 * i386-netbsd-nat.c: ... this, adjust include.
2739 * i386-nbsd-tdep.c: Rename to ...
2740 * i386-netbsd-tdep.c: ... this, adjust include.
2741 * m68k-bsd-nat.c: Adjust include.
2742 * mips-nbsd-nat.c: Rename to ...
2743 * mips-netbsd-nat.c: ... this, adjust include.
2744 * mips-nbsd-tdep.c: Rename to ...
2745 * mips-netbsd-tdep.c: ... this, adjust include.
2746 * mips-nbsd-tdep.h: Rename to ...
2747 * mips-netbsd-tdep.h: ... this.
2748 * nbsd-nat.c: Rename to ...
2749 * netbsd-nat.c: ... this, adjust include.
2750 * nbsd-nat.h: Rename to ...
2751 * netbsd-nat.h: ... this, adjust include.
2752 * nbsd-tdep.c: Rename to ...
2753 * netbsd-tdep.c: ... this, adjust include.
2754 * nbsd-tdep.h: Rename to ...
2755 * netbsd-tdep.h: ... this.
2756 * ppc-nbsd-nat.c: Rename to ...
2757 * ppc-netbsd-nat.c: ... this, adjust include.
2758 * ppc-nbsd-tdep.c: Rename to ...
2759 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
2760 * ppc-nbsd-tdep.h: Rename to ...
2761 * ppc-netbsd-tdep.h: ... this.
2762 * sh-nbsd-nat.c: Rename to ...
2763 * sh-netbsd-nat.c: ... this, adjust include.
2764 * sh-nbsd-tdep.c: Rename to ...
2765 * sh-netbsd-tdep.c: ... this, adjust include.
2766 * sparc-nbsd-nat.c: Rename to ...
2767 * sparc-netbsd-nat.c: ... this.
2768 * sparc-nbsd-tdep.c: Rename to ...
2769 * sparc-netbsd-tdep.c: ... this, adjust include.
2770 * sparc64-nbsd-nat.c: Rename to ...
2771 * sparc64-netbsd-nat.c: ... this.
2772 * sparc64-nbsd-tdep.c: Rename to ...
2773 * sparc64-netbsd-tdep.c: ... this, adjust include.
2774 * sparc64-tdep.h: Adjust comment.
2775 * vax-bsd-nat.c: Adjust include.
2776 * vax-nbsd-tdep.c: Rename to ...
2777 * vax-netbsd-tdep.c: ... this, adjust include.
2778
d7a78e5c
TT
27792020-10-12 Tom Tromey <tom@tromey.com>
2780
2781 * target.h (struct target_ops) <get_section_table>: Update.
2782 (target_get_section_table): Update.
2783 * target.c (target_get_section_table, target_section_by_addr)
2784 (memory_xfer_partial_1): Update.
2785 * target-section.h (target_section_table): Now an alias.
2786 * target-delegates.c: Rebuild.
2787 * target-debug.h (target_debug_print_target_section_table_p):
2788 Rename from target_debug_print_struct_target_section_table_p.
2789 * symfile.c (build_section_addr_info_from_section_table): Update.
2790 * solib.c (solib_map_sections, solib_contains_address_p): Update.
2791 * solib-svr4.c (scan_dyntag): Update.
2792 * solib-dsbt.c (scan_dyntag): Update.
2793 * remote.c (remote_target::remote_xfer_live_readonly_partial):
2794 Update.
2795 * record-full.c (record_full_core_target::xfer_partial): Update.
2796 * progspace.h (struct program_space) <target_sections>: Update.
2797 * exec.h (print_section_info): Update.
2798 * exec.c (exec_target::close, build_section_table)
2799 (add_target_sections, add_target_sections_of_objfile)
2800 (remove_target_sections, exec_on_vfork)
2801 (section_table_available_memory)
2802 (section_table_xfer_memory_partial)
2803 (exec_target::get_section_table, exec_target::xfer_partial)
2804 (print_section_info, set_section_command)
2805 (exec_set_section_address, exec_target::has_memory): Update.
2806 * corelow.c (core_target::build_file_mappings)
2807 (core_target::xfer_partial, core_target::info_proc_mappings)
2808 (core_target::info_proc_mappings): Update.
2809 * bfd-target.c (class target_bfd): Update
2810
eda214ce
TT
28112020-10-12 Tom Tromey <tom@tromey.com>
2812
2813 * progspace.c (program_space::~program_space): Don't call
2814 clear_section_table.
2815 * exec.h (clear_section_table): Don't declare.
2816 * exec.c (exec_target::close): Update.
2817 (clear_section_table): Remove.
2818
91840ee3
TT
28192020-10-12 Tom Tromey <tom@tromey.com>
2820
2821 * exec.c (add_target_sections_of_objfile): Simplify.
2822
2d128614
TT
28232020-10-12 Tom Tromey <tom@tromey.com>
2824
2825 * solib.c (solib_map_sections): Update.
2826 * record-full.c (record_full_core_open_1): Update.
2827 * exec.h (build_section_table): Return a target_section_table.
2828 * exec.c (exec_file_attach): Update.
2829 (build_section_table): Return a target_section_table.
2830 * corelow.c (core_target::core_target): Update.
2831 * bfd-target.c (target_bfd::target_bfd): Update.
2832
bb2a6777
TT
28332020-10-12 Tom Tromey <tom@tromey.com>
2834
2835 * target.c (target_section_by_addr, memory_xfer_partial_1):
2836 Update.
2837 * target-section.h (struct target_section_table): Use
2838 std::vector.
2839 * symfile.h (build_section_addr_info_from_section_table): Take a
2840 target_section_table.
2841 * symfile.c (build_section_addr_info_from_section_table): Take a
2842 target_section_table.
2843 * solist.h (struct so_list) <sections>: Change type.
2844 <sections_end>: Remove.
2845 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
2846 (solib_contains_address_p): Update.
2847 * solib-svr4.c (scan_dyntag): Update.
2848 * solib-dsbt.c (scan_dyntag): Update.
2849 * remote.c (remote_target::remote_xfer_live_readonly_partial):
2850 Update.
2851 * record-full.c (record_full_core_start, record_full_core_end):
2852 Remove.
2853 (record_full_core_sections): New global.
2854 (record_full_core_open_1, record_full_core_target::xfer_partial):
2855 Update.
2856 * exec.h (build_section_table, section_table_xfer_memory_partial)
2857 (add_target_sections): Take a target_section_table.
2858 * exec.c (exec_file_attach, clear_section_table): Update.
2859 (resize_section_table): Remove.
2860 (build_section_table, add_target_sections): Take a
2861 target_section_table.
2862 (add_target_sections_of_objfile, remove_target_sections)
2863 (exec_on_vfork): Update.
2864 (section_table_available_memory): Take a target_section_table.
2865 (section_table_read_available_memory): Update.
2866 (section_table_xfer_memory_partial): Take a target_section_table.
2867 (print_section_info, set_section_command)
2868 (exec_set_section_address, exec_target::has_memory): Update.
2869 * corelow.c (class core_target) <m_core_section_table,
2870 m_core_file_mappings>: Remove braces.
2871 <~core_target>: Remove.
2872 (core_target::core_target): Update.
2873 (core_target::~core_target): Remove.
2874 (core_target::build_file_mappings)
2875 (core_target::xfer_memory_via_mappings)
2876 (core_target::xfer_partial, core_target::info_proc_mappings):
2877 Update.
2878 * bfd-target.c (target_bfd::xfer_partial): Update.
2879 (target_bfd::target_bfd): Update.
2880 (target_bfd::~target_bfd): Remove.
2881
7b466b10
TT
28822020-10-12 Tom Tromey <tom@tromey.com>
2883
2884 * target.h (struct target_section, struct target_section_table):
2885 Move to target-section.h.
2886 * target-section.h: New file.
2887
87a37e5e
PA
28882020-10-12 Pedro Alves <pedro@palves.net>
2889
2890 PR exp/26602
2891 * valops.c (struct struct_field_searcher): New.
2892 (update_search_result): Rename to ...
2893 (struct_field_searcher::update_result): ... this. Simplify
2894 prototype. Record all found fields.
2895 (do_search_struct_field): Rename to ...
2896 (struct_field_searcher::search): ... this. Simplify prototype.
2897 Maintain stack of visited baseclass path. Call update_result for
2898 fields too. Keep searching fields in baseclasses instead of
2899 stopping at the first found field.
2900 (search_struct_field): Use struct_field_searcher. When looking
2901 for fields, report ambiguous access attempts.
2902
9370fd51
AB
29032020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
2904
2905 * frame.c (inside_main_func): Check full symbols as well as
2906 minimal symbols.
2907
59c8a30b
JB
29082020-10-09 Joel Brobecker <brobecker@adacore.com>
2909
2910 * ada-lang.c (advance_wild_match): Rewrite the function's
2911 description. Change the type of target0, t0 and t1 to char.
2912
7c184d33
TT
29132020-10-09 Tom Tromey <tromey@adacore.com>
2914
2915 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
2916
5c4258f4
TT
29172020-10-09 Tom Tromey <tromey@adacore.com>
2918
2919 * ada-lang.h (ada_encode): Return std::string.
2920 * ada-lang.c (ada_encode_1): Return std::string.
2921 (ada_encode): Likewise.
2922 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
2923 Update.
2924 * ada-exp.y (block_lookup, write_var_or_type): Update.
2925
3d87245c
HD
29262020-10-09 Hannes Domani <ssbssa@yahoo.de>
2927
2928 PR exp/26714
2929 * printcmd.c (print_formatted): Handle void results as
2930 unformatted prints.
2931
bbb826f5
AB
29322020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
2933
2934 * arch/aarch32.c (aarch32_create_target_description): Release the
2935 target_desc_up as late as possible.
2936 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2937 * arch/amd64.c (amd64_create_target_description): Likewise.
2938 * arch/arc.c (arc_create_target_description): Return a
2939 target_desc_up, don't release it.
2940 * arch/arc.h (arc_create_target_description): Update declaration.
2941 (arc_lookup_target_description): Move target_desc_up into the
2942 cache, and return a borrowed pointer.
2943 * arch/arm.c (arm_create_target_description): Release the
2944 target_desc_up as late as possible.
2945 * arch/i386.c (i386_create_target_description): Likewise.
2946 * arch/riscv.h (riscv_create_target_description): Update
2947 declaration to match definition.
2948 * arch/tic6x.c (tic6x_create_target_description): Release the
2949 target_desc_up as late as possible.
2950
361cb219
AB
29512020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
2952
2953 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
2954 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
2955
f5c4b229
JV
29562020-10-09 Jan Vrany <jan.vrany@labware.com>
2957
2958 * source.c (directory_command): Notify observers that "directories"
2959 parameter has changed.
2960
b2701685
TT
29612020-10-08 Tom Tromey <tom@tromey.com>
2962
2963 * cli/cli-cmds.c (print_disassembly): Style function name and
2964 addresses. Add _() wrappers.
2965
ada508b6
SV
29662020-10-08 Shahab Vahedi <shahab@synopsys.com>
2967
2968 * NEWS: Mention ARC support in GDBserver.
2969
51a948fd
AB
29702020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
2971
2972 * arch/aarch32.c (aarch32_create_target_description): Release
2973 unique_ptr returned from allocate_target_description.
2974 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2975 * arch/amd64.c (amd64_create_target_description): Likewise.
2976 * arch/arc.c (arc_create_target_description): Likewise.
2977 * arch/arm.c (arm_create_target_description): Likewise.
2978 * arch/i386.c (i386_create_target_description): Likewise.
2979 * arch/riscv.c (riscv_create_target_description): Update return
2980 type. Handle allocate_target_description returning a unique_ptr.
2981 (riscv_lookup_target_description): Update to handle unique_ptr.
2982 * arch/tic6x.c (tic6x_create_target_description): Release
2983 unique_ptr returned from allocate_target_description.
2984 * features/microblaze-with-stack-protect.c: Regenerate.
2985 * features/microblaze.c: Regenerate.
2986 * features/mips-dsp-linux.c: Regenerate.
2987 * features/mips-linux.c: Regenerate.
2988 * features/mips64-dsp-linux.c: Regenerate.
2989 * features/mips64-linux.c: Regenerate.
2990 * features/nds32.c: Regenerate.
2991 * features/nios2.c: Regenerate.
2992 * features/or1k.c: Regenerate.
2993 * features/rs6000/powerpc-32.c: Regenerate.
2994 * features/rs6000/powerpc-32l.c: Regenerate.
2995 * features/rs6000/powerpc-403.c: Regenerate.
2996 * features/rs6000/powerpc-403gc.c: Regenerate.
2997 * features/rs6000/powerpc-405.c: Regenerate.
2998 * features/rs6000/powerpc-505.c: Regenerate.
2999 * features/rs6000/powerpc-601.c: Regenerate.
3000 * features/rs6000/powerpc-602.c: Regenerate.
3001 * features/rs6000/powerpc-603.c: Regenerate.
3002 * features/rs6000/powerpc-604.c: Regenerate.
3003 * features/rs6000/powerpc-64.c: Regenerate.
3004 * features/rs6000/powerpc-64l.c: Regenerate.
3005 * features/rs6000/powerpc-7400.c: Regenerate.
3006 * features/rs6000/powerpc-750.c: Regenerate.
3007 * features/rs6000/powerpc-860.c: Regenerate.
3008 * features/rs6000/powerpc-altivec32.c: Regenerate.
3009 * features/rs6000/powerpc-altivec32l.c: Regenerate.
3010 * features/rs6000/powerpc-altivec64.c: Regenerate.
3011 * features/rs6000/powerpc-altivec64l.c: Regenerate.
3012 * features/rs6000/powerpc-e500.c: Regenerate.
3013 * features/rs6000/powerpc-e500l.c: Regenerate.
3014 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
3015 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
3016 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
3017 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
3018 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
3019 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
3020 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
3021 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
3022 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
3023 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
3024 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
3025 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
3026 * features/rs6000/powerpc-vsx32.c: Regenerate.
3027 * features/rs6000/powerpc-vsx32l.c: Regenerate.
3028 * features/rs6000/powerpc-vsx64.c: Regenerate.
3029 * features/rs6000/powerpc-vsx64l.c: Regenerate.
3030 * features/rs6000/rs6000.c: Regenerate.
3031 * features/rx.c: Regenerate.
3032 * features/s390-gs-linux64.c: Regenerate.
3033 * features/s390-linux32.c: Regenerate.
3034 * features/s390-linux32v1.c: Regenerate.
3035 * features/s390-linux32v2.c: Regenerate.
3036 * features/s390-linux64.c: Regenerate.
3037 * features/s390-linux64v1.c: Regenerate.
3038 * features/s390-linux64v2.c: Regenerate.
3039 * features/s390-te-linux64.c: Regenerate.
3040 * features/s390-tevx-linux64.c: Regenerate.
3041 * features/s390-vx-linux64.c: Regenerate.
3042 * features/s390x-gs-linux64.c: Regenerate.
3043 * features/s390x-linux64.c: Regenerate.
3044 * features/s390x-linux64v1.c: Regenerate.
3045 * features/s390x-linux64v2.c: Regenerate.
3046 * features/s390x-te-linux64.c: Regenerate.
3047 * features/s390x-tevx-linux64.c: Regenerate.
3048 * features/s390x-vx-linux64.c: Regenerate.
3049 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
3050 from allocate_target_description.
3051 * target-descriptions.c (allocate_target_description): Update
3052 return type.
3053 (print_c_tdesc::visit_pre): Release unique_ptr returned from
3054 allocate_target_description.
3055
485c47e5
TT
30562020-10-07 Tom Tromey <tromey@adacore.com>
3057
3058 * unittests/search-memory-selftests.c: New file.
3059 * Makefile.in (SELFTESTS_SRCS): Add
3060 unittests/search-memory-selftests.c.
3061
3a135a91
TT
30622020-10-07 Tom Tromey <tromey@adacore.com>
3063
3064 PR gdb/16930:
3065 * findcmd.c (_initialize_mem_search): Mention that the range is
3066 inclusive.
3067
4a72de73
TT
30682020-10-07 Tom Tromey <tromey@adacore.com>
3069
3070 * target.h (simple_search_memory): Don't declare.
3071 * target.c (simple_search_memory): Move to gdbsupport.
3072 (default_search_memory): Update.
3073 * remote.c (remote_target::search_memory): Update.
3074
a038ffd8
SM
30752020-10-07 Simon Marchi <simon.marchi@efficios.com>
3076
3077 * Makefile.in (COMPILE): Add CXXFLAGS.
3078 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
3079 (check-headers): Add CXXFLAGS.
3080
cc463201
AK
30812020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
3082
3083 * arc-linux-tdep.h: New file.
3084 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
3085 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
3086 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
3087 arc_linux_gregset, arc_linux_v2_regset,
3088 arc_linux_iterate_over_regset_sections,
3089 arc_linux_core_read_description): Implement.
3090 (arc_linux_init_osabi): Set iterate_over_regset_sections.
3091 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
3092 (arc_gdbarch_features_create): Add.
3093 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
3094
e4bd363f
SV
30952020-10-07 Shahab Vahedi <shahab@synopsys.com>
3096
3097 * arch/arc.h: Rename "arc_gdbarch_features" to
3098 "arc_arch_features".
3099 * arc-tdep.h: Likewise.
3100 * arc-tdep.c: Likewise.
3101
b68bef99
TBA
31022020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3103
3104 * infcmd.c (attach_command): Remove the redundant call to
3105 `clear_proceed_status`.
3106
4641551a
KR
31072020-10-07 Kamil Rytarowski <n54@gmx.com>
3108
3109 * nat/netbsd-nat.c (write_memory, read_memory): Update.
3110
91e5e8db
KR
31112020-10-07 Kamil Rytarowski <n54@gmx.com>
3112
3113 * nat/netbsd-nat.c (write_memory, read_memory): Add.
3114 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
3115 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
3116
64c03bdb
SM
31172020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
3118
3119 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
3120 (_initialize_break_catch_sig): Don't allocate array.
3121
31a8f60f
AB
31222020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
3123
3124 * symtab.c (find_pc_line): Return unmapped addresses when the
3125 requested address is also unmapped.
3126
9e6dbd8b
SM
31272020-10-05 Simon Marchi <simon.marchi@efficios.com>
3128
3129 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
3130 tui/tui-out.h.
3131
a1d217e8
SM
31322020-10-05 Simon Marchi <simon.marchi@efficios.com>
3133
3134 * amd64-windows-tdep.c (amd64_windows_return_value): Use
3135 type::is_vector instead of TYPE_VECTOR.
3136
7d144117
SM
31372020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
3138
3139 * auto-load.c (auto_load_objfile_script_1): Don't use
3140 debugfile_holder as temporary variable when stripping drive
3141 letter.
3142
cd096ec8
HD
31432020-10-05 Hannes Domani <ssbssa@yahoo.de>
3144
3145 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
3146 Add TYPE_CODE_COMPLEX.
3147 (amd64_windows_return_value): Fix types returned via XMM0.
3148
b58e7f72
AH
31492020-10-05 Alan Hayward <alan.hayward@arm.com>
3150
3151 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
3152 AArch64/ARM maintainers.
3153
8d378f27
SM
31542020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
3155
3156 * NEWS: Mention set/show debug event-loop.
3157
d5519913
TT
31582020-10-02 Tom Tromey <tromey@adacore.com>
3159
3160 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
3161 REG_EXTENDED.
3162
18b67edc
SM
31632020-10-02 Simon Marchi <simon.marchi@efficios.com>
3164
3165 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
3166 * procfs.c (procfs_inferior_created): Remove.
3167 (_initialize_procfs): Don't register procfs_inferior_created.
3168
6b01403b
SM
31692020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3170
3171 * async-event.c (invoke_async_signal_handlers): Add debug
3172 print.
3173 (check_async_event_handlers): Likewise.
3174 * event-top.c (show_debug_event_loop): New function.
3175 (_initialize_event_top): Register "set debug event-loop"
3176 setting.
3177
ba988419
SM
31782020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3179
3180 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
3181 * debug.h: Remove.
3182 * infrun.c: Include gdbsupport/common-debug.h.
3183 * linux-nat.c: Likewise.
3184
db20ebdf
SM
31852020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3186
3187 * async-event.h (create_async_signal_handler): Add name
3188 parameter.
3189 (create_async_event_handler): Likewise.
3190 * async-event.c (struct async_signal_handler) <name>: New field.
3191 (struct async_event_handler) <name>: New field.
3192 (create_async_signal_handler): Assign name.
3193 (create_async_event_handler): Assign name.
3194 * event-top.c (async_init_signals): Pass name when creating
3195 handler.
3196 * infrun.c (_initialize_infrun): Likewise.
3197 * record-btrace.c (record_btrace_push_target): Likewise.
3198 * record-full.c (record_full_open): Likewise.
3199 * remote-notif.c (remote_notif_state_allocate): Likewise.
3200 * remote.c (remote_target::open_1): Likewise.
3201 * tui/tui-win.c (tui_initialize_win): Likewise.
3202
2554f6f5
SM
32032020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3204
3205 * async-event.c (initialize_async_signal_handlers): Pass name to
3206 add_file_handler
3207 * event-top.c (ui_register_input_event_handler): Likewise.
3208 * linux-nat.c (linux_nat_target::async): Likewise.
3209 * run-on-main-thread.c (_initialize_run_on_main_thread):
3210 Likewise
3211 * ser-base.c (reschedule): Likewise.
3212 (ser_base_async): Likewise.
3213 * tui/tui-io.c: Likewise.
3214 * top.h (struct ui) <num>: New field.
3215 * top.c (highest_ui_num): New variable.
3216 (ui::ui): Initialize num.
3217
a7aba266
SM
32182020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3219
3220 * observable.h <inferior_created>: Remove parameters. Update all
3221 listeners.
3222 * inferior.h (post_create_inferior): Remove target parameter.
3223 Update all callers.
3224
048fde1e 32252020-10-02 Nitika Achra <Nitika.Achra@amd.com>
3226
3227 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
3228 and DW_MACRO_undef_strx.
3229 (dwarf_decode_macros): Likewise
3230 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
3231 which is the value of DW_AT_str_offsets_base.
3232 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
3233 str_offsets_base.
3234
064280be
KR
32352020-10-01 Kamil Rytarowski <n54@gmx.com>
3236
3237 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
3238
6ff33035
KR
32392020-10-01 Kamil Rytarowski <n54@gmx.com>
3240
3241 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
3242 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
3243
1eb6eb79
KR
32442020-10-01 Kamil Rytarowski <n54@gmx.com>
3245
3246 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
3247
95eb9e54
TV
32482020-09-30 Tom de Vries <tdevries@suse.de>
3249
3250 PR symtab/26683
3251 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
3252
cae21f8e
TT
32532020-09-30 Tom Tromey <tromey@adacore.com>
3254
3255 * dwarf2/read.c (handle_variant): Use constant_value.
3256
529908cb
TT
32572020-09-29 Tom Tromey <tom@tromey.com>
3258
3259 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
3260 (read_file_scope, dwarf2_get_pc_bounds)
3261 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
3262 (read_structure_type, handle_struct_member_die)
3263 (read_enumeration_type, read_array_type, read_set_type)
3264 (read_tag_pointer_type, read_tag_reference_type)
3265 (read_subroutine_type, read_base_type, read_subrange_type)
3266 (read_full_die_1, partial_die_info::read)
3267 (partial_die_info::read, by, new_symbol)
3268 (dwarf2_const_value_data, dwarf2_const_value_attr)
3269 (dump_die_shallow, dwarf2_fetch_constant_bytes)
3270 (prepare_one_comp_unit): Update.
3271 * dwarf2/attribute.h (DW_UNSND): Remove.
3272
c45bc3f8
TT
32732020-09-29 Tom Tromey <tom@tromey.com>
3274
3275 * dwarf2/read.c (read_func_scope, prototyped_function_p)
3276 (read_subroutine_type, partial_die_info::read)
3277 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
3278 (dwarf2_add_member_fn): Update.
3279 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
3280 * dwarf2/attribute.c (attribute::as_boolean): New method.
3281
23dca5c3
TT
32822020-09-29 Tom Tromey <tom@tromey.com>
3283
3284 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
3285 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
3286 method.
3287 * dwarf2/attribute.c (attribute::as_virtuality): New method.
3288
52c14d11
TT
32892020-09-29 Tom Tromey <tom@tromey.com>
3290
3291 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
3292 the attribute's form.
3293
e8e5c158
TT
32942020-09-29 Tom Tromey <tom@tromey.com>
3295
3296 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
3297 (dwarf2_add_member_fn): Update.
3298 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
3299 * dwarf2/attribute.c (attribute::defaulted): New method, from
3300 is_valid_DW_AT_defaulted.
3301
d4df075e
TT
33022020-09-29 Tom Tromey <tom@tromey.com>
3303
3304 * dwarf2/read.c (dw2_get_file_names_reader)
3305 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
3306 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
3307 (dwarf2_symbol_mark_computed): Use as_unsigned.
3308 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
3309 method.
3310 <form_is_section_offset>: Update comment.
3311
bf23a268
TT
33122020-09-29 Tom Tromey <tom@tromey.com>
3313
3314 * dwarf2/read.c (dwarf2_access_attribute): Rename from
3315 dwarf2_default_access_attribute. Look up attribute.
3316 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
3317 Update.
3318
7a5f294d
TT
33192020-09-29 Tom Tromey <tom@tromey.com>
3320
3321 * dwarf2/read.c (skip_one_die): Update.
3322 (read_full_die_1): Change how reprocessing is done.
3323 (partial_die_info::read): Update.
3324 (read_attribute_value): Remove need_reprocess parameter.
3325 (read_attribute): Likewise.
3326 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
3327 New method.
3328
36d378cf
TT
33292020-09-29 Tom Tromey <tom@tromey.com>
3330
3331 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
3332 (dwarf2_const_value_attr, dump_die_shallow)
3333 (dwarf2_fetch_constant_bytes): Update.
3334 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
3335 comment.
3336 <set_address>: New method.
3337 (DW_ADDR): Remove.
3338 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
3339 (attribute::as_string, attribute::as_address): Add assert.
3340
fe56917a
TT
33412020-09-29 Tom Tromey <tom@tromey.com>
3342
3343 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
3344 (read_attribute_reprocess, read_attribute_value): Update.
3345 (read_attribute): Clear requires_reprocessing.
3346 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
3347 form_requires_reprocessing>: New methods.
3348 <string_init>: Clear requires_reprocessing.
3349 <set_unsigned_reprocess>: New method.
3350 <name>: Shrink by one bit.
3351 <requires_reprocessing>: New member.
3352 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
3353 method.
3354
414ad644
TT
33552020-09-29 Tom Tromey <tom@tromey.com>
3356
3357 * dwarf2/read.c (read_attribute_value): Update.
3358 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
3359 set_unsigned>: New methods.
3360 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
3361
1bc397c5
TT
33622020-09-29 Tom Tromey <tom@tromey.com>
3363
3364 * dwarf2/read.c (get_alignment, read_array_order)
3365 (read_attribute_value, dwarf2_const_value_attr)
3366 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
3367 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
3368 New methods.
3369 (DW_SND): Remove.
3370
630ed6b9
TT
33712020-09-29 Tom Tromey <tom@tromey.com>
3372
3373 * dwarf2/read.c (read_attribute_value, lookup_die_type)
3374 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
3375 Update.
3376 * dwarf2/attribute.h (struct attribute) <as_signature,
3377 set_signature>: New methods.
3378 (DW_SIGNATURE): Remove.
3379
9d2246fc
TT
33802020-09-29 Tom Tromey <tom@tromey.com>
3381
3382 * dwarf2/read.c (read_call_site_scope)
3383 (handle_data_member_location, dwarf2_add_member_fn)
3384 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3385 (partial_die_info::read, read_attribute_value)
3386 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
3387 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
3388 (dwarf2_symbol_mark_computed): Update.
3389 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
3390 methods.
3391 (DW_BLOCK): Remove.
3392 * dwarf2/attribute.c (attribute::form_is_block): Add
3393 DW_FORM_data16.
3394
c6481205
TT
33952020-09-29 Tom Tromey <tom@tromey.com>
3396
3397 * dwarf2/read.c (read_cutu_die_from_dwo)
3398 (read_attribute_reprocess, read_attribute_value, read_attribute)
3399 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
3400 (dwarf2_fetch_constant_bytes): Update.
3401 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
3402 <set_string_noncanonical, set_string_canonical>: New methods.
3403 <string_is_canonical>: Update comment.
3404 <canonical_string_p>: Add assert.
3405 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
3406 * dwarf2/attribute.c (attribute::form_is_string): New method.
3407 (attribute::string): Use it.
3408
3b64bf15
TT
34092020-09-29 Tom Tromey <tom@tromey.com>
3410
3411 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
3412 (dump_die_shallow): Use canonical_string_p.
3413 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
3414 method.
3415
2c830f54
TT
34162020-09-29 Tom Tromey <tom@tromey.com>
3417
3418 * dwarf2/read.c (partial_die_info::read)
3419 (dwarf2_const_value_attr, anonymous_struct_prefix, )
3420 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
3421 attribute::as_string.
3422
6c412691
TT
34232020-09-29 Tom Tromey <tom@tromey.com>
3424
3425 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
3426 DW_ADDR.
3427 (attribute::string): Don't use DW_STRING.
3428 (attribute::get_ref_die_offset): Don't use DW_UNSND.
3429 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
3430
95f982e5
TT
34312020-09-29 Tom Tromey <tom@tromey.com>
3432
3433 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
3434 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
3435 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
3436 * dwarf2/attribute.h (struct attribute): Rename methods.
3437 * dwarf2/attribute.c (attribute::as_address): Rename from
3438 value_as_address.
3439 (attribute::as_string): Rename from value_as_string.
3440
f800b00e
TT
34412020-09-29 Tom Tromey <tom@tromey.com>
3442
3443 * dwarf2/read.c (partial_die_info::read) <case
3444 DW_AT_linkage_name>: Use value_as_string.
3445 (dwarf2_string_attr): Use value_as_string.
3446 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
3447 method.
3448 * dwarf2/attribute.c (attribute::value_as_string): New method.
3449
de38d64a
PA
34502020-09-29 Pedro Alves <pedro@palves.net>
3451
3452 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
3453 defined before using '#pragma GCC diagnostic' instead of checking
3454 __clang__.
3455
9aed480c
TT
34562020-09-28 Tom Tromey <tom@tromey.com>
3457
3458 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
3459 (handle_signal_stop): Update.
3460 * procfs.c (procfs_target::insert_watchpoint): Update.
3461 * target.h (target_have_steppable_watchpoint): Now a function.
3462
8a3ecb79
TT
34632020-09-28 Tom Tromey <tom@tromey.com>
3464
3465 * infrun.c (set_schedlock_func): Update.
3466 * target.h (target_can_lock_scheduler): Now a function.
3467
55f6301a
TT
34682020-09-28 Tom Tromey <tom@tromey.com>
3469
3470 * inferior.h (class inferior) <has_execution>: Update.
3471 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
3472 * valops.c (find_function_in_inferior)
3473 (value_allocate_space_in_inferior): Update.
3474 * top.c (kill_or_detach): Update.
3475 * target.c (target_preopen, set_target_permissions): Update.
3476 (target_has_execution_current): Remove.
3477 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
3478 Update.
3479 * solib.c (update_solib_list, reload_shared_libraries): Update.
3480 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
3481 * solib-dsbt.c (enable_break): Update.
3482 * score-tdep.c (score7_fetch_inst): Update.
3483 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
3484 Update.
3485 * remote.c (remote_target::start_remote)
3486 (remote_target::remote_check_symbols, remote_target::open_1)
3487 (remote_target::remote_detach_1, remote_target::verify_memory)
3488 (remote_target::xfer_partial, remote_target::read_description)
3489 (remote_target::get_min_fast_tracepoint_insn_len): Update.
3490 * record-full.c (record_full_open_1): Update.
3491 * record-btrace.c (record_btrace_target_open): Update.
3492 * objc-lang.c (lookup_objc_class, lookup_child_selector)
3493 (value_nsstring): Update.
3494 * linux-thread-db.c (add_thread_db_info)
3495 (thread_db_find_new_threads_silently, check_thread_db_callback)
3496 (try_thread_db_load_1, record_thread): Update.
3497 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
3498 Update.
3499 * linux-fork.c (checkpoint_command): Update.
3500 * infrun.c (set_non_stop, set_observer_mode)
3501 (check_multi_target_resumption, for_each_just_stopped_thread)
3502 (maybe_remove_breakpoints, normal_stop)
3503 (class infcall_suspend_state): Update.
3504 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
3505 (info_program_command, attach_command): Update.
3506 * infcall.c (call_function_by_hand_dummy): Update.
3507 * inf-loop.c (inferior_event_handler): Update.
3508 * gcore.c (gcore_command, derive_heap_segment): Update.
3509 * exec.c (exec_file_command): Update.
3510 * eval.c (evaluate_subexp): Update.
3511 * compile/compile.c (compile_to_object): Update.
3512 * cli/cli-dump.c (restore_command): Update.
3513 * breakpoint.c (update_watchpoint)
3514 (update_inserted_breakpoint_locations)
3515 (insert_breakpoint_locations, get_bpstat_thread): Update.
3516 * target.h (target_has_execution): Remove macro.
3517 (target_has_execution_current): Don't declare.
3518 (target_has_execution): Rename from target_has_execution_1. Add
3519 argument default.
3520
05374cfd
TT
35212020-09-28 Tom Tromey <tom@tromey.com>
3522
3523 * mi/mi-main.c (exec_reverse_continue)
3524 (mi_cmd_list_target_features): Update.
3525 * infrun.c (set_exec_direction_func): Update.
3526 * target.c (default_execution_direction): Update.
3527 * reverse.c (exec_reverse_once): Update.
3528 * target.h (target_can_execute_reverse): Now a function.
3529
9dccd06e
TT
35302020-09-28 Tom Tromey <tom@tromey.com>
3531
3532 * tui/tui-regs.c (tui_get_register)
3533 (tui_data_window::show_registers): Update.
3534 * thread.c (scoped_restore_current_thread::restore)
3535 (scoped_restore_current_thread::scoped_restore_current_thread):
3536 Update.
3537 * regcache-dump.c (regcache_print): Update.
3538 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
3539 Update.
3540 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
3541 * mep-tdep.c (current_me_module, current_options): Update.
3542 * linux-thread-db.c (thread_db_load): Update.
3543 * infcmd.c (registers_info, info_vector_command)
3544 (info_float_command): Update.
3545 * ia64-tdep.c (ia64_frame_prev_register)
3546 (ia64_sigtramp_frame_prev_register): Update.
3547 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
3548 * gcore.c (derive_stack_segment): Update.
3549 * frame.c (get_current_frame, has_stack_frames): Update.
3550 * findvar.c (language_defn::read_var_value): Update.
3551 * arm-tdep.c (arm_pc_is_thumb): Update.
3552 * target.c (target_has_registers): Rename from
3553 target_has_registers_1.
3554 * target.h (target_has_registers): Remove macro.
3555 (target_has_registers): Rename from target_has_registers_1.
3556
841de120
TT
35572020-09-28 Tom Tromey <tom@tromey.com>
3558
3559 * windows-tdep.c (tlb_make_value): Update.
3560 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3561 * thread.c (scoped_restore_current_thread::restore)
3562 (scoped_restore_current_thread::scoped_restore_current_thread)
3563 (thread_command): Update.
3564 * stack.c (backtrace_command_1, frame_apply_level_command)
3565 (frame_apply_all_command, frame_apply_command): Update.
3566 * infrun.c (siginfo_make_value, restore_infcall_control_state):
3567 Update.
3568 * gcore.c (derive_stack_segment): Update.
3569 * frame.c (get_current_frame, has_stack_frames): Update.
3570 * auxv.c (info_auxv_command): Update.
3571 * ada-tasks.c (ada_build_task_list): Update.
3572 * target.c (target_has_stack): Rename from target_has_stack_1.
3573 * target.h (target_has_stack): Remove macro.
3574 (target_has_stack): Rename from target_has_stack_1.
3575
a739972c
TT
35762020-09-28 Tom Tromey <tom@tromey.com>
3577
3578 * target.c (target_has_memory): Rename from target_has_memory_1.
3579 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3580 * thread.c (scoped_restore_current_thread::restore)
3581 (scoped_restore_current_thread::scoped_restore_current_thread):
3582 Update.
3583 * frame.c (get_current_frame, has_stack_frames): Update.
3584 * target.h (target_has_memory): Remove macro.
3585 (target_has_memory): Rename from target_has_memory_1.
3586
5b8a4776
TT
35872020-09-28 Tom Tromey <tom@tromey.com>
3588
3589 * target.c (target_has_all_memory_1): Remove.
3590 * target.h (target_has_all_memory): Remove define.
3591 (target_has_all_memory_1): Don't declare.
3592
bd356ec6
SM
35932020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
3594
3595 * ser-base.c: Adjust comments formatting.
3596
2c72d5e5
TT
35972020-09-27 Tom Tromey <tom@tromey.com>
3598
3599 PR tui/25342:
3600 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
3601
35a98237
TT
36022020-09-27 Tom Tromey <tom@tromey.com>
3603
3604 PR tui/25342:
3605 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
3606
9e820dec
TT
36072020-09-27 Tom Tromey <tom@tromey.com>
3608
3609 * unittests/tui-selftests.c: Update.
3610 * tui/tui-winsource.h (struct tui_source_window_base)
3611 <extra_margin, show_line_number, refresh_pad>: New methods.
3612 <m_max_length, m_pad>: New members.
3613 (tui_copy_source_line): Update.
3614 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
3615 first_col, line_width, ndigits parameters. Add length.
3616 (tui_source_window_base::show_source_line): Write to pad. Line
3617 number now 0-based.
3618 (tui_source_window_base::refresh_pad): New method.
3619 (tui_source_window_base::show_source_content): Write to pad. Call
3620 refresh_pad.
3621 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
3622 not refill.
3623 (tui_source_window_base::update_exec_info): Call
3624 show_line_number.
3625 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
3626 method.
3627 <m_digits>: New member.
3628 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
3629 and m_max_length.
3630 (tui_source_window::show_line_number): New method.
3631 * tui/tui-io.h (tui_puts): Fix comment.
3632 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
3633 m_max_length.
3634
c15c15c8
TT
36352020-09-27 Tom Tromey <tom@tromey.com>
3636
3637 * tui/tui-winsource.c
3638 (tui_source_window_base::set_is_exec_point_at): Don't call
3639 show_source_line.
3640
149830c1
TT
36412020-09-27 Tom Tromey <tom@tromey.com>
3642
3643 * python/py-tui.c (class tui_py_window) <refresh_window>: New
3644 method.
3645 <erase>: Update.
3646 <cursor_x, cursor_y>: Remove.
3647 <m_inner_window>: New member.
3648 (tui_py_window::rerender): Create inner window.
3649 (tui_py_window::output): Write to inner window.
3650
8f9929bb
GR
36512020-09-26 Gareth Rees <grees@undo.io> (tiny change)
3652
3653 PR python/26586
3654 * cli/cli-script.c (execute_control_commands): don't set
3655 instream to nullptr here as this breaks the from_tty argument
3656 to gdb.execute in Python.
3657 (execute_user_command): set instream to nullptr here instead.
3658
956bdb59
SM
36592020-09-25 Simon Marchi <simon.marchi@efficios.com>
3660
3661 * infrun.h (infrun_debug_printf): Fix formatting.
3662 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
3663
3b93626b
SJ
36642020-09-25 Saagar Jha <saagar@saagarjha.com>
3665
3666 * compile/compile-object-load.h (struct munmap_list): Add
3667 explicitly-defined move constructor.
3668
b551a89f
TT
36692020-09-24 Tom Tromey <tromey@adacore.com>
3670
3671 PR tui/26638:
3672 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
3673 method.
3674 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
3675 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
3676 (tui_prev_win): Rewrite.
3677
99bb393f
HD
36782020-09-23 Hannes Domani <ssbssa@yahoo.de>
3679
3680 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
3681 in WOW64 processes as SIGINT.
3682 * nat/windows-nat.h: Make wow64_process a shared variable.
3683 * windows-nat.c: Remove static wow64_process variable.
3684
20a5fcbd
TT
36852020-09-23 Tom Tromey <tom@tromey.com>
3686
3687 PR symtab/25470:
3688 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
3689 offset and bit size.
3690 * printcmd.c (print_scalar_formatted): Handle zero-length
3691 integer.
3692 (print_scalar_formatted): Use bit_size_differs_p.
3693 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
3694 constant.
3695 (union type_specific): <int_stuff>: New member.
3696 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
3697 methods.
3698 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
3699 TYPE_SPECIFIC_FIELD.
3700 (recursive_dump_type, copy_type_recursive): Update.
3701 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
3702 DW_AT_data_bit_offset.
3703
bac51ab7
TT
37042020-09-23 Tom Tromey <tom@tromey.com>
3705
3706 * utils.h (class gdb_argv): Add move operators.
3707 <append>: New methods.
3708 * compile/compile.c (build_argc_argv): Remove.
3709 (compile_args_argc): Remove.
3710 (compile_args_argv): Change type.
3711 (set_compile_args): Simplify.
3712 (append_args): Remove.
3713 (filter_args): Remove argcp parameter.
3714 (get_args): Return gdb_argv. Simplify.
3715 (compile_to_object): Update.
3716
92677124
TT
37172020-09-23 Tom Tromey <tom@tromey.com>
3718
3719 * compile/compile-object-run.c (do_module_cleanup)
3720 <~do_module_cleanup> :Remove.
3721 (do_module_cleanup): Update.
3722 * compile/compile-object-load.h (struct munmap_list): Add move
3723 assignment operator.
3724 <source_file>: Now a std::string.
3725 <munmap_list>: Rename. No longer a pointer.
3726 * compile/compile-object-load.c (struct setup_sections_data): Add
3727 constructor.
3728 <setup_one_section>: Declare.
3729 <munmap_list>: Move earlier.
3730 <m_bfd>: New member.
3731 <m_last_size, m_last_section_first, m_last_prot,
3732 m_last_max_alignment>: Rename, add initializers where needed.
3733 (setup_sections_data::setup_one_section): Rename from
3734 setup_sections. Update.
3735 (compile_object_load): Update. Don't use bfd_map_over_sections.
3736
e616f60a
TT
37372020-09-23 Tom Tromey <tom@tromey.com>
3738
3739 * compile/compile-object-run.c (struct do_module_cleanup): Add
3740 parameters to constructor. Update destructor.
3741 <source_file, scope, scope_data, out_value_type, out_value_addr,
3742 munmap_list_head, objfile_name_string>: Remove.
3743 <module>: New member.
3744 (do_module_cleanup): Update.
3745 (compile_object_run): Update.
3746
e947a848
TT
37472020-09-23 Tom Tromey <tom@tromey.com>
3748
3749 * compile/compile.c (eval_compile_command): Update.
3750 * compile/compile-object-run.h (compile_object_run): Take a
3751 compile_module_up.
3752 * compile/compile-object-run.c (compile_object_run): Take a
3753 compile_module_up.
3754 * compile/compile-object-load.h (struct compile_module): Add
3755 constructor, destructor.
3756 (compile_module_up): New typedef.
3757 (compile_object_load): Return compile_object_up.
3758 * compile/compile-object-load.c (compile_object_load): Return
3759 compile_module_up.
3760
0dbf6ee6
TT
37612020-09-23 Tom Tromey <tom@tromey.com>
3762
3763 * compile/compile-object-run.c (struct do_module_cleanup): Add
3764 constructor, destructor.
3765 <objfile_name_string>: Don't use struct hack.
3766 (do_module_cleanup): Use delete.
3767 (compile_object_run): Use new.
3768
ebe824f5
TT
37692020-09-23 Tom Tromey <tom@tromey.com>
3770
3771 * compile/compile-cplus-types.c
3772 (compile_cplus_convert_struct_or_union): Use std::vector.
3773 (compile_cplus_convert_func): Likewise.
3774 * compile/compile-c-types.c (convert_func): Use std::vector.
3775
5dd918d9
TT
37762020-09-21 Tom Tromey <tromey@adacore.com>
3777
3778 * sparc-tdep.c (sparc32_skip_prologue): Use
3779 skip_prologue_using_sal.
3780
5486c517
TT
37812020-09-19 Tom Tromey <tom@tromey.com>
3782
3783 * symfile.c (add_section_size_callback): Remove.
3784 (load_one_section): Rename from load_section_callback. Change
3785 parameters.
3786 (generic_load): Use foreach.
3787
8a6bb1d1
TT
37882020-09-19 Tom Tromey <tom@tromey.com>
3789
3790 * exec.c (add_to_section_table): Remove.
3791 (build_section_table): Use foreach.
3792
08f93a1a
TT
37932020-09-19 Tom Tromey <tom@tromey.com>
3794
3795 * elfread.c (elf_locate_sections): Change parameters.
3796 (elf_symfile_read): Use foreach.
3797
03cd72b8
TT
37982020-09-19 Tom Tromey <tom@tromey.com>
3799
3800 * cli/cli-dump.c (struct callback_data): Remove.
3801 (restore_one_section): Rename from restore_section_callback.
3802 Change parameters.
3803 (restore_binary_file): Change parameters.
3804 (restore_command): Use foreach.
3805
f4f2b85f
TT
38062020-09-19 Tom Tromey <tom@tromey.com>
3807
3808 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
3809 (gcore_copy_callback): Likewise.
3810 (gcore_memory_sections): Use foreach.
3811
b35c1d1c
TT
38122020-09-19 Tom Tromey <tom@tromey.com>
3813
3814 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
3815 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
3816 parameters.
3817 (generic_elf_osabi_sniffer): Use foreach.
3818 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
3819 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
3820
5bb6e9dd
TT
38212020-09-19 Tom Tromey <tom@tromey.com>
3822
3823 * dwarf2/read.c (locate_dwz_sections): Change parameters.
3824 (dwarf2_get_dwz_file): Use foreach.
3825 (dwarf2_locate_dwo_sections): Change parameters.
3826 (open_and_init_dwo_file): Use foreach.
3827 (dwarf2_locate_common_dwp_sections): Change parameters.
3828 (open_and_init_dwp_file): Use foreach.
3829
ad7277da
TT
38302020-09-19 Tom Tromey <tom@tromey.com>
3831
3832 * symfile.h: (find_lowest_section): Don't declare.
3833 * symfile.c (find_lowest_section): Now static. Change
3834 parameters.
3835 (struct place_section_arg): Remove.
3836 (place_section): Change parameters.
3837 (addr_info_make_relative): Use foreach.
3838 (symfile_dummy_outputs): Remove.
3839 (default_symfile_relocate): Use foreach.
3840
cb814f2e
TT
38412020-09-19 Tom Tromey <tom@tromey.com>
3842
3843 * objfiles.c (add_to_objfile_sections): Rename from
3844 add_to_objfile_sections_full.
3845 (add_to_objfile_sections): Remove.
3846 (build_objfile_section_table): Use foreach.
3847
3cabfd26
TT
38482020-09-19 Tom Tromey <tom@tromey.com>
3849
3850 * stap-probe.c (get_stap_base_address_1): Remove.
3851 (get_stap_base_address): Use foreach.
3852
1ce51eb5
TT
38532020-09-19 Tom Tromey <tom@tromey.com>
3854
3855 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
3856 parameters.
3857 (gdb_bfd_close_or_warn): Use foreach.
3858
a190fabb
TT
38592020-09-19 Tom Tromey <tom@tromey.com>
3860
3861 * corelow.c (add_to_thread_list): Change parameters.
3862 (core_target_open): Use foreach.
3863
cafb0d81
TT
38642020-09-19 Tom Tromey <tom@tromey.com>
3865
3866 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
3867 existing function.
3868
c8d5abea
AB
38692020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3870
3871 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
3872 for arrays.
3873
6d816919
AB
38742020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3875
3876 * eval.c: Remove 'f-lang.h' include.
3877 (value_f90_subarray): Moved to f-lang.c.
3878 (eval_call): Renamed to...
3879 (evaluate_subexp_do_call): ...this, is no longer static, header
3880 comment moved into header file.
3881 (evaluate_funcall): Update call to eval_call.
3882 (skip_undetermined_arglist): Moved to f-lang.c.
3883 (fortran_value_subarray): Likewise.
3884 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3885 moved to evaluate_subexp_f.
3886 (calc_f77_array_dims): Moved to f-lang.c
3887 * expprint.c (print_subexp_funcall): New function.
3888 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3889 moved to print_subexp_f, OP_FUNCALL uses new function.
3890 (dump_subexp_body_funcall): New function.
3891 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
3892 moved to dump_subexp_f, OP_FUNCALL uses new function.
3893 * expression.h (evaluate_subexp_do_call): Declare.
3894 * f-lang.c (value_f90_subarray): Moved from eval.c.
3895 (skip_undetermined_arglist): Likewise.
3896 (calc_f77_array_dims): Likewise.
3897 (fortran_value_subarray): Likewise.
3898 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
3899 (operator_length_f): Likewise.
3900 (print_subexp_f): Likewise.
3901 (dump_subexp_body_f): Likewise.
3902 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
3903 declaration of this operation to here.
3904 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
3905 support moved to operator_length_f.
3906 * parser-defs.h (dump_subexp_body_funcall): Declare.
3907 (print_subexp_funcall): Declare.
3908 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
3909 fortran-operator.def.
3910
8c37706a
AB
39112020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3912
3913 * eval.c (fortran_value_subarray): New function, content is taken
3914 from...
3915 (evaluate_subexp_standard): ...here, in two places. Now arrays
3916 and strings both call the new function.
3917 (calc_f77_array_dims): Add header comment, handle strings.
3918
14f9473c
VC
39192020-09-18 Victor Collod <vcollod@nvidia.com>
3920
3921 PR gdb/26635
3922 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
3923 (i386_analyze_prologue): Call i386_skip_endbr.
3924
b60cea74
TT
39252020-09-18 Tom Tromey <tromey@adacore.com>
3926
3927 * windows-nat.c (struct windows_nat_target) <wait>: Update.
3928 (windows_nat_target::wait): Update.
3929 * target/wait.h (enum target_wait_flag): New. Use
3930 DEF_ENUM_FLAGS_TYPE.
3931 * target/target.h (target_wait): Change type of options.
3932 * target.h (target_options_to_string, default_target_wait):
3933 Update.
3934 (struct target_ops) <wait>: Change type of options.
3935 * target.c (target_wait, default_target_wait, do_option): Change
3936 type of "options".
3937 (target_options_to_string): Likewise.
3938 * target-delegates.c: Rebuild.
3939 * target-debug.h (target_debug_print_target_wait_flags): Rename
3940 from target_debug_print_options.
3941 * sol-thread.c (class sol_thread_target) <wait>: Update.
3942 (sol_thread_target::wait): Update.
3943 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
3944 (rs6000_nat_target::wait): Update.
3945 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
3946 Update.
3947 (remote_target::wait_ns, remote_target::wait_as): Change type of
3948 "options".
3949 (remote_target::wait): Update.
3950 * remote-sim.c (struct gdbsim_target) <wait>: Update.
3951 (gdbsim_target::wait): Update.
3952 * record-full.c (class record_full_base_target) <wait>: Update.
3953 (record_full_wait_1): Change type of "options".
3954 (record_full_base_target::wait): Update.
3955 * record-btrace.c (class record_btrace_target) <wait>: Update.
3956 (record_btrace_target::wait): Update.
3957 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
3958 Update.
3959 (ravenscar_thread_target::wait): Update.
3960 * procfs.c (class procfs_target) <wait>: Update.
3961 (procfs_target::wait): Update.
3962 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
3963 * obsd-nat.c (obsd_nat_target::wait): Update.
3964 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
3965 (nto_procfs_target::wait): Update.
3966 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
3967 * nbsd-nat.c (nbsd_wait): Change type of "options".
3968 (nbsd_nat_target::wait): Update.
3969 * linux-thread-db.c (class thread_db_target) <wait>: Update.
3970 (thread_db_target::wait): Update.
3971 * linux-nat.h (class linux_nat_target) <wait>: Update.
3972 * linux-nat.c (linux_nat_target::wait): Update.
3973 (linux_nat_wait_1): Update.
3974 * infrun.c (do_target_wait_1, do_target_wait): Change type of
3975 "options".
3976 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
3977 * inf-ptrace.c (inf_ptrace_target::wait): Update.
3978 * go32-nat.c (struct go32_nat_target) <wait>: Update.
3979 (go32_nat_target::wait): Update.
3980 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
3981 * gnu-nat.c (gnu_nat_target::wait): Update.
3982 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
3983 * fbsd-nat.c (fbsd_nat_target::wait): Update.
3984 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
3985 * darwin-nat.c (darwin_nat_target::wait): Update.
3986 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
3987 (bsd_uthread_target::wait): Update.
3988 * aix-thread.c (class aix_thread_target) <wait>: Update.
3989 (aix_thread_target::wait): Update.
3990
0295dde6
AB
39912020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
3992
3993 * compile/compile-object-run.c (create_copied_type_recursive): New
3994 function.
3995 (compile_object_run): Use new function.
3996
d3483b43
JT
39972020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
3998
3999 * NEWS: Mention x86_64 Cygwin core file support.
4000
e7d612ad
JT
40012020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4002
4003 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
4004 (core_process_module_section): Handle NOTE_INFO_MODULE64.
4005
aff9d387
JT
40062020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4007
62a5151b
JT
4008 * windows-tdep.h: Add prototypes.
4009 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
4010 (i386_windows_core_pid_to_str): Move and rename ...
4011 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
4012 (windows_core_pid_to_str): ... and here.
4013 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
4014
40152020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
aff9d387
JT
4016 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
4017 (amd64_windows_init_abi_common): ... and register.
4018
7d155da3
JT
40192020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4020
4021 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
4022 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
4023
e8ef12b9
PA
40242020-09-18 Pedro Alves <pedro@palves.net>
4025
4026 PR gdb/26631
4027 * thread.c (thread_find_command): Switch inferior before calling
4028 target methods.
4029
c1e1314d
TT
40302020-09-17 Tom Tromey <tromey@adacore.com>
4031
4032 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
4033 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
4034 (tdesc_arch_data_up): New typedef.
4035 (tdesc_use_registers, tdesc_data_alloc): Update.
4036 (tdesc_data_cleanup): Don't declare.
4037 * target-descriptions.c (tdesc_data_alloc): Return a
4038 tdesc_arch_data_up.
4039 (tdesc_arch_data_deleter::operator()): Rename from
4040 tdesc_data_cleanup. Change argument type.
4041 (tdesc_use_registers): Change early_data to an rvalue reference.
4042 (tdesc_use_registers): Don't use delete.
4043 * sparc-tdep.c (sparc32_gdbarch_init): Update.
4044 * s390-tdep.c (s390_gdbarch_init): Update.
4045 * rx-tdep.c (rx_gdbarch_init): Update.
4046 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4047 * riscv-tdep.c (riscv_gdbarch_init): Update.
4048 * or1k-tdep.c (or1k_gdbarch_init): Update.
4049 * nios2-tdep.c (nios2_gdbarch_init): Update.
4050 * nds32-tdep.c (nds32_gdbarch_init): Update.
4051 * mips-tdep.c (mips_gdbarch_init): Update.
4052 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
4053 * m68k-tdep.c (m68k_gdbarch_init): Update.
4054 * i386-tdep.c (i386_gdbarch_init): Update.
4055 * arm-tdep.c (arm_gdbarch_init): Update.
4056 * arc-tdep.c (arc_tdesc_init): Update.
4057 (arc_gdbarch_init): Update.
4058 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
4059
0363df3d
HD
40602020-09-17 Hannes Domani <ssbssa@yahoo.de>
4061
4062 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
4063 for WOW64 processes.
4064
280a9412
TT
40652020-09-17 Tom Tromey <tom@tromey.com>
4066
4067 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
4068
6108fd18
TT
40692020-09-17 Tom Tromey <tom@tromey.com>
4070
4071 * value.c (preserve_values): Update.
4072 * python/py-type.c (save_objfile_types): Update.
4073 * guile/scm-type.c (save_objfile_types): Update.
4074 * gdbtypes.h (create_copied_types_hash): Return htab_up.
4075 * gdbtypes.c (create_copied_types_hash): Return htab_up.
4076 * compile/compile-object-run.c (compile_object_run): Update.
4077
fa9b1164
TT
40782020-09-17 Tom Tromey <tom@tromey.com>
4079
4080 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
4081 Remove.
4082 <m_table>: Now htab_up.
4083 * typeprint.c (typedef_hash_table::recursively_update)
4084 (typedef_hash_table::add_template_parameters)
4085 (typedef_hash_table::typedef_hash_table): Update.
4086 (typedef_hash_table::~typedef_hash_table): Remove.
4087 (typedef_hash_table::typedef_hash_table)
4088 (typedef_hash_table::find_global_typedef)
4089 (typedef_hash_table::find_typedef): Update.
4090
eb53f105
TT
40912020-09-17 Tom Tromey <tom@tromey.com>
4092
4093 * target-descriptions.c (tdesc_use_registers): Use htab_up.
4094
7a8a5d47
TT
40952020-09-17 Tom Tromey <tom@tromey.com>
4096
4097 * linespec.c (class decode_compound_collector)
4098 <~decode_compound_collector>: Remove.
4099 <m_unique_syms>: Now htab_up.
4100 (decode_compound_collector::operator ()): Update.
4101 (class symtab_collector) <~symtab_collector>: Remove.
4102 <m_symtab_table>: Now htab_up.
4103 (symtab_collector::operator ()): Update.
4104
99032cfc
TT
41052020-09-17 Tom Tromey <tom@tromey.com>
4106
4107 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
4108 (filename_seen_cache::clear): Update.
4109 (~filename_seen_cache): Remove.
4110 (filename_seen_cache::seen): Update.
4111 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
4112 htab_up.
4113 <~filename_seen_cache>: Remove.
4114 <traverse>: Update.
4115
32580f6d
TT
41162020-09-17 Tom Tromey <tom@tromey.com>
4117
4118 * completer.c (completion_tracker::discard_completions)
4119 (completion_tracker::~completion_tracker)
4120 (completion_tracker::maybe_add_completion)
4121 (completion_tracker::remove_completion)
4122 (completion_tracker::recompute_lowest_common_denominator)
4123 (completion_tracker::build_completion_result): Update.
4124 * completer.h (class completion_tracker) <have_completions>:
4125 Update.
4126 <m_entries_hash>: Now htab_up.
4127
c1fb9836
TT
41282020-09-17 Tom Tromey <tom@tromey.com>
4129
4130 * breakpoint.c (ambiguous_names_p): Use htab_up.
4131
88f07206
TT
41322020-09-17 Tom Tromey <tom@tromey.com>
4133
4134 * auto-load.c (struct auto_load_pspace_info)
4135 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
4136 <loaded_script_files, loaded_script_texts>: Change type to
4137 htab_up.
4138 (~auto_load_pspace_info) Remove.
4139 (init_loaded_scripts_info, maybe_add_script_file)
4140 (maybe_add_script_text, auto_load_info_scripts): Update.
4141
9519b2ee
TT
41422020-09-17 Tom Tromey <tromey@adacore.com>
4143
4144 * c-exp.y (name_obstack): Now static.
4145
d2cd4113
CC
41462020-09-17 Chungyi Chi <demonic@csie.io>
4147
4148 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
4149
b650a282
SM
41502020-09-16 Simon Marchi <simon.marchi@efficios.com>
4151
4152 * breakpoint.h (init_catchpoint): Change int parameter to bool.
4153 (add_solib_catchpoint): Likewise.
4154 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
4155 to bool.
4156 (add_solib_catchpoint): Change int parameter/variable to bool.
4157 (catch_load_or_unload): Likewise.
4158 (init_catchpoint): Likewise.
4159 (create_fork_vfork_event_catchpoint): Likewise.
4160 (catch_fork_command_1): Likewise.
4161 (catch_exec_command_1): Likewise.
4162
4d0bcfcf
SM
41632020-09-16 Simon Marchi <simon.marchi@efficios.com>
4164
4165 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
4166 Change instance_flags to m_instance_flags.
4167
fe830662
TT
41682020-09-16 Tom Tromey <tromey@adacore.com>
4169
4170 PR gdb/26598:
4171 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
4172
fe5ddfc3
JB
41732020-09-16 John Baldwin <jhb@FreeBSD.org>
4174
4175 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
4176 PL_FLAG_EXEC.
4177 (fbsd_nat_target::insert_exec_catchpoint)
4178 (fbsd_nat_target::remove_exec_catchpoint): Always define.
4179 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
4180 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
4181
e911c666
JB
41822020-09-16 John Baldwin <jhb@FreeBSD.org>
4183
4184 * configure.ac: Remove check for kinfo_getvmmap().
4185 * configure, config.in: Regenerate.
4186 * fbsd-nat.c (fbsd_read_mapping): Remove
4187 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
4188 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
4189 kinfo_get_vmmap() are always present.
4190
1f17d372
JB
41912020-09-16 John Baldwin <jhb@FreeBSD.org>
4192
4193 * fbsd-nat.c: Always include support for
4194 TARGET_OBJECT_SIGNAL_INFO.
4195
bcb1da7f
JB
41962020-09-16 John Baldwin <jhb@FreeBSD.org>
4197
4198 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
4199 sysctl and remove procfs fallback.
4200
5515f729
JB
42012020-09-16 John Baldwin <jhb@FreeBSD.org>
4202
4203 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
4204 * fbsd-nat.h: Likewise.
4205
da1df1db
TBA
42062020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4207
4208 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
4209 argument.
4210
0e25e767
AB
42112020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4212
4213 * ada-lang.c (ada_language_data): Delete.
4214 (ada_language): Remove references to ada_language_data.
4215 * c-lang.c (c_language_data): Delete.
4216 (c_language): Remove references to c_language_data.
4217 (cplus_language_data): Delete.
4218 (cplus_language): Remove references to cplus_language_data.
4219 (asm_language_data): Delete.
4220 (asm_language): Remove references to asm_language_data.
4221 (minimal_language_data): Delete.
4222 (minimal_language): Remove references to minimal_language_data.
4223 * d-lang.c (d_language_data): Delete.
4224 (d_language): Remove references to d_language_data.
4225 * f-lang.c (f_language_data): Delete.
4226 (f_language): Remove references to f_language_data.
4227 * go-lang.c (go_language_data): Delete.
4228 (go_language): Remove references to go_language_data.
4229 * language.c (unknown_language_data): Delete.
4230 (unknown_language): Remove references to unknown_language_data.
4231 (auto_language_data): Delete.
4232 (auto_language): Remove references to auto_language_data.
4233 * language.h (language_data): Delete struct.
4234 (language_defn): No longer inherit from language_data.
4235 * m2-lang.c (m2_language_data): Delete.
4236 (m2_language): Remove references to m2_language_data.
4237 * objc-lang.c (objc_language_data): Delete.
4238 (objc_language): Remove references to objc_language_data.
4239 * opencl-lang.c (opencl_language_data): Delete.
4240 (opencl_language): Remove references to opencl_language_data.
4241 * p-lang.c (pascal_language_data): Delete.
4242 (pascal_language): Remove references to pascal_language_data.
4243 * rust-lang.c (rust_language_data): Delete.
4244 (rust_language): Remove references to rust_language_data.
4245
b7c6e27d
AB
42462020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4247
4248 * ada-lang.c (ada_language_data): Remove la_op_print_tab
4249 initializer.
4250 (ada_language::opcode_print_table): New member function.
4251 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
4252 (c_language::opcode_print_table): New member function.
4253 (cplus_language_data): Remove la_op_print_tab initializer.
4254 (cplus_language::opcode_print_table): New member function.
4255 (asm_language_data): Remove la_op_print_tab initializer.
4256 (asm_language::opcode_print_table): New member function.
4257 (minimal_language_data): Remove la_op_print_tab initializer.
4258 (minimal_language::opcode_print_table): New member function.
4259 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
4260 (d_language::opcode_print_table): New member function.
4261 * expprint.c (print_subexp_standard): Update call to
4262 opcode_print_table.
4263 (op_string): Likewise.
4264 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
4265 (f_language::opcode_print_table): New member function.
4266 * go-lang.c (go_language_data): Remove la_op_print_tab
4267 initializer.
4268 (go_language::opcode_print_table): New member function.
4269 * language.c (unknown_language_data): Remove la_op_print_tab
4270 initializer.
4271 (unknown_language::opcode_print_table): New member function.
4272 (auto_language_data): Remove la_op_print_tab initializer.
4273 (auto_language::opcode_print_table): New member function.
4274 * language.h (language_data): Remove la_op_print_tab field.
4275 (language_defn::opcode_print_table): Declare new member function.
4276 * m2-lang.c (m2_language_data): Remove la_op_print_tab
4277 initializer.
4278 (m2_language::opcode_print_table): New member function.
4279 * objc-lang.c (objc_language_data): Remove la_op_print_tab
4280 initializer.
4281 (objc_language::opcode_print_table): New member function.
4282 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
4283 initializer.
4284 (opencl_language::opcode_print_table): New member function.
4285 * p-lang.c (pascal_language_data): Remove la_op_print_tab
4286 initializer.
4287 (pascal_language::opcode_print_table): New member function.
4288 * rust-lang.c (rust_language_data): Remove la_op_print_tab
4289 initializer.
4290 (rust_language::opcode_print_table): New member function.
4291
5aba6ebe
AB
42922020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4293
4294 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
4295 (ada_language::expression_ops): New member function.
4296 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
4297 (c_language::expression_ops): New member function.
4298 (cplus_language_data): Remove la_exp_desc initializer.
4299 (cplus_language::expression_ops): New member function.
4300 (asm_language_data): Remove la_exp_desc initializer.
4301 (asm_language::expression_ops): New member function.
4302 (minimal_language_data): Remove la_exp_desc initializer.
4303 (minimal_language::expression_ops): New member function.
4304 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
4305 (d_language::expression_ops): New member function.
4306 * eval.c (evaluate_subexp): Update call to expression_ops.
4307 * expprint.c (print_subexp): Likewise.
4308 (op_name): Likewise.
4309 (dump_subexp_body): Likewise.
4310 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
4311 (f_language::expression_ops): New member function.
4312 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
4313 (go_language::expression_ops): New member function.
4314 * language.c (language_defn::expression_ops): New function.
4315 (unknown_language_data): Remove la_exp_desc initializer.
4316 (auto_language_data): Likewise.
4317 * language.h (language_data): Remove la_exp_desc field.
4318 (language_defn::expression_ops): Declare new member function.
4319 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
4320 (m2_language::expression_ops): New member function.
4321 * objc-lang.c (objc_language_data): Remove la_exp_desc
4322 initializer.
4323 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
4324 initializer.
4325 (opencl_language::expression_ops): New member function.
4326 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
4327 * parse.c (operator_length): Update call to expression_ops.
4328 (exp_iterate): Likewise.
4329 * rust-lang.c (rust_language_data): Remove la_exp_desc
4330 initializer.
4331 (ruse_language::expression_ops): New member function.
4332
b63a3f3f
AB
43332020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4334
4335 * ada-lang.c (ada_language_data): Remove la_varobj_ops
4336 initializer.
4337 (ada_language::varobj_ops): New member function.
4338 * c-lang.c (c_language_data): Remove la_varobj_ops
4339 initializer.
4340 (cplus_language_data): Likewise.
4341 (cplus_language::varobj_ops): New member function.
4342 (asm_language_data): Remove la_varobj_ops initializer.
4343 (minimal_language_data): Likewise.
4344 * d-lang.c (d_language_data): Likewise.
4345 * f-lang.c (f_language_data): Likewise.
4346 * go-lang.c (go_language_data): Likewise.
4347 * language.c (language_defn::varobj_ops): New function.
4348 (unknown_language_data): Remove la_varobj_ops
4349 initializer.
4350 (auto_language_data): Likewise.
4351 * language.h (language_data): Remove la_varobj_ops field.
4352 (language_defn::varobj_ops): Declare new member function.
4353 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
4354 * objc-lang.c (objc_language_data): Likewise.
4355 * opencl-lang.c (opencl_language_data): Likewise.
4356 * p-lang.c (pascal_language_data): Likewise.
4357 * rust-lang.c (rust_language_data): Likewise.
4358 * varobj.c (varobj_create): Update call to varobj_ops.
4359 * varobj.h (default_varobj_ops): Delete define.
4360
1ac14a04
AB
43612020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4362
4363 * ada-lang.c (ada_language_data): Remove la_macro_expansion
4364 initializer.
4365 * c-lang.c (c_language_data): Likewise.
4366 (c_language::macro_expansion): New member function.
4367 (cplus_language_data): Likewise.
4368 (cplus_language::macro_expansion): New member function.
4369 (asm_language_data): Likewise.
4370 (asm_language::macro_expansion): New member function.
4371 (minimal_language_data): Likewise.
4372 (minimal_language::macro_expansion): New member function.
4373 * d-lang.c (d_language_data): Remove la_macro_expansion
4374 initializer.
4375 * f-lang.c (f_language_data): Likewise.
4376 * go-lang.c (go_language_data): Likewise.
4377 * language.c (unknown_language_data): Likewise.
4378 (auto_language_data): Likewise.
4379 * language.h (language_data): Remove la_macro_expansion field.
4380 (language_defn::macro_expansion): New member function.
4381 * m2-lang.c (m2_language_data): Remove la_macro_expansion
4382 initializer.
4383 * objc-lang.c (objc_language_data): Likewise.
4384 (objc_language::macro_expansion): New member function.
4385 * opencl-lang.c (opencl_language_data): Likewise.
4386 (opencl_language::macro_expansion): New member function.
4387 * p-lang.c (pascal_language_data): Remove la_macro_expansion
4388 initializer.
4389 * rust-lang.c (rust_language_data): Likewise.
4390 * symtab.c (default_collect_symbol_completion_matches_break_on):
4391 Update call to macro_expansion.
4392
3a3440fb
AB
43932020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4394
4395 * ada-lang.c (ada_language_data): Remove la_array_ordering
4396 initializer.
4397 * c-lang.c (c_language_data): Likewise.
4398 (cplus_language_data): Likewise.
4399 (asm_language_data): Likewise.
4400 (minimal_language_data): Likewise.
4401 * d-lang.c (d_language_data): Likewise.
4402 * dwarf2/read.c (read_array_order): Update for call to
4403 array_ordering.
4404 * f-lang.c (f_language_data): Remove la_array_ordering
4405 initializer.
4406 (f_language::array_ordering): New member function.
4407 * go-lang.c (go_language_data): Remove la_array_ordering
4408 initializer.
4409 * language.c (unknown_language_data): Likewise.
4410 (auto_language_data): Likewise.
4411 * language.h (language_data): Delete la_array_ordering field.
4412 (language_defn::array_ordering): New member function.
4413 * m2-lang.c (m2_language_data): Remove la_array_ordering
4414 initializer.
4415 * objc-lang.c (objc_language_data): Likewise.
4416 * opencl-lang.c (opencl_language_data): Likewise.
4417 * p-lang.c (pascal_language_data): Likewise.
4418 * rust-lang.c (rust_language_data): Likewise.
4419
0d201fa4
AB
44202020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4421
4422 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
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 * f-lang.c (f_language_data): Likewise.
4430 (f_language::case_sensitivity): New member function.
4431 * go-lang.c (go_language_data): Remove la_case_sensitivity
4432 initializer.
4433 * language.c (enum case_mode): Moved here from language.h.
4434 (case_mode): Make static.
4435 (show_case_command): Update for case_sensitivity being a method.
4436 (set_case_command): Likewise.
4437 (set_range_case): Likewise.
4438 (unknown_language_data): Remove la_case_sensitivity initializer.
4439 (auto_language_data): Likewise.
4440 * language.h (case_mode): Delete, move enum declaration to
4441 language.c.
4442 (language_data): Delete la_case_sensitivity field.
4443 (language_defn::case_sensitivity): New member function.
4444 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
4445 initializer.
4446 * objc-lang.c (objc_language_data): Likewise.
4447 * opencl-lang.c (opencl_language_data): Likewise.
4448 * p-lang.c (pascal_language_data): Likewise.
4449 * rust-lang.c (rust_language_data): Likewise.
4450
efdf6a73
AB
44512020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4452
4453 * ada-lang.c (ada_language_data): Remove la_range_check
4454 initializer.
4455 * c-lang.c (c_language_data): Likewise.
4456 (cplus_language_data): Likewise.
4457 (asm_language_data): Likewise.
4458 (minimal_language_data): Likewise.
4459 * d-lang.c (d_language_data): Likewise.
4460 * f-lang.c (f_language_data): Likewise.
4461 (f_language::range_checking_on_by_default): New member function.
4462 * go-lang.c (go_language_data): Remove la_range_check initializer.
4463 * language.c (enum range_mode): Moved here from language.h.
4464 (range_mode): Made static.
4465 (show_range_command): Update to use
4466 range_checking_on_by_default.
4467 (set_range_command): Likewise.
4468 (set_range_case): Likewise.
4469 (unknown_language_data): Remove la_range_check initializer.
4470 (auto_language_data): Likewise.
4471 * language.h (range_mode): Delete. Enum definition moved to
4472 language.c.
4473 (language_data): Remove la_range_check field.
4474 (language_defn::range_checking_on_by_default): New member
4475 function.
4476 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
4477 (m2_language::range_checking_on_by_default): New member function.
4478 * objc-lang.c (objc_language_data): Remove la_range_check
4479 initializer.
4480 * opencl-lang.c (opencl_language_data): Likewise.
4481 * p-lang.c (pascal_language_data): Likewise.
4482 (pascal_language::range_checking_on_by_default): New member
4483 function.
4484 * rust-lang.c (rust_language_data): Remove la_range_check
4485 initializer.
4486 (rust_language::range_checking_on_by_default): New member
4487 function.
4488
bf92aec5
AB
44892020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4490
4491 * dwarf2/read.c (dwarf2_physname): Remove special case for
4492 language_go.
4493 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
4494 member function.
4495
d3355e4d
AB
44962020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4497
4498 * ada-lang.c (ada_language_data): Remove
4499 la_store_sym_names_in_linkage_form_p initializer.
4500 (ada_language::store_sym_names_in_linkage_form_p): New member
4501 function.
4502 * c-lang.c (c_language_data): Remove
4503 la_store_sym_names_in_linkage_form_p initializer.
4504 (c_language::store_sym_names_in_linkage_form_p): New member
4505 function.
4506 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
4507 initializer.
4508 (asm_language_data): Likewise.
4509 (asm_language::store_sym_names_in_linkage_form_p): New member
4510 function.
4511 (minimal_language_data): Remove
4512 la_store_sym_names_in_linkage_form_p initializer.
4513 (minimal_language::store_sym_names_in_linkage_form_p): New member
4514 function.
4515 * d-lang.c (d_language_data): Remove
4516 la_store_sym_names_in_linkage_form_p initializer.
4517 * dwarf2/read.c (dwarf2_physname): Update call to
4518 store_sym_names_in_linkage_form_p.
4519 * f-lang.c (f_language_data): Remove
4520 la_store_sym_names_in_linkage_form_p initializer.
4521 * go-lang.c (go_language_data): Remove
4522 la_store_sym_names_in_linkage_form_p initializer.
4523 * language.c (unknown_language_data): Remove
4524 la_store_sym_names_in_linkage_form_p initializer.
4525 (unknown_language::store_sym_names_in_linkage_form_p): New member
4526 function.
4527 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
4528 initializer.
4529 (auto_language::store_sym_names_in_linkage_form_p): New member
4530 function.
4531 * language.h (language_data): Remove
4532 la_store_sym_names_in_linkage_form_p member variable.
4533 (language_defn::store_sym_names_in_linkage_form_p): New member
4534 function.
4535 * m2-lang.c (m2_language_data): Remove
4536 la_store_sym_names_in_linkage_form_p initializer.
4537 * objc-lang.c (objc_language_data): Likewise.
4538 * opencl-lang.c (opencl_language_data): Likewise.
4539 * p-lang.c (pascal_language_data): Likewise.
4540 * rust-lang.c (rust_language_data): Likewise.
4541
22c12a6c
AB
45422020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4543
4544 * ada-lang.c (ada_language_data): Remove string_lower_bound
4545 initializer.
4546 * c-lang.c (c_language_data): Likewise.
4547 (cplus_language_data): Likewise.
4548 (asm_language_data): Likewise.
4549 (minimal_language_data): Likewise.
4550 * d-lang.c (d_language_data): Likewise.
4551 * f-lang.c (f_language_data): Likewise.
4552 * go-lang.c (go_language_data): Likewise.
4553 * language.c (unknown_language_data): Likewise.
4554 (auto_language_data): Likewise.
4555 * language.h (language_data): Remove string_lower_bound field.
4556 (language_defn::string_lower_bound): New member function.
4557 * m2-lang.c (m2_language_data): Remove string_lower_bound
4558 initializer.
4559 (m2_language::string_lower_bound): New member function.
4560 * objc-lang.c (objc_language_data): Remove string_lower_bound
4561 initializer.
4562 * opencl-lang.c (opencl_language_data): Likewise.
4563 * p-lang.c (pascal_language_data): Likewise.
4564 * rust-lang.c (rust_language_data): Likewise.
4565 * valops.c (value_cstring): Update call to string_lower_bound.
4566 (value_string): Likewise.
4567 * value.c (allocate_repeated_value): Likewise.
4568
1c236ddd
AB
45692020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4570
4571 * valops.c (value_repeat): Fix incorrect argument name in comment.
4572
67bd3fd5
AB
45732020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4574
4575 * ada-lang.c (ada_language_data): Remove c_style_arrays
4576 initializer.
4577 (ada_language::c_style_arrays_p): New member fuction.
4578 * c-lang.c (c_language_data): Remove c_style_arrays
4579 initializer.
4580 (cplus_language_data): Likewise.
4581 (asm_language_data): Likewise.
4582 (minimal_language_data): Likewise.
4583 * d-lang.c (d_language_data): Likewise.
4584 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
4585 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
4586 (f_language::c_style_arrays_p): New member function.
4587 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
4588 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
4589 * language.c (unknown_language_data): Remove c_style_arrays
4590 initializer.
4591 (auto_language_data): Likewise.
4592 * language.h (language_data): Remove c_style_arrays field.
4593 (language_defn::c_style_arrays_p): New member function.
4594 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
4595 (m2_language::c_style_arrays_p): New member function.
4596 * objc-lang.c (objc_language_data): Remove c_style_arrays
4597 initializer.
4598 * opencl-lang.c (opencl_language_data): Likewise.
4599 * p-lang.c (pascal_language_data): Likewise.
4600 * rust-lang.c (rust_language_data): Likewise.
4601 * valarith.c (value_subscript): Update call to c_style_arrays_p,
4602 and update local variable to a bool.
4603 * valops.c (value_cast): Update call to c_style_arrays_p.
4604 (value_array): Likewise.
4605 * value.c (coerce_array): Likewise.
4606
85967615
AB
46072020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4608
4609 * ada-lang.c (ada_language_data): Remove la_language initializer.
4610 * c-lang.c (c_language_data): Likewise.
4611 (cplus_language_data): Likewise.
4612 (asm_language_data): Likewise.
4613 (minimal_language_data): Likewise.
4614 * d-lang.c (d_language_data): Likewise.
4615 * f-lang.c (f_language_data): Likewise.
4616 * go-lang.c (go_language_data): Likewise.
4617 * language.c (unknown_language_data): Likewise.
4618 (auto_language_data): Likewise.
4619 * language.h (language_data): Remove la_language field.
4620 (language_defn::language_defn): Initialise la_language field.
4621 (language_defn::la_language): New member variable.
4622 * m2-lang.c (m2_language_data): Remove la_language field.
4623 * objc-lang.c (objc_language_data): Likewise.
4624 * opencl-lang.c (opencl_language_data): Likewise.
4625 * p-lang.c (pascal_language_data): Likewise.
4626 * rust-lang.c (rust_language_data): Likewise.
4627
e171d6f1
AB
46282020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4629
4630 * ada-lang.c (ada_extensions): Delete, moved into
4631 ada_language::filename_extensions.
4632 (ada_language_data): Remove la_filename_extensions initializer.
4633 (ada_language::filename_extensions): New member function.
4634 * c-lang.c (c_extensions): Delete, moved into
4635 c_language::filename_extensions.
4636 (c_language_data): Remove la_filename_extensions initializer.
4637 (c_language::filename_extensions): New member function.
4638 (cplus_extensions): Delete, moved into
4639 cplus_language::filename_extensions.
4640 (cplus_language_data): Remove la_filename_extensions initializer.
4641 (cplus_language::filename_extensions): New member function.
4642 (asm_extensions): Delete, moved into
4643 asm_language::filename_extensions.
4644 (asm_language_data): Remove la_filename_extensions initializer.
4645 (asm_language::filename_extensions): New member function.
4646 (minimal_language_data): Remove la_filename_extensions
4647 initializer.
4648 * d-lang.c (d_extensions): Delete, moved into
4649 d_language::filename_extensions.
4650 (d_language_data): Remove la_filename_extensions initializer.
4651 (d_language::filename_extensions): New member function.
4652 * f-lang.c (f_extensions): Delete, moved into
4653 f_language::filename_extensions.
4654 (f_language_data): Remove la_filename_extensions initializer.
4655 (f_language::filename_extensions): New member function.
4656 * go-lang.c (go_language_data): Remove la_filename_extensions
4657 initializer.
4658 * language.c (add_set_language_command): Update now that
4659 filename_extensions returns a vector.
4660 (unknown_language_data): Remove la_filename_extensions
4661 initializer.
4662 (auto_language_data): Likewise.
4663 * language.h (language_data): Remove la_filename_extensions field.
4664 (language_defn::filename_extensions): New member function.
4665 * m2-lang.c (m2_language_data): Remove la_filename_extensions
4666 initializer.
4667 * objc-lang.c (objc_extensions): Delete, moved into
4668 objc_language::filename_extensions.
4669 (objc_language_data): Remove la_filename_extensions initializer.
4670 (objc_language::filename_extensions): New member function.
4671 * opencl-lang.c (opencl_language_data): Remove
4672 la_filename_extensions initializer.
4673 * p-lang.c (pascal_extensions): Delete, moved into
4674 pascal_language::filename_extensions.
4675 (pascal_language_data): Remove la_filename_extensions initializer.
4676 (pascal_language::filename_extensions): New member function.
4677 * rust-lang.c (rust_extensions): Delete, moved into
4678 rust_language::filename_extensions.
4679 (rust_language_data): Remove la_filename_extensions initializer.
4680 (rust_language::filename_extensions): New member function.
4681 * symfile.c (add_filename_language): Add new assert.
4682
6f7664a9
AB
46832020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4684
4685 * ada-lang.c (ada_language_data): Remove la_name and
4686 la_natural_name initializers.
4687 (ada_language::name): New member function.
4688 (ada_language::natural_name): New member function.
4689 * c-lang.c (c_language_data): Remove la_name and
4690 la_natural_name initializers.
4691 (c_language::name): New member function.
4692 (c_language::natural_name): New member function.
4693 (cplus_language_data): Remove la_name and
4694 la_natural_name initializers.
4695 (cplus_language::name): New member function.
4696 (cplus_language::natural_name): New member function.
4697 (asm_language_data): Remove la_name and
4698 la_natural_name initializers.
4699 (asm_language::name): New member function.
4700 (asm_language::natural_name): New member function.
4701 (minimal_language_data): Remove la_name and
4702 la_natural_name initializers.
4703 (minimal_language::name): New member function.
4704 (minimal_language::natural_name): New member function.
4705 * compile/compile.c (compile_to_object): Update call to
4706 lanugage_defn::name.
4707 * d-lang.c (d_language_data): Remove la_name and
4708 la_natural_name initializers.
4709 (d_language::name): New member function.
4710 (d_language::natural_name): New member function.
4711 * expprint.c (print_subexp_standard): Update call to
4712 language_defn::name.
4713 (dump_raw_expression): Likewise
4714 (dump_prefix_expression): Likewise.
4715 * f-lang.c (f_language_data): Remove la_name and
4716 la_natural_name initializers.
4717 (f_language::name): New member function.
4718 (f_language::natural_name): New member function.
4719 * go-lang.c (go_language_data): Remove la_name and
4720 la_natural_name initializers.
4721 (go_language::name): New member function.
4722 (go_language::natural_name): New member function.
4723 * language.c (show_language_command): Update call to
4724 language_defn::name.
4725 (set_language_command): Likewise.
4726 (language_enum): Likewise.
4727 (language_str): Likewise.
4728 (add_set_language_command): Likewise, use
4729 language_defn::natural_name in the doc string.
4730 (unknown_language_data): Remove la_name and
4731 la_natural_name initializers.
4732 (unknown_language::name): New member function.
4733 (unknown_language::natural_name): New member function.
4734 (auto_language_data): Remove la_name and
4735 la_natural_name initializers.
4736 (auto_language::name): New member function.
4737 (auto_language::natural_name): New member function.
4738 (language_lookup_primitive_type_as_symbol): Update call to
4739 language_defn::name.
4740 * language.h (language_data): Remove la_name and la_natural_name
4741 member variables.
4742 (language_defn::name): New member function.
4743 (language_defn::natural_name): New member function.
4744 * m2-lang.c (m2_language_data): Remove la_name and
4745 la_natural_name initializers.
4746 (m2_language::name): New member function.
4747 (m2_language::natural_name): New member function.
4748 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
4749 language_defn::natural_name.
4750 * objc-lang.c (objc_language_data): Remove la_name and
4751 la_natural_name initializers.
4752 (objc_language::name): New member function.
4753 (objc_language::natural_name): New member function.
4754 * opencl-lang.c (opencl_language_data): Remove la_name and
4755 la_natural_name initializers.
4756 (opencl_language::name): New member function.
4757 (opencl_language::natural_name): New member function.
4758 * p-lang.c (pascal_language_data): Remove la_name and
4759 la_natural_name initializers.
4760 (pascal_language::name): New member function.
4761 (pascal_language::natural_name): New member function.
4762 * rust-lang.c (rust_language_data): Remove la_name and
4763 la_natural_name initializers.
4764 (rust_language::name): New member function.
4765 (rust_language::natural_name): New member function.
4766 * symtab.c (lookup_language_this): Update call to
4767 language_defn::name.
4768
5bae7c4e
AB
47692020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4770
4771 * ada-lang.c (ada_language_data): Remove la_name_of_this
4772 initializer.
4773 * ax-gdb.c (gen_expr): Update call to name_of_this.
4774 * c-exp.y (classify_name): Likewise.
4775 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
4776 (cplus_language_data): Likewise.
4777 (cplus_language::name_of_this): New member function.
4778 (asm_language_data): Remove la_name_of_this initializer.
4779 (minimal_language_data): Likewise.
4780 * d-lang.c (d_language_data): Likewise.
4781 (d_language::name_of_this): New member function.
4782 * expprint.c (print_subexp_standard): Update call to name_of_this.
4783 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
4784 * go-lang.c (go_language_data): Likewise.
4785 * language.c (unknown_language_data): Likewise.
4786 (unknown_language::name_of_this): New member function.
4787 (auto_language_data): Remove la_name_of_this initializer.
4788 (auto_language::name_of_this): New member function.
4789 * language.h (language_data): Delete la_name_of_this member
4790 variable.
4791 (language_defn::name_of_this): New member function.
4792 * m2-lang.c (m2_language_data): Remove la_name_of_this
4793 initializer.
4794 * objc-lang.c (objc_language_data): Likewise.
4795 (objc_language::name_of_this): New member function.
4796 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
4797 initializer.
4798 * p-lang.c (pascal_language_data): Likewise.
4799 (pascal_language::name_of_this): New member function.
4800 * rust-lang.c (rust_language_data): Remove la_name_of_this
4801 initializer.
4802 * symtab.c (lookup_language_this): Update call to name_of_this.
4803 (lookup_symbol_aux): Likewise.
4804 * valops.c (value_of_this): Likewise.
4805
22e3f3ed
AB
48062020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4807
4808 * ada-lang.c (ada_language_data): Remove
4809 la_struct_too_deep_ellipsis initializer.
4810 (ada_language::struct_too_deep_ellipsis): New member function.
4811 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
4812 initializer.
4813 (cplus_language_data): Likewise.
4814 (asm_language_data): Likewise.
4815 (minimal_language_data): Likewise.
4816 * cp-valprint.c (cp_print_value): Update call to
4817 struct_too_deep_ellipsis.
4818 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
4819 initializer.
4820 * f-lang.c (f_language_data): Likewise.
4821 (f_language::struct_too_deep_ellipsis): New member function.
4822 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
4823 initializer.
4824 * language.c (unknown_language_data): Likewise.
4825 (auto_language_data): Likewise.
4826 * language.h (language_data): Delete la_struct_too_deep_ellipsis
4827 member variable.
4828 (language_defn::struct_too_deep_ellipsis): New member function.
4829 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
4830 initializer.Q
4831 * objc-lang.c (objc_language_data): Likewise.
4832 * opencl-lang.c (opencl_language_data): Likewise.
4833 * p-lang.c (pascal_language_data): Likewise.
4834 * rust-lang.c (rust_language_data): Likewise.
4835 * valprint.c (val_print_check_max_depth): Update call to
4836 struct_too_deep_ellipsis.
4837
ed29e1c7
FW
48382020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
4839
4840 * MAINTAINERS (Write After Approval): Add myself.
4841
12d8f940
TT
48422020-09-15 Tom Tromey <tom@tromey.com>
4843
4844 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
4845 Remove.
4846
6b5a7bc7
TT
48472020-09-15 Tom Tromey <tom@tromey.com>
4848
4849 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
4850 and TYPE_CODE_METHODPTR cases.
4851 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
4852 (c_value_print_inner): Update.
4853 * valprint.c (generic_value_print_memberptr): New function, from
4854 c_value_print_memberptr.
4855 (generic_value_print): Use it. Call cplus_print_method_ptr.
4856
47f0e2ff
TT
48572020-09-15 Tom Tromey <tromey@adacore.com>
4858
4859 * python/python-internal.h (PyInt_FromLong): Remove define.
4860 * python/py-value.c (convert_value_from_python): Use
4861 gdb_py_object_from_longest.
4862 * python/py-type.c (typy_get_code): Use
4863 gdb_py_object_from_longest.
4864 * python/py-symtab.c (salpy_get_line): Use
4865 gdb_py_object_from_longest.
4866 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
4867 gdb_py_object_from_longest.
4868 * python/py-record.c (recpy_gap_reason_code): Use
4869 gdb_py_object_from_longest.
4870 * python/py-record-btrace.c (recpy_bt_insn_size)
4871 (recpy_bt_func_level, btpy_list_count): Use
4872 gdb_py_object_from_longest.
4873 * python/py-infthread.c (gdbpy_create_ptid_object): Use
4874 gdb_py_object_from_longest. Fix error handling.
4875 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
4876 gdb_py_object_from_longest.
4877 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
4878 gdb_py_object_from_longest.
4879 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
4880 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
4881 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
4882
512116ce
TT
48832020-09-15 Tom Tromey <tromey@adacore.com>
4884
4885 * python/python.c (gdbpy_parameter_value): Use
4886 gdb_py_object_from_ulongest.
4887
4ab1029c
TT
48882020-09-15 Tom Tromey <tromey@adacore.com>
4889
4890 * python/py-infevents.c (create_register_changed_event_object):
4891 Use gdb_py_object_from_longest.
4892 * python/py-exitedevent.c (create_exited_event_object): Use
4893 gdb_py_object_from_longest.
4894
062534d4
TT
48952020-09-15 Tom Tromey <tromey@adacore.com>
4896
4897 * python/python.c (gdbpy_parameter_value): Use
4898 gdb_py_object_from_longest.
4899 * python/py-type.c (convert_field, typy_range): Use
4900 gdb_py_object_from_longest.
4901 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
4902 gdb_py_object_from_longest.
4903 * python/py-lazy-string.c (stpy_get_length): Use
4904 gdb_py_object_from_longest.
4905 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
4906 gdb_py_object_from_longest.
4907 * python/py-infevents.c (create_memory_changed_event_object): Use
4908 gdb_py_object_from_longest.
4909 * python/py-inferior.c (infpy_get_num): Use
4910 gdb_py_object_from_longest.
4911 (infpy_get_pid): Likewise.
4912
d1cab987
TT
49132020-09-15 Tom Tromey <tromey@adacore.com>
4914
4915 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
4916 defines.
4917 * python/py-value.c (valpy_long): Use
4918 gdb_py_object_from_ulongest.
4919 * python/py-symtab.c (salpy_get_pc): Use
4920 gdb_py_object_from_ulongest.
4921 (salpy_get_last): Likewise.
4922 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
4923 gdb_py_object_from_ulongest.
4924 * python/py-lazy-string.c (stpy_get_address): Use
4925 gdb_py_object_from_ulongest.
4926 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
4927 * python/py-arch.c (archpy_disassemble): Use
4928 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
4929 error handling.
4930
4bde49dc
TT
49312020-09-15 Tom Tromey <tromey@adacore.com>
4932
4933 * python/python-internal.h (gdb_py_long_from_longest): Remove
4934 defines.
4935 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
4936 * python/py-type.c (convert_field, typy_get_sizeof): Use
4937 gdb_py_object_from_longest.
4938 * python/py-record-btrace.c (btpy_list_index): Use
4939 gdb_py_object_from_longest.
4940
37431074
TT
49412020-09-15 Tom Tromey <tromey@adacore.com>
4942
4943 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
4944 * python/py-record.c (recpy_element_number): Use
4945 gdb_py_object_from_longest.
4946 (recpy_gap_number): Likewise.
4947
cbe25684
TT
49482020-09-15 Tom Tromey <tromey@adacore.com>
4949
4950 * top.c (ui::ui): Update.
4951 (highest_ui_num): Remove.
4952 * top.h (struct ui) <num>: Remove.
4953
db92ac45
TT
49542020-09-15 Tom Tromey <tromey@adacore.com>
4955
4956 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
4957 * ui-style.c (ansi_regex_text): Now array.
4958 * rust-exp.y (number_regex_text): Now array.
4959 * linespec.c (linespec_quote_characters): Now array.
4960 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
4961 Now arrays.
4962
d2b31b67
SM
49632020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4964
4965 * debuginfod-support.c (debuginfod_client_deleter): New.
4966 (debuginfod_client_up): New.
4967 (debuginfod_init): Return debuginfod_client_up.
4968 (debuginfod_source_query): Adjust.
4969 (debuginfod_debuginfo_query): Adjust.
4970
3246bd8e
SM
49712020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4972
4973 * debuginfod-support.c (debuginfod_source_query): Use
4974 make_unique_xstrdup.
4975
10242f36
SM
49762020-09-14 Simon Marchi <simon.marchi@efficios.com>
4977
4978 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
4979 with `type::instance_flags`.
4980
e1044e6a
MM
49812020-09-14 Michael Mullin <masmullin@gmail.com>
4982
4983 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
4984 Remove baton parameter.
4985
04902b09
PA
49862020-09-14 Pedro Alves <pedro@palves.net>
4987
4988 * Makefile.in (SELFTESTS_SRCS): Add
4989 unittests/enum-flags-selftests.c.
4990 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
4991 btrace_function_flags instead of enum btrace_function_flag.
4992 * compile/compile-c-types.c (convert_qualified): Use
4993 enum_flags::raw.
4994 * compile/compile-cplus-symbols.c (convert_one_symbol)
4995 (convert_symbol_bmsym):
4996 * compile/compile-cplus-types.c (compile_cplus_convert_method)
4997 (compile_cplus_convert_struct_or_union_methods)
4998 (compile_cplus_instance::convert_qualified_base):
4999 * go-exp.y (parse_string_or_char): Add cast to int.
5000 * unittests/enum-flags-selftests.c: New file.
5001 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
5002 type to btrace_thread_flags from btrace_thread_flag.
5003 (record_btrace_cancel_resume, record_btrace_step_thread): Change
5004 local's type to btrace_thread_flags from btrace_thread_flag. Add
5005 cast in DEBUG call.
5006
69896a2c
PA
50072020-09-14 Pedro Alves <pedro@palves.net>
5008
5009 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
5010 * gdbtypes.c (address_space_name_to_int): Rename to ...
5011 (address_space_name_to_type_instance_flags): ... this.
5012 (address_space_int_to_name): Rename to ...
5013 (address_space_type_instance_flags_to_name): ... this.
5014 * gdbtypes.h (address_space_name_to_int): Rename to ...
5015 (address_space_name_to_type_instance_flags): ... this.
5016 (address_space_int_to_name): Rename to ...
5017 (address_space_type_instance_flags_to_name): ... this.
5018 * type-stack.c (type_stack::insert): Adjust to rename.
5019 * type-stack.h (type_stack::insert): Likewise.
5020
314ad88d
PA
50212020-09-14 Pedro Alves <pedro@palves.net>
5022 Andrew Burgess <andrew.burgess@embecosm.com>
5023
5024 * avr-tdep.c (avr_address_class_type_flags): Return
5025 type_instance_flags.
5026 (avr_address_class_type_flags_to_name): Take a
5027 type_instance_flags.
5028 (avr_address_class_name_to_type_flags): Return bool and take a
5029 type_instance_flags.
5030 * d-lang.c (build_d_types): Use type::set_instance_flags.
5031 * ft32-tdep.c (ft32_address_class_type_flags): Return
5032 type_instance_flags.
5033 (ft32_address_class_type_flags_to_name): Take a
5034 type_instance_flags.
5035 (ft32_address_class_name_to_type_flags): Return bool and take a
5036 type_instance_flags.
5037 (ft32_gdbarch_init): Use type::set_instance_flags.
5038 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
5039 * gdbarch.h, gdbarch.c: Regenerate.
5040 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
5041 (address_class_name_to_type_flags): Use type_instance_flags and
5042 bool.
5043 * gdbtypes.c (address_space_name_to_int)
5044 (address_space_int_to_name, make_qualified_type): Use
5045 type_instance_flags.
5046 (make_qualified_type): Use type_instance_flags and
5047 type::set_instance_flags.
5048 (make_type_with_address_space, make_cv_type, make_vector_type)
5049 (check_typedef): Use type_instance_flags.
5050 (recursive_dump_type): Cast type_instance_flags to unsigned for
5051 printing.
5052 (copy_type_recursive): Use type::set_instance_flags.
5053 (gdbtypes_post_init): Use type::set_instance_flags.
5054 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
5055 <m_instance_flags>: ... this.
5056 <instance_flags, set_instance_flags>: New methods.
5057 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
5058 (SET_TYPE_INSTANCE_FLAGS): New.
5059 (address_space_name_to_int, address_space_int_to_name)
5060 (make_type_with_address_space): Pass flags using
5061 type_instance_flags instead of int.
5062 * stabsread.c (cleanup_undefined_types_noname): Use
5063 type::set_instance_flags.
5064 * s390-tdep.c (s390_address_class_type_flags): Return
5065 type_instance_flags.
5066 (s390_address_class_type_flags_to_name): Take a
5067 type_instance_flags.
5068 (s390_address_class_name_to_type_flags): Return bool and take a
5069 type_instance_flags.
5070 * type-stack.c (type_stack::follow_types): Use
5071 type_instance_flags.
5072 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
5073
27087b7f
TT
50742020-09-14 Tom Tromey <tromey@adacore.com>
5075
5076 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
5077 * x86-tdep.c (x86_is_thunk_register_name)
5078 (x86_in_indirect_branch_thunk): Update.
5079 * sparc64-tdep.c (sparc64_fpu_register_names)
5080 (sparc64_cp0_register_names, sparc64_register_names)
5081 (sparc64_pseudo_register_names): Now const.
5082 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
5083 cp0_registers_num>: Now const.
5084 * sparc-tdep.c (sparc_core_register_names)
5085 (sparc32_fpu_register_names, sparc32_cp0_register_names)
5086 (sparc32_pseudo_register_names): Now const.
5087 (validate_tdesc_registers): Update.
5088 * rust-lang.c (rust_extensions): Now const.
5089 * p-lang.c (p_extensions): Now const.
5090 * objc-lang.c (objc_extensions): Now const.
5091 * nto-tdep.c (nto_thread_state_str): Now const.
5092 * moxie-tdep.c (moxie_register_names): Now const.
5093 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
5094 Now const.
5095 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
5096 (mips_linux_reg_names): Now const.
5097 (mips_gdbarch_init): Update.
5098 * microblaze-tdep.c (microblaze_register_names): Now const.
5099 * m68k-tdep.c (m68k_register_names): Now const.
5100 * m32r-tdep.c (m32r_register_names): Now const.
5101 * ia64-tdep.c (ia64_register_names): Now const.
5102 * i386-tdep.h (struct gdbarch_tdep) <register_names,
5103 ymmh_register_names, ymm16h_regnum, mpx_register_names,
5104 k_register_names, zmmh_register_names, xmm_avx512_register_names,
5105 ymm_avx512_register_names, pkeys_register_names>: Now const.
5106 * i386-tdep.c (i386_register_names, i386_zmm_names)
5107 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
5108 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
5109 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
5110 * f-lang.c (f_extensions): Now const.
5111 * d-lang.c (d_extensions): Now const.
5112 * csky-tdep.c (csky_register_names): Now const.
5113 * charset.c (default_charset_names, charset_enum): Now const.
5114 (_initialize_charset): Update.
5115 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
5116 const.
5117 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
5118 (bsd_uthread_solib_loaded): Update.
5119 (bsd_uthread_state): Now const.
5120 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
5121 (amd64_ymm_avx512_names, amd64_ymmh_names)
5122 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
5123 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
5124 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
5125 (amd64_dword_names): Now const.
5126 * agent.c (can_use_agent_enum): Now const.
5127 * ada-tasks.c (task_states, long_task_states): Now const.
5128 * ada-lang.c (known_runtime_file_name_patterns)
5129 (known_auxiliary_function_name_patterns, attribute_names)
5130 (standard_exc, ada_extensions): Now const.
5131
89806626
SM
51322020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5133
5134 * bcache.h (struct bcache) <bcache>: Remove constructor.
5135 <m_hash_function, m_compare_function>: Remove.
5136 <~bcache>: Make virtual.
5137 <compare>: Remove static method, introduce virtual method.
5138 <default_hash>: Remove.
5139 <hash>: New virtual method.
5140 * bcache.c (bcache::expand_hash_table): Update.
5141 (bcache::insert): Update.
5142 (bcache::hash): New.
5143 (bcache::compare): Update comment and parameter names.
5144 * gdbtypes.c (types_deeply_equal): Update.
5145 * psymtab.h (struct psymbol_bcache): New struct.
5146 (class psymtab_storage) <psymtab_storage>: Make default.
5147 <psymbol_cache>: Change type to psymbol_bcache.
5148 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
5149 (psymbol_hash): Change to...
5150 (psymbol_bcache::hash): ... this.
5151 (psymbol_compare): Change to...
5152 (psymbol_bcache::compare): ... this.
5153
677c92fe
SM
51542020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5155
5156 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
5157 checking for initial lwp.
5158
3eba3a01
TT
51592020-09-14 Tom Tromey <tromey@adacore.com>
5160
5161 * m68k-tdep.c (m68k_extract_return_value): Use
5162 pointer_result_regnum.
5163 (m68k_store_return_value): Likewise.
5164 (m68k_reg_struct_return_p): Handle vectors and arrays.
5165 (m68k_return_value): Handle arrays.
5166 (m68k_svr4_return_value): Fix single-element aggregate handling.
5167 Handle long double. Adjust for embedded ABI.
5168 (m68k_svr4_init_abi): Set pointer_result_regnum.
5169 (m68k_embedded_init_abi): New function.
5170 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
5171 (m68k_osabi_sniffer): New function.
5172 (_initialize_m68k_tdep): Register osabi sniffer.
5173 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
5174 member.
5175
33f4dd48
SM
51762020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5177
5178 * xml-support.c (xml_fetch_content_from_file): Replace xfree
5179 with gdb::unique_xmalloc_ptr<char>.
5180
8400a90d
SM
51812020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5182
5183 * xml-support.h (xml_fetch_another): Change type to be a
5184 function_view.
5185 (xml_process_xincludes): Remove baton parameter.
5186 (xml_fetch_content_from_file): Change baton parameter to
5187 dirname.
5188 * xml-support.c (struct xinclude_parsing_data)
5189 <xinclude_parsing_data>: Remove baton parameter.
5190 <fetcher_baton>: Remove.
5191 (xinclude_start_include): Adjust.
5192 (xml_process_xincludes): Adjust.
5193 (xml_fetch_content_from_file): Replace baton parameter with
5194 dirname.
5195 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
5196 (xml_init_syscalls_info): Use a lambda.
5197 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
5198 (file_read_description_xml): Use a lambda.
5199 (fetch_available_features_from_target): Change baton parameter
5200 to target_ops.
5201 (target_read_description_xml): Use a lambda.
5202 (target_fetch_description_xml): Use a lambda.
5203 (string_read_description_xml): Update.
5204
04f5bab2
SM
52052020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5206
5207 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
5208 uses with type::endianity_is_not_default.
5209
db558e34
SM
52102020-09-14 Simon Marchi <simon.marchi@efficios.com>
5211
5212 * gdbtypes.h (struct type) <endianity_is_not_default,
5213 set_endianity_is_not_default>: New methods.
5214 (TYPE_ENDIANITY_NOT_DEFAULT): Use
5215 type::endianity_is_not_default, change all write call sites to
5216 use type::set_endianity_is_not_default.
5217
22c4c60c
SM
52182020-09-14 Simon Marchi <simon.marchi@efficios.com>
5219
5220 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
5221 uses with type::is_fixed_instance.
5222
9cdd0d12
SM
52232020-09-14 Simon Marchi <simon.marchi@efficios.com>
5224
5225 * gdbtypes.h (struct type) <is_fixed_instance,
5226 set_is_fixed_instance>: New methods.
5227 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
5228 write call sites to use type::set_is_fixed_instance.
5229
0becda7a
SM
52302020-09-14 Simon Marchi <simon.marchi@efficios.com>
5231
5232 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
5233 uses with type::is_gnu_ifunc.
5234
03cc7249
SM
52352020-09-14 Simon Marchi <simon.marchi@efficios.com>
5236
5237 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
5238 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
5239 use type::set_is_gnu_ifunc.
5240
3f46044c
SM
52412020-09-14 Simon Marchi <simon.marchi@efficios.com>
5242
5243 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
5244 uses with type::stub_is_supported.
5245
9baccff6
SM
52462020-09-14 Simon Marchi <simon.marchi@efficios.com>
5247
5248 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
5249 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
5250 use type::set_stub_is_supported.
5251
bd63c870
SM
52522020-09-14 Simon Marchi <simon.marchi@efficios.com>
5253
5254 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
5255 uses with type::is_vector.
5256
2062087b
SM
52572020-09-14 Simon Marchi <simon.marchi@efficios.com>
5258
5259 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
5260 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
5261 use type::set_is_vector.
5262
a409645d
SM
52632020-09-14 Simon Marchi <simon.marchi@efficios.com>
5264
5265 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
5266 uses with type::has_varargs.
5267
1d6286ed
SM
52682020-09-14 Simon Marchi <simon.marchi@efficios.com>
5269
5270 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
5271 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
5272 use type::set_has_varargs.
5273
7f9f399b
SM
52742020-09-14 Simon Marchi <simon.marchi@efficios.com>
5275
5276 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
5277 uses with type::is_prototyped.
5278
27e69b7a
SM
52792020-09-14 Simon Marchi <simon.marchi@efficios.com>
5280
5281 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
5282 New methods.
5283 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
5284 call sites to use type::set_is_prototyped.
5285
d2183968
SM
52862020-09-14 Simon Marchi <simon.marchi@efficios.com>
5287
5288 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
5289 uses with type::target_is_stub.
5290
8f53807e
SM
52912020-09-14 Simon Marchi <simon.marchi@efficios.com>
5292
5293 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
5294 New methods.
5295 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
5296 sites to use type::set_target_is_stub.
5297
e46d3488
SM
52982020-09-14 Simon Marchi <simon.marchi@efficios.com>
5299
5300 * gdbtypes.h (TYPE_STUB): Remove, replace all
5301 uses with type::is_stub.
5302
b4b73759
SM
53032020-09-14 Simon Marchi <simon.marchi@efficios.com>
5304
5305 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
5306 (TYPE_STUB): Use type::is_stub, change all write call sites to
5307 use type::set_is_stub.
5308
20ce4123
SM
53092020-09-14 Simon Marchi <simon.marchi@efficios.com>
5310
5311 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
5312 type::has_no_signedness.
5313
15152a54
SM
53142020-09-14 Simon Marchi <simon.marchi@efficios.com>
5315
5316 * gdbtypes.h (struct type) <has_no_signedness,
5317 set_has_no_signedness>: New methods.
5318 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
5319 call sites to use type::set_has_no_signedness.
5320
c6d940a9
SM
53212020-09-14 Simon Marchi <simon.marchi@efficios.com>
5322
5323 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
5324 type::is_unsigned.
5325
653223d3
SM
53262020-09-14 Simon Marchi <simon.marchi@efficios.com>
5327
5328 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
5329 methods.
5330 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
5331 sites to use type::set_is_unsigned.
5332
55ea94da 53332020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
e851246a 5334 Adam Renquinha <arenquinha@cimeq.qc.ca>
55ea94da 5335
e851246a
SM
5336 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
5337 pointer and stack frame offset when unwinding.
55ea94da 5338
6791b117
PA
53392020-09-13 Pedro Alves <pedro@palves.net>
5340
5341 * NEWS: Document "-break-insert --qualified".
5342 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
5343
77f2120b
PA
53442020-09-13 Pedro Alves <pedro@palves.net>
5345
5346 * linespec.c (classify_mtype, compare_msyms): Delete.
5347 (search_minsyms_for_name): Remove classification logic. Instead
5348 filter out trampoline symbols if we also found an external
5349 function of the same name.
5350
ed6a896c
JB
53512020-09-13 Joel Brobecker <brobecker@adacore.com>
5352
5353 * NEWS: Create a new section for the next release branch.
5354 Rename the section of the current branch, now that it has
5355 been cut.
5356
32aea73e
JB
53572020-09-13 Joel Brobecker <brobecker@adacore.com>
5358
5359 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
5360 * version.in: Bump version to 11.0.50.DATE-git.
5361
8087c3fa
JB
53622020-09-12 Joel Brobecker <brobecker@adacore.com>
5363
5364 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
5365
2a67f09d
FW
53662020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
5367 Felix Willgerodt <Felix.Willgerodt@intel.com>
5368
5369 * gdbarch.sh: Added bfloat16 type.
5370 * gdbarch.c: Regenerated.
5371 * gdbarch.h: Regenerated.
5372 * gdbtypes.c (floatformats_bfloat16): New struct.
5373 (gdbtypes_post_init): Add builtin_bfloat16.
5374 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
5375 (floatformats_bfloat16): New struct.
5376 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
5377 (i386_ymm_type): Add field "v16_bfloat16"
5378 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
5379 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
5380 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
5381 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
5382 * features/i386/64bit-avx512.xml: Add bfloat16 type.
5383 * features/i386/64bit-avx512.c: Regenerated.
5384 * features/i386/64bit-sse.xml: Add bfloat16 type.
5385 * features/i386/64bit-sse.c: Regenerated.
5386
1347d111
FW
53872020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
5388
5389 * i386-tdep.c (i386_zmm_type): Fix field names.
5390 (i386_ymm_type): Fix field names.
5391
7a4e8e7d
TBA
53922020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5393
5394 * breakpoint.c: Fix typo in the help message of the
5395 "set breakpoint condition-evaluation" command.
5396
cf4ac4be
KR
53972020-09-10 Kamil Rytarowski <n54@gmx.com>
5398
5399 * nbsd-nat.c: Include "nat/netbsd-nat.h".
5400 * (nbsd_nat_target::pid_to_exec_file)
5401 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
5402 (nbsd_nat_target::post_startup_inferior)
5403 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
5404 (nbsd_add_threads): Switch local code to common gdb/nat functions.
5405 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
5406 * (nbsd_thread_lister): Remove.
5407
f404573e
KR
54082020-09-10 Kamil Rytarowski <n54@gmx.com>
5409
5410 * fork-inferior.c (startup_inferior): Avoid double free.
5411
1ccb2c17
KR
54122020-09-10 Kamil Rytarowski <n54@gmx.com>
5413
5414 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
5415 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
5416
feedfcc7
KR
54172020-09-10 Kamil Rytarowski <n54@gmx.com>
5418
5419 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
5420 * netbsd-nat.c: Include <sys/ptrace.h>.
5421 * (netbsd_nat::enable_proc_events): Add.
5422
c489f8c6
KR
54232020-09-10 Kamil Rytarowski <n54@gmx.com>
5424
5425 * netbsd-nat.h: Include "gdbsupport/function-view.h".
5426 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
5427 (netbsd_nat::for_each_thread): Add.
5428 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
5429 "gdbsupport/common-debug.h".
5430 * (netbsd_nat::netbsd_thread_lister)
5431 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
5432 (netbsd_nat::for_each_thread): Add.
5433
330662f6
KR
54342020-09-10 Kamil Rytarowski <n54@gmx.com>
5435
5436 * netbsd-nat.h: Include <unistd.h>.
5437 * (netbsd_nat::pid_to_exec_file): Add.
5438 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
5439 * (netbsd_nat::pid_to_exec_file) Add.
5440
70b67307
KR
54412020-09-10 Kamil Rytarowski <n54@gmx.com>
5442
5443 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
5444
99cf6da6
KR
54452020-09-10 Kamil Rytarowski <n54@gmx.com>
5446
5447 * netbsd-nat.h: New file.
5448 * netbsd-nat.c: Likewise.
5449
1b788fb6
TT
54502020-09-09 Tom Tromey <tromey@adacore.com>
5451
5452 * ada-lang.c (remove_extra_symbols): Do not increment when
5453 removing an element
5454
03b0a45f
TT
54552020-09-08 Tom Tromey <tromey@adacore.com>
5456
5457 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
5458
3cae4447
TT
54592020-09-08 Tom Tromey <tromey@adacore.com>
5460
5461 PR win32/25302:
5462 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
5463 (gdb_bfd_init_data): New function.
5464 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
5465
7f08fd51
TBA
54662020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5467
5468 * infrun.c (fetch_inferior_event): Use
5469 `switch_to_target_no_thread` to switch the target.
5470
3e6ff933
TT
54712020-09-06 Tom Tromey <tom@tromey.com>
5472
5473 * symfile.h (dwarf2_free_objfile): Don't declare.
5474
e56798df
AKS
54752020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5476
5477 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
5478 to match 16 byte real/complex type generated by Flang compiler.
5479
8f5c6526
TV
54802020-09-03 Tom de Vries <tdevries@suse.de>
5481
5482 PR breakpoint/26546
5483 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
5484 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
5485
c5065df0
SM
54862020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
5487
5488 * maint.c (index_digits): New function.
5489 (struct maint_print_section_data): Remove.
5490 (print_bfd_section_info): Remove print_data parameter, add arg
5491 and index_digits.
5492 (print_objfile_section_info): Likewise.
5493 (print_bfd_section_info_maybe_relocated): Likewise (plus
5494 objfile).
5495 (maintenance_info_sections): Adjust calls.
5496
02c6f3f1
TT
54972020-09-02 Tom Tromey <tromey@adacore.com>
5498
5499 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
5500 for null pointers.
5501 (ada_varobj_adjust_for_child_access): Special-case null pointers.
5502
ef5e5b0b
SM
55032020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
5504
5505 * bcache.h (struct bcache) <insert>: Change type of `added` to
5506 pointer to bool.
5507 * bcache.c (bcache::insert): Likewise.
5508 * gdbtypes.c (check_types_worklist): Adjust.
5509 * psymtab.c (add_psymbol_to_bcache): Adjust.
5510
973695d6
KB
55112020-08-31 Kevin Buettner <kevinb@redhat.com>
5512
5513 * corelow.c (unordered_set): Include.
5514 (class core_target): Add field 'm_core_unavailable_mappings'.
5515 (core_target::build_file_mappings): Print only one warning
5516 per inaccessible file. Add unavailable/broken mappings
5517 to m_core_unavailable_mappings.
5518 (core_target::xfer_partial): Call...
5519 (core_target::xfer_memory_via_mappings): New method.
5520
264fc0e2
SM
55212020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
5522
5523 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
5524 type to bool.
5525
2de01bdb
SM
55262020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
5527
5528 * dwarf2/read.c (struct field_info): Fix indentation.
5529
f3bd50f1
SM
55302020-08-31 Simon Marchi <simon.marchi@efficios.com>
5531
5532 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
5533 ordering in comment.
5534 * frame.c (frame_id_eq): Fix indentation.
5535
22b9b4b0
SL
55362020-08-31 Scott Linder <scott@scottlinder.com>
5537 Simon Marchi <simon.marchi@efficios.com>
5538
5539 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
5540 inline frame ids in outer frame.
5541
84154d16
SM
55422020-08-31 Simon Marchi <simon.marchi@efficios.com>
5543
5544 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
5545 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
5546 (outer_frame_id): Use FID_STACK_OUTER instead of
5547 FID_STACK_INVALID.
5548 (frame_id_p): Don't check for outer_frame_id.
5549
8efaf6b3
SM
55502020-08-31 Simon Marchi <simon.marchi@efficios.com>
5551
5552 * frame-unwind.c (frame_unwind_got_optimized): Don't set
5553 regnum/frame in value. Call allocate_value_lazy.
5554 * frame.c (frame_unwind_register_value): Use
5555 val_print_not_saved.
5556
fe1fe7ea
SM
55572020-08-31 Simon Marchi <simon.marchi@efficios.com>
5558
5559 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
5560
f7c7700d
PA
55612020-08-29 Pedro Alves <pedro@palves.net>
5562
5563 * progspace.c (print_program_space): Use all_inferiors. Switch to
5564 the inferior before calling target_pid_to_str.
5565
e0814aae
TT
55662020-08-28 Tom Tromey <tom@tromey.com>
5567
5568 * xcoffread.c (xcoff_end_psymtab): Update comment.
5569 * dbxread.c (dbx_end_psymtab): Update comment.
5570
626d2320
TV
55712020-08-28 Tom de Vries <tdevries@suse.de>
5572
5573 PR breakpoint/26544
5574 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
5575 event_location.
5576 (create_breakpoint): Same.
5577 (base_breakpoint_decode_location): Same.
5578 (bkpt_create_sals_from_location): Same.
5579 (bkpt_decode_location): Same.
5580 (bkpt_probe_create_sals_from_location): Same.
5581 (bkpt_probe_decode_location): Same.
5582 (tracepoint_create_sals_from_location): Same.
5583 (tracepoint_decode_location): Same.
5584 (tracepoint_probe_decode_location): Same.
5585 (strace_marker_create_sals_from_location): Same.
5586 (strace_marker_decode_location): Same.
5587 (create_sals_from_location_default): Same.
5588 (decode_location_default): Same.
5589 * breakpoint.h (struct breakpoint_ops): Same.
5590 (create_breakpoint): Same.
5591 * linespec.h (decode_line_full): Same.
5592 * linespec.c (decode_line_full): Same. Throw error if
5593 result.size () == 0.
5594
df631783
PA
55952020-08-27 Pedro Alves <pedro@palves.net>
5596
5597 PR gdb/26524
5598 * breakpoint.c (until_break_fsm) <location_breakpoint,
5599 caller_breakpoint>: Delete fields.
5600 <breakpoints>: New field.
5601 <until_break_fsm>: Adjust to save a breakpoint vector instead of
5602 two individual breakpoints.
5603 (until_break_fsm::should_stop): Loop over breakpoints in the
5604 breakpoint vector.
5605 (until_break_fsm::clean_up): Adjust to clear the breakpoints
5606 vector.
5607 (until_break_command): Handle location expanding into multiple
5608 sals.
5609
b2b38aa4
PA
56102020-08-27 Pedro Alves <pedro@palves.net>
5611
5612 PR gdb/26523
5613 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
5614 bp_until breakpoints user-specified locations. Update intro
5615 comment.
5616
b886559f
SM
56172020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
5618
5619 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
5620 gdb_bfd_sections): New.
5621 * maint.c (print_bfd_section_info): Change param type to
5622 maint_print_section_data.
5623 (print_objfile_section_info): Likewise.
5624 (print_bfd_section_info_maybe_relocated): Likewise.
5625 (maintenance_info_sections): Use gdb_bfd_sections.
5626
4c6e63bf
SV
56272020-08-25 Shahab Vahedi <shahab@synopsys.com>
5628
5629 * MAINTAINERS: Add ARC target and maintainer.
5630
8d7f0635
AK
56312020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
5632
5633 * configure.tgt: ARC support for GNU/Linux.
5634 * Makefile.in (ALL_TARGET_OBJS): Likewise.
5635 * arc-linux-tdep.c: New file.
5636 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
5637 * arc-tdep.c (arc_write_pc): Use it.
5638
fdd8731b
SV
56392020-08-25 Shahab Vahedi <shahab@synopsys.com>
5640
5641 * arc-tdep.c (arc_check_for_hardware_loop): New.
5642 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
5643
22459524
SV
56442020-08-25 Shahab Vahedi <shahab@synopsys.com>
5645
5646 * arc-tdep.h: Include "gdbarch.h".
5647
995d3a19
SV
56482020-08-25 Shahab Vahedi <shahab@synopsys.com>
5649
5650 * arch/arc.h
5651 (arc_gdbarch_features): New class to stir the selection of target XML.
5652 (arc_create_target_description): Use FEATURES to choose XML target.
5653 (arc_lookup_target_description): Use arc_create_target_description
5654 to create _new_ target descriptions or return the already created
5655 ones if the FEATURES is the same.
5656 * arch/arc.c: Implementation of prototypes described above.
5657 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
5658 (arc_gdbarch_features_init): Initialize the FEATURES struct.
5659 * arc-tdep.c (*_feature_name): Make feature names consistent.
5660 (arc_register_feature): A new struct to hold information about
5661 registers of a particular target/feature.
5662 (arc_check_tdesc_feature): Check if XML provides registers in
5663 compliance with ARC_REGISTER_FEATURE structs.
5664 (arc_update_acc_reg_names): Add aliases for r58 and r59.
5665 (determine_*_reg_feature_set): Which feature name to look for.
5666 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
5667 (mach_type_to_arc_isa): Convert from a set of binutils machine types
5668 to expected ISA enums to be used in arc_gdbarch_features structs.
5669 * features/Makefile (FEATURE_XMLFILES): Add new files.
5670 * gdb/features/arc/v1-aux.c: New file.
5671 * gdb/features/arc/v1-aux.xml: Likewise.
5672 * gdb/features/arc/v1-core.c: Likewise.
5673 * gdb/features/arc/v1-core.xml: Likewise.
5674 * gdb/features/arc/v2-aux.c: Likewise.
5675 * gdb/features/arc/v2-aux.xml: Likewise.
5676 * gdb/features/arc/v2-core.c: Likewise.
5677 * gdb/features/arc/v2-core.xml: Likewise.
5678 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
5679
3945d2d7
GM
56802020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
5681 Andrew Burgess <andrew.burgess@embecosm.com>
5682
5683 PR m2/26372
fc5d6901 5684 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
5685 an assert. Remove single element array indexing pattern as the
5686 MULTI_SUBSCRIPT support will handle this case too.
5687
2677f2d3
SM
56882020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
5689
5690 * value.h (valprint_check_validity): Move declaration from
5691 here...
5692 * valprint.h (valprint_check_validity): ... to here.
5693
c426fddb
SM
56942020-08-24 Simon Marchi <simon.marchi@efficios.com>
5695
5696 * debug.h: New file.
5697 * debug.c (debug_prefixed_vprintf): New function.
5698 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
5699 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
5700
1eb8556f
SM
57012020-08-24 Simon Marchi <simon.marchi@efficios.com>
5702
5703 * infrun.h (infrun_debug_printf_1): New function declaration.
5704 (infrun_debug_printf): New macro.
5705 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
5706 throughout.
5707 (infrun_debug_printf): New function.
5708 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
5709 (handle_jit_event): Likewise.
5710
b8fff44e
MW
57112020-08-21 Mark Wielaard <mark@klomp.org>
5712
5713 * ada-lex.l: Extend register warnings diagnostics comment for g++.
5714
d19c3068
SM
57152020-08-22 Simon Marchi <simon.marchi@efficios.com>
5716
5717 * frame.c (enum class frame_id_status): New.
5718 (struct frame_info) <this_id::p>: Change type to frame_id_status.
5719 (fprintf_frame): Update.
5720 (compute_frame_id): Set frame id status to "computing" on entry.
5721 Set it back to "not_computed" on failure and to "computed" on
5722 success.
5723 (get_frame_id): Assert the frame id is not being computed.
5724 (create_sentinel_frame): Use frame_id_status::COMPUTED.
5725 (create_new_frame): Likewise.
5726 (frame_cleanup_after_sniffer): Update assert.
5727
b70e516e
SM
57282020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5729
5730 * regcache.c (pid_ptid_regcache_map): New type.
5731 (target_ptid_regcache_map): Remove.
5732 (target_pid_ptid_regcache_map): New type.
5733 (regcaches): Change type to target_pid_ptid_regcache_map.
5734 (get_thread_arch_aspace_regcache): Update.
5735 (regcache_thread_ptid_changed): Update, handle pid-like ptid
5736 case.
5737 (regcaches_size): Update.
5738 (regcache_count): Update.
5739 (registers_changed_ptid_target_pid_test): New.
5740 (_initialize_regcache): Register new test.
5741
cdd9148a
SM
57422020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5743
5744 * regcache.c (regcache_count): New.
5745 (struct regcache_test_data): New.
5746 (regcache_test_data_up): New.
5747 (populate_regcaches_for_test): New.
5748 (regcaches_test): Remove.
5749 (get_thread_arch_aspace_regcache_test): New.
5750 (registers_changed_ptid_all_test): New.
5751 (registers_changed_ptid_target_test): New.
5752 (registers_changed_ptid_target_ptid_test): New.
5753 (regcache_thread_ptid_changed): Remove regcache_count lambda.
5754 (_initialize_regcache): Register new tests.
5755
dd125343
SM
57562020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5757
5758 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
5759 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
5760 gdbarch and aspace parameter. Use current inferior's aspace.
5761 Validate regcache's arch value.
5762 (regcaches_test): Update.
5763
3ee93972
SM
57642020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5765
5766 * regcache.c (regcaches_test): Call registers_changed.
5767
33bf4c5c
TBA
57682020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5769
5770 * infrun.c (process_event_stop_test): Fix typo "breapoint".
5771
c2fd7fae
AKS
57722020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5773
5774 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
5775 to find the end of prologue for flang compiled binaries.
5776 * arm-tdep.c (arm_skip_prologue): Likewise.
5777 * i386-tdep.c (i386_skip_prologue): Likewise.
5778 * producer.c (producer_is_llvm): New function.
5779 (producer_parsing_tests): Added new tests for clang/flang.
5780 * producer.h (producer_is_llvm): New declaration.
5781
9327494e
SM
57822020-08-18 Simon Marchi <simon.marchi@efficios.com>
5783
5784 * linux-nat.c (linux_nat_debug_printf): New function.
5785 (linux_nat_debug_printf_1): New macro. Use throughout the file.
5786
d138725a
AM
57872020-08-18 Aaron Merey <amerey@redhat.com>
5788
5789 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
5790 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
5791 (CLIBS): Add DEBUGINFOD_LIBS.
5792
f9b11e6b
ST
57932020-08-17 Sergei Trofimovich <siarheit@google.com>
5794
5795 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
5796 'gdbarch_num_regs'.
5797
3ae7ab99
TT
57982020-08-17 Tom Tromey <tromey@adacore.com>
5799
5800 * ada-varobj.c (ada_varobj_decode_var): Handle case where
5801 ada_get_decoded_value returns NULL.
5802
b017825f
TT
58032020-08-17 Tom Tromey <tromey@adacore.com>
5804
5805 * python/py-inferior.c (infpy_search_memory): Use
5806 gdb_py_object_from_ulongest.
5807 * python/py-infevents.c (create_inferior_call_event_object)
5808 (create_memory_changed_event_object): Use
5809 gdb_py_object_from_ulongest.
5810 * python/py-linetable.c (ltpy_entry_get_pc): Use
5811 gdb_py_object_from_ulongest.
5812
7635cf79
SM
58132020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
5814
5815 * loc.c (class symbol_needs_eval_context): Fix indentation.
5816
f54be24b
SM
58172020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
5818
5819 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
5820 bool.
5821
53d5a2a5
TV
58222020-08-17 Tom de Vries <tdevries@suse.de>
5823
5824 PR gdb/26393
5825 * gdbtypes.c (dump_dynamic_prop): New function.
5826 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
5827
547ce8f0
TV
58282020-08-15 Tom de Vries <tdevries@suse.de>
5829
5830 PR backtrace/26390
5831 * stack.c (print_frame_args): Temporarily set the selected
5832 frame to FRAME while printing the frame's arguments.
5833
6ea815e7
PFC
58342020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5835
5836 PR breakpoints/26385
5837 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
5838 Always clear watchpoint with PTRACE_SET_DEBUGREG.
5839
6e562fa3
PFC
58402020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5841
5842 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
5843 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
5844 and >= to check return value instead of == -1 and != -1.
5845
d369b608
SM
58462020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
5847
5848 * utils.h (class gdb_argv) <as_array_view>: New method.
5849 * utils.c (gdb_argv_as_array_view_test): New.
5850 (_initialize_utils): Register selftest.
5851 * maint.c (maintenance_selftest): Use the new method.
5852
b31488a3
KR
58532020-08-13 Kamil Rytarowski <n54@gmx.com>
5854
5855 * target.h (supports_dumpcore, dumpcore): New
5856 function declarations.
5857 * target.c (supports_dumpcore, dumpcore): New
5858 functions.
5859 * target-delegates.c: Rebuild.
5860 * gcore.c (gcore_command): Use target_supports_dumpcore ()
5861 and target_dumpcore ().
5862
002a3166
AM
58632020-08-13 Aaron Merey <amerey@redhat.com>
5864
5865 * debuginfod-support.c: Replace global variables with user_data.
5866
ece5bc8a
SM
58672020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
5868
5869 * maint.c (maintenance_selftest): Split args and pass array_view
5870 to run_tests.
5871
6d8a0a5e
LM
58722020-08-12 Luis Machado <luis.machado@linaro.org>
5873
5874 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
5875 type's length.
5876 Use %s and pulongest to print the length.
5877
7cf663a9
PA
58782020-08-12 Pedro Alves <palves@redhat.com>
5879
5880 * NEWS: Move "Multi-target debugging support" item to the
5881 "Changes since GDB 9" section.
5882
27c7b875
PA
58832020-08-12 Pedro Alves <palves@redhat.com>
5884
5885 PR gdb/26336
5886 * progspace.c (program_space::remove_objfile): Invalidate the
5887 frame cache.
5888
1796a2a1
TV
58892020-08-11 Tom de Vries <tdevries@suse.de>
5890
5891 * MAINTAINERS: Mark ms1 as deleted.
5892
f8e3fe0d
LM
58932020-08-10 Luis Machado <luis.machado@linaro.org>
5894
5895 PR gdb/26310
5896
5897 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
5898 act accordingly.
5899 (aarch64_analyze_prologue_test): Add more unit tests to exercise
5900 movz/str/stur/stp skipping behavior.
5901
cc308722
LM
59022020-08-10 Luis Machado <luis.machado@linaro.org>
5903
5904 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
5905 struct user_sve_header instead of struct sve_context.
5906
041d9819
SM
59072020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
5908
5909 * read.h (dwarf2_fetch_die_loc_sect_off,
5910 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
5911 `void *` parameter with function_view.
5912 * read.c (dwarf2_fetch_die_loc_sect_off,
5913 dwarf2_fetch_die_loc_cu_off): Likewise.
5914 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
5915 (per_cu_dwarf_call): Adjust.
5916 (get_frame_address_in_block_wrapper): Remove.
5917 (indirect_synthetic_pointer): Adjust.
5918 (get_ax_pc): Remove.
5919 (dwarf2_compile_expr_to_ax): Adjust.
5920
38f8aa06
TV
59212020-08-08 Tom de Vries <tdevries@suse.de>
5922
5923 PR build/26344
5924 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
5925 constructor.
5926 * regcache.c (get_thread_arch_aspace_regcache): Same.
5927
a52b3ae2
TT
59282020-08-07 Tom Tromey <tromey@adacore.com>
5929
5930 * ravenscar-thread.c
5931 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
5932 New method.
5933 (ravenscar_thread_target::wait): Check
5934 runtime_initialized.
5935 (ravenscar_thread_target::prepare_to_store)
5936 (ravenscar_thread_target::stopped_by_sw_breakpoint)
5937 (ravenscar_thread_target::stopped_by_hw_breakpoint)
5938 (ravenscar_thread_target::stopped_by_watchpoint)
5939 (ravenscar_thread_target::stopped_data_address)
5940 (ravenscar_thread_target::core_of_thread): Use
5941 scoped_restore_current_thread and
5942 set_base_thread_from_ravenscar_task.
5943
0e29517d
TT
59442020-08-07 Tom Tromey <tromey@adacore.com>
5945
5946 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
5947
592f9bd7
TT
59482020-08-07 Tom Tromey <tromey@adacore.com>
5949
5950 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
5951 update_inferior_ptid before update_thread_list.
5952 (temporarily_change_regcache_ptid): New class.
5953 (ravenscar_thread_target::fetch_registers)
5954 (ravenscar_thread_target::store_registers)
5955 (ravenscar_thread_target::prepare_to_store): Use base thread when
5956 forwarding operation.
5957
39e2018a
TT
59582020-08-07 Tom Tromey <tromey@adacore.com>
5959
5960 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
5961 "is_pid" case.
5962
2080266b
TT
59632020-08-07 Tom Tromey <tromey@adacore.com>
5964
5965 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
5966 New methods.
5967 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
5968 first.
5969 (ravenscar_thread_target::add_thread): Rename from
5970 ravenscar_add_thread.
5971 (ravenscar_thread_target::update_thread_list): Use a lambda.
5972 (ravenscar_thread_target::xfer_partial): New method.
5973
78c02f21
TT
59742020-08-07 Tom Tromey <tromey@adacore.com>
5975
5976 * ada-lang.h (ada_task_list_iterator_ftype): Now a
5977 gdb::function_view.
5978 (iterate_over_live_ada_tasks): Change type of argument.
5979 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
5980 of argument.
5981
d5d833af
TT
59822020-08-07 Tom Tromey <tromey@adacore.com>
5983
5984 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
5985 Remove.
5986 (ravenscar_thread_target::extra_thread_info): Remove.
5987 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
5988 defer to target beneath for non-Ravenscar threads.
5989
a8ac85bb
TT
59902020-08-07 Tom Tromey <tromey@adacore.com>
5991
5992 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
5993 get_base_thread_from_ravenscar_task>: Now methods.
5994 <m_cpu_map>: New member.
5995 (ravenscar_thread_target::get_thread_base_cpu): Rename from
5996 ravenscar_get_thread_base_cpu. Check m_cpu_map.
5997 (ravenscar_thread_target::task_is_currently_active): Update.
5998 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
5999 Now a method.
6000 (ravenscar_thread_target::add_active_thread): Put initial thread
6001 into the m_cpu_map.
6002
550ab58d
TT
60032020-08-07 Tom Tromey <tromey@adacore.com>
6004
6005 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
6006 event_ptid.
6007
e9546579
TT
60082020-08-07 Tom Tromey <tromey@adacore.com>
6009
6010 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
6011 runtime_initialized.
6012
3d4470e5
TT
60132020-08-07 Tom Tromey <tromey@adacore.com>
6014
6015 * ravenscar-thread.c (ravenscar_thread_target): Don't call
6016 add_active_thread.
6017 (ravenscar_thread_target::add_active_thread): Now public.
6018 (ravenscar_inferior_created): Call add_active_thread after pushing
6019 the target.
6020
888bdb2b
SM
60212020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
6022
6023 * regcache.c (ptid_regcache_map): New type.
6024 (target_ptid_regcache_map): New type.
6025 (regcaches): Change type to target_ptid_regcache_map.
6026 (get_thread_arch_aspace_regcache): Update to regcaches' new
6027 type.
6028 (regcache_thread_ptid_changed): Likewise.
6029 (registers_changed_ptid): Likewise.
6030 (regcaches_size): Likewise.
6031 (regcaches_test): Update.
6032 (regcache_thread_ptid_changed): Update.
6033 * regcache.h (regcache_up): New type.
6034 * gdbsupport/ptid.h (hash_ptid): New struct.
6035
b161a60d
SM
60362020-08-07 Simon Marchi <simon.marchi@efficios.com>
6037
6038 * observable.h (thread_ptid_changed): Add parameter
6039 `process_stratum_target *`.
6040 * infrun.c (infrun_thread_ptid_changed): Add parameter
6041 `process_stratum_target *` and use it.
6042 (selftests): New namespace.
6043 (infrun_thread_ptid_changed): New function.
6044 (_initialize_infrun): Register selftest.
6045 * regcache.c (regcache_thread_ptid_changed): Add parameter
6046 `process_stratum_target *` and use it.
6047 (regcache_thread_ptid_changed): New function.
6048 (_initialize_regcache): Register selftest.
6049 * thread.c (thread_change_ptid): Pass target to
6050 thread_ptid_changed observable.
6051
d2854d8d
CT
60522020-08-06 Caroline Tice <cmtice@google.com>
6053
fe4c3d43
SM
6054 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
6055 (struct dwp_sections): Update field comments. Add loclists and
6056 rnglists fields.
6057 (struct virtual_v2_dwo_sections): Rename struct to
6058 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
6059 size & offset fields for loclists and rnglists.
6060 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
6061 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
6062 skipping dummy type units.
6063 (create_dwp_hash_table): Update the large comment above the function to
6064 discuss Version 5 DWP files as well, with references. Update all the
6065 version checks in the function to check for version 5 as well. Add new
6066 section at the end to create dwp hash table for version 5.
6067 (create_dwp_v2_section): Rename function to
6068 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
6069 Add V5 to error message text.
6070 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
6071 into calls to create_dwp_v2_or_v5_section.
6072 (create_dwo_unit_in_dwp_v5): New function.
6073 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
6074 check for version2; add else clause to handle version 5.
6075 (open_and_init_dwo_file): Add code to check dwarf version & only call
6076 create_debug_types_hash_table (with sections.types) if version is not 5;
6077 else call create_debug_type_hash_table, with sections.info.
6078 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
6079 version 5.
6080 (dwarf2_locate_v5_dwp_sections): New function.
6081 (open_and_init_dwp_file): Add else-if clause for version 5 to call
6082 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 6083
159ed7d9
SM
60842020-08-06 Simon Marchi <simon.marchi@efficios.com>
6085
6086 * regcache.h (class regcache): Remove friend
6087 registers_changed_ptid.
6088 <regcache_thread_ptid_changed>: Remove.
6089 <regcaches>: Remove.
6090 * regcache.c (regcache::regcaches): Rename to...
6091 (regcaches): ... this. Make static.
6092 (get_thread_arch_aspace_regcache): Update.
6093 (regcache::regcache_thread_ptid_changed): Rename to...
6094 (regcache_thread_ptid_changed): ... this. Update.
6095 (class regcache_access): Remove.
6096 (regcaches_test): Update.
6097 (_initialize_regcache): Update.
6098 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
6099 <forward_list>.
6100
174981ae
SM
61012020-08-06 Simon Marchi <simon.marchi@efficios.com>
6102
6103 * regcache.h (class regcache) <current_regcache>: Rename to...
6104 <regcaches>: ... this. Move doc here.
6105 * regcache.c (regcache::current_regcache) Rename to...
6106 (regcache::regcaches): ... this. Move doc to header.
6107 (get_thread_arch_aspace_regcache): Update.
6108 (regcache::regcache_thread_ptid_changed): Update.
6109 (registers_changed_ptid): Update.
6110 (class regcache_access) <current_regcache_size>: Rename to...
6111 <regcaches_size>: ... this.
6112 (current_regcache_test): Rename to...
6113 (regcaches_test): ... this.
6114 (_initialize_regcache): Update.
6115
ed908db6
VC
61162020-08-06 Victor Collod <vcollod@nvidia.com>
6117
6118 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
6119
b5582ab7
KB
61202020-08-05 Kevin Buettner <kevinb@redhat.com>
6121
6122 * corelow.c (core_target::build_file_mappings): Don't output
6123 null pathname in warning.
6124
ea946b86
SM
61252020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
6126
6127 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
6128 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
6129 gdb.dwarf2/dw2-single-line-discriminators.exp,
6130 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
6131
57d02173
TT
61322020-08-05 Tom Tromey <tromey@adacore.com>
6133
6134 PR rust/26197:
6135 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
6136 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
6137 Fix off-by-one and type size errors in ordinary case.
6138
5555c86d
TV
61392020-08-05 Tom de Vries <tdevries@suse.de>
6140
6141 * gdbtypes.c (type_not_allocated, type_not_associated): Use
6142 "prop->const_val () == 0" instead of "prop->const_val () != 0".
6143
97916bfe
SM
61442020-08-04 Simon Marchi <simon.marchi@efficios.com>
6145
6146 * frame.h (frame_id_p): Return bool.
6147 (frame_id_artificial_p): Return bool.
6148 (frame_id_eq): Return bool.
6149 (has_stack_frames): Return bool.
6150 (get_selected_frame): Fix typo in comment.
6151 (get_frame_pc_if_available): Return bool.
6152 (get_frame_address_in_block_if_available): Return bool.
6153 (get_frame_func_if_available): Return bool.
6154 (read_frame_register_unsigned): Return bool.
6155 (get_frame_register_bytes): Return bool.
6156 (safe_frame_unwind_memory): Return bool.
6157 (deprecated_frame_register_read): Return bool.
6158 (frame_unwinder_is): Return bool.
6159 * frame.c (struct frame_info) <prev_arch::p>: Change type to
6160 bool.
6161 <this_id::p>: Likewise.
6162 <prev_p>: Likewise.
6163 (frame_stash_add): Return bool.
6164 (get_frame_id): Use bool.
6165 (frame_id_build_special) Use bool.
6166 (frame_id_build_unavailable_stack): Use bool.
6167 (frame_id_build): Use bool.
6168 (frame_id_p): Return bool, use true/false instead of 1/0.
6169 (frame_id_artificial_p): Likewise.
6170 (frame_id_eq): Likewise.
6171 (frame_id_inner): Likewise.
6172 (get_frame_func_if_available): Likewise.
6173 (read_frame_register_unsigned): Likewise.
6174 (deprecated_frame_register_read): Likewise.
6175 (get_frame_register_bytes): Likewise.
6176 (has_stack_frames): Likewise.
6177 (inside_main_func): Likewise.
6178 (inside_entry_func): Likewise.
6179 (get_frame_pc_if_available): Likewise.
6180 (get_frame_address_in_block_if_available): Likewise.
6181 (frame_unwinder_is): Likewise.
6182 (safe_frame_unwind_memory): Likewise.
6183 (frame_unwind_arch): Likewise.
6184
fedfee88
SM
61852020-08-04 Simon Marchi <simon.marchi@efficios.com>
6186
6187 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
6188 type to cached_copy_status.
6189 (fprintf_frame): Adjust.
6190 (get_frame_func_if_available): Adjust.
6191 (frame_cleanup_after_sniffer): Adjust.
6192
6cfa9b59
MW
61932020-08-04 Mark Wielaard <mark@klomp.org>
6194
6195 * MAINTAINERS (Write After Approval): Update email address.
6196
66d6346b
SM
61972020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6198
6199 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
6200 dynamic_prop::const_val.
6201
8a6d5e35
SM
62022020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6203
6204 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
6205 dynamic_prop::kind.
6206
51d6067d
SM
62072020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6208
6209 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
6210
b26e2ae7
JM
62112020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
6212
6213 * configure.tgt: Set gdb_sim for bpf-*-* targets.
6214
39791af2
JM
62152020-08-04 Weimin Pan <weimin.pan@oracle.com>
6216 Jose E. Marchesi <jose.marchesi@oracle.com>
6217
6218 * configure.tgt: Add entry for bpf-*-*.
6219 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
6220 (ALLDEPFILES): Add bpf-tdep.c.
6221 * bpf-tdep.c: New file.
6222 * MAINTAINERS: Add bpf target and maintainer.
6223 * NEWS: Mention the support for the new target.
6224
521894aa
TV
62252020-08-04 Tom de Vries <tdevries@suse.de>
6226
6227 PR symtab/23270
6228 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
6229 Error.
6230
5d6356e9
JB
62312020-08-03 John Baldwin <jhb@FreeBSD.org>
6232
6233 * syscalls/freebsd.xml: Regenerate.
6234
0cf82b81
JB
62352020-08-03 John Baldwin <jhb@FreeBSD.org>
6236
6237 * syscalls/update-freebsd.sh: Fix usage and year range.
6238
8f34b746
TV
62392020-08-03 Tom de Vries <tdevries@suse.de>
6240
6241 PR symtab/26333
6242 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
6243 DW_LNE_lo_user/DW_LNE_hi_user range.
6244
5e500d33
SM
62452020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
6246
6247 PR ada/26318
6248 * ada-lang.c (ada_modulus): Return 0 if property is not of const
6249 kind.
6250
78319c15
TBA
62512020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6252
6253 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
6254
4c55e970
TBA
62552020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6256
6257 * breakpoint.c (set_breakpoint_condition): Update the condition
6258 expressions after checking that the input condition string parses
6259 successfully and does not contain junk at the end.
6260
1e620590
TBA
62612020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6262
6263 * breakpoint.c (set_breakpoint_condition): Update the
6264 condition string after parsing the new condition successfully.
6265
c8693053
RO
62662020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6267
6268 * proc-api.c (_STRUCTURED_PROC): Don't define.
6269 * proc-events.c: Likewise.
6270 * proc-flags.c: Likewise.
6271 * proc-why.c: Likewise.
6272 * procfs.c: Likewise.
6273
6274 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
6275 * configure, config.in: Regenerate.
6276
5a99adb8
TV
62772020-07-30 Tom de Vries <tdevries@suse.de>
6278
6279 PR build/26320
6280 * ui-style.h (struct ui_file_style::color): Wrap m_value and
6281 m_red/m_green/m_blue in a union.
6282
8ba83e91
TV
62832020-07-29 Tom de Vries <tdevries@suse.de>
6284
6285 PR tdep/26280
6286 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
6287
f75a0693
AB
62882020-07-28 Tom Tromey <tromey@adacore.com>
6289
6290 PR symtab/26270:
6291 * symtab.h (find_pc_partial_function_sym): Declare.
6292 * cli/cli-cmds.c (disassemble_command): Use
6293 find_pc_partial_function_sym. Check asm_demangle.
6294 * blockframe.c (cache_pc_function_sym): New global.
6295 (cache_pc_function_name): Remove.
6296 (clear_pc_function_cache): Update.
6297 (find_pc_partial_function_sym): New function, from
6298 find_pc_partial_function.
6299 (find_pc_partial_function): Rewrite using
6300 find_pc_partial_function_sym.
6301
16f3242c
TT
63022020-07-28 Tom Tromey <tromey@adacore.com>
6303
6304 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
6305 help. Add usage.
6306
4888741a
TT
63072020-07-28 Tom Tromey <tromey@adacore.com>
6308
6309 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
6310 <DW_OP_GNU_variable_value>: Cast to address type.
6311
4d46f402
KR
63122020-07-28 Kamil Rytarowski <n54@gmx.com>
6313
6314 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
6315 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
6316 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
6317 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
6318 (nbsd_get_siginfo_type): New.
6319 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
6320 (_initialize_nbsd_tdep): New.
6321
d70f978b
L
63222020-07-28 H.J. Lu <hongjiu.lu@intel.com>
6323
6324 PR binutils/26301
6325 * configure: Regenerated.
6326
377170fa
L
63272020-07-28 H.J. Lu <hongjiu.lu@intel.com>
6328
6329 PR binutils/26301
6330 * configure: Regenerated.
6331
43d5901d
AB
63322020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
6333
6334 * python/py-frame.c: Remove 'user-regs.h' include.
6335 (frapy_read_register): Rewrite to make use of
6336 gdbpy_parse_register_id.
6337 * python/py-registers.c (gdbpy_parse_register_id): New function,
6338 moved here from python/py-unwind.c. Updated the return type, and
6339 also accepts register descriptor objects.
6340 * python/py-unwind.c: Remove 'user-regs.h' include.
6341 (pyuw_parse_register_id): Moved to python/py-registers.c.
6342 (unwind_infopy_add_saved_register): Update to use
6343 gdbpy_parse_register_id.
6344 (pending_framepy_read_register): Likewise.
6345 * python/python-internal.h (gdbpy_parse_register_id): Declare.
6346
14fa8fb3
AB
63472020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
6348
6349 * python/py-registers.c: Add 'user-regs.h' include.
6350 (register_descriptor_iter_find): New function.
6351 (register_descriptor_iterator_object_methods): New static global
6352 methods array.
6353 (register_descriptor_iterator_object_type): Add pointer to methods
6354 array.
6355
ddce1758
JB
63562020-07-27 John Baldwin <jhb@FreeBSD.org>
6357
6358 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
6359 for all architectures on FreeBSD 11.3 and later.
6360
a4089f52
TT
63612020-07-27 Tom Tromey <tromey@adacore.com>
6362
6363 * gcore.h (load_corefile): Don't declare.
6364
95420d30
TV
63652020-07-27 Tom de Vries <tdevries@suse.de>
6366
6367 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
6368 * config.in: Regenerate.
6369 * configure: Regenerate.
6370
05a6b8c2
EZ
63712020-07-26 Eli Zaretskii <eliz@gnu.org>
6372
6373 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
6374 ws2tcpip.h. When checking whether socklen_t type is defined, use
6375 ws2tcpip.h if it is available and sys/socket.h isn't.
6376 * configure: Regenerate.
6377 * config.in: Regenerate.
6378
e79eb02f
AB
63792020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
6380
6381 PR fortran/23051
6382 PR fortran/26139
6383 * valops.c (value_ind): Pass address to
6384 readjust_indirect_value_type.
6385 * value.c (readjust_indirect_value_type): Make parameter
6386 non-const, and add extra address parameter. Resolve original type
6387 before using it.
6388 * value.h (readjust_indirect_value_type): Update function
6389 signature and comment.
6390
876518dd
TV
63912020-07-25 Tom de Vries <tdevries@suse.de>
6392
6393 PR symtab/26243
6394 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
6395 entries.
6396
f6720b1c
AM
63972020-07-24 Aaron Merey <amerey@redhat.com>
6398
6399 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
6400 * configure: Rebuild.
6401
513487e1
KB
64022020-07-23 Kevin Buettner <kevinb@redhat.com>
6403
6404 PR corefiles/26294
6405 * corelow.c (_initialize_corelow): Add period to help text
6406 for "maintenance print core-file-backed-mappings".
6407
e7bc9db8
PA
64082020-07-23 Pedro Alves <pedro@palves.net>
6409
6410 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
6411 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
6412 meanwhile.
6413 * frame.c (frame_cache_generation, get_frame_cache_generation):
6414 New.
6415 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
6416 (get_prev_frame_if_no_cycle): On exception, don't touch
6417 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
6418 * frame.h (get_frame_cache_generation): Declare.
6419
90fcc466
TV
64202020-07-23 Tom de Vries <tdevries@suse.de>
6421
6422 PR tui/26282
6423 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
6424 New default constructor.
6425
78344df7
AB
64262020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
6427
6428 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
6429 exclude non-statement entries.
6430
b089853a
KB
64312020-07-22 Kevin Buettner <kevinb@redhat.com>
6432
6433 * NEWS (New commands): Mention new command
6434 "maintenance print core-file-backed-mappings".
6435
09c2f5d4
KB
64362020-07-22 Kevin Buettner <kevinb@redhat.com>
6437
6438 * corelow.c (gdbcmd.h): Include.
6439 (core_target::info_proc_mappings): New method.
6440 (get_current_core_target): New function.
6441 (maintenance_print_core_file_backed_mappings): New function.
6442 (_initialize_corelow): Add core-file-backed-mappings to
6443 "maint print" commands.
6444
9c5ec5c2 64452020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 6446
9c5ec5c2
KB
6447 * linux-tdep.c (dump_note_entry_p): New function.
6448 (linux_dump_mapping_p_ftype): New typedef.
6449 (linux_find_memory_regions_full): Add new parameter,
6450 should_dump_mapping_p.
6451 (linux_find_memory_regions): Adjust call to
6452 linux_find_memory_regions_full.
6453 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
6454 call to linux_find_memory_regions_full.
6455
db082f59
KB
64562020-07-22 Kevin Buettner <kevinb@redhat.com>
6457
6458 * corelow.c (solist.h, unordered_map): Include.
6459 (class core_target): Add field m_core_file_mappings and
6460 method build_file_mappings.
6461 (core_target::core_target): Call build_file_mappings.
6462 (core_target::~core_target): Free memory associated with
6463 m_core_file_mappings.
6464 (core_target::build_file_mappings): New method.
6465 (core_target::xfer_partial): Use m_core_file_mappings
6466 for memory transfers.
6467 * linux-tdep.c (linux_read_core_file_mappings): New
6468 function.
6469 (linux_core_info_proc_mappings): Rewrite to use
6470 linux_read_core_file_mappings.
6471 (linux_init_abi): Register linux_read_core_file_mappings.
6472
7e183d27
KB
64732020-07-22 Kevin Buettner <kevinb@redhat.com>
6474
6475 * arch-utils.c (default_read_core_file_mappings): New function.
6476 * arch-utils.c (default_read_core_file_mappings): Declare.
6477 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
6478 * gdbarch.h, gdbarch.c: Regenerate.
6479
2735d421
KB
64802020-07-22 Kevin Buettner <kevinb@redhat.com>
6481
6482 PR corefiles/25631
6483 * corelow.c (core_target:xfer_partial): Revise
6484 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
6485 case after first checking the stratum beneath the core
6486 target.
6487 (has_all_memory): Return true.
6488 * target.c (raw_memory_xfer_partial): Revise comment
6489 regarding use of has_all_memory.
6490
e56cb451
KB
64912020-07-22 Kevin Buettner <kevinb@redhat.com>
6492
6493 * exec.h (section_table_xfer_memory): Revise declaration,
6494 replacing section name parameter with an optional callback
6495 predicate.
6496 * exec.c (section_table_xfer_memory): Likewise.
6497 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
6498 of section_table_xfer_memory.
6499
32fa152e
TT
65002020-07-22 Tom Tromey <tromey@adacore.com>
6501
6502 * mi/mi-cmd-stack.c (list_args_or_locals): Use
6503 lookup_symbol_search_name.
6504
a67a1c41
AB
65052020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6506
6507 * python/py-registers.c (gdbpy_register_object_data_init): Remove
6508 redundant local variable.
6509 (gdbpy_get_register_descriptor): Extract descriptor vector as a
6510 reference, not pointer, update code accordingly.
6511
a7b4ff4f
SM
65122020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6513 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6514
6515 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
6516 * jit.c (jit_breakpoint_re_set_internal): Use the
6517 `skip_jit_symbol_lookup` field.
6518
2340e834
SM
65192020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6520 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6521
6522 * jit.c (jit_read_descriptor): Define the descriptor address once,
6523 use twice.
6524 (jit_breakpoint_deleted): Move the declaration of the loop variable
6525 `iter` into the loop header.
6526 (jit_breakpoint_re_set_internal): Move the declaration of the local
6527 variable `objf_data` to the first point of definition.
6528 (jit_event_handler): Move the declaration of local variables
6529 `code_entry`, `entry_addr`, and `objf` to their first point of use.
6530 Rename `objf` to `jited`.
6531
c1072906
SM
65322020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6533
6534 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
6535 Remove.
6536 * jit.c (get_jiter_objfile_data): Update.
6537
c8474dc3
TBA
65382020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6539 Simon Marchi <simon.marchi@polymtl.ca>
6540
6541 * jit.c (struct jit_program_space_data): Remove.
6542 (jit_program_space_key): Remove.
6543 (jiter_objfile_data::~jiter_objfile_data): Remove program space
6544 stuff.
6545 (get_jit_program_space_data): Remove.
6546 (jit_breakpoint_deleted): Iterate on all of the program space's
6547 objfiles.
6548 (jit_inferior_init): Likewise.
6549 (jit_breakpoint_re_set_internal): Likewise. Also change return
6550 type to void.
6551 (jit_breakpoint_re_set): Pass current_program_space to
6552 jit_breakpoint_re_set_internal.
6553
77208eb7
SM
65542020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6555
6556 * jit.h (struct jiter_objfile_data) <cached_code_address,
6557 jit_breakpoint>: Move to here from ...
6558 * jit.c (jit_program_space_data): ... here.
6559 (jiter_objfile_data::~jiter_objfile_data): Update.
6560 (jit_breakpoint_deleted): Update.
6561 (jit_breakpoint_re_set_internal): Update.
6562
8c1c720f
SM
65632020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6564
6565 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
6566 checks.
6567 (jit_read_descriptor): Remove NULL check.
6568 (jit_event_handler): Add an assertion.
6569
0e74a041
SM
65702020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6571
6572 * jit.h (struct jit_objfile_data): Split into...
6573 (struct jiter_objfile_data): ... this ...
6574 (struct jited_objfile_data): ... and this.
6575 * objfiles.h (struct objfile) <jit_data>: Remove.
6576 <jiter_data, jited_data>: New fields.
6577 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
6578 (jiter_objfile_data::~jiter_objfile_data): ... this.
6579 (get_jit_objfile_data): Rename to ...
6580 (get_jiter_objfile_data): ... this.
6581 (add_objfile_entry): Update.
6582 (jit_read_descriptor): Use get_jiter_objfile_data.
6583 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
6584 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
6585 (jit_inferior_exit_hook): Use objfile's jited_data field.
6586
238b5c9f
SM
65872020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6588
6589 * jit.h: Forward-declare `struct minimal_symbol`.
6590 (struct jit_objfile_data): Migrate to here from jit.c; also add a
6591 constructor, destructor, and an objfile* field.
6592 * jit.c (jit_objfile_data): Remove.
6593 (struct jit_objfile_data): Migrate from here to jit.h.
6594 (jit_objfile_data::~jit_objfile_data): New destructor
6595 implementation with code moved from free_objfile_data.
6596 (free_objfile_data): Delete.
6597 (get_jit_objfile_data): Update to use the jit_data field of objfile.
6598 (jit_find_objf_with_entry_addr): Ditto.
6599 (jit_inferior_exit_hook): Ditto.
6600 (_initialize_jit): Remove the call to
6601 register_objfile_data_with_cleanup.
6602 * objfiles.h (struct objfile) <jit_data>: New field.
6603
fe053b9e
TBA
66042020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6605
6606 * jit.h: Forward-declare `struct objfile`.
6607 (jit_event_handler): Add a second parameter, the JITer objfile.
6608 * jit.c (jit_read_descriptor): Change the signature to take the
6609 JITer objfile as an argument instead of the jit_program_space_data.
6610 (jit_inferior_init): Update the call to jit_read_descriptor.
6611 (jit_event_handler): Use the new JITer objfile argument when calling
6612 jit_read_descriptor.
6613 * breakpoint.c (handle_jit_event): Update the call to
6614 jit_event_handler to pass the JITer objfile.
6615
4cec0c66
JB
66162020-07-21 John Baldwin <jhb@FreeBSD.org>
6617
6618 * gdbarch.c: Regenerate.
6619 * gdbarch.h: Regenerate.
6620 * gdbarch.sh (handle_segmentation_fault): Remove method.
6621 * infrun.c (handle_segmentation_fault): Remove.
6622 (print_signal_received_reason): Remove call to
6623 handle_segmentation_fault.
6624
0e42f66a
JB
66252020-07-21 John Baldwin <jhb@FreeBSD.org>
6626
6627 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
6628 Rename to sparc64_linux_report_signal_info and add siggnal
6629 argument.
6630 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
6631 instead of sparc64_linux_handle_segmentation_fault.
6632
77bdfeb2
JB
66332020-07-21 John Baldwin <jhb@FreeBSD.org>
6634
6635 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
6636 i386_linux_report_signal_info instead of
6637 i386_linux_handle_segmentation_fault.
6638 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
6639 to i386_linux_report_signal_info and add siggnal argument.
6640 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
6641 of i386_linux_handle_segmentation_fault.
6642 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
6643 to i386_linux_report_signal_info and add siggnal argument.
6644
ad97bfc5
JB
66452020-07-21 John Baldwin <jhb@FreeBSD.org>
6646
6647 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
6648 hook if present.
6649
272bb05c
JB
66502020-07-21 John Baldwin <jhb@FreeBSD.org>
6651
6652 * gdbarch.c: Regenerate.
6653 * gdbarch.h: Regenerate.
6654 * gdbarch.sh (report_signal_info): New method.
6655 * infrun.c (print_signal_received_reason): Invoke gdbarch
6656 report_signal_info hook if present.
6657
baf8791e
AB
66582020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
6659
6660 * python/py-registers.c : Add 'unordered_map' include.
6661 (gdbpy_new_reggroup): Renamed to...
6662 (gdbpy_get_reggroup): ...this. Update to only create register
6663 group descriptors when needed.
6664 (gdbpy_reggroup_iter_next): Update.
6665
f7306dac
AB
66662020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
6667
6668 * python/py-registers.c (gdbpy_register_object_data): New static
6669 global.
6670 (gdbpy_register_object_data_init): New function.
6671 (gdbpy_new_register_descriptor): Renamed to...
6672 (gdbpy_get_register_descriptor): ...this, and update to reuse
6673 existing register descriptors where possible.
6674 (gdbpy_register_descriptor_iter_next): Update.
6675 (gdbpy_initialize_registers): Register new gdbarch data.
6676
05c309a8
SM
66772020-07-21 Simon Marchi <simon.marchi@efficios.com>
6678
6679 * linux-nat.c (stopped_pids): Make static.
6680
d1fd641e
SM
66812020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
6682
6683 PR ada/26235
6684 * gdbtypes.c (ada_discrete_type_low_bound,
6685 ada_discrete_type_high_bound): Handle undefined bounds.
6686
1de14d77
KR
66872020-07-21 Kamil Rytarowski <n54@gmx.com>
6688
6689 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
6690 declaration.
6691 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
6692 function.
6693
ed810cc7
JB
66942020-07-20 John Baldwin <jhb@FreeBSD.org>
6695
6696 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
6697 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
6698 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
6699 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
6700 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
6701 method.
6702
ae5369e7
LC
67032020-07-20 Ludovic Courtès <ludo@gnu.org>
6704
6705 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
6706 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
6707 which are deprecated in Guile 3.0.
6708 * configure.ac (try_guile_versions): Add "guile-3.0".
6709 * configure (try_guile_versions): Regenerate.
6710 * NEWS: Update entry.
6711
68cf161c
LC
67122020-07-20 Ludovic Courtès <ludo@gnu.org>
6713 Doug Evans <dje@google.com>
6714
6715 PR gdb/21104
6716 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
6717 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
6718 USING_GUILE_BEFORE_2_2.
6719 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
6720 Change type to 'scm_t_port_type *'.
6721 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
6722 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
6723 parameter and honor it. Update callers.
6724 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
6725 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
6726 functions.
6727 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
6728 USING_GUILE_BEFORE_2_2.
6729 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
6730 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
6731 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
6732 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
6733 and 'SCM_PORT_TYPE'.
6734 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
6735 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
6736 (gdbscm_memory_port_read, gdbscm_memory_port_write)
6737 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
6738 [!USING_GUILE_BEFORE_2_2]: New functions.
6739 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
6740 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
6741 'gdbscm_memory_port_read'.
6742 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
6743 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
6744 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
6745 function.
6746 (ioscm_init_memory_port): Remove.
6747 (ioscm_init_memory_port_stream): New function
6748 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
6749 function.
6750 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
6751 Return scm_from_uint (0).
6752 (gdbscm_set_memory_port_read_buffer_size_x)
6753 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
6754 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
6755 Return scm_from_uint (0).
6756 (gdbscm_set_memory_port_write_buffer_size_x)
6757 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
6758 * configure.ac (try_guile_versions): Add "guile-2.2".
6759 * configure: Regenerate.
6760 * NEWS: Add entry.
6761
aee91db3
TT
67622020-07-18 Tom Tromey <tom@tromey.com>
6763
6764 * linux-nat.c (linux_multi_process): Remove.
6765 (linux_nat_target::supports_multi_process): Return true.
6766
0e267416
AB
67672020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
6768
6769 * arch/riscv.c (riscv_tdesc_cache): Change map type.
6770 (riscv_lookup_target_description): Return pointer out of
6771 unique_ptr.
6772 * target-descriptions.c (allocate_target_description): Add
6773 comment.
6774 (target_desc_deleter::operator()): Likewise.
6775 * target-descriptions.h (struct target_desc_deleter): Moved to
6776 gdbsupport/tdesc.h.
6777 (target_desc_up): Likewise.
6778
f80c8ec4
TT
67792020-07-17 Tom Tromey <tromey@adacore.com>
6780
6781 * linux-nat.c (linux_nat_target::supports_non_stop)
6782 (linux_nat_target::always_non_stop_p): Use "true".
6783 (linux_nat_target::supports_disable_randomization): Use "true" and
6784 "false".
6785
d0ce17d8
CT
67862020-07-16 Caroline Tice <cmtice@google.com>
6787
6788 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
6789 (RNGLIST_HEADER_SIZE64): New constant definition.
6790 (struct dwop_section_names): Add rnglists_dwo.
6791 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
6792 (struct loclist_header): Rename to 'loclists_rnglists_header'.
6793 (struct dwo_sections): Add rnglists field.
6794 (read_attribut_reprocess): Add tag parameter.
6795 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
6796 (cu_debug_rnglists_section): New function (decl & definition).
6797 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
6798 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
6799 die whose range is being checked; get rnglist section from
6800 cu_debug_rnglists_section, to get from either objfile or dwo file as
6801 appropriate. Add cases for DW_RLE_base_addressx,
6802 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
6803 the base address to DW_RLE_offset_pairs (not to all ranges), moving
6804 test inside if-condition and updating complaint message.
6805 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
6806 dwarf2_rnglists_process.
6807 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
6808 dwarf2_ranges_process.
6809 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
6810 need_ranges_base and update comment appropriately. Also pass die tag
6811 to dwarf2_ranges_read.
6812 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
6813 need_ranges_base and update comment appropriately. Also pass die tag
6814 to dwarf2_ranges_process.
6815 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
6816 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
6817 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
6818 need_ranges_base and update comment appropriately. Also pass die tag
6819 to read_attribute_reprocess and dwarf2_ranges_read.
6820 (read_loclist_header): Rename function to read_loclists_rnglists_header,
6821 and update function comment appropriately.
6822 (read_loclist_index): Call read_loclists_rnglists_header instead of
6823 read_loclist_header.
6824 (read_rnglist_index): New function.
6825 (read_attribute_reprocess): Add tag parameter. Add code for
6826 DW_FORM_rnglistx, passing tag to read_rnglist_index.
6827 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
6828
3dcc261c
AB
68292020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
6830
6831 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
6832 being resolved.
6833
ccb9eba6
AB
68342020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
6835
6836 * arch-utils.c (show_architecture): Update formatting of messages.
6837
cf88be68
SM
68382020-07-12 Simon Marchi <simon.marchi@efficios.com>
6839
6840 * gdbtypes.h (struct type) <bounds>: Handle array and string
6841 types.
6842 * ada-lang.c (assign_aggregate): Use type::bounds on
6843 array/string type.
6844 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
6845 * c-varobj.c (c_number_of_children): Likewise.
6846 (c_describe_child): Likewise.
6847 * eval.c (evaluate_subexp_for_sizeof): Likewise.
6848 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
6849 (f_type_print_base): Likewise.
6850 * f-valprint.c (f77_array_offset_tbl): Likewise.
6851 (f77_get_upperbound): Likewise.
6852 (f77_print_array_1): Likewise.
6853 * guile/scm-type.c (gdbscm_type_range): Likewise.
6854 * m2-typeprint.c (m2_array): Likewise.
6855 (m2_is_long_set_of_type): Likewise.
6856 * m2-valprint.c (get_long_set_bounds): Likewise.
6857 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
6858 * python/py-type.c (typy_range): Likewise.
6859 * rust-lang.c (rust_internal_print_type): Likewise.
6860 * type-stack.c (type_stack::follow_types): Likewise.
6861 * valarith.c (value_subscripted_rvalue): Likewise.
6862 * valops.c (value_cast): Likewise.
6863
509971ae
SM
68642020-07-12 Simon Marchi <simon.marchi@efficios.com>
6865
6866 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
6867 callers to use the equivalent accessor methods.
6868
107406b7
SM
68692020-07-12 Simon Marchi <simon.marchi@efficios.com>
6870
6871 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
6872 (struct type) <bit_stride>: New method.
6873 (TYPE_BIT_STRIDE): Remove.
6874 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
6875
bb789949
SM
68762020-07-12 Simon Marchi <simon.marchi@efficios.com>
6877
6878 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
6879 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
6880 callers to use the equivalent accessor methods instead.
6881
39498edb
SM
68822020-07-12 Simon Marchi <simon.marchi@efficios.com>
6883
6884 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
6885 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
6886 callers to use the equivalent accessor methods instead.
6887
3b606f38
SM
68882020-07-12 Simon Marchi <simon.marchi@efficios.com>
6889
6890 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
6891 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
6892 to use dynamic_prop::kind.
6893
064d9cb9
SM
68942020-07-12 Simon Marchi <simon.marchi@efficios.com>
6895
6896 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
6897 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
6898 to get the bound property's kind and check against
6899 PROP_UNDEFINED.
6900
5537ddd0
SM
69012020-07-12 Simon Marchi <simon.marchi@efficios.com>
6902
6903 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
6904 all callers to use type::range_bounds followed by
6905 dynamic_prop::{low,high}.
6906
8c2e4e06
SM
69072020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
6908
6909 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
6910 const_val, set_const_val, baton, set_locexpr, set_loclist,
6911 set_addr_offset, variant_parts, set_variant_parts,
6912 original_type, set_original_type>: New methods.
6913 <kind>: Rename to...
6914 <m_kind>: ... this. Update all users to use the new methods
6915 instead.
6916 <data>: Rename to...
6917 <m_data>: ... this. Update all users to use the new methods
6918 instead.
6919
7c6f2712
SM
69202020-07-12 Simon Marchi <simon.marchi@efficios.com>
6921
6922 * gdbtypes.c (get_discrete_bounds): Return failure if
6923 the range type's bounds are not both defined and constant
6924 values.
6925 (get_array_bounds): Update comment. Remove undefined bound check.
6926
599088e3
SM
69272020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
6928
6929 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
6930 the type::bounds method directly.
6931
c4dfcb36
SM
69322020-07-12 Simon Marchi <simon.marchi@efficios.com>
6933
6934 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
6935 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
6936 are used to set the range type's bounds to use set_bounds.
6937
0a278aa7
PW
69382020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6939
6940 * exec.c (_initialize_exec): Update exec-file-mismatch help.
6941
cce20f10
PA
69422020-07-10 Pedro Alves <pedro@palves.net>
6943
6944 * gdbthread.h (inferior_ref): Define.
6945 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
6946 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
6947 * thread.c
6948 (scoped_restore_current_thread::restore):
6949 Adjust to gdb::ref_ptr.
6950 (scoped_restore_current_thread::~scoped_restore_current_thread):
6951 Remove manual decref handling.
6952 (scoped_restore_current_thread::scoped_restore_current_thread):
6953 Adjust to use
6954 inferior_ref::new_reference/thread_info_ref::new_reference.
6955 Incref the thread before calling get_frame_id instead of after.
6956 Let TARGET_CLOSE_ERROR propagate.
6957
6d7aa592
PA
69582020-07-10 Pedro Alves <pedro@palves.net>
6959
6960 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
6961 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
6962 NOT_AVAILABLE_ERROR.
6963 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
6964 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
6965
b3e3a4c1
SM
69662020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6967 Pedro Alves <pedro@palves.net>
6968
6969 PR gdb/26199
6970 * infrun.c (threads_are_resumed_pending_p): Delete.
6971 (do_target_wait): Remove threads_are_executing and
6972 threads_are_resumed_pending_p checks from the inferior_matches
6973 lambda. Update comments.
6974
d6cc5d98
PA
69752020-07-10 Pedro Alves <pedro@palves.net>
6976
6977 PR gdb/26199
6978 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
6979 executing threads.
6980
7d3badc6
PA
69812020-07-10 Pedro Alves <pedro@palves.net>
6982
6983 PR gdb/26199
6984 * infrun.c (handle_no_resumed): Handle multiple targets.
6985
42bd97a6
PA
69862020-07-10 Pedro Alves <pedro@palves.net>
6987
6988 PR gdb/26199
6989 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
6990 target_is_async_p.
6991
43667cc6
PA
69922020-07-10 Pedro Alves <pedro@palves.net>
6993
6994 PR gdb/26199
6995 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
6996 threads, not all threads.
6997
96118d11
PA
69982020-07-10 Pedro Alves <pedro@palves.net>
6999
7000 PR gdb/26199
7001 * remote.c (remote_target::open_1): Pass remote target pointer as
7002 data to create_async_event_handler.
7003 (remote_async_inferior_event_handler): Mark async event handler
7004 before returning if the remote target still has either pending
7005 events or unacknowledged notifications.
7006
54904d81
JB
70072020-07-10 John Baldwin <jhb@FreeBSD.org>
7008
7009 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
7010 declaration.
7011 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
7012 function.
7013
f37e5866
JB
70142020-07-09 John Baldwin <jhb@FreeBSD.org>
7015
7016 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
7017 inferior_ptid.
7018
fc238d4a
JB
70192020-07-09 John Baldwin <jhb@FreeBSD.org>
7020
7021 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
7022 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
7023 AT_FREEBSD_PS_STRINGS.
7024
6e2469ff
HD
70252020-07-08 Hannes Domani <ssbssa@yahoo.de>
7026
7027 * auto-load.c (auto_load_objfile_script_1): Convert drive part
7028 of debugfile path on Windows.
7029
d1076c41
JB
70302020-07-08 John Baldwin <jhb@FreeBSD.org>
7031
7032 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
7033 argument to 'data'.
7034
15f3b077
TT
70352020-07-08 Tom Tromey <tromey@adacore.com>
7036
7037 * ada-lang.c (ada_exception_message_1): Use read_memory.
7038
9fc501fd
AB
70392020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7040
7041 PR python/22748
7042 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
7043 special handling for inline frames.
7044 * findvar.c (value_of_register_lazy): Skip inline frames when
7045 creating lazy register values.
7046 * frame.c (frame_id_computed_p): Delete definition.
7047 * frame.h (frame_id_computed_p): Delete declaration.
7048
64cb3757
AB
70492020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7050
7051 * NEWS: Mention additions to Python API.
7052 * python/py-arch.c (archpy_register_groups): New function.
7053 (arch_object_methods): Add 'register_groups' method.
7054 * python/py-registers.c (reggroup_iterator_object): New struct.
7055 (reggroup_object): New struct.
7056 (gdbpy_new_reggroup): New function.
7057 (gdbpy_reggroup_to_string): New function.
7058 (gdbpy_reggroup_name): New function.
7059 (gdbpy_reggroup_iter): New function.
7060 (gdbpy_reggroup_iter_next): New function.
7061 (gdbpy_new_reggroup_iterator): New function
7062 (gdbpy_initialize_registers): Register new types.
7063 (reggroup_iterator_object_type): Define new Python type.
7064 (gdbpy_reggroup_getset): New static global.
7065 (reggroup_object_type): Define new Python type.
7066 * python/python-internal.h
7067
0f767f94
AB
70682020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7069
7070 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
7071 * python/py-arch.c (archpy_registers): New function.
7072 (arch_object_methods): Add 'registers' method.
7073 * python/py-registers.c: New file.
7074 * python/python-internal.h
7075 (gdbpy_new_register_descriptor_iterator): Declare.
7076 (gdbpy_initialize_registers): Declare.
7077 * python/python.c (do_start_initialization): Call
7078 gdbpy_initialize_registers.
7079 * NEWS: Mention additions to the Python API.
7080
87dbc774
AB
70812020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7082
7083 * NEWS: Mention new Python API method.
7084 * python/py-unwind.c (pending_framepy_architecture): New function.
7085 (pending_frame_object_methods): Add architecture method.
7086
3bc98c0c
AB
70872020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7088
7089 * gdbarch.c: Regenerate.
7090 * gdbarch.h: Regenerate.
7091 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
7092 (gdbarch_data): Use internal_error for the case where
7093 deprecated_set_gdbarch_data was originally needed.
7094 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
7095 and use passed in obstack.
7096 (libunwind_frame_set_descr): Should no longer get back NULL from
7097 gdbarch_data.
7098 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
7099 type.
7100 * user-regs.c (user_regs_init): Update parameters, and use passed
7101 in obstack.
7102 (user_reg_add): Should no longer get back NULL from gdbarch_data.
7103 (_initialize_user_regs): Register as a pre-init gdbarch data type.
7104
d8cc8af6
TV
71052020-07-06 Tom de Vries <tdevries@suse.de>
7106
7107 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
7108 End-Of-Sequence in lte_is_less_than.
7109 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
7110 "gdb: Don't reorder line table entries too much when sorting".
7111
947f7597
TV
71122020-07-06 Tom de Vries <tdevries@suse.de>
7113
7114 PR tui/26205
7115 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
7116
1e7c1b22
TV
71172020-07-05 Tom de Vries <tdevries@suse.de>
7118
7119 PR build/26187
7120 * inferior.h (struct infcall_suspend_state_deleter): If available, use
7121 std::uncaught_exceptions instead of deprecated
7122 std::uncaught_exception.
7123
a36158ec
SM
71242020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7125
7126 * macroexp.h (macro_stringify): Return
7127 gdb::unique_xmalloc_ptr<char>.
7128 * macroexp.c (macro_stringify): Likewise.
7129 * macrotab.c (fixup_definition): Update.
7130
14d960c8
SM
71312020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7132
7133 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
7134 (lex_one_token): Update.
7135 * macroexp.c (struct macro_buffer) <release>: Return
7136 gdb::unique_xmalloc_ptr<char>.
7137 (macro_stringify): Update.
7138 (macro_expand): Update.
7139 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
7140 * macroexp.h (macro_expand_next): Likewise.
7141
211d5b1c
SM
71422020-07-02 Simon Marchi <simon.marchi@efficios.com>
7143
7144 * macroexp.h (macro_lookup_ftype): Remove.
7145 (macro_expand, macro_expand_once, macro_expand_next): Remove
7146 lookup function parameters, add scope parameter.
7147 * macroexp.c (scan, substitute_args, expand, maybe_expand,
7148 macro_expand, macro_expand_once, macro_expand_next): Likewise.
7149 * macroscope.h (standard_macro_lookup): Change parameter type
7150 to macro_scope.
7151 * macroscope.c (standard_macro_lookup): Likewise.
7152 * c-exp.y (lex_one_token): Update.
7153 * macrocmd.c (macro_expand_command): Likewise.
7154 (macro_expand_once_command): Likewise.
7155
b1a35af2
SM
71562020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7157
7158 * inf-loop.c (inferior_event_handler): Remove client_data param.
7159 * inf-loop.h (inferior_event_handler): Likewise.
7160 * infcmd.c (step_1): Adjust.
7161 * infrun.c (proceed): Adjust.
7162 (fetch_inferior_event): Remove client_data param.
7163 (infrun_async_inferior_event_handler): Adjust.
7164 * infrun.h (fetch_inferior_event): Remove `void *` param.
7165 * linux-nat.c (handle_target_event): Adjust.
7166 * record-btrace.c (record_btrace_handle_async_inferior_event):
7167 Adjust.
7168 * record-full.c (record_full_async_inferior_event_handler):
7169 Adjust.
7170 * remote.c (remote_async_inferior_event_handler): Adjust.
7171
1cdf9e33
TT
71722020-07-01 Tom Tromey <tom@tromey.com>
7173
7174 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
7175 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
7176
32c1e210
TT
71772020-07-01 Tom Tromey <tom@tromey.com>
7178
7179 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
7180 tui_gen_win_info.
7181 (tui_win_info::make_window): Merge with
7182 tui_gen_win_info::make_window.
7183 (tui_win_info::make_visible): Move from tui_gen_win_info.
7184 * tui/tui-win.c (tui_win_info::max_width): Move from
7185 tui_gen_win_info.
7186 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
7187 type.
7188 <window_factory>: Likewise.
7189 * tui/tui-layout.c (tui_win_info::resize): Move from
7190 tui_gen_win_info.
7191 (make_standard_window): Change return type.
7192 (get_locator_window, tui_get_window_by_name): Likewise.
7193 (tui_layout_window::apply): Remove a cast.
7194 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
7195 (struct tui_win_info): Merge with tui_gen_win_info.
7196 (struct tui_gen_win_info): Remove.
7197
a30cb6da
TT
71982020-07-01 Tom Tromey <tom@tromey.com>
7199
7200 * tui/tui-stack.h (struct tui_locator_window): Derive from
7201 tui_win_info.
7202 <do_scroll_horizontal, do_scroll_vertical>: New methods.
7203 <can_box>: New method.
7204
1eb2161f
TT
72052020-07-01 Tom Tromey <tom@tromey.com>
7206
7207 * tui/tui-stack.h (struct tui_locator_window): Remove body.
7208
7134f2eb
TT
72092020-07-01 Tom Tromey <tom@tromey.com>
7210
7211 * tui/tui-regs.c (tui_data_window::display_registers_from)
7212 (tui_data_window::display_registers_from)
7213 (tui_data_window::first_data_item_displayed)
7214 (tui_data_window::delete_data_content_windows): Update.
7215 (tui_data_window::refresh_window, tui_data_window::no_refresh):
7216 Remove.
7217 (tui_data_window::check_register_values): Update.
7218 (tui_data_item_window::rerender): Add parameters. Update.
7219 (tui_data_item_window::refresh_window): Remove.
7220 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
7221 virtual.
7222 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
7223 tui_gen_win_info.
7224 <refresh_window, max_height, min_height>: Remove.
7225 <rerender>: Add parameters.
7226 <x, y, visible>: New members.
7227 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
7228 <m_item_width>: New member.
7229
22b7b041
TT
72302020-07-01 Tom Tromey <tom@tromey.com>
7231
7232 * tui/tui-regs.c (tui_data_window::show_register_group)
7233 (tui_data_window::check_register_values): Update.
7234 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
7235 from item_no.
7236
c9753adb
TT
72372020-07-01 Tom Tromey <tom@tromey.com>
7238
7239 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
7240 useless "if".
7241
9ab26b4a
TT
72422020-07-01 Tom Tromey <tom@tromey.com>
7243
7244 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
7245 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
7246
e555083f
TT
72472020-07-01 Tom Tromey <tom@tromey.com>
7248
7249 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
7250 * tui/tui-winsource.h (enum tui_line_or_address_kind)
7251 (struct tui_line_or_address): Move from tui-data.h.
7252 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
7253 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
7254 (tui_cmd_window, tui_source_window_base, tui_source_window)
7255 (tui_disasm_window): Don't declare.
7256 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
7257 to tui-winsource.h.
7258 (SINGLE_KEY): Move to tui-stack.c.
7259
7a02bab7
TT
72602020-07-01 Tom Tromey <tom@tromey.com>
7261
7262 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
7263 std::string.
7264 * tui/tui-regs.c (class tab_expansion_file): New.
7265 (tab_expansion_file::write): New method.
7266 (tui_register_format): Change return type. Use
7267 tab_expansion_file.
7268 (tui_get_register, tui_data_window::display_registers_from)
7269 (tui_data_item_window::rerender): Update.
7270 * tui/tui-io.h (tui_expand_tabs): Don't declare.
7271 * tui/tui-io.c (tui_expand_tabs): Remove.
7272
ea68593b
TT
72732020-07-01 Tom Tromey <tom@tromey.com>
7274
7275 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
7276
a8caed5d
FS
72772020-07-01 Fangrui Song <maskray@google.com>
7278
7279 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
7280
9cdf9820
AKS
72812020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7282
7283 * dwarf2/read.c (set_die_type): Removed conditions to restrict
7284 forms for DW_AT_associated and DW_AT_allocated attributes,
7285 which is already checked in function attr_to_dynamic_prop.
7286
a1520ad8
TT
72872020-06-30 Tom Tromey <tromey@adacore.com>
7288
7289 * dwarf2/read.c (quirk_rust_enum): Correctly call
7290 alloc_rust_variant for default-less enum.
7291
5ac58899
TT
72922020-06-30 Tom Tromey <tromey@adacore.com>
7293
7294 PR build/26183:
7295 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
7296 gdb::to_string.
7297
19b187a9
SM
72982020-06-29 Simon Marchi <simon.marchi@efficios.com>
7299
7300 * gdbarch.sh (displaced_step_copy_insn): Update doc.
7301 * gdbarch.h: Re-generate.
7302
cd4c4c07
TT
73032020-06-28 Tom Tromey <tom@tromey.com>
7304
7305 * command.h (cmd_types): Remove.
7306 (cmd_type): Don't declare.
7307 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
7308 typedef.
7309 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
7310 * cli/cli-decode.c (cmd_type): Remove.
7311
05779d57
PA
73122020-06-27 Pedro Alves <palves@redhat.com>
7313
7314 * fork-child.c (prefork_hook): Adjust.
7315 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
7316 Delete.
7317 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
7318 * inferior.c (inferior::set_tty, inferior::tty): New methods.
7319 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
7320 Remove declarations.
7321 (struct inferior) <set_tty, tty>: New methods.
7322 (struct inferior) <terminal>: Rename to ...
7323 (struct inferior) <m_terminal>: ... this and make private.
7324 * main.c (captured_main_1): Adjust.
7325 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
7326 (mi_cmd_inferior_tty_show): Adjust.
7327 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
7328 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
7329
1776e3e5
NA
73302020-06-26 Nick Alcock <nick.alcock@oracle.com>
7331
7332 * configure.ac: Add --enable-libctf: handle --disable-static
7333 properly.
7334 * acinclude.m4: sinclude ../config/enable.m4.
7335 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
7336 (LIBCTF): Substitute in.
7337 (CTF_DEPS): New, likewise.
7338 (CLIBS): libctf needs symbols from libbfd: move earlier.
7339 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
7340 flags.
7341 * ctfread.c: Surround in ENABLE_LIBCTF.
7342 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
7343 * configure: Regenerate.
7344 * config.in: Likewise.
7345
58373b80
SM
73462020-06-25 Simon Marchi <simon.marchi@efficios.com>
7347
7348 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
7349
277474ee
SM
73502020-06-25 Simon Marchi <simon.marchi@efficios.com>
7351
7352 * inferior.h (struct inferior) <terminal>: Change type to
7353 gdb::unique_xmalloc_ptr<char>.
7354 * inferior.c (inferior::~inferior): Don't free inf->terminal.
7355 * infcmd.c (set_inferior_io_terminal): Don't free terminal
7356 field, adjust to unique pointer.
7357 (get_inferior_io_terminal): Adjust to unique pointer.
7358
6d74da72
AB
73592020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7360
7361 * riscv-tdep.c (riscv_print_registers_info): Loop over all
7362 registers, not just the known core set of registers.
7363
2e52d038
AB
73642020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7365
7366 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
7367 fflags, frm, and fcsr registers.
7368 (riscv_register_reggroup_p): Remove unknown CSRs from save and
7369 restore groups.
7370 (riscv_tdesc_unknown_reg): New function.
7371 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
7372 tdesc_use_registers.
7373 * riscv-tdep.h (struct gdbarch_tdep): Add
7374 unknown_csrs_first_regnum, unknown_csrs_count,
7375 duplicate_fflags_regnum, duplicate_frm_regnum, and
7376 duplicate_fcsr_regnum fields.
7377
be64fd07
AB
73782020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7379
7380 * target-descriptions.c (tdesc_use_registers): Add new parameter a
7381 callback, use the callback (when not null) to help number unknown
7382 registers.
7383 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
7384 (tdesc_use_registers): Add extra parameter to declaration.
7385
3b9fce96
AB
73862020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7387
7388 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
7389 in the file.
7390 (class riscv_pending_register_alias): Likewise.
7391 (riscv_register_feature::register_info): Change 'required_p' field
7392 to 'required', and change its type. Add 'check' member function.
7393 (riscv_register_feature::register_info::check): Define new member
7394 function.
7395 (riscv_xreg_feature): Change initialisation of 'required' field.
7396 (riscv_freg_feature): Likewise.
7397 (riscv_virtual_feature): Likewise.
7398 (riscv_csr_feature): Likewise.
7399 (riscv_check_tdesc_feature): Take extra parameter, the csr
7400 tdesc_feature, rewrite the function to use the new
7401 riscv_register_feature::register_info::check function.
7402 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
7403
865bad26
AB
74042020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7405
7406 * features/Makefile: Remove all references to the deleted files
7407 below.
7408 * features/riscv/32bit-csr.c: Deleted.
7409 * features/riscv/32bit-csr.xml: Deleted.
7410 * features/riscv/64bit-csr.c: Deleted.
7411 * features/riscv/64bit-csr.xml: Deleted.
7412 * features/riscv/rebuild-csr-xml.sh: Deleted.
7413
ed69cbc8
AB
74142020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7415
7416 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
7417 whitespace error for declaration of names member variable.
7418 (struct riscv_register_feature): Add new prefer_first_name member
7419 variable, and fix whitespace error in declaration of registers.
7420 (riscv_xreg_feature): Initialize prefer_first_name field.
7421 (riscv_freg_feature): Likewise.
7422 (riscv_virtual_feature): Likewise.
7423 (riscv_csr_feature): Likewise.
7424 (riscv_register_name): Expand on comments. Remove register name
7425 modifications for CSR and virtual registers.
7426
4445e8f5
AB
74272020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7428
7429 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
7430 errors.
7431
767a879e
AB
74322020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7433
7434 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
7435 riscv-opc.h.
7436 (class riscv_pending_register_alias): New class.
7437 (riscv_check_tdesc_feature): Take vector of pending aliases and
7438 populate it as appropriate.
7439 (riscv_setup_register_aliases): Delete.
7440 (riscv_gdbarch_init): Create vector of pending aliases and pass it
7441 to riscv_check_tdesc_feature in all cases. Use the vector to
7442 create the register aliases.
7443
bb6e55f3
RO
74442020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7445
7446 * sol2-tdep.c (sol2_static_transform_name): Remove.
7447 (sol2_init_abi): Don't register it.
7448 * gdbarch.sh (static_transform_name): Remove.
7449 * gdbarch.c, gdbarch.h: Regenerate.
7450
7451 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
7452 gdbarch_static_transform_name.
7453 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
7454 * stabsread.c (define_symbol) <'X'>: Remove.
7455 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
7456 handling.
7457 <'V'>: Likewise.
7458 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
7459 <'S'>: Remove call to gdbarch_static_transform_name.
7460
c6d36836
RO
74612020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7462
7463 * procfs.c (procfs_pre_trace): New function.
7464 (procfs_target::create_inferior): Pass it to fork_inferior.
7465
a7e6196b
RO
74662020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7467
7468 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
7469 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
7470 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
7471 sol2-tdep.o, sparc-sol2-tdep.o.
7472 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
7473 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
7474 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
7475 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
7476
d412e696
RO
74772020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7478
7479 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
7480 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
7481 Call sol2_init_abi.
7482 Remove calls to set_gdbarch_skip_solib_resolver,
7483 set_gdbarch_core_pid_to_str.
7484 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
7485 (i386_sol2_static_transform_name): Remove.
7486 (i386_sol2_init_abi): Call sol2_init_abi.
7487 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7488 set_gdbarch_static_transform_name,
7489 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
7490 Use sol2_sigtramp_p.
7491 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
7492 (sol2_sigtramp_p): New function.
7493 (sol2_static_transform_name): New function.
7494 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
7495 (sol2_init_abi): New function.
7496 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
7497 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
7498 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
7499 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
7500 (sparc_sol2_static_transform_name): Remove.
7501 (sparc32_sol2_init_abi): Call sol2_init_abi.
7502 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7503 set_gdbarch_static_transform_name,
7504 set_gdbarch_skip_solib_resolver,
7505 set_gdbarch_core_pid_to_str.
7506 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
7507 (sparc_sol2_static_transform_name): Remove
7508 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
7509 call sol2_sigtramp_p.
7510 (sparc64_sol2_init_abi): Call sol2_init_abi.
7511 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7512 set_gdbarch_static_transform_name,
7513 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
7514
a8654e7d
PW
75152020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7516
7517 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
7518 * exec.c (validate_exec_file): If from_tty, set both
7519 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
7520 * symfile.c (symbol_file_add_with_addrs): if always_confirm
7521 and from_tty, unconditionally ask a confirmation.
7522
caa7fd04
AB
75232020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7524
7525 * target-descriptions.c (tdesc_architecture_name): Protect against
7526 NULL pointer dereference.
7527 (maint_print_xml_tdesc_cmd): New function.
7528 (_initialize_target_descriptions): Register new 'maint print
7529 xml-tdesc' command and give it the filename completer.
7530 * NEWS: Mention new 'maint print xml-tdesc' command.
7531
fbf42f4e
AB
75322020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7533
7534 * target-descriptions.c (class tdesc_compatible_info): New class.
7535 (struct target_desc): Change type of compatible vector.
7536 (tdesc_compatible_p): Update for change in type of
7537 target_desc::compatible.
7538 (tdesc_compatible_info_list): New function.
7539 (tdesc_compatible_info_arch_name): New function.
7540 (tdesc_add_compatible): Update for change in type of
7541 target_desc::compatible.
7542 (print_c_tdesc::visit_pre): Likewise.
7543
20821f4e
AB
75442020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7545
7546 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
7547 whitespace to underscore.
7548 (maint_print_c_tdesc_cmd): Use fake filename for target
7549 descriptions that came from the target.
7550 (_initialize_target_descriptions): Add filename command completion
7551 for 'maint print c-tdesc'.
7552
1fb5ee62
SM
75532020-06-23 Simon Marchi <simon.marchi@efficios.com>
7554
7555 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
7556 lines.
7557
fc3ecb3e
SM
75582020-06-23 Simon Marchi <simon.marchi@efficios.com>
7559
7560 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
7561 lines.
7562 (dwarf2_find_location_expression): Likewise.
7563 (call_site_parameter_matches): Likewise.
7564 (dwarf2_compile_expr_to_ax): Likewise.
7565 (disassemble_dwarf_expression): Likewise.
7566 (loclist_describe_location): Likewise.
7567
236ef034
PA
75682020-06-23 Pedro Alves <palves@redhat.com>
7569
7570 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
7571 progspace-and-thread.h. Include scoped-mock-context.h instead.
7572 (register_to_value_test): Use scoped_mock_context.
7573 * regcache.c: Include "scoped-mock-context.h".
7574 (cooked_read_test): Don't error out if a target is already pushed.
7575 Use scoped_mock_context. Adjust.
7576 * scoped-mock-context.h: New file.
7577
39e7ecca
AB
75782020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7579
7580 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
7581 initializer.
7582 (ada_language::is_string_type_p): New member function.
7583 * c-lang.c (c_language_data): Delete la_is_string_type_p
7584 initializer.
7585 (cplus_language_data): Likewise.
7586 (asm_language_data): Likewise.
7587 (minimal_language_data): Likewise.
7588 * d-lang.c (d_language_data): Likewise.
7589 * f-lang.c (f_is_string_type_p): Delete function, implementation
7590 moved to f_language::is_string_type_p.
7591 (f_language_data): Delete la_is_string_type_p initializer.
7592 (f_language::is_string_type_p): New member function,
7593 implementation from f_is_string_type_p.
7594 * go-lang.c (go_is_string_type_p): Delete function, implementation
7595 moved to go_language::is_string_type_p.
7596 (go_language_data): Delete la_is_string_type_p initializer.
7597 (go_language::is_string_type_p): New member function,
7598 implementation from go_is_string_type_p.
7599 * language.c (language_defn::is_string_type_p): Define new member
7600 function.
7601 (default_is_string_type_p): Make static, add comment copied from
7602 header file.
7603 (unknown_language_data): Delete la_is_string_type_p initializer.
7604 (unknown_language::is_string_type_p): New member function.
7605 (auto_language_data): Delete la_is_string_type_p initializer.
7606 (auto_language::is_string_type_p): New member function.
7607 * language.h (language_data): Delete la_is_string_type_p field.
7608 (language_defn::is_string_type_p): Declare new function.
7609 (default_is_string_type_p): Delete desclaration, move comment to
7610 definition.
7611 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
7612 moved to m2_language::is_string_type_p.
7613 (m2_language_data): Delete la_is_string_type_p initializer.
7614 (m2_language::is_string_type_p): New member function,
7615 implementation from m2_is_string_type_p.
7616 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
7617 initializer.
7618 * opencl-lang.c (opencl_language_data): Likewise.
7619 * p-lang.c (pascal_is_string_type_p): Delete function,
7620 implementation moved to pascal_language::is_string_type_p.
7621 (pascal_language_data): Delete la_is_string_type_p initializer.
7622 (pascal_language::is_string_type_p): New member function,
7623 implementation from pascal_is_string_type_p.
7624 * rust-lang.c (rust_is_string_type_p): Delete function,
7625 implementation moved to rust_language::is_string_type_p.
7626 (rust_language_data): Delete la_is_string_type_p initializer.
7627 (rust_language::is_string_type_p): New member function,
7628 implementation from rust_is_string_type_p.
7629 * valprint.c (val_print_scalar_or_string_type_p): Update call to
7630 is_string_type_p.
7631
4ffc13fb
AB
76322020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7633
7634 * ada-lang.c (ada_language_data): Delete la_print_typedef
7635 initializer.
7636 (ada_language::print_typedef): New member function.
7637 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
7638 (cplus_language_data): Likewise.
7639 (asm_language_data): Likewise.
7640 (minimal_language_data): Likewise.
7641 * d-lang.c (d_language_data): Likewise.
7642 * f-lang.c (f_language_data): Likewise.
7643 (f_language::print_typedef): New member function.
7644 * go-lang.c (go_language_data): Delete la_print_typedef
7645 initializer.
7646 * language.c (language_defn::print_typedef): Define member
7647 function.
7648 (unknown_language_data): Delete la_print_typedef initializer.
7649 (unknown_language::print_typedef): New member function.
7650 (auto_language_data): Delete la_print_typedef initializer.
7651 (auto_language::print_typedef): New member function.
7652 * language.h (language_data): Delete la_print_typedef field.
7653 (language_defn::print_typedef): Declare new member function.
7654 (LA_PRINT_TYPEDEF): Update call to print_typedef.
7655 (default_print_typedef): Delete declaration.
7656 * m2-lang.c (m2_language_data): Delete la_print_typedef
7657 initializer.
7658 (m2_language::print_typedef): New member function.
7659 * objc-lang.c (objc_language_data): Delete la_print_typedef
7660 initializer.
7661 * opencl-lang.c (opencl_language_data): Likewise.
7662 * p-lang.c (pascal_language_data): Likewise.
7663 (pascal_language::print_typedef): New member function.
7664 * rust-lang.c (rust_print_typedef): Delete function,
7665 implementation moved to rust_language::print_typedef.
7666 (rust_language): Delete la_print_typedef initializer.
7667 (rust_language::print_typedef): New member function,
7668 implementation from rust_print_typedef.
7669 * typeprint.c (default_print_typedef): Delete.
7670
d711ee67
AB
76712020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7672
7673 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
7674 (ada_language::printstr): New member function.
7675 * c-lang.c (c_language_data): Delete la_printstr initializer.
7676 (cplus_language_data): Likewise.
7677 (asm_language_data): Likewise.
7678 (minimal_language_data): Likewise.
7679 * d-lang.c (d_language_data): Likewise.
7680 * f-lang.c (f_printstr): Rename to f_language::printstr.
7681 (f_language_data): Delete la_printstr initializer.
7682 (f_language::printstr): New member function, implementation from
7683 f_printstr.
7684 * go-lang.c (go_language_data): Delete la_printstr initializer.
7685 * language.c (language_defn::printstr): Define new member
7686 function.
7687 (unk_lang_printstr): Delete.
7688 (unknown_language_data): Delete la_printstr initializer.
7689 (unknown_language::printstr): New member function.
7690 (auto_language_data): Delete la_printstr initializer.
7691 (auto_language::printstr): New member function.
7692 * language.h (language_data): Delete la_printstr field.
7693 (language_defn::printstr): Declare new member function.
7694 (LA_PRINT_STRING): Update call to printstr.
7695 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
7696 (m2_language_data): Delete la_printstr initializer.
7697 (m2_language::printstr): New member function, implementation from
7698 m2_printstr.
7699 * objc-lang.c (objc_language_data): Delete la_printstr
7700 initializer.
7701 * opencl-lang.c (opencl_language_data): Likewise.
7702 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
7703 (pascal_language_data): Delete la_printstr initializer.
7704 (pascal_language::printstr): New member function, implementation
7705 from pascal_printstr.
7706 * p-lang.h (pascal_printstr): Delete declaration.
7707 * rust-lang.c (rust_printstr): Update header comment.
7708 (rust_language_data): Delete la_printstr initializer.
7709 (rust_language::printstr): New member function.
7710
52b50f2c
AB
77112020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7712
7713 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
7714 (ada_language::printchar): New member function.
7715 * c-lang.c (c_language_data): Delete la_printchar initializer.
7716 (cplus_language_data): Likewise.
7717 (asm_language_data): Likewise.
7718 (minimal_language_data): Likewise.
7719 * d-lang.c (d_language_data): Likewise.
7720 * f-lang.c (f_printchar): Rename to f_language::printchar.
7721 (f_language_data): Delete la_printchar initializer.
7722 (f_language::printchar): New member function, implementation from
7723 f_printchar.
7724 * go-lang.c (go_language_data): Delete la_printchar initializer.
7725 * language.c (unk_lang_printchar): Delete.
7726 (language_defn::printchar): Define new member function.
7727 (unknown_language_data): Delete la_printchar initializer.
7728 (unknown_language::printchar): New member function.
7729 (auto_language_data): Delete la_printchar initializer.
7730 (auto_language::printchar): New member function.
7731 * language.h (language_data): Delete la_printchar field.
7732 (language_defn::printchar): Declare new member function.
7733 (LA_PRINT_CHAR): Update call to printchar.
7734 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
7735 (m2_language::printchar): New member function.
7736 * objc-lang.c (objc_language_data): Delete la_printchar
7737 initializer.
7738 * opencl-lang.c (opencl_language_data): Likewise.
7739 * p-lang.c (pascal_language_data): Delete la_printchar
7740 initializer.
7741 (pascal_language::printchar): New member function.
7742 * rust-lang.c (rust_printchar): Rename to
7743 rust_language::printchar.
7744 (rust_language_data): Delete la_printchar initializer.
7745 (rust_language::printchar): New member function, implementation
7746 from rust_printchar.
7747
ec8cec5b
AB
77482020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7749
7750 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
7751 (ada_language_data): Delete la_emitchar initializer.
7752 (ada_language::emitchar): New member function, implementation from
7753 emit_char.
7754 * c-lang.c (c_language_data): Delete la_emitchar initializer.
7755 (cplus_language_data): Likewise.
7756 (asm_language_data): Likewise.
7757 (minimal_language_data): Likewise.
7758 * d-lang.c (d_language_data): Likewise.
7759 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
7760 (f_language_data): Delete la_emitchar initializer.
7761 (f_language::emitchar): New member function, implementation from
7762 f_emit_char.
7763 * go-lang.c (go_language_data): Delete la_emitchar initializer.
7764 * language.c (unk_lang_emit_char): Delete.
7765 (language_defn::emitchar): New member function definition.
7766 (unknown_language_data): Delete la_emitchar initializer.
7767 (unknown_language::emitchar): New member function.
7768 (auto_language_data): Delete la_emitchar initializer.
7769 (auto_language::emitchar): New member function.
7770 * language.h (language_data): Delete la_emitchar field.
7771 (language_defn::emitchar): New member field declaration.
7772 (LA_EMIT_CHAR): Update call to emitchar.
7773 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
7774 (m2_language_data): Delete la_emitchar initializer.
7775 (m2_language::emitchar): New member function, implementation from
7776 m2_emit_char.
7777 * objc-lang.c (objc_language_data): Delete la_emitchar
7778 initializer.
7779 * opencl-lang.c (opencl_language_data): Likewise.
7780 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
7781 (pascal_language_data): Delete la_emitchar initializer.
7782 (pascal_language::emitchar): New member function, implementation
7783 from pascal_emit_char.
7784 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
7785 (rust_language_data): Delete la_emitchar initializer.
7786 (rust_language::emitchar): New member function, implementation
7787 from rust_emitchar.
7788
1bf9c363
AB
77892020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7790
7791 * ada-lang.c (resolve): Rename to ada_language::post_parser.
7792 (ada_language_data): Delete la_post_parser initializer.
7793 (ada_language::post_parser): New member function.
7794 * c-lang.c (c_language_data): Delete la_post_parser initializer.
7795 (cplus_language_data): Likewise.
7796 (asm_language_data): Likewise.
7797 (minimal_language_data): Likewise.
7798 * d-lang.c (d_language_data): Likewise.
7799 * f-lang.c (f_language_data): Likewise.
7800 * go-lang.c (go_language_data): Likewise.
7801 * language.c (unknown_language_data): Likewise.
7802 (auto_language_data): Likewise.
7803 * language.h (language_data): Delete la_post_parser field.
7804 (language_defn::post_parser): New member function.
7805 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
7806 * objc-lang.c (objc_language_data): Likewise.
7807 * opencl-lang.c (opencl_language_data): Likewise.
7808 * p-lang.c (pascal_language_data): Likewise.
7809 * parse.c (parse_exp_in_context): Update call to post_parser.
7810 (null_post_parser): Delete definition.
7811 * parser-defs.h (null_post_parser): Delete declaration.
7812 * rust-lang.c (rust_language_data): Delete la_post_parser
7813 initializer.
7814
87afa652
AB
78152020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7816
7817 * ada-lang.c (parse): Rename to ada_language::parser.
7818 (ada_language_data): Delete la_parser initializer.
7819 (ada_language::parser): New member function, implementation from
7820 parse.
7821 * c-lang.c (c_language_data): Delete la_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 (d_language::parser): New member function.
7827 * f-lang.c (f_language_data): Delete la_parser initializer.
7828 (f_language::parser): New member function.
7829 * go-lang.c (go_language_data): Delete la_parser initializer.
7830 (go_language::parser): New member function.
7831 * language.c (unk_lang_parser): Delete.
7832 (language_defn::parser): Define new member function.
7833 (unknown_language_data): Delete la_parser initializer.
7834 (unknown_language::parser): New member function.
7835 (auto_language_data): Delete la_parser initializer.
7836 (auto_language::parser): New member function.
7837 * language.h (language_data): Delete la_parser field.
7838 (language_defn::parser): Declare new member function.
7839 * m2-lang.c (m2_language_data): Delete la_parser initializer.
7840 (m2_language::parser): New member function.
7841 * objc-lang.c (objc_language_data): Delete la_parser initializer.
7842 * opencl-lang.c (opencl_language_data): Likewise.
7843 * p-lang.c (pascal_language_data): Likewise.
7844 (pascal_language::parser): New member function.
7845 * parse.c (parse_exp_in_context): Update call to parser.
7846 * rust-lang.c (rust_language_data): Delete la_parser initializer.
7847 (rust_language::parser): New member function.
7848
37825800
AB
78492020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7850
7851 * top.c (print_gdb_configuration): Print --with-python-libdir
7852 configuration value.
7853
5b860c93
PW
78542020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7855
7856 * NEWS: Mention change to the alias command.
7857
cf00cd6f
PW
78582020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7859
7860 * cli/cli-cmds.c (lookup_cmd_for_default_args)
7861 (alias_command_completer)
7862 (make_alias_options_def_group): New functions.
7863 (alias_opts, alias_option_defs): New struct and array.
7864 (alias_usage_error): Update usage.
7865 (alias_command): Handles optional DEFAULT-ARGS... arguments.
7866 Use option framework.
7867 (_initialize_cli_cmds): Update alias command help.
7868 Update aliases command help.
7869 (show_user):
7870 Add NULL for new default_args lookup_cmd argument.
7871 (valid_command_p): Rename to validate_aliased_command.
7872 Add NULL for new default_args lookup_cmd argument. Verify that the
7873 aliased_command has no default args.
7874 * cli/cli-decode.c (help_cmd): Show aliases definitions.
7875 (lookup_cmd_1, lookup_cmd): New argument default_args.
7876 (add_alias_cmd):
7877 Add NULL for new default_args lookup_cmd argument.
7878 (print_help_for_command): Show default args under the layout
7879 alias some_alias = some_aliased_cmd some_alias_default_arg.
7880 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
7881 xfree default_args in destructor.
7882 * cli/cli-script.c (process_next_line, do_define_command):
7883 Add NULL for new default_args lookup_cmd argument.
7884 * command.h: Declare new default_args argument in lookup_cmd
7885 and lookup_cmd_1.
7886 * completer.c (complete_line_internal_1):
7887 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7888 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
7889 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
7890 Likewise.
7891 * infcmd.c (_initialize_infcmd): Likewise.
7892 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
7893 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
7894 * python/py-param.c (add_setshow_generic): Likewise.
7895 * remote.c (_initialize_remote): Likewise.
7896 * top.c (execute_command): Prepend default_args if command has some.
7897 (set_verbose):
7898 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7899 * tracepoint.c (validate_actionline, encode_actions_1):
7900 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7901
bd920864
TBA
79022020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7903
7904 * jit.c (jit_read_descriptor): Use bool as the return type.
7905 (jit_breakpoint_re_set_internal): Use bool as the return type.
7906 Invert the return value logic; return true if the jit breakpoint
7907 has been successfully initialized.
7908 (jit_inferior_init): Update the call to
7909 jit_breakpoint_re_set_internal.
7910
f8098322
PA
79112020-06-22 Pedro Alves <palves@redhat.com>
7912
7913 PR gdb/25939
7914 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
7915 Use the current inferior instead. Don't return
7916 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
7917 wait again.
7918 * sol-thread.c (sol_thread_target::wait): Don't reference
7919 inferior_ptid.
7920 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
7921 (sol_update_thread_list_callback): Use the current inferior's pid
7922 instead of inferior_ptid.
7923
196535a6
RO
79242020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7925
7926 * procfs.c: Cleanup many comments.
7927
7928 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
7929 (AFTER_WATCHFLAG): Replace by value.
7930
7931 (MAIN_PROC_NAME_FORMAT): Inline ...
7932 (create_procinfo): ... here.
7933
7934 (procfs_debug_inferior): Remove SYS_exec handling.
7935 (syscall_is_exec): Likewise.
7936 (procfs_set_exec_trap): Likewise.
7937
7938 (syscall_is_lwp_exit): Inline in callers.
7939 (syscall_is_exit): Likewise.
7940 (syscall_is_exec): Likewise.
7941 (syscall_is_lwp_create): Likewise.
7942
7943 (invalidate_cache): Remove #if 0 code.
7944
7945 (make_signal_thread_runnable): Remove.
7946 (procfs_target::resume): Remove #if 0 code.
7947
cf6f3e86
RO
79482020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7949
7950 PR gdb/25939
7951 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
7952 call ...
7953 (procfs_target::create_inferior): ... here.
7954
48e9cc84
PW
79552020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7956
7957 * exec.c (validate_exec_file): Ensure the build-id is up to
7958 date by calling reopen_exec_file (that checks file timestamp
7959 to decide to re-read the file).
7960
3922b302
PA
79612020-06-18 Pedro Alves <palves@redhat.com>
7962
7963 PR gdb/25412
7964 * gdbthread.h (delete_thread, delete_thread_silent)
7965 (find_thread_ptid): Update comments.
7966 * thread.c (current_thread_): New global.
7967 (is_current_thread): Move higher, and reimplement.
7968 (inferior_thread): Reimplement.
7969 (set_thread_exited): Use bool. Add assertions.
7970 (add_thread_silent): Simplify thread-reuse handling by always
7971 calling delete_thread.
7972 (delete_thread): Remove intro comment.
7973 (find_thread_ptid): Skip exited threads.
7974 (switch_to_thread_no_regs): Write to current_thread_.
7975 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
7976 INFERIOR_PTID. Clear current_thread_.
7977
6dbdab44
PA
79782020-06-18 Pedro Alves <palves@redhat.com>
7979
7980 * aix-thread.c (pd_update): Use switch_to_thread.
7981
2da4b788
PA
79822020-06-18 Pedro Alves <palves@redhat.com>
7983
7984 * ravenscar-thread.c (ravenscar_thread_target): Update.
7985 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
7986 (ravenscar_thread_target::add_active_thread): ... this. Don't
7987 set m_base_ptid here. Update to avoid referencing inferior_ptid.
7988 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
7989
50838d1b
PA
79902020-06-18 Pedro Alves <palves@redhat.com>
7991
7992 * nat/windows-nat.c (current_windows_thread): Remove.
7993 * nat/windows-nat.h (current_windows_thread): Remove.
7994 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
7995 Adjust.
7996 (display_selectors): Adjust to fetch the current
7997 windows_thread_info based on inferior_ptid.
7998 (fake_create_process): No longer write to current_windows_thread.
7999 (windows_nat_target::get_windows_debug_event):
8000 Don't set inferior_ptid or current_windows_thread.
8001 (windows_nat_target::wait): Adjust to not rely on
8002 current_windows_thread.
8003 (do_initial_windows_stuff): Now a method of windows_nat_target.
8004 Switch to the last_ptid thread.
8005 (windows_nat_target::attach): Adjust.
8006 (windows_nat_target::detach): Use switch_to_no_thread instead of
8007 writing to inferior_ptid directly.
8008 (windows_nat_target::create_inferior): Adjust.
8009
31ce04e9
PA
80102020-06-18 Pedro Alves <palves@redhat.com>
8011
8012 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
8013
1ee1a363
PA
80142020-06-18 Pedro Alves <palves@redhat.com>
8015
8016 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
8017 after creating it, instead of writing to inferior_ptid. Don't
8018 write to inferior_ptid.
8019
6d350754
PA
80202020-06-18 Pedro Alves <palves@redhat.com>
8021
8022 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
8023
5d971d48
PA
80242020-06-18 Pedro Alves <palves@redhat.com>
8025
8026 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
8027 it, instead of writing to inferior_ptid.
8028
86e57d1b
PA
80292020-06-18 Pedro Alves <palves@redhat.com>
8030
8031 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
8032 to inferior_ptid.
8033
f2e1c129
PA
80342020-06-18 Pedro Alves <palves@redhat.com>
8035
8036 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
8037 instead of writing to inferior_ptid directly.
8038
60db1b85
PA
80392020-06-18 Pedro Alves <palves@redhat.com>
8040
8041 * corelow.c (core_target::close): Use switch_to_no_thread instead
8042 of writing to inferior_ptid directly.
8043 (add_to_thread_list, core_target_open): Use switch_to_thread
8044 instead of writing to inferior_ptid directly.
8045
fe7d6a8d
PA
80462020-06-18 Pedro Alves <palves@redhat.com>
8047
8048 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
8049 inferior_ptid.
8050 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
8051 inferior_ptid.
8052 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
8053 inferior_ptid directly.
8054 (darwin_nat_target::init_thread_list): Switch to thread, instead
8055 of writing to inferior_ptid.
8056 (darwin_nat_target::attach): Don't write to inferior_ptid.
8057 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
8058
975f8708
PA
80592020-06-18 Pedro Alves <palves@redhat.com>
8060
8061 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
8062 thread.
8063 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
8064 Instead use switch_to_thread.
8065 (gnu_nat_target::detach): Use switch_to_no_thread
8066 instead of writing to inferior_ptid directly. Used passed-in
8067 inferior instead of looking up the inferior by pid.
8068
1a204730
PA
80692020-06-18 Pedro Alves <palves@redhat.com>
8070
8071 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
8072 inferior_ptid.
8073
ebe84f23
PA
80742020-06-18 Pedro Alves <palves@redhat.com>
8075
8076 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
8077 inferior_ptid.
8078 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
8079 thread.
8080 (nto_procfs_target::detach): Avoid referencing
8081 inferior_ptid. Use switch_to_no_thread instead of writing to
8082 inferior_ptid directly.
8083 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
8084 instead of writing to inferior_ptid directly.
8085 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
8086 to thread.
8087
191f02e5
PA
80882020-06-18 Pedro Alves <palves@redhat.com>
8089
8090 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
8091 after creating it, instead of writing to inferior_ptid.
8092 (gdbsim_target_open): Use switch_to_no_thread instead of writing
8093 to inferior_ptid directly.
8094 (gdbsim_target::wait): Don't write to inferior_ptid.
8095
0ac55310
PA
80962020-06-18 Pedro Alves <palves@redhat.com>
8097
8098 * remote.c (remote_target::remote_notice_new_inferior): Use
8099 switch_to_thread instead of writing to inferior_ptid directly.
8100 (remote_target::add_current_inferior_and_thread): Use
8101 switch_to_no_thread instead of writing to inferior_ptid directly.
8102 (extended_remote_target::attach): Use switch_to_inferior_no_thread
8103 and switch_to_thread instead of using set_current_inferior or
8104 writing to inferior_ptid directly.
8105
5233f39b
PA
81062020-06-18 Pedro Alves <palves@redhat.com>
8107
8108 * tracectf.c (ctf_target_open): Switch to added thread instead of
8109 writing to inferior_ptid directly.
8110 (ctf_target::close): Use switch_to_no_thread instead of writing to
8111 inferior_ptid directly.
8112
087e161b
PA
81132020-06-18 Pedro Alves <palves@redhat.com>
8114
8115 * tracefile-tfile.c (tfile_target_open): Don't write to
8116 inferior_ptid directly, instead switch to added thread.
8117 (tfile_target::close): Use switch_to_no_thread instead of writing
8118 to inferior_ptid directly.
8119
7fb43e53
PA
81202020-06-18 Pedro Alves <palves@redhat.com>
8121
8122 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
8123 (procfs_target::detach): Use switch_to_no_thread
8124 instead of writing to inferior_ptid directly.
8125 (do_attach): Change return type to void. Switch to the added
8126 thread.
8127 (procfs_target::create_inferior): Switch to the added thread.
8128 (procfs_do_thread_registers): Don't write to inferior_ptid.
8129
18493a00
PA
81302020-06-18 Pedro Alves <palves@redhat.com>
8131
8132 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
8133 of writing to inferior_ptid.
8134 (scoped_restore_exited_inferior): Delete.
8135 (handle_vfork_child_exec_or_exit): Simplify using
8136 scoped_restore_current_pspace_and_thread. Use switch_to_thread
8137 instead of writing to inferior_ptid.
8138 (THREAD_STOPPED_BY): Delete.
8139 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
8140 (thread_stopped_by_hw_breakpoint): Delete.
8141 (save_waitstatus): Use
8142 scoped_restore_current_thread+switch_to_thread, and call
8143 target_stopped_by_watchpoint instead of
8144 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
8145 instead of thread_stopped_by_sw_breakpoint, and
8146 target_stopped_by_hw_breakpoint instead of
8147 thread_stopped_by_hw_breakpoint.
8148 (handle_inferior_event)
8149 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
8150 inferior_ptid directly, nor
8151 set_current_inferior/set_current_program_space. Use
8152 switch_to_thread / switch_to_inferior_no_thread instead.
8153
a0776b13
PA
81542020-06-18 Pedro Alves <palves@redhat.com>
8155
8156 * target.c (generic_mourn_inferior): Use switch_to_no_thread
8157 instead of writing to inferior_ptid.
8158
6155c136
PA
81592020-06-18 Pedro Alves <palves@redhat.com>
8160
8161 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
8162 added thread.
8163 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
8164 to the added thread.
8165 (inf_ptrace_target::detach_success): Use switch_to_no_thread
8166 instead of writing to inferior_ptid.
8167
c5316fc6
PA
81682020-06-18 Pedro Alves <palves@redhat.com>
8169
8170 * gdbarch-selftests.c: Include "progspace-and-thread.h".
8171 (register_to_value_test): Mock a program_space too. Heap-allocate
8172 the address space. Don't write to inferior_ptid. Use
8173 switch_to_thread instead.
8174
8df01799
PA
81752020-06-18 Pedro Alves <palves@redhat.com>
8176
8177 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
8178 Delete.
8179 (find_signalled_thread()): New, factored out from
8180 linux_make_corefile_notes and adjusted to handle exited threads.
8181 (linux_make_corefile_notes): Adjust to use the new
8182 find_signalled_thread.
8183
41792d68
PA
81842020-06-18 Pedro Alves <palves@redhat.com>
8185
8186 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
8187 of saving/restoring inferior_ptid.
8188
612f258a
TT
81892020-06-17 Tom Tromey <tom@tromey.com>
8190
8191 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
8192 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
8193 declare.
8194 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
8195
efb763a5
SM
81962020-06-15 Simon Marchi <simon.marchi@efficios.com>
8197
8198 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
8199 of partial symtabs.
8200
2951f6c0
SM
82012020-06-17 Simon Marchi <simon.marchi@efficios.com>
8202
8203 * regformats/reg-arm.dat: Remove.
8204 * regformats/reg-bfin.dat: Remove.
8205 * regformats/reg-cris.dat: Remove.
8206 * regformats/reg-crisv32.dat: Remove.
8207 * regformats/reg-m32r.dat: Remove.
8208 * regformats/reg-tilegx.dat: Remove.
8209 * regformats/reg-tilegx32.dat: Remove.
8210
7d458ea5
SM
82112020-06-17 Simon Marchi <simon.marchi@efficios.com>
8212
8213 * features/Makefile (WHICH): Remove arm files.
8214 * regformats/arm/arm-with-iwmmxt.dat: Remove.
8215 * regformats/arm/arm-with-neon.dat: Remove.
8216 * regformats/arm/arm-with-vfpv2.dat: Remove.
8217 * regformats/arm/arm-with-vfpv3.dat: Remove.
8218
3af96c0d
SM
82192020-06-17 Simon Marchi <simon.marchi@efficios.com>
8220
8221 * features/Makefile (XMLTOC): Remove rx.xml.
8222
b25e22fd
PA
82232020-06-17 Pedro Alves <palves@redhat.com>
8224
8225 * gdbthread.h (thread_control_state) <trap_expected> Update
8226 comments.
8227
a78a19b1
AB
82282020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8229
8230 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
8231 ada_language::lookup_symbol_nonlocal.
8232 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
8233 (ada_language::lookup_symbol_nonlocal): New member function,
8234 implementation from ada_lookup_symbol_nonlocal.
8235 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
8236 initializer.
8237 (cplus_language_data): Delete la_lookup_symbol_nonlocal
8238 initializer.
8239 (cplus_language::lookup_symbol_nonlocal): New member function.
8240 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
8241 (minimal_language_data) Likewise.
8242 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
8243 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
8244 initializer.
8245 (d_language::lookup_symbol_nonlocal): New member function.
8246 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
8247 initializer.
8248 (f_language::lookup_symbol_nonlocal): New member function.
8249 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
8250 initializer.
8251 * language.c (unknown_language_data): Likewise.
8252 (auto_language_data): Likewise.
8253 * language.h (language_data): Delete la_lookup_symbol_nonlocal
8254 field.
8255 (language_defn::lookup_symbol_nonlocal): New member function.
8256 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
8257 initializer.
8258 * objc-lang.c (objc_language_data): Likewise.
8259 * opencl-lang.c (opencl_language_data): Likewise.
8260 * p-lang.c (pascal_language_data): Likewise.
8261 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
8262 rust_language::lookup_symbol_nonlocal.
8263 (rust_language_data): Delete la_lookup_symbol_nonlocal
8264 initializer.
8265 (rust_language::lookup_symbol_nonlocal): New member function,
8266 implementation from rust_lookup_symbol_nonlocal.
8267 * symtab.c (lookup_symbol_aux): Update call to
8268 lookup_symbol_nonlocal.
8269 (basic_lookup_symbol_nonlocal): Rename to...
8270 (language_defn::lookup_symbol_nonlocal): ...this, and update
8271 header comment. Remove language_defn parameter, and replace with
8272 uses of `this'.
8273 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
8274
ebe2334e
AB
82752020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8276
8277 * ada-lang.c (ada_language_data): Delete la_value_print_inner
8278 initializer.
8279 (ada_language::value_print_inner): New member function.
8280 * c-lang.c (c_language_data): Delete la_value_print_inner
8281 initializer.
8282 (cplus_language_data): Likewise.
8283 (asm_language_data): Likewise.
8284 (minimal_language_data): Likewise.
8285 * d-lang.c (d_language_data): Likewise.
8286 (d_language::value_print_inner): New member function.
8287 * f-lang.c (f_language_data): Delete la_value_print_inner
8288 initializer.
8289 (f_language::value_print_inner): New member function.
8290 * f-lang.h (f_value_print_innner): Rename to...
8291 (f_value_print_inner): ...this (note spelling of 'inner').
8292 * f-valprint.c (f_value_print_innner): Rename to...
8293 (f_value_print_inner): ...this (note spelling of 'inner').
8294 * go-lang.c (go_language_data): Delete la_value_print_inner
8295 initializer.
8296 (go_language::value_print_inner): New member function.
8297 * language.c (language_defn::value_print_inner): Define new member
8298 function.
8299 (unk_lang_value_print_inner): Delete.
8300 (unknown_language_data): Delete la_value_print_inner initializer.
8301 (unknown_language::value_print_inner): New member function.
8302 (auto_language_data): Delete la_value_print_inner initializer.
8303 (auto_language::value_print_inner): New member function.
8304 * language.h (language_data): Delete la_value_print_inner field.
8305 (language_defn::value_print_inner): Delcare new member function.
8306 * m2-lang.c (m2_language_data): Delete la_value_print_inner
8307 initializer.
8308 (m2_language::value_print_inner): New member function.
8309 * objc-lang.c (objc_language_data): Delete la_value_print_inner
8310 initializer.
8311 * opencl-lang.c (opencl_language_data): Likewise.
8312 * p-lang.c (pascal_language_data): Likewise.
8313 (pascal_language::value_print_inner): New member function.
8314 * rust-lang.c (rust_language_data): Delete la_value_print_inner
8315 initializer.
8316 (rust_language::value_print_inner): New member function.
8317 * valprint.c (do_val_print): Update call to value_print_inner.
8318
a1d1fa3e
AB
83192020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8320
8321 * ada-lang.c (ada_language_data): Delete la_value_print
8322 initializer.
8323 (ada_language::value_print): New member function.
8324 * c-lang.c (c_language_data): Delete la_value_print initializer.
8325 (cplus_language_data): Likewise.
8326 (asm_language_data): Likewise.
8327 (minimal_language_data): Likewise.
8328 * d-lang.c (d_language_data): Likewise.
8329 * f-lang.c (f_language_data): Likewise.
8330 * go-lang.c (go_language_data): Likewise.
8331 * language.c (unk_lang_value_print): Delete.
8332 (language_defn::value_print): Define new member function.
8333 (unknown_language_data): Delete la_value_print initializer.
8334 (unknown_language::value_print): New member function.
8335 (auto_language_data): Delete la_value_print initializer.
8336 (auto_language::value_print): New member function.
8337 * language.h (language_data): Delete la_value_print field.
8338 (language_defn::value_print): Declare new member function.
8339 (LA_VALUE_PRINT): Update call to value_print.
8340 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
8341 * objc-lang.c (objc_language_data): Likewise.
8342 * opencl-lang.c (opencl_language_data): Likewise.
8343 * p-lang.c (pascal_language_data): Likewise.
8344 (pascal_language::value_print): New member function.
8345 * rust-lang.c (rust_language_data): Delete la_value_print
8346 initializer.
8347
f16a9f57
AB
83482020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8349
8350 * ada-lang.c (ada_watch_location_expression): Rename to
8351 ada_language::watch_location_expression.
8352 (ada_language_data): Delete la_watch_location_expression
8353 initializer.
8354 (ada_language::watch_location_expression): New member function,
8355 implementation from ada_watch_location_expression.
8356 * breakpoint.c (watch_command_1): Update call to
8357 watch_location_expression.
8358 * c-lang.c (c_watch_location_expression): Rename to
8359 language_defn::watch_location_expression.
8360 (c_language_data): Delete la_watch_location_expression
8361 initializer.
8362 (cplus_language_data): Likewise.
8363 (asm_language_data): Likewise.
8364 (minimal_language_data): Likewise.
8365 * c-lang.h (c_watch_location_expression): Delete declaration.
8366 * d-lang.c (d_language_data): Delete la_watch_location_expression
8367 initializer.
8368 * f-lang.c (f_language_data): Likewise.
8369 * go-lang.c (go_language_data): Likewise.
8370 * language.c (language_defn::watch_location_expression): Member
8371 function implementation from c_watch_location_expression.
8372 (unknown_language_data): Delete la_watch_location_expression
8373 initializer.
8374 (auto_language_data): Likewise.
8375 * language.h (language_data): Delete la_watch_location_expression
8376 field.
8377 (language_defn::watch_location_expression): Declare new member
8378 function.
8379 * m2-lang.c (m2_language_data): Delete
8380 la_watch_location_expression initializer.
8381 * objc-lang.c (objc_language_data): Likewise.
8382 * opencl-lang.c (opencl_language_data): Likewise.
8383 * p-lang.c (pascal_language_data): Likewise.
8384 * rust-lang.c (rust_watch_location_expression): Rename to
8385 rust_language::watch_location_expression.
8386 (rust_language_data): Delete la_watch_location_expression
8387 initializer.
8388 (rust_language::watch_location_expression): New member function,
8389 implementation from rust_watch_location_expression.
8390
7e56227d
AB
83912020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8392
8393 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
8394 ada_language::collect_symbol_completion_matches.
8395 (ada_language_data): Delete la_collect_symbol_completion_matches
8396 initializer.
8397 (ada_language::collect_symbol_completion_matches): New member
8398 function, implementation from
8399 ada_collect_symbol_completion_matches.
8400 * c-lang.c (c_language_data): Delete
8401 la_collect_symbol_completion_matches initializer.
8402 (cplus_language_data): Likewise.
8403 (asm_language_data): Likewise.
8404 (minimal_language_data): Likewise.
8405 * d-lang.c (d_language_data): Likewise.
8406 * f-lang.c (f_collect_symbol_completion_matches): Rename to
8407 f_language::collect_symbol_completion_matches.
8408 (f_language_data): Delete la_collect_symbol_completion_matches
8409 initializer.
8410 (f_language::collect_symbol_completion_matches) New member
8411 function, implementation from f_collect_symbol_completion_matches.
8412 * go-lang.c (go_language_data): Delete
8413 la_collect_symbol_completion_matches initializer.
8414 * language.c (unknown_language_data): Likewise.
8415 (auto_language_data): Likewise.
8416 * language.h (language_data): Delete
8417 la_collect_symbol_completion_matches field.
8418 (language_defn::collect_symbol_completion_matches): New member
8419 function.
8420 * m2-lang.c (m2_language_data): Delete
8421 la_collect_symbol_completion_matches initializer.
8422 * objc-lang.c (objc_language_data): Likewise.
8423 * opencl-lang.c (opencl_language_data): Likewise.
8424 * p-lang.c (pascal_language_data): Likewise.
8425 * rust-lang.c (rust_language_data): Likewise.
8426 * symtab.c (default_collect_symbol_completion_matches): Delete.
8427 (collect_symbol_completion_matches): Update call to
8428 collect_symbol_completion_matches.
8429 (collect_symbol_completion_matches_type): Likewise.
8430 * symtab.h (default_collect_symbol_completion_matches): Delete
8431 declaration.
8432
53fc67f8
AB
84332020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8434
8435 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
8436 (ada_language_data): Delete la_word_break_characters initializer.
8437 (ada_language::word_break_characters): New member function.
8438 * c-lang.c (c_language_data): Delete la_word_break_characters
8439 initializer.
8440 (cplus_language_data): Likewise.
8441 (asm_language_data): Likewise.
8442 (minimal_language_data): Likewise.
8443 * completer.c: Update global comment.
8444 (advance_to_expression_complete_word_point): Update call to
8445 word_break_characters.
8446 (complete_files_symbols): Likewise.
8447 (complete_line_internal_1): Likewise.
8448 (default_completer_handle_brkchars): Likewise.
8449 (skip_quoted_chars): Likewise.
8450 * d-lang.c (d_language_data): Delete la_word_break_characters
8451 initializer.
8452 * f-lang.c (f_word_break_characters): Delete.
8453 (f_language_data): Delete la_word_break_characters initializer.
8454 (f_language::word_break_characters): New member function.
8455 * go-lang.c (go_language_data): Delete la_word_break_characters
8456 initializer.
8457 * language.c (unknown_language_data): Likewise.
8458 (auto_language_data): Likewise.
8459 * language.h (default_word_break_characters): Move declaration to
8460 earlier in the file.
8461 (language_data): Delete la_word_break_characters field.
8462 (language_defn::word_break_characters): New member function.
8463 * m2-lang.c (m2_language_data): Delete la_word_break_characters
8464 initializer.
8465 * objc-lang.c (objc_language_data): Likewise.
8466 * opencl-lang.c (opencl_language_data): Likewise.
8467 * p-lang.c (pascal_language_data): Likewise.
8468 * rust-lang.c (rust_language_data): Likewise.
8469
c9debfb9
AB
84702020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8471
8472 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
8473 (ada_language_data): Delete la_get_symbol_name_matcher
8474 initializer.
8475 (language_defn::get_symbol_name_matcher_inner): New member
8476 function.
8477 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
8478 initializer.
8479 (cplus_language_data): Likewise.
8480 (cplus_language::get_symbol_name_matcher_inner): New member
8481 function.
8482 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
8483 (minimal_language_data): Likewise.
8484 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
8485 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
8486 initializer.
8487 * dictionary.c (iter_match_first_hashed): Update call to
8488 get_symbol_name_matcher.
8489 (iter_match_next_hashed): Likewise.
8490 (iter_match_next_linear): Likewise.
8491 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
8492 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
8493 initializer.
8494 (f_language::get_symbol_name_matcher_inner): New member function.
8495 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
8496 initializer.
8497 * language.c (default_symbol_name_matcher): Update header comment,
8498 make static.
8499 (language_defn::get_symbol_name_matcher): New definition.
8500 (language_defn::get_symbol_name_matcher_inner): Likewise.
8501 (get_symbol_name_matcher): Delete.
8502 (unknown_language_data): Delete la_get_symbol_name_matcher
8503 initializer.
8504 (auto_language_data): Likewise.
8505 * language.h (language_data): Delete la_get_symbol_name_matcher
8506 field.
8507 (language_defn::get_symbol_name_matcher): New member function.
8508 (language_defn::get_symbol_name_matcher_inner): Likewise.
8509 (default_symbol_name_matcher): Delete declaration.
8510 * linespec.c (find_methods): Update call to
8511 get_symbol_name_matcher.
8512 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
8513 initializer.
8514 * minsyms.c (lookup_minimal_symbol): Update call to
8515 get_symbol_name_matcher.
8516 (iterate_over_minimal_symbols): Likewise.
8517 * objc-lang.c (objc_language_data): Delete
8518 la_get_symbol_name_matcher initializer.
8519 * opencl-lang.c (opencl_language_data): Likewise.
8520 * p-lang.c (pascal_language_data): Likewise.
8521 * psymtab.c (psymbol_name_matches): Update call to
8522 get_symbol_name_matcher.
8523 * rust-lang.c (rust_language_data): Delete
8524 la_get_symbol_name_matcher initializer.
8525 * symtab.c (symbol_matches_search_name): Update call to
8526 get_symbol_name_matcher.
8527 (compare_symbol_name): Likewise.
8528
9a49ad8c
AB
85292020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8530
8531 * ada-lang.c (ada_language_data): Delete la_compute_program
8532 initializer.
8533 * c-lang.c (c_language_data): Likewise.
8534 (c_language::compute_program): New member function.
8535 (cplus_language_data): Delete la_compute_program initializer.
8536 (cplus_language::compute_program): New member function.
8537 (asm_language_data): Delete la_compute_program initializer.
8538 (minimal_language_data): Likewise.
8539 * c-lang.h (c_compute_program): Update comment.
8540 (cplus_compute_program): Likewise.
8541 * compile/compile-c-support.c (c_compute_program): Likewise.
8542 (cplus_compute_program): Likewise.
8543 * compile/compile.c (compile_to_object): Update call to
8544 la_compute_program.
8545 * d-lang.c (d_language_data): Delete la_compute_program
8546 initializer.
8547 * f-lang.c (f_language_data): Likewise.
8548 * go-lang.c (go_language_data): Likewise.
8549 * language.c (unknown_language_data): Likewise.
8550 (auto_language_data): Likewise.
8551 * language.h (language_data): Delete la_compute_program field.
8552 (language_defn::compute_program): New member function.
8553 * m2-lang.c (m2_language_data): Delete la_compute_program
8554 initializer.
8555 * objc-lang.c (objc_language_data): Likewise.
8556 * opencl-lang.c (opencl_language_data): Likewise.
8557 * p-lang.c (pascal_language_data): Likewise.
8558 * rust-lang.c (rust_language_data): Likewise.
8559
eff93b4d
AB
85602020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8561
8562 * ada-lang.c (ada_language_data) Delete
8563 la_class_name_from_physname initializer.
8564 * c-lang.c (c_language_data): Likewise.
8565 (cplus_language_data): Likewise.
8566 (cplus_language::class_name_from_physname): New member function.
8567 (asm_language_data): Delete la_class_name_from_physname
8568 initializer.
8569 (minimal_language_data): Likewise.
8570 * d-lang.c (d_language_data): Likewise.
8571 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
8572 method on language_defn class.
8573 (guess_full_die_structure_name): Likewise.
8574 * f-lang.c (f_language_data): Delete la_class_name_from_physname
8575 initializer.
8576 * go-lang.c (go_language_data): Likewise.
8577 * language.c (language_class_name_from_physname): Delete.
8578 (unk_lang_class_name): Delete.
8579 (unknown_language_data): Delete la_class_name_from_physname
8580 initializer.
8581 (auto_language_data): Likewise.
8582 * language.h (language_data): Delete la_class_name_from_physname
8583 field.
8584 (language_defn::class_name_from_physname): New function.
8585 (language_class_name_from_physname): Delete declaration.
8586 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
8587 initializer.
8588 * objc-lang.c (objc_language_data): Likewise.
8589 * opencl-lang.c (opencl_language_data): Likewise.
8590 * p-lang.c (pascal_language_data): Likewise.
8591 * rust-lang.c (rust_language_data): Likewise.
8592
de543742
TT
85932020-06-16 Tom Tromey <tom@tromey.com>
8594
8595 * tui/tui-data.h (STATUS_NAME): New macro.
8596 * tui/tui-layout.c (tui_remove_some_windows)
8597 (initialize_known_windows, tui_register_window)
8598 (tui_layout_split::remove_windows, initialize_layouts)
8599 (tui_new_layout_command): Don't use hard-coded window names.
8600
a350efd4
TT
86012020-06-16 Tom Tromey <tom@tromey.com>
8602
8603 PR tui/25348:
8604 * tui/tui.c (tui_ensure_readline_initialized): Rename from
8605 tui_initialize_readline. Only run once. Call rl_initialize.
8606 * tui/tui.h (tui_ensure_readline_initialized): Rename from
8607 tui_initialize_readline.
8608 * tui/tui-io.c (tui_setup_io): Call
8609 tui_ensure_readline_initialized.
8610 * tui/tui-interp.c (tui_interp::init): Update.
8611
39ec0490
TT
86122020-06-16 Tom Tromey <tom@tromey.com>
8613
8614 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
8615 Also preserve the status window.
8616
d2d1ea20
TT
86172020-06-16 Tom Tromey <tom@tromey.com>
8618
8619 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
8620 where m_window==nullptr.
8621
66920317
TT
86222020-06-15 Tom Tromey <tromey@adacore.com>
8623
8624 * windows-nat.c (windows_nat::handle_output_debug_string):
8625 Update.
8626 (windows_nat::handle_ms_vc_exception): Update.
8627 * target.h (target_read_string): Change API.
8628 * target.c (target_read_string): Change API.
8629 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
8630 Update.
8631 * solib-frv.c (frv_current_sos): Update.
8632 * solib-dsbt.c (dsbt_current_sos): Update.
8633 * solib-darwin.c (darwin_current_sos): Update.
8634 * linux-thread-db.c (inferior_has_bug): Update.
8635 * expprint.c (print_subexp_standard): Update.
8636 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
8637 (ada_exception_message_1): Update.
8638
a5d871dd
TT
86392020-06-15 Tom Tromey <tromey@adacore.com>
8640
8641 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
8642
670e35fa
TT
86432020-06-15 Tom Tromey <tromey@adacore.com>
8644
8645 * valprint.c (read_string): Update comment.
8646 * target.c (MIN): Remove.
8647 (target_read_string): Rewrite.
8648
f5272a3b
TT
86492020-06-15 Tom Tromey <tromey@adacore.com>
8650
8651 * corefile.c (read_memory_string): Remove.
8652 * ada-valprint.c (ada_value_print_ptr): Update.
8653 * ada-lang.h (ada_tag_name): Change return type.
8654 * ada-lang.c (type_from_tag): Update.
8655 (ada_tag_name_from_tsd): Change return type. Use
8656 target_read_string.
8657 (ada_tag_name): Likewise.
8658 * gdbcore.h (read_memory_string): Don't declare.
8659
2c074f49
HD
86602020-06-14 Hannes Domani <ssbssa@yahoo.de>
8661
8662 * symtab.c (rbreak_command): Ignore Windows drive colon.
8663
6a17d503
SM
86642020-06-12 Simon Marchi <simon.marchi@efficios.com>
8665
8666 * NEWS: Mention removed GDBserver host support.
8667
453c733f
NC
86682020-06-12 Nelson Chu <nelson.chu@sifive.com>
8669
8670 * features/riscv/rebuild-csr-xml.sh: Updated.
8671
2b4e6a3f
TT
86722020-06-11 Tom Tromey <tom@tromey.com>
8673
8674 PR gdb/18318:
8675 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
8676
4412332f
JG
86772020-06-09 Jonny Grant <jg@jguk.org>
86782020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
8679
8680 * main.c (captured_main_1): Don't print new line after help.
8681 (print_gdb_help): add mailing list and IRC channel information
8682 to --help. Add new lines between items in the footer. Remove
8683 quotes around bug url.
8684
2f33032a
KS
86852020-06-11 Keith Seitz <keiths@redhat.com>
8686
8687 PR gdb/21356
8688 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
8689 Resolve typedefs for type length calculations.
8690
7ab96794
TV
86912020-06-10 Tom de Vries <tdevries@suse.de>
8692
8693 PR ada/24713
8694 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
8695 (write_psymbols): Enable .gdb_index for ada.
8696 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
8697 ada.
8698
e5f3ece2
TV
86992020-06-10 Tom de Vries <tdevries@suse.de>
8700
8701 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
8702 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
8703 namei" instead of "const char *name" argument.
8704 (dw2_map_matching_symbols): Use "offset_type namei" variant of
8705 dw2_symtab_iter_init.
8706
940da03e
SM
87072020-06-08 Simon Marchi <simon.marchi@efficios.com>
8708
8709 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
8710 to use type::field and field::type instead.
8711
b6cdac4b
SM
87122020-06-08 Simon Marchi <simon.marchi@efficios.com>
8713
8714 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
8715 to use field::type instead.
8716
5d14b6e5
SM
87172020-06-08 Simon Marchi <simon.marchi@efficios.com>
8718
8719 * gdbtypes.h (struct field) <type, set_type>: New methods.
8720 Rename `type` field to...
8721 <m_type>: ... this. Change references throughout to use type or
8722 set_type methods.
8723 (FIELD_TYPE): Use field::type. Change call sites that modify
8724 the field's type to use field::set_type instead.
8725
3d967001
SM
87262020-06-08 Simon Marchi <simon.marchi@efficios.com>
8727
8728 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
8729 to use type::index_type instead.
8730
262abc0d
SM
87312020-06-08 Simon Marchi <simon.marchi@efficios.com>
8732
8733 * gdbtypes.h (struct type) <index_type, set_index_type>: New
8734 methods.
8735 (TYPE_INDEX_TYPE): Use type::index_type.
8736 * gdbtypes.c (create_array_type_with_stride): Likewise.
8737
82836c92
TT
87382020-06-07 Tom Tromey <tom@tromey.com>
8739
8740 * valprint.c (generic_val_print_float): Remove "embedded_offset"
8741 parameter.
8742 (generic_value_print): Update.
8743
940dace9
AB
87442020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8745
8746 Revert commit 982a38f60b0.
8747 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
8748
982a38f6
AB
87492020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8750
8751 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
8752 avoid use after free.
8753
82f06518
TV
87542020-06-05 Tom de Vries <tdevries@suse.de>
8755
8756 * NEWS: Fix typos.
8757
f8c41851
SM
87582020-06-04 Simon Marchi <simon.marchi@efficios.com>
8759
8760 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
8761 the per_bfd object.
8762 (dwarf2_read_debug_names): Likewise.
8763 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
8764 object when re-using a per_bfd object with an index.
8765
f9b5d5ea
TV
87662020-06-03 Tom de Vries <tdevries@suse.de>
8767
8768 PR symtab/26046
8769 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
8770 children for C++.
8771 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
8772 DW_TAG_subprogram.
8773
f6eee2d0
AB
87742020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8775
8776 * ada-lang.c (ada_language_data): Delete skip_trampoline
8777 initializer.
8778 * c-lang.c (c_language_data): Likewise.
8779 (cplus_language_data): Likewise.
8780 (cplus_language::skip_trampoline): New member function.
8781 (asm_language_data): Delete skip_trampoline initializer.
8782 (minimal_language_data): Likewise.
8783 * d-lang.c (d_language_data): Likewise.
8784 * f-lang.c (f_language_data): Likewise.
8785 * go-lang.c (go_language_data): Likewise.
8786 * language.c (unk_lang_trampoline): Delete function.
8787 (skip_language_trampoline): Update.
8788 (unknown_language_data): Delete skip_trampoline initializer.
8789 (auto_language_data): Likewise.
8790 * language.h (language_data): Delete skip_trampoline field.
8791 (language_defn::skip_trampoline): New function.
8792 * m2-lang.c (m2_language_data): Delete skip_trampoline
8793 initializer.
8794 * objc-lang.c (objc_skip_trampoline): Delete function, move
8795 implementation to objc_language::skip_trampoline.
8796 (objc_language_data): Delete skip_trampoline initializer.
8797 (objc_language::skip_trampoline): New member function with
8798 implementation from objc_skip_trampoline.
8799 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
8800 initializer.
8801 * p-lang.c (pascal_language_data): Likewise.
8802 * rust-lang.c (rust_language_data): Likewise.
8803
0a50df5d
AB
88042020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8805
8806 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
8807 (ada_language::demangle): New member function.
8808 * c-lang.c (c_language_data): Delete la_demangle initializer.
8809 (cplus_language_data): Delete la_demangle initializer.
8810 (cplus_language::demangle): New member function.
8811 (asm_language_data): Delete la_demangle initializer.
8812 (minimal_language_data): Delete la_demangle initializer.
8813 * d-lang.c (d_language_data): Delete la_demangle initializer.
8814 (d_language::demangle): New member function.
8815 * f-lang.c (f_language_data): Delete la_demangle initializer.
8816 (f_language::demangle): New member function.
8817 * go-lang.c (go_language_data): Delete la_demangle initializer.
8818 (go_language::demangle): New member function.
8819 * language.c (language_demangle): Update.
8820 (unk_lang_demangle): Delete.
8821 (unknown_language_data): Delete la_demangle initializer.
8822 (unknown_language::demangle): New member function.
8823 (auto_language_data): Delete la_demangle initializer.
8824 (auto_language::demangle): New member function.
8825 * language.h (language_data): Delete la_demangle field.
8826 (language_defn::demangle): New function.
8827 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
8828 * objc-lang.c (objc_language_data): Delete la_demangle
8829 initializer.
8830 (objc_language::demangle): New member function.
8831 * opencl-lang.c (opencl_language_data): Delete la_demangle
8832 initializer.
8833 * p-lang.c (pascal_language_data): Likewise.
8834 * rust-lang.c (rust_language_data): Likewise.
8835 (rust_language::demangle): New member function.
8836
fbfb0a46
AB
88372020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8838
8839 * ada-lang.c (ada_language_data): Delete la_print_type
8840 initializer.
8841 (ada_language::print_type): New member function.
8842 * c-lang.c (c_language_data): Delete la_print_type initializer.
8843 (c_language::print_type): New member function.
8844 (cplus_language_data): Delete la_print_type initializer.
8845 (cplus_language::print_type): New member function.
8846 (asm_language_data): Delete la_print_type initializer.
8847 (asm_language::print_type): New member function.
8848 (minimal_language_data): Delete la_print_type initializer.
8849 (minimal_language::print_type): New member function.
8850 * d-lang.c (d_language_data): Delete la_print_type initializer.
8851 (d_language::print_type): New member function.
8852 * f-lang.c (f_language_data): Delete la_print_type initializer.
8853 (f_language::print_type): New member function.
8854 * go-lang.c (go_language_data): Delete la_print_type initializer.
8855 (go_language::print_type): New member function.
8856 * language.c (unk_lang_print_type): Delete.
8857 (unknown_language_data): Delete la_print_type initializer.
8858 (unknown_language::print_type): New member function.
8859 (auto_language_data): Delete la_print_type initializer.
8860 (auto_language::print_type): New member function.
8861 * language.h (language_data): Delete la_print_type field.
8862 (language_defn::print_type): New function.
8863 (LA_PRINT_TYPE): Update.
8864 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
8865 (m2_language::print_type): New member function.
8866 * objc-lang.c (objc_language_data): Delete la_print_type
8867 initializer.
8868 (objc_language::print_type): New member function.
8869 * opencl-lang.c (opencl_print_type): Delete, implementation moved
8870 to opencl_language::print_type.
8871 (opencl_language_data): Delete la_print_type initializer.
8872 (opencl_language::print_type): New member function, implementation
8873 from opencl_print_type.
8874 * p-lang.c (pascal_language_data): Delete la_print_type
8875 initializer.
8876 (pascal_language::print_type): New member function.
8877 * rust-lang.c (rust_print_type): Delete, implementation moved to
8878 rust_language::print_type.
8879 (rust_language_data): Delete la_print_type initializer.
8880 (rust_language::print_type): New member function, implementation
8881 from rust_print_type.
8882
6f827019
AB
88832020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8884
8885 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
8886 implementation moves to...
8887 (ada_language::sniff_from_mangled_name): ...here. Update return
8888 type.
8889 (ada_language_data): Delete la_sniff_from_mangled_name
8890 initializer.
8891 * c-lang.c (c_language_data): Likewise.
8892 (cplus_language_data): Likewise.
8893 (cplus_language::sniff_from_mangled_name): New member function,
8894 implementation taken from gdb_sniff_from_mangled_name.
8895 (asm_language_data): Delete la_sniff_from_mangled_name
8896 initializer.
8897 (minimal_language_data): Likewise.
8898 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
8899 implementation moves to cplus_language::sniff_from_mangled_name.
8900 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
8901 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
8902 moves to...
8903 (d_language::sniff_from_mangled_name): ...here.
8904 (d_language_data): Delete la_sniff_from_mangled_name initializer.
8905 * f-lang.c (f_language_data): Likewise.
8906 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
8907 moves to...
8908 (go_language::sniff_from_mangled_name): ...here.
8909 (go_language_data): Delete la_sniff_from_mangled_name initializer.
8910 * language.c (language_sniff_from_mangled_name): Delete.
8911 (unknown_language_data): Delete la_sniff_from_mangled_name
8912 initializer.
8913 (auto_language_data): Likewise.
8914 * language.h (language_data): Delete la_sniff_from_mangled_name
8915 field.
8916 (language_defn::sniff_from_mangled_name): New function.
8917 (language_sniff_from_mangled_name): Delete declaration.
8918 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
8919 field.
8920 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
8921 implementation moves to...
8922 (objc_language::sniff_from_mangled_name): ...here.
8923 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
8924 * opencl-lang.c (opencl_language_data): Likewise.
8925 * p-lang.c (pascal_language_data): Likewise.
8926 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
8927 implementation moves to...
8928 (rust_language::sniff_from_mangled_name): ...here.
8929 (rust_language_data): Delete la_sniff_from_mangled_name
8930 initializer.
8931 * symtab.c (symbol_find_demangled_name): Call
8932 sniff_from_mangled_name member function.
8933
fb8006fd
AB
89342020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8935
8936 * ada-lang.c (ada_language_data): Delete la_search_name_hash
8937 initializer.
8938 * c-lang.c (c_language_data): Likewise.
8939 (cplus_language_data): Likewise.
8940 (cplus_language::search_name_hash): New member function.
8941 (asm_language_data): Delete la_search_name_hash initializer.
8942 (minimal_language_data): Likewise.
8943 * d-lang.c (d_language_data): Likewise.
8944 * dictionary.c (default_search_name_hash): Rename to...
8945 (language_defn::search_name_hash): ...this.
8946 * f-lang.c (f_language_data): Likewise.
8947 (f_language::search_name_hash): New member function.
8948 * go-lang.c (go_language_data): Delete la_search_name_hash
8949 initializer.
8950 * language.c (unknown_language_data): Likewise.
8951 (auto_language_data): Likewise.
8952 * language.h (struct language_data): Delete la_search_name_hash
8953 field.
8954 (language_defn::search_name_hash): Declare new member function.
8955 (default_search_name_hash): Delete declaration.
8956 * m2-lang.c (m2_language_data): Delete la_search_name_hash
8957 initializer.
8958 * objc-lang.c (objc_language_data): Likewise.
8959 * opencl-lang.c (opencl_language_data): Likewise.
8960 * p-lang.c (pascal_language_data): Likewise.
8961 * rust-lang.c (rust_language_data): Likewise.
8962 * symtab.c (search_name_hash): Update call.
8963
8e25bafe
AB
89642020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8965
8966 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
8967 initializer.
8968 * c-lang.c (class compile_instance): Declare.
8969 (c_language_data): Delete la_get_compile_instance initializer.
8970 (c_language::get_compile_instance): New member function.
8971 (cplus_language_data): Delete la_get_compile_instance initializer.
8972 (cplus_language::get_compile_instance): New member function.
8973 (asm_language_data): Delete la_get_compile_instance initializer.
8974 (minimal_language_data): Likewise.
8975 * c-lang.h (c_get_compile_context): Update comment.
8976 (cplus_get_compile_context): Update comment.
8977 * compile/compile.c (compile_to_object): Update calls, don't rely
8978 on function pointer being NULL.
8979 * d-lang.c (d_language_data): Delete la_get_compile_instance
8980 initializer.
8981 * f-lang.c (f_language_data): Likewise.
8982 * go-lang.c (go_language_data): Likewise.
8983 * language.c (unknown_language_data): Likewise.
8984 (auto_language_data): Likewise.
8985 * language.h (language_data): Delete la_get_compile_instance field.
8986 (language_defn::get_compile_instance): New member function.
8987 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
8988 initializer.
8989 * objc-lang.c (objc_language_data): Likewise.
8990 * opencl-lang.c (opencl_language_data): Likewise.
8991 * p-lang.c (pascal_language_data): Likewise.
8992 * rust-lang.c (rust_language_data): Likewise.
8993
4009ee92
AB
89942020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8995
8996 * ada-lang.c (ada_add_all_symbols): Update comment.
8997 (ada_iterate_over_symbols): Delete, move implementation to...
8998 (ada_language::iterate_over_symbols): ...here, a new member
8999 function, rewrite to use range based for loop.
9000 (ada_language_data): Delete la_iterate_over_symbols initializer.
9001 * c-lang.c (c_language_data): Likewise.
9002 (cplus_language_data): Likewise.
9003 (asm_language_data): Likewise.
9004 (minimal_language_data): Likewise.
9005 * d-lang.c (d_language_data): Likewise.
9006 * f-lang.c (f_language_data): Likewise.
9007 * go-lang.c (go_language_data): Likewise.
9008 * language.c (unknown_language_data): Likewise.
9009 (auto_language_data): Likewise.
9010 * language.h (language_data): Delete la_iterate_over_symbols field.
9011 (language_defn::iterate_over_symbols): New member function.
9012 (LA_ITERATE_OVER_SYMBOLS): Update.
9013 * linespec.c (iterate_over_all_matching_symtabs): Update.
9014 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
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
54f4ca46
AB
90212020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9022
9023 * ada-lang.c (ada_language_data): Delete
9024 la_lookup_transparent_type initializer.
9025 * c-lang.c (c_language_data): Likewise.
9026 (cplus_language_data): Likewise.
9027 (cplus_language::lookup_transparent_type): New member function.
9028 (asm_language_data): Delete la_lookup_transparent_type
9029 initializer.
9030 (minimal_language_data): Likewise.
9031 * d-lang.c (d_language_data): Likewise.
9032 * f-lang.c (f_language_data): Likewise.
9033 * go-lang.c (go_language_data): Likewise.
9034 * language.c (unknown_language_data): Likewise.
9035 (auto_language_data): Likewise.
9036 * language.h (struct language_data): Delete
9037 la_lookup_transparent_type field.
9038 (language_defn::lookup_transparent_type): New member function.
9039 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
9040 initializer.
9041 * objc-lang.c (objc_language_data): Likewise.
9042 * opencl-lang.c (opencl_language_data): Likewise.
9043 * p-lang.c (pascal_language_data): Likewise.
9044 * rust-lang.c (rust_language_data): Likewise.
9045 * symtab.c (symbol_matches_domain): Update call.
9046
1fb314aa
AB
90472020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9048
9049 * ada-lang.c (ada_language_arch_info): Delete function, move
9050 implementation to...
9051 (ada_language::language_arch_info): ...here, a new member
9052 function.
9053 (ada_language_data): Delete la_language_arch_info.
9054 * c-lang.c (c_language_data): Likewise.
9055 (c_language::language_arch_info): New member function.
9056 (cplus_language_arch_info): Delete function, move
9057 implementation to...
9058 (cplus_language::language_arch_info): ...here, a new member
9059 function.
9060 (cplus_language_data): Delete la_language_arch_info.
9061 (asm_language_data): Likewise.
9062 (asm_language::language_arch_info): New member function.
9063 (minimal_language_data): Delete la_language_arch_info.
9064 (minimal_language::language_arch_info): New member function.
9065 * d-lang.c (d_language_arch_info): Delete function, move
9066 implementation to...
9067 (d_language::language_arch_info): ...here, a new member
9068 function.
9069 (d_language_data): Delete la_language_arch_info.
9070 * f-lang.c (f_language_arch_info): Delete function, move
9071 implementation to...
9072 (f_language::language_arch_info): ...here, a new member
9073 function.
9074 (f_language_data): Delete la_language_arch_info.
9075 * go-lang.c (go_language_arch_info): Delete function, move
9076 implementation to...
9077 (go_language::language_arch_info): ...here, a new member
9078 function.
9079 (go_language_data): Delete la_language_arch_info.
9080 * language.c (unknown_language_data): Likewise.
9081 (unknown_language::language_arch_info): New member function.
9082 (auto_language_data): Delete la_language_arch_info.
9083 (auto_language::language_arch_info): New member function.
9084 (language_gdbarch_post_init): Update call to
9085 la_language_arch_info.
9086 * language.h (language_data): Delete la_language_arch_info
9087 function pointer.
9088 (language_defn::language_arch_info): New function.
9089 * m2-lang.c (m2_language_arch_info): Delete function, move
9090 implementation to...
9091 (m2_language::language_arch_info): ...here, a new member
9092 function.
9093 (m2_language_data): Delete la_language_arch_info.
9094 * objc-lang.c (objc_language_arch_info): Delete function, move
9095 implementation to...
9096 (objc_language::language_arch_info): ...here, a new member
9097 function.
9098 (objc_language_data): Delete la_language_arch_info.
9099 * opencl-lang.c (opencl_language_arch_info): Delete function, move
9100 implementation to...
9101 (opencl_language::language_arch_info): ...here, a new member
9102 function.
9103 (opencl_language_data): Delete la_language_arch_info.
9104 * p-lang.c (pascal_language_arch_info): Delete function, move
9105 implementation to...
9106 (pascal_language::language_arch_info): ...here, a new member
9107 function.
9108 (pascal_language_data): Delete la_language_arch_info.
9109 * rust-lang.c (rust_language_arch_info): Delete function, move
9110 implementation to...
9111 (rust_language::language_arch_info): ...here, a new member
9112 function.
9113 (rust_language_data): Delete la_language_arch_info.
9114
48448202
AB
91152020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9116
9117 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
9118 initializer.
9119 * c-lang.c (c_language_data): Likewise.
9120 (cplus_language_data): Likewise.
9121 (cplus_language::pass_by_reference_info): New method.
9122 (asm_language_data): Delete la_pass_by_reference initializer.
9123 (minimal_language_data): Likewise.
9124 * cp-abi.c (cp_pass_by_reference): Remove use of
9125 default_pass_by_reference.
9126 * d-lang.c (d_language_data): Likewise.
9127 * f-lang.c (f_language_data): Likewise.
9128 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
9129 default_pass_by_reference.
9130 * go-lang.c (go_language_data): Likewise.
9131 * language.c (language_pass_by_reference): Update.
9132 (default_pass_by_reference): Delete.
9133 (unknown_language_data): Delete la_pass_by_reference
9134 initializer.
9135 (auto_language_data): Likewise.
9136 * language.h (struct language_data): Delete la_pass_by_reference
9137 field.
9138 (language_defn::pass_by_reference_info): New member function.
9139 (default_pass_by_reference): Delete declaration.
9140 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
9141 initializer.
9142 * objc-lang.c (objc_language_data): Likewise.
9143 * opencl-lang.c (opencl_language_data): Likewise.
9144 * p-lang.c (pascal_language_data): Likewise.
9145 * rust-lang.c (rust_language_data): Likewise.
9146
15e5fd35
AB
91472020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9148
9149 * ada-lang.c (ada_read_var_value): Delete function, move
9150 implementation to...
9151 (ada_language::read_var_value): ...here.
9152 (ada_language_data): Delete la_read_var_value initializer.
9153 * c-lang.c (c_language_data): Likewise.
9154 (cplus_language_data): Likewise.
9155 (minimal_language_data): Likewise.
9156 * d-lang.c (d_language_data): Likewise.
9157 * f-lang.c (f_language_data): Likewise.
9158 * findvar.c (default_read_var_value): Rename to...
9159 (language_defn::read_var_value): ...this.
9160 * findvar.c (read_var_value): Update header comment, and change to
9161 call member function instead of function pointer.
9162 * go-lang.c (go_language_data): Likewise.
9163 * language.c (unknown_language_data): Delete la_read_var_value
9164 initializer.
9165 (auto_language_data): Likewise.
9166 * language.h (struct language_data): Delete la_read_var_value
9167 field.
9168 (language_defn::read_var_value): New member function.
9169 (default_read_var_value): Delete declaration.
9170 * m2-lang.c (m2_language_data): Delete la_read_var_value
9171 initializer.
9172 * objc-lang.c (objc_language_data): Likewise.
9173 * opencl-lang.c (opencl_language_data): Likewise.
9174 * p-lang.c (pascal_language_data): Likewise.
9175 * rust-lang.c (rust_language_data): Likewise.
9176 * value.h (default_read_var_value): Delete declaration.
9177
5bd40f2a
AB
91782020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9179
9180 * ada-lang.c (ada_print_array_index): Delete function, move
9181 implementation to...
9182 (ada_language::print_array_index): ...here.
9183 (ada_language_data): Delete la_print_array_index initializer.
9184 * c-lang.c (c_language_data): Likewise.
9185 (cplus_language_data): Likewise.
9186 (minimal_language_data): Likewise.
9187 * d-lang.c (d_language_data): Likewise.
9188 * f-lang.c (f_language_data): Likewise.
9189 * go-lang.c (go_language_data): Likewise.
9190 * language.c (default_print_array_index): Delete function, move
9191 implementation to...
9192 (language_defn::print_array_index): ...here.
9193 (unknown_language_data): Delete la_print_array_index initializer.
9194 (auto_language_data): Likewise.
9195 * language.h (struct language_data): Delete la_print_array_index
9196 field.
9197 (language_defn::print_array_index): New member function.
9198 (LA_PRINT_ARRAY_INDEX): Update.
9199 (default_print_array_index): Delete declaration.
9200 * m2-lang.c (m2_language_data): Delete la_print_array_index
9201 initializer.
9202 * objc-lang.c (objc_language_data): Likewise.
9203 * opencl-lang.c (opencl_language_data): Likewise.
9204 * p-lang.c (pascal_language_data): Likewise.
9205 * rust-lang.c (rust_language_data): Likewise.
9206
0874fd07
AB
92072020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9208
9209 * gdb/ada-lang.c (ada_language_defn): Convert to...
9210 (ada_language_data): ...this.
9211 (class ada_language): New class.
9212 (ada_language_defn): New static global.
9213 * gdb/c-lang.c (c_language_defn): Convert to...
9214 (c_language_data): ...this.
9215 (class c_language): New class.
9216 (c_language_defn): New static global.
9217 (cplus_language_defn): Convert to...
9218 (cplus_language_data): ...this.
9219 (class cplus_language): New class.
9220 (cplus_language_defn): New static global.
9221 (asm_language_defn): Convert to...
9222 (asm_language_data): ...this.
9223 (class asm_language): New class.
9224 (asm_language_defn): New static global.
9225 (minimal_language_defn): Convert to...
9226 (minimal_language_data): ...this.
9227 (class minimal_language): New class.
9228 (minimal_language_defn): New static global.
9229 * gdb/d-lang.c (d_language_defn): Convert to...
9230 (d_language_data): ...this.
9231 (class d_language): New class.
9232 (d_language_defn): New static global.
9233 * gdb/f-lang.c (f_language_defn): Convert to...
9234 (f_language_data): ...this.
9235 (class f_language): New class.
9236 (f_language_defn): New static global.
9237 * gdb/go-lang.c (go_language_defn): Convert to...
9238 (go_language_data): ...this.
9239 (class go_language): New class.
9240 (go_language_defn): New static global.
9241 * gdb/language.c (unknown_language_defn): Remove declaration.
9242 (current_language): Initialize to nullptr, real initialization is
9243 moved to _initialize_language.
9244 (languages): Delete global.
9245 (language_defn::languages): Define.
9246 (set_language_command): Use language_defn::languages.
9247 (set_language): Likewise.
9248 (range_error): Likewise.
9249 (language_enum): Likewise.
9250 (language_def): Likewise.
9251 (add_set_language_command): Use language_def::languages for the
9252 language list, and language_def to lookup language pointers.
9253 (skip_language_trampoline): Use language_defn::languages.
9254 (unknown_language_defn): Convert to...
9255 (unknown_language_data): ...this.
9256 (class unknown_language): New class.
9257 (unknown_language_defn): New static global.
9258 (auto_language_defn): Convert to...
9259 (auto_language_data): ...this.
9260 (class auto_language): New class.
9261 (auto_language_defn): New static global.
9262 (language_gdbarch_post_init): Use language_defn::languages.
9263 (_initialize_language): Initialize current_language.
9264 * gdb/language.h (struct language_defn): Rename to...
9265 (struct language_data): ...this.
9266 (struct language_defn): New.
9267 (auto_language_defn): Delete.
9268 (unknown_language_defn): Delete.
9269 (minimal_language_defn): Delete.
9270 (ada_language_defn): Delete.
9271 (asm_language_defn): Delete.
9272 (c_language_defn): Delete.
9273 (cplus_language_defn): Delete.
9274 (d_language_defn): Delete.
9275 (f_language_defn): Delete.
9276 (go_language_defn): Delete.
9277 (m2_language_defn): Delete.
9278 (objc_language_defn): Delete.
9279 (opencl_language_defn): Delete.
9280 (pascal_language_defn): Delete.
9281 (rust_language_defn): Delete.
9282 * gdb/m2-lang.c (m2_language_defn): Convert to...
9283 (m2_language_data): ...this.
9284 (class m2_language): New class.
9285 (m2_language_defn): New static global.
9286 * gdb/objc-lang.c (objc_language_defn): Convert to...
9287 (objc_language_data): ...this.
9288 (class objc_language): New class.
9289 (objc_language_defn): New static global.
9290 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
9291 (opencl_language_data): ...this.
9292 (class opencl_language): New class.
9293 (opencl_language_defn): New static global.
9294 * gdb/p-lang.c (pascal_language_defn): Convert to...
9295 (pascal_language_data): ...this.
9296 (class pascal_language): New class.
9297 (pascal_language_defn): New static global.
9298 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
9299 language pointer, update comment format.
9300 * gdb/rust-lang.c (rust_language_defn): Convert to...
9301 (rust_language_data): ...this.
9302 (class rust_language): New class.
9303 (rust_language_defn): New static global.
9304
1313c56e
AB
93052020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
9306
9307 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
9308 member variable.
9309 <m_stmt_at_address>: New member variable.
9310 (lnp_state_machine::record_line): Don't record some lines, update
9311 tracking of is_stmt at the same address.
9312 (lnp_state_machine::lnp_state_machine): Initialise new member
9313 variables.
9314
b7ed9f3d
ST
93152020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
9316
9317 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
9318 "-include gnu-nat-mig.h".
9319 * gnu-nat-mig.h: New file.
9320 * gnu-nat.c: Include "gnu-nat-mig.h".
9321 (exc_server, msg_reply_server, notify_server,
9322 process_reply_server): Remove declarations.
9323
14a8ad62
ST
93242020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9325
9326 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
9327 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
9328 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
9329 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
9330 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
9331 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
9332 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
9333 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
9334 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
9335 to gnu_nat_target class.
9336 * gnu-nat.c: Likewise.
9337 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
9338 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
9339 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
9340 object.
9341 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
9342 instead of `gnu_target'.
9343
0af5e106
ST
93442020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9345
9346 * i386-gnu-tdep.c: Include "gdbcore.h"
9347 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
9348 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
9349 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
9350 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
9351 i386_gnu_sigcontext_addr): New functions
9352 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
9353 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
9354 tdep.
9355
078f2fc9
ST
93562020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9357
9358 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
9359 before fork_inferior call. Avoid calling it if target_is_pushed returns
9360 true.
9361
53dff92c
ST
93622020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9363
9364 * gnu-nat.h (gnu_target): New variable declaration.
9365 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
9366 gnu_target.
9367 * gnu-nat.c (gnu_target): New variable.
9368 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
9369 add_thread_silent, and add_thread calls.
9370 (gnu_nat_target::create_inferior): Pass gnu_target to
9371 add_thread_silent, thread_change_ptid call.
9372 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
9373 call.
9374
5a8b8627
ST
93752020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9376
9377 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
9378 (gnu_nat_target::find_memory_regions): Remove unused
9379 `old_address' variable.
9380
366f550a
ST
93812020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9382
9383 * gnu-nat.c: Include "gdbarch.h".
9384
f14871bf
ST
93852020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9386
9387 * reply_mig_hack.awk (Error return): Cast function through
9388 void *, to bypass compiler function call check.
9389
c6887cfb
ST
93902020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9391
9392 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
9393 $(srcdir)/reply_mig_hack.awk.
9394
6930bffe
ST
93952020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9396
9397 * gnu-nat.h (gnu_debug_flag): Set type to bool.
9398
112c22ed
JG
93992020-05-30 Jonny Grant <jg@jguk.org>
9400
9401 * configure.ac (ACX_BUGURL): change bug URL to https.
9402
f68f85b5
PA
94032020-05-30 Pedro Alves <palves@redhat.com>
9404
9405 * cp-support.c (replace_typedefs_template): New.
9406 (replace_typedefs_qualified_name): Handle
9407 DEMANGLE_COMPONENT_TEMPLATE.
9408
976ca316
SM
94092020-05-29 Simon Marchi <simon.marchi@efficios.com>
9410
9411 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
9412 dwarf2/index-cache.h, dwarf2/index-write.c,
9413 dwarf2/index-write.h, dwarf2/line-header.c,
9414 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
9415 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
9416 variables and fields from `dwarf2_per_objfile` to just
9417 `per_objfile` throughout.
9418
989ade05
SM
94192020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
9420
9421 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9422 <push_dwarf_reg_entry_value>: Add comment.
9423
c47bae85
KB
94242020-05-28 Kevin Buettner <kevinb@redhat.com>
9425 Keith Seitz <keiths@redhat.com>
9426
9427 * python/python.c (do_start_initialization): Call PyEval_SaveThread
9428 instead of PyEval_ReleaseLock.
9429 (class gdbpy_gil): Move to earlier in file.
9430 (finalize_python): Set gdb_python_initialized.
9431 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
9432 when not initialized.
9433
44486dcf
SM
94342020-05-28 Simon Marchi <simon.marchi@efficios.com>
9435
9436 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9437 <push_dwarf_reg_entry_value>: Remove assert. Override
9438 per_objfile with caller_per_objfile.
9439
f030440d
TV
94402020-05-28 Tom de Vries <tdevries@suse.de>
9441
9442 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
9443 PR gold/15646 workaround to symbol kind "type".
9444
f0fbb768
TT
94452020-05-27 Tom Tromey <tromey@adacore.com>
9446
9447 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
9448
af0b2a3e
TT
94492020-05-27 Tom Tromey <tromey@adacore.com>
9450
9451 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
9452 Use htab_find_with_hash.
9453 <add_abbrev>: Remove "abbrev_number" parameter.
9454 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
9455 "abbrev_number" parameter. Use htab_find_slot_with_hash.
9456 (hash_abbrev): Add comment.
9457 (abbrev_table::lookup_abbrev): Move to header file.
9458 (abbrev_table::read): Update.
9459
7d00ffec
TT
94602020-05-27 Tom Tromey <tromey@adacore.com>
9461
9462 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
9463 method.
9464 <canonical_name>: New member.
9465 <raw_name>: Rename from "name".
9466 (partial_die_info): Initialize canonical_name.
9467 (scan_partial_symbols): Check raw_name.
9468 (partial_die_parent_scope, partial_die_full_name)
9469 (add_partial_symbol, add_partial_subprogram)
9470 (add_partial_enumeration, load_partial_dies): Use "name" method.
9471 (partial_die_info::name): New method.
9472 (partial_die_info::read, guess_partial_die_structure_name)
9473 (partial_die_info::fixup): Update.
9474
697bba18
TT
94752020-05-27 Tom Tromey <tromey@adacore.com>
9476
9477 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
9478 <get_ref_die_offset>: Inline.
9479 <get_ref_die_offset_complaint>: New method.
9480 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
9481 (attribute::get_ref_die_offset_complaint): Rename from
9482 get_ref_die_offset. Just issue complaint.
9483
c17ace43
HD
94842020-05-27 Hannes Domani <ssbssa@yahoo.de>
9485
9486 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
9487
96445f0b
HD
94882020-05-27 Hannes Domani <ssbssa@yahoo.de>
9489
9490 * exec.c (exec_file_attach): Use errno value of first openp failure.
9491
ac637ec3
HD
94922020-05-27 Hannes Domani <ssbssa@yahoo.de>
9493
9494 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
9495 Don't close thread handle.
9496
17ee85fc
TT
94972020-05-27 Tom Tromey <tom@tromey.com>
9498 Simon Marchi <simon.marchi@efficios.com>
9499
9500 * objfiles.h (struct objfile) <partial_symtabs>: Now a
9501 shared_ptr.
9502 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
9503 member.
9504 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
9505 dwarf2_per_bfd_objfile_data_key>: New globals.
9506 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
9507 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
9508 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
9509 shared.
9510 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
9511 short-circuit when sharing.
9512 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
9513 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
9514
39b16f87
SM
95152020-05-27 Simon Marchi <simon.marchi@efficios.com>
9516
9517 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
9518 to...
9519 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
9520 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
9521
fcf23d5b
SM
95222020-05-27 Simon Marchi <simon.marchi@efficios.com>
9523
9524 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
9525 build_name_components, find_name_components_bounds>:
9526 Add per_objfile parameter.
9527 (struct mapped_index) <symbol_name_at>: Likewise.
9528 (struct mapped_debug_names): Remove constructor.
9529 <dwarf2_per_objfile>: Remove field.
9530 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
9531 (mapped_index_base::find_name_components_bounds,
9532 mapped_index_base::build_name_components,
9533 dw2_expand_symtabs_matching_symbol): Likewise.
9534 (class mock_mapped_index) <symbol_name_at>: Likewise.
9535 (check_match): Likewise.
9536 (check_find_bounds_finds): Likewise.
9537 (test_mapped_index_find_name_component_bounds): Update.
9538 (CHECK_MATCH): Update.
9539 (dw2_expand_symtabs_matching): Update.
9540 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
9541 per_objfile parameter.
9542 <find_vec_in_debug_names>: Likewise.
9543 <m_per_objfile>: New field.
9544 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
9545 parameter.
9546 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
9547 (dw2_debug_names_iterator::next): Update.
9548 (dw2_debug_names_lookup_symbol): Update.
9549 (dw2_debug_names_expand_symtabs_for_function): Update.
9550 (dw2_debug_names_map_matching_symbols): Update.
9551 (dw2_debug_names_expand_symtabs_matching): Update.
9552 (dwarf2_read_debug_names): Update.
9553
7188ed02
SM
95542020-05-27 Simon Marchi <simon.marchi@efficios.com>
9555
9556 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
9557 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
9558 move to dwarf2_per_objfile.
9559 <read_in_chain>: Remove.
9560 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
9561 remove_all_cus, age_comp_units>: New methods.
9562 <m_dwarf2_cus>: New member.
9563 (struct dwarf2_per_cu_data) <cu>: Remove.
9564 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
9565 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
9566 moved to methods of dwarf2_per_objfile.
9567 (dwarf2_clear_marks): Remove.
9568 (dwarf2_queue_item::~dwarf2_queue_item): Update.
9569 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
9570 (dwarf2_per_bfd::free_cached_comp_units): Remove.
9571 (dwarf2_per_objfile::remove_all_cus): New.
9572 (class free_cached_comp_units) <~free_cached_comp_units>:
9573 Update.
9574 (load_cu): Update.
9575 (dw2_do_instantiate_symtab): Adjust.
9576 (fill_in_sig_entry_from_dwo_entry): Adjust.
9577 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9578 (cutu_reader::cutu_reader): Likewise.
9579 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
9580 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
9581 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
9582 and dwarf2_per_objfile::age_comp_units.
9583 (load_partial_comp_unit): Update.
9584 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
9585 (process_queue): Likewise.
9586 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
9587 backlink.
9588 (dwarf2_read_addr_index): Likewise.
9589 (follow_die_offset): Likewise.
9590 (dwarf2_fetch_die_loc_sect_off): Likewise.
9591 (dwarf2_fetch_constant_bytes): Likewise.
9592 (dwarf2_fetch_die_type_sect_off): Likewise.
9593 (follow_die_sig_1): Likewise.
9594 (load_full_type_unit): Likewise.
9595 (read_signatured_type): Likewise.
9596 (dwarf2_cu::dwarf2_cu): Don't set cu field.
9597 (dwarf2_cu::~dwarf2_cu): Remove.
9598 (dwarf2_per_objfile::get_cu): New.
9599 (dwarf2_per_objfile::set_cu): New.
9600 (age_cached_comp_units): Rename to...
9601 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
9602 to std::unordered_map.
9603 (free_one_cached_comp_unit): Rename to...
9604 (dwarf2_per_objfile::remove_cu): ... this. Adjust
9605 to std::unordered_map.
9606 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
9607 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
9608 a dwarf2_per_objfile in data.
9609 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
9610 (dwarf2_clear_marks): Remove.
9611
2e671100
SM
96122020-05-27 Simon Marchi <simon.marchi@efficios.com>
9613
9614 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
9615 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
9616 (init_tu_and_read_dwo_dies): Likewise.
9617 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
9618 (cutu_reader::cutu_reader): Likewise.
9619 (load_partial_comp_unit): Likewise.
9620 (process_psymtab_comp_unit): Update.
9621 (build_type_psymtabs_1): Update.
9622 (process_skeletonless_type_unit): Update.
9623 (load_full_comp_unit): Update.
9624 (find_partial_die): Update.
9625 (dwarf2_read_addr_index): Update.
9626 (read_signatured_type): Update.
9627
2e6a9f79
SM
96282020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9629
9630 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
9631 m_header_read_in>: New fields.
9632 <get_header>: New method.
9633 * dwarf2/read.c (per_cu_header_read_in): Remove.
9634 (dwarf2_per_cu_data::get_header): New.
9635 (dwarf2_per_cu_data::addr_size): Update.
9636 (dwarf2_per_cu_data::offset_size): Update.
9637 (dwarf2_per_cu_data::ref_addr_size): Update.
9638
1b555f17
SM
96392020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9640
9641 * dwarf2/read.c (load_cu): Return dwarf2_cu.
9642 (dw2_do_instantiate_symtab): Update.
9643 (queue_and_load_all_dwo_tus): Change parameter from
9644 dwarf2_per_cu_data to dwarf2_cu.
9645 (dwarf2_fetch_die_loc_sect_off): Update.
9646 (dwarf2_fetch_constant_bytes): Update.
9647 (dwarf2_fetch_die_type_sect_off): Update.
9648
8fc0b21d
SM
96492020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9650
9651 * dwarf2/read.c (process_full_comp_unit,
9652 process_full_type_unit): Remove per_cu, per_objfile paramters.
9653 Add dwarf2_cu parameter.
9654 (process_queue): Update.
9655
168c9250
SM
96562020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9657
9658 * dwarf2/read.c (create_cu_from_index_list): Replace
9659 dwarf2_per_objfile parameter with dwarf2_per_bfd.
9660 (create_cus_from_index_list): Likewise.
9661 (create_cus_from_index): Likewise.
9662 (create_signatured_type_table_from_index): Likewise.
9663 (create_cus_from_debug_names_list): Likewise.
9664 (create_cus_from_debug_names): Likewise.
9665 (dwarf2_read_gdb_index): Update.
9666 (dwarf2_read_debug_names): Update.
9667
e286671b
TT
96682020-05-27 Tom Tromey <tom@tromey.com>
9669 Simon Marchi <simon.marchi@efficios.com>
9670
9671 * dwarf2/read.h (struct dwarf2_per_objfile)
9672 <get_type_for_signatured_type, set_type_for_signatured_type>:
9673 New methods.
9674 <m_type_map>: New member.
9675 (struct signatured_type) <type>: Remove.
9676 * dwarf2/read.c
9677 (dwarf2_per_objfile::get_type_for_signatured_type,
9678 dwarf2_per_objfile::set_type_for_signatured_type): New.
9679 (get_signatured_type): Use new methods.
9680
8adb8487
TT
96812020-05-27 Tom Tromey <tom@tromey.com>
9682 Simon Marchi <simon.marchi@efficios.com>
9683
9684 * dwarf2/read.h (struct type_unit_group_unshareable): New.
9685 (struct dwarf2_per_objfile) <type_units>: New member.
9686 <get_type_unit_group_unshareable>: New method.
9687 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
9688 num_symtabs, symtabs>: Remove; move to
9689 type_unit_group_unshareable.
9690 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
9691 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
9692 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
9693
127bbf4b
SM
96942020-05-27 Simon Marchi <simon.marchi@efficios.com>
9695
9696 * dwarf2/read.h (struct dwarf2_per_cu_data):
9697 <dwarf2_per_objfile>: Remove.
9698 * dwarf2/read.c (create_cu_from_index_list): Don't assign
9699 dwarf2_per_objfile.
9700 (create_signatured_type_table_from_index): Likewise.
9701 (create_signatured_type_table_from_debug_names): Likewise.
9702 (create_debug_type_hash_table): Likewise.
9703 (fill_in_sig_entry_from_dwo_entry): Likewise.
9704 (create_type_unit_group): Likewise.
9705 (read_comp_units_from_section): Likewise.
9706 (create_cus_hash_table): Likewise.
9707
f6e649dd
SM
97082020-05-27 Simon Marchi <simon.marchi@efficios.com>
9709
9710 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
9711 dwarf2_per_cu_data::dwarf2_per_objfile.
9712 (compute_compunit_symtab_includes): Likewise.
9713 (dwarf2_cu::start_symtab): Likewise.
9714
aa66c379
SM
97152020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9716
9717 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
9718 parameter.
9719 * dwarf2/read.c (get_die_type_at_offset): Likewise.
9720 (read_namespace_alias): Update.
9721 (lookup_die_type): Update.
9722 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
9723 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
9724 Update.
9725 (disassemble_dwarf_expression): Update.
9726
120ce1b5
SM
97272020-05-27 Simon Marchi <simon.marchi@efficios.com>
9728
9729 * dwarf2/read.h (struct dwarf2_queue_item): Add
9730 dwarf2_per_objfile parameter, assign new parameter.
9731 <per_objfile>: New field.
9732 * dwarf2/read.c (free_one_cached_comp_unit): Add
9733 dwarf2_per_objfile parameter.
9734 (queue_comp_unit): Likewise.
9735 (dw2_do_instantiate_symtab): Update.
9736 (process_psymtab_comp_unit): Update.
9737 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
9738 (process_imported_unit_die): Update.
9739 (queue_and_load_dwo_tu): Update.
9740 (follow_die_offset): Update.
9741 (follow_die_sig_1): Update.
9742
9f47c707
SM
97432020-05-27 Simon Marchi <simon.marchi@efficios.com>
9744
9745 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
9746 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
9747 (read_call_site_scope): Assign per_objfile.
9748 (dwarf2_per_cu_data::objfile): Remove.
9749 * gdbtypes.h (struct call_site) <per_objfile>: New member.
9750 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
9751 dwarf2_per_objfile parameter.
9752 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
9753 dwarf2_per_objfile parameter.
9754 (dwarf_expr_reg_to_entry_parameter): Add output
9755 dwarf2_per_objfile parameter.
9756 (locexpr_get_frame_base): Update.
9757 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
9758 <push_dwarf_reg_entry_value>: Update.
9759 <call_site_to_target_addr>: Update.
9760 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
9761 parameter.
9762 (value_of_dwarf_reg_entry): Update.
9763 (rw_pieced_value): Update.
9764 (indirect_synthetic_pointer): Update.
9765 (dwarf2_evaluate_property): Update.
9766 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
9767 parameter.
9768 (locexpr_read_variable): Update.
9769 (locexpr_get_symbol_read_needs): Update.
9770 (loclist_read_variable): Update.
9771
14095eb3
SM
97722020-05-27 Simon Marchi <simon.marchi@efficios.com>
9773
9774 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
9775 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9776 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
9777 parameter.
9778 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
9779 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9780 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
9781 parameter.
9782 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
9783 sect_variable_value): Add dwarf2_per_objfile parameter.
9784 (class dwarf_evaluate_loc_desc) <dwarf_call,
9785 dwarf_variable_value>: Update.
9786 (fetch_const_value_from_synthetic_pointer): Add
9787 dwarf2_per_objfile parameter.
9788 (fetch_const_value_from_synthetic_pointer): Update.
9789 (coerced_pieced_ref): Update.
9790 (class symbol_needs_eval_context) <dwarf_call,
9791 dwarf_variable_value>: Update.
9792 (dwarf2_compile_expr_to_ax): Update.
9793
3c3cd3d4
SM
97942020-05-27 Simon Marchi <simon.marchi@efficios.com>
9795
9796 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
9797 parameter.
9798 (dwarf2_evaluate_loc_desc_full): Update.
9799
82ca3f51
SM
98002020-05-27 Simon Marchi <simon.marchi@efficios.com>
9801
9802 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
9803 parameter.
9804 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
9805 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
9806 dwarf2_per_objfile parameter.
9807 (decode_debug_loc_dwo_addresses): Likewise.
9808 (dwarf2_find_location_expression): Update.
9809 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
9810 (locexpr_describe_location_piece): Add dwarf2_per_objfile
9811 parameter.
9812 (disassemble_dwarf_expression): Add dwarf2_per_objfile
9813 parameter.
9814 (locexpr_describe_location_1): Likewise.
9815 (locexpr_describe_location): Update.
9816
4b167ea1
SM
98172020-05-27 Simon Marchi <simon.marchi@efficios.com>
9818
9819 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
9820 Remove.
9821 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
9822 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
9823 (dwarf2_compile_property_to_c): Update.
9824 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
9825 use text offset from objfile.
9826 (locexpr_tracepoint_var_ref): Update.
9827 (locexpr_generate_c_location): Update.
9828 (loclist_describe_location): Update.
9829 (loclist_tracepoint_var_ref): Update.
9830 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
9831 dwarf2_per_objfile parameter.
9832 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
9833 use text offset from objfile.
9834 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
9835
89b07335
SM
98362020-05-27 Simon Marchi <simon.marchi@efficios.com>
9837
9838 * dwarf2/expr.h (struct dwarf_expr_context)
9839 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
9840 <offset>: Remove.
9841 <per_objfile>: New member.
9842 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
9843 dwarf2_per_objfile parameter. Don't set offset, set
9844 per_objfile.
9845 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
9846 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
9847 a dwarf2_per_objfile object instead of an offset.
9848 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
9849 constructor.
9850 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
9851 to dwarf2_expr_executor constructor. Don't set offset.
9852 (dwarf2_fetch_cfa_info): Update.
9853 (struct dwarf2_frame_cache) <text_offset>: Remove.
9854 <per_objfile>: New field.
9855 (dwarf2_frame_cache): Update.
9856 (dwarf2_frame_prev_register): Update.
9857 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9858 <dwarf_evaluate_loc_desc>: Add constructor.
9859 (dwarf2_evaluate_loc_desc_full): Update.
9860 (dwarf2_locexpr_baton_eval): Update.
9861 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
9862 Add constructor.
9863 (dwarf2_loc_desc_get_symbol_read_needs): Update.
9864
293e7e51
SM
98652020-05-27 Simon Marchi <simon.marchi@efficios.com>
9866
9867 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
9868 addr_sized_int_type>: Move to dwarf2_cu.
9869 <int_type>: Move to dwarf2_per_objfile.
9870 (struct dwarf2_per_objfile) <int_type>: Move here.
9871 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
9872 addr_sized_int_type>: Move here.
9873 (read_func_scope): Update.
9874 (read_array_type): Update.
9875 (read_tag_string_type): Update.
9876 (attr_to_dynamic_prop): Update.
9877 (dwarf2_per_cu_data::int_type): Rename to...
9878 (dwarf2_per_objfile::int_type): ... this.
9879 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
9880 (dwarf2_cu::addr_sized_int_type): ... this.
9881 (read_subrange_type): Update.
9882 (dwarf2_per_cu_data::addr_type): Rename to...
9883 (dwarf2_cu::addr_type): ... this.
9884 (set_die_type): Update.
9885
64874a40
SM
98862020-05-27 Simon Marchi <simon.marchi@efficios.com>
9887
9888 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
9889 data through per_cu->cu.
9890
4ab09049
SM
98912020-05-27 Simon Marchi <simon.marchi@efficios.com>
9892
9893 * dwarf2/read.c (lookup_dwo_comp_unit): Change
9894 dwarf2_per_cu_data parameter fo dwarf2_cu.
9895 (lookup_dwo_type_unit): Likewise.
9896 (read_cutu_die_from_dwo): Likewise.
9897 (lookup_dwo_unit): Likewise.
9898 (open_and_init_dwo_file): Likewise.
9899 (lookup_dwo_cutu): Likewise.
9900 (lookup_dwo_comp_unit): Likewise.
9901 (lookup_dwo_type_unit): Likewise.
9902 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9903 (cutu_reader::cutu_reader): Update.
9904
47b14e86
SM
99052020-05-27 Simon Marchi <simon.marchi@efficios.com>
9906
9907 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
9908 parameter.
9909 (process_full_type_unit): Likewise.
9910 (process_queue): Update.
9911
43182c09
SM
99122020-05-27 Simon Marchi <simon.marchi@efficios.com>
9913
9914 * dwarf2/read.c (recursively_compute_inclusions): Add
9915 dwarf2_per_objfile parameter.
9916 (compute_compunit_symtab_includes): Likewise.
9917 (process_cu_includes): Update.
9918
7aa104c4
SM
99192020-05-27 Simon Marchi <simon.marchi@efficios.com>
9920
9921 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
9922 parameter.
9923 (create_type_unit_group): Update.
9924 (process_psymtab_comp_unit_reader): Update.
9925 (build_type_psymtabs_reader): Update.
9926
e3beb21d
SM
99272020-05-27 Simon Marchi <simon.marchi@efficios.com>
9928
9929 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
9930 object through m_this_cu->cu.
9931
d460f660
SM
99322020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9933
9934 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
9935 the info parameter.
9936 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
9937
ab432490
SM
99382020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9939
9940 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
9941 per_objfile parameter.
9942 (load_full_type_unit): Add per_objfile parameter.
9943 (read_signatured_type): Likewise.
9944 (load_full_comp_unit): Likewise.
9945 (load_cu): Likewise.
9946 (dw2_do_instantiate_symtab): Likewise.
9947 (dw2_get_file_names): Likewise.
9948 (dw2_map_symtabs_matching_filename): Update.
9949 (dw_expand_symtabs_matching_file_matcher): Update.
9950 (dw2_map_symbol_filenames): Update.
9951 (process_psymtab_comp_unit): Add per_objfile parameter.
9952 (build_type_psymtabs_1): Update.
9953 (process_skeletonless_type_unit): Update.
9954 (dwarf2_build_psymtabs_hard): Update.
9955 (load_partial_comp_unit): Add per_objfile parameter.
9956 (scan_partial_symbols): Update.
9957 (load_full_comp_unit): Add per_objfile parameter.
9958 (process_imported_unit_die): Update.
9959 (create_cus_hash_table): Update.
9960 (find_partial_die): Update.
9961 (dwarf2_read_addr_index): Update.
9962 (follow_die_offset): Update.
9963 (dwarf2_fetch_die_loc_sect_off): Update.
9964 (dwarf2_fetch_constant_bytes): Update.
9965 (dwarf2_fetch_die_type_sect_off): Update.
9966 (follow_die_sig_1): Update.
9967 (load_full_type_unit): Add per_objfile parameter.
9968 (read_signatured_type): Likewise.
9969
313bad1b
SM
99702020-05-27 Simon Marchi <simon.marchi@efficios.com>
9971
9972 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
9973 of objfile_name.
9974
c3699833
SM
99752020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9976
9977 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
9978 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
9979 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
9980 field.
9981 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
9982 (create_cus_from_index): Update.
9983 (dwarf2_read_gdb_index): Update.
9984 (create_cus_from_debug_names): Update.
9985 (dwarf2_read_debug_names): Update.
9986 (get_abbrev_section_for_cu): Update.
9987 (create_all_comp_units): Update.
9988 (read_attribute_value): Update.
9989 (get_debug_line_section): Update.
9990 * dwarf2/index-cache.c (index_cache::store): Update.
9991 * dwarf2/index-write.c (save_gdb_index_command): Update.
9992 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
9993
1859c670
SM
99942020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9995
9996 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
9997 member.
9998 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
9999 dwarf2_per_cu_data::per_bfd.
10000 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
10001 (create_type_unit_group): Likewise.
10002 (queue_comp_unit): Remove reference to
10003 per_cu->dwarf2_per_objfile.
10004 (maybe_queue_comp_unit): Likewise.
10005 (fill_in_sig_entry_from_dwo_entry): Assign new field.
10006 (create_cus_hash_table): Assign new field.
10007
5e22e966
SM
100082020-05-27 Simon Marchi <simon.marchi@efficios.com>
10009
10010 * dwarf2/read.c: Replace
10011 dwarf2_cu->per_cu->dwarf2_per_objfile references with
10012 dwarf2_cu->per_objfile throughout.
10013
97a1449a
SM
100142020-05-27 Simon Marchi <simon.marchi@efficios.com>
10015
10016 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
10017 parameter, don't use per_cu->dwarf2_per_objfile.
10018 (dw2_instantiate_symtab): Likewise.
10019 (dw2_find_last_source_symtab): Update.
10020 (dw2_map_expand_apply): Update.
10021 (dw2_lookup_symbol): Update.
10022 (dw2_expand_symtabs_for_function): Update.
10023 (dw2_expand_all_symtabs): Update.
10024 (dw2_expand_symtabs_with_fullname): Update.
10025 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
10026 don't use per_cu->dwarf2_per_objfile.
10027 (dw2_expand_marked_cus): Update.
10028 (dw2_find_pc_sect_compunit_symtab): Update.
10029 (dw2_debug_names_lookup_symbol): Update.
10030 (dw2_debug_names_expand_symtabs_for_function): Update.
10031 (dw2_debug_names_map_matching_symbols): Update.
10032 (dwarf2_psymtab::expand_psymtab): Update.
10033
9e021579
SM
100342020-05-27 Simon Marchi <simon.marchi@efficios.com>
10035
10036 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
10037 <per_objfile>: New member.
10038 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
10039 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
10040 call to dwarf2_cu.
10041 (cutu_reader::cutu_reader): Update.
10042 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
10043
ae090bdb
SM
100442020-05-27 Simon Marchi <simon.marchi@efficios.com>
10045
10046 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
10047 struct dwarf2_per_objfile.
10048 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
10049 dwarf2_per_bfd.
10050 * dwarf2/read.c (set_die_type): Update.
10051 (get_die_type_at_offset): Update.
10052
af758d11
SM
100532020-05-27 Tom Tromey <tom@tromey.com>
10054 Simon Marchi <simon.marchi@efficios.com>
10055
10056 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
10057 method.
10058 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
10059 get_symtab, set_symtab>: New methods.
10060 <m_symtabs>: New field.
10061 (struct dwarf2_psymtab): Derive from partial_symtab.
10062 <readin_p, get_compunit_symtab>: Declare methods.
10063 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
10064 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
10065 New methods.
10066 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
10067 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
10068 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
10069 (dw2_symtab_iter_next, dw2_print_stats)
10070 (dw2_expand_symtabs_with_fullname)
10071 (dw2_expand_symtabs_matching_one)
10072 (dw_expand_symtabs_matching_file_matcher)
10073 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
10074 (dw2_debug_names_iterator::next)
10075 (dw2_debug_names_map_matching_symbols)
10076 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
10077 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
10078 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
10079 New methods.
10080 (get_compunit_symtab, process_full_comp_unit)
10081 (process_full_type_unit): Update.
10082 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
10083
5989a64e
SM
100842020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10085
10086 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
10087 then introduce a new dwarf2_per_objfile type.
10088 <read_line_string>: Move to the new dwarf2_per_objfile type.
10089 <objfile>: Likewise.
10090 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
10091 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
10092 dwarf2_per_objfile->per_bfd.
10093 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
10094 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
10095 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
10096 (dwarf2_per_bfd::free_cached_comp_units): ... this.
10097 (dwarf2_has_info): Allocate dwarf2_per_bfd.
10098 (dwarf2_per_objfile::locate_sections): Rename to...
10099 (dwarf2_per_bfd::locate_sections): ... this.
10100 (dwarf2_per_objfile::get_cutu): Rename to...
10101 (dwarf2_per_bfd::get_cutu): ... this.
10102 (dwarf2_per_objfile::get_cu): Rename to...
10103 (dwarf2_per_bfd::get_cu): ... this.
10104 (dwarf2_per_objfile::get_tu): Rename to...
10105 (dwarf2_per_bfd::get_tu): ... this.
10106 (dwarf2_per_objfile::allocate_per_cu): Rename to...
10107 (dwarf2_per_bfd::allocate_per_cu): ... this.
10108 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
10109 (dwarf2_per_bfd::allocate_signatured_type): ... this.
10110 (get_gdb_index_contents_ftype): Change parameter from
10111 dwarf2_per_objfile to dwarf2_per_bfd.
10112 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
10113 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
10114
a50264ba
TT
101152020-05-27 Tom Tromey <tom@tromey.com>
10116 Simon Marchi <simon.marchi@efficios.com>
10117
10118 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
10119 (allocate_piece_closure): Set "per_objfile" member.
10120 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
10121 (locexpr_describe_location, loclist_describe_location): Use new
10122 member.
10123 * dwarf2/read.c (read_call_site_scope)
10124 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
10125 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
10126 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
10127 handle_data_member_location): Set per_objfile member.
10128 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
10129 member.
10130 (struct dwarf2_loclist_baton) <per_objfile>: New member.
10131
d3473f0c
TT
101322020-05-27 Tom Tromey <tom@tromey.com>
10133
10134 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
10135 allocate_signatured_type>: Declare new methods.
10136 <m_num_psymtabs>: New member.
10137 (struct dwarf2_per_cu_data) <index>: New member.
10138 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
10139 (dwarf2_per_objfile::allocate_signatured_type): New methods.
10140 (create_cu_from_index_list): Use allocate_per_cu.
10141 (create_signatured_type_table_from_index)
10142 (create_signatured_type_table_from_debug_names)
10143 (create_debug_type_hash_table, add_type_unit)
10144 (read_comp_units_from_section): Use allocate_signatured_type.
10145
5717c425
TT
101462020-05-27 Tom Tromey <tom@tromey.com>
10147
10148 * psymtab.c (partial_map_expand_apply)
10149 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10150 (psym_lookup_global_symbol_language)
10151 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10152 (psym_print_stats, psym_expand_symtabs_for_function)
10153 (psym_map_symbol_filenames, psym_map_matching_symbols)
10154 (psym_expand_symtabs_matching)
10155 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10156 (maintenance_check_psymtabs): Update.
10157 * psympriv.h (struct partial_symtab) <readin_p,
10158 get_compunit_symtab>: Add objfile parameter.
10159 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
10160 Likewise.
10161 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
10162 get_compunit_symtab>: Likewise.
10163 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
10164
45940949
TT
101652020-05-27 Tom Tromey <tom@tromey.com>
10166
10167 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
10168 member.
10169 * dwarf2/read.c (delete_file_name_entry): Fix comment.
10170 (create_cu_from_index_list)
10171 (create_signatured_type_table_from_index)
10172 (create_signatured_type_table_from_debug_names)
10173 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
10174 (dwarf2_create_include_psymtab)
10175 (create_debug_type_hash_table, add_type_unit)
10176 (create_type_unit_group, read_comp_units_from_section)
10177 (dwarf2_compute_name, create_cus_hash_table)
10178 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
10179 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
10180 obstack.
10181 (dw2_get_real_path): Likewise. Change argument to
10182 dwarf2_per_objfile.
10183
f8c6d152
LM
101842020-05-27 Luis Machado <luis.machado@linaro.org>
10185
10186 PR tdep/26000
10187 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
10188 for ldrd (immediate).
10189
e98d2e6d
PW
101902020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10191
10192 * command.h: Add comment giving the name of class_tui.
10193 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
10194 create the fake command for the help for class_tui.
10195
53a47a3e
TT
101962020-05-26 Tom Tromey <tromey@adacore.com>
10197
10198 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
10199 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
10200 (val_atr): New function.
10201 (value_val_atr): Use it.
10202 * ada-valprint.c (print_optional_low_bound): Change low bound
10203 handling for enums.
10204 (val_print_packed_array_elements): Don't call discrete_position.
10205 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
10206 discrete_position for enum types.
10207 * language.c (default_print_array_index): Change type.
10208 * language.h (struct language_defn) <la_print_array_index>: Add
10209 index_type parameter, change type of index_value.
10210 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
10211 (default_print_array_index): Update.
10212 * valprint.c (maybe_print_array_index): Don't call
10213 value_from_longest. Update.
10214 (value_print_array_elements): Don't call discrete_position.
10215
0bc2354b
TT
102162020-05-26 Tom Tromey <tromey@adacore.com>
10217
10218 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
10219 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
10220
1218a4bf
CDA
102212020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
10222
10223 PR gdb/13519
10224 * avr-tdep.c (avr_integer_to_address): Return data or code
10225 address accordingly to the second 'type' argument of the
10226 function.
10227
92651b1d
MW
102282020-05-25 Michael Weghorn <m.weghorn@posteo.de>
10229
10230 * infcmd.c, inferior.h: (construct_inferior_arguments):
10231 Moved function from here to gdbsupport/common-inferior.{h,cc}
10232
0a4f5f8c
TT
102332020-05-23 Tom Tromey <tom@tromey.com>
10234
10235 Revert commit eca1f90c:
10236 * NEWS: Remove entry for completion styling.
10237 * completer.c (_rl_completion_prefix_display_length): Move
10238 declaration later.
10239 (gdb_fnprint): Revert.
10240 (gdb_display_match_list_1): Likewise.
10241 * cli/cli-style.c (completion_prefix_style)
10242 (completion_difference_style, completion_suffix_style): Remove.
10243 (_initialize_cli_style): Revert.
10244 * cli/cli-style.h (completion_prefix_style)
10245 (completion_difference_style, completion_suffix_style): Don't
10246 declare.
10247
e08bd6c5
PA
102482020-05-24 Pedro Alves <palves@redhat.com>
10249
10250 * symtab.c (completion_list_add_name): Return boolean indication
10251 of whether the symbol matched.
10252 (completion_list_add_symbol): Don't try to remove C++ aliases if
10253 the symbol didn't match in the first place.
10254 * symtab.h (completion_list_add_name): Return bool.
10255
ceacbf6e
SM
102562020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
10257
10258 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
10259 type::field.
10260
26f16254
JB
102612020-05-23 Joel Brobecker <brobecker@adacore.com>
10262
10263 GDB 9.2 released.
10264
eca1f90c
TT
102652020-05-23 Tom Tromey <tom@tromey.com>
10266
10267 * NEWS: Add entry for completion styling.
10268 * completer.c (_rl_completion_prefix_display_length): Move
10269 declaration earlier.
10270 (gdb_fnprint): Use completion_style.
10271 (gdb_display_match_list_1): Likewise.
10272 * cli/cli-style.c (completion_prefix_style)
10273 (completion_difference_style, completion_suffix_style): New
10274 globals.
10275 (_initialize_cli_style): Register new globals.
10276 * cli/cli-style.h (completion_prefix_style)
10277 (completion_difference_style, completion_suffix_style): Declare.
10278
51e2cfa2
PA
102792020-05-23 Pedro Alves <palves@redhat.com>
10280
10281 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
10282 (parse_escape): Use ISDIGIT instead of isdigit.
10283 (puts_debug): Use gdb_isprint instead of isprint.
10284 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
10285 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
10286 ISSPACE instead of isspace.
10287 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
10288 instead of isspace.
10289 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
10290 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
10291 instead of isxdigit and ISDIGIT instead of isdigit.
10292
80fc5e77
SM
102932020-05-22 Simon Marchi <simon.marchi@efficios.com>
10294
10295 * gdbtypes.h (struct type) <field>: New method.
10296 (TYPE_FIELDS): Remove, replace all uses with either type::fields
10297 or type::field.
10298
3cabb6b0
SM
102992020-05-22 Simon Marchi <simon.marchi@efficios.com>
10300
10301 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
10302 (TYPE_FIELDS): Use type::fields. Change all call sites that
10303 modify the propery to use type::set_fields instead.
10304
1f704f76
SM
103052020-05-22 Simon Marchi <simon.marchi@efficios.com>
10306
10307 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
10308 type::num_fields instead.
10309
5e33d5f4
SM
103102020-05-22 Simon Marchi <simon.marchi@efficios.com>
10311
10312 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
10313 methods.
10314 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
10315 that modify the number of fields to use type::set_num_fields
10316 instead.
10317
9392ebb3
TT
103182020-05-22 Tom Tromey <tromey@adacore.com>
10319
10320 * compile/compile-object-load.h (munmap_list_free): Don't
10321 declare.
10322
7c13f4e8
AB
103232020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
10324
10325 * annotate.c (annotate_source_line): Update return type, add call
10326 to update current symtab and line.
10327 * annotate.h (annotate_source_line): Update return type, and
10328 extend header comment.
10329 * source.c (info_line_command): Check annotation_level before
10330 calling annotate_source_line.
10331 * stack.c (print_frame_info): If calling annotate_source_line
10332 returns true, then don't print any other source line information.
10333
aa370940
SM
103342020-05-21 Simon Marchi <simon.marchi@efficios.com>
10335
10336 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
10337
84d53fa9
SM
103382020-05-21 Simon Marchi <simon.marchi@efficios.com>
10339
10340 * coffread.c (patch_type): Remove NULL check before xfree.
10341 * corefile.c (set_gnutarget): Likewise.
10342 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
10343 * exec.c (build_section_table): Likewise.
10344 * remote.c (remote_target::pass_signals): Likewise.
10345 * utils.c (n_spaces): Likewise.
10346 * cli/cli-script.c (document_command): Likewise.
10347 * i386-windows-tdep.c (core_process_module_section): Likewise.
10348 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
10349
9d428aae
SM
103502020-05-20 Simon Marchi <simon.marchi@efficios.com>
10351
10352 * symfile.c (reread_symbols): Clear objfile's section_offsets
10353 vector and section indices, re-compute them by calling
10354 sym_offsets.
10355
250106a7
TT
103562020-05-20 Tom Tromey <tromey@adacore.com>
10357
10358 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 10359 (desc_one_bound, desc_index_type): Compute field name.
250106a7 10360
9a0bacfb
TV
103612020-05-20 Tom de Vries <tdevries@suse.de>
10362
10363 PR symtab/25833
10364 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
10365
7b958a48
AM
103662020-05-20 Alan Modra <amodra@gmail.com>
10367
10368 PR 25993
10369 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
10370 bfd_set_filename.
10371 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
10372 passed to bfd_set_filename.
10373 * symfile-mem.c (add_vsyscall_page): Likewise for string
10374 passed to symbol_file_add_from_memory.
10375 (symbol_file_add_from_memory): Make name param a const char* and
10376 don't strdup.
10377
c7e97679
AM
103782020-05-20 Alan Modra <amodra@gmail.com>
10379
10380 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
10381 rather than accessing bfd->filename directly.
10382 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
10383 and use bfd_section_name.
10384 * dwarf2/frame.c (decode_frame_entry): Likewise.
10385 * exec.c (exec_set_section_address): Likewise.
10386 * solib-aix.c (solib_aix_bfd_open): Likewise.
10387 * stap-probe.c (get_stap_base_address): Likewise.
10388 * symfile.c (reread_symbols): Likewise.
10389
563c591b
TT
103902020-05-19 Tom Tromey <tromey@adacore.com>
10391
10392 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
10393
f408d82c
SM
103942020-05-19 Simon Marchi <simon.marchi@efficios.com>
10395
10396 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
10397
98c59b52
PA
103982020-05-19 Pedro Alves <palves@redhat.com>
10399
10400 * NEWS (set exec-file-mismatch): Adjust entry.
10401 * exec.c: Include "build-id.h".
10402 (validate_exec_file): Try to match build IDs instead of filenames.
10403 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
10404 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
10405 and pass down 'warn_if_slow'.
10406 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
10407 gdb_bfd_open_closure to pass it down.
10408 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
10409
4111f652
PA
104102020-05-19 Pedro Alves <palves@redhat.com>
10411
10412 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
10413 * target.c (target_fileio_open_1): Rename to target_fileio_open
10414 and make extern. Use bool.
10415 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
10416 (target_fileio_read_alloc_1): Adjust.
10417 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
10418 (target_fileio_open_warn_if_slow): Delete declaration.
10419
ad80db5b
PA
104202020-05-19 Pedro Alves <palves@redhat.com>
10421
10422 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
10423 Adjust all callers.
10424
1d6ce4d3
YS
104252020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
10426
10427 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
10428 whether disp is negative.
10429
9005fbbb
SM
104302020-05-19 Simon Marchi <simon.marchi@efficios.com>
10431
10432 * symfile.h (struct symfile_segment_data)
10433 <~symfile_segment_data>: Remove.
10434 <segment_info>: Change to std::vector.
10435 * symfile.c (default_symfile_segments): Update.
10436 * elfread.c (elf_symfile_segments): Update.
10437
68b888ff
SM
104382020-05-19 Simon Marchi <simon.marchi@efficios.com>
10439
10440 * symfile.h (struct symfile_segment_data) <struct segment>: New.
10441 <segments>: New.
10442 <segment_bases, segment_sizes>: Remove.
10443 * symfile.c (default_symfile_segments): Update.
10444 * elfread.c (elf_symfile_segments): Update.
10445 * remote.c (remote_target::get_offsets): Update.
10446 * solib-target.c (solib_target_relocate_section_addresses):
10447 Update.
10448
62982abd
SM
104492020-05-19 Simon Marchi <simon.marchi@efficios.com>
10450
10451 * symfile.h (struct symfile_segment_data): Initialize fields.
10452 <~symfile_segment_data>: Add.
10453 (symfile_segment_data_up): New.
10454 (struct sym_fns) <sym_segments>: Return a
10455 symfile_segment_data_up.
10456 (default_symfile_segments): Return a symfile_segment_data_up.
10457 (free_symfile_segment_data): Remove.
10458 (get_symfile_segment_data): Return a symfile_segment_data_up.
10459 * symfile.c (default_symfile_segments): Likewise.
10460 (get_symfile_segment_data): Likewise.
10461 (free_symfile_segment_data): Remove.
10462 (symfile_find_segment_sections): Update.
10463 * elfread.c (elf_symfile_segments): Return a
10464 symfile_segment_data_up.
10465 * remote.c (remote_target::get_offsets): Update.
10466 * solib-target.c (solib_target_relocate_section_addresses):
10467 Update.
10468 * symfile-debug.c (debug_sym_segments): Return a
10469 symfile_segment_data_up.
10470
7f204339
RO
104712020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10472
e52a0f1b
RO
10473 PR build/25981
10474 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
10475 Hardcode register numbers.
10476
7f204339
RO
10477 PR build/25981
10478 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
10479 procfs_find_LDT_entry): Remove.
10480 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
10481 procfs_find_LDT_entry): Remove.
10482 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
10483 Remove.
10484
7f32a4d5
PA
104852020-05-17 Pedro Alves <palves@redhat.com>
10486 Andrew Burgess <andrew.burgess@embecosm.com>
10487 Keno Fischer <keno@juliacomputing.com>
10488
10489 PR gdb/25741
10490 * breakpoint.c (build_target_condition_list): Update comments.
10491 (build_target_command_list): Update comments and skip matching
10492 locations.
10493 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
10494 a separate function. Simplify "set breakpoint auto-hw off"
10495 handling.
10496 (insert_breakpoints): Update comment.
10497 (tracepoint_locations_match): New parameter. For breakpoints,
10498 compare location types too, if the caller wants to.
10499 (handle_automatic_hardware_breakpoints): New functions.
10500 (bp_location_is_less_than): Also sort by location type and
10501 hardware breakpoint length.
10502 (update_global_location_list): Handle "set breakpoint auto-hw on"
10503 here.
10504 (update_breakpoint_locations): Ask breakpoint_locations_match to
10505 ignore location types.
10506
7d93a1e0
SM
105072020-05-16 Simon Marchi <simon.marchi@efficios.com>
10508
10509 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
10510 type::name instead.
10511
d0e39ea2
SM
105122020-05-16 Simon Marchi <simon.marchi@efficios.com>
10513
10514 * gdbtypes.h (struct type) <name, set_name>: New methods.
10515 (TYPE_CODE): Use type::name. Change all call sites used to set
10516 the name to use type::set_name instead.
10517
2dab0c7b
TT
105182020-05-16 Tom Tromey <tom@tromey.com>
10519
10520 * top.c (quit_force): Update.
10521 * infrun.c (handle_no_resumed): Update.
10522 * top.h (all_uis): New function.
10523 (ALL_UIS): Remove.
10524
59f7bd8d
SM
105252020-05-16 Simon Marchi <simon.marchi@efficios.com>
10526
10527 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
10528
9bf058f0
PA
105292020-05-16 Pedro Alves <palves@redhat.com>
10530
10531 * ia64-linux-nat.c
10532 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
10533 Declare method.
10534 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
10535
8f86ae1a
SM
105362020-05-15 Simon Marchi <simon.marchi@efficios.com>
10537
10538 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
10539 (sparc64_adi_info): Likewise.
10540
d6bc0792
TT
105412020-05-15 Tom Tromey <tom@tromey.com>
10542
10543 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
10544 block_objfile.
10545 (lookup_objfile_from_block): Remove.
10546 (lookup_symbol_in_block, lookup_symbol_in_static_block)
10547 (lookup_global_symbol): Use block_objfile.
10548 * symtab.h (lookup_objfile_from_block): Don't declare.
10549 * printcmd.c (clear_dangling_display_expressions): Use
10550 block_objfile.
10551 * parse.c (operator_check_standard): Use block_objfile.
10552
8c14c3a3
TT
105532020-05-15 Tom Tromey <tom@tromey.com>
10554
10555 * language.c (language_alloc_type_symbol): Set
10556 SYMBOL_SECTION.
10557 * symtab.c (initialize_objfile_symbol): Remove.
10558 (allocate_symbol): Remove.
10559 (allocate_template_symbol): Remove.
10560 * dwarf2/read.c (fixup_go_packaging): Use "new".
10561 (new_symbol): Use "new".
10562 (read_variable): Don't call initialize_objfile_symbol. Use
10563 "new".
10564 (read_func_scope): Use "new".
10565 * xcoffread.c (process_xcoff_symbol): Don't call
10566 initialize_objfile_symbol.
10567 (SYMBOL_DUP): Remove.
10568 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
10569 "new".
10570 * symtab.h (allocate_symbol, initialize_objfile_symbol)
10571 (allocate_template_symbol): Don't declare.
10572 (struct symbol): Add copy constructor. Change defaults.
10573 * jit.c (finalize_symtab): Use "new".
10574 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
10575 Use "new".
10576 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
10577 (common_block_end): Use "new".
10578 * mdebugread.c (parse_symbol): Use "new".
10579 (new_symbol): Likewise.
10580
5b4a1a8d
PW
105812020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10582
10583 * NEWS: Mention changes to help and apropos.
10584
57b4f16e
PW
105852020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10586
10587 * command.h (enum command_class): Improve comments, document
10588 that class_alias is for user-defined aliases, give the class
10589 name for each class, remove unused class_xdb.
10590 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
10591 * breakpoint.c (_initialize_breakpoint): Replace class_alias
10592 by a precise class.
10593 * infcmd.c (_initialize_infcmd): Likewise.
10594 * reverse.c (_initialize_reverse): Likewise.
10595 * stack.c (_initialize_stack): Likewise.
10596 * symfile.c (_initialize_symfile): Likewise.
10597 * tracepoint.c (_initialize_tracepoint): Likewise.
10598
7c05caf7
PW
105992020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10600
10601 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
10602 when their aliased command is traversed.
10603 (help_cmd): Add fput_command_names_styled call to
10604 output command name and aliases when command has an alias.
10605
3b3aaacb
PW
106062020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10607
10608 * cli/cli-decode.h (help_cmd_list): Remove declaration.
10609 * cli/cli-decode.c (help_cmd_list): Declare as static,
10610 remove prefix argument, use bool for recurse arg, rework to show the aliases of
10611 a command together with the command.
10612 (fput_command_name_styled, fput_command_names_styled): New functions.
10613 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
10614 fput_command_name_styled.
10615 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
10616 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
10617
7aa1b46f
PW
106182020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10619
10620 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
10621 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
10622 * command.h (cmd_show_list): Likewise.
10623 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
10624 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
10625
89bcba74
PW
106262020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10627
10628 * unittests/command-def-selftests.c (traverse_command_structure):
10629 Verify all commands of a list have the same prefix command and
10630 that only the top cmdlist commands have a null prefix.
10631
3f4d92eb
PW
106322020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10633
10634 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
10635 as prefix, not one of its aliases.
10636 (set_cmd_prefix): Remove.
10637 (do_add_cmd): Centralize the setting of the prefix of a command, when
10638 command is defined after its full chain of prefix commands.
10639 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
10640 (add_setshow_cmd_full): Likewise.
10641 (update_prefix_field_of_prefixed_commands): New function.
10642 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
10643 update_prefix_field_of_prefixed_commands.
10644 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
10645 addresses of remote_set_cmdlist and remote_show_cmdlist given
10646 as argument, not the address of an argument.
10647 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
10648 * gdb/remote.c (_initialize_remote): Likewise.
10649
0605465f
PW
106502020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10651
10652 * cli/cli-cmds.c (alias_command): Check for an existing alias
10653 using lookup_cmd_composition, as valid_command_p is too strict
10654 and forbids aliases that are the prefix of an existing alias
10655 or command.
10656 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
10657 command is properly recognised as a valid command.
10658
58e6ac70
PW
106592020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10660
10661 * unittests/help-doc-selftests.c: Rename to
10662 unittests/command-def-selftests.c
10663 * unittests/command-def-selftests.c (help_doc_tests): Update some
10664 comments.
10665 (command_structure_tests, traverse_command_structure): New namespace
10666 and function.
10667 (command_structure_invariants_tests): New function.
10668 (_initialize_command_def_selftests) Renamed from
10669 _initialize_help_doc_selftests, register command_structure_invariants
10670 selftest.
10671
a7b9ceb8
PW
106722020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10673
10674 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
10675 an alias of 'show'.
10676
b2188a06
JB
106772020-05-15 Joel Brobecker <brobecker@adacore.com>
10678
10679 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
10680 ada_is_fixed_point_type. Update all callers.
10681 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
10682 all callers.
10683 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
10684 Update all callers.
10685 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
10686 print_fixed_point_type. Update all callers.
10687 * ada-valprint.c (ada_value_print_num): Replace call to
10688 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
10689
a51951c2
KB
106902020-05-14 Kevin Buettner <kevinb@redhat.com>
10691
10692 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
10693 processors.
10694 (cpu_supports_bts): Add CV_AMD case.
10695
29d6859f
LM
106962020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
10697 Simon Marchi <simon.marchi@efficios.com>
10698
10699 * infrun.c (stop_all_threads): Collect multiple wait events at
10700 each pass.
10701
78134374
SM
107022020-05-14 Simon Marchi <simon.marchi@efficios.com>
10703
10704 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
10705 type::code instead.
10706
67607e24
SM
107072020-05-14 Simon Marchi <simon.marchi@efficios.com>
10708
10709 * gdbtypes.h (struct type) <code, set_code>: New methods.
10710 (TYPE_CODE): Use type::code. Change all call sites used to set
10711 the code to use type::set_code instead.
10712
a05575d3
TBA
107132020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10714 Tom de Vries <tdevries@suse.de>
10715 Pedro Alves <palves@redhat.com>
10716
10717 PR threads/25478
10718 * infrun.c (stop_all_threads): Do NOT ignore
10719 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
10720 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
10721 received.
10722 (handle_no_resumed): Remove code handling a live inferior with no
10723 threads.
10724 * remote.c (has_single_non_exited_thread): New.
10725 (remote_target::update_thread_list): Do not delete a thread if is
10726 the last thread of the process.
10727 * thread.c (thread_select): Call delete_exited_threads instead of
10728 prune_threads.
10729
6ad82919
TBA
107302020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10731
10732 * infrun.c (stop_all_threads): Enable/disable thread events of all
10733 targets. Move a debug message denoting the end of the function
10734 into the SCOPED_EXIT block.
10735
d890404b
TBA
107362020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10737
10738 * process-stratum-target.h: Include <set>.
10739 (all_non_exited_process_targets, switch_to_target_no_thread): New
10740 function declarations.
10741 * process-stratum-target.c (all_non_exited_process_targets)
10742 (switch_to_target_no_thread): New function implementations.
10743
293b3ebc
TBA
107442020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10745
10746 * infrun.c (handle_inferior_event): Extract out a piece of code
10747 into...
10748 (mark_non_executing_threads): ...this new function.
10749
7ca9b62a
TBA
107502020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10751
10752 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
10753 use.
10754
fc75c28b
TBA
107552020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10756
10757 * regcache.c (regcache_read_pc_protected): New function
10758 implementation that returns 0 if the PC cannot read via
10759 'regcache_read_pc'.
10760 * infrun.c (proceed): Call 'regcache_read_pc_protected'
10761 instead of 'regcache_read_pc'.
10762 (keep_going_pass_signal): Ditto.
10763
a89febbd
TT
107642020-05-13 Tom Tromey <tromey@adacore.com>
10765
10766 * ada-lang.c (align_value): Remove.
10767 (ada_template_to_fixed_record_type_1): Use align_up.
10768
f7e23710
TBA
107692020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10770
10771 * async-event.c: Update the copyright year.
10772 * async-event.h: Update the copyright year.
10773
02ff80c2
SM
107742020-05-12 Simon Marchi <simon.marchi@efficios.com>
10775
10776 * objfiles.h (is_addr_in_objfile,
10777 shared_objfile_contains_address_p): Return bool.
10778 * objfile.c (is_addr_in_objfile,
10779 shared_objfile_contains_address_p): Return bool.
10780
4fd6c7e8
TT
107812020-05-11 Tom Tromey <tromey@adacore.com>
10782
10783 * cli/cli-cmds.c (info_command): Restore.
10784 (_initialize_cli_cmds): Use add_prefix_command for "info".
10785 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
10786
5eb68a39
TT
107872020-05-11 Tom Tromey <tromey@adacore.com>
10788
10789 * ada-lang.c (ada_value_primitive_field): Now public.
10790 * ada-lang.h (ada_value_primitive_field): Declare.
10791 * ada-valprint.c (print_field_values): Use
10792 ada_value_primitive_field for wrapper fields.
10793
7666722f
TV
107942020-05-11 Tom de Vries <tdevries@suse.de>
10795
10796 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
10797 MODULE_DOMAIN.
10798
3ee6bb11
TV
107992020-05-11 Tom de Vries <tdevries@suse.de>
10800
10801 PR symtab/25941
10802 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
10803 with length 0, if not gdb-produced.
10804 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
10805
43434996
TV
108062020-05-09 Tom de Vries <tdevries@suse.de>
10807
10808 PR gdb/25955
10809 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
10810 calculation.
10811
2f78cffc
TT
108122020-05-09 Tom Tromey <tom@tromey.com>
10813
10814 * top.c (server_command): Now bool.
10815 * top.h (server_command): Now bool.
10816
4f7bc5ed
TT
108172020-05-08 Tom Tromey <tromey@adacore.com>
10818
10819 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
10820 already being processed.
10821
8be4b118
TT
108222020-05-08 Tom Tromey <tom@tromey.com>
10823
10824 * printcmd.c (struct display) <next>: Remove.
10825 <display>: New constructor.
10826 <exp_string>: Now a std::string.
10827 <enabled_p>: Now a bool.
10828 (display_number): Move definition earlier.
10829 (displays): Rename from display_chain. Now a std::vector.
10830 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
10831 (display_command): Update.
10832 (do_one_display, disable_display)
10833 (enable_disable_display_command, do_enable_disable_display):
10834 Update.
10835 (free_display): Remove.
10836 (clear_displays): Rewrite.
10837 (delete_display): Update.
10838 (map_display_numbers): Use function_view. Remove "data"
10839 parameter. Update.
10840 (do_delete_display): Remove.
10841 (undisplay_command): Update.
10842 (do_one_display, do_displays, disable_display)
10843 (info_display_command): Update.
10844 (do_enable_disable_display): Remove.
10845 (enable_disable_display_command)
10846 (clear_dangling_display_expressions): Update.
10847
94c93c35
TT
108482020-05-08 Tom Tromey <tom@tromey.com>
10849
10850 * symtab.c (set_symbol_cache_size)
10851 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
10852 (maintenance_print_symbol_cache_statistics): Update.
10853 * symmisc.c (print_symbol_bcache_statistics)
10854 (print_objfile_statistics, maintenance_print_objfiles)
10855 (maintenance_info_symtabs, maintenance_check_symtabs)
10856 (maintenance_expand_symtabs, maintenance_info_line_tables):
10857 Update.
10858 * symfile-debug.c (set_debug_symfile): Update.
10859 * source.c (forget_cached_source_info): Update.
10860 * python/python.c (gdbpy_progspaces): Update.
10861 * psymtab.c (maintenance_info_psymtabs): Update.
10862 * probe.c (parse_probes): Update.
10863 * linespec.c (iterate_over_all_matching_symtabs)
10864 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
10865 * guile/scm-progspace.c (gdbscm_progspaces): Update.
10866 * exec.c (exec_target::close): Update.
10867 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
10868 * breakpoint.c (print_one_breakpoint_location)
10869 (create_longjmp_master_breakpoint)
10870 (create_std_terminate_master_breakpoint): Update.
10871 * progspace.c (program_spaces): Now a std::vector.
10872 (maybe_new_address_space): Update.
10873 (add_program_space): Remove.
10874 (program_space::program_space): Update.
10875 (remove_program_space): Update.
10876 (number_of_program_spaces): Remove.
10877 (print_program_space, update_address_spaces): Update.
10878 * progspace.h (program_spaces): Change type.
10879 (ALL_PSPACES): Remove.
10880 (number_of_program_spaces): Don't declare.
10881 (struct program_space) <next>: Remove.
10882
a1fd1ac9
TT
108832020-05-08 Tom Tromey <tom@tromey.com>
10884
10885 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
10886 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
10887 (enable_break): Update.
10888 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
10889 (frv_fdpic_find_canonical_descriptor): Update.
10890 (frv_fetch_objfile_link_map): Update.
10891 * progspace.c (program_space::free_all_objfiles): Update.
10892 (program_space::solibs): New method.
10893 * progspace.h (struct program_space) <solibs>: New method.
10894 * solist.h (master_so_list): Don't declare.
10895 (ALL_SO_LIBS): Remove.
10896 * solib.h (so_list_head): Remove.
10897 (update_solib_list): Update comment.
10898 * solib.c (master_so_list): Remove.
10899 (solib_used, update_solib_list, solib_add)
10900 (info_sharedlibrary_command, clear_solib)
10901 (reload_shared_libraries_1, remove_user_added_objfile): Update.
10902
38eae084
TT
109032020-05-08 Tom Tromey <tom@tromey.com>
10904
10905 * extension.c (extension_languages): Now a std::array.
10906 (ALL_EXTENSION_LANGUAGES): Remove.
10907 (get_ext_lang_defn, get_ext_lang_of_file)
10908 (eval_ext_lang_from_control_command): Update.
10909 (finish_ext_lang_initialization)
10910 (auto_load_ext_lang_scripts_for_objfile)
10911 (ext_lang_type_printers::ext_lang_type_printers)
10912 (apply_ext_lang_type_printers)
10913 (ext_lang_type_printers::~ext_lang_type_printers)
10914 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
10915 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
10916 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
10917 (get_matching_xmethod_workers, ext_lang_colorize)
10918 (ext_lang_before_prompt): Update.
10919 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
10920
596dc4ad
TT
109212020-05-08 Tom Tromey <tom@tromey.com>
10922
10923 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
10924 overload.
10925 <swap_string, m_string>: Remove.
10926 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
10927 Update.
10928 * stabsread.c (define_symbol, read_type): Update.
10929 * linespec.c (find_linespec_symbols): Update.
10930 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
10931 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
10932 * dbxread.c (read_dbx_symtab): Update.
10933 * cp-support.h (cp_canonicalize_string_full)
10934 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
10935 Return unique_xmalloc_ptr.
10936 * cp-support.c (inspect_type): Update.
10937 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
10938 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
10939 Likewise.
10940 * c-typeprint.c (print_name_maybe_canonical): Update.
10941 * break-catch-throw.c (check_status_exception_catchpoint):
10942 Update.
10943
bf4cb9be
TV
109442020-05-08 Tom de Vries <tdevries@suse.de>
10945
10946 * infrun.c (follow_fork): Copy current_line and current_symtab to
10947 child thread.
10948
a1b68f28
SM
109492020-05-07 Simon Marchi <simon.marchi@efficios.com>
10950
10951 * async-event.c (struct async_signal_handler, struct
10952 async_event_handler): Reformat, remove typedef.
10953
98d48915
SM
109542020-05-07 Simon Marchi <simon.marchi@efficios.com>
10955
10956 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
10957 access thistype->main_type->dyn_prop_list directly.
10958
7aa91313
SM
109592020-05-07 Simon Marchi <simon.marchi@efficios.com>
10960
10961 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
10962 (remove_dyn_prop): Remove. Update all users to use
10963 type::remove_dyn_prop.
10964 * gdbtypes.c (remove_dyn_prop): Rename to...
10965 (type::remove_dyn_prop): ... this.
10966
5c54719c
SM
109672020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
10968
10969 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
10970 (add_dyn_prop): Remove. Update all users to use
10971 type::add_dyn_prop.
10972 * gdbtypes.c (add_dyn_prop): Rename to...
10973 (type::add_dyn_prop): ... this.
10974
24e99c6c
SM
109752020-05-07 Simon Marchi <simon.marchi@efficios.com>
10976
10977 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
10978 (get_dyn_prop): Remove. Update all users to use
10979 type::dyn_prop.
10980 * gdbtypes.c (get_dyn_prop): Rename to...
10981 (type::dyn_prop): ... this.
10982
0d4bf016
SM
109832020-05-06 Simon Marchi <simon.marchi@efficios.com>
10984
10985 * gdbtypes.h (struct main_type) <flag_static>: Remove.
10986
ac4a4f1c
SM
109872020-05-06 Simon Marchi <simon.marchi@efficios.com>
10988
10989 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
10990 instruction, skip it if it's there.
10991
a3bbacc1
SM
109922020-05-05 Simon Marchi <simon.marchi@efficios.com>
10993
10994 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
10995
c3236f84
SM
109962020-05-04 Simon Marchi <simon.marchi@efficios.com>
10997
10998 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
10999 * gdbtypes.c (recursive_dump_type): Remove use of
11000 TYPE_INCOMPLETE.
11001
3b6acaee
TT
110022020-05-03 Tom Tromey <tom@tromey.com>
11003
11004 * breakpoint.c (catch_command, tcatch_command): Remove.
11005 (_initialize_breakpoint): Use add_basic_prefix_cmd,
11006 add_show_prefix_cmd.
11007 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
11008 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
11009 Remove.
11010 (add_internal_problem_command): Use add_basic_prefix_cmd,
11011 add_show_prefix_cmd.
11012 * mips-tdep.c (set_mipsfpu_command): Remove.
11013 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
11014 * dwarf2/index-cache.c (set_index_cache_command): Remove.
11015 (_initialize_index_cache): Use add_basic_prefix_cmd.
11016 * memattr.c (dummy_cmd): Remove.
11017 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
11018 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
11019 (_initialize_tui_win): Use add_basic_prefix_cmd,
11020 add_show_prefix_cmd.
11021 * cli/cli-logging.c (set_logging_command): Remove.
11022 (_initialize_cli_logging): Use add_basic_prefix_cmd,
11023 add_show_prefix_cmd.
11024 (show_logging_command): Remove.
11025 * target.c (target_command): Remove.
11026 (add_target): Use add_basic_prefix_cmd.
11027
a51119cd
HD
110282020-05-02 Hannes Domani <ssbssa@yahoo.de>
11029
11030 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
11031
652fc23a 110322020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 11033
652fc23a
PW
11034 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
11035 info_command.
11036
117539e6
KR
110372020-04-30 Kamil Rytarowski <n54@gmx.com>
11038
11039 * nbsd-nat.c (nbsd_enable_proc_events)
11040 (nbsd_nat_target::post_startup_inferior): Add.
11041 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
11042 (nbsd_nat_target::update_thread_list): Rewrite.
11043 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
11044 "PTRACE_LWP_CREATE".
11045 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
11046
102e38eb 110472020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 11048
102e38eb
PW
11049 * stack.c (_initialize_stack): Remove duplicated creation
11050 of "frame" command and "f" alias.
11051
ee9d1e5f
HD
110522020-04-30 Hannes Domani <ssbssa@yahoo.de>
11053
11054 PR gdb/18706
11055 * gdbtypes.c (check_typedef): Calculate size of array of
11056 stubbed type.
11057
627c7fb8
HD
110582020-04-30 Hannes Domani <ssbssa@yahoo.de>
11059
11060 PR gdb/15559
11061 * i386-tdep.c (i386_push_dummy_call): Call
11062 i386_thiscall_push_dummy_call.
11063 (i386_thiscall_push_dummy_call): New function.
11064 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
11065 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
11066 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
11067
ffc2844e
SM
110682020-04-29 Simon Marchi <simon.marchi@efficios.com>
11069
11070 * gdbarch.sh (do_read): Add shellcheck disable directive for
11071 warning SC2162.
11072
1207375d
SM
110732020-04-29 Simon Marchi <simon.marchi@efficios.com>
11074
11075 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
11076 "referenced but not assigned" warning.
11077
9fdb2916
SM
110782020-04-29 Simon Marchi <simon.marchi@efficios.com>
11079
11080 * gdbarch.sh: Remove code that sets fallbackdefault.
11081
759cea5e
SM
110822020-04-29 Simon Marchi <simon.marchi@efficios.com>
11083
11084 * gdbarch.sh: Use shell operators && and || instead of
11085 -a and -o.
11086
cb02ab24
SM
110872020-04-29 Simon Marchi <simon.marchi@efficios.com>
11088
11089 * gdbarch.sh: Use $(...) instead of `...`.
11090
a6fc5ffc
SM
110912020-04-29 Simon Marchi <simon.marchi@efficios.com>
11092
11093 * gdbarch.sh: Use double quotes around variables.
11094
8d113d13
SM
110952020-04-29 Simon Marchi <simon.marchi@efficios.com>
11096
11097 * gdbarch.sh: Use %s with printf, instead of variables in the
11098 format string.
11099
ed6acedd
TT
111002020-04-29 Tom Tromey <tromey@adacore.com>
11101
11102 PR ada/25875:
11103 * dwarf2/read.c (update_enumeration_type_from_children): Compute
11104 type fields here.
11105 (read_enumeration_type): Call
11106 update_enumeration_type_from_children later. Update comments.
11107 (process_enumeration_scope): Don't create type fields.
11108
b68b1b58
KR
111092020-04-29 Kamil Rytarowski <n54@gmx.com>
11110
11111 * nbsd-tdep.c: Include "xml-syscall.h".
11112 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
11113
f94b2e03
KR
111142020-04-29 Kamil Rytarowski <n54@gmx.com>
11115
11116 * nbsd-nat.c: Include "sys/wait.h".
11117 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
11118 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
11119 (nbsd_nat_target::remove_exec_catchpoint)
11120 (nbsd_nat_target::set_syscall_catchpoint): Add.
11121 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
11122 (nbsd_nat_target::insert_exec_catchpoint)
11123 (nbsd_nat_target::remove_exec_catchpoint)
11124 (nbsd_nat_target::set_syscall_catchpoint): Add.
11125 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
11126 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
11127 `nbsd_get_syscall_number'.
11128
fc49bc72
TT
111292020-04-29 Tom Tromey <tom@tromey.com>
11130
11131 * stack.c (print_block_frame_labels): Remove.
11132
d642b692
HD
111332020-04-29 Hannes Domani <ssbssa@yahoo.de>
11134
11135 PR gdb/17320
11136 * ada-valprint.c (val_print_packed_array_elements): Move array
11137 end bracket to new line.
11138 (ada_val_print_string): Remove extra spaces before first array
11139 element.
11140 * c-valprint.c (c_value_print_array): Likewise.
11141 * m2-valprint.c (m2_print_array_contents): Likewise.
11142 (m2_value_print_inner): Likewise.
11143 * p-valprint.c (pascal_value_print_inner): Likewise.
11144 * valprint.c (generic_val_print_array): Likewise.
11145 (value_print_array_elements): Move first array element and array
11146 end bracket to new line.
11147
ea90f227
TV
111482020-04-29 Tom de Vries <tdevries@suse.de>
11149
11150 PR symtab/25889
11151 * linespec.c (find_method): Fix ix calculation.
11152
4498ef4f
KR
111532020-04-28 Kamil Rytarowski <n54@gmx.com>
11154
11155 * syscalls/update-netbsd.sh: New file.
11156 * syscalls/netbsd.xml: Regenerate.
11157 * data-directory/Makefile.in: Register `netbsd.xml' in
11158 `SYSCALLS_FILES'.
11159
a55e30b5
SM
111602020-04-28 Simon Marchi <simon.marchi@efficios.com>
11161
11162 * syscalls/update-freebsd.sh: Add double quotes.
11163
2b2fbab8
TT
111642020-04-28 Tom Tromey <tom@tromey.com>
11165
11166 * NEWS: Update.
11167 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
11168 (cmdpy_init): Allow class_tui.
11169
a65189c9
TV
111702020-04-28 Mark Williams <mark@myosotissp.com>
11171
11172 PR gdb/24480
11173 * dwarf2read.c: Add missing assingments to list_in_scope when
11174 start_symtab was already called.
11175
1b95cdb7
SM
111762020-04-28 Simon Marchi <simon.marchi@efficios.com>
11177
11178 PR gdb/25881
11179 * dwarf2/read.c (offset_map_type): Use
11180 gdb:hash_enum<sect_offset> as hash function.
11181
15cd93d0
TV
111822020-04-28 Tom de Vries <tdevries@suse.de>
11183
11184 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
11185 with DW_AT_signature.
11186
1eb39914
SM
111872020-04-27 Simon Marchi <simon.marchi@efficios.com>
11188
11189 * configure.ac: Remove check for fs_base/gs_base in
11190 user_regs_struct.
11191 * configure: Re-generate.
11192 * config.in: Re-generate.
11193 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
11194 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
11195 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
11196
991a3e2e
LM
111972020-04-27 Luis Machado <luis.machado@linaro.org>
11198
11199 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
11200 problematic inline frame unwinding situation.
11201 * frame.c (frame_id_computed_p): New function.
11202 * frame.h (frame_id_computed_p): New prototype.
11203
361ba0e8
TT
112042020-04-26 Tom Tromey <tom@tromey.com>
11205
11206 * command.h (enum command_class) <class_pseudo>: Remove.
11207
bc3609fd
PW
112082020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11209
11210 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
11211 and whitespace.
11212
b9771db7
KR
112132020-04-25 Kamil Rytarowski <n54@gmx.com>
11214
ec16513e
SM
11215 * inf-ptrace.c (inf_ptrace_target::wait): Remove
11216 `PT_GET_PROCESS_STATE' block.
b9771db7 11217
7151c1af
TT
112182020-04-24 Tom Tromey <tom@tromey.com>
11219
11220 * symtab.h (symbol_get_demangled_name): Don't declare.
11221 * symtab.c (symbol_get_demangled_name): Remove.
11222 (general_symbol_info::natural_name)
11223 (general_symbol_info::demangled_name): Update.
11224
906bb4c5
TT
112252020-04-24 Tom Tromey <tom@tromey.com>
11226
11227 PR rust/25025:
11228 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
11229
bcfe6157
TT
112302020-04-24 Tom Tromey <tom@tromey.com>
11231
11232 PR symtab/12707:
11233 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
11234 exists.
11235 (new_symbol): Likewise.
11236 * compile/compile-object-load.c (get_out_value_type): Use
11237 symbol_matches_search_name.
11238
f049a313
TT
112392020-04-24 Tom Tromey <tom@tromey.com>
11240
11241 * dwarf2/read.c (add_partial_symbol): Do not call
11242 compute_and_set_names.
11243
76e288d1
TT
112442020-04-24 Tom Tromey <tom@tromey.com>
11245
11246 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
11247 overload.
11248
2467f4f6
TT
112492020-04-24 Tom Tromey <tom@tromey.com>
11250
11251 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
11252 (add_psymbol_to_list): New overload. Make old overload call new
11253 one.
11254 * psympriv.h (add_psymbol_to_list): New overload.
11255
e61108c9
TT
112562020-04-24 Tom Tromey <tom@tromey.com>
11257
11258 * dwarf2/read.c (partial_die_info::read) <case
11259 DW_AT_linkage_name>: Use value_as_string.
11260 (dwarf2_string_attr): Use value_as_string.
11261 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
11262 method.
11263 * dwarf2/attribute.c (attribute::value_as_string): New method.
11264
8c87a452
TT
112652020-04-24 Tom Tromey <tom@tromey.com>
11266
11267 * symtab.c (general_symbol_info::natural_name)
11268 (general_symbol_info::demangled_name): Check for language_rust.
11269
787de330
TT
112702020-04-24 Tom Tromey <tom@tromey.com>
11271
11272 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
11273 (dwarf2_physname): ... from here.
11274 (partial_die_info::read): Add Rust "{" hack.
11275
ff985671
TT
112762020-04-24 Tom Tromey <tom@tromey.com>
11277
11278 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
11279 method.
11280 (symbol_set_demangled_name): Don't declare.
11281 * symtab.c (general_symbol_info::set_demangled_name): Rename from
11282 symbol_set_demangled_name.
11283 (general_symbol_info::set_language)
11284 (general_symbol_info::compute_and_set_names): Update.
11285 * minsyms.c (minimal_symbol_reader::install): Update.
11286 * dwarf2/read.c (new_symbol): Update.
11287
1acda803
TT
112882020-04-24 Tom Tromey <tromey@adacore.com>
11289
11290 PR python/23662:
11291 * python/py-type.c (convert_field): Handle
11292 FIELD_LOC_KIND_DWARF_BLOCK.
11293 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
11294 (typy_get_dynamic): Nw function.
11295 (type_object_getset): Add "dynamic".
11296 * NEWS: Add entry.
11297
d656f129
TT
112982020-04-24 Tom Tromey <tromey@adacore.com>
11299
11300 * ada-typeprint.c (print_choices, print_variant_part)
11301 (print_record_field_types_dynamic): New functions.
11302 (print_record_field_types): Use print_record_field_types_dynamic.
11303
7d79de9a
TT
113042020-04-24 Tom Tromey <tromey@adacore.com>
11305
11306 * dwarf2/read.c (handle_data_member_location): New overload.
11307 (dwarf2_add_field): Use it.
11308 (decode_locdesc): Add "computed" parameter. Update comment.
11309 * gdbtypes.c (is_dynamic_type_internal): Also look for
11310 FIELD_LOC_KIND_DWARF_BLOCK.
11311 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
11312 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
11313 virtual base classes.
11314 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
11315 FIELD_LOC_KIND_DWARF_BLOCK.
11316
f8e89861
TT
113172020-04-24 Tom Tromey <tromey@adacore.com>
11318
11319 * dwarf2/read.c (read_structure_type): Handle dynamic length.
11320 * gdbtypes.c (is_dynamic_type_internal): Check
11321 TYPE_HAS_DYNAMIC_LENGTH.
11322 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
11323 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
11324 New macros.
11325 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
11326 constant.
11327
9c6a1327
TT
113282020-04-24 Tom Tromey <tromey@adacore.com>
11329
11330 * dwarf2/read.c (struct variant_field): Rewrite.
11331 (struct variant_part_builder): New.
11332 (struct nextfield): Remove "variant" field. Add "offset".
11333 (struct field_info): Add "current_variant_part" and
11334 "variant_parts".
11335 (alloc_discriminant_info): Remove.
11336 (alloc_rust_variant): New function.
11337 (quirk_rust_enum): Update.
11338 (dwarf2_add_field): Set "offset" member. Don't handle
11339 DW_TAG_variant_part.
11340 (offset_map_type): New typedef.
11341 (convert_variant_range, create_one_variant)
11342 (create_one_variant_part, create_variant_parts)
11343 (add_variant_property): New functions.
11344 (dwarf2_attach_fields_to_type): Call add_variant_property.
11345 (read_structure_type): Don't handle DW_TAG_variant_part.
11346 (handle_variant_part, handle_variant): New functions.
11347 (handle_struct_member_die): Use them.
11348 (process_structure_scope): Don't handle variant parts.
11349 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
11350 (struct discriminant_info): Remove.
11351 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
11352 (struct main_type) <flag_discriminated_union>: Remove.
11353 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
11354 (rust_enum_variant): Return int. Remove "contents". Rewrite.
11355 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
11356 Update.
11357 * valops.c (value_union_variant): Remove.
11358 * value.h (value_union_variant): Don't declare.
11359
b249d2c2
TT
113602020-04-24 Tom Tromey <tromey@adacore.com>
11361
11362 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
11363 (ada_value_primitive_packed_val): Update.
11364 * ada-valprint.c (ada_value_print_1): Update.
11365 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
11366 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
11367 just an address. Use evaluate_for_locexpr_baton.
11368 (dwarf2_evaluate_property): Update.
11369 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
11370 array_view.
11371 * findvar.c (default_read_var_value): Update.
11372 * gdbtypes.c (compute_variant_fields_inner)
11373 (resolve_dynamic_type_internal): Update.
11374 (resolve_dynamic_type): Change type of valaddr parameter.
11375 * gdbtypes.h (resolve_dynamic_type): Update.
11376 * valarith.c (value_subscripted_rvalue): Update.
11377 * value.c (value_from_contents_and_address): Update.
11378
61122aa9
TT
113792020-04-24 Tom Tromey <tromey@adacore.com>
11380
11381 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
11382 "push_initial_value" parameter.
11383 (dwarf2_evaluate_property): Likewise.
11384 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
11385
ef83a141
TT
113862020-04-24 Tom Tromey <tromey@adacore.com>
11387
11388 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
11389 (variant::matches, compute_variant_fields_recurse)
11390 (compute_variant_fields_inner, compute_variant_fields): New
11391 functions.
11392 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
11393 Use resolved_type after type is made.
11394 (operator==): Add new cases.
11395 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
11396 (struct discriminant_range, struct variant, struct variant_part):
11397 New.
11398 (union dynamic_prop_data) <variant_parts, original_type>: New
11399 members.
11400 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
11401 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
11402 constants.
11403 * value.c (unpack_bits_as_long): Now public.
11404 * value.h (unpack_bits_as_long): Declare.
11405
675127ec
TT
114062020-04-24 Tom Tromey <tromey@adacore.com>
11407
11408 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
11409 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
11410
9852ceef
HD
114112020-04-24 Hannes Domani <ssbssa@yahoo.de>
11412
11413 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
11414
7632c6ce
KR
114152020-04-24 Kamil Rytarowski <n54@gmx.com>
11416
11417 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
11418 (remove_fork_catchpoint, post_startup_inferior)
11419 (post_attach): Move...
11420 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
11421 (remove_fork_catchpoint, post_startup_inferior)
11422 (post_attach): ...here.
11423 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
11424 (remove_fork_catchpoint, post_startup_inferior)
11425 (post_attach): Move...
11426 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
11427 (remove_fork_catchpoint, post_startup_inferior)
11428 (post_attach): ...here.
11429
7be2bb4f
TT
114302020-04-24 Tom Tromey <tromey@adacore.com>
11431
11432 * nat/windows-nat.h (struct windows_thread_info)
11433 <pc_adjusted>: New member.
11434 * windows-nat.c (windows_fetch_one_register): Check
11435 pc_adjusted.
11436 (windows_nat_target::get_windows_debug_event)
11437 (windows_nat_target::wait): Set pc_adjusted.
11438
f80cb3b4
TV
114392020-04-24 Tom de Vries <tdevries@suse.de>
11440
11441 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
11442 Run gdb-add-index inside temp dir.
11443
29514b87
TT
114442020-04-23 Tom Tromey <tromey@adacore.com>
11445
11446 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
11447 in loop.
11448
5939967b
LM
114492020-04-23 Luis Machado <luis.machado@linaro.org>
11450
11451 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
11452 get_frame_register instead of gdbarch_unwind_pc.
11453
70bc38f5
TV
114542020-04-23 Tom de Vries <tdevries@suse.de>
11455
11456 * symtab.c (lookup_global_symbol): Prefer def over decl.
11457
de82891c
TV
114582020-04-23 Tom de Vries <tdevries@suse.de>
11459
11460 PR symtab/25807
11461 * block.c (best_symbol, better_symbol): Promote to external.
11462 * block.h (best_symbol, better_symbol): Declare.
11463 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
11464 decl.
11465
ecc6c606
TT
114662020-04-23 Tom Tromey <tromey@adacore.com>
11467
11468 PR ada/25837:
11469 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
11470 "const char *", not a "const std::string &".
11471 <name_and_matcher::operator==>: Update.
11472 * unittests/lookup_name_info-selftests.c: Change type of
11473 "result".
11474
740480b8
TT
114752020-04-23 Tom Tromey <tom@tromey.com>
11476
11477 * inferior.h (iterate_over_inferiors): Don't declare.
11478 * inferior.c (iterate_over_inferiors): Remove.
11479 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
11480 Remove.
11481 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
11482 use iterate_over_inferiors.
11483 (darwin_resume_inferior_it)
11484 (struct resume_inferior_threads_param)
11485 (darwin_resume_inferior_threads_it): Remove.
11486 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
11487
ae3ab1f0
TV
114882020-04-23 Tom de Vries <tdevries@suse.de>
11489
11490 * blockframe.c (find_pc_partial_function): Use
11491 find_pc_sect_compunit_symtab rather than
11492 objfile->sf->qf->find_pc_sect_compunit_symtab.
11493
317d2668
TV
114942020-04-22 Tom de Vries <tdevries@suse.de>
11495
11496 PR symtab/25764
11497 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
11498 in psymtabs.
11499
eea9e357
TV
115002020-04-22 Tom de Vries <tdevries@suse.de>
11501
11502 PR symtab/25801
11503 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
11504 symtabs.
11505
3d5afab3
TV
115062020-04-22 Tom de Vries <tdevries@suse.de>
11507
11508 PR symtab/25700
11509 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
11510 CU if already created.
11511
d43b7a2d
TBA
115122020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11513
11514 * infrun.c (displaced_step_fixup): Switch to the event_thread
11515 before calling displaced_step_restore, not after.
11516
d89edf9b
MM
115172020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11518
11519 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
11520 its inferior is not recorded by us.
11521 (record_btrace_target_open): Replace call to
11522 all_non_exited_threads () with call to current_inferior
11523 ()->non_exited_threads ().
11524 (record_btrace_target::stop_recording): Likewise.
11525 (record_btrace_target::close): Likewise.
11526 (record_btrace_target::wait): Likewise.
11527 (record_btrace_target::record_stop_replaying): Likewise.
11528
5897fd49
MM
115292020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11530
11531 * btrace.c (btrace_enable): Throw an error on double enables and
11532 when enabling recording fails.
11533 (btrace_disable): Throw an error if the thread is not recorded.
11534
1a476b6d
MM
115352020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11536
11537 * record-btrace.c (record_btrace_target::fetch_registers): Forward
11538 request if we do not have a thread_info.
11539
4778a5f8
TV
115402020-04-21 Tom de Vries <tdevries@suse.de>
11541
11542 PR gdb/25471
11543 * thread.c
11544 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
11545 exception in get_frame_id.
11546
0fa7617d
TT
115472020-04-20 Tom Tromey <tromey@adacore.com>
11548
11549 * python/python.c (struct gdbpy_event): Mark move constructor as
11550 noexcept.
11551 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
11552 constructor as noexcept.
11553 * completer.h (struct completion_result): Mark move constructor as
11554 noexcept.
11555 * completer.c (completion_result::completion_result): Use
11556 initialization style. Don't call reset_match_list.
11557
ad23bda0
MS
115582020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
11559
11560 * MAINTAINERS (Write After Approval): Add myself.
11561
45e1f031
TT
115622020-04-18 Tom Tromey <tom@tromey.com>
11563
11564 * windows-tdep.c (init_w32_command_list)
11565 (w32_prefix_command_valid): Restore.
11566 (_initialize_windows_tdep): Call init_w32_command_list.
11567
08feed99
TT
115682020-04-18 Tom Tromey <tom@tromey.com>
11569
11570 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
11571 * value.c (value_fn_field): Update.
11572 * valops.c (find_function_in_inferior)
11573 (value_allocate_space_in_inferior): Update.
11574 * tui/tui-winsource.c (tui_update_source_windows_with_line):
11575 Update.
11576 * tui/tui-source.c (tui_source_window::set_contents): Update.
11577 * symtab.c (lookup_global_or_static_symbol)
11578 (find_function_start_sal_1, skip_prologue_sal)
11579 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
11580 * symmisc.c (dump_msymbols, dump_symtab_1)
11581 (maintenance_print_one_line_table): Update.
11582 * symfile.c (init_entry_point_info, section_is_mapped)
11583 (list_overlays_command, simple_read_overlay_table)
11584 (simple_overlay_update_1): Update.
11585 * stap-probe.c (handle_stap_probe): Update.
11586 * stabsread.c (dbx_init_float_type, define_symbol)
11587 (read_one_struct_field, read_enum_type, read_range_type): Update.
11588 * source.c (info_line_command): Update.
11589 * python/python.c (gdbpy_source_objfile_script)
11590 (gdbpy_execute_objfile_script): Update.
11591 * python/py-type.c (save_objfile_types): Update.
11592 * python/py-objfile.c (py_free_objfile): Update.
11593 * python/py-inferior.c (python_new_objfile): Update.
11594 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
11595 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
11596 (maintenance_check_psymtabs): Update.
11597 * printcmd.c (info_address_command): Update.
11598 * objfiles.h (struct objfile) <arch>: New method, from
11599 get_objfile_arch.
11600 (get_objfile_arch): Don't declare.
11601 * objfiles.c (get_objfile_arch): Remove.
11602 (filter_overlapping_sections): Update.
11603 * minsyms.c (msymbol_is_function): Update.
11604 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
11605 (output_nondebug_symbol): Update.
11606 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
11607 (mdebug_expand_psymtab): Update.
11608 * machoread.c (macho_add_oso_symfile): Update.
11609 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
11610 Update.
11611 * linux-fork.c (checkpoint_command): Update.
11612 * linespec.c (convert_linespec_to_sals): Update.
11613 * jit.c (finalize_symtab): Update.
11614 * infrun.c (insert_exception_resume_from_probe): Update.
11615 * ia64-tdep.c (ia64_find_unwind_table): Update.
11616 * hppa-tdep.c (internalize_unwinds): Update.
11617 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
11618 Update.
11619 * gcore.c (call_target_sbrk): Update.
11620 * elfread.c (record_minimal_symbol, elf_symtab_read)
11621 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
11622 (elf_gnu_ifunc_resolve_by_got): Update.
11623 * dwarf2/read.c (create_addrmap_from_index)
11624 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11625 (read_debug_names_from_section)
11626 (process_psymtab_comp_unit_reader, add_partial_symbol)
11627 (add_partial_subprogram, process_full_comp_unit)
11628 (read_file_scope, read_func_scope, read_lexical_block_scope)
11629 (read_call_site_scope, dwarf2_ranges_read)
11630 (dwarf2_record_block_ranges, dwarf2_add_field)
11631 (mark_common_block_symbol_computed, read_tag_pointer_type)
11632 (read_tag_string_type, dwarf2_init_float_type)
11633 (dwarf2_init_complex_target_type, read_base_type)
11634 (partial_die_info::read, partial_die_info::read)
11635 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
11636 (dwarf2_fetch_die_loc_sect_off): Update.
11637 * dwarf2/loc.c (dwarf2_find_location_expression)
11638 (class dwarf_evaluate_loc_desc, rw_pieced_value)
11639 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
11640 (dwarf2_loc_desc_get_symbol_read_needs)
11641 (locexpr_describe_location_piece, locexpr_describe_location_1)
11642 (loclist_describe_location): Update.
11643 * dwarf2/index-write.c (write_debug_names): Update.
11644 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
11645 * dtrace-probe.c (dtrace_process_dof): Update.
11646 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
11647 (process_one_symbol): Update.
11648 * ctfread.c (ctf_init_float_type, read_base_type): Update.
11649 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
11650 (coff_read_enum_type): Update.
11651 * cli/cli-cmds.c (edit_command, list_command): Update.
11652 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
11653 * breakpoint.c (create_overlay_event_breakpoint)
11654 (create_longjmp_master_breakpoint)
11655 (create_std_terminate_master_breakpoint)
11656 (create_exception_master_breakpoint, get_sal_arch): Update.
11657 * block.c (block_gdbarch): Update.
11658 * annotate.c (annotate_source_line): Update.
11659
0743fc83
TT
116602020-04-17 Tom Tromey <tromey@adacore.com>
11661
11662 * auto-load.c (show_auto_load_cmd): Remove.
11663 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
11664 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
11665 (maintenance_print_arc_command): Remove.
11666 * tui/tui-win.c (tui_command): Remove.
11667 (tui_get_cmd_list): Use add_basic_prefix_cmd.
11668 * tui/tui-layout.c (tui_layout_command): Remove.
11669 (_initialize_tui_layout): Use add_basic_prefix_cmd.
11670 * python/python.c (user_set_python, user_show_python): Remove.
11671 (_initialize_python): Use add_basic_prefix_cmd,
11672 add_show_prefix_cmd.
11673 * guile/guile.c (set_guile_command, show_guile_command): Remove.
11674 (install_gdb_commands): Use add_basic_prefix_cmd,
11675 add_show_prefix_cmd.
11676 (info_guile_command): Remove.
11677 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
11678 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
11679 add_show_prefix_cmd.
11680 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
11681 Remove do_set and do_show parameters.
11682 * cli/cli-style.c (set_style, show_style): Remove.
11683 (_initialize_cli_style): Use add_basic_prefix_cmd,
11684 add_show_prefix_cmd.
11685 (cli_style_option::add_setshow_commands): Remove do_set and
11686 do_show parameters.
11687 (cli_style_option::add_setshow_commands): Use
11688 add_basic_prefix_cmd, add_show_prefix_cmd.
11689 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
11690 (set_style_name): Remove.
11691 * cli/cli-dump.c (dump_command, append_command): Remove.
11692 (srec_dump_command, ihex_dump_command, verilog_dump_command)
11693 (tekhex_dump_command, binary_dump_command)
11694 (binary_append_command): Remove.
11695 (_initialize_cli_dump): Use add_basic_prefix_cmd.
11696 * windows-tdep.c (w32_prefix_command_valid): Remove global.
11697 (init_w32_command_list): Remove; move into ...
11698 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
11699 * valprint.c (set_print, show_print, set_print_raw)
11700 (show_print_raw): Remove.
11701 (_initialize_valprint): Use add_basic_prefix_cmd,
11702 add_show_prefix_cmd.
11703 * typeprint.c (set_print_type, show_print_type): Remove.
11704 (_initialize_typeprint): Use add_basic_prefix_cmd,
11705 add_show_prefix_cmd.
11706 * record.c (set_record_command, show_record_command): Remove.
11707 (_initialize_record): Use add_basic_prefix_cmd,
11708 add_show_prefix_cmd.
11709 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
11710 add_show_prefix_cmd.
11711 (info_command, show_command, set_debug, show_debug): Remove.
11712 * top.h (set_history, show_history): Don't declare.
11713 * top.c (set_history, show_history): Remove.
11714 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
11715 (unset_tdesc_cmd): Remove.
11716 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
11717 add_show_prefix_cmd.
11718 * symtab.c (info_module_command): Remove.
11719 (_initialize_symtab): Use add_basic_prefix_cmd.
11720 * symfile.c (overlay_command): Remove.
11721 (_initialize_symfile): Use add_basic_prefix_cmd.
11722 * sparc64-tdep.c (info_adi_command): Remove.
11723 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
11724 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
11725 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
11726 add_show_prefix_cmd.
11727 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
11728 (_initialize_serial): Use add_basic_prefix_cmd,
11729 add_show_prefix_cmd.
11730 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
11731 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
11732 add_show_prefix_cmd.
11733 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
11734 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
11735 add_show_prefix_cmd.
11736 * riscv-tdep.c (show_riscv_command, set_riscv_command)
11737 (show_debug_riscv_command, set_debug_riscv_command): Remove.
11738 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
11739 add_show_prefix_cmd.
11740 * remote.c (remote_command, set_remote_cmd): Remove.
11741 (_initialize_remote): Use add_basic_prefix_cmd.
11742 * record-full.c (set_record_full_command)
11743 (show_record_full_command): Remove.
11744 (_initialize_record_full): Use add_basic_prefix_cmd,
11745 add_show_prefix_cmd.
11746 * record-btrace.c (cmd_set_record_btrace)
11747 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
11748 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
11749 (cmd_show_record_btrace_pt): Remove.
11750 (_initialize_record_btrace): Use add_basic_prefix_cmd,
11751 add_show_prefix_cmd.
11752 * ravenscar-thread.c (set_ravenscar_command)
11753 (show_ravenscar_command): Remove.
11754 (_initialize_ravenscar): Use add_basic_prefix_cmd,
11755 add_show_prefix_cmd.
11756 * mips-tdep.c (show_mips_command, set_mips_command)
11757 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
11758 add_show_prefix_cmd.
11759 * maint.c (maintenance_command, maintenance_info_command)
11760 (maintenance_check_command, maintenance_print_command)
11761 (maintenance_set_cmd, maintenance_show_cmd): Remove.
11762 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
11763 add_show_prefix_cmd.
11764 (show_per_command_cmd): Remove.
11765 * maint-test-settings.c (maintenance_set_test_settings_cmd):
11766 Remove.
11767 (maintenance_show_test_settings_cmd): Remove.
11768 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
11769 add_show_prefix_cmd.
11770 * maint-test-options.c (maintenance_test_options_command):
11771 Remove.
11772 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
11773 * macrocmd.c (macro_command): Remove
11774 (_initialize_macrocmd): Use add_basic_prefix_cmd.
11775 * language.c (set_check, show_check): Remove.
11776 (_initialize_language): Use add_basic_prefix_cmd,
11777 add_show_prefix_cmd.
11778 * infcmd.c (unset_command): Remove.
11779 (_initialize_infcmd): Use add_basic_prefix_cmd.
11780 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
11781 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
11782 add_show_prefix_cmd.
11783 * go32-nat.c (go32_info_dos_command): Remove.
11784 (_initialize_go32_nat): Use add_basic_prefix_cmd.
11785 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
11786 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
11787 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
11788 (_initialize_frame): Use add_basic_prefix_cmd,
11789 add_show_prefix_cmd.
11790 * dcache.c (set_dcache_command, show_dcache_command): Remove.
11791 (_initialize_dcache): Use add_basic_prefix_cmd,
11792 add_show_prefix_cmd.
11793 * cp-support.c (maint_cplus_command): Remove.
11794 (_initialize_cp_support): Use add_basic_prefix_cmd.
11795 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
11796 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
11797 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
11798 add_basic_prefix_cmd, add_show_prefix_cmd.
11799 * breakpoint.c (save_command): Remove.
11800 (_initialize_breakpoint): Use add_basic_prefix_cmd.
11801 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
11802 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
11803 add_show_prefix_cmd.
11804 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
11805 (set_ada_command, show_ada_command): Remove.
11806 (_initialize_ada_language): Use add_basic_prefix_cmd,
11807 add_show_prefix_cmd.
11808 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
11809
3557f442
KR
118102020-04-16 Kamil Rytarowski <n54@gmx.com>
11811
11812 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
11813 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
11814
16197208
SM
118152020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
11816
11817 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
11818 warning messages.
11819
00ac85d3
SM
118202020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
11821
11822 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
11823 import table is not at beginning of .idata section.
11824
381ce63f
PA
118252020-04-16 Pedro Alves <palves@redhat.com>
11826
11827 * inferior.c (delete_inferior): Use delete operator directly
11828 instead of delete_program_space.
11829 * progspace.c (add_program_space): New, factored out from
11830 program_space::program_space.
11831 (remove_program_space): New, factored out from
11832 delete_program_space.
11833 (program_space::program_space): Remove intro comment. Rewrite.
11834 (program_space::~program_space): Remove intro comment. Call
11835 remove_program_space.
11836 (delete_program_space): Delete.
11837 * progspace.h (program_space::program_space): Make explicit. Move
11838 intro comment here, adjusted.
11839 (program_space::~program_space): Move intro comment here,
11840 adjusted.
11841 (delete_program_space): Remove.
11842
a010605f
TT
118432020-04-16 Tom Tromey <tromey@adacore.com>
11844
11845 * windows-nat.c (windows_nat::handle_access_violation): New
11846 function.
11847 * nat/windows-nat.h (handle_access_violation): Declare.
11848 * nat/windows-nat.c (handle_exception): Move Cygwin code to
11849 windows-nat.c. Call handle_access_violation.
11850
efba5c23
TV
118512020-04-16 Tom de Vries <tdevries@suse.de>
11852
11853 PR symtab/25791
11854 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
11855 CUs without psymtab.
11856
97ed802d
KB
118572020-04-16 Kevin Buettner <kevinb@redhat.com>
11858
11859 * python/python.c (do_start_initialization): Don't call
11860 PyEval_InitThreads for Python 3.9 and beyond.
11861
c7d64809
KR
118622020-04-15 Kamil Rytarowski <n54@gmx.com>
11863
11864 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
11865 thread functions.
11866 (obsd_nat_target::wait): Likewise.
11867
ce127a96
TT
118682020-04-15 Tom Tromey <tromey@adacore.com>
11869
11870 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
11871 (DEBUG_EXCEPT): Use debug_printf.
11872
99f1bc6a
AB
118732020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
11874
11875 * completer.c (class completion_tracker::completion_hash_entry)
11876 <hash_name>: New member function.
11877 (completion_tracker::discard_completions): New callback to hash a
11878 completion_hash_entry, pass this to htab_create_alloc.
11879
a0e9b532
JT
118802016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
11881
11882 * windows-nat.c (windows_make_so): Warn rather than stopping with
11883 an error if realpath() fails.
11884
06ca5dd4
KR
118852020-04-14 Kamil Rytarowski <n54@gmx.com>
11886
11887 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
11888 (nbsd_nat_target::info_proc): Add do_status.
11889
194d088f
TV
118902020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
11891 Tom de Vries <tdevries@suse.de>
11892
11893 PR symtab/25718
11894 * psympriv.h (struct partial_symtab::read_symtab)
11895 (struct partial_symtab::expand_psymtab)
11896 (struct partial_symtab::read_dependencies): Update comments.
11897 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
11898 read_symtab for includer.
11899 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
11900 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
11901 (struct dwarf2_include_psymtab::m_readin): Remove.
11902 (struct dwarf2_include_psymtab::includer): New member function.
11903 (dwarf2_psymtab::expand_psymtab): Assert !readin.
11904
c1a66c06
TV
119052020-04-14 Tom de Vries <tdevries@suse.de>
11906
11907 PR symtab/25720
11908 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
11909 with NULL symbol_matcher and lookup_name.
11910 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
11911 and lookup_name.
11912 * dwarf2/read.c (dw2_expand_symtabs_matching)
11913 (dw2_debug_names_expand_symtabs_matching): Same.
11914 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
11915 Make lookup_name a pointer. Update comment.
11916 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
11917 lookup_name being a pointer.
11918 * symfile.c (expand_symtabs_matching): Same.
11919 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
11920 * linespec.c (iterate_over_all_matching_symtabs): Same.
11921
400b5eca
TT
119222020-04-13 Tom Tromey <tom@tromey.com>
11923
11924 * run-on-main-thread.c: Update include.
11925 * unittests/main-thread-selftests.c: Update include.
11926 * tui/tui-win.c: Update include.
11927 * tui/tui-io.c: Update include.
11928 * tui/tui-interp.c: Update include.
11929 * tui/tui-hooks.c: Update include.
11930 * top.h: Update include.
11931 * top.c: Update include.
11932 * ser-base.c: Update include.
11933 * remote.c: Update include.
11934 * remote-notif.c: Update include.
11935 * remote-fileio.c: Update include.
11936 * record-full.c: Update include.
11937 * record-btrace.c: Update include.
11938 * python/python.c: Update include.
11939 * posix-hdep.c: Update include.
11940 * mingw-hdep.c: Update include.
11941 * mi/mi-main.c: Update include.
11942 * mi/mi-interp.c: Update include.
11943 * main.c: Update include.
11944 * linux-nat.c: Update include.
11945 * interps.c: Update include.
11946 * infrun.c: Update include.
11947 * inf-loop.c: Update include.
11948 * event-top.c: Update include.
11949 * event-loop.c: Move to ../gdbsupport/.
11950 * event-loop.h: Move to ../gdbsupport/.
11951 * async-event.h: Update include.
11952 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
11953
93b54c8e
TT
119542020-04-13 Tom Tromey <tom@tromey.com>
11955
11956 * tui/tui-win.c: Include async-event.h.
11957 * remote.c: Include async-event.h.
11958 * remote-notif.c: Include async-event.h.
11959 * record-full.c: Include async-event.h.
11960 * record-btrace.c: Include async-event.h.
11961 * infrun.c: Include async-event.h.
11962 * event-top.c: Include async-event.h.
11963 * event-loop.h: Move some declarations to async-event.h.
11964 * event-loop.c: Don't include ser-event.h or top.h. Move some
11965 code to async-event.c.
11966 * async-event.h: New file.
11967 * async-event.c: New file.
11968 * Makefile.in (COMMON_SFILES): Add async-event.c.
11969 (HFILES_NO_SRCDIR): Add async-event.h.
11970
c1cd3163
TT
119712020-04-13 Tom Tromey <tom@tromey.com>
11972
11973 * utils.c (flush_streams): New function.
11974 * event-loop.c (gdb_wait_for_event): Call flush_streams.
11975
29f2bf4f
TT
119762020-04-13 Tom Tromey <tom@tromey.com>
11977
11978 * event-loop.c (handle_file_event): Use warning, not
11979 printf_unfiltered.
11980
98029d02
TT
119812020-04-13 Tom Tromey <tom@tromey.com>
11982
11983 * event-loop.c: Include <chrono>.
11984
06cc9596
TT
119852020-04-13 Tom Tromey <tom@tromey.com>
11986
11987 * gdb_select.h: Move to ../gdbsupport/.
11988 * event-loop.c: Update include path.
11989 * top.c: Update include path.
11990 * ser-base.c: Update include path.
11991 * ui-file.c: Update include path.
11992 * ser-tcp.c: Update include path.
11993 * guile/scm-ports.c: Update include path.
11994 * posix-hdep.c: Update include path.
11995 * ser-unix.c: Update include path.
11996 * gdb_usleep.c: Update include path.
11997 * mingw-hdep.c: Update include path.
11998 * inflow.c: Update include path.
11999 * infrun.c: Update include path.
12000 * event-top.c: Update include path.
12001
8ae8e197
TT
120022020-04-13 Tom Tromey <tom@tromey.com>
12003
12004 * configure: Rebuild.
12005 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
12006
58cf28e8
TT
120072020-04-13 Tom Tromey <tom@tromey.com>
12008
12009 * event-loop.h (start_event_loop): Don't declare.
12010 * event-loop.c (start_event_loop): Move...
12011 * main.c (start_event_loop): ...here. Now static.
12012
b7f999ae
SDJ
120132020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
12014
12015 * MAINTAINERS: Update my email address.
12016
1085dfd4
KR
120172020-04-12 Kamil Rytarowski <n54@gmx.com>
12018
12019 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
12020 IP_ALL.
12021
49d1d1f5
KR
120222020-04-12 Kamil Rytarowski <n54@gmx.com>
12023
12024 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 12025 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 12026
b4848d2a
KR
120272020-04-12 Kamil Rytarowski <n54@gmx.com>
12028
12029 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 12030 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 12031
51c133d5
KR
120322020-04-12 Kamil Rytarowski <n54@gmx.com>
12033
12034 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
12035
54b8cbd0
KR
120362020-04-11 Kamil Rytarowski <n54@gmx.com>
12037
12038 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
12039 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
12040 (nbsd_nat_target::info_proc): New functions.
12041 * nbsd-nat.c (kinfo_get_vmmap): New function.
12042 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
12043 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
12044 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
12045 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
12046 functions.
12047 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
12048 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
12049 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
12050 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
12051 (KINFO_VME_FLAG_GROWS_DOWN): New.
12052
cf83625d
AS
120532020-04-10 Artur Shepilko <nomadbyte@gmail.com>
12054
12055 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
12056 bit shift.
12057
0c4311ab
TT
120582020-04-10 Tom Tromey <tromey@adacore.com>
12059
12060 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
12061
3e65b3e9
TT
120622020-04-10 Tom Tromey <tromey@adacore.com>
12063
12064 * symtab.c (get_symbol_address, get_msymbol_address): Skip
12065 separate debug files.
12066
13302e95
HD
120672020-04-10 Hannes Domani <ssbssa@yahoo.de>
12068
12069 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
12070 Move to...
12071 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
12072 ... here.
12073 * windows-nat.c (windows_nat_target::get_windows_debug_event):
12074 Check for STATUS_WX86_BREAKPOINT.
12075 (windows_nat_target::wait): Same.
12076
bdfc1e8a
TV
120772020-04-10 Tom de Vries <tdevries@suse.de>
12078
12079 PR cli/25808
12080 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
12081
f4460aec
SM
120822020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12083
12084 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
12085 (Write After Approval): Remove Tom de Vries.
12086
a25198bb
BE
120872020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
12088
12089 revert partially:
12090 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12091
aac66a4c
SM
12092 * buildsym.c (record_line): Fix undefined behavior and preserve
12093 lines at eof.
a25198bb 12094
206c98a6
KR
120952020-04-09 Kamil Rytarowski <n54@gmx.com>
12096
12097 * auxv.h (svr4_auxv_parse): New.
12098 * auxv.c (default_auxv_parse): Split into default_auxv_parse
12099 and generic_auxv_parse.
12100 (svr4_auxv_parse): Add.
12101 * obsd-tdep.c: Include "auxv.h".
12102 (obsd_auxv_parse): Remove.
12103 (obsd_init_abi): Remove comment.
12104 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
12105 from `obsd_auxv_parse' to `svr4_auxv_parse'.
12106 * nbsd-tdep.c: Include "auxv.h".
12107 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
12108
71fbdbaf
TT
121092020-04-08 Tom Tromey <tromey@adacore.com>
12110
12111 * nat/windows-nat.h (last_wait_event): Don't declare.
12112 (wait_for_debug_event): Update comment.
12113 * nat/windows-nat.c (last_wait_event): Now static.
12114
2c1d95e8
TT
121152020-04-08 Tom Tromey <tromey@adacore.com>
12116
12117 * windows-nat.c (wait_for_debug_event): Move to
12118 nat/windows-nat.c.
12119 * nat/windows-nat.h (wait_for_debug_event): Declare.
12120 * nat/windows-nat.c (wait_for_debug_event): Move from
12121 windows-nat.c. No longer static.
12122
d2977bc4
TT
121232020-04-08 Tom Tromey <tromey@adacore.com>
12124
12125 * windows-nat.c (get_windows_debug_event): Use
12126 fetch_pending_stop.
12127 * nat/windows-nat.h (fetch_pending_stop): Declare.
12128 * nat/windows-nat.c (fetch_pending_stop): New function.
12129
e758e19c
TT
121302020-04-08 Tom Tromey <tromey@adacore.com>
12131
12132 * windows-nat.c (windows_continue): Use matching_pending_stop and
12133 continue_last_debug_event.
12134 * nat/windows-nat.h (matching_pending_stop)
12135 (continue_last_debug_event): Declare.
12136 * nat/windows-nat.c (DEBUG_EVENTS): New define.
12137 (matching_pending_stop, continue_last_debug_event): New
12138 functions.
12139
8d30e395
TT
121402020-04-08 Tom Tromey <tromey@adacore.com>
12141
12142 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
12143 (handle_exception_result): Move to nat/windows-nat.h.
12144 (DEBUG_EXCEPTION_SIMPLE): Remove.
12145 (windows_nat::handle_ms_vc_exception): New function.
12146 (handle_exception): Move to nat/windows-nat.c.
12147 (get_windows_debug_event): Update.
12148 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
12149 nat/windows-nat.c.
12150 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
12151 (handle_exception_result): Move from windows-nat.c.
12152 (handle_exception): Declare.
12153 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
12154 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
12155 windows-nat.c.
12156
29de418d
TT
121572020-04-08 Tom Tromey <tromey@adacore.com>
12158
12159 * windows-nat.c (exception_count, event_count): Remove.
12160 (handle_exception, get_windows_debug_event)
12161 (do_initial_windows_stuff): Update.
12162
a816ba18
TT
121632020-04-08 Tom Tromey <tromey@adacore.com>
12164
12165 * windows-nat.c (windows_nat::handle_load_dll)
12166 (windows_nat::handle_unload_dll): Rename. No longer static.
12167 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
12168 Declare.
12169
a00caa12
TT
121702020-04-08 Tom Tromey <tromey@adacore.com>
12171
12172 * complaints.h (stop_whining): Declare at top-level.
12173 (complaint): Don't declare stop_whining.
12174
d41b524f
TT
121752020-04-08 Tom Tromey <tromey@adacore.com>
12176
12177 * windows-nat.c (windows_nat::handle_output_debug_string):
12178 Rename. No longer static.
12179 * nat/windows-nat.h (handle_output_debug_string): Declare.
12180
3c76026d
TT
121812020-04-08 Tom Tromey <tromey@adacore.com>
12182
12183 * windows-nat.c (current_process_handle, current_process_id)
12184 (main_thread_id, last_sig, current_event, last_wait_event)
12185 (current_windows_thread, desired_stop_thread_id, pending_stops)
12186 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
12187 (display_selectors, fake_create_process)
12188 (get_windows_debug_event): Update.
12189 * nat/windows-nat.h (current_process_handle, current_process_id)
12190 (main_thread_id, last_sig, current_event, last_wait_event)
12191 (current_windows_thread, desired_stop_thread_id, pending_stops)
12192 (struct pending_stop, siginfo_er): Move from windows-nat.c.
12193 * nat/windows-nat.c (current_process_handle, current_process_id)
12194 (main_thread_id, last_sig, current_event, last_wait_event)
12195 (current_windows_thread, desired_stop_thread_id, pending_stops)
12196 (siginfo_er): New globals. Move from windows-nat.c.
12197
9d8679cc
TT
121982020-04-08 Tom Tromey <tromey@adacore.com>
12199
12200 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
12201 (handle_load_dll): Update.
12202 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
12203
28688adf
TT
122042020-04-08 Tom Tromey <tromey@adacore.com>
12205
12206 * windows-nat.c (enum thread_disposition_type): Move to
12207 nat/windows-nat.h.
12208 (windows_nat::thread_rec): Rename from thread_rec. No longer
12209 static.
12210 (windows_add_thread, windows_nat_target::fetch_registers)
12211 (windows_nat_target::store_registers, handle_exception)
12212 (windows_nat_target::resume, get_windows_debug_event)
12213 (windows_nat_target::get_tib_address)
12214 (windows_nat_target::thread_name)
12215 (windows_nat_target::thread_alive): Update.
12216 * nat/windows-nat.h (enum thread_disposition_type): Move from
12217 windows-nat.c.
12218 (thread_rec): Declare.
12219
4834dad0
TT
122202020-04-08 Tom Tromey <tromey@adacore.com>
12221
12222 * windows-nat.c: Add "using namespace".
12223 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
12224 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
12225
65bafd5b
TT
122262020-04-08 Tom Tromey <tromey@adacore.com>
12227
12228 * nat/windows-nat.h (struct windows_thread_info): Declare
12229 destructor.
12230 * nat/windows-nat.c (~windows_thread_info): New.
12231
0a4afda3
TT
122322020-04-08 Tom Tromey <tromey@adacore.com>
12233
12234 PR gdb/22992
12235 * windows-nat.c (current_event): Update comment.
12236 (last_wait_event, desired_stop_thread_id): New globals.
12237 (struct pending_stop): New.
12238 (pending_stops): New global.
12239 (windows_nat_target) <stopped_by_sw_breakpoint>
12240 <supports_stopped_by_sw_breakpoint>: New methods.
12241 (windows_fetch_one_register): Add assertions. Adjust PC.
12242 (windows_continue): Handle pending stops. Suspend other threads
12243 when stepping. Use last_wait_event
12244 (wait_for_debug_event): New function.
12245 (get_windows_debug_event): Use wait_for_debug_event. Handle
12246 pending stops. Queue spurious stops.
12247 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
12248 (windows_nat_target::kill): Use wait_for_debug_event.
12249 * nat/windows-nat.h (struct windows_thread_info)
12250 <stopped_at_software_breakpoint>: New field.
12251 * nat/windows-nat.c (windows_thread_info::resume): Clear
12252 stopped_at_software_breakpoint.
12253
8e61ebec
TT
122542020-04-08 Tom Tromey <tromey@adacore.com>
12255
12256 * windows-nat.c (enum thread_disposition_type): New.
12257 (thread_rec): Replace "get_context" parameter with "disposition";
12258 change type.
12259 (windows_add_thread, windows_nat_target::fetch_registers)
12260 (windows_nat_target::store_registers, handle_exception)
12261 (windows_nat_target::resume, get_windows_debug_event)
12262 (windows_nat_target::get_tib_address)
12263 (windows_nat_target::thread_name)
12264 (windows_nat_target::thread_alive): Update.
12265
98a03287
TT
122662020-04-08 Tom Tromey <tromey@adacore.com>
12267
12268 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
12269 (windows_continue): Use windows_continue::resume.
12270 * nat/windows-nat.h (struct windows_thread_info) <suspend,
12271 resume>: Declare new methods.
12272 * nat/windows-nat.c: New file.
12273 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
12274
7c7411bc
TT
122752020-04-08 Tom Tromey <tromey@adacore.com>
12276
12277 * windows-nat.c (windows_add_thread, windows_delete_thread)
12278 (windows_nat_target::fetch_registers)
12279 (windows_nat_target::store_registers, fake_create_process)
12280 (windows_nat_target::resume, windows_nat_target::resume)
12281 (get_windows_debug_event, windows_nat_target::wait)
12282 (windows_nat_target::pid_to_str)
12283 (windows_nat_target::get_tib_address)
12284 (windows_nat_target::get_ada_task_ptid)
12285 (windows_nat_target::thread_name)
12286 (windows_nat_target::thread_alive): Use lwp, not tid.
12287
2950fdf7
TT
122882020-04-08 Tom Tromey <tromey@adacore.com>
12289
12290 * windows-nat.c (handle_exception)
12291 (windows_nat_target::thread_name): Update.
12292 * nat/windows-nat.h (windows_thread_info): Remove destructor.
12293 <name>: Now unique_xmalloc_ptr.
12294
62fe396b
TT
122952020-04-08 Tom Tromey <tromey@adacore.com>
12296
12297 * windows-nat.c (thread_rec)
12298 (windows_nat_target::fetch_registers): Update.
12299 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
12300 Update comment.
12301 <debug_registers_changed, reload_context>: Now bool.
12302
e9534bd2
TT
123032020-04-08 Tom Tromey <tromey@adacore.com>
12304
12305 * windows-nat.c (windows_add_thread): Use new.
12306 (windows_init_thread_list, windows_delete_thread): Use delete.
12307 (get_windows_debug_event): Update.
12308 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
12309 destructor, and initializers.
12310
ae1f8880
TT
123112020-04-08 Tom Tromey <tromey@adacore.com>
12312
12313 * windows-nat.c (struct windows_thread_info): Remove.
12314 * nat/windows-nat.h: New file.
12315
55a1e039
TT
123162020-04-08 Tom Tromey <tromey@adacore.com>
12317
12318 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
12319 (thread_rec, windows_add_thread, windows_delete_thread)
12320 (windows_continue): Update.
12321
93366324
TT
123222020-04-08 Tom Tromey <tromey@adacore.com>
12323
12324 * windows-nat.c (struct windows_thread_info): Remove typedef.
12325 (thread_head): Remove.
12326 (thread_list): New global.
12327 (thread_rec, windows_add_thread, windows_init_thread_list)
12328 (windows_delete_thread, windows_continue): Update.
12329
0f2265e2
SM
123302020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
12331
12332 * windows-tdep.h (windows_init_abi): Add comment.
12333 (cygwin_init_abi): New declaration.
12334 * windows-tdep.c: Split signal enumeration in two, one for
12335 Windows and one for Cygwin.
12336 (windows_gdb_signal_to_target): Only deal with signal of the
12337 Windows OS ABI.
12338 (cygwin_gdb_signal_to_target): New function.
12339 (windows_init_abi): Rename to windows_init_abi_common, don't set
12340 gdb_signal_to_target gdbarch method. Add new new function with
12341 this name.
12342 (cygwin_init_abi): New function.
12343 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
12344 comment. Don't call windows_init_abi.
12345 (amd64_windows_init_abi): Add comment, call windows_init_abi.
12346 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
12347 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
12348 i386_windows_init_abi_common, don't call windows_init_abi. Add
12349 a new function of this name.
12350 (i386_cygwin_init_abi): New function.
12351 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
12352 OS ABI Cygwin.
12353
3810f182
SM
123542020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
12355
12356 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
12357 parameter.c.
12358 (dwarf2_read_gdb_index): Update.
12359
063f8e80
KR
123602020-04-07 Kamil Rytarowski <n54@gmx.com>
12361
12362 * nbsd-tdep.c: Include "objfiles.h".
12363 (nbsd_skip_solib_resolver): New.
12364 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
12365
85a9510c 123662020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12367
12368 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
12369 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
12370 with DW_LLE_base_addressx are being emitted in DWARFv5.
12371 Add the newly added kind DW_LOC_OFFSET_PAIR also.
12372 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
12373 unsigned integer.
12374
9fc3eaae 123752020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12376
12377 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
12378 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
12379 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
12380 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
12381 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
12382 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
12383 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
12384
12385
41144253 123862020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12387
12388 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
12389 (read_loclist_index): New function definition.
12390 (lookup_loclist_base): New function definition.
12391 (read_loclist_header): New function definition.
12392 (dwarf2_cu): Add loclist_base and loclist_header field.
12393 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
12394 (read_full_die_1): Read the value of DW_AT_loclists_base.
12395 (read_attribute_reprocess): Handle DW_FORM_loclistx.
12396 (read_attribute_value): Handle DW_FORM_loclistx.
12397 (skip_one_die): Handle DW_FORM_loclistx.
12398 (loclist_header): New structure declaration.
12399 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
12400
9f4e76a4
SM
124012020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12402
12403 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
12404 constructor. Remove `addr` parameter from other constructor and
12405 add `per_cu` parameter.
12406 * dwarf2/read.c (create_partial_symtab): Update.
12407
25c11aca
TV
124082020-04-07 Tom de Vries <tdevries@suse.de>
12409
12410 PR symtab/25796
12411 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
12412 (partial_die_info::fixup): Inherit has_const_value.
12413
5707e24b
TV
124142020-04-07 Tom de Vries <tdevries@suse.de>
12415
12416 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
12417 symbols without address.
12418
05f00e22
KR
124192020-04-06 Kamil Rytarowski <n54@gmx.com>
12420
12421 * nbsd-nat.h (struct thread_info): Add forward declaration.
12422 (nbsd_nat_target::thread_alive): Add.
12423 (nbsd_nat_target::thread_name): Likewise.
12424 (nbsd_nat_target::update_thread_list): Likewise.
12425 (update_thread_list::post_attach): Likewise.
12426 (post_attach::pid_to_str): Likewise.
12427 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
12428 (nbsd_thread_lister): Add.
12429 (nbsd_nat_target::thread_alive): Likewise.
12430 (nbsd_nat_target::thread_name): Likewise.
12431 (nbsd_add_threads): Likewise.
12432 (update_thread_list::post_attach): Likewise.
12433 (nbsd_nat_target::update_thread_list): Likewise.
12434 (post_attach::pid_to_str): Likewise.
12435
6ee448cc
TT
124362020-04-06 Tom Tromey <tromey@adacore.com>
12437
12438 * ada-valprint.c (print_variant_part): Extract the variant field.
12439 (print_field_values): Use the field as the outer value when
12440 recursing.
12441
dea34e8c
TT
124422020-04-06 Tom Tromey <tromey@adacore.com>
12443
12444 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
12445 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
12446 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
12447 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
12448 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
12449
93689ce9
TT
124502020-04-06 Tom Tromey <tromey@adacore.com>
12451
12452 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
12453 TYPE_CODE_ERROR.
12454
79743962
KR
124552020-04-06 Kamil Rytarowski <n54@gmx.com>
12456
12457 * nbsd-tdep.c: Include "gdbarch.h".
12458 Define enum with NetBSD signal numbers.
12459 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
12460 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
12461 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
12462 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
12463 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
12464 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
12465 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
12466 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
12467 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
12468 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
12469 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
12470 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
12471
9e7c9a03
HD
124722020-04-03 Hannes Domani <ssbssa@yahoo.de>
12473
12474 PR gdb/25325
12475 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
12476
d9e49b61
TT
124772020-04-03 Tom Tromey <tromey@adacore.com>
12478
12479 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
12480 Read constant block.
12481
e0fc5c3f
SM
124822020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
12483
12484 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
12485 (gdb_bfd_get_full_section_contents): New declaration.
12486 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
12487 * windows-tdep.c (is_linked_with_cygwin_dll): Use
12488 gdb_bfd_get_full_section_contents.
12489
e2ff18a0
SM
124902020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
12491
12492 * exec.c (build_section_table): Replace internal_error with
12493 gdb_assert.
12494 (section_table_xfer_memory_partial): Likewise.
12495 * mdebugread.c (parse_partial_symbols): Likewise.
12496 * psymtab.c (lookup_partial_symbol): Likewise.
12497 * utils.c (wrap_here): Likewise.
12498
0830d301
TT
124992020-04-02 Tom Tromey <tromey@adacore.com>
12500
12501 * f-lang.c (build_fortran_types): Use arch_type to initialize
12502 builtin_complex_s32 in the TYPE_CODE_ERROR case.
12503
e7da7f8f
TT
125042020-04-02 Tom Tromey <tromey@adacore.com>
12505
12506 * dwarf2/read.c (partial_die_info::read): Do not create a vector
12507 of attributes.
12508
c90d28ac
AB
125092020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
12510 Bernd Edlinger <bernd.edlinger@hotmail.de>
12511 Tom Tromey <tromey@adacore.com>
12512
12513 * buildsym.c (buildsym_compunit::record_line): Remove
12514 deduplication code.
12515
1aa98955
TV
125162020-04-02 Tom de Vries <tdevries@suse.de>
12517
12518 PR ada/24671
12519 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
12520
d3214198
TV
125212020-04-02 Tom de Vries <tdevries@suse.de>
12522
12523 * dwarf2/read.c (dwarf2_gdb_index_functions,
12524 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
12525 NULL.
12526 * psymtab.c (psym_lookup_global_symbol_language): New function.
12527 (psym_functions): Init psym_lookup_global_symbol_language with
12528 psym_lookup_global_symbol_language.
12529 * symfile-debug.c (debug_sym_quick_functions): Init
12530 lookup_global_symbol_language with NULL.
12531 * symfile.c (set_initial_language): Remove fixme comment.
12532 * symfile.h (struct quick_symbol_functions): Add
12533 lookup_global_symbol_language.
12534 * symtab.c (find_quick_global_symbol_language): New function.
12535 (find_main_name): Use find_quick_global_symbol_language.
12536
2836752f
SM
125372020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
12538
12539 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
12540
64dc2d4b
BE
125412020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12542
12543 * buildsym.c (record_line): Fix undefined behavior and preserve
12544 lines at eof.
12545
bbe3dc41
BE
125462020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12547
12548 * buildsym.c (record_line): Fix the resizing condition.
12549
6b4a335b
TT
125502020-04-01 Tom Tromey <tom@tromey.com>
12551
12552 * value.h (value_literal_complex): Add comment.
12553 * valops.c (value_literal_complex): Refer to value.h.
12554
3638a098
TT
125552020-04-01 Tom Tromey <tom@tromey.com>
12556
12557 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
12558 (scalar_type): New rule, from typebase.
12559 (typebase): Use scalar_type. Recognize complex types.
12560 (field_name): Handle FLOAT_KEYWORD.
12561 (ident_tokens): Add _Complex and __complex__.
12562
c34e8714
TT
125632020-04-01 Tom Tromey <tom@tromey.com>
12564
12565 PR exp/25299:
12566 * valarith.c (promotion_type, complex_binop): New functions.
12567 (scalar_binop): Handle complex numbers. Use promotion_type.
12568 (value_pos, value_neg, value_complement): Handle complex numbers.
12569
fa649bb7
TT
125702020-04-01 Tom Tromey <tom@tromey.com>
12571
12572 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
12573 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
12574 (parse_number): Handle complex numbers.
12575
981c08ce
TT
125762020-04-01 Tom Tromey <tom@tromey.com>
12577
12578 * c-valprint.c (c_decorations): Change complex suffix to "i".
12579
4c99290d
TT
125802020-04-01 Tom Tromey <tom@tromey.com>
12581
12582 * valprint.c (generic_value_print_complex): Use accessors.
12583 * value.h (value_real_part, value_imaginary_part): Declare.
12584 * valops.c (value_real_part, value_imaginary_part): New
12585 functions.
12586 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
12587
5b930b45
TT
125882020-04-01 Tom Tromey <tom@tromey.com>
12589
12590 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
12591 (read_range_type): Update.
12592 * mdebugread.c (basic_type): Update.
12593 * go-lang.c (build_go_types): Use init_complex_type.
12594 * gdbtypes.h (struct main_type) <complex_type>: New member.
12595 (init_complex_type): Update.
12596 (arch_complex_type): Don't declare.
12597 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
12598 Make name if none given. Use alloc_type_copy. Look for cached
12599 complex type.
12600 (arch_complex_type): Remove.
12601 (gdbtypes_post_init): Use init_complex_type.
12602 * f-lang.c (build_fortran_types): Use init_complex_type.
12603 * dwarf2/read.c (read_base_type): Update.
12604 * d-lang.c (build_d_types): Use init_complex_type.
12605 * ctfread.c (read_base_type): Update.
12606
53cccef1
TBA
126072020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12608
12609 * infrun.c (stop_all_threads): Update assertion, plus when
12610 stopping threads, take into account that we might be trying
12611 to stop an all-stop target.
12612 (stop_waiting): Call 'stop_all_threads' if there exists a
12613 non-stop target.
12614
a0714d30
TBA
126152020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12616
12617 * target.h (exists_non_stop_target): New function declaration.
12618 * target.c (exists_non_stop_target): New function.
12619
60e22c1e
HD
126202020-04-01 Hannes Domani <ssbssa@yahoo.de>
12621
12622 PR gdb/24789
12623 * eval.c (is_integral_or_integral_reference): New function.
12624 (evaluate_subexp_standard): Allow integer references in
12625 pointer arithmetic.
12626
e139a727
TBA
126272020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12628
12629 * remote.c (remote_target::remote_parse_stop_reply): Remove the
12630 check for no ptid in the stop reply when the target is non-stop.
12631
e0802d59
TT
126322020-04-01 Tom Tromey <tromey@adacore.com>
12633
12634 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
12635 "name" parameter to rvalue reference. Initialize m_name_holder.
12636 <lookup_name_info>: New overloads.
12637 <name>: Return gdb::string_view.
12638 <c_str>: New method.
12639 <make_ignore_params>: Update.
12640 <search_name_hash>: Update.
12641 <language_lookup_name>: Return const char *.
12642 <m_name>: Change type.
12643 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
12644 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
12645 (lookup_name_info::match_any): Update.
12646 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
12647 Update.
12648 * minsyms.c (linkage_name_str): Update.
12649 * language.c (default_symbol_name_matcher): Update.
12650 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
12651 Update.
12652 * ada-lang.c (ada_fold_name): Change parameter to string_view.
12653 (ada_lookup_name_info::ada_lookup_name_info): Update.
12654 (literal_symbol_name_matcher): Update.
12655
8c072cb6
TT
126562020-04-01 Tom Tromey <tromey@adacore.com>
12657
12658 * psymtab.c (psymtab_search_name): Remove function.
12659 (psym_lookup_symbol): Create search name and lookup name here.
12660 (lookup_partial_symbol): Remove "name" parameter; add
12661 lookup_name.
12662 (psym_expand_symtabs_for_function): Update.
12663
6f29a534
TT
126642020-03-31 Joel Jones <joelkevinjones@gmail.com>
12665
12666 PR tui/25597:
12667 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
12668
af62665e
TT
126692020-03-31 Tom Tromey <tromey@adacore.com>
12670
12671 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
12672 memcpy.
12673
d1a89da5
NC
126742020-03-30 Nelson Chu <nelson.chu@sifive.com>
12675
12676 * features/riscv/32bit-csr.xml: Regenerated.
12677 * features/riscv/64bit-csr.xml: Regenerated.
12678
d8af9068
TT
126792020-03-30 Tom Tromey <tromey@adacore.com>
12680
12681 * ada-valprint.c (print_variant_part): Update.
12682 * ada-lang.h (ada_which_variant_applies): Update.
12683 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
12684 outer_valaddr parameters; replace with "outer" value parameter.
12685 (to_fixed_variant_branch_type): Update.
12686
227c0bf4
PFC
126872020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12688
12689 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
12690 <list>. Remove inclusion of observable.h.
12691 (PPC_DEBUG_CURRENT_VERSION): Move up define.
12692 (struct arch_lwp_info): New struct.
12693 (class ppc_linux_dreg_interface): New class.
12694 (struct ppc_linux_process_info): New struct.
12695 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
12696 <low_new_clone, low_forget_process, low_prepare_to_resume>
12697 <copy_thread_dreg_state, mark_thread_stale>
12698 <mark_debug_registers_changed, register_hw_breakpoint>
12699 <clear_hw_breakpoint, register_wp, clear_wp>
12700 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
12701 <num_memory_accesses, get_trigger_type>
12702 <create_watchpoint_request, hwdebug_point_cmp>
12703 <init_arch_lwp_info, get_arch_lwp_info>
12704 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
12705 methods.
12706 <struct ptid_hash>: New inner struct.
12707 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
12708 members.
12709 (saved_dabr_value, hwdebug_info, max_slots_number)
12710 (struct hw_break_tuple, struct thread_points, ppc_threads)
12711 (have_ptrace_hwdebug_interface)
12712 (hwdebug_find_thread_points_by_tid)
12713 (hwdebug_insert_point, hwdebug_remove_point): Remove.
12714 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
12715 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
12716 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
12717 use m_dreg_interface.
12718 (hwdebug_point_cmp): Change to...
12719 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
12720 reference arguments instead of pointers.
12721 (ppc_linux_nat_target::ranged_break_num_registers): Use
12722 m_dreg_interface.
12723 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
12724 m_dreg_interface. Call register_hw_breakpoint.
12725 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
12726 m_dreg_interface. Call clear_hw_breakpoint.
12727 (get_trigger_type): Change to...
12728 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
12729 comment.
12730 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
12731 use m_dreg_interface. Call register_hw_breakpoint.
12732 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
12733 use m_dreg_interface. Call clear_hw_breakpoint.
12734 (can_use_watchpoint_cond_accel): Change to...
12735 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
12736 method. Update comment, use m_dreg_interface and
12737 m_process_info.
12738 (calculate_dvc): Change to...
12739 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
12740 m_dreg_interface.
12741 (num_memory_accesses): Change to...
12742 (ppc_linux_nat_target::num_memory_accesses): ...this method.
12743 (check_condition): Change to...
12744 (ppc_linux_nat_target::check_condition): ...this method.
12745 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
12746 comment, use m_dreg_interface.
12747 (create_watchpoint_request): Change to...
12748 (ppc_linux_nat_target::create_watchpoint_request): ...this
12749 method. Use m_dreg_interface.
12750 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
12751 m_dreg_interface. Call register_hw_breakpoint or register_wp.
12752 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
12753 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
12754 (ppc_linux_nat_target::low_forget_process)
12755 (ppc_linux_nat_target::low_new_fork)
12756 (ppc_linux_nat_target::low_new_clone)
12757 (ppc_linux_nat_target::low_delete_thread)
12758 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
12759 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
12760 only call mark_thread_stale.
12761 (ppc_linux_thread_exit): Remove.
12762 (ppc_linux_nat_target::stopped_data_address): Change to...
12763 (ppc_linux_nat_target::low_stopped_data_address): This. Add
12764 comment, use m_dreg_interface and m_thread_hw_breakpoints.
12765 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
12766 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
12767 comment. Call low_stopped_data_address.
12768 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
12769 m_dreg_interface.
12770 (ppc_linux_nat_target::masked_watch_num_registers): Use
12771 m_dreg_interface.
12772 (ppc_linux_nat_target::copy_thread_dreg_state)
12773 (ppc_linux_nat_target::mark_thread_stale)
12774 (ppc_linux_nat_target::mark_debug_registers_changed)
12775 (ppc_linux_nat_target::register_hw_breakpoint)
12776 (ppc_linux_nat_target::clear_hw_breakpoint)
12777 (ppc_linux_nat_target::register_wp)
12778 (ppc_linux_nat_target::clear_wp)
12779 (ppc_linux_nat_target::init_arch_lwp_info)
12780 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
12781 (_initialize_ppc_linux_nat): Remove observer callback.
12782
4db10d8f
PFC
127832020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12784
12785 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
12786 (ppc_linux_nat_target::auxv_parse)
12787 (ppc_linux_nat_target::read_description)
12788 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
12789 Move up.
12790
1310c1b0
PFC
127912020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12792
12793 * linux-nat.h (low_new_clone): New method.
12794 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
12795
69b037c3
SM
127962020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12797
12798 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
12799 (dbx_expand_psymtab): ... this.
12800 (start_psymtab): Update.
12801 * mdebugread.c (psymtab_to_symtab_1): Rename to...
12802 (mdebug_expand_psymtab): ... this.
12803 (parse_partial_symbols): Update.
12804 (new_psymtab): Update.
12805 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
12806 (xcoff_expand_psymtab): ... this.
12807 (xcoff_start_psymtab): Update.
12808
48993951
SM
128092020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12810
12811 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
12812 <expand_dependencies>: ... this.
12813 * psymtab.c (partial_symtab::read_dependencies): Rename to...
12814 (partial_symtab::expand_dependencies): ... this.
12815 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
12816 Update.
12817 (dwarf2_psymtab::expand_psymtab): Update.
12818 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
12819 * mdebugread.c (psymtab_to_symtab_1): Update.
12820 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
12821
3ad83046
SM
128222020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12823
12824 * psympriv.h (discard_psymtab): Remove.
12825 * dbxread.c (dbx_end_psymtab): Update.
12826 * xcoffread.c (xcoff_end_psymtab): Update.
12827
4d1b9ab6
TT
128282020-03-28 Tom Tromey <tom@tromey.com>
12829
12830 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
12831 comment.
12832
f1749218
TT
128332020-03-28 Tom Tromey <tom@tromey.com>
12834
12835 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
12836
ebea7626
HD
128372020-03-27 Hannes Domani <ssbssa@yahoo.de>
12838
12839 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
12840
a879b4d5
JB
128412020-03-26 John Baldwin <jhb@FreeBSD.org>
12842
12843 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
12844
0826b30a
TT
128452020-03-26 Tom Tromey <tom@tromey.com>
12846
12847 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
12848 (mark_common_block_symbol_computed, read_tag_string_type)
12849 (attr_to_dynamic_prop, read_subrange_type): Update.
12850 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
12851 to be methods on struct attribute.
12852 (skip_one_die, process_imported_unit_die, read_namespace_alias)
12853 (read_call_site_scope, partial_die_info::read)
12854 (partial_die_info::read, lookup_die_type, follow_die_ref):
12855 Update.
12856 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
12857 from dwarf2_get_ref_die_offset.
12858 (attribute::constant_value): New method, from
12859 dwarf2_get_attr_constant_value.
12860 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
12861 Declare method.
12862 <constant_value>: New method.
12863
2b2558bf
TT
128642020-03-26 Tom Tromey <tom@tromey.com>
12865
12866 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
12867 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
12868 (dwarf_type_encoding_name): Move to stringify.c.
12869 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
12870 * dwarf2/stringify.c: New file.
12871 * dwarf2/stringify.h: New file.
12872
eeb64781
TT
128732020-03-26 Tom Tromey <tom@tromey.com>
12874
12875 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
12876 Rewrite.
12877
a39fdb41
TT
128782020-03-26 Tom Tromey <tom@tromey.com>
12879
12880 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
12881 methods.
12882 * dwarf2/read.c (lookup_addr_base): Move to die.h.
12883 (lookup_ranges_base): Likewise.
12884 (read_cutu_die_from_dwo, read_full_die_1): Update.
12885
436c571c
TT
128862020-03-26 Tom Tromey <tom@tromey.com>
12887
12888 * dwarf2/read.c (read_import_statement, read_file_scope)
12889 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
12890 (read_lexical_block_scope, read_call_site_scope)
12891 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
12892 (handle_struct_member_die, process_structure_scope)
12893 (update_enumeration_type_from_children)
12894 (process_enumeration_scope, read_array_type, read_common_block)
12895 (read_namespace, read_module, read_subroutine_type): Update.
12896 (sibling_die): Remove.
12897
052c8bb8
TT
128982020-03-26 Tom Tromey <tom@tromey.com>
12899
12900 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
12901 (build_type_psymtabs_reader, read_structure_type)
12902 (read_enumeration_type, read_full_die_1): Update.
12903 (dwarf2_attr_no_follow): Move to die.h.
12904 * dwarf2/die.h (struct die_info) <attr>: New method.
12905
2b24b6e4
TT
129062020-03-26 Tom Tromey <tom@tromey.com>
12907
12908 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
12909 <base_address>: Now an optional.
12910 (dwarf2_find_base_address, dwarf2_rnglists_process)
12911 (dwarf2_ranges_process, fill_in_loclist_baton)
12912 (dwarf2_symbol_mark_computed): Update.
12913
c2d50fd0
TT
129142020-03-26 Tom Tromey <tom@tromey.com>
12915
12916 * dwarf2/read.c (struct die_info): Move to die.h.
12917 * dwarf2/die.h: New file.
12918
0df7ad3a
TT
129192020-03-26 Tom Tromey <tom@tromey.com>
12920
12921 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
12922 * dwarf2/read.c
12923 (dwarf2_statement_list_fits_in_line_number_section_complaint):
12924 Move to line-header.c.
12925 (read_checked_initial_length_and_offset, read_formatted_entries):
12926 Likewise.
12927 (dwarf_decode_line_header): Split into two.
12928 * dwarf2/line-header.c
12929 (dwarf2_statement_list_fits_in_line_number_section_complaint):
12930 Move from read.c.
12931 (read_checked_initial_length_and_offset, read_formatted_entries):
12932 Likewise.
12933 (dwarf_decode_line_header): New function, split from read.c.
12934
86c0bb4c
TT
129352020-03-26 Tom Tromey <tom@tromey.com>
12936
12937 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
12938 Declare method.
12939 * dwarf2/read.c (read_attribute_value): Update.
12940 (dwarf2_per_objfile::read_line_string): Rename from
12941 read_indirect_line_string.
12942 (read_formatted_entries): Update.
12943
2ef46c2f
TT
129442020-03-26 Tom Tromey <tom@tromey.com>
12945
12946 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
12947 variable.
12948
4f9c1eda
TT
129492020-03-26 Tom Tromey <tom@tromey.com>
12950
12951 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
12952 const.
12953 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
12954 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
12955 parameter const.
12956
5a0e026f
TT
129572020-03-26 Tom Tromey <tom@tromey.com>
12958
12959 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
12960 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
12961 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
12962 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
12963
8844c11b
TT
129642020-03-26 Tom Tromey <tom@tromey.com>
12965
12966 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
12967 file_names_size, file_full_name, file_file_name>: Use const.
12968 <file_name_at, file_names>: Add const overload.
12969 * dwarf2/line-header.c (line_header::file_file_name)
12970 (line_header::file_full_name): Update.
12971
c90ec28a
TT
129722020-03-26 Tom Tromey <tom@tromey.com>
12973
12974 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
12975 (macro_start_file, consume_improper_spaces)
12976 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
12977 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
12978 (dwarf_decode_macros): Move to macro.c.
12979 * dwarf2/macro.c: New file.
12980 * dwarf2/macro.h: New file.
12981 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
12982
4f44ae6c
TT
129832020-03-26 Tom Tromey <tom@tromey.com>
12984
12985 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
12986 method.
12987 * dwarf2/section.c: New method. From
12988 read_indirect_string_at_offset_from.
12989 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
12990 (read_indirect_string_at_offset_from): Move to section.c.
12991 (read_indirect_string_at_offset): Rewrite.
12992 (read_indirect_line_string_at_offset): Remove.
12993 (read_indirect_string, read_indirect_line_string)
12994 (dwarf_decode_macro_bytes): Update.
12995
a0194fa8
TT
129962020-03-26 Tom Tromey <tom@tromey.com>
12997
12998 * dwarf2/section.h (struct dwarf2_section_info)
12999 <overload_complaint>: Declare.
13000 (dwarf2_section_buffer_overflow_complaint): Don't declare.
13001 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
13002 Rename from dwarf2_section_buffer_overflow_complaint.
13003 * dwarf2/read.c (skip_one_die, partial_die_info::read)
13004 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
13005
3d27bbdb
TT
130062020-03-26 Tom Tromey <tom@tromey.com>
13007
13008 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
13009 Declare.
13010 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
13011 Move from read.c.
13012 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
13013 to section.c.
13014
9eac9650
TT
130152020-03-26 Tom Tromey <tom@tromey.com>
13016
13017 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
13018
bf80d710
TT
130192020-03-26 Tom Tromey <tom@tromey.com>
13020
13021 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
13022 "builder".
13023 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
13024 parameter.
13025 (dwarf_decode_macros): Update.
13026
0314b390
TT
130272020-03-26 Tom Tromey <tom@tromey.com>
13028
13029 * dwarf2/read.c (read_attribute_value): Update.
13030 (read_indirect_string_from_dwz): Move to dwz.c; change into
13031 method.
13032 (dwarf_decode_macro_bytes): Update.
13033 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
13034 * dwarf2/dwz.c: New file.
13035 * Makefile.in (COMMON_SFILES): Add dwz.c.
13036
9fda78b6
TT
130372020-03-26 Tom Tromey <tom@tromey.com>
13038
13039 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
13040 * dwarf2/read.c: Add include.
13041 * dwarf2/index-write.c: Add include.
13042 * dwarf2/index-cache.c: Add include.
13043 * dwarf2/dwz.h: New file.
13044
33aa3c10
TT
130452020-03-25 Tom Tromey <tom@tromey.com>
13046
13047 * compile/compile-object-load.c (get_out_value_type): Mention
13048 correct symbol name in error message.
13049
d503b685
HD
130502020-03-25 Hannes Domani <ssbssa@yahoo.de>
13051
13052 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
13053
7b1eff95
TV
130542020-03-25 Tom de Vries <tdevries@suse.de>
13055
13056 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
13057 * symmisc.c (dump_symtab_1): Print user and includes fields.
13058 (maintenance_info_symtabs): Same.
13059
dd895392
AB
130602020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
13061
13062 PR gdb/25534
13063 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
13064 (riscv_regcache_cooked_write): New function.
13065 (riscv_push_dummy_call): Use new function.
13066 (riscv_return_value): Likewise.
13067
5ab2fbf1
SM
130682020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
13069
13070 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
13071 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
13072 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
13073 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
13074 * infrun.c (follow_fork): Likewise.
13075 (follow_fork_inferior): Likewise.
13076 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
13077 * linux-nat.h (class linux_nat_target): Likewise.
13078 * remote.c (class remote_target) <follow_fork>: Likewise.
13079 (remote_target::follow_fork): Likewise.
13080 * target-delegates.c: Re-generate.
13081 * target.c (default_follow_fork): Likewise.
13082 (target_follow_fork): Likewise.
13083 * target.h (struct target_ops) <follow_fork>: Likewise.
13084 (target_follow_fork): Likewise.
13085
a64fafb5
TV
130862020-03-24 Tom de Vries <tdevries@suse.de>
13087
13088 * psymtab.c (maintenance_info_psymtabs): Print user field.
13089
fe26d3a3
TT
130902020-03-20 Tom Tromey <tromey@adacore.com>
13091
13092 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
13093 const.
13094 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
13095 const.
13096
c884cc46
SM
130972020-03-20 Simon Marchi <simon.marchi@efficios.com>
13098
13099 * ptrace.m4: Don't check for ptrace declaration.
13100 * config.in: Re-generate.
13101 * configure: Re-generate.
13102 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
13103 not defined.
13104
1ff700c2
KR
131052020-03-20 Kamil Rytarowski <n54@gmx.com>
13106
13107 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
13108 `PTRACE_TYPE_RET'.
13109 * i386-bsd-nat.c (gdb_ptrace): Likewise.
13110 * sparc-nat.c (gdb_ptrace): Likewise.
13111 * x86-bsd-nat.c (gdb_ptrace): Likewise.
13112
f7d4f0b1
TT
131132020-03-20 Tom Tromey <tromey@adacore.com>
13114
13115 * c-exp.y (lex_one_token): Fix assert.
13116
f67210ff
TT
131172020-03-20 Tom Tromey <tromey@adacore.com>
13118
13119 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
13120 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
13121 strncpy call.
13122
1773be9e
TT
131232020-03-20 Tom Tromey <tromey@adacore.com>
13124
13125 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
13126
70304be9
TT
131272020-03-20 Tom Tromey <tromey@adacore.com>
13128
13129 * ada-valprint.c (print_variant_part): Remove parameters; switch
13130 to value-based API.
13131 (print_field_values): Likewise.
13132 (ada_val_print_struct_union): Likewise.
13133 (ada_value_print_1): Update.
13134
9faa006d
KR
131352020-03-20 Kamil Rytarowski <n54@gmx.com>
13136
13137 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
13138 nbsd_nat_target instead of inf_ptrace_target.
13139 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13140 nbsd_nat_target.
13141
4a90f062
KR
131422020-03-20 Kamil Rytarowski <n54@gmx.com>
13143
13144 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
13145 it to the ptrace call.
13146 * (store_registers): Likewise.
13147
131482020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
13149
13150 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
13151 it to the ptrace call.
13152 * (store_registers): Likewise.
13153
2d07da27
LM
131542020-03-19 Luis Machado <luis.machado@linaro.org>
13155
13156 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
13157 valid, fetch vg value from ptrace.
13158
f09db380
KR
131592020-03-19 Kamil Rytarowski <n54@gmx.com>
13160 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
13161 * inf-ptrace.c: Likewise.
13162 * (gdb_ptrace): Add.
13163 * (inf_ptrace_target::resume): Update.
13164 * (inf_ptrace_target::xfer_partial): Likewise.
13165 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
13166 * (inf_ptrace_peek_poke): Update.
13167
fcc7376e
KR
131682020-03-19 Kamil Rytarowski <n54@gmx.com>
13169
13170 * x86-bsd-nat.c (gdb_ptrace): New.
13171 * (x86bsd_dr_set): Add new argument `ptid'.
13172 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
13173 x86bsd_dr_set_addr): Update.
13174
cada5fc9
AB
131752020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13176
13177 * remote.c (remote_target::process_stop_reply): Handle events for
13178 all threads differently.
13179
19a2740f
AB
131802020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13181
13182 * completer.c (completion_tracker::remove_completion): Define new
13183 function.
13184 * completer.h (completion_tracker::remove_completion): Declare new
13185 function.
13186 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
13187 when adding a C++ function symbol.
13188
724fd9ba
AB
131892020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13190
13191 * completer.c (completion_tracker::completion_hash_entry): Define
13192 new class.
13193 (advance_to_filename_complete_word_point): Call
13194 recompute_lowest_common_denominator.
13195 (completion_tracker::completion_tracker): Call discard_completions
13196 to setup the hash table.
13197 (completion_tracker::discard_completions): Allow for being called
13198 from the constructor, pass new equal function, and element deleter
13199 when constructing the hash table. Initialise new class member
13200 variables.
13201 (completion_tracker::maybe_add_completion): Remove use of
13202 m_entries_vec, and store more information into m_entries_hash.
13203 (completion_tracker::recompute_lcd_visitor): New function, most
13204 content taken from...
13205 (completion_tracker::recompute_lowest_common_denominator):
13206 ...here, this now just visits each item in the hash calling the
13207 above visitor.
13208 (completion_tracker::build_completion_result): Remove use of
13209 m_entries_vec, call recompute_lowest_common_denominator.
13210 * completer.h (completion_tracker::have_completions): Remove use
13211 of m_entries_vec.
13212 (completion_tracker::completion_hash_entry): Declare new class.
13213 (completion_tracker::recompute_lowest_common_denominator): Change
13214 function signature.
13215 (completion_tracker::recompute_lcd_visitor): Declare new function.
13216 (completion_tracker::m_entries_vec): Delete.
13217 (completion_tracker::m_entries_hash): Initialize to NULL.
13218 (completion_tracker::m_lowest_common_denominator_valid): New
13219 member variable.
13220 (completion_tracker::m_lowest_common_denominator_max_length): New
13221 member variable.
13222
5a82b8a1
KR
132232020-03-17 Kamil Rytarowski <n54@gmx.com>
13224
13225 * regformats/regdef.h: Put reg in gdb namespace.
13226
fb516a69
KR
132272020-03-17 Kamil Rytarowski <n54@gmx.com>
13228
13229 * i386-bsd-nat.c (gdb_ptrace): New.
13230 * (i386bsd_fetch_inferior_registers,
13231 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
13232 * (i386bsd_fetch_inferior_registers,
13233 i386bsd_store_inferior_registers) Use gdb_ptrace.
13234
1c0aa1fb
KR
132352020-03-17 Kamil Rytarowski <n54@gmx.com>
13236
13237 * amd64-bsd-nat.c (gdb_ptrace): New.
13238 * (amd64bsd_fetch_inferior_registers,
13239 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
13240 * (amd64bsd_fetch_inferior_registers,
13241 amd64bsd_store_inferior_registers) Use gdb_ptrace.
13242
5ccd2fb7
KR
132432020-03-17 Kamil Rytarowski <n54@gmx.com>
13244
13245 * user-regs.c (user_reg::read): Rename to...
13246 (user_reg::xread): ...this.
13247 * (append_user_reg): Rename argument `read' to `xread'.
13248 * (user_reg_add_builtin): Likewise.
13249 * (user_reg_add): Likewise.
13250 * (value_of_user_reg): Likewise.
13251
2108a63a
KR
132522020-03-17 Kamil Rytarowski <n54@gmx.com>
13253
13254 * sparc-nat.c (gdb_ptrace): New.
13255 * sparc-nat.c (sparc_fetch_inferior_registers)
13256 (sparc_store_inferior_registers) Remove obsolete comment.
13257 * sparc-nat.c (sparc_fetch_inferior_registers)
13258 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
13259 * sparc-nat.c (sparc_fetch_inferior_registers)
13260 (sparc_store_inferior_registers) Use gdb_ptrace.
13261
a225c9a8
KR
132622020-03-17 Kamil Rytarowski <n54@gmx.com>
13263
13264 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
13265 it to the ptrace call.
13266 * sh-nbsd-nat.c (store_registers): Likewise.
13267
98097623
KR
132682020-03-17 Kamil Rytarowski <n54@gmx.com>
13269
13270 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
13271 nbsd_nat_target instead of inf_ptrace_target.
13272 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13273 nbsd_nat_target.
13274
9e38d619
KR
132752020-03-17 Kamil Rytarowski <n54@gmx.com>
13276
13277 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
13278
a2ecbe9f
KR
132792020-03-17 Kamil Rytarowski <n54@gmx.com>
13280
13281 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
13282 <sys/sysctl.h>.
13283 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
13284
58990295
TV
132852020-03-17 Tom de Vries <tdevries@suse.de>
13286
13287 PR gdb/23710
13288 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
13289 fields.
13290 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
13291 fields.
13292 (process_imported_unit_die): Skip import of c++ CUs.
13293
771dd3a8
TT
132942020-03-16 Tom Tromey <tom@tromey.com>
13295
13296 * p-valprint.c (pascal_object_print_value): Initialize
13297 base_value.
13298
817a7585
AK
132992020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
13300 Shahab Vahedi <shahab@synopsys.com>
13301
13302 * Makefile.in: Add arch/arc.o
13303 * configure.tgt: Likewise.
13304 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
13305 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 13306 (arc_read_description): New function to cache target descriptions.
817a7585
AK
13307 * arc-tdep.h (arc_read_description): Add proto type.
13308 * arch/arc.c: New file.
13309 * arch/arc.h: Likewise.
13310 * features/Makefile: Replace old target descriptions with new.
13311 * features/arc-arcompact.c: Remove.
13312 * features/arc-arcompact.xml: Likewise.
13313 * features/arc-v2.c: Likewise
13314 * features/arc-v2.xml: Likewise
13315 * features/arc/aux-arcompact.xml: New file.
13316 * features/arc/aux-v2.xml: Likewise.
13317 * features/arc/core-arcompact.xml: Likewise.
13318 * features/arc/core-v2.xml: Likewise.
13319 * features/arc/aux-arcompact.c: Generate.
13320 * features/arc/aux-v2.c: Likewise.
13321 * features/arc/core-arcompact.c: Likewise.
13322 * features/arc/core-v2.c: Likewise.
13323 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
13324
67430cd0
TT
133252020-03-16 Tom Tromey <tromey@adacore.com>
13326
13327 PR gdb/25663:
13328 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
13329 putting value into bcache.
13330
30efb6c7
SM
133312020-03-16 Simon Marchi <simon.marchi@efficios.com>
13332
13333 PR gdb/21500
13334 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
13335 to...
13336 (amd64_windows_init_abi_common): ... this. Don't set size of
13337 long type.
13338 (amd64_windows_init_abi): New function.
13339 (amd64_cygwin_init_abi): New function.
13340 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
13341 the Cygwin OS ABI.
13342 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
13343 comment.
13344
8db52437
SM
133452020-03-16 Simon Marchi <simon.marchi@efficios.com>
13346
13347 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
13348 * windows-tdep.c (CYGWIN_DLL_NAME): New.
13349 (pe_import_directory_entry): New struct type.
13350 (is_linked_with_cygwin_dll): New function.
13351 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
13352 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
13353 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
13354
5982a56a
SM
133552020-03-16 Simon Marchi <simon.marchi@efficios.com>
13356
13357 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
13358 i386_cygwin_core_osabi_sniffer.
13359
7a1998df
SM
133602020-03-16 Simon Marchi <simon.marchi@efficios.com>
13361
13362 * i386-cygwin-tdep.c: Rename to...
13363 * i386-windows-tdep.c: ... this.
13364 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
13365 i386-windows-tdep.c.
13366 * configure.tgt: Likewise.
13367
053205cc
SM
133682020-03-16 Simon Marchi <simon.marchi@efficios.com>
13369
13370 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
13371 * osabi.c (gdb_osabi_names): Add "Windows".
13372 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
13373 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
13374 (i386_cygwin_core_osabi_sniffer): New function, extracted from
13375 i386_cygwin_osabi_sniffer.
13376 (_initialize_i386_cygwin_tdep): Register OS ABI
13377 GDB_OSABI_WINDOWS for i386.
13378 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
13379 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
13380 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
13381 for x86-64.
13382 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
13383 when the target matches '*-*-mingw*'.
13384
fe4b2ee6
SM
133852020-03-16 Simon Marchi <simon.marchi@efficios.com>
13386
13387 * defs.h (enum gdb_osabi): Move to...
13388 * osabi.h (enum gdb_osabi): ... here.
13389 * gdbarch.sh: Include osabi.h in gdbarch.h.
13390 * gdbarch.h: Re-generate.
13391
cb9b645d
SM
133922020-03-16 Simon Marchi <simon.marchi@efficios.com>
13393
13394 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
13395 function.
13396 (_initialize_amd64_windows_tdep): Register osabi sniffer.
13397
3293bbaf
TT
133982020-03-14 Tom Tromey <tom@tromey.com>
13399
13400 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
13401 for C++.
13402 (c_type_print_modifier): Likewise. Add "language" parameter.
13403 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
13404 (c_type_print_base_1): Update.
13405 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
13406 constants.
13407 * type-stack.c (type_stack::insert): Handle tp_atomic and
13408 tp_restrict.
13409 (type_stack::follow_type_instance_flags): Likewise.
13410 (type_stack::follow_types): Likewise. Merge type-following code.
13411 * c-exp.y (RESTRICT, ATOMIC): New tokens.
13412 (space_identifier, cv_with_space_id)
13413 (const_or_volatile_or_space_identifier_noopt)
13414 (const_or_volatile_or_space_identifier): Remove.
13415 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
13416 rules.
13417 (ptr_operator, typebase): Update.
13418 (enum token_flag) <FLAG_C>: New constant.
13419 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
13420 "_Atomic".
13421 (lex_one_token): Handle FLAG_C.
13422
154151a6
KR
134232020-03-14 Kamil Rytarowski <n54@gmx.com>
13424
13425 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
13426 it to the ptrace call.
13427 * m68k-bsd-nat.c (store_registers): Likewise.
13428
bc107784
KR
134292020-03-14 Kamil Rytarowski <n54@gmx.com>
13430
13431 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
13432 gdb_byte *.
13433 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
13434 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
13435 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
13436
01a80117
KR
134372020-03-14 Kamil Rytarowski <n54@gmx.com>
13438
13439 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
13440 nbsd_nat_target instead of inf_ptrace_target.
13441 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13442 nbsd_nat_target.
13443
f90280ca
KR
134442020-03-14 Kamil Rytarowski <n54@gmx.com>
13445
13446 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
13447 register_t.
13448
6def66f1
KR
134492020-03-14 Kamil Rytarowski <n54@gmx.com>
13450
13451 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
13452 it to the ptrace call.
13453 * alpha-bsd-nat.c (store_registers): Likewise.
13454
66eaca97
KR
134552020-03-14 Kamil Rytarowski <n54@gmx.com>
13456
13457 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
13458 includes.
13459 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
13460 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
13461 fill_fpregset): Likewise.
13462
4fed520b
KR
134632020-03-14 Kamil Rytarowski <n54@gmx.com>
13464
13465 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
13466 nbsd_nat_target instead of inf_ptrace_target.
13467 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13468 nbsd_nat_target.
13469
2190cf06
KR
134702020-03-14 Kamil Rytarowski <n54@gmx.com>
13471
13472 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
13473 register_t.
13474
75c56d3d
KR
134752020-03-14 Kamil Rytarowski <n54@gmx.com>
13476
13477 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
13478 it to the ptrace call.
13479 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
13480 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
13481 * arm-nbsd-nat.c (store_register): Likewise.
13482 * arm-nbsd-nat.c (store_regs): Likewise.
13483 * arm-nbsd-nat.c (store_fp_register): Likewise.
13484 * arm-nbsd-nat.c (store_fp_regs): Likewise.
13485
6018d381
KR
134862020-03-14 Kamil Rytarowski <n54@gmx.com>
13487
13488 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
13489 nbsd_nat_target instead of inf_ptrace_target.
13490 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13491 nbsd_nat_target.
13492
013f99f0
KR
134932020-03-14 Kamil Rytarowski <n54@gmx.com>
13494
13495 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
13496 it to the ptrace call.
13497 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
13498
12753073
KR
134992020-03-14 Kamil Rytarowski <n54@gmx.com>
13500
6227b330
KR
13501 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
13502 it to the ptrace call.
13503 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
13504
135052020-03-14 Kamil Rytarowski <n54@gmx.com>
13506
13507 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
13508 gdb_byte *.
12753073
KR
13509 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
13510
d5be5fa4
KR
135112020-03-14 Kamil Rytarowski <n54@gmx.com>
13512
13513 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
13514 instead of inf_ptrace_target.
13515 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13516 nbsd_nat_target.
13517
8110f842
KR
135182020-03-14 Kamil Rytarowski <n54@gmx.com>
13519
13520 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13521 register_t.
13522
52feded7
KR
135232020-03-14 Kamil Rytarowski <n54@gmx.com>
13524
13525 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13526 register_t.
13527
25567eee
KR
135282020-03-14 Kamil Rytarowski <n54@gmx.com>
13529
13530 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
13531 register_t.
13532
426a9c18
TT
135332020-03-13 Tom Tromey <tom@tromey.com>
13534
13535 * value.h (val_print): Don't declare.
13536 * valprint.h (val_print_array_elements)
13537 (val_print_scalar_formatted, generic_val_print): Don't declare.
13538 * valprint.c (generic_val_print_array): Take a struct value.
13539 (generic_val_print_ptr, generic_val_print_memberptr)
13540 (generic_val_print_bool, generic_val_print_int)
13541 (generic_val_print_char, generic_val_print_complex)
13542 (generic_val_print): Remove.
13543 (generic_value_print): Update.
13544 (do_val_print): Remove unused parameters. Don't call
13545 la_val_print.
13546 (val_print): Remove.
13547 (common_val_print): Update. Don't call value_check_printable.
13548 (val_print_scalar_formatted, val_print_array_elements): Remove.
13549 * rust-lang.c (rust_val_print): Remove.
13550 (rust_language_defn): Update.
13551 * p-valprint.c (pascal_val_print): Remove.
13552 (pascal_value_print_inner): Update.
13553 (pascal_object_print_val_fields, pascal_object_print_val):
13554 Remove.
13555 (pascal_object_print_static_field): Update.
13556 * p-lang.h (pascal_val_print): Don't declare.
13557 * p-lang.c (pascal_language_defn): Update.
13558 * opencl-lang.c (opencl_language_defn): Update.
13559 * objc-lang.c (objc_language_defn): Update.
13560 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
13561 * m2-lang.h (m2_val_print): Don't declare.
13562 * m2-lang.c (m2_language_defn): Update.
13563 * language.h (struct language_defn) <la_val_print>: Remove.
13564 * language.c (unk_lang_value_print_inner): Rename. Change
13565 argument types.
13566 (unknown_language_defn, auto_language_defn): Update.
13567 * go-valprint.c (go_val_print): Remove.
13568 * go-lang.h (go_val_print): Don't declare.
13569 * go-lang.c (go_language_defn): Update.
13570 * f-valprint.c (f_val_print): Remove.
13571 * f-lang.h (f_value_print): Don't declare.
13572 * f-lang.c (f_language_defn): Update.
13573 * d-valprint.c (d_val_print): Remove.
13574 * d-lang.h (d_value_print): Don't declare.
13575 * d-lang.c (d_language_defn): Update.
13576 * cp-valprint.c (cp_print_value_fields)
13577 (cp_print_value_fields_rtti, cp_print_value): Remove.
13578 (cp_print_static_field): Update.
13579 * c-valprint.c (c_val_print_array, c_val_print_ptr)
13580 (c_val_print_struct, c_val_print_union, c_val_print_int)
13581 (c_val_print_memberptr, c_val_print): Remove.
13582 * c-lang.h (c_val_print_array, cp_print_value_fields)
13583 (cp_print_value_fields_rtti): Don't declare.
13584 * c-lang.c (c_language_defn, cplus_language_defn)
13585 (asm_language_defn, minimal_language_defn): Update.
13586 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
13587 (ada_val_print_enum): Take a struct value.
13588 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
13589 (ada_val_print): Remove.
13590 (ada_value_print_1): Update.
13591 (printable_val_type): Remove.
13592 * ada-lang.h (ada_val_print): Don't declare.
13593 * ada-lang.c (ada_language_defn): Update.
13594
42331a1e
TT
135952020-03-13 Tom Tromey <tom@tromey.com>
13596
13597 * valprint.c (do_val_print): Update.
13598 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
13599 a struct value.
13600 (value_to_value_object_no_release): Declare.
13601 * python/py-value.c (value_to_value_object_no_release): New
13602 function.
13603 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
13604 struct value.
13605 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
13606 function.
13607 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
13608 a struct value.
13609 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
13610 Declare.
13611 (gdbscm_apply_val_pretty_printer): Take a struct value.
13612 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
13613 value.
13614 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
13615 value.
13616 * extension-priv.h (struct extension_language_ops)
13617 <apply_val_pretty_printer>: Take a struct value.
13618 * cp-valprint.c (cp_print_value): Create a struct value.
13619 (cp_print_value): Update.
13620
3a916a97
TT
136212020-03-13 Tom Tromey <tom@tromey.com>
13622
13623 * ada-valprint.c (print_field_values): Call common_val_print.
13624
b59eac37
TT
136252020-03-13 Tom Tromey <tom@tromey.com>
13626
13627 * ada-valprint.c (val_print_packed_array_elements): Remove
13628 bitoffset and val parameters. Call common_val_print.
13629 (ada_val_print_string): Remove offset, address, and original_value
13630 parameters.
13631 (ada_val_print_array): Update.
13632 (ada_value_print_array): New function.
13633 (ada_value_print_1): Call it.
13634
03371129
TT
136352020-03-13 Tom Tromey <tom@tromey.com>
13636
13637 * ada-valprint.c (ada_value_print): Use common_val_print.
13638
2e088f8b
TT
136392020-03-13 Tom Tromey <tom@tromey.com>
13640
13641 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
13642
39ef85a8
TT
136432020-03-13 Tom Tromey <tom@tromey.com>
13644
13645 * ada-valprint.c (ada_value_print_num): New function.
13646 (ada_value_print_1): Use it.
13647
b9fa6e07
TT
136482020-03-13 Tom Tromey <tom@tromey.com>
13649
13650 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
13651
416595d6
TT
136522020-03-13 Tom Tromey <tom@tromey.com>
13653
13654 * ada-valprint.c (ada_value_print_ptr): New function.
13655 (ada_value_print_1): Use it.
13656
5b5e15ec
TT
136572020-03-13 Tom Tromey <tom@tromey.com>
13658
13659 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
13660 call common_val_print.
13661 (ada_val_print_1): Update.
13662 (ada_value_print_1): New function.
13663 (ada_value_print_inner): Rewrite.
13664
fbf54e75
TT
136652020-03-13 Tom Tromey <tom@tromey.com>
13666
13667 * cp-valprint.c (cp_print_value_fields): Update.
13668 (cp_print_value): New function.
13669
64b653ca
TT
136702020-03-13 Tom Tromey <tom@tromey.com>
13671
13672 * m2-valprint.c (m2_value_print_inner): Use
13673 cp_print_value_fields.
13674 * cp-valprint.c (cp_print_value_fields): New function.
13675 * c-valprint.c (c_value_print_struct): New function.
13676 (c_value_print_inner): Use c_value_print_struct.
13677 * c-lang.h (cp_print_value_fields): Declare.
13678
6999f067
TT
136792020-03-13 Tom Tromey <tom@tromey.com>
13680
13681 * c-valprint.c (c_value_print_array): New function.
13682 (c_value_print_inner): Use it.
13683
ce80b8bd
TT
136842020-03-13 Tom Tromey <tom@tromey.com>
13685
13686 * c-valprint.c (c_value_print_memberptr): New function.
13687 (c_value_print_inner): Use it.
13688
2faac269
TT
136892020-03-13 Tom Tromey <tom@tromey.com>
13690
13691 * c-valprint.c (c_value_print_int): New function.
13692 (c_value_print_inner): Use it.
13693
da3e2c29
TT
136942020-03-13 Tom Tromey <tom@tromey.com>
13695
13696 * c-valprint.c (c_value_print_ptr): New function.
13697 (c_value_print_inner): Use it.
13698
50836231
TT
136992020-03-13 Tom Tromey <tom@tromey.com>
13700
13701 * c-valprint.c (c_value_print_inner): Rewrite.
13702
4f412b6e
TT
137032020-03-13 Tom Tromey <tom@tromey.com>
13704
13705 * valprint.c (generic_value_print_complex): New function.
13706 (generic_value_print): Use it.
13707
f5354008
TT
137082020-03-13 Tom Tromey <tom@tromey.com>
13709
13710 * valprint.c (generic_val_print_float): Don't call
13711 val_print_scalar_formatted.
13712 (generic_val_print, generic_value_print): Update.
13713
3eec3b05
TT
137142020-03-13 Tom Tromey <tom@tromey.com>
13715
13716 * valprint.c (generic_value_print_char): New function
13717 (generic_value_print): Use it.
13718
fdddfccb
TT
137192020-03-13 Tom Tromey <tom@tromey.com>
13720
13721 * valprint.c (generic_value_print_int): New function.
13722 (generic_value_print): Use it.
13723
6dde7521
TT
137242020-03-13 Tom Tromey <tom@tromey.com>
13725
13726 * valprint.c (generic_value_print_bool): New function.
13727 (generic_value_print): Use it.
13728
4112d2e6
TT
137292020-03-13 Tom Tromey <tom@tromey.com>
13730
13731 * valprint.c (generic_val_print_func): Simplify.
13732 (generic_val_print, generic_value_print): Update.
13733
65786af6
TT
137342020-03-13 Tom Tromey <tom@tromey.com>
13735
13736 * valprint.c (generic_val_print_flags): Remove.
13737 (generic_val_print, generic_value_print): Update.
13738 (val_print_type_code_flags): Add original_value parameter.
13739
40f3ce18
TT
137402020-03-13 Tom Tromey <tom@tromey.com>
13741
13742 * valprint.c (generic_val_print): Update.
13743 (generic_value_print): Update.
13744 * valprint.c (generic_val_print_enum): Don't call
13745 val_print_scalar_formatted.
13746
2a5b130b
TT
137472020-03-13 Tom Tromey <tom@tromey.com>
13748
13749 * valprint.c (generic_value_print): Call generic_value_print_ptr.
13750 * valprint.c (generic_value_print_ptr): New function.
13751
abc66ce9
TT
137522020-03-13 Tom Tromey <tom@tromey.com>
13753
13754 * valprint.c (generic_value_print): Rewrite.
13755
07a32858
TT
137562020-03-13 Tom Tromey <tom@tromey.com>
13757
13758 * p-valprint.c (pascal_object_print_value_fields)
13759 (pascal_object_print_value): New functions.
13760
64d64d3a
TT
137612020-03-13 Tom Tromey <tom@tromey.com>
13762
13763 * p-valprint.c (pascal_value_print_inner): Rewrite.
13764
6a95a1f5
TT
137652020-03-13 Tom Tromey <tom@tromey.com>
13766
13767 * f-valprint.c (f_value_print_innner): Rewrite.
13768
59fcdac6
TT
137692020-03-13 Tom Tromey <tom@tromey.com>
13770
13771 * m2-valprint.c (m2_print_unbounded_array): New overload.
13772 (m2_print_unbounded_array): Update.
13773 (m2_print_array_contents): Take a struct value.
13774 (m2_value_print_inner): Rewrite.
13775
d133c3e1
TT
137762020-03-13 Tom Tromey <tom@tromey.com>
13777
13778 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
13779 (d_value_print_inner): New function.
13780 * d-lang.h (d_value_print_inner): Declare.
13781 * d-lang.c (d_language_defn): Use d_value_print_inner.
13782
23b0f06b
TT
137832020-03-13 Tom Tromey <tom@tromey.com>
13784
13785 * go-valprint.c (go_value_print_inner): New function.
13786 * go-lang.h (go_value_print_inner): Declare.
13787 * go-lang.c (go_language_defn): Use go_value_print_inner.
13788
5f56f7cb
TT
137892020-03-13 Tom Tromey <tom@tromey.com>
13790
13791 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
13792 API.
13793 (rust_val_print): Rewrite.
13794 (rust_value_print_inner): New function, from rust_val_print.
13795 (rust_language_defn): Use rust_value_print_inner.
13796
26792ee0
TT
137972020-03-13 Tom Tromey <tom@tromey.com>
13798
13799 * ada-valprint.c (ada_value_print_inner): New function.
13800 * ada-lang.h (ada_value_print_inner): Declare.
13801 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
13802
24051bbe
TT
138032020-03-13 Tom Tromey <tom@tromey.com>
13804
13805 * f-valprint.c (f_value_print_innner): New function.
13806 * f-lang.h (f_value_print_innner): Declare.
13807 * f-lang.c (f_language_defn): Use f_value_print_innner.
13808
c0941be6
TT
138092020-03-13 Tom Tromey <tom@tromey.com>
13810
13811 * p-valprint.c (pascal_value_print_inner): New function.
13812 * p-lang.h (pascal_value_print_inner): Declare.
13813 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
13814
62c4663d
TT
138152020-03-13 Tom Tromey <tom@tromey.com>
13816
13817 * m2-valprint.c (m2_value_print_inner): New function.
13818 * m2-lang.h (m2_value_print_inner): Declare.
13819 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
13820
62182190
TT
138212020-03-13 Tom Tromey <tom@tromey.com>
13822
13823 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
13824 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
13825 * c-valprint.c (c_value_print_inner): New function.
13826 * c-lang.h (c_value_print_inner): Declare.
13827 * c-lang.c (c_language_defn, cplus_language_defn)
13828 (asm_language_defn, minimal_language_defn): Use
13829 c_value_print_inner.
13830
1e592a8a
TT
138312020-03-13 Tom Tromey <tom@tromey.com>
13832
13833 * p-valprint.c (pascal_object_print_value_fields): Now static.
13834 * p-lang.h (pascal_object_print_value_fields): Don't declare.
13835
7fe471e9
TT
138362020-03-13 Tom Tromey <tom@tromey.com>
13837
13838 * c-valprint.c (c_val_print_array): Simplify.
13839
d121c6ce
TT
138402020-03-13 Tom Tromey <tom@tromey.com>
13841
13842 * valprint.c (value_print_array_elements): New function.
13843 * valprint.h (value_print_array_elements): Declare.
13844
4dba70ee
TT
138452020-03-13 Tom Tromey <tom@tromey.com>
13846
13847 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
13848 * mips-tdep.c (mips_print_register): Use
13849 value_print_scalar_formatted.
13850
4f9ae810
TT
138512020-03-13 Tom Tromey <tom@tromey.com>
13852
13853 * valprint.h (value_print_scalar_formatted): Declare.
13854 * valprint.c (value_print_scalar_formatted): New function.
13855
156bfec9
TT
138562020-03-13 Tom Tromey <tom@tromey.com>
13857
13858 * valprint.h (generic_value_print): Declare.
13859 * valprint.c (generic_value_print): New function.
13860
2b4e573d
TT
138612020-03-13 Tom Tromey <tom@tromey.com>
13862
13863 * valprint.c (do_val_print): Call la_value_print_inner, if
13864 available.
13865 * rust-lang.c (rust_language_defn): Update.
13866 * p-lang.c (pascal_language_defn): Update.
13867 * opencl-lang.c (opencl_language_defn): Update.
13868 * objc-lang.c (objc_language_defn): Update.
13869 * m2-lang.c (m2_language_defn): Update.
13870 * language.h (struct language_defn) <la_value_print_inner>: New
13871 member.
13872 * language.c (unknown_language_defn, auto_language_defn): Update.
13873 * go-lang.c (go_language_defn): Update.
13874 * f-lang.c (f_language_defn): Update.
13875 * d-lang.c (d_language_defn): Update.
13876 * c-lang.c (c_language_defn, cplus_language_defn)
13877 (asm_language_defn, minimal_language_defn): Update.
13878 * ada-lang.c (ada_language_defn): Update.
13879
a1f6a07c
TT
138802020-03-13 Tom Tromey <tom@tromey.com>
13881
13882 * c-valprint.c (c_value_print): Use common_val_print.
13883
410cf315
TT
138842020-03-13 Tom Tromey <tom@tromey.com>
13885
13886 * cp-valprint.c (cp_print_static_field): Use common_val_print.
13887
72a45c93
TT
138882020-03-13 Tom Tromey <tom@tromey.com>
13889
13890 * f-valprint.c (f77_print_array_1, f_val_print): Use
13891 common_val_print.
13892
040f66bd
TT
138932020-03-13 Tom Tromey <tom@tromey.com>
13894
13895 * riscv-tdep.c (riscv_print_one_register_info): Use
13896 common_val_print.
13897
a6e05a6c
TT
138982020-03-13 Tom Tromey <tom@tromey.com>
13899
13900 * mi/mi-main.c (output_register): Use common_val_print.
13901
3444c526
TT
139022020-03-13 Tom Tromey <tom@tromey.com>
13903
13904 * infcmd.c (default_print_one_register_info): Use
13905 common_val_print.
13906
c2a44efe
TT
139072020-03-13 Tom Tromey <tom@tromey.com>
13908
13909 * valprint.h (common_val_print_checked): Declare.
13910 * valprint.c (common_val_print_checked): New function.
13911 * stack.c (print_frame_arg): Use common_val_print_checked.
13912
b0c26e99
TT
139132020-03-13 Tom Tromey <tom@tromey.com>
13914
13915 * valprint.c (do_val_print): New function, from val_print.
13916 (val_print): Use do_val_print.
13917 (common_val_print): Use do_val_print.
13918
ce3acbe9
TT
139192020-03-13 Tom Tromey <tom@tromey.com>
13920
13921 * valprint.c (value_print): Use scoped_value_mark.
13922
96c7f873
TV
139232020-03-13 Tom de Vries <tdevries@suse.de>
13924
13925 PR symtab/25646
13926 * psymtab.c (partial_symtab::partial_symtab): Don't set
13927 globals_offset and statics_offset. Push element onto
13928 current_global_psymbols and current_static_psymbols stacks.
13929 (concat): New function.
13930 (end_psymtab_common): Set globals_offset and statics_offset. Pop
13931 element from current_global_psymbols and current_static_psymbols
13932 stacks. Concat popped elements to global_psymbols and
13933 static_symbols.
13934 (add_psymbol_to_list): Use current_global_psymbols and
13935 current_static_psymbols stacks.
13936 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
13937 current_static_psymbols fields.
13938
6ba0a321
CB
139392020-03-12 Christian Biesinger <cbiesinger@google.com>
13940
13941 * corelow.c (sniff_core_bfd): Remove.
13942 (class core_target) <m_core_vec>: Remove.
13943 (core_target::core_target): Update.
13944 (core_file_fns): Remove.
13945 (deprecated_add_core_fns): Remove.
13946 (default_core_sniffer): Remove.
13947 (sniff_core_bfd): Remove.
13948 (default_check_format): Remove.
13949 (gdb_check_format): Remove.
13950 (core_target_open): Update.
13951 (core_target::get_core_register_section): Update.
13952 (get_core_registers_cb): Update.
13953 (core_target::fetch_registers): Update.
13954 * gdbcore.h (struct core_fns): Remove.
13955 (deprecated_add_core_fns): Remove.
13956 (default_core_sniffer): Remove.
13957 (default_check_format): Remove.
13958
227031b2
TT
139592020-03-12 Tom Tromey <tom@tromey.com>
13960
13961 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
13962 CORE_ADDR.
13963 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
13964
53807e9f
TT
139652020-03-12 Tom Tromey <tom@tromey.com>
13966
13967 * remote.c (remote_target::download_tracepoint)
13968 (remote_target::enable_tracepoint)
13969 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
13970 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
13971 sprintf_vma.
13972
64f25102
TT
139732020-03-12 Tom Tromey <tom@tromey.com>
13974
13975 * symfile-mem.c: Update CORE_ADDR size assert.
13976
272cd5a3
SM
139772020-03-12 Simon Marchi <simon.marchi@efficios.com>
13978
13979 * selftest.m4: Move to gdbsupport/.
13980 * acinclude.m4: Update path to selftest.m4.
13981
74cd3f9d
SM
139822020-03-12 Simon Marchi <simon.marchi@efficios.com>
13983
13984 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
13985 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
13986 gdbarch-selfselftests.c and selftest-arch.c.
13987 (SUBDIR_UNITTESTS_OBS): Rename to...
13988 (SELFTESTS_OBS): ... this.
13989 (COMMON_SFILES): Remove disasm-selftests.c and
13990 gdbarch-selftests.c.
13991 * configure.ac: Don't add selftest-arch.{c,o} to
13992 CONFIG_{SRCS,OBS}.
13993 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
13994 preprocessor conditions.
13995
db6878ac
SM
139962020-03-12 Simon Marchi <simon.marchi@efficios.com>
13997
13998 * configure.ac: Don't source bfd/development.sh.
13999 * selftest.m4: Modify comment.
14000 * configure: Re-generate.
14001
4d696a5c
SM
140022020-03-12 Simon Marchi <simon.marchi@efficios.com>
14003
14004 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
14005 not "true" or "false".
14006 * configure: Re-generate.
14007
8dd8e1c7
CB
140082020-03-12 Christian Biesinger <cbiesinger@google.com>
14009
14010 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
14011 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
14012 renamed to arm_nbsd_supply_gregset.
14013 (fetch_register): Update to call arm_nbsd_supply_gregset.
14014 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
14015 (arm_netbsd_nat_target::fetch_registers): Update.
14016 (fetch_elfcore_registers): Removed.
14017 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
14018 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
14019 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
14020 not require NetBSD system headers.
14021 (arm_nbsd_regset): New struct.
14022 (arm_nbsd_iterate_over_regset_sections): New function.
14023 (arm_netbsd_init_abi_common): Updated to call
14024 set_gdbarch_iterate_over_regset_sections.
14025 * arm-nbsd-tdep.h: New file.
14026
dd69bf7a
KB
140272020-03-11 Kevin Buettner <kevinb@redhat.com>
14028
14029 * symtab.c (find_pc_sect_line): Add check which prevents infinite
14030 recursion.
14031
a0761e34
SM
140322020-03-11 Simon Marchi <simon.marchi@efficios.com>
14033
14034 * configure: Re-generate.
14035
e7a82140
TT
140362020-03-11 Tom Tromey <tromey@adacore.com>
14037
14038 * ada-typeprint.c (print_choices): Fix comment.
14039
dcc050c8
AB
140402020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
14041
14042 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
14043 previous item in the list, when the list has no items.
14044
1c33af77
TV
140452020-03-11 Tom de Vries <tdevries@suse.de>
14046
14047 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
14048 PROP_LOCLIST handling code.
14049
8c95582d
AB
140502020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
14051
14052 * buildsym-legacy.c (record_line): Pass extra parameter to
14053 record_line.
14054 * buildsym.c (buildsym_compunit::record_line): Take an extra
14055 parameter, reduce duplication in the line table, and record the
14056 is_stmt flag in the line table.
14057 * buildsym.h (buildsym_compunit::record_line): Add extra
14058 parameter.
14059 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
14060 non-statement lines.
14061 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
14062 this to the symtab builder.
14063 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
14064 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
14065 through to dwarf_record_line_1.
14066 * infrun.c (process_event_stop_test): When stepping, don't stop at
14067 a non-statement instruction, and only refresh the step info when
14068 we land in the middle of a line's range. Also add an extra
14069 comment.
14070 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
14071 field.
14072 * record-btrace.c (btrace_find_line_range): Only record lines
14073 marked as is-statement.
14074 * stack.c (frame_show_address): Show the frame address if we are
14075 in a non-statement sal.
14076 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
14077 (maintenance_print_one_line_table): Print a header for the is_stmt
14078 column, and include is_stmt information in the output.
14079 * symtab.c (find_pc_sect_line): Find lines marked as statements in
14080 preference to non-statements.
14081 (find_pcs_for_symtab_line): Prefer is-statement entries.
14082 (find_line_common): Likewise.
14083 * symtab.h (struct linetable_entry): Add is_stmt field.
14084 (struct symtab_and_line): Likewise.
14085 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
14086 arranging the line table.
14087
e4003a34
TV
140882020-03-07 Tom de Vries <tdevries@suse.de>
14089
14090 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
14091 DIE.
14092
e8932576
TT
140932020-03-07 Tom Tromey <tom@tromey.com>
14094
14095 * valops.c (value_literal_complex): Remove obsolete comment.
14096 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
14097 comment.
14098
29734269
SM
140992020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
14100
14101 * infrun.h: Forward-declare thread_info.
14102 (set_step_info): Add thread_info parameter, add doc.
14103 * infrun.c (set_step_info): Add thread_info parameter, move doc
14104 to header.
14105 * infrun.c (process_event_stop_test): Pass thread to
14106 set_step_info call.
14107 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
14108 set_step_info.
14109 (prepare_one_step): Add thread_info parameter, pass it to
14110 set_step_frame and prepare_one_step (recursive) call.
14111 (step_1): Pass thread to prepare_one_step call.
14112 (step_command_fsm::should_stop): Pass thread to
14113 prepare_one_step.
14114 (until_next_fsm): Pass thread to set_step_frame call.
14115 (finish_command): Pass thread to set_step_info call.
14116
b7d64b29
HD
141172020-03-06 Hannes Domani <ssbssa@yahoo.de>
14118
14119 * windows-tdep.c (windows_solib_create_inferior_hook):
14120 Check if inferior is running.
14121
09f2921c
TV
141222020-03-06 Tom de Vries <tdevries@suse.de>
14123
14124 * NEWS: Fix "the the".
14125 * ctfread.c: Same.
14126
fd760e79
TV
141272020-03-06 Tom de Vries <tdevries@suse.de>
14128
14129 * psymtab.c (psymtab_to_symtab): Don't print "done.".
14130
20ea4a60
AB
141312020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14132
14133 * .dir-locals.el: Add a comment referencing the other copies of
14134 this file.
14135
0afbabf0
JB
141362020-03-05 John Baldwin <jhb@FreeBSD.org>
14137
14138 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
14139 psargs.
14140
842806cb
TBA
141412020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14142
14143 * .gitattributes: New file.
14144
be1e3d3e
TT
141452020-03-04 Tom Tromey <tom@tromey.com>
14146
14147 * symmisc.c (print_symbol_bcache_statistics)
14148 (print_objfile_statistics): Update.
14149 * symfile.c (allocate_symtab): Use intern.
14150 * psymtab.c (partial_symtab::partial_symtab): Use intern.
14151 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
14152 macro_cache>: Remove.
14153 <string_cache>: New member.
14154 (struct objfile) <intern>: New methods.
14155 * elfread.c (elf_symtab_read): Use intern.
14156 * dwarf2/read.c (fixup_go_packaging): Intern package name.
14157 (dwarf2_compute_name, dwarf2_physname)
14158 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
14159 names.
14160 (guess_partial_die_structure_name): Update.
14161 (partial_die_info::fixup): Intern name.
14162 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
14163 name.
14164 (dwarf2_name): Intern name. Update.
14165 * buildsym.c (buildsym_compunit::get_macro_table): Use
14166 string_cache.
14167
4e7625fd
TT
141682020-03-04 Tom Tromey <tom@tromey.com>
14169
14170 * jit.c (bfd_open_from_target_memory): Make "target" const.
14171 * corefile.c (gnutarget): Now const.
14172 * gdbcore.h (gnutarget): Now const.
14173
46f9f931
HD
141742020-03-04 Hannes Domani <ssbssa@yahoo.de>
14175
14176 * NEWS: Mention support for WOW64 processes.
14177 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
14178 (amd64_windows_segment_register_p): Remove static.
14179 (_initialize_amd64_windows_nat): Update.
14180 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
14181 * i386-windows-nat.c (context_offset): Update.
14182 (i386_mappings): Rename and remove static.
14183 (i386_windows_segment_register_p): Remove static.
14184 (_initialize_i386_windows_nat): Update.
14185 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
14186 (STATUS_WX86_SINGLE_STEP): New macro.
14187 (EnumProcessModulesEx): New macro.
14188 (Wow64SuspendThread): New macro.
14189 (Wow64GetThreadContext): New macro.
14190 (Wow64SetThreadContext): New macro.
14191 (Wow64GetThreadSelectorEntry): New macro.
14192 (windows_set_context_register_offsets): Add static.
14193 (windows_set_segment_register_p): Likewise.
14194 (windows_add_thread): Adapt for WOW64 processes.
14195 (windows_fetch_one_register): Likewise.
14196 (windows_nat_target::fetch_registers): Likewise.
14197 (windows_store_one_register): Likewise.
14198 (display_selector): Likewise.
14199 (display_selectors): Likewise.
14200 (handle_exception): Likewise.
14201 (windows_continue): Likewise.
14202 (windows_nat_target::resume): Likewise.
14203 (windows_add_all_dlls): Likewise.
14204 (do_initial_windows_stuff): Likewise.
14205 (windows_nat_target::attach): Likewise.
14206 (windows_get_exec_module_filename): Likewise.
14207 (windows_nat_target::create_inferior): Likewise.
14208 (windows_xfer_siginfo): Likewise.
14209 (_initialize_loadable): Initialize Wow64SuspendThread,
14210 Wow64GetThreadContext, Wow64SetThreadContext,
14211 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
14212 * windows-nat.h (windows_set_context_register_offsets):
14213 Remove declaration.
14214 (windows_set_segment_register_p): Likewise.
14215 (i386_windows_segment_register_p): Add declaration.
14216 (amd64_windows_segment_register_p): Likewise.
14217
440cf44e
LM
142182020-03-04 Luis Machado <luis.machado@linaro.org>
14219
14220 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
14221 in "info registers" for AArch64/ARM.
14222
14223 The change caused "info registers" to not print GPR's.
14224
14225 gdb/ChangeLog:
14226
14227 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
14228
14229 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
14230 when reg->group is empty and reggroup is not.
14231
1009d92f
TT
142322020-03-03 Tom Tromey <tromey@adacore.com>
14233
14234 * dwarf2/frame.c (struct dwarf2_frame_cache)
14235 <checked_tailcall_bottom, entry_cfa_sp_offset,
14236 entry_cfa_sp_offset_p>: Remove members.
14237 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
14238 (dwarf2_frame_prev_register): Don't call
14239 dwarf2_tailcall_sniffer_first.
14240 (dwarf2_append_unwinders): Don't append tailcall unwinder.
14241 * frame-unwind.c (add_unwinder): New fuction.
14242 (frame_unwind_init): Use it. Add tailcall unwinder.
14243
5e5d66b6
AB
142442020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
14245 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14246
14247 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
14248 value should be printed as true.
14249
584cf46d
HD
142502020-03-03 Hannes Domani <ssbssa@yahoo.de>
14251
14252 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
14253 (windows_init_abi): Set and use windows_so_ops.
14254
7b973adc
SDJ
142552020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
14256
14257 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
14258 when verifying if dealing with a convenience variable.
14259
bb7b70ab
LM
142602020-03-03 Luis Machado <luis.machado@linaro.org>
14261
14262 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
14263
9822cb57
SM
142642020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
14265
14266 * infrun.c (gdbarch_supports_displaced_stepping): New.
14267 (use_displaced_stepping): Break up conditions in smaller pieces.
14268 Use gdbarch_supports_displaced_stepping.
14269 (displaced_step_prepare_throw): Use
14270 gdbarch_supports_displaced_stepping.
14271
63e163f2
AB
142722020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
14273
14274 * NEWS: Mention new behaviour of the history filename.
14275 * top.c (write_history_p): Add comment.
14276 (show_write_history_p): Add header comment, give a different
14277 message when history writing is on, but the history filename is
14278 empty.
14279 (history_filename): Add comment.
14280 (history_filename_empty): New function.
14281 (show_history_filename): Add header comment, give a different
14282 message when the filename is empty.
14283 (init_history): Compare history_filename against nullptr, and only
14284 read history if the filename is not empty.
14285 (set_history_filename): Add header comment, and only make
14286 non-empty filenames absolute.
14287 (init_main): Make the filename argument to 'set history filename'
14288 optional.
14289
81b86b97
CB
142902020-03-02 Christian Biesinger <cbiesinger@google.com>
14291
14292 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
14293 (arm_supply_vfpregset): ...this, and update to use VFP registers.
14294 (fetch_fp_register): Update.
14295 (fetch_fp_regs): Update.
14296 (store_fp_register): Update.
14297 (store_fp_regs): Update.
14298 (arm_netbsd_nat_target::read_description): New function.
14299 (fetch_elfcore_registers): Update.
14300
24ed6739
AB
143012020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
14302
14303 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
14304 general_thread if the stop reply is missing a thread-id.
14305 (remote_target::process_stop_reply): Use the first non-exited
14306 thread if the target didn't pass a thread-id.
14307 * infrun.c (do_target_wait): Move call to
14308 switch_to_inferior_no_thread to ....
14309 (do_target_wait_1): ... here.
14310
a84bb2a0
JT
143112020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
14312
14313 * debuginfod-support.c: Include defs.h first.
14314
658dadf0
TV
143152020-02-28 Tom de Vries <tdevries@suse.de>
14316
14317 * symfile.c (set_initial_language): Use default language for lookup.
14318
4ebe4877
SM
143192020-02-28 Simon Marchi <simon.marchi@efficios.com>
14320
14321 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
14322 reader variable, pass `this` to read_cutu_die_from_dwo.
14323
e5da1139
AM
143242020-02-27 Aaron Merey <amerey@redhat.com>
14325
14326 * source.c (open_source_file): Check for nullptr when computing
14327 srcpath.
14328
317f7127
TT
143292020-02-27 Tom Tromey <tromey@adacore.com>
14330
14331 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
14332 member.
14333 (dwarf2_add_field): Don't update nfields.
14334 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
14335
3104d9ee
AB
143362020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14337
14338 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
14339 abs.
14340
b83470bf
TT
143412020-02-26 Tom Tromey <tom@tromey.com>
14342
14343 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
14344 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
14345 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
14346 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
14347 per_cu_data.
14348
edfe0a0c
TT
143492020-02-26 Tom Tromey <tom@tromey.com>
14350
14351 * dwarf2/index-write.c (psym_index_map): Change type.
14352 (add_address_entry_worker, write_one_signatured_type)
14353 (recursively_count_psymbols, recursively_write_psymbols)
14354 (class debug_names, psyms_seen_size, write_gdbindex)
14355 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
14356
0d79cdc4
AM
143572020-02-26 Aaron Merey <amerey@redhat.com>
14358
14359 * Makefile.in: Handle optional debuginfod support.
14360 * NEWS: Update.
14361 * README: Add --with-debuginfod summary.
14362 * config.in: Regenerate.
14363 * configure: Regenerate.
14364 * configure.ac: Handle optional debuginfod support.
14365 * debuginfod-support.c: debuginfod helper functions.
14366 * debuginfod-support.h: Ditto.
14367 * doc/gdb.texinfo: Add --with-debuginfod to configure options
14368 summary.
14369 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
14370 when a dwz file cannot be found.
14371 * elfread.c (elf_symfile_read): Query debuginfod servers when a
14372 debuginfo file cannot be found.
14373 * source.c (open_source_file): Query debuginfod servers when a
14374 source file cannot be found.
14375 * top.c (print_gdb_configuration): Include
14376 --{with,without}-debuginfod in the output.
14377
b65ce565
JG
143782020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
14379
14380 * thread.c (thr_try_catch_cmd): Print thread name.
14381
d4c9a4f8
SM
143822020-02-26 Simon Marchi <simon.marchi@efficios.com>
14383
14384 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
14385 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14386 dwarf2_fetch_die_type_sect_off): Move to...
14387 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
14388 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14389 dwarf2_fetch_die_type_sect_off): ... here.
14390 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
14391 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14392 dwarf2_fetch_die_type_sect_off): Move doc to header file.
14393
0dce4280
TV
143942020-02-26 Tom de Vries <tdevries@suse.de>
14395
14396 PR gdb/25603
14397 * symfile.c (set_initial_language): Exit-early if
14398 language_mode == language_mode_manual.
14399
450a1bfc
SM
144002020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
14401
14402 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
14403 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
14404 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
14405
9e80cfa1
AB
144062020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
14407
14408 * gdbtypes.c (create_array_type_with_stride): Handle negative
14409 array strides.
14410 * valarith.c (value_subscripted_rvalue): Likewise.
14411
09624f1f
LM
144122020-02-25 Luis Machado <luis.machado@linaro.org>
14413
14414 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
14415
8cb5117c
SM
144162020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
14417
14418 * loc.h (dwarf2_get_die_type): Move to...
14419 * read.h (dwarf2_get_die_type): ... here.
14420 * read.c (dwarf2_get_die_type): Move doc to header.
14421
c325c44e
JB
144222020-02-25 Joel Brobecker <brobecker@adacore.com>
14423
14424 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
14425 'gnulib/Makefile.in' to the list.
14426
4ac93832
TT
144272020-02-24 Tom Tromey <tom@tromey.com>
14428
14429 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
14430 Remove.
14431 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
14432 XOBNEWVEC.
14433
197400e8
TT
144342020-02-24 Tom Tromey <tom@tromey.com>
14435
14436 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
14437 New method.
14438 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
14439 (dw2_do_instantiate_symtab, dw2_get_file_names)
14440 (build_type_psymtab_dependencies, load_full_type_unit): Update.
14441
76935768
TT
144422020-02-24 Tom Tromey <tom@tromey.com>
14443
14444 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
14445 make_scoped_restore.
14446 (dwarf2_psymtab::read_symtab): Don't clear
14447 reading_partial_symbols.
14448
a88ef40d
TV
144492020-02-24 Tom de Vries <tdevries@suse.de>
14450
14451 PR gdb/25592
14452 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
14453
c9af6521
TV
144542020-02-24 Tom de Vries <tdevries@suse.de>
14455
14456 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
14457 commands layout next/prev/regs.
14458
5707a07a
TT
144592020-02-22 Tom Tromey <tom@tromey.com>
14460
14461 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
14462 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
14463
3b0fb49e
TT
144642020-02-22 Tom Tromey <tom@tromey.com>
14465
14466 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
14467
283be8bf
TT
144682020-02-22 Tom Tromey <tom@tromey.com>
14469
14470 * tui/tui-win.c (_initialize_tui_win): Add usage text.
14471 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
14472 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
14473 * tui/tui.c (_initialize_tui): Add usage text.
14474
ca793b96
TT
144752020-02-22 Tom Tromey <tom@tromey.com>
14476
14477 * tui/tui-win.c (tui_set_focus_command)
14478 (tui_set_win_height_command): Use error_no_arg.
14479 (_initialize_tui_win): Update help text.
14480 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
14481
432b5c40
TT
144822020-02-22 Tom Tromey <tom@tromey.com>
14483
14484 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
14485 * tui/tui-disasm.h (struct tui_disasm_window)
14486 <display_start_addr>: Declare.
14487 * tui/tui-source.h (struct tui_source_window)
14488 <display_start_addr>: Declare.
14489 * tui/tui-winsource.h (struct tui_source_window_base)
14490 <show_source_line, display_start_addr>: New methods.
14491 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
14492 Rename and move to protected section.
14493 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
14494 (tui_source_window_base::do_erase_source_content): Update.
14495 (tui_source_window_base::show_source_line): Now a method.
14496 (tui_source_window_base::show_source_content)
14497 (tui_source_window_base::tui_source_window_base)
14498 (tui_source_window_base::rerender)
14499 (tui_source_window_base::refill)
14500 (tui_source_window_base::do_scroll_horizontal)
14501 (tui_source_window_base::set_is_exec_point_at)
14502 (tui_source_window_base::update_breakpoint_info)
14503 (tui_source_window_base::update_exec_info): Update.
14504 * tui/tui-source.c (tui_source_window::set_contents)
14505 (tui_source_window::showing_source_p)
14506 (tui_source_window::do_scroll_vertical)
14507 (tui_source_window::location_matches_p)
14508 (tui_source_window::line_is_displayed): Update.
14509 (tui_source_window::display_start_addr): New method.
14510 * tui/tui-disasm.c (tui_disasm_window::set_contents)
14511 (tui_disasm_window::do_scroll_vertical)
14512 (tui_disasm_window::location_matches_p): Update.
14513 (tui_disasm_window::display_start_addr): New method.
14514
01b1af32
TT
145152020-02-22 Tom Tromey <tom@tromey.com>
14516
14517 * NEWS: Add entry for gdb.register_window_type.
14518 * tui/tui-layout.h (window_factory): New typedef.
14519 (tui_register_window): Declare.
14520 * tui/tui-layout.c (saved_tui_windows): New global.
14521 (tui_apply_current_layout): Use it.
14522 (tui_register_window): New function.
14523 * python/python.c (do_start_initialization): Call
14524 gdbpy_initialize_tui.
14525 (python_GdbMethods): Add "register_window_type" function.
14526 * python/python-internal.h (gdbpy_register_tui_window)
14527 (gdbpy_initialize_tui): Declare.
14528 * python/py-tui.c: New file.
14529 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
14530
fc96d20b
TT
145312020-02-22 Tom Tromey <tom@tromey.com>
14532
14533 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
14534
935c78c0
TT
145352020-02-22 Tom Tromey <tom@tromey.com>
14536
14537 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
14538 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
14539 * tui/tui-data.c (tui_set_win_with_focus): Remove.
14540 (tui_set_win_focus_to): Move from tui-win.c.
14541
0240c8f1
TT
145422020-02-22 Tom Tromey <tom@tromey.com>
14543
14544 * tui/tui-layout.c (make_standard_window, get_locator_window): New
14545 functions.
14546 (known_window_types): New global.
14547 (tui_get_window_by_name): Reimplement.
14548 (initialize_known_windows): New function.
14549 (validate_window_name): Rewrite.
14550 (_initialize_tui_layout): Call initialize_known_windows.
14551
fdb01f0c
TT
145522020-02-22 Tom Tromey <tom@tromey.com>
14553
14554 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
14555 Remove constants.
14556 * tui/tui-winsource.h (struct tui_source_window_base)
14557 <tui_source_window_base>: Remove parameter.
14558 * tui/tui-winsource.c
14559 (tui_source_window_base::tui_source_window_base): Remove
14560 parameter.
14561 (tui_source_window_base::refill): Update.
14562 * tui/tui-stack.h (struct tui_locator_window)
14563 <tui_locator_window>: Update.
14564 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
14565 Default the constructor.
14566 * tui/tui-regs.h (struct tui_data_item_window)
14567 <tui_data_item_window>: Default the constructor.
14568 (struct tui_data_window) <tui_data_window>: Likewise.
14569 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
14570 Default the constructor.
14571 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
14572 Default the constructor.
14573 <type>: Remove.
14574 (struct tui_win_info) <tui_win_info>: Default the constructor.
14575 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
14576 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
14577 Default the constructor.
14578
865a5aec
TT
145792020-02-22 Tom Tromey <tom@tromey.com>
14580
14581 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
14582 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
14583 * tui/tui-win.c (tui_resize_all): Don't call
14584 tui_delete_invisible_windows.
14585 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
14586 done.
14587 (tui_set_layout): Update.
14588 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
14589 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
14590 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
14591
e098d18c
TT
145922020-02-22 Tom Tromey <tom@tromey.com>
14593
14594 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
14595 correctly.
14596
eb9c8874
TT
145972020-02-22 Tom Tromey <tom@tromey.com>
14598
14599 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
14600
7eed1a8e
TT
146012020-02-22 Tom Tromey <tom@tromey.com>
14602
14603 * tui/tui-winsource.h (struct tui_source_window_iterator)
14604 <inner_iterator>: New etytypedef.
14605 <tui_source_window_iterator>: Take "end" parameter.
14606 <tui_source_window_iterator>: Take iterator.
14607 <operator*, advance>: Update.
14608 <m_iter>: Change type.
14609 <m_end>: New field.
14610 (struct tui_source_windows) <begin, end>: Update.
14611 * tui/tui-layout.c (tui_windows): New global.
14612 (tui_apply_current_layout): Clear tui_windows.
14613 (tui_layout_window::apply): Update tui_windows.
14614 * tui/tui-data.h (tui_windows): Declare.
14615 (all_tui_windows): Now inline function.
14616 (class tui_window_iterator, struct all_tui_windows): Remove.
14617
7c043ba6
TT
146182020-02-22 Tom Tromey <tom@tromey.com>
14619
14620 PR tui/17850:
14621 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
14622 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
14623 "height" argument.
14624 (class tui_layout_window) <get_sizes>: Likewise.
14625 (class tui_layout_split) <tui_layout_split>: Add "vertical"
14626 argument.
14627 <get_sizes>: Add "height" argument.
14628 <m_vertical>: New field.
14629 * tui/tui-layout.c (tui_layout_split::clone): Update.
14630 (tui_layout_split::get_sizes): Add "height" argument.
14631 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
14632 (tui_new_layout_command): Parse "-horizontal".
14633 (_initialize_tui_layout): Update help string.
14634 (tui_layout_split::specification): Add "-horizontal" when needed.
14635 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
14636 argument.
14637 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
14638 New methods.
14639
6bc56648
TT
146402020-02-22 Tom Tromey <tom@tromey.com>
14641
14642 * tui/tui-layout.h (enum tui_adjust_result): New.
14643 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
14644 (class tui_layout_window) <adjust_size>: Return
14645 tui_adjust_result. Rewrite.
14646 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
14647 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
14648
c22fef7e
TT
146492020-02-22 Tom Tromey <tom@tromey.com>
14650
14651 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
14652 parameter and return types.
14653 (class tui_layout_base) <specification>: Add "depth".
14654 (class tui_layout_window) <specification>: Add "depth".
14655 (class tui_layout_split) <specification>: Add "depth".
14656 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
14657 and return types.
14658 (tui_new_layout_command): Parse sub-layouts.
14659 (_initialize_tui_layout): Update help string.
14660 (tui_layout_window::specification): Add "depth".
14661 (add_layout_command): Update.
14662
ee325b61
TT
146632020-02-22 Tom Tromey <tom@tromey.com>
14664
14665 * NEWS: Add "tui new-layout" item.
14666 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
14667 Add new-layout command to help text.
14668 (validate_window_name): New function.
14669 (tui_new_layout_command): New function.
14670 (_initialize_tui_layout): Register "new-layout".
14671 (tui_layout_window::specification): New method.
14672 (tui_layout_window::specification): New method.
14673 * tui/tui-layout.h (class tui_layout_base) <specification>: New
14674 method.
14675 (class tui_layout_window) <specification>: New method.
14676 (class tui_layout_split) <specification>: New method.
14677
416eb92d
TT
146782020-02-22 Tom Tromey <tom@tromey.com>
14679
14680 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
14681 * tui/tui-win.c (window_name_completer): Update comment.
14682 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
14683 Declare method.
14684 (class tui_layout_window) <replace_window>: Likewise.
14685 (class tui_layout_split) <replace_window>: Likewise.
14686 (tui_set_layout): Don't declare.
14687 (tui_set_initial_layout): Declare function.
14688 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
14689 (asm_regs_layout): New globals.
14690 (tui_current_layout, show_layout): Remove.
14691 (tui_set_layout, tui_add_win_to_layout): Rewrite.
14692 (find_layout, tui_apply_layout): New function.
14693 (layout_completer): Remove.
14694 (tui_next_layout): Reimplement.
14695 (tui_next_layout_command): New function.
14696 (tui_set_initial_layout, tui_prev_layout_command): New functions.
14697 (tui_regs_layout): Reimplement.
14698 (tui_regs_layout_command): New function.
14699 (extract_display_start_addr): Rewrite.
14700 (next_layout, prev_layout): Remove.
14701 (tui_layout_window::replace_window): New method.
14702 (tui_layout_split::replace_window): New method.
14703 (destroy_layout): New function.
14704 (layout_list): New global.
14705 (add_layout_command): New function.
14706 (initialize_layouts): Update.
14707 (tui_layout_command): New function.
14708 (_initialize_tui_layout): Install "layout" commands.
14709 * tui/tui-data.h (enum tui_layout_type): Remove.
14710 (tui_current_layout): Don't declare.
14711
0dbc2fc7
TT
147122020-02-22 Tom Tromey <tom@tromey.com>
14713
14714 * tui/tui-regs.c (tui_reg_layout): Remove.
14715 (tui_reg_command): Use tui_regs_layout.
14716 * tui/tui-layout.h (tui_reg_command): Declare.
14717 * tui/tui-layout.c (tui_reg_command): New function.
14718
5afe342e
TT
147192020-02-22 Tom Tromey <tom@tromey.com>
14720
14721 * tui/tui.c (tui_rl_delete_other_windows): Call
14722 tui_remove_some_windows.
14723 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
14724 Declare method.
14725 (class tui_layout_window) <remove_windows>: New method.
14726 (class tui_layout_split) <remove_windows>: Declare.
14727 (tui_remove_some_windows): Declare.
14728 * tui/tui-layout.c (tui_remove_some_windows): New function.
14729 (tui_layout_split::remove_windows): New method.
14730
427326a8
TT
147312020-02-22 Tom Tromey <tom@tromey.com>
14732
14733 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
14734 * tui/tui-layout.h (tui_next_layout): Declare.
14735 * tui/tui-layout.c (tui_next_layout): New function.
14736
3fe12b6d
TT
147372020-02-22 Tom Tromey <tom@tromey.com>
14738
14739 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
14740 correct coordinates.
14741
59b8b5d2
TT
147422020-02-22 Tom Tromey <tom@tromey.com>
14743
14744 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
14745 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
14746 DATA_WIN case.
14747
2a3d458b
TT
147482020-02-22 Tom Tromey <tom@tromey.com>
14749
14750 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
14751 TUI_DISASM_WIN, not tui_win_list.
14752
3f0cbb04
TT
147532020-02-22 Tom Tromey <tom@tromey.com>
14754
14755 * valprint.c (generic_val_print_enum_1)
14756 (val_print_type_code_flags): Style member names.
14757 * rust-lang.c (val_print_struct, rust_print_enum)
14758 (rust_print_struct_def, rust_internal_print_type): Style member
14759 names.
14760 * p-valprint.c (pascal_object_print_value_fields): Style member
14761 names. Only call fprintf_symbol_filtered for static members.
14762 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
14763 * f-valprint.c (f_val_print): Style member names.
14764 * f-typeprint.c (f_type_print_base): Style member names.
14765 * cp-valprint.c (cp_print_value_fields): Style member names. Only
14766 call fprintf_symbol_filtered for static members.
14767 (cp_print_class_member): Style member names.
14768 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
14769 member names.
14770 * ada-valprint.c (ada_print_scalar): Style enum names.
14771 (ada_val_print_enum): Likewise.
14772 * ada-typeprint.c (print_enum_type): Style enum names.
14773
d4d947ae
TT
147742020-02-21 Tom Tromey <tom@tromey.com>
14775
14776 * psympriv.h (struct partial_symtab): Update comment.
14777
e94e944b
TT
147782020-02-21 Tom Tromey <tromey@adacore.com>
14779
14780 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
14781 type is CORE_ADDR.
14782
1eb73179
TV
147832020-02-21 Tom de Vries <tdevries@suse.de>
14784
14785 PR gdb/25534
14786 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
14787 if dependencies[i]->user != NULL.
14788
4f180d53
AT
147892020-02-21 Ali Tamur <tamur@google.com>
14790
14791 * dwarf2/read.c (dwarf2_name): Add null check.
14792
22b6cd70
TT
147932020-02-20 Tom Tromey <tom@tromey.com>
14794
14795 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
14796 ">=", in binary search.
14797 (dwarf2_find_containing_comp_unit): New overload.
14798 (run_test): New self-test.
14799 (_initialize_dwarf2_read): Register new test.
14800
bd0cf5a6
NC
148012020-02-20 Nelson Chu <nelson.chu@sifive.com>
14802
14803 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
14804 * riscv-tdep.h: Likewise.
14805 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
14806 rv32-only CSR.
14807 * features/riscv/64bit-csr.xml: Regenerated.
14808
3f702acd
SDJ
148092020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
14810 Tom Tromey <tom@tromey.com>
14811
14812 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
14813 of 'fputc_unfiltered'.
14814 (putchar_unfiltered): Call 'fputc_unfiltered'.
14815 (fputc_unfiltered): Call 'fputs_unfiltered'.
14816
d13c7322
AB
148172020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
14818
14819 * config.in: Regenerate.
14820 * configure: Regenerate.
14821 * configure.ac: Add --with-python-libdir option.
14822 * main.c: Use WITH_PYTHON_LIBDIR.
14823
869d8950
TT
148242020-02-19 Tom Tromey <tom@tromey.com>
14825
14826 * symtab.c (general_symbol_info::compute_and_set_names): Use
14827 obstack_strndup. Simplify call to symbol_set_demangled_name.
14828
298e9637
SM
148292020-02-19 Simon Marchi <simon.marchi@efficios.com>
14830
14831 * dwarf2/read.c (allocate_signatured_type_table,
14832 allocate_dwo_unit_table, allocate_type_unit_groups_table,
14833 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
14834 Remove objfile parameter, update all callers.
14835
08410482
DE
148362020-02-19 Doug Evans <dje@google.com>
14837
14838 PR rust/25535
14839 * rust-lang.c (rust_print_enum): Apply embedded_offset to
14840 rust_enum_variant calculation.
14841
dfdeeca1
TT
148422020-02-19 Tom Tromey <tromey@adacore.com>
14843
14844 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
14845
2ef5453b
TT
148462020-02-19 Tom Tromey <tromey@adacore.com>
14847
14848 * ada-lang.c (cache_symbol): Use obstack_strdup.
14849
9f1528a1
AB
148502020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
14851
14852 * configure: Regenerate.
14853
d3c22fa8
TT
148542020-02-19 Tom Tromey <tromey@adacore.com>
14855
14856 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
14857 NULL check.
14858
bf84f706
MR
148592020-02-19 Maciej W. Rozycki <macro@wdc.com>
14860
14861 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
14862
d1c9b20f
AB
148632020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
14864
14865 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
14866 if GDBSERVER is not defined.
14867 (riscv_tdesc_cache): Likewise, also store const target_desc.
14868 (STATIC_IN_GDB): Define.
14869 (riscv_create_target_description): Update declaration with
14870 STATIC_IN_GDB.
14871 (riscv_lookup_target_description): New function, only define if
14872 GDBSERVER is not defined.
14873 * arch/riscv.h (riscv_create_target_description): Declare only
14874 when GDBSERVER is defined.
14875 (riscv_lookup_target_description): New declaration when GDBSERVER
14876 is not defined.
14877 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
14878 (riscv_linux_read_features): ...this, and return
14879 riscv_gdbarch_features instead of target_desc.
14880 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
14881 (riscv_linux_read_description): Rename to...
14882 (riscv_linux_read_features): ...this.
14883 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
14884 Update to use riscv_gdbarch_features and
14885 riscv_lookup_target_description.
14886 * riscv-tdep.c (riscv_find_default_target_description): Use
14887 riscv_lookup_target_description instead of
14888 riscv_create_target_description.
14889
373d7ac0
SM
148902020-02-18 Simon Marchi <simon.marchi@efficios.com>
14891
14892 * valprint.c (generic_val_print_enum_1): When printing a flag
14893 enum with value 0 and there is no enumerator with value 0, print
14894 just "0" instead of "(unknown: 0x0)".
14895
b29a2df0
SM
148962020-02-18 Simon Marchi <simon.marchi@efficios.com>
14897
14898 * valprint.c (generic_val_print_enum_1): Print unknown part of
14899 flag enum in hex.
14900
6740f0cc
SM
149012020-02-18 Simon Marchi <simon.marchi@efficios.com>
14902
14903 * dwarf2/read.c (update_enumeration_type_from_children): Allow
14904 flag enums to contain duplicate enumerators.
14905 * valprint.c (generic_val_print_enum_1): Update comment.
14906
edd45eb0
SM
149072020-02-18 Simon Marchi <simon.marchi@efficios.com>
14908
14909 * dwarf2/read.c: Include "count-one-bits.h".
14910 (update_enumeration_type_from_children): If an enumerator has
14911 multiple bits set, don't treat the enumeration as a "flag enum".
14912 * valprint.c (generic_val_print_enum_1): Assert that enumerators
14913 of flag enums have 0 or 1 bit set.
14914
6d0cf446
BE
149152020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
14916
14917 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
14918 conversion.
14919 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14920 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
14921 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14922 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
14923 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14924
7001c1b7
SM
149252020-02-18 Simon Marchi <simon.marchi@efficios.com>
14926
14927 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
14928
fdb61c6c
SM
149292020-02-14 Simon Marchi <simon.marchi@efficios.com>
14930
14931 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
14932 displaced_step_closure_up.
14933 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
14934 (struct displaced_step_closure_up):
14935 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14936 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
14937 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
14938 Likewise.
14939 * gdbarch.sh (displaced_step_copy_insn): Likewise.
14940 * gdbarch.c, gdbarch.h: Re-generate.
14941 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
14942 displaced_step_closure_up.
14943 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14944 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
14945 * infrun.h (displaced_step_closure_up): New type alias.
14946 (struct displaced_step_inferior_state) <step_closure>: Change
14947 type to displaced_step_closure_up.
14948 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
14949 displaced_step_closure_up.
14950 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14951
a4a38eb4
TT
149522020-02-14 Tom Tromey <tom@tromey.com>
14953
14954 * minidebug.c (gnu_debug_key): New global.
14955 (find_separate_debug_file_in_section): Use it.
14956
e8217e61
SM
149572020-02-14 Simon Marchi <simon.marchi@efficios.com>
14958
14959 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
14960 std::unique_ptr.
14961 * gdbarch.c: Re-generate.
14962 * gdbarch.h: Re-generate.
14963 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
14964 change.
14965 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
14966 type to std::unique_ptr.
14967 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
14968 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14969 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
14970 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
14971 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
14972 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14973 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
14974 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
14975 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14976
d8d83535
SM
149772020-02-14 Simon Marchi <simon.marchi@efficios.com>
14978
14979 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
14980 std::unique_ptr.
14981 (displaced_step_clear): Rename to...
14982 (displaced_step_reset): ... this. Just call displaced->reset ().
14983 (displaced_step_clear_cleanup): Rename to...
14984 (displaced_step_reset_cleanup): ... this.
14985 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
14986 (displaced_step_fixup): Likewise.
14987 (resume_1): Likewise.
14988 (handle_inferior_event): Restore child's memory before calling
14989 displaced_step_fixup on the parent.
14990 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
14991 to std::unique_ptr.
14992 <step_closure>: Change type to std::unique_ptr.
14993
5f661e03
SM
149942020-02-14 Simon Marchi <simon.marchi@efficios.com>
14995
14996 * arm-tdep.c: Include count-one-bits.h.
14997 (cleanup_block_store_pc): Use count_one_bits.
14998 (cleanup_block_load_pc): Use count_one_bits.
14999 (arm_copy_block_xfer): Use count_one_bits.
15000 (thumb2_copy_block_xfer): Use count_one_bits.
15001 (thumb_copy_pop_pc_16bit): Use count_one_bits.
15002 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
15003 (thumb_get_next_pcs_raw): Use count_one_bits.
15004 (arm_get_next_pcs_raw): Use count_one_bits_l.
15005 * arch/arm.c (bitcount): Remove.
15006 * arch/arm.h (bitcount): Remove.
15007
8084e579
TT
150082020-02-14 Tom Tromey <tromey@adacore.com>
15009
15010 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
15011 Update.
15012 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
15013 * dwarf2/loc.c (call_site_find_chain_1): Return
15014 unique_xmalloc_ptr.
15015 (call_site_find_chain): Likewise.
15016
258bf0ee
RB
150172020-02-14 Richard Biener <rguenther@suse.de>
15018
15019 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
15020 on expression with division operators.
15021
f98a8458
AKS
150222020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
15023
15024 * MAINTAINERS (Write After Approval): Adding myself.
15025
d1437c0e
TT
150262020-02-12 Tom Tromey <tom@tromey.com>
15027
15028 * event-loop.c (event_data, gdb_event, event_handler_func):
15029 Remove.
15030
3d4560f7
TT
150312020-02-12 Tom Tromey <tom@tromey.com>
15032
15033 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
15034 (dwarf2_frame_objfile_data): Add comment.
15035 (find_comp_unit, set_comp_unit): New functions.
15036 (dwarf2_frame_find_fde): Use find_comp_unit.
15037 (dwarf2_build_frame_info): Use set_comp_unit.
15038
21982304
TT
150392020-02-12 Tom Tromey <tom@tromey.com>
15040
15041 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
15042 (comp_unit): Don't initialize objfile.
15043 (execute_cfa_program): Add text_offset parameter.
15044 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
15045 (dwarf2_frame_cache): Update.
15046 (dwarf2_build_frame_info): Don't set "objfile" member.
15047
4debb237
TT
150482020-02-12 Tom Tromey <tom@tromey.com>
15049
15050 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
15051 (decode_frame_entry): Likewise.
15052 (dwarf2_build_frame_info): Update.
15053
0d404d44
TT
150542020-02-12 Tom Tromey <tom@tromey.com>
15055
15056 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
15057 (decode_frame_entry_1): Use the comp_unit obstack.
15058
a7a3ae5c
TT
150592020-02-12 Tom Tromey <tom@tromey.com>
15060
15061 * dwarf2/frame.c (struct comp_unit): Add initializers and
15062 constructor.
15063 (dwarf2_frame_objfile_data): Store a comp_unit.
15064 (dwarf2_frame_find_fde): Update.
15065 (dwarf2_build_frame_info): Use "new".
15066
a9d65418
TT
150672020-02-12 Tom Tromey <tom@tromey.com>
15068
15069 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
15070 (dwarf2_fde_table): Typedef for std::vector.
15071 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
15072 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
15073 (decode_frame_entry): Update.
15074 (dwarf2_build_frame_info): Use "new".
15075
7559c217
CB
150762020-02-12 Christian Biesinger <cbiesinger@google.com>
15077
15078 * arm-tdep.c (arm_gdbarch_init): Update.
15079 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
15080 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
15081 have_neon, is_m>: Change to bool.
15082
aeefc73c
CB
150832020-02-12 Christian Biesinger <cbiesinger@google.com>
15084
15085 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
15086
d27b8e5f
TT
150872020-02-12 Tom Tromey <tom@tromey.com>
15088
15089 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
15090
cd5900f3
HD
150912020-02-12 Hannes Domani <ssbssa@yahoo.de>
15092
15093 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
15094 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
15095
f056b22b
TT
150962020-02-11 Tom Tromey <tom@tromey.com>
15097
15098 * psymtab.h: Update comment.
15099
f92ff6b5
TT
151002020-02-11 Tom Tromey <tom@tromey.com>
15101
15102 * gdb_obstack.h (struct auto_obstack): Use
15103 DISABLE_COPY_AND_ASSIGN.
15104
3fd6912b
TT
151052020-02-11 Tom Tromey <tom@tromey.com>
15106
15107 * dwarf2/frame.h (struct objfile): Don't forward declare.
15108
69ed9b74
CB
151092020-02-11 Christian Biesinger <cbiesinger@google.com>
15110
15111 * cris-tdep.c (cris_supply_gregset): Change signature to match
15112 what struct regset expects.
15113 (cris_regset): New struct.
15114 (fetch_core_registers): Remove.
15115 (cris_iterate_over_regset_sections): New function.
15116 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
15117 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
15118
bda874f6
CB
151192020-02-11 Christian Biesinger <cbiesinger@google.com>
15120
15121 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
15122 registers.
15123
754e1564
CB
151242020-02-11 Christian Biesinger <cbiesinger@google.com>
15125
15126 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
15127
8ddd8e0e
SM
151282020-02-11 Simon Marchi <simon.marchi@efficios.com>
15129
15130 * configure: Re-generate.
15131
898e7f60
SM
151322020-02-11 Simon Marchi <simon.marchi@efficios.com>
15133
15134 * configure: Re-generate.
15135
58df732b
SM
151362020-02-11 Simon Marchi <simon.marchi@efficios.com>
15137
15138 * acinclude: Update warning.m4 path.
15139 * warning.m4: Move to gdbsupport.
15140
da5bd37e
TT
151412020-02-11 Tom Tromey <tromey@adacore.com>
15142
15143 * remote.c (remote_console_output): Update.
15144 * printcmd.c (printf_command): Update.
15145 * event-loop.c (gdb_wait_for_event): Update.
15146 * linux-nat.c (sigchld_handler): Update.
15147 * remote-sim.c (gdb_os_write_stdout): Update.
15148 (gdb_os_flush_stdout): Update.
15149 (gdb_os_flush_stderr): Update.
15150 (gdb_os_write_stderr): Update.
15151 * exceptions.c (print_exception): Update.
15152 * remote-fileio.c (remote_fileio_func_read): Update.
15153 (remote_fileio_func_write): Update.
15154 * tui/tui.c (tui_enable): Update.
15155 * tui/tui-interp.c (tui_interp::init): Update.
15156 * utils.c (init_page_info): Update.
15157 (putchar_unfiltered, fputc_unfiltered): Update.
15158 (gdb_flush): Update.
15159 (emit_style_escape): Update.
15160 (flush_wrap_buffer, fputs_maybe_filtered): Update.
15161 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
15162 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
15163 (stderr_file::write): Update.
15164 (stderr_file::puts): Update.
15165 * ui-file.h (ui_file_isatty, ui_file_write)
15166 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
15167 (ui_file_puts): Don't declare.
15168
85f0dd3c
TV
151692020-02-10 Tom de Vries <tdevries@suse.de>
15170
15171 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
15172 sentinel to char *.
15173
2e927613
TV
151742020-02-09 Tom de Vries <tdevries@suse.de>
15175
15176 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
15177 filename if it matches "<artificial>".
15178
6bafc845
HD
151792020-02-09 Hannes Domani <ssbssa@yahoo.de>
15180
15181 * windows-tdep.c (struct enum_value_name): New struct.
15182 (create_enum): New function.
15183 (windows_get_siginfo_type): Create and use enum types.
15184
7928d571
HD
151852020-02-09 Hannes Domani <ssbssa@yahoo.de>
15186
15187 * NEWS: Mention $_siginfo support for Windows.
15188 * windows-nat.c (handle_exception): Set siginfo_er.
15189 (windows_nat_target::mourn_inferior): Reset siginfo_er.
15190 (windows_xfer_siginfo): New function.
15191 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
15192 * windows-tdep.c (struct windows_gdbarch_data): New struct.
15193 (init_windows_gdbarch_data): New function.
15194 (get_windows_gdbarch_data): New function.
15195 (windows_get_siginfo_type): New function.
15196 (windows_init_abi): Register windows_get_siginfo_type.
15197 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
15198
6751ebae
TT
151992020-02-08 Tom Tromey <tom@tromey.com>
15200
15201 * dwarf2/read.c (class cutu_reader) <cutu_reader,
15202 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
15203 <keep>: Declare method.
15204 <m_keep>: Remove member.
15205 <~cutu_reader>: Remove.
15206 (cutu_reader::init_tu_and_read_dwo_dies): Update.
15207 (cutu_reader::cutu_reader): Update.
15208 (cutu_reader::keep): Rename from ~cutu_reader.
15209 (process_psymtab_comp_unit, build_type_psymtabs_1)
15210 (process_skeletonless_type_unit, load_partial_comp_unit)
15211 (load_full_comp_unit, dwarf2_read_addr_index)
15212 (read_signatured_type): Update.
15213
135f5437
TT
152142020-02-08 Tom Tromey <tom@tromey.com>
15215
15216 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
15217 "want_partial_unit" parameter.
15218 (process_psymtab_comp_unit): Change want_partial_unit to bool.
15219 Inline check for DW_TAG_partial_unit.
15220 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
15221
9f66ff1c
TT
152222020-02-08 Tom Tromey <tom@tromey.com>
15223
15224 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
15225 read.c.
15226 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
15227 read.c.
15228
c8a7a66f
TT
152292020-02-08 Tom Tromey <tom@tromey.com>
15230
15231 * dwarf2/read.c (read_address): Move to comp-unit.c.
15232 (dwarf2_rnglists_process, dwarf2_ranges_process)
15233 (read_attribute_value, dwarf_decode_lines_1)
15234 (var_decode_location, decode_locdesc): Update.
15235 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
15236 read.c. Remove "cu" parameter.
15237 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
15238 method.
15239
8266302d
TT
152402020-02-08 Tom Tromey <tom@tromey.com>
15241
15242 * dwarf2/read.c (read_attribute_value, read_indirect_string)
15243 (read_indirect_line_string): Update.
15244 * dwarf2/comp-unit.c (read_offset): Remove.
15245 (read_comp_unit_head): Update.
15246 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
15247 method.
15248 (read_offset): Don't declare.
15249
4057dfde
TT
152502020-02-08 Tom Tromey <tom@tromey.com>
15251
15252 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
15253 * dwarf2/read.c (struct comp_unit_head): Move to
15254 dwarf2/comp-unit.h.
15255 (enum class rcuh_kind): Move to comp-unit.h.
15256 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
15257 (read_comp_unit_head, error_check_comp_unit_head)
15258 (read_and_check_comp_unit_head): Move to comp-unit.c.
15259 (read_offset, dwarf_unit_type_name): Likewise.
15260 (create_debug_type_hash_table, read_cutu_die_from_dwo)
15261 (cutu_reader::cutu_reader, read_call_site_scope)
15262 (find_partial_die, follow_die_offset): Update.
15263 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
15264
24aa364d
TT
152652020-02-08 Tom Tromey <tom@tromey.com>
15266
15267 * dwarf2/read.c (read_offset_1): Move to leb.c.
15268 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
15269 (dwarf_decode_macro_bytes): Update.
15270 * dwarf2/leb.c (read_offset): Rename; move from read.c.
15271 * dwarf2/leb.h (read_offset): Declare.
15272
2c7d5afc
TT
152732020-02-08 Tom Tromey <tom@tromey.com>
15274
15275 * dwarf2/read.c (dwarf2_section_size): Remove.
15276 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
15277 Update.
15278 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
15279
4075cb26
TT
152802020-02-08 Tom Tromey <tom@tromey.com>
15281
15282 * dwarf2/read.c (read_initial_length): Move to leb.c.
15283 * dwarf2/leb.h (read_initial_length): Declare.
15284 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
15285 handle_nonstd parameter.
15286 * dwarf2/frame.c (read_initial_length): Remove.
15287 (decode_frame_entry_1): Update.
15288
09ba997f
TT
152892020-02-08 Tom Tromey <tom@tromey.com>
15290
15291 * dwarf2/loc.c (dwarf2_find_location_expression)
15292 (dwarf_evaluate_loc_desc::get_tls_address)
15293 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
15294 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
15295 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
15296 (dwarf2_compile_property_to_c)
15297 (dwarf2_loc_desc_get_symbol_read_needs)
15298 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
15299 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
15300 (loclist_describe_location, loclist_tracepoint_var_ref)
15301 (loclist_generate_c_location): Update.
15302 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
15303 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
15304 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
15305 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
15306 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
15307 (dwarf2_per_cu_data::addr_size)
15308 (dwarf2_per_cu_data::ref_addr_size)
15309 (dwarf2_per_cu_data::text_offset)
15310 (dwarf2_per_cu_data::addr_type): Now methods.
15311 (per_cu_header_read_in): Make per_cu "const".
15312 (dwarf2_version): Remove.
15313 (dwarf2_per_cu_data::int_type): Now a method.
15314 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
15315 (set_die_type, read_array_type, read_subrange_index_type)
15316 (read_tag_string_type, read_subrange_type): Update.
15317 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
15318 offset_size, ref_addr_size, text_offset, addr_type, version,
15319 objfile, int_type, addr_sized_int_type>: Declare methods.
15320
96c738c0
TT
153212020-02-08 Tom Tromey <tom@tromey.com>
15322
15323 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
15324 Move earlier.
15325
8fdd972c
TT
153262020-02-08 Tom Tromey <tom@tromey.com>
15327
15328 * dwarf2/read.h (dwarf_line_debug): Declare.
15329 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
15330 * dwarf2/read.c: Move line_header code to new files.
15331 (dwarf_line_debug): No longer static.
15332 * dwarf2/line-header.c: New file.
15333 * dwarf2/line-header.h: New file.
15334
03075812
TT
153352020-02-08 Tom Tromey <tom@tromey.com>
15336
15337 * dwarf2/read.c (struct line_header) <file_full_name,
15338 file_file_name>: Return unique_xmalloc_ptr.
15339 (line_header::file_file_name): Update.
15340 (line_header::file_full_name): Update.
15341 (dw2_get_file_names_reader): Update.
15342 (macro_start_file): Update.
15343
bb822404
TT
153442020-02-08 Tom Tromey <tom@tromey.com>
15345
15346 * dwarf2/read.c (struct line_header) <file_full_name,
15347 file_file_name>: Declare methods.
15348 (dw2_get_file_names_reader): Update.
15349 (file_file_name): Now a method.
15350 (file_full_name): Likewise.
15351 (macro_start_file): Update.
15352
009b64fc
TT
153532020-02-08 Tom Tromey <tom@tromey.com>
15354
15355 * dwarf2/read.c (dwarf_always_disassemble)
15356 (show_dwarf_always_disassemble): Move to loc.c.
15357 (_initialize_dwarf2_read): Move "always-disassemble" registration
15358 to loc.c.
15359 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
15360 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
15361 static.
15362 (show_dwarf_always_disassemble): Move from read.c.
15363 (_initialize_dwarf2loc): Move always-disassemble from read.c.
15364
5895093f
TT
153652020-02-08 Tom Tromey <tom@tromey.com>
15366
15367 * dwarf2/read.c (~dwarf2_per_objfile): Update.
15368 (create_quick_file_names_table): Return htab_up.
15369 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
15370 Update.
15371 * dwarf2/read.h (struct dwarf2_per_objfile)
15372 <quick_file_names_table>: Now htab_up.
15373
b3b32279
TT
153742020-02-08 Tom Tromey <tom@tromey.com>
15375
15376 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
15377
1d33d811
TT
153782020-02-08 Tom Tromey <tom@tromey.com>
15379
15380 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
15381 Rewrite.
15382 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
15383 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
15384 (abbrev_table::abbrev_table): No longer inline.
15385 (ABBREV_HASH_SIZE): Remove.
15386 (abbrev_table::m_abbrevs): Now an htab_up.
15387
86de1d91
TT
153882020-02-08 Tom Tromey <tom@tromey.com>
15389
15390 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
15391 (cutu_reader): Update.
15392 (build_type_psymtabs_1): Update.
15393 * dwarf2/abbrev.c (abbrev_table::read): Rename.
15394 (abbrev_table::alloc_abbrev): Update.
15395 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
15396 (abbrev_table::read): New static method, renamed from
15397 abbrev_table_read_table.
15398 (abbrev_table::alloc_abbrev)
15399 (abbrev_table::add_abbrev): Now private.
15400 (abbrev_table::abbrev_table): Now private.
15401 (abbrev_table::m_abbrev_obstack): Now private. Rename.
15402
0335378b
TT
154032020-02-08 Tom Tromey <tom@tromey.com>
15404
15405 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
15406 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
15407 htab_up.
15408
48b490f2
TT
154092020-02-08 Tom Tromey <tom@tromey.com>
15410
15411 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
15412 htab_up.
15413 (lookup_dwo_unit_in_dwp): Update.
15414 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
15415 on obstack.
15416
bc68fb19
TT
154172020-02-08 Tom Tromey <tom@tromey.com>
15418
15419 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
15420 obstack.
15421
d15acc42
TT
154222020-02-08 Tom Tromey <tom@tromey.com>
15423
15424 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
15425 line_header_hash.
15426 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
15427 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
15428 Change type to htab_up.
15429
eaa5fa8b
TT
154302020-02-08 Tom Tromey <tom@tromey.com>
15431
15432 * dwarf2/read.c (allocate_type_unit_groups_table): Return
15433 htab_up. Don't allocate on obstack.
15434 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
15435 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
15436 Change type to htab_up.
15437
b0b6a987
TT
154382020-02-08 Tom Tromey <tom@tromey.com>
15439
15440 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
15441 Change type to htab_up.
15442 * dwarf2/read.c (create_signatured_type_table_from_index)
15443 (create_signatured_type_table_from_debug_names)
15444 (create_all_type_units, add_type_unit)
15445 (lookup_dwo_signatured_type, lookup_signatured_type)
15446 (process_skeletonless_type_unit): Update.
15447 (create_debug_type_hash_table, create_debug_types_hash_table):
15448 Change type of types_htab.
15449 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
15450 htab_up. Don't allocate on obstack.
15451 (create_cus_hash_table): Change type of cus_htab parameter.
15452 (struct dwo_file) <cus, tus>: Now htab_up.
15453 (lookup_dwo_signatured_type, lookup_dwo_cutu)
15454 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
15455 (queue_and_load_all_dwo_tus): Update.
15456 * dwarf2/index-write.c (write_gdbindex): Update.
15457 (write_debug_names): Update.
15458
39856def
TT
154592020-02-08 Tom Tromey <tom@tromey.com>
15460
15461 * dwarf2/read.h (struct dwarf2_queue_item): Move from
15462 dwarf2/read.c. Remove "next" member. Add constructor ntad
15463 destructor.
15464 (struct dwarf2_per_objfile) <queue>: New member.
15465 * dwarf2/read.c (struct dwarf2_queue_item): Move to
15466 dwarf2/read.h.
15467 (dwarf2_queue, dwarf2_queue_tail): Remove.
15468 (class dwarf2_queue_guard): Add parameter to constructor. Use
15469 DISABLE_COPY_AND_ASSIGN.
15470 <m_per_objfile>: New member.
15471 <~dwarf2_queue_guard>: Rewrite.
15472 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
15473 Update.
15474 (~dwarf2_queue_item): New.
15475
3e225074
TT
154762020-02-08 Tom Tromey <tom@tromey.com>
15477
15478 * dwarf2/read.c (struct die_info) <has_children>: New member.
15479 (dw2_get_file_names_reader): Remove has_children.
15480 (dw2_get_file_names): Update.
15481 (read_cutu_die_from_dwo): Remove has_children.
15482 (cutu_reader::init_tu_and_read_dwo_dies)
15483 (cutu_reader::cutu_reader): Update.
15484 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
15485 Remove has_children.
15486 (build_type_psymtabs_1, process_skeletonless_type_unit)
15487 (load_partial_comp_unit, load_full_comp_unit): Update.
15488 (create_dwo_cu_reader): Remove has_children.
15489 (create_cus_hash_table, read_die_and_children): Update.
15490 (read_full_die_1,read_full_die): Remove has_children.
15491 (read_signatured_type): Update.
15492 (class cutu_reader) <has_children>: Remove.
15493
82ca8957
TT
154942020-02-08 Tom Tromey <tom@tromey.com>
15495
15496 * dwarf2/expr.c: Rename from dwarf2expr.c.
15497 * dwarf2/expr.h: Rename from dwarf2expr.h.
15498 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
15499 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
15500 * dwarf2/frame.c: Rename from dwarf2-frame.c.
15501 * dwarf2/frame.h: Rename from dwarf2-frame.h.
15502 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
15503 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
15504 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
15505 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
15506 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
15507 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
15508 * dwarf2/loc.c: Rename from dwarf2loc.c.
15509 * dwarf2/loc.h: Rename from dwarf2loc.h.
15510 * dwarf2/read.c: Rename from dwarf2read.c.
15511 * dwarf2/read.h: Rename from dwarf2read.h.
15512 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
15513 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
15514 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
15515 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
15516 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
15517 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
15518 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
15519 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
15520 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
15521 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
15522 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
15523 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
15524 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
15525 Update.
15526 * Makefile.in (COMMON_SFILES): Update.
15527 (HFILES_NO_SRCDIR): Update.
15528
9e35d499
TT
155292020-02-08 Tom Tromey <tom@tromey.com>
15530
15531 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
15532 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
15533
1eba2311
TT
155342020-02-08 Tom Tromey <tom@tromey.com>
15535
15536 * dwarf2read.h (struct die_info): Don't declare.
15537
e41c2da2
TT
155382020-02-08 Tom Tromey <tom@tromey.com>
15539
15540 * dwarf2read.h (die_info_ptr): Remove typedef.
15541
4fc6c0d5
TT
155422020-02-08 Tom Tromey <tom@tromey.com>
15543
15544 * dwarf2read.c (read_call_site_scope)
15545 (handle_data_member_location, dwarf2_add_member_fn)
15546 (mark_common_block_symbol_computed, read_common_block)
15547 (attr_to_dynamic_prop, partial_die_info::read)
15548 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
15549 (dwarf2_symbol_mark_computed, set_die_type): Update.
15550 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
15551 method.
15552 (attr_form_is_block): Don't declare.
15553 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
15554
cd6c91b4
TT
155552020-02-08 Tom Tromey <tom@tromey.com>
15556
15557 * dwarf2read.c (dwarf2_find_base_address, )
15558 (read_call_site_scope, rust_containing_type)
15559 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
15560 (handle_data_member_location, dwarf2_add_member_fn)
15561 (get_alignment, read_structure_type, process_structure_scope)
15562 (mark_common_block_symbol_computed, read_common_block)
15563 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
15564 (partial_die_info::read, read_attribute_value, new_symbol)
15565 (lookup_die_type, dwarf2_get_ref_die_offset)
15566 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
15567 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
15568 (dwarf2_symbol_mark_computed): Update.
15569 * dwarf2/attribute.h (struct attribute) <value_as_address,
15570 form_is_section_offset, form_is_constant, form_is_ref>: Declare
15571 methods.
15572 (value_as_address, attr_form_is_section_offset)
15573 (attr_form_is_constant, attr_form_is_ref): Don't declare.
15574 * dwarf2/attribute.c (attribute::value_as_address)
15575 (attribute::form_is_section_offset, attribute::form_is_constant)
15576 (attribute::form_is_ref): Now methods.
15577
162dce55
TT
155782020-02-08 Tom Tromey <tom@tromey.com>
15579
15580 * dwarf2read.c (struct attribute, DW_STRING)
15581 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
15582 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
15583 (attr_form_is_block, attr_form_is_section_offset)
15584 (attr_form_is_constant, attr_form_is_ref): Move.
15585 * dwarf2/attribute.h: New file.
15586 * dwarf2/attribute.c: New file, from dwarf2read.c.
15587 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
15588
3054dd54
TT
155892020-02-08 Tom Tromey <tom@tromey.com>
15590
15591 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
15592 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
15593 Move.
15594 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
15595 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
15596 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
15597 abbrev.c.
15598 * dwarf2/abbrev.h: New file.
15599 * dwarf2/abbrev.c: New file, from dwarf2read.c.
15600 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
15601
96b79293
TT
156022020-02-08 Tom Tromey <tom@tromey.com>
15603
15604 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
15605 (dwarf2_section_size, dwarf2_get_section_info)
15606 (create_signatured_type_table_from_debug_names)
15607 (create_addrmap_from_aranges, read_debug_names_from_section)
15608 (get_gdb_index_contents_from_section, read_comp_unit_head)
15609 (error_check_comp_unit_head, read_abbrev_offset)
15610 (create_debug_type_hash_table, init_cu_die_reader)
15611 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
15612 (read_comp_units_from_section, create_cus_hash_table)
15613 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
15614 (create_dwp_v2_section, dwarf2_rnglists_process)
15615 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
15616 (abbrev_table_read_table, read_indirect_string_at_offset_from)
15617 (read_indirect_string_from_dwz, read_addr_index_1)
15618 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
15619 (dwarf_decode_macro_bytes, dwarf_decode_macros)
15620 (fill_in_loclist_baton): Update.
15621 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
15622 get_containing_section, get_bfd_owner, get_bfd_section,
15623 get_file_name, get_id, get_flags, empty, read>: Declare methods.
15624 (dwarf2_read_section, get_section_name, get_section_file_name)
15625 (get_containing_section, get_section_bfd_owner)
15626 (get_section_bfd_section, get_section_name, get_section_file_name)
15627 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
15628 declare.
15629 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
15630 (dwarf2_section_info::get_bfd_owner)
15631 (dwarf2_section_info::get_bfd_section)
15632 (dwarf2_section_info::get_name)
15633 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
15634 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
15635 (dwarf2_section_info::read): Now methods.
15636 * dwarf-index-write.c (class debug_names): Update.
15637
2c86cff9
TT
156382020-02-08 Tom Tromey <tom@tromey.com>
15639
15640 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
15641 Move to dwarf2/section.h.
15642 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
15643 (get_section_bfd_section, get_section_name)
15644 (get_section_file_name, get_section_id, get_section_flags)
15645 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
15646 dwarf2/section.c.
15647 * dwarf2/section.h: New file.
15648 * dwarf2/section.c: New file, from dwarf2read.c.
15649 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
15650
f4382c45
TT
156512020-02-08 Tom Tromey <tom@tromey.com>
15652
15653 * dwarf2read.h (read_unsigned_leb128): Don't declare.
15654 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
15655 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
15656 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
15657 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
15658 * dwarf2/leb.h: New file, from dwarf2read.c.
15659 * dwarf2/leb.c: New file, from dwarf2read.c.
15660 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
15661 Remove.
15662 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
15663 (COMMON_SFILES): Add dwarf2/leb.c.
15664
01840b7a
JB
156652020-02-08 Joel Brobecker <brobecker@adacore.com>
15666
15667 GDB 9.1 released.
15668
dfcb27e4
IB
156692020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
15670
15671 PR gdb/25190:
aac66a4c
SM
15672 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
15673 * gdb/remote.c (remote_console_output): Update.
15674 * gdb/ui-file.c (fputs_unfiltered): Rename to...
15675 (ui_file_puts): ...this.
15676 * gdb/ui-file.h (ui_file_puts): Add declaration.
15677 * gdb/utils.c (emit_style_escape): Update.
15678 (flush_wrap_buffer): Update.
15679 (fputs_maybe_filtered): Update.
15680 (fputs_unfiltered): Add function.
dfcb27e4 15681
faa17681
IB
156822020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
15683
aac66a4c
SM
15684 * gdb/event-loop.c (gdb_wait_for_event): Update.
15685 * gdb/printcmd.c (printf_command): Update.
15686 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
15687 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
15688 (gdb_os_flush_stderr): Update.
15689 * gdb/remote.c (remote_console_output): Update.
15690 * gdb/ui-file.c (gdb_flush): Rename to...
15691 (ui_file_flush): ...this.
15692 (stderr_file::write): Update.
15693 (stderr_file::puts): Update.
15694 * gdb/ui-file.h (gdb_flush): Rename to...
15695 (ui_file_flush): ...this.
15696 * gdb/utils.c (gdb_flush): Add function.
15697 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 15698
5abbbe1d
TT
156992020-02-07 Tom Tromey <tromey@adacore.com>
15700
15701 PR breakpoints/24915:
15702 * source.c (find_and_open_source): Do not check basenames_may_differ.
15703
919adfe8
TT
157042020-02-07 Tom Tromey <tom@tromey.com>
15705
15706 * README: Update gdbserver documentation.
15707 * gdbserver: Move to top level.
15708 * configure.tgt (build_gdbserver): Remove.
15709 * configure.ac: Remove --enable-gdbserver.
15710 * configure: Rebuild.
15711 * Makefile.in (distclean): Don't mention gdbserver.
15712
1d5d29e7
SV
157132020-02-06 Shahab Vahedi <shahab@synopsys.com>
15714
15715 * source-cache.c (source_cache::ensure): Surround
15716 get_plain_source_lines with a try/catch.
15717 (source_cache::get_line_charpos): Get rid of try/catch
15718 and only check for the return value of "ensure".
15719 * tui/tui-source.c (tui_source_window::set_contents):
15720 Simplify "nlines" calculation.
15721
6eb1129c
SV
157222020-02-06 Shahab Vahedi <shahab@synopsys.com>
15723
15724 * MAINTAINERS (Write After Approval): Add myself.
15725
c6a42d11
CB
157262020-02-05 Christian Biesinger <cbiesinger@google.com>
15727
15728 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
15729 function call.
15730
c8ecdda6
CB
157312020-02-05 Christian Biesinger <cbiesinger@google.com>
15732
15733 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
15734
f6480e70
MR
157352020-02-05 Maciej W. Rozycki <macro@wdc.com>
15736
15737 * nat/riscv-linux-tdesc.h: New file.
15738 * nat/riscv-linux-tdesc.c: New file, taking code from...
15739 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
15740 ... here.
15741 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
15742 NATDEPFILES.
15743
dcc9fbc6
AB
157442020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
15745
15746 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
15747 we don't set the fake simulator ptid to the null_ptid.
15748
719546c4
SM
157492020-02-03 Simon Marchi <simon.marchi@efficios.com>
15750
15751 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
15752 * gdbthread.h (class thread_info) <resumed>: Likewise.
15753 * infrun.c (resume_1): Likewise.
15754 (proceed): Likewise.
15755 (infrun_thread_stop_requested): Likewise.
15756 (stop_all_threads): Likewise.
15757 (handle_inferior_event): Likewise.
15758 (restart_threads): Likewise.
15759 (finish_step_over): Likewise.
15760 (keep_going_stepped_thread): Likewise.
15761 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
15762 (linux_handle_extended_wait): Likewise.
15763 * record-btrace.c (get_thread_current_frame_id): Likewise.
15764 * record-full.c (record_full_wait_1): Likewise.
15765 * remote.c (remote_target::process_initial_stop_replies): Likewise.
15766 * target.c (target_resume): Likewise.
15767 * thread.c (set_running_thread): Likewise.
15768
e409c542
AKS
157692020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
15770
15771 * f-valprint.c (f77_print_array_1): Changed datatype of index
15772 variable to LONGEST from int to enable it to contain bound
15773 values correctly.
15774
ee98c0da
MR
157752020-02-03 Maciej W. Rozycki <macro@wdc.com>
15776
15777 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
15778 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
15779 offsets according to FLEN determined.
15780 (riscv_linux_nat_target::read_description): Determine FLEN
15781 dynamically.
15782 (riscv_linux_nat_target::fetch_registers): Size regset buffer
15783 according to FLEN determined.
15784 (riscv_linux_nat_target::store_registers): Likewise.
15785
aa66aac4
SV
157862020-02-01 Shahab Vahedi <shahab@synopsys.com>
15787
15788 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
15789 when reg->group is empty and reggroup is not.
15790
fd9faca8
TT
157912020-01-31 Tom Tromey <tromey@adacore.com>
15792
15793 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
15794 Call beneath target's mourn_inferior after unpushing.
15795
42330a68
AB
157962020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
15797
15798 PR tui/9765
15799 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
15800 have enough lines to fill the screen, still return the lowest
15801 address we found.
15802
7a27a45b
AB
158032020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
15804
15805 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
15806 '-', '<', and '>' commands.
15807
c47f70e2
PA
158082020-01-29 Pedro Alves <palves@redhat.com>
15809 Sergio Durigan Junior <sergiodj@redhat.com>
15810
15811 * infcmd.c (construct_inferior_arguments): Assert that
15812 'argc' is greater than 0.
15813
5133a315
LM
158142020-01-29 Luis Machado <luis.machado@linaro.org>
15815
15816 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
15817 (BRK_INSN_MASK): Define to 0xd4200000.
15818 (aarch64_program_breakpoint_here_p): New function.
15819 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
15820 * arch-utils.c (default_program_breakpoint_here_p): Moved from
15821 breakpoint.c.
15822 * arch-utils.h (default_program_breakpoint_here_p): Moved from
15823 breakpoint.h
15824 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
15825 call gdbarch_program_breakpoint_here_p.
15826 (program_breakpoint_here): Moved to arch-utils.c, renamed to
15827 default_program_breakpoint_here_p, changed return type to bool and
15828 simplified.
15829 * breakpoint.h (program_breakpoint_here): Moved prototype to
15830 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
15831 return type to bool.
15832 * gdbarch.c: Regenerate.
15833 * gdbarch.h: Regenerate.
15834 * gdbarch.sh (program_breakpoint_here_p): New method.
15835 * infrun.c (handle_signal_stop): Call
15836 gdbarch_program_breakpoint_here_p.
15837
168f8c6b
TT
158382020-01-26 Tom Tromey <tom@tromey.com>
15839
15840 * ctfread.c (struct ctf_fp_info): Reindent.
15841 (_initialize_ctfread): Remove.
15842
128a391f
TT
158432020-01-26 Tom Tromey <tom@tromey.com>
15844
15845 * psymtab.c (partial_map_expand_apply)
15846 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
15847 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
15848 (psym_print_stats, psym_expand_symtabs_for_function)
15849 (psym_map_symbol_filenames, psym_map_matching_symbols)
15850 (psym_expand_symtabs_matching)
15851 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
15852 (maintenance_check_psymtabs): Use new methods.
15853 * psympriv.h (struct partial_symtab) <readin_p,
15854 get_compunit_symtab>: New methods.
15855 <readin, compunit_symtab>: Remove members.
15856 (struct standard_psymtab): New.
15857 (struct legacy_psymtab): Derive from standard_psymtab.
15858 * dwarf2read.h (struct dwarf2_psymtab): Derive from
15859 standard_psymtab.
15860 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
15861
0494dbec
TT
158622020-01-26 Tom Tromey <tom@tromey.com>
15863
15864 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
15865 read_dependencies. Add assert.
15866 * psymtab.c (partial_symtab::read_dependencies): New method.
15867 * psympriv.h (struct partial_symtab) <read_dependencies>: New
15868 method.
15869 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
15870 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
15871 read_dependencies.
15872 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
15873 Add assert.
15874
8566b89b
TT
158752020-01-26 Tom Tromey <tom@tromey.com>
15876
15877 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
15878 Call expand_psymtab.
15879 (xcoff_read_symtab): Call expand_psymtab.
15880 (xcoff_start_psymtab, xcoff_end_psymtab): Set
15881 legacy_expand_psymtab.
15882 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
15883 method.
15884 (struct legacy_psymtab) <expand_psymtab>: Implement.
15885 <legacy_expand_psymtab>: New member.
15886 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
15887 (parse_partial_symbols): Set legacy_expand_psymtab.
15888 (psymtab_to_symtab_1): Change argument order. Call
15889 expand_psymtab.
15890 (new_psymtab): Set legacy_expand_psymtab.
15891 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
15892 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
15893 expand_psymtab.
15894 (dwarf2_psymtab::expand_psymtab): Rename from
15895 psymtab_to_symtab_1. Call expand_psymtab.
15896 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
15897 (dbx_end_psymtab): Likewise.
15898 (dbx_psymtab_to_symtab_1): Change argument order. Call
15899 expand_psymtab.
15900 (dbx_read_symtab): Call expand_psymtab.
15901 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
15902 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
15903 (ctf_psymtab::read_symtab): Call expand_psymtab.
15904
077cbab2
TT
159052020-01-26 Tom Tromey <tom@tromey.com>
15906
15907 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
15908 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
15909 messages.
15910 * mdebugread.c (mdebug_read_symtab): Remove prints.
15911 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
15912 assert.
15913 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
15914
891813be
TT
159152020-01-26 Tom Tromey <tom@tromey.com>
15916
15917 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
15918 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
15919 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
15920 legacy_symtab.
15921 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
15922 * psymtab.c (psymtab_to_symtab): Call method.
15923 (dump_psymtab): Update.
15924 * psympriv.h (struct partial_symtab): Add virtual destructor.
15925 <read_symtab>: New method.
15926 (struct legacy_symtab): New.
15927 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
15928 (struct pst_map) <pst>: Now a legacy_psymtab.
15929 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
15930 (new_psymtab): Use legacy_psymtab.
15931 * dwarf2read.h (struct dwarf2_psymtab): New.
15932 (struct dwarf2_per_cu_data) <psymtab>: Use it.
15933 * dwarf2read.c (dwarf2_create_include_psymtab)
15934 (dwarf2_build_include_psymtabs, create_type_unit_group)
15935 (create_partial_symtab, process_psymtab_comp_unit_reader)
15936 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
15937 (set_partial_user): Use dwarf2_psymtab.
15938 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
15939 (psymtab_to_symtab_1, process_full_comp_unit)
15940 (process_full_type_unit, dwarf2_ranges_read)
15941 (dwarf2_get_pc_bounds, psymtab_include_file_name)
15942 (dwarf_decode_lines): Use dwarf2_psymtab.
15943 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
15944 (add_address_entry_worker, write_one_signatured_type)
15945 (recursively_count_psymbols, recursively_write_psymbols)
15946 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
15947 (write_debug_names): Likewise.
15948 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
15949 <pst>: Now a legacy_psymtab.
15950 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
15951 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
15952 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
15953 * ctfread.c (struct ctf_psymtab): New.
15954 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
15955 ctf_psymtab.
15956 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
15957 (create_partial_symtab): Return a ctf_psymtab.
15958 (scan_partial_symbols): Update.
15959
c3693a1d
TT
159602020-01-26 Tom Tromey <tom@tromey.com>
15961
15962 * xcoffread.c (xcoff_start_psymtab): Use new.
15963 * psymtab.c (partial_symtab::partial_symtab): New constructor,
15964 renamed from start_psymtab_common.
15965 * psympriv.h (struct partial_symtab): Add new constructor.
15966 (start_psymtab_common): Don't declare.
15967 * mdebugread.c (parse_partial_symbols): Use new.
15968 * dwarf2read.c (create_partial_symtab): Use new.
15969 * dbxread.c (start_psymtab): Use new.
15970 * ctfread.c (create_partial_symtab): Use new.
15971
32caafd0
TT
159722020-01-26 Tom Tromey <tom@tromey.com>
15973
15974 * xcoffread.c (xcoff_end_psymtab): Use new.
15975 * psymtab.c (start_psymtab_common): Use new.
15976 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
15977 Update.
15978 * psympriv.h (struct partial_symtab): Add parameters to
15979 constructor. Don't inline.
15980 (allocate_psymtab): Don't declare.
15981 * mdebugread.c (new_psymtab): Use new.
15982 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
15983 * dbxread.c (dbx_end_psymtab): Use new.
15984
abaa2f23
TT
159852020-01-26 Tom Tromey <tom@tromey.com>
15986
15987 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
15988 allocate_psymtab. Update documentation.
15989 * psymtab.c (psymtab_storage::install_psymtab): Rename from
15990 allocate_psymtab. Do not use new.
15991 (allocate_psymtab): Use new. Update.
15992
6d94535f
TT
159932020-01-26 Tom Tromey <tom@tromey.com>
15994
15995 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
15996 * psymtab.c (psym_print_stats): Update.
15997 * psympriv.h (struct partial_symtab) <readin,
15998 psymtabs_addrmap_supported, anonymous>: Now bool.
15999 * mdebugread.c (psymtab_to_symtab_1): Update.
16000 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
16001 (build_type_psymtabs_reader, psymtab_to_symtab_1)
16002 (process_full_comp_unit, process_full_type_unit): Update.
16003 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
16004 * ctfread.c (psymtab_to_symtab): Update.
16005
6f17252b
TT
160062020-01-26 Tom Tromey <tom@tromey.com>
16007
16008 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
16009 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
16010 * psymtab.c (psymtab_storage): Delete psymtabs.
16011 (psymtab_storage::allocate_psymtab): Use new.
16012 (psymtab_storage::discard_psymtab): Use delete.
16013 * psympriv.h (struct partial_symtab): Add constructor and
16014 initializers.
16015
f6f1cebc
TT
160162020-01-26 Tom Tromey <tom@tromey.com>
16017
16018 * machoread.c: Do not include psympriv.h.
16019
e47e48f6
PW
160202020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16021
16022 * NEWS: Mention the new option and the set/show commands.
16023
a2fedca9
PW
160242020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16025
16026 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
16027 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
16028 (validate_exec_file): New variables, enums, functions.
16029 (exec_file_locate_attach, print_section_info): Style the filenames.
16030 (_initialize_exec): Install show_exec_file_mismatch_command and
16031 set_exec_file_mismatch_command.
16032 * gdbcore.h (validate_exec_file): Declare.
16033 * infcmd.c (attach_command): Call validate_exec_file.
16034 * remote.c ( remote_target::remote_add_inferior): Likewise.
16035
7ffa82e1
AB
160362020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16037
16038 * frame.c (find_frame_sal): Move call to get_next_frame into more
16039 inner scope.
16040 * inline-frame.c (inilne_state) <inline_state>: Update argument
16041 types.
16042 (inilne_state) <skipped_symbol>: Rename to...
16043 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
16044 (skip_inline_frames): Build vector of skipped symbols and use this
16045 to reate the inline_state.
16046 (inline_skipped_symbol): Add a comment and some assertions, fetch
16047 skipped symbol from the list.
16048
3d92a3e3
AB
160492020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16050
16051 * buildsym.c (lte_is_less_than): Delete.
16052 (buildsym_compunit::end_symtab_with_blockvector): Create local
16053 lambda function to sort line table entries, and use
16054 std::stable_sort instead of std::sort.
16055 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
16056 markers when looking for a previous line.
16057
94a72be7
AB
160582020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16059
16060 * dwarf2read.c (lnp_state_machine::record_line): Include
16061 end_sequence parameter in debug print out. Record the line if we
16062 are at an end_sequence marker even if it's not the start of a
16063 statement.
16064 * symmisc.c (maintenance_print_one_line_table): Print end of
16065 sequence markers with 'END' not '0'.
16066
53af73bf
PA
160672020-01-24 Pedro Alves <palves@redhat.com>
16068
16069 PR gdb/25410
16070 * thread.c (scoped_restore_current_thread::restore): Use
16071 switch_to_inferior_no_thread.
16072 * exec.c: Include "progspace-and-thread.h".
16073 (add_target_sections, remove_target_sections):
16074 scoped_restore_current_pspace_and_thread instead of
16075 scoped_restore_current_thread.
16076 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
16077 and aspace to the inferior before calling clone_program_space.
16078 Remove stale comment.
16079
3050c6f4
CB
160802020-01-24 Christian Biesinger <cbiesinger@google.com>
16081
16082 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
16083 (arm_netbsd_nat_target::fetch_registers): ...this.
16084 (arm_nbsd_nat_target::store_registers): Rename to...
16085 (arm_netbsd_nat_target::store_registers): ...this.
16086
73685c7e
CB
160872020-01-24 Christian Biesinger <cbiesinger@google.com>
16088
16089 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
16090 register_t.
16091
89203d40
CB
160922020-01-24 Christian Biesinger <cbiesinger@google.com>
16093
16094 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
16095 Update comment.
16096 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
16097 Likewise.
16098 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
16099 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
16100 the correct replacement (iterate_over_regset_sections).
16101 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
16102 Update comment.
16103
1ba1ac88
AB
161042020-01-24 Graham Markall <graham.markall@embecosm.com>
16105
16106 PR gdb/23718
16107 * gdb/python/python.c (execute_gdb_command): Call
16108 async_enable_stdin in catch block.
16109
f3364a6d
AB
161102020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16111
16112 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
16113 SWITCH_THRU_ALL_UIS.
16114
733d0a67
AB
161152020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16116
16117 PR tui/9765
16118 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
16119 comment, add extra parameter, and update to store previous symbol
16120 when appropriate.
16121 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
16122 add extra parameter.
16123 * tui/tui-disasm.c (tui_disassemble): Update header comment,
16124 remove unneeded parameter, add try/catch around gdb_print_insn,
16125 rewrite to add items to asm_lines vector.
16126 (tui_find_backward_disassembly_start_address): New function.
16127 (tui_find_disassembly_address): Updated throughout.
16128 (tui_disasm_window::set_contents): Update for changes to
16129 tui_disassemble.
16130 (tui_disasm_window::do_scroll_vertical): No need to adjust the
16131 number of lines to scroll.
16132
b3b3bada
SM
161332020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
16134
16135 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
16136 (SECT_OFF_DATA): Likewise.
16137 (SECT_OFF_RODATA): Likewise.
16138 (SECT_OFF_TEXT): Likewise.
16139 (SECT_OFF_BSS): Likewise.
16140 (struct objfile) <text_section_offset, data_section_offset>: New
16141 methods.
16142 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
16143 objfile::text_section_offset.
16144 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
16145 * coffread.c (coff_symtab_read): Likewise.
16146 (enter_linenos): Likewise.
16147 (process_coff_symbol): Likewise.
16148 * ctfread.c (get_objfile_text_range): Likewise.
16149 * dtrace-probe.c (dtrace_probe::get_relocated_address):
16150 Use objfile::data_section_offset.
16151 * dwarf2-frame.c (execute_cfa_program): Use
16152 objfile::text_section_offset.
16153 (dwarf2_frame_find_fde): Likewise.
16154 * dwarf2read.c (create_addrmap_from_index): Likewise.
16155 (create_addrmap_from_aranges): Likewise.
16156 (dw2_find_pc_sect_compunit_symtab): Likewise.
16157 (process_psymtab_comp_unit_reader): Likewise.
16158 (add_partial_symbol): Likewise.
16159 (add_partial_subprogram): Likewise.
16160 (process_full_comp_unit): Likewise.
16161 (read_file_scope): Likewise.
16162 (read_func_scope): Likewise.
16163 (read_lexical_block_scope): Likewise.
16164 (read_call_site_scope): Likewise.
16165 (dwarf2_rnglists_process): Likewise.
16166 (dwarf2_ranges_process): Likewise.
16167 (dwarf2_ranges_read): Likewise.
16168 (dwarf_decode_lines_1): Likewise.
16169 (new_symbol): Likewise.
16170 (dwarf2_fetch_die_loc_sect_off): Likewise.
16171 (dwarf2_per_cu_text_offset): Likewise.
16172 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
16173 * hppa-tdep.c (read_unwind_info): Likewise.
16174 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
16175 * psympriv.h (struct partial_symtab): Likewise.
16176 * psymtab.c (find_pc_sect_psymtab): Likewise.
16177 * solib-svr4.c (enable_break): Likewise.
16178 * stap-probe.c (relocate_address): Use
16179 objfile::data_section_offset.
16180 * xcoffread.c (enter_line_range): Use
16181 objfile::text_section_offset.
16182 (read_xcoff_symtab): Likewise.
16183
ab53f382
SM
161842020-01-23 Simon Marchi <simon.marchi@efficios.com>
16185
16186 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
16187 declaration to narrower scopes.
16188
e7eee665
SM
161892020-01-23 Simon Marchi <simon.marchi@efficios.com>
16190
16191 * darwin-nat.h (struct darwin_exception_msg, enum
16192 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
16193 Move up.
16194 (class darwin_nat_target) <wait_1, check_new_threads,
16195 decode_exception_message, decode_message, stop_inferior,
16196 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
16197 * darwin-nat.c (darwin_check_new_threads): Rename to...
16198 (darwin_nat_target::check_new_threads): ... this.
16199 (darwin_suspend_inferior_it): Remove.
16200 (darwin_decode_exception_message): Rename to...
16201 (darwin_nat_target::decode_exception_message): ... this.
16202 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
16203 (darwin_decode_message): Rename to...
16204 (darwin_nat_target::decode_message): ... this.
16205 (cancel_breakpoint): Rename to...
16206 (darwin_nat_target::cancel_breakpoint): ... this.
16207 (darwin_wait): Rename to...
16208 (darwin_nat_target::wait_1): ... this. Use range-based for loop
16209 instead of iterate_over_inferiors.
16210 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
16211 (darwin_stop_inferior): Rename to...
16212 (darwin_nat_target::stop_inferior): ... this.
16213 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
16214 (darwin_init_thread_list): Rename to...
16215 (darwin_nat_target::init_thread_list): ... this.
16216 (darwin_ptrace_him): Rename to...
16217 (darwin_nat_target::ptrace_him): ... this.
16218 (darwin_nat_target::create_inferior): Pass lambda function to
16219 fork_inferior.
16220 (darwin_nat_target::detach): Call stop_inferior instead of
16221 darwin_stop_inferior.
16222 * fork-inferior.h (fork_inferior): Change init_trace_fun
16223 parameter to gdb::function_view.
16224 * fork-inferior.c (fork_inferior): Likewise.
16225
c162ed3e
HD
162262020-01-23 Hannes Domani <ssbssa@yahoo.de>
16227
16228 * i386-cygwin-tdep.c (core_process_module_section): Update.
16229 * windows-nat.c (struct lm_info_windows): Add text_offset.
16230 (windows_xfer_shared_libraries): Update.
16231 * windows-tdep.c (windows_xfer_shared_library):
16232 Add text_offset_cached argument.
16233 * windows-tdep.h (windows_xfer_shared_library): Update.
16234
a1237872
SM
162352020-01-21 Simon Marchi <simon.marchi@efficios.com>
16236
16237 * gdbarch.sh: Add declaration for _initialize_gdbarch.
16238
b3ee6dd9
SM
162392020-01-21 Simon Marchi <simon.marchi@efficios.com>
16240
16241 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
16242 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
16243 replace with range-based for.
16244 (gdbsim_interrupt_inferior): Remove.
16245 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
16246 with a range-based for. Inline code from
16247 gdbsim_interrupt_inferior.
16248
f9fac3c8
SM
162492020-01-21 Simon Marchi <simon.marchi@efficios.com>
16250
16251 * infrun.c (proceed): Fix indentation.
16252
f6474de9
TT
162532020-01-21 Tom Tromey <tromey@adacore.com>
16254
16255 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
16256 * python/python.c (python_extension_ops): Update.
16257 (gdbpy_colorize): New function.
16258 * python/lib/gdb/__init__.py (colorize): New function.
16259 * extension.h (ext_lang_colorize): Declare.
16260 * extension.c (ext_lang_colorize): New function.
16261 * extension-priv.h (struct extension_language_ops) <colorize>: New
16262 member.
16263 * cli/cli-style.c (_initialize_cli_style): Update help text.
16264
f0c702d4
LM
162652020-01-21 Luis Machado <luis.machado@linaro.org>
16266
16267 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
16268 <cond>: Change type to bool.
16269 (aarch64_displaced_step_b_cond): Update cond to use bool type.
16270 (aarch64_displaced_step_cb): Likewise.
16271 (aarch64_displaced_step_tb): Likewise.
16272
1ab139e5
LM
162732020-01-21 Luis Machado <luis.machado@linaro.org>
16274
16275 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
16276 output.
16277
0c271889
LM
162782020-01-21 Luis Machado <luis.machado@linaro.org>
16279
16280 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
16281 <pc_adjust>: Adjust the documentation.
16282 (aarch64_displaced_step_fixup): Check if PC really moved before
16283 adjusting it.
16284
4d89c1c7
TT
162852020-01-19 Tom Tromey <tom@tromey.com>
16286
16287 * disasm.c (~gdb_disassembler): New destructor.
16288 (gdb_buffered_insn_length): Call disassemble_free_target.
16289 * disasm.h (class gdb_disassembler): Declare destructor. Use
16290 DISABLE_COPY_AND_ASSIGN.
16291
c0ab21c2
TT
162922020-01-19 Tom Tromey <tom@tromey.com>
16293
16294 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
16295 (die_reader_func_ftype): Remove.
16296 (cutu_reader): New class.
16297 (dw2_get_file_names_reader): Remove "data" parameter.
16298 (dw2_get_file_names): Use cutu_reader.
16299 (create_debug_type_hash_table): Update.
16300 (read_cutu_die_from_dwo): Update comment.
16301 (lookup_dwo_unit): Add dwo_name parameter.
16302 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
16303 die_reader_func_ftype and data parameters.
16304 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
16305 Remove die_reader_func_ftype and data parameters.
16306 (~cutu_reader): New; from init_cutu_and_read_dies.
16307 (cutu_reader::cutu_reader): Rename from
16308 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
16309 and data parameters.
16310 (init_cutu_and_read_dies_simple): Remove.
16311 (struct process_psymtab_comp_unit_data): Remove.
16312 (process_psymtab_comp_unit_reader): Remove data parameter; add
16313 want_partial_unit and pretend_language parameters.
16314 (process_psymtab_comp_unit): Use cutu_reader.
16315 (build_type_psymtabs_reader): Remove data parameter.
16316 (build_type_psymtabs_1): Use cutu_reader.
16317 (process_skeletonless_type_unit): Likewise.
16318 (load_partial_comp_unit_reader): Remove.
16319 (load_partial_comp_unit): Use cutu_reader.
16320 (load_full_comp_unit_reader): Remove.
16321 (load_full_comp_unit): Use cutu_reader.
16322 (struct create_dwo_cu_data): Remove.
16323 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
16324 dwo_unit parameters.
16325 (create_cus_hash_table): Use cutu_reader.
16326 (struct dwarf2_read_addr_index_data): Remove.
16327 (dwarf2_read_addr_index_reader): Remove.
16328 (dwarf2_read_addr_index): Use cutu_reader.
16329 (read_signatured_type_reader): Remove.
16330 (read_signatured_type): Use cutu_reader.
16331
45bbae5c
TT
163322020-01-19 Tom Tromey <tom@tromey.com>
16333
16334 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
16335 * tui/tui-wingeneral.h (class tui_suppress_output): New.
16336 (tui_wrefresh): Declare.
16337 * tui/tui-wingeneral.c (suppress_output): New global.
16338 (tui_suppress_output, ~tui_suppress_output): New constructor and
16339 destructor.
16340 (tui_wrefresh): New function.
16341 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
16342 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
16343 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
16344 method.
16345 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
16346 tui_wrefresh.
16347 (tui_data_window::no_refresh): New method.
16348 (tui_data_item_window::refresh_window): Call tui_wrefresh.
16349 (tui_reg_command): Use tui_suppress_output
16350 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
16351 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
16352 method.
16353 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
16354
4f13c1c0
TT
163552020-01-19 Tom Tromey <tom@tromey.com>
16356
16357 * tui/tui-winsource.c (tui_update_source_windows_with_line):
16358 Handle case where symtab is null.
16359
fa47e446
SM
163602020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
16361
16362 * linux-fork.c (one_fork_p): Simplify.
16363
26f42329
SM
163642020-01-17 Simon Marchi <simon.marchi@efficios.com>
16365
16366 * top.c (struct qt_args): Remove.
16367 (kill_or_detach): Change return type to void, replace `void *`
16368 parameter with a proper one.
16369 (print_inferior_quit_action): Likewise.
16370 (quit_confirm): Use range-based for loop to iterate over inferiors.
16371 (quit_force): Likewise.
16372
a9ac81b1
SM
163732020-01-17 Simon Marchi <simon.marchi@efficios.com>
16374
16375 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
16376 `void *` parameter with proper parameters.
16377 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
16378 (print_one_inferior): Change return type to void, replace `void *`
16379 parameter with proper parameters.
16380 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
16381 inferiors.
16382 (get_other_inferior): Remove.
16383 (mi_cmd_remove_inferior): Use range-based loop to iterate over
16384 inferiors.
16385
788eca49
SM
163862020-01-17 Simon Marchi <simon.marchi@efficios.com>
16387
16388 * mi/mi-interp.c (report_initial_inferior): Remove.
16389 (mi_interp::init): Use range-based for to iterate over inferiors.
16390
d9bc85b6
SM
163912020-01-17 Simon Marchi <simon.marchi@efficios.com>
16392
16393 * python/py-inferior.c (build_inferior_list): Remove.
16394 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
16395
40c94099
CB
163962020-01-16 Christian Biesinger <cbiesinger@google.com>
16397
16398 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
16399 (btrace_stitch_trace): Likewise.
16400 * charset.c (intermediate_encoding): Likewise (vaild).
16401 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
16402 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
16403 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
16404
e0cdfe3c
HD
164052020-01-16 Hannes Domani <ssbssa@yahoo.de>
16406
16407 * windows-tdep.c (windows_get_tlb_type):
16408 Add rtl_user_process_parameters type.
16409
790f1718 164102020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 16411 Norbert Lange <nolange79@gmail.com>
790f1718
PA
16412
16413 PR build/24805
16414 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
16415 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
16416 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
16417 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
16418 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
16419 (ps_plog): Redeclare exported functions with default visibility.
16420
3112ed97
NA
164212020-01-16 Nitika Achra <Nitika.Achra@amd.com>
16422
16423 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
16424 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
16425
8dc3273e
SM
164262020-01-15 Simon Marchi <simon.marchi@efficios.com>
16427
16428 * infcmd.c (post_create_inferior): Use get_thread_regcache
16429 instead of get_current_regcache.
16430
ff47f4f0
TT
164312020-01-14 Tom Tromey <tom@tromey.com>
16432
16433 PR symtab/12535:
16434 * python/python.c (gdbpy_decode_line): Treat empty string the same
16435 as no argument.
16436
975f45b7
TT
164372020-01-14 Tom Tromey <tom@tromey.com>
16438
16439 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
16440
25e57356
TT
164412020-01-14 Tom Tromey <tom@tromey.com>
16442
16443 * nat/linux-btrace.c: Don't include <config.h>.
16444 * nat/linux-ptrace.c: Don't include <config.h>.
16445 * nat/x86-linux-dregs.c: Don't include <config.h>.
16446
05ea2a05
TT
164472020-01-14 Tom Tromey <tom@tromey.com>
16448
16449 * configure: Rebuild.
16450 * configure.ac: Move many checks to ../gdbsupport/common.m4.
16451
01027315
TT
164522020-01-14 Tom Tromey <tom@tromey.com>
16453
16454 * nat/x86-linux-dregs.c: Include configh.h.
16455 * nat/linux-ptrace.c: Include configh.h.
16456 * nat/linux-btrace.c: Include configh.h.
16457 * defs.h: Include config.h, bfd.h.
16458 * configure.ac: Don't source common.host.
16459 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
16460 * configure: Rebuild.
16461 * acinclude.m4: Update path.
16462 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
16463 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
16464 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
16465 (CLIBS): Add LIBSUPPORT.
16466 (CDEPS): Likewise.
16467 (COMMON_SFILES): Remove gdbsupport files.
16468 (HFILES_NO_SRCDIR): Likewise.
16469 (stamp-version): Update path to create-version.sh.
16470 (ALLDEPFILES): Remove gdbsupport files.
16471
b2ceabe8
TT
164722020-01-14 Tom Tromey <tom@tromey.com>
16473
16474 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
16475 USE_WIN32API when needed.
16476 * configure.ac (USE_WIN32API): Don't define.
16477 (WIN32LIBS): Use WIN32APILIBS.
16478 * configure: Rebuild.
16479
25c51f71
TT
164802020-01-14 Tom Tromey <tom@tromey.com>
16481
16482 * configure: Rebuild.
16483 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
16484
717c684d
BE
164852020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
16486
16487 * skip.c (skip_function_command): Make skip w/o arguments use the
16488 name of the inlined function if pc is inside any inlined function.
16489
7da6a5b9
LM
164902020-01-14 Luis Machado <luis.machado@linaro.org>
16491
16492 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
16493 * infrun.c (resume_1): Likewise.
16494 (handle_inferior_event): Remove stale comment.
16495 * linux-nat.c (linux_nat_target::resume): Update comments.
16496 (save_stop_reason): Likewise.
16497 (linux_nat_filter_event): Likewise.
16498 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
16499
44e4c775
AB
165002020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
16501
16502 * elfread.c (record_minimal_symbol): Set section index to 0 for
16503 non-allocatable sections.
16504
18a8505e
AT
16505
165062020-01-13 Ali Tamur <tamur@google.com>
16507
16508 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
16509 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
16510 to gdb::optional. Update comments.
16511 (dwo_file): Update comments.
16512 (read_attribute): Update API to take an additional out parameter,
16513 need_reprocess. This is used to mark attributes that need other
16514 attributes (e.g. str_offsets_base) for correct computation which may not
16515 have been read yet.
16516 (read_attribute_reprocess): New function declaration.
16517 (read_addr_index): Likewise.
16518 (read_dwo_str_index): Likewise.
16519 (read_stub_str_index): Likewise.
16520 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
16521 (lookup_addr_base): New function definition.
16522 (lookup_ranges_base): Likewise.
16523 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
16524 lookup_ranges_base.
16525 (init_cutu_and_read_dies): Update comments.
16526 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
16527 unit. This is used to inherit parent's str_offsets_base and addr_base.
16528 Update comments.
16529 (init_cutu_and_read_dies_simple): Reflect API changes.
16530 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
16531 (create_cus_hash_table): Change API to take parent compile unit.
16532 Reflect API changes.
16533 (open_and_init_dwo_file): Reflect API changes.
16534 (dwarf2_get_pc_bounds): Update comments.
16535 (dwarf2_record_block_ranges): Likewise.
16536 (read_full_die_1): Change implementation to reprocess attributes that
16537 need str_offsets_base and addr_base.
16538 (partial_die_info::read): Likewise.
16539 (read_attribute_reprocess): New function definition.
16540 (read_attribute_value): Change API to take an additional out parameter,
16541 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
16542 when a non-dwo compile unit has index based attributes.
16543 (read_attribute): Reflect API changes.
16544 (read_addr_index_1): Reflect API changes. Update comments.
16545 (dwarf2_read_addr_index_data): Reflect API changes.
16546 (dwarf2_read_addr_index): Likewise.
16547 (read_str_index): Change API and implementation. This becomes a helper
16548 to be used by the new string index related methods. Update error
16549 message and comments.
16550 (read_dwo_str_index): New function definition.
16551 (read_stub_str_index): Likewise.
16552 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
16553 * symfile.h (dwarf2_debug_sections): Likewise.
16554 * xcoffread.c (dwarf2_debug_sections): Likewise.
16555
0cac9354
SM
165562020-01-13 Simon Marchi <simon.marchi@efficios.com>
16557
16558 * gdbcore.h (struct core_fns) <core_read_registers>: Change
16559 core_reg_sect type to gdb_byte *.
16560 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
16561 * cris-tdep.c (fetch_core_registers): Likewise.
16562 * corelow.c (core_target::get_core_register_section): Change
16563 type of `contents` to gdb::byte_vector.
16564
9a6d629c
AB
165652020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
16566
16567 * tui/tui-wingeneral.c (box_win): Position the title in the center
16568 of the border.
16569
d8b2f9e3
SM
165702020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16571
16572 * corelow.c (core_target::get_core_register_section): Use
16573 std::vector instead of alloca.
16574
bb564c58
SM
165752020-01-13 Simon Marchi <simon.marchi@efficios.com>
16576
16577 * warning.m4: Add -Wmissing-declarations to build_warnings.
16578 * configure: Re-generate.
16579
6b366111
SM
165802020-01-13 Simon Marchi <simon.marchi@efficios.com>
16581
16582 * python/python.c (init__gdb_module): Add declaration.
16583
6c265988
SM
165842020-01-13 Simon Marchi <simon.marchi@efficios.com>
16585
16586 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
16587 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
16588 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
16589 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
16590 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
16591 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
16592 * ada-exp.y (_initialize_ada_exp): Add declaration.
16593 * ada-lang.c (_initialize_ada_language): Add declaration.
16594 * ada-tasks.c (_initialize_tasks): Add declaration.
16595 * agent.c (_initialize_agent): Add declaration.
16596 * aix-thread.c (_initialize_aix_thread): Add declaration.
16597 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
16598 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
16599 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
16600 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
16601 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
16602 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
16603 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
16604 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
16605 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
16606 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
16607 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
16608 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
16609 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
16610 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
16611 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
16612 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
16613 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
16614 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
16615 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
16616 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
16617 * annotate.c (_initialize_annotate): Add declaration.
16618 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
16619 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
16620 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
16621 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
16622 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
16623 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
16624 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
16625 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
16626 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
16627 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
16628 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
16629 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
16630 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
16631 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
16632 * auto-load.c (_initialize_auto_load): Add declaration.
16633 * auxv.c (_initialize_auxv): Add declaration.
16634 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
16635 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
16636 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
16637 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
16638 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
16639 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
16640 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
16641 * breakpoint.c (_initialize_breakpoint): Add declaration.
16642 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
16643 * btrace.c (_initialize_btrace): Add declaration.
16644 * charset.c (_initialize_charset): Add declaration.
16645 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
16646 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
16647 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
16648 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
16649 * cli/cli-script.c (_initialize_cli_script): Add declaration.
16650 * cli/cli-style.c (_initialize_cli_style): Add declaration.
16651 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
16652 * coffread.c (_initialize_coffread): Add declaration.
16653 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
16654 * compile/compile.c (_initialize_compile): Add declaration.
16655 * complaints.c (_initialize_complaints): Add declaration.
16656 * completer.c (_initialize_completer): Add declaration.
16657 * copying.c (_initialize_copying): Add declaration.
16658 * corefile.c (_initialize_core): Add declaration.
16659 * corelow.c (_initialize_corelow): Add declaration.
16660 * cp-abi.c (_initialize_cp_abi): Add declaration.
16661 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
16662 * cp-support.c (_initialize_cp_support): Add declaration.
16663 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
16664 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
16665 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
16666 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
16667 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
16668 * ctfread.c (_initialize_ctfread): Add declaration.
16669 * d-lang.c (_initialize_d_language): Add declaration.
16670 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
16671 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
16672 * dbxread.c (_initialize_dbxread): Add declaration.
16673 * dcache.c (_initialize_dcache): Add declaration.
16674 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
16675 * disasm.c (_initialize_disasm): Add declaration.
16676 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
16677 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
16678 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
16679 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
16680 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
16681 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
16682 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
16683 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
16684 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
16685 * elfread.c (_initialize_elfread): Add declaration.
16686 * exec.c (_initialize_exec): Add declaration.
16687 * extension.c (_initialize_extension): Add declaration.
16688 * f-lang.c (_initialize_f_language): Add declaration.
16689 * f-valprint.c (_initialize_f_valprint): Add declaration.
16690 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
16691 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
16692 * filesystem.c (_initialize_filesystem): Add declaration.
16693 * findcmd.c (_initialize_mem_search): Add declaration.
16694 * findvar.c (_initialize_findvar): Add declaration.
16695 * fork-child.c (_initialize_fork_child): Add declaration.
16696 * frame-base.c (_initialize_frame_base): Add declaration.
16697 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
16698 * frame.c (_initialize_frame): Add declaration.
16699 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
16700 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
16701 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
16702 * gcore.c (_initialize_gcore): Add declaration.
16703 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
16704 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
16705 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
16706 * gdbarch.c (_initialize_gdbarch): Add declaration.
16707 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
16708 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
16709 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
16710 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
16711 * go-lang.c (_initialize_go_language): Add declaration.
16712 * go32-nat.c (_initialize_go32_nat): Add declaration.
16713 * guile/guile.c (_initialize_guile): Add declaration.
16714 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
16715 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
16716 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
16717 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
16718 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
16719 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
16720 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
16721 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
16722 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
16723 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
16724 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
16725 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
16726 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
16727 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
16728 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
16729 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
16730 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
16731 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
16732 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
16733 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
16734 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
16735 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
16736 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
16737 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
16738 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
16739 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
16740 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
16741 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
16742 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
16743 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
16744 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
16745 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
16746 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
16747 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
16748 * infcall.c (_initialize_infcall): Add declaration.
16749 * infcmd.c (_initialize_infcmd): Add declaration.
16750 * inflow.c (_initialize_inflow): Add declaration.
16751 * infrun.c (_initialize_infrun): Add declaration.
16752 * interps.c (_initialize_interpreter): Add declaration.
16753 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
16754 * jit.c (_initialize_jit): Add declaration.
16755 * language.c (_initialize_language): Add declaration.
16756 * linux-fork.c (_initialize_linux_fork): Add declaration.
16757 * linux-nat.c (_initialize_linux_nat): Add declaration.
16758 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
16759 * linux-thread-db.c (_initialize_thread_db): Add declaration.
16760 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
16761 * m2-lang.c (_initialize_m2_language): Add declaration.
16762 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
16763 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
16764 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
16765 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
16766 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
16767 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
16768 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
16769 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
16770 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
16771 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
16772 * machoread.c (_initialize_machoread): Add declaration.
16773 * macrocmd.c (_initialize_macrocmd): Add declaration.
16774 * macroscope.c (_initialize_macroscope): Add declaration.
16775 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
16776 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
16777 * maint.c (_initialize_maint_cmds): Add declaration.
16778 * mdebugread.c (_initialize_mdebugread): Add declaration.
16779 * memattr.c (_initialize_mem): Add declaration.
16780 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
16781 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
16782 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
16783 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
16784 * mi/mi-main.c (_initialize_mi_main): Add declaration.
16785 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
16786 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
16787 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
16788 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
16789 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
16790 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
16791 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
16792 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
16793 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
16794 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
16795 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
16796 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
16797 * mipsread.c (_initialize_mipsread): Add declaration.
16798 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
16799 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
16800 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
16801 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
16802 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
16803 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
16804 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
16805 * nto-procfs.c (_initialize_procfs): Add declaration.
16806 * objc-lang.c (_initialize_objc_language): Add declaration.
16807 * observable.c (_initialize_observer): Add declaration.
16808 * opencl-lang.c (_initialize_opencl_language): Add declaration.
16809 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
16810 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
16811 * osabi.c (_initialize_gdb_osabi): Add declaration.
16812 * osdata.c (_initialize_osdata): Add declaration.
16813 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
16814 * parse.c (_initialize_parse): Add declaration.
16815 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
16816 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
16817 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
16818 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
16819 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
16820 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
16821 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
16822 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
16823 * printcmd.c (_initialize_printcmd): Add declaration.
16824 * probe.c (_initialize_probe): Add declaration.
16825 * proc-api.c (_initialize_proc_api): Add declaration.
16826 * proc-events.c (_initialize_proc_events): Add declaration.
16827 * proc-service.c (_initialize_proc_service): Add declaration.
16828 * procfs.c (_initialize_procfs): Add declaration.
16829 * producer.c (_initialize_producer): Add declaration.
16830 * psymtab.c (_initialize_psymtab): Add declaration.
16831 * python/python.c (_initialize_python): Add declaration.
16832 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
16833 * record-btrace.c (_initialize_record_btrace): Add declaration.
16834 * record-full.c (_initialize_record_full): Add declaration.
16835 * record.c (_initialize_record): Add declaration.
16836 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
16837 * regcache.c (_initialize_regcache): Add declaration.
16838 * reggroups.c (_initialize_reggroup): Add declaration.
16839 * remote-notif.c (_initialize_notif): Add declaration.
16840 * remote-sim.c (_initialize_remote_sim): Add declaration.
16841 * remote.c (_initialize_remote): Add declaration.
16842 * reverse.c (_initialize_reverse): Add declaration.
16843 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
16844 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
16845 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
16846 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
16847 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
16848 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
16849 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
16850 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
16851 Add declaration.
16852 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
16853 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
16854 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
16855 * rust-exp.y (_initialize_rust_exp): Add declaration.
16856 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
16857 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
16858 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
16859 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
16860 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
16861 * score-tdep.c (_initialize_score_tdep): Add declaration.
16862 * ser-go32.c (_initialize_ser_dos): Add declaration.
16863 * ser-mingw.c (_initialize_ser_windows): Add declaration.
16864 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
16865 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
16866 * ser-uds.c (_initialize_ser_socket): Add declaration.
16867 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
16868 * serial.c (_initialize_serial): Add declaration.
16869 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
16870 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
16871 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
16872 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
16873 * skip.c (_initialize_step_skip): Add declaration.
16874 * sol-thread.c (_initialize_sol_thread): Add declaration.
16875 * solib-aix.c (_initialize_solib_aix): Add declaration.
16876 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
16877 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
16878 * solib-frv.c (_initialize_frv_solib): Add declaration.
16879 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
16880 * solib-target.c (_initialize_solib_target): Add declaration.
16881 * solib.c (_initialize_solib): Add declaration.
16882 * source-cache.c (_initialize_source_cache): Add declaration.
16883 * source.c (_initialize_source): Add declaration.
16884 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
16885 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
16886 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
16887 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
16888 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
16889 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
16890 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
16891 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
16892 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
16893 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
16894 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
16895 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
16896 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
16897 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
16898 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
16899 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
16900 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
16901 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
16902 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
16903 * stabsread.c (_initialize_stabsread): Add declaration.
16904 * stack.c (_initialize_stack): Add declaration.
16905 * stap-probe.c (_initialize_stap_probe): Add declaration.
16906 * std-regs.c (_initialize_frame_reg): Add declaration.
16907 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
16908 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
16909 * symfile.c (_initialize_symfile): Add declaration.
16910 * symmisc.c (_initialize_symmisc): Add declaration.
16911 * symtab.c (_initialize_symtab): Add declaration.
16912 * target.c (_initialize_target): Add declaration.
16913 * target-connection.c (_initialize_target_connection): Add
16914 declaration.
16915 * target-dcache.c (_initialize_target_dcache): Add declaration.
16916 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
16917 * thread.c (_initialize_thread): Add declaration.
16918 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
16919 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
16920 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
16921 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
16922 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
16923 * tracectf.c (_initialize_ctf): Add declaration.
16924 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
16925 * tracefile.c (_initialize_tracefile): Add declaration.
16926 * tracepoint.c (_initialize_tracepoint): Add declaration.
16927 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
16928 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
16929 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
16930 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
16931 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
16932 * tui/tui-win.c (_initialize_tui_win): Add declaration.
16933 * tui/tui.c (_initialize_tui): Add declaration.
16934 * typeprint.c (_initialize_typeprint): Add declaration.
16935 * ui-style.c (_initialize_ui_style): Add declaration.
16936 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
16937 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
16938 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
16939 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
16940 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
16941 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
16942 * unittests/filtered_iterator-selftests.c
16943 (_initialize_filtered_iterator_selftests): Add declaration.
16944 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
16945 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
16946 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
16947 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
16948 * unittests/main-thread-selftests.c
16949 (_initialize_main_thread_selftests): Add declaration.
16950 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
16951 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
16952 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
16953 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
16954 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
16955 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
16956 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
16957 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
16958 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
16959 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
16960 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
16961 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
16962 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
16963 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
16964 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
16965 declaration.
16966 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
16967 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
16968 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
16969 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
16970 * user-regs.c (_initialize_user_regs): Add declaration.
16971 * utils.c (_initialize_utils): Add declaration.
16972 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
16973 * valops.c (_initialize_valops): Add declaration.
16974 * valprint.c (_initialize_valprint): Add declaration.
16975 * value.c (_initialize_values): Add declaration.
16976 * varobj.c (_initialize_varobj): Add declaration.
16977 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
16978 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
16979 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
16980 * windows-nat.c (_initialize_windows_nat): Add declaration.
16981 (_initialize_check_for_gdb_ini): Add declaration.
16982 (_initialize_loadable): Add declaration.
16983 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
16984 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
16985 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
16986 * xcoffread.c (_initialize_xcoffread): Add declaration.
16987 * xml-support.c (_initialize_xml_support): Add declaration.
16988 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
16989 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
16990 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
16991 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
16992
e2de1eec
SM
169932020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16994
16995 * regformats/regdat.sh: Generate declaration for init function.
16996
e0037b4c
SM
169972020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16998
16999 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
17000 up.
17001 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
17002 close_one_inferior>: New methods.
17003 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
17004 pass down target to find_inferior_pid.
17005 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
17006 Pass down target to find_inferior_ptid.
17007 (gdbsim_target::create_inferior): Pass down target to
17008 add_thread_silent.
17009 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
17010 target down to find_inferior_ptid and switch_to_thread.
17011 (gdbsim_target::close): Update to call close_one_inferior.
17012 (struct resume_data): Remove.
17013 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
17014 directly, rather than through a void pointer.
17015 (gdbsim_target::resume): Update to call resume_one_inferior.
17016
58920b5b
SM
170172020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
17018
17019 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
17020
4ec89149
PA
170212020-01-12 Pedro Alves <palves@redhat.com>
17022
17023 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
17024 directly for the current inferior instead of
17025 discard_all_inferiors.
17026 (discard_all_inferiors): Delete.
17027
7c392d1d
TT
170282020-01-11 Tom Tromey <tom@tromey.com>
17029
17030 * tui/tui-wingeneral.c (box_win): Check cli_styling.
17031 * tui/tui-winsource.c (tui_source_window_base::refill): Use
17032 deprecated_safe_get_selected_frame.
17033
d9ebdab7
TBA
170342020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
17035
17036 * inferior.c (print_inferior): Switch inferior before printing it.
17037
f3c469b9
PA
170382020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
17039 Pedro Alves <palves@redhat.com>
17040
17041 * progspace-and-thread.c (switch_to_program_space_and_thread):
17042 Assert there's an inferior for PSPACE. Use
17043 switch_to_inferior_no_thread to switch the inferior too.
17044 * progspace.c (program_space::~program_space): Call
17045 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
17046 (program_space::free_all_objfiles): Don't call clear_symtab_users
17047 here.
17048 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
17049
65c574f6
PA
170502020-01-10 Pedro Alves <palves@redhat.com>
17051
17052 * NEWS: Mention multi-target debugging, "info connections", and
17053 "add-inferior -no-connection".
17054
2f4fcf00
PA
170552020-01-10 Pedro Alves <palves@redhat.com>
17056
17057 * infrun.c: Include "target-connection.h".
17058 (check_multi_target_resumption): New.
17059 (proceed): Call it.
17060 * target-connection.c (make_target_connection_string): Make
17061 extern.
17062 * target-connection.h (make_target_connection_string): Declare.
17063
121b3efd
PA
170642020-01-10 Pedro Alves <palves@redhat.com>
17065
17066 * Makefile.in (COMMON_SFILES): Add target-connection.c.
17067 * inferior.c (uiout_field_connection): New function.
17068 (print_inferior): Add new "connection-id" column.
17069 (add_inferior_command): Show connection number/string of added
17070 inferior.
17071 * process-stratum-target.h
17072 (process_stratum_target::connection_string): New virtual method.
17073 (process_stratum_target::connection_number): New field.
17074 * remote.c (remote_target::connection_string): New override.
17075 * target-connection.c: New file.
17076 * target-connection.h: New file.
17077 * target.c (decref_target): Remove process_stratum targets from
17078 the connection list.
17079 (target_stack::push): Add process_stratum targets to the
17080 connection list.
17081
4f837581
PA
170822020-01-10 Pedro Alves <palves@redhat.com>
17083
17084 Revert:
17085 2016-04-12 Pedro Alves <palves@redhat.com>
17086 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
17087 Remove references to name.
17088 * serial.h (struct serial) <name>: Delete.
17089
f4ec508e
PA
170902020-01-10 Pedro Alves <palves@redhat.com>
17091
17092 * gdbarch-selftests.c (register_to_value_test): Remove "target
17093 already pushed" check.
17094
5b6d1e4f
PA
170952020-01-10 Pedro Alves <palves@redhat.com>
17096 John Baldwin <jhb@FreeBSD.org>
17097
17098 * aarch64-linux-nat.c
17099 (aarch64_linux_nat_target::thread_architecture): Adjust.
17100 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
17101 (task_command_1): Likewise.
17102 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
17103 (aix_thread_target::wait, aix_thread_target::fetch_registers)
17104 (aix_thread_target::store_registers)
17105 (aix_thread_target::thread_alive): Adjust.
17106 * amd64-fbsd-tdep.c: Include "inferior.h".
17107 (amd64fbsd_get_thread_local_address): Pass down target.
17108 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
17109 thread's gdbarch instead of target_gdbarch.
17110 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
17111 get_last_target_status.
17112 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
17113 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
17114 inferiors.
17115 (update_inserted_breakpoint_locations): Skip if inferiors with no
17116 execution.
17117 (update_global_location_list): When handling moribund locations,
17118 find representative inferior for location's pspace, and use thread
17119 count of its process_stratum target.
17120 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
17121 * bsd-uthread.c (bsd_uthread_target::wait): Use
17122 as_process_stratum_target and adjust thread_change_ptid and
17123 add_thread calls.
17124 (bsd_uthread_target::update_thread_list): Use
17125 as_process_stratum_target and adjust find_thread_ptid,
17126 thread_change_ptid and add_thread calls.
17127 * btrace.c (maint_btrace_packet_history_cmd): Adjust
17128 find_thread_ptid call.
17129 * corelow.c (add_to_thread_list): Adjust add_thread call.
17130 (core_target_open): Adjust add_thread_silent and thread_count
17131 calls.
17132 (core_target::pid_to_str): Adjust find_inferior_ptid call.
17133 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
17134 * event-top.c (async_disconnect): Pop targets from all inferiors.
17135 * exec.c (add_target_sections): Push exec target on all inferiors
17136 sharing the program space.
17137 (remove_target_sections): Remove the exec target from all
17138 inferiors sharing the program space.
17139 (exec_on_vfork): New.
17140 * exec.h (exec_on_vfork): Declare.
17141 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
17142 Pass it down.
17143 (fbsd_nat_target::update_thread_list): Adjust.
17144 (fbsd_nat_target::resume): Adjust.
17145 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
17146 down.
17147 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
17148 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
17149 get_thread_arch_regcache call.
17150 * fork-child.c (gdb_startup_inferior): Pass target down to
17151 startup_inferior and set_executing.
17152 * gdbthread.h (struct process_stratum_target): Forward declare.
17153 (add_thread, add_thread_silent, add_thread_with_info)
17154 (in_thread_list): Add process_stratum_target parameter.
17155 (find_thread_ptid(inferior*, ptid_t)): New overload.
17156 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
17157 parameter.
17158 (all_threads()): Delete overload.
17159 (all_threads, all_non_exited_threads): Add process_stratum_target
17160 parameter.
17161 (all_threads_safe): Use brace initialization.
17162 (thread_count): Add process_stratum_target parameter.
17163 (set_resumed, set_running, set_stop_requested, set_executing)
17164 (threads_are_executing, finish_thread_state): Add
17165 process_stratum_target parameter.
17166 (switch_to_thread): Use is_current_thread.
17167 * i386-fbsd-tdep.c: Include "inferior.h".
17168 (i386fbsd_get_thread_local_address): Pass down target.
17169 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
17170 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
17171 have_inferiors check.
17172 * inf-ptrace.c (inf_ptrace_target::create_inferior)
17173 (inf_ptrace_target::attach): Adjust.
17174 * infcall.c (run_inferior_call): Adjust.
17175 * infcmd.c (run_command_1): Pass target to
17176 scoped_finish_thread_state.
17177 (proceed_thread_callback): Skip inferiors with no execution.
17178 (continue_command): Rename 'all_threads' local to avoid hiding
17179 'all_threads' function. Adjust get_last_target_status call.
17180 (prepare_one_step): Adjust set_running call.
17181 (signal_command): Use user_visible_resume_target. Compare thread
17182 pointers instead of inferior_ptid.
17183 (info_program_command): Adjust to pass down target.
17184 (attach_command): Mark target's 'thread_executing' flag.
17185 (stop_current_target_threads_ns): New, factored out from ...
17186 (interrupt_target_1): ... this. Switch inferior before making
17187 target calls.
17188 * inferior-iter.h
17189 (struct all_inferiors_iterator, struct all_inferiors_range)
17190 (struct all_inferiors_safe_range)
17191 (struct all_non_exited_inferiors_range): Filter on
17192 process_stratum_target too. Remove explicit.
17193 * inferior.c (inferior::inferior): Push dummy target on target
17194 stack.
17195 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
17196 Add process_stratum_target parameter, and pass it down.
17197 (have_live_inferiors): Adjust.
17198 (switch_to_inferior_and_push_target): New.
17199 (add_inferior_command, clone_inferior_command): Handle
17200 "-no-connection" parameter. Use
17201 switch_to_inferior_and_push_target.
17202 (_initialize_inferior): Mention "-no-connection" option in
17203 the help of "add-inferior" and "clone-inferior" commands.
17204 * inferior.h: Include "process-stratum-target.h".
17205 (interrupt_target_1): Use bool.
17206 (struct inferior) <push_target, unpush_target, target_is_pushed,
17207 find_target_beneath, top_target, process_target, target_at,
17208 m_stack>: New.
17209 (discard_all_inferiors): Delete.
17210 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
17211 (all_inferiors, all_non_exited_inferiors): Add
17212 process_stratum_target parameter.
17213 * infrun.c: Include "gdb_select.h" and <unordered_map>.
17214 (target_last_proc_target): New global.
17215 (follow_fork_inferior): Push target on new inferior. Pass target
17216 to add_thread_silent. Call exec_on_vfork. Handle target's
17217 reference count.
17218 (follow_fork): Adjust get_last_target_status call. Also consider
17219 target.
17220 (follow_exec): Push target on new inferior.
17221 (struct execution_control_state) <target>: New field.
17222 (user_visible_resume_target): New.
17223 (do_target_resume): Call target_async.
17224 (resume_1): Set target's threads_executing flag. Consider resume
17225 target.
17226 (commit_resume_all_targets): New.
17227 (proceed): Also consider resume target. Skip threads of inferiors
17228 with no execution. Commit resumtion in all targets.
17229 (start_remote): Pass current inferior to wait_for_inferior.
17230 (infrun_thread_stop_requested): Consider target as well. Pass
17231 thread_info pointer to clear_inline_frame_state instead of ptid.
17232 (infrun_thread_thread_exit): Consider target as well.
17233 (random_pending_event_thread): New inferior parameter. Use it.
17234 (do_target_wait): Rename to ...
17235 (do_target_wait_1): ... this. Add inferior parameter, and pass it
17236 down.
17237 (threads_are_resumed_pending_p, do_target_wait): New.
17238 (prepare_for_detach): Adjust calls.
17239 (wait_for_inferior): New inferior parameter. Handle it. Use
17240 do_target_wait_1 instead of do_target_wait.
17241 (fetch_inferior_event): Adjust. Switch to representative
17242 inferior. Pass target down.
17243 (set_last_target_status): Add process_stratum_target parameter.
17244 Save target in global.
17245 (get_last_target_status): Add process_stratum_target parameter and
17246 handle it.
17247 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
17248 (context_switch): Check inferior_ptid == null_ptid before calling
17249 inferior_thread().
17250 (get_inferior_stop_soon): Pass down target.
17251 (wait_one): Rename to ...
17252 (poll_one_curr_target): ... this.
17253 (struct wait_one_event): New.
17254 (wait_one): New.
17255 (stop_all_threads): Adjust.
17256 (handle_no_resumed, handle_inferior_event): Adjust to consider the
17257 event's target.
17258 (switch_back_to_stepped_thread): Also consider target.
17259 (print_stop_event): Update.
17260 (normal_stop): Update. Also consider the resume target.
17261 * infrun.h (wait_for_inferior): Remove declaration.
17262 (user_visible_resume_target): New declaration.
17263 (get_last_target_status, set_last_target_status): New
17264 process_stratum_target parameter.
17265 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
17266 process_stratum_target parameter, and use it.
17267 (clear_inline_frame_state (thread_info*)): New.
17268 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
17269 process_stratum_target parameter.
17270 (clear_inline_frame_state (thread_info*)): Declare.
17271 * linux-fork.c (delete_checkpoint_command): Pass target down to
17272 find_thread_ptid.
17273 (checkpoint_command): Adjust.
17274 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
17275 instead of just tweaking inferior_ptid.
17276 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
17277 (exit_lwp): Pass target down to find_thread_ptid.
17278 (attach_proc_task_lwp_callback): Pass target down to
17279 add_thread/set_running/set_executing.
17280 (linux_nat_target::attach): Pass target down to
17281 thread_change_ptid.
17282 (get_detach_signal): Pass target down to find_thread_ptid.
17283 Consider last target status's target.
17284 (linux_resume_one_lwp_throw, resume_lwp)
17285 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
17286 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
17287 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
17288 (linux_nat_target::async_wait_fd): New.
17289 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
17290 target down.
17291 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
17292 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
17293 * linux-thread-db.c (struct thread_db_info::process_target): New
17294 field.
17295 (add_thread_db_info): Save target.
17296 (get_thread_db_info): New process_stratum_target parameter. Also
17297 match target.
17298 (delete_thread_db_info): New process_stratum_target parameter.
17299 Also match target.
17300 (thread_from_lwp): Adjust to pass down target.
17301 (thread_db_notice_clone): Pass down target.
17302 (check_thread_db_callback): Pass down target.
17303 (try_thread_db_load_1): Always push the thread_db target.
17304 (try_thread_db_load, record_thread): Pass target down.
17305 (thread_db_target::detach): Pass target down. Always unpush the
17306 thread_db target.
17307 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
17308 target down. Always unpush the thread_db target.
17309 (find_new_threads_callback, thread_db_find_new_threads_2)
17310 (thread_db_target::update_thread_list): Pass target down.
17311 (thread_db_target::pid_to_str): Pass current inferior down.
17312 (thread_db_target::get_thread_local_address): Pass target down.
17313 (thread_db_target::resume, maintenance_check_libthread_db): Pass
17314 target down.
17315 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
17316 * procfs.c (procfs_target::procfs_init_inferior): Declare.
17317 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
17318 (procfs_init_inferior): Rename to ...
17319 (procfs_target::procfs_init_inferior): ... this and adjust.
17320 (procfs_target::create_inferior, procfs_notice_thread)
17321 (procfs_do_thread_registers): Adjust.
17322 * ppc-fbsd-tdep.c: Include "inferior.h".
17323 (ppcfbsd_get_thread_local_address): Pass down target.
17324 * proc-service.c (ps_xfer_memory): Switch current inferior and
17325 program space as well.
17326 (get_ps_regcache): Pass target down.
17327 * process-stratum-target.c
17328 (process_stratum_target::thread_address_space)
17329 (process_stratum_target::thread_architecture): Pass target down.
17330 * process-stratum-target.h
17331 (process_stratum_target::threads_executing): New field.
17332 (as_process_stratum_target): New.
17333 * ravenscar-thread.c
17334 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
17335 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
17336 down.
17337 * record-btrace.c (record_btrace_target::info_record): Adjust.
17338 (record_btrace_target::record_method)
17339 (record_btrace_target::record_is_replaying)
17340 (record_btrace_target::fetch_registers)
17341 (get_thread_current_frame_id, record_btrace_target::resume)
17342 (record_btrace_target::wait, record_btrace_target::stop): Pass
17343 target down.
17344 * record-full.c (record_full_wait_1): Switch to event thread.
17345 Pass target down.
17346 * regcache.c (regcache::regcache)
17347 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
17348 process_stratum_target parameter and handle it.
17349 (current_thread_target): New global.
17350 (get_thread_regcache): Add process_stratum_target parameter and
17351 handle it. Switch inferior before calling target method.
17352 (get_thread_regcache): Pass target down.
17353 (get_thread_regcache_for_ptid): Pass target down.
17354 (registers_changed_ptid): Add process_stratum_target parameter and
17355 handle it.
17356 (registers_changed_thread, registers_changed): Pass target down.
17357 (test_get_thread_arch_aspace_regcache): New.
17358 (current_regcache_test): Define a couple local test_target_ops
17359 instances and use them for testing.
17360 (readwrite_regcache): Pass process_stratum_target parameter.
17361 (cooked_read_test, cooked_write_test): Pass mock_target down.
17362 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
17363 (get_thread_arch_aspace_regcache): Add process_stratum_target
17364 parameter.
17365 (regcache::target): New method.
17366 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
17367 (regcache::registers_changed_ptid): Add process_stratum_target
17368 parameter.
17369 (regcache::m_target): New field.
17370 (registers_changed_ptid): Add process_stratum_target parameter.
17371 * remote.c (remote_state::supports_vCont_probed): New field.
17372 (remote_target::async_wait_fd): New method.
17373 (remote_unpush_and_throw): Add remote_target parameter.
17374 (get_current_remote_target): Adjust.
17375 (remote_target::remote_add_inferior): Push target.
17376 (remote_target::remote_add_thread)
17377 (remote_target::remote_notice_new_inferior)
17378 (get_remote_thread_info): Pass target down.
17379 (remote_target::update_thread_list): Skip threads of inferiors
17380 bound to other targets. (remote_target::close): Don't discard
17381 inferiors. (remote_target::add_current_inferior_and_thread)
17382 (remote_target::process_initial_stop_replies)
17383 (remote_target::start_remote)
17384 (remote_target::remote_serial_quit_handler): Pass down target.
17385 (remote_target::remote_unpush_target): New remote_target
17386 parameter. Unpush the target from all inferiors.
17387 (remote_target::remote_unpush_and_throw): New remote_target
17388 parameter. Pass it down.
17389 (remote_target::open_1): Check whether the current inferior has
17390 execution instead of checking whether any inferior is live. Pass
17391 target down.
17392 (remote_target::remote_detach_1): Pass down target. Use
17393 remote_unpush_target.
17394 (extended_remote_target::attach): Pass down target.
17395 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
17396 (remote_target::append_resumption): Pass down target.
17397 (remote_target::append_pending_thread_resumptions)
17398 (remote_target::remote_resume_with_hc, remote_target::resume)
17399 (remote_target::commit_resume): Pass down target.
17400 (remote_target::remote_stop_ns): Check supports_vCont_probed.
17401 (remote_target::interrupt_query)
17402 (remote_target::remove_new_fork_children)
17403 (remote_target::check_pending_events_prevent_wildcard_vcont)
17404 (remote_target::remote_parse_stop_reply)
17405 (remote_target::process_stop_reply): Pass down target.
17406 (first_remote_resumed_thread): New remote_target parameter. Pass
17407 it down.
17408 (remote_target::wait_as): Pass down target.
17409 (unpush_and_perror): New remote_target parameter. Pass it down.
17410 (remote_target::readchar, remote_target::remote_serial_write)
17411 (remote_target::getpkt_or_notif_sane_1)
17412 (remote_target::kill_new_fork_children, remote_target::kill): Pass
17413 down target.
17414 (remote_target::mourn_inferior): Pass down target. Use
17415 remote_unpush_target.
17416 (remote_target::core_of_thread)
17417 (remote_target::remote_btrace_maybe_reopen): Pass down target.
17418 (remote_target::pid_to_exec_file)
17419 (remote_target::thread_handle_to_thread_info): Pass down target.
17420 (remote_target::async_wait_fd): New.
17421 * riscv-fbsd-tdep.c: Include "inferior.h".
17422 (riscv_fbsd_get_thread_local_address): Pass down target.
17423 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
17424 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
17425 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
17426 Adjust.
17427 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
17428 * solib-svr4.c (enable_break): Pass down target.
17429 * spu-multiarch.c (parse_spufs_run): Pass down target.
17430 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
17431 * target-delegates.c: Regenerate.
17432 * target.c (g_target_stack): Delete.
17433 (current_top_target): Return the current inferior's top target.
17434 (target_has_execution_1): Refer to the passed-in inferior's top
17435 target.
17436 (target_supports_terminal_ours): Check whether the initial
17437 inferior was already created.
17438 (decref_target): New.
17439 (target_stack::push): Incref/decref the target.
17440 (push_target, push_target, unpush_target): Adjust.
17441 (target_stack::unpush): Defref target.
17442 (target_is_pushed): Return bool. Adjust to refer to the current
17443 inferior's target stack.
17444 (dispose_inferior): Delete, and inline parts ...
17445 (target_preopen): ... here. Only dispose of the current inferior.
17446 (target_detach): Hold strong target reference while detaching.
17447 Pass target down.
17448 (target_thread_name): Add assertion.
17449 (target_resume): Pass down target.
17450 (target_ops::beneath, find_target_at): Adjust to refer to the
17451 current inferior's target stack.
17452 (get_dummy_target): New.
17453 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
17454 has a thread running.
17455 (initialize_targets): Rename to ...
17456 (_initialize_target): ... this.
17457 * target.h: Include "gdbsupport/refcounted-object.h".
17458 (struct target_ops): Inherit refcounted_object.
17459 (target_ops::shortname, target_ops::longname): Make const.
17460 (target_ops::async_wait_fd): New method.
17461 (decref_target): Declare.
17462 (struct target_ops_ref_policy): New.
17463 (target_ops_ref): New typedef.
17464 (get_dummy_target): Declare function.
17465 (target_is_pushed): Return bool.
17466 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
17467 (all_matching_threads_iterator::all_matching_threads_iterator):
17468 Handle filter target.
17469 * thread-iter.h (struct all_matching_threads_iterator, struct
17470 all_matching_threads_range, class all_non_exited_threads_range):
17471 Filter by target too. Remove explicit.
17472 * thread.c (threads_executing): Delete.
17473 (inferior_thread): Pass down current inferior.
17474 (clear_thread_inferior_resources): Pass down thread pointer
17475 instead of ptid_t.
17476 (add_thread_silent, add_thread_with_info, add_thread): Add
17477 process_stratum_target parameter. Use it for thread and inferior
17478 searches.
17479 (is_current_thread): New.
17480 (thread_info::deletable): Use it.
17481 (find_thread_ptid, thread_count, in_thread_list)
17482 (thread_change_ptid, set_resumed, set_running): New
17483 process_stratum_target parameter. Pass it down.
17484 (set_executing): New process_stratum_target parameter. Pass it
17485 down. Adjust reference to 'threads_executing'.
17486 (threads_are_executing): New process_stratum_target parameter.
17487 Adjust reference to 'threads_executing'.
17488 (set_stop_requested, finish_thread_state): New
17489 process_stratum_target parameter. Pass it down.
17490 (switch_to_thread): Also match inferior.
17491 (switch_to_thread): New process_stratum_target parameter. Pass it
17492 down.
17493 (update_threads_executing): Reimplement.
17494 * top.c (quit_force): Pop targets from all inferior.
17495 (gdb_init): Don't call initialize_targets.
17496 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
17497 Declare.
17498 (windows_add_thread, windows_delete_thread): Adjust.
17499 (get_windows_debug_event): Rename to ...
17500 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
17501 * tracefile-tfile.c (tfile_target_open): Pass down target.
17502 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
17503 Forward declare.
17504 (switch_to_thread): Add process_stratum_target parameter.
17505 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
17506 parameter. Use it.
17507 (mi_on_resume): Pass target down.
17508 * nat/fork-inferior.c (startup_inferior): Add
17509 process_stratum_target parameter. Pass it down.
17510 * nat/fork-inferior.h (startup_inferior): Add
17511 process_stratum_target parameter.
17512 * python/py-threadevent.c (py_get_event_thread): Pass target down.
17513
75c6c844
PA
175142020-01-10 Pedro Alves <palves@redhat.com>
17515
17516 * remote.c (remote_target::start_remote): Don't set inferior_ptid
17517 directly. Instead find the first thread in the thread list and
17518 use switch_to_thread.
17519
78f2c40a
PA
175202020-01-10 Pedro Alves <palves@redhat.com>
17521
17522 * remote.c (remote_target::remote_add_inferior): Don't bind a
17523 process to the current inferior if the current inferior is already
17524 bound to a process.
17525
e7af6c70
TBA
175262020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
17527 Pedro Alves <palves@redhat.com>
17528
17529 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
17530 If no process is specified, return null_ptid instead of
17531 inferior_ptid.
17532 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
17533 TARGET_WAITKIND_SIGNALLED with no pid.
17534
31ba933e
PA
175352020-01-10 Pedro Alves <palves@redhat.com>
17536
17537 * remote.c (first_remote_resumed_thread): New.
17538 (remote_target::wait_as): Use it as default event_ptid instead of
17539 inferior_ptid.
17540
735fc2ca
PA
175412020-01-10 Pedro Alves <palves@redhat.com>
17542
17543 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
17544
c17e02e1
PA
175452020-01-10 Pedro Alves <palves@redhat.com>
17546
17547 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
17548 not -1.
17549
ab1ddbcf
PA
175502020-01-10 Pedro Alves <palves@redhat.com>
17551
17552 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
17553 ptid to get_last_target_status.
17554 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
17555 ptid to get_last_target_status.
17556 * infcmd.c (continue_command): Don't pass a target_waitstatus to
17557 get_last_target_status.
17558 (info_program_command): Don't pass a target_waitstatus to
17559 get_last_target_status.
17560 * infrun.c (init_wait_for_inferior): Use
17561 nullify_last_target_wait_ptid.
17562 (get_last_target_status): Handle nullptr arguments.
17563 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
17564 (print_stop_event): Don't pass a ptid to get_last_target_status.
17565 (normal_stop): Don't pass a ptid to get_last_target_status.
17566 * infrun.h (get_last_target_status, set_last_target_status): Move
17567 comments here and update.
17568 (nullify_last_target_wait_ptid): Declare.
17569 * linux-fork.c (fork_load_infrun_state): Remove local extern
17570 declaration of nullify_last_target_wait_ptid.
17571 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
17572 to get_last_target_status.
17573
f3f8ece4
PA
175742020-01-10 Pedro Alves <palves@redhat.com>
17575
17576 * gdbthread.h (scoped_restore_current_thread)
17577 <dont_restore, restore, m_dont_restore>: Declare.
17578 * thread.c (thread_alive): Add assertion. Return bool.
17579 (switch_to_thread_if_alive): New.
17580 (prune_threads): Switch inferior/thread.
17581 (print_thread_info_1): Switch thread before calling target methods.
17582 (scoped_restore_current_thread::restore): New, factored out from
17583 ...
17584 (scoped_restore_current_thread::~scoped_restore_current_thread):
17585 ... this.
17586 (scoped_restore_current_thread::scoped_restore_current_thread):
17587 Add assertion.
17588 (thread_apply_all_command, thread_select): Use
17589 switch_to_thread_if_alive.
17590 * infrun.c (proceed, restart_threads, handle_signal_stop)
17591 (switch_back_to_stepped_thread): Switch current thread before
17592 calling target methods.
17593
db2d40f7
PA
175942020-01-10 Pedro Alves <palves@redhat.com>
17595
17596 * inferior.c (switch_to_inferior_no_thread): New function,
17597 factored out from ...
17598 (inferior_command): ... here.
17599 * inferior.h (switch_to_inferior_no_thread): Declare.
17600 * mi/mi-main.c (run_one_inferior): Use
17601 switch_to_inferior_no_thread.
17602
bd420a2d
PA
176032020-01-10 Pedro Alves <palves@redhat.com>
17604
17605 * infcmd.c (kill_command): Remove dead code.
17606
ddf5db90
PA
176072020-01-10 Pedro Alves <palves@redhat.com>
17608
17609 * remote.c (remote_target::mourn_inferior): No longer check
17610 whether the target is running.
17611
5018ce90
PA
176122020-01-10 Pedro Alves <palves@redhat.com>
17613
17614 * corelow.c (core_target::has_execution): Change parameter type to
17615 inferior pointer.
17616 * inferior.c (number_of_live_inferiors): Use
17617 inferior::has_execution instead of target_has_execution_1.
17618 * inferior.h (inferior::has_execution): New.
17619 * linux-thread-db.c (thread_db_target::update_thread_list): Use
17620 inferior::has_execution instead of target_has_execution_1.
17621 * process-stratum-target.c
17622 (process_stratum_target::has_execution): Change parameter type to
17623 inferior pointer. Check the inferior's PID instead of
17624 inferior_ptid.
17625 * process-stratum-target.h
17626 (process_stratum_target::has_execution): Change parameter type to
17627 inferior pointer.
17628 * record-full.c (record_full_core_target::has_execution): Change
17629 parameter type to inferior pointer.
17630 * target.c (target_has_execution_1): Change parameter type to
17631 inferior pointer.
17632 (target_has_execution_current): Adjust.
17633 * target.h (target_ops::has_execution): Change parameter type to
17634 inferior pointer.
17635 (target_has_execution_1): Change parameter type to inferior
17636 pointer. Change return type to bool.
17637 * tracefile.h (tracefile_target::has_execution): Change parameter
17638 type to inferior pointer.
17639
74375d18
PA
176402020-01-10 Pedro Alves <palves@redhat.com>
17641
17642 * exceptions.c (print_flush): Remove current_top_target() check.
17643
acdf84a6
PA
176442020-01-10 Pedro Alves <palves@redhat.com>
17645
17646 * remote.c (show_remote_exec_file): Show the current inferior's
17647 exec-file instead of the command variable's value.
17648
ec506636
PA
176492020-01-10 Pedro Alves <palves@redhat.com>
17650
17651 * record-full.c (record_full_resume_ptid): New global.
17652 (record_full_target::resume): Set it.
17653 (record_full_wait_1): Use record_full_resume_ptid instead of
17654 inferior_ptid.
17655
873657b9
PA
176562020-01-10 Pedro Alves <palves@redhat.com>
17657
17658 * gdbthread.h (scoped_restore_current_thread)
17659 <dont_restore, restore, m_dont_restore>: Declare.
17660 * thread.c (thread_alive): Add assertion. Return bool.
17661 (switch_to_thread_if_alive): New.
17662 (prune_threads): Switch inferior/thread.
17663 (print_thread_info_1): Switch thread before calling target methods.
17664 (scoped_restore_current_thread::restore): New, factored out from
17665 ...
17666 (scoped_restore_current_thread::~scoped_restore_current_thread):
17667 ... this.
17668 (scoped_restore_current_thread::scoped_restore_current_thread):
17669 Add assertion.
17670 (thread_apply_all_command, thread_select): Use
17671 switch_to_thread_if_alive.
17672
7f0ae84c
GB
176732020-01-10 George Barrett <bob@bob131.so>
17674
17675 * stap-probe.c (stap_modify_semaphore): Don't check for null
17676 semaphores.
17677 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
17678 for null semaphores.
17679
f5a7c406
AB
176802020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
17681
17682 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
17683 all source windows, and maintain horizontal scroll status while
17684 doing so.
17685
9ae6bf64
TT
176862020-01-09 Tom Tromey <tom@tromey.com>
17687
17688 PR tui/18932:
17689 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
17690 update_source_window, not print_source_lines.
17691
b2efe70c
AB
176922020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
17693
17694 * tui/tui.c (tui_enable): Register tui hooks after calling
17695 tui_display_main.
17696
5f23a082
CB
176972020-01-09 Christian Biesinger <cbiesinger@google.com>
17698
17699 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
17700
3061113b
SM
177012020-01-08 Simon Marchi <simon.marchi@efficios.com>
17702
17703 * thread.c (print_thread_info_1): Fix indentation.
17704
57d75002
CB
177052020-01-09 Christian Biesinger <cbiesinger@google.com>
17706
17707 * symtab.c (general_symbol_info::compute_and_set_names): Move the
17708 unique_xmalloc_ptr outside the if to always free the demangled name.
17709
6a053cb1
TT
177102020-01-08 Tom Tromey <tromey@adacore.com>
17711
17712 * xcoffread.c (enter_line_range, read_xcoff_symtab)
17713 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
17714 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
17715 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
17716 Remove.
17717 (section_offsets): New typedef.
17718 * symtab.c (fixup_section, get_msymbol_address): Update.
17719 * symmisc.c (dump_msymbols): Update.
17720 * symfile.h (relative_addr_info_to_section_offsets)
17721 (symfile_map_offsets_to_segments): Update.
17722 * symfile.c (build_section_addr_info_from_objfile)
17723 (init_objfile_sect_indices): Update.
17724 (struct place_section_arg): Change type of "offsets".
17725 (place_section): Update.
17726 (relative_addr_info_to_section_offsets): Change type of
17727 "section_offsets". Remove "num_sections" parameter.
17728 (default_symfile_offsets, syms_from_objfile_1)
17729 (set_objfile_default_section_offset): Update.
17730 (reread_symbols): No need to preserve section offsets by hand.
17731 (symfile_map_offsets_to_segments): Change type of "offsets".
17732 * stap-probe.c (relocate_address): Update.
17733 * stabsread.h (process_one_symbol): Update.
17734 * solib-target.c (struct lm_info_target) <offsets>: Change type.
17735 (solib_target_relocate_section_addresses): Update.
17736 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
17737 Update.
17738 * solib-frv.c (frv_relocate_main_executable): Update.
17739 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
17740 * solib-aix.c (solib_aix_get_section_offsets): Change return
17741 type.
17742 (solib_aix_solib_create_inferior_hook): Update.
17743 * remote.c (remote_target::get_offsets): Update.
17744 * psymtab.c (find_pc_sect_psymtab): Update.
17745 * psympriv.h (struct partial_symbol) <address, text_low,
17746 text_high>: Update.
17747 * objfiles.h (obj_section_offset): Update.
17748 (struct objfile) <section_offsets>: Change type.
17749 <num_sections>: Remove.
17750 (objfile_relocate): Update.
17751 * objfiles.c (entry_point_address_query): Update
17752 (relocate_one_symbol): Change type of "section_offsets".
17753 (objfile_relocate1, objfile_relocate1): Change type of
17754 "new_offsets".
17755 (objfile_rebase1): Update.
17756 * mipsread.c (mipscoff_symfile_read): Update.
17757 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
17758 parameter.
17759 * mdebugread.c (parse_symbol): Change type of "section_offsets".
17760 (parse_external, psymtab_to_symtab_1): Update.
17761 * machoread.c (macho_symfile_offsets): Update.
17762 * ia64-tdep.c (ia64_find_unwind_table): Update.
17763 * hppa-tdep.c (read_unwind_info): Update.
17764 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
17765 * dwarf2read.c (create_addrmap_from_index)
17766 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
17767 (process_psymtab_comp_unit_reader, add_partial_symbol)
17768 (add_partial_subprogram, process_full_comp_unit)
17769 (read_file_scope, read_func_scope, read_lexical_block_scope)
17770 (read_call_site_scope, dwarf2_rnglists_process)
17771 (dwarf2_ranges_process, dwarf2_ranges_read)
17772 (dwarf_decode_lines_1, var_decode_location, new_symbol)
17773 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
17774 Update.
17775 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
17776 Update.
17777 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
17778 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
17779 (process_one_symbol): Change type of "section_offsets".
17780 * ctfread.c (get_objfile_text_range): Update.
17781 * coffread.c (coff_symtab_read, enter_linenos)
17782 (process_coff_symbol): Update.
17783 * coff-pe-read.c (add_pe_forwarded_sym): Update.
17784 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
17785
456e800a
TT
177862020-01-08 Tom Tromey <tromey@adacore.com>
17787
17788 * dwarf2read.c (parse_macro_definition): Use std::string.
17789 (parse_macro_definition): Likewise.
17790
6dfa2fc2
TT
177912020-01-08 Tom Tromey <tromey@adacore.com>
17792
17793 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
17794 (ATTR_ALLOC_CHUNK): Remove.
17795
421d1616
TT
177962020-01-08 Tom Tromey <tromey@adacore.com>
17797
17798 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
17799
43816ebc
TT
178002020-01-08 Tom Tromey <tromey@adacore.com>
17801
17802 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
17803 (dwarf2_compute_name, open_dwo_file): Likewise.
17804 (process_enumeration_scope): Use std::vector.
17805 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
17806 (partial_die_info::fixup, dwarf2_start_subfile)
17807 (guess_full_die_structure_name, dwarf2_name): Likewise.
17808 (determine_prefix): Update.
17809 (guess_full_die_structure_name): Make return type const.
17810 (partial_die_full_name): Return unique_xmalloc_ptr.
17811 (DW_FIELD_ALLOC_CHUNK): Remove.
17812
4212d509
TT
178132020-01-07 Tom Tromey <tromey@adacore.com>
17814
17815 PR build/24937:
17816 * stap-probe.c (class stap_static_probe_ops): Add constructor.
17817
06a6207a
JT
178182020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
17819
17820 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
17821
153d79c4
AB
178222020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
17823
17824 * stack.c (print_frame_info): Move disassemble_next_line code
17825 inside source_print block.
17826
66182876
EZ
178272020-01-06 Eli Zaretskii <eliz@gnu.org>
17828
17829 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
17830 gdb/signals.h, as we are now using native signal symbols.
17831
cbfa8581
SV
178322020-01-06 Shahab Vahedi <shahab@synopsys.com>
17833
17834 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
17835 overflow by an early check of content vs threshold.
aac66a4c 17836 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
17837 Likewise.
17838
3f602821
EZ
178392020-01-06 Eli Zaretskii <eliz@gnu.org>
17840
17841 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
17842
a08c904d
JT
178432020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
17844
17845 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
17846 export table if no section contains it's RVA.
17847
89a65580
EZ
178482020-01-06 Eli Zaretskii <eliz@gnu.org>
17849
17850 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
17851
8b7fcda2
HD
178522020-01-06 Hannes Domani <ssbssa@yahoo.de>
17853
17854 * source.c (print_source_lines_base): Set last_line_listed.
17855
a61b4f69
SV
178562020-01-06 Shahab Vahedi <shahab@synopsys.com>
17857
17858 * tui/tui-disasm.c: Remove trailing spaces.
17859
559e7e50
EZ
178602020-01-06 Eli Zaretskii <eliz@gnu.org>
17861 Pedro Alves <palves@redhat.com>
17862
17863 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
17864 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
17865 (windows_gdb_signal_to_target): New function, uses the above
17866 enumeration to convert GDB internal signal codes to equivalent
17867 Windows codes.
17868 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
17869 * windows-nat.c: Include "gdb_wait.h".
17870 (get_windows_debug_event): Extract the fatal exception from the
17871 exit status and convert to the equivalent Posix signal number.
17872 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
17873 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
17874 * gdbsupport/gdb_wait.c: New file, implements
17875 windows_status_to_termsig.
17876 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
17877 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
17878
f2302a34
AB
178792020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
17880
17881 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
17882 show_layout.
17883
6a5206eb
LM
178842020-01-05 Luis Machado <luis.machado@linaro.org>
17885
17886 * aarch64-linux-nat.c
17887 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
17888 and bfd_mach_aarch64.
17889
6ec1d75e
PW
178902020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
17891
17892 * ui-file.c (stdio_file::can_emit_style_escape)
17893 (tee_file::can_emit_style_escape): Ensure style is used also on
17894 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
17895 to gdb_stdout.
17896 * main.c (set_gdb_data_directory): Use file style to output the
17897 warning that the given pathname is not a directory.
17898 * top.c (show_history_filename, gdb_safe_append_history)
17899 (show_gdb_datadir): Use file style.
17900
44f81a76
HD
179012020-01-03 Hannes Domani <ssbssa@yahoo.de>
17902
17903 * solib-target.c (struct lm_info_target):
17904 Change offsets to be a unique_xmalloc_ptr.
17905 (solib_target_relocate_section_addresses): Update.
17906
25057eb0
HD
179072020-01-03 Hannes Domani <ssbssa@yahoo.de>
17908
17909 * windows-nat.c (windows_clear_solib): Free so_list linked list.
17910
6e2118f5
BE
179112020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
17912
17913 * MAINTAINERS (Write After Approval): Add myself.
17914
8133c7dc
LM
179152020-01-02 Luis Machado <luis.machado@linaro.org>
17916
17917 * proc-service.c (get_ps_regcache): Remove reference to obsolete
17918 Cell BE architecture.
17919 * target.h (struct target_ops) <thread_architecture>: Likewise.
17920
48189bec
HD
179212020-01-01 Hannes Domani <ssbssa@yahoo.de>
17922
17923 * Makefile.in: Use INSTALL_PROGRAM_ENV.
17924
ead1063b
HD
179252020-01-01 Hannes Domani <ssbssa@yahoo.de>
17926
17927 * MAINTAINERS (Write After Approval): Add myself.
17928
e5d78223
JB
179292020-01-01 Joel Brobecker <brobecker@adacore.com>
17930
17931 * gdbarch.sh: Update copyright year range of generated files.
17932
b811d2c2
JB
179332020-01-01 Joel Brobecker <brobecker@adacore.com>
17934
17935 Update copyright year range in all GDB files.
17936
5f4def5c
JB
179372020-01-01 Joel Brobecker <brobecker@adacore.com>
17938
17939 * copyright.py: Convert to Python 3.
17940
51fd4002
JB
179412020-01-01 Joel Brobecker <brobecker@adacore.com>
17942
17943 * copyright.py: Adapt after move of gnulib directory from gdb
17944 directory to toplevel directory.
17945
5fb651f2
JB
179462020-01-01 Joel Brobecker <brobecker@adacore.com>
17947
17948 * copyright.py (main): Exit if run from the wrong directory.
17949
5dd8bf88
JB
179502020-01-01 Joel Brobecker <brobecker@adacore.com>
17951
17952 * top.c (print_gdb_version): Change copyright year to 2020.
17953
9f71dacb 179542020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 17955
9f71dacb 17956 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 17957
9f71dacb 17958For older changes see ChangeLog-2019.
c906108c
SS
17959\f
17960Local Variables:
17961mode: change-log
17962left-margin: 8
17963fill-column: 74
17964version-control: never
57da7796 17965coding: utf-8
c906108c 17966End: