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