ChangeLog entries for the previous commit.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
2
3 PR corefiles/11608
4 PR corefiles/18187
5 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
6 OFFSET. Verify if current mapping contains an ELF header.
7 (linux_find_memory_regions_full): Adjust call to
8 dump_mapping_p.
9
10 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
11 Kang Li <kanglictf@gmail.com>
12
13 PR gdb/21600
14
15 * dwarf2-frame.c (read_initial_length): Be consistent about using
16 unsigned representation of length.
17 (decode_frame_entry_1): Likewise. Check for wraparound of
18 end pointer as well as buffer overflow.
19
20 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
21
22 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
23 "vq".
24
25 2019-04-24 Tom Tromey <tromey@adacore.com>
26
27 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
28
29 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
30
31 * s12z-tdep.c (s12z_unwind_pc): Delete.
32 (s12z_unwind_sp): Delete.
33 (s12z_gdbarch_init): Don't register deleted functions with
34 gdbarch.
35
36 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
37
38 * rl78-tdep.c (rl78_unwind_sp): Delete.
39 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
40
41 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
42
43 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
44 (xstormy16_unwind_pc): Delete.
45 (xstormy16_dummy_id): Delete.
46 (xstormy16_gdbarch_init): Don't register deleted functions with
47 gdbarch.
48
49 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
50
51 * vax-tdep.c (vax_unwind_pc): Delete.
52 (vax_gdbarch_init): Don't register deleted function with gdbarch.
53
54 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
55
56 * v850-tdep.c (v850_unwind_sp): Delete.
57 (v850_unwind_pc): Delete.
58 (v850_dummy_id): Delete.
59 (v850_gdbarch_init): Don't register deleted functions with
60 gdbarch.
61
62 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
63
64 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
65 (tilegx_unwind_pc): Delete.
66 (tilegx_unwind_dummy_id): Delete.
67 (tilegx_gdbarch_init): Don't register deleted functions with
68 gdbarch.
69
70 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
71
72 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
73 (tic6x_dummy_id): Delete.
74 (tic6x_gdbarch_init): Don't register deleted functions with
75 gdbarch.
76
77 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
78
79 * sparc-tdep.c (sparc_unwind_pc): Delete.
80 (sparc32_gdbarch_init): Don't register deleted function with
81 gdbarch.
82
83 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
84
85 * sh-tdep.c (sh_unwind_sp): Delete.
86 (sh_unwind_pc): Delete.
87 (sh_dummy_id): Delete.
88 (sh_gdbarch_init): Don't register deleted functions with
89 gdbarch.
90
91 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
92
93 * score-tdep.c (score_unwind_sp): Delete.
94 (score_unwind_pc): Delete.
95 (score_dummy_id): Delete.
96 (score_gdbarch_init): Don't register deleted functions with
97 gdbarch.
98
99 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
100
101 * rx-tdep.c (rx_unwind_pc): Delete.
102 (rx_unwind_sp): Delete.
103 (rx_dummy_id): Delete.
104 (rx_gdbarch_init): Don't register deleted functions with
105 gdbarch. Update comment.
106
107 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
108
109 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
110 (rs6000_dummy_id): Delete.
111 (rs6000_gdbarch_init): Don't register deleted functions with
112 gdbarch.
113
114 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
115
116 * or1k-tdep.c (or1k_dummy_id): Delete.
117 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
118
119 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
120
121 * nios2-tdep.c (nios2_dummy_id): Delete.
122 (nios2_unwind_sp): Delete.
123 (nios2_gdbarch_init): Don't register deleted functions with
124 gdbarch.
125
126 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
127
128 * nds32-tdep.c (nds32_dummy_id): Delete.
129 (nds32_unwind_pc): Delete.
130 (nds32_unwind_sp): Delete.
131 (nds32_gdbarch_init): Don't register deleted functions with
132 gdbarch.
133
134 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
135
136 * msp430-tdep.c (msp430_unwind_pc): Delete.
137 (msp430_unwind_sp): Delete.
138 (msp430_dummy_id): Delete.
139 (msp430_gdbarch_init): Don't register deleted functions with
140 gdbarch.
141
142 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
143
144 * moxie-tdep.c (moxie_unwind_sp): Delete.
145 (moxie_unwind_pc): Delete.
146 (moxie_dummy_id): Delete.
147 (moxie_gdbarch_init): Don't register deleted functions with
148 gdbarch.
149
150 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
151
152 * mn10300-tdep.c (mn10300_dummy_id): Delete.
153 (mn10300_unwind_pc): Delete.
154 (mn10300_unwind_sp): Delete.
155 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
156 mn10300_unwind_sp.
157 (mn10300_frame_unwind_init): Don't register deleted functions with
158 gdbarch.
159
160 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
161
162 * mep-tdep.c (mep_unwind_pc): Delete.
163 (mep_unwind_sp): Delete.
164 (mep_dummy_id): Delete.
165 (mep_gdbarch_init): Don't register deleted functions with
166 gdbarch.
167
168 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
169
170 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
171 (m68hc11_unwind_sp): Delete.
172 (m68hc11_gdbarch_init): Don't register deleted functions with
173 gdbarch.
174
175 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
176
177 * m32r-tdep.c (m32r_unwind_sp): Delete.
178 (m32r_unwind_pc): Delete.
179 (m32r_dummy_id): Delete.
180 (m32r_gdbarch_init): Don't register deleted functions with
181 gdbarch.
182
183 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
184
185 * m32c-tdep.c (m32c_unwind_pc): Delete.
186 (m32c_unwind_sp): Delete.
187 (m32c_dummy_id): Delete.
188 (m32c_gdbarch_init): Don't register deleted functions with
189 gdbarch.
190
191 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
192
193 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
194 (lm32_unwind_pc): Delete.
195 (lm32_dummy_id): Delete.
196 (lm32_gdbarch_init): Don't register deleted functions with
197 gdbarch.
198
199 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
200
201 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
202 (iq2000_unwind_pc): Delete.
203 (iq2000_dummy_id): Delete.
204 (iq2000_gdbarch_init): Don't register deleted functions with
205 gdbarch.
206
207 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
208
209 * nds32-tdep.c (nds32_type_align): Delete.
210 (nds32_push_dummy_call): Use type_align instead.
211
212 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
213
214 * arm-tdep.c (arm_type_align): Only handle vector override case.
215 (arm_push_dummy_call): Use type_align.
216 (arm_gdbarch_init): Register arm_type_align gdbarch function.
217
218 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
219
220 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
221 case.
222 (pass_on_stack): Use type_align.
223 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
224 function.
225
226 2019-04-23 Tom Tromey <tromey@adacore.com>
227
228 * dwarf2read.c (line_header::file_name_at): Remove unused
229 overload.
230
231 2019-04-23 Tom de Vries <tdevries@suse.de>
232
233 PR gdb/24438
234 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
235 invocation.
236
237
238 2019-03-27 Ali Tamur <tamur@google.com>
239
240 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
241 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
242 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
243 (dwarf_expr_context::get_addr_index): Likewise
244 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
245 (symbol_needs_eval_context::get_addr_index): Likewise
246 (disassemble_dwarf_expression): Add DW_OP_addrx
247 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
248 (read_cutu_die_from_dwo): Update comment
249 (skip_one_die): Add DW_FORM_addrx
250 (read_attribute_value): Likewise
251 (var_decode_location): Add DW_OP_addrx
252 (dwarf2_const_value_attr): Add DW_FORM_addrx
253 (dump_die_shallow): Likewise
254 (dwarf2_fetch_constant_bytes): Likewise
255 (decode_locdesc): Add DW_OP_addrx
256 (skip_form_bytes): Add DW_FORM_addrx
257
258 2019-04-22 Ali Tamur <tamur@google.com>
259
260 * MAINTAINERS (Write After Approval): Add self.
261
262 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
263
264 * solib-svr4.c (get_svr4_info): Add pspace parameter.
265 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
266 (open_symbol_file_object): Likewise.
267 (svr4_default_sos): Add info parameter.
268 (svr4_read_so_list): Likewise.
269 (svr4_current_sos_direct): Adjust functions calls to pass down
270 info.
271 (svr4_current_sos_1): Add info parameter.
272 (svr4_current_sos): Call get_svr4_info, pass info down to
273 svr4_current_sos_1.
274 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
275 get_svr4_info.
276 (svr4_in_dynsym_resolve_code): Pass current_program_space to
277 get_svr4_info.
278 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
279 to get_svr4_info.
280 (probes_table_remove_objfile_probes): Likewise.
281 (register_solib_event_probe): Add info parameter.
282 (solist_update_incremental): Pass info parameter down to
283 svr4_read_so_list.
284 (disable_probes_interface): Add info parameter.
285 (svr4_handle_solib_event): Pass current_program_space to
286 get_svr4_info. Adjust disable_probes_interface cleanup.
287 (svr4_create_probe_breakpoints): Add info parameter, pass it
288 down to register_solib_event_probe.
289 (svr4_create_solib_event_breakpoints): Add info parameter,
290 pass it down to svr4_create_probe_breakpoints.
291 (enable_break): Pass info down to
292 svr4_create_solib_event_breakpoints.
293 (svr4_solib_create_inferior_hook): Pass current_program_space to
294 get_svr4_info.
295 (svr4_clear_solib): Likewise.
296
297 2019-04-22 Pedro Alves <palves@redhat.com>
298
299 * solib-svr4.c (svr4_free_objfile_observer): New.
300 (probe_and_action::objfile): New field.
301 (probes_table_htab_remove_objfile_probes)
302 (probes_table_remove_objfile_probes): New functions.
303 (register_solib_event_probe): Add 'objfile' parameter. Store it
304 in the new probe_and_action. Don't store the probe in 'lookup'.
305 (svr4_create_probe_breakpoints): Pass objfile to
306 register_solib_event_probe.
307 (_initialize_svr4_solib): Register a free_objfile observer.
308
309 2019-04-19 Tom Tromey <tom@tromey.com>
310
311 * common/queue.h: Remove.
312
313 2019-04-19 Tom Tromey <tom@tromey.com>
314
315 * event-loop.c: Don't include "common/queue.h".
316
317 2019-04-19 Tom Tromey <tom@tromey.com>
318
319 * remote.c (remote_target): Use delete.
320 * remote-notif.h: Include <list>, not "common/queue.h".
321 (notif_client_p): Remove typedef.
322 (remote_notif_state): Add constructor, destructor, initializer.
323 <notif_queue>: Now a std::list.
324 (remote_notif_state_xfree): Don't declare.
325 * remote-notif.c (remote_notif_process, handle_notification)
326 (remote_notif_state_allocate): Update.
327 (~remote_notif_state): Rename from remote_notif_state_xfree.
328
329 2019-04-19 Tom Tromey <tom@tromey.com>
330
331 * symfile.c (reread_symbols): Update.
332 * objfiles.c (objfile_register_static_link)
333 (objfile_lookup_static_link): Update
334 (~objfile) Don't delete static_links.
335 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
336
337 2019-04-19 Tom Tromey <tom@tromey.com>
338
339 * type-stack.h (struct type_stack) <insert>: Constify string.
340 * type-stack.c (type_stack::insert): Constify string.
341 * gdbtypes.h (lookup_template_type): Update.
342 (address_space_name_to_int): Update.
343 * gdbtypes.c (address_space_name_to_int): Make space_identifier
344 const.
345 (lookup_template_type): Make name const.
346 * c-exp.y: Update rules.
347 (lex_one_token, classify_name, classify_inner_name)
348 (c_print_token): Update.
349 * p-exp.y: Update rules.
350 (yylex): Update.
351 * f-exp.y: Update rules.
352 (yylex): Update.
353 * d-exp.y: Update rules.
354 (lex_one_token, classify_name, classify_inner_name): Update.
355 * parse.c (write_dollar_variable, copy_name): Return std::string.
356 * parser-defs.h (copy_name): Change return type.
357 * m2-exp.y: Update rules.
358 (yylex): Update.
359 * go-exp.y (lex_one_token): Update.
360 Update rules.
361 (classify_unsafe_function, classify_packaged_name)
362 (classify_name, yylex): Update.
363
364 2019-04-19 Sergei Trofimovich <siarheit@google.com>
365
366 * configure.ac: add --enable-source-highlight switch.
367 * configure: Regenerate.
368 * top.c (print_gdb_version): plumb --enable-source-highlight
369 status to "show configuration".
370
371 2019-04-19 Tom Tromey <tromey@adacore.com>
372
373 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
374 Check ADA_TYPE_P.
375 (empty_record, ada_template_to_fixed_record_type_1)
376 (template_to_static_fixed_type)
377 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
378 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
379 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
380 macros.
381
382 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
383
384 PR symtab/24423:
385 * source.c (print_source_lines_base): Advance "iter" when a
386 control character is seen.
387
388 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
389
390 * inferior.h (struct infcall_suspend_state_deleter):
391 Catch exception in destructor to avoid crash.
392
393 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
394
395 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
396 close to the add_com "shell".
397
398 2019-04-18 Tom Tromey <tromey@adacore.com>
399
400 * process-stratum-target.h (class process_stratum_target)
401 <stratum>: Add "final".
402
403 2019-04-17 Tom Tromey <tromey@adacore.com>
404
405 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
406 against nullptr before use.
407
408 2019-04-17 Alan Hayward <alan.hayward@arm.com>
409
410 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
411
412 2019-04-17 Jim Wilson <jimw@sifive.com>
413 Andrew Burgess <andrew.burgess@embecosm.com>
414
415 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
416 code read might fail, assume 4-byte breakpoint in that case.
417
418 2019-04-15 Leszek Swirski <leszeks@google.com>
419
420 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
421 rather than a hand-rolled POD check when checking for forced MEMORY
422 classification.
423
424 2019-04-15 Alan Hayward <alan.hayward@arm.com>
425
426 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
427 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
428 function.
429 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
430 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
431 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
432 declaration.
433
434 2019-04-15 Alan Hayward <alan.hayward@arm.com>
435
436 * aarch64-linux-nat.c
437 (aarch64_linux_nat_target::thread_architecture): Add override.
438 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
439 each VQ.
440
441 2019-04-15 Alan Hayward <alan.hayward@arm.com>
442
443 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
444
445 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
446
447 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
448 target types of size 96-bits, add some additional comments, and
449 check that the builtin type we found was the correct size.
450
451 2019-04-12 Eli Zaretskii <eliz@gnu.org>
452
453 * utils.c (prompt_for_continue): Don't restore the styling at the
454 end, as applied_style has the wrong value. This fixes styling in
455 long lists of file names that are interrupted by the "Continue?"
456 prompt.
457
458 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
459
460 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
461 * c-lang.c (c_language_defn): Likewise.
462 (cplus_language_defn): Likewise.
463 (asm_language_defn): Likewise.
464 (minimal_language_defn): Likewise.
465 * d-lang.c (d_language_defn): Likewise.
466 * f-lang.c (f_language_defn): Likewise.
467 * go-lang.c (go_language_defn): Likewise.
468 * language.c (unknown_language_defn): Likewise.
469 (auto_language_defn): Likewise.
470 * language.h (struct language_defn): Remove la_magic field.
471 (LANG_MAGIC): Delete.
472 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
473 * objc-lang.c (objc_language_defn): Likewise.
474 * opencl-lang.c (opencl_language_defn): Likewise.
475 * p-lang.c (pascal_language_defn): Likewise.
476 * rust-lang.c (rust_language_defn): Likewise.
477
478 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
479
480 * riscv-tdep.c (riscv_type_align): New function.
481 (riscv_type_alignment): Delete.
482 (riscv_arg_location): Use 'type_align'.
483 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
484
485 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
486
487 * gdbtypes.c (type_align): A struct with no non-static fields also
488 has alignment of 1.
489
490 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
491
492 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
493 component to 0.
494 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
495 member.
496 (riscv_struct_info::analyse): New implementation using new
497 analyse_inner member function.
498 (riscv_struct_info::field_offset): New member function.
499 (riscv_struct_info::m_offsets): New member variable.
500 (riscv_struct_info::analyse_inner): New private member function,
501 takes the old implementation of riscv_struct_info::analyse but
502 extended to track field offsets.
503 (riscv_call_arg_struct): Update the struct folding special cases
504 to handle cases where empty C++ structs, which are non-zero
505 length, are found.
506 (riscv_arg_location): Initialise the length of each location, a
507 non-zero length now indicates the location is in use.
508 (riscv_push_dummy_call): Allow for the first location having a
509 non-zero offset when setting up arguments.
510 (riscv_return_value): Likewise, but for return values.
511
512 2019-04-11 Tom Tromey <tromey@adacore.com>
513
514 * utils.c (internal_vproblem): Make "msg" const.
515
516 2019-04-11 Alan Hayward <alan.hayward@arm.com>
517
518 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
519 * trad-frame.c (trad_frame_reset_saved_regs): New function.
520 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
521 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
522
523 2019-04-10 Kevin Buettner <kevinb@redhat.com>
524
525 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
526 function.
527 (fill_gregset): Call amd64_linux_collect_native_gregset instead
528 of amd64_collect_native_gregset.
529 (amd64_linux_nat_target::store_registers): Likewise.
530
531 2019-04-10 Tom Tromey <tom@tromey.com>
532
533 * symtab.c (lookup_global_symbol_from_objfile)
534 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
535 * objfiles.h (class separate_debug_iterator): New.
536 (class separate_debug_range): New.
537 (struct objfile) <separate_debug_objfiles>: New method.
538 (objfile_separate_debug_iterate): Don't declare.
539 * objfiles.c (separate_debug_iterator::operator++): Rename from
540 objfile_separate_debug_iterate.
541 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
542 iterator.
543 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
544 iterator.
545
546 2019-04-10 Tom Tromey <tom@tromey.com>
547
548 * symfile.c (reread_symbols): Remove old comment.
549 * objfiles.c (free_all_objfiles): Fix a typo.
550
551 2019-04-10 Tom Tromey <tom@tromey.com>
552
553 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
554 * minsyms.c (lookup_minimal_symbol): Use foreach.
555 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
556 (lookup_minimal_symbol_solib_trampoline): Likewise.
557 * symfile.c (reread_symbols): Use foreach.
558
559 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
560 Tom Tromey <tromey@adacore.com>
561
562 PR rust/24414:
563 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
564 (rust_lex_int_test): Change "value" to be LONGEST.
565 (rust_lex_tests): Add test for long integer literal.
566
567 2019-04-09 Tom Tromey <tromey@adacore.com>
568
569 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
570 to bool.
571 (extended_remote_target::attach): Update.
572 (remote_target::remote_notice_new_inferior): Update.
573 (remote_target::add_current_inferior_and_thread): Update.
574 * inferior.c (exit_inferior_1): Use "false".
575 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
576
577 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
578
579 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
580 the "start" command.
581
582 2019-04-08 Kevin Buettner <kevinb@redhat.com>
583
584 * python/py-inferior.c (infpy_thread_from_thread_handle):
585 Adjust comments to reflect renaming of thread_from_thread_handle
586 to thread_from_handle. Adjust keywords. Fix type error message.
587 (inferior_object_methods): Add thread_from_handle. Retain
588 thread_from_thread_handle, but mark it as deprecated.
589
590 2019-04-08 Kevin Buettner <kevinb@redhat.com>
591
592 * gdbthread.h (find_thread_by_handle): Revise declaration.
593 * thread.c (find_thread_by_handle): Likewise. Adjust
594 implementation too.
595 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
596 support for buffer objects as handles.
597
598 2019-04-08 Kevin Buettner <kevinb@redhat.com>
599
600 * python/py-infthread.c (thpy_thread_handle): New function.
601 (thread_object_methods): Register thpy_thread_handle.
602
603 2019-04-08 Kevin Buettner <kevinb@redhat.com>
604
605 * gdbthread.h (thread_to_thread_handle): Declare.
606 * thread.c (gdbtypes.h): Include.
607 (thread_to_thread_handle): New function.
608
609 * target.h (struct target_ops): Add thread_info_to_thread_handle.
610 (target_thread_info_to_thread_handle): Declare.
611 * target.c (target_thread_info_to_thread_handle): New function.
612 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
613 * target-delegates.c: Regenerate.
614
615 * linux-thread-db.c (class thread_db_target): Add method
616 thread_info_to_thread_handle.
617 (thread_db_target::thread_info_to_thread_handle): Define.
618 * remote.c (class remote_target): Add new method
619 thread_info_to_thread_handle.
620 (remote_target::thread_info_to_thread_handle): Define.
621
622 2019-04-08 Pedro Alves <palves@redhat.com>
623
624 * common/common-exceptions.c (throw_exception): Don't create
625 named object to throw; throw directly.
626 (throw_it): Likewise. Don't initialize gdb_exception::message
627 here, with new; pass FMT and AP to the ctor instead.
628 * common/common-exceptions.h: Include <string>.
629 (gdb_exception::gdb_exception(enum return_reason, enum errors,
630 const char *, va_list)): New ctor. Use std::make_shared.
631 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
632 errors)): Delete.
633 (gdb_exception_error::gdb_exception_error(enum errors, const char
634 *, va_list)): New.
635 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
636 Add assertion.
637 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
638 errors)): Delete.
639 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
640 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
641 Add assertion.
642
643 2019-04-08 Tom Tromey <tom@tromey.com>
644
645 * valops.c (value_rtti_indirect_type): Replace throw_exception
646 with throw.
647 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
648 with throw.
649 * thread.c (thr_try_catch_cmd): Replace throw_exception with
650 throw.
651 * target.c (target_translate_tls_address): Replace throw_exception
652 with throw.
653 * stack.c (frame_apply_command_count): Replace throw_exception
654 with throw.
655 * solib-spu.c (append_ocl_sos): Replace throw_exception with
656 throw.
657 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
658 with throw.
659 * rs6000-tdep.c (rs6000_frame_cache)
660 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
661 * remote.c: Replace throw_exception with throw.
662 * record-full.c (record_full_message, record_full_wait_1)
663 (record_full_restore): Replace throw_exception with throw.
664 * record-btrace.c:
665 (get_thread_current_frame_id, record_btrace_start_replaying)
666 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
667 (cmd_record_btrace_start): Replace throw_exception with throw.
668 * parse.c (parse_exp_in_context_1): Replace throw_exception with
669 throw.
670 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
671 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
672 * linespec.c:
673 (find_linespec_symbols): Replace throw_exception with throw.
674 * infrun.c (displaced_step_prepare, resume): Replace
675 throw_exception with throw.
676 * infcmd.c (post_create_inferior): Replace throw_exception with
677 throw.
678 * inf-loop.c (inferior_event_handler): Replace throw_exception
679 with throw.
680 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
681 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
682 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
683 (get_prev_frame_always, get_frame_pc_if_available)
684 (get_frame_address_in_block_if_available, get_frame_language):
685 Replace throw_exception with throw.
686 * frame-unwind.c (frame_unwind_try_unwinder): Replace
687 throw_exception with throw.
688 * eval.c (fetch_subexp_value, evaluate_var_value)
689 (evaluate_funcall, evaluate_subexp_standard): Replace
690 throw_exception with throw.
691 * dwarf2loc.c (call_site_find_chain)
692 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
693 Replace throw_exception with throw.
694 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
695 with throw.
696 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
697 throw.
698 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
699 * completer.c (complete_line_internal): Replace throw_exception
700 with throw.
701 * compile/compile-object-run.c (compile_object_run): Replace
702 throw_exception with throw.
703 * cli/cli-script.c (process_next_line): Replace throw_exception
704 with throw.
705 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
706 (btrace_enable, btrace_maint_update_pt_packets): Replace
707 throw_exception with throw.
708 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
709 throw_exception with throw.
710 * break-catch-throw.c (re_set_exception_catchpoint): Replace
711 throw_exception with throw.
712 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
713 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
714 * aarch64-tdep.c (aarch64_make_prologue_cache)
715 (aarch64_make_stub_cache): Replace throw_exception with throw.
716
717 2019-04-08 Tom Tromey <tom@tromey.com>
718
719 * common/common-exceptions.c (throw_exception): Rename from
720 throw_exception_cxx. Remove old copy. Make argument const.
721 (throw_it): Create and throw exception objects directly.
722 * common/common-exceptions.h (throw_exception): Make argument
723 const.
724 (struct gdb_exception_error): Add constructor.
725 (struct gdb_exception_quit): Add constructor.
726
727 2019-04-08 Tom Tromey <tom@tromey.com>
728
729 * common/common-exceptions.h (exception_rethrow): Don't declare.
730 (TRY_SJLJ): Update comment.
731 (TRY, CATCH, END_CATCH): Remove.
732 * common/common-exceptions.c (exception_rethrow): Remove.
733
734 2019-04-08 Tom Tromey <tom@tromey.com>
735
736 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
737 Remove.
738 (gdb_exception_error): Rename from
739 gdb_exception_RETURN_MASK_ERROR.
740 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
741 (gdb_quit_bad_alloc): Update.
742 * aarch64-tdep.c: Update.
743 * ada-lang.c: Update.
744 * ada-typeprint.c: Update.
745 * ada-valprint.c: Update.
746 * amd64-tdep.c: Update.
747 * arch-utils.c: Update.
748 * break-catch-throw.c: Update.
749 * breakpoint.c: Update.
750 * btrace.c: Update.
751 * c-varobj.c: Update.
752 * cli/cli-cmds.c: Update.
753 * cli/cli-interp.c: Update.
754 * cli/cli-script.c: Update.
755 * common/common-exceptions.c: Update.
756 * common/new-op.c: Update.
757 * common/selftest.c: Update.
758 * compile/compile-c-symbols.c: Update.
759 * compile/compile-cplus-symbols.c: Update.
760 * compile/compile-object-load.c: Update.
761 * compile/compile-object-run.c: Update.
762 * completer.c: Update.
763 * corelow.c: Update.
764 * cp-abi.c: Update.
765 * cp-support.c: Update.
766 * cp-valprint.c: Update.
767 * darwin-nat.c: Update.
768 * disasm-selftests.c: Update.
769 * dtrace-probe.c: Update.
770 * dwarf-index-cache.c: Update.
771 * dwarf-index-write.c: Update.
772 * dwarf2-frame-tailcall.c: Update.
773 * dwarf2-frame.c: Update.
774 * dwarf2loc.c: Update.
775 * dwarf2read.c: Update.
776 * eval.c: Update.
777 * event-loop.c: Update.
778 * event-top.c: Update.
779 * exec.c: Update.
780 * f-valprint.c: Update.
781 * fbsd-tdep.c: Update.
782 * frame-unwind.c: Update.
783 * frame.c: Update.
784 * gdbtypes.c: Update.
785 * gnu-v3-abi.c: Update.
786 * guile/guile-internal.h: Update.
787 * guile/scm-block.c: Update.
788 * guile/scm-breakpoint.c: Update.
789 * guile/scm-cmd.c: Update.
790 * guile/scm-disasm.c: Update.
791 * guile/scm-frame.c: Update.
792 * guile/scm-lazy-string.c: Update.
793 * guile/scm-math.c: Update.
794 * guile/scm-param.c: Update.
795 * guile/scm-ports.c: Update.
796 * guile/scm-pretty-print.c: Update.
797 * guile/scm-symbol.c: Update.
798 * guile/scm-symtab.c: Update.
799 * guile/scm-type.c: Update.
800 * guile/scm-value.c: Update.
801 * i386-linux-tdep.c: Update.
802 * i386-tdep.c: Update.
803 * inf-loop.c: Update.
804 * infcall.c: Update.
805 * infcmd.c: Update.
806 * infrun.c: Update.
807 * jit.c: Update.
808 * language.c: Update.
809 * linespec.c: Update.
810 * linux-fork.c: Update.
811 * linux-nat.c: Update.
812 * linux-tdep.c: Update.
813 * linux-thread-db.c: Update.
814 * main.c: Update.
815 * mi/mi-cmd-break.c: Update.
816 * mi/mi-cmd-stack.c: Update.
817 * mi/mi-interp.c: Update.
818 * mi/mi-main.c: Update.
819 * objc-lang.c: Update.
820 * p-valprint.c: Update.
821 * parse.c: Update.
822 * ppc-linux-tdep.c: Update.
823 * printcmd.c: Update.
824 * python/py-arch.c: Update.
825 * python/py-breakpoint.c: Update.
826 * python/py-cmd.c: Update.
827 * python/py-finishbreakpoint.c: Update.
828 * python/py-frame.c: Update.
829 * python/py-framefilter.c: Update.
830 * python/py-gdb-readline.c: Update.
831 * python/py-inferior.c: Update.
832 * python/py-infthread.c: Update.
833 * python/py-lazy-string.c: Update.
834 * python/py-linetable.c: Update.
835 * python/py-objfile.c: Update.
836 * python/py-param.c: Update.
837 * python/py-prettyprint.c: Update.
838 * python/py-progspace.c: Update.
839 * python/py-record-btrace.c: Update.
840 * python/py-record.c: Update.
841 * python/py-symbol.c: Update.
842 * python/py-type.c: Update.
843 * python/py-unwind.c: Update.
844 * python/py-utils.c: Update.
845 * python/py-value.c: Update.
846 * python/python.c: Update.
847 * record-btrace.c: Update.
848 * record-full.c: Update.
849 * remote-fileio.c: Update.
850 * remote.c: Update.
851 * riscv-tdep.c: Update.
852 * rs6000-aix-tdep.c: Update.
853 * rs6000-tdep.c: Update.
854 * rust-exp.y: Update.
855 * rust-lang.c: Update.
856 * s390-tdep.c: Update.
857 * selftest-arch.c: Update.
858 * solib-dsbt.c: Update.
859 * solib-frv.c: Update.
860 * solib-spu.c: Update.
861 * solib-svr4.c: Update.
862 * solib.c: Update.
863 * sparc64-linux-tdep.c: Update.
864 * stack.c: Update.
865 * symfile-mem.c: Update.
866 * symmisc.c: Update.
867 * target.c: Update.
868 * thread.c: Update.
869 * top.c: Update.
870 * tracefile-tfile.c: Update.
871 * tui/tui.c: Update.
872 * typeprint.c: Update.
873 * unittests/cli-utils-selftests.c: Update.
874 * unittests/parse-connection-spec-selftests.c: Update.
875 * valops.c: Update.
876 * valprint.c: Update.
877 * value.c: Update.
878 * varobj.c: Update.
879 * windows-nat.c: Update.
880 * x86-linux-nat.c: Update.
881 * xml-support.c: Update.
882
883 2019-04-08 Tom Tromey <tom@tromey.com>
884
885 * xml-support.c: Use C++ exception handling.
886 * x86-linux-nat.c: Use C++ exception handling.
887 * windows-nat.c: Use C++ exception handling.
888 * varobj.c: Use C++ exception handling.
889 * value.c: Use C++ exception handling.
890 * valprint.c: Use C++ exception handling.
891 * valops.c: Use C++ exception handling.
892 * unittests/parse-connection-spec-selftests.c: Use C++ exception
893 handling.
894 * unittests/cli-utils-selftests.c: Use C++ exception handling.
895 * typeprint.c: Use C++ exception handling.
896 * tui/tui.c: Use C++ exception handling.
897 * tracefile-tfile.c: Use C++ exception handling.
898 * top.c: Use C++ exception handling.
899 * thread.c: Use C++ exception handling.
900 * target.c: Use C++ exception handling.
901 * symmisc.c: Use C++ exception handling.
902 * symfile-mem.c: Use C++ exception handling.
903 * stack.c: Use C++ exception handling.
904 * sparc64-linux-tdep.c: Use C++ exception handling.
905 * solib.c: Use C++ exception handling.
906 * solib-svr4.c: Use C++ exception handling.
907 * solib-spu.c: Use C++ exception handling.
908 * solib-frv.c: Use C++ exception handling.
909 * solib-dsbt.c: Use C++ exception handling.
910 * selftest-arch.c: Use C++ exception handling.
911 * s390-tdep.c: Use C++ exception handling.
912 * rust-lang.c: Use C++ exception handling.
913 * rust-exp.y: Use C++ exception handling.
914 * rs6000-tdep.c: Use C++ exception handling.
915 * rs6000-aix-tdep.c: Use C++ exception handling.
916 * riscv-tdep.c: Use C++ exception handling.
917 * remote.c: Use C++ exception handling.
918 * remote-fileio.c: Use C++ exception handling.
919 * record-full.c: Use C++ exception handling.
920 * record-btrace.c: Use C++ exception handling.
921 * python/python.c: Use C++ exception handling.
922 * python/py-value.c: Use C++ exception handling.
923 * python/py-utils.c: Use C++ exception handling.
924 * python/py-unwind.c: Use C++ exception handling.
925 * python/py-type.c: Use C++ exception handling.
926 * python/py-symbol.c: Use C++ exception handling.
927 * python/py-record.c: Use C++ exception handling.
928 * python/py-record-btrace.c: Use C++ exception handling.
929 * python/py-progspace.c: Use C++ exception handling.
930 * python/py-prettyprint.c: Use C++ exception handling.
931 * python/py-param.c: Use C++ exception handling.
932 * python/py-objfile.c: Use C++ exception handling.
933 * python/py-linetable.c: Use C++ exception handling.
934 * python/py-lazy-string.c: Use C++ exception handling.
935 * python/py-infthread.c: Use C++ exception handling.
936 * python/py-inferior.c: Use C++ exception handling.
937 * python/py-gdb-readline.c: Use C++ exception handling.
938 * python/py-framefilter.c: Use C++ exception handling.
939 * python/py-frame.c: Use C++ exception handling.
940 * python/py-finishbreakpoint.c: Use C++ exception handling.
941 * python/py-cmd.c: Use C++ exception handling.
942 * python/py-breakpoint.c: Use C++ exception handling.
943 * python/py-arch.c: Use C++ exception handling.
944 * printcmd.c: Use C++ exception handling.
945 * ppc-linux-tdep.c: Use C++ exception handling.
946 * parse.c: Use C++ exception handling.
947 * p-valprint.c: Use C++ exception handling.
948 * objc-lang.c: Use C++ exception handling.
949 * mi/mi-main.c: Use C++ exception handling.
950 * mi/mi-interp.c: Use C++ exception handling.
951 * mi/mi-cmd-stack.c: Use C++ exception handling.
952 * mi/mi-cmd-break.c: Use C++ exception handling.
953 * main.c: Use C++ exception handling.
954 * linux-thread-db.c: Use C++ exception handling.
955 * linux-tdep.c: Use C++ exception handling.
956 * linux-nat.c: Use C++ exception handling.
957 * linux-fork.c: Use C++ exception handling.
958 * linespec.c: Use C++ exception handling.
959 * language.c: Use C++ exception handling.
960 * jit.c: Use C++ exception handling.
961 * infrun.c: Use C++ exception handling.
962 * infcmd.c: Use C++ exception handling.
963 * infcall.c: Use C++ exception handling.
964 * inf-loop.c: Use C++ exception handling.
965 * i386-tdep.c: Use C++ exception handling.
966 * i386-linux-tdep.c: Use C++ exception handling.
967 * guile/scm-value.c: Use C++ exception handling.
968 * guile/scm-type.c: Use C++ exception handling.
969 * guile/scm-symtab.c: Use C++ exception handling.
970 * guile/scm-symbol.c: Use C++ exception handling.
971 * guile/scm-pretty-print.c: Use C++ exception handling.
972 * guile/scm-ports.c: Use C++ exception handling.
973 * guile/scm-param.c: Use C++ exception handling.
974 * guile/scm-math.c: Use C++ exception handling.
975 * guile/scm-lazy-string.c: Use C++ exception handling.
976 * guile/scm-frame.c: Use C++ exception handling.
977 * guile/scm-disasm.c: Use C++ exception handling.
978 * guile/scm-cmd.c: Use C++ exception handling.
979 * guile/scm-breakpoint.c: Use C++ exception handling.
980 * guile/scm-block.c: Use C++ exception handling.
981 * guile/guile-internal.h: Use C++ exception handling.
982 * gnu-v3-abi.c: Use C++ exception handling.
983 * gdbtypes.c: Use C++ exception handling.
984 * frame.c: Use C++ exception handling.
985 * frame-unwind.c: Use C++ exception handling.
986 * fbsd-tdep.c: Use C++ exception handling.
987 * f-valprint.c: Use C++ exception handling.
988 * exec.c: Use C++ exception handling.
989 * event-top.c: Use C++ exception handling.
990 * event-loop.c: Use C++ exception handling.
991 * eval.c: Use C++ exception handling.
992 * dwarf2read.c: Use C++ exception handling.
993 * dwarf2loc.c: Use C++ exception handling.
994 * dwarf2-frame.c: Use C++ exception handling.
995 * dwarf2-frame-tailcall.c: Use C++ exception handling.
996 * dwarf-index-write.c: Use C++ exception handling.
997 * dwarf-index-cache.c: Use C++ exception handling.
998 * dtrace-probe.c: Use C++ exception handling.
999 * disasm-selftests.c: Use C++ exception handling.
1000 * darwin-nat.c: Use C++ exception handling.
1001 * cp-valprint.c: Use C++ exception handling.
1002 * cp-support.c: Use C++ exception handling.
1003 * cp-abi.c: Use C++ exception handling.
1004 * corelow.c: Use C++ exception handling.
1005 * completer.c: Use C++ exception handling.
1006 * compile/compile-object-run.c: Use C++ exception handling.
1007 * compile/compile-object-load.c: Use C++ exception handling.
1008 * compile/compile-cplus-symbols.c: Use C++ exception handling.
1009 * compile/compile-c-symbols.c: Use C++ exception handling.
1010 * common/selftest.c: Use C++ exception handling.
1011 * common/new-op.c: Use C++ exception handling.
1012 * cli/cli-script.c: Use C++ exception handling.
1013 * cli/cli-interp.c: Use C++ exception handling.
1014 * cli/cli-cmds.c: Use C++ exception handling.
1015 * c-varobj.c: Use C++ exception handling.
1016 * btrace.c: Use C++ exception handling.
1017 * breakpoint.c: Use C++ exception handling.
1018 * break-catch-throw.c: Use C++ exception handling.
1019 * arch-utils.c: Use C++ exception handling.
1020 * amd64-tdep.c: Use C++ exception handling.
1021 * ada-valprint.c: Use C++ exception handling.
1022 * ada-typeprint.c: Use C++ exception handling.
1023 * ada-lang.c: Use C++ exception handling.
1024 * aarch64-tdep.c: Use C++ exception handling.
1025
1026 2019-04-08 Tom Tromey <tom@tromey.com>
1027
1028 * xml-support.c (gdb_xml_parser::parse): Update.
1029 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
1030 * value.c (show_convenience): Update.
1031 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
1032 (test_parse_flags_qcs): Update.
1033 * thread.c (thr_try_catch_cmd): Update.
1034 * target.c (target_translate_tls_address): Update.
1035 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
1036 (info_frame_command_core, frame_apply_command_count): Update.
1037 * rust-exp.y (rust_lex_exception_test): Update.
1038 * riscv-tdep.c (riscv_print_one_register_info): Update.
1039 * remote.c (remote_target::enable_btrace): Update.
1040 * record-btrace.c (record_btrace_enable_warn): Update.
1041 * python/py-utils.c (gdbpy_convert_exception): Update.
1042 * printcmd.c (do_one_display, print_variable_and_value): Update.
1043 * mi/mi-main.c (mi_print_exception): Update.
1044 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
1045 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
1046 * linux-nat.c (linux_nat_target::attach): Update.
1047 * linux-fork.c (class scoped_switch_fork_info): Update.
1048 * infrun.c (displaced_step_prepare): Update.
1049 * infcall.c (call_function_by_hand_dummy): Update.
1050 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
1051 * gnu-v3-abi.c (print_one_vtable): Update.
1052 * frame.c (get_prev_frame_always): Update.
1053 * f-valprint.c (info_common_command_for_block): Update.
1054 * exec.c (try_open_exec_file): Update.
1055 * exceptions.c (print_exception, exception_print)
1056 (exception_fprintf, exception_print_same): Update.
1057 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
1058 * dwarf-index-cache.c (index_cache::store)
1059 (index_cache::lookup_gdb_index): Update.
1060 * darwin-nat.c (maybe_cache_shell): Update.
1061 * cp-valprint.c (cp_print_value_fields): Update.
1062 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
1063 (gcc_cplus_symbol_address): Update.
1064 * compile/compile-c-symbols.c (gcc_convert_symbol)
1065 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
1066 * common/selftest.c: Update.
1067 * common/common-exceptions.h (struct gdb_exception) <message>: Now
1068 a std::string.
1069 (exception_try_scope_entry, exception_try_scope_exit): Don't
1070 declare.
1071 (struct exception_try_scope): Remove.
1072 (TRY): Don't use exception_try_scope.
1073 (struct gdb_exception): Add constructor, operator=.
1074 <what>: New method.
1075 (struct gdb_exception_RETURN_MASK_ALL)
1076 (struct gdb_exception_RETURN_MASK_ERROR)
1077 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
1078 (struct gdb_quit_bad_alloc): Update.
1079 * common/common-exceptions.c (exception_none): Change
1080 initializer.
1081 (struct catcher) <state, exception>: Initialize inline.
1082 <prev>: Remove member.
1083 (current_catcher): Remove.
1084 (catchers): New global.
1085 (exceptions_state_mc_init): Simplify.
1086 (catcher_pop): Remove.
1087 (exceptions_state_mc, exceptions_state_mc_catch): Update.
1088 (try_scope_depth, exception_try_scope_entry)
1089 (exception_try_scope_exit): Remove.
1090 (throw_exception_sjlj): Update.
1091 (exception_messages, exception_messages_size): Remove.
1092 (throw_it): Simplify.
1093 (gdb_exception_sliced_copy): Remove.
1094 (throw_exception_cxx): Update.
1095 * cli/cli-script.c (script_from_file): Update.
1096 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
1097 Update.
1098 * ada-valprint.c (ada_val_print): Update.
1099 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
1100 (create_excep_cond_exprs): Update.
1101
1102 2019-04-08 Tom Tromey <tom@tromey.com>
1103
1104 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
1105 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
1106 (TRY, CATCH, END_CATCH): Remove some definitions.
1107 * common/common-exceptions.c: Don't use GDB_XCPT.
1108 (catcher_list_size): Remove.
1109 (throw_exception, throw_it): Simplify.
1110
1111 2019-04-05 Tom Tromey <tom@tromey.com>
1112
1113 Revert the header-sorting patch.
1114 * ft32-tdep.c: Revert.
1115 * frv-tdep.c: Revert.
1116 * frv-linux-tdep.c: Revert.
1117 * frame.c: Revert.
1118 * frame-unwind.c: Revert.
1119 * frame-base.c: Revert.
1120 * fork-child.c: Revert.
1121 * findvar.c: Revert.
1122 * findcmd.c: Revert.
1123 * filesystem.c: Revert.
1124 * filename-seen-cache.h: Revert.
1125 * filename-seen-cache.c: Revert.
1126 * fbsd-tdep.c: Revert.
1127 * fbsd-nat.h: Revert.
1128 * fbsd-nat.c: Revert.
1129 * f-valprint.c: Revert.
1130 * f-typeprint.c: Revert.
1131 * f-lang.c: Revert.
1132 * extension.h: Revert.
1133 * extension.c: Revert.
1134 * extension-priv.h: Revert.
1135 * expprint.c: Revert.
1136 * exec.h: Revert.
1137 * exec.c: Revert.
1138 * exceptions.c: Revert.
1139 * event-top.c: Revert.
1140 * event-loop.c: Revert.
1141 * eval.c: Revert.
1142 * elfread.c: Revert.
1143 * dwarf2read.h: Revert.
1144 * dwarf2read.c: Revert.
1145 * dwarf2loc.c: Revert.
1146 * dwarf2expr.h: Revert.
1147 * dwarf2expr.c: Revert.
1148 * dwarf2-frame.c: Revert.
1149 * dwarf2-frame-tailcall.c: Revert.
1150 * dwarf-index-write.h: Revert.
1151 * dwarf-index-write.c: Revert.
1152 * dwarf-index-common.c: Revert.
1153 * dwarf-index-cache.h: Revert.
1154 * dwarf-index-cache.c: Revert.
1155 * dummy-frame.c: Revert.
1156 * dtrace-probe.c: Revert.
1157 * disasm.h: Revert.
1158 * disasm.c: Revert.
1159 * disasm-selftests.c: Revert.
1160 * dictionary.c: Revert.
1161 * dicos-tdep.c: Revert.
1162 * demangle.c: Revert.
1163 * dcache.h: Revert.
1164 * dcache.c: Revert.
1165 * darwin-nat.h: Revert.
1166 * darwin-nat.c: Revert.
1167 * darwin-nat-info.c: Revert.
1168 * d-valprint.c: Revert.
1169 * d-namespace.c: Revert.
1170 * d-lang.c: Revert.
1171 * ctf.c: Revert.
1172 * csky-tdep.c: Revert.
1173 * csky-linux-tdep.c: Revert.
1174 * cris-tdep.c: Revert.
1175 * cris-linux-tdep.c: Revert.
1176 * cp-valprint.c: Revert.
1177 * cp-support.c: Revert.
1178 * cp-namespace.c: Revert.
1179 * cp-abi.c: Revert.
1180 * corelow.c: Revert.
1181 * corefile.c: Revert.
1182 * continuations.c: Revert.
1183 * completer.h: Revert.
1184 * completer.c: Revert.
1185 * complaints.c: Revert.
1186 * coffread.c: Revert.
1187 * coff-pe-read.c: Revert.
1188 * cli-out.h: Revert.
1189 * cli-out.c: Revert.
1190 * charset.c: Revert.
1191 * c-varobj.c: Revert.
1192 * c-valprint.c: Revert.
1193 * c-typeprint.c: Revert.
1194 * c-lang.c: Revert.
1195 * buildsym.c: Revert.
1196 * buildsym-legacy.c: Revert.
1197 * build-id.h: Revert.
1198 * build-id.c: Revert.
1199 * btrace.c: Revert.
1200 * bsd-uthread.c: Revert.
1201 * breakpoint.h: Revert.
1202 * breakpoint.c: Revert.
1203 * break-catch-throw.c: Revert.
1204 * break-catch-syscall.c: Revert.
1205 * break-catch-sig.c: Revert.
1206 * blockframe.c: Revert.
1207 * block.c: Revert.
1208 * bfin-tdep.c: Revert.
1209 * bfin-linux-tdep.c: Revert.
1210 * bfd-target.c: Revert.
1211 * bcache.c: Revert.
1212 * ax-general.c: Revert.
1213 * ax-gdb.h: Revert.
1214 * ax-gdb.c: Revert.
1215 * avr-tdep.c: Revert.
1216 * auxv.c: Revert.
1217 * auto-load.c: Revert.
1218 * arm-wince-tdep.c: Revert.
1219 * arm-tdep.c: Revert.
1220 * arm-symbian-tdep.c: Revert.
1221 * arm-pikeos-tdep.c: Revert.
1222 * arm-obsd-tdep.c: Revert.
1223 * arm-nbsd-tdep.c: Revert.
1224 * arm-nbsd-nat.c: Revert.
1225 * arm-linux-tdep.c: Revert.
1226 * arm-linux-nat.c: Revert.
1227 * arm-fbsd-tdep.c: Revert.
1228 * arm-fbsd-nat.c: Revert.
1229 * arm-bsd-tdep.c: Revert.
1230 * arch-utils.c: Revert.
1231 * arc-tdep.c: Revert.
1232 * arc-newlib-tdep.c: Revert.
1233 * annotate.h: Revert.
1234 * annotate.c: Revert.
1235 * amd64-windows-tdep.c: Revert.
1236 * amd64-windows-nat.c: Revert.
1237 * amd64-tdep.c: Revert.
1238 * amd64-sol2-tdep.c: Revert.
1239 * amd64-obsd-tdep.c: Revert.
1240 * amd64-obsd-nat.c: Revert.
1241 * amd64-nbsd-tdep.c: Revert.
1242 * amd64-nbsd-nat.c: Revert.
1243 * amd64-nat.c: Revert.
1244 * amd64-linux-tdep.c: Revert.
1245 * amd64-linux-nat.c: Revert.
1246 * amd64-fbsd-tdep.c: Revert.
1247 * amd64-fbsd-nat.c: Revert.
1248 * amd64-dicos-tdep.c: Revert.
1249 * amd64-darwin-tdep.c: Revert.
1250 * amd64-bsd-nat.c: Revert.
1251 * alpha-tdep.c: Revert.
1252 * alpha-obsd-tdep.c: Revert.
1253 * alpha-nbsd-tdep.c: Revert.
1254 * alpha-mdebug-tdep.c: Revert.
1255 * alpha-linux-tdep.c: Revert.
1256 * alpha-linux-nat.c: Revert.
1257 * alpha-bsd-tdep.c: Revert.
1258 * alpha-bsd-nat.c: Revert.
1259 * aix-thread.c: Revert.
1260 * agent.c: Revert.
1261 * addrmap.c: Revert.
1262 * ada-varobj.c: Revert.
1263 * ada-valprint.c: Revert.
1264 * ada-typeprint.c: Revert.
1265 * ada-tasks.c: Revert.
1266 * ada-lang.c: Revert.
1267 * aarch64-tdep.c: Revert.
1268 * aarch64-ravenscar-thread.c: Revert.
1269 * aarch64-newlib-tdep.c: Revert.
1270 * aarch64-linux-tdep.c: Revert.
1271 * aarch64-linux-nat.c: Revert.
1272 * aarch64-fbsd-tdep.c: Revert.
1273 * aarch64-fbsd-nat.c: Revert.
1274 * aarch32-linux-nat.c: Revert.
1275
1276 2019-04-05 Tom Tromey <tom@tromey.com>
1277
1278 * ft32-tdep.c: Sort headers.
1279 * frv-tdep.c: Sort headers.
1280 * frv-linux-tdep.c: Sort headers.
1281 * frame.c: Sort headers.
1282 * frame-unwind.c: Sort headers.
1283 * frame-base.c: Sort headers.
1284 * fork-child.c: Sort headers.
1285 * findvar.c: Sort headers.
1286 * findcmd.c: Sort headers.
1287 * filesystem.c: Sort headers.
1288 * filename-seen-cache.h: Sort headers.
1289 * filename-seen-cache.c: Sort headers.
1290 * fbsd-tdep.c: Sort headers.
1291 * fbsd-nat.h: Sort headers.
1292 * fbsd-nat.c: Sort headers.
1293 * f-valprint.c: Sort headers.
1294 * f-typeprint.c: Sort headers.
1295 * f-lang.c: Sort headers.
1296 * extension.h: Sort headers.
1297 * extension.c: Sort headers.
1298 * extension-priv.h: Sort headers.
1299 * expprint.c: Sort headers.
1300 * exec.h: Sort headers.
1301 * exec.c: Sort headers.
1302 * exceptions.c: Sort headers.
1303 * event-top.c: Sort headers.
1304 * event-loop.c: Sort headers.
1305 * eval.c: Sort headers.
1306 * elfread.c: Sort headers.
1307 * dwarf2read.h: Sort headers.
1308 * dwarf2read.c: Sort headers.
1309 * dwarf2loc.c: Sort headers.
1310 * dwarf2expr.h: Sort headers.
1311 * dwarf2expr.c: Sort headers.
1312 * dwarf2-frame.c: Sort headers.
1313 * dwarf2-frame-tailcall.c: Sort headers.
1314 * dwarf-index-write.h: Sort headers.
1315 * dwarf-index-write.c: Sort headers.
1316 * dwarf-index-common.c: Sort headers.
1317 * dwarf-index-cache.h: Sort headers.
1318 * dwarf-index-cache.c: Sort headers.
1319 * dummy-frame.c: Sort headers.
1320 * dtrace-probe.c: Sort headers.
1321 * disasm.h: Sort headers.
1322 * disasm.c: Sort headers.
1323 * disasm-selftests.c: Sort headers.
1324 * dictionary.c: Sort headers.
1325 * dicos-tdep.c: Sort headers.
1326 * demangle.c: Sort headers.
1327 * dcache.h: Sort headers.
1328 * dcache.c: Sort headers.
1329 * darwin-nat.h: Sort headers.
1330 * darwin-nat.c: Sort headers.
1331 * darwin-nat-info.c: Sort headers.
1332 * d-valprint.c: Sort headers.
1333 * d-namespace.c: Sort headers.
1334 * d-lang.c: Sort headers.
1335 * ctf.c: Sort headers.
1336 * csky-tdep.c: Sort headers.
1337 * csky-linux-tdep.c: Sort headers.
1338 * cris-tdep.c: Sort headers.
1339 * cris-linux-tdep.c: Sort headers.
1340 * cp-valprint.c: Sort headers.
1341 * cp-support.c: Sort headers.
1342 * cp-namespace.c: Sort headers.
1343 * cp-abi.c: Sort headers.
1344 * corelow.c: Sort headers.
1345 * corefile.c: Sort headers.
1346 * continuations.c: Sort headers.
1347 * completer.h: Sort headers.
1348 * completer.c: Sort headers.
1349 * complaints.c: Sort headers.
1350 * coffread.c: Sort headers.
1351 * coff-pe-read.c: Sort headers.
1352 * cli-out.h: Sort headers.
1353 * cli-out.c: Sort headers.
1354 * charset.c: Sort headers.
1355 * c-varobj.c: Sort headers.
1356 * c-valprint.c: Sort headers.
1357 * c-typeprint.c: Sort headers.
1358 * c-lang.c: Sort headers.
1359 * buildsym.c: Sort headers.
1360 * buildsym-legacy.c: Sort headers.
1361 * build-id.h: Sort headers.
1362 * build-id.c: Sort headers.
1363 * btrace.c: Sort headers.
1364 * bsd-uthread.c: Sort headers.
1365 * breakpoint.h: Sort headers.
1366 * breakpoint.c: Sort headers.
1367 * break-catch-throw.c: Sort headers.
1368 * break-catch-syscall.c: Sort headers.
1369 * break-catch-sig.c: Sort headers.
1370 * blockframe.c: Sort headers.
1371 * block.c: Sort headers.
1372 * bfin-tdep.c: Sort headers.
1373 * bfin-linux-tdep.c: Sort headers.
1374 * bfd-target.c: Sort headers.
1375 * bcache.c: Sort headers.
1376 * ax-general.c: Sort headers.
1377 * ax-gdb.h: Sort headers.
1378 * ax-gdb.c: Sort headers.
1379 * avr-tdep.c: Sort headers.
1380 * auxv.c: Sort headers.
1381 * auto-load.c: Sort headers.
1382 * arm-wince-tdep.c: Sort headers.
1383 * arm-tdep.c: Sort headers.
1384 * arm-symbian-tdep.c: Sort headers.
1385 * arm-pikeos-tdep.c: Sort headers.
1386 * arm-obsd-tdep.c: Sort headers.
1387 * arm-nbsd-tdep.c: Sort headers.
1388 * arm-nbsd-nat.c: Sort headers.
1389 * arm-linux-tdep.c: Sort headers.
1390 * arm-linux-nat.c: Sort headers.
1391 * arm-fbsd-tdep.c: Sort headers.
1392 * arm-fbsd-nat.c: Sort headers.
1393 * arm-bsd-tdep.c: Sort headers.
1394 * arch-utils.c: Sort headers.
1395 * arc-tdep.c: Sort headers.
1396 * arc-newlib-tdep.c: Sort headers.
1397 * annotate.h: Sort headers.
1398 * annotate.c: Sort headers.
1399 * amd64-windows-tdep.c: Sort headers.
1400 * amd64-windows-nat.c: Sort headers.
1401 * amd64-tdep.c: Sort headers.
1402 * amd64-sol2-tdep.c: Sort headers.
1403 * amd64-obsd-tdep.c: Sort headers.
1404 * amd64-obsd-nat.c: Sort headers.
1405 * amd64-nbsd-tdep.c: Sort headers.
1406 * amd64-nbsd-nat.c: Sort headers.
1407 * amd64-nat.c: Sort headers.
1408 * amd64-linux-tdep.c: Sort headers.
1409 * amd64-linux-nat.c: Sort headers.
1410 * amd64-fbsd-tdep.c: Sort headers.
1411 * amd64-fbsd-nat.c: Sort headers.
1412 * amd64-dicos-tdep.c: Sort headers.
1413 * amd64-darwin-tdep.c: Sort headers.
1414 * amd64-bsd-nat.c: Sort headers.
1415 * alpha-tdep.c: Sort headers.
1416 * alpha-obsd-tdep.c: Sort headers.
1417 * alpha-nbsd-tdep.c: Sort headers.
1418 * alpha-mdebug-tdep.c: Sort headers.
1419 * alpha-linux-tdep.c: Sort headers.
1420 * alpha-linux-nat.c: Sort headers.
1421 * alpha-bsd-tdep.c: Sort headers.
1422 * alpha-bsd-nat.c: Sort headers.
1423 * aix-thread.c: Sort headers.
1424 * agent.c: Sort headers.
1425 * addrmap.c: Sort headers.
1426 * ada-varobj.c: Sort headers.
1427 * ada-valprint.c: Sort headers.
1428 * ada-typeprint.c: Sort headers.
1429 * ada-tasks.c: Sort headers.
1430 * ada-lang.c: Sort headers.
1431 * aarch64-tdep.c: Sort headers.
1432 * aarch64-ravenscar-thread.c: Sort headers.
1433 * aarch64-newlib-tdep.c: Sort headers.
1434 * aarch64-linux-tdep.c: Sort headers.
1435 * aarch64-linux-nat.c: Sort headers.
1436 * aarch64-fbsd-tdep.c: Sort headers.
1437 * aarch64-fbsd-nat.c: Sort headers.
1438 * aarch32-linux-nat.c: Sort headers.
1439
1440 2019-04-04 Tom Tromey <tom@tromey.com>
1441
1442 * varobj.c (varobj_create): Update.
1443 * rust-exp.y (struct rust_parser) <update_innermost_block,
1444 lookup_symbol>: New methods.
1445 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
1446 Rename.
1447 (rust_parser::rust_lookup_type)
1448 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
1449 * printcmd.c (display_command, do_one_display): Update.
1450 * parser-defs.h (struct parser_state) <parser_state>: Add
1451 "tracker" parameter.
1452 (block_tracker): New member.
1453 (class innermost_block_tracker) <innermost_block_tracker>: Add
1454 "types" parameter.
1455 <reset>: Remove method.
1456 (innermost_block): Don't declare.
1457 (null_post_parser): Update.
1458 * parse.c (innermost_block): Remove global.
1459 (write_dollar_variable): Update.
1460 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
1461 Remove "tracker_types" parameter.
1462 (parse_expression): Add "tracker" parameter.
1463 (parse_expression_for_completion): Update.
1464 (null_post_parser): Add "tracker" parameter.
1465 * p-exp.y: Update rules.
1466 * m2-exp.y: Update rules.
1467 * language.h (struct language_defn) <la_post_parser>: Add
1468 "tracker" parameter.
1469 * go-exp.y: Update rules.
1470 * f-exp.y: Update rules.
1471 * expression.h (parse_expression, parse_exp_1): Add "tracker"
1472 parameter.
1473 * d-exp.y: Update rules.
1474 * c-exp.y: Update rules.
1475 * breakpoint.c (set_breakpoint_condition): Create an
1476 innermost_block_tracker.
1477 (watch_command_1): Likewise.
1478 * ada-lang.c (resolve): Add "tracker" parameter.
1479 (resolve_subexp): Likewise.
1480 * ada-exp.y (write_var_from_sym): Update.
1481
1482 2019-04-04 Tom Tromey <tom@tromey.com>
1483
1484 * type-stack.h: New file.
1485 * type-stack.c: New file.
1486 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
1487 type-stack.h.
1488 (insert_into_type_stack, insert_type, push_type, push_type_int)
1489 (insert_type_address_space, pop_type, pop_type_int)
1490 (pop_typelist, pop_type_stack, append_type_stack)
1491 (push_type_stack, get_type_stack, push_typelist)
1492 (follow_type_instance_flags, follow_types): Don't declare.
1493 * parse.c (type_stack): Remove global.
1494 (parse_exp_in_context): Update.
1495 (insert_into_type_stack, insert_type, push_type, push_type_int)
1496 (insert_type_address_space, pop_type, pop_type_int)
1497 (pop_typelist, pop_type_stack, append_type_stack)
1498 (push_type_stack, get_type_stack, push_typelist)
1499 (follow_type_instance_flags, follow_types): Remove (moved to
1500 type-stack.c).
1501 * f-exp.y (type_stack): New global.
1502 Update rules.
1503 (push_kind_type, f_parse): Update.
1504 * d-exp.y (type_stack): New global.
1505 Update rules.
1506 (d_parse): Update.
1507 * c-exp.y (struct c_parse_state) <type_stack>: New member.
1508 Update rules.
1509 * Makefile.in (COMMON_SFILES): Add type-stack.c.
1510 (HFILES_NO_SRCDIR): Add type-stack.h.
1511
1512 2019-04-04 Tom Tromey <tom@tromey.com>
1513
1514 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
1515 (rust_parser::convert_ast_to_expression, rust_parse)
1516 (rust_lex_test_completion, rust_lex_tests): Update.
1517 * parser-defs.h (struct expr_completion_state): New.
1518 (struct parser_state) <parser_state>: Add completion parameter.
1519 <mark_struct_expression, mark_completion_tag>: New methods.
1520 <parse_completion, m_completion_state>: New members.
1521 (prefixify_expression, null_post_parser): Update.
1522 (mark_struct_expression, mark_completion_tag): Don't declare.
1523 * parse.c (parse_completion, expout_last_struct)
1524 (expout_tag_completion_type, expout_completion_name): Remove
1525 globals.
1526 (parser_state::mark_struct_expression)
1527 (parser_state::mark_completion_tag): Now methods.
1528 (prefixify_expression): Add last_struct parameter.
1529 (prefixify_subexp): Likewise.
1530 (parse_exp_1): Update.
1531 (parse_exp_in_context): Add cstate parameter. Update.
1532 (parse_expression_for_completion): Create an
1533 expr_completion_state.
1534 (null_post_parser): Add "completion" parameter.
1535 * p-exp.y: Update rules.
1536 (yylex): Update.
1537 * language.h (struct language_defn) <la_post_parser>: Add
1538 "completing" parameter.
1539 * go-exp.y: Update rules.
1540 (lex_one_token): Update.
1541 * expression.h (parse_completion): Don't declare.
1542 * d-exp.y: Update rules.
1543 (lex_one_token): Update rules.
1544 * c-exp.y: Update rules.
1545 (lex_one_token): Update.
1546 * ada-lang.c (resolve): Add "parse_completion" parameter.
1547 (resolve_subexp): Likewise.
1548 (ada_resolve_function): Likewise.
1549
1550 2019-04-04 Tom Tromey <tom@tromey.com>
1551
1552 * parser-defs.h (struct parser_state) <start_arglist,
1553 end_arglist>: New methods.
1554 <arglist_len, m_funcall_chain>: New members.
1555 (arglist_len, start_arglist, end_arglist): Don't declare.
1556 * parse.c (arglist_len, funcall_chain): Remove global.
1557 (start_arglist, end_arglist): Remove functions.
1558 (parse_exp_in_context): Update.
1559 * p-exp.y: Update rules.
1560 * m2-exp.y: Update rules.
1561 * go-exp.y: Update rules.
1562 * f-exp.y: Update rules.
1563 * d-exp.y: Update rules.
1564 * c-exp.y: Update rules.
1565
1566 2019-04-04 Tom Tromey <tom@tromey.com>
1567
1568 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
1569 lex_operator, push_back>: New methods.
1570 Update all rules.
1571 (rust_parser::lex_hex, lex_escape): Rename and update.
1572 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
1573 (rust_parser::lex_operator): Rename and update.
1574 (rust_parser::lex_number, rustyylex, rustyyerror)
1575 (rust_lex_test_init, rust_lex_test_sequence)
1576 (rust_lex_test_push_back, rust_lex_tests): Update.
1577 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
1578 parameter.
1579 <lexptr, prev_lexptr>: New members.
1580 (lexptr, prev_lexptr): Don't declare.
1581 * parse.c (lexptr, prev_lexptr): Remove globals.
1582 (parse_exp_in_context): Update.
1583 * p-exp.y (yylex, yyerror): Update.
1584 * m2-exp.y (parse_number, yylex, yyerror): Update.
1585 * go-exp.y (lex_one_token, yyerror): Update.
1586 * f-exp.y (match_string_literal, yylex, yyerror): Update.
1587 * d-exp.y (lex_one_token, yyerror): Update.
1588 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
1589 (lex_one_token, yyerror): Update.
1590 * ada-lex.l (YY_INPUT): Update.
1591 (rewind_to_char): Update.
1592 * ada-exp.y (yyerror): Update.
1593
1594 2019-04-04 Tom Tromey <tom@tromey.com>
1595
1596 * rust-exp.y (rustyylex, rust_lex_tests): Update.
1597 * parser-defs.h (struct parser_state) <parser_state>: Add new
1598 parameter.
1599 <comma_terminates>: New member.
1600 (comma_terminates): Don't declare global.
1601 * parse.c (comma_terminates): Remove global.
1602 (parse_exp_in_context): Update.
1603 * p-exp.y (yylex): Update.
1604 * m2-exp.y (yylex): Update.
1605 * go-exp.y (lex_one_token): Update.
1606 * f-exp.y (yylex): Update.
1607 * d-exp.y (lex_one_token): Update.
1608 * c-exp.y (lex_one_token): Update.
1609 * ada-lex.l: Update.
1610
1611 2019-04-04 Tom Tromey <tom@tromey.com>
1612
1613 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
1614 (rustyylex, rust_lex_test_init, rust_lex_test_one)
1615 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
1616 * parser-defs.h (paren_depth): Don't declare.
1617 * parse.c (paren_depth): Remove global.
1618 (parse_exp_in_context): Update.
1619 * p-exp.y (paren_depth): New global.
1620 (pascal_parse): Initialize it.
1621 * m2-exp.y (paren_depth): New global.
1622 (m2_parse): Initialize it.
1623 * go-exp.y (paren_depth): New global.
1624 (go_parse): Initialize it.
1625 * f-exp.y (paren_depth): New global.
1626 (f_parse): Initialize it.
1627 * d-exp.y (paren_depth): New global.
1628 (d_parse): Initialize it.
1629 * c-exp.y (paren_depth): New global.
1630 (c_parse): Initialize it.
1631 * ada-lex.l (paren_depth): New global.
1632 (lexer_init): Initialize it.
1633
1634 2019-04-04 Tom Tromey <tom@tromey.com>
1635
1636 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
1637 (rust_parser::convert_ast_to_type)
1638 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
1639 * parser-defs.h (struct parser_state) <parser_state>: Add
1640 parameters. Initialize new members.
1641 <expression_context_block, expression_context_pc>: New members.
1642 * parse.c (expression_context_block, expression_context_pc):
1643 Remove globals.
1644 (parse_exp_in_context): Update.
1645 * p-exp.y: Update all rules.
1646 (yylex): Update.
1647 * m2-exp.y: Update all rules.
1648 (yylex): Update.
1649 * go-exp.y (yylex): Update.
1650 * f-exp.y (yylex): Update.
1651 * d-exp.y: Update all rules.
1652 (yylex): Update.
1653 * c-exp.y: Update all rules.
1654 (lex_one_token, classify_name, yylex, c_parse): Update.
1655 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
1656
1657 2019-04-04 Tom Tromey <tom@tromey.com>
1658
1659 * gdbarch.h, gdbarch.c: Rebuild.
1660 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
1661 * stap-probe.h:
1662 (struct stap_parse_info): Replace "parser_state" with
1663 "expr_builder".
1664 * parser-defs.h (struct expr_builder): Rename from "parser_state".
1665 (parser_state): New class.
1666 * parse.c (expr_builder): Rename.
1667 (expr_builder::release): Rename.
1668 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
1669 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
1670 (write_exp_elt_longcst, write_exp_elt_floatcst)
1671 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
1672 (write_exp_string_vector, write_exp_bitstring)
1673 (write_exp_msymbol, mark_struct_expression)
1674 (write_dollar_variable)
1675 (insert_type_address_space, increase_expout_size): Replace
1676 "parser_state" with "expr_builder".
1677 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
1678 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
1679 "parser_state" with "expr_builder".
1680
1681 2019-04-04 Tom Tromey <tom@tromey.com>
1682
1683 * rust-exp.y: Replace "parse_language" with method call.
1684 * p-exp.y:
1685 (yylex): Replace "parse_language" with method call.
1686 * m2-exp.y:
1687 (yylex): Replace "parse_language" with method call.
1688 * go-exp.y (classify_name): Replace "parse_language" with method
1689 call.
1690 * f-exp.y (yylex): Replace "parse_language" with method call.
1691 * d-exp.y (lex_one_token): Replace "parse_language" with method
1692 call.
1693 * c-exp.y:
1694 (lex_one_token, classify_name, yylex): Replace "parse_language"
1695 with method call.
1696 * ada-exp.y (find_primitive_type, type_char)
1697 (type_system_address): Replace "parse_language" with method call.
1698
1699 2019-04-04 Tom Tromey <tom@tromey.com>
1700
1701 * rust-exp.y: Replace "parse_gdbarch" with method call.
1702 * parse.c (write_dollar_variable, insert_type_address_space):
1703 Replace "parse_gdbarch" with method call.
1704 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
1705 call.
1706 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
1707 call.
1708 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
1709 "parse_gdbarch" with method call.
1710 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
1711 with method call.
1712 * f-exp.y (parse_type, parse_f_type, yylex): Replace
1713 "parse_gdbarch" with method call.
1714 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
1715 "parse_gdbarch" with method call.
1716 * c-exp.y (parse_type, parse_number, classify_name): Replace
1717 "parse_gdbarch" with method call.
1718 * ada-lex.l: Replace "parse_gdbarch" with method call.
1719 * ada-exp.y (parse_type, find_primitive_type, type_char)
1720 (type_system_address): Replace "parse_gdbarch" with method call.
1721
1722 2019-04-04 Tom Tromey <tom@tromey.com>
1723
1724 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
1725 * stap-probe.c (stap_parse_argument): Update.
1726 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
1727 initial_size parameter.
1728 * rust-exp.y (rust_lex_tests): Update.
1729 * parse.c (parser_state): Update.
1730 (parse_exp_in_context): Update.
1731 * parser-defs.h (struct parser_state) <parser_state>: Remove
1732 "initial_size" parameter.
1733
1734 2019-04-04 Tom Tromey <tom@tromey.com>
1735
1736 * parser-defs.h (increase_expout_size): Don't declare.
1737 * parse.c (increase_expout_size): Now static.
1738
1739 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
1740
1741 * gnu-nat.c (gnu_nat_target::wait): Fix
1742 target_waitstatus_to_string call.
1743
1744 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
1745
1746 * eval.c (evaluate_subexp_standard): Handle internal functions
1747 during Fortran function call handling.
1748
1749 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
1750
1751 * NEWS: Mention new internal functions.
1752 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
1753 (read_base_type): Use dwarf2_init_complex_target_type.
1754 * value.c (creal_internal_fn): New function.
1755 (cimag_internal_fn): New function.
1756 (_initialize_values): Register new internal functions.
1757
1758 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1759
1760 * infrun.c (stop_all_threads): If debug_infrun, always
1761 trace the wait status after wait_one, using
1762 target_waitstatus_to_string and target_pid_to_str.
1763 (handle_inferior_event): Replace various trace of
1764 wait status kind by a single trace.
1765 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
1766 wait status kind image by target_waitstatus_to_string.
1767 * target/waitstatus.c (target_waitstatus_to_string): Fix
1768 obsolete comment.
1769
1770 2019-04-01 Tom Tromey <tromey@adacore.com>
1771
1772 PR symtab/23331:
1773 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
1774
1775 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
1776 Pedro Alves <palves@redhat.com>
1777
1778 * top.c (quit_force): Call 'finalize_values'.
1779 * value.c (finalize_values): New function.
1780 * value.h (finalize_values): Declare.
1781
1782 2019-03-30 Eli Zaretskii <eliz@gnu.org>
1783
1784 * NEWS: Announce $_gdb_major and $_gdb_minor.
1785
1786 * top.c (init_gdb_version_vars): New function.
1787 (gdb_init): Call init_gdb_version_vars.
1788
1789 2019-03-29 Tom Tromey <tromey@adacore.com>
1790
1791 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
1792 help text. Remove dead code.
1793
1794 2019-03-29 Keith Seitz <keiths@redhat.com>
1795
1796 From Siddhesh Poyarekar:
1797 * f-lang.h (f77_get_upperbound): Return LONGEST.
1798 (f77_get_lowerbound): Likewise.
1799 * f-typeprint.c (f_type_print_varspec_suffix): Expand
1800 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
1801 print them.
1802 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
1803 plongest to format print it.
1804 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
1805 (f77_get_upperbound): Likewise.
1806 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
1807 LOWER_BOUND to LONGEST.
1808 (f77_create_arrayprint_offset_tbl): Likewise.
1809
1810 2019-03-29 Keith Seitz <keiths@redhat.com>
1811
1812 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
1813 %s/pulongest for TYPE_LENGTH instead of %d in format
1814 strings.
1815 * ada-typerint.c (ada_print_type): Likewise.
1816 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
1817 * compile/compile-c-support.c (generate_register_struct): Likewise.
1818 * gdbtypes.c (recursive_dump_type): Likewise.
1819 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
1820 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
1821 instead of %d in format strings.
1822 * riscv-tdep.c (riscv_type_alignment): Cast second argument
1823 to std::min to ULONGEST.
1824 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
1825 instead of %d in format strings.
1826 * tracepoint.c (info_scope_command): Likewise.
1827 * typeprint.c (print_offset_data::update)
1828 (print_offset_data::finish): Likewise.
1829 * xtensa-tdep.c (xtensa_store_return_value)
1830 (xtensa_push_dummy_call): Likewise.
1831
1832 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
1833
1834 * windows-nat.c (display_selector): Fixed format specifications
1835 for 64-bit Cygwin.
1836
1837 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1838
1839 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
1840
1841 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
1842
1843 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
1844 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
1845 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
1846 (nios2_linux_init_abi): Install it.
1847
1848 2019-03-28 Alan Hayward <alan.hayward@arm.com>
1849
1850 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
1851
1852 2019-03-28 Alan Hayward <alan.hayward@arm.com>
1853
1854 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
1855
1856 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1857 Tom Tromey <tromey@adacore.com>
1858
1859 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
1860
1861 2019-03-26 Joel Brobecker <brobecker@adacore.com>
1862
1863 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
1864 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
1865 method to compute the bounds of range types. Also print "[evaluated]"
1866 if the bounds' values come from a dynamic evaluation.
1867
1868 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
1869
1870 * cp-valprint.c (cp_print_value_fields): Don't print trailing
1871 whitespace when pretty printing is on.
1872
1873 2019-03-26 Alan Hayward <alan.hayward@arm.com>
1874
1875 * ppc-linux-nat.c: Add include.
1876
1877 2019-03-26 Alan Hayward <alan.hayward@arm.com>
1878
1879 * NEWS: Mention AArch64 Pointer Authentication.
1880
1881 2019-03-26 Alan Hayward <alan.hayward@arm.com>
1882
1883 * arm-linux-nat.c: Add include.
1884
1885 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
1886
1887 * source-cache.c (source_cache::get_source_lines): Re-read
1888 fullname after calling open_source_file.
1889
1890 2019-03-25 John Baldwin <jhb@FreeBSD.org>
1891
1892 * NEWS: Mention TLS support for FreeBSD.
1893
1894 2019-03-25 Tom Tromey <tromey@adacore.com>
1895
1896 * minsyms.c (BUNCH_SIZE): Update comment.
1897 (~minimal_symbol_reader): Remove old comment.
1898 (compact_minimal_symbols): Update comment.
1899 (minimal_symbol_reader::install): Remove old comment. Update
1900 other comments.
1901
1902 2019-03-25 Alan Hayward <alan.hayward@arm.com>
1903
1904 * s390-linux-nat.c: Add include.
1905
1906 2019-03-25 Alan Hayward <alan.hayward@arm.com>
1907
1908 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
1909 Call linux_get_hwcap.
1910 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
1911 Likewise.
1912 (aarch64_linux_get_hwcap): Remove function.
1913 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
1914 declaration.
1915 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
1916 linux_get_hwcap.
1917 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
1918 * linux-tdep.c (linux_get_hwcap): Add function.
1919 (linux_get_hwcap2): Likewise.
1920 * linux-tdep.h (linux_get_hwcap): Add declaration.
1921 (linux_get_hwcap2): Likewise.
1922 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
1923 (ppc_linux_get_hwcap2): Likewise.
1924 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
1925 linux_get_hwcap.
1926 (ppc_linux_nat_target::insert_watchpoint): Likewise.
1927 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
1928 (ppc_linux_nat_target::read_description): Likewise.
1929 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
1930 * s390-linux-nat.c: Likewise.
1931 * s390-linux-tdep.c (s390_core_read_description): Likewise.
1932
1933 2019-03-24 Tom Tromey <tom@tromey.com>
1934
1935 * ada-lang.c (standard_lookup): Simplify initialization.
1936 (ada_lookup_symbol_nonlocal): Simplify return.
1937 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
1938 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
1939 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
1940 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
1941 initialization.
1942 * solib.c (solib_global_lookup): Simplify.
1943 * symtab.c (null_block_symbol): Remove.
1944 (symbol_cache_lookup): Simplify returns.
1945 (lookup_language_this): Simplify returns.
1946 (lookup_symbol_aux): Simplify return.
1947 (lookup_local_symbol): Simplify returns.
1948 (lookup_global_symbol_from_objfile): Simplify return.
1949 (lookup_symbol_in_objfile_symtabs)
1950 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
1951 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
1952 (lookup_static_symbol, lookup_global_symbol): Simplify return.
1953 * cp-namespace.c (cp_lookup_bare_symbol)
1954 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
1955 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
1956 (cp_lookup_nested_symbol): Don't use null_block_symbol.
1957 (cp_lookup_symbol_via_imports): Simplify initialization.
1958 (find_symbol_in_baseclass): Likewise.
1959 * symtab.h (null_block_symbol): Remove.
1960 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
1961 (d_lookup_nested_symbol, d_lookup_symbol_imports)
1962 (d_lookup_symbol_module): Likewise.
1963 (find_symbol_in_baseclass): Simplify initialization.
1964
1965 2019-03-24 Tom Tromey <tom@tromey.com>
1966
1967 * expression.h: Don't include symtab.h.
1968 (struct block): Forward declare.
1969
1970 2019-03-24 Tom Tromey <tom@tromey.com>
1971
1972 * c-exp.y (typebase): Remove casts.
1973 * gdbtypes.c (lookup_unsigned_typename, )
1974 (lookup_signed_typename): Remove cast.
1975 * eval.c (parse_to_comma_and_eval): Remove cast.
1976 * parse.c (write_dollar_variable): Remove cast.
1977 * block.h (struct block) <superblock>: Now const.
1978 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
1979 * psymtab.c (psym_map_matching_symbols): Make "block" const.
1980 (map_block): Make "block" const.
1981 * symfile.h (struct quick_symbol_functions)
1982 <map_matching_symbols>: Constify block argument to "callback".
1983 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
1984 const.
1985 (find_pc_sect_compunit_symtab): Make "b" const.
1986 (find_symbol_at_address): Likewise.
1987 (search_symbols): Likewise.
1988 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
1989 (dw2_debug_names_lookup_symbol): Likewise.
1990 (dw2_map_matching_symbols): Update.
1991 * p-valprint.c (pascal_val_print): Remove "block".
1992 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
1993 (aux_add_nonlocal_symbols): Make "block" const.
1994 (resolve_subexp): Remove cast.
1995 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
1996 const.
1997 (iterate_over_file_blocks): Likewise.
1998 * f-exp.y (%union) <bval>: Remove.
1999 * coffread.c (patch_opaque_types): Make "b" const.
2000 * spu-tdep.c (spu_catch_start): Make "block" const.
2001 * c-valprint.c (print_unpacked_pointer): Remove "block".
2002 * symmisc.c (dump_symtab_1): Make "b" const.
2003 (block_depth): Make "block" const.
2004 * d-exp.y (%union) <bval>: Remove.
2005 * cp-support.h (cp_lookup_rtti_type): Update.
2006 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
2007 * psymtab.c (psym_lookup_symbol): Make "block" const.
2008 (maintenance_check_psymtabs): Make "b" const.
2009 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
2010 (enumerate_locals, enumerate_args): Update.
2011 * python/py-symtab.c (stpy_global_block): Make "block" const.
2012 (stpy_static_block): Likewise.
2013 * inline-frame.c (block_starting_point_at): Make "new_block"
2014 const.
2015 * block.c (find_block_in_blockvector): Make return type const.
2016 (blockvector_for_pc_sect): Make "b" const.
2017 (find_block_in_blockvector): Make "b" const.
2018
2019 2019-03-23 Tom Tromey <tom@tromey.com>
2020
2021 * varobj.c (varobj_create): Update.
2022 * symfile.c (clear_symtab_users): Don't reset innermost_block.
2023 * printcmd.c (display_command, do_one_display): Don't reset
2024 innermost_block.
2025 * parser-defs.h (enum innermost_block_tracker_type): Move to
2026 expression.h.
2027 (innermost_block): Update comment.
2028 * parse.c (parse_exp_1): Add tracker_types parameter.
2029 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
2030 tracker_types parameter. Reset innermost_block.
2031 (parse_exp_in_context): Remove.
2032 (parse_expression_for_completion): Update.
2033 * objfiles.c (~objfile): Don't reset expression_context_block or
2034 innermost_block.
2035 * expression.h (enum innermost_block_tracker_type): Move from
2036 parser-defs.h.
2037 (parse_exp_1): Add tracker_types parameter.
2038 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
2039 reset innermost_block.
2040
2041 2019-03-23 Tom Tromey <tom@tromey.com>
2042
2043 * objfiles.h: Include bcache.h.
2044
2045 2019-03-23 Tom Tromey <tom@tromey.com>
2046
2047 * linespec.c (get_current_search_block): Use
2048 scoped_restore_current_language.
2049 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
2050
2051 2019-03-22 Alan Hayward <alan.hayward@arm.com>
2052 Jiong Wang <jiong.wang@arm.com>
2053
2054 * aarch64-linux-tdep.c
2055 (aarch64_linux_iterate_over_regset_sections): Check for pauth
2056 section.
2057 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
2058
2059 2019-03-22 Alan Hayward <alan.hayward@arm.com>
2060 Jiong Wang <jiong.wang@arm.com>
2061
2062 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
2063 instructions.
2064 (aarch64_analyze_prologue_test): Add PACIASP test.
2065 (aarch64_prologue_prev_register): Unmask PC value.
2066
2067 2019-03-22 Alan Hayward <alan.hayward@arm.com>
2068 Jiong Wang <jiong.wang@arm.com>
2069
2070 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
2071 (aarch64_dwarf2_prev_register): Unmask PC value.
2072 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
2073 (aarch64_execute_dwarf_cfa_vendor_op): Check for
2074 DW_CFA_AARCH64_negate_ra_state.
2075 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
2076
2077 2019-03-22 Alan Hayward <alan.hayward@arm.com>
2078 Jiong Wang <jiong.wang@arm.com>
2079
2080 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
2081 registers.
2082 (aarch64_pseudo_register_name): Likewise.
2083 (aarch64_pseudo_register_type): Likewise.
2084 (aarch64_pseudo_register_reggroup_p): Likewise.
2085 (aarch64_gdbarch_init): Add pauth registers.
2086 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
2087 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
2088 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
2089 (struct gdbarch_tdep): Add regnum for ra_state.
2090
2091 2019-03-22 Alan Hayward <alan.hayward@arm.com>
2092 Jiong Wang <jiong.wang@arm.com>
2093
2094 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
2095
2096 2019-03-22 Alan Hayward <alan.hayward@arm.com>
2097 Jiong Wang <jiong.wang@arm.com>
2098
2099 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
2100 function.
2101 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
2102 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
2103 (aarch64_gdbarch_init): Add puth registers.
2104 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
2105 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
2106 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
2107
2108 2019-03-22 Alan Hayward <alan.hayward@arm.com>
2109 Jiong Wang <jiong.wang@arm.com>
2110
2111 * aarch64-linux-nat.c
2112 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
2113 * aarch64-linux-tdep.c
2114 (aarch64_linux_core_read_description): Likewise.
2115 (aarch64_linux_get_hwcap): New function.
2116 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
2117 (aarch64_linux_get_hwcap): New declaration.
2118
2119 2019-03-22 Alan Hayward <alan.hayward@arm.com>
2120 Jiong Wang <jiong.wang@arm.com>
2121
2122 * aarch64-linux-nat.c
2123 (aarch64_linux_nat_target::read_description): Add pauth param.
2124 * aarch64-linux-tdep.c
2125 (aarch64_linux_core_read_description): Likewise.
2126 * aarch64-tdep.c (struct target_desc): Add in pauth.
2127 (aarch64_read_description): Add pauth param.
2128 (aarch64_gdbarch_init): Likewise.
2129 * aarch64-tdep.h (aarch64_read_description): Likewise.
2130 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2131 * arch/aarch64.h (aarch64_create_target_description): Likewise.
2132 * features/Makefile: Add new files.
2133 * features/aarch64-pauth.c: New file.
2134 * features/aarch64-pauth.xml: New file.
2135
2136 2019-03-20 Tom Tromey <tromey@adacore.com>
2137
2138 * infrun.c (handle_inferior_event): Rename from
2139 handle_inferior_event_1. Create a scoped_value_mark.
2140 (handle_inferior_event): Remove.
2141
2142 2019-03-19 Tom Tromey <tromey@adacore.com>
2143
2144 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
2145 * infrun.h (print_stop_event): Add "displays" parameter.
2146 * infrun.c (print_stop_event): Add "displays" parameter.
2147
2148 2019-03-19 Pedro Alves <palves@redhat.com>
2149
2150 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
2151 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
2152 to -1. Fix TABs vs spaces.
2153 (tui_ui_out::tui_ui_out): Don't initialize fields here.
2154 * tui/tui-out.h (tui_ui_out) Add intro comments.
2155 <m_line, m_start_of_line>: In-class initialize, and add describing
2156 comment.
2157
2158 2019-03-18 Alan Hayward <alan.hayward@arm.com>
2159
2160 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
2161 variable names.
2162 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
2163
2164 2019-03-18 Pedro Alves <palves@redhat.com>
2165 Eli Zaretskii <eliz@gnu.org>
2166
2167 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
2168 m_line and m_start_of_line.
2169
2170 2019-03-18 Eli Zaretskii <eliz@gnu.org>
2171
2172 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
2173 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
2174 it returns a newline. This fixes a regression in TU mode, whereby
2175 the next line is output on the same screen line as the user input.
2176
2177 2019-03-18 Tom Tromey <tromey@adacore.com>
2178
2179 * minsyms.c (minimal_symbol_reader::install): Remove call to
2180 obstack_blank.
2181
2182 2019-03-18 Pedro Alves <palves@redhat.com>
2183
2184 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
2185 New globals.
2186 (apply_style): New, factored out from ...
2187 (apply_ansi_escape): ... this. Handle reverse video mode.
2188 (tui_set_reverse_mode): New function.
2189 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
2190 * tui/tui-winsource.c (tui_show_source_line): Use
2191 tui_set_reverse_mode instead of setting A_STANDOUT.
2192 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
2193 New setter methods.
2194
2195 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
2196
2197 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
2198 Handle tabs.
2199
2200 2019-03-18 Tom Tromey <tromey@adacore.com>
2201
2202 * ada-lang.c (empty_array): Add "high" parameter.
2203 (ada_evaluate_subexp): Update.
2204
2205 2019-03-17 Sergei Trofimovich <siarheit@google.com>
2206
2207 * unittests/string_view-selftests.c: Define
2208 _initialize_string_view_selftests unconditionally.
2209
2210 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
2211
2212 PR gdb/24350
2213 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
2214
2215 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
2216
2217 PR gdb/24351
2218 * windows-nat.c (display_selector): Fix format specifiers.
2219
2220 2019-03-17 Eli Zaretskii <eliz@gnu.org>
2221
2222 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
2223 tui_refill_source_window instead of tui_refresh_win, to update the
2224 current execution line. This fixes redisplay of the current line
2225 when stepping through the code with "next" or "step".
2226
2227 2019-03-16 Eli Zaretskii <eliz@gnu.org>
2228
2229 * source-cache.c (source_cache::get_source_lines): Call
2230 find_source_lines to initialize s->nlines. This fixes vertical
2231 scrolling of TUI source window when the DOWN arrow is pressed.
2232
2233 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2234
2235 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
2236 linux-thread-db.c (_initialize_thread_db): Likewise.
2237
2238 2019-03-16 Eli Zaretskii <eliz@gnu.org>
2239
2240 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
2241 wclrtoeol in tui_show_source_line". This reverts changes made in
2242 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
2243
2244 2019-03-15 Tom Tromey <tom@tromey.com>
2245
2246 * symtab.h (struct minimal_symbol): Derive from
2247 general_symbol_info.
2248 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
2249 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
2250 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
2251 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
2252 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
2253 (MSYMBOL_SEARCH_NAME): Update.
2254 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
2255 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
2256 * minsyms.c (minimal_symbol_reader::record_full): Update.
2257
2258 2019-03-15 Tom Tromey <tom@tromey.com>
2259
2260 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
2261
2262 2019-03-15 Tom Tromey <tom@tromey.com>
2263
2264 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
2265 unique_xmalloc_ptr.
2266 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
2267 Update.
2268 * minsyms.c (lookup_minimal_symbol_by_pc_section)
2269 (build_minimal_symbol_hash_tables)
2270 (minimal_symbol_reader::install): Update.
2271
2272 2019-03-15 Tom Tromey <tom@tromey.com>
2273
2274 * symtab.c (create_demangled_names_hash): Update.
2275 (symbol_set_names): Update.
2276 * objfiles.h (struct objfile_per_bfd_storage)
2277 <demangled_names_hash>: Now an htab_up.
2278 * objfiles.c (objfile_per_bfd_storage): Simplify.
2279
2280 2019-03-15 Tom Tromey <tom@tromey.com>
2281
2282 * objfiles.h (struct objfile_per_bfd_storage): Declare
2283 destructor.
2284 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
2285 New.
2286 (get_objfile_bfd_data): Use new. Don't initialize
2287 language_of_main.
2288 (free_objfile_per_bfd_storage): Remove.
2289 (objfile_bfd_data_free, objfile::~objfile): Use delete.
2290
2291 2019-03-15 Tom Tromey <tom@tromey.com>
2292
2293 * symfile.c (reread_symbols): Update.
2294 * objfiles.c (objfile::objfile): Update.
2295 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
2296 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
2297 comment.
2298 (minimal_symbol_reader::install): Update.
2299 (terminate_minimal_symbol_table): Remove.
2300 * jit.c (jit_object_close_impl): Update.
2301
2302 2019-03-15 Tom Tromey <tom@tromey.com>
2303
2304 * minsyms.c (minimal_symbol_reader::record_full): Remove some
2305 initializations.
2306
2307 2019-03-15 Tom Tromey <tom@tromey.com>
2308
2309 * objfiles.h (struct objfile_per_bfd_storage)
2310 <demangled_hash_languages>: Now a bitset.
2311 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
2312 (lookup_minimal_symbol): Update.
2313
2314 2019-03-15 Tom Tromey <tom@tromey.com>
2315
2316 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
2317 Don't return the symbol.
2318 * coffread.c (record_minimal_symbol): Use record_full.
2319
2320 2019-03-14 Eli Zaretskii <eliz@gnu.org>
2321
2322 The MS-Windows port of ncurses fails to switch to a color pair if
2323 one or both of the colors are the implicit default colors. This
2324 change records the default colors when TUI is initialized, and
2325 then specifies them explicitly when a color pair uses the default
2326 colors. This allows color styling in TUI mode on MS-Windows.
2327
2328 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
2329 ncurses_norm_attr.
2330 (tui_initialize_io) [__MINGW32__]: Record the default terminal
2331 colors in ncurses_norm_attr.
2332 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
2333 "none", replace it with the default color recorded in
2334 ncurses_norm_attr.
2335
2336 2019-03-14 Tom Tromey <tromey@adacore.com>
2337
2338 * source-cache.h (class source_cache) <get_source_lines>: Return
2339 std::string.
2340 * source-cache.c (source_cache::extract_lines): Handle case where
2341 first_pos==npos. Return std::string.
2342 (source_cache::get_source_lines): Update.
2343
2344 2019-03-14 Tom Tromey <tromey@adacore.com>
2345
2346 * NEWS: Add item for "style sources" commands.
2347 * source-cache.c (source_cache::get_source_lines): Check
2348 source_styling.
2349 * cli/cli-style.c (source_styling): New global.
2350 (_initialize_cli_style): Add "style sources" commands.
2351 (show_style_sources): New function.
2352 * cli/cli-style.h (source_styling): Declare.
2353
2354 2019-03-14 Pedro Alves <palves@redhat.com>
2355 Tom Tromey <tromey@adacore.com>
2356
2357 * tui/tui-winsource.h (tui_refill_source_window): Declare.
2358 * tui/tui-winsource.c (tui_refill_source_window): New function,
2359 from...
2360 (tui_horizontal_source_scroll): ... here. Move some logic.
2361 * cli/cli-style.c (set_style_enabled): Notify new observable.
2362 * tui/tui-hooks.c (tui_redisplay_source): New function.
2363 (tui_attach_detach_observers): Attach or detach
2364 tui_redisplay_source.
2365 * observable.h (source_styling_changed): New observable.
2366 * observable.c: Define source_styling_changed observable.
2367
2368 2019-03-13 Tom Tromey <tromey@adacore.com>
2369
2370 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
2371 (i386_gnu_nat_target::store_registers): Update.
2372 * target-debug.h (target_debug_print_std_string): New macro.
2373 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
2374 * windows-tdep.c (display_one_tib): Update.
2375 * tui/tui-stack.c (tui_make_status_line): Update.
2376 * top.c (print_inferior_quit_action): Update.
2377 * thread.c (thr_try_catch_cmd): Update.
2378 (add_thread_with_info): Update.
2379 (thread_target_id_str): Update.
2380 (thr_try_catch_cmd): Update.
2381 (thread_command): Update.
2382 (thread_find_command): Update.
2383 * record-btrace.c (record_btrace_target::info_record)
2384 (record_btrace_resume_thread, record_btrace_target::resume)
2385 (record_btrace_cancel_resume, record_btrace_step_thread)
2386 (record_btrace_target::wait, record_btrace_target::wait)
2387 (record_btrace_target::wait, record_btrace_target::stop): Update.
2388 * progspace.c (print_program_space): Update.
2389 * process-stratum-target.c
2390 (process_stratum_target::thread_address_space): Update.
2391 * linux-fork.c (linux_fork_mourn_inferior)
2392 (detach_checkpoint_command, info_checkpoints_command)
2393 (linux_fork_context): Update.
2394 (linux_fork_detach): Update.
2395 (class scoped_switch_fork_info): Update.
2396 (delete_checkpoint_command): Update.
2397 * infrun.c (follow_fork_inferior): Update.
2398 (follow_fork_inferior): Update.
2399 (proceed_after_vfork_done): Update.
2400 (handle_vfork_child_exec_or_exit): Update.
2401 (follow_exec): Update.
2402 (displaced_step_prepare_throw): Update.
2403 (displaced_step_restore): Update.
2404 (start_step_over): Update.
2405 (resume_1): Update.
2406 (clear_proceed_status_thread): Update.
2407 (proceed): Update.
2408 (print_target_wait_results): Update.
2409 (do_target_wait): Update.
2410 (context_switch): Update.
2411 (stop_all_threads): Update.
2412 (restart_threads): Update.
2413 (finish_step_over): Update.
2414 (handle_signal_stop): Update.
2415 (switch_back_to_stepped_thread): Update.
2416 (keep_going_pass_signal): Update.
2417 (print_exited_reason): Update.
2418 (normal_stop): Update.
2419 * inferior.c (inferior_pid_to_str): Change return type.
2420 (print_selected_inferior): Update.
2421 (add_inferior): Update.
2422 (detach_inferior): Update.
2423 * dummy-frame.c (fprint_dummy_frames): Update.
2424 * dcache.c (dcache_info_1): Update.
2425 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
2426 (btrace_fetch, btrace_clear): Update.
2427 * linux-tdep.c (linux_core_pid_to_str): Change return type.
2428 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
2429 type.
2430 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
2431 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
2432 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
2433 * gdbarch.c, gdbarch.h: Rebuild.
2434 * gdbarch.sh (core_pid_to_str): Change return type.
2435 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
2436 return type.
2437 (windows_nat_target::pid_to_str): Change return type.
2438 (windows_delete_thread): Update.
2439 (windows_nat_target::attach): Update.
2440 (windows_nat_target::files_info): Update.
2441 * target-delegates.c: Rebuild.
2442 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
2443 return type.
2444 (sol_thread_target::pid_to_str): Change return type.
2445 * remote.c (class remote_target) <pid_to_str>: Change return
2446 type.
2447 (remote_target::pid_to_str): Change return type.
2448 (extended_remote_target::attach, remote_target::remote_stop_ns)
2449 (remote_target::remote_notif_remove_queued_reply)
2450 (remote_target::push_stop_reply, remote_target::disable_btrace):
2451 Update.
2452 (extended_remote_target::attach): Update.
2453 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
2454 type.
2455 (gdbsim_target::pid_to_str): Change return type.
2456 * ravenscar-thread.c (struct ravenscar_thread_target)
2457 <pid_to_str>: Change return type.
2458 (ravenscar_thread_target::pid_to_str): Change return type.
2459 * procfs.c (class procfs_target) <pid_to_str>: Change return
2460 type.
2461 (procfs_target::pid_to_str): Change return type.
2462 (procfs_target::attach): Update.
2463 (procfs_target::detach): Update.
2464 (procfs_target::fetch_registers): Update.
2465 (procfs_target::store_registers): Update.
2466 (procfs_target::wait): Update.
2467 (procfs_target::files_info): Update.
2468 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
2469 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
2470 return type.
2471 (nto_procfs_target::pid_to_str): Change return type.
2472 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
2473 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
2474 return type.
2475 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
2476 (exit_lwp): Update.
2477 (attach_proc_task_lwp_callback, get_detach_signal)
2478 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
2479 (linux_nat_target::resume, wait_lwp, stop_callback)
2480 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
2481 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
2482 (linux_nat_wait_1, resume_stopped_resumed_lwps)
2483 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
2484 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
2485 type.
2486 (inf_ptrace_target::attach): Update.
2487 (inf_ptrace_target::files_info): Update.
2488 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
2489 type.
2490 (go32_nat_target::pid_to_str): Change return type.
2491 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
2492 (gnu_nat_target::wait): Update.
2493 (gnu_nat_target::wait): Update.
2494 (gnu_nat_target::resume): Update.
2495 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
2496 (fbsd_nat_target::wait): Update.
2497 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
2498 type.
2499 (darwin_nat_target::attach): Update.
2500 * corelow.c (class core_target) <pid_to_str>: Change return type.
2501 (core_target::pid_to_str): Change return type.
2502 * target.c (normal_pid_to_str): Change return type.
2503 (default_pid_to_str): Likewise.
2504 (target_pid_to_str): Change return type.
2505 (target_translate_tls_address): Update.
2506 (target_announce_detach): Update.
2507 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
2508 return type.
2509 (bsd_uthread_target::pid_to_str): Change return type.
2510 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
2511 type.
2512 (bsd_kvm_target::pid_to_str): Change return type.
2513 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
2514 return type.
2515 (aix_thread_target::pid_to_str): Change return type.
2516 * target.h (struct target_ops) <pid_to_str>: Change return type.
2517 (target_pid_to_str, normal_pid_to_str): Likewise.
2518 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
2519 type.
2520 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
2521 type.
2522 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
2523 return type.
2524 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
2525 type.
2526 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
2527 type.
2528 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
2529 return type.
2530
2531 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
2532
2533 * NEWS: Mention that the new default MI version is 3. Mention
2534 changes to the output of commands and events that deal with
2535 multi-location breakpoints.
2536 * breakpoint.c: Include "mi/mi-out.h".
2537 (print_one_breakpoint): Change output syntax if using MI version
2538 >= 3.
2539 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
2540 New.
2541 (mi_multi_location_breakpoint_output_fixed): New.
2542 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
2543 (mi_cmd_fix_multi_location_breakpoint_output): New.
2544 (mi_multi_location_breakpoint_output_fixed): New.
2545 * mi/mi-cmds.c (mi_cmds): Register command
2546 -fix-multi-location-breakpoint-output.
2547 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
2548 interpreter "mi".
2549
2550 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
2551
2552 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
2553 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
2554 instantiate mi_ui_out based on interpreter name.
2555 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
2556 * mi/mi-main.c (mi_load_progress): Likewise.
2557
2558 2019-03-12 John Baldwin <jhb@FreeBSD.org>
2559
2560 * NEWS: Combine separate "New targets" sections for 8.3.
2561
2562 2019-03-12 John Baldwin <jhb@FreeBSD.org>
2563
2564 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
2565 (ppcfbsd_init_abi): Install gdbarch
2566 "fetch_tls_load_module_address" and "get_thread_local_address"
2567 methods.
2568
2569 2019-03-12 John Baldwin <jhb@FreeBSD.org>
2570
2571 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
2572 (riscv_fbsd_init_abi): Install gdbarch
2573 "fetch_tls_load_module_address" and "get_thread_local_address"
2574 methods.
2575
2576 2019-03-12 John Baldwin <jhb@FreeBSD.org>
2577
2578 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
2579 (i386fbsd_init_abi): Install gdbarch
2580 "fetch_tls_load_module_address" and "get_thread_local_address"
2581 methods.
2582
2583 2019-03-12 John Baldwin <jhb@FreeBSD.org>
2584
2585 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
2586 (amd64fbsd_init_abi): Install gdbarch
2587 "fetch_tls_load_module_address" and "get_thread_local_address"
2588 methods.
2589
2590 2019-03-12 John Baldwin <jhb@FreeBSD.org>
2591
2592 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
2593 (struct fbsd_pspace_data): New type.
2594 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
2595 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
2596 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
2597 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
2598 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
2599
2600 2019-03-12 John Baldwin <jhb@FreeBSD.org>
2601
2602 * gdbtypes.c (lookup_struct_elt): New function.
2603 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
2604 * gdbtypes.h (struct struct_elt): New type.
2605 (lookup_struct_elt): New prototype.
2606
2607 2019-03-12 John Baldwin <jhb@FreeBSD.org>
2608
2609 * gdbtypes.c (lookup_struct_elt_type): Update comment and
2610 remove disabled code block.
2611
2612 2019-03-12 John Baldwin <jhb@FreeBSD.org>
2613
2614 * gdbarch.sh (get_thread_local_address): New method.
2615 * gdbarch.h, gdbarch.c: Regenerate.
2616 * target.c (target_translate_tls_address): Use
2617 gdbarch_get_thread_local_address if present instead of
2618 target::get_thread_local_address.
2619
2620 2019-03-12 John Baldwin <jhb@FreeBSD.org>
2621
2622 * target.h (target::get_thread_local_address): Update comment.
2623
2624 2019-03-12 John Baldwin <jhb@FreeBSD.org>
2625
2626 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
2627 objfile->separate_debug_objfile_backlink if not NULL.
2628
2629 2019-03-12 John Baldwin <jhb@FreeBSD.org>
2630
2631 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
2632 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
2633 (amd64bsd_store_inferior_registers): Likewise.
2634 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
2635 Enable segment base registers.
2636 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
2637 PT_GETFSBASE and PT_GETGSBASE.
2638 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
2639 PT_SETGSBASE.
2640 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
2641 segment base registers.
2642 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
2643
2644 2019-03-12 John Baldwin <jhb@FreeBSD.org>
2645
2646 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
2647 Update calls to i386_target_description to add 'segments'
2648 parameter.
2649 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
2650 add segment base registers.
2651 * arch/i386.c (i386_create_target_description): Add 'segments'
2652 parameter to enable segment base registers.
2653 * arch/i386.h (i386_create_target_description): Likewise.
2654 * features/i386/32bit-segments.xml: New file.
2655 * features/i386/32bit-segments.c: Generate.
2656 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
2657 call to i386_target_description to add 'segments' parameter.
2658 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
2659 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
2660 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
2661 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
2662 if feature is present.
2663 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
2664 Add 'segments' parameter to call to i386_target_description.
2665 (i386_target_description): Add 'segments' parameter to enable
2666 segment base registers.
2667 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
2668 to call to i386_target_description.
2669 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
2670 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
2671 Define I386_NUM_REGS.
2672 (i386_target_description): Add 'segments' parameter to enable
2673 segment base registers.
2674
2675 2019-03-12 Eli Zaretskii <eliz@gnu.org>
2676
2677 PR/24325
2678 * source-cache.c: #undef open and close, to avoid unresolved
2679 externals during linking.
2680
2681 2019-03-12 Tom Tromey <tromey@adacore.com>
2682
2683 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
2684 const. Add initializers.
2685 (_initialize_remote): Don't initialize ptid globals.
2686
2687 2019-03-12 Pedro Alves <palves@redhat.com>
2688
2689 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
2690
2691 2019-03-12 Pedro Alves <palves@redhat.com>
2692
2693 * cp-name-parser.y (main): Remove unused 'len' variable.
2694
2695 2019-03-12 Tom Tromey <tromey@adacore.com>
2696
2697 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
2698 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
2699
2700 2019-03-12 Tom Tromey <tromey@adacore.com>
2701
2702 * linux-nat.c (iterate_over_lwps): Update.
2703 (stop_callback): Remove parameter.
2704 (stop_wait_callback, detach_callback, resume_set_callback)
2705 (select_singlestep_lwp_callback, set_ignore_sigint)
2706 (status_callback, resumed_callback, resume_clear_callback)
2707 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
2708 data parameter.
2709 (linux_nat_target::detach, linux_nat_target::resume)
2710 (linux_stop_and_wait_all_lwps, select_event_lwp)
2711 (linux_nat_filter_event, linux_nat_wait_1)
2712 (linux_nat_target::kill, linux_nat_target::stop)
2713 (linux_nat_target::stop): Update.
2714 (linux_nat_resume_callback): Change type.
2715 (resume_stopped_resumed_lwps, count_events_callback)
2716 (select_event_lwp_callback): Likewise.
2717 (linux_stop_lwp, linux_nat_stop_lwp): Update.
2718 * arm-linux-nat.c (struct update_registers_data): Remove.
2719 (update_registers_callback): Change type.
2720 (arm_linux_insert_hw_breakpoint1): Update.
2721 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
2722 parameter.
2723 (x86_linux_dr_set_addr): Update.
2724 (x86_linux_dr_set_control): Update.
2725 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
2726 (iterate_over_lwps): Use gdb::function_view.
2727 * nat/aarch64-linux-hw-point.c (struct
2728 aarch64_dr_update_callback_param): Remove.
2729 (debug_reg_change_callback): Change type.
2730 (aarch64_notify_debug_reg_change): Update.
2731 * s390-linux-nat.c (s390_refresh_per_info): Update.
2732
2733 2019-03-11 Tom Tromey <tromey@adacore.com>
2734
2735 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
2736 redundant assignment to "this_cu".
2737
2738 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
2739
2740 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
2741
2742 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
2743
2744 * gdbtypes.c (rank_one_type_parm_set): New function extracted
2745 from...
2746 (rank_one_type): ... this.
2747
2748 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
2749
2750 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
2751 from...
2752 (rank_one_type): ... this.
2753
2754 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
2755
2756 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
2757 from...
2758 (rank_one_type): ... this.
2759
2760 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
2761
2762 * gdbtypes.c (rank_one_type_parm_float): New function extracted
2763 from...
2764 (rank_one_type): ... this.
2765
2766 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
2767
2768 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
2769 from...
2770 (rank_one_type): ... this.
2771
2772 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
2773
2774 * gdbtypes.c (rank_one_type_parm_range): New function extracted
2775 from...
2776 (rank_one_type): ... this.
2777
2778 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
2779
2780 * gdbtypes.c (rank_one_type_parm_char): New function extracted
2781 from...
2782 (rank_one_type): ... this.
2783
2784 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
2785
2786 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
2787 from...
2788 (rank_one_type): ... this.
2789
2790 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
2791
2792 * gdbtypes.c (rank_one_type_parm_int): New function extracted
2793 from...
2794 (rank_one_type): ... this.
2795
2796 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
2797
2798 * gdbtypes.c (rank_one_type_parm_func): New function extracted
2799 from...
2800 (rank_one_type): ... this.
2801
2802 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
2803
2804 * gdbtypes.c (rank_one_type_parm_array): New function extracted
2805 from...
2806 (rank_one_type): ... this.
2807
2808 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
2809
2810 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
2811 from...
2812 (rank_one_type): ... this.
2813
2814 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2815
2816 * inferior.c (initialize_inferiors): Ensure 'help set/show print
2817 inferior-events' shows the example events.
2818
2819 2019-03-08 Eli Zaretskii <eliz@gnu.org>
2820
2821 Support styling on native MS-Windows console
2822
2823 PR/24315
2824 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
2825 on MS-Windows if $TERM is not defined.
2826
2827 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
2828
2829 * posix-hdep.c (gdb_console_fputs):
2830 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
2831 functions.
2832 * ui-file.h (gdb_console_fputs): Add prototype.
2833
2834 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
2835 back to fputs only if the former returns zero.
2836
2837 2019-03-07 Tom Tromey <tom@tromey.com>
2838
2839 * symmisc.c (print_symbol_bcache_statistics): Update.
2840 (print_objfile_statistics): Update.
2841 * symfile.c (allocate_symtab): Update.
2842 * stabsread.c: Don't include bcache.h.
2843 * psymtab.h (struct psymbol_bcache): Don't declare.
2844 (class psymtab_storage) <psymbol_cache>: Now a bcache.
2845 (psymbol_bcache_init, psymbol_bcache_free)
2846 (psymbol_bcache_get_bcache): Don't declare.
2847 * psymtab.c (struct psymbol_bcache): Remove.
2848 (psymtab_storage::psymtab_storage): Update.
2849 (psymtab_storage::~psymtab_storage): Update.
2850 (psymbol_bcache_init, psymbol_bcache_free)
2851 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
2852 (add_psymbol_to_bcache): Update.
2853 (allocate_psymtab): Update.
2854 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
2855 macro_cache>: No longer pointers.
2856 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
2857 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
2858 * macrotab.c (macro_bcache): Update.
2859 * macroexp.c: Don't include bcache.h.
2860 * gdbtypes.c (check_types_worklist): Update.
2861 (types_deeply_equal): Remove TRY/CATCH. Update.
2862 * elfread.c (elf_symtab_read): Update.
2863 * dwarf2read.c: Don't include bcache.h.
2864 * buildsym.c (buildsym_compunit::get_macro_table): Update.
2865 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
2866 (print_bcache_statistics, bcache_memory_used): Don't declare.
2867 (struct bcache): Move from bcache.c. Add constructor, destructor,
2868 methods. Rename all data members.
2869 * bcache.c (struct bcache): Move to bcache.h.
2870 (bcache::expand_hash_table): Rename from expand_hash_table.
2871 (bcache): Remove.
2872 (bcache::insert): Rename from bcache_full.
2873 (bcache::compare): Rename from bcache_compare.
2874 (bcache_xmalloc): Remove.
2875 (bcache::~bcache): Rename from bcache_xfree.
2876 (bcache::print_statistics): Rename from print_bcache_statistics.
2877 (bcache::memory_used): Rename from bcache_memory_used.
2878
2879 2019-03-07 Pedro Alves <palves@redhat.com>
2880
2881 * infrun.c (normal_stop): Also check for
2882 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
2883
2884 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
2885
2886 * f-lang.c (value_from_host_double): Moved to...
2887 * value.c (value_from_host_double): ...here.
2888 * value.h (value_from_host_double): Declare.
2889 * guile/scm-math.c (vlscm_convert_typed_number): Use
2890 value_from_host_double.
2891 (vlscm_convert_number): Likewise.
2892 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
2893 * python/py-value.c (convert_value_from_python): Likewise.
2894
2895 2019-03-06 Tom Tromey <tom@tromey.com>
2896
2897 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
2898
2899 2019-03-06 Tom Tromey <tom@tromey.com>
2900
2901 * utils.h (free_current_contents): Don't declare.
2902 * utils.c (free_current_contents): Remove.
2903
2904 2019-03-06 Tom Tromey <tom@tromey.com>
2905
2906 * top.c (quit_force): Update.
2907 * main.c (captured_command_loop): Update.
2908 * common/new-op.c (operator new): Update.
2909 * common/common-exceptions.c (struct catcher)
2910 <save_cleanup_chain>: Remove member.
2911 (exceptions_state_mc_init): Update.
2912 (exception_try_scope_entry): Return nullptr.
2913 (exception_try_scope_exit, exception_rethrow)
2914 (throw_exception_sjlj, throw_exception_cxx): Update.
2915 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
2916 (all_cleanups, do_cleanups, discard_cleanups)
2917 (discard_final_cleanups, save_cleanups, save_final_cleanups)
2918 (restore_cleanups, restore_final_cleanups): Don't declare.
2919 (do_final_cleanups): Remove parameter.
2920 * common/cleanups.c (cleanup_chain, make_cleanup)
2921 (make_cleanup_dtor, all_cleanups, do_cleanups)
2922 (discard_my_cleanups, discard_cleanups)
2923 (discard_final_cleanups, save_my_cleanups, save_cleanups)
2924 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
2925 (null_cleanup): Remove.
2926 (do_final_cleanups): Remove parameter.
2927
2928 2019-03-06 Tom Tromey <tom@tromey.com>
2929
2930 * remote.c (remote_target::remote_parse_stop_reply): Use
2931 unique_xmalloc_ptr.
2932
2933 2019-03-06 Tom Tromey <tom@tromey.com>
2934
2935 * stabsread.c (struct stabs_field_info): Rename from field_info.
2936 <list, fnlist>: Add initializers.
2937 <obstack>: New member.
2938 (read_member_functions, read_struct_fields, read_baseclasses):
2939 Allocate on obstack. Don't use cleanups.
2940 (read_one_struct_field, read_member_functions, read_struct_fields)
2941 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
2942 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
2943 (read_struct_type): Update.
2944
2945 2019-03-06 Tom Tromey <tom@tromey.com>
2946
2947 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
2948 * common/filestuff.h (make_cleanup_close): Don't declare.
2949 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
2950 Remove.
2951
2952 2019-03-06 Tom Tromey <tom@tromey.com>
2953
2954 * solib-aix.c: Use make_scope_exit.
2955
2956 2019-03-06 Tom Tromey <tom@tromey.com>
2957
2958 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
2959 Use make_scope_exit.
2960
2961 2019-03-06 Tom Tromey <tom@tromey.com>
2962
2963 * solib-svr4.c (disable_probes_interface): Remove parameter.
2964 (svr4_handle_solib_event): Use make_scope_exit.
2965
2966 2019-03-06 Tom Tromey <tom@tromey.com>
2967
2968 * remote.c (struct stop_reply_deleter): Remove.
2969 (stop_reply_up): Update.
2970 (struct stop_reply): Derive from notif_event. Don't typedef.
2971 <regcache>: Now a std::vector.
2972 (stop_reply_xfree): Remove.
2973 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
2974 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
2975 (remote_target::discard_pending_stop_replies): Use delete.
2976 (remote_target::remote_parse_stop_reply): Update.
2977 (remote_target::process_stop_reply): Update.
2978 * remote-notif.h (struct notif_event): Add virtual destructor.
2979 Remove "dtr" member.
2980 (struct notif_client) <alloc_event>: Return a unique_ptr.
2981 (notif_event_xfree): Don't declare.
2982 (notif_event_up): New typedef.
2983 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
2984 (notif_event_xfree, do_notif_event_xfree): Remove.
2985 (remote_notif_state_xfree): Update.
2986
2987 2019-03-06 Tom Tromey <tom@tromey.com>
2988
2989 * infrun.c (displaced_step_clear_cleanup): Now a
2990 forward_scope_exit type.
2991 (displaced_step_prepare_throw): Update.
2992 (displaced_step_fixup): Update.
2993
2994 2019-03-06 Tom Tromey <tom@tromey.com>
2995
2996 * inferior.h (class inferior): Update comment.
2997 * gdbthread.h (class thread_info): Update comment.
2998
2999 2019-03-06 Joel Brobecker <brobecker@adacore.com>
3000 Tom Tromey <tom@tromey.com>
3001
3002 * stabsread.h (struct stab_section_list): Remove.
3003 (coffstab_build_psymtabs): Update.
3004 * dbxread.c (symbuf_sections): Now a std::vector.
3005 (sect_idx): New global.
3006 (fill_symbuf): Update.
3007 (coffstab_build_psymtabs): Change type of stabsects parameter.
3008 Update.
3009 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
3010 std::vector.
3011 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
3012 (coff_locate_sections): Update.
3013 (coff_symfile_read): Remove cleanups. Update.
3014 (init_stringtab): Add storage parameter.
3015 (free_stringtab, free_stringtab_cleanup): Remove.
3016 (init_lineno): Add storage parameter.
3017 (free_linetab, free_linetab_cleanup): Remove.
3018
3019 2019-03-06 Pedro Alves <palves@redhat.com>
3020
3021 * linux-fork.c (fork_info::clobber_regs): Delete.
3022 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
3023 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
3024 comment. Adjust.
3025 (scoped_switch_fork_info::scoped_switch_fork_info)
3026 (checkpoint_command, linux_fork_context): Adjust
3027 fork_save_infrun_state calls.
3028
3029 2019-03-06 Pedro Alves <palves@redhat.com>
3030
3031 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
3032 (inf_has_multiple_threads): Return 'bool' and rewrite using
3033 inferior_info::threads().
3034
3035 2019-03-06 Pedro Alves <palves@redhat.com>
3036
3037 * linux-fork.c: Include <list>.
3038 (fork_list): Now a std::list instance.
3039 (fork_info): Add ctor, dtor, and in-class initialize all fields.
3040 (forks_exist_p, find_last_fork): Adjust.
3041 (new_fork): Delete.
3042 (one_fork_p): New.
3043 (add_fork): Adjust.
3044 (free_fork): Delete, folded into fork_info::~fork_info().
3045 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
3046 Adjust.
3047 (init_fork_list): Delete.
3048 (linux_fork_killall, linux_fork_mourn_inferior)
3049 (linux_fork_detach, info_checkpoints_command): Adjust.
3050 (_initialize_linux_fork): No longer call init_fork_list.
3051
3052 2019-03-06 Pedro Alves <palves@redhat.com>
3053
3054 * linux-fork.c (new_fork): New, split out of ...
3055 (add_fork): ... this. Return void. Move "first fork" special
3056 case from here, to ...
3057 (checkpoint_command): ... here.
3058 * linux-linux.h (add_fork): Return void.
3059
3060 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
3061
3062 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
3063
3064 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
3065 Chris January <chris.january@arm.com>
3066 David Lecomber <david.lecomber@arm.com>
3067
3068 * f-exp.y: New token, UNOP_INTRINSIC.
3069 (exp): New pattern using UNOP_INTRINSIC token.
3070 (f77_keywords): Add 'abs' keyword.
3071 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
3072 (value_from_host_double): New function.
3073 (evaluate_subexp_f): Support UNOP_ABS.
3074
3075 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
3076
3077 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
3078 types.
3079
3080 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
3081
3082 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
3083 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
3084 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
3085
3086 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
3087
3088 * f-exp.y (convert_to_kind_type): Handle more type kinds.
3089
3090 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
3091 Chris January <chris.january@arm.com>
3092
3093 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
3094 * f-exp.y: Define 'KIND' token.
3095 (exp): New pattern for KIND expressions.
3096 (ptype): Handle types with a kind extension.
3097 (direct_abs_decl): Extend to spot kind extensions.
3098 (f77_keywords): Add 'kind' to the list.
3099 (push_kind_type): New function.
3100 (convert_to_kind_type): New function.
3101 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
3102 * parse.c (operator_length_standard): Likewise.
3103 * parser-defs.h (enum type_pieces): Add tp_kind.
3104 * std-operator.def: Add UNOP_KIND.
3105
3106 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
3107
3108 * f-exp.y (f_parse): Set yydebug.
3109
3110 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
3111
3112 * f-lang.c (evaluate_subexp_f): New function.
3113 (exp_descriptor_f): New global.
3114 (f_language_defn): Use exp_descriptor_f instead of
3115 exp_descriptor_standard.
3116
3117 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
3118
3119 * f-exp.y (struct token): Add comments.
3120 (dot_ops): Remove uppercase versions and the end marker.
3121 (f77_keywords): Likewise.
3122 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
3123 entries in the dot_ops array are case insensitive, and use
3124 strncasecmp to compare strings. Also some whitespace cleanup in
3125 this area. Similar for the f77_keywords array, except entries in
3126 this list might be case sensitive.
3127
3128 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
3129
3130 * f-exp.y (struct f77_boolean_val): Add comments.
3131 (boolean_values): Remove uppercase versions, and end marker.
3132 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
3133 and use strncasecmp to achieve case insensitivity. Additionally,
3134 perform whitespace cleanup around this code.
3135
3136 2019-03-06 Tom Tromey <tromey@adacore.com>
3137
3138 * remote-sim.c (gdbsim_target_open): Use result of
3139 gdb_argv::release.
3140
3141 2019-03-06 Richard Bunt <richard.bunt@arm.com>
3142 Dirk Schubert <dirk.schubert@arm.com>
3143 Chris January <chris.january@arm.com>
3144
3145 * eval.c (evaluate_subexp_standard): Call Fortran argument
3146 wrapping logic.
3147 * f-lang.c (struct value): A value which can be passed into a
3148 Fortran function call.
3149 (fortran_argument_convert): Wrap Fortran arguments in a pointer
3150 where appropriate.
3151 (struct type): Value ready for a Fortran function call.
3152 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
3153 is needed.
3154 * f-lang.h (fortran_argument_convert): Declaration.
3155 (fortran_preserve_arg_pointer): Declaration.
3156 * infcall.c (value_arg_coerce): Call Fortran argument logic.
3157
3158 2019-03-05 Tom Tromey <tromey@adacore.com>
3159
3160 * python/py-prettyprint.c (print_string_repr): Remove #if.
3161 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
3162
3163 2019-03-05 Tom Tromey <tromey@adacore.com>
3164
3165 * target.c (the_dummy_target): Move later. Change type to
3166 "dummy_target".
3167 (initialize_targets): Don't initialize the_dummy_target.
3168
3169 2019-03-05 Tom Tromey <tromey@adacore.com>
3170
3171 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
3172 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
3173
3174 2019-03-05 Tom Tromey <tromey@adacore.com>
3175
3176 * windows-nat.c (windows_nat_target::attach)
3177 (windows_nat_target::detach): Don't call gdb_flush.
3178 * valprint.c (generic_val_print, val_print, val_print_string):
3179 Don't call gdb_flush.
3180 * utils.c (defaulted_query): Don't call gdb_flush.
3181 * typeprint.c (print_type_scalar): Don't call gdb_flush.
3182 * target.c (target_announce_detach): Don't call gdb_flush.
3183 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
3184 * remote.c (extended_remote_target::attach): Don't call
3185 gdb_flush.
3186 * procfs.c (procfs_target::detach): Don't call gdb_flush.
3187 * printcmd.c (do_examine): Don't call gdb_flush.
3188 (info_display_command): Don't call gdb_flush.
3189 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
3190 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
3191 * memattr.c (info_mem_command): Don't call gdb_flush.
3192 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
3193 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
3194 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
3195 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
3196 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
3197 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
3198 (gnu_nat_target::detach): Don't call gdb_flush.
3199 * f-valprint.c (f_val_print): Don't call gdb_flush.
3200 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
3201 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
3202 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
3203 gdb_flush.
3204 * c-valprint.c (c_val_print): Don't call gdb_flush.
3205 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
3206
3207 2019-03-05 Tom Tromey <tromey@adacore.com>
3208
3209 * varobj.c (update_dynamic_varobj_children): Update.
3210 (install_default_visualizer): Use reset, not release.
3211 * value.c (set_internalvar): Update.
3212 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
3213 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
3214 ATTRIBUTE_UNUSED_RESULT.
3215
3216 2019-03-05 Tom Tromey <tromey@adacore.com>
3217
3218 * remote.c (class scoped_remote_fd) <release>: Add
3219 ATTRIBUTE_UNUSED_RESULT.
3220
3221 2019-03-05 Tom Tromey <tromey@adacore.com>
3222
3223 * macroexp.c (struct macro_buffer) <release>: Add
3224 ATTRIBUTE_UNUSED_RESULT.
3225
3226 2019-03-05 Tom Tromey <tromey@adacore.com>
3227
3228 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
3229 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
3230 ATTRIBUTE_UNUSED_RESULT.
3231
3232 2019-03-05 Tom Tromey <tromey@adacore.com>
3233
3234 * common/scoped_fd.h (class scoped_fd) <release>: Add
3235 ATTRIBUTE_UNUSED_RESULT.
3236
3237 2019-03-05 Tom Tromey <tromey@adacore.com>
3238
3239 * parser-defs.h (struct parser_state) <release>: Add
3240 ATTRIBUTE_UNUSED_RESULT.
3241
3242 2019-03-05 Tom Tromey <tromey@adacore.com>
3243
3244 * utils.h (class gdb_argv) <release>: Add
3245 ATTRIBUTE_UNUSED_RESULT.
3246 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
3247
3248 2019-03-02 Eli Zaretskii <eliz@gnu.org>
3249
3250 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
3251 for-loop range, to avoid compiler warnings.
3252
3253 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
3254 avoid compiler warnings about unused variables.
3255
3256 * NEWS: Mention end of support for native debugging on MS-Windows
3257 before XP.
3258
3259 PR gdb/24292
3260 * common/netstuff.c:
3261 * gdbserver/gdbreplay.c
3262 * gdbserver/remote-utils.c:
3263 * ser-tcp.c:
3264 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
3265 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
3266 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
3267 'getaddrinfo' and 'freeaddrinfo' were not available before
3268 Windows XP, and mingw.org's MinGW headers by default define
3269 _WIN32_WINNT to 0x500.
3270
3271 2019-03-01 Gary Benson <gbenson@redhat.com>
3272
3273 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
3274
3275 2019-02-28 Brian Vandenberg <phantall@gmail.com>
3276 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3277
3278 PR gdb/8527
3279 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
3280 set_sigint_trap, clear_sigint_trap.
3281
3282 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3283
3284 * target.c (target_detach): Clear the regcache and the
3285 frame cache.
3286
3287 2019-02-27 Pedro Alves <palves@redhat.com>
3288
3289 * utils.c (set_screen_size): When we cap the height/width sizes,
3290 tweak the corresponding command variable to show "unlimited":
3291
3292 2019-02-27 Saagar Jha <saagar@saagarjha.com>
3293 Pedro Alves <palves@redhat.com>
3294
3295 * utils.c (set_screen_size): Reduce "infinite" rows and columns
3296 before calling rl_set_screen_size.
3297
3298 2019-02-27 Tom Tromey <tromey@adacore.com>
3299
3300 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
3301 define.
3302 * python/py-value.c: Remove Python 2.4 workaround.
3303 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
3304 workaround.
3305 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
3306 Python 2.4 workaround.
3307 * python/python-internal.h: Remove Python 2.4 comment.
3308 (Py_ssize_t): Don't define.
3309 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
3310 (gdb_Py_DECREF): Remove Python 2.4 workaround.
3311 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
3312 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
3313 * python/python.c (do_start_initialization): Remove Python 2.4
3314 workaround.
3315 * python/py-prettyprint.c (class dummy_python_frame): Remove.
3316 (print_children): Remove Python 2.4 workaround.
3317 * python/py-inferior.c (buffer_procs): Remove Python 2.4
3318 workaround.
3319 (CHARBUFFERPROC_NAME): Remove.
3320 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
3321 Python 2.4 workaround.
3322
3323 2019-02-27 Kevin Buettner <kevinb@redhat.com>
3324
3325 * NEWS: Note minimum Python version.
3326
3327 2019-02-27 Kevin Buettner <kevinb@redhat.com>
3328
3329 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
3330 code from these functions. Remove corresponding ifdefs. Use
3331 Py_buffer_up instead of explicit calls to PyBuffer_Release.
3332 Remove gotos and target of gotos.
3333 (infpy_search_memory): Likewise.
3334
3335 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
3336
3337 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
3338 (hppa_gdbarch_init): Don't register deleted functions with
3339 gdbarch.
3340
3341 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
3342
3343 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
3344 (h8300_unwind_sp): Delete.
3345 (h8300_dummy_id): Delete.
3346 (h8300_gdbarch_init): Don't register deleted functions with
3347 gdbarch.
3348
3349 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
3350
3351 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
3352 (ft32_unwind_pc): Delete.
3353 (ft32_unwind_sp): Delete.
3354 (ft32_gdbarch_init): Don't register deleted functions with
3355 gdbarch.
3356
3357 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
3358
3359 * gdb/frv-tdep.c (frv_dummy_id): Delete.
3360 (frv_unwind_pc): Delete.
3361 (frv_unwind_sp): Delete.
3362 (frv_gdbarch_init): Don't register deleted functions with
3363 gdbarch.
3364
3365 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
3366
3367 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
3368 (riscv_unwind_pc): Delete.
3369 (riscv_unwind_sp): Delete.
3370 (riscv_gdbarch_init): Don't register deleted functions with
3371 gdbarch.
3372
3373 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
3374
3375 * gdb/csky-tdep.c (csky_dummy_id): Delete.
3376 (csky_unwind_pc): Delete.
3377 (csky_unwind_sp): Delete.
3378 (csky_gdbarch_init): Don't register deleted functions with
3379 gdbarch.
3380
3381 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
3382
3383 * gdb/cris-tdep.c (cris_dummy_id): Delete.
3384 (cris_unwind_pc): Delete.
3385 (cris_unwind_sp): Delete.
3386 (cris_gdbarch_init): Don't register deleted functions with
3387 gdbarch.
3388
3389 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
3390
3391 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
3392 (bfin_unwind_pc): Delete.
3393 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
3394
3395 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
3396
3397 * gdb/arm-tdep.c (arm_dummy_id): Delete.
3398 (arm_unwind_pc): Delete.
3399 (arm_unwind_sp): Delete.
3400 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
3401
3402 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
3403
3404 * gdb/arc-tdep.c (arc_dummy_id): Delete.
3405 (arc_unwind_pc): Delete.
3406 (arc_unwind_sp): Delete.
3407 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
3408
3409 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
3410
3411 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
3412 (alpha_unwind_pc): Delete.
3413 (alpha_gdbarch_init): Don't register deleted functions with
3414 gdbarch.
3415
3416 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
3417
3418 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
3419 (aarch64_unwind_pc): Delete.
3420 (aarch64_unwind_sp): Delete.
3421 (aarch64_gdbarch_init): Don't register deleted functions with
3422 gdbarch.
3423
3424 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
3425
3426 * gdbtypes.c (type_align): Don't consider static members when
3427 computing structure alignment.
3428
3429 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
3430
3431 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
3432 return 0 for other types.
3433 * arch-utils.c (default_type_align): Always return 0.
3434 * gdbarch.h: Regenerate.
3435 * gdbarch.sh (type_align): Extend comment.
3436 * gdbtypes.c (type_align): Add additional comments, always call
3437 gdbarch_type_align before applying the default rules.
3438 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
3439 generic code will then apply a suitable default.
3440 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
3441 types, return 0 for other types.
3442
3443 2019-02-27 Joel Brobecker <brobecker@adacore.com>
3444
3445 * NEWS: Create a new section for the next release branch.
3446 Rename the section of the current branch, now that it has
3447 been cut.
3448
3449 2019-02-27 Joel Brobecker <brobecker@adacore.com>
3450
3451 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
3452 * version.in: Bump version to 8.3.50.DATE-git.
3453
3454 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
3455
3456 * aix-thread.c (ptid_cmp): Remove unused variable.
3457 (get_signaled_thread): Likewise.
3458 (store_regs_user_thread): Likewise.
3459 (store_regs_kernel_thread): Likewise.
3460 (fetch_regs_kernel_thread): Remove shadowed variable.
3461
3462 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
3463
3464 * features/riscv/32bit-cpu.xml: Add register numbers.
3465 * features/riscv/32bit-fpu.c: Regenerate.
3466 * features/riscv/32bit-fpu.xml: Add register numbers.
3467 * features/riscv/64bit-cpu.xml: Add register numbers.
3468 * features/riscv/64bit-fpu.c: Regenerate.
3469 * features/riscv/64bit-fpu.xml: Add register numbers.
3470
3471 2019-02-26 Kevin Buettner <kevinb@redhat.com>
3472
3473 * NEWS: Mention two argument form of gdb.Value constructor.
3474 * python/py-value.c (convert_buffer_and_type_to_value): New
3475 function.
3476 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
3477 Add support for handling an optional second argument. Call
3478 convert_buffer_and_type_to_value as appropriate.
3479 * python/python-internal.h (Py_buffer_deleter): New struct.
3480 (Py_buffer_up): New typedef.
3481
3482 2019-02-25 John Baldwin <jhb@FreeBSD.org>
3483
3484 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
3485 instead of releasing ownership.
3486
3487 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
3488
3489 * dwarf2read.c (open_and_init_dwp_file): Call
3490 elf_numsections instead of bfd_count_sections to initialize
3491 dwp_file->num_sections.
3492
3493 2019-02-25 Tom Tromey <tromey@adacore.com>
3494
3495 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
3496
3497 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
3498
3499 * gcore.in: Add '--readnever' option when invoking GDB.
3500
3501 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
3502
3503 * MAINTAINERS: Update my email address.
3504
3505 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
3506
3507 * build-id.c (build_id_to_debug_bfd_1): New function.
3508 (build_id_to_debug_bfd): Look for separate debug file in
3509 sysroot.
3510
3511 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
3512
3513 * gdbarch.sh: Update the copyright year range that is placed into
3514 generated files.
3515
3516 2019-02-22 Keith Seitz <keiths@redhat.com>
3517
3518 PR symtab/23853
3519 * linespec.c (create_sals_line_offset): Search for the default
3520 symtab's filename instead of its fullname.
3521
3522 2019-02-21 Alan Hayward <alan.hayward@arm.com>
3523
3524 * NEWS: Update style defaults.
3525
3526 2019-02-21 Alan Hayward <alan.hayward@arm.com>
3527
3528 * main.c (captured_main_1): Disable styling in batch mode.
3529
3530 2019-02-20 Tom Tromey <tom@tromey.com>
3531
3532 * symtab.c (symtab_symbol_info): Fix typos.
3533
3534 2019-02-20 Tom Tromey <tromey@adacore.com>
3535
3536 * findcmd.c (_initialize_mem_search): Use upper case for
3537 metasyntactic variables.
3538
3539 2019-02-20 Alan Hayward <alan.hayward@arm.com>
3540
3541 * aarch64-tdep.c (aarch64_add_reggroups): New function.
3542 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
3543
3544 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
3545
3546 * top.h (source_file_name): Change to std::string.
3547 * top.c (source_file_name): Likewise.
3548 (command_line_input): Adjust.
3549 * cli/cli-script.c (script_from_file): Adjust.
3550
3551 2019-02-19 Tom Tromey <tromey@adacore.com>
3552
3553 * ravenscar-thread.c
3554 (ravenscar_thread_target::update_thread_list): Don't call
3555 ada_build_task_list.
3556 * ada-lang.h (ada_build_task_list): Don't declare.
3557 * ada-tasks.c (struct ada_tasks_inferior_data)
3558 <task_list_valid_p>: Now bool.
3559 (read_known_tasks, ada_task_list_changed)
3560 (ada_tasks_invalidate_inferior_data): Update.
3561 (read_known_tasks_array): Return bool.
3562 (read_known_tasks_list): Likewise.
3563 (read_known_tasks): Return void.
3564 (ada_build_task_list): Now static.
3565
3566 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
3567
3568 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
3569 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
3570
3571 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3572
3573 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
3574 variant for ada_tasks_pspace_data_handle and
3575 ada_tasks_inferior_data_handle.
3576 (ada_tasks_pspace_data_cleanup): New function.
3577 (ada_tasks_inferior_data_cleanup): New function.
3578
3579 2019-02-17 Tom Tromey <tom@tromey.com>
3580
3581 * macrotab.h (macro_source_fullname): Return a std::string.
3582 * macrotab.c (macro_include, check_for_redefinition)
3583 (macro_undef, macro_lookup_definition, foreach_macro)
3584 (foreach_macro_in_scope): Update.
3585 (macro_source_fullname): Return a std::string.
3586 * macrocmd.c (show_pp_source_pos): Update.
3587
3588 2019-02-17 Tom Tromey <tom@tromey.com>
3589
3590 * macrocmd.c (show_pp_source_pos): Style the file names.
3591
3592 2019-02-17 Tom Tromey <tom@tromey.com>
3593
3594 PR tui/24197:
3595 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
3596
3597 2019-02-17 Tom Tromey <tom@tromey.com>
3598
3599 * ada-lang.c (user_select_syms): Use filtered printing.
3600 * utils.c (wrap_style): New global.
3601 (desired_style): Remove.
3602 (emit_style_escape): Add stream parameter.
3603 (set_output_style, reset_terminal_style, prompt_for_continue):
3604 Update.
3605 (flush_wrap_buffer): Only flush gdb_stdout.
3606 (wrap_here): Set wrap_style.
3607 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
3608 treat escape sequences as a character. Change when wrap buffer is
3609 flushed.
3610 (fputs_styled): Do not set the output style when the default is
3611 requested.
3612 * ui-style.h (struct ui_file_style) <is_default>: New method.
3613 * source.c (print_source_lines_base): Emit escape sequences in one
3614 piece.
3615
3616 2019-02-17 Joel Brobecker <brobecker@adacore.com>
3617
3618 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
3619 integers and enumeration types.
3620
3621 2019-02-17 Joel Brobecker <brobecker@adacore.com>
3622
3623 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
3624 instead of lookup_symbol_in_language
3625 (do_exact_match): New function.
3626 (ada_get_symbol_name_matcher): Return do_exact_match when
3627 doing a verbatim match.
3628
3629 2019-02-15 Tom Tromey <tromey@adacore.com>
3630
3631 * ravenscar-thread.c (ravenscar_thread_target::resume)
3632 (ravenscar_thread_target::wait): Special case wildcard requests.
3633
3634 2019-02-15 Tom Tromey <tromey@adacore.com>
3635
3636 * ravenscar-thread.c (base_ptid): Remove.
3637 (struct ravenscar_thread_target) <close>: New method.
3638 <m_base_ptid>: New member.
3639 <update_inferior_ptid, active_task, task_is_currently_active,
3640 runtime_initialized>: Declare methods.
3641 <ravenscar_thread_target>: Add constructor.
3642 (ravenscar_thread_target::task_is_currently_active)
3643 (ravenscar_thread_target::update_inferior_ptid)
3644 (ravenscar_runtime_initialized): Rename. Now methods.
3645 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
3646 (ravenscar_thread_target::update_thread_list): Update.
3647 (ravenscar_thread_target::active_task): Now method.
3648 (ravenscar_thread_target::store_registers)
3649 (ravenscar_thread_target::prepare_to_store)
3650 (ravenscar_thread_target::prepare_to_store)
3651 (ravenscar_thread_target::mourn_inferior): Update.
3652 (ravenscar_inferior_created): Use "new" to create target.
3653 (ravenscar_thread_target::get_ada_task_ptid): Update.
3654 (_initialize_ravenscar): Don't initialize base_ptid.
3655 (ravenscar_ops): Remove global.
3656
3657 2019-02-15 Tom Tromey <tromey@adacore.com>
3658
3659 * target.h (push_target): Declare new overload.
3660 * target.c (push_target): New overload, taking an rvalue reference.
3661 * remote.c (remote_target::open_1): Use push_target overload.
3662 * corelow.c (core_target_open): Use push_target overload.
3663
3664 2019-02-15 Tom Tromey <tromey@adacore.com>
3665
3666 * ravenscar-thread.c (is_ravenscar_task)
3667 (ravenscar_task_is_currently_active): Return bool.
3668 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
3669 (_initialize_ravenscar): Remove "(void)".
3670 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
3671 Return bool.
3672
3673 2019-02-15 Tom Tromey <tromey@adacore.com>
3674
3675 * ravenscar-thread.c (ravenscar_runtime_initializer)
3676 (has_ravenscar_runtime, get_running_thread_id)
3677 (ravenscar_thread_target::resume): Fix indentation.
3678
3679 2019-02-15 Tom Tromey <tromey@adacore.com>
3680
3681 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
3682 from ravenscar_arch_ops.
3683 (sparc_ravenscar_ops::fetch_registers)
3684 (sparc_ravenscar_ops::store_registers): Now methods.
3685 (sparc_ravenscar_prepare_to_store): Remove.
3686 (sparc_ravenscar_ops): Redefine.
3687 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
3688 methods and destructor. Remove members.
3689 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
3690 (ravenscar_thread_target::store_registers)
3691 (ravenscar_thread_target::prepare_to_store): Update.
3692 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
3693 Remove.
3694 (struct ppc_ravenscar_powerpc_ops): Derive from
3695 ravenscar_arch_ops.
3696 (ppc_ravenscar_powerpc_ops::fetch_registers)
3697 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
3698 (ppc_ravenscar_powerpc_ops): Redefine.
3699 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
3700 (ppc_ravenscar_e500_ops::fetch_registers)
3701 (ppc_ravenscar_e500_ops::store_registers): Now methods.
3702 (ppc_ravenscar_e500_ops): Redefine.
3703 * aarch64-ravenscar-thread.c
3704 (aarch64_ravenscar_generic_prepare_to_store): Remove.
3705 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
3706 (aarch64_ravenscar_fetch_registers)
3707 (aarch64_ravenscar_store_registers): Now methods.
3708 (aarch64_ravenscar_ops): Redefine.
3709
3710 2019-02-15 Tom Tromey <tromey@adacore.com>
3711
3712 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
3713 (ravenscar_thread_target::stopped_by_hw_breakpoint)
3714 (ravenscar_thread_target::stopped_by_watchpoint)
3715 (ravenscar_thread_target::stopped_data_address)
3716 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
3717
3718 2019-02-15 Tom Tromey <tromey@adacore.com>
3719
3720 * ravenscar-thread.c: Fix some typos.
3721
3722 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3723 Tom Tromey <tromey@adacore.com>
3724
3725 * ada-lang.c (ada_exception_sal): Change addr_string to a
3726 std::string.
3727 (create_ada_exception_catchpoint): Update.
3728
3729 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3730 Tom Tromey <tromey@adacore.com>
3731
3732 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
3733 (bp_location_ops): Remove.
3734 (base_breakpoint_allocate_location): Update.
3735 (free_bp_location): Update.
3736 * ada-lang.c (class ada_catchpoint_location)
3737 <ada_catchpoint_location>: Remove ops parameter.
3738 (ada_catchpoint_location_dtor): Remove.
3739 (ada_catchpoint_location_ops): Remove.
3740 (allocate_location_exception): Update.
3741 * breakpoint.h (struct bp_location_ops): Remove.
3742 (class bp_location) <bp_location>: Remove bp_location_ops
3743 parameter.
3744 <~bp_location>: Add destructor.
3745 <ops>: Remove.
3746
3747 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
3748 Pedro Alves <palves@redhat.com>
3749
3750 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
3751 'PATH_MAX'.
3752
3753 2019-02-14 David Michael <fedora.dm0@gmail.com>
3754 Samuel Thibault <samuel.thibault@gnu.org>
3755 Thomas Schwinge <thomas@codesourcery.com>
3756
3757 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
3758 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
3759
3760 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
3761
3762 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
3763 (check_empty): Use "const char *".
3764
3765 * gnu-nat.c (gnu_nat_target::detach): Instead of
3766 'detach_inferior (pid)' call
3767 'detach_inferior (find_inferior_pid (pid))'.
3768
3769 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
3770 'nat/fork-inferior.o'.
3771 * gnu-nat.c: #include "nat/fork-inferior.h".
3772
3773 * gnu-nat.c (gnu_nat_target::detach): Instead of
3774 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
3775 * gnu-nat.h: #include "inf-child.h".
3776 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
3777 'i386_gnu_nat_target::fetch_registers'.
3778 (gnu_store_registers): Rename/move to
3779 'i386_gnu_nat_target::store_registers'.
3780
3781 * config/i386/nm-i386gnu.h: Don't "#include" any files.
3782 * gnu-nat.h (mach_thread_info): New function.
3783 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
3784
3785 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
3786
3787 2019-02-14 Frederic Konrad <konrad@adacore.com>
3788
3789 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
3790
3791 2019-02-14 Joel Brobecker <brobecker@adacore.com>
3792
3793 * windows-nat.c (windows_add_thread): Add new parameter
3794 "main_thread_p" with default value set to false. Update
3795 function documentation as well as all callers.
3796 (windows_delete_thread): Likewise.
3797 (fake_create_process): Update call to windows_add_thread.
3798 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
3799 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
3800 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
3801 call to windows_delete_thread.
3802
3803 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
3804
3805 * MAINTAINERS: Add Andrew Burgess as global maintainer.
3806
3807 2019-02-12 John Baldwin <jhb@FreeBSD.org>
3808
3809 * symfile.c (find_separate_debug_file): Use canonical path of
3810 sysroot with child_path instead of gdb_sysroot if it is valid.
3811
3812 2019-02-12 John Baldwin <jhb@FreeBSD.org>
3813
3814 * symfile.c (find_separate_debug_file): Use child_path to
3815 determine if an object file is under a sysroot.
3816
3817 2019-02-12 John Baldwin <jhb@FreeBSD.org>
3818
3819 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
3820 unittests/child-path-selftests.c.
3821 * common/pathstuff.c (child_path): New function.
3822 * common/pathstuff.h (child_path): New prototype.
3823 * unittests/child-path-selftests.c: New file.
3824
3825 2019-02-12 John Baldwin <jhb@FreeBSD.org>
3826
3827 * symfile.c (find_separate_debug_file): Look for separate debug
3828 files in debug directories under the sysroot.
3829
3830 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3831
3832 * symtab.h (struct minimal_symbol data_p): New const method.
3833 (struct minimal_symbol text_p): Likewise.
3834 * symtab.c (output_source_filename): Use file name style
3835 to print file name.
3836 (print_symbol_info): Likewise.
3837 (print_msymbol_info): Use address style to print addresses.
3838 Use function name style to print executable text symbols.
3839 (expand_symtab_containing_pc): Use data_p.
3840 (find_pc_sect_compunit_symtab): Likewise.
3841
3842 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3843
3844 * breakpoint.c (describe_other_breakpoints): Use address style
3845 to print addresses.
3846 (say_where): Likewise.
3847
3848 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3849
3850 * ada-typeprint.c (print_func_type): Print function name
3851 style to print function name.
3852 * c-typeprint.c (c_print_type_1): Likewise.
3853
3854 2019-02-11 Alan Hayward <alan.hayward@arm.com>
3855
3856 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
3857 for execve.
3858
3859 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3860
3861 * c-exp.y (direct_abs_decl): Use emplace_back to record the
3862 type_stack.
3863
3864 2019-02-10 Joel Brobecker <brobecker@adacore.com>
3865
3866 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
3867 TYPE_CODE_REF types.
3868
3869 2019-02-08 Jim Wilson <jimw@sifive.com>
3870
3871 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
3872 (riscv_linux_fregset): New.
3873 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
3874
3875 2019-02-07 Tom Tromey <tom@tromey.com>
3876
3877 * thread.c (thread_cancel_execution_command): Update.
3878 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
3879 methods.
3880 (struct thread_fsm_ops): Remove.
3881 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
3882 (thread_fsm_should_stop, thread_fsm_return_value)
3883 (thread_fsm_set_finished, thread_fsm_finished_p)
3884 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
3885 Don't declare.
3886 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
3887 * infrun.c (clear_proceed_status_thread)
3888 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
3889 (print_stop_event): Update.
3890 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
3891 Add constructor.
3892 (step_command_fsm_ops): Remove.
3893 (new_step_command_fsm): Remove.
3894 (step_1): Update.
3895 (step_command_fsm::should_stop): Rename from
3896 step_command_fsm_should_stop.
3897 (step_command_fsm::clean_up): Rename from
3898 step_command_fsm_clean_up.
3899 (step_command_fsm::do_async_reply_reason): Rename from
3900 step_command_fsm_async_reply_reason.
3901 (struct until_next_fsm): Inherit from thread_fsm. Add
3902 constructor.
3903 (until_next_fsm_ops): Remove.
3904 (new_until_next_fsm): Remove.
3905 (until_next_fsm::should_stop): Rename from
3906 until_next_fsm_should_stop.
3907 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
3908 (until_next_fsm::do_async_reply_reason): Rename from
3909 until_next_fsm_async_reply_reason.
3910 (struct finish_command_fsm): Inherit from thread_fsm. Add
3911 constructor. Change type of breakpoint.
3912 (finish_command_fsm_ops): Remove.
3913 (new_finish_command_fsm): Remove.
3914 (finish_command_fsm::should_stop): Rename from
3915 finish_command_fsm_should_stop.
3916 (finish_command_fsm::clean_up): Rename from
3917 finish_command_fsm_clean_up.
3918 (finish_command_fsm::return_value): Rename from
3919 finish_command_fsm_return_value.
3920 (finish_command_fsm::do_async_reply_reason): Rename from
3921 finish_command_fsm_async_reply_reason.
3922 (finish_command): Update.
3923 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
3924 Add constructor.
3925 (call_thread_fsm_ops): Remove.
3926 (call_thread_fsm::call_thread_fsm): Rename from
3927 new_call_thread_fsm.
3928 (call_thread_fsm::should_stop): Rename from
3929 call_thread_fsm_should_stop.
3930 (call_thread_fsm::should_notify_stop): Rename from
3931 call_thread_fsm_should_notify_stop.
3932 (run_inferior_call, call_function_by_hand_dummy): Update.
3933 * cli/cli-interp.c (should_print_stop_to_console): Update.
3934 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
3935 Add constructor. Change type of location_breakpoint,
3936 caller_breakpoint.
3937 (until_break_fsm_ops): Remove.
3938 (new_until_break_fsm): Remove.
3939 (until_break_fsm::should_stop): Rename from
3940 until_break_fsm_should_stop.
3941 (until_break_fsm::clean_up): Rename from
3942 until_break_fsm_clean_up.
3943 (until_break_fsm::do_async_reply_reason): Rename from
3944 until_break_fsm_async_reply_reason.
3945 (until_break_command): Update.
3946 * thread-fsm.c: Remove.
3947 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
3948
3949 2019-02-07 Tom Tromey <tom@tromey.com>
3950
3951 * yy-remap.h: Add include guard.
3952 * xtensa-tdep.h: Add include guard.
3953 * xcoffread.h: Rename include guard.
3954 * varobj-iter.h: Add include guard.
3955 * tui/tui.h: Rename include guard.
3956 * tui/tui-winsource.h: Rename include guard.
3957 * tui/tui-wingeneral.h: Rename include guard.
3958 * tui/tui-windata.h: Rename include guard.
3959 * tui/tui-win.h: Rename include guard.
3960 * tui/tui-stack.h: Rename include guard.
3961 * tui/tui-source.h: Rename include guard.
3962 * tui/tui-regs.h: Rename include guard.
3963 * tui/tui-out.h: Rename include guard.
3964 * tui/tui-layout.h: Rename include guard.
3965 * tui/tui-io.h: Rename include guard.
3966 * tui/tui-hooks.h: Rename include guard.
3967 * tui/tui-file.h: Rename include guard.
3968 * tui/tui-disasm.h: Rename include guard.
3969 * tui/tui-data.h: Rename include guard.
3970 * tui/tui-command.h: Rename include guard.
3971 * tic6x-tdep.h: Add include guard.
3972 * target/waitstatus.h: Rename include guard.
3973 * target/wait.h: Rename include guard.
3974 * target/target.h: Rename include guard.
3975 * target/resume.h: Rename include guard.
3976 * target-float.h: Rename include guard.
3977 * stabsread.h: Add include guard.
3978 * rs6000-tdep.h: Add include guard.
3979 * riscv-fbsd-tdep.h: Add include guard.
3980 * regformats/regdef.h: Rename include guard.
3981 * record.h: Rename include guard.
3982 * python/python.h: Rename include guard.
3983 * python/python-internal.h: Rename include guard.
3984 * python/py-stopevent.h: Rename include guard.
3985 * python/py-ref.h: Rename include guard.
3986 * python/py-record.h: Rename include guard.
3987 * python/py-record-full.h: Rename include guard.
3988 * python/py-record-btrace.h: Rename include guard.
3989 * python/py-instruction.h: Rename include guard.
3990 * python/py-events.h: Rename include guard.
3991 * python/py-event.h: Rename include guard.
3992 * procfs.h: Add include guard.
3993 * proc-utils.h: Add include guard.
3994 * p-lang.h: Add include guard.
3995 * or1k-tdep.h: Rename include guard.
3996 * observable.h: Rename include guard.
3997 * nto-tdep.h: Rename include guard.
3998 * nat/x86-linux.h: Rename include guard.
3999 * nat/x86-linux-dregs.h: Rename include guard.
4000 * nat/x86-gcc-cpuid.h: Add include guard.
4001 * nat/x86-dregs.h: Rename include guard.
4002 * nat/x86-cpuid.h: Rename include guard.
4003 * nat/ppc-linux.h: Rename include guard.
4004 * nat/mips-linux-watch.h: Rename include guard.
4005 * nat/linux-waitpid.h: Rename include guard.
4006 * nat/linux-ptrace.h: Rename include guard.
4007 * nat/linux-procfs.h: Rename include guard.
4008 * nat/linux-osdata.h: Rename include guard.
4009 * nat/linux-nat.h: Rename include guard.
4010 * nat/linux-namespaces.h: Rename include guard.
4011 * nat/linux-btrace.h: Rename include guard.
4012 * nat/glibc_thread_db.h: Rename include guard.
4013 * nat/gdb_thread_db.h: Rename include guard.
4014 * nat/gdb_ptrace.h: Rename include guard.
4015 * nat/fork-inferior.h: Rename include guard.
4016 * nat/amd64-linux-siginfo.h: Rename include guard.
4017 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
4018 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
4019 * nat/aarch64-linux.h: Rename include guard.
4020 * nat/aarch64-linux-hw-point.h: Rename include guard.
4021 * mn10300-tdep.h: Add include guard.
4022 * mips-linux-tdep.h: Add include guard.
4023 * mi/mi-parse.h: Rename include guard.
4024 * mi/mi-out.h: Rename include guard.
4025 * mi/mi-main.h: Rename include guard.
4026 * mi/mi-interp.h: Rename include guard.
4027 * mi/mi-getopt.h: Rename include guard.
4028 * mi/mi-console.h: Rename include guard.
4029 * mi/mi-common.h: Rename include guard.
4030 * mi/mi-cmds.h: Rename include guard.
4031 * mi/mi-cmd-break.h: Rename include guard.
4032 * m2-lang.h: Add include guard.
4033 * location.h: Rename include guard.
4034 * linux-record.h: Rename include guard.
4035 * linux-nat.h: Add include guard.
4036 * linux-fork.h: Add include guard.
4037 * i386-darwin-tdep.h: Rename include guard.
4038 * hppa-linux-offsets.h: Add include guard.
4039 * guile/guile.h: Rename include guard.
4040 * guile/guile-internal.h: Rename include guard.
4041 * gnu-nat.h: Rename include guard.
4042 * gdb-stabs.h: Rename include guard.
4043 * frv-tdep.h: Add include guard.
4044 * f-lang.h: Add include guard.
4045 * event-loop.h: Add include guard.
4046 * darwin-nat.h: Rename include guard.
4047 * cp-abi.h: Rename include guard.
4048 * config/sparc/nm-sol2.h: Rename include guard.
4049 * config/nm-nto.h: Rename include guard.
4050 * config/nm-linux.h: Add include guard.
4051 * config/i386/nm-i386gnu.h: Rename include guard.
4052 * config/djgpp/nl_types.h: Rename include guard.
4053 * config/djgpp/langinfo.h: Rename include guard.
4054 * compile/gcc-cp-plugin.h: Add include guard.
4055 * compile/gcc-c-plugin.h: Add include guard.
4056 * compile/compile.h: Rename include guard.
4057 * compile/compile-object-run.h: Rename include guard.
4058 * compile/compile-object-load.h: Rename include guard.
4059 * compile/compile-internal.h: Rename include guard.
4060 * compile/compile-cplus.h: Rename include guard.
4061 * compile/compile-c.h: Rename include guard.
4062 * common/xml-utils.h: Rename include guard.
4063 * common/x86-xstate.h: Rename include guard.
4064 * common/version.h: Rename include guard.
4065 * common/vec.h: Rename include guard.
4066 * common/tdesc.h: Rename include guard.
4067 * common/selftest.h: Rename include guard.
4068 * common/scoped_restore.h: Rename include guard.
4069 * common/scoped_mmap.h: Rename include guard.
4070 * common/scoped_fd.h: Rename include guard.
4071 * common/safe-iterator.h: Rename include guard.
4072 * common/run-time-clock.h: Rename include guard.
4073 * common/refcounted-object.h: Rename include guard.
4074 * common/queue.h: Rename include guard.
4075 * common/ptid.h: Rename include guard.
4076 * common/print-utils.h: Rename include guard.
4077 * common/preprocessor.h: Rename include guard.
4078 * common/pathstuff.h: Rename include guard.
4079 * common/observable.h: Rename include guard.
4080 * common/netstuff.h: Rename include guard.
4081 * common/job-control.h: Rename include guard.
4082 * common/host-defs.h: Rename include guard.
4083 * common/gdb_wait.h: Rename include guard.
4084 * common/gdb_vecs.h: Rename include guard.
4085 * common/gdb_unlinker.h: Rename include guard.
4086 * common/gdb_unique_ptr.h: Rename include guard.
4087 * common/gdb_tilde_expand.h: Rename include guard.
4088 * common/gdb_sys_time.h: Rename include guard.
4089 * common/gdb_string_view.h: Rename include guard.
4090 * common/gdb_splay_tree.h: Rename include guard.
4091 * common/gdb_setjmp.h: Rename include guard.
4092 * common/gdb_ref_ptr.h: Rename include guard.
4093 * common/gdb_optional.h: Rename include guard.
4094 * common/gdb_locale.h: Rename include guard.
4095 * common/gdb_assert.h: Rename include guard.
4096 * common/filtered-iterator.h: Rename include guard.
4097 * common/filestuff.h: Rename include guard.
4098 * common/fileio.h: Rename include guard.
4099 * common/environ.h: Rename include guard.
4100 * common/common-utils.h: Rename include guard.
4101 * common/common-types.h: Rename include guard.
4102 * common/common-regcache.h: Rename include guard.
4103 * common/common-inferior.h: Rename include guard.
4104 * common/common-gdbthread.h: Rename include guard.
4105 * common/common-exceptions.h: Rename include guard.
4106 * common/common-defs.h: Rename include guard.
4107 * common/common-debug.h: Rename include guard.
4108 * common/cleanups.h: Rename include guard.
4109 * common/buffer.h: Rename include guard.
4110 * common/btrace-common.h: Rename include guard.
4111 * common/break-common.h: Rename include guard.
4112 * cli/cli-utils.h: Rename include guard.
4113 * cli/cli-style.h: Rename include guard.
4114 * cli/cli-setshow.h: Rename include guard.
4115 * cli/cli-script.h: Rename include guard.
4116 * cli/cli-interp.h: Rename include guard.
4117 * cli/cli-decode.h: Rename include guard.
4118 * cli/cli-cmds.h: Rename include guard.
4119 * charset-list.h: Add include guard.
4120 * buildsym-legacy.h: Rename include guard.
4121 * bfin-tdep.h: Add include guard.
4122 * ax.h: Rename include guard.
4123 * arm-linux-tdep.h: Add include guard.
4124 * arm-fbsd-tdep.h: Add include guard.
4125 * arch/xtensa.h: Rename include guard.
4126 * arch/tic6x.h: Add include guard.
4127 * arch/i386.h: Add include guard.
4128 * arch/arm.h: Rename include guard.
4129 * arch/arm-linux.h: Rename include guard.
4130 * arch/arm-get-next-pcs.h: Rename include guard.
4131 * arch/amd64.h: Add include guard.
4132 * arch/aarch64-insn.h: Rename include guard.
4133 * arch-utils.h: Rename include guard.
4134 * annotate.h: Add include guard.
4135 * amd64-darwin-tdep.h: Rename include guard.
4136 * aarch64-linux-tdep.h: Add include guard.
4137 * aarch64-fbsd-tdep.h: Add include guard.
4138 * aarch32-linux-nat.h: Add include guard.
4139
4140 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4141
4142 * macrotab.c (macro_define_internal): New function that
4143 factorizes macro_define_object_internal and macro_define_function
4144 code.
4145 (macro_define_object_internal): Use macro_define_internal.
4146 (macro_define_function): Likewise.
4147
4148 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4149
4150 * macrocmd.c (extract_identifier): Return
4151 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
4152 callers.
4153
4154 2019-02-06 John Baldwin <jhb@FreeBSD.org>
4155
4156 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
4157
4158 2019-02-05 Tom Tromey <tom@tromey.com>
4159
4160 * target.c (target_stack::unpush): Move assertion earlier.
4161
4162 2019-01-30 Tom Tromey <tom@tromey.com>
4163
4164 PR python/23615:
4165 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
4166 (gdbpy_parse_and_eval): Likewise.
4167 * python/python-internal.h (gdbpy_allow_threads): New class.
4168
4169 2019-01-28 John Baldwin <jhb@FreeBSD.org>
4170
4171 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
4172 (aarch64_fbsd_fpregmap): Move earlier.
4173 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
4174 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
4175 instead of individual calls to trad_frame_set_reg_addr.
4176 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
4177 earlier.
4178 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
4179 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
4180 instead of individual calls to trad_frame_set_reg_addr.
4181
4182 2019-01-28 Alan Hayward <alan.hayward@arm.com>
4183
4184 * CONTRIBUTE: Replace contribution list with wiki link.
4185
4186 2019-01-25 Tom Tromey <tom@tromey.com>
4187
4188 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
4189
4190 2019-01-25 Tom Tromey <tom@tromey.com>
4191
4192 * xtensa-linux-nat.c: Fix common/ includes.
4193 * xml-support.h: Fix common/ includes.
4194 * xml-support.c: Fix common/ includes.
4195 * x86-linux-nat.c: Fix common/ includes.
4196 * windows-nat.c: Fix common/ includes.
4197 * varobj.h: Fix common/ includes.
4198 * varobj.c: Fix common/ includes.
4199 * value.c: Fix common/ includes.
4200 * valops.c: Fix common/ includes.
4201 * utils.c: Fix common/ includes.
4202 * unittests/xml-utils-selftests.c: Fix common/ includes.
4203 * unittests/utils-selftests.c: Fix common/ includes.
4204 * unittests/unpack-selftests.c: Fix common/ includes.
4205 * unittests/tracepoint-selftests.c: Fix common/ includes.
4206 * unittests/style-selftests.c: Fix common/ includes.
4207 * unittests/string_view-selftests.c: Fix common/ includes.
4208 * unittests/scoped_restore-selftests.c: Fix common/ includes.
4209 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
4210 * unittests/scoped_fd-selftests.c: Fix common/ includes.
4211 * unittests/rsp-low-selftests.c: Fix common/ includes.
4212 * unittests/parse-connection-spec-selftests.c: Fix common/
4213 includes.
4214 * unittests/optional-selftests.c: Fix common/ includes.
4215 * unittests/offset-type-selftests.c: Fix common/ includes.
4216 * unittests/observable-selftests.c: Fix common/ includes.
4217 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
4218 * unittests/memrange-selftests.c: Fix common/ includes.
4219 * unittests/memory-map-selftests.c: Fix common/ includes.
4220 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
4221 * unittests/function-view-selftests.c: Fix common/ includes.
4222 * unittests/environ-selftests.c: Fix common/ includes.
4223 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
4224 * unittests/common-utils-selftests.c: Fix common/ includes.
4225 * unittests/cli-utils-selftests.c: Fix common/ includes.
4226 * unittests/array-view-selftests.c: Fix common/ includes.
4227 * ui-file.c: Fix common/ includes.
4228 * tui/tui-io.c: Fix common/ includes.
4229 * tracepoint.h: Fix common/ includes.
4230 * tracepoint.c: Fix common/ includes.
4231 * tracefile-tfile.c: Fix common/ includes.
4232 * top.h: Fix common/ includes.
4233 * top.c: Fix common/ includes.
4234 * thread.c: Fix common/ includes.
4235 * target/waitstatus.h: Fix common/ includes.
4236 * target/waitstatus.c: Fix common/ includes.
4237 * target.h: Fix common/ includes.
4238 * target.c: Fix common/ includes.
4239 * target-memory.c: Fix common/ includes.
4240 * target-descriptions.c: Fix common/ includes.
4241 * symtab.h: Fix common/ includes.
4242 * symfile.c: Fix common/ includes.
4243 * stap-probe.c: Fix common/ includes.
4244 * spu-linux-nat.c: Fix common/ includes.
4245 * sparc-nat.c: Fix common/ includes.
4246 * source.c: Fix common/ includes.
4247 * solib.c: Fix common/ includes.
4248 * solib-target.c: Fix common/ includes.
4249 * ser-unix.c: Fix common/ includes.
4250 * ser-tcp.c: Fix common/ includes.
4251 * ser-pipe.c: Fix common/ includes.
4252 * ser-base.c: Fix common/ includes.
4253 * selftest-arch.c: Fix common/ includes.
4254 * s12z-tdep.c: Fix common/ includes.
4255 * rust-exp.y: Fix common/ includes.
4256 * rs6000-aix-tdep.c: Fix common/ includes.
4257 * riscv-tdep.c: Fix common/ includes.
4258 * remote.c: Fix common/ includes.
4259 * remote-notif.h: Fix common/ includes.
4260 * remote-fileio.h: Fix common/ includes.
4261 * remote-fileio.c: Fix common/ includes.
4262 * regcache.h: Fix common/ includes.
4263 * regcache.c: Fix common/ includes.
4264 * record-btrace.c: Fix common/ includes.
4265 * python/python.c: Fix common/ includes.
4266 * python/py-type.c: Fix common/ includes.
4267 * python/py-inferior.c: Fix common/ includes.
4268 * progspace.h: Fix common/ includes.
4269 * producer.c: Fix common/ includes.
4270 * procfs.c: Fix common/ includes.
4271 * proc-api.c: Fix common/ includes.
4272 * printcmd.c: Fix common/ includes.
4273 * ppc-linux-nat.c: Fix common/ includes.
4274 * parser-defs.h: Fix common/ includes.
4275 * osdata.c: Fix common/ includes.
4276 * obsd-nat.c: Fix common/ includes.
4277 * nat/x86-linux.c: Fix common/ includes.
4278 * nat/x86-linux-dregs.c: Fix common/ includes.
4279 * nat/x86-dregs.h: Fix common/ includes.
4280 * nat/x86-dregs.c: Fix common/ includes.
4281 * nat/ppc-linux.c: Fix common/ includes.
4282 * nat/mips-linux-watch.h: Fix common/ includes.
4283 * nat/mips-linux-watch.c: Fix common/ includes.
4284 * nat/linux-waitpid.c: Fix common/ includes.
4285 * nat/linux-ptrace.h: Fix common/ includes.
4286 * nat/linux-ptrace.c: Fix common/ includes.
4287 * nat/linux-procfs.c: Fix common/ includes.
4288 * nat/linux-personality.c: Fix common/ includes.
4289 * nat/linux-osdata.c: Fix common/ includes.
4290 * nat/linux-namespaces.c: Fix common/ includes.
4291 * nat/linux-btrace.h: Fix common/ includes.
4292 * nat/linux-btrace.c: Fix common/ includes.
4293 * nat/fork-inferior.c: Fix common/ includes.
4294 * nat/amd64-linux-siginfo.c: Fix common/ includes.
4295 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
4296 * nat/aarch64-linux.c: Fix common/ includes.
4297 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
4298 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
4299 * namespace.h: Fix common/ includes.
4300 * mips-linux-tdep.c: Fix common/ includes.
4301 * minsyms.c: Fix common/ includes.
4302 * mi/mi-parse.h: Fix common/ includes.
4303 * mi/mi-main.c: Fix common/ includes.
4304 * mi/mi-cmd-env.c: Fix common/ includes.
4305 * memrange.h: Fix common/ includes.
4306 * memattr.c: Fix common/ includes.
4307 * maint.h: Fix common/ includes.
4308 * maint.c: Fix common/ includes.
4309 * main.c: Fix common/ includes.
4310 * machoread.c: Fix common/ includes.
4311 * location.c: Fix common/ includes.
4312 * linux-thread-db.c: Fix common/ includes.
4313 * linux-nat.c: Fix common/ includes.
4314 * linux-fork.c: Fix common/ includes.
4315 * inline-frame.c: Fix common/ includes.
4316 * infrun.c: Fix common/ includes.
4317 * inflow.c: Fix common/ includes.
4318 * inferior.h: Fix common/ includes.
4319 * inferior.c: Fix common/ includes.
4320 * infcmd.c: Fix common/ includes.
4321 * inf-ptrace.c: Fix common/ includes.
4322 * inf-child.c: Fix common/ includes.
4323 * ia64-linux-nat.c: Fix common/ includes.
4324 * i387-tdep.c: Fix common/ includes.
4325 * i386-tdep.c: Fix common/ includes.
4326 * i386-linux-tdep.c: Fix common/ includes.
4327 * i386-linux-nat.c: Fix common/ includes.
4328 * i386-go32-tdep.c: Fix common/ includes.
4329 * i386-fbsd-tdep.c: Fix common/ includes.
4330 * i386-fbsd-nat.c: Fix common/ includes.
4331 * guile/scm-type.c: Fix common/ includes.
4332 * guile/guile.c: Fix common/ includes.
4333 * go32-nat.c: Fix common/ includes.
4334 * gnu-nat.c: Fix common/ includes.
4335 * gdbthread.h: Fix common/ includes.
4336 * gdbarch-selftests.c: Fix common/ includes.
4337 * gdb_usleep.c: Fix common/ includes.
4338 * gdb_select.h: Fix common/ includes.
4339 * gdb_bfd.c: Fix common/ includes.
4340 * gcore.c: Fix common/ includes.
4341 * fork-child.c: Fix common/ includes.
4342 * findvar.c: Fix common/ includes.
4343 * fbsd-nat.c: Fix common/ includes.
4344 * event-top.c: Fix common/ includes.
4345 * event-loop.c: Fix common/ includes.
4346 * dwarf2read.c: Fix common/ includes.
4347 * dwarf2loc.c: Fix common/ includes.
4348 * dwarf2-frame.c: Fix common/ includes.
4349 * dwarf-index-cache.c: Fix common/ includes.
4350 * dtrace-probe.c: Fix common/ includes.
4351 * disasm-selftests.c: Fix common/ includes.
4352 * defs.h: Fix common/ includes.
4353 * csky-tdep.c: Fix common/ includes.
4354 * cp-valprint.c: Fix common/ includes.
4355 * cp-support.h: Fix common/ includes.
4356 * cp-support.c: Fix common/ includes.
4357 * corelow.c: Fix common/ includes.
4358 * completer.h: Fix common/ includes.
4359 * completer.c: Fix common/ includes.
4360 * compile/compile.c: Fix common/ includes.
4361 * compile/compile-loc2c.c: Fix common/ includes.
4362 * compile/compile-cplus-types.c: Fix common/ includes.
4363 * compile/compile-cplus-symbols.c: Fix common/ includes.
4364 * command.h: Fix common/ includes.
4365 * cli/cli-dump.c: Fix common/ includes.
4366 * cli/cli-cmds.c: Fix common/ includes.
4367 * charset.c: Fix common/ includes.
4368 * build-id.c: Fix common/ includes.
4369 * btrace.h: Fix common/ includes.
4370 * btrace.c: Fix common/ includes.
4371 * breakpoint.h: Fix common/ includes.
4372 * breakpoint.c: Fix common/ includes.
4373 * ax.h:
4374 (enum agent_op): Fix common/ includes.
4375 * ax-general.c (struct aop_map): Fix common/ includes.
4376 * ax-gdb.c: Fix common/ includes.
4377 * auxv.c: Fix common/ includes.
4378 * auto-load.c: Fix common/ includes.
4379 * arm-tdep.c: Fix common/ includes.
4380 * arch/riscv.c: Fix common/ includes.
4381 * arch/ppc-linux-common.c: Fix common/ includes.
4382 * arch/i386.c: Fix common/ includes.
4383 * arch/arm.c: Fix common/ includes.
4384 * arch/arm-linux.c: Fix common/ includes.
4385 * arch/arm-get-next-pcs.c: Fix common/ includes.
4386 * arch/amd64.c: Fix common/ includes.
4387 * arch/aarch64.c: Fix common/ includes.
4388 * arch/aarch64-insn.c: Fix common/ includes.
4389 * arch-utils.c: Fix common/ includes.
4390 * amd64-windows-tdep.c: Fix common/ includes.
4391 * amd64-tdep.c: Fix common/ includes.
4392 * amd64-sol2-tdep.c: Fix common/ includes.
4393 * amd64-obsd-tdep.c: Fix common/ includes.
4394 * amd64-nbsd-tdep.c: Fix common/ includes.
4395 * amd64-linux-tdep.c: Fix common/ includes.
4396 * amd64-linux-nat.c: Fix common/ includes.
4397 * amd64-fbsd-tdep.c: Fix common/ includes.
4398 * amd64-fbsd-nat.c: Fix common/ includes.
4399 * amd64-dicos-tdep.c: Fix common/ includes.
4400 * amd64-darwin-tdep.c: Fix common/ includes.
4401 * agent.c: Fix common/ includes.
4402 * ada-lang.h: Fix common/ includes.
4403 * ada-lang.c: Fix common/ includes.
4404 * aarch64-tdep.c: Fix common/ includes.
4405
4406 2019-01-25 Tom Tromey <tom@tromey.com>
4407
4408 * common/create-version.sh: Use common/version.h.
4409
4410 2019-01-24 Pedro Alves <palves@redhat.com>
4411
4412 * infrun.c (signal_stop, signal_print, signal_program)
4413 (signal_catch, signal_pass): Now arrays instead of pointers.
4414 (update_signals_program_target, do_target_resume)
4415 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
4416 * linux-nat.c (linux_nat_target::pass_signals)
4417 (linux_nat_target::create_inferior, linux_nat_target::attach):
4418 Adjust.
4419 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
4420 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
4421 * procfs.c (procfs_target::pass_signals): Adjust.
4422 * record-full.c (record_full_target::resume): Adjust.
4423 * remote.c (remote_target::pass_signals)
4424 (remote_target::program_signals): Adjust.
4425 * target-debug.h (target_debug_print_signals): Now takes a
4426 gdb::array_view as parameter. Adjust.
4427 * target.h (target_ops) <pass_signals, program_signals>: Replace
4428 pointer and length parameters with gdb::array_view.
4429 (target_pass_signals, target_program_signals): Likewise.
4430 * target-delegates.c: Regenerate.
4431
4432 2019-01-24 Pedro Alves <palves@redhat.com>
4433
4434 * common/forward-scope-exit.h
4435 (forward_scope_exit::forward_scope_exit): Pass arguments to
4436 m_bind_function directly, instead of creating a std::bind and
4437 copying that.
4438
4439 2019-01-24 Alan Hayward <alan.hayward@arm.com>
4440
4441 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
4442 for static members.
4443 (pass_in_v_vfp_candidate): Likewise.
4444
4445 2019-01-23 Tom Tromey <tom@tromey.com>
4446 Pedro Alves <palves@redhat.com>
4447
4448 * regcache.c (class regcache_invalidator): Remove.
4449 (regcache::raw_write): Use make_scope_exit.
4450
4451 2019-01-23 Tom Tromey <tom@tromey.com>
4452
4453 * ui-out.h (class ui_out_emit_type): Update comment.
4454
4455 2019-01-23 Tom Tromey <tom@tromey.com>
4456
4457 * infrun.c (fetch_inferior_event): Update comment.
4458
4459 2019-01-23 Tom Tromey <tom@tromey.com>
4460 Pedro Alves <palves@redhat.com>
4461
4462 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
4463 parameter.
4464 (fetch_inferior_event): Use SCOPE_EXIT.
4465
4466
4467 2019-01-23 Tom Tromey <tom@tromey.com>
4468 Pedro Alves <palves@redhat.com>
4469
4470 * infrun.c (disable_thread_events): Delete.
4471 (stop_all_threads): Use SCOPE_EXIT.
4472
4473 2019-01-23 Tom Tromey <tom@tromey.com>
4474 Pedro Alves <palves@redhat.com>
4475
4476 * symfile.c: Include forward-scope-exit.h.
4477 (clear_symtab_users_cleanup): Replace forward declaration with
4478 a FORWARD_SCOPE_EXIT.
4479 (syms_from_objfile_1): Use the forward_scope_exit and
4480 gdb::optional instead of cleanup_function.
4481 (reread_symbols): Use the forward_scope_exit instead of
4482 cleanup_function.
4483 (clear_symtab_users_cleanup): Remove function.
4484
4485 2019-01-23 Tom Tromey <tom@tromey.com>
4486 Pedro Alves <palves@redhat.com>
4487
4488 * linux-nat.c: Include scope-exit.h.
4489 (cleanup_target_stop): Remove.
4490 (linux_nat_target::static_tracepoint_markers_by_strid): Use
4491 SCOPE_EXIT.
4492
4493 2019-01-23 Tom Tromey <tom@tromey.com>
4494 Pedro Alves <palves@redhat.com>
4495
4496 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
4497 (call_function_by_hand_dummy): Use SCOPE_EXIT.
4498
4499 2019-01-23 Tom Tromey <tom@tromey.com>
4500 Andrew Burgess <andrew.burgess@embecosm.com>
4501 Pedro Alves <palves@redhat.com>
4502
4503 * infrun.c (fetch_inferior_event): Use scope_exit.
4504 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
4505 * top.c (execute_command): Use scope_exit.
4506 * breakpoint.c (bpstat_do_actions): Use scope_exit.
4507 * utils.c (do_bpstat_clear_actions_cleanup)
4508 (make_bpstat_clear_actions_cleanup): Remove.
4509
4510 2019-01-23 Tom Tromey <tom@tromey.com>
4511 Pedro Alves <palves@redhat.com>
4512
4513 * infrun.c: Include "common/scope-exit.h"
4514 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
4515 (wait_for_inferior): Use SCOPE_EXIT.
4516 (fetch_inferior_event): Use scope_exit.
4517
4518 2019-01-23 Tom Tromey <tom@tromey.com>
4519 Pedro Alves <palves@redhat.com>
4520
4521 * breakpoint.c (create_breakpoint): Remove cleanup.
4522
4523 2019-01-23 Tom Tromey <tom@tromey.com>
4524 Andrew Burgess <andrew.burgess@embecosm.com>
4525 Pedro Alves <palves@redhat.com>
4526
4527 2019-01-23 Pedro Alves <palves@redhat.com>
4528
4529 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
4530
4531 2019-01-23 Pedro Alves <palves@redhat.com>
4532 Andrew Burgess <andrew.burgess@embecosm.com>
4533
4534 * gdbthread.h: Include "common/forward-scope-exit.h".
4535 (scoped_finish_thread_state): Redefine custom class in terms of
4536 forward_scope_exit.
4537
4538 2019-01-23 Pedro Alves <palves@redhat.com>
4539 Andrew Burgess <andrew.burgess@embecosm.com>
4540
4541 * common/forward-scope-exit.h: New file.
4542
4543 2019-01-23 Pedro Alves <palves@redhat.com>
4544 Andrew Burgess <andrew.burgess@embecosm.com>
4545 Tom Tromey <tom@tromey.com>
4546
4547 * common/scope-exit.h: New file.
4548
4549 2019-01-23 Pedro Alves <palves@redhat.com>
4550
4551 * common/preprocessor.h (ESC): Rename to ...
4552 (ESC_PARENS): ... this.
4553 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
4554 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
4555
4556 2019-01-23 Tom Tromey <tom@tromey.com>
4557
4558 * language.h (class scoped_switch_to_sym_language_if_auto):
4559 Initialize m_lang in both cases.
4560
4561 2019-01-23 Alan Hayward <alan.hayward@arm.com>
4562
4563 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
4564 with XCNEW.
4565
4566 2019-01-22 Tom Tromey <tom@tromey.com>
4567
4568 * corelow.c: Do not include sys/file.h.
4569
4570 2019-01-22 Tom Tromey <tom@tromey.com>
4571
4572 * tui/tui-wingeneral.h: Include gdb_curses.h.
4573
4574 2019-01-22 Tom Tromey <tom@tromey.com>
4575
4576 * source-cache.h (class source_cache) <get_source_lines,
4577 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
4578
4579 2019-01-22 Tom Tromey <tom@tromey.com>
4580
4581 * remote-fileio.h (struct remote_target): Declare.
4582
4583 2019-01-22 Tom Tromey <tom@tromey.com>
4584
4585 * python/py-arch.c: Do not include py-ref.h.
4586 * python/py-bpevent.c: Do not include py-ref.h.
4587 * python/py-cmd.c: Do not include py-ref.h.
4588 * python/py-continueevent.c: Do not include py-ref.h.
4589 * python/py-event.h: Do not include py-ref.h.
4590 * python/py-evtregistry.c: Do not include py-ref.h.
4591 * python/py-finishbreakpoint.c: Do not include py-ref.h.
4592 * python/py-frame.c: Do not include py-ref.h.
4593 * python/py-framefilter.c: Do not include py-ref.h.
4594 * python/py-function.c: Do not include py-ref.h.
4595 * python/py-infevents.c: Do not include py-ref.h.
4596 * python/py-linetable.c: Do not include py-ref.h.
4597 * python/py-objfile.c: Do not include py-ref.h.
4598 * python/py-param.c: Do not include py-ref.h.
4599 * python/py-prettyprint.c: Do not include py-ref.h.
4600 * python/py-progspace.c: Do not include py-ref.h.
4601 * python/py-symbol.c: Do not include py-ref.h.
4602 * python/py-symtab.c: Do not include py-ref.h.
4603 * python/py-type.c: Do not include py-ref.h.
4604 * python/py-unwind.c: Do not include py-ref.h.
4605 * python/py-utils.c: Do not include py-ref.h.
4606 * python/py-value.c: Do not include py-ref.h.
4607 * python/py-varobj.c: Do not include py-ref.h.
4608 * python/py-xmethods.c: Do not include py-ref.h.
4609 * python/python.c: Do not include py-ref.h.
4610 * varobj.c: Do not include py-ref.h.
4611
4612 2019-01-22 Tom Tromey <tom@tromey.com>
4613
4614 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
4615 keyword for bcache.
4616
4617 2019-01-22 Tom Tromey <tom@tromey.com>
4618
4619 * compile/compile-cplus-types.c: Remove a comment by #include.
4620
4621 2019-01-22 Tom Tromey <tom@tromey.com>
4622
4623 * compile/gcc-c-plugin.h: Include compile-internal.h.
4624
4625 2019-01-22 Tom Tromey <tom@tromey.com>
4626
4627 * stabsread.c (EXTERN): Do not define.
4628 (symnum, next_symbol_text_func, processing_gcc_compilation)
4629 (within_function, global_sym_chain, global_stabs)
4630 (previous_stab_code, this_object_header_files)
4631 (n_this_object_header_files)
4632 (n_allocated_this_object_header_files): Define.
4633 * stabsread.h (EXTERN): Never define. Use "extern".
4634
4635 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4636
4637 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
4638 history_value.
4639
4640 2019-01-21 Tom Tromey <tom@tromey.com>
4641
4642 * ui-out.c: Fix includes.
4643 * tui/tui-source.c: Fix includes.
4644 * target.c: Fix includes.
4645 * remote.c: Fix includes.
4646 * regcache.c: Fix includes.
4647 * python/py-block.c: Fix includes.
4648 * printcmd.c: Fix includes.
4649 * or1k-tdep.c: Fix includes.
4650 * mi/mi-main.c: Fix includes.
4651 * m32r-tdep.c: Fix includes.
4652 * csky-tdep.c: Fix includes.
4653 * compile/compile-cplus-types.c: Fix includes.
4654 * cli/cli-interp.c: Fix includes.
4655
4656 2019-01-21 Alan Hayward <alan.hayward@arm.com>
4657
4658 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
4659 for padding.
4660
4661 2019-01-16 Tom Tromey <tom@tromey.com>
4662
4663 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
4664 earlier.
4665 (struct objfile) <msymbols_range>: Move from top level.
4666 <msymbols>: New method.
4667 (class objfile_msymbols): Remove.
4668 * symtab.c (default_collect_symbol_completion_matches_break_on):
4669 Update.
4670 * symmisc.c (dump_msymbols): Update.
4671 * stabsread.c (scan_file_globals): Update.
4672 * objc-lang.c (info_selectors_command, info_classes_command)
4673 (find_methods): Update.
4674 * minsyms.c (find_solib_trampoline_target): Update.
4675 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
4676 * coffread.c (coff_symfile_read): Update.
4677 * ada-lang.c (ada_lookup_simple_minsym)
4678 (ada_collect_symbol_completion_matches): Update.
4679
4680 2019-01-16 Tom Tromey <tom@tromey.com>
4681
4682 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
4683 type. Remove no-argument constructor.
4684 <iterator::operator++>: Simplify.
4685 <begin>: Update.
4686 <end>: Use minimal_symbol_count.
4687
4688 2019-01-16 Tom Tromey <tom@tromey.com>
4689
4690 * objfiles.h (struct objfile) <psymtabs>: New method.
4691 (class objfile_psymtabs): Remove.
4692 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
4693 typedef.
4694 <range>: New method.
4695 (require_partial_symbols): Change return type.
4696 * psymtab.c (require_partial_symbols)
4697 (psym_expand_symtabs_matching): Update.
4698 * mdebugread.c (parse_partial_symbols): Update.
4699 * dbxread.c (dbx_end_psymtab): Update.
4700
4701 2019-01-15 Tom Tromey <tom@tromey.com>
4702
4703 * symtab.c (lookup_objfile_from_block)
4704 (lookup_symbol_in_objfile_symtabs)
4705 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
4706 (find_line_symtab, info_sources_command)
4707 (default_collect_symbol_completion_matches_break_on)
4708 (make_source_files_completion_list): Update.
4709 * symmisc.c (print_objfile_statistics, dump_objfile)
4710 (maintenance_print_symbols, maintenance_info_symtabs)
4711 (maintenance_check_symtabs, maintenance_info_line_tables):
4712 Update.
4713 * source.c (select_source_symtab)
4714 (forget_cached_source_info_for_objfile): Update.
4715 * objfiles.h (class objfile_compunits): Remove.
4716 (struct objfile) <compunits_range>: New typedef.
4717 (compunits): New method.
4718 * objfiles.c (objfile_relocate1): Update.
4719 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
4720 * maint.c (count_symtabs_and_blocks): Update.
4721 * linespec.c (iterate_over_all_matching_symtabs): Update.
4722 * cp-support.c (add_symbol_overload_list_qualified): Update.
4723 * coffread.c (coff_symtab_read): Update.
4724 * ada-lang.c (add_nonlocal_symbols)
4725 (ada_collect_symbol_completion_matches)
4726 (ada_add_global_exceptions): Update.
4727
4728 2019-01-15 Tom Tromey <tom@tromey.com>
4729
4730 * progspace.h (program_space) <objfiles_safe_range>: New
4731 typedef.
4732 <objfiles_safe>: New method.
4733 * objfiles.h (class all_objfiles_safe): Remove.
4734 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
4735 * jit.c (jit_inferior_exit_hook): Update.
4736
4737 2019-01-17 Tom Tromey <tom@tromey.com>
4738
4739 * progspace.h (program_space) <objfiles_range>: New typedef.
4740 <objfiles>: New method.
4741 <objfiles_head>: Rename from objfiles.
4742 (object_files): Update.
4743 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
4744 * guile/scm-pretty-print.c
4745 (ppscm_find_pretty_printer_from_objfiles): Update.
4746 * guile/scm-objfile.c (gdbscm_objfiles): Update.
4747 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
4748 Update.
4749 * python/py-progspace.c (pspy_get_objfiles): Update.
4750 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
4751 Update.
4752 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
4753 (objfpy_lookup_objfile_by_build_id): Update.
4754 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
4755 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
4756 Update.
4757 * symtab.c (iterate_over_symtabs, matching_obj_sections)
4758 (expand_symtab_containing_pc, lookup_objfile_from_block)
4759 (lookup_static_symbol, basic_lookup_transparent_type)
4760 (find_pc_sect_compunit_symtab, find_symbol_at_address)
4761 (find_line_symtab, info_sources_command)
4762 (default_collect_symbol_completion_matches_break_on)
4763 (make_source_files_completion_list, find_main_name): Update.
4764 * symmisc.c (print_symbol_bcache_statistics)
4765 (print_objfile_statistics, maintenance_print_symbols)
4766 (maintenance_print_msymbols, maintenance_print_objfiles)
4767 (maintenance_info_symtabs, maintenance_check_symtabs)
4768 (maintenance_expand_symtabs, maintenance_info_line_tables):
4769 Update.
4770 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
4771 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
4772 (map_overlay_command, unmap_overlay_command)
4773 (simple_overlay_update, expand_symtabs_matching)
4774 (map_symbol_filenames): Update.
4775 * symfile-debug.c (set_debug_symfile): Update.
4776 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
4777 Update.
4778 * source.c (select_source_symtab, forget_cached_source_info):
4779 Update.
4780 * solib.c (solib_read_symbols): Update.
4781 * solib-spu.c (append_ocl_sos): Update.
4782 * psymtab.c (maintenance_print_psymbols)
4783 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
4784 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
4785 * printcmd.c (info_symbol_command): Update.
4786 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
4787 Update.
4788 * objfiles.h (class all_objfiles): Remove.
4789 * objfiles.c (have_partial_symbols, have_full_symbols)
4790 (have_minimal_symbols, qsort_cmp, update_section_map)
4791 (shared_objfile_contains_address_p)
4792 (default_iterate_over_objfiles_in_search_order): Update.
4793 * objc-lang.c (info_selectors_command, info_classes_command)
4794 (find_methods): Update.
4795 * minsyms.c (find_solib_trampoline_target): Update.
4796 * maint.c (maintenance_info_sections)
4797 (maintenance_translate_address, count_symtabs_and_blocks):
4798 Update.
4799 * main.c (captured_main_1): Update.
4800 * linux-thread-db.c (try_thread_db_load_from_pdir)
4801 (has_libpthread): Update.
4802 * linespec.c (iterate_over_all_matching_symtabs)
4803 (search_minsyms_for_name): Update.
4804 * jit.c (jit_find_objf_with_entry_addr): Update.
4805 * hppa-tdep.c (find_unwind_entry)
4806 (hppa_lookup_stub_minimal_symbol): Update.
4807 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
4808 Update.
4809 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
4810 (elf_gnu_ifunc_resolve_by_got): Update.
4811 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
4812 * dwarf-index-write.c (save_gdb_index_command): Update.
4813 * cp-support.c (add_symbol_overload_list_qualified): Update.
4814 * breakpoint.c (create_overlay_event_breakpoint)
4815 (create_longjmp_master_breakpoint)
4816 (create_std_terminate_master_breakpoint)
4817 (create_exception_master_breakpoint): Update.
4818 * blockframe.c (find_pc_partial_function): Update.
4819 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
4820 (ada_collect_symbol_completion_matches)
4821 (ada_add_global_exceptions): Update.
4822
4823 2019-01-17 Tom Tromey <tom@tromey.com>
4824
4825 * solib-target.c (lm_info_target_p): Remove typedef. Don't
4826 declare VEC.
4827 (solib_target_parse_libraries): Change return type.
4828 (library_list_start_segment, library_list_start_section)
4829 (library_list_end_library, library_list_start_library); Update.
4830 (solib_target_free_library_list): Remove.
4831 (solib_target_parse_libraries): Remove cleanup. Change return
4832 type.
4833 (solib_target_current_sos): Update.
4834
4835 2019-01-17 Tom Tromey <tromey@bapiya>
4836
4837 * valprint.c: Replace "the the" with "the".
4838 * symtab.c: Replace "the the" with "the".
4839 * solib.c: Replace "the the" with "the".
4840 * solib-dsbt.c: Replace "the the" with "the".
4841 * linespec.c: Replace "the the" with "the".
4842 * dwarf2loc.h: Replace "the the" with "the".
4843 * amd64-windows-tdep.c: Replace "the the" with "the".
4844 * aarch64-tdep.c: Replace "the the" with "the".
4845
4846 2019-01-16 Keith Seitz <keiths@redhat.com>
4847
4848 PR gdb/23773
4849 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
4850 <builder>: Rename to ..
4851 <m_builder>: ... this and make private.
4852 (dwarf2_cu::get_builder): New method. Change all users of
4853 `builder' to use this method.
4854 (dwarf2_start_symtab): Move to ...
4855 (dwarf2_cu::start_symtab): ... here. Update all callers
4856 (setup_type_unit_groups): Move to ...
4857 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
4858 callers.
4859 (dwarf2_cu::reset_builder): New method.
4860 (process_full_compunit, process_full_type_unit): Use
4861 dwarf2_cu::reset_builder.
4862 (follow_die_offset): Record the ancestor CU if it is different
4863 from the followed DIE's CU.
4864 (follow_die_sig_1): Likewise.
4865
4866 2019-01-15 Tom Tromey <tom@tromey.com>
4867
4868 * remote.c (class remote_state) <buf>: Now a char_vector.
4869 <buf_size>: Remove.
4870 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
4871 parameter.
4872 (remote_target::getpkt_or_notif_sane_1)
4873 (remote_target::getpkt_sane)
4874 (remote_target::getpkt_or_notif_sane): Likewise.
4875 (class remote_target) <putpkt>: New overload.
4876 (remote_target::read_frame): Change type of "buf_p". Remove
4877 sizeof_p parameter.
4878 (packet_ok): New overload.
4879 (packet_check_result): New overload.
4880 Update all uses.
4881
4882 2019-01-14 Tom Tromey <tom@tromey.com>
4883
4884 * remote-notif.c (handle_notification, remote_notif_ack)
4885 (remote_notif_parse): Make "buf" const.
4886 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
4887 const.
4888 (remote_notif_parse, remote_notif_ack, handle_notification):
4889 Likewise.
4890 * remote.c (remote_notif_stop_parse): Make "buf" const.
4891 (remote_target::remote_parse_stop_reply): Make "buf" const.
4892 (remote_notif_stop_ack): Make "buf" const.
4893
4894 2019-01-14 Tom Tromey <tom@tromey.com>
4895
4896 * remote.c (remote_console_output): Make parameter const.
4897
4898 2019-01-14 Tom Tromey <tom@tromey.com>
4899
4900 * target-debug.h (target_debug_print_signals): Constify.
4901 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
4902 * procfs.c (procfs_target::pass_signals): Update.
4903 * linux-nat.c (linux_nat_target::pass_signals): Update.
4904 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
4905 * target-delegates.c: Rebuild.
4906 * remote.c (remote_target::program_signals): Update.
4907 (remote_target::pass_signals): Update.
4908 * target.c (target_pass_signals): Constify argument.
4909 (target_program_signals): Likewise.
4910 * target.h (struct target_ops) <pass_signals, program_signals>:
4911 Constify argument.
4912 (target_pass_signals, target_program_signals): Constify argument.
4913
4914 2019-01-14 Tom Tromey <tom@tromey.com>
4915
4916 PR tui/28819:
4917 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
4918
4919 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4920
4921 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
4922 field.
4923 * rs6000-tdep.c: Include reggroups.h.
4924 (IS_V_ALIAS_PSEUDOREG): Define.
4925 (rs6000_register_name): Return names for the "vX" aliases.
4926 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
4927 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
4928 aliases. Call default_register_reggroup_p for all other
4929 pseudo-registers.
4930 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
4931 New functions.
4932 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
4933 Handle "vX" aliases.
4934 (v_alias_pseudo_register_collect): New function.
4935 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
4936 (rs6000_gdbarch_init): Initialize "vX" aliases as
4937 pseudo-registers. Restore registration of
4938 rs6000_pseudo_register_reggroup_p with
4939 set_tdesc_pseudo_register_reggroup_p.
4940
4941 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
4942
4943 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
4944 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
4945 set_gdbarch_num_pseudo_regs.
4946
4947 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4948
4949 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
4950 Remove arg prefixname, add do_set and do_show.
4951 Add member functions set_list and show_list.
4952 * cli/cli-style.c (class cli_style_option): Update accordingly.
4953 (style_set_list): Move to file scope.
4954 (style_show_list): Likewise.
4955 (set_style): Call help_list.
4956 (show_style): Call cmd_show_list.
4957 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
4958 Update to use the new macro.
4959
4960 2019-10-12 Joel Brobecker <brobecker@adacore.com>
4961
4962 * ada-lang.c (_initialize_ada_language): Expand the help text
4963 for the "catch exception" command.
4964
4965 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4966
4967 * symtab.c (matching_obj_sections): Initialize obj,
4968 declare it closer to its usage.
4969
4970 2019-01-10 Tom Tromey <tom@tromey.com>
4971
4972 * thread-iter.h (inf_threads_iterator): Use next_iterator.
4973 (basic_inf_threads_range): Remove.
4974 (inf_threads_range, inf_non_exited_threads_range)
4975 (safe_inf_threads_range): Use next_adapter.
4976
4977 2019-01-10 Keith Seitz <keiths@redhat.com>
4978
4979 PR gdb/23712
4980 PR symtab/23010
4981 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
4982 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
4983
4984 2019-01-10 Keith Seitz <keiths@redhat.com>
4985
4986 PR gdb/23712
4987 PR symtab/23010
4988 * dictionary.c (pending_to_vector): Remove.
4989 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
4990 Remove _1 suffix, replacing functions of the same name. Update
4991 all callers.
4992 (dict_create_hashed, dict_create_hashed_expandable)
4993 (dict_create_linear, dict_create_linear_expandable, dict_free)
4994 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
4995 Make functions static.
4996
4997 2019-01-10 Keith Seitz <keiths@redhat.com>
4998
4999 PR gdb/23712
5000 PR symtab/23010
5001 * dictionary.h (struct dictionary): Replace declaration with
5002 multidictionary.
5003 (dict_create_hashed, dict_create_hashed_expandable)
5004 (dict_create_linear, dict_create_linear_expandable)
5005 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
5006 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
5007 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
5008 taking multidictionary argument.
5009 [ALL_DICT_SYMBOLS]: Update for multidictionary.
5010 * block.h (struct block) <dict>: Change to multidictionary
5011 and rename `multidict'.
5012 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
5013 symmisc.c: Update all dictionary references to multidictionary.
5014
5015 2019-01-10 Keith Seitz <keiths@redhat.com>
5016
5017 PR gdb/23712
5018 PR symtab/23010
5019 * dictionary.c: Include unordered_map.
5020 (pending_to_vector): New function.
5021 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
5022 Rewrite the non-"_1" functions to take vector instead
5023 of linked list.
5024 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
5025 "new" _1 versions of the same name.
5026 (multidictionary): Define.
5027 (std::hash<enum language): New definition.
5028 (collate_pending_symbols_by_language, mdict_create_hashed)
5029 (mdict_create_hashed_expandable, mdict_create_linear)
5030 (mdict_create_linear_expandable, mdict_free)
5031 (find_language_dictionary, create_new_language_dictionary)
5032 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
5033 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
5034 (mdict_size, mdict_empty): New functions.
5035 * dictionary.h (mdict_iterator): Define.
5036
5037 2019-01-10 Pedro Alves <palves@redhat.com>
5038
5039 * breakpoint.c (read_uploaded_action)
5040 (create_tracepoint_from_upload): Adjust to use
5041 gdb::unique_xmalloc_ptr.
5042 * ctf.c (ctf_write_uploaded_tp):
5043 (SET_ARRAY_FIELD): Use emplace_back.
5044 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
5045 * tracefile-tfile.c (tfile_write_uploaded_tp):
5046 * tracepoint.c (parse_tracepoint_definition): Adjust to use
5047 gdb::unique_xmalloc_ptr.
5048 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
5049 at_string, cond_string, cmd_strings>: Replace char pointers
5050 with gdb::unique_xmalloc_ptr.
5051
5052 2019-01-10 Pedro Alves <palves@redhat.com>
5053
5054 * solib-target.c (library_list_start_library): Don't xstrdup name.
5055
5056 2019-01-10 Pedro Alves <palves@redhat.com>
5057
5058 * mdebugread.c (parse_partial_symbols): Use
5059 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
5060
5061 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
5062
5063 * linux-fork.c (scoped_switch_fork_info)
5064 <~scoped_switch_fork_info>: Fix incorrect variable name.
5065
5066 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
5067
5068 * linux-fork.c (scoped_switch_fork_info)
5069 <scoped_switch_fork_info>: Make explicit.
5070 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
5071
5072 2019-01-10 Tom Tromey <tom@tromey.com>
5073
5074 * objfiles.h (objfile::reset_psymtabs): Update.
5075 * objfiles.c (objfile::objfile): Update.
5076 * psymtab.h (psymtab_storage::obstack): Update.
5077 (psymtab_storage::m_obstack): Use gdb::optional.
5078 (class psymtab_storage): Update comment. Remove objfile
5079 parameter.
5080 * psymtab.c (psymtab_storage::psymtab_storage): Update.
5081
5082 2019-01-10 Tom Tromey <tom@tromey.com>
5083
5084 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
5085 <free_psymtabs>: Now private.
5086 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
5087 (allocate_psymtab): Use new method.
5088
5089 2019-01-10 Tom Tromey <tom@tromey.com>
5090
5091 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
5092 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
5093 * mdebugread.c (parse_partial_symbols): Use
5094 allocate_dependencies.
5095 * dwarf2read.c (dwarf2_create_include_psymtab): Use
5096 allocate_dependencies.
5097 (process_psymtab_comp_unit_reader)
5098 (build_type_psymtab_dependencies): Likewise.
5099 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
5100
5101 2019-01-10 Tom Tromey <tom@tromey.com>
5102
5103 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
5104 PSYMBOL_SET_LANGUAGE.
5105 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
5106
5107 2019-01-10 Tom Tromey <tom@tromey.com>
5108
5109 * psymtab.h (psymtab_storage::obstack): New method.
5110 <m_obstack>: Rename from obstack; now private.
5111 * psymtab.c (psymtab_storage): Update.
5112 * dwarf2read.c (create_addrmap_from_index)
5113 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
5114 Update.
5115
5116 2019-01-10 Tom Tromey <tom@tromey.com>
5117
5118 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
5119 * objfiles.h (objfile::reset_psymtabs): New method.
5120
5121 2019-01-10 Tom Tromey <tom@tromey.com>
5122
5123 * symmisc.c (print_symbol_bcache_statistics): Update.
5124 (print_objfile_statistics): Update.
5125 * symfile.c (reread_symbols): Update.
5126 * psymtab.h (class psymtab_storage): New.
5127 * psymtab.c (psymtab_storage): New constructor.
5128 (~psymtab_storage): New destructor.
5129 (require_partial_symbols): Update.
5130 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
5131 (find_pc_sect_psymtab, find_pc_sect_psymbol)
5132 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
5133 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
5134 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
5135 (start_psymtab_common, end_psymtab_common)
5136 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
5137 (allocate_psymtab): Update.
5138 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
5139 Update.
5140 (dump_psymtab_addrmap, maintenance_print_psymbols)
5141 (maintenance_check_psymtabs): Update.
5142 (class objfile_psymtabs): Move to objfiles.h.
5143 * psympriv.h (discard_psymtab): Now inline.
5144 (psymtab_discarder::psymtab_discarder): Update.
5145 (psymtab_discarder::~psymtab_discarder): Update.
5146 (ALL_OBJFILE_PSYMTABS): Rewrite.
5147 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
5148 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
5149 Remove fields.
5150 <partial_symtabs>: New field.
5151 (class objfile_psymtabs): Move from psymtab.h. Update.
5152 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
5153 psymbol_cache.
5154 (objfile::~objfile): Don't destroy psymbol_cache.
5155 * mdebugread.c (parse_partial_symbols): Update.
5156 * dwarf2read.c (create_addrmap_from_index)
5157 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
5158 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
5159 (add_partial_subprogram, dwarf2_ranges_read): Update.
5160 * dwarf-index-write.c (write_address_map)
5161 (write_one_signatured_type, recursively_write_psymbols)
5162 (class debug_names, class debug_names, write_psymtabs_to_index):
5163 Update.
5164
5165 2019-01-10 Tom Tromey <tom@tromey.com>
5166
5167 * symtab.h (SYMBOL_SET_NAMES): Update.
5168 (symbol_set_names): Update.
5169 (MSYMBOL_SET_NAMES): Update.
5170 * symtab.c (symbol_set_names): Change argument to be an
5171 objfile_per_bfd_storage.
5172 * psymtab.c (add_psymbol_to_bcache): Update.
5173 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
5174
5175 2019-01-10 Tom Tromey <tom@tromey.com>
5176
5177 * symtab.c (create_demangled_names_hash): Change argument to be an
5178 objfile_per_bfd_storage.
5179 (symbol_set_names): Update.
5180
5181 2019-01-10 Tom Tromey <tom@tromey.com>
5182
5183 * xcoffread.c (xcoff_initial_scan): Unconditionally call
5184 init_psymbol_list.
5185 * psymtab.c (init_psymbol_list): Do nothing if already called.
5186 * psympriv.h (init_psymbol_list): Add comment.
5187 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
5188 init_psymbol_list.
5189 * dbxread.c (dbx_symfile_read): Unconditionally call
5190 init_psymbol_list.
5191
5192 2019-01-10 Tom Tromey <tom@tromey.com>
5193
5194 * xcoffread.c (scan_xcoff_symtab): Update.
5195 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
5196 "where".
5197 * mdebugread.c (parse_partial_symbols)
5198 (handle_psymbol_enumerators): Update.
5199 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
5200 * dbxread.c (read_dbx_symtab): Update.
5201 * psympriv.h (psymbol_placement): New enum.
5202 (add_psymbol_to_list): Update.
5203
5204 2019-01-10 Tom Tromey <tom@tromey.com>
5205
5206 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
5207 static_psymbols parameters.
5208 (scan_xcoff_symtab): Update.
5209 * psymtab.c (start_psymtab_common): Remove global_psymbols and
5210 static_psymbols parameters.
5211 * psympriv.h (start_psymtab_common): Update.
5212 * mdebugread.c (parse_partial_symbols): Update.
5213 * dwarf2read.c (create_partial_symtab): Update.
5214 * dbxread.c (read_dbx_symtab): Update.
5215 (start_psymtab): Remove global_psymbols and static_psymbols
5216 parameters.
5217
5218 2019-01-10 Tom Tromey <tom@tromey.com>
5219
5220 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
5221 * psymtab.c (allocate_psymtab): Add comment.
5222 * psympriv.h (allocate_psymtab): Add comment.
5223 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
5224 initializations.
5225 * dbxread.c (dbx_end_psymtab): Remove some initializations.
5226
5227 2019-01-10 Tom Tromey <tom@tromey.com>
5228
5229 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
5230 Don't declare.
5231 * mipsread.c: Include mdebugread.h.
5232 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
5233 Declare.
5234 * elfread.c: Include mdebugread.h.
5235
5236 2019-01-09 Tom Tromey <tom@tromey.com>
5237
5238 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
5239 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
5240 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
5241 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
5242 (psym_lookup_symbol, psym_find_last_source_symtab)
5243 (psym_forget_cached_source_info, psym_print_stats)
5244 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
5245 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
5246 (psym_map_matching_symbols, psym_expand_symtabs_matching)
5247 (psym_find_compunit_symtab_by_address)
5248 (maintenance_print_psymbols, maintenance_info_psymtabs)
5249 (maintenance_check_psymtabs): Use ranged for.
5250 * psymtab.h (class objfile_psymtabs): New.
5251 (require_partial_symbols): Return objfile_psymtabs.
5252 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
5253
5254 2019-01-09 Tom Tromey <tom@tromey.com>
5255
5256 * symfile.c (overlay_invalidate_all, find_pc_overlay)
5257 (find_pc_mapped_section, list_overlays_command)
5258 (map_overlay_command, unmap_overlay_command)
5259 (simple_overlay_update): Use all_objfiles.
5260 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
5261 * printcmd.c (info_symbol_command): Use all_objfiles.
5262 * objfiles.h (ALL_OBJSECTIONS): Remove.
5263 * maint.c (maintenance_translate_address): Use all_objfiles.
5264 * gcore.c (gcore_create_callback): Use all_objfiles.
5265 (objfile_find_memory_regions): Likewise.
5266
5267 2019-01-09 Tom Tromey <tom@tromey.com>
5268
5269 * symtab.c (find_line_symtab, info_sources_command)
5270 (make_source_files_completion_list): Use objfile_compunits.
5271 * source.c (select_source_symtab): Use objfile_compunits.
5272 * objfiles.h (struct objfile): Update comment.
5273 (ALL_OBJFILES): Remove.
5274 (ALL_FILETABS): Remove.
5275 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
5276 objfile_compunits.
5277
5278 2019-01-09 Tom Tromey <tom@tromey.com>
5279
5280 * symmisc.c (print_objfile_statistics, dump_objfile)
5281 (maintenance_print_symbols): Use compunit_filetabs.
5282 * source.c (forget_cached_source_info_for_objfile): Use
5283 compunit_filetabs.
5284 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
5285 (ALL_FILETABS): Use compunit_filetabs.
5286 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
5287 * coffread.c (coff_symtab_read): Use compunit_filetabs.
5288
5289 2019-01-09 Tom Tromey <tom@tromey.com>
5290
5291 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
5292 (compunit_filetabs): New.
5293 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
5294 compunit_filetabs.
5295 (info_sources_command, make_source_files_completion_list): Remove
5296 declaration.
5297 * symmisc.c (print_objfile_statistics, dump_objfile)
5298 (maintenance_print_symbols): Remove declaration.
5299 (maintenance_info_symtabs): Use compunit_filetabs.
5300 (maintenance_info_line_tables): Likewise.
5301 * source.c (select_source_symtab): Change local variable name.
5302 (forget_cached_source_info_for_objfile): Remove declaration.
5303 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
5304 * objfiles.c (objfile_relocate1): Remove declaration.
5305 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
5306 declaration.
5307 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
5308 * coffread.c (coff_symtab_read): Remove declaration.
5309 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
5310 compunit_filetabs.
5311
5312 2019-01-09 Tom Tromey <tom@tromey.com>
5313
5314 * symtab.c (lookup_objfile_from_block)
5315 (find_pc_sect_compunit_symtab, search_symbols)
5316 (default_collect_symbol_completion_matches_break_on): Use
5317 objfile_compunits.
5318 * objfiles.h (ALL_COMPUNITS): Remove.
5319 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
5320 * cp-support.c (add_symbol_overload_list_qualified): Use
5321 objfile_compunits.
5322 * ada-lang.c (ada_collect_symbol_completion_matches)
5323 (ada_add_global_exceptions): Use objfile_compunits.
5324
5325 2019-01-09 Tom Tromey <tom@tromey.com>
5326
5327 * source.c (select_source_symtab)
5328 (forget_cached_source_info_for_objfile): Remove declaration.
5329 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
5330 declaration.
5331 * maint.c (count_symtabs_and_blocks): Remove declaration.
5332 * cp-support.c (add_symbol_overload_list_qualified): Remove
5333 declaration.
5334 * coffread.c (coff_symtab_read): Remove declaration.
5335 * symtab.c (lookup_symbol_in_objfile_symtabs)
5336 (basic_lookup_transparent_type_1): Use objfile_compunits.
5337 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
5338 (info_sources_command, search_symbols)
5339 (default_collect_symbol_completion_matches_break_on)
5340 (make_source_files_completion_list): Remove declaration.
5341 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
5342 (ada_collect_symbol_completion_matches)
5343 (ada_add_global_exceptions): Remove declaration.
5344 * linespec.c (iterate_over_all_matching_symtabs): Use
5345 objfile_compunits.
5346 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
5347 (class objfile_compunits): New.
5348 (ALL_COMPUNITS): Use objfile_compunits.
5349 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
5350 (maintenance_check_symtabs, maintenance_info_line_tables): Use
5351 objfile_compunits.
5352 * objfiles.c (objfile_relocate1): Use objfile_compunits.
5353
5354 2019-01-09 Tom Tromey <tom@tromey.com>
5355
5356 * symtab.c (search_symbols)
5357 (default_collect_symbol_completion_matches_break_on): Use
5358 objfile_msymbols.
5359 * ada-lang.c (ada_lookup_simple_minsym)
5360 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
5361 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
5362 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
5363 objfile_msymbols.
5364 * coffread.c (coff_symfile_read): Use objfile_msymbols.
5365 * symmisc.c (dump_msymbols): Use objfile_msymbols.
5366 * objc-lang.c (find_methods): Use objfile_msymbols.
5367 (info_selectors_command, info_classes_command): Likewise.
5368 * stabsread.c (scan_file_globals): Use objfile_msymbols.
5369 * objfiles.h (class objfile_msymbols): New.
5370 (ALL_OBJFILE_MSYMBOLS): Remove.
5371 (ALL_MSYMBOLS): Remove.
5372
5373 2019-01-09 Tom Tromey <tom@tromey.com>
5374
5375 * common/next-iterator.h (next_adapter): Add Iterator template
5376 parameter.
5377 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
5378 (class all_objfiles_safe): New.
5379 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
5380 * objfiles.c (put_objfile_before): Update comment.
5381 (add_separate_debug_objfile): Likewise.
5382 (free_all_objfiles): Use all_objfiles_safe.
5383 (objfile_purge_solibs): Likewise.
5384
5385 2019-01-09 Tom Tromey <tom@tromey.com>
5386
5387 * symtab.c (iterate_over_symtabs, matching_obj_sections)
5388 (expand_symtab_containing_pc, lookup_static_symbol)
5389 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
5390 (find_symbol_at_address, find_line_symtab, find_main_name): Use
5391 all_objfiles.
5392 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
5393 * breakpoint.c (create_overlay_event_breakpoint)
5394 (create_longjmp_master_breakpoint)
5395 (create_std_terminate_master_breakpoint)
5396 (create_exception_master_breakpoint): Use all_objfiles.
5397 * linux-thread-db.c (try_thread_db_load_from_pdir)
5398 (has_libpthread): Use all_objfiles.
5399 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
5400 * linespec.c (iterate_over_all_matching_symtabs)
5401 (search_minsyms_for_name): Use all_objfiles.
5402 * maint.c (maintenance_info_sections): Use all_objfiles.
5403 * main.c (captured_main_1): Use all_objfiles.
5404 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
5405 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
5406 * guile/scm-pretty-print.c
5407 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
5408 * solib-spu.c (append_ocl_sos): Use all_objfiles.
5409 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
5410 (maintenance_print_msymbols): Use all_objfiles.
5411 * source.c (select_source_symtab): Use all_objfiles.
5412 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
5413 * symfile.c (remove_symbol_file_command)
5414 (expand_symtabs_matching, map_symbol_filenames): Use
5415 all_objfiles.
5416 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
5417 all_objfiles.
5418 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
5419 * objc-lang.c (find_methods): Use all_objfiles.
5420 * objfiles.c (have_partial_symbols, have_full_symbols)
5421 (have_minimal_symbols, qsort_cmp)
5422 (default_iterate_over_objfiles_in_search_order): Use
5423 all_objfiles.
5424 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
5425 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
5426 (maintenance_check_psymtabs): Use all_objfiles.
5427 (ALL_PSYMTABS): Remove.
5428 * compile/compile-object-run.c (do_module_cleanup): Use
5429 all_objfiles.
5430 * blockframe.c (find_pc_partial_function): Use all_objfiles.
5431 * cp-support.c (add_symbol_overload_list_qualified): Use
5432 all_objfiles.
5433 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
5434 Use all_objfiles.
5435 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
5436 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
5437 all_objfiles.
5438 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
5439 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
5440 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
5441 Uses all_objfiles.
5442 * solib.c (solib_read_symbols): Use all_objfiles
5443
5444 2019-01-09 Tom Tromey <tom@tromey.com>
5445
5446 * probe.c (parse_probes_in_pspace): Use all_objfiles.
5447 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
5448 all_objfiles.
5449 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
5450 * symmisc.c (print_symbol_bcache_statistics)
5451 (print_objfile_statistics, maintenance_print_objfiles)
5452 (maintenance_info_symtabs, maintenance_check_symtabs)
5453 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
5454 all_objfiles.
5455 * source.c (forget_cached_source_info): Use all_objfiles.
5456 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
5457 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
5458 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
5459 * objfiles.c (update_section_map): Use all_objfiles.
5460 (shared_objfile_contains_address_p): Likewise.
5461 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
5462 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
5463
5464 2019-01-09 Tom Tromey <tom@tromey.com>
5465
5466 * common/next-iterator.h: New file.
5467 * objfiles.h (class all_objfiles): New.
5468 (struct objfile_iterator): New.
5469
5470 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5471
5472 * NEWS: Move the description of the changed "frame", "select-frame",
5473 and "info frame" commands to the Changed commands section.
5474
5475 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
5476
5477 * gdbtypes.c (check_stub_method_group): Remove handling of old
5478 mangling schemes.
5479 * linespec.c (find_methods): Likewise.
5480 * stabsread.c (read_member_functions): Likewise.
5481 * valops.c (search_struct_method): Likewise.
5482 (value_struct_elt_for_reference): Likewise.
5483 * NEWS: Mention this change.
5484
5485 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
5486
5487 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
5488 print_source_lines.
5489 * source.c (print_source_lines_base): Update line number check.
5490 (print_source_lines): New function.
5491 (source_lines_range::source_lines_range): New function.
5492 * source.h (class source_lines_range): New class.
5493 (print_source_lines): New declaration.
5494
5495 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5496
5497 * linespec.c (linespec_state_destructor): Free self->canonical_names.
5498
5499 2019-01-08 Tom Tromey <tom@tromey.com>
5500 Simon Marchi <simon.marchi@ericsson.com>
5501
5502 PR gdb/24060
5503 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
5504 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
5505 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
5506 * f-exp.y (DOLLAR_VARIABLE): Likewise.
5507 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
5508 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
5509
5510 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
5511
5512 * source.c (select_source_symtab): Move header comment to
5513 declaration in source.h.
5514 (forget_cached_source_info_for_objfile): Likewise.
5515 (forget_cached_source_info): Likewise.
5516 (identify_source_line): Likewise.
5517 * source.h (identify_source_line): Move declaration from symtab.h
5518 and add comment from source.c
5519 (print_source_lines): Likewise.
5520 (forget_cached_source_info_for_objfile): Likewise.
5521 (forget_cached_source_info): Likewise.
5522 (select_source_symtab): Likewise.
5523 (enum print_source_lines_flag): Move definition from symtab.h.
5524 * symtab.h (identify_source_line): Move declaration to source.h.
5525 (print_source_lines): Likewise.
5526 (forget_cached_source_info_for_objfile): Likewise.
5527 (forget_cached_source_info): Likewise.
5528 (select_source_symtab): Likewise.
5529 (enum print_source_lines_flag): Move definition to source.h.
5530 * tui/tui-hooks.c: Add 'source.h' include.
5531
5532 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
5533
5534 * source.c (print_source_lines_base): Handle requests to print
5535 reverse line number sequences, and guard against empty lines
5536 string.
5537
5538 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
5539
5540 * source.c (print_source_lines_base): Fix skip of '\r' if next
5541 character is '\n'.
5542
5543 2019-01-06 Tom Tromey <tom@tromey.com>
5544
5545 * c-exp.y (struct c_parse_state) <macro_original_text,
5546 expansion_obstack>: New member.
5547 (macro_original_text, expansion_obstack): Remove globals.
5548 (scan_macro_expansion, scanning_macro_expansion)
5549 (finished_macro_expansion): Update.
5550 (scan_macro_cleanup): Remove.
5551 (yylex, c_parse): Update.
5552
5553 2019-01-06 Tom Tromey <tom@tromey.com>
5554
5555 * c-exp.y (struct c_parse_state) <strings>: New member.
5556 (operator_stoken): Update.
5557
5558 2019-01-06 Tom Tromey <tom@tromey.com>
5559
5560 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
5561 (union type_stack_elt) <typelist_val>: Now a pointer to
5562 std::vector.
5563 (type_stack_cleanup): Don't declare.
5564 (push_typelist): Update.
5565 * parse.c (pop_typelist): Return a std::vector.
5566 (push_typelist): Take a std::vector.
5567 (follow_types): Update. Do not free args.
5568 (type_stack_cleanup): Remove.
5569 * c-exp.y (struct c_parse_state): New.
5570 (cpstate): New global.
5571 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
5572 (nonempty_typelist): Update.
5573 (func_mod): Create a new vector.
5574 (c_parse): Create a c_parse_state.
5575 (check_parameter_typelist): Do not delete params.
5576 (function_method): Update. Do not delete type_list.
5577
5578 2019-01-06 Tom Tromey <tom@tromey.com>
5579
5580 PR gdb/28155:
5581 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
5582 check_typedef.
5583 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
5584 (print_return_value): Likewise.
5585
5586 2019-01-05 Tom Tromey <tom@tromey.com>
5587
5588 * contrib/cleanup_check.py: Remove.
5589 * contrib/gcc-with-excheck: Remove.
5590 * contrib/exsummary.py: Remove.
5591 * contrib/excheck.py: Remove.
5592
5593 2019-01-05 Joel Brobecker <brobecker@adacore.com>
5594
5595 * thread.c (delete_thread_1): Add gdb_assert that THR is not
5596 NULL. Initialize tpprev to NULL instead of assigning it
5597 to NULL on the next statement.
5598 * windows-nat.c (windows_delete_thread): Remove check for
5599 main_thread_id before printing thread exit notifications.
5600 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
5601 Remove thread ID check against main_thread_id.
5602 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
5603 windows_delete_thread.
5604 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
5605
5606 2019-01-04 Tom Tromey <tom@tromey.com>
5607
5608 * compile/compile.c (_initialize_compile): Use upper case for
5609 metasyntactic variables.
5610 * symmisc.c (_initialize_symmisc): Use upper case for
5611 metasyntactic variables.
5612 * psymtab.c (_initialize_psymtab): Use upper case for
5613 metasyntactic variables.
5614 * demangle.c (demangle_command): Use upper case for metasyntactic
5615 variables.
5616 (_initialize_demangler): Likewise.
5617 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
5618 variables.
5619
5620 2019-01-03 Tom Tromey <tom@tromey.com>
5621
5622 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
5623
5624 2019-01-03 Tom Tromey <tom@tromey.com>
5625
5626 * python/py-symtab.c (salpy_str): Update.
5627 (struct salpy_sal_object) <symtab>: Now a PyObject.
5628 (salpy_dealloc): Update.
5629 (del_objfile_sal): Use gdbpy_ref.
5630
5631 2019-01-03 Tom Tromey <tom@tromey.com>
5632
5633 * python/py-type.c (convert_field): Use new_reference. Return
5634 gdbpy_ref.
5635 (make_fielditem): Return gdbpy_ref.
5636 (typy_fields): Update.
5637 (typy_getitem): Update.
5638 (field_name): Return gdbpy_ref. Use new_reference.
5639 (typy_iterator_iternext): Update.
5640
5641 2019-01-03 Tom Tromey <tom@tromey.com>
5642
5643 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
5644
5645 2019-01-03 Tom Tromey <tom@tromey.com>
5646
5647 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
5648 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
5649 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
5650 (pspy_set_frame_filters, pspy_set_frame_unwinders)
5651 (pspy_set_type_printers): Likewise.
5652 * python/py-function.c (fnpy_init): Use gdbpy_ref.
5653 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
5654 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
5655 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
5656 (objfpy_set_type_printers): Likewise.
5657
5658 2019-01-03 Tom Tromey <tom@tromey.com>
5659
5660 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
5661 (gdbpy_print_stack): Use gdbpy_err_fetch.
5662 * python/python-internal.h (class gdbpy_err_fetch): New class.
5663 (class gdbpy_enter) <m_error_type, m_error_value,
5664 m_error_traceback>: Remove.
5665 <m_error>: New member.
5666 (gdbpy_exception_to_string): Don't declare.
5667 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
5668 * python/py-value.c (convert_value_from_python): Use
5669 gdbpy_err_fetch.
5670 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
5671 gdbpy_exception_to_string.
5672 (gdbpy_handle_exception): Use gdbpy_err_fetch.
5673 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
5674 gdbpy_err_fetch.
5675
5676 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
5677
5678 * linux-nat.c (delete_lwp_cleanup): Delete.
5679 (struct lwp_deleter): New struct.
5680 (lwp_info_up): New typedef.
5681 (linux_nat_target::follow_fork): Delete cleanup, and make use of
5682 lwp_info_up.
5683
5684 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
5685
5686 * linux-fork.c (class scoped_switch_fork_info): New class.
5687 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
5688
5689 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
5690
5691 * valops.c (find_overload_match): Remove use of null_cleanup, and
5692 calls to do_cleanups.
5693
5694 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
5695
5696 * compile/compile-cplus-types.c
5697 (compile_cplus_instance::decl_name): Handle changes to
5698 cp_func_name.
5699 * cp-support.c (cp_func_name): Update header comment, update
5700 return type.
5701 * cp-support.h (cp_func_name): Update return type in declaration.
5702 * valops.c (find_overload_match): Move temp_func local to top
5703 level of function and change its type. Use temp_func to hold and
5704 delete temporary string obtained from cp_func_name.
5705
5706 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
5707
5708 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
5709 gdb::char_vector, remove cleanup, and update uses of `msg`.
5710
5711 2019-01-03 Jim Wilson <jimw@sifive.com>
5712
5713 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
5714
5715 2019-01-02 Tom Tromey <tom@tromey.com>
5716
5717 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
5718 (tdesc_parse_xml): Remove cleanups.
5719 * target-descriptions.h (make_cleanup_free_target_description):
5720 Don't declare.
5721 (target_desc_deleter): New struct.
5722 (target_desc_up): New typedef.
5723 * target-descriptions.c (target_desc_deleter::operator()): Rename
5724 from free_target_description.
5725 (make_cleanup_free_target_description): Remove.
5726
5727 2019-01-02 Tom Tromey <tom@tromey.com>
5728
5729 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
5730 constructor, destructor.
5731 (linespec_parser): Remove typedef.
5732 (~linespec_parser): Rename from linespec_parser_delete.
5733 (linespec_lex_to_end, linespec_complete_label)
5734 (linespec_complete): Update.
5735 (decode_line_full): Remove cleanups.
5736 (decode_line_1): Update.
5737
5738 2019-01-02 Tom Tromey <tom@tromey.com>
5739
5740 * python/python-internal.h (inferior_to_inferior_object): Change
5741 return type.
5742 * python/py-exitedevent.c (create_exited_event_object): Update.
5743 * python/py-inferior.c (inferior_to_inferior_object): Return
5744 gdbpy_ref.
5745 (python_new_inferior, python_inferior_deleted)
5746 (thread_to_thread_object, delete_thread_object)
5747 (build_inferior_list, gdbpy_selected_inferior): Update.
5748 * python/py-infthread.c (create_thread_object): Update. Also fail
5749 if inferior_to_inferior_object fails.
5750
5751 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
5752
5753 * inferior.h (class inferior) <displaced_step_state>: New field.
5754 * infrun.h (struct displaced_step_state): Move here from
5755 infrun.c. Initialize fields, add constructor.
5756 <inf>: Remove field.
5757 <reset>: New method.
5758 * infrun.c (struct displaced_step_inferior_state): Move to
5759 infrun.h.
5760 (displaced_step_inferior_states): Remove.
5761 (get_displaced_stepping_state): Adust.
5762 (displaced_step_in_progress_any_inferior): Adjust.
5763 (displaced_step_in_progress_thread): Adjust.
5764 (displaced_step_in_progress): Adjust.
5765 (add_displaced_stepping_state): Remove.
5766 (get_displaced_step_closure_by_addr): Adjust.
5767 (remove_displaced_stepping_state): Remove.
5768 (infrun_inferior_exit): Call displaced_step_state.reset.
5769 (use_displaced_stepping): Don't check for NULL.
5770 (displaced_step_prepare_throw): Call
5771 get_displaced_stepping_state.
5772 (displaced_step_fixup): Don't check for NULL.
5773 (prepare_for_detach): Don't check for NULL.
5774
5775 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5776
5777 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
5778 in case of call that did not complete.
5779
5780 2019-01-02 Andrey Utkin <autkin@undo.io>
5781
5782 * symfile.c (find_separate_debug_file): Fix search of debug files for
5783 remote debuggee.
5784
5785 2019-01-02 Tom Tromey <tom@tromey.com>
5786
5787 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
5788 indentation.
5789 * python/py-frame.c (frapy_older): Remove cast.
5790 (frapy_newer): Likewise.
5791 * python/py-breakpoint.c (local_setattro): Remove cast.
5792 * python/py-arch.c (archpy_name): Remove local variable.
5793 * python/py-type.c (gdbpy_lookup_type): Remove cast.
5794
5795 2019-01-02 Joel Brobecker <brobecker@adacore.com>
5796
5797 * unittests/basic_string_view/element_access/char/empty.cc:
5798 Fix year range in copyright header.
5799
5800 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
5801
5802 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
5803 Delete.
5804 <operator==>: Update with for removed field.
5805 <hash>: Likewise.
5806 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
5807 <isa_features>: ...this.
5808 <abi_features>: New field.
5809 (riscv_isa_flen): Update comment.
5810 (riscv_abi_xlen): New declaration.
5811 (riscv_abi_flen): New declaration.
5812 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
5813 isa_features.
5814 (riscv_abi_xlen): New function.
5815 (riscv_isa_flen): Update to get answer from isa_features.
5816 (riscv_abi_flen): New function.
5817 (riscv_has_fp_abi): Update to get answer from abi_features.
5818 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
5819 xlen and flen.
5820 (riscv_call_info) <xlen, flen>: Update comment.
5821 (riscv_call_arg_struct): Remove invalid assertions
5822 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
5823 is removed.
5824 (riscv_gdbarch_init): Gather isa features and abi features
5825 separately, ensure both match on the gdbarch when reusing an old
5826 gdbarch. Relax an error check to allow 32-bit abi float to run on
5827 a target with 64-bit float hardware.
5828
5829 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5830
5831 * source.c (search_command_helper): Stop reverse search
5832 when line 1 has been searched.
5833
5834 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5835
5836 * record-full.c (record_full_base_target::close): Rewrite
5837 record_full_core_buf_list free logic.
5838
5839 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5840
5841 * break-catch-syscall.c (print_one_catch_syscall): xfree
5842 the last text.
5843
5844 2019-01-01 Joel Brobecker <brobecker@adacore.com>
5845
5846 * top.c (print_gdb_version): Update Copyright year in version
5847 message.
5848
5849 2019-01-01 Joel Brobecker <brobecker@adacore.com>
5850
5851 Update copyright year range in all GDB files.
5852
5853 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
5854
5855 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
5856
5857 For older changes see ChangeLog-2018.
5858 \f
5859 Local Variables:
5860 mode: change-log
5861 left-margin: 8
5862 fill-column: 74
5863 version-control: never
5864 coding: utf-8
5865 End:
5866
This page took 0.18439 seconds and 4 git commands to generate.