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