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