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