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