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