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