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