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