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