]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gdb/ChangeLog
Require readline 7 or newer
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
1 2019-08-12 Tom Tromey <tom@tromey.com>
2
3 * configure: Rebuild.
4 * configure.ac: Check for readline 7.
5 * NEWS: Mention readline 7 requirement.
6 * README: Update.
7
8 2019-08-12 Tom Tromey <tom@tromey.com>
9
10 * mingw-hdep.c (gdb_select): Remove readline hack.
11
12 2019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
13
14 * blockframe.c (find_pc_partial_function): Set *block to nullptr
15 when the function fails.
16
17 2019-08-09 Andreas Arnez <arnez@linux.ibm.com>
18
19 * s390-tdep.c (s390_type_align): New function.
20 (s390_gdbarch_init): Set it as type_align gdbarch method.
21
22 2019-08-09 Tom de Vries <tdevries@suse.de>
23
24 PR gdb/24591
25 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
26 pc_low with relocation offset.
27
28 2019-08-07 Tom Tromey <tromey@adacore.com>
29
30 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
31 (print_frame_args): Update.
32 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
33 Update.
34 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
35 * frame.h (struct frame_arg): Add initializers.
36 <error>: Now a unique_xmalloc_ptr.
37
38 2019-08-07 Alan Hayward <alan.hayward@arm.com>
39
40 * NEWS: Expand the Pointer Authentication entry.
41 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
42 (aarch64_frame_unmask_lr): ... to this.
43 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
44 Call aarch64_frame_unmask_lr.
45 * frame.c (struct frame_info): Add "masked" variable.
46 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
47 (fprint_frame): Check for masked pc.
48 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
49 declarations.
50 * python/py-framefilter.c (py_print_frame): Check for masked pc.
51 * stack.c (print_frame): Check for masked pc.
52
53 2019-08-06 Tom Tromey <tom@tromey.com>
54
55 * stabsread.c (patch_block_stabs, read_one_struct_field)
56 (read_enum_type): Use obstack_strndup.
57 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
58 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
59 * dwarf2read.c (guess_full_die_structure_name)
60 (anonymous_struct_prefix): Use obstack_strndup.
61 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
62 * c-exp.y (yylex): Use obstack_strndup.
63 * ada-exp.y (write_object_renaming, write_ambiguous_var)
64 (write_var_or_type): Use obstack_strndup.
65
66 2019-08-06 Tom Tromey <tom@tromey.com>
67
68 * symfile.c (reread_symbols): Use obstack_strdup.
69 * stabsread.c (read_type): Use obstack_strdup.
70 * gdb_obstack.h (obstack_strdup): New overload.
71 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
72 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
73 (dwarf2_canonicalize_name): Use obstack_strdup.
74 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
75 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
76 Use obstack_strdup.
77
78 2019-08-06 Tom Tromey <tom@tromey.com>
79
80 * gdb_obstack.h (obstack_strdup): Define.
81 * gdb_obstack.c (obstack_strdup): Don't define.
82
83 2019-08-06 Tom Tromey <tom@tromey.com>
84
85 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
86 obstack_strdup.
87 * typeprint.c (typedef_hash_table::find_global_typedef): Use
88 obstack_strdup.
89 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
90 * stabsread.c (common_block_start): Use obstack_strdup.
91 * objfiles.c (set_objfile_main_name, objfile): Use
92 obstack_strdup.
93 * namespace.c (add_using_directive): Use obstack_strdup.
94 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
95 * jit.c (finalize_symtab): Use obstack_strdup.
96 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
97 (guess_partial_die_structure_name, partial_die_info::fixup)
98 (dwarf2_name): Use obstack_strdup.
99 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
100 obstack_strdup.
101 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
102 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
103 obstack_strdup.
104 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
105
106 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
107
108 * unittests/help-doc-selftests.c: New file.
109 * Makefile.in: Add the new file.
110
111 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
112
113 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
114 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
115 the full first line, except when FOR_VALUE_PREFIX. In this case,
116 the trailing '.' is not output, and the first character is uppercased.
117 (print_help_for_command): Update call to print_doc_line.
118 (print_doc_of_command): Likewise.
119 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
120 * cli/cli-option.c (append_indented_doc): Do not append newline.
121 (build_help_option): Append newline after first appended_indented_doc
122 only if a second call is done.
123 (build_help): Append 2 new lines before each option, except the first
124 one.
125 * compile/compile.c (_initialize_compile): Add new lines after
126 %OPTIONS%, when not at the end of the help.
127 Change help doc or code
128 producing the help doc to respect the invariants.
129 * maint-test-options.c (_initialize_maint_test_options): Likewise.
130 Also removed the new line after 'Options:', as all other commands
131 do not put an empty line between 'Options:' and the first option.
132 * printcmd.c (_initialize_printcmd): Likewise.
133 * stack.c (_initialize_stack): Likewise.
134 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
135 incorrectly telling COMMAND is optional.
136 * ada-lang.c (_initialize_ada_language): Change help doc or code
137 producing the help doc to respect the invariants.
138 * ada-tasks.c (_initialize_ada_tasks): Likewise.
139 * breakpoint.c (_initialize_breakpoint): Likewise.
140 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
141 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
142 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
143 * cli/cli-style.c (cli_style_option::add_setshow_commands,
144 _initialize_cli_style): Likewise.
145 * corelow.c (core_target_info): Likewise.
146 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
147 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
148 * filesystem.c (_initialize_filesystem): Likewise.
149 * frame.c (_initialize_frame): Likewise.
150 * gnu-nat.c (add_task_commands): Likewise.
151 * infcall.c (_initialize_infcall): Likewise.
152 * infcmd.c (_initialize_infcmd): Likewise.
153 * interps.c (_initialize_interpreter): Likewise.
154 * language.c (_initialize_language): Likewise.
155 * linux-fork.c (_initialize_linux_fork): Likewise.
156 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
157 * maint.c (_initialize_maint_cmds): Likewise.
158 * memattr.c (_initialize_mem): Likewise.
159 * printcmd.c (_initialize_printcmd): Likewise.
160 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
161 _RegEx): Likewise.
162 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
163 * record-btrace.c (_initialize_record_btrace): Likewise.
164 * record-full.c (_initialize_record_full): Likewise.
165 * record.c (_initialize_record): Likewise.
166 * regcache-dump.c (_initialize_regcache_dump): Likewise.
167 * regcache.c (_initialize_regcache): Likewise.
168 * remote.c (add_packet_config_cmd, init_remote_threadtests,
169 _initialize_remote): Likewise.
170 * ser-tcp.c (_initialize_ser_tcp): Likewise.
171 * serial.c (_initialize_serial): Likewise.
172 * skip.c (_initialize_step_skip): Likewise.
173 * source.c (_initialize_source): Likewise.
174 * stack.c (_initialize_stack): Likewise.
175 * symfile.c (_initialize_symfile): Likewise.
176 * symtab.c (_initialize_symtab): Likewise.
177 * target-descriptions.c (_initialize_target_descriptions): Likewise.
178 * top.c (init_main): Likewise.
179 * tracefile-tfile.c (tfile_target_info): Likewise.
180 * tracepoint.c (_initialize_tracepoint): Likewise.
181 * tui/tui-win.c (_initialize_tui_win): Likewise.
182 * utils.c (add_internal_problem_command): Likewise.
183 * valprint.c (value_print_option_defs): Likewise.
184
185 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
186
187 PR build/24886
188 * configure.ac: Drop enable-libmcheck support.
189 * configure, config.in: Rebuild.
190 * libmcheck.m4: Remove.
191 * acinclude.m4: Don't include it.
192 * Makefile.in: Don't distribute it.
193 * top.c (print_gdb_configuration): Don't mention it.
194
195 2019-08-06 Tom Tromey <tom@tromey.com>
196
197 * utils.c (set_output_style): Sometimes pass stream to
198 emit_style_escape.
199 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
200 * record-btrace.c (btrace_insn_history): Update.
201 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
202 method.
203 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
204 Update initializers.
205 <m_uiout>: New field.
206 <m_di>: Move lower.
207 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
208 Remove "uiout" parameter.
209 (dump_insns): Update.
210 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
211 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
212
213 2019-08-06 Christian Biesinger <cbiesinger@google.com>
214
215 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
216 (error_in_psymtab_expansion): Likewise.
217 (lookup_symbol_via_quick_fns): Likewise.
218 (basic_lookup_transparent_type_quick): Likewise.
219 (basic_lookup_transparent_type_1): Likewise.
220
221 2019-08-06 Tom Tromey <tromey@adacore.com>
222
223 * source.c (last_source_error): Now bool.
224 (print_source_lines_base): Make "noprint" bool. Only open
225 source file when last_source_visited changes.
226
227 2019-08-06 Tom Tromey <tromey@adacore.com>
228
229 * annotate.c (annotate_source_line): Use g_source_cache.
230 * source-cache.c (source_cache::get_plain_source_lines): Change
231 parameters. Populate m_offset_cache.
232 (source_cache::ensure): New method.
233 (source_cache::get_line_charpos): New method.
234 (extract_lines): Move lower. Change parameters.
235 (source_cache::get_source_lines): Move lower.
236 * source-cache.h (class source_cache): Update comment.
237 <get_line_charpos>: New method.
238 <get_source_lines>: Update comment.
239 <clear>: Clear m_offset_cache.
240 <get_plain_source_lines>: Change parameters.
241 <ensure>: New method
242 <m_offset_cache>: New member.
243 * source.c (forget_cached_source_info_for_objfile): Update.
244 (info_source_command): Use g_source_cache.
245 (find_source_lines, open_source_file_with_line_charpos): Remove.
246 (print_source_lines_base, search_command_helper): Use g_source_cache.
247 * source.h (open_source_file_with_line_charpos): Don't declare.
248 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
249 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
250 Use g_source_cache.
251
252 2019-08-06 Tom Tromey <tromey@adacore.com>
253
254 * source-cache.c (source_cache::get_plain_source_lines):
255 Remove "first_line" and "last_line" parameters.
256 (source_cache::get_source_lines): Cache plain text.
257 * source-cache.h (class source_cache)
258 <get_plain_source_lines>: Update.
259
260 2019-08-06 Tom Tromey <tromey@adacore.com>
261
262 * source-cache.c (extract_lines): No longer a method.
263 Changed type of parameter. Include final newline.
264 (selftests::extract_lines_test): New function.
265 (_initialize_source_cache): Likewise.
266 * source-cache.h (class source_cache)
267 <extract_lines>: Don't declare.
268
269 2019-08-06 Tom Tromey <tromey@adacore.com>
270
271 * breakpoint.c (init_breakpoint_sal): Update.
272 (breakpoint): Update.
273 * breakpoint.h (struct breakpoint) <filter>: Now a
274 unique_xmalloc_ptr.
275
276 2019-08-05 Christian Biesinger <cbiesinger@google.com>
277
278 * NEWS: Mention dictionary access on blocks.
279 * python/py-block.c (blpy_getitem): New function.
280 (block_object_as_mapping): New struct.
281 (block_object_type): Use new struct for tp_as_mapping field.
282
283 2019-08-05 Christian Biesinger <cbiesinger@google.com>
284
285 * objfiles.h (objfile): Add a comment describing partial symbols.
286
287 2019-08-05 Tom Tromey <tromey@adacore.com>
288
289 * compile/compile.c (_initialize_compile): Use _(), not N_().
290 * thread.c (_initialize_thread): Use _(), not N_().
291 * stack.c (_initialize_stack): Use _(), not N_().
292 * printcmd.c (_initialize_printcmd): Use _(), not N_().
293
294 2019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
295
296 * dwarf2read.c (struct dw2_symtab_iterator):
297 <want_specific_block>: Remove.
298 <block_index>: Change type to gdb::optional.
299 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
300 change type of BLOCK_INDEX parameter to gdb::optional.
301 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
302 (dw2_lookup_symbol): Don't pass argument for
303 WANT_SPECIFIC_BLOCK.
304 (dw2_expand_symtabs_for_function): Don't pass argument for
305 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
306 (class dw2_debug_names_iterator)
307 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
308 parameter, change BLOCK_INDEX type to gdb::optional.
309 <m_want_specific_block>: Remove.
310 <m_block_index>: Change type to gdb::optional.
311 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
312 gdb::optional. Re-write in function of gdb::optional.
313 (dw2_debug_names_lookup_symbol): Don't pass argument for
314 WANT_SPECIFIC_BLOCK.
315 (dw2_debug_names_expand_symtabs_for_function): Don't pass
316 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
317 BLOCK_INDEX.
318
319 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
320
321 * NEWS: Mention changes to "info sources" command.
322
323 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
324
325 * symtab.c (filename_partial_match_opts): New struct type.
326 (struct output_source_filename_data): New members
327 regexp, c_regexp, partial_match.
328 (output_source_filename): Use new members to decide to print file.
329 (info_sources_option_defs): New variable.
330 (make_info_sources_options_def_group, print_info_sources_header,
331 info_sources_command_completer):
332 New functions.
333 (info_sources_command): Read new optional arguments.
334 (_initialize_symtab): Update info sources help.
335
336 2019-08-02 Alexandre Oliva <oliva@adacore.com>
337
338 * ada-lang.c (exception_support_info_v0): Renamed from...
339 (default_exception_support_info): ... this. Create new
340 definition for v1.
341 (ada_has_this_exception_support): Look up catch_handlers_sym.
342 (ada_exception_support_info_sniffer): Try v0 after default.
343
344 2019-08-01 Tom Tromey <tromey@adacore.com>
345
346 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
347 gdbarch.h.
348
349 2019-08-01 Christian Biesinger <cbiesinger@google.com>
350
351 * s12z-tdep.c: Fix include path for s12z-opc.h.
352
353 2019-08-01 Alan Hayward <alan.hayward@arm.com>
354
355 * NEWS: Require GNU make 3.82.
356
357 2019-07-16 Tom Tromey <tom@tromey.com>
358
359 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
360 declare.
361
362 2019-07-30 Tom Tromey <tromey@adacore.com>
363
364 * block.c (contained_in): Remove BLOCK_FUNCTION check.
365
366 2019-07-30 Kevin Buettner <kevinb@redhat.com>
367
368 * printcmd.c (print_address_symbolic): Print negative offsets.
369 (build_address_symbolic): Force signed arithmetic when computing
370 offset.
371
372 2019-07-30 Christian Biesinger <cbiesinger@google.com>
373
374 PR/24474: Add a function to lookup static variables.
375 * NEWS: Mention this new function.
376 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
377 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
378 * python/python.c (python_GdbMethods): Add new function.
379
380 2019-07-29 Christian Biesinger <cbiesinger@google.com>
381
382 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
383 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
384 (objfpy_lookup_static_symbol): New function.
385 (objfile_object_methods): Add new functions.
386
387 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
388
389 * NEWS: Mention 'set|show print frame-info'. Mention new
390 'presence' value for 'frame-arguments'. Mention new '-frame-info'
391 backtrace argument. Mention that python frame filtering code
392 is now consistent with what 'backtrace' command prints.
393
394 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
395
396 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
397 comments.
398 (print_frame_info_auto, print_frame_info_source_line,
399 print_frame_info_location, print_frame_info_source_and_location,
400 print_frame_info_location_and_address, print_frame_info_short_location):
401 New declarations.
402 (struct frame_print_options): New member print_frame_info.
403 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
404 * stack.h (get_user_print_what_frame_info): New declaration.
405 (frame_show_address): New declaration.
406 * stack.c (print_frame_arguments_choices): New value 'presence'.
407 (print_frame_info_auto, print_frame_info_source_line,
408 print_frame_info_location, print_frame_info_source_and_location,
409 print_frame_info_location_and_address, print_frame_info_short_location,
410 print_frame_info_choices, print_frame_info_print_what): New definitions.
411 (print_frame_args): Only print dots for args if print frame-arguments
412 is 'presence'.
413 (frame_print_option_defs): New element for "frame-info".
414 (get_user_print_what_frame_info): New function.
415 (frame_show_address): Make non static. Move comment to stack.h.
416 (print_frame_info_to_print_what): New function.
417 (print_frame_info): Update comment. Use fp_opts.print_frame_info
418 to decide what to print.
419 (backtrace_command_1): Handle the new print_frame_arguments_presence
420 value.
421 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
422 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
423 (py_print_frame): In non-mi mode, use LOCATION as default for
424 print_what, similarly to frame information printed directly by
425 backtrace command. Handle frame-info user option in non MI mode.
426
427 2019-07-27 Kevin Buettner <kevinb@redhat.com>
428
429 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
430 Add case for debugging 32-bit target on 64-bit host. Revise
431 comment.
432
433 2019-07-27 Kevin Buettner <kevinb@redhat.com>
434
435 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
436 instead of find_function_entry_range_from_pc.
437
438 2019-07-27 Kevin Buettner <kevinb@redhat.com>
439
440 * stack.c (find_frame_funname): Remove code which preferred
441 minsym over symtab sym in "certain pathological cases".
442
443 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
444 parameter. Change type of "do_demangle" to bool.
445 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
446 Pass suitable "prefer_sym_over_minsym" flag to
447 build_address_symbolic(). Don't output "+" for negative offsets.
448 * printcmd.c (print_address_symbolic): Update invocation of
449 build_address_symbolic to include a "prefer_sym_over_minsym"
450 flag.
451 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
452 Restrict cases in which use of minimal symbol is preferred to that
453 of a found symbol. Update comments.
454
455 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
456 for entry pc when entry pc is out of range for that FDE.
457
458 2019-07-26 Brian Callahan <bcallah@openbsd.org>
459
460 PR gdb/24839:
461 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
462 type.
463
464 2019-07-25 Christian Biesinger <cbiesinger@google.com>
465
466 * python/py-objfile.c (add_separate_debug_file): Fix comment about
467 this function's Python signature.
468
469
470 2019-07-24 Christian Biesinger <cbiesinger@google.com>
471
472 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
473 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
474 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
475 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
476 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
477
478
479 2019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
480
481 * h8300-tdep.c (h8300_register_name_common): New.
482 h8300_register_name): Use h8300_register_name_common.
483 (h8300s_register_name): Likewise.
484 (h8300sx_register_name): Likewise.
485 (h8300h_register_nam): New.
486 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
487
488
489 2019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
490
491 * arm-tdep.c (arm_skip_cmse_entry): New function.
492 (arm_is_sgstubs_section): New function.
493 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
494
495 2019-07-22 Tom Tromey <tom@tromey.com>
496
497 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
498 Don't self-assign.
499
500 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
501
502 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
503 type_print.
504
505 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
506
507 * symtab.c (search_symbols): Adjust msymbol matching type arrays
508 so that GDB doesn't match any msymbols when searching in the
509 TYPES_DOMAIN.
510 (print_symbol_info): Print using typedef_print or type_print based
511 on the type of the symbol. Add updated FIXME comment moved from...
512 (_initialize_symtab): ... move and update FIXME comment to above.
513
514 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
515
516 * NEWS: Mention adding -q option to "info types".
517 * symtab.c (struct info_types_options): New struct.
518 (info_types_options_defs): New variable.
519 (make_info_types_options_def_group): New function.
520 (info_types_command): Use gdb::option framework to parse options.
521 (info_types_command_completer): New function.
522 (_initialize_symtab): Extend the help text on "info types" and
523 register command completer.
524
525 2019-07-21 Christian Biesinger <cbiesinger@google.com>
526
527 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
528 (lookup_symbol_in_objfile): Change int to block_enum and add a
529 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
530
531 2019-07-20 Christian Biesinger <cbiesinger@google.com>
532
533 * MAINTAINERS (Write After Approval): Add self.
534
535 2019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
536
537 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
538 instruction to the dummy code region.
539
540 2019-07-19 Tom Tromey <tromey@adacore.com>
541
542 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
543 (ARGSUSED, PARAMS, __func__): Remove rules.
544
545 2019-07-19 Alan Hayward <alan.hayward@arm.com>
546
547 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
548 * features/arm/arm-with-iwmmxt.c: Remove.
549 * features/arm/arm-with-iwmmxt.xml: Remove.
550 * features/arm/arm-with-m-fpa-layout.c: Remove.
551 * features/arm/arm-with-m-fpa-layout.xml: Remove.
552 * features/arm/arm-with-m-vfp-d16.c: Remove.
553 * features/arm/arm-with-m-vfp-d16.xml: Remove.
554 * features/arm/arm-with-m.c: Remove.
555 * features/arm/arm-with-m.xml: Remove.
556 * features/arm/arm-with-neon.c: Remove.
557 * features/arm/arm-with-neon.xml: Remove.
558 * features/arm/arm-with-vfpv2.c: Remove.
559 * features/arm/arm-with-vfpv2.xml: Remove.
560 * features/arm/arm-with-vfpv3.c: Remove.
561 * features/arm/arm-with-vfpv3.xml: Remove.
562
563 2019-07-19 Alan Hayward <alan.hayward@arm.com>
564
565 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
566
567 2019-07-19 Alan Hayward <alan.hayward@arm.com>
568
569 * arch/aarch32.c (aarch32_create_target_description): Create
570 target descriptions using features.
571 * arch/arm.c (arm_create_target_description)
572 (arm_create_mprofile_target_description): Likewise.
573 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
574
575 2019-07-19 Alan Hayward <alan.hayward@arm.com>
576
577 * Makefile.in: Add new files.
578 * aarch32-tdep.c: New file.
579 * aarch32-tdep.h: New file.
580 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
581 Call aarch32_read_description.
582 * arch/aarch32.c: New file.
583 * arch/aarch32.h: New file.
584 * arch/arm.c (arm_create_target_description)
585 (arm_create_mprofile_target_description): New function.
586 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
587 (arm_create_target_description)
588 (arm_create_mprofile_target_description): New declaration.
589 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
590 read_description functions.
591 * arm-linux-nat.c (arm_linux_nat_target::read_description):
592 Likewise.
593 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
594 * arm-tdep.c (tdesc_arm_list): New variable.
595 (arm_register_g_packet_guesses): Call create description functions.
596 (arm_read_description) (arm_read_mprofile_description): New
597 function.
598 * arm-tdep.h (arm_read_description)
599 (arm_read_mprofile_description): Add declaration.
600 * configure.tgt: Add new files.
601
602 2019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
603
604 * top.c (new_ui_command): Open specified terminal just once.
605
606 2019-07-18 Tom Tromey <tromey@adacore.com>
607
608 * symtab.c (main_name): Constify return type.
609 * symfile.c (set_initial_language): Update.
610 * symtab.h (main_name): Constify return type.
611
612 2019-07-17 Tom Tromey <tom@tromey.com>
613
614 * tui/tui-winsource.c (tui_update_source_window)
615 (tui_update_source_window_as_is)
616 (tui_update_source_windows_with_line): Remove return.
617 * tui/tui-disasm.c (tui_show_disassem)
618 (tui_show_disassem_and_update_source): Remove return.
619 * tui/tui.c (tui_reset): Remove return.
620 * tui/tui-wingeneral.c
621 (tui_check_and_display_highlight_if_needed): Remove return.
622
623 2019-07-17 Tom Tromey <tom@tromey.com>
624
625 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
626
627 2019-07-17 Tom Tromey <tom@tromey.com>
628
629 * tui/tui-winsource.h (struct tui_exec_info_window)
630 (struct tui_source_window_base): Move from tui-data.h.
631 * tui/tui-winsource.c: Move many method definitions from
632 elsewhere. Remove "structuring" comments.
633 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
634 (tui_source_window_base::refresh_window): Move to
635 tui-winsource.c.
636 * tui/tui-win.c (tui_source_window_base::refresh_all)
637 (tui_source_window_base::update_tab_width)
638 (tui_source_window_base::set_new_height)
639 (tui_source_window_base::do_make_visible_with_new_height): Move to
640 tui-winsource.c.
641 * tui/tui-source.h: Update.
642 * tui/tui-source.c (tui_source_window_base::reset): Move to
643 tui-winsource.c.
644 * tui/tui-disasm.h: Update.
645 * tui/tui-data.h (struct tui_exec_info_window): Move to
646 tui-winsource.h.
647 (struct tui_source_window_base): Likewise.
648 * tui/tui-data.c (tui_source_window_base::clear_detail)
649 (tui_source_window_base, ~tui_source_window_base): Move to
650 tui-winsource.c.
651
652 2019-07-17 Tom Tromey <tom@tromey.com>
653
654 * tui/tui-win.c (tui_resize_all)
655 (tui_source_window_base::update_tab_width)
656 (tui_adjust_win_heights): Update.
657 (tui_win_info::make_invisible_and_set_new_height): Rename from
658 make_invisible_and_set_new_height.
659 * tui/tui-data.h (struct tui_win_info)
660 <make_invisible_and_set_new_height>: New method.
661
662 2019-07-17 Tom Tromey <tom@tromey.com>
663
664 * tui/tui.c: Update.
665 * tui/tui-source.h (struct tui_source_window): Move from
666 tui-data.h.
667 * tui/tui-layout.c: Update.
668 * tui/tui-disasm.c: Update.
669 * tui/tui-data.h (struct tui_source_window): Move to
670 tui-source.h.
671
672 2019-07-17 Tom Tromey <tom@tromey.com>
673
674 * tui/tui-disasm.h (struct tui_disasm_window): Move from
675 tui-data.h.
676 * tui/tui-data.h (struct tui_disasm_window): Move to
677 tui-disasm.h.
678
679 2019-07-17 Tom Tromey <tom@tromey.com>
680
681 * tui/tui-regs.h (struct tui_data_item_window): Move from
682 tui-data.h.
683 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
684 * tui/tui-data.h (struct tui_data_item_window): Move to
685 tui-regs.h.
686 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
687
688 2019-07-17 Tom Tromey <tom@tromey.com>
689
690 * tui/tui.c: Update.
691 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
692 (tui_cmd_window::max_height): Move to tui-command.c.
693 * tui/tui-layout.c: Update.
694 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
695 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
696 tui-command.c.
697 * tui/tui-command.h (struct tui_cmd_window): Move from
698 tui-data.h.
699 * tui/tui-command.c: Remove "structuring" comments.
700 (tui_cmd_window::clear_detail)
701 (tui_cmd_window::do_make_visible_with_new_height)
702 (tui_cmd_window::max_height): Move from elsewhere.
703
704 2019-07-17 Tom Tromey <tom@tromey.com>
705
706 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
707 Now static.
708 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
709 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
710
711 2019-07-17 Tom Tromey <tom@tromey.com>
712
713 * tui/tui.c: Update.
714 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
715 tui-regs.c.
716 * tui/tui-windata.h: Remove file.
717 * tui/tui-windata.c: Remove file.
718 * tui/tui-win.c (tui_data_window::set_new_height)
719 (tui_data_window::do_make_visible_with_new_height): Move to
720 tui-regs.c.
721 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
722 * tui/tui-regs.c: Remove "structuring" comments.
723 (tui_data_window::first_data_item_displayed)
724 (tui_data_window::delete_data_content_windows)
725 (tui_data_window::erase_data_content)
726 (tui_data_window::display_all_data)
727 (tui_data_window::refresh_all)
728 (tui_data_window::do_scroll_vertical)
729 (tui_data_window::clear_detail, tui_data_window::set_new_height)
730 (tui_data_window::do_make_visible_with_new_height)
731 (tui_data_window::refresh_window): Move from elsewhere.
732 (_initialize_tui_regs): Move to end of file.
733 * tui/tui-layout.c: Update.
734 * tui/tui-hooks.c: Update.
735 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
736 * tui/tui-data.c (tui_data_window::clear_detail): Move to
737 tui-regs.c.
738 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
739
740 2019-07-17 Tom Tromey <tom@tromey.com>
741
742 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
743 seen.
744
745 2019-07-17 Tom Tromey <tom@tromey.com>
746
747 * tui/tui-win.c (tui_source_window_base::set_new_height)
748 (tui_source_window_base::do_make_visible_with_new_height): Use
749 m_has_locator field directly.
750 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
751 method.
752 (struct tui_source_window_base) <has_locator>: Likewise.
753
754 2019-07-17 Tom Tromey <tom@tromey.com>
755
756 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
757 Don't declare.
758 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
759 Remove.
760 * tui/tui-win.c (tui_source_window_base::set_new_height)
761 (tui_source_window_base::set_new_height)
762 (make_invisible_and_set_new_height)
763 (tui_source_window_base::do_make_visible_with_new_height)
764 (tui_source_window_base::do_make_visible_with_new_height):
765 Update.
766 * tui/tui-layout.c (show_source_disasm_command, show_data)
767 (show_source_or_disasm_and_command): Update.
768 * tui/tui-layout.c (show_layout): Update.
769
770 2019-07-17 Tom Tromey <tom@tromey.com>
771
772 * tui/tui-layout.c (make_data_window): Remove.
773 (show_data): Unify creation and re-initialization cases.
774
775 2019-07-17 Tom Tromey <tom@tromey.com>
776
777 * tui/tui-layout.c (make_source_window, make_disasm_window):
778 Remove.
779 (show_data): Unify creation and re-initialization cases.
780
781 2019-07-17 Tom Tromey <tom@tromey.com>
782
783 * tui/tui-layout.c (make_command_window): Remove.
784 (show_source_disasm_command, show_source_or_disasm_and_command):
785 Unify creation and re-initialization cases.
786
787 2019-07-17 Tom Tromey <tom@tromey.com>
788
789 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
790 creation and re-initialization cases.
791
792 2019-07-17 Tom Tromey <tom@tromey.com>
793
794 * tui/tui-regs.c (tui_get_register): Return void.
795
796 2019-07-17 Tom Tromey <tom@tromey.com>
797
798 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
799 Simplify.
800
801 2019-07-17 Tom Tromey <tom@tromey.com>
802
803 * tui/tui-layout.c (show_source_disasm_command): Simplify window
804 resetting.
805
806 2019-07-17 Tom Tromey <tom@tromey.com>
807
808 * tui/tui.h (tui_set_layout_by_name): Don't declare.
809 * tui/tui-regs.c (tui_reg_layout): New function.
810 (tui_show_registers, tui_reg_command): Use it.
811 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
812 (tui_layout_command): Rename from tui_set_layout_by_name. Change
813 parameters.
814 (tui_layout_command): Remove.
815
816 2019-07-17 Tom Tromey <tom@tromey.com>
817
818 * tui/tui-layout.h (tui/tui-layout): Return void.
819 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
820
821 2019-07-17 Tom Tromey <tom@tromey.com>
822
823 * tui/tui-layout.c (show_source_disasm_command, show_data):
824 Update.
825 (reset_locator): Remove.
826 (show_source_or_disasm_and_command): Update.
827
828 2019-07-17 Tom Tromey <tom@tromey.com>
829
830 * tui/tui-source.c (tui_source_window_base::reset): Remove
831 win_type parameter.
832 * tui/tui-layout.c (make_command_window, make_source_window)
833 (make_disasm_window, make_data_window)
834 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
835 (reset_locator, show_source_or_disasm_and_command): Update.
836 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
837 win_type parameter.
838 (struct tui_source_window_base) <reset>: Likewise.
839
840 2019-07-17 Tom Tromey <tom@tromey.com>
841
842 * tui/tui-layout.c (show_source_disasm_command): Use
843 reset_locator.
844 (reset_locator): New function.
845 (init_and_make_win): Remove.
846 (show_source_or_disasm_and_command): Use reset_locator.
847
848 2019-07-17 Tom Tromey <tom@tromey.com>
849
850 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
851 condition.
852 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
853 Remove condition.
854 * tui/tui-source.c (tui_source_window_base::reset): New method.
855 * tui/tui-layout.c (make_command_window): Don't call
856 init_and_make_win.
857 (make_source_window, make_disasm_window): Don't call
858 make_source_or_disasm_window.
859 (make_data_window): Don't call init_and_make_win. Change calling
860 convention.
861 (show_source_disasm_command, show_data): Simplify.
862 (make_source_or_disasm_window): Remove.
863 (show_source_or_disasm_and_command): Simplify.
864 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
865 (struct tui_source_window_base) <reset>: Likewise.
866 <execution_info>: Remove initializer.
867 * tui/tui-data.c (tui_source_window_base): Initialize
868 execution_info.
869
870 2019-07-17 Tom Tromey <tom@tromey.com>
871
872 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
873 variable.
874
875 2019-07-17 Tom Tromey <tom@tromey.com>
876
877 * tui/tui.c (tui_rl_other_window): Update.
878 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
879 superclass method first. Always iterate over regs_content.
880 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
881 method.
882 * tui/tui-win.c (tui_set_focus_command): Update.
883
884 2019-07-17 Tom Tromey <tom@tromey.com>
885
886 * tui/tui-win.c (tui_set_focus_command): Rename from
887 tui_set_focus. Call tui_enable.
888 (tui_set_focus_command): Remove.
889
890 2019-07-17 Tom Tromey <tom@tromey.com>
891
892 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
893 refresh_window.
894 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
895 touchwin.
896 (tui_data_window::refresh_window): Call refresh_window on data
897 items. Always call superclass refresh_window.
898 (tui_win_info::refresh): Remove.
899 (tui_source_window_base::refresh_window): Update.
900 (tui_refresh_all): Update.
901 * tui/tui-layout.c (show_source_disasm_command): Remove call to
902 refresh_window.
903 (show_source_or_disasm_and_command): Likewise.
904 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
905 (struct tui_source_window_base) <refresh>: Likewise.
906
907 2019-07-17 Tom Tromey <tom@tromey.com>
908
909 * tui/tui-winsource.c (tui_clear_source_content)
910 (tui_show_source_content): Update.
911 * tui/tui-source.c (tui_source_window::showing_source_p): Check
912 whether content is empty.
913 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
914 Remove.
915
916 2019-07-17 Tom Tromey <tom@tromey.com>
917
918 * tui/tui-winsource.c (tui_erase_source_content): Clear the
919 window's contents.
920 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
921 * tui/tui-source.c (tui_set_source_content_nil): Remove.
922
923 2019-07-17 Tom Tromey <tom@tromey.com>
924
925 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
926 (struct tui_data_item_window): Update.
927
928 2019-07-17 Tom Tromey <tom@tromey.com>
929
930 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
931 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
932 defines.
933
934 2019-07-17 Tom Tromey <tom@tromey.com>
935
936 * tui/tui-winsource.h (tui_erase_source_content)
937 (tui_clear_source_content): Remove "display_prompt" parameter.
938 * tui/tui-winsource.c (tui_update_source_window_as_is)
939 (tui_update_source_windows_with_addr): Update.
940 (tui_clear_source_content): Remove "display_prompt" parameter.
941 (tui_erase_source_content): Likewise. Simplify.
942 (tui_show_source_content): Update.
943 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
944 * tui/tui-stack.c (tui_show_frame_info): Update.
945 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
946 Remove defines.
947
948 2019-07-17 Tom Tromey <tom@tromey.com>
949
950 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
951 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
952 parameter.
953 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
954 parameter.
955
956 2019-07-17 Tom Tromey <tom@tromey.com>
957
958 * tui/tui-winsource.c (tui_clear_source_content)
959 (tui_show_source_content, tui_show_exec_info_content)
960 (tui_clear_exec_info_content): Update.
961 * tui/tui-stack.c (tui_show_locator_content): Update.
962 (tui_show_frame_info): Update.
963 * tui/tui-source.h (tui_source_window): Don't declare.
964 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
965 from tui_source_is_displayed.
966 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
967 Remove field.
968 (struct tui_source_window_base) <content_in_use>: New field. Now
969 bool.
970 (struct tui_source_window) <showing_source_p>: New method.
971 (TUI_SRC_WIN): Change cast.
972 * tui/tui-data.c (tui_initialize_static_data): Update.
973
974 2019-07-17 Tom Tromey <tom@tromey.com>
975
976 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
977 location_matches_p.
978 * tui/tui-source.c (tui_source_window::location_matches_p): New
979 method.
980 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
981 method.
982 * tui/tui-data.h (struct tui_source_window_base)
983 <location_matches_p>: New method.
984 (struct tui_source_window, struct tui_disasm_window)
985 <location_matches_p>: Likewise.
986
987 2019-07-17 Tom Tromey <tom@tromey.com>
988
989 * tui/tui-win.c (tui_set_win_height_command): Rename from
990 tui_set_win_height.
991 (tui_set_win_height_command): Remove.
992
993 2019-07-17 Tom Tromey <tom@tromey.com>
994
995 * tui/tui-source.c (tui_source_window): New constructor. Add
996 observer.
997 (~tui_source_window): New destructor.
998 (tui_source_window::style_changed): New method.
999 * tui/tui-hooks.c (tui_redisplay_source): Remove.
1000 (tui_attach_detach_observers): Update.
1001 * tui/tui-data.h (struct tui_source_window): Make constructor not
1002 inline. Add destructor.
1003 (struct tui_source_window) <style_changed>: New method.
1004 <m_observable>: New member.
1005
1006 2019-07-17 Tom Tromey <tom@tromey.com>
1007
1008 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
1009 * tui/tui-win.c (tui_resize_all): Fix typo.
1010
1011 2019-07-17 Tom Tromey <tom@tromey.com>
1012
1013 * tui/tui-wingeneral.h (tui_refresh_all): Update.
1014 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
1015 (tui_refresh_all): Remove "list" parameter. Use foreach.
1016 * tui/tui-win.c (window_name_completer): Use foreach.
1017 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
1018 (update_tab_width): Likewise.
1019 * tui/tui-layout.c (show_layout): Update.
1020 * tui/tui-data.h (class tui_window_iterator): New.
1021 (struct all_tui_windows): New.
1022 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
1023
1024 2019-07-17 Tom Tromey <tom@tromey.com>
1025
1026 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
1027 parameter. Don't reference globals.
1028 (tui_reg_command): Update.
1029
1030 2019-07-17 Tom Tromey <tom@tromey.com>
1031
1032 * tui/tui-regs.c (tui_show_registers): Simplify.
1033
1034 2019-07-17 Tom Tromey <tom@tromey.com>
1035
1036 * tui/tui-regs.c (tui_show_registers): Update.
1037 (tui_show_register_group): Add win_info parameter.
1038
1039 2019-07-17 Tom Tromey <tom@tromey.com>
1040
1041 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
1042 Rename from tui_display_reg_element_at_line.
1043 (tui_data_window::display_registers_from_line): Update.
1044 * tui/tui-data.h (struct tui_data_window)
1045 <display_reg_element_at_line>: New method.
1046
1047 2019-07-17 Tom Tromey <tom@tromey.com>
1048
1049 * tui/tui-regs.h (tui_display_registers_from)
1050 (tui_display_registers_from_line): Don't declare.
1051 * tui/tui-windata.c (tui_data_window::display_all_data)
1052 (tui_data_window::refresh_all)
1053 (tui_data_window::do_scroll_vertical): Update.
1054 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
1055 from tui_display_registers_from.
1056 (tui_display_reg_element_at_line): Update.
1057 (tui_data_window::display_registers_from_line): Rename from
1058 tui_display_registers_from_line.
1059 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
1060 display_registers_from_line>: New methods.
1061
1062 2019-07-17 Tom Tromey <tom@tromey.com>
1063
1064 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
1065 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
1066 from tui_erase_data_content.
1067 (tui_data_window::display_all_data)
1068 (tui_data_window::refresh_all)
1069 (tui_data_window::do_scroll_vertical): Update.
1070 * tui/tui-regs.c (tui_show_registers): Update.
1071 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
1072 New method.
1073
1074 2019-07-17 Tom Tromey <tom@tromey.com>
1075
1076 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
1077 declare.
1078 * tui/tui-windata.c
1079 (tui_data_window::delete_data_content_windows): Rename from
1080 tui_delete_data_content_windows.
1081 (tui_data_window::display_all_data)
1082 (tui_data_window::do_scroll_vertical): Update.
1083 * tui/tui-data.h (struct tui_data_window)
1084 <delete_data_content_windows>: New method.
1085
1086 2019-07-17 Tom Tromey <tom@tromey.com>
1087
1088 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
1089 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
1090
1091 2019-07-17 Tom Tromey <tom@tromey.com>
1092
1093 * tui/tui-windata.h (tui_display_all_data): Don't declare.
1094 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
1095 from tui_display_all_data.
1096 * tui/tui-win.c
1097 (tui_data_window::do_make_visible_with_new_height): Update.
1098 * tui/tui-regs.c (tui_show_registers): Update.
1099 * tui/tui-layout.c (tui_set_layout): Update.
1100 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
1101 method.
1102
1103 2019-07-17 Tom Tromey <tom@tromey.com>
1104
1105 * tui/tui-windata.h (tui_display_data_from): Don't declare.
1106 * tui/tui-windata.c (tui_display_data_from): Remove.
1107 (tui_data_window::refresh_all): Update.
1108
1109 2019-07-17 Tom Tromey <tom@tromey.com>
1110
1111 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
1112 * tui/tui-windata.c (tui_display_data_from_line): Remove.
1113 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
1114 tui_display_registers_from_line.
1115 * tui/tui-regs.h (tui_display_registers_from_line): Update.
1116 * tui/tui-regs.c (tui_display_registers_from_line): Remove
1117 "force_display" parameter.
1118
1119 2019-07-17 Tom Tromey <tom@tromey.com>
1120
1121 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
1122 declare.
1123 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
1124 Rename from tui_first_reg_element_no_inline.
1125 (tui_display_reg_element_at_line)
1126 (tui_display_registers_from_line): Update.
1127 * tui/tui-data.h (struct tui_data_window)
1128 <first_reg_element_no_inline>: New method.
1129
1130 2019-07-17 Tom Tromey <tom@tromey.com>
1131
1132 * tui/tui-windata.c (tui_display_data_from)
1133 (tui_data_window::do_scroll_vertical): Update.
1134 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
1135 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
1136 Rename from tui_line_from_reg_element_no.
1137 (tui_display_registers_from_line): Update.
1138 * tui/tui-data.h (struct tui_data_window)
1139 <line_from_reg_element_no>: New method.
1140
1141 2019-07-17 Tom Tromey <tom@tromey.com>
1142
1143 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
1144 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
1145 tui_last_regs_line_no.
1146 (tui_display_reg_element_at_line)
1147 (tui_display_registers_from_line): Update.
1148 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
1149 method.
1150
1151 2019-07-17 Tom Tromey <tom@tromey.com>
1152
1153 PR tui/24722:
1154 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
1155 (tui_update_breakpoint_info): Add "being_deleted" parameter.
1156 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
1157 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
1158 (tui_update_breakpoint_info): Likewise.
1159 * tui/tui-hooks.c (tui_event_create_breakpoint)
1160 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
1161 Update.
1162
1163 2019-07-17 Tom Tromey <tom@tromey.com>
1164
1165 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
1166
1167 2019-07-17 Tom Tromey <tom@tromey.com>
1168
1169 * tui/tui-winsource.c (tui_update_source_window_as_is)
1170 (tui_update_source_windows_with_addr): Update.
1171 * tui/tui-source.h (tui_set_source_content)
1172 (tui_show_symtab_source): Add "win_info" parameter.
1173 * tui/tui-source.c (tui_set_source_content): Add "win_info"
1174 parameter.
1175 (tui_show_symtab_source): Likewise.
1176
1177 2019-07-17 Tom Tromey <tom@tromey.com>
1178
1179 * tui/tui-wingeneral.c
1180 (tui_check_and_display_highlight_if_needed): Check can_highlight.
1181
1182 2019-07-17 Tom Tromey <tom@tromey.com>
1183
1184 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
1185 (struct tui_cmd_window) <can_scroll>: New method.
1186 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
1187 method.
1188
1189 2019-07-17 Tom Tromey <tromey@adacore.com>
1190
1191 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
1192 do_field_signed>: Rename. Change type of "value".
1193 * ui-out.c (ui_out::field_signed): Rename from field_int.
1194 Change type of "value".
1195 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
1196 type of "value".
1197 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
1198 do_field_int. Change type of "value".
1199 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
1200 do_field_int. Change type of "value".
1201 * tracepoint.c (trace_status_mi, tfind_1)
1202 (print_one_static_tracepoint_marker): Update.
1203 * thread.c (print_thread_info_1, print_selected_thread_frame):
1204 Update.
1205 * stack.c (print_frame, print_frame_info): Update.
1206 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
1207 Update.
1208 * source.c (print_source_lines_base): Update.
1209 * skip.c (info_skip_command): Update.
1210 * record-btrace.c (btrace_ui_out_decode_error)
1211 (btrace_call_history_src_line): Update.
1212 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
1213 Update.
1214 * progspace.c (print_program_space): Update.
1215 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
1216 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
1217 do_field_int. Change type of "value".
1218 * mi/mi-out.c (mi_ui_out::do_table_begin)
1219 (mi_ui_out::do_table_header): Update.
1220 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
1221 type of "value".
1222 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
1223 (mi_cmd_data_list_changed_registers, output_register)
1224 (mi_cmd_data_read_memory, mi_load_progress)
1225 (mi_cmd_trace_frame_collected): Update.
1226 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
1227 Update.
1228 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
1229 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
1230 (mi_cmd_var_list_children, varobj_update_one): Update.
1231 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
1232 (mi_cmd_stack_list_args, list_arg_or_local): Update.
1233 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
1234 * inferior.c (print_inferior): Update.
1235 * gdb_bfd.c (print_one_bfd): Update.
1236 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
1237 Update.
1238 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
1239 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
1240 do_field_int. Change type of "value".
1241 * cli-out.c (cli_ui_out::do_field_signed): Rename from
1242 do_field_int. Change type of "value".
1243 * breakpoint.c (watchpoint_check, print_breakpoint_location)
1244 (print_one_breakpoint_location, print_it_catch_fork)
1245 (print_one_catch_fork, print_it_catch_vfork)
1246 (print_one_catch_vfork, print_it_catch_solib)
1247 (print_it_catch_exec, print_it_ranged_breakpoint)
1248 (print_mention_watchpoint, print_mention_masked_watchpoint)
1249 (bkpt_print_it, update_static_tracepoint): Update.
1250 * break-catch-throw.c (print_it_exception_catchpoint): Update.
1251 * break-catch-syscall.c (print_it_catch_syscall): Update.
1252 * ada-tasks.c (print_ada_task_info): Update.
1253 * ada-lang.c (print_it_exception, print_mention_exception):
1254 Update.
1255
1256 2019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
1257
1258 PR breakpoints/24541
1259 * gdbarch.c: Regenerate.
1260 * gdbarch.h: Regenerate.
1261 * gdbarch.sh: Adjust return type and parameter types for
1262 'stap_adjust_register'.
1263 (i386_stap_adjust_register): Adjust signature and return new
1264 register name.
1265 * stap-probe.c (stap_parse_register_operand): Adjust use of
1266 'gdbarch_stap_adjust_register'.
1267
1268 2019-07-17 Tom Tromey <tromey@adacore.com>
1269
1270 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
1271 declare VEC.
1272 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
1273 std::vector.
1274 (struct s390_process_info): Add initializers.
1275 (s390_add_process): Use new.
1276 (s390_linux_nat_target::low_forget_process): Use delete.
1277 (s390_linux_nat_target::low_new_fork)
1278 (s390_linux_nat_target::stopped_by_watchpoint)
1279 (s390_linux_nat_target::low_prepare_to_resume)
1280 (s390_linux_nat_target::insert_watchpoint)
1281 (s390_linux_nat_target::insert_hw_breakpoint)
1282 (s390_linux_nat_target::remove_watchpoint)
1283 (s390_linux_nat_target::remove_hw_breakpoint): Update.
1284
1285 2019-07-16 John Baldwin <jhb@FreeBSD.org>
1286
1287 * aarch64-fbsd-nat.c: Include regcache.h.
1288 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
1289 argument.
1290 (aarch64_fbsd_nat_target::fetch_registers)
1291 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
1292 variable.
1293 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
1294
1295 2019-07-16 John Baldwin <jhb@FreeBSD.org>
1296
1297 * fbsd-nat.c: Include gdbarch.h.
1298
1299 2019-07-15 Tom Tromey <tromey@adacore.com>
1300
1301 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
1302
1303 2019-07-15 Tom Tromey <tromey@adacore.com>
1304
1305 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
1306 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
1307 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
1308 * cli-out.c (cli_ui_out::do_field_int): New method.
1309 * ui-out.c (ui_out::field_unsigned): New method.
1310 * symfile.c (generic_load): Use field_unsigned.
1311 (print_transfer_performance): Likewise.
1312 * record-btrace.c (ui_out_field_uint): Remove.
1313 (btrace_call_history_insn_range, btrace_call_history): Use
1314 field_unsigned.
1315 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
1316 field_unsigned.
1317 * ui-out.h (class ui_out) <field_unsigned>: New method.
1318 <do_field_unsigned>: Likewise.
1319
1320 2019-07-15 Tom Tromey <tromey@adacore.com>
1321
1322 * mi/mi-main.c (list_available_thread_groups): Use field_string.
1323 * mi/mi-interp.c (mi_memory_changed): Use field_string.
1324 * target.c (flash_erase_command): Use field_string.
1325 * infrun.c (print_signal_received_reason): Use field_string.
1326 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
1327 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
1328 field_string.
1329 * ada-tasks.c (print_ada_task_info): Use field_string.
1330
1331 2019-07-15 Tom Tromey <tromey@adacore.com>
1332
1333 * target.c (flash_erase_command): Use field_core_addr.
1334 * symfile.c (generic_load): Use field_core_addr.
1335 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
1336 Use field_core_addr.
1337 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
1338 field_core_addr.
1339
1340 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
1341
1342 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
1343 value if its desired type is smaller than a CORE_ADDR and signed.
1344
1345 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
1346
1347 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
1348 of changes to field names, and use new is_reference field to
1349 decide if a property is a reference or not.
1350 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
1351 field.
1352 (struct dwarf2_property_baton): Update header comment, rename
1353 'referenced_type' to 'property_type' and update comments.
1354 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
1355 default property type, store in property baton, update to take
1356 accound of renamed field.
1357 (read_func_scope): Update call to attr_to_dynamic_prop.
1358 (read_array_type): Likewise.
1359 (dwarf2_per_cu_addr_sized_int_type): New function.
1360 (read_subrange_index_type): Move type finding code to
1361 dwarf2_per_cu_addr_sized_int_type.
1362 (read_subrange_type): Update calls to attr_to_dynamic_prop.
1363 (dwarf2_per_cu_addr_type): New function.
1364 (set_die_type): Update calls to attr_to_dynamic_prop.
1365
1366 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
1367
1368 * dwarf2read.c (read_subrange_index_type): New function.
1369 (read_subrange_type): Move code into new function and call it.
1370 * gdbtypes.c (create_range_type): Add some asserts.
1371
1372 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
1373
1374 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
1375 update return statements.
1376 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
1377 declaration, and update comment to match.
1378 * gdbtypes.c (resolve_dynamic_array): Update call to
1379 dwarf2_evaluate_property to match new return type.
1380
1381 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
1382
1383 * valarith.c (value_subscripted_rvalue): Change lowerbound
1384 parameter type from int to LONGEST.
1385 * value.h (value_subscripted_rvalue): Likewise in declaration.
1386
1387 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
1388
1389 * cli/cli-utils.c (info_print_command_completer): New function.
1390 * cli/cli-utils.h: Add 'completer.h' include, and forward
1391 declaration for 'struct cmd_list_element'.
1392 (info_print_command_completer): Declare.
1393 * stack.c (_initialize_stack): Add completer for 'info locals' and
1394 'info args'.
1395 * symtab.c (_initialize_symtab): Add completer for 'info
1396 variables' and 'info functions'.
1397 * NEWS: Mention completion for additional info commands.
1398
1399 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
1400
1401 * cli/cli-utils.c (extract_info_print_args): Delete.
1402 (extract_arg_maybe_quoted): Delete.
1403 (info_print_options_defs): New variable.
1404 (make_info_print_options_def_group): New function.
1405 (extract_info_print_options): Define new function.
1406 * cli/cli-utils.h (extract_info_print_args): Delete.
1407 (struct info_print_options): New structure.
1408 (extract_info_print_options): Declare new function.
1409 * stack.c (info_locals_command): Update to use new
1410 extract_info_print_options, also add a header comment.
1411 (info_args_command): Likewise.
1412 * symtab.c (info_variables_command): Likewise.
1413 (info_functions_command): Likewise.
1414
1415 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
1416
1417 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
1418 to extract string arguments.
1419 * common/common-utils.c (extract_string_maybe_quoted): New function.
1420 * common/common-utils.h (extract_string_maybe_quoted): Declare.
1421
1422 2019-07-11 Tom Tromey <tromey@adacore.com>
1423
1424 * main.c (get_init_files): Use GDBINIT, not gdbinit.
1425 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
1426 * top.h (gdbinit): Don't declare.
1427 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
1428 into...
1429 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
1430 * top.c (gdb_init): Don't call init_cli_cmds.
1431 (gdbinit): Remove.
1432 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
1433
1434 2019-07-11 Tom Tromey <tromey@adacore.com>
1435
1436 * python/py-inferior.c (add_thread_object): Don't use thread_obj
1437 after it has been moved.
1438
1439 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1440
1441 * valops.c (value_must_coerce_to_target): Change return type to
1442 bool.
1443 * value.h (value_must_coerce_to_target): Likewise.
1444
1445 2019-07-10 Simon Marchi <simon.marchi@efficios.com>
1446
1447 * breakpoint.c (is_hardware_watchpoint): Remove
1448 forward-declaration.
1449 (is_masked_watchpoint): Change return type to bool.
1450 (is_tracepoint): Likewise.
1451 (is_breakpoint): Likewise.
1452 (is_hardware_watchpoint): Likewise.
1453 (is_watchpoint): Likewise.
1454 (is_no_memory_software_watchpoint): Likewise.
1455 (is_catchpoint): Likewise.
1456 (breakpoint_1): Make FILTER parameter's return type bool.
1457 is_masked_watchpoint): Change return type to bool.
1458 (save_breakpoints): Make FILTER parameter's return type bool.
1459 * breakpoint.h (is_breakpoint): Change return type to bool.
1460 (is_watchpoint): Likewise.
1461 (is_catchpoint): Likewise.
1462 (is_tracepoint): Likewise.
1463
1464 2019-07-10 Tom Tromey <tom@tromey.com>
1465
1466 * defs.h: Don't include gdbarch.h.
1467 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
1468 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
1469 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
1470 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
1471 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
1472 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
1473 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
1474 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
1475 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
1476 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
1477 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
1478 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
1479 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
1480 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
1481 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
1482 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
1483 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
1484 record-btrace.c, record.h, regcache-dump.c, regcache.h,
1485 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
1486 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
1487 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
1488 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
1489 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
1490 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
1491 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
1492 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
1493 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
1494
1495 2019-07-10 Tom Tromey <tromey@adacore.com>
1496
1497 * ada-lang.h (is_ada_exception_catchpoint): Declare.
1498 * breakpoint.c (init_ada_exception_breakpoint): Register as
1499 bp_catchpoint.
1500 (print_one_breakpoint_location, print_one_breakpoint): Use
1501 is_ada_exception_catchpoint.
1502 * ada-lang.c (class ada_catchpoint_location): Pass
1503 bp_loc_software_breakpoint to bp_location constructor.
1504 (is_ada_exception_catchpoint): New function.
1505
1506 2019-07-10 Tom Tromey <tromey@adacore.com>
1507
1508 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
1509 VEC.
1510 (struct arm_exidx_entry): New method operator<.
1511 (struct arm_exidx_data) <section_maps>: Change type.
1512 (arm_exidx_data_free): Remove.
1513 (arm_exidx_data_key): Change type. Move lower.
1514 (arm_exidx_new_objfile): Update.
1515 (arm_compare_exidx_entries): Remove.
1516 (arm_find_exidx_entry, _initialize_arm_tdep)
1517
1518 2019-07-10 Tom Tromey <tromey@adacore.com>
1519
1520 * solib-spu.c (ocl_program_data_key): Change type.
1521 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
1522 Update.
1523
1524 2019-07-10 Tom Tromey <tromey@adacore.com>
1525
1526 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
1527 (struct solib_aix_inferior_data) <library_list>: Change type.
1528 (solib_aix_inferior_data_handle): Change type.
1529 (get_solib_aix_inferior_data): Update.
1530 (solib_aix_free_library_list): Remove.
1531 (library_list_start_library): Update.
1532 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
1533 return type.
1534 (solib_aix_get_library_list)
1535 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
1536 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
1537
1538 2019-07-10 Tom Tromey <tromey@adacore.com>
1539
1540 * solib-dsbt.c (struct dsbt_info): Add initializers.
1541 (solib_dsbt_pspace_data): Change type.
1542 (dsbt_pspace_data_cleanup): Remove.
1543 (get_dsbt_info, _initialize_dsbt_solib): Update.
1544
1545 2019-07-10 Tom Tromey <tromey@adacore.com>
1546
1547 * spu-tdep.c (spu_overlay_data): Change type.
1548 (spu_get_overlay_table, spu_overlay_new_objfile)
1549 (_initialize_spu_tdep): Update.
1550
1551 2019-07-10 Tom Tromey <tromey@adacore.com>
1552
1553 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
1554 destructor.
1555 (dbx_objfile_data_key): Change type and declare later.
1556 (DBX_SYMFILE_INFO): Rewrite.
1557 * dbxread.c (dbx_objfile_data_key): Change type.
1558 (dbx_symfile_init): Update.
1559 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
1560 (coffstab_build_psymtabs, elfstab_build_psymtabs)
1561 (stabsect_build_psymtabs, _initialize_dbxread): Update.
1562
1563 2019-07-10 Tom Tromey <tromey@adacore.com>
1564
1565 * jit.c (jit_program_space_key): Change type. Move lower.
1566 (get_jit_program_space_data): Update.
1567 (jit_program_space_data_cleanup): Remove.
1568 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
1569 Update.
1570 (struct jit_program_space_data): Add initializers.
1571
1572 2019-07-10 Tom Tromey <tromey@adacore.com>
1573
1574 * solib-darwin.c (struct darwin_info): Add initializers.
1575 (solib_darwin_pspace_data): Change type.
1576 (darwin_pspace_data_cleanup): Remove.
1577 (get_darwin_info, _initialize_darwin_solib): Update.
1578
1579 2019-07-10 Tom Tromey <tromey@adacore.com>
1580
1581 * remote-sim.c (struct sim_inferior_data): Add initializers,
1582 constructor, and destructor.
1583 (sim_inferior_data_key): Change type. Move lower.
1584 (check_for_duplicate_sim_descriptor): Update.
1585 (get_sim_inferior_data): Use new. Update.
1586 (~sim_inferior_data_cleanup): Rename from
1587 sim_inferior_data_cleanup. Simplify.
1588 (gdbsim_close_inferior, simulator_command)
1589 (sim_command_completer, _initialize_remote_sim): Update.
1590 (next_pid, INITIAL_PID): Move earlier.
1591
1592 2019-07-10 Tom Tromey <tromey@adacore.com>
1593
1594 * python/python-internal.h (create_thread_object): Return
1595 gdbpy_ref.
1596 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
1597 * python/py-inferior.c (struct threadlist_entry): Add
1598 constructor.
1599 <thread_obj>: Now a gdbpy_ref.
1600 (thread_to_thread_object): Update.
1601 (add_thread_object): Use new.
1602 (delete_thread_object): Use delete.
1603 (infpy_threads): Update.
1604 (py_free_inferior): Update. Construct "inf_obj" after acquiring
1605 GIL.
1606
1607 2019-07-10 Tom Tromey <tromey@adacore.com>
1608
1609 * valops.c (value_cast): Specialize error message for Ada.
1610
1611 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1612
1613 * breakpoint.c (breakpoint_1): Update doc and parameter names.
1614
1615 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1616
1617 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
1618 bpstat_should_step): Return bool, adjust comments.
1619 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
1620 bpstat_should_step): Likewise.
1621
1622 2019-07-10 Alan Hayward <alan.hayward@arm.com>
1623
1624 * features/Makefile: Use feature target descriptions for Arm.
1625 * features/arm/arm-core.c: Generate new file.
1626 * features/arm/arm-fpa.c: Likewise.
1627 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
1628 * features/arm/arm-m-profile.c: Likewise.
1629 * features/arm/arm-vfpv2.c: Likewise.
1630 * features/arm/arm-vfpv3.c: Likewise.
1631 * features/arm/xscale-iwmmxt.c: Likewise.
1632 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
1633
1634 2019-07-10 Alan Hayward <alan.hayward@arm.com>
1635
1636 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
1637 ptrace earlier.
1638
1639 2019-07-10 Alan Hayward <alan.hayward@arm.com>
1640
1641 * features/aarch64-pauth.c: Regenerate.
1642
1643 2019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
1644
1645 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
1646 bool.
1647 (bpstat_what): Use false instead of 0.
1648
1649 2019-07-09 Pedro Alves <palves@redhat.com>
1650
1651 * break-catch-throw.c (is_exception_catchpoint): New.
1652 * breakpoint.c (print_one_breakpoint_location): New parameter
1653 'raw_loc'. Handle it. Use
1654 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
1655 looking at the breakpoint's type.
1656 (print_one_breakpoint): If handling "maint info breakpoints", also
1657 print locations of exception catchpoints.
1658 * breakpoint.h (is_exception_catchpoint): Declare.
1659
1660 2019-07-09 Pedro Alves <palves@redhat.com>
1661
1662 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
1663 "addr" field.
1664 (allocate_location_exception_catchpoint): New.
1665 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
1666 (initialize_throw_catchpoint_ops): Install
1667 allocate_location_exception_catchpoint as allocate_location
1668 method.
1669 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
1670 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
1671 bp_loc_other.
1672 (breakpoint_address_is_meaningful): Delete.
1673 (bl_address_is_meaningful): New.
1674 (breakpoint_locations_match): Adjust comment.
1675 (bp_location_from_bp_type): New, factored out of...
1676 (bp_location::bp_location(breakpoint *)): ... this.
1677 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
1678 factored out of...
1679 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
1680 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
1681 breakpoint_address_is_meaningful.
1682 (bp_locations_compare): Adjust comment.
1683 (update_global_location_list): Use bl_address_is_meaningful
1684 instead of breakpoint_address_is_meaningful.
1685 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
1686 explicit.
1687 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
1688 * python/py-breakpoint.c (bppy_get_location): No longer check
1689 whether location is null.
1690
1691 2019-07-09 Pedro Alves <palves@redhat.com>
1692
1693 PR c++/15468
1694 * breakpoint.c (print_one_breakpoint_location): Remove
1695 single-location assert.
1696
1697 2019-07-09 Tom Tromey <tom@tromey.com>
1698
1699 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
1700 * configure: Rebuild.
1701 * configure.ac: Change common to gdbsupport.
1702 * gdbsupport: Rename from common.
1703 * acinclude.m4: Change common to gdbsupport.
1704 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
1705 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
1706 gdbsupport.
1707 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
1708 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
1709 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
1710 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
1711 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
1712 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
1713 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
1714 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
1715 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
1716 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
1717 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
1718 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
1719 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
1720 coff-pe-read.c, command.h, compile/compile-c-support.c,
1721 compile/compile-c.h, compile/compile-cplus-symbols.c,
1722 compile/compile-cplus-types.c, compile/compile-cplus.h,
1723 compile/compile-loc2c.c, compile/compile.c, completer.c,
1724 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
1725 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
1726 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
1727 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
1728 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
1729 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
1730 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
1731 features/aarch64-core.c, features/aarch64-fpu.c,
1732 features/aarch64-pauth.c, features/aarch64-sve.c,
1733 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
1734 features/i386/32bit-core.c, features/i386/32bit-linux.c,
1735 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
1736 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
1737 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
1738 features/i386/64bit-core.c, features/i386/64bit-linux.c,
1739 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
1740 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
1741 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
1742 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
1743 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
1744 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
1745 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
1746 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
1747 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
1748 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
1749 go32-nat.c, guile/guile.c, guile/scm-ports.c,
1750 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
1751 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
1752 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
1753 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
1754 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
1755 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
1756 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
1757 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
1758 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
1759 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
1760 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
1761 minsyms.c, mips-linux-tdep.c, namespace.h,
1762 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
1763 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
1764 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
1765 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
1766 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
1767 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
1768 nat/linux-waitpid.c, nat/mips-linux-watch.c,
1769 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
1770 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
1771 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
1772 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
1773 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
1774 procfs.c, producer.c, progspace.h, psymtab.h,
1775 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
1776 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
1777 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
1778 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
1779 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
1780 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
1781 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
1782 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
1783 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
1784 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
1785 target-memory.c, target.c, target.h, target/waitstatus.c,
1786 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
1787 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
1788 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
1789 unittests/array-view-selftests.c,
1790 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
1791 unittests/common-utils-selftests.c,
1792 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
1793 unittests/format_pieces-selftests.c,
1794 unittests/function-view-selftests.c,
1795 unittests/lookup_name_info-selftests.c,
1796 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
1797 unittests/mkdir-recursive-selftests.c,
1798 unittests/observable-selftests.c,
1799 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
1800 unittests/parse-connection-spec-selftests.c,
1801 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
1802 unittests/scoped_fd-selftests.c,
1803 unittests/scoped_mmap-selftests.c,
1804 unittests/scoped_restore-selftests.c,
1805 unittests/string_view-selftests.c, unittests/style-selftests.c,
1806 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
1807 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
1808 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
1809 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
1810 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
1811 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
1812
1813 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
1814
1815 * linespec.c (decode_digits_list_mode): Set explicit_line to a
1816 bool value.
1817 (decode_digits_ordinary): Set explicit_line field in sal.
1818 * symtab.c (skip_prologue_sal): Don't skip prologue for a
1819 symtab_and_line that was set on an explicit line number in
1820 assembler code. Do always update the recorded symtab and line if
1821 we do skip the prologue.
1822
1823 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
1824
1825 * breakpoint.c (set_breakpoint_location_function): Remove
1826 explicit_loc parameter.
1827 (momentary_breakpoint_from_master): Update call to
1828 set_breakpoint_location_function.
1829 (add_location_to_breakpoint): Likewise.
1830
1831 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
1832
1833 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
1834 required features based on default bfd type when no specific bfd
1835 is present.
1836
1837 2019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1838
1839 * NEWS: Mention that GDB printf and eval commands can now print
1840 C-style and Ada-style convenience var strings without
1841 calling the inferior.
1842 * printcmd.c (printf_c_string): Locally print GDB internal var
1843 instead of transiting via the inferior.
1844 (printf_wide_c_string): Likewise.
1845
1846 2019-07-04 Alan Hayward <alan.hayward@arm.com>
1847
1848 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
1849
1850 2019-07-04 Tom Tromey <tom@tromey.com>
1851
1852 PR tui/24724:
1853 * tui/tui-winsource.c (tui_clear_source_content): Update.
1854 (tui_source_window_base::set_is_exec_point_at): Fix comment.
1855 (tui_update_breakpoint_info): Update.
1856 (tui_set_exec_info_content): Update.
1857 * tui/tui-source.c (tui_set_source_content_nil): Update.
1858 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
1859 has_break.
1860 * tui/tui-data.h (enum tui_bp_flag): New.
1861 (tui_bp_flags): New enum flags type.
1862 (struct tui_source_element) <break_mode>: Change type. Rename
1863 from has_break.
1864 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
1865 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
1866 constants.
1867 * tui/tui-winsource.h: Fix comment.
1868
1869 2019-07-04 Alan Hayward <alan.hayward@arm.com>
1870
1871 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
1872 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
1873 (store_fpregs_to_thread)
1874 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
1875 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
1876 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
1877 (IWMMXT_REGS_SIZE): Add define.
1878 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
1879 (fetch_vfp_regs, store_vfp_regs)
1880 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
1881 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
1882
1883 2019-07-04 Alan Hayward <alan.hayward@arm.com>
1884
1885 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
1886 defines.
1887 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
1888 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
1889 (ARM_INT_REGISTER_SIZE): ...to this.
1890 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
1891 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
1892 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
1893 (arm_linux_collect_gregset, supply_nwfpe_register)
1894 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
1895 defines.
1896 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
1897 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
1898 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
1899 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
1900 (arm_return_in_memory, arm_store_return_value)
1901 (arm_get_longjmp_target, arm_register_g_packet_guesses)
1902 (arm_record_ld_st_multiple): Likewise.
1903 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
1904 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
1905
1906 2019-07-04 Alan Hayward <alan.hayward@arm.com>
1907
1908 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
1909 AARCH64_DISPLACED_MODIFIED_INSNS.
1910 * aarch64-tdep.c (struct aarch64_displaced_step_data)
1911 (aarch64_displaced_step_copy_insn): Likewise.
1912 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
1913 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
1914 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
1915 ARM_DISPLACED_MODIFIED_INSNS.
1916 * arm-tdep.c (arm_gdbarch_init): Likewise.
1917 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
1918 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
1919 (struct arm_displaced_step_closure): Use
1920 ARM_DISPLACED_MODIFIED_INSNS.
1921
1922 2019-07-04 Alan Hayward <alan.hayward@arm.com>
1923
1924 * features/Makefile: Remove unused xml files.
1925 * features/aarch64.xml: Remove.
1926 * features/i386/amd64-avx-avx512-linux.xml: Remove.
1927 * features/i386/amd64-avx-avx512.xml: Remove.
1928 * features/i386/amd64-avx-linux.xml: Remove.
1929 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
1930 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
1931 * features/i386/amd64-avx-mpx-linux.xml: Remove.
1932 * features/i386/amd64-avx-mpx.xml: Remove.
1933 * features/i386/amd64-avx.xml: Remove.
1934 * features/i386/amd64-linux.xml: Remove.
1935 * features/i386/amd64-mpx-linux.xml: Remove.
1936 * features/i386/amd64-mpx.xml: Remove.
1937 * features/i386/amd64.xml: Remove.
1938 * features/i386/i386-avx-avx512-linux.xml: Remove.
1939 * features/i386/i386-avx-avx512.xml: Remove.
1940 * features/i386/i386-avx-linux.xml: Remove.
1941 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
1942 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
1943 * features/i386/i386-avx-mpx-linux.xml: Remove.
1944 * features/i386/i386-avx-mpx.xml: Remove.
1945 * features/i386/i386-avx.xml: Remove.
1946 * features/i386/i386-linux.xml: Remove.
1947 * features/i386/i386-mmx-linux.xml: Remove.
1948 * features/i386/i386-mmx.xml: Remove.
1949 * features/i386/i386-mpx-linux.xml: Remove.
1950 * features/i386/i386-mpx.xml: Remove.
1951 * features/i386/i386.xml: Remove.
1952 * features/i386/x32-avx-avx512-linux.xml: Remove.
1953 * features/i386/x32-avx-linux.xml: Remove.
1954 * features/i386/x32-linux.xml: Remove.
1955
1956 2019-07-04 Alan Hayward <alan.hayward@arm.com>
1957
1958 * regformats/aarch64.dat: Remove.
1959 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
1960 * regformats/i386/amd64-avx-linux.dat: Remove.
1961 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
1962 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
1963 * regformats/i386/amd64-linux.dat: Remove.
1964 * regformats/i386/amd64-mpx-linux.dat: Remove.
1965 * regformats/i386/amd64.dat: Remove.
1966 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
1967 * regformats/i386/i386-avx-linux.dat: Remove.
1968 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
1969 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
1970 * regformats/i386/i386-linux.dat: Remove.
1971 * regformats/i386/i386-mmx-linux.dat: Remove.
1972 * regformats/i386/i386-mpx-linux.dat: Remove.
1973 * regformats/i386/i386.dat: Remove.
1974 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
1975 * regformats/i386/x32-avx-linux.dat: Remove.
1976 * regformats/i386/x32-linux.dat: Remove.
1977
1978 2019-07-04 Alan Hayward <alan.hayward@arm.com>
1979
1980 * aarch64-tdep.c: Remove xml self tests.
1981 * amd64-linux-tdep.c: Likewise.
1982 * amd64-tdep.c: Likewise.
1983 * i386-linux-tdep.c: Likewise.
1984 * i386-tdep.c: Likewise.
1985
1986 2019-07-03 Pedro Alves <palves@redhat.com>
1987
1988 PR cli/24732
1989 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
1990 (pipe_cmd_option_defs): New.
1991 (make_pipe_cmd_options_def_group): New.
1992 (pipe_command): Use gdb::option::process_options.
1993 (pipe_command_completer): New function.
1994 (_initialize_cli_cmds): Install completer for "pipe" command.
1995
1996 2019-07-03 Pedro Alves <palves@redhat.com>
1997
1998 * cli/cli-option.c (union option_value) <string>: New field.
1999 (struct option_def_and_value): Add ctor, move ctor, dtor and
2000 use DISABLE_COPY_AND_ASSIGN.
2001 (option_def_and_value::clear_value): New.
2002 (parse_option, save_option_value_in_ctx, get_val_type_str)
2003 (add_setshow_cmds_for_options): Handle var_string.
2004 * cli-option.h (union option_def::var_address) <string>: New
2005 field.
2006 (struct string_option_def): New.
2007 * maint-test-options.c (struct test_options_opts): Add default
2008 ctor and use DISABLE_COPY_AND_ASSIGN.
2009 <string_opt>: New field.
2010 (test_options_opts::~test_options_opts): New.
2011 (test_options_opts::dump): Also dump "-string".
2012 (test_options_option_defs): Install "string.
2013
2014 2019-07-03 Pedro Alves <palves@redhat.com>
2015
2016 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
2017 option_value with a null enumeration.
2018 (complete_options): Save the option values in the context.
2019 (save_option_value_in_ctx): New, factored out from ...
2020 (process_options): ... here.
2021 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
2022 of the function.
2023 * maint-test-options.c (test_options_opts::dump): New, factored
2024 out from ...
2025 (maintenance_test_options_command_mode): ... here.
2026 (maintenance_test_options_command_completion_result): Delete.
2027 (maintenance_test_options_command_completion_text): Update
2028 comment.
2029 (maintenance_show_test_options_completion_result): Change
2030 prototype. Just print
2031 maintenance_test_options_command_completion_text.
2032 (save_completion_result): New.
2033 (maintenance_test_options_completer_mode): Pass options context to
2034 complete_options, and then save a dump.
2035 (_initialize_maint_test_options): Use add_cmd to install "maint
2036 show test-options-completion-result".
2037
2038 2019-07-03 Pedro Alves <palves@redhat.com>
2039
2040 * NEWS (New commands): Mention "with" and "maint with".
2041 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
2042 (with_command, with_command_completer): New.
2043 (pipe_command): Adjust to new repeat_previous
2044 interface.
2045 (_initialize_cli_cmds): Install the "with" command and its "w"
2046 alias.
2047 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
2048 declarations.
2049 * cli/cli-setshow.c (parse_cli_var_uinteger)
2050 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
2051 argument strings for all var_types.
2052 (get_setshow_command_value_string): New, factored out from ...
2053 (do_show_command): ... this.
2054 * cli/cli-setshow.h: Include <string>.
2055 (get_setshow_command_value_string): Declare.
2056 * command.h (repeat_previous): Now returns const char *. Adjust
2057 comment.
2058 * maint.c: Include "cli/cli-cmds.h".
2059 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
2060 (_initialize_maint_cmds): Register the "maintenance with" command.
2061 * top.c (repeat_previous): Move bits from pipe_command here:
2062 Return the saved command line, if any; error out if there's no
2063 command to relaunch.
2064
2065 2019-07-03 Pedro Alves <palves@redhat.com>
2066
2067 * NEWS (New commands): Mention "maint set/show test-settings"
2068 instead of "maint test-settings".
2069 * maint-test-settings.c (maintenance_test_settings_list): Delete.
2070 (maintenance_test_settings_set_list): Rename to ...
2071 (maintenance_set_test_settings_list): ... this.
2072 (maintenance_test_settings_show_list): Rename to ...
2073 (maintenance_show_test_settings_list): ... this.
2074 (maintenance_test_settings_cmd): Delete.
2075 (maintenance_test_settings_set_cmd): ...
2076 (maintenance_set_test_settings_cmd): ... this.
2077 (maintenance_test_settings_show_cmd): ...
2078 (maintenance_show_test_settings_cmd): ... this.
2079 (maintenance_test_settings_show_value_cmd):
2080 (maintenance_show_test_settings_value_cmd): ... this.
2081 (_initialize_maint_test_settings): No longer install the "maint
2082 test-settings" prefix command. Rename "maint test-settings set"
2083 to "maint set test-settings", and "maint test-settings show" to
2084 "maint show test-settings". Adjust all subcommands.
2085
2086 2019-07-03 Pedro Alves <palves@redhat.com>
2087
2088 * maint-test-settings.c: Fix file's intro comment. Replace all
2089 references to "test-options" with references to "test-settings",
2090 in comments.
2091
2092 2019-07-03 Pedro Alves <palves@redhat.com>
2093
2094 * maint-test-settings.c (maintenance_test_settings_xxx)
2095 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
2096 New.
2097 (maintenance_test_settings_enums): Use them.
2098 (maintenance_test_settings_enum): Default to
2099 maintenance_test_settings_xxx.
2100 (_initialize_maint_test_settings): Initialize
2101 MAINTENANCE_TEST_SETTINGS_FILENAME.
2102
2103 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2104
2105 * breakpoint.h (remove_breakpoints_inf): Change return type to
2106 void, move function documentation here.
2107 * breakpoint.c (remove_breakpoints_inf): Change return type to
2108 void, move function documentation to header.
2109
2110 2019-07-02 Pedro Alves <palves@redhat.com>
2111
2112 * NEWS (Completion improvements): Mention "info threads".
2113 * thread.c (struct info_threads_opts, info_threads_option_defs)
2114 (make_info_threads_options_def_group): New.
2115 (info_threads_command): Use gdb::option::process_options.
2116 (info_threads_command_completer): New.
2117 (_initialize_thread): Use gdb::option::build_help to build the
2118 help text for "info threads".
2119
2120 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2121
2122 * defs.h (generic_load): Move from here...
2123 * symfile.h (generic_load): ... to here. Rename name parameter
2124 to args.
2125 * symfile.c (generic_load): Add comment.
2126
2127 2019-07-01 Tom Tromey <tromey@adacore.com>
2128
2129 * dwarf2read.c
2130 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
2131 declaration of without_params. Fix formatting.
2132
2133 2019-07-01 Tom Tromey <tromey@adacore.com>
2134
2135 * ada-exp.y (find_primitive_type): Update.
2136 * ada-lang.h (ada_lookup_symbol): Update.
2137 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
2138 parameter.
2139 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
2140
2141 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
2142
2143 PR breakpoints/24541
2144 * gdbarch.c: Regenerate.
2145 * gdbarch.h: Regenerate.
2146 * gdbarch.sh: Add 'stap_adjust_register'.
2147 * i386-tdep.c: Include '<unordered_set>'.
2148 (i386_stap_adjust_register): New function.
2149 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
2150 * stap-probe.c (stap_parse_register_operand): Call
2151 'gdbarch_stap_adjust_register'.
2152
2153 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
2154
2155 PR python/24742
2156 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
2157 * python/python.c (do_start_initialization): Use 'xmalloc'
2158 instead of 'PyMem_Malloc'.
2159
2160 2019-06-28 Tom Tromey <tromey@adacore.com>
2161
2162 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
2163 for Ada.
2164
2165 2019-06-27 Tom Tromey <tromey@adacore.com>
2166
2167 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
2168 objfile_key.
2169 (arm_find_mapping_symbol, arm_record_special_symbol)
2170 (_initialize_arm_tdep): Update.
2171 (arm_objfile_data_free): Remove.
2172
2173 2019-06-27 Tom Tromey <tromey@adacore.com>
2174
2175 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
2176 to cp_print_static_field.
2177
2178 2019-06-26 Tom Tromey <tromey@adacore.com>
2179
2180 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
2181 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
2182 declare.
2183
2184 2019-06-26 Alan Hayward <alan.hayward@arm.com>
2185
2186 * features/aarch64-core.c (create_feature_aarch64_core):
2187 Regenerate.
2188 * features/aarch64-core.xml: Add cpsr flags.
2189
2190 2019-06-26 Alan Hayward <alan.hayward@arm.com>
2191
2192 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
2193 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
2194
2195 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
2196
2197 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
2198 field.
2199 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
2200 use.
2201 (arm_record_special_symbol): Don't insert new symbol in sorted
2202 position, push it at the end.
2203
2204 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
2205
2206 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
2207 (arm_mapping_symbol_s): Remove.
2208 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
2209 (arm_mapping_symbol_vec): New typedef.
2210 (struct arm_per_objfile): Add constructor.
2211 <section_maps>: Change type to
2212 std::unique_ptr<arm_mapping_symbol_vec[]>.
2213 (arm_compare_mapping_symbols): Remove.
2214 (arm_find_mapping_symbol): Adjust to section_maps type change.
2215 (arm_objfile_data_free): Call delete on arm_per_objfile.
2216 (arm_record_special_symbol): Adjust to section_maps type change.
2217 Allocate arm_per_objfile with new.
2218
2219 2019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2220
2221 * cli/cli-cmds.c (alias_command): Compare the alias prefix
2222 with the command prefix.
2223
2224 2019-06-25 Tom Tromey <tom@tromey.com>
2225
2226 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
2227 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
2228
2229 2019-06-25 Tom Tromey <tom@tromey.com>
2230
2231 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
2232 type.
2233 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
2234 protected.
2235
2236 2019-06-25 Tom Tromey <tom@tromey.com>
2237
2238 * tui/tui-winsource.c
2239 (tui_source_window_base::set_is_exec_point_at): Add check against
2240 LOA_ADDRESS.
2241
2242 2019-06-25 Tom Tromey <tom@tromey.com>
2243
2244 * tui/tui-source.c (tui_set_source_content): Don't check before
2245 xfree.
2246 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
2247
2248 2019-06-25 Tom Tromey <tom@tromey.com>
2249
2250 * tui/tui-winsource.h (tui_update_source_window_as_is)
2251 (tui_alloc_source_buffer, tui_line_is_displayed)
2252 (tui_addr_is_displayed): Change type of win_info.
2253 * tui/tui-winsource.c (tui_update_source_window_as_is)
2254 (tui_clear_source_content, tui_show_source_line)
2255 (tui_show_source_content, tui_source_window_base::refill)
2256 (tui_source_window_base::set_is_exec_point_at)
2257 (tui_source_window_base::set_is_exec_point_at)
2258 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
2259 (tui_alloc_source_buffer, tui_line_is_displayed)
2260 (tui_addr_is_displayed): Change type of win_info. Update.
2261 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
2262 (tui_source_window_base::do_make_visible_with_new_height):
2263 Update.
2264 * tui/tui-source.c (tui_set_source_content)
2265 (tui_set_source_content_nil)
2266 (tui_source_window::do_scroll_vertical): Update.
2267 * tui/tui-layout.c (show_layout): Update.
2268 * tui/tui-disasm.c (tui_set_disassem_content)
2269 (tui_disasm_window::do_scroll_vertical): Update.
2270 * tui/tui-data.h (tui_win_content): Remove.
2271 (struct tui_gen_win_info) <content, content_size>: Remove.
2272 (struct tui_source_element): Add initializers and destructor.
2273 (union tui_which_element, struct tui_win_element): Remove.
2274 (struct tui_source_window_base) <content>: New field.
2275 (struct tui_data_window): Remove destructor.
2276 (tui_alloc_content, tui_free_win_content)
2277 (tui_free_all_source_wins_content): Don't declare.
2278 * tui/tui-data.c (tui_initialize_static_data): Update.
2279 (init_content_element, tui_alloc_content): Remove.
2280 (~tui_gen_win_info): Update.
2281 (~tui_data_window, tui_free_all_source_wins_content)
2282 (tui_free_win_content, free_content, free_content_elements):
2283 Remove.
2284
2285 2019-06-25 Tom Tromey <tom@tromey.com>
2286
2287 * tui/tui-winsource.h (tui_clear_source_content)
2288 (tui_erase_source_content, tui_show_source_content): Change type
2289 of win_info.
2290 * tui/tui-winsource.c (tui_clear_source_content)
2291 (tui_erase_source_content, tui_show_source_content): Change type
2292 of win_info.
2293 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
2294 * tui/tui-source.h (tui_set_source_content_nil): Change type of
2295 win_info.
2296 * tui/tui-source.c (tui_set_source_content_nil): Change type of
2297 win_info.
2298 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
2299
2300 2019-06-25 Tom Tromey <tom@tromey.com>
2301
2302 * tui/tui-winsource.c (tui_clear_source_content)
2303 (tui_source_window_base::set_is_exec_point_at): Update.
2304 * tui/tui-source.c (tui_set_source_content_nil): Update.
2305 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
2306 a bool.
2307 * tui/tui-data.c (init_content_element): Update.
2308
2309 2019-06-25 Tom Tromey <tom@tromey.com>
2310
2311 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
2312 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
2313 * tui/tui-layout.c (init_and_make_win): Update.
2314 * tui/tui.h (enum tui_win_type): Update.
2315 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
2316 tui_win_is_auxillary.
2317 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
2318 tui_win_is_auxillary.
2319
2320 2019-06-25 Tom Tromey <tom@tromey.com>
2321
2322 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
2323 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
2324 (tui_delete_data_content_windows, tui_display_all_data)
2325 (tui_data_window::do_scroll_vertical, tui_display_data_from):
2326 Update.
2327 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
2328 * tui/tui-regs.c (tui_last_regs_line_no)
2329 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
2330 (tui_show_registers): Update.
2331 (tui_show_register_group): Return void. Update.
2332 (tui_display_registers_from, tui_display_reg_element_at_line)
2333 (tui_display_registers_from_line, tui_check_register_values):
2334 Update.
2335 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
2336 member.
2337 (struct tui_data_window) <regs_content>: Now a std::vector.
2338 <regs_content_count>: Remove.
2339 (tui_add_content_elements, tui_free_data_content): Don't declare.
2340 * tui/tui-data.c (tui_data_window::clear_detail): Update.
2341 (init_content_element): Remove DATA_WIN case. Add assert.
2342 (tui_add_content_elements): Remove.
2343 (tui_data_window): Update.
2344 (tui_free_data_content): Remove.
2345 (free_content_elements): Remove DATA_WIN case.
2346
2347 2019-06-25 Tom Tromey <tom@tromey.com>
2348
2349 * tui/tui-data.c (tui_data_item_window): Update.
2350 * tui/tui-windata.h (tui_check_data_values): Don't declare.
2351 * tui/tui-windata.c (tui_display_all_data)
2352 (tui_display_data_from_line): Update.
2353 (tui_check_data_values): Remove.
2354 * tui/tui-regs.c (tui_show_register_group)
2355 (tui_display_reg_element_at_line): Update.
2356 * tui/tui-hooks.c (tui_register_changed)
2357 (tui_refresh_frame_and_register_information): Call
2358 tui_check_register_values.
2359 * tui/tui-data.h (struct tui_data_window) <data_content,
2360 data_content_count, data_type>: Remove.
2361 (enum tui_data_type): Remove.
2362
2363 * tui/tui-data.c (tui_data_window::clear_detail)
2364 (~tui_data_window): Update.
2365
2366 2019-06-25 Tom Tromey <tom@tromey.com>
2367
2368 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
2369 declare.
2370 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
2371 Rename from tui_first_data_item_displayed. Update.
2372 (tui_data_window::refresh_all)
2373 (tui_data_window::do_scroll_vertical): Update.
2374 * tui/tui-data.h (struct tui_data_window)
2375 <first_data_item_displayed>: Declare new method.
2376
2377 2019-06-25 Tom Tromey <tom@tromey.com>
2378
2379 * tui/tui-data.h (tui_init_generic_part): Don't declare.
2380 * tui/tui-data.c (tui_init_generic_part): Remove, moving
2381 contents...
2382 (tui_initialize_static_data): ...here.
2383
2384 2019-06-25 Tom Tromey <tom@tromey.com>
2385
2386 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
2387 (tui_display_registers_from, tui_check_register_values): Update.
2388 (tui_display_register): Remove win_info parameter; update.
2389 (tui_get_register): Change type of parameters.
2390 * tui/tui-data.h (struct tui_data_element): Remove.
2391 (union tui_which_element) <data>: Remove.
2392 <data_window>: Change type.
2393 (struct tui_data_item_window): New.
2394 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
2395 case. Add assert.
2396 (~tui_data_item_window): New destructor.
2397 (free_content_elements): Remove DATA_ITEM_WIN case.
2398
2399 2019-06-25 Tom Tromey <tom@tromey.com>
2400
2401 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
2402 Remove.
2403
2404 2019-06-25 Tom Tromey <tom@tromey.com>
2405
2406 * tui/tui-data.h (struct tui_command_element): Remove.
2407 (union tui_which_element) <command>: Remove.
2408 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
2409 assert.
2410 (free_content_elements): Remove CMD_WIN case.
2411
2412 2019-06-25 Tom Tromey <tom@tromey.com>
2413
2414 * tui/tui-layout.c (tui_set_layout): Update.
2415 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
2416 * tui/tui-data.c (layout_def): Update.
2417
2418 2019-06-25 Tom Tromey <tom@tromey.com>
2419
2420 * tui/tui-wingeneral.c (tui_refresh_all): Update.
2421 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
2422 (tui_source_window_base::set_new_height): Update.
2423 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
2424 Update.
2425 (tui_set_locator_fullname, tui_set_locator_info)
2426 (tui_show_frame_info): Update.
2427 * tui/tui-source.c (tui_set_source_content)
2428 (tui_source_is_displayed): Update.
2429 * tui/tui-layout.c (show_source_disasm_command, show_data)
2430 (show_source_or_disasm_and_command): Update.
2431 * tui/tui-disasm.c (tui_set_disassem_content)
2432 (tui_get_begin_asm_address): Update.
2433 * tui/tui-data.h (struct tui_locator_element): Remove.
2434 (union tui_which_element) <locator>: Remove.
2435 (struct tui_locator_window): New.
2436 (tui_locator_win_info_ptr): Change return type.
2437 * tui/tui-data.c (_locator): Change type.
2438 (tui_locator_win_info_ptr): Change return type.
2439 (init_content_element): Remove LOCATOR_WIN case. Add assert.
2440 (tui_alloc_content): Add assert.
2441
2442 2019-06-25 Tom Tromey <tom@tromey.com>
2443
2444 * tui/tui-winsource.c
2445 (tui_exec_info_window::maybe_allocate_content): New method.
2446 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
2447 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
2448 (make_source_or_disasm_window): Add cast.
2449 * tui/tui-data.h (union tui_which_element) <simple_string>:
2450 Remove.
2451 (struct tui_source_info): New.
2452 (struct tui_source_window_base) <execution_info>: Change type.
2453 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
2454 case, and add assert.
2455 (tui_alloc_content): Add assert.
2456
2457 2019-06-25 Tom Tromey <tom@tromey.com>
2458
2459 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
2460 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
2461 * tui/tui-data.c (tui_alloc_win_info): Remove.
2462
2463 2019-06-25 Tom Tromey <tom@tromey.com>
2464
2465 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
2466 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
2467 can_highlight.
2468
2469 2019-06-25 Tom Tromey <tom@tromey.com>
2470
2471 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
2472 make_visible_with_new_height method.
2473 (tui_win_info::make_visible_with_new_height): New method.
2474 (tui_source_window_base::do_make_visible_with_new_height)
2475 (tui_data_window::do_make_visible_with_new_height)
2476 (tui_cmd_window::do_make_visible_with_new_height): New methods.
2477 (make_visible_with_new_height): Remove.
2478 (tui_resize_all, tui_adjust_win_heights): Use
2479 make_visible_with_new_height method.
2480 * tui/tui-data.h (struct tui_win_info)
2481 <do_make_visible_with_new_height, make_visible_with_new_height>:
2482 New methods.
2483 (struct tui_source_window_base, struct tui_data_window)
2484 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
2485 methods.
2486
2487 2019-06-25 Tom Tromey <tom@tromey.com>
2488
2489 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
2490 method.
2491 (update_tab_width): Call update_tab_width method.
2492 * tui/tui-data.h (struct tui_win_info)
2493 (struct tui_source_window_base) <update_tab_width>: New methods.
2494
2495 2019-06-25 Tom Tromey <tom@tromey.com>
2496
2497 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
2498 parameter.
2499 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
2500 parameter.
2501 (tui_gen_win_info::make_visible): Update.
2502 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
2503 parameter.
2504 * tui/tui-data.h (enum tui_box): New enum.
2505 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
2506
2507 2019-06-25 Tom Tromey <tom@tromey.com>
2508
2509 * tui/tui-layout.c (make_source_or_disasm_window): Always use
2510 init_and_make_win for EXEC_INFO_WIN.
2511 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
2512 longer inline.
2513 (struct tui_win_info) <~tui_win_info>: Inline.
2514 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
2515 Don't declare.
2516 * tui/tui-data.c (source_win, disasm_win): Remove globals.
2517 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
2518 Remove.
2519 (tui_initialize_static_data): Update.
2520 (~tui_gen_win_info): Handle more cleanup here.
2521 (~tui_source_window_base): Delete "execution_info".
2522 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
2523
2524 2019-06-25 Tom Tromey <tom@tromey.com>
2525
2526 * tui/tui-layout.c (make_command_window): Don't set
2527 can_highlight.
2528 (show_source_disasm_command): Call the reset method.
2529 (show_data): Don't set can_highlight. Call the reset method.
2530 (tui_gen_win_info::reset): Rename from init_gen_win_info
2531 (init_and_make_win): Simplify. Return tui_gen_win_info.
2532 (show_source_or_disasm_and_command): Call the reset method.
2533 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
2534 (struct tui_cmd_window): Set can_highlight.
2535
2536 2019-06-25 Tom Tromey <tom@tromey.com>
2537
2538 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
2539 from make_visible.
2540 (tui_make_visible, tui_make_invisible): Rewrite.
2541 (tui_win_info::make_visible): Remove.
2542 (tui_source_window_base::make_visible): Update.
2543 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
2544 method. Moved from...
2545 (struct tui_win_info) <make_visible>: ...here.
2546
2547 2019-06-25 Tom Tromey <tom@tromey.com>
2548
2549 * tui/tui-winsource.c
2550 (tui_source_window_base::do_scroll_horizontal): Remove direction
2551 parameter.
2552 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
2553 direction parameter.
2554 * tui/tui-win.c (tui_win_info::forward_scroll)
2555 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
2556 (tui_win_info::right_scroll): Update.
2557 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
2558 direction parameter.
2559 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
2560 direction parameter.
2561 * tui/tui-data.h (enum tui_scroll_direction): Remove.
2562 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
2563 Remove direction parameter.
2564 (struct tui_source_window_base, struct tui_source_window)
2565 (struct tui_disasm_window, struct tui_data_window)
2566 (struct tui_cmd_window): Update.
2567
2568 2019-06-25 Tom Tromey <tom@tromey.com>
2569
2570 * tui/tui-winsource.h (tui_set_exec_info_content)
2571 (tui_show_exec_info_content, tui_erase_exec_info_content)
2572 (tui_clear_exec_info_content, tui_update_exec_info): Change
2573 argument to tui_source_window_base.
2574 * tui/tui-winsource.c (tui_set_exec_info_content)
2575 (tui_show_exec_info_content, tui_erase_exec_info_content)
2576 (tui_clear_exec_info_content, tui_update_exec_info): Change
2577 argument to tui_source_window_base.
2578
2579 2019-06-25 Tom Tromey <tom@tromey.com>
2580
2581 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
2582 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
2583
2584 2019-06-25 Tom Tromey <tom@tromey.com>
2585
2586 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
2587 check.
2588
2589 2019-06-25 Tom Tromey <tom@tromey.com>
2590
2591 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
2592 type to void.
2593 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
2594 type to void.
2595 * tui/tui-source.c (tui_set_source_content): Update.
2596 * tui/tui-disasm.c (tui_set_disassem_content): Update.
2597
2598 2019-06-25 Tom Tromey <tom@tromey.com>
2599
2600 * tui/tui-win.c (window_name_completer, tui_set_focus)
2601 (tui_all_windows_info): Use name method.
2602 * tui/tui-data.h (struct tui_gen_win_info)
2603 (struct tui_source_window, struct tui_disasm_window)
2604 (struct tui_data_window, struct tui_cmd_window) <name>: New
2605 method.
2606 (tui_win_name): Don't declare.
2607 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
2608 (tui_win_name): Remove.
2609
2610 2019-06-25 Tom Tromey <tom@tromey.com>
2611
2612 * tui/tui-winsource.h (tui_update_source_window)
2613 (tui_update_source_window_as_is): Change parameter type.
2614 * tui/tui-winsource.c (tui_update_source_window): Change win_info
2615 to be a tui_source_window_base.
2616 (tui_update_source_window_as_is): Likewise.
2617 * tui/tui-win.c (make_visible_with_new_height): Update.
2618
2619 2019-06-25 Tom Tromey <tom@tromey.com>
2620
2621 * tui/tui-winsource.c (tui_erase_source_content)
2622 (tui_show_source_content, tui_show_exec_info_content)
2623 (tui_erase_exec_info_content): Use refresh_window method.
2624 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
2625 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
2626 from tui_refresh_win.
2627 (tui_data_window::refresh_window): New method.
2628 (tui_win_info::refresh, tui_source_window_base::refresh)
2629 (tui_refresh_all): Use refresh_window method.
2630 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
2631 method.
2632 * tui/tui-regs.c (tui_display_register): Call refresh_window
2633 method.
2634 * tui/tui-layout.c (show_source_disasm_command)
2635 (show_source_or_disasm_and_command): Call refresh_window method.
2636 * tui/tui-data.h (struct tui_gen_win_info)
2637 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
2638 New method.
2639
2640 2019-06-25 Tom Tromey <tom@tromey.com>
2641
2642 * tui/tui.c (tui_rl_other_window, tui_enable)
2643 (tui_is_window_visible, tui_get_command_dimension): Update.
2644 * tui/tui-winsource.c (tui_update_source_window_as_is)
2645 (tui_clear_source_content, tui_erase_source_content)
2646 (tui_show_source_line, tui_source_window_base::refill)
2647 (tui_source_window_base::do_scroll_horizontal)
2648 (tui_source_window_base::set_is_exec_point_at)
2649 (tui_update_breakpoint_info, tui_set_exec_info_content)
2650 (tui_alloc_source_buffer, tui_line_is_displayed)
2651 (tui_addr_is_displayed): Update.
2652 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
2653 (tui_check_and_display_highlight_if_needed)
2654 (tui_win_info::make_visible, tui_win_info::refresh)
2655 (tui_refresh_all): Update.
2656 * tui/tui-windata.c (tui_first_data_item_displayed)
2657 (tui_delete_data_content_windows, tui_erase_data_content)
2658 (tui_display_all_data, tui_data_window::refresh_all)
2659 (tui_check_data_values): Update.
2660 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
2661 (tui_set_win_focus_to, tui_win_info::forward_scroll)
2662 (tui_win_info::backward_scroll, tui_refresh_all_win)
2663 (tui_resize_all, tui_set_focus, tui_all_windows_info)
2664 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
2665 (tui_source_window_base::set_new_height)
2666 (tui_data_window::set_new_height)
2667 (make_invisible_and_set_new_height)
2668 (make_visible_with_new_height, new_height_ok)
2669 (parse_scrolling_args): Update.
2670 * tui/tui-stack.c (tui_show_frame_info): Update.
2671 * tui/tui-source.c (tui_set_source_content)
2672 (tui_set_source_content_nil, tui_source_is_displayed)
2673 (tui_source_window::do_scroll_vertical): Update.
2674 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
2675 (tui_display_registers_from, tui_display_reg_element_at_line)
2676 (tui_check_register_values, tui_reg_command): Update.
2677 * tui/tui-layout.c (tui_default_win_height)
2678 (show_source_disasm_command, show_data, init_and_make_win)
2679 (show_source_or_disasm_and_command): Update.
2680 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
2681 (tui_redisplay_readline, tui_mld_flush)
2682 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
2683 (tui_getc): Update.
2684 * tui/tui-disasm.c (tui_set_disassem_content)
2685 (tui_disasm_window::do_scroll_vertical): Update.
2686 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
2687 Now virtual.
2688 (struct tui_win_info): Derive from tui_gen_win_info.
2689 <~tui_win_info>: Mark as override.
2690 <generic>: Remove member.
2691 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
2692 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
2693 (~tui_data_window, ~tui_win_info)
2694 (tui_free_all_source_wins_content): Update.
2695 * tui/tui-command.c (tui_refresh_cmd_win): Update.
2696
2697 2019-06-25 Tom Tromey <tom@tromey.com>
2698
2699 * tui/tui-layout.c (init_and_make_win): Use new.
2700 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
2701 destructor, initializers.
2702 (tui_alloc_generic_win_info): Don't declare.
2703 * tui/tui-data.c (_locator): Add argument to constructor.
2704 (source_win, disasm_win): New globals.
2705 (exec_info): Remove.
2706 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
2707 Update.
2708 (tui_alloc_generic_win_info): Remove.
2709 (init_content_element): Use new.
2710 (tui_win_info::tui_win_info): Update.
2711 (free_content_elements) <case DATA_WIN>: Use delete.
2712
2713 2019-06-25 Tom Tromey <tom@tromey.com>
2714
2715 * tui/tui-wingeneral.c (tui_refresh_win): Update.
2716 * tui/tui-windata.c (tui_first_data_item_displayed)
2717 (tui_delete_data_content_windows): Update.
2718 * tui/tui-win.c (tui_data_window::set_new_height): Update.
2719 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
2720 (tui_display_registers_from, tui_check_register_values): Update.
2721 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
2722 pointer.
2723 * tui/tui-data.c (init_content_element): Update. Allocate the new
2724 window.
2725 (tui_free_data_content): Update.
2726 (free_content_elements) <case DATA_WIN>: Free the window.
2727
2728 2019-06-25 Tom Tromey <tom@tromey.com>
2729
2730 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
2731 Update.
2732 * tui/tui-layout.c (make_command_window)
2733 (show_source_disasm_command, show_data, init_and_make_win)
2734 (show_source_or_disasm_and_command): Update.
2735 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
2736 method.
2737 <can_highight, is_highlighted>: Now bool.
2738 (tui_set_win_highlight): Don't declare.
2739 * tui/tui-data.c (tui_set_win_highlight): Remove.
2740
2741 2019-06-25 Tom Tromey <tom@tromey.com>
2742
2743 * tui/tui-wingeneral.c (make_visible): Remove check of window
2744 type.
2745
2746 2019-06-25 Tom Tromey <tom@tromey.com>
2747
2748 * tui/tui-win.c (tui_win_info::max_height)
2749 (tui_cmd_window::max_height): New methods.
2750 (new_height_ok): Call max_height.
2751 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
2752 <max_height>: New method.
2753
2754 2019-06-25 Tom Tromey <tom@tromey.com>
2755
2756 * tui/tui-win.c (tui_source_window_base::set_new_height)
2757 (tui_data_window::set_new_height): New methods.
2758 (make_invisible_and_set_new_height): Call set_new_height method.
2759 * tui/tui-data.h (struct tui_win_info)
2760 (struct tui_source_window_base, struct tui_data_window)
2761 <set_new_height>: New method.
2762
2763 2019-06-25 Tom Tromey <tom@tromey.com>
2764
2765 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
2766 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
2767 tui_refresh_data_win.
2768 * tui/tui-win.c (tui_source_window_base::refresh_all): New
2769 method.
2770 (tui_refresh_all_win): Call the refresh_all method.
2771 (tui_set_focus): Likewise.
2772 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
2773 (struct tui_source_window_base, struct tui_data_window) <refresh>:
2774 Likewise.
2775
2776 2019-06-25 Tom Tromey <tom@tromey.com>
2777
2778 * tui/tui-winsource.h (tui_refill_source_window)
2779 (tui_set_is_exec_point_at): Don't declare.
2780 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
2781 (tui_source_window_base::refill): Rename from
2782 tui_refill_source_window.
2783 (tui_source_window_base::do_scroll_horizontal): Update.
2784 (tui_source_window_base::set_is_exec_point_at): Rename from
2785 tui_set_is_exec_point_at.
2786 (tui_update_all_breakpoint_info): Update.
2787 * tui/tui-stack.c (tui_show_frame_info): Update.
2788 * tui/tui-layout.c (show_data): Add cast.
2789 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
2790 * tui/tui-data.h (struct tui_source_window_base) <refill,
2791 set_is_exec_point_at>: New methods.
2792 (tui_source_windows, tui_add_to_source_windows): Update types.
2793 (tui_add_to_source_windows): Remove redundant declaration.
2794 * tui/tui-data.c (source_windows): Store tui_source_window_base.
2795 (tui_source_windows): Change return type.
2796 (tui_clear_source_windows_detail): Update.
2797 (tui_add_to_source_windows): Change type of parameter.
2798 (tui_free_all_source_wins_content): Update.
2799
2800 2019-06-25 Tom Tromey <tom@tromey.com>
2801
2802 * tui/tui-wingeneral.c (tui_win_info::refresh)
2803 (tui_source_window_base::refresh): New methods.
2804 (tui_refresh_all): Call the refresh method.
2805 * tui/tui-data.h (struct tui_win_info)
2806 (struct tui_source_window_base) <refresh>: New method.
2807
2808 2019-06-25 Tom Tromey <tom@tromey.com>
2809
2810 * tui/tui.h (tui_is_window_visible): Return bool.
2811 * tui/tui.c (tui_is_window_visible): Return bool.
2812 * tui/tui-wingeneral.c (tui_make_window, make_visible)
2813 (tui_make_visible, tui_make_invisible)
2814 (tui_win_info::make_visible)
2815 (tui_source_window_base::make_visible, make_all_visible)
2816 (tui_make_all_visible, tui_make_all_invisible): Update.
2817 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
2818 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
2819 bool.
2820 (struct tui_win_info, struct tui_source_window_base)
2821 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
2822 * tui/tui-data.c (tui_init_generic_part): Update.
2823
2824 2019-06-25 Tom Tromey <tom@tromey.com>
2825
2826 * tui/tui-wingeneral.c (tui_win_info::make_visible)
2827 (tui_source_window_base::make_visible): New methods.
2828 (make_all_visible): Make method call.
2829 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
2830 (struct tui_source_window_base, struct tui_cmd_window): Override
2831 make_visible.
2832 (tui_win_is_source_type): Don't declare.
2833 * tui/tui-data.c (tui_win_is_source_type): Remove.
2834
2835 2019-06-25 Tom Tromey <tom@tromey.com>
2836
2837 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
2838 NULL check.
2839
2840 2019-06-25 Tom Tromey <tom@tromey.com>
2841
2842 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
2843 Inline constructor. Add initializers for members.
2844 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
2845 constructors; now inline in class.
2846
2847 2019-06-25 Tom Tromey <tom@tromey.com>
2848
2849 * tui/tui-regs.c (tui_show_registers): Update.
2850 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
2851 bool.
2852 * tui/tui-data.c (tui_data_window::clear_detail)
2853 (tui_data_window): Update.
2854
2855 2019-06-25 Tom Tromey <tom@tromey.com>
2856
2857 * tui/tui-windata.c (tui_display_all_data)
2858 (tui_display_data_from_line, tui_display_data_from)
2859 (tui_check_data_values, tui_data_window::do_scroll_vertical):
2860 Update.
2861 * tui/tui-regs.c (tui_last_regs_line_no)
2862 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
2863 (tui_show_registers, tui_show_register_group)
2864 (tui_display_registers_from, tui_display_reg_element_at_line)
2865 (tui_display_registers_from_line, tui_check_register_values)
2866 (tui_reg_next, tui_reg_prev): Update.
2867 * tui/tui-layout.c (tui_set_layout, show_data): Update.
2868 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
2869 tui_data_window.
2870 (struct tui_win_info) <detail>: Remove. Add new fields from
2871 tui_data_info.
2872 (TUI_DATA_WIN): Add cast.
2873 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
2874 (~tui_data_window): Simplify.
2875
2876 2019-06-25 Tom Tromey <tom@tromey.com>
2877
2878 * tui/tui-layout.c (show_source_disasm_command)
2879 (show_source_or_disasm_and_command): Update.
2880 * tui/tui-io.c (update_cmdwin_start_line)
2881 (tui_redisplay_readline): Update.
2882 * tui/tui-data.h (struct tui_command_info): Remove.
2883 (struct tui_win_info) <detail>: Remove command_info member.
2884 (struct tui_data_window) <start_line>: New member, from
2885 tui_command_info.
2886 (TUI_CMD_WIN): Add casts.
2887
2888 2019-06-25 Tom Tromey <tom@tromey.com>
2889
2890 * tui/tui-winsource.c (tui_update_source_window)
2891 (tui_refill_source_window)
2892 (tui_source_window_base::do_scroll_horizontal)
2893 (tui_update_breakpoint_info, tui_set_exec_info_content)
2894 (tui_show_exec_info_content, tui_erase_exec_info_content)
2895 (tui_clear_exec_info_content): Update.
2896 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
2897 Update.
2898 * tui/tui-win.c (make_invisible_and_set_new_height)
2899 (make_visible_with_new_height): Update.
2900 * tui/tui-source.c (tui_set_source_content)
2901 (tui_show_symtab_source): Update.
2902 * tui/tui-layout.c (extract_display_start_addr)
2903 (show_source_disasm_command, show_data)
2904 (make_source_or_disasm_window)
2905 (show_source_or_disasm_and_command): Update.
2906 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
2907 (tui_disasm_window::do_scroll_vertical): Remove shadowing
2908 "gdbarch".
2909 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
2910 to tui_source_window_base.
2911 (struct tui_win_info) <detail>: Remove source_info member.
2912 (struct tui_source_window_base) <has_locator>: Inline.
2913 Move contents from tui_source_info; rename has_locator member to
2914 m_has_locator.
2915 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
2916 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
2917 header file.
2918 (tui_source_window_base::clear_detail, ~tui_source_window_base):
2919 Simplify.
2920 (tui_free_all_source_wins_content): Cast to
2921 tui_source_window_base.
2922
2923 2019-06-25 Tom Tromey <tom@tromey.com>
2924
2925 * tui/tui-win.c (make_invisible_and_set_new_height)
2926 (make_visible_with_new_height): Call has_locator method.
2927 * tui/tui-layout.c (show_source_disasm_command, show_data)
2928 (show_source_or_disasm_and_command): Update for bool change.
2929 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
2930 (tui_win_info) <has_locator>: New method.
2931 (struct tui_source_window_base) <has_locator>: New method.
2932 (tui_win_has_locator): Don't declare.
2933 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
2934 from tui_win_has_locator.
2935 (tui_source_window_base): Use false, not FALSE.
2936
2937 2019-06-25 Tom Tromey <tom@tromey.com>
2938
2939 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
2940 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
2941 clear_detail method directly.
2942 (tui_clear_win_detail): Remove.
2943
2944 2019-06-25 Tom Tromey <tom@tromey.com>
2945
2946 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
2947 "this", not TUI_DISASM_WIN.
2948
2949 2019-06-25 Tom Tromey <tom@tromey.com>
2950
2951 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
2952 declare.
2953 * tui/tui-winsource.c
2954 (tui_source_window_base::do_scroll_horizontal): Rename from
2955 tui_horizontal_source_scroll.
2956 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
2957 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
2958 from tui_vertical_data_scroll.
2959 * tui/tui-win.h (tui_scroll): Don't declare.
2960 * tui/tui-win.c (tui_win_info::forward_scroll)
2961 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
2962 (tui_win_info::right_scroll): Rename and update.
2963 (tui_scroll_forward_command, tui_scroll_backward_command)
2964 (tui_scroll_left_command, tui_scroll_right_command): Update.
2965 (tui_scroll): Remove.
2966 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
2967 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
2968 from tui_vertical_source_scroll.
2969 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
2970 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
2971 from tui_vertical_disassem_scroll.
2972 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
2973 do_scroll_horizontal>: New methods.
2974 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
2975 Likewise.
2976 (struct tui_source_window_base): Add do_scroll_horizontal.
2977 (struct tui_source_window, struct tui_disasm_window): Add
2978 do_scroll_vertical.
2979 (struct tui_data_window, struct tui_cmd_window): Add
2980 do_scroll_horizontal and do_scroll_vertical.
2981 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
2982
2983 2019-06-25 Tom Tromey <tom@tromey.com>
2984
2985 * tui/tui-data.h (struct tui_source_window_base): New struct.
2986 (struct tui_source_window): Derive from tui_source_window_base.
2987 (struct tui_disasm_window): New struct.
2988 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
2989 from tui_source_window::clear_detail.
2990 (tui_source_window_base): Rename from tui_source_window.
2991 (~tui_source_window_base): Rename from ~tui_source_window.
2992 (tui_alloc_win_info): Create a tui_disasm_window.
2993
2994 2019-06-25 Tom Tromey <tom@tromey.com>
2995
2996 * tui/tui-data.h (struct tui_source_window)
2997 (struct tui_data_window): Declare destructors.
2998 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
2999 destructors.
3000 (tui_win_info): Simplify.
3001
3002 2019-06-25 Tom Tromey <tom@tromey.com>
3003
3004 * tui/tui-winsource.c (tui_display_main)
3005 (tui_update_source_windows_with_addr)
3006 (tui_update_all_breakpoint_info): Update.
3007 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
3008 (new_height_ok, parse_scrolling_args): Update.
3009 * tui/tui-stack.c (tui_show_frame_info): Update.
3010 * tui/tui-data.h (struct tui_list): Remove.
3011 (tui_source_windows): Return a reference to a std::vector.
3012 * tui/tui-data.c (source_windows): Now a std::vector.
3013 (tui_source_windows): Change return type.
3014 (tui_clear_source_windows): Rewrite.
3015 (tui_clear_source_windows_detail, tui_add_to_source_windows)
3016 (tui_free_all_source_wins_content): Rewrite.
3017
3018 2019-06-25 Tom Tromey <tom@tromey.com>
3019
3020 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
3021 (struct tui_data_window, struct tui_cmd_window): Declare
3022 clear_detail method.
3023 * tui/tui-data.c (tui_source_window::clear_detail)
3024 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
3025 methods.
3026 (tui_clear_win_detail): Simplify.
3027
3028 2019-06-25 Tom Tromey <tom@tromey.com>
3029
3030 * tui/tui-layout.c (make_source_window, make_disasm_window)
3031 (make_source_or_disasm_window): Remove win_info_ptr parameter.
3032 Return the new window.
3033 (show_source_disasm_command, show_data)
3034 (show_source_or_disasm_and_command): Update.
3035
3036 2019-06-25 Tom Tromey <tom@tromey.com>
3037
3038 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
3039 parameter. Return the new window.
3040 (show_source_disasm_command): Update and remove NULL check.
3041 (show_source_or_disasm_and_command): Update.
3042
3043 2019-06-25 Tom Tromey <tom@tromey.com>
3044
3045 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
3046
3047 2019-06-25 Tom Tromey <tom@tromey.com>
3048
3049 * tui/tui-data.h (struct tui_win_info): Make constructor
3050 protected. Make destructor virtual. Add initializers.
3051 (tui_source_window, tui_data_window, tui_cmd_window): New
3052 classes.
3053 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
3054 constructor. Add "type" parameter.
3055 (tui_source_window, tui_data_window, tui_cmd_window): New
3056 constructors.
3057 (tui_alloc_win_info): Instantiate the appropriate subclass.
3058
3059 2019-06-25 Tom Tromey <tom@tromey.com>
3060
3061 * tui/tui-win.c (tui_resize_all): Use delete.
3062 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
3063 destructor.
3064 (tui_free_window): Don't declare.
3065 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
3066 Update.
3067
3068 2019-06-25 Tom Tromey <tom@tromey.com>
3069
3070 * tui/tui-data.h (struct tui_win_info): Add constructor.
3071 * tui/tui-data.c (tui_alloc_win_info): Use new.
3072 (tui_free_window): Use delete.
3073
3074 2019-06-22 Tom Tromey <tom@tromey.com>
3075
3076 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
3077 declare.
3078 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
3079
3080 2019-06-22 Tom Tromey <tom@tromey.com>
3081
3082 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
3083 declare.
3084 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
3085
3086 2019-06-22 Tom de Vries <tdevries@suse.de>
3087
3088 * dwarf2read.c (create_addrmap_from_aranges)
3089 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
3090 instead of '%zu'.
3091
3092 2019-06-21 Simon Marchi <simon.marchi@efficios.com>
3093
3094 * dwarf2read.h (dwarf2_section_info_def): Remove.
3095 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
3096 * dwarf2read.c (struct dwo_sections) <types>: Change type to
3097 std::vector<dwarf2_section_info>.
3098 (struct dwo_file) <~dwo_file>: Remove.
3099 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
3100 types field.
3101 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
3102 (dwarf2_read_debug_names): Likewise.
3103 (create_debug_types_hash_table): Change parameter type to
3104 array_view, adjust code accordingly.
3105 (dwarf2_locate_dwo_sections): Adjust to std::vector.
3106 (partial_die_info::fixup): Likewise.
3107 (determine_prefix): Likewise.
3108 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
3109
3110 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
3111
3112 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
3113 gdb_bfd_ref_ptr.
3114 <~dwo_file>: Remove call to gdb_bfd_unref.
3115 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
3116 gdb_bfd_ref_ptr::get.
3117
3118 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
3119
3120 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
3121 type to htab_up.
3122 * dwarf2read.c (struct dwo_file): Initialize fields.
3123 <~dwo_file>: New.
3124 (free_dwo_file): Remove, move content to ~dwo_file.
3125 (struct dwo_file_deleter): Remove.
3126 (dwo_file_up>: Remove custom deleter.
3127 (free_dwo_files): Remove.
3128 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
3129 dwo_files.
3130 (process_skeletonless_type_units): Call unique_ptr::get.
3131 (allocate_dwo_file_hash_table): Add deleter to created hash
3132 table. Change return type to htab_up.
3133 (lookup_dwo_file_slot): Don't memset dwo_file, call
3134 unique_ptr::get.
3135 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
3136 (create_dwo_unit_in_dwp_v2): Likewise.
3137 (open_and_init_dwo_file): Likewise.
3138 (free_dwo_file_from_slot): Remove.
3139
3140 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
3141
3142 * dwarf2read.h (struct dwarf2_section_info) <readin,
3143 is_virtual>: Change type to bool.
3144 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
3145 true instead of 1.
3146
3147 2019-06-19 Tom Tromey <tom@tromey.com>
3148
3149 * tui/tui-data.h (tui_init_content_element): Don't declare.
3150
3151 2019-06-19 Tom Tromey <tom@tromey.com>
3152
3153 * tui/tui-data.h (tui_init_win_info): Don't declare.
3154
3155 2019-06-19 Tom de Vries <tdevries@suse.de>
3156
3157 * dwarf2read.h (abstract_to_concrete): Change type to
3158 std::unordered_map<sect_offset, std::vector<sect_offset>,
3159 gdb::hash_enum<sect_offset>>.
3160
3161 2019-06-19 Tom Tromey <tromey@adacore.com>
3162
3163 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
3164 EVAL_AVOID_SIDE_EFFECTS specially.
3165
3166 2019-06-19 Tom Tromey <tromey@adacore.com>
3167
3168 * source-cache.c (highlighter): New global.
3169 (source_cache::get_source_lines): Create a highlighter on demand.
3170
3171 2019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
3172
3173 * defs.h (deprecated_interactive_hook): Delete declaration.
3174 * interps.c (clear_interpreter_hooks): Remove use of
3175 deprecated_interactive_hook.
3176 * top.c (deprecated_interactive_hook): Delete definition.
3177 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
3178
3179 2019-06-18 Tom de Vries <tdevries@suse.de>
3180
3181 PR gdb/24515
3182 * dwarf2read.h (abstract_to_concrete): Change type from
3183 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
3184 std::unordered_map<sect_offset, std::vector<sect_offset>>.
3185 * dwarf2read.c (read_variable): Update.
3186 (dwarf2_fetch_die_loc_sect_off): Update.
3187
3188 2019-06-17 Tom de Vries <tdevries@suse.de>
3189
3190 PR gdb/24617
3191 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
3192 accessing parent[parent_len - 1].
3193
3194 2019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
3195
3196 PR gdb/24364
3197 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
3198 call dtrace_process_dof with NULL dof.
3199
3200 2019-06-16 Tom de Vries <tdevries@suse.de>
3201
3202 PR gdb/24445
3203 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
3204
3205 2019-06-16 Tom Tromey <tom@tromey.com>
3206
3207 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
3208 (make_all_visible): Use address of member.
3209
3210 2019-06-16 Tom Tromey <tom@tromey.com>
3211
3212 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
3213 (tui_free_window, free_content, free_content_elements): Remove
3214 unnecessary cast.
3215 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
3216 cast.
3217 * tui/tui-regs.c (tui_show_register_group)
3218 (tui_display_registers_from, tui_display_reg_element_at_line):
3219 Remove unnecessary cast.
3220
3221 2019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
3222
3223 * linux-nat.c (normal_mask): Delete.
3224 (_initialize_linux_nat): Don't initialise normal_mask.
3225
3226 2019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
3227
3228 PR gdb/24445
3229 * dwarf-index-write.h (write_psymtabs_to_index): Add
3230 dwz_basename parameter.
3231 * dwarf-index-write.c (write_gdbindex): Move file writing to
3232 write_gdbindex_1. Change return type void.
3233 (assert_file_size): Move up, remove filename parameter.
3234 (write_gdbindex_1): New function.
3235 (write_debug_names): Change return type to void, call
3236 assert_file_size.
3237 (struct index_wip_file): New struct.
3238 (write_psymtabs_to_index): Add dwz_basename parameter. Move
3239 file logic to index_wip_file. Write index for dwz file if
3240 needed.
3241 (save_gdb_index_command): Pass basename of dwz file, if present.
3242 * dwarf-index-cache.c (index_cache::store): Obtain and pass
3243 build-id of dwz file, if present.
3244 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
3245 (dwarf2_get_dwz_file): Likewise.
3246 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
3247 (dwarf2_get_dwz_file): Likewise.
3248
3249 2019-06-16 Tom Tromey <tom@tromey.com>
3250
3251 * coffread.c (process_coff_symbol): Use xstrdup.
3252 * value.c (create_internalvar): Use xstrdup.
3253
3254 2019-06-16 Tom Tromey <tom@tromey.com>
3255
3256 * valops.c (value_cast, value_slice): Remove unnecessary cast.
3257 * breakpoint.c (stopin_command, stopat_command)
3258 (until_break_command, decode_location_default): Remove unnecessary
3259 cast.
3260 * utils.c (subset_compare): Remove unnecessary cast.
3261 * ada-lang.c (ada_update_initial_language): Remove unnecessary
3262 cast.
3263 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
3264 cast.
3265 * infcmd.c (path_command): Remove unnecessary cast.
3266 * coffread.c (decode_type): Remove unnecessary cast.
3267 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
3268 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
3269 * tui/tui-stack.c (tui_show_locator_content)
3270 (tui_show_frame_info): Remove unnecessary cast.
3271 * tui/tui-win.c (tui_scroll_forward_command)
3272 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
3273 (parse_scrolling_args): Remove unnecessary cast.
3274 * tui/tui-data.c (init_win_info, tui_del_window)
3275 (tui_free_window, tui_del_data_windows, tui_free_data_content)
3276 (free_content_elements): Remove unnecessary cast.
3277 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
3278 unnecessary cast.
3279 * tui/tui-source.c (tui_set_source_content)
3280 (tui_vertical_source_scroll): Remove unnecessary cast.
3281 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
3282 cast.
3283 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
3284 * tui/tui-regs.c (tui_display_registers_from)
3285 (tui_display_register): Remove unnecessary cast.
3286 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
3287 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
3288 (make_visible): Remove unnecessary cast.
3289 * tui/tui-winsource.c (tui_erase_source_content)
3290 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
3291 unnecessary cast.
3292 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
3293 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
3294 * stabsread.c (read_type, read_array_type, read_range_type):
3295 Remove unnecessary cast.
3296 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
3297 (parse_symbol, parse_type, upgrade_type, parse_external)
3298 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
3299 unnecessary cast.
3300 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
3301
3302 2019-06-16 Tom Tromey <tom@tromey.com>
3303
3304 * tui/tui-data.c (tui_alloc_generic_win_info)
3305 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
3306 checks.
3307
3308 2019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
3309 Andrew Burgess <andrew.burgess@embecosm.com>
3310
3311 * f-typeprint.c (f_print_type): Don't return early for not
3312 associated or not allocated types.
3313 (f_type_print_varspec_suffix): Add print_rank parameter and print
3314 ranks of array types in case they dangling.
3315 (f_type_print_base): Add print_rank parameter.
3316
3317 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
3318
3319 * NEWS: Mention new MI commands.
3320 * break-catch-throw.c (enum exception_event_kind): Move to
3321 breakpoint.h.
3322 (print_mention_exception_catchpoint): Output text as a single
3323 message.
3324 (catch_exception_command_1): Rename to...
3325 (catch_exception_event): ...this, make non-static, update header
3326 command, and change some parameter types.
3327 (catch_catch_command): Update for changes to
3328 catch_exception_command_1.
3329 (catch_throw_command): Likewise.
3330 (catch_rethrow_command): Likewise.
3331 * breakpoint.c (enum exception_event_kind): Delete.
3332 * breakpoint.h (enum exception_event_kind): Moved here from
3333 break-catch-throw.c.
3334 (catch_exception_event): Declare.
3335 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
3336 (mi_cmd_catch_throw): New function.
3337 (mi_cmd_catch_rethrow): New function.
3338 (mi_cmd_catch_catch): New function.
3339 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
3340 'catch-catch' entries.
3341 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
3342 (mi_cmd_catch_rethrow): Declare.
3343 (mi_cmd_catch_catch): Declare.
3344
3345 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
3346
3347 * annotate.c (annotate_source_line): Change return type to void,
3348 update implementation to match.
3349 * annotate.h (annotate_source_line): Change return type to void,
3350 update header comment.
3351 * stack.c (print_frame_info): Don't change what frame information
3352 is printed based on whether annotations are on or not.
3353
3354 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
3355
3356 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
3357 (annotate_source): Make static.
3358 (annotate_source_line): Moved from source.c and renamed from
3359 identify_source_line. Update the return type.
3360 * annotate.h (annotate_source): Delete declaration.
3361 (annotate_source_line): Declaration moved from source.h, and
3362 renamed from identify_source_line. Return type updated.
3363 * source.c (identify_source_line): Moved to annotate.c and renamed
3364 to annotate_source_line.
3365 (info_line_command): Remove check of annotation_level.
3366 * source.h (identify_source_line): Move declaration to annotate.h
3367 and rename to annotate_source_line.
3368 * stack.c: Add 'annotate.h' include.
3369 (print_frame_info): Remove check of annotation_level before
3370 calling annotate_source_line.
3371
3372 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
3373
3374 * source-cache.c (source_cache::get_plain_source_lines): Use
3375 open_source_file_with_line_charpos instead of just
3376 open_source_file, remove call to find_source_lines.
3377 (source_cache::get_source_lines): Likewise.
3378 * source.c (find_source_lines): Make static.
3379 (get_filename_and_charpos): Renamed into...
3380 (open_source_file_with_line_charpos): ..this along with changes to
3381 return a scoped_fd, and some other minor clean ups.
3382 (identify_source_line): Use open_source_file_with_line_charpos.
3383 (search_command_helper): Use open_source_file_with_line_charpos
3384 instead of just open_source_file, remove call to
3385 find_source_lines.
3386 * source.h (open_source_file_with_line_charpos): Declare new
3387 function.
3388 (find_source_lines): Delete declaration.
3389
3390 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
3391
3392 * source.c (get_filename_and_charpos): Remove fullname
3393 parameter.
3394 (identify_source_line): Update call to get_filename_and_charpos.
3395
3396 2019-06-14 Tom Tromey <tromey@adacore.com>
3397
3398 PR gdb/24502:
3399 * ui-style.h (skip_ansi_escape): Update comment.
3400 * ui-file.h (class no_terminal_escape_file): New class.
3401 * ui-file.c (no_terminal_escape_file::write)
3402 (no_terminal_escape_file::puts): New methods.
3403 * cli/cli-logging.c (handle_redirections): Use
3404 no_terminal_escape_file.
3405
3406 2019-06-14 Tom Tromey <tromey@adacore.com>
3407
3408 * NEWS: Move convenience variable news above Python news.
3409
3410 2019-06-14 Tom Tromey <tom@tromey.com>
3411
3412 * gnulib: Move directory to top-level.
3413 * configure.ac: Don't configure gnulib.
3414 * configure: Rebuild.
3415 * common/common-defs.h: Use new path to gnulib.
3416 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
3417 (GNULIB_H): Remove.
3418 (INCGNU): Look in new gnulib location.
3419 (HFILES_NO_SRCDIR): Remove gnulib files.
3420 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
3421 (generated_files): Remove GNULIB_H.
3422 ($(LIBGNU), all-lib): Remove targets.
3423 (distclean): Don't mention GNULIB_BUILDDIR.
3424 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
3425
3426 2019-06-14 Tom Tromey <tromey@adacore.com>
3427
3428 * symfile.c (add_symbol_file_command): Remove obsolete comment.
3429 Warn if symbol file does not provide any symbols.
3430
3431 2019-06-14 Tom Tromey <tromey@adacore.com>
3432
3433 * source.c (find_and_open_source): Respect basenames_may_differ.
3434
3435 2019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
3436
3437 * annotate.c (annotate_breakpoints_invalid): Make use of
3438 scoped_restore_terminal_state.
3439 (annotate_frames_invalid): Likewise.
3440
3441 2019-06-14 Tom Tromey <tromey@adacore.com>
3442
3443 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
3444 allow assignment to an internalvar.
3445
3446 2019-06-14 Tom Tromey <tromey@adacore.com>
3447
3448 * ada-lex.l: Allow "_" in attribute names.
3449
3450 2019-06-14 Tom Tromey <tromey@adacore.com>
3451
3452 PR gdb/24653:
3453 * regcache.c (registers_changed): Don't call alloca.
3454 * top.c (execute_command): Don't call alloca.
3455
3456 2019-06-13 Pedro Alves <palves@redhat.com>
3457
3458 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
3459 'expression'. When parsing an expression, error out if there's
3460 junk after "unlimited".
3461 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
3462 (do_set_command): Adjust calls to is_unlimited_literal.
3463
3464 2019-06-13 Pedro Alves <palves@redhat.com>
3465
3466 * compile/compile.c (make_compile_options_def_group): Add braces
3467 around array_view initializer.
3468 * thread.c (make_thread_apply_all_options_def_group)
3469 (make_thread_apply_all_options_def_group): Likewise.
3470
3471 2019-06-13 Pedro Alves <palves@redhat.com>
3472
3473 * NEWS (New commands): Mention "maint test-options
3474 require-delimiter", "maint test-options unknown-is-error", "maint
3475 test-options unknown-is-operand" and "maint show
3476 test-options-completion-result".
3477 (New command options, command completion): New section.
3478 (Completion improvements): New section.
3479 Mention that you can abbreviate "unlimited".
3480
3481 2019-06-13 Pedro Alves <palves@redhat.com>
3482
3483 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
3484 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
3485 * unittests/cli-utils-selftests.c (test_parse_flags)
3486 (test_parse_flags_qcs): Delete.
3487 (test_cli_utils): Don't call deleted functions.
3488
3489 2019-06-13 Pedro Alves <palves@redhat.com>
3490
3491 * thread.c: Include "cli/cli-option.h".
3492 (tp_array_compar_ascending): Global.
3493 (tp_array_compar): Delete function.
3494 (tp_array_compar_ascending, tp_array_compar_descending): New
3495 functions.
3496 (ascending_option_def, qcs_flag_option_def)
3497 (thr_qcs_flags_option_defs)
3498 (make_thread_apply_all_options_def_group)
3499 (make_thread_apply_options_def_group): New.
3500 (thread_apply_all_command): Use gdb::option::process_options.
3501 (thread_apply_command_completer)
3502 (thread_apply_all_command_completer): New.
3503 (thread_apply_command): Use gdb::option::process_options.
3504 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
3505 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
3506 to generate help text of "thread apply". Adjust "taas"'s help.
3507 * tid-parse.c (tid_range_parser::in_thread_range): New method.
3508 * tid-parse.h (tid_range_parser::in_thread_range): New method.
3509
3510 2019-06-13 Pedro Alves <palves@redhat.com>
3511
3512 * thread.c (thread_apply_command): Check for invalid TID with
3513 isdigit instead of !isalpha.
3514
3515 2019-06-13 Pedro Alves <palves@redhat.com>
3516
3517 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
3518 (validate_flags_qcs): New.
3519 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
3520 (validate_flags_qcs): Declare.
3521 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
3522 (make_frame_apply_options_def_group): New.
3523 (frame_apply_command_count): Process options with
3524 gdb::option::process_options.
3525 (frame_apply_completer): New.
3526 (frame_apply_level_completer, frame_apply_all_completer)
3527 (frame_apply_completer): New.
3528 (_initialize_stack): Update help of "frame apply", "frame apply
3529 level", "frame apply all" and "faas" to mention supported options
3530 and install command completers.
3531 * stack.h (frame_apply_all_completer): Declare.
3532 * thread.c: Include "stack.h".
3533 (tfaas_command): Add "--".
3534 (_initialize_thread): Update help "tfaas" to mention supported
3535 options and install command completer.
3536
3537 2019-06-13 Pedro Alves <palves@redhat.com>
3538
3539 * completer.c (complete_nested_command_line): New.
3540 (gdb_completion_word_break_characters_throw): Add assertion.
3541 * completer.h (complete_nested_command_line): Declare.
3542
3543 2019-06-13 Pedro Alves <palves@redhat.com>
3544
3545 * stack.c (parse_backtrace_qualifiers): New.
3546 (backtrace_command): Use it.
3547 (backtrace_command_completer): Complete on qualifiers.
3548
3549 2019-06-13 Pedro Alves <palves@redhat.com>
3550
3551 * frame.c: Include "cli/cli-option.h.
3552 (user_set_backtrace_options): New.
3553 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
3554 Delete.
3555 (get_prev_frame): Adjust.
3556 (boolean_option_def, uinteger_option_def)
3557 (set_backtrace_option_defs): New.
3558 (_initialize_frame): Adjust and use
3559 gdb::option::add_setshow_cmds_for_options to install "set
3560 backtrace past-main" and "set backtrace past-entry".
3561 * frame.h: Include "cli/cli-option.h".
3562 (struct frame_print_options): Forward declare.
3563 (print_frame_arguments_all, print_frame_arguments_scalars)
3564 (print_frame_arguments_none): Declare.
3565 (print_entry_values): Delete declaration.
3566 (struct frame_print_options, user_frame_print_options): New.
3567 (struct set_backtrace_options): New.
3568 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
3569 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
3570 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
3571 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
3572 (list_args_or_locals): Add frame_print_options parameter.
3573 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
3574 * python/py-framefilter.c (enumerate_args): Pass down
3575 USER_FRAME_PRINT_OPTIONS.
3576 * stack.c: Include "cli/cli-option.h".
3577 (print_frame_arguments_all, print_frame_arguments_scalars)
3578 (print_frame_arguments_none): Declare.
3579 (print_raw_frame_arguments, print_entry_values): Delete.
3580 (user_frame_print_options): New.
3581 (boolean_option_def, enum_option_def, frame_print_option_defs):
3582 New.
3583 (struct backtrace_cmd_options): New.
3584 (bt_flag_option_def): New.
3585 (backtrace_command_option_defs): New.
3586 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
3587 (print_frame_arg, read_frame_arg, print_frame_args)
3588 (print_frame_info, print_frame): Add frame_print_options parameter
3589 and use it.
3590 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
3591 (backtrace_command_1): Add frame_print_options and
3592 backtrace_cmd_options parameters and use them.
3593 (make_backtrace_options_def_group): New.
3594 (backtrace_command): Process command options with
3595 gdb::option::process_options.
3596 (backtrace_command_completer): New.
3597 (_initialize_stack): Extend "backtrace"'s help to mention
3598 supported options. Install completer for "backtrace".
3599 Install some settings commands with add_setshow_cmds_for_options.
3600
3601 2019-06-13 Pedro Alves <palves@redhat.com>
3602
3603 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
3604 and that "set/show print raw frame-arguments" are now deprecated.
3605
3606 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
3607 command.
3608 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
3609 * stack.c (_initialize_stack): Install "set/show print
3610 raw-frame-arguments", and deprecate "set/show print raw
3611 frame-arguments".
3612 * valprint.c (_initialize_valprint): Deprecate "set/show print
3613 raw".
3614
3615 2019-06-13 Pedro Alves <palves@redhat.com>
3616
3617 * compile/compile.c (struct compile_options): New.
3618 (compile_flag_option_def, compile_command_option_defs)
3619 (make_compile_options_def_group): New.
3620 (compile_file_command): Handle options with
3621 gdb::option::process_options.
3622 (compile_file_command_completer): New function.
3623 (compile_code_command): Handle options with
3624 gdb::option::process_options.
3625 (compile_code_command_completer): New function.
3626 (_initialize_compiler): Install completers for "compile code" and
3627 "compile file". Mention available options in "compile code" and
3628 "compile code"'s help.
3629 * completer.c (advance_to_completion_word): New, factored out from
3630 ...
3631 (advance_to_expression_complete_word_point): ... this.
3632 (advance_to_filename_complete_word_point): New.
3633 * completer.h (advance_to_filename_complete_word_point): New
3634 declaration.
3635
3636 2019-06-13 Pedro Alves <palves@redhat.com>
3637
3638 * compile/compile.c: Include "cli/cli-option.h".
3639 (compile_print_value): Scope data pointer is now a
3640 value_print_options pointer; adjust.
3641 (compile_print_command): Process options. Scope data pointer is
3642 now a value_print_options pointer; adjust.
3643 (_initialize_compile): Update "compile print"'s help to include
3644 supported options. Install a completer for "compile print".
3645 * cp-valprint.c (show_vtblprint, show_objectprint)
3646 (show_static_field_print): Delete.
3647 (_initialize_cp_valprint): Don't install "set print
3648 static-members", "set print vtbl", "set print object" here.
3649 * printcmd.c: Include "cli/cli-option.h" and
3650 "common/gdb_optional.h".
3651 (print_command_parse_format): Rework to fill in a
3652 value_print_options instead of a format_data.
3653 (print_value): Change parameter type from format_data pointer to
3654 value_print_options reference. Adjust.
3655 (print_command_1): Process options. Adjust to pass down a
3656 value_print_options.
3657 (print_command_completer): New.
3658 (_initialize_printcmd): Install print_command_completer as
3659 handle_brkchars completer for the "print" command. Update
3660 "print"'s help to include supported options.
3661 * valprint.c: Include "cli/cli-option.h".
3662 (show_vtblprint, show_objectprint, show_static_field_print): Moved
3663 here from cp-valprint.c.
3664 (boolean_option_def, uinteger_option_def)
3665 (value_print_option_defs, make_value_print_options_def_group):
3666 New. Use gdb::option::add_setshow_cmds_for_options to install
3667 "set print elements", "set print null-stop", "set print repeats",
3668 "set print pretty", "set print union", "set print array", "set
3669 print address", "set print symbol", "set print array-indexes".
3670 * valprint.h: Include <string> and "cli/cli-option.h".
3671 (make_value_print_options_def_group): Declare.
3672 (print_value): Change parameter type from format_data pointer to
3673 value_print_options reference.
3674 (print_command_completer): Declare.
3675
3676 2019-06-13 Pedro Alves <palves@redhat.com>
3677
3678 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
3679 (COMMON_SFILES): Add maint-test-settings.c.
3680 * cli/cli-decode.c (boolean_enums): New global, factored out from
3681 ...
3682 (add_setshow_boolean_cmd): ... here.
3683 * cli/cli-decode.h (boolean_enums): Declare.
3684 * cli/cli-option.c: New file.
3685 * cli/cli-option.h: New file.
3686 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
3687 factored out from ...
3688 (parse_cli_boolean_value(const char *)): ... this.
3689 (is_unlimited_literal): Change parameter type to pointer to
3690 pointer. Adjust and advance ARG pointer.
3691 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
3692 (parse_cli_var_enum): New, factored out from ...
3693 (do_set_command): ... this. Adjust.
3694 * cli/cli-setshow.h (parse_cli_boolean_value)
3695 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
3696 (parse_cli_var_enum): Declare.
3697 * cli/cli-utils.c: Include "cli/cli-option.h".
3698 (get_ulongest): New.
3699 * cli/cli-utils.h (get_ulongest): Declare.
3700 (check_for_argument): New overloads.
3701 * maint-test-options.c: New file.
3702
3703 2019-06-13 Pedro Alves <palves@redhat.com>
3704
3705 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
3706 parse a range if "-" is at the end of the string.
3707
3708 2019-06-13 Pedro Alves <palves@redhat.com>
3709
3710 * cli/cli-setshow.c (parse_auto_binary_operation)
3711 (parse_cli_boolean_value): Don't allow "o".
3712
3713 2019-06-13 Pedro Alves <palves@redhat.com>
3714
3715 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
3716 * NEWS: Mention maint test-settings KIND.
3717 * maint-test-settings.c: New file.
3718
3719 2019-06-13 Pedro Alves <palves@redhat.com>
3720
3721 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
3722 completer.
3723 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
3724 "set" completers.
3725
3726 2019-06-13 Pedro Alves <palves@redhat.com>
3727
3728 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
3729 after item.
3730
3731 2019-06-13 Pedro Alves <palves@redhat.com>
3732
3733 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
3734
3735 2019-06-13 Pedro Alves <palves@redhat.com>
3736
3737 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
3738 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
3739 call.
3740 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
3741 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
3742 calls.
3743 (check_for_argument): Skip spaces after argument.
3744
3745 2019-06-13 Pedro Alves <palves@redhat.com>
3746
3747 * thread.c (thread_apply_command): Adjust TID parsing.
3748 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
3749 detected before end of string.
3750 (tid_is_in_list): Error out if LIST is invalid.
3751
3752 2019-06-13 Pedro Alves <palves@redhat.com>
3753
3754 * completer.c (complete_line_internal_1): Rewind completion word
3755 point.
3756 (completion_tracker::advance_custom_word_point_by): Change
3757 parameter type to int.
3758 * completer.h (completion_tracker::advance_custom_word_point_by):
3759 Likewise.
3760
3761 2019-06-13 Pedro Alves <palves@redhat.com>
3762
3763 * completer.c (advance_to_completion_word): Handle delimiters.
3764
3765 2019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
3766
3767 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
3768
3769 2019-06-11 Tom Tromey <tom@tromey.com>
3770
3771 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
3772 (xmalloc_failed): Move to alloc.c.
3773 * alloc.c: New file.
3774 * Makefile.in (COMMON_SFILES): Add alloc.c.
3775
3776 2019-06-11 Tom Tromey <tom@tromey.com>
3777
3778 * nat/linux-waitpid.c: Don't include server.h.
3779 (linux_debug): Remove.
3780 (my_waitpid): Update.
3781
3782 2019-06-11 Tom Tromey <tromey@adacore.com>
3783
3784 * infcall.c (_initialize_infcall): Remove trailing newline from
3785 help.
3786 * user-regs.c (_initialize_user_regs): Remove trailing newline
3787 from help.
3788 * typeprint.c (_initialize_typeprint): Remove trailing newline
3789 from help.
3790 * reverse.c (_initialize_reverse): Remove trailing newlines from
3791 help.
3792 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
3793 from help.
3794 * language.c (add_set_language_command): Remove trailing newline
3795 from help.
3796 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
3797 help.
3798 * disasm.c (_initialize_disasm): Remove trailing newline from
3799 help.
3800 * top.c (init_main): Remove trailing newline from help.
3801 * interps.c (_initialize_interpreter): Remove trailing newline
3802 from help.
3803 * btrace.c (_initialize_btrace): Remove trailing newlines from
3804 help.
3805 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
3806 from help.
3807 * python/python.c (_initialize_python): Remove trailing newline
3808 from help.
3809 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
3810 help.
3811 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
3812 from help. Reformat some text.
3813 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
3814 from help.
3815 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
3816 newline from help.
3817
3818 2019-06-11 Tom Tromey <tromey@adacore.com>
3819
3820 * darwin-nat.c (darwin_decode_exception_message)
3821 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
3822
3823 2019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
3824
3825 * valops.c (value_slice): Check for not allocated or not
3826 associated values.
3827
3828 2019-06-10 Tom de Vries <tdevries@suse.de>
3829
3830 PR gdb/24618
3831 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
3832 sure an empty slot (defined by a 32-bit zero pair) is recognized as
3833 invalid.
3834
3835 2019-06-10 Tom de Vries <tdevries@suse.de>
3836
3837 PR gdb/24611
3838 * linespec.c (linespec_lexer_lex_string): Remove incorrect
3839 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
3840
3841 2019-06-10 Tom de Vries <tdevries@suse.de>
3842
3843 PR symtab/24545
3844 * symtab.c (struct demangled_name_entry): Add language field.
3845 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
3846 static minimal symbol". Set and use language field.
3847
3848 2019-06-10 Tom Tromey <tromey@adacore.com>
3849
3850 * ada-lang.c (_initialize_ada_language): Update help text.
3851
3852 2019-06-10 Tom Tromey <tromey@adacore.com>
3853
3854 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
3855 with a newline.
3856 * guile/guile.c (handle_boot_error): Don't end warning with a
3857 newline.
3858 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
3859 warning with a newline.
3860 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
3861 newline.
3862 (s12z_frame_cache): Likewise.
3863 * dwarf-index-cache.c (index_cache::store): Don't end warning with
3864 a newline.
3865 * solib-svr4.c (disable_probes_interface): Don't end warning with
3866 a newline.
3867 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
3868 newline.
3869 * python/python.c (do_finish_initialization): Don't end warning
3870 with a newline.
3871
3872 2019-06-10 Tom Tromey <tom@tromey.com>
3873
3874 * python/py-breakpoint.c (gdbpy_breakpoint_created)
3875 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
3876 gdbpy_enter.
3877
3878 2019-06-10 Tom Tromey <tromey@adacore.com>
3879
3880 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
3881 data.
3882 (elf_new_init): Don't call stabsread_new_init.
3883 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
3884 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
3885 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
3886
3887 2019-06-10 Tom de Vries <tdevries@suse.de>
3888
3889 PR symtab/16264
3890 PR symtab/24517
3891 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
3892
3893 2019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
3894
3895 * source.c (find_and_open_source): Also rewrite relative file
3896 names.
3897
3898 2019-04-26 Amos Bird <amosbird@gmail.com>
3899
3900 * annotate.c (annotate_thread_exited): Add "thread-exited"
3901 annotation.
3902
3903 2019-06-06 Tom Tromey <tromey@adacore.com>
3904
3905 * maint.h (class scoped_command_stats): Use
3906 DISABLE_COPY_AND_ASSIGN.
3907 <print_time>: New method.
3908 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
3909 print_time.
3910 (scoped_command_stats::print_time): New method.
3911
3912 2019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3913
3914 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
3915 instructions of lengths 6 or 8 bytes.
3916
3917 2019-06-04 Pedro Alves <palves@redhat.com>
3918
3919 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
3920
3921 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
3922 * breakpoint.c (condition_completer): Likewise.
3923 * cli/cli-dump.c (scan_expression): Likewise.
3924 * common/filestuff.c (mkdir_recursive): Likewise.
3925 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
3926 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
3927 (gdb_abspath): Likewise.
3928 * compile/compile-cplus-types.c
3929 (compile_cplus_instance::decl_name): Likewise.
3930 * completer.c (complete_explicit_location):
3931 (signal_completer, reg_or_group_completer_1): Likewise.
3932 * cp-support.c (cp_remove_params_if_any): Likewise.
3933 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
3934 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
3935 * infcmd.c (strip_bg_char): Likewise.
3936 * linespec.c (copy_token_string): Likewise.
3937 * mi/mi-main.c (output_cores): Likewise.
3938 * psymtab.c (psymtab_search_name):
3939 * symfile.c (test_set_ext_lang_command): Likewise.
3940 * target.c (target_fileio_read_stralloc): Likewise.
3941 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
3942 * value.c (complete_internalvar): Likewise.
3943
3944 2019-06-04 Christian Biesinger <cbiesinger@google.com>
3945
3946 Add objfile property to gdb.Type.
3947 * NEWS: Mention Python API addition.
3948 * python/py-type.c (typy_get_objfile): New method.
3949
3950 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3951
3952 * NEWS: Mention the new set|show style [title|highlight].
3953 Mention changes to "show style", "help" and "apropos".
3954
3955 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3956
3957 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
3958 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
3959 instead of print_help_for_command.
3960 (print_doc_of_command): New function.
3961 (help_list): Add 'apropos -v word' suggestion.
3962 (print_help_for_command): Style the command name using title style.
3963 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
3964 (_initialize_cli_cmds): Describe -v in apropos_command help.
3965
3966 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3967
3968 * cli/cli-style.h (cli_style_option): Add name in constructor,
3969 add m_name class member, add constructor with intensity,
3970 add name class function.
3971 (cli_style_option::add_setshow_commands): Remove name argument.
3972 (highlight_style, title_style): New styles.
3973 * cli/cli-style.c (do_show): New function that shows a style
3974 characteristic styling the style name with itself.
3975 (set_style_name): New function.
3976 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
3977 Update all callers according to the changes in cli/cli-style.h.
3978 * utils.h (fputs_highlighted): New function.
3979 * utils.c (fputs_highlighted): Likewise.
3980
3981 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3982
3983 * NEWS: Mention new pipe command and new convenience variables.
3984
3985 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3986
3987 * cli/cli-cmds.c (pipe_command): New function.
3988 (_initialize_cli_cmds): Call add_com for pipe_command.
3989 Define | as an alias for pipe.
3990 (exit_status_set_internal_vars): New function.
3991 (shell_escape): Call exit_status_set_internal_vars.
3992 cli/cli-decode.c (find_command_name_length): Recognize | as
3993 a single character command.
3994
3995 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3996
3997 * gdbcmd.h (execute_command_to_ui_file): New declaration.
3998 top.c (execute_command_to_ui_file): New function, mostly a copy
3999 of execute_command_to_string.
4000 (execute_command_to_string): Implement by calling
4001 execute_command_to_ui_file.
4002
4003 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4004
4005 * top.h (saved_command_line): Remove declaration.
4006 * top.c (previous_saved_command_line, previous_repeat_arguments):
4007 New variables.
4008 (saved_command_line): Make static, define together with other
4009 'repeat variables'.
4010 (dont_repeat): Clear repeat_arguments.
4011 (repeat_previous, get_saved_command_line, save_command_line):
4012 New functions.
4013 (gdb_init): Initialize saved_command_line
4014 and previous_saved_command_line.
4015 * main.c (captured_main_1): Remove saved_command_line initialization.
4016 * event-top.c (handle_line_of_input): Update to use
4017 the new 'repeat' related functions instead of direct access to
4018 saved_command_line.
4019 * command.h (repeat_previous, get_saved_command_line,
4020 save_command_line): New declarations.
4021 (dont_repeat): Add comment.
4022
4023 2019-05-30 Tom Tromey <tromey@adacore.com>
4024
4025 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
4026 Fix comment.
4027 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
4028
4029 2019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
4030
4031 PR cli/24587
4032 * completer.c (complete): Initialize variable word.
4033
4034 2019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
4035
4036 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
4037 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
4038 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
4039 'body' is NULL to the outter 'if', protecting the '!is_define'
4040 situation as well.
4041
4042 2019-05-29 Tom Tromey <tromey@adacore.com>
4043
4044 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
4045 (dwarf_unknown): New function.
4046 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
4047 (dwarf_type_encoding_name): Use dwarf_unknown.
4048
4049 2019-05-29 Tom Tromey <tromey@adacore.com>
4050
4051 PR c++/20020:
4052 * cp-valprint.c (cp_print_value_fields): Call
4053 cp_print_static_field inside "try".
4054
4055 2019-05-29 Tom Tromey <tromey@adacore.com>
4056
4057 * inflow.c (struct terminal_info): Add default operator=.
4058 * configure: Rebuild.
4059 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
4060 -Wdeprecated-copy-dtor, -Wredundant-move.
4061
4062 2019-05-29 Tom Tromey <tromey@adacore.com>
4063
4064 * NEWS: Add entry.
4065 * infcmd.c (print_return_value_1): Handle finish_print
4066 option.
4067 (show_print_finish): New function.
4068 (_initialize_infcmd): Add "set/show print finish" commands.
4069 * valprint.c (user_print_options): Initialize new member.
4070 * valprint.h (struct value_print_options) <finish_print>: New
4071 member.
4072
4073 2019-05-28 Tom Tromey <tromey@adacore.com>
4074
4075 * ada-lang.c (ada_remove_Xbn_suffix)
4076 (find_old_style_renaming_symbol)
4077 (parse_old_style_renaming): Remove.
4078 (ada_find_renaming_symbol): Don't call
4079 find_old_style_renaming_symbol.
4080 (ada_is_renaming_symbol): Rename from
4081 ada_find_renaming_symbol. Remove "block" parameter. Return
4082 bool. Now static.
4083 (ada_read_var_value): Update and simplify.
4084 * ada-exp.y (write_var_or_type): Remove old code.
4085
4086 2019-05-28 Alan Hayward <alan.hayward@arm.com>
4087
4088 * event-top.c: Remove include comment.
4089 * inflow.c (class scoped_ignore_sigttou): Move from here...
4090 * inflow.h (class scoped_ignore_sigttou): ...to here.
4091 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
4092 * top.c: Remove include comment.
4093
4094 2019-05-27 Tom Tromey <tom@tromey.com>
4095
4096 * NEWS: Fix typo.
4097
4098 2019-05-22 Tom Tromey <tromey@adacore.com>
4099
4100 * target.c (target_follow_exec): Constify parameter.
4101 * target-delegates.c: Rebuild.
4102 * remote.c (remote_target::follow_exec): Constify parameter.
4103 * infrun.c (follow_exec): Constify parameter.
4104 * target.h (struct target_ops) <follow_exec>: Constify parameter.
4105 (target_follow_exec): Likewise.
4106
4107 2019-05-22 Alan Hayward <alan.hayward@arm.com>
4108
4109 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
4110 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
4111
4112 2019-05-22 Alan Hayward <alan.hayward@arm.com>
4113
4114 * NEWS: Add debugredirect and testsuite sections.
4115
4116 2019-05-22 Simon Cook <simon.cook@embecosm.com>
4117
4118 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
4119 target descriptions using exclusively floating point register name
4120 aliases.
4121
4122 2019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
4123
4124 PR gdb/18644:
4125 * f-lang.c (build_fortran_types): Handle the case where
4126 gdbarch_floatformat_for_type returns a nullptr.
4127
4128 2019-05-21 Tom de Vries <tdevries@suse.de>
4129
4130 PR cli/24587
4131 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
4132
4133 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
4134
4135 PR gdb/18644:
4136 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
4137 16-byte floats.
4138 * i386-tdep.c (i386_floatformat_for_type): Use
4139 floatformats_ia64_quad for the 16-byte floating point component
4140 within a fortran 32-byte complex number.
4141
4142 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
4143
4144 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
4145 delete default constructor.
4146 (find_partial_die): Update to return const struct.
4147 (partial_die_parent_scope): Move variable declaration into scope
4148 of its use and change its type to auto.
4149 (guess_partial_die_structure_name): Likewise.
4150 (partial_die_info::fixup): Likewise.
4151
4152 2019-05-17 Tom Tromey <tromey@adacore.com>
4153
4154 * source.c (find_and_open_source): Remove cast.
4155
4156 2019-05-17 Tom Tromey <tromey@adacore.com>
4157
4158 * annotate.c (annotate_source): Make "filename" const.
4159 * annotate.h (annotate_source): Use const.
4160
4161 2019-05-17 Alan Hayward <alan.hayward@arm.com>
4162
4163 * disasm.c (set_disassembler_options): Send errors to stderr.
4164
4165 2019-05-17 Alan Hayward <alan.hayward@arm.com>
4166
4167 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
4168 (cli_interp_base::set_logging): Check debug_redirect.
4169 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
4170 * cli/cli-logging.c (debug_redirect): Add static variable.
4171 (pop_output_files): Add default param.
4172 (handle_redirections): Print debug setting.
4173 (show_logging_command): Likewise.
4174 (_initialize_cli_logging): Add debugredirect command.
4175 * interps.c (current_interp_set_logging): Add debug_redirect
4176 parameter.
4177 * interps.h (set_logging): Add debug_redirect parameter.
4178 (current_interp_set_logging): Likewise.
4179 * mi/mi-common.h: Likewise.
4180 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
4181
4182 2019-05-17 Alan Hayward <alan.hayward@arm.com>
4183 Tom Tromey <tromey@adacore.com>
4184
4185 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
4186 directly.
4187 * cli/cli-interp.h (make_logging_output): Remove declaration.
4188 * cli/cli-logging.c (make_logging_output): Remove function.
4189 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
4190 directly.
4191 * ui-file.c (tee_file::tee_file): Remove bools.
4192 (tee_file::~tee_file): Remove deletes.
4193 * ui-file.h (tee_file): Remove bools.
4194
4195 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
4196
4197 * mi/mi-cmds.h (mi_cmd_complete): New function.
4198 * mi/mi-main.c (mi_cmd_complete): Likewise.
4199 * mi/mi-cmds.c: Define new MI command -complete.
4200 * NEWS: Mention new -complete command.
4201
4202 2019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
4203
4204 * completer.h (complete): New function.
4205 * completer.c (complete): Likewise.
4206 * cli/cli-cmds.c: (complete_command): Update to use new complete()
4207 function defined in completer.h.
4208
4209 2019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
4210
4211 * MAINTAINERS (Write After Approval): Add myself.
4212
4213 2019-05-17 Tom de Vries <tdevries@suse.de>
4214
4215 PR gdb/24094
4216 * dwarf2read.c (struct cu_partial_die_info): New struct.
4217 (find_partial_die): Return cu_partial_die_info.
4218 (partial_die_parent_scope, guess_partial_die_structure_name)
4219 (partial_die_info::fixup): Handle new return type of find_partial_die.
4220
4221 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4222
4223 * stap-probe.c (stap_parse_register_operand): Make "regname" an
4224 "std::string", simplifying the algorithm.
4225
4226 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4227
4228 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
4229 (stap_static_probe_ops::get_probes): Likewise.
4230
4231 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4232
4233 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
4234 '-')" and "else if".
4235 (stap_parse_single_operand): Join checks for
4236 "gdbarch_stap_parse_special_token_p" and
4237 "gdbarch_stap_parse_special_token" in the same "if" statement.
4238 Invert check when verifying for operation on register
4239 displacement.
4240
4241 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4242
4243 * stap-probe.c (stap_get_opcode): Update comment.
4244 (stap_get_expected_argument_type): Likewise.
4245 (handle_stap_probe): Likewise.
4246
4247 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4248
4249 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
4250 return type to 'bool'. Adjust comment. Use 'bool' when
4251 appropriate.
4252 (i386_stap_parse_special_token_three_arg_disp): Likewise.
4253 * stap-probe.c (stap_parse_argument_1): Likewise.
4254 (stap_is_operator): Likewise.
4255 (stap_is_generic_prefix): Likewise.
4256 (stap_is_register_prefix): Likewise.
4257 (stap_is_register_indirection_prefix): Likewise.
4258 (stap_is_integer_prefix): Likewise.
4259 (stap_generic_check_suffix): Likewise.
4260 (stap_check_integer_suffix): Likewise.
4261 (stap_check_register_suffix): Likewise.
4262 (stap_check_register_indirection_suffix): Likewise.
4263 (stap_parse_register_operand): Likewise.
4264 (stap_parse_single_operand): Likewise.
4265 (stap_parse_argument_1): Likewise.
4266 (stap_probe::get_argument_count): Likewise.
4267 (stap_is_operator): Likewise.
4268
4269 2019-05-16 Tom Tromey <tromey@adacore.com>
4270
4271 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
4272 keyword to foreach.
4273
4274 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
4275
4276 * linux-thread-db.c (try_thread_db_load_1): Change return type
4277 to bool.
4278 (try_thread_db_load): Likewise.
4279 (try_thread_db_load_from_pdir_1): Likewise.
4280 (try_thread_db_load_from_pdir): Likewise.
4281 (try_thread_db_load_from_sdir): Likewise.
4282 (try_thread_db_load_from_dir): Likewise.
4283 (thread_db_load_search): Likewise.
4284 (has_libpthread): Likewise.
4285 (thread_db_load): Likewise.
4286
4287 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
4288
4289 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
4290 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
4291 NULL, and complain/return if that's the case.
4292
4293 2019-05-15 John Darrington <john@darrington.wattle.id.au>
4294
4295 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
4296 (advance, posn, abstract_read_memory): New functions.
4297 [struct mem_read_abstraction]: New struct.
4298 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
4299
4300 2019-05-14 Tom Tromey <tromey@adacore.com>
4301
4302 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
4303 value is not lval_memory.
4304
4305 2019-05-14 Tom Tromey <tromey@adacore.com>
4306
4307 * solib.c (info_sharedlibrary_command): Style the file name.
4308
4309 2019-05-14 Alan Hayward <alan.hayward@arm.com>
4310
4311 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
4312 (aarch64_vnv_type): Likewise.
4313 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
4314 * common/tdesc.c: Likewise.
4315 * common/tdesc.h (enum tdesc_type_kind): Likewise.
4316 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
4317 * features/aarch64-fpu.xml: Add ieee half view.
4318 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
4319 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
4320 * gdbtypes.h (struct builtin_type): Likewise.
4321 (struct objfile_type): Likewise.
4322
4323 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
4324
4325 * language.c (language_sniff_from_mangled_name): Fix "langauge"
4326 typo.
4327 * location.h (string_to_event_location): Likewise.
4328
4329 2019-05-11 Joel Brobecker <brobecker@adacore.com>
4330
4331 GDB 8.3 released.
4332
4333 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
4334
4335 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
4336 New variable declaration.
4337 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
4338 New variable.
4339 (print_one_breakpoint): Use ui_out::test_flags and new global
4340 variable to compute use_fixed_output.
4341 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
4342 Remove.
4343 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
4344 (mi_multi_location_breakpoint_output_fixed): Remove.
4345 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
4346 new variable.
4347 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
4348 fix_multi_location_breakpoint_output flag if version >= 3.
4349 * ui-out.h (enum ui_out_flag)
4350 <fix_multi_location_breakpoint_output>: New enumerator.
4351
4352 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
4353
4354 * contrib/cc-with-tweaks.sh: Validate dwz's work.
4355
4356 2019-05-10 Tom Tromey <tromey@adacore.com>
4357
4358 * ada-lang.c (catch_ada_completer): New function.
4359 (_initialize_ada_language): Use it.
4360
4361 2019-05-10 Tom Tromey <tromey@adacore.com>
4362
4363 * thread.c (print_thread_info): Make "requested_threads" const.
4364 * gdbthread.h (print_thread_info): Make "requested_threads"
4365 const.
4366 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
4367 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
4368
4369 2019-05-08 Tom Tromey <tom@tromey.com>
4370
4371 * gdbtypes.c (objfile_type_data): Change type.
4372 (objfile_type, _initialize_gdbtypes): Update.
4373
4374 2019-05-08 Tom Tromey <tom@tromey.com>
4375
4376 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
4377 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
4378 (_initialize_dwarf2_frame): Update.
4379
4380 2019-05-08 Tom Tromey <tom@tromey.com>
4381
4382 * objc-lang.c (objc_objfile_data): Change type.
4383 (find_methods): Update.
4384 (_initialize_objc_lang): Remove.
4385
4386 2019-05-08 Tom Tromey <tom@tromey.com>
4387
4388 * stabsread.c (rs6000_builtin_type_data): Change type.
4389 (rs6000_builtin_type, _initialize_stabsread): Update.
4390
4391 2019-05-08 Tom Tromey <tom@tromey.com>
4392
4393 * mips-tdep.c (mips_pdr_data): Remove.
4394 (_initialize_mips_tdep): Update.
4395
4396 2019-05-08 Tom Tromey <tom@tromey.com>
4397
4398 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
4399 (hppa_init_objfile_priv_data, read_unwind_info)
4400 (find_unwind_entry, _initialize_hppa_tdep): Update.
4401
4402 2019-05-08 Tom Tromey <tom@tromey.com>
4403
4404 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
4405 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
4406 on obstack.
4407 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
4408
4409 2019-05-08 Tom Tromey <tom@tromey.com>
4410
4411 * mdebugread.c (basic_type_data): Change type.
4412 (basic_type, _initialize_mdebugread): Update.
4413
4414 2019-05-08 Tom Tromey <tom@tromey.com>
4415
4416 * common/gdb_unique_ptr.h (struct noop_deleter): New.
4417
4418 2019-05-08 Tom Tromey <tom@tromey.com>
4419
4420 * nto-tdep.c (nto_inferior_data_reg): Change type.
4421 (nto_inferior_data): Update.
4422 (nto_inferior_data_cleanup, nto_new_inferior_data)
4423 (_initialize_nto_tdep): Remove.
4424 * nto-tdep.h (struct nto_inferior_data): Add initializers.
4425
4426 2019-05-08 Tom Tromey <tom@tromey.com>
4427
4428 * ada-lang.c (struct ada_inferior_data): Add initializers.
4429 (ada_inferior_data): Change type.
4430 (ada_inferior_data_cleanup): Remove.
4431 (get_ada_inferior_data, ada_inferior_exit)
4432 (struct ada_pspace_data): Add initializers, destructor.
4433 (ada_pspace_data_handle): Change type.
4434 (get_ada_pspace_data): Update.
4435 (ada_pspace_data_cleanup): Remove.
4436
4437 2019-05-08 Tom Tromey <tom@tromey.com>
4438
4439 * coffread.c (struct coff_symfile_info): Add initializers.
4440 (coff_objfile_data_key): Move lower. Change type.
4441 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
4442 Update.
4443 (coff_free_info): Remove.
4444
4445 2019-05-08 Tom Tromey <tom@tromey.com>
4446
4447 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
4448 (fbsd_pspace_data_handle): Move lower. Change type.
4449 (get_fbsd_pspace_data): Update.
4450 (fbsd_pspace_data_cleanup): Remove.
4451 (_initialize_fbsd_tdep): Update.
4452
4453 2019-05-08 Tom Tromey <tom@tromey.com>
4454
4455 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
4456 (get_ada_tasks_pspace_data): Update.
4457 (ada_tasks_pspace_data_cleanup): Remove.
4458 (_initialize_tasks): Update.
4459 (ada_tasks_inferior_data_handle): Change type.
4460 (get_ada_tasks_inferior_data): Update.
4461 (ada_tasks_inferior_data_cleanup): Remove.
4462 (struct ada_tasks_pspace_data): Add initializers.
4463
4464 2019-05-08 Tom Tromey <tom@tromey.com>
4465
4466 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
4467 * symfile-debug.c (debug_sym_get_probes): Change type.
4468 * stap-probe.c (handle_stap_probe):
4469 (stap_static_probe_ops::get_probes): Change type.
4470 * probe.h (class static_probe_ops) <get_probes>: Change type.
4471 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
4472 (parse_probes_in_pspace): Update.
4473 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
4474 Update.
4475 (any_static_probe_ops::get_probes): Change type.
4476 * elfread.c (elfread_data): New typedef.
4477 (probe_key): Change type.
4478 (elf_get_probes): Likewise. Update.
4479 (probe_key_free): Remove.
4480 (_initialize_elfread): Update.
4481 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
4482 Change type.
4483 (dtrace_process_dof_probe, dtrace_process_dof)
4484 (dtrace_static_probe_ops::get_probe): Change type.
4485
4486 2019-05-08 Tom Tromey <tom@tromey.com>
4487
4488 * xcoffread.c (struct xcoff_symfile_info): Rename from
4489 coff_symfile_info. Add initializers.
4490 (xcoff_objfile_data_key): Move lower. Change type.
4491 (XCOFF_DATA): Rewrite.
4492 (xcoff_free_info): Remove.
4493 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
4494 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
4495 (xcoff_initial_scan): Update.
4496
4497 2019-05-08 Tom Tromey <tom@tromey.com>
4498
4499 * solib-svr4.c (struct svr4_info): Add initializers and
4500 destructor.
4501 <probes_table>: Now an htab_up.
4502 (solib_svr4_pspace_data): Change type.
4503 (free_probes_table): Simplify.
4504 (~svr4_info): Rename from svr4_pspace_data_cleanup.
4505 (get_svr4_info, probes_table_htab_remove_objfile_probes)
4506 (probes_table_remove_objfile_probes, register_solib_event_probe)
4507 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
4508 (_initialize_svr4_solib): Update.
4509
4510 2019-05-08 Tom Tromey <tom@tromey.com>
4511
4512 * remote.c (remote_pspace_data): Change type.
4513 (remote_pspace_data_cleanup): Remove.
4514 (get_remote_exec_file, set_pspace_remote_exec_file)
4515 (_initialize_remote): Update.
4516
4517 2019-05-08 Tom Tromey <tom@tromey.com>
4518
4519 * breakpoint.c (breakpoint_objfile_key): Change type.
4520 (get_breakpoint_objfile_data): Update.
4521 (free_breakpoint_objfile_data): Remove.
4522 (_initialize_breakpoint): Update.
4523
4524 2019-05-08 Tom Tromey <tom@tromey.com>
4525
4526 * linux-tdep.c (struct linux_info): Add initializers.
4527 (linux_inferior_data): Move. Change type.
4528 (invalidate_linux_cache_inf): Update.
4529 (linux_inferior_data_cleanup): Remove.
4530 (get_linux_inferior_data, _initialize_linux_tdep): Update.
4531
4532 2019-05-08 Tom Tromey <tom@tromey.com>
4533
4534 * auxv.c (auxv_inferior_data): Move. Change type.
4535 (auxv_inferior_data_cleanup): Remove.
4536 (invalidate_auxv_cache_inf): Rewrite.
4537 (get_auxv_inferior_data, _initialize_auxv): Update.
4538
4539 2019-05-08 Tom Tromey <tom@tromey.com>
4540
4541 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
4542 (symfile_debug_objfile_data_key): Change type.
4543 (symfile_debug_installed, debug_qf_has_symbols)
4544 (debug_qf_find_last_source_symtab)
4545 (debug_qf_forget_cached_source_info)
4546 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
4547 (debug_qf_print_stats, debug_qf_dump)
4548 (debug_qf_expand_symtabs_for_function)
4549 (debug_qf_expand_all_symtabs)
4550 (debug_qf_expand_symtabs_with_fullname)
4551 (debug_qf_map_matching_symbols)
4552 (debug_qf_expand_symtabs_matching)
4553 (debug_qf_find_pc_sect_compunit_symtab)
4554 (debug_qf_map_symbol_filenames)
4555 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
4556 (debug_sym_new_init, debug_sym_init, debug_sym_read)
4557 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
4558 (debug_sym_read_linetable, debug_sym_relocate): Update.
4559 (symfile_debug_free_objfile): Remove.
4560 (install_symfile_debug_logging, _initialize_symfile_debug):
4561 Update.
4562
4563 2019-05-08 Tom Tromey <tom@tromey.com>
4564
4565 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
4566 allocate_on_obstack.
4567 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
4568 (get_dwarf2_per_objfile): Update.
4569 (set_dwarf2_per_objfile): Remove.
4570 (dwarf2_has_info, dwarf2_get_section_info): Update.
4571 (dwarf2_free_objfile): Remove.
4572 (_initialize_dwarf2_read): Update.
4573
4574 2019-05-08 Tom Tromey <tom@tromey.com>
4575
4576 * auto-load.c (struct auto_load_pspace_info): Add destructor and
4577 initializers.
4578 <unsupported_script_warning_printed,
4579 script_not_found_warning_printed>: Now bool.
4580 (auto_load_pspace_data): Change type.
4581 (~auto_load_pspace_info): Rename from
4582 auto_load_pspace_data_cleanup.
4583 (get_auto_load_pspace_data, init_loaded_scripts_info)
4584 (clear_section_scripts, maybe_print_unsupported_script_warning)
4585 (maybe_print_script_not_found_warning, _initialize_auto_load):
4586 Update.
4587
4588 2019-05-08 Tom Tromey <tom@tromey.com>
4589
4590 * objfiles.c (objfile_pspace_info): Add destructor and
4591 initializers.
4592 (objfiles_pspace_data): Change type.
4593 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
4594 (get_objfile_pspace_data): Update.
4595 (objfiles_bfd_data): Change type.
4596 (get_objfile_bfd_data): Update.
4597 (objfile_bfd_data_free, _initialize_objfiles): Remove.
4598
4599 2019-05-08 Tom Tromey <tom@tromey.com>
4600
4601 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
4602 Change type.
4603 (get_catch_syscall_inferior_data): Update.
4604 (catch_syscall_inferior_data_cleanup): Remove.
4605 (_initialize_break_catch_syscall): Update.
4606
4607 2019-05-08 Tom Tromey <tom@tromey.com>
4608
4609 * inflow.c (struct terminal_info): Add destructor and
4610 initializers.
4611 (inflow_inferior_data): Change type.
4612 (~terminal_info): Rename from inflow_inferior_data_cleanup.
4613 (get_inflow_inferior_data, inflow_inferior_exit)
4614 (swap_terminal_info, _initialize_inflow): Update.
4615
4616 2019-05-08 Tom Tromey <tom@tromey.com>
4617
4618 * target-dcache.c (target_dcache_cleanup): Remove.
4619 (target_dcache_aspace_key): Change type.
4620 (target_dcache_init_p, target_dcache_invalidate)
4621 (target_dcache_get, target_dcache_get_or_init)
4622 (_initialize_target_dcache): Update.
4623 * dcache.h (struct dcache_deleter): New.
4624
4625 2019-05-08 Tom Tromey <tom@tromey.com>
4626
4627 * symtab.c (struct symbol_cache): Add destructor and
4628 initializers.
4629 (symbol_cache_key): Move. Change type.
4630 (make_symbol_cache, free_symbol_cache): Remove.
4631 (get_symbol_cache): Update.
4632 (symbol_cache_cleanup): Remove.
4633 (ALL_PSPACES, symbol_cache_flush)
4634 (maintenance_print_symbol_cache)
4635 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
4636 Update.
4637
4638 2019-05-08 Tom Tromey <tom@tromey.com>
4639
4640 * symtab.c (struct main_info): Add destructor and initializers.
4641 (main_progspace_key): Move. Change type.
4642 (get_main_info): Update.
4643 (main_info_cleanup): Remove.
4644 (_initialize_symtab): Update.
4645
4646 2019-05-08 Tom Tromey <tom@tromey.com>
4647
4648 * registry.h (DECLARE_REGISTRY): Define the _key class.
4649
4650 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
4651
4652 * NEWS: Merge two 'New commands' sections.
4653
4654 2019-05-08 Joel Brobecker <brobecker@adacore.com>
4655
4656 * ada-valprint.c (ada_val_print_gnat_array): Remove language
4657 parameter and use Ada language definition instead.
4658 (ada_val_print_ptr): Remove unused language parameter.
4659 (ada_val_print_num): Remove language parameter and use Ada language
4660 definition instead.
4661 (ada_val_print_enum, ada_val_print_flt): Remove unused language
4662 parameter.
4663 (ada_val_print_struct_union, ada_val_print_ref): Remove language
4664 parameter and use Ada language definition instead.
4665 (ada_val_print_1): Update all ada_val_print_xxx calls.
4666 Remove language parameter.
4667 (ada_val_print): Update ada_val_print_1 call.
4668
4669 2019-05-08 Tom Tromey <tromey@adacore.com>
4670
4671 * remote.c (remote_hw_watchpoint_limit)
4672 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
4673 Now static.
4674
4675 2019-05-08 Tom Tromey <tromey@adacore.com>
4676
4677 * maint.c (_initialize_maint_cmds): Move initialization code to
4678 remote.c.
4679 (watchdog, show_watchdog): Move to remote.c.
4680 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
4681 "watchdog" static.
4682 (_initialize_remote): Move initialization code from maint.c.
4683 * defs.h (watchdog): Don't declare.
4684
4685 2019-05-08 Tom Tromey <tromey@adacore.com>
4686
4687 * tui/tui-interp.c: Include main.h.
4688 * interps.c: Include main.h.
4689 * main.h (interpreter_p): Declare.
4690 * defs.h (interpreter_p): Don't declare.
4691
4692 2019-05-08 Tom Tromey <tromey@adacore.com>
4693
4694 * dwarf2loc.c: Include dwarf2read.h.
4695 * defs.h (read_unsigned_leb128): Don't declare.
4696 * dwarf2read.h (read_unsigned_leb128): Declare.
4697
4698 2019-05-08 Tom Tromey <tromey@adacore.com>
4699
4700 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
4701 method.
4702
4703 2019-05-08 Tom Tromey <tromey@adacore.com>
4704
4705 * utils.c (fputs_maybe_filtered): Reset style after paging, even
4706 when no wrap column is set.
4707
4708 2019-05-08 Tom Tromey <tromey@adacore.com>
4709
4710 * c-lang.c (c_get_string): Handle non-C-style arrays.
4711
4712 2019-05-08 Tom Tromey <tromey@adacore.com>
4713
4714 * typeprint.c (print_offset_data::update): Print the bit offset,
4715 not the number of bits remaining.
4716
4717 2019-05-08 Tom Tromey <tromey@adacore.com>
4718
4719 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
4720 padding at end of comment.
4721
4722 2019-05-08 Tom Tromey <tromey@adacore.com>
4723
4724 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
4725 Compare main types.
4726
4727 2019-05-06 Tom Tromey <tom@tromey.com>
4728
4729 * common/scoped_mmap.c: Include common-defs.h.
4730 * common/scoped_mmap.h: Don't include config.h.
4731
4732 2019-05-04 Tom Tromey <tom@tromey.com>
4733
4734 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
4735 (struct aarch64_call_info): Add initializers.
4736 <si>: Now a std::vector.
4737 (pass_on_stack, aarch64_push_dummy_call): Update.
4738
4739 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
4740 Tom Tromey <tom@tromey.com>
4741
4742 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
4743 (ppc_threads): Now a std::vector. Now static.
4744 (hwdebug_find_thread_points_by_tid)
4745 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
4746 Update.
4747
4748 2019-05-04 Tom Tromey <tom@tromey.com>
4749
4750 * arc-tdep.c (arc_tdesc_init): Return bool.
4751
4752 2019-05-04 Tom Tromey <tom@tromey.com>
4753
4754 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
4755 Use gdb_assert_not_reached.
4756
4757 2019-05-04 Tom Tromey <tom@tromey.com>
4758
4759 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
4760 "false".
4761
4762 2019-05-04 Tom Tromey <tom@tromey.com>
4763
4764 * arc-tdep.c (arc_tdesc_init): Use bool.
4765
4766 2019-05-04 Tom Tromey <tom@tromey.com>
4767
4768 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
4769
4770 2019-05-04 Tom Tromey <tom@tromey.com>
4771
4772 * cli/cli-cmds.c (valid_command_p): Return bool.
4773
4774 2019-05-04 Tom Tromey <tom@tromey.com>
4775
4776 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
4777 * command.h (valid_user_defined_cmd_name_p): Channge return type.
4778
4779 2019-05-04 Raul Tambre <raul@tambre.ee>
4780
4781 * python/lib/gdb/prompt.py (_ExtendedPrompt)
4782 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
4783 operator for comparison.
4784
4785 2019-05-04 Tom Tromey <tom@tromey.com>
4786
4787 * psymtab.c (psymbol_name_matches, match_partial_symbol)
4788 (lookup_partial_symbol, print_partial_symbols)
4789 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
4790 (psymbol_compare): Update.
4791 (add_psymbol_to_bcache): Clear the entire psymbol.
4792 (maintenance_check_psymtabs): Update.
4793 * psympriv.h (struct partial_symbol): Don't derive from
4794 general_symbol_info.
4795 <obj_section, unrelocated_address, address,
4796 set_unrelocated_address>: Update.
4797 <ginfo>: New member.
4798 * dwarf-index-write.c (write_psymbols, debug_names::insert)
4799 (debug_names::write_psymbols): Update.
4800
4801 2019-05-04 Tom de Vries <tdevries@suse.de>
4802
4803 * contrib/cc-with-tweaks.sh: Support -n arg.
4804
4805 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4806
4807 * corelow.c (core_target::detach): Ensure frame cache and
4808 register caches are cleared.
4809 inferior.c (exit_inferior_1): Likewise.
4810
4811 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
4812 Tom Tromey <tom@tromey.com>
4813
4814 * dictionary.c (collate_pending_symbols_by_language): Remove
4815 "struct" from foreach.
4816 * symtab.c (lookup_global_symbol_from_objfile)
4817 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
4818 foreach.
4819 * ser-tcp.c (net_open): Remove "struct" from foreach.
4820 * objfiles.c (objfile_relocate, objfile_rebase)
4821 (objfile_has_symbols): Remove "struct" from foreach.
4822 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
4823 from foreach.
4824 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
4825 foreach.
4826 * darwin-nat.c (thread_info_from_private_thread_info): Remove
4827 "struct" from foreach.
4828 * ada-lang.c (create_excep_cond_exprs)
4829 (ada_exception_catchpoint_cond_string): Remove "struct" from
4830 foreach.
4831
4832 2019-05-03 Tom Tromey <tromey@adacore.com>
4833
4834 * ada-exp.y (convert_char_literal): Check suffix of each
4835 enumerator.
4836
4837 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
4838
4839 PR ada/21406:
4840 * ada-exp.y (yywrap): Don't define.
4841 * ada-lex.l (%option): Add noyywrap
4842 (yywrap): Remove.
4843
4844 2019-05-03 Eli Zaretskii <eliz@gnu.org>
4845
4846 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
4847 _WIN32_WINNT to the XP level, unless already defined to a higher
4848 level.
4849
4850 * unittests/parse-connection-spec-selftests.c:
4851 * ser-tcp.c:
4852 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
4853 override.
4854
4855 * symfile.c (find_separate_debug_file): Remove colon from the
4856 drive spec of DOS/Windows file names of the target, so that the
4857 file name produced from DEBUGDIR and the target's directory will
4858 be valid on DOS/Windows systems.
4859
4860 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
4861
4862 * rust-lang.c (val_print_struct): Handle printing structures
4863 containing strings.
4864
4865 2019-05-02 Tom Tromey <tromey@adacore.com>
4866
4867 * valarith.c (_initialize_valarith): Remove.
4868
4869 2019-05-01 Tom Tromey <tromey@adacore.com>
4870
4871 * ada-lang.c (ada_value_primitive_field): Treat more fields as
4872 bitfields.
4873
4874 2019-05-01 Tom Tromey <tromey@adacore.com>
4875
4876 * ada-lang.c (ada_value_assign): Correctly compute starting offset
4877 for big-endian copies.
4878
4879 2019-04-30 Ali Tamur <tamur@google.com>
4880 * gdb/dwarf2read.c (read_3_bytes): New declaration.
4881 (read_attribute_value): Added DW_FORM_strx1-4 cases.
4882 (read_3_bytes): New function.
4883
4884 2019-04-30 Joel Brobecker <brobecker@adacore.com>
4885
4886 * windows-nat.c (main_thread_id): Delete.
4887 (handle_output_debug_string): Replace main_thread_id by
4888 current_event.dwThreadId.
4889 (fake_create_process): Likewise.
4890 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
4891 Do not set main_thread_id.
4892 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
4893 current_event.dwThreadId.
4894 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
4895
4896 2019-04-30 Joel Brobecker <brobecker@adacore.com>
4897
4898 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
4899 Use current_event.dwThreadId instead of main_thread_id.
4900
4901 2019-04-30 Tom Tromey <tromey@adacore.com>
4902
4903 * ada-lang.c (ada_lookup_simple_minsyms): New function.
4904 (create_excep_cond_exprs): Iterate over program spaces.
4905 (ada_exception_catchpoint_cond_string): Examine all minimal
4906 symbols for exception types.
4907
4908 2019-04-30 Tom Tromey <tromey@adacore.com>
4909
4910 PR c++/24470:
4911 * dwarf2read.c (process_structure_scope): Handle case where type
4912 has template parameters but no symbol was created.
4913
4914 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
4915 Chris January <chris.january@arm.com>
4916
4917 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
4918 qualifier.
4919 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
4920
4921 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
4922
4923 * f-typeprint.c (f_print_type): Update rules for printing
4924 whitespace.
4925 (f_type_print_varspec_suffix): Likewise.
4926
4927 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
4928 Chris January <chris.january@arm.com>
4929
4930 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
4931 function arguments.
4932
4933 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
4934
4935 * f-lang.c (build_fortran_types): Change name of void type to
4936 lower case.
4937 * f-typeprint.c (f_type_print_base): Print the name of the void
4938 type, rather than a fixed string.
4939 * f-valprint.c (f_decorations): Use lower case void string.
4940
4941 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
4942 Chris January <chris.january@arm.com>
4943
4944 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
4945 types for Fortran.
4946
4947 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
4948 Chris January <chris.january@arm.com>
4949 David Lecomber <david.lecomber@arm.com>
4950
4951 * f-exp.y (BINOP_INTRINSIC): New token.
4952 (exp): New parser rule handling BINOP_INTRINSIC.
4953 (f77_keywords): Add new builtin procedures.
4954 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
4955 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
4956 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
4957 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
4958 (print_unop_subexp_f): New function.
4959 (print_binop_subexp_f): New function.
4960 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
4961 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
4962 (dump_subexp_body_f): Likewise.
4963 (operator_check_f): Likewise.
4964 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
4965 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
4966
4967 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
4968
4969 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
4970 UNOP_KIND.
4971 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
4972 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
4973 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
4974 (operator_length_f): New fuction.
4975 (print_subexp_f): New function.
4976 (op_name_f): New function.
4977 (dump_subexp_body_f): New function.
4978 (operator_check_f): New function.
4979 (exp_descriptor_f): Replace standard expression handling functions
4980 with new functions.
4981 * gdb/fortran-operator.def: New file.
4982 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
4983 * gdb/std-operator.def: Remove UNOP_KIND.
4984
4985 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
4986
4987 * std-operator.def: Remove unbalanced, stray double quote
4988 character.
4989
4990 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
4991 Chris January <chris.january@arm.com>
4992 Daniel Everett <daniel.everett@arm.com>
4993 Nick Forrington <nick.forrington@arm.com>
4994 Richard Bunt <richard.bunt@arm.com>
4995
4996 * cp-valprint.c (cp_print_value_fields): Allow an additional level
4997 of depth when printing anonymous structs or unions.
4998 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
4999 Don't print either the top-level value, or the children if the
5000 max-depth is exceeded.
5001 (ppscm_print_children): When printing the key of a map, allow one
5002 extra level of depth.
5003 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
5004 print either the top-level value, or the children if the max-depth
5005 is exceeded.
5006 (print_children): When printing the key of a map, allow one extra
5007 level of depth.
5008 * python/py-value.c (valpy_format_string): Add max_depth keyword.
5009 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
5010 (user_print_options): Initialise max_depth field.
5011 (val_print_scalar_or_string_type_p): New function.
5012 (val_print): Check to see if the max depth has been reached.
5013 (val_print_check_max_depth): Define new function.
5014 (show_print_max_depth): New function.
5015 (_initialize_valprint): Add 'print max-depth' option.
5016 * valprint.h (struct value_print_options) <max_depth>: New field.
5017 (val_print_check_max_depth): Declare new function.
5018 * NEWS: Document new feature.
5019
5020 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
5021
5022 * ada-lang.c (ada_language_defn): Initialise new field.
5023 * c-lang.c (c_is_string_type_p): New function.
5024 (c_language_defn): Initialise new field.
5025 (cplus_language_defn): Initialise new field.
5026 (asm_language_defn): Initialise new field.
5027 (minimal_language_defn): Initialise new field.
5028 * c-lang.h (c_is_string_type_p): Declare new function.
5029 * d-lang.c (d_language_defn): Initialise new field.
5030 * f-lang.c (f_is_string_type_p): New function.
5031 (f_language_defn): Initialise new field.
5032 * go-lang.c (go_is_string_type_p): New function.
5033 (go_language_defn): Initialise new field.
5034 * language.c (default_is_string_type_p): New function.
5035 (unknown_language_defn): Initialise new field.
5036 (auto_language_defn): Initialise new field.
5037 * language.h (struct language_defn) <la_is_string_type_p>: New
5038 member variable.
5039 (default_is_string_type_p): Declare new function.
5040 * m2-lang.c (m2_language_defn): Initialise new field.
5041 * objc-lang.c (objc_language_defn): Initialise new field.
5042 * opencl-lang.c (opencl_language_defn): Initialise new field.
5043 * p-lang.c (pascal_is_string_type_p): New function.
5044 (pascal_language_defn): Initialise new field.
5045 * rust-lang.c (rust_is_string_type_p): New function.
5046 (rust_language_defn): Initialise new field.
5047
5048 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
5049
5050 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
5051 New field.
5052 * ada-lang.c (ada_language_defn): Initialise new field.
5053 * c-lang.c (c_language_defn): Likewise.
5054 (cplus_language_defn): Likewise.
5055 (asm_language_defn): Likewise.
5056 (minimal_language_defn): Likewise.
5057 * d-lang.c (d_language_defn): Likewise.
5058 * f-lang.c (f_language_defn): Likewise.
5059 * go-lang.c (go_language_defn): Likewise.
5060 * language.c (unknown_language_defn): Likewise.
5061 (auto_language_defn): Likewise.
5062 * m2-lang.c (m2_language_defn): Likewise.
5063 * objc-lang.c (objc_language_defn): Likewise.
5064 * opencl-lang.c (opencl_language_defn): Likewise.
5065 * p-lang.c (pascal_language_defn): Likewise.
5066 * rust-lang.c (rust_language_defn): Likewise.
5067
5068 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
5069
5070 * ada-lang.c (ada_is_character_type): Change return type to bool.
5071 (ada_is_string_type): Likewise.
5072 * ada-lang.h (ada_is_character_type): Update declaration
5073 (ada_is_string_type): Likewise.
5074
5075 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5076
5077 Support style in 'frame|thread apply'
5078
5079 * gdbcmd.h (execute_command_to_string): New term_out parameter.
5080 * record.c (record_start, record_stop): Update callers of
5081 execute_command_to_string with false.
5082 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
5083 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
5084 methods.
5085 (class string_file): New constructor with term_out parameter.
5086 Override methods term_out and can_emit_style_escape. New member
5087 term_out.
5088 (class stdio_file): Override can_emit_style_escape.
5089 (class tee_file): Override term_out and can_emit_style_escape.
5090 * utils.h (can_emit_style_escape): Remove.
5091 * utils.c (can_emit_style_escape): Likewise.
5092 Update all callers of can_emit_style_escape (SOMESTREAM) to
5093 SOMESTREAM->can_emit_style_escape.
5094 * source-cache.c (source_cache::get_source_lines): Likewise.
5095 * stack.c (frame_apply_command_count): Call execute_command_to_string
5096 passing the term_out characteristic of the current gdb_stdout.
5097 * thread.c (thr_try_catch_cmd): Likewise.
5098 * top.c (execute_command_to_string): pass term_out parameter
5099 to construct the string_file for the command output.
5100 * ui-file.c (term_cli_styling): New function (most code moved
5101 from utils.c can_emit_style_escape).
5102 (string_file::string_file, string_file::can_emit_style_escape,
5103 stdio_file::can_emit_style_escape, tee_file::term_out,
5104 tee_file::can_emit_style_escape): New functions.
5105
5106 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5107
5108 * NEWS: Mention the new set|show may-call-functions.
5109 * infcall.c (may_call_functions_p): New variable.
5110 (show_may_call_functions_p): New function.
5111 (call_function_by_hand_dummy): Throws an error if not
5112 may-call-functions.
5113 (_initialize_infcall): Call add_setshow_boolean_cmd for
5114 may-call-functions.
5115
5116 2019-04-25 Keith Seitz <keiths@redhat.com>
5117
5118 PR c++/24367
5119 * cp-support.c (inspect_type): Don't attempt substitutions
5120 of symbol with the same name.
5121
5122 2019-04-25 Tom Tromey <tromey@adacore.com>
5123
5124 PR gdb/24475:
5125 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
5126 static.
5127
5128 2019-04-25 Tom Tromey <tromey@adacore.com>
5129
5130 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
5131 rvalue reference.
5132 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
5133 (gdb_xml_parser::parse): Use std::move.
5134 * python/python-internal.h (gdbpy_convert_exception): Take a const
5135 reference.
5136 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
5137 std::move.
5138 * python/py-utils.c (gdbpy_convert_exception): Take a const
5139 reference.
5140 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
5141 Use std::move.
5142 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
5143 Use std::move.
5144 * mi/mi-main.c (mi_print_exception): Take a const reference.
5145 * main.c (handle_command_errors): Take a const reference.
5146 * linespec.c (parse_linespec): Use std::move.
5147 * infcall.c (run_inferior_call): Use std::move.
5148 (call_function_by_hand_dummy): Use std::move.
5149 * exec.c (try_open_exec_file): Use std::move.
5150 * exceptions.h (exception_print, exception_fprintf)
5151 (exception_print_same): Update.
5152 * exceptions.c (print_exception, exception_print)
5153 (exception_fprintf, exception_print_same): Change parameters to
5154 const reference.
5155 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
5156 * common/new-op.c: Use std::move.
5157 * common/common-exceptions.h (struct gdb_exception): Add move
5158 constructor.
5159 (struct gdb_exception_error, struct gdb_exception_quit, struct
5160 gdb_quit_bad_alloc): Change constructor to move constructor.
5161 (throw_exception): Change parameter to rvalue reference.
5162 * common/common-exceptions.c (throw_exception): Take rvalue
5163 reference.
5164 * cli/cli-interp.c (safe_execute_command): Use std::move.
5165 * breakpoint.c (insert_bp_location, location_to_sals): Use
5166 std::move.
5167
5168 2019-04-25 Tom Tromey <tromey@adacore.com>
5169
5170 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
5171 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
5172 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
5173 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
5174 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
5175 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
5176 guile/scm-value.c: Use unpack.
5177 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
5178 gdbscm_gdb_exception.
5179 (gdbscm_throw_gdb_exception): Likewise.
5180 (struct gdbscm_gdb_exception): New.
5181 (unpack): New function.
5182 (gdbscm_wrap): Use unpack.
5183
5184 2019-04-25 Tom Tromey <tromey@adacore.com>
5185
5186 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
5187 (gdb_rl_callback_handler): Use std::move.
5188 * common/common-exceptions.h (struct gdb_exception): Add move
5189 assignment operator.
5190 (throw_exception_sjlj): Change "exception" to const reference.
5191 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
5192 (throw_exception_sjlj): Change "exception" to const reference.
5193
5194 2019-04-25 Tom Tromey <tromey@adacore.com>
5195
5196 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
5197 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
5198 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
5199 Update.
5200 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
5201 Update.
5202 * mi/mi-interp.c (mi_interp::exec): Update.
5203 * linespec.c (parse_linespec): Update.
5204 * infcall.c (run_inferior_call): Update.
5205 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
5206 * guile/scm-symbol.c (gdbscm_lookup_symbol)
5207 (gdbscm_lookup_global_symbol): Update.
5208 * guile/scm-param.c (gdbscm_parameter_value): Update.
5209 * guile/scm-frame.c (gdbscm_frame_read_register)
5210 (gdbscm_frame_read_var): Update.
5211 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
5212 * exec.c (try_open_exec_file): Update.
5213 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
5214 (gdb_rl_callback_handler): Update.
5215 * common/common-exceptions.h (exception_none): Don't declare.
5216 * common/common-exceptions.c (exception_none): Don't define.
5217 (struct catcher) <exception>: Update.
5218 * cli/cli-interp.c (safe_execute_command): Update.
5219 * breakpoint.c (insert_bp_location, location_to_sals): Update.
5220
5221 2019-04-25 Ali Tamur <tamur@google.com>
5222
5223 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
5224 (read_attribute_value): Likewise.
5225 (dwarf2_read_addr_index): Update comment.
5226 (read_str_index): Add DW_FORM_strx.
5227 (dwarf2_string_attr): Likewise.
5228 (dwarf2_const_value_attr): Likewise.
5229 (dump_die_shallow): Likewise.
5230 (dwarf2_fetch_constant_bytes): Likewise.
5231 (skip_form_bytes): Likewise.
5232 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
5233
5234 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
5235
5236 PR corefiles/11608
5237 PR corefiles/18187
5238 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
5239 OFFSET. Verify if current mapping contains an ELF header.
5240 (linux_find_memory_regions_full): Adjust call to
5241 dump_mapping_p.
5242
5243 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
5244 Kang Li <kanglictf@gmail.com>
5245
5246 PR gdb/21600
5247
5248 * dwarf2-frame.c (read_initial_length): Be consistent about using
5249 unsigned representation of length.
5250 (decode_frame_entry_1): Likewise. Check for wraparound of
5251 end pointer as well as buffer overflow.
5252
5253 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
5254
5255 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
5256 "vq".
5257
5258 2019-04-24 Tom Tromey <tromey@adacore.com>
5259
5260 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
5261
5262 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5263
5264 * s12z-tdep.c (s12z_unwind_pc): Delete.
5265 (s12z_unwind_sp): Delete.
5266 (s12z_gdbarch_init): Don't register deleted functions with
5267 gdbarch.
5268
5269 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5270
5271 * rl78-tdep.c (rl78_unwind_sp): Delete.
5272 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
5273
5274 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5275
5276 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
5277 (xstormy16_unwind_pc): Delete.
5278 (xstormy16_dummy_id): Delete.
5279 (xstormy16_gdbarch_init): Don't register deleted functions with
5280 gdbarch.
5281
5282 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5283
5284 * vax-tdep.c (vax_unwind_pc): Delete.
5285 (vax_gdbarch_init): Don't register deleted function with gdbarch.
5286
5287 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5288
5289 * v850-tdep.c (v850_unwind_sp): Delete.
5290 (v850_unwind_pc): Delete.
5291 (v850_dummy_id): Delete.
5292 (v850_gdbarch_init): Don't register deleted functions with
5293 gdbarch.
5294
5295 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5296
5297 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
5298 (tilegx_unwind_pc): Delete.
5299 (tilegx_unwind_dummy_id): Delete.
5300 (tilegx_gdbarch_init): Don't register deleted functions with
5301 gdbarch.
5302
5303 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5304
5305 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
5306 (tic6x_dummy_id): Delete.
5307 (tic6x_gdbarch_init): Don't register deleted functions with
5308 gdbarch.
5309
5310 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5311
5312 * sparc-tdep.c (sparc_unwind_pc): Delete.
5313 (sparc32_gdbarch_init): Don't register deleted function with
5314 gdbarch.
5315
5316 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5317
5318 * sh-tdep.c (sh_unwind_sp): Delete.
5319 (sh_unwind_pc): Delete.
5320 (sh_dummy_id): Delete.
5321 (sh_gdbarch_init): Don't register deleted functions with
5322 gdbarch.
5323
5324 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5325
5326 * score-tdep.c (score_unwind_sp): Delete.
5327 (score_unwind_pc): Delete.
5328 (score_dummy_id): Delete.
5329 (score_gdbarch_init): Don't register deleted functions with
5330 gdbarch.
5331
5332 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5333
5334 * rx-tdep.c (rx_unwind_pc): Delete.
5335 (rx_unwind_sp): Delete.
5336 (rx_dummy_id): Delete.
5337 (rx_gdbarch_init): Don't register deleted functions with
5338 gdbarch. Update comment.
5339
5340 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5341
5342 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
5343 (rs6000_dummy_id): Delete.
5344 (rs6000_gdbarch_init): Don't register deleted functions with
5345 gdbarch.
5346
5347 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5348
5349 * or1k-tdep.c (or1k_dummy_id): Delete.
5350 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
5351
5352 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5353
5354 * nios2-tdep.c (nios2_dummy_id): Delete.
5355 (nios2_unwind_sp): Delete.
5356 (nios2_gdbarch_init): Don't register deleted functions with
5357 gdbarch.
5358
5359 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5360
5361 * nds32-tdep.c (nds32_dummy_id): Delete.
5362 (nds32_unwind_pc): Delete.
5363 (nds32_unwind_sp): Delete.
5364 (nds32_gdbarch_init): Don't register deleted functions with
5365 gdbarch.
5366
5367 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5368
5369 * msp430-tdep.c (msp430_unwind_pc): Delete.
5370 (msp430_unwind_sp): Delete.
5371 (msp430_dummy_id): Delete.
5372 (msp430_gdbarch_init): Don't register deleted functions with
5373 gdbarch.
5374
5375 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5376
5377 * moxie-tdep.c (moxie_unwind_sp): Delete.
5378 (moxie_unwind_pc): Delete.
5379 (moxie_dummy_id): Delete.
5380 (moxie_gdbarch_init): Don't register deleted functions with
5381 gdbarch.
5382
5383 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5384
5385 * mn10300-tdep.c (mn10300_dummy_id): Delete.
5386 (mn10300_unwind_pc): Delete.
5387 (mn10300_unwind_sp): Delete.
5388 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
5389 mn10300_unwind_sp.
5390 (mn10300_frame_unwind_init): Don't register deleted functions with
5391 gdbarch.
5392
5393 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5394
5395 * mep-tdep.c (mep_unwind_pc): Delete.
5396 (mep_unwind_sp): Delete.
5397 (mep_dummy_id): Delete.
5398 (mep_gdbarch_init): Don't register deleted functions with
5399 gdbarch.
5400
5401 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5402
5403 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
5404 (m68hc11_unwind_sp): Delete.
5405 (m68hc11_gdbarch_init): Don't register deleted functions with
5406 gdbarch.
5407
5408 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5409
5410 * m32r-tdep.c (m32r_unwind_sp): Delete.
5411 (m32r_unwind_pc): Delete.
5412 (m32r_dummy_id): Delete.
5413 (m32r_gdbarch_init): Don't register deleted functions with
5414 gdbarch.
5415
5416 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5417
5418 * m32c-tdep.c (m32c_unwind_pc): Delete.
5419 (m32c_unwind_sp): Delete.
5420 (m32c_dummy_id): Delete.
5421 (m32c_gdbarch_init): Don't register deleted functions with
5422 gdbarch.
5423
5424 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5425
5426 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
5427 (lm32_unwind_pc): Delete.
5428 (lm32_dummy_id): Delete.
5429 (lm32_gdbarch_init): Don't register deleted functions with
5430 gdbarch.
5431
5432 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5433
5434 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
5435 (iq2000_unwind_pc): Delete.
5436 (iq2000_dummy_id): Delete.
5437 (iq2000_gdbarch_init): Don't register deleted functions with
5438 gdbarch.
5439
5440 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5441
5442 * nds32-tdep.c (nds32_type_align): Delete.
5443 (nds32_push_dummy_call): Use type_align instead.
5444
5445 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5446
5447 * arm-tdep.c (arm_type_align): Only handle vector override case.
5448 (arm_push_dummy_call): Use type_align.
5449 (arm_gdbarch_init): Register arm_type_align gdbarch function.
5450
5451 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5452
5453 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
5454 case.
5455 (pass_on_stack): Use type_align.
5456 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
5457 function.
5458
5459 2019-04-23 Tom Tromey <tromey@adacore.com>
5460
5461 * dwarf2read.c (line_header::file_name_at): Remove unused
5462 overload.
5463
5464 2019-04-23 Tom de Vries <tdevries@suse.de>
5465
5466 PR gdb/24438
5467 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
5468 invocation.
5469
5470
5471 2019-03-27 Ali Tamur <tamur@google.com>
5472
5473 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
5474 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
5475 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
5476 (dwarf_expr_context::get_addr_index): Likewise
5477 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
5478 (symbol_needs_eval_context::get_addr_index): Likewise
5479 (disassemble_dwarf_expression): Add DW_OP_addrx
5480 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
5481 (read_cutu_die_from_dwo): Update comment
5482 (skip_one_die): Add DW_FORM_addrx
5483 (read_attribute_value): Likewise
5484 (var_decode_location): Add DW_OP_addrx
5485 (dwarf2_const_value_attr): Add DW_FORM_addrx
5486 (dump_die_shallow): Likewise
5487 (dwarf2_fetch_constant_bytes): Likewise
5488 (decode_locdesc): Add DW_OP_addrx
5489 (skip_form_bytes): Add DW_FORM_addrx
5490
5491 2019-04-22 Ali Tamur <tamur@google.com>
5492
5493 * MAINTAINERS (Write After Approval): Add self.
5494
5495 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
5496
5497 * solib-svr4.c (get_svr4_info): Add pspace parameter.
5498 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
5499 (open_symbol_file_object): Likewise.
5500 (svr4_default_sos): Add info parameter.
5501 (svr4_read_so_list): Likewise.
5502 (svr4_current_sos_direct): Adjust functions calls to pass down
5503 info.
5504 (svr4_current_sos_1): Add info parameter.
5505 (svr4_current_sos): Call get_svr4_info, pass info down to
5506 svr4_current_sos_1.
5507 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
5508 get_svr4_info.
5509 (svr4_in_dynsym_resolve_code): Pass current_program_space to
5510 get_svr4_info.
5511 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
5512 to get_svr4_info.
5513 (probes_table_remove_objfile_probes): Likewise.
5514 (register_solib_event_probe): Add info parameter.
5515 (solist_update_incremental): Pass info parameter down to
5516 svr4_read_so_list.
5517 (disable_probes_interface): Add info parameter.
5518 (svr4_handle_solib_event): Pass current_program_space to
5519 get_svr4_info. Adjust disable_probes_interface cleanup.
5520 (svr4_create_probe_breakpoints): Add info parameter, pass it
5521 down to register_solib_event_probe.
5522 (svr4_create_solib_event_breakpoints): Add info parameter,
5523 pass it down to svr4_create_probe_breakpoints.
5524 (enable_break): Pass info down to
5525 svr4_create_solib_event_breakpoints.
5526 (svr4_solib_create_inferior_hook): Pass current_program_space to
5527 get_svr4_info.
5528 (svr4_clear_solib): Likewise.
5529
5530 2019-04-22 Pedro Alves <palves@redhat.com>
5531
5532 * solib-svr4.c (svr4_free_objfile_observer): New.
5533 (probe_and_action::objfile): New field.
5534 (probes_table_htab_remove_objfile_probes)
5535 (probes_table_remove_objfile_probes): New functions.
5536 (register_solib_event_probe): Add 'objfile' parameter. Store it
5537 in the new probe_and_action. Don't store the probe in 'lookup'.
5538 (svr4_create_probe_breakpoints): Pass objfile to
5539 register_solib_event_probe.
5540 (_initialize_svr4_solib): Register a free_objfile observer.
5541
5542 2019-04-19 Tom Tromey <tom@tromey.com>
5543
5544 * common/queue.h: Remove.
5545
5546 2019-04-19 Tom Tromey <tom@tromey.com>
5547
5548 * event-loop.c: Don't include "common/queue.h".
5549
5550 2019-04-19 Tom Tromey <tom@tromey.com>
5551
5552 * remote.c (remote_target): Use delete.
5553 * remote-notif.h: Include <list>, not "common/queue.h".
5554 (notif_client_p): Remove typedef.
5555 (remote_notif_state): Add constructor, destructor, initializer.
5556 <notif_queue>: Now a std::list.
5557 (remote_notif_state_xfree): Don't declare.
5558 * remote-notif.c (remote_notif_process, handle_notification)
5559 (remote_notif_state_allocate): Update.
5560 (~remote_notif_state): Rename from remote_notif_state_xfree.
5561
5562 2019-04-19 Tom Tromey <tom@tromey.com>
5563
5564 * symfile.c (reread_symbols): Update.
5565 * objfiles.c (objfile_register_static_link)
5566 (objfile_lookup_static_link): Update
5567 (~objfile) Don't delete static_links.
5568 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
5569
5570 2019-04-19 Tom Tromey <tom@tromey.com>
5571
5572 * type-stack.h (struct type_stack) <insert>: Constify string.
5573 * type-stack.c (type_stack::insert): Constify string.
5574 * gdbtypes.h (lookup_template_type): Update.
5575 (address_space_name_to_int): Update.
5576 * gdbtypes.c (address_space_name_to_int): Make space_identifier
5577 const.
5578 (lookup_template_type): Make name const.
5579 * c-exp.y: Update rules.
5580 (lex_one_token, classify_name, classify_inner_name)
5581 (c_print_token): Update.
5582 * p-exp.y: Update rules.
5583 (yylex): Update.
5584 * f-exp.y: Update rules.
5585 (yylex): Update.
5586 * d-exp.y: Update rules.
5587 (lex_one_token, classify_name, classify_inner_name): Update.
5588 * parse.c (write_dollar_variable, copy_name): Return std::string.
5589 * parser-defs.h (copy_name): Change return type.
5590 * m2-exp.y: Update rules.
5591 (yylex): Update.
5592 * go-exp.y (lex_one_token): Update.
5593 Update rules.
5594 (classify_unsafe_function, classify_packaged_name)
5595 (classify_name, yylex): Update.
5596
5597 2019-04-19 Sergei Trofimovich <siarheit@google.com>
5598
5599 * configure.ac: add --enable-source-highlight switch.
5600 * configure: Regenerate.
5601 * top.c (print_gdb_version): plumb --enable-source-highlight
5602 status to "show configuration".
5603
5604 2019-04-19 Tom Tromey <tromey@adacore.com>
5605
5606 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
5607 Check ADA_TYPE_P.
5608 (empty_record, ada_template_to_fixed_record_type_1)
5609 (template_to_static_fixed_type)
5610 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
5611 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
5612 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
5613 macros.
5614
5615 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
5616
5617 PR symtab/24423:
5618 * source.c (print_source_lines_base): Advance "iter" when a
5619 control character is seen.
5620
5621 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5622
5623 * inferior.h (struct infcall_suspend_state_deleter):
5624 Catch exception in destructor to avoid crash.
5625
5626 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5627
5628 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
5629 close to the add_com "shell".
5630
5631 2019-04-18 Tom Tromey <tromey@adacore.com>
5632
5633 * process-stratum-target.h (class process_stratum_target)
5634 <stratum>: Add "final".
5635
5636 2019-04-17 Tom Tromey <tromey@adacore.com>
5637
5638 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
5639 against nullptr before use.
5640
5641 2019-04-17 Alan Hayward <alan.hayward@arm.com>
5642
5643 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
5644
5645 2019-04-17 Jim Wilson <jimw@sifive.com>
5646 Andrew Burgess <andrew.burgess@embecosm.com>
5647
5648 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
5649 code read might fail, assume 4-byte breakpoint in that case.
5650
5651 2019-04-15 Leszek Swirski <leszeks@google.com>
5652
5653 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
5654 rather than a hand-rolled POD check when checking for forced MEMORY
5655 classification.
5656
5657 2019-04-15 Alan Hayward <alan.hayward@arm.com>
5658
5659 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
5660 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
5661 function.
5662 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
5663 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
5664 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
5665 declaration.
5666
5667 2019-04-15 Alan Hayward <alan.hayward@arm.com>
5668
5669 * aarch64-linux-nat.c
5670 (aarch64_linux_nat_target::thread_architecture): Add override.
5671 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
5672 each VQ.
5673
5674 2019-04-15 Alan Hayward <alan.hayward@arm.com>
5675
5676 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
5677
5678 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
5679
5680 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
5681 target types of size 96-bits, add some additional comments, and
5682 check that the builtin type we found was the correct size.
5683
5684 2019-04-12 Eli Zaretskii <eliz@gnu.org>
5685
5686 * utils.c (prompt_for_continue): Don't restore the styling at the
5687 end, as applied_style has the wrong value. This fixes styling in
5688 long lists of file names that are interrupted by the "Continue?"
5689 prompt.
5690
5691 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
5692
5693 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
5694 * c-lang.c (c_language_defn): Likewise.
5695 (cplus_language_defn): Likewise.
5696 (asm_language_defn): Likewise.
5697 (minimal_language_defn): Likewise.
5698 * d-lang.c (d_language_defn): Likewise.
5699 * f-lang.c (f_language_defn): Likewise.
5700 * go-lang.c (go_language_defn): Likewise.
5701 * language.c (unknown_language_defn): Likewise.
5702 (auto_language_defn): Likewise.
5703 * language.h (struct language_defn): Remove la_magic field.
5704 (LANG_MAGIC): Delete.
5705 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
5706 * objc-lang.c (objc_language_defn): Likewise.
5707 * opencl-lang.c (opencl_language_defn): Likewise.
5708 * p-lang.c (pascal_language_defn): Likewise.
5709 * rust-lang.c (rust_language_defn): Likewise.
5710
5711 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
5712
5713 * riscv-tdep.c (riscv_type_align): New function.
5714 (riscv_type_alignment): Delete.
5715 (riscv_arg_location): Use 'type_align'.
5716 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
5717
5718 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
5719
5720 * gdbtypes.c (type_align): A struct with no non-static fields also
5721 has alignment of 1.
5722
5723 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
5724
5725 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
5726 component to 0.
5727 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
5728 member.
5729 (riscv_struct_info::analyse): New implementation using new
5730 analyse_inner member function.
5731 (riscv_struct_info::field_offset): New member function.
5732 (riscv_struct_info::m_offsets): New member variable.
5733 (riscv_struct_info::analyse_inner): New private member function,
5734 takes the old implementation of riscv_struct_info::analyse but
5735 extended to track field offsets.
5736 (riscv_call_arg_struct): Update the struct folding special cases
5737 to handle cases where empty C++ structs, which are non-zero
5738 length, are found.
5739 (riscv_arg_location): Initialise the length of each location, a
5740 non-zero length now indicates the location is in use.
5741 (riscv_push_dummy_call): Allow for the first location having a
5742 non-zero offset when setting up arguments.
5743 (riscv_return_value): Likewise, but for return values.
5744
5745 2019-04-11 Tom Tromey <tromey@adacore.com>
5746
5747 * utils.c (internal_vproblem): Make "msg" const.
5748
5749 2019-04-11 Alan Hayward <alan.hayward@arm.com>
5750
5751 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
5752 * trad-frame.c (trad_frame_reset_saved_regs): New function.
5753 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
5754 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
5755
5756 2019-04-10 Kevin Buettner <kevinb@redhat.com>
5757
5758 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
5759 function.
5760 (fill_gregset): Call amd64_linux_collect_native_gregset instead
5761 of amd64_collect_native_gregset.
5762 (amd64_linux_nat_target::store_registers): Likewise.
5763
5764 2019-04-10 Tom Tromey <tom@tromey.com>
5765
5766 * symtab.c (lookup_global_symbol_from_objfile)
5767 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
5768 * objfiles.h (class separate_debug_iterator): New.
5769 (class separate_debug_range): New.
5770 (struct objfile) <separate_debug_objfiles>: New method.
5771 (objfile_separate_debug_iterate): Don't declare.
5772 * objfiles.c (separate_debug_iterator::operator++): Rename from
5773 objfile_separate_debug_iterate.
5774 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
5775 iterator.
5776 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
5777 iterator.
5778
5779 2019-04-10 Tom Tromey <tom@tromey.com>
5780
5781 * symfile.c (reread_symbols): Remove old comment.
5782 * objfiles.c (free_all_objfiles): Fix a typo.
5783
5784 2019-04-10 Tom Tromey <tom@tromey.com>
5785
5786 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
5787 * minsyms.c (lookup_minimal_symbol): Use foreach.
5788 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
5789 (lookup_minimal_symbol_solib_trampoline): Likewise.
5790 * symfile.c (reread_symbols): Use foreach.
5791
5792 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
5793 Tom Tromey <tromey@adacore.com>
5794
5795 PR rust/24414:
5796 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
5797 (rust_lex_int_test): Change "value" to be LONGEST.
5798 (rust_lex_tests): Add test for long integer literal.
5799
5800 2019-04-09 Tom Tromey <tromey@adacore.com>
5801
5802 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
5803 to bool.
5804 (extended_remote_target::attach): Update.
5805 (remote_target::remote_notice_new_inferior): Update.
5806 (remote_target::add_current_inferior_and_thread): Update.
5807 * inferior.c (exit_inferior_1): Use "false".
5808 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
5809
5810 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
5811
5812 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
5813 the "start" command.
5814
5815 2019-04-08 Kevin Buettner <kevinb@redhat.com>
5816
5817 * python/py-inferior.c (infpy_thread_from_thread_handle):
5818 Adjust comments to reflect renaming of thread_from_thread_handle
5819 to thread_from_handle. Adjust keywords. Fix type error message.
5820 (inferior_object_methods): Add thread_from_handle. Retain
5821 thread_from_thread_handle, but mark it as deprecated.
5822
5823 2019-04-08 Kevin Buettner <kevinb@redhat.com>
5824
5825 * gdbthread.h (find_thread_by_handle): Revise declaration.
5826 * thread.c (find_thread_by_handle): Likewise. Adjust
5827 implementation too.
5828 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
5829 support for buffer objects as handles.
5830
5831 2019-04-08 Kevin Buettner <kevinb@redhat.com>
5832
5833 * python/py-infthread.c (thpy_thread_handle): New function.
5834 (thread_object_methods): Register thpy_thread_handle.
5835
5836 2019-04-08 Kevin Buettner <kevinb@redhat.com>
5837
5838 * gdbthread.h (thread_to_thread_handle): Declare.
5839 * thread.c (gdbtypes.h): Include.
5840 (thread_to_thread_handle): New function.
5841
5842 * target.h (struct target_ops): Add thread_info_to_thread_handle.
5843 (target_thread_info_to_thread_handle): Declare.
5844 * target.c (target_thread_info_to_thread_handle): New function.
5845 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
5846 * target-delegates.c: Regenerate.
5847
5848 * linux-thread-db.c (class thread_db_target): Add method
5849 thread_info_to_thread_handle.
5850 (thread_db_target::thread_info_to_thread_handle): Define.
5851 * remote.c (class remote_target): Add new method
5852 thread_info_to_thread_handle.
5853 (remote_target::thread_info_to_thread_handle): Define.
5854
5855 2019-04-08 Pedro Alves <palves@redhat.com>
5856
5857 * common/common-exceptions.c (throw_exception): Don't create
5858 named object to throw; throw directly.
5859 (throw_it): Likewise. Don't initialize gdb_exception::message
5860 here, with new; pass FMT and AP to the ctor instead.
5861 * common/common-exceptions.h: Include <string>.
5862 (gdb_exception::gdb_exception(enum return_reason, enum errors,
5863 const char *, va_list)): New ctor. Use std::make_shared.
5864 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
5865 errors)): Delete.
5866 (gdb_exception_error::gdb_exception_error(enum errors, const char
5867 *, va_list)): New.
5868 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
5869 Add assertion.
5870 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
5871 errors)): Delete.
5872 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
5873 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
5874 Add assertion.
5875
5876 2019-04-08 Tom Tromey <tom@tromey.com>
5877
5878 * valops.c (value_rtti_indirect_type): Replace throw_exception
5879 with throw.
5880 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
5881 with throw.
5882 * thread.c (thr_try_catch_cmd): Replace throw_exception with
5883 throw.
5884 * target.c (target_translate_tls_address): Replace throw_exception
5885 with throw.
5886 * stack.c (frame_apply_command_count): Replace throw_exception
5887 with throw.
5888 * solib-spu.c (append_ocl_sos): Replace throw_exception with
5889 throw.
5890 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
5891 with throw.
5892 * rs6000-tdep.c (rs6000_frame_cache)
5893 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
5894 * remote.c: Replace throw_exception with throw.
5895 * record-full.c (record_full_message, record_full_wait_1)
5896 (record_full_restore): Replace throw_exception with throw.
5897 * record-btrace.c:
5898 (get_thread_current_frame_id, record_btrace_start_replaying)
5899 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
5900 (cmd_record_btrace_start): Replace throw_exception with throw.
5901 * parse.c (parse_exp_in_context_1): Replace throw_exception with
5902 throw.
5903 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
5904 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
5905 * linespec.c:
5906 (find_linespec_symbols): Replace throw_exception with throw.
5907 * infrun.c (displaced_step_prepare, resume): Replace
5908 throw_exception with throw.
5909 * infcmd.c (post_create_inferior): Replace throw_exception with
5910 throw.
5911 * inf-loop.c (inferior_event_handler): Replace throw_exception
5912 with throw.
5913 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
5914 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
5915 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
5916 (get_prev_frame_always, get_frame_pc_if_available)
5917 (get_frame_address_in_block_if_available, get_frame_language):
5918 Replace throw_exception with throw.
5919 * frame-unwind.c (frame_unwind_try_unwinder): Replace
5920 throw_exception with throw.
5921 * eval.c (fetch_subexp_value, evaluate_var_value)
5922 (evaluate_funcall, evaluate_subexp_standard): Replace
5923 throw_exception with throw.
5924 * dwarf2loc.c (call_site_find_chain)
5925 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
5926 Replace throw_exception with throw.
5927 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
5928 with throw.
5929 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
5930 throw.
5931 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
5932 * completer.c (complete_line_internal): Replace throw_exception
5933 with throw.
5934 * compile/compile-object-run.c (compile_object_run): Replace
5935 throw_exception with throw.
5936 * cli/cli-script.c (process_next_line): Replace throw_exception
5937 with throw.
5938 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
5939 (btrace_enable, btrace_maint_update_pt_packets): Replace
5940 throw_exception with throw.
5941 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
5942 throw_exception with throw.
5943 * break-catch-throw.c (re_set_exception_catchpoint): Replace
5944 throw_exception with throw.
5945 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
5946 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
5947 * aarch64-tdep.c (aarch64_make_prologue_cache)
5948 (aarch64_make_stub_cache): Replace throw_exception with throw.
5949
5950 2019-04-08 Tom Tromey <tom@tromey.com>
5951
5952 * common/common-exceptions.c (throw_exception): Rename from
5953 throw_exception_cxx. Remove old copy. Make argument const.
5954 (throw_it): Create and throw exception objects directly.
5955 * common/common-exceptions.h (throw_exception): Make argument
5956 const.
5957 (struct gdb_exception_error): Add constructor.
5958 (struct gdb_exception_quit): Add constructor.
5959
5960 2019-04-08 Tom Tromey <tom@tromey.com>
5961
5962 * common/common-exceptions.h (exception_rethrow): Don't declare.
5963 (TRY_SJLJ): Update comment.
5964 (TRY, CATCH, END_CATCH): Remove.
5965 * common/common-exceptions.c (exception_rethrow): Remove.
5966
5967 2019-04-08 Tom Tromey <tom@tromey.com>
5968
5969 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
5970 Remove.
5971 (gdb_exception_error): Rename from
5972 gdb_exception_RETURN_MASK_ERROR.
5973 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
5974 (gdb_quit_bad_alloc): Update.
5975 * aarch64-tdep.c: Update.
5976 * ada-lang.c: Update.
5977 * ada-typeprint.c: Update.
5978 * ada-valprint.c: Update.
5979 * amd64-tdep.c: Update.
5980 * arch-utils.c: Update.
5981 * break-catch-throw.c: Update.
5982 * breakpoint.c: Update.
5983 * btrace.c: Update.
5984 * c-varobj.c: Update.
5985 * cli/cli-cmds.c: Update.
5986 * cli/cli-interp.c: Update.
5987 * cli/cli-script.c: Update.
5988 * common/common-exceptions.c: Update.
5989 * common/new-op.c: Update.
5990 * common/selftest.c: Update.
5991 * compile/compile-c-symbols.c: Update.
5992 * compile/compile-cplus-symbols.c: Update.
5993 * compile/compile-object-load.c: Update.
5994 * compile/compile-object-run.c: Update.
5995 * completer.c: Update.
5996 * corelow.c: Update.
5997 * cp-abi.c: Update.
5998 * cp-support.c: Update.
5999 * cp-valprint.c: Update.
6000 * darwin-nat.c: Update.
6001 * disasm-selftests.c: Update.
6002 * dtrace-probe.c: Update.
6003 * dwarf-index-cache.c: Update.
6004 * dwarf-index-write.c: Update.
6005 * dwarf2-frame-tailcall.c: Update.
6006 * dwarf2-frame.c: Update.
6007 * dwarf2loc.c: Update.
6008 * dwarf2read.c: Update.
6009 * eval.c: Update.
6010 * event-loop.c: Update.
6011 * event-top.c: Update.
6012 * exec.c: Update.
6013 * f-valprint.c: Update.
6014 * fbsd-tdep.c: Update.
6015 * frame-unwind.c: Update.
6016 * frame.c: Update.
6017 * gdbtypes.c: Update.
6018 * gnu-v3-abi.c: Update.
6019 * guile/guile-internal.h: Update.
6020 * guile/scm-block.c: Update.
6021 * guile/scm-breakpoint.c: Update.
6022 * guile/scm-cmd.c: Update.
6023 * guile/scm-disasm.c: Update.
6024 * guile/scm-frame.c: Update.
6025 * guile/scm-lazy-string.c: Update.
6026 * guile/scm-math.c: Update.
6027 * guile/scm-param.c: Update.
6028 * guile/scm-ports.c: Update.
6029 * guile/scm-pretty-print.c: Update.
6030 * guile/scm-symbol.c: Update.
6031 * guile/scm-symtab.c: Update.
6032 * guile/scm-type.c: Update.
6033 * guile/scm-value.c: Update.
6034 * i386-linux-tdep.c: Update.
6035 * i386-tdep.c: Update.
6036 * inf-loop.c: Update.
6037 * infcall.c: Update.
6038 * infcmd.c: Update.
6039 * infrun.c: Update.
6040 * jit.c: Update.
6041 * language.c: Update.
6042 * linespec.c: Update.
6043 * linux-fork.c: Update.
6044 * linux-nat.c: Update.
6045 * linux-tdep.c: Update.
6046 * linux-thread-db.c: Update.
6047 * main.c: Update.
6048 * mi/mi-cmd-break.c: Update.
6049 * mi/mi-cmd-stack.c: Update.
6050 * mi/mi-interp.c: Update.
6051 * mi/mi-main.c: Update.
6052 * objc-lang.c: Update.
6053 * p-valprint.c: Update.
6054 * parse.c: Update.
6055 * ppc-linux-tdep.c: Update.
6056 * printcmd.c: Update.
6057 * python/py-arch.c: Update.
6058 * python/py-breakpoint.c: Update.
6059 * python/py-cmd.c: Update.
6060 * python/py-finishbreakpoint.c: Update.
6061 * python/py-frame.c: Update.
6062 * python/py-framefilter.c: Update.
6063 * python/py-gdb-readline.c: Update.
6064 * python/py-inferior.c: Update.
6065 * python/py-infthread.c: Update.
6066 * python/py-lazy-string.c: Update.
6067 * python/py-linetable.c: Update.
6068 * python/py-objfile.c: Update.
6069 * python/py-param.c: Update.
6070 * python/py-prettyprint.c: Update.
6071 * python/py-progspace.c: Update.
6072 * python/py-record-btrace.c: Update.
6073 * python/py-record.c: Update.
6074 * python/py-symbol.c: Update.
6075 * python/py-type.c: Update.
6076 * python/py-unwind.c: Update.
6077 * python/py-utils.c: Update.
6078 * python/py-value.c: Update.
6079 * python/python.c: Update.
6080 * record-btrace.c: Update.
6081 * record-full.c: Update.
6082 * remote-fileio.c: Update.
6083 * remote.c: Update.
6084 * riscv-tdep.c: Update.
6085 * rs6000-aix-tdep.c: Update.
6086 * rs6000-tdep.c: Update.
6087 * rust-exp.y: Update.
6088 * rust-lang.c: Update.
6089 * s390-tdep.c: Update.
6090 * selftest-arch.c: Update.
6091 * solib-dsbt.c: Update.
6092 * solib-frv.c: Update.
6093 * solib-spu.c: Update.
6094 * solib-svr4.c: Update.
6095 * solib.c: Update.
6096 * sparc64-linux-tdep.c: Update.
6097 * stack.c: Update.
6098 * symfile-mem.c: Update.
6099 * symmisc.c: Update.
6100 * target.c: Update.
6101 * thread.c: Update.
6102 * top.c: Update.
6103 * tracefile-tfile.c: Update.
6104 * tui/tui.c: Update.
6105 * typeprint.c: Update.
6106 * unittests/cli-utils-selftests.c: Update.
6107 * unittests/parse-connection-spec-selftests.c: Update.
6108 * valops.c: Update.
6109 * valprint.c: Update.
6110 * value.c: Update.
6111 * varobj.c: Update.
6112 * windows-nat.c: Update.
6113 * x86-linux-nat.c: Update.
6114 * xml-support.c: Update.
6115
6116 2019-04-08 Tom Tromey <tom@tromey.com>
6117
6118 * xml-support.c: Use C++ exception handling.
6119 * x86-linux-nat.c: Use C++ exception handling.
6120 * windows-nat.c: Use C++ exception handling.
6121 * varobj.c: Use C++ exception handling.
6122 * value.c: Use C++ exception handling.
6123 * valprint.c: Use C++ exception handling.
6124 * valops.c: Use C++ exception handling.
6125 * unittests/parse-connection-spec-selftests.c: Use C++ exception
6126 handling.
6127 * unittests/cli-utils-selftests.c: Use C++ exception handling.
6128 * typeprint.c: Use C++ exception handling.
6129 * tui/tui.c: Use C++ exception handling.
6130 * tracefile-tfile.c: Use C++ exception handling.
6131 * top.c: Use C++ exception handling.
6132 * thread.c: Use C++ exception handling.
6133 * target.c: Use C++ exception handling.
6134 * symmisc.c: Use C++ exception handling.
6135 * symfile-mem.c: Use C++ exception handling.
6136 * stack.c: Use C++ exception handling.
6137 * sparc64-linux-tdep.c: Use C++ exception handling.
6138 * solib.c: Use C++ exception handling.
6139 * solib-svr4.c: Use C++ exception handling.
6140 * solib-spu.c: Use C++ exception handling.
6141 * solib-frv.c: Use C++ exception handling.
6142 * solib-dsbt.c: Use C++ exception handling.
6143 * selftest-arch.c: Use C++ exception handling.
6144 * s390-tdep.c: Use C++ exception handling.
6145 * rust-lang.c: Use C++ exception handling.
6146 * rust-exp.y: Use C++ exception handling.
6147 * rs6000-tdep.c: Use C++ exception handling.
6148 * rs6000-aix-tdep.c: Use C++ exception handling.
6149 * riscv-tdep.c: Use C++ exception handling.
6150 * remote.c: Use C++ exception handling.
6151 * remote-fileio.c: Use C++ exception handling.
6152 * record-full.c: Use C++ exception handling.
6153 * record-btrace.c: Use C++ exception handling.
6154 * python/python.c: Use C++ exception handling.
6155 * python/py-value.c: Use C++ exception handling.
6156 * python/py-utils.c: Use C++ exception handling.
6157 * python/py-unwind.c: Use C++ exception handling.
6158 * python/py-type.c: Use C++ exception handling.
6159 * python/py-symbol.c: Use C++ exception handling.
6160 * python/py-record.c: Use C++ exception handling.
6161 * python/py-record-btrace.c: Use C++ exception handling.
6162 * python/py-progspace.c: Use C++ exception handling.
6163 * python/py-prettyprint.c: Use C++ exception handling.
6164 * python/py-param.c: Use C++ exception handling.
6165 * python/py-objfile.c: Use C++ exception handling.
6166 * python/py-linetable.c: Use C++ exception handling.
6167 * python/py-lazy-string.c: Use C++ exception handling.
6168 * python/py-infthread.c: Use C++ exception handling.
6169 * python/py-inferior.c: Use C++ exception handling.
6170 * python/py-gdb-readline.c: Use C++ exception handling.
6171 * python/py-framefilter.c: Use C++ exception handling.
6172 * python/py-frame.c: Use C++ exception handling.
6173 * python/py-finishbreakpoint.c: Use C++ exception handling.
6174 * python/py-cmd.c: Use C++ exception handling.
6175 * python/py-breakpoint.c: Use C++ exception handling.
6176 * python/py-arch.c: Use C++ exception handling.
6177 * printcmd.c: Use C++ exception handling.
6178 * ppc-linux-tdep.c: Use C++ exception handling.
6179 * parse.c: Use C++ exception handling.
6180 * p-valprint.c: Use C++ exception handling.
6181 * objc-lang.c: Use C++ exception handling.
6182 * mi/mi-main.c: Use C++ exception handling.
6183 * mi/mi-interp.c: Use C++ exception handling.
6184 * mi/mi-cmd-stack.c: Use C++ exception handling.
6185 * mi/mi-cmd-break.c: Use C++ exception handling.
6186 * main.c: Use C++ exception handling.
6187 * linux-thread-db.c: Use C++ exception handling.
6188 * linux-tdep.c: Use C++ exception handling.
6189 * linux-nat.c: Use C++ exception handling.
6190 * linux-fork.c: Use C++ exception handling.
6191 * linespec.c: Use C++ exception handling.
6192 * language.c: Use C++ exception handling.
6193 * jit.c: Use C++ exception handling.
6194 * infrun.c: Use C++ exception handling.
6195 * infcmd.c: Use C++ exception handling.
6196 * infcall.c: Use C++ exception handling.
6197 * inf-loop.c: Use C++ exception handling.
6198 * i386-tdep.c: Use C++ exception handling.
6199 * i386-linux-tdep.c: Use C++ exception handling.
6200 * guile/scm-value.c: Use C++ exception handling.
6201 * guile/scm-type.c: Use C++ exception handling.
6202 * guile/scm-symtab.c: Use C++ exception handling.
6203 * guile/scm-symbol.c: Use C++ exception handling.
6204 * guile/scm-pretty-print.c: Use C++ exception handling.
6205 * guile/scm-ports.c: Use C++ exception handling.
6206 * guile/scm-param.c: Use C++ exception handling.
6207 * guile/scm-math.c: Use C++ exception handling.
6208 * guile/scm-lazy-string.c: Use C++ exception handling.
6209 * guile/scm-frame.c: Use C++ exception handling.
6210 * guile/scm-disasm.c: Use C++ exception handling.
6211 * guile/scm-cmd.c: Use C++ exception handling.
6212 * guile/scm-breakpoint.c: Use C++ exception handling.
6213 * guile/scm-block.c: Use C++ exception handling.
6214 * guile/guile-internal.h: Use C++ exception handling.
6215 * gnu-v3-abi.c: Use C++ exception handling.
6216 * gdbtypes.c: Use C++ exception handling.
6217 * frame.c: Use C++ exception handling.
6218 * frame-unwind.c: Use C++ exception handling.
6219 * fbsd-tdep.c: Use C++ exception handling.
6220 * f-valprint.c: Use C++ exception handling.
6221 * exec.c: Use C++ exception handling.
6222 * event-top.c: Use C++ exception handling.
6223 * event-loop.c: Use C++ exception handling.
6224 * eval.c: Use C++ exception handling.
6225 * dwarf2read.c: Use C++ exception handling.
6226 * dwarf2loc.c: Use C++ exception handling.
6227 * dwarf2-frame.c: Use C++ exception handling.
6228 * dwarf2-frame-tailcall.c: Use C++ exception handling.
6229 * dwarf-index-write.c: Use C++ exception handling.
6230 * dwarf-index-cache.c: Use C++ exception handling.
6231 * dtrace-probe.c: Use C++ exception handling.
6232 * disasm-selftests.c: Use C++ exception handling.
6233 * darwin-nat.c: Use C++ exception handling.
6234 * cp-valprint.c: Use C++ exception handling.
6235 * cp-support.c: Use C++ exception handling.
6236 * cp-abi.c: Use C++ exception handling.
6237 * corelow.c: Use C++ exception handling.
6238 * completer.c: Use C++ exception handling.
6239 * compile/compile-object-run.c: Use C++ exception handling.
6240 * compile/compile-object-load.c: Use C++ exception handling.
6241 * compile/compile-cplus-symbols.c: Use C++ exception handling.
6242 * compile/compile-c-symbols.c: Use C++ exception handling.
6243 * common/selftest.c: Use C++ exception handling.
6244 * common/new-op.c: Use C++ exception handling.
6245 * cli/cli-script.c: Use C++ exception handling.
6246 * cli/cli-interp.c: Use C++ exception handling.
6247 * cli/cli-cmds.c: Use C++ exception handling.
6248 * c-varobj.c: Use C++ exception handling.
6249 * btrace.c: Use C++ exception handling.
6250 * breakpoint.c: Use C++ exception handling.
6251 * break-catch-throw.c: Use C++ exception handling.
6252 * arch-utils.c: Use C++ exception handling.
6253 * amd64-tdep.c: Use C++ exception handling.
6254 * ada-valprint.c: Use C++ exception handling.
6255 * ada-typeprint.c: Use C++ exception handling.
6256 * ada-lang.c: Use C++ exception handling.
6257 * aarch64-tdep.c: Use C++ exception handling.
6258
6259 2019-04-08 Tom Tromey <tom@tromey.com>
6260
6261 * xml-support.c (gdb_xml_parser::parse): Update.
6262 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
6263 * value.c (show_convenience): Update.
6264 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
6265 (test_parse_flags_qcs): Update.
6266 * thread.c (thr_try_catch_cmd): Update.
6267 * target.c (target_translate_tls_address): Update.
6268 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
6269 (info_frame_command_core, frame_apply_command_count): Update.
6270 * rust-exp.y (rust_lex_exception_test): Update.
6271 * riscv-tdep.c (riscv_print_one_register_info): Update.
6272 * remote.c (remote_target::enable_btrace): Update.
6273 * record-btrace.c (record_btrace_enable_warn): Update.
6274 * python/py-utils.c (gdbpy_convert_exception): Update.
6275 * printcmd.c (do_one_display, print_variable_and_value): Update.
6276 * mi/mi-main.c (mi_print_exception): Update.
6277 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
6278 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
6279 * linux-nat.c (linux_nat_target::attach): Update.
6280 * linux-fork.c (class scoped_switch_fork_info): Update.
6281 * infrun.c (displaced_step_prepare): Update.
6282 * infcall.c (call_function_by_hand_dummy): Update.
6283 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
6284 * gnu-v3-abi.c (print_one_vtable): Update.
6285 * frame.c (get_prev_frame_always): Update.
6286 * f-valprint.c (info_common_command_for_block): Update.
6287 * exec.c (try_open_exec_file): Update.
6288 * exceptions.c (print_exception, exception_print)
6289 (exception_fprintf, exception_print_same): Update.
6290 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
6291 * dwarf-index-cache.c (index_cache::store)
6292 (index_cache::lookup_gdb_index): Update.
6293 * darwin-nat.c (maybe_cache_shell): Update.
6294 * cp-valprint.c (cp_print_value_fields): Update.
6295 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
6296 (gcc_cplus_symbol_address): Update.
6297 * compile/compile-c-symbols.c (gcc_convert_symbol)
6298 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
6299 * common/selftest.c: Update.
6300 * common/common-exceptions.h (struct gdb_exception) <message>: Now
6301 a std::string.
6302 (exception_try_scope_entry, exception_try_scope_exit): Don't
6303 declare.
6304 (struct exception_try_scope): Remove.
6305 (TRY): Don't use exception_try_scope.
6306 (struct gdb_exception): Add constructor, operator=.
6307 <what>: New method.
6308 (struct gdb_exception_RETURN_MASK_ALL)
6309 (struct gdb_exception_RETURN_MASK_ERROR)
6310 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
6311 (struct gdb_quit_bad_alloc): Update.
6312 * common/common-exceptions.c (exception_none): Change
6313 initializer.
6314 (struct catcher) <state, exception>: Initialize inline.
6315 <prev>: Remove member.
6316 (current_catcher): Remove.
6317 (catchers): New global.
6318 (exceptions_state_mc_init): Simplify.
6319 (catcher_pop): Remove.
6320 (exceptions_state_mc, exceptions_state_mc_catch): Update.
6321 (try_scope_depth, exception_try_scope_entry)
6322 (exception_try_scope_exit): Remove.
6323 (throw_exception_sjlj): Update.
6324 (exception_messages, exception_messages_size): Remove.
6325 (throw_it): Simplify.
6326 (gdb_exception_sliced_copy): Remove.
6327 (throw_exception_cxx): Update.
6328 * cli/cli-script.c (script_from_file): Update.
6329 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
6330 Update.
6331 * ada-valprint.c (ada_val_print): Update.
6332 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
6333 (create_excep_cond_exprs): Update.
6334
6335 2019-04-08 Tom Tromey <tom@tromey.com>
6336
6337 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
6338 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
6339 (TRY, CATCH, END_CATCH): Remove some definitions.
6340 * common/common-exceptions.c: Don't use GDB_XCPT.
6341 (catcher_list_size): Remove.
6342 (throw_exception, throw_it): Simplify.
6343
6344 2019-04-05 Tom Tromey <tom@tromey.com>
6345
6346 Revert the header-sorting patch.
6347 * ft32-tdep.c: Revert.
6348 * frv-tdep.c: Revert.
6349 * frv-linux-tdep.c: Revert.
6350 * frame.c: Revert.
6351 * frame-unwind.c: Revert.
6352 * frame-base.c: Revert.
6353 * fork-child.c: Revert.
6354 * findvar.c: Revert.
6355 * findcmd.c: Revert.
6356 * filesystem.c: Revert.
6357 * filename-seen-cache.h: Revert.
6358 * filename-seen-cache.c: Revert.
6359 * fbsd-tdep.c: Revert.
6360 * fbsd-nat.h: Revert.
6361 * fbsd-nat.c: Revert.
6362 * f-valprint.c: Revert.
6363 * f-typeprint.c: Revert.
6364 * f-lang.c: Revert.
6365 * extension.h: Revert.
6366 * extension.c: Revert.
6367 * extension-priv.h: Revert.
6368 * expprint.c: Revert.
6369 * exec.h: Revert.
6370 * exec.c: Revert.
6371 * exceptions.c: Revert.
6372 * event-top.c: Revert.
6373 * event-loop.c: Revert.
6374 * eval.c: Revert.
6375 * elfread.c: Revert.
6376 * dwarf2read.h: Revert.
6377 * dwarf2read.c: Revert.
6378 * dwarf2loc.c: Revert.
6379 * dwarf2expr.h: Revert.
6380 * dwarf2expr.c: Revert.
6381 * dwarf2-frame.c: Revert.
6382 * dwarf2-frame-tailcall.c: Revert.
6383 * dwarf-index-write.h: Revert.
6384 * dwarf-index-write.c: Revert.
6385 * dwarf-index-common.c: Revert.
6386 * dwarf-index-cache.h: Revert.
6387 * dwarf-index-cache.c: Revert.
6388 * dummy-frame.c: Revert.
6389 * dtrace-probe.c: Revert.
6390 * disasm.h: Revert.
6391 * disasm.c: Revert.
6392 * disasm-selftests.c: Revert.
6393 * dictionary.c: Revert.
6394 * dicos-tdep.c: Revert.
6395 * demangle.c: Revert.
6396 * dcache.h: Revert.
6397 * dcache.c: Revert.
6398 * darwin-nat.h: Revert.
6399 * darwin-nat.c: Revert.
6400 * darwin-nat-info.c: Revert.
6401 * d-valprint.c: Revert.
6402 * d-namespace.c: Revert.
6403 * d-lang.c: Revert.
6404 * ctf.c: Revert.
6405 * csky-tdep.c: Revert.
6406 * csky-linux-tdep.c: Revert.
6407 * cris-tdep.c: Revert.
6408 * cris-linux-tdep.c: Revert.
6409 * cp-valprint.c: Revert.
6410 * cp-support.c: Revert.
6411 * cp-namespace.c: Revert.
6412 * cp-abi.c: Revert.
6413 * corelow.c: Revert.
6414 * corefile.c: Revert.
6415 * continuations.c: Revert.
6416 * completer.h: Revert.
6417 * completer.c: Revert.
6418 * complaints.c: Revert.
6419 * coffread.c: Revert.
6420 * coff-pe-read.c: Revert.
6421 * cli-out.h: Revert.
6422 * cli-out.c: Revert.
6423 * charset.c: Revert.
6424 * c-varobj.c: Revert.
6425 * c-valprint.c: Revert.
6426 * c-typeprint.c: Revert.
6427 * c-lang.c: Revert.
6428 * buildsym.c: Revert.
6429 * buildsym-legacy.c: Revert.
6430 * build-id.h: Revert.
6431 * build-id.c: Revert.
6432 * btrace.c: Revert.
6433 * bsd-uthread.c: Revert.
6434 * breakpoint.h: Revert.
6435 * breakpoint.c: Revert.
6436 * break-catch-throw.c: Revert.
6437 * break-catch-syscall.c: Revert.
6438 * break-catch-sig.c: Revert.
6439 * blockframe.c: Revert.
6440 * block.c: Revert.
6441 * bfin-tdep.c: Revert.
6442 * bfin-linux-tdep.c: Revert.
6443 * bfd-target.c: Revert.
6444 * bcache.c: Revert.
6445 * ax-general.c: Revert.
6446 * ax-gdb.h: Revert.
6447 * ax-gdb.c: Revert.
6448 * avr-tdep.c: Revert.
6449 * auxv.c: Revert.
6450 * auto-load.c: Revert.
6451 * arm-wince-tdep.c: Revert.
6452 * arm-tdep.c: Revert.
6453 * arm-symbian-tdep.c: Revert.
6454 * arm-pikeos-tdep.c: Revert.
6455 * arm-obsd-tdep.c: Revert.
6456 * arm-nbsd-tdep.c: Revert.
6457 * arm-nbsd-nat.c: Revert.
6458 * arm-linux-tdep.c: Revert.
6459 * arm-linux-nat.c: Revert.
6460 * arm-fbsd-tdep.c: Revert.
6461 * arm-fbsd-nat.c: Revert.
6462 * arm-bsd-tdep.c: Revert.
6463 * arch-utils.c: Revert.
6464 * arc-tdep.c: Revert.
6465 * arc-newlib-tdep.c: Revert.
6466 * annotate.h: Revert.
6467 * annotate.c: Revert.
6468 * amd64-windows-tdep.c: Revert.
6469 * amd64-windows-nat.c: Revert.
6470 * amd64-tdep.c: Revert.
6471 * amd64-sol2-tdep.c: Revert.
6472 * amd64-obsd-tdep.c: Revert.
6473 * amd64-obsd-nat.c: Revert.
6474 * amd64-nbsd-tdep.c: Revert.
6475 * amd64-nbsd-nat.c: Revert.
6476 * amd64-nat.c: Revert.
6477 * amd64-linux-tdep.c: Revert.
6478 * amd64-linux-nat.c: Revert.
6479 * amd64-fbsd-tdep.c: Revert.
6480 * amd64-fbsd-nat.c: Revert.
6481 * amd64-dicos-tdep.c: Revert.
6482 * amd64-darwin-tdep.c: Revert.
6483 * amd64-bsd-nat.c: Revert.
6484 * alpha-tdep.c: Revert.
6485 * alpha-obsd-tdep.c: Revert.
6486 * alpha-nbsd-tdep.c: Revert.
6487 * alpha-mdebug-tdep.c: Revert.
6488 * alpha-linux-tdep.c: Revert.
6489 * alpha-linux-nat.c: Revert.
6490 * alpha-bsd-tdep.c: Revert.
6491 * alpha-bsd-nat.c: Revert.
6492 * aix-thread.c: Revert.
6493 * agent.c: Revert.
6494 * addrmap.c: Revert.
6495 * ada-varobj.c: Revert.
6496 * ada-valprint.c: Revert.
6497 * ada-typeprint.c: Revert.
6498 * ada-tasks.c: Revert.
6499 * ada-lang.c: Revert.
6500 * aarch64-tdep.c: Revert.
6501 * aarch64-ravenscar-thread.c: Revert.
6502 * aarch64-newlib-tdep.c: Revert.
6503 * aarch64-linux-tdep.c: Revert.
6504 * aarch64-linux-nat.c: Revert.
6505 * aarch64-fbsd-tdep.c: Revert.
6506 * aarch64-fbsd-nat.c: Revert.
6507 * aarch32-linux-nat.c: Revert.
6508
6509 2019-04-05 Tom Tromey <tom@tromey.com>
6510
6511 * ft32-tdep.c: Sort headers.
6512 * frv-tdep.c: Sort headers.
6513 * frv-linux-tdep.c: Sort headers.
6514 * frame.c: Sort headers.
6515 * frame-unwind.c: Sort headers.
6516 * frame-base.c: Sort headers.
6517 * fork-child.c: Sort headers.
6518 * findvar.c: Sort headers.
6519 * findcmd.c: Sort headers.
6520 * filesystem.c: Sort headers.
6521 * filename-seen-cache.h: Sort headers.
6522 * filename-seen-cache.c: Sort headers.
6523 * fbsd-tdep.c: Sort headers.
6524 * fbsd-nat.h: Sort headers.
6525 * fbsd-nat.c: Sort headers.
6526 * f-valprint.c: Sort headers.
6527 * f-typeprint.c: Sort headers.
6528 * f-lang.c: Sort headers.
6529 * extension.h: Sort headers.
6530 * extension.c: Sort headers.
6531 * extension-priv.h: Sort headers.
6532 * expprint.c: Sort headers.
6533 * exec.h: Sort headers.
6534 * exec.c: Sort headers.
6535 * exceptions.c: Sort headers.
6536 * event-top.c: Sort headers.
6537 * event-loop.c: Sort headers.
6538 * eval.c: Sort headers.
6539 * elfread.c: Sort headers.
6540 * dwarf2read.h: Sort headers.
6541 * dwarf2read.c: Sort headers.
6542 * dwarf2loc.c: Sort headers.
6543 * dwarf2expr.h: Sort headers.
6544 * dwarf2expr.c: Sort headers.
6545 * dwarf2-frame.c: Sort headers.
6546 * dwarf2-frame-tailcall.c: Sort headers.
6547 * dwarf-index-write.h: Sort headers.
6548 * dwarf-index-write.c: Sort headers.
6549 * dwarf-index-common.c: Sort headers.
6550 * dwarf-index-cache.h: Sort headers.
6551 * dwarf-index-cache.c: Sort headers.
6552 * dummy-frame.c: Sort headers.
6553 * dtrace-probe.c: Sort headers.
6554 * disasm.h: Sort headers.
6555 * disasm.c: Sort headers.
6556 * disasm-selftests.c: Sort headers.
6557 * dictionary.c: Sort headers.
6558 * dicos-tdep.c: Sort headers.
6559 * demangle.c: Sort headers.
6560 * dcache.h: Sort headers.
6561 * dcache.c: Sort headers.
6562 * darwin-nat.h: Sort headers.
6563 * darwin-nat.c: Sort headers.
6564 * darwin-nat-info.c: Sort headers.
6565 * d-valprint.c: Sort headers.
6566 * d-namespace.c: Sort headers.
6567 * d-lang.c: Sort headers.
6568 * ctf.c: Sort headers.
6569 * csky-tdep.c: Sort headers.
6570 * csky-linux-tdep.c: Sort headers.
6571 * cris-tdep.c: Sort headers.
6572 * cris-linux-tdep.c: Sort headers.
6573 * cp-valprint.c: Sort headers.
6574 * cp-support.c: Sort headers.
6575 * cp-namespace.c: Sort headers.
6576 * cp-abi.c: Sort headers.
6577 * corelow.c: Sort headers.
6578 * corefile.c: Sort headers.
6579 * continuations.c: Sort headers.
6580 * completer.h: Sort headers.
6581 * completer.c: Sort headers.
6582 * complaints.c: Sort headers.
6583 * coffread.c: Sort headers.
6584 * coff-pe-read.c: Sort headers.
6585 * cli-out.h: Sort headers.
6586 * cli-out.c: Sort headers.
6587 * charset.c: Sort headers.
6588 * c-varobj.c: Sort headers.
6589 * c-valprint.c: Sort headers.
6590 * c-typeprint.c: Sort headers.
6591 * c-lang.c: Sort headers.
6592 * buildsym.c: Sort headers.
6593 * buildsym-legacy.c: Sort headers.
6594 * build-id.h: Sort headers.
6595 * build-id.c: Sort headers.
6596 * btrace.c: Sort headers.
6597 * bsd-uthread.c: Sort headers.
6598 * breakpoint.h: Sort headers.
6599 * breakpoint.c: Sort headers.
6600 * break-catch-throw.c: Sort headers.
6601 * break-catch-syscall.c: Sort headers.
6602 * break-catch-sig.c: Sort headers.
6603 * blockframe.c: Sort headers.
6604 * block.c: Sort headers.
6605 * bfin-tdep.c: Sort headers.
6606 * bfin-linux-tdep.c: Sort headers.
6607 * bfd-target.c: Sort headers.
6608 * bcache.c: Sort headers.
6609 * ax-general.c: Sort headers.
6610 * ax-gdb.h: Sort headers.
6611 * ax-gdb.c: Sort headers.
6612 * avr-tdep.c: Sort headers.
6613 * auxv.c: Sort headers.
6614 * auto-load.c: Sort headers.
6615 * arm-wince-tdep.c: Sort headers.
6616 * arm-tdep.c: Sort headers.
6617 * arm-symbian-tdep.c: Sort headers.
6618 * arm-pikeos-tdep.c: Sort headers.
6619 * arm-obsd-tdep.c: Sort headers.
6620 * arm-nbsd-tdep.c: Sort headers.
6621 * arm-nbsd-nat.c: Sort headers.
6622 * arm-linux-tdep.c: Sort headers.
6623 * arm-linux-nat.c: Sort headers.
6624 * arm-fbsd-tdep.c: Sort headers.
6625 * arm-fbsd-nat.c: Sort headers.
6626 * arm-bsd-tdep.c: Sort headers.
6627 * arch-utils.c: Sort headers.
6628 * arc-tdep.c: Sort headers.
6629 * arc-newlib-tdep.c: Sort headers.
6630 * annotate.h: Sort headers.
6631 * annotate.c: Sort headers.
6632 * amd64-windows-tdep.c: Sort headers.
6633 * amd64-windows-nat.c: Sort headers.
6634 * amd64-tdep.c: Sort headers.
6635 * amd64-sol2-tdep.c: Sort headers.
6636 * amd64-obsd-tdep.c: Sort headers.
6637 * amd64-obsd-nat.c: Sort headers.
6638 * amd64-nbsd-tdep.c: Sort headers.
6639 * amd64-nbsd-nat.c: Sort headers.
6640 * amd64-nat.c: Sort headers.
6641 * amd64-linux-tdep.c: Sort headers.
6642 * amd64-linux-nat.c: Sort headers.
6643 * amd64-fbsd-tdep.c: Sort headers.
6644 * amd64-fbsd-nat.c: Sort headers.
6645 * amd64-dicos-tdep.c: Sort headers.
6646 * amd64-darwin-tdep.c: Sort headers.
6647 * amd64-bsd-nat.c: Sort headers.
6648 * alpha-tdep.c: Sort headers.
6649 * alpha-obsd-tdep.c: Sort headers.
6650 * alpha-nbsd-tdep.c: Sort headers.
6651 * alpha-mdebug-tdep.c: Sort headers.
6652 * alpha-linux-tdep.c: Sort headers.
6653 * alpha-linux-nat.c: Sort headers.
6654 * alpha-bsd-tdep.c: Sort headers.
6655 * alpha-bsd-nat.c: Sort headers.
6656 * aix-thread.c: Sort headers.
6657 * agent.c: Sort headers.
6658 * addrmap.c: Sort headers.
6659 * ada-varobj.c: Sort headers.
6660 * ada-valprint.c: Sort headers.
6661 * ada-typeprint.c: Sort headers.
6662 * ada-tasks.c: Sort headers.
6663 * ada-lang.c: Sort headers.
6664 * aarch64-tdep.c: Sort headers.
6665 * aarch64-ravenscar-thread.c: Sort headers.
6666 * aarch64-newlib-tdep.c: Sort headers.
6667 * aarch64-linux-tdep.c: Sort headers.
6668 * aarch64-linux-nat.c: Sort headers.
6669 * aarch64-fbsd-tdep.c: Sort headers.
6670 * aarch64-fbsd-nat.c: Sort headers.
6671 * aarch32-linux-nat.c: Sort headers.
6672
6673 2019-04-04 Tom Tromey <tom@tromey.com>
6674
6675 * varobj.c (varobj_create): Update.
6676 * rust-exp.y (struct rust_parser) <update_innermost_block,
6677 lookup_symbol>: New methods.
6678 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
6679 Rename.
6680 (rust_parser::rust_lookup_type)
6681 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
6682 * printcmd.c (display_command, do_one_display): Update.
6683 * parser-defs.h (struct parser_state) <parser_state>: Add
6684 "tracker" parameter.
6685 (block_tracker): New member.
6686 (class innermost_block_tracker) <innermost_block_tracker>: Add
6687 "types" parameter.
6688 <reset>: Remove method.
6689 (innermost_block): Don't declare.
6690 (null_post_parser): Update.
6691 * parse.c (innermost_block): Remove global.
6692 (write_dollar_variable): Update.
6693 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
6694 Remove "tracker_types" parameter.
6695 (parse_expression): Add "tracker" parameter.
6696 (parse_expression_for_completion): Update.
6697 (null_post_parser): Add "tracker" parameter.
6698 * p-exp.y: Update rules.
6699 * m2-exp.y: Update rules.
6700 * language.h (struct language_defn) <la_post_parser>: Add
6701 "tracker" parameter.
6702 * go-exp.y: Update rules.
6703 * f-exp.y: Update rules.
6704 * expression.h (parse_expression, parse_exp_1): Add "tracker"
6705 parameter.
6706 * d-exp.y: Update rules.
6707 * c-exp.y: Update rules.
6708 * breakpoint.c (set_breakpoint_condition): Create an
6709 innermost_block_tracker.
6710 (watch_command_1): Likewise.
6711 * ada-lang.c (resolve): Add "tracker" parameter.
6712 (resolve_subexp): Likewise.
6713 * ada-exp.y (write_var_from_sym): Update.
6714
6715 2019-04-04 Tom Tromey <tom@tromey.com>
6716
6717 * type-stack.h: New file.
6718 * type-stack.c: New file.
6719 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
6720 type-stack.h.
6721 (insert_into_type_stack, insert_type, push_type, push_type_int)
6722 (insert_type_address_space, pop_type, pop_type_int)
6723 (pop_typelist, pop_type_stack, append_type_stack)
6724 (push_type_stack, get_type_stack, push_typelist)
6725 (follow_type_instance_flags, follow_types): Don't declare.
6726 * parse.c (type_stack): Remove global.
6727 (parse_exp_in_context): Update.
6728 (insert_into_type_stack, insert_type, push_type, push_type_int)
6729 (insert_type_address_space, pop_type, pop_type_int)
6730 (pop_typelist, pop_type_stack, append_type_stack)
6731 (push_type_stack, get_type_stack, push_typelist)
6732 (follow_type_instance_flags, follow_types): Remove (moved to
6733 type-stack.c).
6734 * f-exp.y (type_stack): New global.
6735 Update rules.
6736 (push_kind_type, f_parse): Update.
6737 * d-exp.y (type_stack): New global.
6738 Update rules.
6739 (d_parse): Update.
6740 * c-exp.y (struct c_parse_state) <type_stack>: New member.
6741 Update rules.
6742 * Makefile.in (COMMON_SFILES): Add type-stack.c.
6743 (HFILES_NO_SRCDIR): Add type-stack.h.
6744
6745 2019-04-04 Tom Tromey <tom@tromey.com>
6746
6747 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
6748 (rust_parser::convert_ast_to_expression, rust_parse)
6749 (rust_lex_test_completion, rust_lex_tests): Update.
6750 * parser-defs.h (struct expr_completion_state): New.
6751 (struct parser_state) <parser_state>: Add completion parameter.
6752 <mark_struct_expression, mark_completion_tag>: New methods.
6753 <parse_completion, m_completion_state>: New members.
6754 (prefixify_expression, null_post_parser): Update.
6755 (mark_struct_expression, mark_completion_tag): Don't declare.
6756 * parse.c (parse_completion, expout_last_struct)
6757 (expout_tag_completion_type, expout_completion_name): Remove
6758 globals.
6759 (parser_state::mark_struct_expression)
6760 (parser_state::mark_completion_tag): Now methods.
6761 (prefixify_expression): Add last_struct parameter.
6762 (prefixify_subexp): Likewise.
6763 (parse_exp_1): Update.
6764 (parse_exp_in_context): Add cstate parameter. Update.
6765 (parse_expression_for_completion): Create an
6766 expr_completion_state.
6767 (null_post_parser): Add "completion" parameter.
6768 * p-exp.y: Update rules.
6769 (yylex): Update.
6770 * language.h (struct language_defn) <la_post_parser>: Add
6771 "completing" parameter.
6772 * go-exp.y: Update rules.
6773 (lex_one_token): Update.
6774 * expression.h (parse_completion): Don't declare.
6775 * d-exp.y: Update rules.
6776 (lex_one_token): Update rules.
6777 * c-exp.y: Update rules.
6778 (lex_one_token): Update.
6779 * ada-lang.c (resolve): Add "parse_completion" parameter.
6780 (resolve_subexp): Likewise.
6781 (ada_resolve_function): Likewise.
6782
6783 2019-04-04 Tom Tromey <tom@tromey.com>
6784
6785 * parser-defs.h (struct parser_state) <start_arglist,
6786 end_arglist>: New methods.
6787 <arglist_len, m_funcall_chain>: New members.
6788 (arglist_len, start_arglist, end_arglist): Don't declare.
6789 * parse.c (arglist_len, funcall_chain): Remove global.
6790 (start_arglist, end_arglist): Remove functions.
6791 (parse_exp_in_context): Update.
6792 * p-exp.y: Update rules.
6793 * m2-exp.y: Update rules.
6794 * go-exp.y: Update rules.
6795 * f-exp.y: Update rules.
6796 * d-exp.y: Update rules.
6797 * c-exp.y: Update rules.
6798
6799 2019-04-04 Tom Tromey <tom@tromey.com>
6800
6801 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
6802 lex_operator, push_back>: New methods.
6803 Update all rules.
6804 (rust_parser::lex_hex, lex_escape): Rename and update.
6805 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
6806 (rust_parser::lex_operator): Rename and update.
6807 (rust_parser::lex_number, rustyylex, rustyyerror)
6808 (rust_lex_test_init, rust_lex_test_sequence)
6809 (rust_lex_test_push_back, rust_lex_tests): Update.
6810 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
6811 parameter.
6812 <lexptr, prev_lexptr>: New members.
6813 (lexptr, prev_lexptr): Don't declare.
6814 * parse.c (lexptr, prev_lexptr): Remove globals.
6815 (parse_exp_in_context): Update.
6816 * p-exp.y (yylex, yyerror): Update.
6817 * m2-exp.y (parse_number, yylex, yyerror): Update.
6818 * go-exp.y (lex_one_token, yyerror): Update.
6819 * f-exp.y (match_string_literal, yylex, yyerror): Update.
6820 * d-exp.y (lex_one_token, yyerror): Update.
6821 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
6822 (lex_one_token, yyerror): Update.
6823 * ada-lex.l (YY_INPUT): Update.
6824 (rewind_to_char): Update.
6825 * ada-exp.y (yyerror): Update.
6826
6827 2019-04-04 Tom Tromey <tom@tromey.com>
6828
6829 * rust-exp.y (rustyylex, rust_lex_tests): Update.
6830 * parser-defs.h (struct parser_state) <parser_state>: Add new
6831 parameter.
6832 <comma_terminates>: New member.
6833 (comma_terminates): Don't declare global.
6834 * parse.c (comma_terminates): Remove global.
6835 (parse_exp_in_context): Update.
6836 * p-exp.y (yylex): Update.
6837 * m2-exp.y (yylex): Update.
6838 * go-exp.y (lex_one_token): Update.
6839 * f-exp.y (yylex): Update.
6840 * d-exp.y (lex_one_token): Update.
6841 * c-exp.y (lex_one_token): Update.
6842 * ada-lex.l: Update.
6843
6844 2019-04-04 Tom Tromey <tom@tromey.com>
6845
6846 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
6847 (rustyylex, rust_lex_test_init, rust_lex_test_one)
6848 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
6849 * parser-defs.h (paren_depth): Don't declare.
6850 * parse.c (paren_depth): Remove global.
6851 (parse_exp_in_context): Update.
6852 * p-exp.y (paren_depth): New global.
6853 (pascal_parse): Initialize it.
6854 * m2-exp.y (paren_depth): New global.
6855 (m2_parse): Initialize it.
6856 * go-exp.y (paren_depth): New global.
6857 (go_parse): Initialize it.
6858 * f-exp.y (paren_depth): New global.
6859 (f_parse): Initialize it.
6860 * d-exp.y (paren_depth): New global.
6861 (d_parse): Initialize it.
6862 * c-exp.y (paren_depth): New global.
6863 (c_parse): Initialize it.
6864 * ada-lex.l (paren_depth): New global.
6865 (lexer_init): Initialize it.
6866
6867 2019-04-04 Tom Tromey <tom@tromey.com>
6868
6869 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
6870 (rust_parser::convert_ast_to_type)
6871 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
6872 * parser-defs.h (struct parser_state) <parser_state>: Add
6873 parameters. Initialize new members.
6874 <expression_context_block, expression_context_pc>: New members.
6875 * parse.c (expression_context_block, expression_context_pc):
6876 Remove globals.
6877 (parse_exp_in_context): Update.
6878 * p-exp.y: Update all rules.
6879 (yylex): Update.
6880 * m2-exp.y: Update all rules.
6881 (yylex): Update.
6882 * go-exp.y (yylex): Update.
6883 * f-exp.y (yylex): Update.
6884 * d-exp.y: Update all rules.
6885 (yylex): Update.
6886 * c-exp.y: Update all rules.
6887 (lex_one_token, classify_name, yylex, c_parse): Update.
6888 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
6889
6890 2019-04-04 Tom Tromey <tom@tromey.com>
6891
6892 * gdbarch.h, gdbarch.c: Rebuild.
6893 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
6894 * stap-probe.h:
6895 (struct stap_parse_info): Replace "parser_state" with
6896 "expr_builder".
6897 * parser-defs.h (struct expr_builder): Rename from "parser_state".
6898 (parser_state): New class.
6899 * parse.c (expr_builder): Rename.
6900 (expr_builder::release): Rename.
6901 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
6902 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
6903 (write_exp_elt_longcst, write_exp_elt_floatcst)
6904 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
6905 (write_exp_string_vector, write_exp_bitstring)
6906 (write_exp_msymbol, mark_struct_expression)
6907 (write_dollar_variable)
6908 (insert_type_address_space, increase_expout_size): Replace
6909 "parser_state" with "expr_builder".
6910 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
6911 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
6912 "parser_state" with "expr_builder".
6913
6914 2019-04-04 Tom Tromey <tom@tromey.com>
6915
6916 * rust-exp.y: Replace "parse_language" with method call.
6917 * p-exp.y:
6918 (yylex): Replace "parse_language" with method call.
6919 * m2-exp.y:
6920 (yylex): Replace "parse_language" with method call.
6921 * go-exp.y (classify_name): Replace "parse_language" with method
6922 call.
6923 * f-exp.y (yylex): Replace "parse_language" with method call.
6924 * d-exp.y (lex_one_token): Replace "parse_language" with method
6925 call.
6926 * c-exp.y:
6927 (lex_one_token, classify_name, yylex): Replace "parse_language"
6928 with method call.
6929 * ada-exp.y (find_primitive_type, type_char)
6930 (type_system_address): Replace "parse_language" with method call.
6931
6932 2019-04-04 Tom Tromey <tom@tromey.com>
6933
6934 * rust-exp.y: Replace "parse_gdbarch" with method call.
6935 * parse.c (write_dollar_variable, insert_type_address_space):
6936 Replace "parse_gdbarch" with method call.
6937 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
6938 call.
6939 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
6940 call.
6941 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
6942 "parse_gdbarch" with method call.
6943 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
6944 with method call.
6945 * f-exp.y (parse_type, parse_f_type, yylex): Replace
6946 "parse_gdbarch" with method call.
6947 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
6948 "parse_gdbarch" with method call.
6949 * c-exp.y (parse_type, parse_number, classify_name): Replace
6950 "parse_gdbarch" with method call.
6951 * ada-lex.l: Replace "parse_gdbarch" with method call.
6952 * ada-exp.y (parse_type, find_primitive_type, type_char)
6953 (type_system_address): Replace "parse_gdbarch" with method call.
6954
6955 2019-04-04 Tom Tromey <tom@tromey.com>
6956
6957 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
6958 * stap-probe.c (stap_parse_argument): Update.
6959 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
6960 initial_size parameter.
6961 * rust-exp.y (rust_lex_tests): Update.
6962 * parse.c (parser_state): Update.
6963 (parse_exp_in_context): Update.
6964 * parser-defs.h (struct parser_state) <parser_state>: Remove
6965 "initial_size" parameter.
6966
6967 2019-04-04 Tom Tromey <tom@tromey.com>
6968
6969 * parser-defs.h (increase_expout_size): Don't declare.
6970 * parse.c (increase_expout_size): Now static.
6971
6972 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
6973
6974 * gnu-nat.c (gnu_nat_target::wait): Fix
6975 target_waitstatus_to_string call.
6976
6977 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
6978
6979 * eval.c (evaluate_subexp_standard): Handle internal functions
6980 during Fortran function call handling.
6981
6982 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
6983
6984 * NEWS: Mention new internal functions.
6985 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
6986 (read_base_type): Use dwarf2_init_complex_target_type.
6987 * value.c (creal_internal_fn): New function.
6988 (cimag_internal_fn): New function.
6989 (_initialize_values): Register new internal functions.
6990
6991 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6992
6993 * infrun.c (stop_all_threads): If debug_infrun, always
6994 trace the wait status after wait_one, using
6995 target_waitstatus_to_string and target_pid_to_str.
6996 (handle_inferior_event): Replace various trace of
6997 wait status kind by a single trace.
6998 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
6999 wait status kind image by target_waitstatus_to_string.
7000 * target/waitstatus.c (target_waitstatus_to_string): Fix
7001 obsolete comment.
7002
7003 2019-04-01 Tom Tromey <tromey@adacore.com>
7004
7005 PR symtab/23331:
7006 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
7007
7008 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
7009 Pedro Alves <palves@redhat.com>
7010
7011 * top.c (quit_force): Call 'finalize_values'.
7012 * value.c (finalize_values): New function.
7013 * value.h (finalize_values): Declare.
7014
7015 2019-03-30 Eli Zaretskii <eliz@gnu.org>
7016
7017 * NEWS: Announce $_gdb_major and $_gdb_minor.
7018
7019 * top.c (init_gdb_version_vars): New function.
7020 (gdb_init): Call init_gdb_version_vars.
7021
7022 2019-03-29 Tom Tromey <tromey@adacore.com>
7023
7024 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
7025 help text. Remove dead code.
7026
7027 2019-03-29 Keith Seitz <keiths@redhat.com>
7028
7029 From Siddhesh Poyarekar:
7030 * f-lang.h (f77_get_upperbound): Return LONGEST.
7031 (f77_get_lowerbound): Likewise.
7032 * f-typeprint.c (f_type_print_varspec_suffix): Expand
7033 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
7034 print them.
7035 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
7036 plongest to format print it.
7037 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
7038 (f77_get_upperbound): Likewise.
7039 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
7040 LOWER_BOUND to LONGEST.
7041 (f77_create_arrayprint_offset_tbl): Likewise.
7042
7043 2019-03-29 Keith Seitz <keiths@redhat.com>
7044
7045 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
7046 %s/pulongest for TYPE_LENGTH instead of %d in format
7047 strings.
7048 * ada-typerint.c (ada_print_type): Likewise.
7049 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
7050 * compile/compile-c-support.c (generate_register_struct): Likewise.
7051 * gdbtypes.c (recursive_dump_type): Likewise.
7052 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
7053 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
7054 instead of %d in format strings.
7055 * riscv-tdep.c (riscv_type_alignment): Cast second argument
7056 to std::min to ULONGEST.
7057 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
7058 instead of %d in format strings.
7059 * tracepoint.c (info_scope_command): Likewise.
7060 * typeprint.c (print_offset_data::update)
7061 (print_offset_data::finish): Likewise.
7062 * xtensa-tdep.c (xtensa_store_return_value)
7063 (xtensa_push_dummy_call): Likewise.
7064
7065 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
7066
7067 * windows-nat.c (display_selector): Fixed format specifications
7068 for 64-bit Cygwin.
7069
7070 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7071
7072 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
7073
7074 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
7075
7076 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
7077 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
7078 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
7079 (nios2_linux_init_abi): Install it.
7080
7081 2019-03-28 Alan Hayward <alan.hayward@arm.com>
7082
7083 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
7084
7085 2019-03-28 Alan Hayward <alan.hayward@arm.com>
7086
7087 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
7088
7089 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7090 Tom Tromey <tromey@adacore.com>
7091
7092 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
7093
7094 2019-03-26 Joel Brobecker <brobecker@adacore.com>
7095
7096 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
7097 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
7098 method to compute the bounds of range types. Also print "[evaluated]"
7099 if the bounds' values come from a dynamic evaluation.
7100
7101 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
7102
7103 * cp-valprint.c (cp_print_value_fields): Don't print trailing
7104 whitespace when pretty printing is on.
7105
7106 2019-03-26 Alan Hayward <alan.hayward@arm.com>
7107
7108 * ppc-linux-nat.c: Add include.
7109
7110 2019-03-26 Alan Hayward <alan.hayward@arm.com>
7111
7112 * NEWS: Mention AArch64 Pointer Authentication.
7113
7114 2019-03-26 Alan Hayward <alan.hayward@arm.com>
7115
7116 * arm-linux-nat.c: Add include.
7117
7118 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
7119
7120 * source-cache.c (source_cache::get_source_lines): Re-read
7121 fullname after calling open_source_file.
7122
7123 2019-03-25 John Baldwin <jhb@FreeBSD.org>
7124
7125 * NEWS: Mention TLS support for FreeBSD.
7126
7127 2019-03-25 Tom Tromey <tromey@adacore.com>
7128
7129 * minsyms.c (BUNCH_SIZE): Update comment.
7130 (~minimal_symbol_reader): Remove old comment.
7131 (compact_minimal_symbols): Update comment.
7132 (minimal_symbol_reader::install): Remove old comment. Update
7133 other comments.
7134
7135 2019-03-25 Alan Hayward <alan.hayward@arm.com>
7136
7137 * s390-linux-nat.c: Add include.
7138
7139 2019-03-25 Alan Hayward <alan.hayward@arm.com>
7140
7141 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
7142 Call linux_get_hwcap.
7143 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
7144 Likewise.
7145 (aarch64_linux_get_hwcap): Remove function.
7146 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
7147 declaration.
7148 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
7149 linux_get_hwcap.
7150 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
7151 * linux-tdep.c (linux_get_hwcap): Add function.
7152 (linux_get_hwcap2): Likewise.
7153 * linux-tdep.h (linux_get_hwcap): Add declaration.
7154 (linux_get_hwcap2): Likewise.
7155 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
7156 (ppc_linux_get_hwcap2): Likewise.
7157 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
7158 linux_get_hwcap.
7159 (ppc_linux_nat_target::insert_watchpoint): Likewise.
7160 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
7161 (ppc_linux_nat_target::read_description): Likewise.
7162 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
7163 * s390-linux-nat.c: Likewise.
7164 * s390-linux-tdep.c (s390_core_read_description): Likewise.
7165
7166 2019-03-24 Tom Tromey <tom@tromey.com>
7167
7168 * ada-lang.c (standard_lookup): Simplify initialization.
7169 (ada_lookup_symbol_nonlocal): Simplify return.
7170 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
7171 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
7172 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
7173 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
7174 initialization.
7175 * solib.c (solib_global_lookup): Simplify.
7176 * symtab.c (null_block_symbol): Remove.
7177 (symbol_cache_lookup): Simplify returns.
7178 (lookup_language_this): Simplify returns.
7179 (lookup_symbol_aux): Simplify return.
7180 (lookup_local_symbol): Simplify returns.
7181 (lookup_global_symbol_from_objfile): Simplify return.
7182 (lookup_symbol_in_objfile_symtabs)
7183 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
7184 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
7185 (lookup_static_symbol, lookup_global_symbol): Simplify return.
7186 * cp-namespace.c (cp_lookup_bare_symbol)
7187 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
7188 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
7189 (cp_lookup_nested_symbol): Don't use null_block_symbol.
7190 (cp_lookup_symbol_via_imports): Simplify initialization.
7191 (find_symbol_in_baseclass): Likewise.
7192 * symtab.h (null_block_symbol): Remove.
7193 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
7194 (d_lookup_nested_symbol, d_lookup_symbol_imports)
7195 (d_lookup_symbol_module): Likewise.
7196 (find_symbol_in_baseclass): Simplify initialization.
7197
7198 2019-03-24 Tom Tromey <tom@tromey.com>
7199
7200 * expression.h: Don't include symtab.h.
7201 (struct block): Forward declare.
7202
7203 2019-03-24 Tom Tromey <tom@tromey.com>
7204
7205 * c-exp.y (typebase): Remove casts.
7206 * gdbtypes.c (lookup_unsigned_typename, )
7207 (lookup_signed_typename): Remove cast.
7208 * eval.c (parse_to_comma_and_eval): Remove cast.
7209 * parse.c (write_dollar_variable): Remove cast.
7210 * block.h (struct block) <superblock>: Now const.
7211 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
7212 * psymtab.c (psym_map_matching_symbols): Make "block" const.
7213 (map_block): Make "block" const.
7214 * symfile.h (struct quick_symbol_functions)
7215 <map_matching_symbols>: Constify block argument to "callback".
7216 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
7217 const.
7218 (find_pc_sect_compunit_symtab): Make "b" const.
7219 (find_symbol_at_address): Likewise.
7220 (search_symbols): Likewise.
7221 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
7222 (dw2_debug_names_lookup_symbol): Likewise.
7223 (dw2_map_matching_symbols): Update.
7224 * p-valprint.c (pascal_val_print): Remove "block".
7225 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
7226 (aux_add_nonlocal_symbols): Make "block" const.
7227 (resolve_subexp): Remove cast.
7228 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
7229 const.
7230 (iterate_over_file_blocks): Likewise.
7231 * f-exp.y (%union) <bval>: Remove.
7232 * coffread.c (patch_opaque_types): Make "b" const.
7233 * spu-tdep.c (spu_catch_start): Make "block" const.
7234 * c-valprint.c (print_unpacked_pointer): Remove "block".
7235 * symmisc.c (dump_symtab_1): Make "b" const.
7236 (block_depth): Make "block" const.
7237 * d-exp.y (%union) <bval>: Remove.
7238 * cp-support.h (cp_lookup_rtti_type): Update.
7239 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
7240 * psymtab.c (psym_lookup_symbol): Make "block" const.
7241 (maintenance_check_psymtabs): Make "b" const.
7242 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
7243 (enumerate_locals, enumerate_args): Update.
7244 * python/py-symtab.c (stpy_global_block): Make "block" const.
7245 (stpy_static_block): Likewise.
7246 * inline-frame.c (block_starting_point_at): Make "new_block"
7247 const.
7248 * block.c (find_block_in_blockvector): Make return type const.
7249 (blockvector_for_pc_sect): Make "b" const.
7250 (find_block_in_blockvector): Make "b" const.
7251
7252 2019-03-23 Tom Tromey <tom@tromey.com>
7253
7254 * varobj.c (varobj_create): Update.
7255 * symfile.c (clear_symtab_users): Don't reset innermost_block.
7256 * printcmd.c (display_command, do_one_display): Don't reset
7257 innermost_block.
7258 * parser-defs.h (enum innermost_block_tracker_type): Move to
7259 expression.h.
7260 (innermost_block): Update comment.
7261 * parse.c (parse_exp_1): Add tracker_types parameter.
7262 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
7263 tracker_types parameter. Reset innermost_block.
7264 (parse_exp_in_context): Remove.
7265 (parse_expression_for_completion): Update.
7266 * objfiles.c (~objfile): Don't reset expression_context_block or
7267 innermost_block.
7268 * expression.h (enum innermost_block_tracker_type): Move from
7269 parser-defs.h.
7270 (parse_exp_1): Add tracker_types parameter.
7271 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
7272 reset innermost_block.
7273
7274 2019-03-23 Tom Tromey <tom@tromey.com>
7275
7276 * objfiles.h: Include bcache.h.
7277
7278 2019-03-23 Tom Tromey <tom@tromey.com>
7279
7280 * linespec.c (get_current_search_block): Use
7281 scoped_restore_current_language.
7282 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
7283
7284 2019-03-22 Alan Hayward <alan.hayward@arm.com>
7285 Jiong Wang <jiong.wang@arm.com>
7286
7287 * aarch64-linux-tdep.c
7288 (aarch64_linux_iterate_over_regset_sections): Check for pauth
7289 section.
7290 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
7291
7292 2019-03-22 Alan Hayward <alan.hayward@arm.com>
7293 Jiong Wang <jiong.wang@arm.com>
7294
7295 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
7296 instructions.
7297 (aarch64_analyze_prologue_test): Add PACIASP test.
7298 (aarch64_prologue_prev_register): Unmask PC value.
7299
7300 2019-03-22 Alan Hayward <alan.hayward@arm.com>
7301 Jiong Wang <jiong.wang@arm.com>
7302
7303 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
7304 (aarch64_dwarf2_prev_register): Unmask PC value.
7305 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
7306 (aarch64_execute_dwarf_cfa_vendor_op): Check for
7307 DW_CFA_AARCH64_negate_ra_state.
7308 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
7309
7310 2019-03-22 Alan Hayward <alan.hayward@arm.com>
7311 Jiong Wang <jiong.wang@arm.com>
7312
7313 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
7314 registers.
7315 (aarch64_pseudo_register_name): Likewise.
7316 (aarch64_pseudo_register_type): Likewise.
7317 (aarch64_pseudo_register_reggroup_p): Likewise.
7318 (aarch64_gdbarch_init): Add pauth registers.
7319 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
7320 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
7321 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
7322 (struct gdbarch_tdep): Add regnum for ra_state.
7323
7324 2019-03-22 Alan Hayward <alan.hayward@arm.com>
7325 Jiong Wang <jiong.wang@arm.com>
7326
7327 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
7328
7329 2019-03-22 Alan Hayward <alan.hayward@arm.com>
7330 Jiong Wang <jiong.wang@arm.com>
7331
7332 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
7333 function.
7334 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
7335 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
7336 (aarch64_gdbarch_init): Add puth registers.
7337 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
7338 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
7339 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
7340
7341 2019-03-22 Alan Hayward <alan.hayward@arm.com>
7342 Jiong Wang <jiong.wang@arm.com>
7343
7344 * aarch64-linux-nat.c
7345 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
7346 * aarch64-linux-tdep.c
7347 (aarch64_linux_core_read_description): Likewise.
7348 (aarch64_linux_get_hwcap): New function.
7349 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
7350 (aarch64_linux_get_hwcap): New declaration.
7351
7352 2019-03-22 Alan Hayward <alan.hayward@arm.com>
7353 Jiong Wang <jiong.wang@arm.com>
7354
7355 * aarch64-linux-nat.c
7356 (aarch64_linux_nat_target::read_description): Add pauth param.
7357 * aarch64-linux-tdep.c
7358 (aarch64_linux_core_read_description): Likewise.
7359 * aarch64-tdep.c (struct target_desc): Add in pauth.
7360 (aarch64_read_description): Add pauth param.
7361 (aarch64_gdbarch_init): Likewise.
7362 * aarch64-tdep.h (aarch64_read_description): Likewise.
7363 * arch/aarch64.c (aarch64_create_target_description): Likewise.
7364 * arch/aarch64.h (aarch64_create_target_description): Likewise.
7365 * features/Makefile: Add new files.
7366 * features/aarch64-pauth.c: New file.
7367 * features/aarch64-pauth.xml: New file.
7368
7369 2019-03-20 Tom Tromey <tromey@adacore.com>
7370
7371 * infrun.c (handle_inferior_event): Rename from
7372 handle_inferior_event_1. Create a scoped_value_mark.
7373 (handle_inferior_event): Remove.
7374
7375 2019-03-19 Tom Tromey <tromey@adacore.com>
7376
7377 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
7378 * infrun.h (print_stop_event): Add "displays" parameter.
7379 * infrun.c (print_stop_event): Add "displays" parameter.
7380
7381 2019-03-19 Pedro Alves <palves@redhat.com>
7382
7383 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
7384 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
7385 to -1. Fix TABs vs spaces.
7386 (tui_ui_out::tui_ui_out): Don't initialize fields here.
7387 * tui/tui-out.h (tui_ui_out) Add intro comments.
7388 <m_line, m_start_of_line>: In-class initialize, and add describing
7389 comment.
7390
7391 2019-03-18 Alan Hayward <alan.hayward@arm.com>
7392
7393 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
7394 variable names.
7395 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
7396
7397 2019-03-18 Pedro Alves <palves@redhat.com>
7398 Eli Zaretskii <eliz@gnu.org>
7399
7400 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
7401 m_line and m_start_of_line.
7402
7403 2019-03-18 Eli Zaretskii <eliz@gnu.org>
7404
7405 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
7406 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
7407 it returns a newline. This fixes a regression in TU mode, whereby
7408 the next line is output on the same screen line as the user input.
7409
7410 2019-03-18 Tom Tromey <tromey@adacore.com>
7411
7412 * minsyms.c (minimal_symbol_reader::install): Remove call to
7413 obstack_blank.
7414
7415 2019-03-18 Pedro Alves <palves@redhat.com>
7416
7417 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
7418 New globals.
7419 (apply_style): New, factored out from ...
7420 (apply_ansi_escape): ... this. Handle reverse video mode.
7421 (tui_set_reverse_mode): New function.
7422 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
7423 * tui/tui-winsource.c (tui_show_source_line): Use
7424 tui_set_reverse_mode instead of setting A_STANDOUT.
7425 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
7426 New setter methods.
7427
7428 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
7429
7430 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
7431 Handle tabs.
7432
7433 2019-03-18 Tom Tromey <tromey@adacore.com>
7434
7435 * ada-lang.c (empty_array): Add "high" parameter.
7436 (ada_evaluate_subexp): Update.
7437
7438 2019-03-17 Sergei Trofimovich <siarheit@google.com>
7439
7440 * unittests/string_view-selftests.c: Define
7441 _initialize_string_view_selftests unconditionally.
7442
7443 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
7444
7445 PR gdb/24350
7446 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
7447
7448 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
7449
7450 PR gdb/24351
7451 * windows-nat.c (display_selector): Fix format specifiers.
7452
7453 2019-03-17 Eli Zaretskii <eliz@gnu.org>
7454
7455 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
7456 tui_refill_source_window instead of tui_refresh_win, to update the
7457 current execution line. This fixes redisplay of the current line
7458 when stepping through the code with "next" or "step".
7459
7460 2019-03-16 Eli Zaretskii <eliz@gnu.org>
7461
7462 * source-cache.c (source_cache::get_source_lines): Call
7463 find_source_lines to initialize s->nlines. This fixes vertical
7464 scrolling of TUI source window when the DOWN arrow is pressed.
7465
7466 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7467
7468 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
7469 linux-thread-db.c (_initialize_thread_db): Likewise.
7470
7471 2019-03-16 Eli Zaretskii <eliz@gnu.org>
7472
7473 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
7474 wclrtoeol in tui_show_source_line". This reverts changes made in
7475 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
7476
7477 2019-03-15 Tom Tromey <tom@tromey.com>
7478
7479 * symtab.h (struct minimal_symbol): Derive from
7480 general_symbol_info.
7481 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
7482 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
7483 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
7484 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
7485 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
7486 (MSYMBOL_SEARCH_NAME): Update.
7487 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
7488 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
7489 * minsyms.c (minimal_symbol_reader::record_full): Update.
7490
7491 2019-03-15 Tom Tromey <tom@tromey.com>
7492
7493 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
7494
7495 2019-03-15 Tom Tromey <tom@tromey.com>
7496
7497 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
7498 unique_xmalloc_ptr.
7499 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
7500 Update.
7501 * minsyms.c (lookup_minimal_symbol_by_pc_section)
7502 (build_minimal_symbol_hash_tables)
7503 (minimal_symbol_reader::install): Update.
7504
7505 2019-03-15 Tom Tromey <tom@tromey.com>
7506
7507 * symtab.c (create_demangled_names_hash): Update.
7508 (symbol_set_names): Update.
7509 * objfiles.h (struct objfile_per_bfd_storage)
7510 <demangled_names_hash>: Now an htab_up.
7511 * objfiles.c (objfile_per_bfd_storage): Simplify.
7512
7513 2019-03-15 Tom Tromey <tom@tromey.com>
7514
7515 * objfiles.h (struct objfile_per_bfd_storage): Declare
7516 destructor.
7517 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
7518 New.
7519 (get_objfile_bfd_data): Use new. Don't initialize
7520 language_of_main.
7521 (free_objfile_per_bfd_storage): Remove.
7522 (objfile_bfd_data_free, objfile::~objfile): Use delete.
7523
7524 2019-03-15 Tom Tromey <tom@tromey.com>
7525
7526 * symfile.c (reread_symbols): Update.
7527 * objfiles.c (objfile::objfile): Update.
7528 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
7529 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
7530 comment.
7531 (minimal_symbol_reader::install): Update.
7532 (terminate_minimal_symbol_table): Remove.
7533 * jit.c (jit_object_close_impl): Update.
7534
7535 2019-03-15 Tom Tromey <tom@tromey.com>
7536
7537 * minsyms.c (minimal_symbol_reader::record_full): Remove some
7538 initializations.
7539
7540 2019-03-15 Tom Tromey <tom@tromey.com>
7541
7542 * objfiles.h (struct objfile_per_bfd_storage)
7543 <demangled_hash_languages>: Now a bitset.
7544 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
7545 (lookup_minimal_symbol): Update.
7546
7547 2019-03-15 Tom Tromey <tom@tromey.com>
7548
7549 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
7550 Don't return the symbol.
7551 * coffread.c (record_minimal_symbol): Use record_full.
7552
7553 2019-03-14 Eli Zaretskii <eliz@gnu.org>
7554
7555 The MS-Windows port of ncurses fails to switch to a color pair if
7556 one or both of the colors are the implicit default colors. This
7557 change records the default colors when TUI is initialized, and
7558 then specifies them explicitly when a color pair uses the default
7559 colors. This allows color styling in TUI mode on MS-Windows.
7560
7561 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
7562 ncurses_norm_attr.
7563 (tui_initialize_io) [__MINGW32__]: Record the default terminal
7564 colors in ncurses_norm_attr.
7565 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
7566 "none", replace it with the default color recorded in
7567 ncurses_norm_attr.
7568
7569 2019-03-14 Tom Tromey <tromey@adacore.com>
7570
7571 * source-cache.h (class source_cache) <get_source_lines>: Return
7572 std::string.
7573 * source-cache.c (source_cache::extract_lines): Handle case where
7574 first_pos==npos. Return std::string.
7575 (source_cache::get_source_lines): Update.
7576
7577 2019-03-14 Tom Tromey <tromey@adacore.com>
7578
7579 * NEWS: Add item for "style sources" commands.
7580 * source-cache.c (source_cache::get_source_lines): Check
7581 source_styling.
7582 * cli/cli-style.c (source_styling): New global.
7583 (_initialize_cli_style): Add "style sources" commands.
7584 (show_style_sources): New function.
7585 * cli/cli-style.h (source_styling): Declare.
7586
7587 2019-03-14 Pedro Alves <palves@redhat.com>
7588 Tom Tromey <tromey@adacore.com>
7589
7590 * tui/tui-winsource.h (tui_refill_source_window): Declare.
7591 * tui/tui-winsource.c (tui_refill_source_window): New function,
7592 from...
7593 (tui_horizontal_source_scroll): ... here. Move some logic.
7594 * cli/cli-style.c (set_style_enabled): Notify new observable.
7595 * tui/tui-hooks.c (tui_redisplay_source): New function.
7596 (tui_attach_detach_observers): Attach or detach
7597 tui_redisplay_source.
7598 * observable.h (source_styling_changed): New observable.
7599 * observable.c: Define source_styling_changed observable.
7600
7601 2019-03-13 Tom Tromey <tromey@adacore.com>
7602
7603 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
7604 (i386_gnu_nat_target::store_registers): Update.
7605 * target-debug.h (target_debug_print_std_string): New macro.
7606 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
7607 * windows-tdep.c (display_one_tib): Update.
7608 * tui/tui-stack.c (tui_make_status_line): Update.
7609 * top.c (print_inferior_quit_action): Update.
7610 * thread.c (thr_try_catch_cmd): Update.
7611 (add_thread_with_info): Update.
7612 (thread_target_id_str): Update.
7613 (thr_try_catch_cmd): Update.
7614 (thread_command): Update.
7615 (thread_find_command): Update.
7616 * record-btrace.c (record_btrace_target::info_record)
7617 (record_btrace_resume_thread, record_btrace_target::resume)
7618 (record_btrace_cancel_resume, record_btrace_step_thread)
7619 (record_btrace_target::wait, record_btrace_target::wait)
7620 (record_btrace_target::wait, record_btrace_target::stop): Update.
7621 * progspace.c (print_program_space): Update.
7622 * process-stratum-target.c
7623 (process_stratum_target::thread_address_space): Update.
7624 * linux-fork.c (linux_fork_mourn_inferior)
7625 (detach_checkpoint_command, info_checkpoints_command)
7626 (linux_fork_context): Update.
7627 (linux_fork_detach): Update.
7628 (class scoped_switch_fork_info): Update.
7629 (delete_checkpoint_command): Update.
7630 * infrun.c (follow_fork_inferior): Update.
7631 (follow_fork_inferior): Update.
7632 (proceed_after_vfork_done): Update.
7633 (handle_vfork_child_exec_or_exit): Update.
7634 (follow_exec): Update.
7635 (displaced_step_prepare_throw): Update.
7636 (displaced_step_restore): Update.
7637 (start_step_over): Update.
7638 (resume_1): Update.
7639 (clear_proceed_status_thread): Update.
7640 (proceed): Update.
7641 (print_target_wait_results): Update.
7642 (do_target_wait): Update.
7643 (context_switch): Update.
7644 (stop_all_threads): Update.
7645 (restart_threads): Update.
7646 (finish_step_over): Update.
7647 (handle_signal_stop): Update.
7648 (switch_back_to_stepped_thread): Update.
7649 (keep_going_pass_signal): Update.
7650 (print_exited_reason): Update.
7651 (normal_stop): Update.
7652 * inferior.c (inferior_pid_to_str): Change return type.
7653 (print_selected_inferior): Update.
7654 (add_inferior): Update.
7655 (detach_inferior): Update.
7656 * dummy-frame.c (fprint_dummy_frames): Update.
7657 * dcache.c (dcache_info_1): Update.
7658 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
7659 (btrace_fetch, btrace_clear): Update.
7660 * linux-tdep.c (linux_core_pid_to_str): Change return type.
7661 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
7662 type.
7663 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
7664 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
7665 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
7666 * gdbarch.c, gdbarch.h: Rebuild.
7667 * gdbarch.sh (core_pid_to_str): Change return type.
7668 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
7669 return type.
7670 (windows_nat_target::pid_to_str): Change return type.
7671 (windows_delete_thread): Update.
7672 (windows_nat_target::attach): Update.
7673 (windows_nat_target::files_info): Update.
7674 * target-delegates.c: Rebuild.
7675 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
7676 return type.
7677 (sol_thread_target::pid_to_str): Change return type.
7678 * remote.c (class remote_target) <pid_to_str>: Change return
7679 type.
7680 (remote_target::pid_to_str): Change return type.
7681 (extended_remote_target::attach, remote_target::remote_stop_ns)
7682 (remote_target::remote_notif_remove_queued_reply)
7683 (remote_target::push_stop_reply, remote_target::disable_btrace):
7684 Update.
7685 (extended_remote_target::attach): Update.
7686 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
7687 type.
7688 (gdbsim_target::pid_to_str): Change return type.
7689 * ravenscar-thread.c (struct ravenscar_thread_target)
7690 <pid_to_str>: Change return type.
7691 (ravenscar_thread_target::pid_to_str): Change return type.
7692 * procfs.c (class procfs_target) <pid_to_str>: Change return
7693 type.
7694 (procfs_target::pid_to_str): Change return type.
7695 (procfs_target::attach): Update.
7696 (procfs_target::detach): Update.
7697 (procfs_target::fetch_registers): Update.
7698 (procfs_target::store_registers): Update.
7699 (procfs_target::wait): Update.
7700 (procfs_target::files_info): Update.
7701 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
7702 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
7703 return type.
7704 (nto_procfs_target::pid_to_str): Change return type.
7705 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
7706 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
7707 return type.
7708 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
7709 (exit_lwp): Update.
7710 (attach_proc_task_lwp_callback, get_detach_signal)
7711 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
7712 (linux_nat_target::resume, wait_lwp, stop_callback)
7713 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
7714 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
7715 (linux_nat_wait_1, resume_stopped_resumed_lwps)
7716 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
7717 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
7718 type.
7719 (inf_ptrace_target::attach): Update.
7720 (inf_ptrace_target::files_info): Update.
7721 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
7722 type.
7723 (go32_nat_target::pid_to_str): Change return type.
7724 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
7725 (gnu_nat_target::wait): Update.
7726 (gnu_nat_target::wait): Update.
7727 (gnu_nat_target::resume): Update.
7728 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
7729 (fbsd_nat_target::wait): Update.
7730 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
7731 type.
7732 (darwin_nat_target::attach): Update.
7733 * corelow.c (class core_target) <pid_to_str>: Change return type.
7734 (core_target::pid_to_str): Change return type.
7735 * target.c (normal_pid_to_str): Change return type.
7736 (default_pid_to_str): Likewise.
7737 (target_pid_to_str): Change return type.
7738 (target_translate_tls_address): Update.
7739 (target_announce_detach): Update.
7740 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
7741 return type.
7742 (bsd_uthread_target::pid_to_str): Change return type.
7743 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
7744 type.
7745 (bsd_kvm_target::pid_to_str): Change return type.
7746 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
7747 return type.
7748 (aix_thread_target::pid_to_str): Change return type.
7749 * target.h (struct target_ops) <pid_to_str>: Change return type.
7750 (target_pid_to_str, normal_pid_to_str): Likewise.
7751 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
7752 type.
7753 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
7754 type.
7755 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
7756 return type.
7757 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
7758 type.
7759 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
7760 type.
7761 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
7762 return type.
7763
7764 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
7765
7766 * NEWS: Mention that the new default MI version is 3. Mention
7767 changes to the output of commands and events that deal with
7768 multi-location breakpoints.
7769 * breakpoint.c: Include "mi/mi-out.h".
7770 (print_one_breakpoint): Change output syntax if using MI version
7771 >= 3.
7772 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
7773 New.
7774 (mi_multi_location_breakpoint_output_fixed): New.
7775 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
7776 (mi_cmd_fix_multi_location_breakpoint_output): New.
7777 (mi_multi_location_breakpoint_output_fixed): New.
7778 * mi/mi-cmds.c (mi_cmds): Register command
7779 -fix-multi-location-breakpoint-output.
7780 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
7781 interpreter "mi".
7782
7783 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7784
7785 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
7786 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
7787 instantiate mi_ui_out based on interpreter name.
7788 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
7789 * mi/mi-main.c (mi_load_progress): Likewise.
7790
7791 2019-03-12 John Baldwin <jhb@FreeBSD.org>
7792
7793 * NEWS: Combine separate "New targets" sections for 8.3.
7794
7795 2019-03-12 John Baldwin <jhb@FreeBSD.org>
7796
7797 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
7798 (ppcfbsd_init_abi): Install gdbarch
7799 "fetch_tls_load_module_address" and "get_thread_local_address"
7800 methods.
7801
7802 2019-03-12 John Baldwin <jhb@FreeBSD.org>
7803
7804 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
7805 (riscv_fbsd_init_abi): Install gdbarch
7806 "fetch_tls_load_module_address" and "get_thread_local_address"
7807 methods.
7808
7809 2019-03-12 John Baldwin <jhb@FreeBSD.org>
7810
7811 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
7812 (i386fbsd_init_abi): Install gdbarch
7813 "fetch_tls_load_module_address" and "get_thread_local_address"
7814 methods.
7815
7816 2019-03-12 John Baldwin <jhb@FreeBSD.org>
7817
7818 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
7819 (amd64fbsd_init_abi): Install gdbarch
7820 "fetch_tls_load_module_address" and "get_thread_local_address"
7821 methods.
7822
7823 2019-03-12 John Baldwin <jhb@FreeBSD.org>
7824
7825 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
7826 (struct fbsd_pspace_data): New type.
7827 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
7828 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
7829 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
7830 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
7831 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
7832
7833 2019-03-12 John Baldwin <jhb@FreeBSD.org>
7834
7835 * gdbtypes.c (lookup_struct_elt): New function.
7836 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
7837 * gdbtypes.h (struct struct_elt): New type.
7838 (lookup_struct_elt): New prototype.
7839
7840 2019-03-12 John Baldwin <jhb@FreeBSD.org>
7841
7842 * gdbtypes.c (lookup_struct_elt_type): Update comment and
7843 remove disabled code block.
7844
7845 2019-03-12 John Baldwin <jhb@FreeBSD.org>
7846
7847 * gdbarch.sh (get_thread_local_address): New method.
7848 * gdbarch.h, gdbarch.c: Regenerate.
7849 * target.c (target_translate_tls_address): Use
7850 gdbarch_get_thread_local_address if present instead of
7851 target::get_thread_local_address.
7852
7853 2019-03-12 John Baldwin <jhb@FreeBSD.org>
7854
7855 * target.h (target::get_thread_local_address): Update comment.
7856
7857 2019-03-12 John Baldwin <jhb@FreeBSD.org>
7858
7859 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
7860 objfile->separate_debug_objfile_backlink if not NULL.
7861
7862 2019-03-12 John Baldwin <jhb@FreeBSD.org>
7863
7864 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
7865 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
7866 (amd64bsd_store_inferior_registers): Likewise.
7867 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
7868 Enable segment base registers.
7869 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
7870 PT_GETFSBASE and PT_GETGSBASE.
7871 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
7872 PT_SETGSBASE.
7873 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
7874 segment base registers.
7875 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
7876
7877 2019-03-12 John Baldwin <jhb@FreeBSD.org>
7878
7879 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
7880 Update calls to i386_target_description to add 'segments'
7881 parameter.
7882 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
7883 add segment base registers.
7884 * arch/i386.c (i386_create_target_description): Add 'segments'
7885 parameter to enable segment base registers.
7886 * arch/i386.h (i386_create_target_description): Likewise.
7887 * features/i386/32bit-segments.xml: New file.
7888 * features/i386/32bit-segments.c: Generate.
7889 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
7890 call to i386_target_description to add 'segments' parameter.
7891 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
7892 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
7893 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
7894 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
7895 if feature is present.
7896 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
7897 Add 'segments' parameter to call to i386_target_description.
7898 (i386_target_description): Add 'segments' parameter to enable
7899 segment base registers.
7900 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
7901 to call to i386_target_description.
7902 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
7903 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
7904 Define I386_NUM_REGS.
7905 (i386_target_description): Add 'segments' parameter to enable
7906 segment base registers.
7907
7908 2019-03-12 Eli Zaretskii <eliz@gnu.org>
7909
7910 PR/24325
7911 * source-cache.c: #undef open and close, to avoid unresolved
7912 externals during linking.
7913
7914 2019-03-12 Tom Tromey <tromey@adacore.com>
7915
7916 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
7917 const. Add initializers.
7918 (_initialize_remote): Don't initialize ptid globals.
7919
7920 2019-03-12 Pedro Alves <palves@redhat.com>
7921
7922 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
7923
7924 2019-03-12 Pedro Alves <palves@redhat.com>
7925
7926 * cp-name-parser.y (main): Remove unused 'len' variable.
7927
7928 2019-03-12 Tom Tromey <tromey@adacore.com>
7929
7930 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
7931 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
7932
7933 2019-03-12 Tom Tromey <tromey@adacore.com>
7934
7935 * linux-nat.c (iterate_over_lwps): Update.
7936 (stop_callback): Remove parameter.
7937 (stop_wait_callback, detach_callback, resume_set_callback)
7938 (select_singlestep_lwp_callback, set_ignore_sigint)
7939 (status_callback, resumed_callback, resume_clear_callback)
7940 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
7941 data parameter.
7942 (linux_nat_target::detach, linux_nat_target::resume)
7943 (linux_stop_and_wait_all_lwps, select_event_lwp)
7944 (linux_nat_filter_event, linux_nat_wait_1)
7945 (linux_nat_target::kill, linux_nat_target::stop)
7946 (linux_nat_target::stop): Update.
7947 (linux_nat_resume_callback): Change type.
7948 (resume_stopped_resumed_lwps, count_events_callback)
7949 (select_event_lwp_callback): Likewise.
7950 (linux_stop_lwp, linux_nat_stop_lwp): Update.
7951 * arm-linux-nat.c (struct update_registers_data): Remove.
7952 (update_registers_callback): Change type.
7953 (arm_linux_insert_hw_breakpoint1): Update.
7954 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
7955 parameter.
7956 (x86_linux_dr_set_addr): Update.
7957 (x86_linux_dr_set_control): Update.
7958 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
7959 (iterate_over_lwps): Use gdb::function_view.
7960 * nat/aarch64-linux-hw-point.c (struct
7961 aarch64_dr_update_callback_param): Remove.
7962 (debug_reg_change_callback): Change type.
7963 (aarch64_notify_debug_reg_change): Update.
7964 * s390-linux-nat.c (s390_refresh_per_info): Update.
7965
7966 2019-03-11 Tom Tromey <tromey@adacore.com>
7967
7968 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
7969 redundant assignment to "this_cu".
7970
7971 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
7972
7973 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
7974
7975 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
7976
7977 * gdbtypes.c (rank_one_type_parm_set): New function extracted
7978 from...
7979 (rank_one_type): ... this.
7980
7981 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
7982
7983 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
7984 from...
7985 (rank_one_type): ... this.
7986
7987 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
7988
7989 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
7990 from...
7991 (rank_one_type): ... this.
7992
7993 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
7994
7995 * gdbtypes.c (rank_one_type_parm_float): New function extracted
7996 from...
7997 (rank_one_type): ... this.
7998
7999 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
8000
8001 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
8002 from...
8003 (rank_one_type): ... this.
8004
8005 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
8006
8007 * gdbtypes.c (rank_one_type_parm_range): New function extracted
8008 from...
8009 (rank_one_type): ... this.
8010
8011 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
8012
8013 * gdbtypes.c (rank_one_type_parm_char): New function extracted
8014 from...
8015 (rank_one_type): ... this.
8016
8017 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
8018
8019 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
8020 from...
8021 (rank_one_type): ... this.
8022
8023 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
8024
8025 * gdbtypes.c (rank_one_type_parm_int): New function extracted
8026 from...
8027 (rank_one_type): ... this.
8028
8029 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
8030
8031 * gdbtypes.c (rank_one_type_parm_func): New function extracted
8032 from...
8033 (rank_one_type): ... this.
8034
8035 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
8036
8037 * gdbtypes.c (rank_one_type_parm_array): New function extracted
8038 from...
8039 (rank_one_type): ... this.
8040
8041 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
8042
8043 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
8044 from...
8045 (rank_one_type): ... this.
8046
8047 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8048
8049 * inferior.c (initialize_inferiors): Ensure 'help set/show print
8050 inferior-events' shows the example events.
8051
8052 2019-03-08 Eli Zaretskii <eliz@gnu.org>
8053
8054 Support styling on native MS-Windows console
8055
8056 PR/24315
8057 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
8058 on MS-Windows if $TERM is not defined.
8059
8060 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
8061
8062 * posix-hdep.c (gdb_console_fputs):
8063 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
8064 functions.
8065 * ui-file.h (gdb_console_fputs): Add prototype.
8066
8067 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
8068 back to fputs only if the former returns zero.
8069
8070 2019-03-07 Tom Tromey <tom@tromey.com>
8071
8072 * symmisc.c (print_symbol_bcache_statistics): Update.
8073 (print_objfile_statistics): Update.
8074 * symfile.c (allocate_symtab): Update.
8075 * stabsread.c: Don't include bcache.h.
8076 * psymtab.h (struct psymbol_bcache): Don't declare.
8077 (class psymtab_storage) <psymbol_cache>: Now a bcache.
8078 (psymbol_bcache_init, psymbol_bcache_free)
8079 (psymbol_bcache_get_bcache): Don't declare.
8080 * psymtab.c (struct psymbol_bcache): Remove.
8081 (psymtab_storage::psymtab_storage): Update.
8082 (psymtab_storage::~psymtab_storage): Update.
8083 (psymbol_bcache_init, psymbol_bcache_free)
8084 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
8085 (add_psymbol_to_bcache): Update.
8086 (allocate_psymtab): Update.
8087 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
8088 macro_cache>: No longer pointers.
8089 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
8090 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
8091 * macrotab.c (macro_bcache): Update.
8092 * macroexp.c: Don't include bcache.h.
8093 * gdbtypes.c (check_types_worklist): Update.
8094 (types_deeply_equal): Remove TRY/CATCH. Update.
8095 * elfread.c (elf_symtab_read): Update.
8096 * dwarf2read.c: Don't include bcache.h.
8097 * buildsym.c (buildsym_compunit::get_macro_table): Update.
8098 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
8099 (print_bcache_statistics, bcache_memory_used): Don't declare.
8100 (struct bcache): Move from bcache.c. Add constructor, destructor,
8101 methods. Rename all data members.
8102 * bcache.c (struct bcache): Move to bcache.h.
8103 (bcache::expand_hash_table): Rename from expand_hash_table.
8104 (bcache): Remove.
8105 (bcache::insert): Rename from bcache_full.
8106 (bcache::compare): Rename from bcache_compare.
8107 (bcache_xmalloc): Remove.
8108 (bcache::~bcache): Rename from bcache_xfree.
8109 (bcache::print_statistics): Rename from print_bcache_statistics.
8110 (bcache::memory_used): Rename from bcache_memory_used.
8111
8112 2019-03-07 Pedro Alves <palves@redhat.com>
8113
8114 * infrun.c (normal_stop): Also check for
8115 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
8116
8117 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
8118
8119 * f-lang.c (value_from_host_double): Moved to...
8120 * value.c (value_from_host_double): ...here.
8121 * value.h (value_from_host_double): Declare.
8122 * guile/scm-math.c (vlscm_convert_typed_number): Use
8123 value_from_host_double.
8124 (vlscm_convert_number): Likewise.
8125 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
8126 * python/py-value.c (convert_value_from_python): Likewise.
8127
8128 2019-03-06 Tom Tromey <tom@tromey.com>
8129
8130 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
8131
8132 2019-03-06 Tom Tromey <tom@tromey.com>
8133
8134 * utils.h (free_current_contents): Don't declare.
8135 * utils.c (free_current_contents): Remove.
8136
8137 2019-03-06 Tom Tromey <tom@tromey.com>
8138
8139 * top.c (quit_force): Update.
8140 * main.c (captured_command_loop): Update.
8141 * common/new-op.c (operator new): Update.
8142 * common/common-exceptions.c (struct catcher)
8143 <save_cleanup_chain>: Remove member.
8144 (exceptions_state_mc_init): Update.
8145 (exception_try_scope_entry): Return nullptr.
8146 (exception_try_scope_exit, exception_rethrow)
8147 (throw_exception_sjlj, throw_exception_cxx): Update.
8148 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
8149 (all_cleanups, do_cleanups, discard_cleanups)
8150 (discard_final_cleanups, save_cleanups, save_final_cleanups)
8151 (restore_cleanups, restore_final_cleanups): Don't declare.
8152 (do_final_cleanups): Remove parameter.
8153 * common/cleanups.c (cleanup_chain, make_cleanup)
8154 (make_cleanup_dtor, all_cleanups, do_cleanups)
8155 (discard_my_cleanups, discard_cleanups)
8156 (discard_final_cleanups, save_my_cleanups, save_cleanups)
8157 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
8158 (null_cleanup): Remove.
8159 (do_final_cleanups): Remove parameter.
8160
8161 2019-03-06 Tom Tromey <tom@tromey.com>
8162
8163 * remote.c (remote_target::remote_parse_stop_reply): Use
8164 unique_xmalloc_ptr.
8165
8166 2019-03-06 Tom Tromey <tom@tromey.com>
8167
8168 * stabsread.c (struct stabs_field_info): Rename from field_info.
8169 <list, fnlist>: Add initializers.
8170 <obstack>: New member.
8171 (read_member_functions, read_struct_fields, read_baseclasses):
8172 Allocate on obstack. Don't use cleanups.
8173 (read_one_struct_field, read_member_functions, read_struct_fields)
8174 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
8175 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
8176 (read_struct_type): Update.
8177
8178 2019-03-06 Tom Tromey <tom@tromey.com>
8179
8180 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
8181 * common/filestuff.h (make_cleanup_close): Don't declare.
8182 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
8183 Remove.
8184
8185 2019-03-06 Tom Tromey <tom@tromey.com>
8186
8187 * solib-aix.c: Use make_scope_exit.
8188
8189 2019-03-06 Tom Tromey <tom@tromey.com>
8190
8191 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
8192 Use make_scope_exit.
8193
8194 2019-03-06 Tom Tromey <tom@tromey.com>
8195
8196 * solib-svr4.c (disable_probes_interface): Remove parameter.
8197 (svr4_handle_solib_event): Use make_scope_exit.
8198
8199 2019-03-06 Tom Tromey <tom@tromey.com>
8200
8201 * remote.c (struct stop_reply_deleter): Remove.
8202 (stop_reply_up): Update.
8203 (struct stop_reply): Derive from notif_event. Don't typedef.
8204 <regcache>: Now a std::vector.
8205 (stop_reply_xfree): Remove.
8206 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
8207 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
8208 (remote_target::discard_pending_stop_replies): Use delete.
8209 (remote_target::remote_parse_stop_reply): Update.
8210 (remote_target::process_stop_reply): Update.
8211 * remote-notif.h (struct notif_event): Add virtual destructor.
8212 Remove "dtr" member.
8213 (struct notif_client) <alloc_event>: Return a unique_ptr.
8214 (notif_event_xfree): Don't declare.
8215 (notif_event_up): New typedef.
8216 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
8217 (notif_event_xfree, do_notif_event_xfree): Remove.
8218 (remote_notif_state_xfree): Update.
8219
8220 2019-03-06 Tom Tromey <tom@tromey.com>
8221
8222 * infrun.c (displaced_step_clear_cleanup): Now a
8223 forward_scope_exit type.
8224 (displaced_step_prepare_throw): Update.
8225 (displaced_step_fixup): Update.
8226
8227 2019-03-06 Tom Tromey <tom@tromey.com>
8228
8229 * inferior.h (class inferior): Update comment.
8230 * gdbthread.h (class thread_info): Update comment.
8231
8232 2019-03-06 Joel Brobecker <brobecker@adacore.com>
8233 Tom Tromey <tom@tromey.com>
8234
8235 * stabsread.h (struct stab_section_list): Remove.
8236 (coffstab_build_psymtabs): Update.
8237 * dbxread.c (symbuf_sections): Now a std::vector.
8238 (sect_idx): New global.
8239 (fill_symbuf): Update.
8240 (coffstab_build_psymtabs): Change type of stabsects parameter.
8241 Update.
8242 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
8243 std::vector.
8244 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
8245 (coff_locate_sections): Update.
8246 (coff_symfile_read): Remove cleanups. Update.
8247 (init_stringtab): Add storage parameter.
8248 (free_stringtab, free_stringtab_cleanup): Remove.
8249 (init_lineno): Add storage parameter.
8250 (free_linetab, free_linetab_cleanup): Remove.
8251
8252 2019-03-06 Pedro Alves <palves@redhat.com>
8253
8254 * linux-fork.c (fork_info::clobber_regs): Delete.
8255 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
8256 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
8257 comment. Adjust.
8258 (scoped_switch_fork_info::scoped_switch_fork_info)
8259 (checkpoint_command, linux_fork_context): Adjust
8260 fork_save_infrun_state calls.
8261
8262 2019-03-06 Pedro Alves <palves@redhat.com>
8263
8264 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
8265 (inf_has_multiple_threads): Return 'bool' and rewrite using
8266 inferior_info::threads().
8267
8268 2019-03-06 Pedro Alves <palves@redhat.com>
8269
8270 * linux-fork.c: Include <list>.
8271 (fork_list): Now a std::list instance.
8272 (fork_info): Add ctor, dtor, and in-class initialize all fields.
8273 (forks_exist_p, find_last_fork): Adjust.
8274 (new_fork): Delete.
8275 (one_fork_p): New.
8276 (add_fork): Adjust.
8277 (free_fork): Delete, folded into fork_info::~fork_info().
8278 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
8279 Adjust.
8280 (init_fork_list): Delete.
8281 (linux_fork_killall, linux_fork_mourn_inferior)
8282 (linux_fork_detach, info_checkpoints_command): Adjust.
8283 (_initialize_linux_fork): No longer call init_fork_list.
8284
8285 2019-03-06 Pedro Alves <palves@redhat.com>
8286
8287 * linux-fork.c (new_fork): New, split out of ...
8288 (add_fork): ... this. Return void. Move "first fork" special
8289 case from here, to ...
8290 (checkpoint_command): ... here.
8291 * linux-linux.h (add_fork): Return void.
8292
8293 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8294
8295 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
8296
8297 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8298 Chris January <chris.january@arm.com>
8299 David Lecomber <david.lecomber@arm.com>
8300
8301 * f-exp.y: New token, UNOP_INTRINSIC.
8302 (exp): New pattern using UNOP_INTRINSIC token.
8303 (f77_keywords): Add 'abs' keyword.
8304 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
8305 (value_from_host_double): New function.
8306 (evaluate_subexp_f): Support UNOP_ABS.
8307
8308 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8309
8310 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
8311 types.
8312
8313 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8314
8315 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
8316 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
8317 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
8318
8319 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8320
8321 * f-exp.y (convert_to_kind_type): Handle more type kinds.
8322
8323 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8324 Chris January <chris.january@arm.com>
8325
8326 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
8327 * f-exp.y: Define 'KIND' token.
8328 (exp): New pattern for KIND expressions.
8329 (ptype): Handle types with a kind extension.
8330 (direct_abs_decl): Extend to spot kind extensions.
8331 (f77_keywords): Add 'kind' to the list.
8332 (push_kind_type): New function.
8333 (convert_to_kind_type): New function.
8334 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
8335 * parse.c (operator_length_standard): Likewise.
8336 * parser-defs.h (enum type_pieces): Add tp_kind.
8337 * std-operator.def: Add UNOP_KIND.
8338
8339 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8340
8341 * f-exp.y (f_parse): Set yydebug.
8342
8343 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8344
8345 * f-lang.c (evaluate_subexp_f): New function.
8346 (exp_descriptor_f): New global.
8347 (f_language_defn): Use exp_descriptor_f instead of
8348 exp_descriptor_standard.
8349
8350 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8351
8352 * f-exp.y (struct token): Add comments.
8353 (dot_ops): Remove uppercase versions and the end marker.
8354 (f77_keywords): Likewise.
8355 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
8356 entries in the dot_ops array are case insensitive, and use
8357 strncasecmp to compare strings. Also some whitespace cleanup in
8358 this area. Similar for the f77_keywords array, except entries in
8359 this list might be case sensitive.
8360
8361 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8362
8363 * f-exp.y (struct f77_boolean_val): Add comments.
8364 (boolean_values): Remove uppercase versions, and end marker.
8365 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
8366 and use strncasecmp to achieve case insensitivity. Additionally,
8367 perform whitespace cleanup around this code.
8368
8369 2019-03-06 Tom Tromey <tromey@adacore.com>
8370
8371 * remote-sim.c (gdbsim_target_open): Use result of
8372 gdb_argv::release.
8373
8374 2019-03-06 Richard Bunt <richard.bunt@arm.com>
8375 Dirk Schubert <dirk.schubert@arm.com>
8376 Chris January <chris.january@arm.com>
8377
8378 * eval.c (evaluate_subexp_standard): Call Fortran argument
8379 wrapping logic.
8380 * f-lang.c (struct value): A value which can be passed into a
8381 Fortran function call.
8382 (fortran_argument_convert): Wrap Fortran arguments in a pointer
8383 where appropriate.
8384 (struct type): Value ready for a Fortran function call.
8385 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
8386 is needed.
8387 * f-lang.h (fortran_argument_convert): Declaration.
8388 (fortran_preserve_arg_pointer): Declaration.
8389 * infcall.c (value_arg_coerce): Call Fortran argument logic.
8390
8391 2019-03-05 Tom Tromey <tromey@adacore.com>
8392
8393 * python/py-prettyprint.c (print_string_repr): Remove #if.
8394 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
8395
8396 2019-03-05 Tom Tromey <tromey@adacore.com>
8397
8398 * target.c (the_dummy_target): Move later. Change type to
8399 "dummy_target".
8400 (initialize_targets): Don't initialize the_dummy_target.
8401
8402 2019-03-05 Tom Tromey <tromey@adacore.com>
8403
8404 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
8405 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
8406
8407 2019-03-05 Tom Tromey <tromey@adacore.com>
8408
8409 * windows-nat.c (windows_nat_target::attach)
8410 (windows_nat_target::detach): Don't call gdb_flush.
8411 * valprint.c (generic_val_print, val_print, val_print_string):
8412 Don't call gdb_flush.
8413 * utils.c (defaulted_query): Don't call gdb_flush.
8414 * typeprint.c (print_type_scalar): Don't call gdb_flush.
8415 * target.c (target_announce_detach): Don't call gdb_flush.
8416 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
8417 * remote.c (extended_remote_target::attach): Don't call
8418 gdb_flush.
8419 * procfs.c (procfs_target::detach): Don't call gdb_flush.
8420 * printcmd.c (do_examine): Don't call gdb_flush.
8421 (info_display_command): Don't call gdb_flush.
8422 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
8423 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
8424 * memattr.c (info_mem_command): Don't call gdb_flush.
8425 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
8426 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
8427 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
8428 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
8429 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
8430 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
8431 (gnu_nat_target::detach): Don't call gdb_flush.
8432 * f-valprint.c (f_val_print): Don't call gdb_flush.
8433 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
8434 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
8435 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
8436 gdb_flush.
8437 * c-valprint.c (c_val_print): Don't call gdb_flush.
8438 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
8439
8440 2019-03-05 Tom Tromey <tromey@adacore.com>
8441
8442 * varobj.c (update_dynamic_varobj_children): Update.
8443 (install_default_visualizer): Use reset, not release.
8444 * value.c (set_internalvar): Update.
8445 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
8446 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
8447 ATTRIBUTE_UNUSED_RESULT.
8448
8449 2019-03-05 Tom Tromey <tromey@adacore.com>
8450
8451 * remote.c (class scoped_remote_fd) <release>: Add
8452 ATTRIBUTE_UNUSED_RESULT.
8453
8454 2019-03-05 Tom Tromey <tromey@adacore.com>
8455
8456 * macroexp.c (struct macro_buffer) <release>: Add
8457 ATTRIBUTE_UNUSED_RESULT.
8458
8459 2019-03-05 Tom Tromey <tromey@adacore.com>
8460
8461 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
8462 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
8463 ATTRIBUTE_UNUSED_RESULT.
8464
8465 2019-03-05 Tom Tromey <tromey@adacore.com>
8466
8467 * common/scoped_fd.h (class scoped_fd) <release>: Add
8468 ATTRIBUTE_UNUSED_RESULT.
8469
8470 2019-03-05 Tom Tromey <tromey@adacore.com>
8471
8472 * parser-defs.h (struct parser_state) <release>: Add
8473 ATTRIBUTE_UNUSED_RESULT.
8474
8475 2019-03-05 Tom Tromey <tromey@adacore.com>
8476
8477 * utils.h (class gdb_argv) <release>: Add
8478 ATTRIBUTE_UNUSED_RESULT.
8479 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
8480
8481 2019-03-02 Eli Zaretskii <eliz@gnu.org>
8482
8483 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
8484 for-loop range, to avoid compiler warnings.
8485
8486 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
8487 avoid compiler warnings about unused variables.
8488
8489 * NEWS: Mention end of support for native debugging on MS-Windows
8490 before XP.
8491
8492 PR gdb/24292
8493 * common/netstuff.c:
8494 * gdbserver/gdbreplay.c
8495 * gdbserver/remote-utils.c:
8496 * ser-tcp.c:
8497 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
8498 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
8499 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
8500 'getaddrinfo' and 'freeaddrinfo' were not available before
8501 Windows XP, and mingw.org's MinGW headers by default define
8502 _WIN32_WINNT to 0x500.
8503
8504 2019-03-01 Gary Benson <gbenson@redhat.com>
8505
8506 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
8507
8508 2019-02-28 Brian Vandenberg <phantall@gmail.com>
8509 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8510
8511 PR gdb/8527
8512 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
8513 set_sigint_trap, clear_sigint_trap.
8514
8515 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8516
8517 * target.c (target_detach): Clear the regcache and the
8518 frame cache.
8519
8520 2019-02-27 Pedro Alves <palves@redhat.com>
8521
8522 * utils.c (set_screen_size): When we cap the height/width sizes,
8523 tweak the corresponding command variable to show "unlimited":
8524
8525 2019-02-27 Saagar Jha <saagar@saagarjha.com>
8526 Pedro Alves <palves@redhat.com>
8527
8528 * utils.c (set_screen_size): Reduce "infinite" rows and columns
8529 before calling rl_set_screen_size.
8530
8531 2019-02-27 Tom Tromey <tromey@adacore.com>
8532
8533 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
8534 define.
8535 * python/py-value.c: Remove Python 2.4 workaround.
8536 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
8537 workaround.
8538 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
8539 Python 2.4 workaround.
8540 * python/python-internal.h: Remove Python 2.4 comment.
8541 (Py_ssize_t): Don't define.
8542 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
8543 (gdb_Py_DECREF): Remove Python 2.4 workaround.
8544 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
8545 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
8546 * python/python.c (do_start_initialization): Remove Python 2.4
8547 workaround.
8548 * python/py-prettyprint.c (class dummy_python_frame): Remove.
8549 (print_children): Remove Python 2.4 workaround.
8550 * python/py-inferior.c (buffer_procs): Remove Python 2.4
8551 workaround.
8552 (CHARBUFFERPROC_NAME): Remove.
8553 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
8554 Python 2.4 workaround.
8555
8556 2019-02-27 Kevin Buettner <kevinb@redhat.com>
8557
8558 * NEWS: Note minimum Python version.
8559
8560 2019-02-27 Kevin Buettner <kevinb@redhat.com>
8561
8562 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
8563 code from these functions. Remove corresponding ifdefs. Use
8564 Py_buffer_up instead of explicit calls to PyBuffer_Release.
8565 Remove gotos and target of gotos.
8566 (infpy_search_memory): Likewise.
8567
8568 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8569
8570 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
8571 (hppa_gdbarch_init): Don't register deleted functions with
8572 gdbarch.
8573
8574 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8575
8576 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
8577 (h8300_unwind_sp): Delete.
8578 (h8300_dummy_id): Delete.
8579 (h8300_gdbarch_init): Don't register deleted functions with
8580 gdbarch.
8581
8582 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8583
8584 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
8585 (ft32_unwind_pc): Delete.
8586 (ft32_unwind_sp): Delete.
8587 (ft32_gdbarch_init): Don't register deleted functions with
8588 gdbarch.
8589
8590 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8591
8592 * gdb/frv-tdep.c (frv_dummy_id): Delete.
8593 (frv_unwind_pc): Delete.
8594 (frv_unwind_sp): Delete.
8595 (frv_gdbarch_init): Don't register deleted functions with
8596 gdbarch.
8597
8598 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8599
8600 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
8601 (riscv_unwind_pc): Delete.
8602 (riscv_unwind_sp): Delete.
8603 (riscv_gdbarch_init): Don't register deleted functions with
8604 gdbarch.
8605
8606 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8607
8608 * gdb/csky-tdep.c (csky_dummy_id): Delete.
8609 (csky_unwind_pc): Delete.
8610 (csky_unwind_sp): Delete.
8611 (csky_gdbarch_init): Don't register deleted functions with
8612 gdbarch.
8613
8614 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8615
8616 * gdb/cris-tdep.c (cris_dummy_id): Delete.
8617 (cris_unwind_pc): Delete.
8618 (cris_unwind_sp): Delete.
8619 (cris_gdbarch_init): Don't register deleted functions with
8620 gdbarch.
8621
8622 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8623
8624 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
8625 (bfin_unwind_pc): Delete.
8626 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
8627
8628 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8629
8630 * gdb/arm-tdep.c (arm_dummy_id): Delete.
8631 (arm_unwind_pc): Delete.
8632 (arm_unwind_sp): Delete.
8633 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
8634
8635 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8636
8637 * gdb/arc-tdep.c (arc_dummy_id): Delete.
8638 (arc_unwind_pc): Delete.
8639 (arc_unwind_sp): Delete.
8640 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
8641
8642 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8643
8644 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
8645 (alpha_unwind_pc): Delete.
8646 (alpha_gdbarch_init): Don't register deleted functions with
8647 gdbarch.
8648
8649 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8650
8651 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
8652 (aarch64_unwind_pc): Delete.
8653 (aarch64_unwind_sp): Delete.
8654 (aarch64_gdbarch_init): Don't register deleted functions with
8655 gdbarch.
8656
8657 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8658
8659 * gdbtypes.c (type_align): Don't consider static members when
8660 computing structure alignment.
8661
8662 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8663
8664 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
8665 return 0 for other types.
8666 * arch-utils.c (default_type_align): Always return 0.
8667 * gdbarch.h: Regenerate.
8668 * gdbarch.sh (type_align): Extend comment.
8669 * gdbtypes.c (type_align): Add additional comments, always call
8670 gdbarch_type_align before applying the default rules.
8671 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
8672 generic code will then apply a suitable default.
8673 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
8674 types, return 0 for other types.
8675
8676 2019-02-27 Joel Brobecker <brobecker@adacore.com>
8677
8678 * NEWS: Create a new section for the next release branch.
8679 Rename the section of the current branch, now that it has
8680 been cut.
8681
8682 2019-02-27 Joel Brobecker <brobecker@adacore.com>
8683
8684 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
8685 * version.in: Bump version to 8.3.50.DATE-git.
8686
8687 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
8688
8689 * aix-thread.c (ptid_cmp): Remove unused variable.
8690 (get_signaled_thread): Likewise.
8691 (store_regs_user_thread): Likewise.
8692 (store_regs_kernel_thread): Likewise.
8693 (fetch_regs_kernel_thread): Remove shadowed variable.
8694
8695 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
8696
8697 * features/riscv/32bit-cpu.xml: Add register numbers.
8698 * features/riscv/32bit-fpu.c: Regenerate.
8699 * features/riscv/32bit-fpu.xml: Add register numbers.
8700 * features/riscv/64bit-cpu.xml: Add register numbers.
8701 * features/riscv/64bit-fpu.c: Regenerate.
8702 * features/riscv/64bit-fpu.xml: Add register numbers.
8703
8704 2019-02-26 Kevin Buettner <kevinb@redhat.com>
8705
8706 * NEWS: Mention two argument form of gdb.Value constructor.
8707 * python/py-value.c (convert_buffer_and_type_to_value): New
8708 function.
8709 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
8710 Add support for handling an optional second argument. Call
8711 convert_buffer_and_type_to_value as appropriate.
8712 * python/python-internal.h (Py_buffer_deleter): New struct.
8713 (Py_buffer_up): New typedef.
8714
8715 2019-02-25 John Baldwin <jhb@FreeBSD.org>
8716
8717 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
8718 instead of releasing ownership.
8719
8720 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
8721
8722 * dwarf2read.c (open_and_init_dwp_file): Call
8723 elf_numsections instead of bfd_count_sections to initialize
8724 dwp_file->num_sections.
8725
8726 2019-02-25 Tom Tromey <tromey@adacore.com>
8727
8728 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
8729
8730 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
8731
8732 * gcore.in: Add '--readnever' option when invoking GDB.
8733
8734 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
8735
8736 * MAINTAINERS: Update my email address.
8737
8738 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
8739
8740 * build-id.c (build_id_to_debug_bfd_1): New function.
8741 (build_id_to_debug_bfd): Look for separate debug file in
8742 sysroot.
8743
8744 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
8745
8746 * gdbarch.sh: Update the copyright year range that is placed into
8747 generated files.
8748
8749 2019-02-22 Keith Seitz <keiths@redhat.com>
8750
8751 PR symtab/23853
8752 * linespec.c (create_sals_line_offset): Search for the default
8753 symtab's filename instead of its fullname.
8754
8755 2019-02-21 Alan Hayward <alan.hayward@arm.com>
8756
8757 * NEWS: Update style defaults.
8758
8759 2019-02-21 Alan Hayward <alan.hayward@arm.com>
8760
8761 * main.c (captured_main_1): Disable styling in batch mode.
8762
8763 2019-02-20 Tom Tromey <tom@tromey.com>
8764
8765 * symtab.c (symtab_symbol_info): Fix typos.
8766
8767 2019-02-20 Tom Tromey <tromey@adacore.com>
8768
8769 * findcmd.c (_initialize_mem_search): Use upper case for
8770 metasyntactic variables.
8771
8772 2019-02-20 Alan Hayward <alan.hayward@arm.com>
8773
8774 * aarch64-tdep.c (aarch64_add_reggroups): New function.
8775 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
8776
8777 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
8778
8779 * top.h (source_file_name): Change to std::string.
8780 * top.c (source_file_name): Likewise.
8781 (command_line_input): Adjust.
8782 * cli/cli-script.c (script_from_file): Adjust.
8783
8784 2019-02-19 Tom Tromey <tromey@adacore.com>
8785
8786 * ravenscar-thread.c
8787 (ravenscar_thread_target::update_thread_list): Don't call
8788 ada_build_task_list.
8789 * ada-lang.h (ada_build_task_list): Don't declare.
8790 * ada-tasks.c (struct ada_tasks_inferior_data)
8791 <task_list_valid_p>: Now bool.
8792 (read_known_tasks, ada_task_list_changed)
8793 (ada_tasks_invalidate_inferior_data): Update.
8794 (read_known_tasks_array): Return bool.
8795 (read_known_tasks_list): Likewise.
8796 (read_known_tasks): Return void.
8797 (ada_build_task_list): Now static.
8798
8799 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
8800
8801 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
8802 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
8803
8804 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8805
8806 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
8807 variant for ada_tasks_pspace_data_handle and
8808 ada_tasks_inferior_data_handle.
8809 (ada_tasks_pspace_data_cleanup): New function.
8810 (ada_tasks_inferior_data_cleanup): New function.
8811
8812 2019-02-17 Tom Tromey <tom@tromey.com>
8813
8814 * macrotab.h (macro_source_fullname): Return a std::string.
8815 * macrotab.c (macro_include, check_for_redefinition)
8816 (macro_undef, macro_lookup_definition, foreach_macro)
8817 (foreach_macro_in_scope): Update.
8818 (macro_source_fullname): Return a std::string.
8819 * macrocmd.c (show_pp_source_pos): Update.
8820
8821 2019-02-17 Tom Tromey <tom@tromey.com>
8822
8823 * macrocmd.c (show_pp_source_pos): Style the file names.
8824
8825 2019-02-17 Tom Tromey <tom@tromey.com>
8826
8827 PR tui/24197:
8828 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
8829
8830 2019-02-17 Tom Tromey <tom@tromey.com>
8831
8832 * ada-lang.c (user_select_syms): Use filtered printing.
8833 * utils.c (wrap_style): New global.
8834 (desired_style): Remove.
8835 (emit_style_escape): Add stream parameter.
8836 (set_output_style, reset_terminal_style, prompt_for_continue):
8837 Update.
8838 (flush_wrap_buffer): Only flush gdb_stdout.
8839 (wrap_here): Set wrap_style.
8840 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
8841 treat escape sequences as a character. Change when wrap buffer is
8842 flushed.
8843 (fputs_styled): Do not set the output style when the default is
8844 requested.
8845 * ui-style.h (struct ui_file_style) <is_default>: New method.
8846 * source.c (print_source_lines_base): Emit escape sequences in one
8847 piece.
8848
8849 2019-02-17 Joel Brobecker <brobecker@adacore.com>
8850
8851 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
8852 integers and enumeration types.
8853
8854 2019-02-17 Joel Brobecker <brobecker@adacore.com>
8855
8856 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
8857 instead of lookup_symbol_in_language
8858 (do_exact_match): New function.
8859 (ada_get_symbol_name_matcher): Return do_exact_match when
8860 doing a verbatim match.
8861
8862 2019-02-15 Tom Tromey <tromey@adacore.com>
8863
8864 * ravenscar-thread.c (ravenscar_thread_target::resume)
8865 (ravenscar_thread_target::wait): Special case wildcard requests.
8866
8867 2019-02-15 Tom Tromey <tromey@adacore.com>
8868
8869 * ravenscar-thread.c (base_ptid): Remove.
8870 (struct ravenscar_thread_target) <close>: New method.
8871 <m_base_ptid>: New member.
8872 <update_inferior_ptid, active_task, task_is_currently_active,
8873 runtime_initialized>: Declare methods.
8874 <ravenscar_thread_target>: Add constructor.
8875 (ravenscar_thread_target::task_is_currently_active)
8876 (ravenscar_thread_target::update_inferior_ptid)
8877 (ravenscar_runtime_initialized): Rename. Now methods.
8878 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
8879 (ravenscar_thread_target::update_thread_list): Update.
8880 (ravenscar_thread_target::active_task): Now method.
8881 (ravenscar_thread_target::store_registers)
8882 (ravenscar_thread_target::prepare_to_store)
8883 (ravenscar_thread_target::prepare_to_store)
8884 (ravenscar_thread_target::mourn_inferior): Update.
8885 (ravenscar_inferior_created): Use "new" to create target.
8886 (ravenscar_thread_target::get_ada_task_ptid): Update.
8887 (_initialize_ravenscar): Don't initialize base_ptid.
8888 (ravenscar_ops): Remove global.
8889
8890 2019-02-15 Tom Tromey <tromey@adacore.com>
8891
8892 * target.h (push_target): Declare new overload.
8893 * target.c (push_target): New overload, taking an rvalue reference.
8894 * remote.c (remote_target::open_1): Use push_target overload.
8895 * corelow.c (core_target_open): Use push_target overload.
8896
8897 2019-02-15 Tom Tromey <tromey@adacore.com>
8898
8899 * ravenscar-thread.c (is_ravenscar_task)
8900 (ravenscar_task_is_currently_active): Return bool.
8901 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
8902 (_initialize_ravenscar): Remove "(void)".
8903 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
8904 Return bool.
8905
8906 2019-02-15 Tom Tromey <tromey@adacore.com>
8907
8908 * ravenscar-thread.c (ravenscar_runtime_initializer)
8909 (has_ravenscar_runtime, get_running_thread_id)
8910 (ravenscar_thread_target::resume): Fix indentation.
8911
8912 2019-02-15 Tom Tromey <tromey@adacore.com>
8913
8914 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
8915 from ravenscar_arch_ops.
8916 (sparc_ravenscar_ops::fetch_registers)
8917 (sparc_ravenscar_ops::store_registers): Now methods.
8918 (sparc_ravenscar_prepare_to_store): Remove.
8919 (sparc_ravenscar_ops): Redefine.
8920 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
8921 methods and destructor. Remove members.
8922 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
8923 (ravenscar_thread_target::store_registers)
8924 (ravenscar_thread_target::prepare_to_store): Update.
8925 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
8926 Remove.
8927 (struct ppc_ravenscar_powerpc_ops): Derive from
8928 ravenscar_arch_ops.
8929 (ppc_ravenscar_powerpc_ops::fetch_registers)
8930 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
8931 (ppc_ravenscar_powerpc_ops): Redefine.
8932 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
8933 (ppc_ravenscar_e500_ops::fetch_registers)
8934 (ppc_ravenscar_e500_ops::store_registers): Now methods.
8935 (ppc_ravenscar_e500_ops): Redefine.
8936 * aarch64-ravenscar-thread.c
8937 (aarch64_ravenscar_generic_prepare_to_store): Remove.
8938 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
8939 (aarch64_ravenscar_fetch_registers)
8940 (aarch64_ravenscar_store_registers): Now methods.
8941 (aarch64_ravenscar_ops): Redefine.
8942
8943 2019-02-15 Tom Tromey <tromey@adacore.com>
8944
8945 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
8946 (ravenscar_thread_target::stopped_by_hw_breakpoint)
8947 (ravenscar_thread_target::stopped_by_watchpoint)
8948 (ravenscar_thread_target::stopped_data_address)
8949 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
8950
8951 2019-02-15 Tom Tromey <tromey@adacore.com>
8952
8953 * ravenscar-thread.c: Fix some typos.
8954
8955 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8956 Tom Tromey <tromey@adacore.com>
8957
8958 * ada-lang.c (ada_exception_sal): Change addr_string to a
8959 std::string.
8960 (create_ada_exception_catchpoint): Update.
8961
8962 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8963 Tom Tromey <tromey@adacore.com>
8964
8965 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
8966 (bp_location_ops): Remove.
8967 (base_breakpoint_allocate_location): Update.
8968 (free_bp_location): Update.
8969 * ada-lang.c (class ada_catchpoint_location)
8970 <ada_catchpoint_location>: Remove ops parameter.
8971 (ada_catchpoint_location_dtor): Remove.
8972 (ada_catchpoint_location_ops): Remove.
8973 (allocate_location_exception): Update.
8974 * breakpoint.h (struct bp_location_ops): Remove.
8975 (class bp_location) <bp_location>: Remove bp_location_ops
8976 parameter.
8977 <~bp_location>: Add destructor.
8978 <ops>: Remove.
8979
8980 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
8981 Pedro Alves <palves@redhat.com>
8982
8983 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
8984 'PATH_MAX'.
8985
8986 2019-02-14 David Michael <fedora.dm0@gmail.com>
8987 Samuel Thibault <samuel.thibault@gnu.org>
8988 Thomas Schwinge <thomas@codesourcery.com>
8989
8990 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
8991 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
8992
8993 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
8994
8995 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
8996 (check_empty): Use "const char *".
8997
8998 * gnu-nat.c (gnu_nat_target::detach): Instead of
8999 'detach_inferior (pid)' call
9000 'detach_inferior (find_inferior_pid (pid))'.
9001
9002 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
9003 'nat/fork-inferior.o'.
9004 * gnu-nat.c: #include "nat/fork-inferior.h".
9005
9006 * gnu-nat.c (gnu_nat_target::detach): Instead of
9007 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
9008 * gnu-nat.h: #include "inf-child.h".
9009 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
9010 'i386_gnu_nat_target::fetch_registers'.
9011 (gnu_store_registers): Rename/move to
9012 'i386_gnu_nat_target::store_registers'.
9013
9014 * config/i386/nm-i386gnu.h: Don't "#include" any files.
9015 * gnu-nat.h (mach_thread_info): New function.
9016 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
9017
9018 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
9019
9020 2019-02-14 Frederic Konrad <konrad@adacore.com>
9021
9022 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
9023
9024 2019-02-14 Joel Brobecker <brobecker@adacore.com>
9025
9026 * windows-nat.c (windows_add_thread): Add new parameter
9027 "main_thread_p" with default value set to false. Update
9028 function documentation as well as all callers.
9029 (windows_delete_thread): Likewise.
9030 (fake_create_process): Update call to windows_add_thread.
9031 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
9032 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
9033 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
9034 call to windows_delete_thread.
9035
9036 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
9037
9038 * MAINTAINERS: Add Andrew Burgess as global maintainer.
9039
9040 2019-02-12 John Baldwin <jhb@FreeBSD.org>
9041
9042 * symfile.c (find_separate_debug_file): Use canonical path of
9043 sysroot with child_path instead of gdb_sysroot if it is valid.
9044
9045 2019-02-12 John Baldwin <jhb@FreeBSD.org>
9046
9047 * symfile.c (find_separate_debug_file): Use child_path to
9048 determine if an object file is under a sysroot.
9049
9050 2019-02-12 John Baldwin <jhb@FreeBSD.org>
9051
9052 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9053 unittests/child-path-selftests.c.
9054 * common/pathstuff.c (child_path): New function.
9055 * common/pathstuff.h (child_path): New prototype.
9056 * unittests/child-path-selftests.c: New file.
9057
9058 2019-02-12 John Baldwin <jhb@FreeBSD.org>
9059
9060 * symfile.c (find_separate_debug_file): Look for separate debug
9061 files in debug directories under the sysroot.
9062
9063 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9064
9065 * symtab.h (struct minimal_symbol data_p): New const method.
9066 (struct minimal_symbol text_p): Likewise.
9067 * symtab.c (output_source_filename): Use file name style
9068 to print file name.
9069 (print_symbol_info): Likewise.
9070 (print_msymbol_info): Use address style to print addresses.
9071 Use function name style to print executable text symbols.
9072 (expand_symtab_containing_pc): Use data_p.
9073 (find_pc_sect_compunit_symtab): Likewise.
9074
9075 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9076
9077 * breakpoint.c (describe_other_breakpoints): Use address style
9078 to print addresses.
9079 (say_where): Likewise.
9080
9081 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9082
9083 * ada-typeprint.c (print_func_type): Print function name
9084 style to print function name.
9085 * c-typeprint.c (c_print_type_1): Likewise.
9086
9087 2019-02-11 Alan Hayward <alan.hayward@arm.com>
9088
9089 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
9090 for execve.
9091
9092 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9093
9094 * c-exp.y (direct_abs_decl): Use emplace_back to record the
9095 type_stack.
9096
9097 2019-02-10 Joel Brobecker <brobecker@adacore.com>
9098
9099 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
9100 TYPE_CODE_REF types.
9101
9102 2019-02-08 Jim Wilson <jimw@sifive.com>
9103
9104 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
9105 (riscv_linux_fregset): New.
9106 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
9107
9108 2019-02-07 Tom Tromey <tom@tromey.com>
9109
9110 * thread.c (thread_cancel_execution_command): Update.
9111 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
9112 methods.
9113 (struct thread_fsm_ops): Remove.
9114 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
9115 (thread_fsm_should_stop, thread_fsm_return_value)
9116 (thread_fsm_set_finished, thread_fsm_finished_p)
9117 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
9118 Don't declare.
9119 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
9120 * infrun.c (clear_proceed_status_thread)
9121 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
9122 (print_stop_event): Update.
9123 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
9124 Add constructor.
9125 (step_command_fsm_ops): Remove.
9126 (new_step_command_fsm): Remove.
9127 (step_1): Update.
9128 (step_command_fsm::should_stop): Rename from
9129 step_command_fsm_should_stop.
9130 (step_command_fsm::clean_up): Rename from
9131 step_command_fsm_clean_up.
9132 (step_command_fsm::do_async_reply_reason): Rename from
9133 step_command_fsm_async_reply_reason.
9134 (struct until_next_fsm): Inherit from thread_fsm. Add
9135 constructor.
9136 (until_next_fsm_ops): Remove.
9137 (new_until_next_fsm): Remove.
9138 (until_next_fsm::should_stop): Rename from
9139 until_next_fsm_should_stop.
9140 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
9141 (until_next_fsm::do_async_reply_reason): Rename from
9142 until_next_fsm_async_reply_reason.
9143 (struct finish_command_fsm): Inherit from thread_fsm. Add
9144 constructor. Change type of breakpoint.
9145 (finish_command_fsm_ops): Remove.
9146 (new_finish_command_fsm): Remove.
9147 (finish_command_fsm::should_stop): Rename from
9148 finish_command_fsm_should_stop.
9149 (finish_command_fsm::clean_up): Rename from
9150 finish_command_fsm_clean_up.
9151 (finish_command_fsm::return_value): Rename from
9152 finish_command_fsm_return_value.
9153 (finish_command_fsm::do_async_reply_reason): Rename from
9154 finish_command_fsm_async_reply_reason.
9155 (finish_command): Update.
9156 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
9157 Add constructor.
9158 (call_thread_fsm_ops): Remove.
9159 (call_thread_fsm::call_thread_fsm): Rename from
9160 new_call_thread_fsm.
9161 (call_thread_fsm::should_stop): Rename from
9162 call_thread_fsm_should_stop.
9163 (call_thread_fsm::should_notify_stop): Rename from
9164 call_thread_fsm_should_notify_stop.
9165 (run_inferior_call, call_function_by_hand_dummy): Update.
9166 * cli/cli-interp.c (should_print_stop_to_console): Update.
9167 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
9168 Add constructor. Change type of location_breakpoint,
9169 caller_breakpoint.
9170 (until_break_fsm_ops): Remove.
9171 (new_until_break_fsm): Remove.
9172 (until_break_fsm::should_stop): Rename from
9173 until_break_fsm_should_stop.
9174 (until_break_fsm::clean_up): Rename from
9175 until_break_fsm_clean_up.
9176 (until_break_fsm::do_async_reply_reason): Rename from
9177 until_break_fsm_async_reply_reason.
9178 (until_break_command): Update.
9179 * thread-fsm.c: Remove.
9180 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
9181
9182 2019-02-07 Tom Tromey <tom@tromey.com>
9183
9184 * yy-remap.h: Add include guard.
9185 * xtensa-tdep.h: Add include guard.
9186 * xcoffread.h: Rename include guard.
9187 * varobj-iter.h: Add include guard.
9188 * tui/tui.h: Rename include guard.
9189 * tui/tui-winsource.h: Rename include guard.
9190 * tui/tui-wingeneral.h: Rename include guard.
9191 * tui/tui-windata.h: Rename include guard.
9192 * tui/tui-win.h: Rename include guard.
9193 * tui/tui-stack.h: Rename include guard.
9194 * tui/tui-source.h: Rename include guard.
9195 * tui/tui-regs.h: Rename include guard.
9196 * tui/tui-out.h: Rename include guard.
9197 * tui/tui-layout.h: Rename include guard.
9198 * tui/tui-io.h: Rename include guard.
9199 * tui/tui-hooks.h: Rename include guard.
9200 * tui/tui-file.h: Rename include guard.
9201 * tui/tui-disasm.h: Rename include guard.
9202 * tui/tui-data.h: Rename include guard.
9203 * tui/tui-command.h: Rename include guard.
9204 * tic6x-tdep.h: Add include guard.
9205 * target/waitstatus.h: Rename include guard.
9206 * target/wait.h: Rename include guard.
9207 * target/target.h: Rename include guard.
9208 * target/resume.h: Rename include guard.
9209 * target-float.h: Rename include guard.
9210 * stabsread.h: Add include guard.
9211 * rs6000-tdep.h: Add include guard.
9212 * riscv-fbsd-tdep.h: Add include guard.
9213 * regformats/regdef.h: Rename include guard.
9214 * record.h: Rename include guard.
9215 * python/python.h: Rename include guard.
9216 * python/python-internal.h: Rename include guard.
9217 * python/py-stopevent.h: Rename include guard.
9218 * python/py-ref.h: Rename include guard.
9219 * python/py-record.h: Rename include guard.
9220 * python/py-record-full.h: Rename include guard.
9221 * python/py-record-btrace.h: Rename include guard.
9222 * python/py-instruction.h: Rename include guard.
9223 * python/py-events.h: Rename include guard.
9224 * python/py-event.h: Rename include guard.
9225 * procfs.h: Add include guard.
9226 * proc-utils.h: Add include guard.
9227 * p-lang.h: Add include guard.
9228 * or1k-tdep.h: Rename include guard.
9229 * observable.h: Rename include guard.
9230 * nto-tdep.h: Rename include guard.
9231 * nat/x86-linux.h: Rename include guard.
9232 * nat/x86-linux-dregs.h: Rename include guard.
9233 * nat/x86-gcc-cpuid.h: Add include guard.
9234 * nat/x86-dregs.h: Rename include guard.
9235 * nat/x86-cpuid.h: Rename include guard.
9236 * nat/ppc-linux.h: Rename include guard.
9237 * nat/mips-linux-watch.h: Rename include guard.
9238 * nat/linux-waitpid.h: Rename include guard.
9239 * nat/linux-ptrace.h: Rename include guard.
9240 * nat/linux-procfs.h: Rename include guard.
9241 * nat/linux-osdata.h: Rename include guard.
9242 * nat/linux-nat.h: Rename include guard.
9243 * nat/linux-namespaces.h: Rename include guard.
9244 * nat/linux-btrace.h: Rename include guard.
9245 * nat/glibc_thread_db.h: Rename include guard.
9246 * nat/gdb_thread_db.h: Rename include guard.
9247 * nat/gdb_ptrace.h: Rename include guard.
9248 * nat/fork-inferior.h: Rename include guard.
9249 * nat/amd64-linux-siginfo.h: Rename include guard.
9250 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
9251 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
9252 * nat/aarch64-linux.h: Rename include guard.
9253 * nat/aarch64-linux-hw-point.h: Rename include guard.
9254 * mn10300-tdep.h: Add include guard.
9255 * mips-linux-tdep.h: Add include guard.
9256 * mi/mi-parse.h: Rename include guard.
9257 * mi/mi-out.h: Rename include guard.
9258 * mi/mi-main.h: Rename include guard.
9259 * mi/mi-interp.h: Rename include guard.
9260 * mi/mi-getopt.h: Rename include guard.
9261 * mi/mi-console.h: Rename include guard.
9262 * mi/mi-common.h: Rename include guard.
9263 * mi/mi-cmds.h: Rename include guard.
9264 * mi/mi-cmd-break.h: Rename include guard.
9265 * m2-lang.h: Add include guard.
9266 * location.h: Rename include guard.
9267 * linux-record.h: Rename include guard.
9268 * linux-nat.h: Add include guard.
9269 * linux-fork.h: Add include guard.
9270 * i386-darwin-tdep.h: Rename include guard.
9271 * hppa-linux-offsets.h: Add include guard.
9272 * guile/guile.h: Rename include guard.
9273 * guile/guile-internal.h: Rename include guard.
9274 * gnu-nat.h: Rename include guard.
9275 * gdb-stabs.h: Rename include guard.
9276 * frv-tdep.h: Add include guard.
9277 * f-lang.h: Add include guard.
9278 * event-loop.h: Add include guard.
9279 * darwin-nat.h: Rename include guard.
9280 * cp-abi.h: Rename include guard.
9281 * config/sparc/nm-sol2.h: Rename include guard.
9282 * config/nm-nto.h: Rename include guard.
9283 * config/nm-linux.h: Add include guard.
9284 * config/i386/nm-i386gnu.h: Rename include guard.
9285 * config/djgpp/nl_types.h: Rename include guard.
9286 * config/djgpp/langinfo.h: Rename include guard.
9287 * compile/gcc-cp-plugin.h: Add include guard.
9288 * compile/gcc-c-plugin.h: Add include guard.
9289 * compile/compile.h: Rename include guard.
9290 * compile/compile-object-run.h: Rename include guard.
9291 * compile/compile-object-load.h: Rename include guard.
9292 * compile/compile-internal.h: Rename include guard.
9293 * compile/compile-cplus.h: Rename include guard.
9294 * compile/compile-c.h: Rename include guard.
9295 * common/xml-utils.h: Rename include guard.
9296 * common/x86-xstate.h: Rename include guard.
9297 * common/version.h: Rename include guard.
9298 * common/vec.h: Rename include guard.
9299 * common/tdesc.h: Rename include guard.
9300 * common/selftest.h: Rename include guard.
9301 * common/scoped_restore.h: Rename include guard.
9302 * common/scoped_mmap.h: Rename include guard.
9303 * common/scoped_fd.h: Rename include guard.
9304 * common/safe-iterator.h: Rename include guard.
9305 * common/run-time-clock.h: Rename include guard.
9306 * common/refcounted-object.h: Rename include guard.
9307 * common/queue.h: Rename include guard.
9308 * common/ptid.h: Rename include guard.
9309 * common/print-utils.h: Rename include guard.
9310 * common/preprocessor.h: Rename include guard.
9311 * common/pathstuff.h: Rename include guard.
9312 * common/observable.h: Rename include guard.
9313 * common/netstuff.h: Rename include guard.
9314 * common/job-control.h: Rename include guard.
9315 * common/host-defs.h: Rename include guard.
9316 * common/gdb_wait.h: Rename include guard.
9317 * common/gdb_vecs.h: Rename include guard.
9318 * common/gdb_unlinker.h: Rename include guard.
9319 * common/gdb_unique_ptr.h: Rename include guard.
9320 * common/gdb_tilde_expand.h: Rename include guard.
9321 * common/gdb_sys_time.h: Rename include guard.
9322 * common/gdb_string_view.h: Rename include guard.
9323 * common/gdb_splay_tree.h: Rename include guard.
9324 * common/gdb_setjmp.h: Rename include guard.
9325 * common/gdb_ref_ptr.h: Rename include guard.
9326 * common/gdb_optional.h: Rename include guard.
9327 * common/gdb_locale.h: Rename include guard.
9328 * common/gdb_assert.h: Rename include guard.
9329 * common/filtered-iterator.h: Rename include guard.
9330 * common/filestuff.h: Rename include guard.
9331 * common/fileio.h: Rename include guard.
9332 * common/environ.h: Rename include guard.
9333 * common/common-utils.h: Rename include guard.
9334 * common/common-types.h: Rename include guard.
9335 * common/common-regcache.h: Rename include guard.
9336 * common/common-inferior.h: Rename include guard.
9337 * common/common-gdbthread.h: Rename include guard.
9338 * common/common-exceptions.h: Rename include guard.
9339 * common/common-defs.h: Rename include guard.
9340 * common/common-debug.h: Rename include guard.
9341 * common/cleanups.h: Rename include guard.
9342 * common/buffer.h: Rename include guard.
9343 * common/btrace-common.h: Rename include guard.
9344 * common/break-common.h: Rename include guard.
9345 * cli/cli-utils.h: Rename include guard.
9346 * cli/cli-style.h: Rename include guard.
9347 * cli/cli-setshow.h: Rename include guard.
9348 * cli/cli-script.h: Rename include guard.
9349 * cli/cli-interp.h: Rename include guard.
9350 * cli/cli-decode.h: Rename include guard.
9351 * cli/cli-cmds.h: Rename include guard.
9352 * charset-list.h: Add include guard.
9353 * buildsym-legacy.h: Rename include guard.
9354 * bfin-tdep.h: Add include guard.
9355 * ax.h: Rename include guard.
9356 * arm-linux-tdep.h: Add include guard.
9357 * arm-fbsd-tdep.h: Add include guard.
9358 * arch/xtensa.h: Rename include guard.
9359 * arch/tic6x.h: Add include guard.
9360 * arch/i386.h: Add include guard.
9361 * arch/arm.h: Rename include guard.
9362 * arch/arm-linux.h: Rename include guard.
9363 * arch/arm-get-next-pcs.h: Rename include guard.
9364 * arch/amd64.h: Add include guard.
9365 * arch/aarch64-insn.h: Rename include guard.
9366 * arch-utils.h: Rename include guard.
9367 * annotate.h: Add include guard.
9368 * amd64-darwin-tdep.h: Rename include guard.
9369 * aarch64-linux-tdep.h: Add include guard.
9370 * aarch64-fbsd-tdep.h: Add include guard.
9371 * aarch32-linux-nat.h: Add include guard.
9372
9373 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9374
9375 * macrotab.c (macro_define_internal): New function that
9376 factorizes macro_define_object_internal and macro_define_function
9377 code.
9378 (macro_define_object_internal): Use macro_define_internal.
9379 (macro_define_function): Likewise.
9380
9381 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9382
9383 * macrocmd.c (extract_identifier): Return
9384 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
9385 callers.
9386
9387 2019-02-06 John Baldwin <jhb@FreeBSD.org>
9388
9389 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
9390
9391 2019-02-05 Tom Tromey <tom@tromey.com>
9392
9393 * target.c (target_stack::unpush): Move assertion earlier.
9394
9395 2019-01-30 Tom Tromey <tom@tromey.com>
9396
9397 PR python/23615:
9398 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
9399 (gdbpy_parse_and_eval): Likewise.
9400 * python/python-internal.h (gdbpy_allow_threads): New class.
9401
9402 2019-01-28 John Baldwin <jhb@FreeBSD.org>
9403
9404 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
9405 (aarch64_fbsd_fpregmap): Move earlier.
9406 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
9407 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
9408 instead of individual calls to trad_frame_set_reg_addr.
9409 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
9410 earlier.
9411 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
9412 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
9413 instead of individual calls to trad_frame_set_reg_addr.
9414
9415 2019-01-28 Alan Hayward <alan.hayward@arm.com>
9416
9417 * CONTRIBUTE: Replace contribution list with wiki link.
9418
9419 2019-01-25 Tom Tromey <tom@tromey.com>
9420
9421 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
9422
9423 2019-01-25 Tom Tromey <tom@tromey.com>
9424
9425 * xtensa-linux-nat.c: Fix common/ includes.
9426 * xml-support.h: Fix common/ includes.
9427 * xml-support.c: Fix common/ includes.
9428 * x86-linux-nat.c: Fix common/ includes.
9429 * windows-nat.c: Fix common/ includes.
9430 * varobj.h: Fix common/ includes.
9431 * varobj.c: Fix common/ includes.
9432 * value.c: Fix common/ includes.
9433 * valops.c: Fix common/ includes.
9434 * utils.c: Fix common/ includes.
9435 * unittests/xml-utils-selftests.c: Fix common/ includes.
9436 * unittests/utils-selftests.c: Fix common/ includes.
9437 * unittests/unpack-selftests.c: Fix common/ includes.
9438 * unittests/tracepoint-selftests.c: Fix common/ includes.
9439 * unittests/style-selftests.c: Fix common/ includes.
9440 * unittests/string_view-selftests.c: Fix common/ includes.
9441 * unittests/scoped_restore-selftests.c: Fix common/ includes.
9442 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
9443 * unittests/scoped_fd-selftests.c: Fix common/ includes.
9444 * unittests/rsp-low-selftests.c: Fix common/ includes.
9445 * unittests/parse-connection-spec-selftests.c: Fix common/
9446 includes.
9447 * unittests/optional-selftests.c: Fix common/ includes.
9448 * unittests/offset-type-selftests.c: Fix common/ includes.
9449 * unittests/observable-selftests.c: Fix common/ includes.
9450 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
9451 * unittests/memrange-selftests.c: Fix common/ includes.
9452 * unittests/memory-map-selftests.c: Fix common/ includes.
9453 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
9454 * unittests/function-view-selftests.c: Fix common/ includes.
9455 * unittests/environ-selftests.c: Fix common/ includes.
9456 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
9457 * unittests/common-utils-selftests.c: Fix common/ includes.
9458 * unittests/cli-utils-selftests.c: Fix common/ includes.
9459 * unittests/array-view-selftests.c: Fix common/ includes.
9460 * ui-file.c: Fix common/ includes.
9461 * tui/tui-io.c: Fix common/ includes.
9462 * tracepoint.h: Fix common/ includes.
9463 * tracepoint.c: Fix common/ includes.
9464 * tracefile-tfile.c: Fix common/ includes.
9465 * top.h: Fix common/ includes.
9466 * top.c: Fix common/ includes.
9467 * thread.c: Fix common/ includes.
9468 * target/waitstatus.h: Fix common/ includes.
9469 * target/waitstatus.c: Fix common/ includes.
9470 * target.h: Fix common/ includes.
9471 * target.c: Fix common/ includes.
9472 * target-memory.c: Fix common/ includes.
9473 * target-descriptions.c: Fix common/ includes.
9474 * symtab.h: Fix common/ includes.
9475 * symfile.c: Fix common/ includes.
9476 * stap-probe.c: Fix common/ includes.
9477 * spu-linux-nat.c: Fix common/ includes.
9478 * sparc-nat.c: Fix common/ includes.
9479 * source.c: Fix common/ includes.
9480 * solib.c: Fix common/ includes.
9481 * solib-target.c: Fix common/ includes.
9482 * ser-unix.c: Fix common/ includes.
9483 * ser-tcp.c: Fix common/ includes.
9484 * ser-pipe.c: Fix common/ includes.
9485 * ser-base.c: Fix common/ includes.
9486 * selftest-arch.c: Fix common/ includes.
9487 * s12z-tdep.c: Fix common/ includes.
9488 * rust-exp.y: Fix common/ includes.
9489 * rs6000-aix-tdep.c: Fix common/ includes.
9490 * riscv-tdep.c: Fix common/ includes.
9491 * remote.c: Fix common/ includes.
9492 * remote-notif.h: Fix common/ includes.
9493 * remote-fileio.h: Fix common/ includes.
9494 * remote-fileio.c: Fix common/ includes.
9495 * regcache.h: Fix common/ includes.
9496 * regcache.c: Fix common/ includes.
9497 * record-btrace.c: Fix common/ includes.
9498 * python/python.c: Fix common/ includes.
9499 * python/py-type.c: Fix common/ includes.
9500 * python/py-inferior.c: Fix common/ includes.
9501 * progspace.h: Fix common/ includes.
9502 * producer.c: Fix common/ includes.
9503 * procfs.c: Fix common/ includes.
9504 * proc-api.c: Fix common/ includes.
9505 * printcmd.c: Fix common/ includes.
9506 * ppc-linux-nat.c: Fix common/ includes.
9507 * parser-defs.h: Fix common/ includes.
9508 * osdata.c: Fix common/ includes.
9509 * obsd-nat.c: Fix common/ includes.
9510 * nat/x86-linux.c: Fix common/ includes.
9511 * nat/x86-linux-dregs.c: Fix common/ includes.
9512 * nat/x86-dregs.h: Fix common/ includes.
9513 * nat/x86-dregs.c: Fix common/ includes.
9514 * nat/ppc-linux.c: Fix common/ includes.
9515 * nat/mips-linux-watch.h: Fix common/ includes.
9516 * nat/mips-linux-watch.c: Fix common/ includes.
9517 * nat/linux-waitpid.c: Fix common/ includes.
9518 * nat/linux-ptrace.h: Fix common/ includes.
9519 * nat/linux-ptrace.c: Fix common/ includes.
9520 * nat/linux-procfs.c: Fix common/ includes.
9521 * nat/linux-personality.c: Fix common/ includes.
9522 * nat/linux-osdata.c: Fix common/ includes.
9523 * nat/linux-namespaces.c: Fix common/ includes.
9524 * nat/linux-btrace.h: Fix common/ includes.
9525 * nat/linux-btrace.c: Fix common/ includes.
9526 * nat/fork-inferior.c: Fix common/ includes.
9527 * nat/amd64-linux-siginfo.c: Fix common/ includes.
9528 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
9529 * nat/aarch64-linux.c: Fix common/ includes.
9530 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
9531 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
9532 * namespace.h: Fix common/ includes.
9533 * mips-linux-tdep.c: Fix common/ includes.
9534 * minsyms.c: Fix common/ includes.
9535 * mi/mi-parse.h: Fix common/ includes.
9536 * mi/mi-main.c: Fix common/ includes.
9537 * mi/mi-cmd-env.c: Fix common/ includes.
9538 * memrange.h: Fix common/ includes.
9539 * memattr.c: Fix common/ includes.
9540 * maint.h: Fix common/ includes.
9541 * maint.c: Fix common/ includes.
9542 * main.c: Fix common/ includes.
9543 * machoread.c: Fix common/ includes.
9544 * location.c: Fix common/ includes.
9545 * linux-thread-db.c: Fix common/ includes.
9546 * linux-nat.c: Fix common/ includes.
9547 * linux-fork.c: Fix common/ includes.
9548 * inline-frame.c: Fix common/ includes.
9549 * infrun.c: Fix common/ includes.
9550 * inflow.c: Fix common/ includes.
9551 * inferior.h: Fix common/ includes.
9552 * inferior.c: Fix common/ includes.
9553 * infcmd.c: Fix common/ includes.
9554 * inf-ptrace.c: Fix common/ includes.
9555 * inf-child.c: Fix common/ includes.
9556 * ia64-linux-nat.c: Fix common/ includes.
9557 * i387-tdep.c: Fix common/ includes.
9558 * i386-tdep.c: Fix common/ includes.
9559 * i386-linux-tdep.c: Fix common/ includes.
9560 * i386-linux-nat.c: Fix common/ includes.
9561 * i386-go32-tdep.c: Fix common/ includes.
9562 * i386-fbsd-tdep.c: Fix common/ includes.
9563 * i386-fbsd-nat.c: Fix common/ includes.
9564 * guile/scm-type.c: Fix common/ includes.
9565 * guile/guile.c: Fix common/ includes.
9566 * go32-nat.c: Fix common/ includes.
9567 * gnu-nat.c: Fix common/ includes.
9568 * gdbthread.h: Fix common/ includes.
9569 * gdbarch-selftests.c: Fix common/ includes.
9570 * gdb_usleep.c: Fix common/ includes.
9571 * gdb_select.h: Fix common/ includes.
9572 * gdb_bfd.c: Fix common/ includes.
9573 * gcore.c: Fix common/ includes.
9574 * fork-child.c: Fix common/ includes.
9575 * findvar.c: Fix common/ includes.
9576 * fbsd-nat.c: Fix common/ includes.
9577 * event-top.c: Fix common/ includes.
9578 * event-loop.c: Fix common/ includes.
9579 * dwarf2read.c: Fix common/ includes.
9580 * dwarf2loc.c: Fix common/ includes.
9581 * dwarf2-frame.c: Fix common/ includes.
9582 * dwarf-index-cache.c: Fix common/ includes.
9583 * dtrace-probe.c: Fix common/ includes.
9584 * disasm-selftests.c: Fix common/ includes.
9585 * defs.h: Fix common/ includes.
9586 * csky-tdep.c: Fix common/ includes.
9587 * cp-valprint.c: Fix common/ includes.
9588 * cp-support.h: Fix common/ includes.
9589 * cp-support.c: Fix common/ includes.
9590 * corelow.c: Fix common/ includes.
9591 * completer.h: Fix common/ includes.
9592 * completer.c: Fix common/ includes.
9593 * compile/compile.c: Fix common/ includes.
9594 * compile/compile-loc2c.c: Fix common/ includes.
9595 * compile/compile-cplus-types.c: Fix common/ includes.
9596 * compile/compile-cplus-symbols.c: Fix common/ includes.
9597 * command.h: Fix common/ includes.
9598 * cli/cli-dump.c: Fix common/ includes.
9599 * cli/cli-cmds.c: Fix common/ includes.
9600 * charset.c: Fix common/ includes.
9601 * build-id.c: Fix common/ includes.
9602 * btrace.h: Fix common/ includes.
9603 * btrace.c: Fix common/ includes.
9604 * breakpoint.h: Fix common/ includes.
9605 * breakpoint.c: Fix common/ includes.
9606 * ax.h:
9607 (enum agent_op): Fix common/ includes.
9608 * ax-general.c (struct aop_map): Fix common/ includes.
9609 * ax-gdb.c: Fix common/ includes.
9610 * auxv.c: Fix common/ includes.
9611 * auto-load.c: Fix common/ includes.
9612 * arm-tdep.c: Fix common/ includes.
9613 * arch/riscv.c: Fix common/ includes.
9614 * arch/ppc-linux-common.c: Fix common/ includes.
9615 * arch/i386.c: Fix common/ includes.
9616 * arch/arm.c: Fix common/ includes.
9617 * arch/arm-linux.c: Fix common/ includes.
9618 * arch/arm-get-next-pcs.c: Fix common/ includes.
9619 * arch/amd64.c: Fix common/ includes.
9620 * arch/aarch64.c: Fix common/ includes.
9621 * arch/aarch64-insn.c: Fix common/ includes.
9622 * arch-utils.c: Fix common/ includes.
9623 * amd64-windows-tdep.c: Fix common/ includes.
9624 * amd64-tdep.c: Fix common/ includes.
9625 * amd64-sol2-tdep.c: Fix common/ includes.
9626 * amd64-obsd-tdep.c: Fix common/ includes.
9627 * amd64-nbsd-tdep.c: Fix common/ includes.
9628 * amd64-linux-tdep.c: Fix common/ includes.
9629 * amd64-linux-nat.c: Fix common/ includes.
9630 * amd64-fbsd-tdep.c: Fix common/ includes.
9631 * amd64-fbsd-nat.c: Fix common/ includes.
9632 * amd64-dicos-tdep.c: Fix common/ includes.
9633 * amd64-darwin-tdep.c: Fix common/ includes.
9634 * agent.c: Fix common/ includes.
9635 * ada-lang.h: Fix common/ includes.
9636 * ada-lang.c: Fix common/ includes.
9637 * aarch64-tdep.c: Fix common/ includes.
9638
9639 2019-01-25 Tom Tromey <tom@tromey.com>
9640
9641 * common/create-version.sh: Use common/version.h.
9642
9643 2019-01-24 Pedro Alves <palves@redhat.com>
9644
9645 * infrun.c (signal_stop, signal_print, signal_program)
9646 (signal_catch, signal_pass): Now arrays instead of pointers.
9647 (update_signals_program_target, do_target_resume)
9648 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
9649 * linux-nat.c (linux_nat_target::pass_signals)
9650 (linux_nat_target::create_inferior, linux_nat_target::attach):
9651 Adjust.
9652 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
9653 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
9654 * procfs.c (procfs_target::pass_signals): Adjust.
9655 * record-full.c (record_full_target::resume): Adjust.
9656 * remote.c (remote_target::pass_signals)
9657 (remote_target::program_signals): Adjust.
9658 * target-debug.h (target_debug_print_signals): Now takes a
9659 gdb::array_view as parameter. Adjust.
9660 * target.h (target_ops) <pass_signals, program_signals>: Replace
9661 pointer and length parameters with gdb::array_view.
9662 (target_pass_signals, target_program_signals): Likewise.
9663 * target-delegates.c: Regenerate.
9664
9665 2019-01-24 Pedro Alves <palves@redhat.com>
9666
9667 * common/forward-scope-exit.h
9668 (forward_scope_exit::forward_scope_exit): Pass arguments to
9669 m_bind_function directly, instead of creating a std::bind and
9670 copying that.
9671
9672 2019-01-24 Alan Hayward <alan.hayward@arm.com>
9673
9674 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
9675 for static members.
9676 (pass_in_v_vfp_candidate): Likewise.
9677
9678 2019-01-23 Tom Tromey <tom@tromey.com>
9679 Pedro Alves <palves@redhat.com>
9680
9681 * regcache.c (class regcache_invalidator): Remove.
9682 (regcache::raw_write): Use make_scope_exit.
9683
9684 2019-01-23 Tom Tromey <tom@tromey.com>
9685
9686 * ui-out.h (class ui_out_emit_type): Update comment.
9687
9688 2019-01-23 Tom Tromey <tom@tromey.com>
9689
9690 * infrun.c (fetch_inferior_event): Update comment.
9691
9692 2019-01-23 Tom Tromey <tom@tromey.com>
9693 Pedro Alves <palves@redhat.com>
9694
9695 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
9696 parameter.
9697 (fetch_inferior_event): Use SCOPE_EXIT.
9698
9699
9700 2019-01-23 Tom Tromey <tom@tromey.com>
9701 Pedro Alves <palves@redhat.com>
9702
9703 * infrun.c (disable_thread_events): Delete.
9704 (stop_all_threads): Use SCOPE_EXIT.
9705
9706 2019-01-23 Tom Tromey <tom@tromey.com>
9707 Pedro Alves <palves@redhat.com>
9708
9709 * symfile.c: Include forward-scope-exit.h.
9710 (clear_symtab_users_cleanup): Replace forward declaration with
9711 a FORWARD_SCOPE_EXIT.
9712 (syms_from_objfile_1): Use the forward_scope_exit and
9713 gdb::optional instead of cleanup_function.
9714 (reread_symbols): Use the forward_scope_exit instead of
9715 cleanup_function.
9716 (clear_symtab_users_cleanup): Remove function.
9717
9718 2019-01-23 Tom Tromey <tom@tromey.com>
9719 Pedro Alves <palves@redhat.com>
9720
9721 * linux-nat.c: Include scope-exit.h.
9722 (cleanup_target_stop): Remove.
9723 (linux_nat_target::static_tracepoint_markers_by_strid): Use
9724 SCOPE_EXIT.
9725
9726 2019-01-23 Tom Tromey <tom@tromey.com>
9727 Pedro Alves <palves@redhat.com>
9728
9729 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
9730 (call_function_by_hand_dummy): Use SCOPE_EXIT.
9731
9732 2019-01-23 Tom Tromey <tom@tromey.com>
9733 Andrew Burgess <andrew.burgess@embecosm.com>
9734 Pedro Alves <palves@redhat.com>
9735
9736 * infrun.c (fetch_inferior_event): Use scope_exit.
9737 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
9738 * top.c (execute_command): Use scope_exit.
9739 * breakpoint.c (bpstat_do_actions): Use scope_exit.
9740 * utils.c (do_bpstat_clear_actions_cleanup)
9741 (make_bpstat_clear_actions_cleanup): Remove.
9742
9743 2019-01-23 Tom Tromey <tom@tromey.com>
9744 Pedro Alves <palves@redhat.com>
9745
9746 * infrun.c: Include "common/scope-exit.h"
9747 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
9748 (wait_for_inferior): Use SCOPE_EXIT.
9749 (fetch_inferior_event): Use scope_exit.
9750
9751 2019-01-23 Tom Tromey <tom@tromey.com>
9752 Pedro Alves <palves@redhat.com>
9753
9754 * breakpoint.c (create_breakpoint): Remove cleanup.
9755
9756 2019-01-23 Tom Tromey <tom@tromey.com>
9757 Andrew Burgess <andrew.burgess@embecosm.com>
9758 Pedro Alves <palves@redhat.com>
9759
9760 2019-01-23 Pedro Alves <palves@redhat.com>
9761
9762 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
9763
9764 2019-01-23 Pedro Alves <palves@redhat.com>
9765 Andrew Burgess <andrew.burgess@embecosm.com>
9766
9767 * gdbthread.h: Include "common/forward-scope-exit.h".
9768 (scoped_finish_thread_state): Redefine custom class in terms of
9769 forward_scope_exit.
9770
9771 2019-01-23 Pedro Alves <palves@redhat.com>
9772 Andrew Burgess <andrew.burgess@embecosm.com>
9773
9774 * common/forward-scope-exit.h: New file.
9775
9776 2019-01-23 Pedro Alves <palves@redhat.com>
9777 Andrew Burgess <andrew.burgess@embecosm.com>
9778 Tom Tromey <tom@tromey.com>
9779
9780 * common/scope-exit.h: New file.
9781
9782 2019-01-23 Pedro Alves <palves@redhat.com>
9783
9784 * common/preprocessor.h (ESC): Rename to ...
9785 (ESC_PARENS): ... this.
9786 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
9787 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
9788
9789 2019-01-23 Tom Tromey <tom@tromey.com>
9790
9791 * language.h (class scoped_switch_to_sym_language_if_auto):
9792 Initialize m_lang in both cases.
9793
9794 2019-01-23 Alan Hayward <alan.hayward@arm.com>
9795
9796 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
9797 with XCNEW.
9798
9799 2019-01-22 Tom Tromey <tom@tromey.com>
9800
9801 * corelow.c: Do not include sys/file.h.
9802
9803 2019-01-22 Tom Tromey <tom@tromey.com>
9804
9805 * tui/tui-wingeneral.h: Include gdb_curses.h.
9806
9807 2019-01-22 Tom Tromey <tom@tromey.com>
9808
9809 * source-cache.h (class source_cache) <get_source_lines,
9810 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
9811
9812 2019-01-22 Tom Tromey <tom@tromey.com>
9813
9814 * remote-fileio.h (struct remote_target): Declare.
9815
9816 2019-01-22 Tom Tromey <tom@tromey.com>
9817
9818 * python/py-arch.c: Do not include py-ref.h.
9819 * python/py-bpevent.c: Do not include py-ref.h.
9820 * python/py-cmd.c: Do not include py-ref.h.
9821 * python/py-continueevent.c: Do not include py-ref.h.
9822 * python/py-event.h: Do not include py-ref.h.
9823 * python/py-evtregistry.c: Do not include py-ref.h.
9824 * python/py-finishbreakpoint.c: Do not include py-ref.h.
9825 * python/py-frame.c: Do not include py-ref.h.
9826 * python/py-framefilter.c: Do not include py-ref.h.
9827 * python/py-function.c: Do not include py-ref.h.
9828 * python/py-infevents.c: Do not include py-ref.h.
9829 * python/py-linetable.c: Do not include py-ref.h.
9830 * python/py-objfile.c: Do not include py-ref.h.
9831 * python/py-param.c: Do not include py-ref.h.
9832 * python/py-prettyprint.c: Do not include py-ref.h.
9833 * python/py-progspace.c: Do not include py-ref.h.
9834 * python/py-symbol.c: Do not include py-ref.h.
9835 * python/py-symtab.c: Do not include py-ref.h.
9836 * python/py-type.c: Do not include py-ref.h.
9837 * python/py-unwind.c: Do not include py-ref.h.
9838 * python/py-utils.c: Do not include py-ref.h.
9839 * python/py-value.c: Do not include py-ref.h.
9840 * python/py-varobj.c: Do not include py-ref.h.
9841 * python/py-xmethods.c: Do not include py-ref.h.
9842 * python/python.c: Do not include py-ref.h.
9843 * varobj.c: Do not include py-ref.h.
9844
9845 2019-01-22 Tom Tromey <tom@tromey.com>
9846
9847 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
9848 keyword for bcache.
9849
9850 2019-01-22 Tom Tromey <tom@tromey.com>
9851
9852 * compile/compile-cplus-types.c: Remove a comment by #include.
9853
9854 2019-01-22 Tom Tromey <tom@tromey.com>
9855
9856 * compile/gcc-c-plugin.h: Include compile-internal.h.
9857
9858 2019-01-22 Tom Tromey <tom@tromey.com>
9859
9860 * stabsread.c (EXTERN): Do not define.
9861 (symnum, next_symbol_text_func, processing_gcc_compilation)
9862 (within_function, global_sym_chain, global_stabs)
9863 (previous_stab_code, this_object_header_files)
9864 (n_this_object_header_files)
9865 (n_allocated_this_object_header_files): Define.
9866 * stabsread.h (EXTERN): Never define. Use "extern".
9867
9868 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9869
9870 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
9871 history_value.
9872
9873 2019-01-21 Tom Tromey <tom@tromey.com>
9874
9875 * ui-out.c: Fix includes.
9876 * tui/tui-source.c: Fix includes.
9877 * target.c: Fix includes.
9878 * remote.c: Fix includes.
9879 * regcache.c: Fix includes.
9880 * python/py-block.c: Fix includes.
9881 * printcmd.c: Fix includes.
9882 * or1k-tdep.c: Fix includes.
9883 * mi/mi-main.c: Fix includes.
9884 * m32r-tdep.c: Fix includes.
9885 * csky-tdep.c: Fix includes.
9886 * compile/compile-cplus-types.c: Fix includes.
9887 * cli/cli-interp.c: Fix includes.
9888
9889 2019-01-21 Alan Hayward <alan.hayward@arm.com>
9890
9891 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
9892 for padding.
9893
9894 2019-01-16 Tom Tromey <tom@tromey.com>
9895
9896 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
9897 earlier.
9898 (struct objfile) <msymbols_range>: Move from top level.
9899 <msymbols>: New method.
9900 (class objfile_msymbols): Remove.
9901 * symtab.c (default_collect_symbol_completion_matches_break_on):
9902 Update.
9903 * symmisc.c (dump_msymbols): Update.
9904 * stabsread.c (scan_file_globals): Update.
9905 * objc-lang.c (info_selectors_command, info_classes_command)
9906 (find_methods): Update.
9907 * minsyms.c (find_solib_trampoline_target): Update.
9908 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
9909 * coffread.c (coff_symfile_read): Update.
9910 * ada-lang.c (ada_lookup_simple_minsym)
9911 (ada_collect_symbol_completion_matches): Update.
9912
9913 2019-01-16 Tom Tromey <tom@tromey.com>
9914
9915 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
9916 type. Remove no-argument constructor.
9917 <iterator::operator++>: Simplify.
9918 <begin>: Update.
9919 <end>: Use minimal_symbol_count.
9920
9921 2019-01-16 Tom Tromey <tom@tromey.com>
9922
9923 * objfiles.h (struct objfile) <psymtabs>: New method.
9924 (class objfile_psymtabs): Remove.
9925 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
9926 typedef.
9927 <range>: New method.
9928 (require_partial_symbols): Change return type.
9929 * psymtab.c (require_partial_symbols)
9930 (psym_expand_symtabs_matching): Update.
9931 * mdebugread.c (parse_partial_symbols): Update.
9932 * dbxread.c (dbx_end_psymtab): Update.
9933
9934 2019-01-15 Tom Tromey <tom@tromey.com>
9935
9936 * symtab.c (lookup_objfile_from_block)
9937 (lookup_symbol_in_objfile_symtabs)
9938 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
9939 (find_line_symtab, info_sources_command)
9940 (default_collect_symbol_completion_matches_break_on)
9941 (make_source_files_completion_list): Update.
9942 * symmisc.c (print_objfile_statistics, dump_objfile)
9943 (maintenance_print_symbols, maintenance_info_symtabs)
9944 (maintenance_check_symtabs, maintenance_info_line_tables):
9945 Update.
9946 * source.c (select_source_symtab)
9947 (forget_cached_source_info_for_objfile): Update.
9948 * objfiles.h (class objfile_compunits): Remove.
9949 (struct objfile) <compunits_range>: New typedef.
9950 (compunits): New method.
9951 * objfiles.c (objfile_relocate1): Update.
9952 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
9953 * maint.c (count_symtabs_and_blocks): Update.
9954 * linespec.c (iterate_over_all_matching_symtabs): Update.
9955 * cp-support.c (add_symbol_overload_list_qualified): Update.
9956 * coffread.c (coff_symtab_read): Update.
9957 * ada-lang.c (add_nonlocal_symbols)
9958 (ada_collect_symbol_completion_matches)
9959 (ada_add_global_exceptions): Update.
9960
9961 2019-01-15 Tom Tromey <tom@tromey.com>
9962
9963 * progspace.h (program_space) <objfiles_safe_range>: New
9964 typedef.
9965 <objfiles_safe>: New method.
9966 * objfiles.h (class all_objfiles_safe): Remove.
9967 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
9968 * jit.c (jit_inferior_exit_hook): Update.
9969
9970 2019-01-17 Tom Tromey <tom@tromey.com>
9971
9972 * progspace.h (program_space) <objfiles_range>: New typedef.
9973 <objfiles>: New method.
9974 <objfiles_head>: Rename from objfiles.
9975 (object_files): Update.
9976 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
9977 * guile/scm-pretty-print.c
9978 (ppscm_find_pretty_printer_from_objfiles): Update.
9979 * guile/scm-objfile.c (gdbscm_objfiles): Update.
9980 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
9981 Update.
9982 * python/py-progspace.c (pspy_get_objfiles): Update.
9983 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
9984 Update.
9985 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
9986 (objfpy_lookup_objfile_by_build_id): Update.
9987 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
9988 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
9989 Update.
9990 * symtab.c (iterate_over_symtabs, matching_obj_sections)
9991 (expand_symtab_containing_pc, lookup_objfile_from_block)
9992 (lookup_static_symbol, basic_lookup_transparent_type)
9993 (find_pc_sect_compunit_symtab, find_symbol_at_address)
9994 (find_line_symtab, info_sources_command)
9995 (default_collect_symbol_completion_matches_break_on)
9996 (make_source_files_completion_list, find_main_name): Update.
9997 * symmisc.c (print_symbol_bcache_statistics)
9998 (print_objfile_statistics, maintenance_print_symbols)
9999 (maintenance_print_msymbols, maintenance_print_objfiles)
10000 (maintenance_info_symtabs, maintenance_check_symtabs)
10001 (maintenance_expand_symtabs, maintenance_info_line_tables):
10002 Update.
10003 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
10004 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
10005 (map_overlay_command, unmap_overlay_command)
10006 (simple_overlay_update, expand_symtabs_matching)
10007 (map_symbol_filenames): Update.
10008 * symfile-debug.c (set_debug_symfile): Update.
10009 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
10010 Update.
10011 * source.c (select_source_symtab, forget_cached_source_info):
10012 Update.
10013 * solib.c (solib_read_symbols): Update.
10014 * solib-spu.c (append_ocl_sos): Update.
10015 * psymtab.c (maintenance_print_psymbols)
10016 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
10017 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
10018 * printcmd.c (info_symbol_command): Update.
10019 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
10020 Update.
10021 * objfiles.h (class all_objfiles): Remove.
10022 * objfiles.c (have_partial_symbols, have_full_symbols)
10023 (have_minimal_symbols, qsort_cmp, update_section_map)
10024 (shared_objfile_contains_address_p)
10025 (default_iterate_over_objfiles_in_search_order): Update.
10026 * objc-lang.c (info_selectors_command, info_classes_command)
10027 (find_methods): Update.
10028 * minsyms.c (find_solib_trampoline_target): Update.
10029 * maint.c (maintenance_info_sections)
10030 (maintenance_translate_address, count_symtabs_and_blocks):
10031 Update.
10032 * main.c (captured_main_1): Update.
10033 * linux-thread-db.c (try_thread_db_load_from_pdir)
10034 (has_libpthread): Update.
10035 * linespec.c (iterate_over_all_matching_symtabs)
10036 (search_minsyms_for_name): Update.
10037 * jit.c (jit_find_objf_with_entry_addr): Update.
10038 * hppa-tdep.c (find_unwind_entry)
10039 (hppa_lookup_stub_minimal_symbol): Update.
10040 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
10041 Update.
10042 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
10043 (elf_gnu_ifunc_resolve_by_got): Update.
10044 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
10045 * dwarf-index-write.c (save_gdb_index_command): Update.
10046 * cp-support.c (add_symbol_overload_list_qualified): Update.
10047 * breakpoint.c (create_overlay_event_breakpoint)
10048 (create_longjmp_master_breakpoint)
10049 (create_std_terminate_master_breakpoint)
10050 (create_exception_master_breakpoint): Update.
10051 * blockframe.c (find_pc_partial_function): Update.
10052 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
10053 (ada_collect_symbol_completion_matches)
10054 (ada_add_global_exceptions): Update.
10055
10056 2019-01-17 Tom Tromey <tom@tromey.com>
10057
10058 * solib-target.c (lm_info_target_p): Remove typedef. Don't
10059 declare VEC.
10060 (solib_target_parse_libraries): Change return type.
10061 (library_list_start_segment, library_list_start_section)
10062 (library_list_end_library, library_list_start_library); Update.
10063 (solib_target_free_library_list): Remove.
10064 (solib_target_parse_libraries): Remove cleanup. Change return
10065 type.
10066 (solib_target_current_sos): Update.
10067
10068 2019-01-17 Tom Tromey <tromey@bapiya>
10069
10070 * valprint.c: Replace "the the" with "the".
10071 * symtab.c: Replace "the the" with "the".
10072 * solib.c: Replace "the the" with "the".
10073 * solib-dsbt.c: Replace "the the" with "the".
10074 * linespec.c: Replace "the the" with "the".
10075 * dwarf2loc.h: Replace "the the" with "the".
10076 * amd64-windows-tdep.c: Replace "the the" with "the".
10077 * aarch64-tdep.c: Replace "the the" with "the".
10078
10079 2019-01-16 Keith Seitz <keiths@redhat.com>
10080
10081 PR gdb/23773
10082 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
10083 <builder>: Rename to ..
10084 <m_builder>: ... this and make private.
10085 (dwarf2_cu::get_builder): New method. Change all users of
10086 `builder' to use this method.
10087 (dwarf2_start_symtab): Move to ...
10088 (dwarf2_cu::start_symtab): ... here. Update all callers
10089 (setup_type_unit_groups): Move to ...
10090 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
10091 callers.
10092 (dwarf2_cu::reset_builder): New method.
10093 (process_full_compunit, process_full_type_unit): Use
10094 dwarf2_cu::reset_builder.
10095 (follow_die_offset): Record the ancestor CU if it is different
10096 from the followed DIE's CU.
10097 (follow_die_sig_1): Likewise.
10098
10099 2019-01-15 Tom Tromey <tom@tromey.com>
10100
10101 * remote.c (class remote_state) <buf>: Now a char_vector.
10102 <buf_size>: Remove.
10103 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
10104 parameter.
10105 (remote_target::getpkt_or_notif_sane_1)
10106 (remote_target::getpkt_sane)
10107 (remote_target::getpkt_or_notif_sane): Likewise.
10108 (class remote_target) <putpkt>: New overload.
10109 (remote_target::read_frame): Change type of "buf_p". Remove
10110 sizeof_p parameter.
10111 (packet_ok): New overload.
10112 (packet_check_result): New overload.
10113 Update all uses.
10114
10115 2019-01-14 Tom Tromey <tom@tromey.com>
10116
10117 * remote-notif.c (handle_notification, remote_notif_ack)
10118 (remote_notif_parse): Make "buf" const.
10119 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
10120 const.
10121 (remote_notif_parse, remote_notif_ack, handle_notification):
10122 Likewise.
10123 * remote.c (remote_notif_stop_parse): Make "buf" const.
10124 (remote_target::remote_parse_stop_reply): Make "buf" const.
10125 (remote_notif_stop_ack): Make "buf" const.
10126
10127 2019-01-14 Tom Tromey <tom@tromey.com>
10128
10129 * remote.c (remote_console_output): Make parameter const.
10130
10131 2019-01-14 Tom Tromey <tom@tromey.com>
10132
10133 * target-debug.h (target_debug_print_signals): Constify.
10134 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
10135 * procfs.c (procfs_target::pass_signals): Update.
10136 * linux-nat.c (linux_nat_target::pass_signals): Update.
10137 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
10138 * target-delegates.c: Rebuild.
10139 * remote.c (remote_target::program_signals): Update.
10140 (remote_target::pass_signals): Update.
10141 * target.c (target_pass_signals): Constify argument.
10142 (target_program_signals): Likewise.
10143 * target.h (struct target_ops) <pass_signals, program_signals>:
10144 Constify argument.
10145 (target_pass_signals, target_program_signals): Constify argument.
10146
10147 2019-01-14 Tom Tromey <tom@tromey.com>
10148
10149 PR tui/28819:
10150 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
10151
10152 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10153
10154 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
10155 field.
10156 * rs6000-tdep.c: Include reggroups.h.
10157 (IS_V_ALIAS_PSEUDOREG): Define.
10158 (rs6000_register_name): Return names for the "vX" aliases.
10159 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
10160 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
10161 aliases. Call default_register_reggroup_p for all other
10162 pseudo-registers.
10163 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
10164 New functions.
10165 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
10166 Handle "vX" aliases.
10167 (v_alias_pseudo_register_collect): New function.
10168 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
10169 (rs6000_gdbarch_init): Initialize "vX" aliases as
10170 pseudo-registers. Restore registration of
10171 rs6000_pseudo_register_reggroup_p with
10172 set_tdesc_pseudo_register_reggroup_p.
10173
10174 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
10175
10176 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
10177 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
10178 set_gdbarch_num_pseudo_regs.
10179
10180 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10181
10182 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
10183 Remove arg prefixname, add do_set and do_show.
10184 Add member functions set_list and show_list.
10185 * cli/cli-style.c (class cli_style_option): Update accordingly.
10186 (style_set_list): Move to file scope.
10187 (style_show_list): Likewise.
10188 (set_style): Call help_list.
10189 (show_style): Call cmd_show_list.
10190 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
10191 Update to use the new macro.
10192
10193 2019-10-12 Joel Brobecker <brobecker@adacore.com>
10194
10195 * ada-lang.c (_initialize_ada_language): Expand the help text
10196 for the "catch exception" command.
10197
10198 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10199
10200 * symtab.c (matching_obj_sections): Initialize obj,
10201 declare it closer to its usage.
10202
10203 2019-01-10 Tom Tromey <tom@tromey.com>
10204
10205 * thread-iter.h (inf_threads_iterator): Use next_iterator.
10206 (basic_inf_threads_range): Remove.
10207 (inf_threads_range, inf_non_exited_threads_range)
10208 (safe_inf_threads_range): Use next_adapter.
10209
10210 2019-01-10 Keith Seitz <keiths@redhat.com>
10211
10212 PR gdb/23712
10213 PR symtab/23010
10214 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
10215 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
10216
10217 2019-01-10 Keith Seitz <keiths@redhat.com>
10218
10219 PR gdb/23712
10220 PR symtab/23010
10221 * dictionary.c (pending_to_vector): Remove.
10222 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
10223 Remove _1 suffix, replacing functions of the same name. Update
10224 all callers.
10225 (dict_create_hashed, dict_create_hashed_expandable)
10226 (dict_create_linear, dict_create_linear_expandable, dict_free)
10227 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
10228 Make functions static.
10229
10230 2019-01-10 Keith Seitz <keiths@redhat.com>
10231
10232 PR gdb/23712
10233 PR symtab/23010
10234 * dictionary.h (struct dictionary): Replace declaration with
10235 multidictionary.
10236 (dict_create_hashed, dict_create_hashed_expandable)
10237 (dict_create_linear, dict_create_linear_expandable)
10238 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
10239 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
10240 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
10241 taking multidictionary argument.
10242 [ALL_DICT_SYMBOLS]: Update for multidictionary.
10243 * block.h (struct block) <dict>: Change to multidictionary
10244 and rename `multidict'.
10245 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
10246 symmisc.c: Update all dictionary references to multidictionary.
10247
10248 2019-01-10 Keith Seitz <keiths@redhat.com>
10249
10250 PR gdb/23712
10251 PR symtab/23010
10252 * dictionary.c: Include unordered_map.
10253 (pending_to_vector): New function.
10254 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
10255 Rewrite the non-"_1" functions to take vector instead
10256 of linked list.
10257 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
10258 "new" _1 versions of the same name.
10259 (multidictionary): Define.
10260 (std::hash<enum language): New definition.
10261 (collate_pending_symbols_by_language, mdict_create_hashed)
10262 (mdict_create_hashed_expandable, mdict_create_linear)
10263 (mdict_create_linear_expandable, mdict_free)
10264 (find_language_dictionary, create_new_language_dictionary)
10265 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
10266 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
10267 (mdict_size, mdict_empty): New functions.
10268 * dictionary.h (mdict_iterator): Define.
10269
10270 2019-01-10 Pedro Alves <palves@redhat.com>
10271
10272 * breakpoint.c (read_uploaded_action)
10273 (create_tracepoint_from_upload): Adjust to use
10274 gdb::unique_xmalloc_ptr.
10275 * ctf.c (ctf_write_uploaded_tp):
10276 (SET_ARRAY_FIELD): Use emplace_back.
10277 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
10278 * tracefile-tfile.c (tfile_write_uploaded_tp):
10279 * tracepoint.c (parse_tracepoint_definition): Adjust to use
10280 gdb::unique_xmalloc_ptr.
10281 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
10282 at_string, cond_string, cmd_strings>: Replace char pointers
10283 with gdb::unique_xmalloc_ptr.
10284
10285 2019-01-10 Pedro Alves <palves@redhat.com>
10286
10287 * solib-target.c (library_list_start_library): Don't xstrdup name.
10288
10289 2019-01-10 Pedro Alves <palves@redhat.com>
10290
10291 * mdebugread.c (parse_partial_symbols): Use
10292 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
10293
10294 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
10295
10296 * linux-fork.c (scoped_switch_fork_info)
10297 <~scoped_switch_fork_info>: Fix incorrect variable name.
10298
10299 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
10300
10301 * linux-fork.c (scoped_switch_fork_info)
10302 <scoped_switch_fork_info>: Make explicit.
10303 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
10304
10305 2019-01-10 Tom Tromey <tom@tromey.com>
10306
10307 * objfiles.h (objfile::reset_psymtabs): Update.
10308 * objfiles.c (objfile::objfile): Update.
10309 * psymtab.h (psymtab_storage::obstack): Update.
10310 (psymtab_storage::m_obstack): Use gdb::optional.
10311 (class psymtab_storage): Update comment. Remove objfile
10312 parameter.
10313 * psymtab.c (psymtab_storage::psymtab_storage): Update.
10314
10315 2019-01-10 Tom Tromey <tom@tromey.com>
10316
10317 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
10318 <free_psymtabs>: Now private.
10319 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
10320 (allocate_psymtab): Use new method.
10321
10322 2019-01-10 Tom Tromey <tom@tromey.com>
10323
10324 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
10325 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
10326 * mdebugread.c (parse_partial_symbols): Use
10327 allocate_dependencies.
10328 * dwarf2read.c (dwarf2_create_include_psymtab): Use
10329 allocate_dependencies.
10330 (process_psymtab_comp_unit_reader)
10331 (build_type_psymtab_dependencies): Likewise.
10332 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
10333
10334 2019-01-10 Tom Tromey <tom@tromey.com>
10335
10336 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
10337 PSYMBOL_SET_LANGUAGE.
10338 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
10339
10340 2019-01-10 Tom Tromey <tom@tromey.com>
10341
10342 * psymtab.h (psymtab_storage::obstack): New method.
10343 <m_obstack>: Rename from obstack; now private.
10344 * psymtab.c (psymtab_storage): Update.
10345 * dwarf2read.c (create_addrmap_from_index)
10346 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
10347 Update.
10348
10349 2019-01-10 Tom Tromey <tom@tromey.com>
10350
10351 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
10352 * objfiles.h (objfile::reset_psymtabs): New method.
10353
10354 2019-01-10 Tom Tromey <tom@tromey.com>
10355
10356 * symmisc.c (print_symbol_bcache_statistics): Update.
10357 (print_objfile_statistics): Update.
10358 * symfile.c (reread_symbols): Update.
10359 * psymtab.h (class psymtab_storage): New.
10360 * psymtab.c (psymtab_storage): New constructor.
10361 (~psymtab_storage): New destructor.
10362 (require_partial_symbols): Update.
10363 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
10364 (find_pc_sect_psymtab, find_pc_sect_psymbol)
10365 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
10366 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
10367 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
10368 (start_psymtab_common, end_psymtab_common)
10369 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
10370 (allocate_psymtab): Update.
10371 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
10372 Update.
10373 (dump_psymtab_addrmap, maintenance_print_psymbols)
10374 (maintenance_check_psymtabs): Update.
10375 (class objfile_psymtabs): Move to objfiles.h.
10376 * psympriv.h (discard_psymtab): Now inline.
10377 (psymtab_discarder::psymtab_discarder): Update.
10378 (psymtab_discarder::~psymtab_discarder): Update.
10379 (ALL_OBJFILE_PSYMTABS): Rewrite.
10380 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
10381 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
10382 Remove fields.
10383 <partial_symtabs>: New field.
10384 (class objfile_psymtabs): Move from psymtab.h. Update.
10385 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
10386 psymbol_cache.
10387 (objfile::~objfile): Don't destroy psymbol_cache.
10388 * mdebugread.c (parse_partial_symbols): Update.
10389 * dwarf2read.c (create_addrmap_from_index)
10390 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
10391 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
10392 (add_partial_subprogram, dwarf2_ranges_read): Update.
10393 * dwarf-index-write.c (write_address_map)
10394 (write_one_signatured_type, recursively_write_psymbols)
10395 (class debug_names, class debug_names, write_psymtabs_to_index):
10396 Update.
10397
10398 2019-01-10 Tom Tromey <tom@tromey.com>
10399
10400 * symtab.h (SYMBOL_SET_NAMES): Update.
10401 (symbol_set_names): Update.
10402 (MSYMBOL_SET_NAMES): Update.
10403 * symtab.c (symbol_set_names): Change argument to be an
10404 objfile_per_bfd_storage.
10405 * psymtab.c (add_psymbol_to_bcache): Update.
10406 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
10407
10408 2019-01-10 Tom Tromey <tom@tromey.com>
10409
10410 * symtab.c (create_demangled_names_hash): Change argument to be an
10411 objfile_per_bfd_storage.
10412 (symbol_set_names): Update.
10413
10414 2019-01-10 Tom Tromey <tom@tromey.com>
10415
10416 * xcoffread.c (xcoff_initial_scan): Unconditionally call
10417 init_psymbol_list.
10418 * psymtab.c (init_psymbol_list): Do nothing if already called.
10419 * psympriv.h (init_psymbol_list): Add comment.
10420 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
10421 init_psymbol_list.
10422 * dbxread.c (dbx_symfile_read): Unconditionally call
10423 init_psymbol_list.
10424
10425 2019-01-10 Tom Tromey <tom@tromey.com>
10426
10427 * xcoffread.c (scan_xcoff_symtab): Update.
10428 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
10429 "where".
10430 * mdebugread.c (parse_partial_symbols)
10431 (handle_psymbol_enumerators): Update.
10432 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
10433 * dbxread.c (read_dbx_symtab): Update.
10434 * psympriv.h (psymbol_placement): New enum.
10435 (add_psymbol_to_list): Update.
10436
10437 2019-01-10 Tom Tromey <tom@tromey.com>
10438
10439 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
10440 static_psymbols parameters.
10441 (scan_xcoff_symtab): Update.
10442 * psymtab.c (start_psymtab_common): Remove global_psymbols and
10443 static_psymbols parameters.
10444 * psympriv.h (start_psymtab_common): Update.
10445 * mdebugread.c (parse_partial_symbols): Update.
10446 * dwarf2read.c (create_partial_symtab): Update.
10447 * dbxread.c (read_dbx_symtab): Update.
10448 (start_psymtab): Remove global_psymbols and static_psymbols
10449 parameters.
10450
10451 2019-01-10 Tom Tromey <tom@tromey.com>
10452
10453 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
10454 * psymtab.c (allocate_psymtab): Add comment.
10455 * psympriv.h (allocate_psymtab): Add comment.
10456 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
10457 initializations.
10458 * dbxread.c (dbx_end_psymtab): Remove some initializations.
10459
10460 2019-01-10 Tom Tromey <tom@tromey.com>
10461
10462 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
10463 Don't declare.
10464 * mipsread.c: Include mdebugread.h.
10465 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
10466 Declare.
10467 * elfread.c: Include mdebugread.h.
10468
10469 2019-01-09 Tom Tromey <tom@tromey.com>
10470
10471 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
10472 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
10473 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
10474 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
10475 (psym_lookup_symbol, psym_find_last_source_symtab)
10476 (psym_forget_cached_source_info, psym_print_stats)
10477 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
10478 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
10479 (psym_map_matching_symbols, psym_expand_symtabs_matching)
10480 (psym_find_compunit_symtab_by_address)
10481 (maintenance_print_psymbols, maintenance_info_psymtabs)
10482 (maintenance_check_psymtabs): Use ranged for.
10483 * psymtab.h (class objfile_psymtabs): New.
10484 (require_partial_symbols): Return objfile_psymtabs.
10485 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
10486
10487 2019-01-09 Tom Tromey <tom@tromey.com>
10488
10489 * symfile.c (overlay_invalidate_all, find_pc_overlay)
10490 (find_pc_mapped_section, list_overlays_command)
10491 (map_overlay_command, unmap_overlay_command)
10492 (simple_overlay_update): Use all_objfiles.
10493 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
10494 * printcmd.c (info_symbol_command): Use all_objfiles.
10495 * objfiles.h (ALL_OBJSECTIONS): Remove.
10496 * maint.c (maintenance_translate_address): Use all_objfiles.
10497 * gcore.c (gcore_create_callback): Use all_objfiles.
10498 (objfile_find_memory_regions): Likewise.
10499
10500 2019-01-09 Tom Tromey <tom@tromey.com>
10501
10502 * symtab.c (find_line_symtab, info_sources_command)
10503 (make_source_files_completion_list): Use objfile_compunits.
10504 * source.c (select_source_symtab): Use objfile_compunits.
10505 * objfiles.h (struct objfile): Update comment.
10506 (ALL_OBJFILES): Remove.
10507 (ALL_FILETABS): Remove.
10508 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
10509 objfile_compunits.
10510
10511 2019-01-09 Tom Tromey <tom@tromey.com>
10512
10513 * symmisc.c (print_objfile_statistics, dump_objfile)
10514 (maintenance_print_symbols): Use compunit_filetabs.
10515 * source.c (forget_cached_source_info_for_objfile): Use
10516 compunit_filetabs.
10517 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
10518 (ALL_FILETABS): Use compunit_filetabs.
10519 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
10520 * coffread.c (coff_symtab_read): Use compunit_filetabs.
10521
10522 2019-01-09 Tom Tromey <tom@tromey.com>
10523
10524 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
10525 (compunit_filetabs): New.
10526 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
10527 compunit_filetabs.
10528 (info_sources_command, make_source_files_completion_list): Remove
10529 declaration.
10530 * symmisc.c (print_objfile_statistics, dump_objfile)
10531 (maintenance_print_symbols): Remove declaration.
10532 (maintenance_info_symtabs): Use compunit_filetabs.
10533 (maintenance_info_line_tables): Likewise.
10534 * source.c (select_source_symtab): Change local variable name.
10535 (forget_cached_source_info_for_objfile): Remove declaration.
10536 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
10537 * objfiles.c (objfile_relocate1): Remove declaration.
10538 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
10539 declaration.
10540 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
10541 * coffread.c (coff_symtab_read): Remove declaration.
10542 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
10543 compunit_filetabs.
10544
10545 2019-01-09 Tom Tromey <tom@tromey.com>
10546
10547 * symtab.c (lookup_objfile_from_block)
10548 (find_pc_sect_compunit_symtab, search_symbols)
10549 (default_collect_symbol_completion_matches_break_on): Use
10550 objfile_compunits.
10551 * objfiles.h (ALL_COMPUNITS): Remove.
10552 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
10553 * cp-support.c (add_symbol_overload_list_qualified): Use
10554 objfile_compunits.
10555 * ada-lang.c (ada_collect_symbol_completion_matches)
10556 (ada_add_global_exceptions): Use objfile_compunits.
10557
10558 2019-01-09 Tom Tromey <tom@tromey.com>
10559
10560 * source.c (select_source_symtab)
10561 (forget_cached_source_info_for_objfile): Remove declaration.
10562 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
10563 declaration.
10564 * maint.c (count_symtabs_and_blocks): Remove declaration.
10565 * cp-support.c (add_symbol_overload_list_qualified): Remove
10566 declaration.
10567 * coffread.c (coff_symtab_read): Remove declaration.
10568 * symtab.c (lookup_symbol_in_objfile_symtabs)
10569 (basic_lookup_transparent_type_1): Use objfile_compunits.
10570 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
10571 (info_sources_command, search_symbols)
10572 (default_collect_symbol_completion_matches_break_on)
10573 (make_source_files_completion_list): Remove declaration.
10574 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
10575 (ada_collect_symbol_completion_matches)
10576 (ada_add_global_exceptions): Remove declaration.
10577 * linespec.c (iterate_over_all_matching_symtabs): Use
10578 objfile_compunits.
10579 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
10580 (class objfile_compunits): New.
10581 (ALL_COMPUNITS): Use objfile_compunits.
10582 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
10583 (maintenance_check_symtabs, maintenance_info_line_tables): Use
10584 objfile_compunits.
10585 * objfiles.c (objfile_relocate1): Use objfile_compunits.
10586
10587 2019-01-09 Tom Tromey <tom@tromey.com>
10588
10589 * symtab.c (search_symbols)
10590 (default_collect_symbol_completion_matches_break_on): Use
10591 objfile_msymbols.
10592 * ada-lang.c (ada_lookup_simple_minsym)
10593 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
10594 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
10595 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
10596 objfile_msymbols.
10597 * coffread.c (coff_symfile_read): Use objfile_msymbols.
10598 * symmisc.c (dump_msymbols): Use objfile_msymbols.
10599 * objc-lang.c (find_methods): Use objfile_msymbols.
10600 (info_selectors_command, info_classes_command): Likewise.
10601 * stabsread.c (scan_file_globals): Use objfile_msymbols.
10602 * objfiles.h (class objfile_msymbols): New.
10603 (ALL_OBJFILE_MSYMBOLS): Remove.
10604 (ALL_MSYMBOLS): Remove.
10605
10606 2019-01-09 Tom Tromey <tom@tromey.com>
10607
10608 * common/next-iterator.h (next_adapter): Add Iterator template
10609 parameter.
10610 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
10611 (class all_objfiles_safe): New.
10612 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
10613 * objfiles.c (put_objfile_before): Update comment.
10614 (add_separate_debug_objfile): Likewise.
10615 (free_all_objfiles): Use all_objfiles_safe.
10616 (objfile_purge_solibs): Likewise.
10617
10618 2019-01-09 Tom Tromey <tom@tromey.com>
10619
10620 * symtab.c (iterate_over_symtabs, matching_obj_sections)
10621 (expand_symtab_containing_pc, lookup_static_symbol)
10622 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
10623 (find_symbol_at_address, find_line_symtab, find_main_name): Use
10624 all_objfiles.
10625 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
10626 * breakpoint.c (create_overlay_event_breakpoint)
10627 (create_longjmp_master_breakpoint)
10628 (create_std_terminate_master_breakpoint)
10629 (create_exception_master_breakpoint): Use all_objfiles.
10630 * linux-thread-db.c (try_thread_db_load_from_pdir)
10631 (has_libpthread): Use all_objfiles.
10632 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
10633 * linespec.c (iterate_over_all_matching_symtabs)
10634 (search_minsyms_for_name): Use all_objfiles.
10635 * maint.c (maintenance_info_sections): Use all_objfiles.
10636 * main.c (captured_main_1): Use all_objfiles.
10637 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
10638 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
10639 * guile/scm-pretty-print.c
10640 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
10641 * solib-spu.c (append_ocl_sos): Use all_objfiles.
10642 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
10643 (maintenance_print_msymbols): Use all_objfiles.
10644 * source.c (select_source_symtab): Use all_objfiles.
10645 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
10646 * symfile.c (remove_symbol_file_command)
10647 (expand_symtabs_matching, map_symbol_filenames): Use
10648 all_objfiles.
10649 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
10650 all_objfiles.
10651 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
10652 * objc-lang.c (find_methods): Use all_objfiles.
10653 * objfiles.c (have_partial_symbols, have_full_symbols)
10654 (have_minimal_symbols, qsort_cmp)
10655 (default_iterate_over_objfiles_in_search_order): Use
10656 all_objfiles.
10657 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
10658 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
10659 (maintenance_check_psymtabs): Use all_objfiles.
10660 (ALL_PSYMTABS): Remove.
10661 * compile/compile-object-run.c (do_module_cleanup): Use
10662 all_objfiles.
10663 * blockframe.c (find_pc_partial_function): Use all_objfiles.
10664 * cp-support.c (add_symbol_overload_list_qualified): Use
10665 all_objfiles.
10666 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
10667 Use all_objfiles.
10668 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
10669 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
10670 all_objfiles.
10671 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
10672 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
10673 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
10674 Uses all_objfiles.
10675 * solib.c (solib_read_symbols): Use all_objfiles
10676
10677 2019-01-09 Tom Tromey <tom@tromey.com>
10678
10679 * probe.c (parse_probes_in_pspace): Use all_objfiles.
10680 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
10681 all_objfiles.
10682 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
10683 * symmisc.c (print_symbol_bcache_statistics)
10684 (print_objfile_statistics, maintenance_print_objfiles)
10685 (maintenance_info_symtabs, maintenance_check_symtabs)
10686 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
10687 all_objfiles.
10688 * source.c (forget_cached_source_info): Use all_objfiles.
10689 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
10690 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
10691 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
10692 * objfiles.c (update_section_map): Use all_objfiles.
10693 (shared_objfile_contains_address_p): Likewise.
10694 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
10695 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
10696
10697 2019-01-09 Tom Tromey <tom@tromey.com>
10698
10699 * common/next-iterator.h: New file.
10700 * objfiles.h (class all_objfiles): New.
10701 (struct objfile_iterator): New.
10702
10703 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10704
10705 * NEWS: Move the description of the changed "frame", "select-frame",
10706 and "info frame" commands to the Changed commands section.
10707
10708 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
10709
10710 * gdbtypes.c (check_stub_method_group): Remove handling of old
10711 mangling schemes.
10712 * linespec.c (find_methods): Likewise.
10713 * stabsread.c (read_member_functions): Likewise.
10714 * valops.c (search_struct_method): Likewise.
10715 (value_struct_elt_for_reference): Likewise.
10716 * NEWS: Mention this change.
10717
10718 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
10719
10720 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
10721 print_source_lines.
10722 * source.c (print_source_lines_base): Update line number check.
10723 (print_source_lines): New function.
10724 (source_lines_range::source_lines_range): New function.
10725 * source.h (class source_lines_range): New class.
10726 (print_source_lines): New declaration.
10727
10728 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10729
10730 * linespec.c (linespec_state_destructor): Free self->canonical_names.
10731
10732 2019-01-08 Tom Tromey <tom@tromey.com>
10733 Simon Marchi <simon.marchi@ericsson.com>
10734
10735 PR gdb/24060
10736 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
10737 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
10738 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
10739 * f-exp.y (DOLLAR_VARIABLE): Likewise.
10740 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
10741 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
10742
10743 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
10744
10745 * source.c (select_source_symtab): Move header comment to
10746 declaration in source.h.
10747 (forget_cached_source_info_for_objfile): Likewise.
10748 (forget_cached_source_info): Likewise.
10749 (identify_source_line): Likewise.
10750 * source.h (identify_source_line): Move declaration from symtab.h
10751 and add comment from source.c
10752 (print_source_lines): Likewise.
10753 (forget_cached_source_info_for_objfile): Likewise.
10754 (forget_cached_source_info): Likewise.
10755 (select_source_symtab): Likewise.
10756 (enum print_source_lines_flag): Move definition from symtab.h.
10757 * symtab.h (identify_source_line): Move declaration to source.h.
10758 (print_source_lines): Likewise.
10759 (forget_cached_source_info_for_objfile): Likewise.
10760 (forget_cached_source_info): Likewise.
10761 (select_source_symtab): Likewise.
10762 (enum print_source_lines_flag): Move definition to source.h.
10763 * tui/tui-hooks.c: Add 'source.h' include.
10764
10765 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
10766
10767 * source.c (print_source_lines_base): Handle requests to print
10768 reverse line number sequences, and guard against empty lines
10769 string.
10770
10771 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
10772
10773 * source.c (print_source_lines_base): Fix skip of '\r' if next
10774 character is '\n'.
10775
10776 2019-01-06 Tom Tromey <tom@tromey.com>
10777
10778 * c-exp.y (struct c_parse_state) <macro_original_text,
10779 expansion_obstack>: New member.
10780 (macro_original_text, expansion_obstack): Remove globals.
10781 (scan_macro_expansion, scanning_macro_expansion)
10782 (finished_macro_expansion): Update.
10783 (scan_macro_cleanup): Remove.
10784 (yylex, c_parse): Update.
10785
10786 2019-01-06 Tom Tromey <tom@tromey.com>
10787
10788 * c-exp.y (struct c_parse_state) <strings>: New member.
10789 (operator_stoken): Update.
10790
10791 2019-01-06 Tom Tromey <tom@tromey.com>
10792
10793 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
10794 (union type_stack_elt) <typelist_val>: Now a pointer to
10795 std::vector.
10796 (type_stack_cleanup): Don't declare.
10797 (push_typelist): Update.
10798 * parse.c (pop_typelist): Return a std::vector.
10799 (push_typelist): Take a std::vector.
10800 (follow_types): Update. Do not free args.
10801 (type_stack_cleanup): Remove.
10802 * c-exp.y (struct c_parse_state): New.
10803 (cpstate): New global.
10804 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
10805 (nonempty_typelist): Update.
10806 (func_mod): Create a new vector.
10807 (c_parse): Create a c_parse_state.
10808 (check_parameter_typelist): Do not delete params.
10809 (function_method): Update. Do not delete type_list.
10810
10811 2019-01-06 Tom Tromey <tom@tromey.com>
10812
10813 PR gdb/28155:
10814 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
10815 check_typedef.
10816 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
10817 (print_return_value): Likewise.
10818
10819 2019-01-05 Tom Tromey <tom@tromey.com>
10820
10821 * contrib/cleanup_check.py: Remove.
10822 * contrib/gcc-with-excheck: Remove.
10823 * contrib/exsummary.py: Remove.
10824 * contrib/excheck.py: Remove.
10825
10826 2019-01-05 Joel Brobecker <brobecker@adacore.com>
10827
10828 * thread.c (delete_thread_1): Add gdb_assert that THR is not
10829 NULL. Initialize tpprev to NULL instead of assigning it
10830 to NULL on the next statement.
10831 * windows-nat.c (windows_delete_thread): Remove check for
10832 main_thread_id before printing thread exit notifications.
10833 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
10834 Remove thread ID check against main_thread_id.
10835 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
10836 windows_delete_thread.
10837 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
10838
10839 2019-01-04 Tom Tromey <tom@tromey.com>
10840
10841 * compile/compile.c (_initialize_compile): Use upper case for
10842 metasyntactic variables.
10843 * symmisc.c (_initialize_symmisc): Use upper case for
10844 metasyntactic variables.
10845 * psymtab.c (_initialize_psymtab): Use upper case for
10846 metasyntactic variables.
10847 * demangle.c (demangle_command): Use upper case for metasyntactic
10848 variables.
10849 (_initialize_demangler): Likewise.
10850 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
10851 variables.
10852
10853 2019-01-03 Tom Tromey <tom@tromey.com>
10854
10855 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
10856
10857 2019-01-03 Tom Tromey <tom@tromey.com>
10858
10859 * python/py-symtab.c (salpy_str): Update.
10860 (struct salpy_sal_object) <symtab>: Now a PyObject.
10861 (salpy_dealloc): Update.
10862 (del_objfile_sal): Use gdbpy_ref.
10863
10864 2019-01-03 Tom Tromey <tom@tromey.com>
10865
10866 * python/py-type.c (convert_field): Use new_reference. Return
10867 gdbpy_ref.
10868 (make_fielditem): Return gdbpy_ref.
10869 (typy_fields): Update.
10870 (typy_getitem): Update.
10871 (field_name): Return gdbpy_ref. Use new_reference.
10872 (typy_iterator_iternext): Update.
10873
10874 2019-01-03 Tom Tromey <tom@tromey.com>
10875
10876 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
10877
10878 2019-01-03 Tom Tromey <tom@tromey.com>
10879
10880 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
10881 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
10882 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
10883 (pspy_set_frame_filters, pspy_set_frame_unwinders)
10884 (pspy_set_type_printers): Likewise.
10885 * python/py-function.c (fnpy_init): Use gdbpy_ref.
10886 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
10887 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
10888 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
10889 (objfpy_set_type_printers): Likewise.
10890
10891 2019-01-03 Tom Tromey <tom@tromey.com>
10892
10893 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
10894 (gdbpy_print_stack): Use gdbpy_err_fetch.
10895 * python/python-internal.h (class gdbpy_err_fetch): New class.
10896 (class gdbpy_enter) <m_error_type, m_error_value,
10897 m_error_traceback>: Remove.
10898 <m_error>: New member.
10899 (gdbpy_exception_to_string): Don't declare.
10900 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
10901 * python/py-value.c (convert_value_from_python): Use
10902 gdbpy_err_fetch.
10903 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
10904 gdbpy_exception_to_string.
10905 (gdbpy_handle_exception): Use gdbpy_err_fetch.
10906 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
10907 gdbpy_err_fetch.
10908
10909 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
10910
10911 * linux-nat.c (delete_lwp_cleanup): Delete.
10912 (struct lwp_deleter): New struct.
10913 (lwp_info_up): New typedef.
10914 (linux_nat_target::follow_fork): Delete cleanup, and make use of
10915 lwp_info_up.
10916
10917 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
10918
10919 * linux-fork.c (class scoped_switch_fork_info): New class.
10920 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
10921
10922 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
10923
10924 * valops.c (find_overload_match): Remove use of null_cleanup, and
10925 calls to do_cleanups.
10926
10927 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
10928
10929 * compile/compile-cplus-types.c
10930 (compile_cplus_instance::decl_name): Handle changes to
10931 cp_func_name.
10932 * cp-support.c (cp_func_name): Update header comment, update
10933 return type.
10934 * cp-support.h (cp_func_name): Update return type in declaration.
10935 * valops.c (find_overload_match): Move temp_func local to top
10936 level of function and change its type. Use temp_func to hold and
10937 delete temporary string obtained from cp_func_name.
10938
10939 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
10940
10941 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
10942 gdb::char_vector, remove cleanup, and update uses of `msg`.
10943
10944 2019-01-03 Jim Wilson <jimw@sifive.com>
10945
10946 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
10947
10948 2019-01-02 Tom Tromey <tom@tromey.com>
10949
10950 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
10951 (tdesc_parse_xml): Remove cleanups.
10952 * target-descriptions.h (make_cleanup_free_target_description):
10953 Don't declare.
10954 (target_desc_deleter): New struct.
10955 (target_desc_up): New typedef.
10956 * target-descriptions.c (target_desc_deleter::operator()): Rename
10957 from free_target_description.
10958 (make_cleanup_free_target_description): Remove.
10959
10960 2019-01-02 Tom Tromey <tom@tromey.com>
10961
10962 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
10963 constructor, destructor.
10964 (linespec_parser): Remove typedef.
10965 (~linespec_parser): Rename from linespec_parser_delete.
10966 (linespec_lex_to_end, linespec_complete_label)
10967 (linespec_complete): Update.
10968 (decode_line_full): Remove cleanups.
10969 (decode_line_1): Update.
10970
10971 2019-01-02 Tom Tromey <tom@tromey.com>
10972
10973 * python/python-internal.h (inferior_to_inferior_object): Change
10974 return type.
10975 * python/py-exitedevent.c (create_exited_event_object): Update.
10976 * python/py-inferior.c (inferior_to_inferior_object): Return
10977 gdbpy_ref.
10978 (python_new_inferior, python_inferior_deleted)
10979 (thread_to_thread_object, delete_thread_object)
10980 (build_inferior_list, gdbpy_selected_inferior): Update.
10981 * python/py-infthread.c (create_thread_object): Update. Also fail
10982 if inferior_to_inferior_object fails.
10983
10984 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
10985
10986 * inferior.h (class inferior) <displaced_step_state>: New field.
10987 * infrun.h (struct displaced_step_state): Move here from
10988 infrun.c. Initialize fields, add constructor.
10989 <inf>: Remove field.
10990 <reset>: New method.
10991 * infrun.c (struct displaced_step_inferior_state): Move to
10992 infrun.h.
10993 (displaced_step_inferior_states): Remove.
10994 (get_displaced_stepping_state): Adust.
10995 (displaced_step_in_progress_any_inferior): Adjust.
10996 (displaced_step_in_progress_thread): Adjust.
10997 (displaced_step_in_progress): Adjust.
10998 (add_displaced_stepping_state): Remove.
10999 (get_displaced_step_closure_by_addr): Adjust.
11000 (remove_displaced_stepping_state): Remove.
11001 (infrun_inferior_exit): Call displaced_step_state.reset.
11002 (use_displaced_stepping): Don't check for NULL.
11003 (displaced_step_prepare_throw): Call
11004 get_displaced_stepping_state.
11005 (displaced_step_fixup): Don't check for NULL.
11006 (prepare_for_detach): Don't check for NULL.
11007
11008 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11009
11010 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
11011 in case of call that did not complete.
11012
11013 2019-01-02 Andrey Utkin <autkin@undo.io>
11014
11015 * symfile.c (find_separate_debug_file): Fix search of debug files for
11016 remote debuggee.
11017
11018 2019-01-02 Tom Tromey <tom@tromey.com>
11019
11020 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
11021 indentation.
11022 * python/py-frame.c (frapy_older): Remove cast.
11023 (frapy_newer): Likewise.
11024 * python/py-breakpoint.c (local_setattro): Remove cast.
11025 * python/py-arch.c (archpy_name): Remove local variable.
11026 * python/py-type.c (gdbpy_lookup_type): Remove cast.
11027
11028 2019-01-02 Joel Brobecker <brobecker@adacore.com>
11029
11030 * unittests/basic_string_view/element_access/char/empty.cc:
11031 Fix year range in copyright header.
11032
11033 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
11034
11035 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
11036 Delete.
11037 <operator==>: Update with for removed field.
11038 <hash>: Likewise.
11039 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
11040 <isa_features>: ...this.
11041 <abi_features>: New field.
11042 (riscv_isa_flen): Update comment.
11043 (riscv_abi_xlen): New declaration.
11044 (riscv_abi_flen): New declaration.
11045 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
11046 isa_features.
11047 (riscv_abi_xlen): New function.
11048 (riscv_isa_flen): Update to get answer from isa_features.
11049 (riscv_abi_flen): New function.
11050 (riscv_has_fp_abi): Update to get answer from abi_features.
11051 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
11052 xlen and flen.
11053 (riscv_call_info) <xlen, flen>: Update comment.
11054 (riscv_call_arg_struct): Remove invalid assertions
11055 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
11056 is removed.
11057 (riscv_gdbarch_init): Gather isa features and abi features
11058 separately, ensure both match on the gdbarch when reusing an old
11059 gdbarch. Relax an error check to allow 32-bit abi float to run on
11060 a target with 64-bit float hardware.
11061
11062 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11063
11064 * source.c (search_command_helper): Stop reverse search
11065 when line 1 has been searched.
11066
11067 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11068
11069 * record-full.c (record_full_base_target::close): Rewrite
11070 record_full_core_buf_list free logic.
11071
11072 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11073
11074 * break-catch-syscall.c (print_one_catch_syscall): xfree
11075 the last text.
11076
11077 2019-01-01 Joel Brobecker <brobecker@adacore.com>
11078
11079 * top.c (print_gdb_version): Update Copyright year in version
11080 message.
11081
11082 2019-01-01 Joel Brobecker <brobecker@adacore.com>
11083
11084 Update copyright year range in all GDB files.
11085
11086 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
11087
11088 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
11089
11090 For older changes see ChangeLog-2018.
11091 \f
11092 Local Variables:
11093 mode: change-log
11094 left-margin: 8
11095 fill-column: 74
11096 version-control: never
11097 coding: utf-8
11098 End:
11099