]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gdb/ChangeLog
4276b33fa2d90f9ae316f787a6dce6473b8750ff
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
1 2019-08-13 Tom Tromey <tom@tromey.com>
2
3 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
4 tui-data.c.
5 (show_source_disasm_command, show_data)
6 (show_source_or_disasm_and_command): Don't use
7 tui_set_current_layout_to.
8 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
9 * tui/tui-data.c (current_layout, tui_current_layout): Move to
10 tui-layout.c.
11 (tui_set_current_layout_to): Remove.
12
13 2019-08-13 Tom Tromey <tom@tromey.com>
14
15 * tui/tui-layout.c (tui_set_layout): Update.
16 * tui/tui-data.h (struct tui_layout_def): Remove.
17 (tui_layout_def): Don't declare.
18 * tui/tui-data.c (layout_def): Remove.
19 (tui_layout_def): Remove.
20
21 2019-08-13 Tom Tromey <tom@tromey.com>
22
23 * tui/tui-winsource.h (struct tui_source_window_base)
24 <clear_detail>: No longer "override".
25 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
26 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
27 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
28 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
29 Remove.
30 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
31
32 2019-08-13 Tom Tromey <tromey@adacore.com>
33
34 * tracepoint.c: Don't include readline.h or history.h.
35
36 2019-08-12 Tom Tromey <tom@tromey.com>
37
38 * configure: Rebuild.
39 * configure.ac: Check for readline 7.
40 * NEWS: Mention readline 7 requirement.
41 * README: Update.
42
43 2019-08-12 Tom Tromey <tom@tromey.com>
44
45 * mingw-hdep.c (gdb_select): Remove readline hack.
46
47 2019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
48
49 * blockframe.c (find_pc_partial_function): Set *block to nullptr
50 when the function fails.
51
52 2019-08-09 Andreas Arnez <arnez@linux.ibm.com>
53
54 * s390-tdep.c (s390_type_align): New function.
55 (s390_gdbarch_init): Set it as type_align gdbarch method.
56
57 2019-08-09 Tom de Vries <tdevries@suse.de>
58
59 PR gdb/24591
60 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
61 pc_low with relocation offset.
62
63 2019-08-07 Tom Tromey <tromey@adacore.com>
64
65 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
66 (print_frame_args): Update.
67 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
68 Update.
69 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
70 * frame.h (struct frame_arg): Add initializers.
71 <error>: Now a unique_xmalloc_ptr.
72
73 2019-08-07 Alan Hayward <alan.hayward@arm.com>
74
75 * NEWS: Expand the Pointer Authentication entry.
76 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
77 (aarch64_frame_unmask_lr): ... to this.
78 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
79 Call aarch64_frame_unmask_lr.
80 * frame.c (struct frame_info): Add "masked" variable.
81 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
82 (fprint_frame): Check for masked pc.
83 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
84 declarations.
85 * python/py-framefilter.c (py_print_frame): Check for masked pc.
86 * stack.c (print_frame): Check for masked pc.
87
88 2019-08-06 Tom Tromey <tom@tromey.com>
89
90 * stabsread.c (patch_block_stabs, read_one_struct_field)
91 (read_enum_type): Use obstack_strndup.
92 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
93 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
94 * dwarf2read.c (guess_full_die_structure_name)
95 (anonymous_struct_prefix): Use obstack_strndup.
96 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
97 * c-exp.y (yylex): Use obstack_strndup.
98 * ada-exp.y (write_object_renaming, write_ambiguous_var)
99 (write_var_or_type): Use obstack_strndup.
100
101 2019-08-06 Tom Tromey <tom@tromey.com>
102
103 * symfile.c (reread_symbols): Use obstack_strdup.
104 * stabsread.c (read_type): Use obstack_strdup.
105 * gdb_obstack.h (obstack_strdup): New overload.
106 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
107 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
108 (dwarf2_canonicalize_name): Use obstack_strdup.
109 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
110 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
111 Use obstack_strdup.
112
113 2019-08-06 Tom Tromey <tom@tromey.com>
114
115 * gdb_obstack.h (obstack_strdup): Define.
116 * gdb_obstack.c (obstack_strdup): Don't define.
117
118 2019-08-06 Tom Tromey <tom@tromey.com>
119
120 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
121 obstack_strdup.
122 * typeprint.c (typedef_hash_table::find_global_typedef): Use
123 obstack_strdup.
124 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
125 * stabsread.c (common_block_start): Use obstack_strdup.
126 * objfiles.c (set_objfile_main_name, objfile): Use
127 obstack_strdup.
128 * namespace.c (add_using_directive): Use obstack_strdup.
129 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
130 * jit.c (finalize_symtab): Use obstack_strdup.
131 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
132 (guess_partial_die_structure_name, partial_die_info::fixup)
133 (dwarf2_name): Use obstack_strdup.
134 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
135 obstack_strdup.
136 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
137 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
138 obstack_strdup.
139 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
140
141 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
142
143 * unittests/help-doc-selftests.c: New file.
144 * Makefile.in: Add the new file.
145
146 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
147
148 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
149 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
150 the full first line, except when FOR_VALUE_PREFIX. In this case,
151 the trailing '.' is not output, and the first character is uppercased.
152 (print_help_for_command): Update call to print_doc_line.
153 (print_doc_of_command): Likewise.
154 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
155 * cli/cli-option.c (append_indented_doc): Do not append newline.
156 (build_help_option): Append newline after first appended_indented_doc
157 only if a second call is done.
158 (build_help): Append 2 new lines before each option, except the first
159 one.
160 * compile/compile.c (_initialize_compile): Add new lines after
161 %OPTIONS%, when not at the end of the help.
162 Change help doc or code
163 producing the help doc to respect the invariants.
164 * maint-test-options.c (_initialize_maint_test_options): Likewise.
165 Also removed the new line after 'Options:', as all other commands
166 do not put an empty line between 'Options:' and the first option.
167 * printcmd.c (_initialize_printcmd): Likewise.
168 * stack.c (_initialize_stack): Likewise.
169 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
170 incorrectly telling COMMAND is optional.
171 * ada-lang.c (_initialize_ada_language): Change help doc or code
172 producing the help doc to respect the invariants.
173 * ada-tasks.c (_initialize_ada_tasks): Likewise.
174 * breakpoint.c (_initialize_breakpoint): Likewise.
175 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
176 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
177 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
178 * cli/cli-style.c (cli_style_option::add_setshow_commands,
179 _initialize_cli_style): Likewise.
180 * corelow.c (core_target_info): Likewise.
181 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
182 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
183 * filesystem.c (_initialize_filesystem): Likewise.
184 * frame.c (_initialize_frame): Likewise.
185 * gnu-nat.c (add_task_commands): Likewise.
186 * infcall.c (_initialize_infcall): Likewise.
187 * infcmd.c (_initialize_infcmd): Likewise.
188 * interps.c (_initialize_interpreter): Likewise.
189 * language.c (_initialize_language): Likewise.
190 * linux-fork.c (_initialize_linux_fork): Likewise.
191 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
192 * maint.c (_initialize_maint_cmds): Likewise.
193 * memattr.c (_initialize_mem): Likewise.
194 * printcmd.c (_initialize_printcmd): Likewise.
195 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
196 _RegEx): Likewise.
197 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
198 * record-btrace.c (_initialize_record_btrace): Likewise.
199 * record-full.c (_initialize_record_full): Likewise.
200 * record.c (_initialize_record): Likewise.
201 * regcache-dump.c (_initialize_regcache_dump): Likewise.
202 * regcache.c (_initialize_regcache): Likewise.
203 * remote.c (add_packet_config_cmd, init_remote_threadtests,
204 _initialize_remote): Likewise.
205 * ser-tcp.c (_initialize_ser_tcp): Likewise.
206 * serial.c (_initialize_serial): Likewise.
207 * skip.c (_initialize_step_skip): Likewise.
208 * source.c (_initialize_source): Likewise.
209 * stack.c (_initialize_stack): Likewise.
210 * symfile.c (_initialize_symfile): Likewise.
211 * symtab.c (_initialize_symtab): Likewise.
212 * target-descriptions.c (_initialize_target_descriptions): Likewise.
213 * top.c (init_main): Likewise.
214 * tracefile-tfile.c (tfile_target_info): Likewise.
215 * tracepoint.c (_initialize_tracepoint): Likewise.
216 * tui/tui-win.c (_initialize_tui_win): Likewise.
217 * utils.c (add_internal_problem_command): Likewise.
218 * valprint.c (value_print_option_defs): Likewise.
219
220 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
221
222 PR build/24886
223 * configure.ac: Drop enable-libmcheck support.
224 * configure, config.in: Rebuild.
225 * libmcheck.m4: Remove.
226 * acinclude.m4: Don't include it.
227 * Makefile.in: Don't distribute it.
228 * top.c (print_gdb_configuration): Don't mention it.
229
230 2019-08-06 Tom Tromey <tom@tromey.com>
231
232 * utils.c (set_output_style): Sometimes pass stream to
233 emit_style_escape.
234 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
235 * record-btrace.c (btrace_insn_history): Update.
236 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
237 method.
238 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
239 Update initializers.
240 <m_uiout>: New field.
241 <m_di>: Move lower.
242 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
243 Remove "uiout" parameter.
244 (dump_insns): Update.
245 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
246 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
247
248 2019-08-06 Christian Biesinger <cbiesinger@google.com>
249
250 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
251 (error_in_psymtab_expansion): Likewise.
252 (lookup_symbol_via_quick_fns): Likewise.
253 (basic_lookup_transparent_type_quick): Likewise.
254 (basic_lookup_transparent_type_1): Likewise.
255
256 2019-08-06 Tom Tromey <tromey@adacore.com>
257
258 * source.c (last_source_error): Now bool.
259 (print_source_lines_base): Make "noprint" bool. Only open
260 source file when last_source_visited changes.
261
262 2019-08-06 Tom Tromey <tromey@adacore.com>
263
264 * annotate.c (annotate_source_line): Use g_source_cache.
265 * source-cache.c (source_cache::get_plain_source_lines): Change
266 parameters. Populate m_offset_cache.
267 (source_cache::ensure): New method.
268 (source_cache::get_line_charpos): New method.
269 (extract_lines): Move lower. Change parameters.
270 (source_cache::get_source_lines): Move lower.
271 * source-cache.h (class source_cache): Update comment.
272 <get_line_charpos>: New method.
273 <get_source_lines>: Update comment.
274 <clear>: Clear m_offset_cache.
275 <get_plain_source_lines>: Change parameters.
276 <ensure>: New method
277 <m_offset_cache>: New member.
278 * source.c (forget_cached_source_info_for_objfile): Update.
279 (info_source_command): Use g_source_cache.
280 (find_source_lines, open_source_file_with_line_charpos): Remove.
281 (print_source_lines_base, search_command_helper): Use g_source_cache.
282 * source.h (open_source_file_with_line_charpos): Don't declare.
283 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
284 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
285 Use g_source_cache.
286
287 2019-08-06 Tom Tromey <tromey@adacore.com>
288
289 * source-cache.c (source_cache::get_plain_source_lines):
290 Remove "first_line" and "last_line" parameters.
291 (source_cache::get_source_lines): Cache plain text.
292 * source-cache.h (class source_cache)
293 <get_plain_source_lines>: Update.
294
295 2019-08-06 Tom Tromey <tromey@adacore.com>
296
297 * source-cache.c (extract_lines): No longer a method.
298 Changed type of parameter. Include final newline.
299 (selftests::extract_lines_test): New function.
300 (_initialize_source_cache): Likewise.
301 * source-cache.h (class source_cache)
302 <extract_lines>: Don't declare.
303
304 2019-08-06 Tom Tromey <tromey@adacore.com>
305
306 * breakpoint.c (init_breakpoint_sal): Update.
307 (breakpoint): Update.
308 * breakpoint.h (struct breakpoint) <filter>: Now a
309 unique_xmalloc_ptr.
310
311 2019-08-05 Christian Biesinger <cbiesinger@google.com>
312
313 * NEWS: Mention dictionary access on blocks.
314 * python/py-block.c (blpy_getitem): New function.
315 (block_object_as_mapping): New struct.
316 (block_object_type): Use new struct for tp_as_mapping field.
317
318 2019-08-05 Christian Biesinger <cbiesinger@google.com>
319
320 * objfiles.h (objfile): Add a comment describing partial symbols.
321
322 2019-08-05 Tom Tromey <tromey@adacore.com>
323
324 * compile/compile.c (_initialize_compile): Use _(), not N_().
325 * thread.c (_initialize_thread): Use _(), not N_().
326 * stack.c (_initialize_stack): Use _(), not N_().
327 * printcmd.c (_initialize_printcmd): Use _(), not N_().
328
329 2019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
330
331 * dwarf2read.c (struct dw2_symtab_iterator):
332 <want_specific_block>: Remove.
333 <block_index>: Change type to gdb::optional.
334 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
335 change type of BLOCK_INDEX parameter to gdb::optional.
336 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
337 (dw2_lookup_symbol): Don't pass argument for
338 WANT_SPECIFIC_BLOCK.
339 (dw2_expand_symtabs_for_function): Don't pass argument for
340 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
341 (class dw2_debug_names_iterator)
342 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
343 parameter, change BLOCK_INDEX type to gdb::optional.
344 <m_want_specific_block>: Remove.
345 <m_block_index>: Change type to gdb::optional.
346 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
347 gdb::optional. Re-write in function of gdb::optional.
348 (dw2_debug_names_lookup_symbol): Don't pass argument for
349 WANT_SPECIFIC_BLOCK.
350 (dw2_debug_names_expand_symtabs_for_function): Don't pass
351 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
352 BLOCK_INDEX.
353
354 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
355
356 * NEWS: Mention changes to "info sources" command.
357
358 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
359
360 * symtab.c (filename_partial_match_opts): New struct type.
361 (struct output_source_filename_data): New members
362 regexp, c_regexp, partial_match.
363 (output_source_filename): Use new members to decide to print file.
364 (info_sources_option_defs): New variable.
365 (make_info_sources_options_def_group, print_info_sources_header,
366 info_sources_command_completer):
367 New functions.
368 (info_sources_command): Read new optional arguments.
369 (_initialize_symtab): Update info sources help.
370
371 2019-08-02 Alexandre Oliva <oliva@adacore.com>
372
373 * ada-lang.c (exception_support_info_v0): Renamed from...
374 (default_exception_support_info): ... this. Create new
375 definition for v1.
376 (ada_has_this_exception_support): Look up catch_handlers_sym.
377 (ada_exception_support_info_sniffer): Try v0 after default.
378
379 2019-08-01 Tom Tromey <tromey@adacore.com>
380
381 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
382 gdbarch.h.
383
384 2019-08-01 Christian Biesinger <cbiesinger@google.com>
385
386 * s12z-tdep.c: Fix include path for s12z-opc.h.
387
388 2019-08-01 Alan Hayward <alan.hayward@arm.com>
389
390 * NEWS: Require GNU make 3.82.
391
392 2019-07-16 Tom Tromey <tom@tromey.com>
393
394 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
395 declare.
396
397 2019-07-30 Tom Tromey <tromey@adacore.com>
398
399 * block.c (contained_in): Remove BLOCK_FUNCTION check.
400
401 2019-07-30 Kevin Buettner <kevinb@redhat.com>
402
403 * printcmd.c (print_address_symbolic): Print negative offsets.
404 (build_address_symbolic): Force signed arithmetic when computing
405 offset.
406
407 2019-07-30 Christian Biesinger <cbiesinger@google.com>
408
409 PR/24474: Add a function to lookup static variables.
410 * NEWS: Mention this new function.
411 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
412 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
413 * python/python.c (python_GdbMethods): Add new function.
414
415 2019-07-29 Christian Biesinger <cbiesinger@google.com>
416
417 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
418 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
419 (objfpy_lookup_static_symbol): New function.
420 (objfile_object_methods): Add new functions.
421
422 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
423
424 * NEWS: Mention 'set|show print frame-info'. Mention new
425 'presence' value for 'frame-arguments'. Mention new '-frame-info'
426 backtrace argument. Mention that python frame filtering code
427 is now consistent with what 'backtrace' command prints.
428
429 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
430
431 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
432 comments.
433 (print_frame_info_auto, print_frame_info_source_line,
434 print_frame_info_location, print_frame_info_source_and_location,
435 print_frame_info_location_and_address, print_frame_info_short_location):
436 New declarations.
437 (struct frame_print_options): New member print_frame_info.
438 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
439 * stack.h (get_user_print_what_frame_info): New declaration.
440 (frame_show_address): New declaration.
441 * stack.c (print_frame_arguments_choices): New value 'presence'.
442 (print_frame_info_auto, print_frame_info_source_line,
443 print_frame_info_location, print_frame_info_source_and_location,
444 print_frame_info_location_and_address, print_frame_info_short_location,
445 print_frame_info_choices, print_frame_info_print_what): New definitions.
446 (print_frame_args): Only print dots for args if print frame-arguments
447 is 'presence'.
448 (frame_print_option_defs): New element for "frame-info".
449 (get_user_print_what_frame_info): New function.
450 (frame_show_address): Make non static. Move comment to stack.h.
451 (print_frame_info_to_print_what): New function.
452 (print_frame_info): Update comment. Use fp_opts.print_frame_info
453 to decide what to print.
454 (backtrace_command_1): Handle the new print_frame_arguments_presence
455 value.
456 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
457 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
458 (py_print_frame): In non-mi mode, use LOCATION as default for
459 print_what, similarly to frame information printed directly by
460 backtrace command. Handle frame-info user option in non MI mode.
461
462 2019-07-27 Kevin Buettner <kevinb@redhat.com>
463
464 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
465 Add case for debugging 32-bit target on 64-bit host. Revise
466 comment.
467
468 2019-07-27 Kevin Buettner <kevinb@redhat.com>
469
470 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
471 instead of find_function_entry_range_from_pc.
472
473 2019-07-27 Kevin Buettner <kevinb@redhat.com>
474
475 * stack.c (find_frame_funname): Remove code which preferred
476 minsym over symtab sym in "certain pathological cases".
477
478 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
479 parameter. Change type of "do_demangle" to bool.
480 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
481 Pass suitable "prefer_sym_over_minsym" flag to
482 build_address_symbolic(). Don't output "+" for negative offsets.
483 * printcmd.c (print_address_symbolic): Update invocation of
484 build_address_symbolic to include a "prefer_sym_over_minsym"
485 flag.
486 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
487 Restrict cases in which use of minimal symbol is preferred to that
488 of a found symbol. Update comments.
489
490 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
491 for entry pc when entry pc is out of range for that FDE.
492
493 2019-07-26 Brian Callahan <bcallah@openbsd.org>
494
495 PR gdb/24839:
496 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
497 type.
498
499 2019-07-25 Christian Biesinger <cbiesinger@google.com>
500
501 * python/py-objfile.c (add_separate_debug_file): Fix comment about
502 this function's Python signature.
503
504
505 2019-07-24 Christian Biesinger <cbiesinger@google.com>
506
507 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
508 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
509 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
510 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
511 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
512
513
514 2019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
515
516 * h8300-tdep.c (h8300_register_name_common): New.
517 h8300_register_name): Use h8300_register_name_common.
518 (h8300s_register_name): Likewise.
519 (h8300sx_register_name): Likewise.
520 (h8300h_register_nam): New.
521 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
522
523
524 2019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
525
526 * arm-tdep.c (arm_skip_cmse_entry): New function.
527 (arm_is_sgstubs_section): New function.
528 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
529
530 2019-07-22 Tom Tromey <tom@tromey.com>
531
532 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
533 Don't self-assign.
534
535 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
536
537 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
538 type_print.
539
540 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
541
542 * symtab.c (search_symbols): Adjust msymbol matching type arrays
543 so that GDB doesn't match any msymbols when searching in the
544 TYPES_DOMAIN.
545 (print_symbol_info): Print using typedef_print or type_print based
546 on the type of the symbol. Add updated FIXME comment moved from...
547 (_initialize_symtab): ... move and update FIXME comment to above.
548
549 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
550
551 * NEWS: Mention adding -q option to "info types".
552 * symtab.c (struct info_types_options): New struct.
553 (info_types_options_defs): New variable.
554 (make_info_types_options_def_group): New function.
555 (info_types_command): Use gdb::option framework to parse options.
556 (info_types_command_completer): New function.
557 (_initialize_symtab): Extend the help text on "info types" and
558 register command completer.
559
560 2019-07-21 Christian Biesinger <cbiesinger@google.com>
561
562 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
563 (lookup_symbol_in_objfile): Change int to block_enum and add a
564 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
565
566 2019-07-20 Christian Biesinger <cbiesinger@google.com>
567
568 * MAINTAINERS (Write After Approval): Add self.
569
570 2019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
571
572 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
573 instruction to the dummy code region.
574
575 2019-07-19 Tom Tromey <tromey@adacore.com>
576
577 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
578 (ARGSUSED, PARAMS, __func__): Remove rules.
579
580 2019-07-19 Alan Hayward <alan.hayward@arm.com>
581
582 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
583 * features/arm/arm-with-iwmmxt.c: Remove.
584 * features/arm/arm-with-iwmmxt.xml: Remove.
585 * features/arm/arm-with-m-fpa-layout.c: Remove.
586 * features/arm/arm-with-m-fpa-layout.xml: Remove.
587 * features/arm/arm-with-m-vfp-d16.c: Remove.
588 * features/arm/arm-with-m-vfp-d16.xml: Remove.
589 * features/arm/arm-with-m.c: Remove.
590 * features/arm/arm-with-m.xml: Remove.
591 * features/arm/arm-with-neon.c: Remove.
592 * features/arm/arm-with-neon.xml: Remove.
593 * features/arm/arm-with-vfpv2.c: Remove.
594 * features/arm/arm-with-vfpv2.xml: Remove.
595 * features/arm/arm-with-vfpv3.c: Remove.
596 * features/arm/arm-with-vfpv3.xml: Remove.
597
598 2019-07-19 Alan Hayward <alan.hayward@arm.com>
599
600 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
601
602 2019-07-19 Alan Hayward <alan.hayward@arm.com>
603
604 * arch/aarch32.c (aarch32_create_target_description): Create
605 target descriptions using features.
606 * arch/arm.c (arm_create_target_description)
607 (arm_create_mprofile_target_description): Likewise.
608 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
609
610 2019-07-19 Alan Hayward <alan.hayward@arm.com>
611
612 * Makefile.in: Add new files.
613 * aarch32-tdep.c: New file.
614 * aarch32-tdep.h: New file.
615 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
616 Call aarch32_read_description.
617 * arch/aarch32.c: New file.
618 * arch/aarch32.h: New file.
619 * arch/arm.c (arm_create_target_description)
620 (arm_create_mprofile_target_description): New function.
621 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
622 (arm_create_target_description)
623 (arm_create_mprofile_target_description): New declaration.
624 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
625 read_description functions.
626 * arm-linux-nat.c (arm_linux_nat_target::read_description):
627 Likewise.
628 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
629 * arm-tdep.c (tdesc_arm_list): New variable.
630 (arm_register_g_packet_guesses): Call create description functions.
631 (arm_read_description) (arm_read_mprofile_description): New
632 function.
633 * arm-tdep.h (arm_read_description)
634 (arm_read_mprofile_description): Add declaration.
635 * configure.tgt: Add new files.
636
637 2019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
638
639 * top.c (new_ui_command): Open specified terminal just once.
640
641 2019-07-18 Tom Tromey <tromey@adacore.com>
642
643 * symtab.c (main_name): Constify return type.
644 * symfile.c (set_initial_language): Update.
645 * symtab.h (main_name): Constify return type.
646
647 2019-07-17 Tom Tromey <tom@tromey.com>
648
649 * tui/tui-winsource.c (tui_update_source_window)
650 (tui_update_source_window_as_is)
651 (tui_update_source_windows_with_line): Remove return.
652 * tui/tui-disasm.c (tui_show_disassem)
653 (tui_show_disassem_and_update_source): Remove return.
654 * tui/tui.c (tui_reset): Remove return.
655 * tui/tui-wingeneral.c
656 (tui_check_and_display_highlight_if_needed): Remove return.
657
658 2019-07-17 Tom Tromey <tom@tromey.com>
659
660 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
661
662 2019-07-17 Tom Tromey <tom@tromey.com>
663
664 * tui/tui-winsource.h (struct tui_exec_info_window)
665 (struct tui_source_window_base): Move from tui-data.h.
666 * tui/tui-winsource.c: Move many method definitions from
667 elsewhere. Remove "structuring" comments.
668 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
669 (tui_source_window_base::refresh_window): Move to
670 tui-winsource.c.
671 * tui/tui-win.c (tui_source_window_base::refresh_all)
672 (tui_source_window_base::update_tab_width)
673 (tui_source_window_base::set_new_height)
674 (tui_source_window_base::do_make_visible_with_new_height): Move to
675 tui-winsource.c.
676 * tui/tui-source.h: Update.
677 * tui/tui-source.c (tui_source_window_base::reset): Move to
678 tui-winsource.c.
679 * tui/tui-disasm.h: Update.
680 * tui/tui-data.h (struct tui_exec_info_window): Move to
681 tui-winsource.h.
682 (struct tui_source_window_base): Likewise.
683 * tui/tui-data.c (tui_source_window_base::clear_detail)
684 (tui_source_window_base, ~tui_source_window_base): Move to
685 tui-winsource.c.
686
687 2019-07-17 Tom Tromey <tom@tromey.com>
688
689 * tui/tui-win.c (tui_resize_all)
690 (tui_source_window_base::update_tab_width)
691 (tui_adjust_win_heights): Update.
692 (tui_win_info::make_invisible_and_set_new_height): Rename from
693 make_invisible_and_set_new_height.
694 * tui/tui-data.h (struct tui_win_info)
695 <make_invisible_and_set_new_height>: New method.
696
697 2019-07-17 Tom Tromey <tom@tromey.com>
698
699 * tui/tui.c: Update.
700 * tui/tui-source.h (struct tui_source_window): Move from
701 tui-data.h.
702 * tui/tui-layout.c: Update.
703 * tui/tui-disasm.c: Update.
704 * tui/tui-data.h (struct tui_source_window): Move to
705 tui-source.h.
706
707 2019-07-17 Tom Tromey <tom@tromey.com>
708
709 * tui/tui-disasm.h (struct tui_disasm_window): Move from
710 tui-data.h.
711 * tui/tui-data.h (struct tui_disasm_window): Move to
712 tui-disasm.h.
713
714 2019-07-17 Tom Tromey <tom@tromey.com>
715
716 * tui/tui-regs.h (struct tui_data_item_window): Move from
717 tui-data.h.
718 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
719 * tui/tui-data.h (struct tui_data_item_window): Move to
720 tui-regs.h.
721 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
722
723 2019-07-17 Tom Tromey <tom@tromey.com>
724
725 * tui/tui.c: Update.
726 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
727 (tui_cmd_window::max_height): Move to tui-command.c.
728 * tui/tui-layout.c: Update.
729 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
730 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
731 tui-command.c.
732 * tui/tui-command.h (struct tui_cmd_window): Move from
733 tui-data.h.
734 * tui/tui-command.c: Remove "structuring" comments.
735 (tui_cmd_window::clear_detail)
736 (tui_cmd_window::do_make_visible_with_new_height)
737 (tui_cmd_window::max_height): Move from elsewhere.
738
739 2019-07-17 Tom Tromey <tom@tromey.com>
740
741 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
742 Now static.
743 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
744 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
745
746 2019-07-17 Tom Tromey <tom@tromey.com>
747
748 * tui/tui.c: Update.
749 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
750 tui-regs.c.
751 * tui/tui-windata.h: Remove file.
752 * tui/tui-windata.c: Remove file.
753 * tui/tui-win.c (tui_data_window::set_new_height)
754 (tui_data_window::do_make_visible_with_new_height): Move to
755 tui-regs.c.
756 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
757 * tui/tui-regs.c: Remove "structuring" comments.
758 (tui_data_window::first_data_item_displayed)
759 (tui_data_window::delete_data_content_windows)
760 (tui_data_window::erase_data_content)
761 (tui_data_window::display_all_data)
762 (tui_data_window::refresh_all)
763 (tui_data_window::do_scroll_vertical)
764 (tui_data_window::clear_detail, tui_data_window::set_new_height)
765 (tui_data_window::do_make_visible_with_new_height)
766 (tui_data_window::refresh_window): Move from elsewhere.
767 (_initialize_tui_regs): Move to end of file.
768 * tui/tui-layout.c: Update.
769 * tui/tui-hooks.c: Update.
770 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
771 * tui/tui-data.c (tui_data_window::clear_detail): Move to
772 tui-regs.c.
773 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
774
775 2019-07-17 Tom Tromey <tom@tromey.com>
776
777 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
778 seen.
779
780 2019-07-17 Tom Tromey <tom@tromey.com>
781
782 * tui/tui-win.c (tui_source_window_base::set_new_height)
783 (tui_source_window_base::do_make_visible_with_new_height): Use
784 m_has_locator field directly.
785 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
786 method.
787 (struct tui_source_window_base) <has_locator>: Likewise.
788
789 2019-07-17 Tom Tromey <tom@tromey.com>
790
791 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
792 Don't declare.
793 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
794 Remove.
795 * tui/tui-win.c (tui_source_window_base::set_new_height)
796 (tui_source_window_base::set_new_height)
797 (make_invisible_and_set_new_height)
798 (tui_source_window_base::do_make_visible_with_new_height)
799 (tui_source_window_base::do_make_visible_with_new_height):
800 Update.
801 * tui/tui-layout.c (show_source_disasm_command, show_data)
802 (show_source_or_disasm_and_command): Update.
803 * tui/tui-layout.c (show_layout): Update.
804
805 2019-07-17 Tom Tromey <tom@tromey.com>
806
807 * tui/tui-layout.c (make_data_window): Remove.
808 (show_data): Unify creation and re-initialization cases.
809
810 2019-07-17 Tom Tromey <tom@tromey.com>
811
812 * tui/tui-layout.c (make_source_window, make_disasm_window):
813 Remove.
814 (show_data): Unify creation and re-initialization cases.
815
816 2019-07-17 Tom Tromey <tom@tromey.com>
817
818 * tui/tui-layout.c (make_command_window): Remove.
819 (show_source_disasm_command, show_source_or_disasm_and_command):
820 Unify creation and re-initialization cases.
821
822 2019-07-17 Tom Tromey <tom@tromey.com>
823
824 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
825 creation and re-initialization cases.
826
827 2019-07-17 Tom Tromey <tom@tromey.com>
828
829 * tui/tui-regs.c (tui_get_register): Return void.
830
831 2019-07-17 Tom Tromey <tom@tromey.com>
832
833 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
834 Simplify.
835
836 2019-07-17 Tom Tromey <tom@tromey.com>
837
838 * tui/tui-layout.c (show_source_disasm_command): Simplify window
839 resetting.
840
841 2019-07-17 Tom Tromey <tom@tromey.com>
842
843 * tui/tui.h (tui_set_layout_by_name): Don't declare.
844 * tui/tui-regs.c (tui_reg_layout): New function.
845 (tui_show_registers, tui_reg_command): Use it.
846 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
847 (tui_layout_command): Rename from tui_set_layout_by_name. Change
848 parameters.
849 (tui_layout_command): Remove.
850
851 2019-07-17 Tom Tromey <tom@tromey.com>
852
853 * tui/tui-layout.h (tui/tui-layout): Return void.
854 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
855
856 2019-07-17 Tom Tromey <tom@tromey.com>
857
858 * tui/tui-layout.c (show_source_disasm_command, show_data):
859 Update.
860 (reset_locator): Remove.
861 (show_source_or_disasm_and_command): Update.
862
863 2019-07-17 Tom Tromey <tom@tromey.com>
864
865 * tui/tui-source.c (tui_source_window_base::reset): Remove
866 win_type parameter.
867 * tui/tui-layout.c (make_command_window, make_source_window)
868 (make_disasm_window, make_data_window)
869 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
870 (reset_locator, show_source_or_disasm_and_command): Update.
871 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
872 win_type parameter.
873 (struct tui_source_window_base) <reset>: Likewise.
874
875 2019-07-17 Tom Tromey <tom@tromey.com>
876
877 * tui/tui-layout.c (show_source_disasm_command): Use
878 reset_locator.
879 (reset_locator): New function.
880 (init_and_make_win): Remove.
881 (show_source_or_disasm_and_command): Use reset_locator.
882
883 2019-07-17 Tom Tromey <tom@tromey.com>
884
885 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
886 condition.
887 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
888 Remove condition.
889 * tui/tui-source.c (tui_source_window_base::reset): New method.
890 * tui/tui-layout.c (make_command_window): Don't call
891 init_and_make_win.
892 (make_source_window, make_disasm_window): Don't call
893 make_source_or_disasm_window.
894 (make_data_window): Don't call init_and_make_win. Change calling
895 convention.
896 (show_source_disasm_command, show_data): Simplify.
897 (make_source_or_disasm_window): Remove.
898 (show_source_or_disasm_and_command): Simplify.
899 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
900 (struct tui_source_window_base) <reset>: Likewise.
901 <execution_info>: Remove initializer.
902 * tui/tui-data.c (tui_source_window_base): Initialize
903 execution_info.
904
905 2019-07-17 Tom Tromey <tom@tromey.com>
906
907 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
908 variable.
909
910 2019-07-17 Tom Tromey <tom@tromey.com>
911
912 * tui/tui.c (tui_rl_other_window): Update.
913 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
914 superclass method first. Always iterate over regs_content.
915 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
916 method.
917 * tui/tui-win.c (tui_set_focus_command): Update.
918
919 2019-07-17 Tom Tromey <tom@tromey.com>
920
921 * tui/tui-win.c (tui_set_focus_command): Rename from
922 tui_set_focus. Call tui_enable.
923 (tui_set_focus_command): Remove.
924
925 2019-07-17 Tom Tromey <tom@tromey.com>
926
927 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
928 refresh_window.
929 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
930 touchwin.
931 (tui_data_window::refresh_window): Call refresh_window on data
932 items. Always call superclass refresh_window.
933 (tui_win_info::refresh): Remove.
934 (tui_source_window_base::refresh_window): Update.
935 (tui_refresh_all): Update.
936 * tui/tui-layout.c (show_source_disasm_command): Remove call to
937 refresh_window.
938 (show_source_or_disasm_and_command): Likewise.
939 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
940 (struct tui_source_window_base) <refresh>: Likewise.
941
942 2019-07-17 Tom Tromey <tom@tromey.com>
943
944 * tui/tui-winsource.c (tui_clear_source_content)
945 (tui_show_source_content): Update.
946 * tui/tui-source.c (tui_source_window::showing_source_p): Check
947 whether content is empty.
948 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
949 Remove.
950
951 2019-07-17 Tom Tromey <tom@tromey.com>
952
953 * tui/tui-winsource.c (tui_erase_source_content): Clear the
954 window's contents.
955 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
956 * tui/tui-source.c (tui_set_source_content_nil): Remove.
957
958 2019-07-17 Tom Tromey <tom@tromey.com>
959
960 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
961 (struct tui_data_item_window): Update.
962
963 2019-07-17 Tom Tromey <tom@tromey.com>
964
965 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
966 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
967 defines.
968
969 2019-07-17 Tom Tromey <tom@tromey.com>
970
971 * tui/tui-winsource.h (tui_erase_source_content)
972 (tui_clear_source_content): Remove "display_prompt" parameter.
973 * tui/tui-winsource.c (tui_update_source_window_as_is)
974 (tui_update_source_windows_with_addr): Update.
975 (tui_clear_source_content): Remove "display_prompt" parameter.
976 (tui_erase_source_content): Likewise. Simplify.
977 (tui_show_source_content): Update.
978 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
979 * tui/tui-stack.c (tui_show_frame_info): Update.
980 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
981 Remove defines.
982
983 2019-07-17 Tom Tromey <tom@tromey.com>
984
985 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
986 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
987 parameter.
988 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
989 parameter.
990
991 2019-07-17 Tom Tromey <tom@tromey.com>
992
993 * tui/tui-winsource.c (tui_clear_source_content)
994 (tui_show_source_content, tui_show_exec_info_content)
995 (tui_clear_exec_info_content): Update.
996 * tui/tui-stack.c (tui_show_locator_content): Update.
997 (tui_show_frame_info): Update.
998 * tui/tui-source.h (tui_source_window): Don't declare.
999 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
1000 from tui_source_is_displayed.
1001 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
1002 Remove field.
1003 (struct tui_source_window_base) <content_in_use>: New field. Now
1004 bool.
1005 (struct tui_source_window) <showing_source_p>: New method.
1006 (TUI_SRC_WIN): Change cast.
1007 * tui/tui-data.c (tui_initialize_static_data): Update.
1008
1009 2019-07-17 Tom Tromey <tom@tromey.com>
1010
1011 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
1012 location_matches_p.
1013 * tui/tui-source.c (tui_source_window::location_matches_p): New
1014 method.
1015 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
1016 method.
1017 * tui/tui-data.h (struct tui_source_window_base)
1018 <location_matches_p>: New method.
1019 (struct tui_source_window, struct tui_disasm_window)
1020 <location_matches_p>: Likewise.
1021
1022 2019-07-17 Tom Tromey <tom@tromey.com>
1023
1024 * tui/tui-win.c (tui_set_win_height_command): Rename from
1025 tui_set_win_height.
1026 (tui_set_win_height_command): Remove.
1027
1028 2019-07-17 Tom Tromey <tom@tromey.com>
1029
1030 * tui/tui-source.c (tui_source_window): New constructor. Add
1031 observer.
1032 (~tui_source_window): New destructor.
1033 (tui_source_window::style_changed): New method.
1034 * tui/tui-hooks.c (tui_redisplay_source): Remove.
1035 (tui_attach_detach_observers): Update.
1036 * tui/tui-data.h (struct tui_source_window): Make constructor not
1037 inline. Add destructor.
1038 (struct tui_source_window) <style_changed>: New method.
1039 <m_observable>: New member.
1040
1041 2019-07-17 Tom Tromey <tom@tromey.com>
1042
1043 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
1044 * tui/tui-win.c (tui_resize_all): Fix typo.
1045
1046 2019-07-17 Tom Tromey <tom@tromey.com>
1047
1048 * tui/tui-wingeneral.h (tui_refresh_all): Update.
1049 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
1050 (tui_refresh_all): Remove "list" parameter. Use foreach.
1051 * tui/tui-win.c (window_name_completer): Use foreach.
1052 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
1053 (update_tab_width): Likewise.
1054 * tui/tui-layout.c (show_layout): Update.
1055 * tui/tui-data.h (class tui_window_iterator): New.
1056 (struct all_tui_windows): New.
1057 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
1058
1059 2019-07-17 Tom Tromey <tom@tromey.com>
1060
1061 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
1062 parameter. Don't reference globals.
1063 (tui_reg_command): Update.
1064
1065 2019-07-17 Tom Tromey <tom@tromey.com>
1066
1067 * tui/tui-regs.c (tui_show_registers): Simplify.
1068
1069 2019-07-17 Tom Tromey <tom@tromey.com>
1070
1071 * tui/tui-regs.c (tui_show_registers): Update.
1072 (tui_show_register_group): Add win_info parameter.
1073
1074 2019-07-17 Tom Tromey <tom@tromey.com>
1075
1076 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
1077 Rename from tui_display_reg_element_at_line.
1078 (tui_data_window::display_registers_from_line): Update.
1079 * tui/tui-data.h (struct tui_data_window)
1080 <display_reg_element_at_line>: New method.
1081
1082 2019-07-17 Tom Tromey <tom@tromey.com>
1083
1084 * tui/tui-regs.h (tui_display_registers_from)
1085 (tui_display_registers_from_line): Don't declare.
1086 * tui/tui-windata.c (tui_data_window::display_all_data)
1087 (tui_data_window::refresh_all)
1088 (tui_data_window::do_scroll_vertical): Update.
1089 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
1090 from tui_display_registers_from.
1091 (tui_display_reg_element_at_line): Update.
1092 (tui_data_window::display_registers_from_line): Rename from
1093 tui_display_registers_from_line.
1094 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
1095 display_registers_from_line>: New methods.
1096
1097 2019-07-17 Tom Tromey <tom@tromey.com>
1098
1099 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
1100 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
1101 from tui_erase_data_content.
1102 (tui_data_window::display_all_data)
1103 (tui_data_window::refresh_all)
1104 (tui_data_window::do_scroll_vertical): Update.
1105 * tui/tui-regs.c (tui_show_registers): Update.
1106 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
1107 New method.
1108
1109 2019-07-17 Tom Tromey <tom@tromey.com>
1110
1111 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
1112 declare.
1113 * tui/tui-windata.c
1114 (tui_data_window::delete_data_content_windows): Rename from
1115 tui_delete_data_content_windows.
1116 (tui_data_window::display_all_data)
1117 (tui_data_window::do_scroll_vertical): Update.
1118 * tui/tui-data.h (struct tui_data_window)
1119 <delete_data_content_windows>: New method.
1120
1121 2019-07-17 Tom Tromey <tom@tromey.com>
1122
1123 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
1124 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
1125
1126 2019-07-17 Tom Tromey <tom@tromey.com>
1127
1128 * tui/tui-windata.h (tui_display_all_data): Don't declare.
1129 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
1130 from tui_display_all_data.
1131 * tui/tui-win.c
1132 (tui_data_window::do_make_visible_with_new_height): Update.
1133 * tui/tui-regs.c (tui_show_registers): Update.
1134 * tui/tui-layout.c (tui_set_layout): Update.
1135 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
1136 method.
1137
1138 2019-07-17 Tom Tromey <tom@tromey.com>
1139
1140 * tui/tui-windata.h (tui_display_data_from): Don't declare.
1141 * tui/tui-windata.c (tui_display_data_from): Remove.
1142 (tui_data_window::refresh_all): Update.
1143
1144 2019-07-17 Tom Tromey <tom@tromey.com>
1145
1146 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
1147 * tui/tui-windata.c (tui_display_data_from_line): Remove.
1148 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
1149 tui_display_registers_from_line.
1150 * tui/tui-regs.h (tui_display_registers_from_line): Update.
1151 * tui/tui-regs.c (tui_display_registers_from_line): Remove
1152 "force_display" parameter.
1153
1154 2019-07-17 Tom Tromey <tom@tromey.com>
1155
1156 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
1157 declare.
1158 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
1159 Rename from tui_first_reg_element_no_inline.
1160 (tui_display_reg_element_at_line)
1161 (tui_display_registers_from_line): Update.
1162 * tui/tui-data.h (struct tui_data_window)
1163 <first_reg_element_no_inline>: New method.
1164
1165 2019-07-17 Tom Tromey <tom@tromey.com>
1166
1167 * tui/tui-windata.c (tui_display_data_from)
1168 (tui_data_window::do_scroll_vertical): Update.
1169 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
1170 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
1171 Rename from tui_line_from_reg_element_no.
1172 (tui_display_registers_from_line): Update.
1173 * tui/tui-data.h (struct tui_data_window)
1174 <line_from_reg_element_no>: New method.
1175
1176 2019-07-17 Tom Tromey <tom@tromey.com>
1177
1178 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
1179 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
1180 tui_last_regs_line_no.
1181 (tui_display_reg_element_at_line)
1182 (tui_display_registers_from_line): Update.
1183 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
1184 method.
1185
1186 2019-07-17 Tom Tromey <tom@tromey.com>
1187
1188 PR tui/24722:
1189 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
1190 (tui_update_breakpoint_info): Add "being_deleted" parameter.
1191 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
1192 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
1193 (tui_update_breakpoint_info): Likewise.
1194 * tui/tui-hooks.c (tui_event_create_breakpoint)
1195 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
1196 Update.
1197
1198 2019-07-17 Tom Tromey <tom@tromey.com>
1199
1200 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
1201
1202 2019-07-17 Tom Tromey <tom@tromey.com>
1203
1204 * tui/tui-winsource.c (tui_update_source_window_as_is)
1205 (tui_update_source_windows_with_addr): Update.
1206 * tui/tui-source.h (tui_set_source_content)
1207 (tui_show_symtab_source): Add "win_info" parameter.
1208 * tui/tui-source.c (tui_set_source_content): Add "win_info"
1209 parameter.
1210 (tui_show_symtab_source): Likewise.
1211
1212 2019-07-17 Tom Tromey <tom@tromey.com>
1213
1214 * tui/tui-wingeneral.c
1215 (tui_check_and_display_highlight_if_needed): Check can_highlight.
1216
1217 2019-07-17 Tom Tromey <tom@tromey.com>
1218
1219 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
1220 (struct tui_cmd_window) <can_scroll>: New method.
1221 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
1222 method.
1223
1224 2019-07-17 Tom Tromey <tromey@adacore.com>
1225
1226 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
1227 do_field_signed>: Rename. Change type of "value".
1228 * ui-out.c (ui_out::field_signed): Rename from field_int.
1229 Change type of "value".
1230 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
1231 type of "value".
1232 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
1233 do_field_int. Change type of "value".
1234 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
1235 do_field_int. Change type of "value".
1236 * tracepoint.c (trace_status_mi, tfind_1)
1237 (print_one_static_tracepoint_marker): Update.
1238 * thread.c (print_thread_info_1, print_selected_thread_frame):
1239 Update.
1240 * stack.c (print_frame, print_frame_info): Update.
1241 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
1242 Update.
1243 * source.c (print_source_lines_base): Update.
1244 * skip.c (info_skip_command): Update.
1245 * record-btrace.c (btrace_ui_out_decode_error)
1246 (btrace_call_history_src_line): Update.
1247 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
1248 Update.
1249 * progspace.c (print_program_space): Update.
1250 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
1251 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
1252 do_field_int. Change type of "value".
1253 * mi/mi-out.c (mi_ui_out::do_table_begin)
1254 (mi_ui_out::do_table_header): Update.
1255 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
1256 type of "value".
1257 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
1258 (mi_cmd_data_list_changed_registers, output_register)
1259 (mi_cmd_data_read_memory, mi_load_progress)
1260 (mi_cmd_trace_frame_collected): Update.
1261 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
1262 Update.
1263 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
1264 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
1265 (mi_cmd_var_list_children, varobj_update_one): Update.
1266 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
1267 (mi_cmd_stack_list_args, list_arg_or_local): Update.
1268 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
1269 * inferior.c (print_inferior): Update.
1270 * gdb_bfd.c (print_one_bfd): Update.
1271 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
1272 Update.
1273 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
1274 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
1275 do_field_int. Change type of "value".
1276 * cli-out.c (cli_ui_out::do_field_signed): Rename from
1277 do_field_int. Change type of "value".
1278 * breakpoint.c (watchpoint_check, print_breakpoint_location)
1279 (print_one_breakpoint_location, print_it_catch_fork)
1280 (print_one_catch_fork, print_it_catch_vfork)
1281 (print_one_catch_vfork, print_it_catch_solib)
1282 (print_it_catch_exec, print_it_ranged_breakpoint)
1283 (print_mention_watchpoint, print_mention_masked_watchpoint)
1284 (bkpt_print_it, update_static_tracepoint): Update.
1285 * break-catch-throw.c (print_it_exception_catchpoint): Update.
1286 * break-catch-syscall.c (print_it_catch_syscall): Update.
1287 * ada-tasks.c (print_ada_task_info): Update.
1288 * ada-lang.c (print_it_exception, print_mention_exception):
1289 Update.
1290
1291 2019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
1292
1293 PR breakpoints/24541
1294 * gdbarch.c: Regenerate.
1295 * gdbarch.h: Regenerate.
1296 * gdbarch.sh: Adjust return type and parameter types for
1297 'stap_adjust_register'.
1298 (i386_stap_adjust_register): Adjust signature and return new
1299 register name.
1300 * stap-probe.c (stap_parse_register_operand): Adjust use of
1301 'gdbarch_stap_adjust_register'.
1302
1303 2019-07-17 Tom Tromey <tromey@adacore.com>
1304
1305 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
1306 declare VEC.
1307 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
1308 std::vector.
1309 (struct s390_process_info): Add initializers.
1310 (s390_add_process): Use new.
1311 (s390_linux_nat_target::low_forget_process): Use delete.
1312 (s390_linux_nat_target::low_new_fork)
1313 (s390_linux_nat_target::stopped_by_watchpoint)
1314 (s390_linux_nat_target::low_prepare_to_resume)
1315 (s390_linux_nat_target::insert_watchpoint)
1316 (s390_linux_nat_target::insert_hw_breakpoint)
1317 (s390_linux_nat_target::remove_watchpoint)
1318 (s390_linux_nat_target::remove_hw_breakpoint): Update.
1319
1320 2019-07-16 John Baldwin <jhb@FreeBSD.org>
1321
1322 * aarch64-fbsd-nat.c: Include regcache.h.
1323 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
1324 argument.
1325 (aarch64_fbsd_nat_target::fetch_registers)
1326 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
1327 variable.
1328 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
1329
1330 2019-07-16 John Baldwin <jhb@FreeBSD.org>
1331
1332 * fbsd-nat.c: Include gdbarch.h.
1333
1334 2019-07-15 Tom Tromey <tromey@adacore.com>
1335
1336 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
1337
1338 2019-07-15 Tom Tromey <tromey@adacore.com>
1339
1340 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
1341 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
1342 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
1343 * cli-out.c (cli_ui_out::do_field_int): New method.
1344 * ui-out.c (ui_out::field_unsigned): New method.
1345 * symfile.c (generic_load): Use field_unsigned.
1346 (print_transfer_performance): Likewise.
1347 * record-btrace.c (ui_out_field_uint): Remove.
1348 (btrace_call_history_insn_range, btrace_call_history): Use
1349 field_unsigned.
1350 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
1351 field_unsigned.
1352 * ui-out.h (class ui_out) <field_unsigned>: New method.
1353 <do_field_unsigned>: Likewise.
1354
1355 2019-07-15 Tom Tromey <tromey@adacore.com>
1356
1357 * mi/mi-main.c (list_available_thread_groups): Use field_string.
1358 * mi/mi-interp.c (mi_memory_changed): Use field_string.
1359 * target.c (flash_erase_command): Use field_string.
1360 * infrun.c (print_signal_received_reason): Use field_string.
1361 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
1362 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
1363 field_string.
1364 * ada-tasks.c (print_ada_task_info): Use field_string.
1365
1366 2019-07-15 Tom Tromey <tromey@adacore.com>
1367
1368 * target.c (flash_erase_command): Use field_core_addr.
1369 * symfile.c (generic_load): Use field_core_addr.
1370 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
1371 Use field_core_addr.
1372 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
1373 field_core_addr.
1374
1375 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
1376
1377 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
1378 value if its desired type is smaller than a CORE_ADDR and signed.
1379
1380 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
1381
1382 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
1383 of changes to field names, and use new is_reference field to
1384 decide if a property is a reference or not.
1385 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
1386 field.
1387 (struct dwarf2_property_baton): Update header comment, rename
1388 'referenced_type' to 'property_type' and update comments.
1389 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
1390 default property type, store in property baton, update to take
1391 accound of renamed field.
1392 (read_func_scope): Update call to attr_to_dynamic_prop.
1393 (read_array_type): Likewise.
1394 (dwarf2_per_cu_addr_sized_int_type): New function.
1395 (read_subrange_index_type): Move type finding code to
1396 dwarf2_per_cu_addr_sized_int_type.
1397 (read_subrange_type): Update calls to attr_to_dynamic_prop.
1398 (dwarf2_per_cu_addr_type): New function.
1399 (set_die_type): Update calls to attr_to_dynamic_prop.
1400
1401 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
1402
1403 * dwarf2read.c (read_subrange_index_type): New function.
1404 (read_subrange_type): Move code into new function and call it.
1405 * gdbtypes.c (create_range_type): Add some asserts.
1406
1407 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
1408
1409 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
1410 update return statements.
1411 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
1412 declaration, and update comment to match.
1413 * gdbtypes.c (resolve_dynamic_array): Update call to
1414 dwarf2_evaluate_property to match new return type.
1415
1416 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
1417
1418 * valarith.c (value_subscripted_rvalue): Change lowerbound
1419 parameter type from int to LONGEST.
1420 * value.h (value_subscripted_rvalue): Likewise in declaration.
1421
1422 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
1423
1424 * cli/cli-utils.c (info_print_command_completer): New function.
1425 * cli/cli-utils.h: Add 'completer.h' include, and forward
1426 declaration for 'struct cmd_list_element'.
1427 (info_print_command_completer): Declare.
1428 * stack.c (_initialize_stack): Add completer for 'info locals' and
1429 'info args'.
1430 * symtab.c (_initialize_symtab): Add completer for 'info
1431 variables' and 'info functions'.
1432 * NEWS: Mention completion for additional info commands.
1433
1434 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
1435
1436 * cli/cli-utils.c (extract_info_print_args): Delete.
1437 (extract_arg_maybe_quoted): Delete.
1438 (info_print_options_defs): New variable.
1439 (make_info_print_options_def_group): New function.
1440 (extract_info_print_options): Define new function.
1441 * cli/cli-utils.h (extract_info_print_args): Delete.
1442 (struct info_print_options): New structure.
1443 (extract_info_print_options): Declare new function.
1444 * stack.c (info_locals_command): Update to use new
1445 extract_info_print_options, also add a header comment.
1446 (info_args_command): Likewise.
1447 * symtab.c (info_variables_command): Likewise.
1448 (info_functions_command): Likewise.
1449
1450 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
1451
1452 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
1453 to extract string arguments.
1454 * common/common-utils.c (extract_string_maybe_quoted): New function.
1455 * common/common-utils.h (extract_string_maybe_quoted): Declare.
1456
1457 2019-07-11 Tom Tromey <tromey@adacore.com>
1458
1459 * main.c (get_init_files): Use GDBINIT, not gdbinit.
1460 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
1461 * top.h (gdbinit): Don't declare.
1462 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
1463 into...
1464 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
1465 * top.c (gdb_init): Don't call init_cli_cmds.
1466 (gdbinit): Remove.
1467 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
1468
1469 2019-07-11 Tom Tromey <tromey@adacore.com>
1470
1471 * python/py-inferior.c (add_thread_object): Don't use thread_obj
1472 after it has been moved.
1473
1474 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1475
1476 * valops.c (value_must_coerce_to_target): Change return type to
1477 bool.
1478 * value.h (value_must_coerce_to_target): Likewise.
1479
1480 2019-07-10 Simon Marchi <simon.marchi@efficios.com>
1481
1482 * breakpoint.c (is_hardware_watchpoint): Remove
1483 forward-declaration.
1484 (is_masked_watchpoint): Change return type to bool.
1485 (is_tracepoint): Likewise.
1486 (is_breakpoint): Likewise.
1487 (is_hardware_watchpoint): Likewise.
1488 (is_watchpoint): Likewise.
1489 (is_no_memory_software_watchpoint): Likewise.
1490 (is_catchpoint): Likewise.
1491 (breakpoint_1): Make FILTER parameter's return type bool.
1492 is_masked_watchpoint): Change return type to bool.
1493 (save_breakpoints): Make FILTER parameter's return type bool.
1494 * breakpoint.h (is_breakpoint): Change return type to bool.
1495 (is_watchpoint): Likewise.
1496 (is_catchpoint): Likewise.
1497 (is_tracepoint): Likewise.
1498
1499 2019-07-10 Tom Tromey <tom@tromey.com>
1500
1501 * defs.h: Don't include gdbarch.h.
1502 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
1503 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
1504 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
1505 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
1506 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
1507 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
1508 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
1509 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
1510 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
1511 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
1512 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
1513 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
1514 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
1515 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
1516 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
1517 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
1518 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
1519 record-btrace.c, record.h, regcache-dump.c, regcache.h,
1520 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
1521 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
1522 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
1523 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
1524 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
1525 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
1526 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
1527 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
1528 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
1529
1530 2019-07-10 Tom Tromey <tromey@adacore.com>
1531
1532 * ada-lang.h (is_ada_exception_catchpoint): Declare.
1533 * breakpoint.c (init_ada_exception_breakpoint): Register as
1534 bp_catchpoint.
1535 (print_one_breakpoint_location, print_one_breakpoint): Use
1536 is_ada_exception_catchpoint.
1537 * ada-lang.c (class ada_catchpoint_location): Pass
1538 bp_loc_software_breakpoint to bp_location constructor.
1539 (is_ada_exception_catchpoint): New function.
1540
1541 2019-07-10 Tom Tromey <tromey@adacore.com>
1542
1543 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
1544 VEC.
1545 (struct arm_exidx_entry): New method operator<.
1546 (struct arm_exidx_data) <section_maps>: Change type.
1547 (arm_exidx_data_free): Remove.
1548 (arm_exidx_data_key): Change type. Move lower.
1549 (arm_exidx_new_objfile): Update.
1550 (arm_compare_exidx_entries): Remove.
1551 (arm_find_exidx_entry, _initialize_arm_tdep)
1552
1553 2019-07-10 Tom Tromey <tromey@adacore.com>
1554
1555 * solib-spu.c (ocl_program_data_key): Change type.
1556 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
1557 Update.
1558
1559 2019-07-10 Tom Tromey <tromey@adacore.com>
1560
1561 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
1562 (struct solib_aix_inferior_data) <library_list>: Change type.
1563 (solib_aix_inferior_data_handle): Change type.
1564 (get_solib_aix_inferior_data): Update.
1565 (solib_aix_free_library_list): Remove.
1566 (library_list_start_library): Update.
1567 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
1568 return type.
1569 (solib_aix_get_library_list)
1570 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
1571 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
1572
1573 2019-07-10 Tom Tromey <tromey@adacore.com>
1574
1575 * solib-dsbt.c (struct dsbt_info): Add initializers.
1576 (solib_dsbt_pspace_data): Change type.
1577 (dsbt_pspace_data_cleanup): Remove.
1578 (get_dsbt_info, _initialize_dsbt_solib): Update.
1579
1580 2019-07-10 Tom Tromey <tromey@adacore.com>
1581
1582 * spu-tdep.c (spu_overlay_data): Change type.
1583 (spu_get_overlay_table, spu_overlay_new_objfile)
1584 (_initialize_spu_tdep): Update.
1585
1586 2019-07-10 Tom Tromey <tromey@adacore.com>
1587
1588 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
1589 destructor.
1590 (dbx_objfile_data_key): Change type and declare later.
1591 (DBX_SYMFILE_INFO): Rewrite.
1592 * dbxread.c (dbx_objfile_data_key): Change type.
1593 (dbx_symfile_init): Update.
1594 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
1595 (coffstab_build_psymtabs, elfstab_build_psymtabs)
1596 (stabsect_build_psymtabs, _initialize_dbxread): Update.
1597
1598 2019-07-10 Tom Tromey <tromey@adacore.com>
1599
1600 * jit.c (jit_program_space_key): Change type. Move lower.
1601 (get_jit_program_space_data): Update.
1602 (jit_program_space_data_cleanup): Remove.
1603 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
1604 Update.
1605 (struct jit_program_space_data): Add initializers.
1606
1607 2019-07-10 Tom Tromey <tromey@adacore.com>
1608
1609 * solib-darwin.c (struct darwin_info): Add initializers.
1610 (solib_darwin_pspace_data): Change type.
1611 (darwin_pspace_data_cleanup): Remove.
1612 (get_darwin_info, _initialize_darwin_solib): Update.
1613
1614 2019-07-10 Tom Tromey <tromey@adacore.com>
1615
1616 * remote-sim.c (struct sim_inferior_data): Add initializers,
1617 constructor, and destructor.
1618 (sim_inferior_data_key): Change type. Move lower.
1619 (check_for_duplicate_sim_descriptor): Update.
1620 (get_sim_inferior_data): Use new. Update.
1621 (~sim_inferior_data_cleanup): Rename from
1622 sim_inferior_data_cleanup. Simplify.
1623 (gdbsim_close_inferior, simulator_command)
1624 (sim_command_completer, _initialize_remote_sim): Update.
1625 (next_pid, INITIAL_PID): Move earlier.
1626
1627 2019-07-10 Tom Tromey <tromey@adacore.com>
1628
1629 * python/python-internal.h (create_thread_object): Return
1630 gdbpy_ref.
1631 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
1632 * python/py-inferior.c (struct threadlist_entry): Add
1633 constructor.
1634 <thread_obj>: Now a gdbpy_ref.
1635 (thread_to_thread_object): Update.
1636 (add_thread_object): Use new.
1637 (delete_thread_object): Use delete.
1638 (infpy_threads): Update.
1639 (py_free_inferior): Update. Construct "inf_obj" after acquiring
1640 GIL.
1641
1642 2019-07-10 Tom Tromey <tromey@adacore.com>
1643
1644 * valops.c (value_cast): Specialize error message for Ada.
1645
1646 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1647
1648 * breakpoint.c (breakpoint_1): Update doc and parameter names.
1649
1650 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1651
1652 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
1653 bpstat_should_step): Return bool, adjust comments.
1654 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
1655 bpstat_should_step): Likewise.
1656
1657 2019-07-10 Alan Hayward <alan.hayward@arm.com>
1658
1659 * features/Makefile: Use feature target descriptions for Arm.
1660 * features/arm/arm-core.c: Generate new file.
1661 * features/arm/arm-fpa.c: Likewise.
1662 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
1663 * features/arm/arm-m-profile.c: Likewise.
1664 * features/arm/arm-vfpv2.c: Likewise.
1665 * features/arm/arm-vfpv3.c: Likewise.
1666 * features/arm/xscale-iwmmxt.c: Likewise.
1667 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
1668
1669 2019-07-10 Alan Hayward <alan.hayward@arm.com>
1670
1671 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
1672 ptrace earlier.
1673
1674 2019-07-10 Alan Hayward <alan.hayward@arm.com>
1675
1676 * features/aarch64-pauth.c: Regenerate.
1677
1678 2019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
1679
1680 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
1681 bool.
1682 (bpstat_what): Use false instead of 0.
1683
1684 2019-07-09 Pedro Alves <palves@redhat.com>
1685
1686 * break-catch-throw.c (is_exception_catchpoint): New.
1687 * breakpoint.c (print_one_breakpoint_location): New parameter
1688 'raw_loc'. Handle it. Use
1689 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
1690 looking at the breakpoint's type.
1691 (print_one_breakpoint): If handling "maint info breakpoints", also
1692 print locations of exception catchpoints.
1693 * breakpoint.h (is_exception_catchpoint): Declare.
1694
1695 2019-07-09 Pedro Alves <palves@redhat.com>
1696
1697 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
1698 "addr" field.
1699 (allocate_location_exception_catchpoint): New.
1700 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
1701 (initialize_throw_catchpoint_ops): Install
1702 allocate_location_exception_catchpoint as allocate_location
1703 method.
1704 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
1705 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
1706 bp_loc_other.
1707 (breakpoint_address_is_meaningful): Delete.
1708 (bl_address_is_meaningful): New.
1709 (breakpoint_locations_match): Adjust comment.
1710 (bp_location_from_bp_type): New, factored out of...
1711 (bp_location::bp_location(breakpoint *)): ... this.
1712 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
1713 factored out of...
1714 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
1715 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
1716 breakpoint_address_is_meaningful.
1717 (bp_locations_compare): Adjust comment.
1718 (update_global_location_list): Use bl_address_is_meaningful
1719 instead of breakpoint_address_is_meaningful.
1720 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
1721 explicit.
1722 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
1723 * python/py-breakpoint.c (bppy_get_location): No longer check
1724 whether location is null.
1725
1726 2019-07-09 Pedro Alves <palves@redhat.com>
1727
1728 PR c++/15468
1729 * breakpoint.c (print_one_breakpoint_location): Remove
1730 single-location assert.
1731
1732 2019-07-09 Tom Tromey <tom@tromey.com>
1733
1734 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
1735 * configure: Rebuild.
1736 * configure.ac: Change common to gdbsupport.
1737 * gdbsupport: Rename from common.
1738 * acinclude.m4: Change common to gdbsupport.
1739 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
1740 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
1741 gdbsupport.
1742 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
1743 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
1744 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
1745 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
1746 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
1747 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
1748 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
1749 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
1750 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
1751 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
1752 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
1753 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
1754 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
1755 coff-pe-read.c, command.h, compile/compile-c-support.c,
1756 compile/compile-c.h, compile/compile-cplus-symbols.c,
1757 compile/compile-cplus-types.c, compile/compile-cplus.h,
1758 compile/compile-loc2c.c, compile/compile.c, completer.c,
1759 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
1760 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
1761 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
1762 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
1763 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
1764 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
1765 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
1766 features/aarch64-core.c, features/aarch64-fpu.c,
1767 features/aarch64-pauth.c, features/aarch64-sve.c,
1768 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
1769 features/i386/32bit-core.c, features/i386/32bit-linux.c,
1770 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
1771 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
1772 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
1773 features/i386/64bit-core.c, features/i386/64bit-linux.c,
1774 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
1775 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
1776 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
1777 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
1778 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
1779 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
1780 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
1781 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
1782 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
1783 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
1784 go32-nat.c, guile/guile.c, guile/scm-ports.c,
1785 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
1786 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
1787 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
1788 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
1789 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
1790 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
1791 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
1792 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
1793 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
1794 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
1795 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
1796 minsyms.c, mips-linux-tdep.c, namespace.h,
1797 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
1798 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
1799 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
1800 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
1801 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
1802 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
1803 nat/linux-waitpid.c, nat/mips-linux-watch.c,
1804 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
1805 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
1806 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
1807 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
1808 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
1809 procfs.c, producer.c, progspace.h, psymtab.h,
1810 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
1811 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
1812 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
1813 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
1814 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
1815 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
1816 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
1817 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
1818 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
1819 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
1820 target-memory.c, target.c, target.h, target/waitstatus.c,
1821 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
1822 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
1823 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
1824 unittests/array-view-selftests.c,
1825 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
1826 unittests/common-utils-selftests.c,
1827 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
1828 unittests/format_pieces-selftests.c,
1829 unittests/function-view-selftests.c,
1830 unittests/lookup_name_info-selftests.c,
1831 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
1832 unittests/mkdir-recursive-selftests.c,
1833 unittests/observable-selftests.c,
1834 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
1835 unittests/parse-connection-spec-selftests.c,
1836 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
1837 unittests/scoped_fd-selftests.c,
1838 unittests/scoped_mmap-selftests.c,
1839 unittests/scoped_restore-selftests.c,
1840 unittests/string_view-selftests.c, unittests/style-selftests.c,
1841 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
1842 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
1843 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
1844 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
1845 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
1846 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
1847
1848 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
1849
1850 * linespec.c (decode_digits_list_mode): Set explicit_line to a
1851 bool value.
1852 (decode_digits_ordinary): Set explicit_line field in sal.
1853 * symtab.c (skip_prologue_sal): Don't skip prologue for a
1854 symtab_and_line that was set on an explicit line number in
1855 assembler code. Do always update the recorded symtab and line if
1856 we do skip the prologue.
1857
1858 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
1859
1860 * breakpoint.c (set_breakpoint_location_function): Remove
1861 explicit_loc parameter.
1862 (momentary_breakpoint_from_master): Update call to
1863 set_breakpoint_location_function.
1864 (add_location_to_breakpoint): Likewise.
1865
1866 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
1867
1868 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
1869 required features based on default bfd type when no specific bfd
1870 is present.
1871
1872 2019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1873
1874 * NEWS: Mention that GDB printf and eval commands can now print
1875 C-style and Ada-style convenience var strings without
1876 calling the inferior.
1877 * printcmd.c (printf_c_string): Locally print GDB internal var
1878 instead of transiting via the inferior.
1879 (printf_wide_c_string): Likewise.
1880
1881 2019-07-04 Alan Hayward <alan.hayward@arm.com>
1882
1883 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
1884
1885 2019-07-04 Tom Tromey <tom@tromey.com>
1886
1887 PR tui/24724:
1888 * tui/tui-winsource.c (tui_clear_source_content): Update.
1889 (tui_source_window_base::set_is_exec_point_at): Fix comment.
1890 (tui_update_breakpoint_info): Update.
1891 (tui_set_exec_info_content): Update.
1892 * tui/tui-source.c (tui_set_source_content_nil): Update.
1893 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
1894 has_break.
1895 * tui/tui-data.h (enum tui_bp_flag): New.
1896 (tui_bp_flags): New enum flags type.
1897 (struct tui_source_element) <break_mode>: Change type. Rename
1898 from has_break.
1899 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
1900 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
1901 constants.
1902 * tui/tui-winsource.h: Fix comment.
1903
1904 2019-07-04 Alan Hayward <alan.hayward@arm.com>
1905
1906 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
1907 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
1908 (store_fpregs_to_thread)
1909 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
1910 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
1911 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
1912 (IWMMXT_REGS_SIZE): Add define.
1913 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
1914 (fetch_vfp_regs, store_vfp_regs)
1915 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
1916 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
1917
1918 2019-07-04 Alan Hayward <alan.hayward@arm.com>
1919
1920 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
1921 defines.
1922 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
1923 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
1924 (ARM_INT_REGISTER_SIZE): ...to this.
1925 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
1926 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
1927 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
1928 (arm_linux_collect_gregset, supply_nwfpe_register)
1929 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
1930 defines.
1931 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
1932 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
1933 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
1934 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
1935 (arm_return_in_memory, arm_store_return_value)
1936 (arm_get_longjmp_target, arm_register_g_packet_guesses)
1937 (arm_record_ld_st_multiple): Likewise.
1938 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
1939 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
1940
1941 2019-07-04 Alan Hayward <alan.hayward@arm.com>
1942
1943 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
1944 AARCH64_DISPLACED_MODIFIED_INSNS.
1945 * aarch64-tdep.c (struct aarch64_displaced_step_data)
1946 (aarch64_displaced_step_copy_insn): Likewise.
1947 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
1948 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
1949 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
1950 ARM_DISPLACED_MODIFIED_INSNS.
1951 * arm-tdep.c (arm_gdbarch_init): Likewise.
1952 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
1953 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
1954 (struct arm_displaced_step_closure): Use
1955 ARM_DISPLACED_MODIFIED_INSNS.
1956
1957 2019-07-04 Alan Hayward <alan.hayward@arm.com>
1958
1959 * features/Makefile: Remove unused xml files.
1960 * features/aarch64.xml: Remove.
1961 * features/i386/amd64-avx-avx512-linux.xml: Remove.
1962 * features/i386/amd64-avx-avx512.xml: Remove.
1963 * features/i386/amd64-avx-linux.xml: Remove.
1964 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
1965 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
1966 * features/i386/amd64-avx-mpx-linux.xml: Remove.
1967 * features/i386/amd64-avx-mpx.xml: Remove.
1968 * features/i386/amd64-avx.xml: Remove.
1969 * features/i386/amd64-linux.xml: Remove.
1970 * features/i386/amd64-mpx-linux.xml: Remove.
1971 * features/i386/amd64-mpx.xml: Remove.
1972 * features/i386/amd64.xml: Remove.
1973 * features/i386/i386-avx-avx512-linux.xml: Remove.
1974 * features/i386/i386-avx-avx512.xml: Remove.
1975 * features/i386/i386-avx-linux.xml: Remove.
1976 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
1977 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
1978 * features/i386/i386-avx-mpx-linux.xml: Remove.
1979 * features/i386/i386-avx-mpx.xml: Remove.
1980 * features/i386/i386-avx.xml: Remove.
1981 * features/i386/i386-linux.xml: Remove.
1982 * features/i386/i386-mmx-linux.xml: Remove.
1983 * features/i386/i386-mmx.xml: Remove.
1984 * features/i386/i386-mpx-linux.xml: Remove.
1985 * features/i386/i386-mpx.xml: Remove.
1986 * features/i386/i386.xml: Remove.
1987 * features/i386/x32-avx-avx512-linux.xml: Remove.
1988 * features/i386/x32-avx-linux.xml: Remove.
1989 * features/i386/x32-linux.xml: Remove.
1990
1991 2019-07-04 Alan Hayward <alan.hayward@arm.com>
1992
1993 * regformats/aarch64.dat: Remove.
1994 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
1995 * regformats/i386/amd64-avx-linux.dat: Remove.
1996 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
1997 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
1998 * regformats/i386/amd64-linux.dat: Remove.
1999 * regformats/i386/amd64-mpx-linux.dat: Remove.
2000 * regformats/i386/amd64.dat: Remove.
2001 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
2002 * regformats/i386/i386-avx-linux.dat: Remove.
2003 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
2004 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
2005 * regformats/i386/i386-linux.dat: Remove.
2006 * regformats/i386/i386-mmx-linux.dat: Remove.
2007 * regformats/i386/i386-mpx-linux.dat: Remove.
2008 * regformats/i386/i386.dat: Remove.
2009 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
2010 * regformats/i386/x32-avx-linux.dat: Remove.
2011 * regformats/i386/x32-linux.dat: Remove.
2012
2013 2019-07-04 Alan Hayward <alan.hayward@arm.com>
2014
2015 * aarch64-tdep.c: Remove xml self tests.
2016 * amd64-linux-tdep.c: Likewise.
2017 * amd64-tdep.c: Likewise.
2018 * i386-linux-tdep.c: Likewise.
2019 * i386-tdep.c: Likewise.
2020
2021 2019-07-03 Pedro Alves <palves@redhat.com>
2022
2023 PR cli/24732
2024 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
2025 (pipe_cmd_option_defs): New.
2026 (make_pipe_cmd_options_def_group): New.
2027 (pipe_command): Use gdb::option::process_options.
2028 (pipe_command_completer): New function.
2029 (_initialize_cli_cmds): Install completer for "pipe" command.
2030
2031 2019-07-03 Pedro Alves <palves@redhat.com>
2032
2033 * cli/cli-option.c (union option_value) <string>: New field.
2034 (struct option_def_and_value): Add ctor, move ctor, dtor and
2035 use DISABLE_COPY_AND_ASSIGN.
2036 (option_def_and_value::clear_value): New.
2037 (parse_option, save_option_value_in_ctx, get_val_type_str)
2038 (add_setshow_cmds_for_options): Handle var_string.
2039 * cli-option.h (union option_def::var_address) <string>: New
2040 field.
2041 (struct string_option_def): New.
2042 * maint-test-options.c (struct test_options_opts): Add default
2043 ctor and use DISABLE_COPY_AND_ASSIGN.
2044 <string_opt>: New field.
2045 (test_options_opts::~test_options_opts): New.
2046 (test_options_opts::dump): Also dump "-string".
2047 (test_options_option_defs): Install "string.
2048
2049 2019-07-03 Pedro Alves <palves@redhat.com>
2050
2051 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
2052 option_value with a null enumeration.
2053 (complete_options): Save the option values in the context.
2054 (save_option_value_in_ctx): New, factored out from ...
2055 (process_options): ... here.
2056 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
2057 of the function.
2058 * maint-test-options.c (test_options_opts::dump): New, factored
2059 out from ...
2060 (maintenance_test_options_command_mode): ... here.
2061 (maintenance_test_options_command_completion_result): Delete.
2062 (maintenance_test_options_command_completion_text): Update
2063 comment.
2064 (maintenance_show_test_options_completion_result): Change
2065 prototype. Just print
2066 maintenance_test_options_command_completion_text.
2067 (save_completion_result): New.
2068 (maintenance_test_options_completer_mode): Pass options context to
2069 complete_options, and then save a dump.
2070 (_initialize_maint_test_options): Use add_cmd to install "maint
2071 show test-options-completion-result".
2072
2073 2019-07-03 Pedro Alves <palves@redhat.com>
2074
2075 * NEWS (New commands): Mention "with" and "maint with".
2076 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
2077 (with_command, with_command_completer): New.
2078 (pipe_command): Adjust to new repeat_previous
2079 interface.
2080 (_initialize_cli_cmds): Install the "with" command and its "w"
2081 alias.
2082 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
2083 declarations.
2084 * cli/cli-setshow.c (parse_cli_var_uinteger)
2085 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
2086 argument strings for all var_types.
2087 (get_setshow_command_value_string): New, factored out from ...
2088 (do_show_command): ... this.
2089 * cli/cli-setshow.h: Include <string>.
2090 (get_setshow_command_value_string): Declare.
2091 * command.h (repeat_previous): Now returns const char *. Adjust
2092 comment.
2093 * maint.c: Include "cli/cli-cmds.h".
2094 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
2095 (_initialize_maint_cmds): Register the "maintenance with" command.
2096 * top.c (repeat_previous): Move bits from pipe_command here:
2097 Return the saved command line, if any; error out if there's no
2098 command to relaunch.
2099
2100 2019-07-03 Pedro Alves <palves@redhat.com>
2101
2102 * NEWS (New commands): Mention "maint set/show test-settings"
2103 instead of "maint test-settings".
2104 * maint-test-settings.c (maintenance_test_settings_list): Delete.
2105 (maintenance_test_settings_set_list): Rename to ...
2106 (maintenance_set_test_settings_list): ... this.
2107 (maintenance_test_settings_show_list): Rename to ...
2108 (maintenance_show_test_settings_list): ... this.
2109 (maintenance_test_settings_cmd): Delete.
2110 (maintenance_test_settings_set_cmd): ...
2111 (maintenance_set_test_settings_cmd): ... this.
2112 (maintenance_test_settings_show_cmd): ...
2113 (maintenance_show_test_settings_cmd): ... this.
2114 (maintenance_test_settings_show_value_cmd):
2115 (maintenance_show_test_settings_value_cmd): ... this.
2116 (_initialize_maint_test_settings): No longer install the "maint
2117 test-settings" prefix command. Rename "maint test-settings set"
2118 to "maint set test-settings", and "maint test-settings show" to
2119 "maint show test-settings". Adjust all subcommands.
2120
2121 2019-07-03 Pedro Alves <palves@redhat.com>
2122
2123 * maint-test-settings.c: Fix file's intro comment. Replace all
2124 references to "test-options" with references to "test-settings",
2125 in comments.
2126
2127 2019-07-03 Pedro Alves <palves@redhat.com>
2128
2129 * maint-test-settings.c (maintenance_test_settings_xxx)
2130 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
2131 New.
2132 (maintenance_test_settings_enums): Use them.
2133 (maintenance_test_settings_enum): Default to
2134 maintenance_test_settings_xxx.
2135 (_initialize_maint_test_settings): Initialize
2136 MAINTENANCE_TEST_SETTINGS_FILENAME.
2137
2138 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2139
2140 * breakpoint.h (remove_breakpoints_inf): Change return type to
2141 void, move function documentation here.
2142 * breakpoint.c (remove_breakpoints_inf): Change return type to
2143 void, move function documentation to header.
2144
2145 2019-07-02 Pedro Alves <palves@redhat.com>
2146
2147 * NEWS (Completion improvements): Mention "info threads".
2148 * thread.c (struct info_threads_opts, info_threads_option_defs)
2149 (make_info_threads_options_def_group): New.
2150 (info_threads_command): Use gdb::option::process_options.
2151 (info_threads_command_completer): New.
2152 (_initialize_thread): Use gdb::option::build_help to build the
2153 help text for "info threads".
2154
2155 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2156
2157 * defs.h (generic_load): Move from here...
2158 * symfile.h (generic_load): ... to here. Rename name parameter
2159 to args.
2160 * symfile.c (generic_load): Add comment.
2161
2162 2019-07-01 Tom Tromey <tromey@adacore.com>
2163
2164 * dwarf2read.c
2165 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
2166 declaration of without_params. Fix formatting.
2167
2168 2019-07-01 Tom Tromey <tromey@adacore.com>
2169
2170 * ada-exp.y (find_primitive_type): Update.
2171 * ada-lang.h (ada_lookup_symbol): Update.
2172 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
2173 parameter.
2174 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
2175
2176 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
2177
2178 PR breakpoints/24541
2179 * gdbarch.c: Regenerate.
2180 * gdbarch.h: Regenerate.
2181 * gdbarch.sh: Add 'stap_adjust_register'.
2182 * i386-tdep.c: Include '<unordered_set>'.
2183 (i386_stap_adjust_register): New function.
2184 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
2185 * stap-probe.c (stap_parse_register_operand): Call
2186 'gdbarch_stap_adjust_register'.
2187
2188 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
2189
2190 PR python/24742
2191 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
2192 * python/python.c (do_start_initialization): Use 'xmalloc'
2193 instead of 'PyMem_Malloc'.
2194
2195 2019-06-28 Tom Tromey <tromey@adacore.com>
2196
2197 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
2198 for Ada.
2199
2200 2019-06-27 Tom Tromey <tromey@adacore.com>
2201
2202 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
2203 objfile_key.
2204 (arm_find_mapping_symbol, arm_record_special_symbol)
2205 (_initialize_arm_tdep): Update.
2206 (arm_objfile_data_free): Remove.
2207
2208 2019-06-27 Tom Tromey <tromey@adacore.com>
2209
2210 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
2211 to cp_print_static_field.
2212
2213 2019-06-26 Tom Tromey <tromey@adacore.com>
2214
2215 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
2216 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
2217 declare.
2218
2219 2019-06-26 Alan Hayward <alan.hayward@arm.com>
2220
2221 * features/aarch64-core.c (create_feature_aarch64_core):
2222 Regenerate.
2223 * features/aarch64-core.xml: Add cpsr flags.
2224
2225 2019-06-26 Alan Hayward <alan.hayward@arm.com>
2226
2227 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
2228 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
2229
2230 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
2231
2232 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
2233 field.
2234 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
2235 use.
2236 (arm_record_special_symbol): Don't insert new symbol in sorted
2237 position, push it at the end.
2238
2239 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
2240
2241 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
2242 (arm_mapping_symbol_s): Remove.
2243 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
2244 (arm_mapping_symbol_vec): New typedef.
2245 (struct arm_per_objfile): Add constructor.
2246 <section_maps>: Change type to
2247 std::unique_ptr<arm_mapping_symbol_vec[]>.
2248 (arm_compare_mapping_symbols): Remove.
2249 (arm_find_mapping_symbol): Adjust to section_maps type change.
2250 (arm_objfile_data_free): Call delete on arm_per_objfile.
2251 (arm_record_special_symbol): Adjust to section_maps type change.
2252 Allocate arm_per_objfile with new.
2253
2254 2019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2255
2256 * cli/cli-cmds.c (alias_command): Compare the alias prefix
2257 with the command prefix.
2258
2259 2019-06-25 Tom Tromey <tom@tromey.com>
2260
2261 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
2262 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
2263
2264 2019-06-25 Tom Tromey <tom@tromey.com>
2265
2266 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
2267 type.
2268 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
2269 protected.
2270
2271 2019-06-25 Tom Tromey <tom@tromey.com>
2272
2273 * tui/tui-winsource.c
2274 (tui_source_window_base::set_is_exec_point_at): Add check against
2275 LOA_ADDRESS.
2276
2277 2019-06-25 Tom Tromey <tom@tromey.com>
2278
2279 * tui/tui-source.c (tui_set_source_content): Don't check before
2280 xfree.
2281 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
2282
2283 2019-06-25 Tom Tromey <tom@tromey.com>
2284
2285 * tui/tui-winsource.h (tui_update_source_window_as_is)
2286 (tui_alloc_source_buffer, tui_line_is_displayed)
2287 (tui_addr_is_displayed): Change type of win_info.
2288 * tui/tui-winsource.c (tui_update_source_window_as_is)
2289 (tui_clear_source_content, tui_show_source_line)
2290 (tui_show_source_content, tui_source_window_base::refill)
2291 (tui_source_window_base::set_is_exec_point_at)
2292 (tui_source_window_base::set_is_exec_point_at)
2293 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
2294 (tui_alloc_source_buffer, tui_line_is_displayed)
2295 (tui_addr_is_displayed): Change type of win_info. Update.
2296 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
2297 (tui_source_window_base::do_make_visible_with_new_height):
2298 Update.
2299 * tui/tui-source.c (tui_set_source_content)
2300 (tui_set_source_content_nil)
2301 (tui_source_window::do_scroll_vertical): Update.
2302 * tui/tui-layout.c (show_layout): Update.
2303 * tui/tui-disasm.c (tui_set_disassem_content)
2304 (tui_disasm_window::do_scroll_vertical): Update.
2305 * tui/tui-data.h (tui_win_content): Remove.
2306 (struct tui_gen_win_info) <content, content_size>: Remove.
2307 (struct tui_source_element): Add initializers and destructor.
2308 (union tui_which_element, struct tui_win_element): Remove.
2309 (struct tui_source_window_base) <content>: New field.
2310 (struct tui_data_window): Remove destructor.
2311 (tui_alloc_content, tui_free_win_content)
2312 (tui_free_all_source_wins_content): Don't declare.
2313 * tui/tui-data.c (tui_initialize_static_data): Update.
2314 (init_content_element, tui_alloc_content): Remove.
2315 (~tui_gen_win_info): Update.
2316 (~tui_data_window, tui_free_all_source_wins_content)
2317 (tui_free_win_content, free_content, free_content_elements):
2318 Remove.
2319
2320 2019-06-25 Tom Tromey <tom@tromey.com>
2321
2322 * tui/tui-winsource.h (tui_clear_source_content)
2323 (tui_erase_source_content, tui_show_source_content): Change type
2324 of win_info.
2325 * tui/tui-winsource.c (tui_clear_source_content)
2326 (tui_erase_source_content, tui_show_source_content): Change type
2327 of win_info.
2328 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
2329 * tui/tui-source.h (tui_set_source_content_nil): Change type of
2330 win_info.
2331 * tui/tui-source.c (tui_set_source_content_nil): Change type of
2332 win_info.
2333 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
2334
2335 2019-06-25 Tom Tromey <tom@tromey.com>
2336
2337 * tui/tui-winsource.c (tui_clear_source_content)
2338 (tui_source_window_base::set_is_exec_point_at): Update.
2339 * tui/tui-source.c (tui_set_source_content_nil): Update.
2340 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
2341 a bool.
2342 * tui/tui-data.c (init_content_element): Update.
2343
2344 2019-06-25 Tom Tromey <tom@tromey.com>
2345
2346 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
2347 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
2348 * tui/tui-layout.c (init_and_make_win): Update.
2349 * tui/tui.h (enum tui_win_type): Update.
2350 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
2351 tui_win_is_auxillary.
2352 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
2353 tui_win_is_auxillary.
2354
2355 2019-06-25 Tom Tromey <tom@tromey.com>
2356
2357 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
2358 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
2359 (tui_delete_data_content_windows, tui_display_all_data)
2360 (tui_data_window::do_scroll_vertical, tui_display_data_from):
2361 Update.
2362 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
2363 * tui/tui-regs.c (tui_last_regs_line_no)
2364 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
2365 (tui_show_registers): Update.
2366 (tui_show_register_group): Return void. Update.
2367 (tui_display_registers_from, tui_display_reg_element_at_line)
2368 (tui_display_registers_from_line, tui_check_register_values):
2369 Update.
2370 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
2371 member.
2372 (struct tui_data_window) <regs_content>: Now a std::vector.
2373 <regs_content_count>: Remove.
2374 (tui_add_content_elements, tui_free_data_content): Don't declare.
2375 * tui/tui-data.c (tui_data_window::clear_detail): Update.
2376 (init_content_element): Remove DATA_WIN case. Add assert.
2377 (tui_add_content_elements): Remove.
2378 (tui_data_window): Update.
2379 (tui_free_data_content): Remove.
2380 (free_content_elements): Remove DATA_WIN case.
2381
2382 2019-06-25 Tom Tromey <tom@tromey.com>
2383
2384 * tui/tui-data.c (tui_data_item_window): Update.
2385 * tui/tui-windata.h (tui_check_data_values): Don't declare.
2386 * tui/tui-windata.c (tui_display_all_data)
2387 (tui_display_data_from_line): Update.
2388 (tui_check_data_values): Remove.
2389 * tui/tui-regs.c (tui_show_register_group)
2390 (tui_display_reg_element_at_line): Update.
2391 * tui/tui-hooks.c (tui_register_changed)
2392 (tui_refresh_frame_and_register_information): Call
2393 tui_check_register_values.
2394 * tui/tui-data.h (struct tui_data_window) <data_content,
2395 data_content_count, data_type>: Remove.
2396 (enum tui_data_type): Remove.
2397
2398 * tui/tui-data.c (tui_data_window::clear_detail)
2399 (~tui_data_window): Update.
2400
2401 2019-06-25 Tom Tromey <tom@tromey.com>
2402
2403 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
2404 declare.
2405 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
2406 Rename from tui_first_data_item_displayed. Update.
2407 (tui_data_window::refresh_all)
2408 (tui_data_window::do_scroll_vertical): Update.
2409 * tui/tui-data.h (struct tui_data_window)
2410 <first_data_item_displayed>: Declare new method.
2411
2412 2019-06-25 Tom Tromey <tom@tromey.com>
2413
2414 * tui/tui-data.h (tui_init_generic_part): Don't declare.
2415 * tui/tui-data.c (tui_init_generic_part): Remove, moving
2416 contents...
2417 (tui_initialize_static_data): ...here.
2418
2419 2019-06-25 Tom Tromey <tom@tromey.com>
2420
2421 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
2422 (tui_display_registers_from, tui_check_register_values): Update.
2423 (tui_display_register): Remove win_info parameter; update.
2424 (tui_get_register): Change type of parameters.
2425 * tui/tui-data.h (struct tui_data_element): Remove.
2426 (union tui_which_element) <data>: Remove.
2427 <data_window>: Change type.
2428 (struct tui_data_item_window): New.
2429 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
2430 case. Add assert.
2431 (~tui_data_item_window): New destructor.
2432 (free_content_elements): Remove DATA_ITEM_WIN case.
2433
2434 2019-06-25 Tom Tromey <tom@tromey.com>
2435
2436 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
2437 Remove.
2438
2439 2019-06-25 Tom Tromey <tom@tromey.com>
2440
2441 * tui/tui-data.h (struct tui_command_element): Remove.
2442 (union tui_which_element) <command>: Remove.
2443 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
2444 assert.
2445 (free_content_elements): Remove CMD_WIN case.
2446
2447 2019-06-25 Tom Tromey <tom@tromey.com>
2448
2449 * tui/tui-layout.c (tui_set_layout): Update.
2450 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
2451 * tui/tui-data.c (layout_def): Update.
2452
2453 2019-06-25 Tom Tromey <tom@tromey.com>
2454
2455 * tui/tui-wingeneral.c (tui_refresh_all): Update.
2456 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
2457 (tui_source_window_base::set_new_height): Update.
2458 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
2459 Update.
2460 (tui_set_locator_fullname, tui_set_locator_info)
2461 (tui_show_frame_info): Update.
2462 * tui/tui-source.c (tui_set_source_content)
2463 (tui_source_is_displayed): Update.
2464 * tui/tui-layout.c (show_source_disasm_command, show_data)
2465 (show_source_or_disasm_and_command): Update.
2466 * tui/tui-disasm.c (tui_set_disassem_content)
2467 (tui_get_begin_asm_address): Update.
2468 * tui/tui-data.h (struct tui_locator_element): Remove.
2469 (union tui_which_element) <locator>: Remove.
2470 (struct tui_locator_window): New.
2471 (tui_locator_win_info_ptr): Change return type.
2472 * tui/tui-data.c (_locator): Change type.
2473 (tui_locator_win_info_ptr): Change return type.
2474 (init_content_element): Remove LOCATOR_WIN case. Add assert.
2475 (tui_alloc_content): Add assert.
2476
2477 2019-06-25 Tom Tromey <tom@tromey.com>
2478
2479 * tui/tui-winsource.c
2480 (tui_exec_info_window::maybe_allocate_content): New method.
2481 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
2482 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
2483 (make_source_or_disasm_window): Add cast.
2484 * tui/tui-data.h (union tui_which_element) <simple_string>:
2485 Remove.
2486 (struct tui_source_info): New.
2487 (struct tui_source_window_base) <execution_info>: Change type.
2488 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
2489 case, and add assert.
2490 (tui_alloc_content): Add assert.
2491
2492 2019-06-25 Tom Tromey <tom@tromey.com>
2493
2494 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
2495 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
2496 * tui/tui-data.c (tui_alloc_win_info): Remove.
2497
2498 2019-06-25 Tom Tromey <tom@tromey.com>
2499
2500 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
2501 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
2502 can_highlight.
2503
2504 2019-06-25 Tom Tromey <tom@tromey.com>
2505
2506 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
2507 make_visible_with_new_height method.
2508 (tui_win_info::make_visible_with_new_height): New method.
2509 (tui_source_window_base::do_make_visible_with_new_height)
2510 (tui_data_window::do_make_visible_with_new_height)
2511 (tui_cmd_window::do_make_visible_with_new_height): New methods.
2512 (make_visible_with_new_height): Remove.
2513 (tui_resize_all, tui_adjust_win_heights): Use
2514 make_visible_with_new_height method.
2515 * tui/tui-data.h (struct tui_win_info)
2516 <do_make_visible_with_new_height, make_visible_with_new_height>:
2517 New methods.
2518 (struct tui_source_window_base, struct tui_data_window)
2519 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
2520 methods.
2521
2522 2019-06-25 Tom Tromey <tom@tromey.com>
2523
2524 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
2525 method.
2526 (update_tab_width): Call update_tab_width method.
2527 * tui/tui-data.h (struct tui_win_info)
2528 (struct tui_source_window_base) <update_tab_width>: New methods.
2529
2530 2019-06-25 Tom Tromey <tom@tromey.com>
2531
2532 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
2533 parameter.
2534 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
2535 parameter.
2536 (tui_gen_win_info::make_visible): Update.
2537 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
2538 parameter.
2539 * tui/tui-data.h (enum tui_box): New enum.
2540 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
2541
2542 2019-06-25 Tom Tromey <tom@tromey.com>
2543
2544 * tui/tui-layout.c (make_source_or_disasm_window): Always use
2545 init_and_make_win for EXEC_INFO_WIN.
2546 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
2547 longer inline.
2548 (struct tui_win_info) <~tui_win_info>: Inline.
2549 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
2550 Don't declare.
2551 * tui/tui-data.c (source_win, disasm_win): Remove globals.
2552 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
2553 Remove.
2554 (tui_initialize_static_data): Update.
2555 (~tui_gen_win_info): Handle more cleanup here.
2556 (~tui_source_window_base): Delete "execution_info".
2557 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
2558
2559 2019-06-25 Tom Tromey <tom@tromey.com>
2560
2561 * tui/tui-layout.c (make_command_window): Don't set
2562 can_highlight.
2563 (show_source_disasm_command): Call the reset method.
2564 (show_data): Don't set can_highlight. Call the reset method.
2565 (tui_gen_win_info::reset): Rename from init_gen_win_info
2566 (init_and_make_win): Simplify. Return tui_gen_win_info.
2567 (show_source_or_disasm_and_command): Call the reset method.
2568 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
2569 (struct tui_cmd_window): Set can_highlight.
2570
2571 2019-06-25 Tom Tromey <tom@tromey.com>
2572
2573 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
2574 from make_visible.
2575 (tui_make_visible, tui_make_invisible): Rewrite.
2576 (tui_win_info::make_visible): Remove.
2577 (tui_source_window_base::make_visible): Update.
2578 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
2579 method. Moved from...
2580 (struct tui_win_info) <make_visible>: ...here.
2581
2582 2019-06-25 Tom Tromey <tom@tromey.com>
2583
2584 * tui/tui-winsource.c
2585 (tui_source_window_base::do_scroll_horizontal): Remove direction
2586 parameter.
2587 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
2588 direction parameter.
2589 * tui/tui-win.c (tui_win_info::forward_scroll)
2590 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
2591 (tui_win_info::right_scroll): Update.
2592 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
2593 direction parameter.
2594 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
2595 direction parameter.
2596 * tui/tui-data.h (enum tui_scroll_direction): Remove.
2597 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
2598 Remove direction parameter.
2599 (struct tui_source_window_base, struct tui_source_window)
2600 (struct tui_disasm_window, struct tui_data_window)
2601 (struct tui_cmd_window): Update.
2602
2603 2019-06-25 Tom Tromey <tom@tromey.com>
2604
2605 * tui/tui-winsource.h (tui_set_exec_info_content)
2606 (tui_show_exec_info_content, tui_erase_exec_info_content)
2607 (tui_clear_exec_info_content, tui_update_exec_info): Change
2608 argument to tui_source_window_base.
2609 * tui/tui-winsource.c (tui_set_exec_info_content)
2610 (tui_show_exec_info_content, tui_erase_exec_info_content)
2611 (tui_clear_exec_info_content, tui_update_exec_info): Change
2612 argument to tui_source_window_base.
2613
2614 2019-06-25 Tom Tromey <tom@tromey.com>
2615
2616 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
2617 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
2618
2619 2019-06-25 Tom Tromey <tom@tromey.com>
2620
2621 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
2622 check.
2623
2624 2019-06-25 Tom Tromey <tom@tromey.com>
2625
2626 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
2627 type to void.
2628 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
2629 type to void.
2630 * tui/tui-source.c (tui_set_source_content): Update.
2631 * tui/tui-disasm.c (tui_set_disassem_content): Update.
2632
2633 2019-06-25 Tom Tromey <tom@tromey.com>
2634
2635 * tui/tui-win.c (window_name_completer, tui_set_focus)
2636 (tui_all_windows_info): Use name method.
2637 * tui/tui-data.h (struct tui_gen_win_info)
2638 (struct tui_source_window, struct tui_disasm_window)
2639 (struct tui_data_window, struct tui_cmd_window) <name>: New
2640 method.
2641 (tui_win_name): Don't declare.
2642 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
2643 (tui_win_name): Remove.
2644
2645 2019-06-25 Tom Tromey <tom@tromey.com>
2646
2647 * tui/tui-winsource.h (tui_update_source_window)
2648 (tui_update_source_window_as_is): Change parameter type.
2649 * tui/tui-winsource.c (tui_update_source_window): Change win_info
2650 to be a tui_source_window_base.
2651 (tui_update_source_window_as_is): Likewise.
2652 * tui/tui-win.c (make_visible_with_new_height): Update.
2653
2654 2019-06-25 Tom Tromey <tom@tromey.com>
2655
2656 * tui/tui-winsource.c (tui_erase_source_content)
2657 (tui_show_source_content, tui_show_exec_info_content)
2658 (tui_erase_exec_info_content): Use refresh_window method.
2659 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
2660 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
2661 from tui_refresh_win.
2662 (tui_data_window::refresh_window): New method.
2663 (tui_win_info::refresh, tui_source_window_base::refresh)
2664 (tui_refresh_all): Use refresh_window method.
2665 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
2666 method.
2667 * tui/tui-regs.c (tui_display_register): Call refresh_window
2668 method.
2669 * tui/tui-layout.c (show_source_disasm_command)
2670 (show_source_or_disasm_and_command): Call refresh_window method.
2671 * tui/tui-data.h (struct tui_gen_win_info)
2672 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
2673 New method.
2674
2675 2019-06-25 Tom Tromey <tom@tromey.com>
2676
2677 * tui/tui.c (tui_rl_other_window, tui_enable)
2678 (tui_is_window_visible, tui_get_command_dimension): Update.
2679 * tui/tui-winsource.c (tui_update_source_window_as_is)
2680 (tui_clear_source_content, tui_erase_source_content)
2681 (tui_show_source_line, tui_source_window_base::refill)
2682 (tui_source_window_base::do_scroll_horizontal)
2683 (tui_source_window_base::set_is_exec_point_at)
2684 (tui_update_breakpoint_info, tui_set_exec_info_content)
2685 (tui_alloc_source_buffer, tui_line_is_displayed)
2686 (tui_addr_is_displayed): Update.
2687 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
2688 (tui_check_and_display_highlight_if_needed)
2689 (tui_win_info::make_visible, tui_win_info::refresh)
2690 (tui_refresh_all): Update.
2691 * tui/tui-windata.c (tui_first_data_item_displayed)
2692 (tui_delete_data_content_windows, tui_erase_data_content)
2693 (tui_display_all_data, tui_data_window::refresh_all)
2694 (tui_check_data_values): Update.
2695 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
2696 (tui_set_win_focus_to, tui_win_info::forward_scroll)
2697 (tui_win_info::backward_scroll, tui_refresh_all_win)
2698 (tui_resize_all, tui_set_focus, tui_all_windows_info)
2699 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
2700 (tui_source_window_base::set_new_height)
2701 (tui_data_window::set_new_height)
2702 (make_invisible_and_set_new_height)
2703 (make_visible_with_new_height, new_height_ok)
2704 (parse_scrolling_args): Update.
2705 * tui/tui-stack.c (tui_show_frame_info): Update.
2706 * tui/tui-source.c (tui_set_source_content)
2707 (tui_set_source_content_nil, tui_source_is_displayed)
2708 (tui_source_window::do_scroll_vertical): Update.
2709 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
2710 (tui_display_registers_from, tui_display_reg_element_at_line)
2711 (tui_check_register_values, tui_reg_command): Update.
2712 * tui/tui-layout.c (tui_default_win_height)
2713 (show_source_disasm_command, show_data, init_and_make_win)
2714 (show_source_or_disasm_and_command): Update.
2715 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
2716 (tui_redisplay_readline, tui_mld_flush)
2717 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
2718 (tui_getc): Update.
2719 * tui/tui-disasm.c (tui_set_disassem_content)
2720 (tui_disasm_window::do_scroll_vertical): Update.
2721 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
2722 Now virtual.
2723 (struct tui_win_info): Derive from tui_gen_win_info.
2724 <~tui_win_info>: Mark as override.
2725 <generic>: Remove member.
2726 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
2727 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
2728 (~tui_data_window, ~tui_win_info)
2729 (tui_free_all_source_wins_content): Update.
2730 * tui/tui-command.c (tui_refresh_cmd_win): Update.
2731
2732 2019-06-25 Tom Tromey <tom@tromey.com>
2733
2734 * tui/tui-layout.c (init_and_make_win): Use new.
2735 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
2736 destructor, initializers.
2737 (tui_alloc_generic_win_info): Don't declare.
2738 * tui/tui-data.c (_locator): Add argument to constructor.
2739 (source_win, disasm_win): New globals.
2740 (exec_info): Remove.
2741 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
2742 Update.
2743 (tui_alloc_generic_win_info): Remove.
2744 (init_content_element): Use new.
2745 (tui_win_info::tui_win_info): Update.
2746 (free_content_elements) <case DATA_WIN>: Use delete.
2747
2748 2019-06-25 Tom Tromey <tom@tromey.com>
2749
2750 * tui/tui-wingeneral.c (tui_refresh_win): Update.
2751 * tui/tui-windata.c (tui_first_data_item_displayed)
2752 (tui_delete_data_content_windows): Update.
2753 * tui/tui-win.c (tui_data_window::set_new_height): Update.
2754 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
2755 (tui_display_registers_from, tui_check_register_values): Update.
2756 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
2757 pointer.
2758 * tui/tui-data.c (init_content_element): Update. Allocate the new
2759 window.
2760 (tui_free_data_content): Update.
2761 (free_content_elements) <case DATA_WIN>: Free the window.
2762
2763 2019-06-25 Tom Tromey <tom@tromey.com>
2764
2765 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
2766 Update.
2767 * tui/tui-layout.c (make_command_window)
2768 (show_source_disasm_command, show_data, init_and_make_win)
2769 (show_source_or_disasm_and_command): Update.
2770 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
2771 method.
2772 <can_highight, is_highlighted>: Now bool.
2773 (tui_set_win_highlight): Don't declare.
2774 * tui/tui-data.c (tui_set_win_highlight): Remove.
2775
2776 2019-06-25 Tom Tromey <tom@tromey.com>
2777
2778 * tui/tui-wingeneral.c (make_visible): Remove check of window
2779 type.
2780
2781 2019-06-25 Tom Tromey <tom@tromey.com>
2782
2783 * tui/tui-win.c (tui_win_info::max_height)
2784 (tui_cmd_window::max_height): New methods.
2785 (new_height_ok): Call max_height.
2786 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
2787 <max_height>: New method.
2788
2789 2019-06-25 Tom Tromey <tom@tromey.com>
2790
2791 * tui/tui-win.c (tui_source_window_base::set_new_height)
2792 (tui_data_window::set_new_height): New methods.
2793 (make_invisible_and_set_new_height): Call set_new_height method.
2794 * tui/tui-data.h (struct tui_win_info)
2795 (struct tui_source_window_base, struct tui_data_window)
2796 <set_new_height>: New method.
2797
2798 2019-06-25 Tom Tromey <tom@tromey.com>
2799
2800 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
2801 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
2802 tui_refresh_data_win.
2803 * tui/tui-win.c (tui_source_window_base::refresh_all): New
2804 method.
2805 (tui_refresh_all_win): Call the refresh_all method.
2806 (tui_set_focus): Likewise.
2807 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
2808 (struct tui_source_window_base, struct tui_data_window) <refresh>:
2809 Likewise.
2810
2811 2019-06-25 Tom Tromey <tom@tromey.com>
2812
2813 * tui/tui-winsource.h (tui_refill_source_window)
2814 (tui_set_is_exec_point_at): Don't declare.
2815 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
2816 (tui_source_window_base::refill): Rename from
2817 tui_refill_source_window.
2818 (tui_source_window_base::do_scroll_horizontal): Update.
2819 (tui_source_window_base::set_is_exec_point_at): Rename from
2820 tui_set_is_exec_point_at.
2821 (tui_update_all_breakpoint_info): Update.
2822 * tui/tui-stack.c (tui_show_frame_info): Update.
2823 * tui/tui-layout.c (show_data): Add cast.
2824 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
2825 * tui/tui-data.h (struct tui_source_window_base) <refill,
2826 set_is_exec_point_at>: New methods.
2827 (tui_source_windows, tui_add_to_source_windows): Update types.
2828 (tui_add_to_source_windows): Remove redundant declaration.
2829 * tui/tui-data.c (source_windows): Store tui_source_window_base.
2830 (tui_source_windows): Change return type.
2831 (tui_clear_source_windows_detail): Update.
2832 (tui_add_to_source_windows): Change type of parameter.
2833 (tui_free_all_source_wins_content): Update.
2834
2835 2019-06-25 Tom Tromey <tom@tromey.com>
2836
2837 * tui/tui-wingeneral.c (tui_win_info::refresh)
2838 (tui_source_window_base::refresh): New methods.
2839 (tui_refresh_all): Call the refresh method.
2840 * tui/tui-data.h (struct tui_win_info)
2841 (struct tui_source_window_base) <refresh>: New method.
2842
2843 2019-06-25 Tom Tromey <tom@tromey.com>
2844
2845 * tui/tui.h (tui_is_window_visible): Return bool.
2846 * tui/tui.c (tui_is_window_visible): Return bool.
2847 * tui/tui-wingeneral.c (tui_make_window, make_visible)
2848 (tui_make_visible, tui_make_invisible)
2849 (tui_win_info::make_visible)
2850 (tui_source_window_base::make_visible, make_all_visible)
2851 (tui_make_all_visible, tui_make_all_invisible): Update.
2852 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
2853 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
2854 bool.
2855 (struct tui_win_info, struct tui_source_window_base)
2856 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
2857 * tui/tui-data.c (tui_init_generic_part): Update.
2858
2859 2019-06-25 Tom Tromey <tom@tromey.com>
2860
2861 * tui/tui-wingeneral.c (tui_win_info::make_visible)
2862 (tui_source_window_base::make_visible): New methods.
2863 (make_all_visible): Make method call.
2864 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
2865 (struct tui_source_window_base, struct tui_cmd_window): Override
2866 make_visible.
2867 (tui_win_is_source_type): Don't declare.
2868 * tui/tui-data.c (tui_win_is_source_type): Remove.
2869
2870 2019-06-25 Tom Tromey <tom@tromey.com>
2871
2872 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
2873 NULL check.
2874
2875 2019-06-25 Tom Tromey <tom@tromey.com>
2876
2877 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
2878 Inline constructor. Add initializers for members.
2879 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
2880 constructors; now inline in class.
2881
2882 2019-06-25 Tom Tromey <tom@tromey.com>
2883
2884 * tui/tui-regs.c (tui_show_registers): Update.
2885 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
2886 bool.
2887 * tui/tui-data.c (tui_data_window::clear_detail)
2888 (tui_data_window): Update.
2889
2890 2019-06-25 Tom Tromey <tom@tromey.com>
2891
2892 * tui/tui-windata.c (tui_display_all_data)
2893 (tui_display_data_from_line, tui_display_data_from)
2894 (tui_check_data_values, tui_data_window::do_scroll_vertical):
2895 Update.
2896 * tui/tui-regs.c (tui_last_regs_line_no)
2897 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
2898 (tui_show_registers, tui_show_register_group)
2899 (tui_display_registers_from, tui_display_reg_element_at_line)
2900 (tui_display_registers_from_line, tui_check_register_values)
2901 (tui_reg_next, tui_reg_prev): Update.
2902 * tui/tui-layout.c (tui_set_layout, show_data): Update.
2903 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
2904 tui_data_window.
2905 (struct tui_win_info) <detail>: Remove. Add new fields from
2906 tui_data_info.
2907 (TUI_DATA_WIN): Add cast.
2908 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
2909 (~tui_data_window): Simplify.
2910
2911 2019-06-25 Tom Tromey <tom@tromey.com>
2912
2913 * tui/tui-layout.c (show_source_disasm_command)
2914 (show_source_or_disasm_and_command): Update.
2915 * tui/tui-io.c (update_cmdwin_start_line)
2916 (tui_redisplay_readline): Update.
2917 * tui/tui-data.h (struct tui_command_info): Remove.
2918 (struct tui_win_info) <detail>: Remove command_info member.
2919 (struct tui_data_window) <start_line>: New member, from
2920 tui_command_info.
2921 (TUI_CMD_WIN): Add casts.
2922
2923 2019-06-25 Tom Tromey <tom@tromey.com>
2924
2925 * tui/tui-winsource.c (tui_update_source_window)
2926 (tui_refill_source_window)
2927 (tui_source_window_base::do_scroll_horizontal)
2928 (tui_update_breakpoint_info, tui_set_exec_info_content)
2929 (tui_show_exec_info_content, tui_erase_exec_info_content)
2930 (tui_clear_exec_info_content): Update.
2931 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
2932 Update.
2933 * tui/tui-win.c (make_invisible_and_set_new_height)
2934 (make_visible_with_new_height): Update.
2935 * tui/tui-source.c (tui_set_source_content)
2936 (tui_show_symtab_source): Update.
2937 * tui/tui-layout.c (extract_display_start_addr)
2938 (show_source_disasm_command, show_data)
2939 (make_source_or_disasm_window)
2940 (show_source_or_disasm_and_command): Update.
2941 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
2942 (tui_disasm_window::do_scroll_vertical): Remove shadowing
2943 "gdbarch".
2944 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
2945 to tui_source_window_base.
2946 (struct tui_win_info) <detail>: Remove source_info member.
2947 (struct tui_source_window_base) <has_locator>: Inline.
2948 Move contents from tui_source_info; rename has_locator member to
2949 m_has_locator.
2950 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
2951 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
2952 header file.
2953 (tui_source_window_base::clear_detail, ~tui_source_window_base):
2954 Simplify.
2955 (tui_free_all_source_wins_content): Cast to
2956 tui_source_window_base.
2957
2958 2019-06-25 Tom Tromey <tom@tromey.com>
2959
2960 * tui/tui-win.c (make_invisible_and_set_new_height)
2961 (make_visible_with_new_height): Call has_locator method.
2962 * tui/tui-layout.c (show_source_disasm_command, show_data)
2963 (show_source_or_disasm_and_command): Update for bool change.
2964 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
2965 (tui_win_info) <has_locator>: New method.
2966 (struct tui_source_window_base) <has_locator>: New method.
2967 (tui_win_has_locator): Don't declare.
2968 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
2969 from tui_win_has_locator.
2970 (tui_source_window_base): Use false, not FALSE.
2971
2972 2019-06-25 Tom Tromey <tom@tromey.com>
2973
2974 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
2975 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
2976 clear_detail method directly.
2977 (tui_clear_win_detail): Remove.
2978
2979 2019-06-25 Tom Tromey <tom@tromey.com>
2980
2981 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
2982 "this", not TUI_DISASM_WIN.
2983
2984 2019-06-25 Tom Tromey <tom@tromey.com>
2985
2986 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
2987 declare.
2988 * tui/tui-winsource.c
2989 (tui_source_window_base::do_scroll_horizontal): Rename from
2990 tui_horizontal_source_scroll.
2991 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
2992 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
2993 from tui_vertical_data_scroll.
2994 * tui/tui-win.h (tui_scroll): Don't declare.
2995 * tui/tui-win.c (tui_win_info::forward_scroll)
2996 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
2997 (tui_win_info::right_scroll): Rename and update.
2998 (tui_scroll_forward_command, tui_scroll_backward_command)
2999 (tui_scroll_left_command, tui_scroll_right_command): Update.
3000 (tui_scroll): Remove.
3001 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
3002 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
3003 from tui_vertical_source_scroll.
3004 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
3005 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
3006 from tui_vertical_disassem_scroll.
3007 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
3008 do_scroll_horizontal>: New methods.
3009 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
3010 Likewise.
3011 (struct tui_source_window_base): Add do_scroll_horizontal.
3012 (struct tui_source_window, struct tui_disasm_window): Add
3013 do_scroll_vertical.
3014 (struct tui_data_window, struct tui_cmd_window): Add
3015 do_scroll_horizontal and do_scroll_vertical.
3016 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
3017
3018 2019-06-25 Tom Tromey <tom@tromey.com>
3019
3020 * tui/tui-data.h (struct tui_source_window_base): New struct.
3021 (struct tui_source_window): Derive from tui_source_window_base.
3022 (struct tui_disasm_window): New struct.
3023 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
3024 from tui_source_window::clear_detail.
3025 (tui_source_window_base): Rename from tui_source_window.
3026 (~tui_source_window_base): Rename from ~tui_source_window.
3027 (tui_alloc_win_info): Create a tui_disasm_window.
3028
3029 2019-06-25 Tom Tromey <tom@tromey.com>
3030
3031 * tui/tui-data.h (struct tui_source_window)
3032 (struct tui_data_window): Declare destructors.
3033 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
3034 destructors.
3035 (tui_win_info): Simplify.
3036
3037 2019-06-25 Tom Tromey <tom@tromey.com>
3038
3039 * tui/tui-winsource.c (tui_display_main)
3040 (tui_update_source_windows_with_addr)
3041 (tui_update_all_breakpoint_info): Update.
3042 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
3043 (new_height_ok, parse_scrolling_args): Update.
3044 * tui/tui-stack.c (tui_show_frame_info): Update.
3045 * tui/tui-data.h (struct tui_list): Remove.
3046 (tui_source_windows): Return a reference to a std::vector.
3047 * tui/tui-data.c (source_windows): Now a std::vector.
3048 (tui_source_windows): Change return type.
3049 (tui_clear_source_windows): Rewrite.
3050 (tui_clear_source_windows_detail, tui_add_to_source_windows)
3051 (tui_free_all_source_wins_content): Rewrite.
3052
3053 2019-06-25 Tom Tromey <tom@tromey.com>
3054
3055 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
3056 (struct tui_data_window, struct tui_cmd_window): Declare
3057 clear_detail method.
3058 * tui/tui-data.c (tui_source_window::clear_detail)
3059 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
3060 methods.
3061 (tui_clear_win_detail): Simplify.
3062
3063 2019-06-25 Tom Tromey <tom@tromey.com>
3064
3065 * tui/tui-layout.c (make_source_window, make_disasm_window)
3066 (make_source_or_disasm_window): Remove win_info_ptr parameter.
3067 Return the new window.
3068 (show_source_disasm_command, show_data)
3069 (show_source_or_disasm_and_command): Update.
3070
3071 2019-06-25 Tom Tromey <tom@tromey.com>
3072
3073 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
3074 parameter. Return the new window.
3075 (show_source_disasm_command): Update and remove NULL check.
3076 (show_source_or_disasm_and_command): Update.
3077
3078 2019-06-25 Tom Tromey <tom@tromey.com>
3079
3080 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
3081
3082 2019-06-25 Tom Tromey <tom@tromey.com>
3083
3084 * tui/tui-data.h (struct tui_win_info): Make constructor
3085 protected. Make destructor virtual. Add initializers.
3086 (tui_source_window, tui_data_window, tui_cmd_window): New
3087 classes.
3088 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
3089 constructor. Add "type" parameter.
3090 (tui_source_window, tui_data_window, tui_cmd_window): New
3091 constructors.
3092 (tui_alloc_win_info): Instantiate the appropriate subclass.
3093
3094 2019-06-25 Tom Tromey <tom@tromey.com>
3095
3096 * tui/tui-win.c (tui_resize_all): Use delete.
3097 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
3098 destructor.
3099 (tui_free_window): Don't declare.
3100 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
3101 Update.
3102
3103 2019-06-25 Tom Tromey <tom@tromey.com>
3104
3105 * tui/tui-data.h (struct tui_win_info): Add constructor.
3106 * tui/tui-data.c (tui_alloc_win_info): Use new.
3107 (tui_free_window): Use delete.
3108
3109 2019-06-22 Tom Tromey <tom@tromey.com>
3110
3111 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
3112 declare.
3113 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
3114
3115 2019-06-22 Tom Tromey <tom@tromey.com>
3116
3117 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
3118 declare.
3119 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
3120
3121 2019-06-22 Tom de Vries <tdevries@suse.de>
3122
3123 * dwarf2read.c (create_addrmap_from_aranges)
3124 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
3125 instead of '%zu'.
3126
3127 2019-06-21 Simon Marchi <simon.marchi@efficios.com>
3128
3129 * dwarf2read.h (dwarf2_section_info_def): Remove.
3130 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
3131 * dwarf2read.c (struct dwo_sections) <types>: Change type to
3132 std::vector<dwarf2_section_info>.
3133 (struct dwo_file) <~dwo_file>: Remove.
3134 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
3135 types field.
3136 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
3137 (dwarf2_read_debug_names): Likewise.
3138 (create_debug_types_hash_table): Change parameter type to
3139 array_view, adjust code accordingly.
3140 (dwarf2_locate_dwo_sections): Adjust to std::vector.
3141 (partial_die_info::fixup): Likewise.
3142 (determine_prefix): Likewise.
3143 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
3144
3145 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
3146
3147 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
3148 gdb_bfd_ref_ptr.
3149 <~dwo_file>: Remove call to gdb_bfd_unref.
3150 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
3151 gdb_bfd_ref_ptr::get.
3152
3153 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
3154
3155 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
3156 type to htab_up.
3157 * dwarf2read.c (struct dwo_file): Initialize fields.
3158 <~dwo_file>: New.
3159 (free_dwo_file): Remove, move content to ~dwo_file.
3160 (struct dwo_file_deleter): Remove.
3161 (dwo_file_up>: Remove custom deleter.
3162 (free_dwo_files): Remove.
3163 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
3164 dwo_files.
3165 (process_skeletonless_type_units): Call unique_ptr::get.
3166 (allocate_dwo_file_hash_table): Add deleter to created hash
3167 table. Change return type to htab_up.
3168 (lookup_dwo_file_slot): Don't memset dwo_file, call
3169 unique_ptr::get.
3170 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
3171 (create_dwo_unit_in_dwp_v2): Likewise.
3172 (open_and_init_dwo_file): Likewise.
3173 (free_dwo_file_from_slot): Remove.
3174
3175 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
3176
3177 * dwarf2read.h (struct dwarf2_section_info) <readin,
3178 is_virtual>: Change type to bool.
3179 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
3180 true instead of 1.
3181
3182 2019-06-19 Tom Tromey <tom@tromey.com>
3183
3184 * tui/tui-data.h (tui_init_content_element): Don't declare.
3185
3186 2019-06-19 Tom Tromey <tom@tromey.com>
3187
3188 * tui/tui-data.h (tui_init_win_info): Don't declare.
3189
3190 2019-06-19 Tom de Vries <tdevries@suse.de>
3191
3192 * dwarf2read.h (abstract_to_concrete): Change type to
3193 std::unordered_map<sect_offset, std::vector<sect_offset>,
3194 gdb::hash_enum<sect_offset>>.
3195
3196 2019-06-19 Tom Tromey <tromey@adacore.com>
3197
3198 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
3199 EVAL_AVOID_SIDE_EFFECTS specially.
3200
3201 2019-06-19 Tom Tromey <tromey@adacore.com>
3202
3203 * source-cache.c (highlighter): New global.
3204 (source_cache::get_source_lines): Create a highlighter on demand.
3205
3206 2019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
3207
3208 * defs.h (deprecated_interactive_hook): Delete declaration.
3209 * interps.c (clear_interpreter_hooks): Remove use of
3210 deprecated_interactive_hook.
3211 * top.c (deprecated_interactive_hook): Delete definition.
3212 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
3213
3214 2019-06-18 Tom de Vries <tdevries@suse.de>
3215
3216 PR gdb/24515
3217 * dwarf2read.h (abstract_to_concrete): Change type from
3218 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
3219 std::unordered_map<sect_offset, std::vector<sect_offset>>.
3220 * dwarf2read.c (read_variable): Update.
3221 (dwarf2_fetch_die_loc_sect_off): Update.
3222
3223 2019-06-17 Tom de Vries <tdevries@suse.de>
3224
3225 PR gdb/24617
3226 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
3227 accessing parent[parent_len - 1].
3228
3229 2019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
3230
3231 PR gdb/24364
3232 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
3233 call dtrace_process_dof with NULL dof.
3234
3235 2019-06-16 Tom de Vries <tdevries@suse.de>
3236
3237 PR gdb/24445
3238 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
3239
3240 2019-06-16 Tom Tromey <tom@tromey.com>
3241
3242 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
3243 (make_all_visible): Use address of member.
3244
3245 2019-06-16 Tom Tromey <tom@tromey.com>
3246
3247 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
3248 (tui_free_window, free_content, free_content_elements): Remove
3249 unnecessary cast.
3250 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
3251 cast.
3252 * tui/tui-regs.c (tui_show_register_group)
3253 (tui_display_registers_from, tui_display_reg_element_at_line):
3254 Remove unnecessary cast.
3255
3256 2019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
3257
3258 * linux-nat.c (normal_mask): Delete.
3259 (_initialize_linux_nat): Don't initialise normal_mask.
3260
3261 2019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
3262
3263 PR gdb/24445
3264 * dwarf-index-write.h (write_psymtabs_to_index): Add
3265 dwz_basename parameter.
3266 * dwarf-index-write.c (write_gdbindex): Move file writing to
3267 write_gdbindex_1. Change return type void.
3268 (assert_file_size): Move up, remove filename parameter.
3269 (write_gdbindex_1): New function.
3270 (write_debug_names): Change return type to void, call
3271 assert_file_size.
3272 (struct index_wip_file): New struct.
3273 (write_psymtabs_to_index): Add dwz_basename parameter. Move
3274 file logic to index_wip_file. Write index for dwz file if
3275 needed.
3276 (save_gdb_index_command): Pass basename of dwz file, if present.
3277 * dwarf-index-cache.c (index_cache::store): Obtain and pass
3278 build-id of dwz file, if present.
3279 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
3280 (dwarf2_get_dwz_file): Likewise.
3281 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
3282 (dwarf2_get_dwz_file): Likewise.
3283
3284 2019-06-16 Tom Tromey <tom@tromey.com>
3285
3286 * coffread.c (process_coff_symbol): Use xstrdup.
3287 * value.c (create_internalvar): Use xstrdup.
3288
3289 2019-06-16 Tom Tromey <tom@tromey.com>
3290
3291 * valops.c (value_cast, value_slice): Remove unnecessary cast.
3292 * breakpoint.c (stopin_command, stopat_command)
3293 (until_break_command, decode_location_default): Remove unnecessary
3294 cast.
3295 * utils.c (subset_compare): Remove unnecessary cast.
3296 * ada-lang.c (ada_update_initial_language): Remove unnecessary
3297 cast.
3298 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
3299 cast.
3300 * infcmd.c (path_command): Remove unnecessary cast.
3301 * coffread.c (decode_type): Remove unnecessary cast.
3302 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
3303 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
3304 * tui/tui-stack.c (tui_show_locator_content)
3305 (tui_show_frame_info): Remove unnecessary cast.
3306 * tui/tui-win.c (tui_scroll_forward_command)
3307 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
3308 (parse_scrolling_args): Remove unnecessary cast.
3309 * tui/tui-data.c (init_win_info, tui_del_window)
3310 (tui_free_window, tui_del_data_windows, tui_free_data_content)
3311 (free_content_elements): Remove unnecessary cast.
3312 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
3313 unnecessary cast.
3314 * tui/tui-source.c (tui_set_source_content)
3315 (tui_vertical_source_scroll): Remove unnecessary cast.
3316 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
3317 cast.
3318 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
3319 * tui/tui-regs.c (tui_display_registers_from)
3320 (tui_display_register): Remove unnecessary cast.
3321 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
3322 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
3323 (make_visible): Remove unnecessary cast.
3324 * tui/tui-winsource.c (tui_erase_source_content)
3325 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
3326 unnecessary cast.
3327 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
3328 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
3329 * stabsread.c (read_type, read_array_type, read_range_type):
3330 Remove unnecessary cast.
3331 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
3332 (parse_symbol, parse_type, upgrade_type, parse_external)
3333 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
3334 unnecessary cast.
3335 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
3336
3337 2019-06-16 Tom Tromey <tom@tromey.com>
3338
3339 * tui/tui-data.c (tui_alloc_generic_win_info)
3340 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
3341 checks.
3342
3343 2019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
3344 Andrew Burgess <andrew.burgess@embecosm.com>
3345
3346 * f-typeprint.c (f_print_type): Don't return early for not
3347 associated or not allocated types.
3348 (f_type_print_varspec_suffix): Add print_rank parameter and print
3349 ranks of array types in case they dangling.
3350 (f_type_print_base): Add print_rank parameter.
3351
3352 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
3353
3354 * NEWS: Mention new MI commands.
3355 * break-catch-throw.c (enum exception_event_kind): Move to
3356 breakpoint.h.
3357 (print_mention_exception_catchpoint): Output text as a single
3358 message.
3359 (catch_exception_command_1): Rename to...
3360 (catch_exception_event): ...this, make non-static, update header
3361 command, and change some parameter types.
3362 (catch_catch_command): Update for changes to
3363 catch_exception_command_1.
3364 (catch_throw_command): Likewise.
3365 (catch_rethrow_command): Likewise.
3366 * breakpoint.c (enum exception_event_kind): Delete.
3367 * breakpoint.h (enum exception_event_kind): Moved here from
3368 break-catch-throw.c.
3369 (catch_exception_event): Declare.
3370 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
3371 (mi_cmd_catch_throw): New function.
3372 (mi_cmd_catch_rethrow): New function.
3373 (mi_cmd_catch_catch): New function.
3374 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
3375 'catch-catch' entries.
3376 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
3377 (mi_cmd_catch_rethrow): Declare.
3378 (mi_cmd_catch_catch): Declare.
3379
3380 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
3381
3382 * annotate.c (annotate_source_line): Change return type to void,
3383 update implementation to match.
3384 * annotate.h (annotate_source_line): Change return type to void,
3385 update header comment.
3386 * stack.c (print_frame_info): Don't change what frame information
3387 is printed based on whether annotations are on or not.
3388
3389 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
3390
3391 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
3392 (annotate_source): Make static.
3393 (annotate_source_line): Moved from source.c and renamed from
3394 identify_source_line. Update the return type.
3395 * annotate.h (annotate_source): Delete declaration.
3396 (annotate_source_line): Declaration moved from source.h, and
3397 renamed from identify_source_line. Return type updated.
3398 * source.c (identify_source_line): Moved to annotate.c and renamed
3399 to annotate_source_line.
3400 (info_line_command): Remove check of annotation_level.
3401 * source.h (identify_source_line): Move declaration to annotate.h
3402 and rename to annotate_source_line.
3403 * stack.c: Add 'annotate.h' include.
3404 (print_frame_info): Remove check of annotation_level before
3405 calling annotate_source_line.
3406
3407 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
3408
3409 * source-cache.c (source_cache::get_plain_source_lines): Use
3410 open_source_file_with_line_charpos instead of just
3411 open_source_file, remove call to find_source_lines.
3412 (source_cache::get_source_lines): Likewise.
3413 * source.c (find_source_lines): Make static.
3414 (get_filename_and_charpos): Renamed into...
3415 (open_source_file_with_line_charpos): ..this along with changes to
3416 return a scoped_fd, and some other minor clean ups.
3417 (identify_source_line): Use open_source_file_with_line_charpos.
3418 (search_command_helper): Use open_source_file_with_line_charpos
3419 instead of just open_source_file, remove call to
3420 find_source_lines.
3421 * source.h (open_source_file_with_line_charpos): Declare new
3422 function.
3423 (find_source_lines): Delete declaration.
3424
3425 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
3426
3427 * source.c (get_filename_and_charpos): Remove fullname
3428 parameter.
3429 (identify_source_line): Update call to get_filename_and_charpos.
3430
3431 2019-06-14 Tom Tromey <tromey@adacore.com>
3432
3433 PR gdb/24502:
3434 * ui-style.h (skip_ansi_escape): Update comment.
3435 * ui-file.h (class no_terminal_escape_file): New class.
3436 * ui-file.c (no_terminal_escape_file::write)
3437 (no_terminal_escape_file::puts): New methods.
3438 * cli/cli-logging.c (handle_redirections): Use
3439 no_terminal_escape_file.
3440
3441 2019-06-14 Tom Tromey <tromey@adacore.com>
3442
3443 * NEWS: Move convenience variable news above Python news.
3444
3445 2019-06-14 Tom Tromey <tom@tromey.com>
3446
3447 * gnulib: Move directory to top-level.
3448 * configure.ac: Don't configure gnulib.
3449 * configure: Rebuild.
3450 * common/common-defs.h: Use new path to gnulib.
3451 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
3452 (GNULIB_H): Remove.
3453 (INCGNU): Look in new gnulib location.
3454 (HFILES_NO_SRCDIR): Remove gnulib files.
3455 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
3456 (generated_files): Remove GNULIB_H.
3457 ($(LIBGNU), all-lib): Remove targets.
3458 (distclean): Don't mention GNULIB_BUILDDIR.
3459 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
3460
3461 2019-06-14 Tom Tromey <tromey@adacore.com>
3462
3463 * symfile.c (add_symbol_file_command): Remove obsolete comment.
3464 Warn if symbol file does not provide any symbols.
3465
3466 2019-06-14 Tom Tromey <tromey@adacore.com>
3467
3468 * source.c (find_and_open_source): Respect basenames_may_differ.
3469
3470 2019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
3471
3472 * annotate.c (annotate_breakpoints_invalid): Make use of
3473 scoped_restore_terminal_state.
3474 (annotate_frames_invalid): Likewise.
3475
3476 2019-06-14 Tom Tromey <tromey@adacore.com>
3477
3478 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
3479 allow assignment to an internalvar.
3480
3481 2019-06-14 Tom Tromey <tromey@adacore.com>
3482
3483 * ada-lex.l: Allow "_" in attribute names.
3484
3485 2019-06-14 Tom Tromey <tromey@adacore.com>
3486
3487 PR gdb/24653:
3488 * regcache.c (registers_changed): Don't call alloca.
3489 * top.c (execute_command): Don't call alloca.
3490
3491 2019-06-13 Pedro Alves <palves@redhat.com>
3492
3493 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
3494 'expression'. When parsing an expression, error out if there's
3495 junk after "unlimited".
3496 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
3497 (do_set_command): Adjust calls to is_unlimited_literal.
3498
3499 2019-06-13 Pedro Alves <palves@redhat.com>
3500
3501 * compile/compile.c (make_compile_options_def_group): Add braces
3502 around array_view initializer.
3503 * thread.c (make_thread_apply_all_options_def_group)
3504 (make_thread_apply_all_options_def_group): Likewise.
3505
3506 2019-06-13 Pedro Alves <palves@redhat.com>
3507
3508 * NEWS (New commands): Mention "maint test-options
3509 require-delimiter", "maint test-options unknown-is-error", "maint
3510 test-options unknown-is-operand" and "maint show
3511 test-options-completion-result".
3512 (New command options, command completion): New section.
3513 (Completion improvements): New section.
3514 Mention that you can abbreviate "unlimited".
3515
3516 2019-06-13 Pedro Alves <palves@redhat.com>
3517
3518 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
3519 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
3520 * unittests/cli-utils-selftests.c (test_parse_flags)
3521 (test_parse_flags_qcs): Delete.
3522 (test_cli_utils): Don't call deleted functions.
3523
3524 2019-06-13 Pedro Alves <palves@redhat.com>
3525
3526 * thread.c: Include "cli/cli-option.h".
3527 (tp_array_compar_ascending): Global.
3528 (tp_array_compar): Delete function.
3529 (tp_array_compar_ascending, tp_array_compar_descending): New
3530 functions.
3531 (ascending_option_def, qcs_flag_option_def)
3532 (thr_qcs_flags_option_defs)
3533 (make_thread_apply_all_options_def_group)
3534 (make_thread_apply_options_def_group): New.
3535 (thread_apply_all_command): Use gdb::option::process_options.
3536 (thread_apply_command_completer)
3537 (thread_apply_all_command_completer): New.
3538 (thread_apply_command): Use gdb::option::process_options.
3539 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
3540 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
3541 to generate help text of "thread apply". Adjust "taas"'s help.
3542 * tid-parse.c (tid_range_parser::in_thread_range): New method.
3543 * tid-parse.h (tid_range_parser::in_thread_range): New method.
3544
3545 2019-06-13 Pedro Alves <palves@redhat.com>
3546
3547 * thread.c (thread_apply_command): Check for invalid TID with
3548 isdigit instead of !isalpha.
3549
3550 2019-06-13 Pedro Alves <palves@redhat.com>
3551
3552 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
3553 (validate_flags_qcs): New.
3554 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
3555 (validate_flags_qcs): Declare.
3556 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
3557 (make_frame_apply_options_def_group): New.
3558 (frame_apply_command_count): Process options with
3559 gdb::option::process_options.
3560 (frame_apply_completer): New.
3561 (frame_apply_level_completer, frame_apply_all_completer)
3562 (frame_apply_completer): New.
3563 (_initialize_stack): Update help of "frame apply", "frame apply
3564 level", "frame apply all" and "faas" to mention supported options
3565 and install command completers.
3566 * stack.h (frame_apply_all_completer): Declare.
3567 * thread.c: Include "stack.h".
3568 (tfaas_command): Add "--".
3569 (_initialize_thread): Update help "tfaas" to mention supported
3570 options and install command completer.
3571
3572 2019-06-13 Pedro Alves <palves@redhat.com>
3573
3574 * completer.c (complete_nested_command_line): New.
3575 (gdb_completion_word_break_characters_throw): Add assertion.
3576 * completer.h (complete_nested_command_line): Declare.
3577
3578 2019-06-13 Pedro Alves <palves@redhat.com>
3579
3580 * stack.c (parse_backtrace_qualifiers): New.
3581 (backtrace_command): Use it.
3582 (backtrace_command_completer): Complete on qualifiers.
3583
3584 2019-06-13 Pedro Alves <palves@redhat.com>
3585
3586 * frame.c: Include "cli/cli-option.h.
3587 (user_set_backtrace_options): New.
3588 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
3589 Delete.
3590 (get_prev_frame): Adjust.
3591 (boolean_option_def, uinteger_option_def)
3592 (set_backtrace_option_defs): New.
3593 (_initialize_frame): Adjust and use
3594 gdb::option::add_setshow_cmds_for_options to install "set
3595 backtrace past-main" and "set backtrace past-entry".
3596 * frame.h: Include "cli/cli-option.h".
3597 (struct frame_print_options): Forward declare.
3598 (print_frame_arguments_all, print_frame_arguments_scalars)
3599 (print_frame_arguments_none): Declare.
3600 (print_entry_values): Delete declaration.
3601 (struct frame_print_options, user_frame_print_options): New.
3602 (struct set_backtrace_options): New.
3603 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
3604 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
3605 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
3606 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
3607 (list_args_or_locals): Add frame_print_options parameter.
3608 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
3609 * python/py-framefilter.c (enumerate_args): Pass down
3610 USER_FRAME_PRINT_OPTIONS.
3611 * stack.c: Include "cli/cli-option.h".
3612 (print_frame_arguments_all, print_frame_arguments_scalars)
3613 (print_frame_arguments_none): Declare.
3614 (print_raw_frame_arguments, print_entry_values): Delete.
3615 (user_frame_print_options): New.
3616 (boolean_option_def, enum_option_def, frame_print_option_defs):
3617 New.
3618 (struct backtrace_cmd_options): New.
3619 (bt_flag_option_def): New.
3620 (backtrace_command_option_defs): New.
3621 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
3622 (print_frame_arg, read_frame_arg, print_frame_args)
3623 (print_frame_info, print_frame): Add frame_print_options parameter
3624 and use it.
3625 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
3626 (backtrace_command_1): Add frame_print_options and
3627 backtrace_cmd_options parameters and use them.
3628 (make_backtrace_options_def_group): New.
3629 (backtrace_command): Process command options with
3630 gdb::option::process_options.
3631 (backtrace_command_completer): New.
3632 (_initialize_stack): Extend "backtrace"'s help to mention
3633 supported options. Install completer for "backtrace".
3634 Install some settings commands with add_setshow_cmds_for_options.
3635
3636 2019-06-13 Pedro Alves <palves@redhat.com>
3637
3638 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
3639 and that "set/show print raw frame-arguments" are now deprecated.
3640
3641 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
3642 command.
3643 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
3644 * stack.c (_initialize_stack): Install "set/show print
3645 raw-frame-arguments", and deprecate "set/show print raw
3646 frame-arguments".
3647 * valprint.c (_initialize_valprint): Deprecate "set/show print
3648 raw".
3649
3650 2019-06-13 Pedro Alves <palves@redhat.com>
3651
3652 * compile/compile.c (struct compile_options): New.
3653 (compile_flag_option_def, compile_command_option_defs)
3654 (make_compile_options_def_group): New.
3655 (compile_file_command): Handle options with
3656 gdb::option::process_options.
3657 (compile_file_command_completer): New function.
3658 (compile_code_command): Handle options with
3659 gdb::option::process_options.
3660 (compile_code_command_completer): New function.
3661 (_initialize_compiler): Install completers for "compile code" and
3662 "compile file". Mention available options in "compile code" and
3663 "compile code"'s help.
3664 * completer.c (advance_to_completion_word): New, factored out from
3665 ...
3666 (advance_to_expression_complete_word_point): ... this.
3667 (advance_to_filename_complete_word_point): New.
3668 * completer.h (advance_to_filename_complete_word_point): New
3669 declaration.
3670
3671 2019-06-13 Pedro Alves <palves@redhat.com>
3672
3673 * compile/compile.c: Include "cli/cli-option.h".
3674 (compile_print_value): Scope data pointer is now a
3675 value_print_options pointer; adjust.
3676 (compile_print_command): Process options. Scope data pointer is
3677 now a value_print_options pointer; adjust.
3678 (_initialize_compile): Update "compile print"'s help to include
3679 supported options. Install a completer for "compile print".
3680 * cp-valprint.c (show_vtblprint, show_objectprint)
3681 (show_static_field_print): Delete.
3682 (_initialize_cp_valprint): Don't install "set print
3683 static-members", "set print vtbl", "set print object" here.
3684 * printcmd.c: Include "cli/cli-option.h" and
3685 "common/gdb_optional.h".
3686 (print_command_parse_format): Rework to fill in a
3687 value_print_options instead of a format_data.
3688 (print_value): Change parameter type from format_data pointer to
3689 value_print_options reference. Adjust.
3690 (print_command_1): Process options. Adjust to pass down a
3691 value_print_options.
3692 (print_command_completer): New.
3693 (_initialize_printcmd): Install print_command_completer as
3694 handle_brkchars completer for the "print" command. Update
3695 "print"'s help to include supported options.
3696 * valprint.c: Include "cli/cli-option.h".
3697 (show_vtblprint, show_objectprint, show_static_field_print): Moved
3698 here from cp-valprint.c.
3699 (boolean_option_def, uinteger_option_def)
3700 (value_print_option_defs, make_value_print_options_def_group):
3701 New. Use gdb::option::add_setshow_cmds_for_options to install
3702 "set print elements", "set print null-stop", "set print repeats",
3703 "set print pretty", "set print union", "set print array", "set
3704 print address", "set print symbol", "set print array-indexes".
3705 * valprint.h: Include <string> and "cli/cli-option.h".
3706 (make_value_print_options_def_group): Declare.
3707 (print_value): Change parameter type from format_data pointer to
3708 value_print_options reference.
3709 (print_command_completer): Declare.
3710
3711 2019-06-13 Pedro Alves <palves@redhat.com>
3712
3713 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
3714 (COMMON_SFILES): Add maint-test-settings.c.
3715 * cli/cli-decode.c (boolean_enums): New global, factored out from
3716 ...
3717 (add_setshow_boolean_cmd): ... here.
3718 * cli/cli-decode.h (boolean_enums): Declare.
3719 * cli/cli-option.c: New file.
3720 * cli/cli-option.h: New file.
3721 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
3722 factored out from ...
3723 (parse_cli_boolean_value(const char *)): ... this.
3724 (is_unlimited_literal): Change parameter type to pointer to
3725 pointer. Adjust and advance ARG pointer.
3726 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
3727 (parse_cli_var_enum): New, factored out from ...
3728 (do_set_command): ... this. Adjust.
3729 * cli/cli-setshow.h (parse_cli_boolean_value)
3730 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
3731 (parse_cli_var_enum): Declare.
3732 * cli/cli-utils.c: Include "cli/cli-option.h".
3733 (get_ulongest): New.
3734 * cli/cli-utils.h (get_ulongest): Declare.
3735 (check_for_argument): New overloads.
3736 * maint-test-options.c: New file.
3737
3738 2019-06-13 Pedro Alves <palves@redhat.com>
3739
3740 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
3741 parse a range if "-" is at the end of the string.
3742
3743 2019-06-13 Pedro Alves <palves@redhat.com>
3744
3745 * cli/cli-setshow.c (parse_auto_binary_operation)
3746 (parse_cli_boolean_value): Don't allow "o".
3747
3748 2019-06-13 Pedro Alves <palves@redhat.com>
3749
3750 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
3751 * NEWS: Mention maint test-settings KIND.
3752 * maint-test-settings.c: New file.
3753
3754 2019-06-13 Pedro Alves <palves@redhat.com>
3755
3756 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
3757 completer.
3758 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
3759 "set" completers.
3760
3761 2019-06-13 Pedro Alves <palves@redhat.com>
3762
3763 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
3764 after item.
3765
3766 2019-06-13 Pedro Alves <palves@redhat.com>
3767
3768 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
3769
3770 2019-06-13 Pedro Alves <palves@redhat.com>
3771
3772 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
3773 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
3774 call.
3775 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
3776 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
3777 calls.
3778 (check_for_argument): Skip spaces after argument.
3779
3780 2019-06-13 Pedro Alves <palves@redhat.com>
3781
3782 * thread.c (thread_apply_command): Adjust TID parsing.
3783 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
3784 detected before end of string.
3785 (tid_is_in_list): Error out if LIST is invalid.
3786
3787 2019-06-13 Pedro Alves <palves@redhat.com>
3788
3789 * completer.c (complete_line_internal_1): Rewind completion word
3790 point.
3791 (completion_tracker::advance_custom_word_point_by): Change
3792 parameter type to int.
3793 * completer.h (completion_tracker::advance_custom_word_point_by):
3794 Likewise.
3795
3796 2019-06-13 Pedro Alves <palves@redhat.com>
3797
3798 * completer.c (advance_to_completion_word): Handle delimiters.
3799
3800 2019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
3801
3802 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
3803
3804 2019-06-11 Tom Tromey <tom@tromey.com>
3805
3806 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
3807 (xmalloc_failed): Move to alloc.c.
3808 * alloc.c: New file.
3809 * Makefile.in (COMMON_SFILES): Add alloc.c.
3810
3811 2019-06-11 Tom Tromey <tom@tromey.com>
3812
3813 * nat/linux-waitpid.c: Don't include server.h.
3814 (linux_debug): Remove.
3815 (my_waitpid): Update.
3816
3817 2019-06-11 Tom Tromey <tromey@adacore.com>
3818
3819 * infcall.c (_initialize_infcall): Remove trailing newline from
3820 help.
3821 * user-regs.c (_initialize_user_regs): Remove trailing newline
3822 from help.
3823 * typeprint.c (_initialize_typeprint): Remove trailing newline
3824 from help.
3825 * reverse.c (_initialize_reverse): Remove trailing newlines from
3826 help.
3827 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
3828 from help.
3829 * language.c (add_set_language_command): Remove trailing newline
3830 from help.
3831 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
3832 help.
3833 * disasm.c (_initialize_disasm): Remove trailing newline from
3834 help.
3835 * top.c (init_main): Remove trailing newline from help.
3836 * interps.c (_initialize_interpreter): Remove trailing newline
3837 from help.
3838 * btrace.c (_initialize_btrace): Remove trailing newlines from
3839 help.
3840 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
3841 from help.
3842 * python/python.c (_initialize_python): Remove trailing newline
3843 from help.
3844 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
3845 help.
3846 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
3847 from help. Reformat some text.
3848 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
3849 from help.
3850 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
3851 newline from help.
3852
3853 2019-06-11 Tom Tromey <tromey@adacore.com>
3854
3855 * darwin-nat.c (darwin_decode_exception_message)
3856 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
3857
3858 2019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
3859
3860 * valops.c (value_slice): Check for not allocated or not
3861 associated values.
3862
3863 2019-06-10 Tom de Vries <tdevries@suse.de>
3864
3865 PR gdb/24618
3866 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
3867 sure an empty slot (defined by a 32-bit zero pair) is recognized as
3868 invalid.
3869
3870 2019-06-10 Tom de Vries <tdevries@suse.de>
3871
3872 PR gdb/24611
3873 * linespec.c (linespec_lexer_lex_string): Remove incorrect
3874 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
3875
3876 2019-06-10 Tom de Vries <tdevries@suse.de>
3877
3878 PR symtab/24545
3879 * symtab.c (struct demangled_name_entry): Add language field.
3880 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
3881 static minimal symbol". Set and use language field.
3882
3883 2019-06-10 Tom Tromey <tromey@adacore.com>
3884
3885 * ada-lang.c (_initialize_ada_language): Update help text.
3886
3887 2019-06-10 Tom Tromey <tromey@adacore.com>
3888
3889 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
3890 with a newline.
3891 * guile/guile.c (handle_boot_error): Don't end warning with a
3892 newline.
3893 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
3894 warning with a newline.
3895 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
3896 newline.
3897 (s12z_frame_cache): Likewise.
3898 * dwarf-index-cache.c (index_cache::store): Don't end warning with
3899 a newline.
3900 * solib-svr4.c (disable_probes_interface): Don't end warning with
3901 a newline.
3902 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
3903 newline.
3904 * python/python.c (do_finish_initialization): Don't end warning
3905 with a newline.
3906
3907 2019-06-10 Tom Tromey <tom@tromey.com>
3908
3909 * python/py-breakpoint.c (gdbpy_breakpoint_created)
3910 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
3911 gdbpy_enter.
3912
3913 2019-06-10 Tom Tromey <tromey@adacore.com>
3914
3915 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
3916 data.
3917 (elf_new_init): Don't call stabsread_new_init.
3918 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
3919 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
3920 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
3921
3922 2019-06-10 Tom de Vries <tdevries@suse.de>
3923
3924 PR symtab/16264
3925 PR symtab/24517
3926 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
3927
3928 2019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
3929
3930 * source.c (find_and_open_source): Also rewrite relative file
3931 names.
3932
3933 2019-04-26 Amos Bird <amosbird@gmail.com>
3934
3935 * annotate.c (annotate_thread_exited): Add "thread-exited"
3936 annotation.
3937
3938 2019-06-06 Tom Tromey <tromey@adacore.com>
3939
3940 * maint.h (class scoped_command_stats): Use
3941 DISABLE_COPY_AND_ASSIGN.
3942 <print_time>: New method.
3943 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
3944 print_time.
3945 (scoped_command_stats::print_time): New method.
3946
3947 2019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3948
3949 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
3950 instructions of lengths 6 or 8 bytes.
3951
3952 2019-06-04 Pedro Alves <palves@redhat.com>
3953
3954 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
3955
3956 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
3957 * breakpoint.c (condition_completer): Likewise.
3958 * cli/cli-dump.c (scan_expression): Likewise.
3959 * common/filestuff.c (mkdir_recursive): Likewise.
3960 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
3961 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
3962 (gdb_abspath): Likewise.
3963 * compile/compile-cplus-types.c
3964 (compile_cplus_instance::decl_name): Likewise.
3965 * completer.c (complete_explicit_location):
3966 (signal_completer, reg_or_group_completer_1): Likewise.
3967 * cp-support.c (cp_remove_params_if_any): Likewise.
3968 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
3969 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
3970 * infcmd.c (strip_bg_char): Likewise.
3971 * linespec.c (copy_token_string): Likewise.
3972 * mi/mi-main.c (output_cores): Likewise.
3973 * psymtab.c (psymtab_search_name):
3974 * symfile.c (test_set_ext_lang_command): Likewise.
3975 * target.c (target_fileio_read_stralloc): Likewise.
3976 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
3977 * value.c (complete_internalvar): Likewise.
3978
3979 2019-06-04 Christian Biesinger <cbiesinger@google.com>
3980
3981 Add objfile property to gdb.Type.
3982 * NEWS: Mention Python API addition.
3983 * python/py-type.c (typy_get_objfile): New method.
3984
3985 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3986
3987 * NEWS: Mention the new set|show style [title|highlight].
3988 Mention changes to "show style", "help" and "apropos".
3989
3990 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3991
3992 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
3993 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
3994 instead of print_help_for_command.
3995 (print_doc_of_command): New function.
3996 (help_list): Add 'apropos -v word' suggestion.
3997 (print_help_for_command): Style the command name using title style.
3998 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
3999 (_initialize_cli_cmds): Describe -v in apropos_command help.
4000
4001 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4002
4003 * cli/cli-style.h (cli_style_option): Add name in constructor,
4004 add m_name class member, add constructor with intensity,
4005 add name class function.
4006 (cli_style_option::add_setshow_commands): Remove name argument.
4007 (highlight_style, title_style): New styles.
4008 * cli/cli-style.c (do_show): New function that shows a style
4009 characteristic styling the style name with itself.
4010 (set_style_name): New function.
4011 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
4012 Update all callers according to the changes in cli/cli-style.h.
4013 * utils.h (fputs_highlighted): New function.
4014 * utils.c (fputs_highlighted): Likewise.
4015
4016 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4017
4018 * NEWS: Mention new pipe command and new convenience variables.
4019
4020 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4021
4022 * cli/cli-cmds.c (pipe_command): New function.
4023 (_initialize_cli_cmds): Call add_com for pipe_command.
4024 Define | as an alias for pipe.
4025 (exit_status_set_internal_vars): New function.
4026 (shell_escape): Call exit_status_set_internal_vars.
4027 cli/cli-decode.c (find_command_name_length): Recognize | as
4028 a single character command.
4029
4030 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4031
4032 * gdbcmd.h (execute_command_to_ui_file): New declaration.
4033 top.c (execute_command_to_ui_file): New function, mostly a copy
4034 of execute_command_to_string.
4035 (execute_command_to_string): Implement by calling
4036 execute_command_to_ui_file.
4037
4038 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4039
4040 * top.h (saved_command_line): Remove declaration.
4041 * top.c (previous_saved_command_line, previous_repeat_arguments):
4042 New variables.
4043 (saved_command_line): Make static, define together with other
4044 'repeat variables'.
4045 (dont_repeat): Clear repeat_arguments.
4046 (repeat_previous, get_saved_command_line, save_command_line):
4047 New functions.
4048 (gdb_init): Initialize saved_command_line
4049 and previous_saved_command_line.
4050 * main.c (captured_main_1): Remove saved_command_line initialization.
4051 * event-top.c (handle_line_of_input): Update to use
4052 the new 'repeat' related functions instead of direct access to
4053 saved_command_line.
4054 * command.h (repeat_previous, get_saved_command_line,
4055 save_command_line): New declarations.
4056 (dont_repeat): Add comment.
4057
4058 2019-05-30 Tom Tromey <tromey@adacore.com>
4059
4060 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
4061 Fix comment.
4062 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
4063
4064 2019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
4065
4066 PR cli/24587
4067 * completer.c (complete): Initialize variable word.
4068
4069 2019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
4070
4071 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
4072 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
4073 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
4074 'body' is NULL to the outter 'if', protecting the '!is_define'
4075 situation as well.
4076
4077 2019-05-29 Tom Tromey <tromey@adacore.com>
4078
4079 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
4080 (dwarf_unknown): New function.
4081 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
4082 (dwarf_type_encoding_name): Use dwarf_unknown.
4083
4084 2019-05-29 Tom Tromey <tromey@adacore.com>
4085
4086 PR c++/20020:
4087 * cp-valprint.c (cp_print_value_fields): Call
4088 cp_print_static_field inside "try".
4089
4090 2019-05-29 Tom Tromey <tromey@adacore.com>
4091
4092 * inflow.c (struct terminal_info): Add default operator=.
4093 * configure: Rebuild.
4094 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
4095 -Wdeprecated-copy-dtor, -Wredundant-move.
4096
4097 2019-05-29 Tom Tromey <tromey@adacore.com>
4098
4099 * NEWS: Add entry.
4100 * infcmd.c (print_return_value_1): Handle finish_print
4101 option.
4102 (show_print_finish): New function.
4103 (_initialize_infcmd): Add "set/show print finish" commands.
4104 * valprint.c (user_print_options): Initialize new member.
4105 * valprint.h (struct value_print_options) <finish_print>: New
4106 member.
4107
4108 2019-05-28 Tom Tromey <tromey@adacore.com>
4109
4110 * ada-lang.c (ada_remove_Xbn_suffix)
4111 (find_old_style_renaming_symbol)
4112 (parse_old_style_renaming): Remove.
4113 (ada_find_renaming_symbol): Don't call
4114 find_old_style_renaming_symbol.
4115 (ada_is_renaming_symbol): Rename from
4116 ada_find_renaming_symbol. Remove "block" parameter. Return
4117 bool. Now static.
4118 (ada_read_var_value): Update and simplify.
4119 * ada-exp.y (write_var_or_type): Remove old code.
4120
4121 2019-05-28 Alan Hayward <alan.hayward@arm.com>
4122
4123 * event-top.c: Remove include comment.
4124 * inflow.c (class scoped_ignore_sigttou): Move from here...
4125 * inflow.h (class scoped_ignore_sigttou): ...to here.
4126 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
4127 * top.c: Remove include comment.
4128
4129 2019-05-27 Tom Tromey <tom@tromey.com>
4130
4131 * NEWS: Fix typo.
4132
4133 2019-05-22 Tom Tromey <tromey@adacore.com>
4134
4135 * target.c (target_follow_exec): Constify parameter.
4136 * target-delegates.c: Rebuild.
4137 * remote.c (remote_target::follow_exec): Constify parameter.
4138 * infrun.c (follow_exec): Constify parameter.
4139 * target.h (struct target_ops) <follow_exec>: Constify parameter.
4140 (target_follow_exec): Likewise.
4141
4142 2019-05-22 Alan Hayward <alan.hayward@arm.com>
4143
4144 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
4145 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
4146
4147 2019-05-22 Alan Hayward <alan.hayward@arm.com>
4148
4149 * NEWS: Add debugredirect and testsuite sections.
4150
4151 2019-05-22 Simon Cook <simon.cook@embecosm.com>
4152
4153 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
4154 target descriptions using exclusively floating point register name
4155 aliases.
4156
4157 2019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
4158
4159 PR gdb/18644:
4160 * f-lang.c (build_fortran_types): Handle the case where
4161 gdbarch_floatformat_for_type returns a nullptr.
4162
4163 2019-05-21 Tom de Vries <tdevries@suse.de>
4164
4165 PR cli/24587
4166 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
4167
4168 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
4169
4170 PR gdb/18644:
4171 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
4172 16-byte floats.
4173 * i386-tdep.c (i386_floatformat_for_type): Use
4174 floatformats_ia64_quad for the 16-byte floating point component
4175 within a fortran 32-byte complex number.
4176
4177 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
4178
4179 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
4180 delete default constructor.
4181 (find_partial_die): Update to return const struct.
4182 (partial_die_parent_scope): Move variable declaration into scope
4183 of its use and change its type to auto.
4184 (guess_partial_die_structure_name): Likewise.
4185 (partial_die_info::fixup): Likewise.
4186
4187 2019-05-17 Tom Tromey <tromey@adacore.com>
4188
4189 * source.c (find_and_open_source): Remove cast.
4190
4191 2019-05-17 Tom Tromey <tromey@adacore.com>
4192
4193 * annotate.c (annotate_source): Make "filename" const.
4194 * annotate.h (annotate_source): Use const.
4195
4196 2019-05-17 Alan Hayward <alan.hayward@arm.com>
4197
4198 * disasm.c (set_disassembler_options): Send errors to stderr.
4199
4200 2019-05-17 Alan Hayward <alan.hayward@arm.com>
4201
4202 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
4203 (cli_interp_base::set_logging): Check debug_redirect.
4204 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
4205 * cli/cli-logging.c (debug_redirect): Add static variable.
4206 (pop_output_files): Add default param.
4207 (handle_redirections): Print debug setting.
4208 (show_logging_command): Likewise.
4209 (_initialize_cli_logging): Add debugredirect command.
4210 * interps.c (current_interp_set_logging): Add debug_redirect
4211 parameter.
4212 * interps.h (set_logging): Add debug_redirect parameter.
4213 (current_interp_set_logging): Likewise.
4214 * mi/mi-common.h: Likewise.
4215 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
4216
4217 2019-05-17 Alan Hayward <alan.hayward@arm.com>
4218 Tom Tromey <tromey@adacore.com>
4219
4220 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
4221 directly.
4222 * cli/cli-interp.h (make_logging_output): Remove declaration.
4223 * cli/cli-logging.c (make_logging_output): Remove function.
4224 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
4225 directly.
4226 * ui-file.c (tee_file::tee_file): Remove bools.
4227 (tee_file::~tee_file): Remove deletes.
4228 * ui-file.h (tee_file): Remove bools.
4229
4230 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
4231
4232 * mi/mi-cmds.h (mi_cmd_complete): New function.
4233 * mi/mi-main.c (mi_cmd_complete): Likewise.
4234 * mi/mi-cmds.c: Define new MI command -complete.
4235 * NEWS: Mention new -complete command.
4236
4237 2019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
4238
4239 * completer.h (complete): New function.
4240 * completer.c (complete): Likewise.
4241 * cli/cli-cmds.c: (complete_command): Update to use new complete()
4242 function defined in completer.h.
4243
4244 2019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
4245
4246 * MAINTAINERS (Write After Approval): Add myself.
4247
4248 2019-05-17 Tom de Vries <tdevries@suse.de>
4249
4250 PR gdb/24094
4251 * dwarf2read.c (struct cu_partial_die_info): New struct.
4252 (find_partial_die): Return cu_partial_die_info.
4253 (partial_die_parent_scope, guess_partial_die_structure_name)
4254 (partial_die_info::fixup): Handle new return type of find_partial_die.
4255
4256 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4257
4258 * stap-probe.c (stap_parse_register_operand): Make "regname" an
4259 "std::string", simplifying the algorithm.
4260
4261 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4262
4263 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
4264 (stap_static_probe_ops::get_probes): Likewise.
4265
4266 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4267
4268 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
4269 '-')" and "else if".
4270 (stap_parse_single_operand): Join checks for
4271 "gdbarch_stap_parse_special_token_p" and
4272 "gdbarch_stap_parse_special_token" in the same "if" statement.
4273 Invert check when verifying for operation on register
4274 displacement.
4275
4276 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4277
4278 * stap-probe.c (stap_get_opcode): Update comment.
4279 (stap_get_expected_argument_type): Likewise.
4280 (handle_stap_probe): Likewise.
4281
4282 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4283
4284 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
4285 return type to 'bool'. Adjust comment. Use 'bool' when
4286 appropriate.
4287 (i386_stap_parse_special_token_three_arg_disp): Likewise.
4288 * stap-probe.c (stap_parse_argument_1): Likewise.
4289 (stap_is_operator): Likewise.
4290 (stap_is_generic_prefix): Likewise.
4291 (stap_is_register_prefix): Likewise.
4292 (stap_is_register_indirection_prefix): Likewise.
4293 (stap_is_integer_prefix): Likewise.
4294 (stap_generic_check_suffix): Likewise.
4295 (stap_check_integer_suffix): Likewise.
4296 (stap_check_register_suffix): Likewise.
4297 (stap_check_register_indirection_suffix): Likewise.
4298 (stap_parse_register_operand): Likewise.
4299 (stap_parse_single_operand): Likewise.
4300 (stap_parse_argument_1): Likewise.
4301 (stap_probe::get_argument_count): Likewise.
4302 (stap_is_operator): Likewise.
4303
4304 2019-05-16 Tom Tromey <tromey@adacore.com>
4305
4306 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
4307 keyword to foreach.
4308
4309 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
4310
4311 * linux-thread-db.c (try_thread_db_load_1): Change return type
4312 to bool.
4313 (try_thread_db_load): Likewise.
4314 (try_thread_db_load_from_pdir_1): Likewise.
4315 (try_thread_db_load_from_pdir): Likewise.
4316 (try_thread_db_load_from_sdir): Likewise.
4317 (try_thread_db_load_from_dir): Likewise.
4318 (thread_db_load_search): Likewise.
4319 (has_libpthread): Likewise.
4320 (thread_db_load): Likewise.
4321
4322 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
4323
4324 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
4325 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
4326 NULL, and complain/return if that's the case.
4327
4328 2019-05-15 John Darrington <john@darrington.wattle.id.au>
4329
4330 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
4331 (advance, posn, abstract_read_memory): New functions.
4332 [struct mem_read_abstraction]: New struct.
4333 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
4334
4335 2019-05-14 Tom Tromey <tromey@adacore.com>
4336
4337 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
4338 value is not lval_memory.
4339
4340 2019-05-14 Tom Tromey <tromey@adacore.com>
4341
4342 * solib.c (info_sharedlibrary_command): Style the file name.
4343
4344 2019-05-14 Alan Hayward <alan.hayward@arm.com>
4345
4346 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
4347 (aarch64_vnv_type): Likewise.
4348 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
4349 * common/tdesc.c: Likewise.
4350 * common/tdesc.h (enum tdesc_type_kind): Likewise.
4351 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
4352 * features/aarch64-fpu.xml: Add ieee half view.
4353 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
4354 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
4355 * gdbtypes.h (struct builtin_type): Likewise.
4356 (struct objfile_type): Likewise.
4357
4358 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
4359
4360 * language.c (language_sniff_from_mangled_name): Fix "langauge"
4361 typo.
4362 * location.h (string_to_event_location): Likewise.
4363
4364 2019-05-11 Joel Brobecker <brobecker@adacore.com>
4365
4366 GDB 8.3 released.
4367
4368 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
4369
4370 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
4371 New variable declaration.
4372 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
4373 New variable.
4374 (print_one_breakpoint): Use ui_out::test_flags and new global
4375 variable to compute use_fixed_output.
4376 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
4377 Remove.
4378 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
4379 (mi_multi_location_breakpoint_output_fixed): Remove.
4380 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
4381 new variable.
4382 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
4383 fix_multi_location_breakpoint_output flag if version >= 3.
4384 * ui-out.h (enum ui_out_flag)
4385 <fix_multi_location_breakpoint_output>: New enumerator.
4386
4387 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
4388
4389 * contrib/cc-with-tweaks.sh: Validate dwz's work.
4390
4391 2019-05-10 Tom Tromey <tromey@adacore.com>
4392
4393 * ada-lang.c (catch_ada_completer): New function.
4394 (_initialize_ada_language): Use it.
4395
4396 2019-05-10 Tom Tromey <tromey@adacore.com>
4397
4398 * thread.c (print_thread_info): Make "requested_threads" const.
4399 * gdbthread.h (print_thread_info): Make "requested_threads"
4400 const.
4401 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
4402 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
4403
4404 2019-05-08 Tom Tromey <tom@tromey.com>
4405
4406 * gdbtypes.c (objfile_type_data): Change type.
4407 (objfile_type, _initialize_gdbtypes): Update.
4408
4409 2019-05-08 Tom Tromey <tom@tromey.com>
4410
4411 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
4412 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
4413 (_initialize_dwarf2_frame): Update.
4414
4415 2019-05-08 Tom Tromey <tom@tromey.com>
4416
4417 * objc-lang.c (objc_objfile_data): Change type.
4418 (find_methods): Update.
4419 (_initialize_objc_lang): Remove.
4420
4421 2019-05-08 Tom Tromey <tom@tromey.com>
4422
4423 * stabsread.c (rs6000_builtin_type_data): Change type.
4424 (rs6000_builtin_type, _initialize_stabsread): Update.
4425
4426 2019-05-08 Tom Tromey <tom@tromey.com>
4427
4428 * mips-tdep.c (mips_pdr_data): Remove.
4429 (_initialize_mips_tdep): Update.
4430
4431 2019-05-08 Tom Tromey <tom@tromey.com>
4432
4433 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
4434 (hppa_init_objfile_priv_data, read_unwind_info)
4435 (find_unwind_entry, _initialize_hppa_tdep): Update.
4436
4437 2019-05-08 Tom Tromey <tom@tromey.com>
4438
4439 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
4440 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
4441 on obstack.
4442 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
4443
4444 2019-05-08 Tom Tromey <tom@tromey.com>
4445
4446 * mdebugread.c (basic_type_data): Change type.
4447 (basic_type, _initialize_mdebugread): Update.
4448
4449 2019-05-08 Tom Tromey <tom@tromey.com>
4450
4451 * common/gdb_unique_ptr.h (struct noop_deleter): New.
4452
4453 2019-05-08 Tom Tromey <tom@tromey.com>
4454
4455 * nto-tdep.c (nto_inferior_data_reg): Change type.
4456 (nto_inferior_data): Update.
4457 (nto_inferior_data_cleanup, nto_new_inferior_data)
4458 (_initialize_nto_tdep): Remove.
4459 * nto-tdep.h (struct nto_inferior_data): Add initializers.
4460
4461 2019-05-08 Tom Tromey <tom@tromey.com>
4462
4463 * ada-lang.c (struct ada_inferior_data): Add initializers.
4464 (ada_inferior_data): Change type.
4465 (ada_inferior_data_cleanup): Remove.
4466 (get_ada_inferior_data, ada_inferior_exit)
4467 (struct ada_pspace_data): Add initializers, destructor.
4468 (ada_pspace_data_handle): Change type.
4469 (get_ada_pspace_data): Update.
4470 (ada_pspace_data_cleanup): Remove.
4471
4472 2019-05-08 Tom Tromey <tom@tromey.com>
4473
4474 * coffread.c (struct coff_symfile_info): Add initializers.
4475 (coff_objfile_data_key): Move lower. Change type.
4476 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
4477 Update.
4478 (coff_free_info): Remove.
4479
4480 2019-05-08 Tom Tromey <tom@tromey.com>
4481
4482 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
4483 (fbsd_pspace_data_handle): Move lower. Change type.
4484 (get_fbsd_pspace_data): Update.
4485 (fbsd_pspace_data_cleanup): Remove.
4486 (_initialize_fbsd_tdep): Update.
4487
4488 2019-05-08 Tom Tromey <tom@tromey.com>
4489
4490 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
4491 (get_ada_tasks_pspace_data): Update.
4492 (ada_tasks_pspace_data_cleanup): Remove.
4493 (_initialize_tasks): Update.
4494 (ada_tasks_inferior_data_handle): Change type.
4495 (get_ada_tasks_inferior_data): Update.
4496 (ada_tasks_inferior_data_cleanup): Remove.
4497 (struct ada_tasks_pspace_data): Add initializers.
4498
4499 2019-05-08 Tom Tromey <tom@tromey.com>
4500
4501 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
4502 * symfile-debug.c (debug_sym_get_probes): Change type.
4503 * stap-probe.c (handle_stap_probe):
4504 (stap_static_probe_ops::get_probes): Change type.
4505 * probe.h (class static_probe_ops) <get_probes>: Change type.
4506 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
4507 (parse_probes_in_pspace): Update.
4508 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
4509 Update.
4510 (any_static_probe_ops::get_probes): Change type.
4511 * elfread.c (elfread_data): New typedef.
4512 (probe_key): Change type.
4513 (elf_get_probes): Likewise. Update.
4514 (probe_key_free): Remove.
4515 (_initialize_elfread): Update.
4516 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
4517 Change type.
4518 (dtrace_process_dof_probe, dtrace_process_dof)
4519 (dtrace_static_probe_ops::get_probe): Change type.
4520
4521 2019-05-08 Tom Tromey <tom@tromey.com>
4522
4523 * xcoffread.c (struct xcoff_symfile_info): Rename from
4524 coff_symfile_info. Add initializers.
4525 (xcoff_objfile_data_key): Move lower. Change type.
4526 (XCOFF_DATA): Rewrite.
4527 (xcoff_free_info): Remove.
4528 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
4529 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
4530 (xcoff_initial_scan): Update.
4531
4532 2019-05-08 Tom Tromey <tom@tromey.com>
4533
4534 * solib-svr4.c (struct svr4_info): Add initializers and
4535 destructor.
4536 <probes_table>: Now an htab_up.
4537 (solib_svr4_pspace_data): Change type.
4538 (free_probes_table): Simplify.
4539 (~svr4_info): Rename from svr4_pspace_data_cleanup.
4540 (get_svr4_info, probes_table_htab_remove_objfile_probes)
4541 (probes_table_remove_objfile_probes, register_solib_event_probe)
4542 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
4543 (_initialize_svr4_solib): Update.
4544
4545 2019-05-08 Tom Tromey <tom@tromey.com>
4546
4547 * remote.c (remote_pspace_data): Change type.
4548 (remote_pspace_data_cleanup): Remove.
4549 (get_remote_exec_file, set_pspace_remote_exec_file)
4550 (_initialize_remote): Update.
4551
4552 2019-05-08 Tom Tromey <tom@tromey.com>
4553
4554 * breakpoint.c (breakpoint_objfile_key): Change type.
4555 (get_breakpoint_objfile_data): Update.
4556 (free_breakpoint_objfile_data): Remove.
4557 (_initialize_breakpoint): Update.
4558
4559 2019-05-08 Tom Tromey <tom@tromey.com>
4560
4561 * linux-tdep.c (struct linux_info): Add initializers.
4562 (linux_inferior_data): Move. Change type.
4563 (invalidate_linux_cache_inf): Update.
4564 (linux_inferior_data_cleanup): Remove.
4565 (get_linux_inferior_data, _initialize_linux_tdep): Update.
4566
4567 2019-05-08 Tom Tromey <tom@tromey.com>
4568
4569 * auxv.c (auxv_inferior_data): Move. Change type.
4570 (auxv_inferior_data_cleanup): Remove.
4571 (invalidate_auxv_cache_inf): Rewrite.
4572 (get_auxv_inferior_data, _initialize_auxv): Update.
4573
4574 2019-05-08 Tom Tromey <tom@tromey.com>
4575
4576 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
4577 (symfile_debug_objfile_data_key): Change type.
4578 (symfile_debug_installed, debug_qf_has_symbols)
4579 (debug_qf_find_last_source_symtab)
4580 (debug_qf_forget_cached_source_info)
4581 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
4582 (debug_qf_print_stats, debug_qf_dump)
4583 (debug_qf_expand_symtabs_for_function)
4584 (debug_qf_expand_all_symtabs)
4585 (debug_qf_expand_symtabs_with_fullname)
4586 (debug_qf_map_matching_symbols)
4587 (debug_qf_expand_symtabs_matching)
4588 (debug_qf_find_pc_sect_compunit_symtab)
4589 (debug_qf_map_symbol_filenames)
4590 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
4591 (debug_sym_new_init, debug_sym_init, debug_sym_read)
4592 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
4593 (debug_sym_read_linetable, debug_sym_relocate): Update.
4594 (symfile_debug_free_objfile): Remove.
4595 (install_symfile_debug_logging, _initialize_symfile_debug):
4596 Update.
4597
4598 2019-05-08 Tom Tromey <tom@tromey.com>
4599
4600 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
4601 allocate_on_obstack.
4602 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
4603 (get_dwarf2_per_objfile): Update.
4604 (set_dwarf2_per_objfile): Remove.
4605 (dwarf2_has_info, dwarf2_get_section_info): Update.
4606 (dwarf2_free_objfile): Remove.
4607 (_initialize_dwarf2_read): Update.
4608
4609 2019-05-08 Tom Tromey <tom@tromey.com>
4610
4611 * auto-load.c (struct auto_load_pspace_info): Add destructor and
4612 initializers.
4613 <unsupported_script_warning_printed,
4614 script_not_found_warning_printed>: Now bool.
4615 (auto_load_pspace_data): Change type.
4616 (~auto_load_pspace_info): Rename from
4617 auto_load_pspace_data_cleanup.
4618 (get_auto_load_pspace_data, init_loaded_scripts_info)
4619 (clear_section_scripts, maybe_print_unsupported_script_warning)
4620 (maybe_print_script_not_found_warning, _initialize_auto_load):
4621 Update.
4622
4623 2019-05-08 Tom Tromey <tom@tromey.com>
4624
4625 * objfiles.c (objfile_pspace_info): Add destructor and
4626 initializers.
4627 (objfiles_pspace_data): Change type.
4628 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
4629 (get_objfile_pspace_data): Update.
4630 (objfiles_bfd_data): Change type.
4631 (get_objfile_bfd_data): Update.
4632 (objfile_bfd_data_free, _initialize_objfiles): Remove.
4633
4634 2019-05-08 Tom Tromey <tom@tromey.com>
4635
4636 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
4637 Change type.
4638 (get_catch_syscall_inferior_data): Update.
4639 (catch_syscall_inferior_data_cleanup): Remove.
4640 (_initialize_break_catch_syscall): Update.
4641
4642 2019-05-08 Tom Tromey <tom@tromey.com>
4643
4644 * inflow.c (struct terminal_info): Add destructor and
4645 initializers.
4646 (inflow_inferior_data): Change type.
4647 (~terminal_info): Rename from inflow_inferior_data_cleanup.
4648 (get_inflow_inferior_data, inflow_inferior_exit)
4649 (swap_terminal_info, _initialize_inflow): Update.
4650
4651 2019-05-08 Tom Tromey <tom@tromey.com>
4652
4653 * target-dcache.c (target_dcache_cleanup): Remove.
4654 (target_dcache_aspace_key): Change type.
4655 (target_dcache_init_p, target_dcache_invalidate)
4656 (target_dcache_get, target_dcache_get_or_init)
4657 (_initialize_target_dcache): Update.
4658 * dcache.h (struct dcache_deleter): New.
4659
4660 2019-05-08 Tom Tromey <tom@tromey.com>
4661
4662 * symtab.c (struct symbol_cache): Add destructor and
4663 initializers.
4664 (symbol_cache_key): Move. Change type.
4665 (make_symbol_cache, free_symbol_cache): Remove.
4666 (get_symbol_cache): Update.
4667 (symbol_cache_cleanup): Remove.
4668 (ALL_PSPACES, symbol_cache_flush)
4669 (maintenance_print_symbol_cache)
4670 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
4671 Update.
4672
4673 2019-05-08 Tom Tromey <tom@tromey.com>
4674
4675 * symtab.c (struct main_info): Add destructor and initializers.
4676 (main_progspace_key): Move. Change type.
4677 (get_main_info): Update.
4678 (main_info_cleanup): Remove.
4679 (_initialize_symtab): Update.
4680
4681 2019-05-08 Tom Tromey <tom@tromey.com>
4682
4683 * registry.h (DECLARE_REGISTRY): Define the _key class.
4684
4685 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
4686
4687 * NEWS: Merge two 'New commands' sections.
4688
4689 2019-05-08 Joel Brobecker <brobecker@adacore.com>
4690
4691 * ada-valprint.c (ada_val_print_gnat_array): Remove language
4692 parameter and use Ada language definition instead.
4693 (ada_val_print_ptr): Remove unused language parameter.
4694 (ada_val_print_num): Remove language parameter and use Ada language
4695 definition instead.
4696 (ada_val_print_enum, ada_val_print_flt): Remove unused language
4697 parameter.
4698 (ada_val_print_struct_union, ada_val_print_ref): Remove language
4699 parameter and use Ada language definition instead.
4700 (ada_val_print_1): Update all ada_val_print_xxx calls.
4701 Remove language parameter.
4702 (ada_val_print): Update ada_val_print_1 call.
4703
4704 2019-05-08 Tom Tromey <tromey@adacore.com>
4705
4706 * remote.c (remote_hw_watchpoint_limit)
4707 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
4708 Now static.
4709
4710 2019-05-08 Tom Tromey <tromey@adacore.com>
4711
4712 * maint.c (_initialize_maint_cmds): Move initialization code to
4713 remote.c.
4714 (watchdog, show_watchdog): Move to remote.c.
4715 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
4716 "watchdog" static.
4717 (_initialize_remote): Move initialization code from maint.c.
4718 * defs.h (watchdog): Don't declare.
4719
4720 2019-05-08 Tom Tromey <tromey@adacore.com>
4721
4722 * tui/tui-interp.c: Include main.h.
4723 * interps.c: Include main.h.
4724 * main.h (interpreter_p): Declare.
4725 * defs.h (interpreter_p): Don't declare.
4726
4727 2019-05-08 Tom Tromey <tromey@adacore.com>
4728
4729 * dwarf2loc.c: Include dwarf2read.h.
4730 * defs.h (read_unsigned_leb128): Don't declare.
4731 * dwarf2read.h (read_unsigned_leb128): Declare.
4732
4733 2019-05-08 Tom Tromey <tromey@adacore.com>
4734
4735 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
4736 method.
4737
4738 2019-05-08 Tom Tromey <tromey@adacore.com>
4739
4740 * utils.c (fputs_maybe_filtered): Reset style after paging, even
4741 when no wrap column is set.
4742
4743 2019-05-08 Tom Tromey <tromey@adacore.com>
4744
4745 * c-lang.c (c_get_string): Handle non-C-style arrays.
4746
4747 2019-05-08 Tom Tromey <tromey@adacore.com>
4748
4749 * typeprint.c (print_offset_data::update): Print the bit offset,
4750 not the number of bits remaining.
4751
4752 2019-05-08 Tom Tromey <tromey@adacore.com>
4753
4754 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
4755 padding at end of comment.
4756
4757 2019-05-08 Tom Tromey <tromey@adacore.com>
4758
4759 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
4760 Compare main types.
4761
4762 2019-05-06 Tom Tromey <tom@tromey.com>
4763
4764 * common/scoped_mmap.c: Include common-defs.h.
4765 * common/scoped_mmap.h: Don't include config.h.
4766
4767 2019-05-04 Tom Tromey <tom@tromey.com>
4768
4769 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
4770 (struct aarch64_call_info): Add initializers.
4771 <si>: Now a std::vector.
4772 (pass_on_stack, aarch64_push_dummy_call): Update.
4773
4774 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
4775 Tom Tromey <tom@tromey.com>
4776
4777 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
4778 (ppc_threads): Now a std::vector. Now static.
4779 (hwdebug_find_thread_points_by_tid)
4780 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
4781 Update.
4782
4783 2019-05-04 Tom Tromey <tom@tromey.com>
4784
4785 * arc-tdep.c (arc_tdesc_init): Return bool.
4786
4787 2019-05-04 Tom Tromey <tom@tromey.com>
4788
4789 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
4790 Use gdb_assert_not_reached.
4791
4792 2019-05-04 Tom Tromey <tom@tromey.com>
4793
4794 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
4795 "false".
4796
4797 2019-05-04 Tom Tromey <tom@tromey.com>
4798
4799 * arc-tdep.c (arc_tdesc_init): Use bool.
4800
4801 2019-05-04 Tom Tromey <tom@tromey.com>
4802
4803 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
4804
4805 2019-05-04 Tom Tromey <tom@tromey.com>
4806
4807 * cli/cli-cmds.c (valid_command_p): Return bool.
4808
4809 2019-05-04 Tom Tromey <tom@tromey.com>
4810
4811 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
4812 * command.h (valid_user_defined_cmd_name_p): Channge return type.
4813
4814 2019-05-04 Raul Tambre <raul@tambre.ee>
4815
4816 * python/lib/gdb/prompt.py (_ExtendedPrompt)
4817 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
4818 operator for comparison.
4819
4820 2019-05-04 Tom Tromey <tom@tromey.com>
4821
4822 * psymtab.c (psymbol_name_matches, match_partial_symbol)
4823 (lookup_partial_symbol, print_partial_symbols)
4824 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
4825 (psymbol_compare): Update.
4826 (add_psymbol_to_bcache): Clear the entire psymbol.
4827 (maintenance_check_psymtabs): Update.
4828 * psympriv.h (struct partial_symbol): Don't derive from
4829 general_symbol_info.
4830 <obj_section, unrelocated_address, address,
4831 set_unrelocated_address>: Update.
4832 <ginfo>: New member.
4833 * dwarf-index-write.c (write_psymbols, debug_names::insert)
4834 (debug_names::write_psymbols): Update.
4835
4836 2019-05-04 Tom de Vries <tdevries@suse.de>
4837
4838 * contrib/cc-with-tweaks.sh: Support -n arg.
4839
4840 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4841
4842 * corelow.c (core_target::detach): Ensure frame cache and
4843 register caches are cleared.
4844 inferior.c (exit_inferior_1): Likewise.
4845
4846 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
4847 Tom Tromey <tom@tromey.com>
4848
4849 * dictionary.c (collate_pending_symbols_by_language): Remove
4850 "struct" from foreach.
4851 * symtab.c (lookup_global_symbol_from_objfile)
4852 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
4853 foreach.
4854 * ser-tcp.c (net_open): Remove "struct" from foreach.
4855 * objfiles.c (objfile_relocate, objfile_rebase)
4856 (objfile_has_symbols): Remove "struct" from foreach.
4857 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
4858 from foreach.
4859 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
4860 foreach.
4861 * darwin-nat.c (thread_info_from_private_thread_info): Remove
4862 "struct" from foreach.
4863 * ada-lang.c (create_excep_cond_exprs)
4864 (ada_exception_catchpoint_cond_string): Remove "struct" from
4865 foreach.
4866
4867 2019-05-03 Tom Tromey <tromey@adacore.com>
4868
4869 * ada-exp.y (convert_char_literal): Check suffix of each
4870 enumerator.
4871
4872 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
4873
4874 PR ada/21406:
4875 * ada-exp.y (yywrap): Don't define.
4876 * ada-lex.l (%option): Add noyywrap
4877 (yywrap): Remove.
4878
4879 2019-05-03 Eli Zaretskii <eliz@gnu.org>
4880
4881 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
4882 _WIN32_WINNT to the XP level, unless already defined to a higher
4883 level.
4884
4885 * unittests/parse-connection-spec-selftests.c:
4886 * ser-tcp.c:
4887 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
4888 override.
4889
4890 * symfile.c (find_separate_debug_file): Remove colon from the
4891 drive spec of DOS/Windows file names of the target, so that the
4892 file name produced from DEBUGDIR and the target's directory will
4893 be valid on DOS/Windows systems.
4894
4895 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
4896
4897 * rust-lang.c (val_print_struct): Handle printing structures
4898 containing strings.
4899
4900 2019-05-02 Tom Tromey <tromey@adacore.com>
4901
4902 * valarith.c (_initialize_valarith): Remove.
4903
4904 2019-05-01 Tom Tromey <tromey@adacore.com>
4905
4906 * ada-lang.c (ada_value_primitive_field): Treat more fields as
4907 bitfields.
4908
4909 2019-05-01 Tom Tromey <tromey@adacore.com>
4910
4911 * ada-lang.c (ada_value_assign): Correctly compute starting offset
4912 for big-endian copies.
4913
4914 2019-04-30 Ali Tamur <tamur@google.com>
4915 * gdb/dwarf2read.c (read_3_bytes): New declaration.
4916 (read_attribute_value): Added DW_FORM_strx1-4 cases.
4917 (read_3_bytes): New function.
4918
4919 2019-04-30 Joel Brobecker <brobecker@adacore.com>
4920
4921 * windows-nat.c (main_thread_id): Delete.
4922 (handle_output_debug_string): Replace main_thread_id by
4923 current_event.dwThreadId.
4924 (fake_create_process): Likewise.
4925 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
4926 Do not set main_thread_id.
4927 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
4928 current_event.dwThreadId.
4929 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
4930
4931 2019-04-30 Joel Brobecker <brobecker@adacore.com>
4932
4933 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
4934 Use current_event.dwThreadId instead of main_thread_id.
4935
4936 2019-04-30 Tom Tromey <tromey@adacore.com>
4937
4938 * ada-lang.c (ada_lookup_simple_minsyms): New function.
4939 (create_excep_cond_exprs): Iterate over program spaces.
4940 (ada_exception_catchpoint_cond_string): Examine all minimal
4941 symbols for exception types.
4942
4943 2019-04-30 Tom Tromey <tromey@adacore.com>
4944
4945 PR c++/24470:
4946 * dwarf2read.c (process_structure_scope): Handle case where type
4947 has template parameters but no symbol was created.
4948
4949 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
4950 Chris January <chris.january@arm.com>
4951
4952 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
4953 qualifier.
4954 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
4955
4956 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
4957
4958 * f-typeprint.c (f_print_type): Update rules for printing
4959 whitespace.
4960 (f_type_print_varspec_suffix): Likewise.
4961
4962 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
4963 Chris January <chris.january@arm.com>
4964
4965 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
4966 function arguments.
4967
4968 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
4969
4970 * f-lang.c (build_fortran_types): Change name of void type to
4971 lower case.
4972 * f-typeprint.c (f_type_print_base): Print the name of the void
4973 type, rather than a fixed string.
4974 * f-valprint.c (f_decorations): Use lower case void string.
4975
4976 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
4977 Chris January <chris.january@arm.com>
4978
4979 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
4980 types for Fortran.
4981
4982 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
4983 Chris January <chris.january@arm.com>
4984 David Lecomber <david.lecomber@arm.com>
4985
4986 * f-exp.y (BINOP_INTRINSIC): New token.
4987 (exp): New parser rule handling BINOP_INTRINSIC.
4988 (f77_keywords): Add new builtin procedures.
4989 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
4990 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
4991 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
4992 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
4993 (print_unop_subexp_f): New function.
4994 (print_binop_subexp_f): New function.
4995 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
4996 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
4997 (dump_subexp_body_f): Likewise.
4998 (operator_check_f): Likewise.
4999 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
5000 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
5001
5002 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5003
5004 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
5005 UNOP_KIND.
5006 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
5007 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
5008 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
5009 (operator_length_f): New fuction.
5010 (print_subexp_f): New function.
5011 (op_name_f): New function.
5012 (dump_subexp_body_f): New function.
5013 (operator_check_f): New function.
5014 (exp_descriptor_f): Replace standard expression handling functions
5015 with new functions.
5016 * gdb/fortran-operator.def: New file.
5017 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
5018 * gdb/std-operator.def: Remove UNOP_KIND.
5019
5020 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5021
5022 * std-operator.def: Remove unbalanced, stray double quote
5023 character.
5024
5025 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
5026 Chris January <chris.january@arm.com>
5027 Daniel Everett <daniel.everett@arm.com>
5028 Nick Forrington <nick.forrington@arm.com>
5029 Richard Bunt <richard.bunt@arm.com>
5030
5031 * cp-valprint.c (cp_print_value_fields): Allow an additional level
5032 of depth when printing anonymous structs or unions.
5033 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
5034 Don't print either the top-level value, or the children if the
5035 max-depth is exceeded.
5036 (ppscm_print_children): When printing the key of a map, allow one
5037 extra level of depth.
5038 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
5039 print either the top-level value, or the children if the max-depth
5040 is exceeded.
5041 (print_children): When printing the key of a map, allow one extra
5042 level of depth.
5043 * python/py-value.c (valpy_format_string): Add max_depth keyword.
5044 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
5045 (user_print_options): Initialise max_depth field.
5046 (val_print_scalar_or_string_type_p): New function.
5047 (val_print): Check to see if the max depth has been reached.
5048 (val_print_check_max_depth): Define new function.
5049 (show_print_max_depth): New function.
5050 (_initialize_valprint): Add 'print max-depth' option.
5051 * valprint.h (struct value_print_options) <max_depth>: New field.
5052 (val_print_check_max_depth): Declare new function.
5053 * NEWS: Document new feature.
5054
5055 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
5056
5057 * ada-lang.c (ada_language_defn): Initialise new field.
5058 * c-lang.c (c_is_string_type_p): New function.
5059 (c_language_defn): Initialise new field.
5060 (cplus_language_defn): Initialise new field.
5061 (asm_language_defn): Initialise new field.
5062 (minimal_language_defn): Initialise new field.
5063 * c-lang.h (c_is_string_type_p): Declare new function.
5064 * d-lang.c (d_language_defn): Initialise new field.
5065 * f-lang.c (f_is_string_type_p): New function.
5066 (f_language_defn): Initialise new field.
5067 * go-lang.c (go_is_string_type_p): New function.
5068 (go_language_defn): Initialise new field.
5069 * language.c (default_is_string_type_p): New function.
5070 (unknown_language_defn): Initialise new field.
5071 (auto_language_defn): Initialise new field.
5072 * language.h (struct language_defn) <la_is_string_type_p>: New
5073 member variable.
5074 (default_is_string_type_p): Declare new function.
5075 * m2-lang.c (m2_language_defn): Initialise new field.
5076 * objc-lang.c (objc_language_defn): Initialise new field.
5077 * opencl-lang.c (opencl_language_defn): Initialise new field.
5078 * p-lang.c (pascal_is_string_type_p): New function.
5079 (pascal_language_defn): Initialise new field.
5080 * rust-lang.c (rust_is_string_type_p): New function.
5081 (rust_language_defn): Initialise new field.
5082
5083 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
5084
5085 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
5086 New field.
5087 * ada-lang.c (ada_language_defn): Initialise new field.
5088 * c-lang.c (c_language_defn): Likewise.
5089 (cplus_language_defn): Likewise.
5090 (asm_language_defn): Likewise.
5091 (minimal_language_defn): Likewise.
5092 * d-lang.c (d_language_defn): Likewise.
5093 * f-lang.c (f_language_defn): Likewise.
5094 * go-lang.c (go_language_defn): Likewise.
5095 * language.c (unknown_language_defn): Likewise.
5096 (auto_language_defn): Likewise.
5097 * m2-lang.c (m2_language_defn): Likewise.
5098 * objc-lang.c (objc_language_defn): Likewise.
5099 * opencl-lang.c (opencl_language_defn): Likewise.
5100 * p-lang.c (pascal_language_defn): Likewise.
5101 * rust-lang.c (rust_language_defn): Likewise.
5102
5103 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
5104
5105 * ada-lang.c (ada_is_character_type): Change return type to bool.
5106 (ada_is_string_type): Likewise.
5107 * ada-lang.h (ada_is_character_type): Update declaration
5108 (ada_is_string_type): Likewise.
5109
5110 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5111
5112 Support style in 'frame|thread apply'
5113
5114 * gdbcmd.h (execute_command_to_string): New term_out parameter.
5115 * record.c (record_start, record_stop): Update callers of
5116 execute_command_to_string with false.
5117 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
5118 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
5119 methods.
5120 (class string_file): New constructor with term_out parameter.
5121 Override methods term_out and can_emit_style_escape. New member
5122 term_out.
5123 (class stdio_file): Override can_emit_style_escape.
5124 (class tee_file): Override term_out and can_emit_style_escape.
5125 * utils.h (can_emit_style_escape): Remove.
5126 * utils.c (can_emit_style_escape): Likewise.
5127 Update all callers of can_emit_style_escape (SOMESTREAM) to
5128 SOMESTREAM->can_emit_style_escape.
5129 * source-cache.c (source_cache::get_source_lines): Likewise.
5130 * stack.c (frame_apply_command_count): Call execute_command_to_string
5131 passing the term_out characteristic of the current gdb_stdout.
5132 * thread.c (thr_try_catch_cmd): Likewise.
5133 * top.c (execute_command_to_string): pass term_out parameter
5134 to construct the string_file for the command output.
5135 * ui-file.c (term_cli_styling): New function (most code moved
5136 from utils.c can_emit_style_escape).
5137 (string_file::string_file, string_file::can_emit_style_escape,
5138 stdio_file::can_emit_style_escape, tee_file::term_out,
5139 tee_file::can_emit_style_escape): New functions.
5140
5141 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5142
5143 * NEWS: Mention the new set|show may-call-functions.
5144 * infcall.c (may_call_functions_p): New variable.
5145 (show_may_call_functions_p): New function.
5146 (call_function_by_hand_dummy): Throws an error if not
5147 may-call-functions.
5148 (_initialize_infcall): Call add_setshow_boolean_cmd for
5149 may-call-functions.
5150
5151 2019-04-25 Keith Seitz <keiths@redhat.com>
5152
5153 PR c++/24367
5154 * cp-support.c (inspect_type): Don't attempt substitutions
5155 of symbol with the same name.
5156
5157 2019-04-25 Tom Tromey <tromey@adacore.com>
5158
5159 PR gdb/24475:
5160 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
5161 static.
5162
5163 2019-04-25 Tom Tromey <tromey@adacore.com>
5164
5165 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
5166 rvalue reference.
5167 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
5168 (gdb_xml_parser::parse): Use std::move.
5169 * python/python-internal.h (gdbpy_convert_exception): Take a const
5170 reference.
5171 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
5172 std::move.
5173 * python/py-utils.c (gdbpy_convert_exception): Take a const
5174 reference.
5175 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
5176 Use std::move.
5177 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
5178 Use std::move.
5179 * mi/mi-main.c (mi_print_exception): Take a const reference.
5180 * main.c (handle_command_errors): Take a const reference.
5181 * linespec.c (parse_linespec): Use std::move.
5182 * infcall.c (run_inferior_call): Use std::move.
5183 (call_function_by_hand_dummy): Use std::move.
5184 * exec.c (try_open_exec_file): Use std::move.
5185 * exceptions.h (exception_print, exception_fprintf)
5186 (exception_print_same): Update.
5187 * exceptions.c (print_exception, exception_print)
5188 (exception_fprintf, exception_print_same): Change parameters to
5189 const reference.
5190 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
5191 * common/new-op.c: Use std::move.
5192 * common/common-exceptions.h (struct gdb_exception): Add move
5193 constructor.
5194 (struct gdb_exception_error, struct gdb_exception_quit, struct
5195 gdb_quit_bad_alloc): Change constructor to move constructor.
5196 (throw_exception): Change parameter to rvalue reference.
5197 * common/common-exceptions.c (throw_exception): Take rvalue
5198 reference.
5199 * cli/cli-interp.c (safe_execute_command): Use std::move.
5200 * breakpoint.c (insert_bp_location, location_to_sals): Use
5201 std::move.
5202
5203 2019-04-25 Tom Tromey <tromey@adacore.com>
5204
5205 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
5206 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
5207 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
5208 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
5209 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
5210 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
5211 guile/scm-value.c: Use unpack.
5212 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
5213 gdbscm_gdb_exception.
5214 (gdbscm_throw_gdb_exception): Likewise.
5215 (struct gdbscm_gdb_exception): New.
5216 (unpack): New function.
5217 (gdbscm_wrap): Use unpack.
5218
5219 2019-04-25 Tom Tromey <tromey@adacore.com>
5220
5221 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
5222 (gdb_rl_callback_handler): Use std::move.
5223 * common/common-exceptions.h (struct gdb_exception): Add move
5224 assignment operator.
5225 (throw_exception_sjlj): Change "exception" to const reference.
5226 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
5227 (throw_exception_sjlj): Change "exception" to const reference.
5228
5229 2019-04-25 Tom Tromey <tromey@adacore.com>
5230
5231 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
5232 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
5233 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
5234 Update.
5235 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
5236 Update.
5237 * mi/mi-interp.c (mi_interp::exec): Update.
5238 * linespec.c (parse_linespec): Update.
5239 * infcall.c (run_inferior_call): Update.
5240 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
5241 * guile/scm-symbol.c (gdbscm_lookup_symbol)
5242 (gdbscm_lookup_global_symbol): Update.
5243 * guile/scm-param.c (gdbscm_parameter_value): Update.
5244 * guile/scm-frame.c (gdbscm_frame_read_register)
5245 (gdbscm_frame_read_var): Update.
5246 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
5247 * exec.c (try_open_exec_file): Update.
5248 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
5249 (gdb_rl_callback_handler): Update.
5250 * common/common-exceptions.h (exception_none): Don't declare.
5251 * common/common-exceptions.c (exception_none): Don't define.
5252 (struct catcher) <exception>: Update.
5253 * cli/cli-interp.c (safe_execute_command): Update.
5254 * breakpoint.c (insert_bp_location, location_to_sals): Update.
5255
5256 2019-04-25 Ali Tamur <tamur@google.com>
5257
5258 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
5259 (read_attribute_value): Likewise.
5260 (dwarf2_read_addr_index): Update comment.
5261 (read_str_index): Add DW_FORM_strx.
5262 (dwarf2_string_attr): Likewise.
5263 (dwarf2_const_value_attr): Likewise.
5264 (dump_die_shallow): Likewise.
5265 (dwarf2_fetch_constant_bytes): Likewise.
5266 (skip_form_bytes): Likewise.
5267 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
5268
5269 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
5270
5271 PR corefiles/11608
5272 PR corefiles/18187
5273 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
5274 OFFSET. Verify if current mapping contains an ELF header.
5275 (linux_find_memory_regions_full): Adjust call to
5276 dump_mapping_p.
5277
5278 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
5279 Kang Li <kanglictf@gmail.com>
5280
5281 PR gdb/21600
5282
5283 * dwarf2-frame.c (read_initial_length): Be consistent about using
5284 unsigned representation of length.
5285 (decode_frame_entry_1): Likewise. Check for wraparound of
5286 end pointer as well as buffer overflow.
5287
5288 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
5289
5290 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
5291 "vq".
5292
5293 2019-04-24 Tom Tromey <tromey@adacore.com>
5294
5295 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
5296
5297 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5298
5299 * s12z-tdep.c (s12z_unwind_pc): Delete.
5300 (s12z_unwind_sp): Delete.
5301 (s12z_gdbarch_init): Don't register deleted functions with
5302 gdbarch.
5303
5304 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5305
5306 * rl78-tdep.c (rl78_unwind_sp): Delete.
5307 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
5308
5309 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5310
5311 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
5312 (xstormy16_unwind_pc): Delete.
5313 (xstormy16_dummy_id): Delete.
5314 (xstormy16_gdbarch_init): Don't register deleted functions with
5315 gdbarch.
5316
5317 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5318
5319 * vax-tdep.c (vax_unwind_pc): Delete.
5320 (vax_gdbarch_init): Don't register deleted function with gdbarch.
5321
5322 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5323
5324 * v850-tdep.c (v850_unwind_sp): Delete.
5325 (v850_unwind_pc): Delete.
5326 (v850_dummy_id): Delete.
5327 (v850_gdbarch_init): Don't register deleted functions with
5328 gdbarch.
5329
5330 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5331
5332 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
5333 (tilegx_unwind_pc): Delete.
5334 (tilegx_unwind_dummy_id): Delete.
5335 (tilegx_gdbarch_init): Don't register deleted functions with
5336 gdbarch.
5337
5338 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5339
5340 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
5341 (tic6x_dummy_id): Delete.
5342 (tic6x_gdbarch_init): Don't register deleted functions with
5343 gdbarch.
5344
5345 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5346
5347 * sparc-tdep.c (sparc_unwind_pc): Delete.
5348 (sparc32_gdbarch_init): Don't register deleted function with
5349 gdbarch.
5350
5351 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5352
5353 * sh-tdep.c (sh_unwind_sp): Delete.
5354 (sh_unwind_pc): Delete.
5355 (sh_dummy_id): Delete.
5356 (sh_gdbarch_init): Don't register deleted functions with
5357 gdbarch.
5358
5359 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5360
5361 * score-tdep.c (score_unwind_sp): Delete.
5362 (score_unwind_pc): Delete.
5363 (score_dummy_id): Delete.
5364 (score_gdbarch_init): Don't register deleted functions with
5365 gdbarch.
5366
5367 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5368
5369 * rx-tdep.c (rx_unwind_pc): Delete.
5370 (rx_unwind_sp): Delete.
5371 (rx_dummy_id): Delete.
5372 (rx_gdbarch_init): Don't register deleted functions with
5373 gdbarch. Update comment.
5374
5375 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5376
5377 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
5378 (rs6000_dummy_id): Delete.
5379 (rs6000_gdbarch_init): Don't register deleted functions with
5380 gdbarch.
5381
5382 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5383
5384 * or1k-tdep.c (or1k_dummy_id): Delete.
5385 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
5386
5387 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5388
5389 * nios2-tdep.c (nios2_dummy_id): Delete.
5390 (nios2_unwind_sp): Delete.
5391 (nios2_gdbarch_init): Don't register deleted functions with
5392 gdbarch.
5393
5394 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5395
5396 * nds32-tdep.c (nds32_dummy_id): Delete.
5397 (nds32_unwind_pc): Delete.
5398 (nds32_unwind_sp): Delete.
5399 (nds32_gdbarch_init): Don't register deleted functions with
5400 gdbarch.
5401
5402 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5403
5404 * msp430-tdep.c (msp430_unwind_pc): Delete.
5405 (msp430_unwind_sp): Delete.
5406 (msp430_dummy_id): Delete.
5407 (msp430_gdbarch_init): Don't register deleted functions with
5408 gdbarch.
5409
5410 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5411
5412 * moxie-tdep.c (moxie_unwind_sp): Delete.
5413 (moxie_unwind_pc): Delete.
5414 (moxie_dummy_id): Delete.
5415 (moxie_gdbarch_init): Don't register deleted functions with
5416 gdbarch.
5417
5418 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5419
5420 * mn10300-tdep.c (mn10300_dummy_id): Delete.
5421 (mn10300_unwind_pc): Delete.
5422 (mn10300_unwind_sp): Delete.
5423 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
5424 mn10300_unwind_sp.
5425 (mn10300_frame_unwind_init): Don't register deleted functions with
5426 gdbarch.
5427
5428 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5429
5430 * mep-tdep.c (mep_unwind_pc): Delete.
5431 (mep_unwind_sp): Delete.
5432 (mep_dummy_id): Delete.
5433 (mep_gdbarch_init): Don't register deleted functions with
5434 gdbarch.
5435
5436 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5437
5438 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
5439 (m68hc11_unwind_sp): Delete.
5440 (m68hc11_gdbarch_init): Don't register deleted functions with
5441 gdbarch.
5442
5443 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5444
5445 * m32r-tdep.c (m32r_unwind_sp): Delete.
5446 (m32r_unwind_pc): Delete.
5447 (m32r_dummy_id): Delete.
5448 (m32r_gdbarch_init): Don't register deleted functions with
5449 gdbarch.
5450
5451 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5452
5453 * m32c-tdep.c (m32c_unwind_pc): Delete.
5454 (m32c_unwind_sp): Delete.
5455 (m32c_dummy_id): Delete.
5456 (m32c_gdbarch_init): Don't register deleted functions with
5457 gdbarch.
5458
5459 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5460
5461 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
5462 (lm32_unwind_pc): Delete.
5463 (lm32_dummy_id): Delete.
5464 (lm32_gdbarch_init): Don't register deleted functions with
5465 gdbarch.
5466
5467 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5468
5469 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
5470 (iq2000_unwind_pc): Delete.
5471 (iq2000_dummy_id): Delete.
5472 (iq2000_gdbarch_init): Don't register deleted functions with
5473 gdbarch.
5474
5475 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5476
5477 * nds32-tdep.c (nds32_type_align): Delete.
5478 (nds32_push_dummy_call): Use type_align instead.
5479
5480 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5481
5482 * arm-tdep.c (arm_type_align): Only handle vector override case.
5483 (arm_push_dummy_call): Use type_align.
5484 (arm_gdbarch_init): Register arm_type_align gdbarch function.
5485
5486 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5487
5488 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
5489 case.
5490 (pass_on_stack): Use type_align.
5491 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
5492 function.
5493
5494 2019-04-23 Tom Tromey <tromey@adacore.com>
5495
5496 * dwarf2read.c (line_header::file_name_at): Remove unused
5497 overload.
5498
5499 2019-04-23 Tom de Vries <tdevries@suse.de>
5500
5501 PR gdb/24438
5502 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
5503 invocation.
5504
5505
5506 2019-03-27 Ali Tamur <tamur@google.com>
5507
5508 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
5509 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
5510 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
5511 (dwarf_expr_context::get_addr_index): Likewise
5512 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
5513 (symbol_needs_eval_context::get_addr_index): Likewise
5514 (disassemble_dwarf_expression): Add DW_OP_addrx
5515 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
5516 (read_cutu_die_from_dwo): Update comment
5517 (skip_one_die): Add DW_FORM_addrx
5518 (read_attribute_value): Likewise
5519 (var_decode_location): Add DW_OP_addrx
5520 (dwarf2_const_value_attr): Add DW_FORM_addrx
5521 (dump_die_shallow): Likewise
5522 (dwarf2_fetch_constant_bytes): Likewise
5523 (decode_locdesc): Add DW_OP_addrx
5524 (skip_form_bytes): Add DW_FORM_addrx
5525
5526 2019-04-22 Ali Tamur <tamur@google.com>
5527
5528 * MAINTAINERS (Write After Approval): Add self.
5529
5530 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
5531
5532 * solib-svr4.c (get_svr4_info): Add pspace parameter.
5533 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
5534 (open_symbol_file_object): Likewise.
5535 (svr4_default_sos): Add info parameter.
5536 (svr4_read_so_list): Likewise.
5537 (svr4_current_sos_direct): Adjust functions calls to pass down
5538 info.
5539 (svr4_current_sos_1): Add info parameter.
5540 (svr4_current_sos): Call get_svr4_info, pass info down to
5541 svr4_current_sos_1.
5542 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
5543 get_svr4_info.
5544 (svr4_in_dynsym_resolve_code): Pass current_program_space to
5545 get_svr4_info.
5546 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
5547 to get_svr4_info.
5548 (probes_table_remove_objfile_probes): Likewise.
5549 (register_solib_event_probe): Add info parameter.
5550 (solist_update_incremental): Pass info parameter down to
5551 svr4_read_so_list.
5552 (disable_probes_interface): Add info parameter.
5553 (svr4_handle_solib_event): Pass current_program_space to
5554 get_svr4_info. Adjust disable_probes_interface cleanup.
5555 (svr4_create_probe_breakpoints): Add info parameter, pass it
5556 down to register_solib_event_probe.
5557 (svr4_create_solib_event_breakpoints): Add info parameter,
5558 pass it down to svr4_create_probe_breakpoints.
5559 (enable_break): Pass info down to
5560 svr4_create_solib_event_breakpoints.
5561 (svr4_solib_create_inferior_hook): Pass current_program_space to
5562 get_svr4_info.
5563 (svr4_clear_solib): Likewise.
5564
5565 2019-04-22 Pedro Alves <palves@redhat.com>
5566
5567 * solib-svr4.c (svr4_free_objfile_observer): New.
5568 (probe_and_action::objfile): New field.
5569 (probes_table_htab_remove_objfile_probes)
5570 (probes_table_remove_objfile_probes): New functions.
5571 (register_solib_event_probe): Add 'objfile' parameter. Store it
5572 in the new probe_and_action. Don't store the probe in 'lookup'.
5573 (svr4_create_probe_breakpoints): Pass objfile to
5574 register_solib_event_probe.
5575 (_initialize_svr4_solib): Register a free_objfile observer.
5576
5577 2019-04-19 Tom Tromey <tom@tromey.com>
5578
5579 * common/queue.h: Remove.
5580
5581 2019-04-19 Tom Tromey <tom@tromey.com>
5582
5583 * event-loop.c: Don't include "common/queue.h".
5584
5585 2019-04-19 Tom Tromey <tom@tromey.com>
5586
5587 * remote.c (remote_target): Use delete.
5588 * remote-notif.h: Include <list>, not "common/queue.h".
5589 (notif_client_p): Remove typedef.
5590 (remote_notif_state): Add constructor, destructor, initializer.
5591 <notif_queue>: Now a std::list.
5592 (remote_notif_state_xfree): Don't declare.
5593 * remote-notif.c (remote_notif_process, handle_notification)
5594 (remote_notif_state_allocate): Update.
5595 (~remote_notif_state): Rename from remote_notif_state_xfree.
5596
5597 2019-04-19 Tom Tromey <tom@tromey.com>
5598
5599 * symfile.c (reread_symbols): Update.
5600 * objfiles.c (objfile_register_static_link)
5601 (objfile_lookup_static_link): Update
5602 (~objfile) Don't delete static_links.
5603 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
5604
5605 2019-04-19 Tom Tromey <tom@tromey.com>
5606
5607 * type-stack.h (struct type_stack) <insert>: Constify string.
5608 * type-stack.c (type_stack::insert): Constify string.
5609 * gdbtypes.h (lookup_template_type): Update.
5610 (address_space_name_to_int): Update.
5611 * gdbtypes.c (address_space_name_to_int): Make space_identifier
5612 const.
5613 (lookup_template_type): Make name const.
5614 * c-exp.y: Update rules.
5615 (lex_one_token, classify_name, classify_inner_name)
5616 (c_print_token): Update.
5617 * p-exp.y: Update rules.
5618 (yylex): Update.
5619 * f-exp.y: Update rules.
5620 (yylex): Update.
5621 * d-exp.y: Update rules.
5622 (lex_one_token, classify_name, classify_inner_name): Update.
5623 * parse.c (write_dollar_variable, copy_name): Return std::string.
5624 * parser-defs.h (copy_name): Change return type.
5625 * m2-exp.y: Update rules.
5626 (yylex): Update.
5627 * go-exp.y (lex_one_token): Update.
5628 Update rules.
5629 (classify_unsafe_function, classify_packaged_name)
5630 (classify_name, yylex): Update.
5631
5632 2019-04-19 Sergei Trofimovich <siarheit@google.com>
5633
5634 * configure.ac: add --enable-source-highlight switch.
5635 * configure: Regenerate.
5636 * top.c (print_gdb_version): plumb --enable-source-highlight
5637 status to "show configuration".
5638
5639 2019-04-19 Tom Tromey <tromey@adacore.com>
5640
5641 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
5642 Check ADA_TYPE_P.
5643 (empty_record, ada_template_to_fixed_record_type_1)
5644 (template_to_static_fixed_type)
5645 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
5646 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
5647 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
5648 macros.
5649
5650 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
5651
5652 PR symtab/24423:
5653 * source.c (print_source_lines_base): Advance "iter" when a
5654 control character is seen.
5655
5656 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5657
5658 * inferior.h (struct infcall_suspend_state_deleter):
5659 Catch exception in destructor to avoid crash.
5660
5661 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5662
5663 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
5664 close to the add_com "shell".
5665
5666 2019-04-18 Tom Tromey <tromey@adacore.com>
5667
5668 * process-stratum-target.h (class process_stratum_target)
5669 <stratum>: Add "final".
5670
5671 2019-04-17 Tom Tromey <tromey@adacore.com>
5672
5673 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
5674 against nullptr before use.
5675
5676 2019-04-17 Alan Hayward <alan.hayward@arm.com>
5677
5678 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
5679
5680 2019-04-17 Jim Wilson <jimw@sifive.com>
5681 Andrew Burgess <andrew.burgess@embecosm.com>
5682
5683 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
5684 code read might fail, assume 4-byte breakpoint in that case.
5685
5686 2019-04-15 Leszek Swirski <leszeks@google.com>
5687
5688 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
5689 rather than a hand-rolled POD check when checking for forced MEMORY
5690 classification.
5691
5692 2019-04-15 Alan Hayward <alan.hayward@arm.com>
5693
5694 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
5695 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
5696 function.
5697 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
5698 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
5699 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
5700 declaration.
5701
5702 2019-04-15 Alan Hayward <alan.hayward@arm.com>
5703
5704 * aarch64-linux-nat.c
5705 (aarch64_linux_nat_target::thread_architecture): Add override.
5706 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
5707 each VQ.
5708
5709 2019-04-15 Alan Hayward <alan.hayward@arm.com>
5710
5711 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
5712
5713 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
5714
5715 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
5716 target types of size 96-bits, add some additional comments, and
5717 check that the builtin type we found was the correct size.
5718
5719 2019-04-12 Eli Zaretskii <eliz@gnu.org>
5720
5721 * utils.c (prompt_for_continue): Don't restore the styling at the
5722 end, as applied_style has the wrong value. This fixes styling in
5723 long lists of file names that are interrupted by the "Continue?"
5724 prompt.
5725
5726 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
5727
5728 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
5729 * c-lang.c (c_language_defn): Likewise.
5730 (cplus_language_defn): Likewise.
5731 (asm_language_defn): Likewise.
5732 (minimal_language_defn): Likewise.
5733 * d-lang.c (d_language_defn): Likewise.
5734 * f-lang.c (f_language_defn): Likewise.
5735 * go-lang.c (go_language_defn): Likewise.
5736 * language.c (unknown_language_defn): Likewise.
5737 (auto_language_defn): Likewise.
5738 * language.h (struct language_defn): Remove la_magic field.
5739 (LANG_MAGIC): Delete.
5740 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
5741 * objc-lang.c (objc_language_defn): Likewise.
5742 * opencl-lang.c (opencl_language_defn): Likewise.
5743 * p-lang.c (pascal_language_defn): Likewise.
5744 * rust-lang.c (rust_language_defn): Likewise.
5745
5746 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
5747
5748 * riscv-tdep.c (riscv_type_align): New function.
5749 (riscv_type_alignment): Delete.
5750 (riscv_arg_location): Use 'type_align'.
5751 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
5752
5753 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
5754
5755 * gdbtypes.c (type_align): A struct with no non-static fields also
5756 has alignment of 1.
5757
5758 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
5759
5760 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
5761 component to 0.
5762 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
5763 member.
5764 (riscv_struct_info::analyse): New implementation using new
5765 analyse_inner member function.
5766 (riscv_struct_info::field_offset): New member function.
5767 (riscv_struct_info::m_offsets): New member variable.
5768 (riscv_struct_info::analyse_inner): New private member function,
5769 takes the old implementation of riscv_struct_info::analyse but
5770 extended to track field offsets.
5771 (riscv_call_arg_struct): Update the struct folding special cases
5772 to handle cases where empty C++ structs, which are non-zero
5773 length, are found.
5774 (riscv_arg_location): Initialise the length of each location, a
5775 non-zero length now indicates the location is in use.
5776 (riscv_push_dummy_call): Allow for the first location having a
5777 non-zero offset when setting up arguments.
5778 (riscv_return_value): Likewise, but for return values.
5779
5780 2019-04-11 Tom Tromey <tromey@adacore.com>
5781
5782 * utils.c (internal_vproblem): Make "msg" const.
5783
5784 2019-04-11 Alan Hayward <alan.hayward@arm.com>
5785
5786 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
5787 * trad-frame.c (trad_frame_reset_saved_regs): New function.
5788 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
5789 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
5790
5791 2019-04-10 Kevin Buettner <kevinb@redhat.com>
5792
5793 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
5794 function.
5795 (fill_gregset): Call amd64_linux_collect_native_gregset instead
5796 of amd64_collect_native_gregset.
5797 (amd64_linux_nat_target::store_registers): Likewise.
5798
5799 2019-04-10 Tom Tromey <tom@tromey.com>
5800
5801 * symtab.c (lookup_global_symbol_from_objfile)
5802 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
5803 * objfiles.h (class separate_debug_iterator): New.
5804 (class separate_debug_range): New.
5805 (struct objfile) <separate_debug_objfiles>: New method.
5806 (objfile_separate_debug_iterate): Don't declare.
5807 * objfiles.c (separate_debug_iterator::operator++): Rename from
5808 objfile_separate_debug_iterate.
5809 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
5810 iterator.
5811 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
5812 iterator.
5813
5814 2019-04-10 Tom Tromey <tom@tromey.com>
5815
5816 * symfile.c (reread_symbols): Remove old comment.
5817 * objfiles.c (free_all_objfiles): Fix a typo.
5818
5819 2019-04-10 Tom Tromey <tom@tromey.com>
5820
5821 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
5822 * minsyms.c (lookup_minimal_symbol): Use foreach.
5823 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
5824 (lookup_minimal_symbol_solib_trampoline): Likewise.
5825 * symfile.c (reread_symbols): Use foreach.
5826
5827 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
5828 Tom Tromey <tromey@adacore.com>
5829
5830 PR rust/24414:
5831 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
5832 (rust_lex_int_test): Change "value" to be LONGEST.
5833 (rust_lex_tests): Add test for long integer literal.
5834
5835 2019-04-09 Tom Tromey <tromey@adacore.com>
5836
5837 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
5838 to bool.
5839 (extended_remote_target::attach): Update.
5840 (remote_target::remote_notice_new_inferior): Update.
5841 (remote_target::add_current_inferior_and_thread): Update.
5842 * inferior.c (exit_inferior_1): Use "false".
5843 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
5844
5845 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
5846
5847 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
5848 the "start" command.
5849
5850 2019-04-08 Kevin Buettner <kevinb@redhat.com>
5851
5852 * python/py-inferior.c (infpy_thread_from_thread_handle):
5853 Adjust comments to reflect renaming of thread_from_thread_handle
5854 to thread_from_handle. Adjust keywords. Fix type error message.
5855 (inferior_object_methods): Add thread_from_handle. Retain
5856 thread_from_thread_handle, but mark it as deprecated.
5857
5858 2019-04-08 Kevin Buettner <kevinb@redhat.com>
5859
5860 * gdbthread.h (find_thread_by_handle): Revise declaration.
5861 * thread.c (find_thread_by_handle): Likewise. Adjust
5862 implementation too.
5863 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
5864 support for buffer objects as handles.
5865
5866 2019-04-08 Kevin Buettner <kevinb@redhat.com>
5867
5868 * python/py-infthread.c (thpy_thread_handle): New function.
5869 (thread_object_methods): Register thpy_thread_handle.
5870
5871 2019-04-08 Kevin Buettner <kevinb@redhat.com>
5872
5873 * gdbthread.h (thread_to_thread_handle): Declare.
5874 * thread.c (gdbtypes.h): Include.
5875 (thread_to_thread_handle): New function.
5876
5877 * target.h (struct target_ops): Add thread_info_to_thread_handle.
5878 (target_thread_info_to_thread_handle): Declare.
5879 * target.c (target_thread_info_to_thread_handle): New function.
5880 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
5881 * target-delegates.c: Regenerate.
5882
5883 * linux-thread-db.c (class thread_db_target): Add method
5884 thread_info_to_thread_handle.
5885 (thread_db_target::thread_info_to_thread_handle): Define.
5886 * remote.c (class remote_target): Add new method
5887 thread_info_to_thread_handle.
5888 (remote_target::thread_info_to_thread_handle): Define.
5889
5890 2019-04-08 Pedro Alves <palves@redhat.com>
5891
5892 * common/common-exceptions.c (throw_exception): Don't create
5893 named object to throw; throw directly.
5894 (throw_it): Likewise. Don't initialize gdb_exception::message
5895 here, with new; pass FMT and AP to the ctor instead.
5896 * common/common-exceptions.h: Include <string>.
5897 (gdb_exception::gdb_exception(enum return_reason, enum errors,
5898 const char *, va_list)): New ctor. Use std::make_shared.
5899 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
5900 errors)): Delete.
5901 (gdb_exception_error::gdb_exception_error(enum errors, const char
5902 *, va_list)): New.
5903 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
5904 Add assertion.
5905 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
5906 errors)): Delete.
5907 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
5908 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
5909 Add assertion.
5910
5911 2019-04-08 Tom Tromey <tom@tromey.com>
5912
5913 * valops.c (value_rtti_indirect_type): Replace throw_exception
5914 with throw.
5915 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
5916 with throw.
5917 * thread.c (thr_try_catch_cmd): Replace throw_exception with
5918 throw.
5919 * target.c (target_translate_tls_address): Replace throw_exception
5920 with throw.
5921 * stack.c (frame_apply_command_count): Replace throw_exception
5922 with throw.
5923 * solib-spu.c (append_ocl_sos): Replace throw_exception with
5924 throw.
5925 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
5926 with throw.
5927 * rs6000-tdep.c (rs6000_frame_cache)
5928 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
5929 * remote.c: Replace throw_exception with throw.
5930 * record-full.c (record_full_message, record_full_wait_1)
5931 (record_full_restore): Replace throw_exception with throw.
5932 * record-btrace.c:
5933 (get_thread_current_frame_id, record_btrace_start_replaying)
5934 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
5935 (cmd_record_btrace_start): Replace throw_exception with throw.
5936 * parse.c (parse_exp_in_context_1): Replace throw_exception with
5937 throw.
5938 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
5939 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
5940 * linespec.c:
5941 (find_linespec_symbols): Replace throw_exception with throw.
5942 * infrun.c (displaced_step_prepare, resume): Replace
5943 throw_exception with throw.
5944 * infcmd.c (post_create_inferior): Replace throw_exception with
5945 throw.
5946 * inf-loop.c (inferior_event_handler): Replace throw_exception
5947 with throw.
5948 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
5949 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
5950 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
5951 (get_prev_frame_always, get_frame_pc_if_available)
5952 (get_frame_address_in_block_if_available, get_frame_language):
5953 Replace throw_exception with throw.
5954 * frame-unwind.c (frame_unwind_try_unwinder): Replace
5955 throw_exception with throw.
5956 * eval.c (fetch_subexp_value, evaluate_var_value)
5957 (evaluate_funcall, evaluate_subexp_standard): Replace
5958 throw_exception with throw.
5959 * dwarf2loc.c (call_site_find_chain)
5960 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
5961 Replace throw_exception with throw.
5962 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
5963 with throw.
5964 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
5965 throw.
5966 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
5967 * completer.c (complete_line_internal): Replace throw_exception
5968 with throw.
5969 * compile/compile-object-run.c (compile_object_run): Replace
5970 throw_exception with throw.
5971 * cli/cli-script.c (process_next_line): Replace throw_exception
5972 with throw.
5973 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
5974 (btrace_enable, btrace_maint_update_pt_packets): Replace
5975 throw_exception with throw.
5976 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
5977 throw_exception with throw.
5978 * break-catch-throw.c (re_set_exception_catchpoint): Replace
5979 throw_exception with throw.
5980 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
5981 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
5982 * aarch64-tdep.c (aarch64_make_prologue_cache)
5983 (aarch64_make_stub_cache): Replace throw_exception with throw.
5984
5985 2019-04-08 Tom Tromey <tom@tromey.com>
5986
5987 * common/common-exceptions.c (throw_exception): Rename from
5988 throw_exception_cxx. Remove old copy. Make argument const.
5989 (throw_it): Create and throw exception objects directly.
5990 * common/common-exceptions.h (throw_exception): Make argument
5991 const.
5992 (struct gdb_exception_error): Add constructor.
5993 (struct gdb_exception_quit): Add constructor.
5994
5995 2019-04-08 Tom Tromey <tom@tromey.com>
5996
5997 * common/common-exceptions.h (exception_rethrow): Don't declare.
5998 (TRY_SJLJ): Update comment.
5999 (TRY, CATCH, END_CATCH): Remove.
6000 * common/common-exceptions.c (exception_rethrow): Remove.
6001
6002 2019-04-08 Tom Tromey <tom@tromey.com>
6003
6004 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
6005 Remove.
6006 (gdb_exception_error): Rename from
6007 gdb_exception_RETURN_MASK_ERROR.
6008 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
6009 (gdb_quit_bad_alloc): Update.
6010 * aarch64-tdep.c: Update.
6011 * ada-lang.c: Update.
6012 * ada-typeprint.c: Update.
6013 * ada-valprint.c: Update.
6014 * amd64-tdep.c: Update.
6015 * arch-utils.c: Update.
6016 * break-catch-throw.c: Update.
6017 * breakpoint.c: Update.
6018 * btrace.c: Update.
6019 * c-varobj.c: Update.
6020 * cli/cli-cmds.c: Update.
6021 * cli/cli-interp.c: Update.
6022 * cli/cli-script.c: Update.
6023 * common/common-exceptions.c: Update.
6024 * common/new-op.c: Update.
6025 * common/selftest.c: Update.
6026 * compile/compile-c-symbols.c: Update.
6027 * compile/compile-cplus-symbols.c: Update.
6028 * compile/compile-object-load.c: Update.
6029 * compile/compile-object-run.c: Update.
6030 * completer.c: Update.
6031 * corelow.c: Update.
6032 * cp-abi.c: Update.
6033 * cp-support.c: Update.
6034 * cp-valprint.c: Update.
6035 * darwin-nat.c: Update.
6036 * disasm-selftests.c: Update.
6037 * dtrace-probe.c: Update.
6038 * dwarf-index-cache.c: Update.
6039 * dwarf-index-write.c: Update.
6040 * dwarf2-frame-tailcall.c: Update.
6041 * dwarf2-frame.c: Update.
6042 * dwarf2loc.c: Update.
6043 * dwarf2read.c: Update.
6044 * eval.c: Update.
6045 * event-loop.c: Update.
6046 * event-top.c: Update.
6047 * exec.c: Update.
6048 * f-valprint.c: Update.
6049 * fbsd-tdep.c: Update.
6050 * frame-unwind.c: Update.
6051 * frame.c: Update.
6052 * gdbtypes.c: Update.
6053 * gnu-v3-abi.c: Update.
6054 * guile/guile-internal.h: Update.
6055 * guile/scm-block.c: Update.
6056 * guile/scm-breakpoint.c: Update.
6057 * guile/scm-cmd.c: Update.
6058 * guile/scm-disasm.c: Update.
6059 * guile/scm-frame.c: Update.
6060 * guile/scm-lazy-string.c: Update.
6061 * guile/scm-math.c: Update.
6062 * guile/scm-param.c: Update.
6063 * guile/scm-ports.c: Update.
6064 * guile/scm-pretty-print.c: Update.
6065 * guile/scm-symbol.c: Update.
6066 * guile/scm-symtab.c: Update.
6067 * guile/scm-type.c: Update.
6068 * guile/scm-value.c: Update.
6069 * i386-linux-tdep.c: Update.
6070 * i386-tdep.c: Update.
6071 * inf-loop.c: Update.
6072 * infcall.c: Update.
6073 * infcmd.c: Update.
6074 * infrun.c: Update.
6075 * jit.c: Update.
6076 * language.c: Update.
6077 * linespec.c: Update.
6078 * linux-fork.c: Update.
6079 * linux-nat.c: Update.
6080 * linux-tdep.c: Update.
6081 * linux-thread-db.c: Update.
6082 * main.c: Update.
6083 * mi/mi-cmd-break.c: Update.
6084 * mi/mi-cmd-stack.c: Update.
6085 * mi/mi-interp.c: Update.
6086 * mi/mi-main.c: Update.
6087 * objc-lang.c: Update.
6088 * p-valprint.c: Update.
6089 * parse.c: Update.
6090 * ppc-linux-tdep.c: Update.
6091 * printcmd.c: Update.
6092 * python/py-arch.c: Update.
6093 * python/py-breakpoint.c: Update.
6094 * python/py-cmd.c: Update.
6095 * python/py-finishbreakpoint.c: Update.
6096 * python/py-frame.c: Update.
6097 * python/py-framefilter.c: Update.
6098 * python/py-gdb-readline.c: Update.
6099 * python/py-inferior.c: Update.
6100 * python/py-infthread.c: Update.
6101 * python/py-lazy-string.c: Update.
6102 * python/py-linetable.c: Update.
6103 * python/py-objfile.c: Update.
6104 * python/py-param.c: Update.
6105 * python/py-prettyprint.c: Update.
6106 * python/py-progspace.c: Update.
6107 * python/py-record-btrace.c: Update.
6108 * python/py-record.c: Update.
6109 * python/py-symbol.c: Update.
6110 * python/py-type.c: Update.
6111 * python/py-unwind.c: Update.
6112 * python/py-utils.c: Update.
6113 * python/py-value.c: Update.
6114 * python/python.c: Update.
6115 * record-btrace.c: Update.
6116 * record-full.c: Update.
6117 * remote-fileio.c: Update.
6118 * remote.c: Update.
6119 * riscv-tdep.c: Update.
6120 * rs6000-aix-tdep.c: Update.
6121 * rs6000-tdep.c: Update.
6122 * rust-exp.y: Update.
6123 * rust-lang.c: Update.
6124 * s390-tdep.c: Update.
6125 * selftest-arch.c: Update.
6126 * solib-dsbt.c: Update.
6127 * solib-frv.c: Update.
6128 * solib-spu.c: Update.
6129 * solib-svr4.c: Update.
6130 * solib.c: Update.
6131 * sparc64-linux-tdep.c: Update.
6132 * stack.c: Update.
6133 * symfile-mem.c: Update.
6134 * symmisc.c: Update.
6135 * target.c: Update.
6136 * thread.c: Update.
6137 * top.c: Update.
6138 * tracefile-tfile.c: Update.
6139 * tui/tui.c: Update.
6140 * typeprint.c: Update.
6141 * unittests/cli-utils-selftests.c: Update.
6142 * unittests/parse-connection-spec-selftests.c: Update.
6143 * valops.c: Update.
6144 * valprint.c: Update.
6145 * value.c: Update.
6146 * varobj.c: Update.
6147 * windows-nat.c: Update.
6148 * x86-linux-nat.c: Update.
6149 * xml-support.c: Update.
6150
6151 2019-04-08 Tom Tromey <tom@tromey.com>
6152
6153 * xml-support.c: Use C++ exception handling.
6154 * x86-linux-nat.c: Use C++ exception handling.
6155 * windows-nat.c: Use C++ exception handling.
6156 * varobj.c: Use C++ exception handling.
6157 * value.c: Use C++ exception handling.
6158 * valprint.c: Use C++ exception handling.
6159 * valops.c: Use C++ exception handling.
6160 * unittests/parse-connection-spec-selftests.c: Use C++ exception
6161 handling.
6162 * unittests/cli-utils-selftests.c: Use C++ exception handling.
6163 * typeprint.c: Use C++ exception handling.
6164 * tui/tui.c: Use C++ exception handling.
6165 * tracefile-tfile.c: Use C++ exception handling.
6166 * top.c: Use C++ exception handling.
6167 * thread.c: Use C++ exception handling.
6168 * target.c: Use C++ exception handling.
6169 * symmisc.c: Use C++ exception handling.
6170 * symfile-mem.c: Use C++ exception handling.
6171 * stack.c: Use C++ exception handling.
6172 * sparc64-linux-tdep.c: Use C++ exception handling.
6173 * solib.c: Use C++ exception handling.
6174 * solib-svr4.c: Use C++ exception handling.
6175 * solib-spu.c: Use C++ exception handling.
6176 * solib-frv.c: Use C++ exception handling.
6177 * solib-dsbt.c: Use C++ exception handling.
6178 * selftest-arch.c: Use C++ exception handling.
6179 * s390-tdep.c: Use C++ exception handling.
6180 * rust-lang.c: Use C++ exception handling.
6181 * rust-exp.y: Use C++ exception handling.
6182 * rs6000-tdep.c: Use C++ exception handling.
6183 * rs6000-aix-tdep.c: Use C++ exception handling.
6184 * riscv-tdep.c: Use C++ exception handling.
6185 * remote.c: Use C++ exception handling.
6186 * remote-fileio.c: Use C++ exception handling.
6187 * record-full.c: Use C++ exception handling.
6188 * record-btrace.c: Use C++ exception handling.
6189 * python/python.c: Use C++ exception handling.
6190 * python/py-value.c: Use C++ exception handling.
6191 * python/py-utils.c: Use C++ exception handling.
6192 * python/py-unwind.c: Use C++ exception handling.
6193 * python/py-type.c: Use C++ exception handling.
6194 * python/py-symbol.c: Use C++ exception handling.
6195 * python/py-record.c: Use C++ exception handling.
6196 * python/py-record-btrace.c: Use C++ exception handling.
6197 * python/py-progspace.c: Use C++ exception handling.
6198 * python/py-prettyprint.c: Use C++ exception handling.
6199 * python/py-param.c: Use C++ exception handling.
6200 * python/py-objfile.c: Use C++ exception handling.
6201 * python/py-linetable.c: Use C++ exception handling.
6202 * python/py-lazy-string.c: Use C++ exception handling.
6203 * python/py-infthread.c: Use C++ exception handling.
6204 * python/py-inferior.c: Use C++ exception handling.
6205 * python/py-gdb-readline.c: Use C++ exception handling.
6206 * python/py-framefilter.c: Use C++ exception handling.
6207 * python/py-frame.c: Use C++ exception handling.
6208 * python/py-finishbreakpoint.c: Use C++ exception handling.
6209 * python/py-cmd.c: Use C++ exception handling.
6210 * python/py-breakpoint.c: Use C++ exception handling.
6211 * python/py-arch.c: Use C++ exception handling.
6212 * printcmd.c: Use C++ exception handling.
6213 * ppc-linux-tdep.c: Use C++ exception handling.
6214 * parse.c: Use C++ exception handling.
6215 * p-valprint.c: Use C++ exception handling.
6216 * objc-lang.c: Use C++ exception handling.
6217 * mi/mi-main.c: Use C++ exception handling.
6218 * mi/mi-interp.c: Use C++ exception handling.
6219 * mi/mi-cmd-stack.c: Use C++ exception handling.
6220 * mi/mi-cmd-break.c: Use C++ exception handling.
6221 * main.c: Use C++ exception handling.
6222 * linux-thread-db.c: Use C++ exception handling.
6223 * linux-tdep.c: Use C++ exception handling.
6224 * linux-nat.c: Use C++ exception handling.
6225 * linux-fork.c: Use C++ exception handling.
6226 * linespec.c: Use C++ exception handling.
6227 * language.c: Use C++ exception handling.
6228 * jit.c: Use C++ exception handling.
6229 * infrun.c: Use C++ exception handling.
6230 * infcmd.c: Use C++ exception handling.
6231 * infcall.c: Use C++ exception handling.
6232 * inf-loop.c: Use C++ exception handling.
6233 * i386-tdep.c: Use C++ exception handling.
6234 * i386-linux-tdep.c: Use C++ exception handling.
6235 * guile/scm-value.c: Use C++ exception handling.
6236 * guile/scm-type.c: Use C++ exception handling.
6237 * guile/scm-symtab.c: Use C++ exception handling.
6238 * guile/scm-symbol.c: Use C++ exception handling.
6239 * guile/scm-pretty-print.c: Use C++ exception handling.
6240 * guile/scm-ports.c: Use C++ exception handling.
6241 * guile/scm-param.c: Use C++ exception handling.
6242 * guile/scm-math.c: Use C++ exception handling.
6243 * guile/scm-lazy-string.c: Use C++ exception handling.
6244 * guile/scm-frame.c: Use C++ exception handling.
6245 * guile/scm-disasm.c: Use C++ exception handling.
6246 * guile/scm-cmd.c: Use C++ exception handling.
6247 * guile/scm-breakpoint.c: Use C++ exception handling.
6248 * guile/scm-block.c: Use C++ exception handling.
6249 * guile/guile-internal.h: Use C++ exception handling.
6250 * gnu-v3-abi.c: Use C++ exception handling.
6251 * gdbtypes.c: Use C++ exception handling.
6252 * frame.c: Use C++ exception handling.
6253 * frame-unwind.c: Use C++ exception handling.
6254 * fbsd-tdep.c: Use C++ exception handling.
6255 * f-valprint.c: Use C++ exception handling.
6256 * exec.c: Use C++ exception handling.
6257 * event-top.c: Use C++ exception handling.
6258 * event-loop.c: Use C++ exception handling.
6259 * eval.c: Use C++ exception handling.
6260 * dwarf2read.c: Use C++ exception handling.
6261 * dwarf2loc.c: Use C++ exception handling.
6262 * dwarf2-frame.c: Use C++ exception handling.
6263 * dwarf2-frame-tailcall.c: Use C++ exception handling.
6264 * dwarf-index-write.c: Use C++ exception handling.
6265 * dwarf-index-cache.c: Use C++ exception handling.
6266 * dtrace-probe.c: Use C++ exception handling.
6267 * disasm-selftests.c: Use C++ exception handling.
6268 * darwin-nat.c: Use C++ exception handling.
6269 * cp-valprint.c: Use C++ exception handling.
6270 * cp-support.c: Use C++ exception handling.
6271 * cp-abi.c: Use C++ exception handling.
6272 * corelow.c: Use C++ exception handling.
6273 * completer.c: Use C++ exception handling.
6274 * compile/compile-object-run.c: Use C++ exception handling.
6275 * compile/compile-object-load.c: Use C++ exception handling.
6276 * compile/compile-cplus-symbols.c: Use C++ exception handling.
6277 * compile/compile-c-symbols.c: Use C++ exception handling.
6278 * common/selftest.c: Use C++ exception handling.
6279 * common/new-op.c: Use C++ exception handling.
6280 * cli/cli-script.c: Use C++ exception handling.
6281 * cli/cli-interp.c: Use C++ exception handling.
6282 * cli/cli-cmds.c: Use C++ exception handling.
6283 * c-varobj.c: Use C++ exception handling.
6284 * btrace.c: Use C++ exception handling.
6285 * breakpoint.c: Use C++ exception handling.
6286 * break-catch-throw.c: Use C++ exception handling.
6287 * arch-utils.c: Use C++ exception handling.
6288 * amd64-tdep.c: Use C++ exception handling.
6289 * ada-valprint.c: Use C++ exception handling.
6290 * ada-typeprint.c: Use C++ exception handling.
6291 * ada-lang.c: Use C++ exception handling.
6292 * aarch64-tdep.c: Use C++ exception handling.
6293
6294 2019-04-08 Tom Tromey <tom@tromey.com>
6295
6296 * xml-support.c (gdb_xml_parser::parse): Update.
6297 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
6298 * value.c (show_convenience): Update.
6299 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
6300 (test_parse_flags_qcs): Update.
6301 * thread.c (thr_try_catch_cmd): Update.
6302 * target.c (target_translate_tls_address): Update.
6303 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
6304 (info_frame_command_core, frame_apply_command_count): Update.
6305 * rust-exp.y (rust_lex_exception_test): Update.
6306 * riscv-tdep.c (riscv_print_one_register_info): Update.
6307 * remote.c (remote_target::enable_btrace): Update.
6308 * record-btrace.c (record_btrace_enable_warn): Update.
6309 * python/py-utils.c (gdbpy_convert_exception): Update.
6310 * printcmd.c (do_one_display, print_variable_and_value): Update.
6311 * mi/mi-main.c (mi_print_exception): Update.
6312 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
6313 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
6314 * linux-nat.c (linux_nat_target::attach): Update.
6315 * linux-fork.c (class scoped_switch_fork_info): Update.
6316 * infrun.c (displaced_step_prepare): Update.
6317 * infcall.c (call_function_by_hand_dummy): Update.
6318 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
6319 * gnu-v3-abi.c (print_one_vtable): Update.
6320 * frame.c (get_prev_frame_always): Update.
6321 * f-valprint.c (info_common_command_for_block): Update.
6322 * exec.c (try_open_exec_file): Update.
6323 * exceptions.c (print_exception, exception_print)
6324 (exception_fprintf, exception_print_same): Update.
6325 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
6326 * dwarf-index-cache.c (index_cache::store)
6327 (index_cache::lookup_gdb_index): Update.
6328 * darwin-nat.c (maybe_cache_shell): Update.
6329 * cp-valprint.c (cp_print_value_fields): Update.
6330 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
6331 (gcc_cplus_symbol_address): Update.
6332 * compile/compile-c-symbols.c (gcc_convert_symbol)
6333 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
6334 * common/selftest.c: Update.
6335 * common/common-exceptions.h (struct gdb_exception) <message>: Now
6336 a std::string.
6337 (exception_try_scope_entry, exception_try_scope_exit): Don't
6338 declare.
6339 (struct exception_try_scope): Remove.
6340 (TRY): Don't use exception_try_scope.
6341 (struct gdb_exception): Add constructor, operator=.
6342 <what>: New method.
6343 (struct gdb_exception_RETURN_MASK_ALL)
6344 (struct gdb_exception_RETURN_MASK_ERROR)
6345 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
6346 (struct gdb_quit_bad_alloc): Update.
6347 * common/common-exceptions.c (exception_none): Change
6348 initializer.
6349 (struct catcher) <state, exception>: Initialize inline.
6350 <prev>: Remove member.
6351 (current_catcher): Remove.
6352 (catchers): New global.
6353 (exceptions_state_mc_init): Simplify.
6354 (catcher_pop): Remove.
6355 (exceptions_state_mc, exceptions_state_mc_catch): Update.
6356 (try_scope_depth, exception_try_scope_entry)
6357 (exception_try_scope_exit): Remove.
6358 (throw_exception_sjlj): Update.
6359 (exception_messages, exception_messages_size): Remove.
6360 (throw_it): Simplify.
6361 (gdb_exception_sliced_copy): Remove.
6362 (throw_exception_cxx): Update.
6363 * cli/cli-script.c (script_from_file): Update.
6364 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
6365 Update.
6366 * ada-valprint.c (ada_val_print): Update.
6367 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
6368 (create_excep_cond_exprs): Update.
6369
6370 2019-04-08 Tom Tromey <tom@tromey.com>
6371
6372 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
6373 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
6374 (TRY, CATCH, END_CATCH): Remove some definitions.
6375 * common/common-exceptions.c: Don't use GDB_XCPT.
6376 (catcher_list_size): Remove.
6377 (throw_exception, throw_it): Simplify.
6378
6379 2019-04-05 Tom Tromey <tom@tromey.com>
6380
6381 Revert the header-sorting patch.
6382 * ft32-tdep.c: Revert.
6383 * frv-tdep.c: Revert.
6384 * frv-linux-tdep.c: Revert.
6385 * frame.c: Revert.
6386 * frame-unwind.c: Revert.
6387 * frame-base.c: Revert.
6388 * fork-child.c: Revert.
6389 * findvar.c: Revert.
6390 * findcmd.c: Revert.
6391 * filesystem.c: Revert.
6392 * filename-seen-cache.h: Revert.
6393 * filename-seen-cache.c: Revert.
6394 * fbsd-tdep.c: Revert.
6395 * fbsd-nat.h: Revert.
6396 * fbsd-nat.c: Revert.
6397 * f-valprint.c: Revert.
6398 * f-typeprint.c: Revert.
6399 * f-lang.c: Revert.
6400 * extension.h: Revert.
6401 * extension.c: Revert.
6402 * extension-priv.h: Revert.
6403 * expprint.c: Revert.
6404 * exec.h: Revert.
6405 * exec.c: Revert.
6406 * exceptions.c: Revert.
6407 * event-top.c: Revert.
6408 * event-loop.c: Revert.
6409 * eval.c: Revert.
6410 * elfread.c: Revert.
6411 * dwarf2read.h: Revert.
6412 * dwarf2read.c: Revert.
6413 * dwarf2loc.c: Revert.
6414 * dwarf2expr.h: Revert.
6415 * dwarf2expr.c: Revert.
6416 * dwarf2-frame.c: Revert.
6417 * dwarf2-frame-tailcall.c: Revert.
6418 * dwarf-index-write.h: Revert.
6419 * dwarf-index-write.c: Revert.
6420 * dwarf-index-common.c: Revert.
6421 * dwarf-index-cache.h: Revert.
6422 * dwarf-index-cache.c: Revert.
6423 * dummy-frame.c: Revert.
6424 * dtrace-probe.c: Revert.
6425 * disasm.h: Revert.
6426 * disasm.c: Revert.
6427 * disasm-selftests.c: Revert.
6428 * dictionary.c: Revert.
6429 * dicos-tdep.c: Revert.
6430 * demangle.c: Revert.
6431 * dcache.h: Revert.
6432 * dcache.c: Revert.
6433 * darwin-nat.h: Revert.
6434 * darwin-nat.c: Revert.
6435 * darwin-nat-info.c: Revert.
6436 * d-valprint.c: Revert.
6437 * d-namespace.c: Revert.
6438 * d-lang.c: Revert.
6439 * ctf.c: Revert.
6440 * csky-tdep.c: Revert.
6441 * csky-linux-tdep.c: Revert.
6442 * cris-tdep.c: Revert.
6443 * cris-linux-tdep.c: Revert.
6444 * cp-valprint.c: Revert.
6445 * cp-support.c: Revert.
6446 * cp-namespace.c: Revert.
6447 * cp-abi.c: Revert.
6448 * corelow.c: Revert.
6449 * corefile.c: Revert.
6450 * continuations.c: Revert.
6451 * completer.h: Revert.
6452 * completer.c: Revert.
6453 * complaints.c: Revert.
6454 * coffread.c: Revert.
6455 * coff-pe-read.c: Revert.
6456 * cli-out.h: Revert.
6457 * cli-out.c: Revert.
6458 * charset.c: Revert.
6459 * c-varobj.c: Revert.
6460 * c-valprint.c: Revert.
6461 * c-typeprint.c: Revert.
6462 * c-lang.c: Revert.
6463 * buildsym.c: Revert.
6464 * buildsym-legacy.c: Revert.
6465 * build-id.h: Revert.
6466 * build-id.c: Revert.
6467 * btrace.c: Revert.
6468 * bsd-uthread.c: Revert.
6469 * breakpoint.h: Revert.
6470 * breakpoint.c: Revert.
6471 * break-catch-throw.c: Revert.
6472 * break-catch-syscall.c: Revert.
6473 * break-catch-sig.c: Revert.
6474 * blockframe.c: Revert.
6475 * block.c: Revert.
6476 * bfin-tdep.c: Revert.
6477 * bfin-linux-tdep.c: Revert.
6478 * bfd-target.c: Revert.
6479 * bcache.c: Revert.
6480 * ax-general.c: Revert.
6481 * ax-gdb.h: Revert.
6482 * ax-gdb.c: Revert.
6483 * avr-tdep.c: Revert.
6484 * auxv.c: Revert.
6485 * auto-load.c: Revert.
6486 * arm-wince-tdep.c: Revert.
6487 * arm-tdep.c: Revert.
6488 * arm-symbian-tdep.c: Revert.
6489 * arm-pikeos-tdep.c: Revert.
6490 * arm-obsd-tdep.c: Revert.
6491 * arm-nbsd-tdep.c: Revert.
6492 * arm-nbsd-nat.c: Revert.
6493 * arm-linux-tdep.c: Revert.
6494 * arm-linux-nat.c: Revert.
6495 * arm-fbsd-tdep.c: Revert.
6496 * arm-fbsd-nat.c: Revert.
6497 * arm-bsd-tdep.c: Revert.
6498 * arch-utils.c: Revert.
6499 * arc-tdep.c: Revert.
6500 * arc-newlib-tdep.c: Revert.
6501 * annotate.h: Revert.
6502 * annotate.c: Revert.
6503 * amd64-windows-tdep.c: Revert.
6504 * amd64-windows-nat.c: Revert.
6505 * amd64-tdep.c: Revert.
6506 * amd64-sol2-tdep.c: Revert.
6507 * amd64-obsd-tdep.c: Revert.
6508 * amd64-obsd-nat.c: Revert.
6509 * amd64-nbsd-tdep.c: Revert.
6510 * amd64-nbsd-nat.c: Revert.
6511 * amd64-nat.c: Revert.
6512 * amd64-linux-tdep.c: Revert.
6513 * amd64-linux-nat.c: Revert.
6514 * amd64-fbsd-tdep.c: Revert.
6515 * amd64-fbsd-nat.c: Revert.
6516 * amd64-dicos-tdep.c: Revert.
6517 * amd64-darwin-tdep.c: Revert.
6518 * amd64-bsd-nat.c: Revert.
6519 * alpha-tdep.c: Revert.
6520 * alpha-obsd-tdep.c: Revert.
6521 * alpha-nbsd-tdep.c: Revert.
6522 * alpha-mdebug-tdep.c: Revert.
6523 * alpha-linux-tdep.c: Revert.
6524 * alpha-linux-nat.c: Revert.
6525 * alpha-bsd-tdep.c: Revert.
6526 * alpha-bsd-nat.c: Revert.
6527 * aix-thread.c: Revert.
6528 * agent.c: Revert.
6529 * addrmap.c: Revert.
6530 * ada-varobj.c: Revert.
6531 * ada-valprint.c: Revert.
6532 * ada-typeprint.c: Revert.
6533 * ada-tasks.c: Revert.
6534 * ada-lang.c: Revert.
6535 * aarch64-tdep.c: Revert.
6536 * aarch64-ravenscar-thread.c: Revert.
6537 * aarch64-newlib-tdep.c: Revert.
6538 * aarch64-linux-tdep.c: Revert.
6539 * aarch64-linux-nat.c: Revert.
6540 * aarch64-fbsd-tdep.c: Revert.
6541 * aarch64-fbsd-nat.c: Revert.
6542 * aarch32-linux-nat.c: Revert.
6543
6544 2019-04-05 Tom Tromey <tom@tromey.com>
6545
6546 * ft32-tdep.c: Sort headers.
6547 * frv-tdep.c: Sort headers.
6548 * frv-linux-tdep.c: Sort headers.
6549 * frame.c: Sort headers.
6550 * frame-unwind.c: Sort headers.
6551 * frame-base.c: Sort headers.
6552 * fork-child.c: Sort headers.
6553 * findvar.c: Sort headers.
6554 * findcmd.c: Sort headers.
6555 * filesystem.c: Sort headers.
6556 * filename-seen-cache.h: Sort headers.
6557 * filename-seen-cache.c: Sort headers.
6558 * fbsd-tdep.c: Sort headers.
6559 * fbsd-nat.h: Sort headers.
6560 * fbsd-nat.c: Sort headers.
6561 * f-valprint.c: Sort headers.
6562 * f-typeprint.c: Sort headers.
6563 * f-lang.c: Sort headers.
6564 * extension.h: Sort headers.
6565 * extension.c: Sort headers.
6566 * extension-priv.h: Sort headers.
6567 * expprint.c: Sort headers.
6568 * exec.h: Sort headers.
6569 * exec.c: Sort headers.
6570 * exceptions.c: Sort headers.
6571 * event-top.c: Sort headers.
6572 * event-loop.c: Sort headers.
6573 * eval.c: Sort headers.
6574 * elfread.c: Sort headers.
6575 * dwarf2read.h: Sort headers.
6576 * dwarf2read.c: Sort headers.
6577 * dwarf2loc.c: Sort headers.
6578 * dwarf2expr.h: Sort headers.
6579 * dwarf2expr.c: Sort headers.
6580 * dwarf2-frame.c: Sort headers.
6581 * dwarf2-frame-tailcall.c: Sort headers.
6582 * dwarf-index-write.h: Sort headers.
6583 * dwarf-index-write.c: Sort headers.
6584 * dwarf-index-common.c: Sort headers.
6585 * dwarf-index-cache.h: Sort headers.
6586 * dwarf-index-cache.c: Sort headers.
6587 * dummy-frame.c: Sort headers.
6588 * dtrace-probe.c: Sort headers.
6589 * disasm.h: Sort headers.
6590 * disasm.c: Sort headers.
6591 * disasm-selftests.c: Sort headers.
6592 * dictionary.c: Sort headers.
6593 * dicos-tdep.c: Sort headers.
6594 * demangle.c: Sort headers.
6595 * dcache.h: Sort headers.
6596 * dcache.c: Sort headers.
6597 * darwin-nat.h: Sort headers.
6598 * darwin-nat.c: Sort headers.
6599 * darwin-nat-info.c: Sort headers.
6600 * d-valprint.c: Sort headers.
6601 * d-namespace.c: Sort headers.
6602 * d-lang.c: Sort headers.
6603 * ctf.c: Sort headers.
6604 * csky-tdep.c: Sort headers.
6605 * csky-linux-tdep.c: Sort headers.
6606 * cris-tdep.c: Sort headers.
6607 * cris-linux-tdep.c: Sort headers.
6608 * cp-valprint.c: Sort headers.
6609 * cp-support.c: Sort headers.
6610 * cp-namespace.c: Sort headers.
6611 * cp-abi.c: Sort headers.
6612 * corelow.c: Sort headers.
6613 * corefile.c: Sort headers.
6614 * continuations.c: Sort headers.
6615 * completer.h: Sort headers.
6616 * completer.c: Sort headers.
6617 * complaints.c: Sort headers.
6618 * coffread.c: Sort headers.
6619 * coff-pe-read.c: Sort headers.
6620 * cli-out.h: Sort headers.
6621 * cli-out.c: Sort headers.
6622 * charset.c: Sort headers.
6623 * c-varobj.c: Sort headers.
6624 * c-valprint.c: Sort headers.
6625 * c-typeprint.c: Sort headers.
6626 * c-lang.c: Sort headers.
6627 * buildsym.c: Sort headers.
6628 * buildsym-legacy.c: Sort headers.
6629 * build-id.h: Sort headers.
6630 * build-id.c: Sort headers.
6631 * btrace.c: Sort headers.
6632 * bsd-uthread.c: Sort headers.
6633 * breakpoint.h: Sort headers.
6634 * breakpoint.c: Sort headers.
6635 * break-catch-throw.c: Sort headers.
6636 * break-catch-syscall.c: Sort headers.
6637 * break-catch-sig.c: Sort headers.
6638 * blockframe.c: Sort headers.
6639 * block.c: Sort headers.
6640 * bfin-tdep.c: Sort headers.
6641 * bfin-linux-tdep.c: Sort headers.
6642 * bfd-target.c: Sort headers.
6643 * bcache.c: Sort headers.
6644 * ax-general.c: Sort headers.
6645 * ax-gdb.h: Sort headers.
6646 * ax-gdb.c: Sort headers.
6647 * avr-tdep.c: Sort headers.
6648 * auxv.c: Sort headers.
6649 * auto-load.c: Sort headers.
6650 * arm-wince-tdep.c: Sort headers.
6651 * arm-tdep.c: Sort headers.
6652 * arm-symbian-tdep.c: Sort headers.
6653 * arm-pikeos-tdep.c: Sort headers.
6654 * arm-obsd-tdep.c: Sort headers.
6655 * arm-nbsd-tdep.c: Sort headers.
6656 * arm-nbsd-nat.c: Sort headers.
6657 * arm-linux-tdep.c: Sort headers.
6658 * arm-linux-nat.c: Sort headers.
6659 * arm-fbsd-tdep.c: Sort headers.
6660 * arm-fbsd-nat.c: Sort headers.
6661 * arm-bsd-tdep.c: Sort headers.
6662 * arch-utils.c: Sort headers.
6663 * arc-tdep.c: Sort headers.
6664 * arc-newlib-tdep.c: Sort headers.
6665 * annotate.h: Sort headers.
6666 * annotate.c: Sort headers.
6667 * amd64-windows-tdep.c: Sort headers.
6668 * amd64-windows-nat.c: Sort headers.
6669 * amd64-tdep.c: Sort headers.
6670 * amd64-sol2-tdep.c: Sort headers.
6671 * amd64-obsd-tdep.c: Sort headers.
6672 * amd64-obsd-nat.c: Sort headers.
6673 * amd64-nbsd-tdep.c: Sort headers.
6674 * amd64-nbsd-nat.c: Sort headers.
6675 * amd64-nat.c: Sort headers.
6676 * amd64-linux-tdep.c: Sort headers.
6677 * amd64-linux-nat.c: Sort headers.
6678 * amd64-fbsd-tdep.c: Sort headers.
6679 * amd64-fbsd-nat.c: Sort headers.
6680 * amd64-dicos-tdep.c: Sort headers.
6681 * amd64-darwin-tdep.c: Sort headers.
6682 * amd64-bsd-nat.c: Sort headers.
6683 * alpha-tdep.c: Sort headers.
6684 * alpha-obsd-tdep.c: Sort headers.
6685 * alpha-nbsd-tdep.c: Sort headers.
6686 * alpha-mdebug-tdep.c: Sort headers.
6687 * alpha-linux-tdep.c: Sort headers.
6688 * alpha-linux-nat.c: Sort headers.
6689 * alpha-bsd-tdep.c: Sort headers.
6690 * alpha-bsd-nat.c: Sort headers.
6691 * aix-thread.c: Sort headers.
6692 * agent.c: Sort headers.
6693 * addrmap.c: Sort headers.
6694 * ada-varobj.c: Sort headers.
6695 * ada-valprint.c: Sort headers.
6696 * ada-typeprint.c: Sort headers.
6697 * ada-tasks.c: Sort headers.
6698 * ada-lang.c: Sort headers.
6699 * aarch64-tdep.c: Sort headers.
6700 * aarch64-ravenscar-thread.c: Sort headers.
6701 * aarch64-newlib-tdep.c: Sort headers.
6702 * aarch64-linux-tdep.c: Sort headers.
6703 * aarch64-linux-nat.c: Sort headers.
6704 * aarch64-fbsd-tdep.c: Sort headers.
6705 * aarch64-fbsd-nat.c: Sort headers.
6706 * aarch32-linux-nat.c: Sort headers.
6707
6708 2019-04-04 Tom Tromey <tom@tromey.com>
6709
6710 * varobj.c (varobj_create): Update.
6711 * rust-exp.y (struct rust_parser) <update_innermost_block,
6712 lookup_symbol>: New methods.
6713 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
6714 Rename.
6715 (rust_parser::rust_lookup_type)
6716 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
6717 * printcmd.c (display_command, do_one_display): Update.
6718 * parser-defs.h (struct parser_state) <parser_state>: Add
6719 "tracker" parameter.
6720 (block_tracker): New member.
6721 (class innermost_block_tracker) <innermost_block_tracker>: Add
6722 "types" parameter.
6723 <reset>: Remove method.
6724 (innermost_block): Don't declare.
6725 (null_post_parser): Update.
6726 * parse.c (innermost_block): Remove global.
6727 (write_dollar_variable): Update.
6728 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
6729 Remove "tracker_types" parameter.
6730 (parse_expression): Add "tracker" parameter.
6731 (parse_expression_for_completion): Update.
6732 (null_post_parser): Add "tracker" parameter.
6733 * p-exp.y: Update rules.
6734 * m2-exp.y: Update rules.
6735 * language.h (struct language_defn) <la_post_parser>: Add
6736 "tracker" parameter.
6737 * go-exp.y: Update rules.
6738 * f-exp.y: Update rules.
6739 * expression.h (parse_expression, parse_exp_1): Add "tracker"
6740 parameter.
6741 * d-exp.y: Update rules.
6742 * c-exp.y: Update rules.
6743 * breakpoint.c (set_breakpoint_condition): Create an
6744 innermost_block_tracker.
6745 (watch_command_1): Likewise.
6746 * ada-lang.c (resolve): Add "tracker" parameter.
6747 (resolve_subexp): Likewise.
6748 * ada-exp.y (write_var_from_sym): Update.
6749
6750 2019-04-04 Tom Tromey <tom@tromey.com>
6751
6752 * type-stack.h: New file.
6753 * type-stack.c: New file.
6754 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
6755 type-stack.h.
6756 (insert_into_type_stack, insert_type, push_type, push_type_int)
6757 (insert_type_address_space, pop_type, pop_type_int)
6758 (pop_typelist, pop_type_stack, append_type_stack)
6759 (push_type_stack, get_type_stack, push_typelist)
6760 (follow_type_instance_flags, follow_types): Don't declare.
6761 * parse.c (type_stack): Remove global.
6762 (parse_exp_in_context): Update.
6763 (insert_into_type_stack, insert_type, push_type, push_type_int)
6764 (insert_type_address_space, pop_type, pop_type_int)
6765 (pop_typelist, pop_type_stack, append_type_stack)
6766 (push_type_stack, get_type_stack, push_typelist)
6767 (follow_type_instance_flags, follow_types): Remove (moved to
6768 type-stack.c).
6769 * f-exp.y (type_stack): New global.
6770 Update rules.
6771 (push_kind_type, f_parse): Update.
6772 * d-exp.y (type_stack): New global.
6773 Update rules.
6774 (d_parse): Update.
6775 * c-exp.y (struct c_parse_state) <type_stack>: New member.
6776 Update rules.
6777 * Makefile.in (COMMON_SFILES): Add type-stack.c.
6778 (HFILES_NO_SRCDIR): Add type-stack.h.
6779
6780 2019-04-04 Tom Tromey <tom@tromey.com>
6781
6782 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
6783 (rust_parser::convert_ast_to_expression, rust_parse)
6784 (rust_lex_test_completion, rust_lex_tests): Update.
6785 * parser-defs.h (struct expr_completion_state): New.
6786 (struct parser_state) <parser_state>: Add completion parameter.
6787 <mark_struct_expression, mark_completion_tag>: New methods.
6788 <parse_completion, m_completion_state>: New members.
6789 (prefixify_expression, null_post_parser): Update.
6790 (mark_struct_expression, mark_completion_tag): Don't declare.
6791 * parse.c (parse_completion, expout_last_struct)
6792 (expout_tag_completion_type, expout_completion_name): Remove
6793 globals.
6794 (parser_state::mark_struct_expression)
6795 (parser_state::mark_completion_tag): Now methods.
6796 (prefixify_expression): Add last_struct parameter.
6797 (prefixify_subexp): Likewise.
6798 (parse_exp_1): Update.
6799 (parse_exp_in_context): Add cstate parameter. Update.
6800 (parse_expression_for_completion): Create an
6801 expr_completion_state.
6802 (null_post_parser): Add "completion" parameter.
6803 * p-exp.y: Update rules.
6804 (yylex): Update.
6805 * language.h (struct language_defn) <la_post_parser>: Add
6806 "completing" parameter.
6807 * go-exp.y: Update rules.
6808 (lex_one_token): Update.
6809 * expression.h (parse_completion): Don't declare.
6810 * d-exp.y: Update rules.
6811 (lex_one_token): Update rules.
6812 * c-exp.y: Update rules.
6813 (lex_one_token): Update.
6814 * ada-lang.c (resolve): Add "parse_completion" parameter.
6815 (resolve_subexp): Likewise.
6816 (ada_resolve_function): Likewise.
6817
6818 2019-04-04 Tom Tromey <tom@tromey.com>
6819
6820 * parser-defs.h (struct parser_state) <start_arglist,
6821 end_arglist>: New methods.
6822 <arglist_len, m_funcall_chain>: New members.
6823 (arglist_len, start_arglist, end_arglist): Don't declare.
6824 * parse.c (arglist_len, funcall_chain): Remove global.
6825 (start_arglist, end_arglist): Remove functions.
6826 (parse_exp_in_context): Update.
6827 * p-exp.y: Update rules.
6828 * m2-exp.y: Update rules.
6829 * go-exp.y: Update rules.
6830 * f-exp.y: Update rules.
6831 * d-exp.y: Update rules.
6832 * c-exp.y: Update rules.
6833
6834 2019-04-04 Tom Tromey <tom@tromey.com>
6835
6836 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
6837 lex_operator, push_back>: New methods.
6838 Update all rules.
6839 (rust_parser::lex_hex, lex_escape): Rename and update.
6840 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
6841 (rust_parser::lex_operator): Rename and update.
6842 (rust_parser::lex_number, rustyylex, rustyyerror)
6843 (rust_lex_test_init, rust_lex_test_sequence)
6844 (rust_lex_test_push_back, rust_lex_tests): Update.
6845 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
6846 parameter.
6847 <lexptr, prev_lexptr>: New members.
6848 (lexptr, prev_lexptr): Don't declare.
6849 * parse.c (lexptr, prev_lexptr): Remove globals.
6850 (parse_exp_in_context): Update.
6851 * p-exp.y (yylex, yyerror): Update.
6852 * m2-exp.y (parse_number, yylex, yyerror): Update.
6853 * go-exp.y (lex_one_token, yyerror): Update.
6854 * f-exp.y (match_string_literal, yylex, yyerror): Update.
6855 * d-exp.y (lex_one_token, yyerror): Update.
6856 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
6857 (lex_one_token, yyerror): Update.
6858 * ada-lex.l (YY_INPUT): Update.
6859 (rewind_to_char): Update.
6860 * ada-exp.y (yyerror): Update.
6861
6862 2019-04-04 Tom Tromey <tom@tromey.com>
6863
6864 * rust-exp.y (rustyylex, rust_lex_tests): Update.
6865 * parser-defs.h (struct parser_state) <parser_state>: Add new
6866 parameter.
6867 <comma_terminates>: New member.
6868 (comma_terminates): Don't declare global.
6869 * parse.c (comma_terminates): Remove global.
6870 (parse_exp_in_context): Update.
6871 * p-exp.y (yylex): Update.
6872 * m2-exp.y (yylex): Update.
6873 * go-exp.y (lex_one_token): Update.
6874 * f-exp.y (yylex): Update.
6875 * d-exp.y (lex_one_token): Update.
6876 * c-exp.y (lex_one_token): Update.
6877 * ada-lex.l: Update.
6878
6879 2019-04-04 Tom Tromey <tom@tromey.com>
6880
6881 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
6882 (rustyylex, rust_lex_test_init, rust_lex_test_one)
6883 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
6884 * parser-defs.h (paren_depth): Don't declare.
6885 * parse.c (paren_depth): Remove global.
6886 (parse_exp_in_context): Update.
6887 * p-exp.y (paren_depth): New global.
6888 (pascal_parse): Initialize it.
6889 * m2-exp.y (paren_depth): New global.
6890 (m2_parse): Initialize it.
6891 * go-exp.y (paren_depth): New global.
6892 (go_parse): Initialize it.
6893 * f-exp.y (paren_depth): New global.
6894 (f_parse): Initialize it.
6895 * d-exp.y (paren_depth): New global.
6896 (d_parse): Initialize it.
6897 * c-exp.y (paren_depth): New global.
6898 (c_parse): Initialize it.
6899 * ada-lex.l (paren_depth): New global.
6900 (lexer_init): Initialize it.
6901
6902 2019-04-04 Tom Tromey <tom@tromey.com>
6903
6904 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
6905 (rust_parser::convert_ast_to_type)
6906 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
6907 * parser-defs.h (struct parser_state) <parser_state>: Add
6908 parameters. Initialize new members.
6909 <expression_context_block, expression_context_pc>: New members.
6910 * parse.c (expression_context_block, expression_context_pc):
6911 Remove globals.
6912 (parse_exp_in_context): Update.
6913 * p-exp.y: Update all rules.
6914 (yylex): Update.
6915 * m2-exp.y: Update all rules.
6916 (yylex): Update.
6917 * go-exp.y (yylex): Update.
6918 * f-exp.y (yylex): Update.
6919 * d-exp.y: Update all rules.
6920 (yylex): Update.
6921 * c-exp.y: Update all rules.
6922 (lex_one_token, classify_name, yylex, c_parse): Update.
6923 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
6924
6925 2019-04-04 Tom Tromey <tom@tromey.com>
6926
6927 * gdbarch.h, gdbarch.c: Rebuild.
6928 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
6929 * stap-probe.h:
6930 (struct stap_parse_info): Replace "parser_state" with
6931 "expr_builder".
6932 * parser-defs.h (struct expr_builder): Rename from "parser_state".
6933 (parser_state): New class.
6934 * parse.c (expr_builder): Rename.
6935 (expr_builder::release): Rename.
6936 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
6937 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
6938 (write_exp_elt_longcst, write_exp_elt_floatcst)
6939 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
6940 (write_exp_string_vector, write_exp_bitstring)
6941 (write_exp_msymbol, mark_struct_expression)
6942 (write_dollar_variable)
6943 (insert_type_address_space, increase_expout_size): Replace
6944 "parser_state" with "expr_builder".
6945 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
6946 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
6947 "parser_state" with "expr_builder".
6948
6949 2019-04-04 Tom Tromey <tom@tromey.com>
6950
6951 * rust-exp.y: Replace "parse_language" with method call.
6952 * p-exp.y:
6953 (yylex): Replace "parse_language" with method call.
6954 * m2-exp.y:
6955 (yylex): Replace "parse_language" with method call.
6956 * go-exp.y (classify_name): Replace "parse_language" with method
6957 call.
6958 * f-exp.y (yylex): Replace "parse_language" with method call.
6959 * d-exp.y (lex_one_token): Replace "parse_language" with method
6960 call.
6961 * c-exp.y:
6962 (lex_one_token, classify_name, yylex): Replace "parse_language"
6963 with method call.
6964 * ada-exp.y (find_primitive_type, type_char)
6965 (type_system_address): Replace "parse_language" with method call.
6966
6967 2019-04-04 Tom Tromey <tom@tromey.com>
6968
6969 * rust-exp.y: Replace "parse_gdbarch" with method call.
6970 * parse.c (write_dollar_variable, insert_type_address_space):
6971 Replace "parse_gdbarch" with method call.
6972 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
6973 call.
6974 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
6975 call.
6976 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
6977 "parse_gdbarch" with method call.
6978 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
6979 with method call.
6980 * f-exp.y (parse_type, parse_f_type, yylex): Replace
6981 "parse_gdbarch" with method call.
6982 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
6983 "parse_gdbarch" with method call.
6984 * c-exp.y (parse_type, parse_number, classify_name): Replace
6985 "parse_gdbarch" with method call.
6986 * ada-lex.l: Replace "parse_gdbarch" with method call.
6987 * ada-exp.y (parse_type, find_primitive_type, type_char)
6988 (type_system_address): Replace "parse_gdbarch" with method call.
6989
6990 2019-04-04 Tom Tromey <tom@tromey.com>
6991
6992 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
6993 * stap-probe.c (stap_parse_argument): Update.
6994 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
6995 initial_size parameter.
6996 * rust-exp.y (rust_lex_tests): Update.
6997 * parse.c (parser_state): Update.
6998 (parse_exp_in_context): Update.
6999 * parser-defs.h (struct parser_state) <parser_state>: Remove
7000 "initial_size" parameter.
7001
7002 2019-04-04 Tom Tromey <tom@tromey.com>
7003
7004 * parser-defs.h (increase_expout_size): Don't declare.
7005 * parse.c (increase_expout_size): Now static.
7006
7007 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
7008
7009 * gnu-nat.c (gnu_nat_target::wait): Fix
7010 target_waitstatus_to_string call.
7011
7012 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
7013
7014 * eval.c (evaluate_subexp_standard): Handle internal functions
7015 during Fortran function call handling.
7016
7017 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
7018
7019 * NEWS: Mention new internal functions.
7020 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
7021 (read_base_type): Use dwarf2_init_complex_target_type.
7022 * value.c (creal_internal_fn): New function.
7023 (cimag_internal_fn): New function.
7024 (_initialize_values): Register new internal functions.
7025
7026 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7027
7028 * infrun.c (stop_all_threads): If debug_infrun, always
7029 trace the wait status after wait_one, using
7030 target_waitstatus_to_string and target_pid_to_str.
7031 (handle_inferior_event): Replace various trace of
7032 wait status kind by a single trace.
7033 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
7034 wait status kind image by target_waitstatus_to_string.
7035 * target/waitstatus.c (target_waitstatus_to_string): Fix
7036 obsolete comment.
7037
7038 2019-04-01 Tom Tromey <tromey@adacore.com>
7039
7040 PR symtab/23331:
7041 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
7042
7043 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
7044 Pedro Alves <palves@redhat.com>
7045
7046 * top.c (quit_force): Call 'finalize_values'.
7047 * value.c (finalize_values): New function.
7048 * value.h (finalize_values): Declare.
7049
7050 2019-03-30 Eli Zaretskii <eliz@gnu.org>
7051
7052 * NEWS: Announce $_gdb_major and $_gdb_minor.
7053
7054 * top.c (init_gdb_version_vars): New function.
7055 (gdb_init): Call init_gdb_version_vars.
7056
7057 2019-03-29 Tom Tromey <tromey@adacore.com>
7058
7059 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
7060 help text. Remove dead code.
7061
7062 2019-03-29 Keith Seitz <keiths@redhat.com>
7063
7064 From Siddhesh Poyarekar:
7065 * f-lang.h (f77_get_upperbound): Return LONGEST.
7066 (f77_get_lowerbound): Likewise.
7067 * f-typeprint.c (f_type_print_varspec_suffix): Expand
7068 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
7069 print them.
7070 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
7071 plongest to format print it.
7072 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
7073 (f77_get_upperbound): Likewise.
7074 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
7075 LOWER_BOUND to LONGEST.
7076 (f77_create_arrayprint_offset_tbl): Likewise.
7077
7078 2019-03-29 Keith Seitz <keiths@redhat.com>
7079
7080 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
7081 %s/pulongest for TYPE_LENGTH instead of %d in format
7082 strings.
7083 * ada-typerint.c (ada_print_type): Likewise.
7084 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
7085 * compile/compile-c-support.c (generate_register_struct): Likewise.
7086 * gdbtypes.c (recursive_dump_type): Likewise.
7087 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
7088 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
7089 instead of %d in format strings.
7090 * riscv-tdep.c (riscv_type_alignment): Cast second argument
7091 to std::min to ULONGEST.
7092 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
7093 instead of %d in format strings.
7094 * tracepoint.c (info_scope_command): Likewise.
7095 * typeprint.c (print_offset_data::update)
7096 (print_offset_data::finish): Likewise.
7097 * xtensa-tdep.c (xtensa_store_return_value)
7098 (xtensa_push_dummy_call): Likewise.
7099
7100 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
7101
7102 * windows-nat.c (display_selector): Fixed format specifications
7103 for 64-bit Cygwin.
7104
7105 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7106
7107 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
7108
7109 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
7110
7111 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
7112 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
7113 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
7114 (nios2_linux_init_abi): Install it.
7115
7116 2019-03-28 Alan Hayward <alan.hayward@arm.com>
7117
7118 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
7119
7120 2019-03-28 Alan Hayward <alan.hayward@arm.com>
7121
7122 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
7123
7124 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7125 Tom Tromey <tromey@adacore.com>
7126
7127 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
7128
7129 2019-03-26 Joel Brobecker <brobecker@adacore.com>
7130
7131 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
7132 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
7133 method to compute the bounds of range types. Also print "[evaluated]"
7134 if the bounds' values come from a dynamic evaluation.
7135
7136 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
7137
7138 * cp-valprint.c (cp_print_value_fields): Don't print trailing
7139 whitespace when pretty printing is on.
7140
7141 2019-03-26 Alan Hayward <alan.hayward@arm.com>
7142
7143 * ppc-linux-nat.c: Add include.
7144
7145 2019-03-26 Alan Hayward <alan.hayward@arm.com>
7146
7147 * NEWS: Mention AArch64 Pointer Authentication.
7148
7149 2019-03-26 Alan Hayward <alan.hayward@arm.com>
7150
7151 * arm-linux-nat.c: Add include.
7152
7153 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
7154
7155 * source-cache.c (source_cache::get_source_lines): Re-read
7156 fullname after calling open_source_file.
7157
7158 2019-03-25 John Baldwin <jhb@FreeBSD.org>
7159
7160 * NEWS: Mention TLS support for FreeBSD.
7161
7162 2019-03-25 Tom Tromey <tromey@adacore.com>
7163
7164 * minsyms.c (BUNCH_SIZE): Update comment.
7165 (~minimal_symbol_reader): Remove old comment.
7166 (compact_minimal_symbols): Update comment.
7167 (minimal_symbol_reader::install): Remove old comment. Update
7168 other comments.
7169
7170 2019-03-25 Alan Hayward <alan.hayward@arm.com>
7171
7172 * s390-linux-nat.c: Add include.
7173
7174 2019-03-25 Alan Hayward <alan.hayward@arm.com>
7175
7176 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
7177 Call linux_get_hwcap.
7178 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
7179 Likewise.
7180 (aarch64_linux_get_hwcap): Remove function.
7181 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
7182 declaration.
7183 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
7184 linux_get_hwcap.
7185 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
7186 * linux-tdep.c (linux_get_hwcap): Add function.
7187 (linux_get_hwcap2): Likewise.
7188 * linux-tdep.h (linux_get_hwcap): Add declaration.
7189 (linux_get_hwcap2): Likewise.
7190 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
7191 (ppc_linux_get_hwcap2): Likewise.
7192 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
7193 linux_get_hwcap.
7194 (ppc_linux_nat_target::insert_watchpoint): Likewise.
7195 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
7196 (ppc_linux_nat_target::read_description): Likewise.
7197 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
7198 * s390-linux-nat.c: Likewise.
7199 * s390-linux-tdep.c (s390_core_read_description): Likewise.
7200
7201 2019-03-24 Tom Tromey <tom@tromey.com>
7202
7203 * ada-lang.c (standard_lookup): Simplify initialization.
7204 (ada_lookup_symbol_nonlocal): Simplify return.
7205 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
7206 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
7207 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
7208 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
7209 initialization.
7210 * solib.c (solib_global_lookup): Simplify.
7211 * symtab.c (null_block_symbol): Remove.
7212 (symbol_cache_lookup): Simplify returns.
7213 (lookup_language_this): Simplify returns.
7214 (lookup_symbol_aux): Simplify return.
7215 (lookup_local_symbol): Simplify returns.
7216 (lookup_global_symbol_from_objfile): Simplify return.
7217 (lookup_symbol_in_objfile_symtabs)
7218 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
7219 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
7220 (lookup_static_symbol, lookup_global_symbol): Simplify return.
7221 * cp-namespace.c (cp_lookup_bare_symbol)
7222 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
7223 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
7224 (cp_lookup_nested_symbol): Don't use null_block_symbol.
7225 (cp_lookup_symbol_via_imports): Simplify initialization.
7226 (find_symbol_in_baseclass): Likewise.
7227 * symtab.h (null_block_symbol): Remove.
7228 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
7229 (d_lookup_nested_symbol, d_lookup_symbol_imports)
7230 (d_lookup_symbol_module): Likewise.
7231 (find_symbol_in_baseclass): Simplify initialization.
7232
7233 2019-03-24 Tom Tromey <tom@tromey.com>
7234
7235 * expression.h: Don't include symtab.h.
7236 (struct block): Forward declare.
7237
7238 2019-03-24 Tom Tromey <tom@tromey.com>
7239
7240 * c-exp.y (typebase): Remove casts.
7241 * gdbtypes.c (lookup_unsigned_typename, )
7242 (lookup_signed_typename): Remove cast.
7243 * eval.c (parse_to_comma_and_eval): Remove cast.
7244 * parse.c (write_dollar_variable): Remove cast.
7245 * block.h (struct block) <superblock>: Now const.
7246 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
7247 * psymtab.c (psym_map_matching_symbols): Make "block" const.
7248 (map_block): Make "block" const.
7249 * symfile.h (struct quick_symbol_functions)
7250 <map_matching_symbols>: Constify block argument to "callback".
7251 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
7252 const.
7253 (find_pc_sect_compunit_symtab): Make "b" const.
7254 (find_symbol_at_address): Likewise.
7255 (search_symbols): Likewise.
7256 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
7257 (dw2_debug_names_lookup_symbol): Likewise.
7258 (dw2_map_matching_symbols): Update.
7259 * p-valprint.c (pascal_val_print): Remove "block".
7260 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
7261 (aux_add_nonlocal_symbols): Make "block" const.
7262 (resolve_subexp): Remove cast.
7263 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
7264 const.
7265 (iterate_over_file_blocks): Likewise.
7266 * f-exp.y (%union) <bval>: Remove.
7267 * coffread.c (patch_opaque_types): Make "b" const.
7268 * spu-tdep.c (spu_catch_start): Make "block" const.
7269 * c-valprint.c (print_unpacked_pointer): Remove "block".
7270 * symmisc.c (dump_symtab_1): Make "b" const.
7271 (block_depth): Make "block" const.
7272 * d-exp.y (%union) <bval>: Remove.
7273 * cp-support.h (cp_lookup_rtti_type): Update.
7274 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
7275 * psymtab.c (psym_lookup_symbol): Make "block" const.
7276 (maintenance_check_psymtabs): Make "b" const.
7277 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
7278 (enumerate_locals, enumerate_args): Update.
7279 * python/py-symtab.c (stpy_global_block): Make "block" const.
7280 (stpy_static_block): Likewise.
7281 * inline-frame.c (block_starting_point_at): Make "new_block"
7282 const.
7283 * block.c (find_block_in_blockvector): Make return type const.
7284 (blockvector_for_pc_sect): Make "b" const.
7285 (find_block_in_blockvector): Make "b" const.
7286
7287 2019-03-23 Tom Tromey <tom@tromey.com>
7288
7289 * varobj.c (varobj_create): Update.
7290 * symfile.c (clear_symtab_users): Don't reset innermost_block.
7291 * printcmd.c (display_command, do_one_display): Don't reset
7292 innermost_block.
7293 * parser-defs.h (enum innermost_block_tracker_type): Move to
7294 expression.h.
7295 (innermost_block): Update comment.
7296 * parse.c (parse_exp_1): Add tracker_types parameter.
7297 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
7298 tracker_types parameter. Reset innermost_block.
7299 (parse_exp_in_context): Remove.
7300 (parse_expression_for_completion): Update.
7301 * objfiles.c (~objfile): Don't reset expression_context_block or
7302 innermost_block.
7303 * expression.h (enum innermost_block_tracker_type): Move from
7304 parser-defs.h.
7305 (parse_exp_1): Add tracker_types parameter.
7306 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
7307 reset innermost_block.
7308
7309 2019-03-23 Tom Tromey <tom@tromey.com>
7310
7311 * objfiles.h: Include bcache.h.
7312
7313 2019-03-23 Tom Tromey <tom@tromey.com>
7314
7315 * linespec.c (get_current_search_block): Use
7316 scoped_restore_current_language.
7317 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
7318
7319 2019-03-22 Alan Hayward <alan.hayward@arm.com>
7320 Jiong Wang <jiong.wang@arm.com>
7321
7322 * aarch64-linux-tdep.c
7323 (aarch64_linux_iterate_over_regset_sections): Check for pauth
7324 section.
7325 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
7326
7327 2019-03-22 Alan Hayward <alan.hayward@arm.com>
7328 Jiong Wang <jiong.wang@arm.com>
7329
7330 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
7331 instructions.
7332 (aarch64_analyze_prologue_test): Add PACIASP test.
7333 (aarch64_prologue_prev_register): Unmask PC value.
7334
7335 2019-03-22 Alan Hayward <alan.hayward@arm.com>
7336 Jiong Wang <jiong.wang@arm.com>
7337
7338 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
7339 (aarch64_dwarf2_prev_register): Unmask PC value.
7340 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
7341 (aarch64_execute_dwarf_cfa_vendor_op): Check for
7342 DW_CFA_AARCH64_negate_ra_state.
7343 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
7344
7345 2019-03-22 Alan Hayward <alan.hayward@arm.com>
7346 Jiong Wang <jiong.wang@arm.com>
7347
7348 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
7349 registers.
7350 (aarch64_pseudo_register_name): Likewise.
7351 (aarch64_pseudo_register_type): Likewise.
7352 (aarch64_pseudo_register_reggroup_p): Likewise.
7353 (aarch64_gdbarch_init): Add pauth registers.
7354 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
7355 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
7356 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
7357 (struct gdbarch_tdep): Add regnum for ra_state.
7358
7359 2019-03-22 Alan Hayward <alan.hayward@arm.com>
7360 Jiong Wang <jiong.wang@arm.com>
7361
7362 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
7363
7364 2019-03-22 Alan Hayward <alan.hayward@arm.com>
7365 Jiong Wang <jiong.wang@arm.com>
7366
7367 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
7368 function.
7369 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
7370 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
7371 (aarch64_gdbarch_init): Add puth registers.
7372 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
7373 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
7374 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
7375
7376 2019-03-22 Alan Hayward <alan.hayward@arm.com>
7377 Jiong Wang <jiong.wang@arm.com>
7378
7379 * aarch64-linux-nat.c
7380 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
7381 * aarch64-linux-tdep.c
7382 (aarch64_linux_core_read_description): Likewise.
7383 (aarch64_linux_get_hwcap): New function.
7384 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
7385 (aarch64_linux_get_hwcap): New declaration.
7386
7387 2019-03-22 Alan Hayward <alan.hayward@arm.com>
7388 Jiong Wang <jiong.wang@arm.com>
7389
7390 * aarch64-linux-nat.c
7391 (aarch64_linux_nat_target::read_description): Add pauth param.
7392 * aarch64-linux-tdep.c
7393 (aarch64_linux_core_read_description): Likewise.
7394 * aarch64-tdep.c (struct target_desc): Add in pauth.
7395 (aarch64_read_description): Add pauth param.
7396 (aarch64_gdbarch_init): Likewise.
7397 * aarch64-tdep.h (aarch64_read_description): Likewise.
7398 * arch/aarch64.c (aarch64_create_target_description): Likewise.
7399 * arch/aarch64.h (aarch64_create_target_description): Likewise.
7400 * features/Makefile: Add new files.
7401 * features/aarch64-pauth.c: New file.
7402 * features/aarch64-pauth.xml: New file.
7403
7404 2019-03-20 Tom Tromey <tromey@adacore.com>
7405
7406 * infrun.c (handle_inferior_event): Rename from
7407 handle_inferior_event_1. Create a scoped_value_mark.
7408 (handle_inferior_event): Remove.
7409
7410 2019-03-19 Tom Tromey <tromey@adacore.com>
7411
7412 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
7413 * infrun.h (print_stop_event): Add "displays" parameter.
7414 * infrun.c (print_stop_event): Add "displays" parameter.
7415
7416 2019-03-19 Pedro Alves <palves@redhat.com>
7417
7418 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
7419 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
7420 to -1. Fix TABs vs spaces.
7421 (tui_ui_out::tui_ui_out): Don't initialize fields here.
7422 * tui/tui-out.h (tui_ui_out) Add intro comments.
7423 <m_line, m_start_of_line>: In-class initialize, and add describing
7424 comment.
7425
7426 2019-03-18 Alan Hayward <alan.hayward@arm.com>
7427
7428 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
7429 variable names.
7430 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
7431
7432 2019-03-18 Pedro Alves <palves@redhat.com>
7433 Eli Zaretskii <eliz@gnu.org>
7434
7435 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
7436 m_line and m_start_of_line.
7437
7438 2019-03-18 Eli Zaretskii <eliz@gnu.org>
7439
7440 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
7441 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
7442 it returns a newline. This fixes a regression in TU mode, whereby
7443 the next line is output on the same screen line as the user input.
7444
7445 2019-03-18 Tom Tromey <tromey@adacore.com>
7446
7447 * minsyms.c (minimal_symbol_reader::install): Remove call to
7448 obstack_blank.
7449
7450 2019-03-18 Pedro Alves <palves@redhat.com>
7451
7452 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
7453 New globals.
7454 (apply_style): New, factored out from ...
7455 (apply_ansi_escape): ... this. Handle reverse video mode.
7456 (tui_set_reverse_mode): New function.
7457 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
7458 * tui/tui-winsource.c (tui_show_source_line): Use
7459 tui_set_reverse_mode instead of setting A_STANDOUT.
7460 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
7461 New setter methods.
7462
7463 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
7464
7465 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
7466 Handle tabs.
7467
7468 2019-03-18 Tom Tromey <tromey@adacore.com>
7469
7470 * ada-lang.c (empty_array): Add "high" parameter.
7471 (ada_evaluate_subexp): Update.
7472
7473 2019-03-17 Sergei Trofimovich <siarheit@google.com>
7474
7475 * unittests/string_view-selftests.c: Define
7476 _initialize_string_view_selftests unconditionally.
7477
7478 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
7479
7480 PR gdb/24350
7481 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
7482
7483 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
7484
7485 PR gdb/24351
7486 * windows-nat.c (display_selector): Fix format specifiers.
7487
7488 2019-03-17 Eli Zaretskii <eliz@gnu.org>
7489
7490 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
7491 tui_refill_source_window instead of tui_refresh_win, to update the
7492 current execution line. This fixes redisplay of the current line
7493 when stepping through the code with "next" or "step".
7494
7495 2019-03-16 Eli Zaretskii <eliz@gnu.org>
7496
7497 * source-cache.c (source_cache::get_source_lines): Call
7498 find_source_lines to initialize s->nlines. This fixes vertical
7499 scrolling of TUI source window when the DOWN arrow is pressed.
7500
7501 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7502
7503 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
7504 linux-thread-db.c (_initialize_thread_db): Likewise.
7505
7506 2019-03-16 Eli Zaretskii <eliz@gnu.org>
7507
7508 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
7509 wclrtoeol in tui_show_source_line". This reverts changes made in
7510 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
7511
7512 2019-03-15 Tom Tromey <tom@tromey.com>
7513
7514 * symtab.h (struct minimal_symbol): Derive from
7515 general_symbol_info.
7516 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
7517 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
7518 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
7519 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
7520 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
7521 (MSYMBOL_SEARCH_NAME): Update.
7522 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
7523 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
7524 * minsyms.c (minimal_symbol_reader::record_full): Update.
7525
7526 2019-03-15 Tom Tromey <tom@tromey.com>
7527
7528 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
7529
7530 2019-03-15 Tom Tromey <tom@tromey.com>
7531
7532 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
7533 unique_xmalloc_ptr.
7534 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
7535 Update.
7536 * minsyms.c (lookup_minimal_symbol_by_pc_section)
7537 (build_minimal_symbol_hash_tables)
7538 (minimal_symbol_reader::install): Update.
7539
7540 2019-03-15 Tom Tromey <tom@tromey.com>
7541
7542 * symtab.c (create_demangled_names_hash): Update.
7543 (symbol_set_names): Update.
7544 * objfiles.h (struct objfile_per_bfd_storage)
7545 <demangled_names_hash>: Now an htab_up.
7546 * objfiles.c (objfile_per_bfd_storage): Simplify.
7547
7548 2019-03-15 Tom Tromey <tom@tromey.com>
7549
7550 * objfiles.h (struct objfile_per_bfd_storage): Declare
7551 destructor.
7552 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
7553 New.
7554 (get_objfile_bfd_data): Use new. Don't initialize
7555 language_of_main.
7556 (free_objfile_per_bfd_storage): Remove.
7557 (objfile_bfd_data_free, objfile::~objfile): Use delete.
7558
7559 2019-03-15 Tom Tromey <tom@tromey.com>
7560
7561 * symfile.c (reread_symbols): Update.
7562 * objfiles.c (objfile::objfile): Update.
7563 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
7564 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
7565 comment.
7566 (minimal_symbol_reader::install): Update.
7567 (terminate_minimal_symbol_table): Remove.
7568 * jit.c (jit_object_close_impl): Update.
7569
7570 2019-03-15 Tom Tromey <tom@tromey.com>
7571
7572 * minsyms.c (minimal_symbol_reader::record_full): Remove some
7573 initializations.
7574
7575 2019-03-15 Tom Tromey <tom@tromey.com>
7576
7577 * objfiles.h (struct objfile_per_bfd_storage)
7578 <demangled_hash_languages>: Now a bitset.
7579 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
7580 (lookup_minimal_symbol): Update.
7581
7582 2019-03-15 Tom Tromey <tom@tromey.com>
7583
7584 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
7585 Don't return the symbol.
7586 * coffread.c (record_minimal_symbol): Use record_full.
7587
7588 2019-03-14 Eli Zaretskii <eliz@gnu.org>
7589
7590 The MS-Windows port of ncurses fails to switch to a color pair if
7591 one or both of the colors are the implicit default colors. This
7592 change records the default colors when TUI is initialized, and
7593 then specifies them explicitly when a color pair uses the default
7594 colors. This allows color styling in TUI mode on MS-Windows.
7595
7596 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
7597 ncurses_norm_attr.
7598 (tui_initialize_io) [__MINGW32__]: Record the default terminal
7599 colors in ncurses_norm_attr.
7600 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
7601 "none", replace it with the default color recorded in
7602 ncurses_norm_attr.
7603
7604 2019-03-14 Tom Tromey <tromey@adacore.com>
7605
7606 * source-cache.h (class source_cache) <get_source_lines>: Return
7607 std::string.
7608 * source-cache.c (source_cache::extract_lines): Handle case where
7609 first_pos==npos. Return std::string.
7610 (source_cache::get_source_lines): Update.
7611
7612 2019-03-14 Tom Tromey <tromey@adacore.com>
7613
7614 * NEWS: Add item for "style sources" commands.
7615 * source-cache.c (source_cache::get_source_lines): Check
7616 source_styling.
7617 * cli/cli-style.c (source_styling): New global.
7618 (_initialize_cli_style): Add "style sources" commands.
7619 (show_style_sources): New function.
7620 * cli/cli-style.h (source_styling): Declare.
7621
7622 2019-03-14 Pedro Alves <palves@redhat.com>
7623 Tom Tromey <tromey@adacore.com>
7624
7625 * tui/tui-winsource.h (tui_refill_source_window): Declare.
7626 * tui/tui-winsource.c (tui_refill_source_window): New function,
7627 from...
7628 (tui_horizontal_source_scroll): ... here. Move some logic.
7629 * cli/cli-style.c (set_style_enabled): Notify new observable.
7630 * tui/tui-hooks.c (tui_redisplay_source): New function.
7631 (tui_attach_detach_observers): Attach or detach
7632 tui_redisplay_source.
7633 * observable.h (source_styling_changed): New observable.
7634 * observable.c: Define source_styling_changed observable.
7635
7636 2019-03-13 Tom Tromey <tromey@adacore.com>
7637
7638 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
7639 (i386_gnu_nat_target::store_registers): Update.
7640 * target-debug.h (target_debug_print_std_string): New macro.
7641 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
7642 * windows-tdep.c (display_one_tib): Update.
7643 * tui/tui-stack.c (tui_make_status_line): Update.
7644 * top.c (print_inferior_quit_action): Update.
7645 * thread.c (thr_try_catch_cmd): Update.
7646 (add_thread_with_info): Update.
7647 (thread_target_id_str): Update.
7648 (thr_try_catch_cmd): Update.
7649 (thread_command): Update.
7650 (thread_find_command): Update.
7651 * record-btrace.c (record_btrace_target::info_record)
7652 (record_btrace_resume_thread, record_btrace_target::resume)
7653 (record_btrace_cancel_resume, record_btrace_step_thread)
7654 (record_btrace_target::wait, record_btrace_target::wait)
7655 (record_btrace_target::wait, record_btrace_target::stop): Update.
7656 * progspace.c (print_program_space): Update.
7657 * process-stratum-target.c
7658 (process_stratum_target::thread_address_space): Update.
7659 * linux-fork.c (linux_fork_mourn_inferior)
7660 (detach_checkpoint_command, info_checkpoints_command)
7661 (linux_fork_context): Update.
7662 (linux_fork_detach): Update.
7663 (class scoped_switch_fork_info): Update.
7664 (delete_checkpoint_command): Update.
7665 * infrun.c (follow_fork_inferior): Update.
7666 (follow_fork_inferior): Update.
7667 (proceed_after_vfork_done): Update.
7668 (handle_vfork_child_exec_or_exit): Update.
7669 (follow_exec): Update.
7670 (displaced_step_prepare_throw): Update.
7671 (displaced_step_restore): Update.
7672 (start_step_over): Update.
7673 (resume_1): Update.
7674 (clear_proceed_status_thread): Update.
7675 (proceed): Update.
7676 (print_target_wait_results): Update.
7677 (do_target_wait): Update.
7678 (context_switch): Update.
7679 (stop_all_threads): Update.
7680 (restart_threads): Update.
7681 (finish_step_over): Update.
7682 (handle_signal_stop): Update.
7683 (switch_back_to_stepped_thread): Update.
7684 (keep_going_pass_signal): Update.
7685 (print_exited_reason): Update.
7686 (normal_stop): Update.
7687 * inferior.c (inferior_pid_to_str): Change return type.
7688 (print_selected_inferior): Update.
7689 (add_inferior): Update.
7690 (detach_inferior): Update.
7691 * dummy-frame.c (fprint_dummy_frames): Update.
7692 * dcache.c (dcache_info_1): Update.
7693 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
7694 (btrace_fetch, btrace_clear): Update.
7695 * linux-tdep.c (linux_core_pid_to_str): Change return type.
7696 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
7697 type.
7698 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
7699 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
7700 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
7701 * gdbarch.c, gdbarch.h: Rebuild.
7702 * gdbarch.sh (core_pid_to_str): Change return type.
7703 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
7704 return type.
7705 (windows_nat_target::pid_to_str): Change return type.
7706 (windows_delete_thread): Update.
7707 (windows_nat_target::attach): Update.
7708 (windows_nat_target::files_info): Update.
7709 * target-delegates.c: Rebuild.
7710 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
7711 return type.
7712 (sol_thread_target::pid_to_str): Change return type.
7713 * remote.c (class remote_target) <pid_to_str>: Change return
7714 type.
7715 (remote_target::pid_to_str): Change return type.
7716 (extended_remote_target::attach, remote_target::remote_stop_ns)
7717 (remote_target::remote_notif_remove_queued_reply)
7718 (remote_target::push_stop_reply, remote_target::disable_btrace):
7719 Update.
7720 (extended_remote_target::attach): Update.
7721 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
7722 type.
7723 (gdbsim_target::pid_to_str): Change return type.
7724 * ravenscar-thread.c (struct ravenscar_thread_target)
7725 <pid_to_str>: Change return type.
7726 (ravenscar_thread_target::pid_to_str): Change return type.
7727 * procfs.c (class procfs_target) <pid_to_str>: Change return
7728 type.
7729 (procfs_target::pid_to_str): Change return type.
7730 (procfs_target::attach): Update.
7731 (procfs_target::detach): Update.
7732 (procfs_target::fetch_registers): Update.
7733 (procfs_target::store_registers): Update.
7734 (procfs_target::wait): Update.
7735 (procfs_target::files_info): Update.
7736 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
7737 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
7738 return type.
7739 (nto_procfs_target::pid_to_str): Change return type.
7740 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
7741 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
7742 return type.
7743 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
7744 (exit_lwp): Update.
7745 (attach_proc_task_lwp_callback, get_detach_signal)
7746 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
7747 (linux_nat_target::resume, wait_lwp, stop_callback)
7748 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
7749 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
7750 (linux_nat_wait_1, resume_stopped_resumed_lwps)
7751 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
7752 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
7753 type.
7754 (inf_ptrace_target::attach): Update.
7755 (inf_ptrace_target::files_info): Update.
7756 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
7757 type.
7758 (go32_nat_target::pid_to_str): Change return type.
7759 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
7760 (gnu_nat_target::wait): Update.
7761 (gnu_nat_target::wait): Update.
7762 (gnu_nat_target::resume): Update.
7763 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
7764 (fbsd_nat_target::wait): Update.
7765 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
7766 type.
7767 (darwin_nat_target::attach): Update.
7768 * corelow.c (class core_target) <pid_to_str>: Change return type.
7769 (core_target::pid_to_str): Change return type.
7770 * target.c (normal_pid_to_str): Change return type.
7771 (default_pid_to_str): Likewise.
7772 (target_pid_to_str): Change return type.
7773 (target_translate_tls_address): Update.
7774 (target_announce_detach): Update.
7775 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
7776 return type.
7777 (bsd_uthread_target::pid_to_str): Change return type.
7778 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
7779 type.
7780 (bsd_kvm_target::pid_to_str): Change return type.
7781 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
7782 return type.
7783 (aix_thread_target::pid_to_str): Change return type.
7784 * target.h (struct target_ops) <pid_to_str>: Change return type.
7785 (target_pid_to_str, normal_pid_to_str): Likewise.
7786 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
7787 type.
7788 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
7789 type.
7790 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
7791 return type.
7792 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
7793 type.
7794 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
7795 type.
7796 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
7797 return type.
7798
7799 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
7800
7801 * NEWS: Mention that the new default MI version is 3. Mention
7802 changes to the output of commands and events that deal with
7803 multi-location breakpoints.
7804 * breakpoint.c: Include "mi/mi-out.h".
7805 (print_one_breakpoint): Change output syntax if using MI version
7806 >= 3.
7807 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
7808 New.
7809 (mi_multi_location_breakpoint_output_fixed): New.
7810 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
7811 (mi_cmd_fix_multi_location_breakpoint_output): New.
7812 (mi_multi_location_breakpoint_output_fixed): New.
7813 * mi/mi-cmds.c (mi_cmds): Register command
7814 -fix-multi-location-breakpoint-output.
7815 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
7816 interpreter "mi".
7817
7818 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7819
7820 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
7821 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
7822 instantiate mi_ui_out based on interpreter name.
7823 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
7824 * mi/mi-main.c (mi_load_progress): Likewise.
7825
7826 2019-03-12 John Baldwin <jhb@FreeBSD.org>
7827
7828 * NEWS: Combine separate "New targets" sections for 8.3.
7829
7830 2019-03-12 John Baldwin <jhb@FreeBSD.org>
7831
7832 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
7833 (ppcfbsd_init_abi): Install gdbarch
7834 "fetch_tls_load_module_address" and "get_thread_local_address"
7835 methods.
7836
7837 2019-03-12 John Baldwin <jhb@FreeBSD.org>
7838
7839 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
7840 (riscv_fbsd_init_abi): Install gdbarch
7841 "fetch_tls_load_module_address" and "get_thread_local_address"
7842 methods.
7843
7844 2019-03-12 John Baldwin <jhb@FreeBSD.org>
7845
7846 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
7847 (i386fbsd_init_abi): Install gdbarch
7848 "fetch_tls_load_module_address" and "get_thread_local_address"
7849 methods.
7850
7851 2019-03-12 John Baldwin <jhb@FreeBSD.org>
7852
7853 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
7854 (amd64fbsd_init_abi): Install gdbarch
7855 "fetch_tls_load_module_address" and "get_thread_local_address"
7856 methods.
7857
7858 2019-03-12 John Baldwin <jhb@FreeBSD.org>
7859
7860 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
7861 (struct fbsd_pspace_data): New type.
7862 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
7863 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
7864 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
7865 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
7866 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
7867
7868 2019-03-12 John Baldwin <jhb@FreeBSD.org>
7869
7870 * gdbtypes.c (lookup_struct_elt): New function.
7871 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
7872 * gdbtypes.h (struct struct_elt): New type.
7873 (lookup_struct_elt): New prototype.
7874
7875 2019-03-12 John Baldwin <jhb@FreeBSD.org>
7876
7877 * gdbtypes.c (lookup_struct_elt_type): Update comment and
7878 remove disabled code block.
7879
7880 2019-03-12 John Baldwin <jhb@FreeBSD.org>
7881
7882 * gdbarch.sh (get_thread_local_address): New method.
7883 * gdbarch.h, gdbarch.c: Regenerate.
7884 * target.c (target_translate_tls_address): Use
7885 gdbarch_get_thread_local_address if present instead of
7886 target::get_thread_local_address.
7887
7888 2019-03-12 John Baldwin <jhb@FreeBSD.org>
7889
7890 * target.h (target::get_thread_local_address): Update comment.
7891
7892 2019-03-12 John Baldwin <jhb@FreeBSD.org>
7893
7894 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
7895 objfile->separate_debug_objfile_backlink if not NULL.
7896
7897 2019-03-12 John Baldwin <jhb@FreeBSD.org>
7898
7899 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
7900 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
7901 (amd64bsd_store_inferior_registers): Likewise.
7902 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
7903 Enable segment base registers.
7904 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
7905 PT_GETFSBASE and PT_GETGSBASE.
7906 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
7907 PT_SETGSBASE.
7908 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
7909 segment base registers.
7910 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
7911
7912 2019-03-12 John Baldwin <jhb@FreeBSD.org>
7913
7914 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
7915 Update calls to i386_target_description to add 'segments'
7916 parameter.
7917 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
7918 add segment base registers.
7919 * arch/i386.c (i386_create_target_description): Add 'segments'
7920 parameter to enable segment base registers.
7921 * arch/i386.h (i386_create_target_description): Likewise.
7922 * features/i386/32bit-segments.xml: New file.
7923 * features/i386/32bit-segments.c: Generate.
7924 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
7925 call to i386_target_description to add 'segments' parameter.
7926 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
7927 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
7928 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
7929 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
7930 if feature is present.
7931 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
7932 Add 'segments' parameter to call to i386_target_description.
7933 (i386_target_description): Add 'segments' parameter to enable
7934 segment base registers.
7935 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
7936 to call to i386_target_description.
7937 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
7938 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
7939 Define I386_NUM_REGS.
7940 (i386_target_description): Add 'segments' parameter to enable
7941 segment base registers.
7942
7943 2019-03-12 Eli Zaretskii <eliz@gnu.org>
7944
7945 PR/24325
7946 * source-cache.c: #undef open and close, to avoid unresolved
7947 externals during linking.
7948
7949 2019-03-12 Tom Tromey <tromey@adacore.com>
7950
7951 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
7952 const. Add initializers.
7953 (_initialize_remote): Don't initialize ptid globals.
7954
7955 2019-03-12 Pedro Alves <palves@redhat.com>
7956
7957 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
7958
7959 2019-03-12 Pedro Alves <palves@redhat.com>
7960
7961 * cp-name-parser.y (main): Remove unused 'len' variable.
7962
7963 2019-03-12 Tom Tromey <tromey@adacore.com>
7964
7965 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
7966 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
7967
7968 2019-03-12 Tom Tromey <tromey@adacore.com>
7969
7970 * linux-nat.c (iterate_over_lwps): Update.
7971 (stop_callback): Remove parameter.
7972 (stop_wait_callback, detach_callback, resume_set_callback)
7973 (select_singlestep_lwp_callback, set_ignore_sigint)
7974 (status_callback, resumed_callback, resume_clear_callback)
7975 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
7976 data parameter.
7977 (linux_nat_target::detach, linux_nat_target::resume)
7978 (linux_stop_and_wait_all_lwps, select_event_lwp)
7979 (linux_nat_filter_event, linux_nat_wait_1)
7980 (linux_nat_target::kill, linux_nat_target::stop)
7981 (linux_nat_target::stop): Update.
7982 (linux_nat_resume_callback): Change type.
7983 (resume_stopped_resumed_lwps, count_events_callback)
7984 (select_event_lwp_callback): Likewise.
7985 (linux_stop_lwp, linux_nat_stop_lwp): Update.
7986 * arm-linux-nat.c (struct update_registers_data): Remove.
7987 (update_registers_callback): Change type.
7988 (arm_linux_insert_hw_breakpoint1): Update.
7989 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
7990 parameter.
7991 (x86_linux_dr_set_addr): Update.
7992 (x86_linux_dr_set_control): Update.
7993 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
7994 (iterate_over_lwps): Use gdb::function_view.
7995 * nat/aarch64-linux-hw-point.c (struct
7996 aarch64_dr_update_callback_param): Remove.
7997 (debug_reg_change_callback): Change type.
7998 (aarch64_notify_debug_reg_change): Update.
7999 * s390-linux-nat.c (s390_refresh_per_info): Update.
8000
8001 2019-03-11 Tom Tromey <tromey@adacore.com>
8002
8003 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
8004 redundant assignment to "this_cu".
8005
8006 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
8007
8008 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
8009
8010 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
8011
8012 * gdbtypes.c (rank_one_type_parm_set): New function extracted
8013 from...
8014 (rank_one_type): ... this.
8015
8016 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
8017
8018 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
8019 from...
8020 (rank_one_type): ... this.
8021
8022 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
8023
8024 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
8025 from...
8026 (rank_one_type): ... this.
8027
8028 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
8029
8030 * gdbtypes.c (rank_one_type_parm_float): New function extracted
8031 from...
8032 (rank_one_type): ... this.
8033
8034 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
8035
8036 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
8037 from...
8038 (rank_one_type): ... this.
8039
8040 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
8041
8042 * gdbtypes.c (rank_one_type_parm_range): New function extracted
8043 from...
8044 (rank_one_type): ... this.
8045
8046 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
8047
8048 * gdbtypes.c (rank_one_type_parm_char): New function extracted
8049 from...
8050 (rank_one_type): ... this.
8051
8052 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
8053
8054 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
8055 from...
8056 (rank_one_type): ... this.
8057
8058 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
8059
8060 * gdbtypes.c (rank_one_type_parm_int): New function extracted
8061 from...
8062 (rank_one_type): ... this.
8063
8064 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
8065
8066 * gdbtypes.c (rank_one_type_parm_func): New function extracted
8067 from...
8068 (rank_one_type): ... this.
8069
8070 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
8071
8072 * gdbtypes.c (rank_one_type_parm_array): New function extracted
8073 from...
8074 (rank_one_type): ... this.
8075
8076 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
8077
8078 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
8079 from...
8080 (rank_one_type): ... this.
8081
8082 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8083
8084 * inferior.c (initialize_inferiors): Ensure 'help set/show print
8085 inferior-events' shows the example events.
8086
8087 2019-03-08 Eli Zaretskii <eliz@gnu.org>
8088
8089 Support styling on native MS-Windows console
8090
8091 PR/24315
8092 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
8093 on MS-Windows if $TERM is not defined.
8094
8095 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
8096
8097 * posix-hdep.c (gdb_console_fputs):
8098 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
8099 functions.
8100 * ui-file.h (gdb_console_fputs): Add prototype.
8101
8102 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
8103 back to fputs only if the former returns zero.
8104
8105 2019-03-07 Tom Tromey <tom@tromey.com>
8106
8107 * symmisc.c (print_symbol_bcache_statistics): Update.
8108 (print_objfile_statistics): Update.
8109 * symfile.c (allocate_symtab): Update.
8110 * stabsread.c: Don't include bcache.h.
8111 * psymtab.h (struct psymbol_bcache): Don't declare.
8112 (class psymtab_storage) <psymbol_cache>: Now a bcache.
8113 (psymbol_bcache_init, psymbol_bcache_free)
8114 (psymbol_bcache_get_bcache): Don't declare.
8115 * psymtab.c (struct psymbol_bcache): Remove.
8116 (psymtab_storage::psymtab_storage): Update.
8117 (psymtab_storage::~psymtab_storage): Update.
8118 (psymbol_bcache_init, psymbol_bcache_free)
8119 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
8120 (add_psymbol_to_bcache): Update.
8121 (allocate_psymtab): Update.
8122 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
8123 macro_cache>: No longer pointers.
8124 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
8125 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
8126 * macrotab.c (macro_bcache): Update.
8127 * macroexp.c: Don't include bcache.h.
8128 * gdbtypes.c (check_types_worklist): Update.
8129 (types_deeply_equal): Remove TRY/CATCH. Update.
8130 * elfread.c (elf_symtab_read): Update.
8131 * dwarf2read.c: Don't include bcache.h.
8132 * buildsym.c (buildsym_compunit::get_macro_table): Update.
8133 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
8134 (print_bcache_statistics, bcache_memory_used): Don't declare.
8135 (struct bcache): Move from bcache.c. Add constructor, destructor,
8136 methods. Rename all data members.
8137 * bcache.c (struct bcache): Move to bcache.h.
8138 (bcache::expand_hash_table): Rename from expand_hash_table.
8139 (bcache): Remove.
8140 (bcache::insert): Rename from bcache_full.
8141 (bcache::compare): Rename from bcache_compare.
8142 (bcache_xmalloc): Remove.
8143 (bcache::~bcache): Rename from bcache_xfree.
8144 (bcache::print_statistics): Rename from print_bcache_statistics.
8145 (bcache::memory_used): Rename from bcache_memory_used.
8146
8147 2019-03-07 Pedro Alves <palves@redhat.com>
8148
8149 * infrun.c (normal_stop): Also check for
8150 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
8151
8152 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
8153
8154 * f-lang.c (value_from_host_double): Moved to...
8155 * value.c (value_from_host_double): ...here.
8156 * value.h (value_from_host_double): Declare.
8157 * guile/scm-math.c (vlscm_convert_typed_number): Use
8158 value_from_host_double.
8159 (vlscm_convert_number): Likewise.
8160 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
8161 * python/py-value.c (convert_value_from_python): Likewise.
8162
8163 2019-03-06 Tom Tromey <tom@tromey.com>
8164
8165 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
8166
8167 2019-03-06 Tom Tromey <tom@tromey.com>
8168
8169 * utils.h (free_current_contents): Don't declare.
8170 * utils.c (free_current_contents): Remove.
8171
8172 2019-03-06 Tom Tromey <tom@tromey.com>
8173
8174 * top.c (quit_force): Update.
8175 * main.c (captured_command_loop): Update.
8176 * common/new-op.c (operator new): Update.
8177 * common/common-exceptions.c (struct catcher)
8178 <save_cleanup_chain>: Remove member.
8179 (exceptions_state_mc_init): Update.
8180 (exception_try_scope_entry): Return nullptr.
8181 (exception_try_scope_exit, exception_rethrow)
8182 (throw_exception_sjlj, throw_exception_cxx): Update.
8183 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
8184 (all_cleanups, do_cleanups, discard_cleanups)
8185 (discard_final_cleanups, save_cleanups, save_final_cleanups)
8186 (restore_cleanups, restore_final_cleanups): Don't declare.
8187 (do_final_cleanups): Remove parameter.
8188 * common/cleanups.c (cleanup_chain, make_cleanup)
8189 (make_cleanup_dtor, all_cleanups, do_cleanups)
8190 (discard_my_cleanups, discard_cleanups)
8191 (discard_final_cleanups, save_my_cleanups, save_cleanups)
8192 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
8193 (null_cleanup): Remove.
8194 (do_final_cleanups): Remove parameter.
8195
8196 2019-03-06 Tom Tromey <tom@tromey.com>
8197
8198 * remote.c (remote_target::remote_parse_stop_reply): Use
8199 unique_xmalloc_ptr.
8200
8201 2019-03-06 Tom Tromey <tom@tromey.com>
8202
8203 * stabsread.c (struct stabs_field_info): Rename from field_info.
8204 <list, fnlist>: Add initializers.
8205 <obstack>: New member.
8206 (read_member_functions, read_struct_fields, read_baseclasses):
8207 Allocate on obstack. Don't use cleanups.
8208 (read_one_struct_field, read_member_functions, read_struct_fields)
8209 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
8210 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
8211 (read_struct_type): Update.
8212
8213 2019-03-06 Tom Tromey <tom@tromey.com>
8214
8215 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
8216 * common/filestuff.h (make_cleanup_close): Don't declare.
8217 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
8218 Remove.
8219
8220 2019-03-06 Tom Tromey <tom@tromey.com>
8221
8222 * solib-aix.c: Use make_scope_exit.
8223
8224 2019-03-06 Tom Tromey <tom@tromey.com>
8225
8226 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
8227 Use make_scope_exit.
8228
8229 2019-03-06 Tom Tromey <tom@tromey.com>
8230
8231 * solib-svr4.c (disable_probes_interface): Remove parameter.
8232 (svr4_handle_solib_event): Use make_scope_exit.
8233
8234 2019-03-06 Tom Tromey <tom@tromey.com>
8235
8236 * remote.c (struct stop_reply_deleter): Remove.
8237 (stop_reply_up): Update.
8238 (struct stop_reply): Derive from notif_event. Don't typedef.
8239 <regcache>: Now a std::vector.
8240 (stop_reply_xfree): Remove.
8241 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
8242 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
8243 (remote_target::discard_pending_stop_replies): Use delete.
8244 (remote_target::remote_parse_stop_reply): Update.
8245 (remote_target::process_stop_reply): Update.
8246 * remote-notif.h (struct notif_event): Add virtual destructor.
8247 Remove "dtr" member.
8248 (struct notif_client) <alloc_event>: Return a unique_ptr.
8249 (notif_event_xfree): Don't declare.
8250 (notif_event_up): New typedef.
8251 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
8252 (notif_event_xfree, do_notif_event_xfree): Remove.
8253 (remote_notif_state_xfree): Update.
8254
8255 2019-03-06 Tom Tromey <tom@tromey.com>
8256
8257 * infrun.c (displaced_step_clear_cleanup): Now a
8258 forward_scope_exit type.
8259 (displaced_step_prepare_throw): Update.
8260 (displaced_step_fixup): Update.
8261
8262 2019-03-06 Tom Tromey <tom@tromey.com>
8263
8264 * inferior.h (class inferior): Update comment.
8265 * gdbthread.h (class thread_info): Update comment.
8266
8267 2019-03-06 Joel Brobecker <brobecker@adacore.com>
8268 Tom Tromey <tom@tromey.com>
8269
8270 * stabsread.h (struct stab_section_list): Remove.
8271 (coffstab_build_psymtabs): Update.
8272 * dbxread.c (symbuf_sections): Now a std::vector.
8273 (sect_idx): New global.
8274 (fill_symbuf): Update.
8275 (coffstab_build_psymtabs): Change type of stabsects parameter.
8276 Update.
8277 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
8278 std::vector.
8279 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
8280 (coff_locate_sections): Update.
8281 (coff_symfile_read): Remove cleanups. Update.
8282 (init_stringtab): Add storage parameter.
8283 (free_stringtab, free_stringtab_cleanup): Remove.
8284 (init_lineno): Add storage parameter.
8285 (free_linetab, free_linetab_cleanup): Remove.
8286
8287 2019-03-06 Pedro Alves <palves@redhat.com>
8288
8289 * linux-fork.c (fork_info::clobber_regs): Delete.
8290 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
8291 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
8292 comment. Adjust.
8293 (scoped_switch_fork_info::scoped_switch_fork_info)
8294 (checkpoint_command, linux_fork_context): Adjust
8295 fork_save_infrun_state calls.
8296
8297 2019-03-06 Pedro Alves <palves@redhat.com>
8298
8299 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
8300 (inf_has_multiple_threads): Return 'bool' and rewrite using
8301 inferior_info::threads().
8302
8303 2019-03-06 Pedro Alves <palves@redhat.com>
8304
8305 * linux-fork.c: Include <list>.
8306 (fork_list): Now a std::list instance.
8307 (fork_info): Add ctor, dtor, and in-class initialize all fields.
8308 (forks_exist_p, find_last_fork): Adjust.
8309 (new_fork): Delete.
8310 (one_fork_p): New.
8311 (add_fork): Adjust.
8312 (free_fork): Delete, folded into fork_info::~fork_info().
8313 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
8314 Adjust.
8315 (init_fork_list): Delete.
8316 (linux_fork_killall, linux_fork_mourn_inferior)
8317 (linux_fork_detach, info_checkpoints_command): Adjust.
8318 (_initialize_linux_fork): No longer call init_fork_list.
8319
8320 2019-03-06 Pedro Alves <palves@redhat.com>
8321
8322 * linux-fork.c (new_fork): New, split out of ...
8323 (add_fork): ... this. Return void. Move "first fork" special
8324 case from here, to ...
8325 (checkpoint_command): ... here.
8326 * linux-linux.h (add_fork): Return void.
8327
8328 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8329
8330 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
8331
8332 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8333 Chris January <chris.january@arm.com>
8334 David Lecomber <david.lecomber@arm.com>
8335
8336 * f-exp.y: New token, UNOP_INTRINSIC.
8337 (exp): New pattern using UNOP_INTRINSIC token.
8338 (f77_keywords): Add 'abs' keyword.
8339 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
8340 (value_from_host_double): New function.
8341 (evaluate_subexp_f): Support UNOP_ABS.
8342
8343 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8344
8345 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
8346 types.
8347
8348 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8349
8350 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
8351 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
8352 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
8353
8354 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8355
8356 * f-exp.y (convert_to_kind_type): Handle more type kinds.
8357
8358 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8359 Chris January <chris.january@arm.com>
8360
8361 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
8362 * f-exp.y: Define 'KIND' token.
8363 (exp): New pattern for KIND expressions.
8364 (ptype): Handle types with a kind extension.
8365 (direct_abs_decl): Extend to spot kind extensions.
8366 (f77_keywords): Add 'kind' to the list.
8367 (push_kind_type): New function.
8368 (convert_to_kind_type): New function.
8369 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
8370 * parse.c (operator_length_standard): Likewise.
8371 * parser-defs.h (enum type_pieces): Add tp_kind.
8372 * std-operator.def: Add UNOP_KIND.
8373
8374 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8375
8376 * f-exp.y (f_parse): Set yydebug.
8377
8378 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8379
8380 * f-lang.c (evaluate_subexp_f): New function.
8381 (exp_descriptor_f): New global.
8382 (f_language_defn): Use exp_descriptor_f instead of
8383 exp_descriptor_standard.
8384
8385 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8386
8387 * f-exp.y (struct token): Add comments.
8388 (dot_ops): Remove uppercase versions and the end marker.
8389 (f77_keywords): Likewise.
8390 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
8391 entries in the dot_ops array are case insensitive, and use
8392 strncasecmp to compare strings. Also some whitespace cleanup in
8393 this area. Similar for the f77_keywords array, except entries in
8394 this list might be case sensitive.
8395
8396 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8397
8398 * f-exp.y (struct f77_boolean_val): Add comments.
8399 (boolean_values): Remove uppercase versions, and end marker.
8400 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
8401 and use strncasecmp to achieve case insensitivity. Additionally,
8402 perform whitespace cleanup around this code.
8403
8404 2019-03-06 Tom Tromey <tromey@adacore.com>
8405
8406 * remote-sim.c (gdbsim_target_open): Use result of
8407 gdb_argv::release.
8408
8409 2019-03-06 Richard Bunt <richard.bunt@arm.com>
8410 Dirk Schubert <dirk.schubert@arm.com>
8411 Chris January <chris.january@arm.com>
8412
8413 * eval.c (evaluate_subexp_standard): Call Fortran argument
8414 wrapping logic.
8415 * f-lang.c (struct value): A value which can be passed into a
8416 Fortran function call.
8417 (fortran_argument_convert): Wrap Fortran arguments in a pointer
8418 where appropriate.
8419 (struct type): Value ready for a Fortran function call.
8420 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
8421 is needed.
8422 * f-lang.h (fortran_argument_convert): Declaration.
8423 (fortran_preserve_arg_pointer): Declaration.
8424 * infcall.c (value_arg_coerce): Call Fortran argument logic.
8425
8426 2019-03-05 Tom Tromey <tromey@adacore.com>
8427
8428 * python/py-prettyprint.c (print_string_repr): Remove #if.
8429 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
8430
8431 2019-03-05 Tom Tromey <tromey@adacore.com>
8432
8433 * target.c (the_dummy_target): Move later. Change type to
8434 "dummy_target".
8435 (initialize_targets): Don't initialize the_dummy_target.
8436
8437 2019-03-05 Tom Tromey <tromey@adacore.com>
8438
8439 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
8440 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
8441
8442 2019-03-05 Tom Tromey <tromey@adacore.com>
8443
8444 * windows-nat.c (windows_nat_target::attach)
8445 (windows_nat_target::detach): Don't call gdb_flush.
8446 * valprint.c (generic_val_print, val_print, val_print_string):
8447 Don't call gdb_flush.
8448 * utils.c (defaulted_query): Don't call gdb_flush.
8449 * typeprint.c (print_type_scalar): Don't call gdb_flush.
8450 * target.c (target_announce_detach): Don't call gdb_flush.
8451 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
8452 * remote.c (extended_remote_target::attach): Don't call
8453 gdb_flush.
8454 * procfs.c (procfs_target::detach): Don't call gdb_flush.
8455 * printcmd.c (do_examine): Don't call gdb_flush.
8456 (info_display_command): Don't call gdb_flush.
8457 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
8458 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
8459 * memattr.c (info_mem_command): Don't call gdb_flush.
8460 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
8461 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
8462 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
8463 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
8464 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
8465 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
8466 (gnu_nat_target::detach): Don't call gdb_flush.
8467 * f-valprint.c (f_val_print): Don't call gdb_flush.
8468 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
8469 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
8470 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
8471 gdb_flush.
8472 * c-valprint.c (c_val_print): Don't call gdb_flush.
8473 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
8474
8475 2019-03-05 Tom Tromey <tromey@adacore.com>
8476
8477 * varobj.c (update_dynamic_varobj_children): Update.
8478 (install_default_visualizer): Use reset, not release.
8479 * value.c (set_internalvar): Update.
8480 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
8481 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
8482 ATTRIBUTE_UNUSED_RESULT.
8483
8484 2019-03-05 Tom Tromey <tromey@adacore.com>
8485
8486 * remote.c (class scoped_remote_fd) <release>: Add
8487 ATTRIBUTE_UNUSED_RESULT.
8488
8489 2019-03-05 Tom Tromey <tromey@adacore.com>
8490
8491 * macroexp.c (struct macro_buffer) <release>: Add
8492 ATTRIBUTE_UNUSED_RESULT.
8493
8494 2019-03-05 Tom Tromey <tromey@adacore.com>
8495
8496 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
8497 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
8498 ATTRIBUTE_UNUSED_RESULT.
8499
8500 2019-03-05 Tom Tromey <tromey@adacore.com>
8501
8502 * common/scoped_fd.h (class scoped_fd) <release>: Add
8503 ATTRIBUTE_UNUSED_RESULT.
8504
8505 2019-03-05 Tom Tromey <tromey@adacore.com>
8506
8507 * parser-defs.h (struct parser_state) <release>: Add
8508 ATTRIBUTE_UNUSED_RESULT.
8509
8510 2019-03-05 Tom Tromey <tromey@adacore.com>
8511
8512 * utils.h (class gdb_argv) <release>: Add
8513 ATTRIBUTE_UNUSED_RESULT.
8514 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
8515
8516 2019-03-02 Eli Zaretskii <eliz@gnu.org>
8517
8518 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
8519 for-loop range, to avoid compiler warnings.
8520
8521 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
8522 avoid compiler warnings about unused variables.
8523
8524 * NEWS: Mention end of support for native debugging on MS-Windows
8525 before XP.
8526
8527 PR gdb/24292
8528 * common/netstuff.c:
8529 * gdbserver/gdbreplay.c
8530 * gdbserver/remote-utils.c:
8531 * ser-tcp.c:
8532 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
8533 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
8534 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
8535 'getaddrinfo' and 'freeaddrinfo' were not available before
8536 Windows XP, and mingw.org's MinGW headers by default define
8537 _WIN32_WINNT to 0x500.
8538
8539 2019-03-01 Gary Benson <gbenson@redhat.com>
8540
8541 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
8542
8543 2019-02-28 Brian Vandenberg <phantall@gmail.com>
8544 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8545
8546 PR gdb/8527
8547 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
8548 set_sigint_trap, clear_sigint_trap.
8549
8550 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8551
8552 * target.c (target_detach): Clear the regcache and the
8553 frame cache.
8554
8555 2019-02-27 Pedro Alves <palves@redhat.com>
8556
8557 * utils.c (set_screen_size): When we cap the height/width sizes,
8558 tweak the corresponding command variable to show "unlimited":
8559
8560 2019-02-27 Saagar Jha <saagar@saagarjha.com>
8561 Pedro Alves <palves@redhat.com>
8562
8563 * utils.c (set_screen_size): Reduce "infinite" rows and columns
8564 before calling rl_set_screen_size.
8565
8566 2019-02-27 Tom Tromey <tromey@adacore.com>
8567
8568 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
8569 define.
8570 * python/py-value.c: Remove Python 2.4 workaround.
8571 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
8572 workaround.
8573 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
8574 Python 2.4 workaround.
8575 * python/python-internal.h: Remove Python 2.4 comment.
8576 (Py_ssize_t): Don't define.
8577 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
8578 (gdb_Py_DECREF): Remove Python 2.4 workaround.
8579 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
8580 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
8581 * python/python.c (do_start_initialization): Remove Python 2.4
8582 workaround.
8583 * python/py-prettyprint.c (class dummy_python_frame): Remove.
8584 (print_children): Remove Python 2.4 workaround.
8585 * python/py-inferior.c (buffer_procs): Remove Python 2.4
8586 workaround.
8587 (CHARBUFFERPROC_NAME): Remove.
8588 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
8589 Python 2.4 workaround.
8590
8591 2019-02-27 Kevin Buettner <kevinb@redhat.com>
8592
8593 * NEWS: Note minimum Python version.
8594
8595 2019-02-27 Kevin Buettner <kevinb@redhat.com>
8596
8597 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
8598 code from these functions. Remove corresponding ifdefs. Use
8599 Py_buffer_up instead of explicit calls to PyBuffer_Release.
8600 Remove gotos and target of gotos.
8601 (infpy_search_memory): Likewise.
8602
8603 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8604
8605 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
8606 (hppa_gdbarch_init): Don't register deleted functions with
8607 gdbarch.
8608
8609 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8610
8611 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
8612 (h8300_unwind_sp): Delete.
8613 (h8300_dummy_id): Delete.
8614 (h8300_gdbarch_init): Don't register deleted functions with
8615 gdbarch.
8616
8617 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8618
8619 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
8620 (ft32_unwind_pc): Delete.
8621 (ft32_unwind_sp): Delete.
8622 (ft32_gdbarch_init): Don't register deleted functions with
8623 gdbarch.
8624
8625 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8626
8627 * gdb/frv-tdep.c (frv_dummy_id): Delete.
8628 (frv_unwind_pc): Delete.
8629 (frv_unwind_sp): Delete.
8630 (frv_gdbarch_init): Don't register deleted functions with
8631 gdbarch.
8632
8633 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8634
8635 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
8636 (riscv_unwind_pc): Delete.
8637 (riscv_unwind_sp): Delete.
8638 (riscv_gdbarch_init): Don't register deleted functions with
8639 gdbarch.
8640
8641 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8642
8643 * gdb/csky-tdep.c (csky_dummy_id): Delete.
8644 (csky_unwind_pc): Delete.
8645 (csky_unwind_sp): Delete.
8646 (csky_gdbarch_init): Don't register deleted functions with
8647 gdbarch.
8648
8649 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8650
8651 * gdb/cris-tdep.c (cris_dummy_id): Delete.
8652 (cris_unwind_pc): Delete.
8653 (cris_unwind_sp): Delete.
8654 (cris_gdbarch_init): Don't register deleted functions with
8655 gdbarch.
8656
8657 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8658
8659 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
8660 (bfin_unwind_pc): Delete.
8661 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
8662
8663 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8664
8665 * gdb/arm-tdep.c (arm_dummy_id): Delete.
8666 (arm_unwind_pc): Delete.
8667 (arm_unwind_sp): Delete.
8668 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
8669
8670 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8671
8672 * gdb/arc-tdep.c (arc_dummy_id): Delete.
8673 (arc_unwind_pc): Delete.
8674 (arc_unwind_sp): Delete.
8675 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
8676
8677 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8678
8679 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
8680 (alpha_unwind_pc): Delete.
8681 (alpha_gdbarch_init): Don't register deleted functions with
8682 gdbarch.
8683
8684 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8685
8686 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
8687 (aarch64_unwind_pc): Delete.
8688 (aarch64_unwind_sp): Delete.
8689 (aarch64_gdbarch_init): Don't register deleted functions with
8690 gdbarch.
8691
8692 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8693
8694 * gdbtypes.c (type_align): Don't consider static members when
8695 computing structure alignment.
8696
8697 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8698
8699 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
8700 return 0 for other types.
8701 * arch-utils.c (default_type_align): Always return 0.
8702 * gdbarch.h: Regenerate.
8703 * gdbarch.sh (type_align): Extend comment.
8704 * gdbtypes.c (type_align): Add additional comments, always call
8705 gdbarch_type_align before applying the default rules.
8706 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
8707 generic code will then apply a suitable default.
8708 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
8709 types, return 0 for other types.
8710
8711 2019-02-27 Joel Brobecker <brobecker@adacore.com>
8712
8713 * NEWS: Create a new section for the next release branch.
8714 Rename the section of the current branch, now that it has
8715 been cut.
8716
8717 2019-02-27 Joel Brobecker <brobecker@adacore.com>
8718
8719 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
8720 * version.in: Bump version to 8.3.50.DATE-git.
8721
8722 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
8723
8724 * aix-thread.c (ptid_cmp): Remove unused variable.
8725 (get_signaled_thread): Likewise.
8726 (store_regs_user_thread): Likewise.
8727 (store_regs_kernel_thread): Likewise.
8728 (fetch_regs_kernel_thread): Remove shadowed variable.
8729
8730 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
8731
8732 * features/riscv/32bit-cpu.xml: Add register numbers.
8733 * features/riscv/32bit-fpu.c: Regenerate.
8734 * features/riscv/32bit-fpu.xml: Add register numbers.
8735 * features/riscv/64bit-cpu.xml: Add register numbers.
8736 * features/riscv/64bit-fpu.c: Regenerate.
8737 * features/riscv/64bit-fpu.xml: Add register numbers.
8738
8739 2019-02-26 Kevin Buettner <kevinb@redhat.com>
8740
8741 * NEWS: Mention two argument form of gdb.Value constructor.
8742 * python/py-value.c (convert_buffer_and_type_to_value): New
8743 function.
8744 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
8745 Add support for handling an optional second argument. Call
8746 convert_buffer_and_type_to_value as appropriate.
8747 * python/python-internal.h (Py_buffer_deleter): New struct.
8748 (Py_buffer_up): New typedef.
8749
8750 2019-02-25 John Baldwin <jhb@FreeBSD.org>
8751
8752 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
8753 instead of releasing ownership.
8754
8755 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
8756
8757 * dwarf2read.c (open_and_init_dwp_file): Call
8758 elf_numsections instead of bfd_count_sections to initialize
8759 dwp_file->num_sections.
8760
8761 2019-02-25 Tom Tromey <tromey@adacore.com>
8762
8763 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
8764
8765 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
8766
8767 * gcore.in: Add '--readnever' option when invoking GDB.
8768
8769 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
8770
8771 * MAINTAINERS: Update my email address.
8772
8773 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
8774
8775 * build-id.c (build_id_to_debug_bfd_1): New function.
8776 (build_id_to_debug_bfd): Look for separate debug file in
8777 sysroot.
8778
8779 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
8780
8781 * gdbarch.sh: Update the copyright year range that is placed into
8782 generated files.
8783
8784 2019-02-22 Keith Seitz <keiths@redhat.com>
8785
8786 PR symtab/23853
8787 * linespec.c (create_sals_line_offset): Search for the default
8788 symtab's filename instead of its fullname.
8789
8790 2019-02-21 Alan Hayward <alan.hayward@arm.com>
8791
8792 * NEWS: Update style defaults.
8793
8794 2019-02-21 Alan Hayward <alan.hayward@arm.com>
8795
8796 * main.c (captured_main_1): Disable styling in batch mode.
8797
8798 2019-02-20 Tom Tromey <tom@tromey.com>
8799
8800 * symtab.c (symtab_symbol_info): Fix typos.
8801
8802 2019-02-20 Tom Tromey <tromey@adacore.com>
8803
8804 * findcmd.c (_initialize_mem_search): Use upper case for
8805 metasyntactic variables.
8806
8807 2019-02-20 Alan Hayward <alan.hayward@arm.com>
8808
8809 * aarch64-tdep.c (aarch64_add_reggroups): New function.
8810 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
8811
8812 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
8813
8814 * top.h (source_file_name): Change to std::string.
8815 * top.c (source_file_name): Likewise.
8816 (command_line_input): Adjust.
8817 * cli/cli-script.c (script_from_file): Adjust.
8818
8819 2019-02-19 Tom Tromey <tromey@adacore.com>
8820
8821 * ravenscar-thread.c
8822 (ravenscar_thread_target::update_thread_list): Don't call
8823 ada_build_task_list.
8824 * ada-lang.h (ada_build_task_list): Don't declare.
8825 * ada-tasks.c (struct ada_tasks_inferior_data)
8826 <task_list_valid_p>: Now bool.
8827 (read_known_tasks, ada_task_list_changed)
8828 (ada_tasks_invalidate_inferior_data): Update.
8829 (read_known_tasks_array): Return bool.
8830 (read_known_tasks_list): Likewise.
8831 (read_known_tasks): Return void.
8832 (ada_build_task_list): Now static.
8833
8834 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
8835
8836 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
8837 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
8838
8839 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8840
8841 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
8842 variant for ada_tasks_pspace_data_handle and
8843 ada_tasks_inferior_data_handle.
8844 (ada_tasks_pspace_data_cleanup): New function.
8845 (ada_tasks_inferior_data_cleanup): New function.
8846
8847 2019-02-17 Tom Tromey <tom@tromey.com>
8848
8849 * macrotab.h (macro_source_fullname): Return a std::string.
8850 * macrotab.c (macro_include, check_for_redefinition)
8851 (macro_undef, macro_lookup_definition, foreach_macro)
8852 (foreach_macro_in_scope): Update.
8853 (macro_source_fullname): Return a std::string.
8854 * macrocmd.c (show_pp_source_pos): Update.
8855
8856 2019-02-17 Tom Tromey <tom@tromey.com>
8857
8858 * macrocmd.c (show_pp_source_pos): Style the file names.
8859
8860 2019-02-17 Tom Tromey <tom@tromey.com>
8861
8862 PR tui/24197:
8863 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
8864
8865 2019-02-17 Tom Tromey <tom@tromey.com>
8866
8867 * ada-lang.c (user_select_syms): Use filtered printing.
8868 * utils.c (wrap_style): New global.
8869 (desired_style): Remove.
8870 (emit_style_escape): Add stream parameter.
8871 (set_output_style, reset_terminal_style, prompt_for_continue):
8872 Update.
8873 (flush_wrap_buffer): Only flush gdb_stdout.
8874 (wrap_here): Set wrap_style.
8875 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
8876 treat escape sequences as a character. Change when wrap buffer is
8877 flushed.
8878 (fputs_styled): Do not set the output style when the default is
8879 requested.
8880 * ui-style.h (struct ui_file_style) <is_default>: New method.
8881 * source.c (print_source_lines_base): Emit escape sequences in one
8882 piece.
8883
8884 2019-02-17 Joel Brobecker <brobecker@adacore.com>
8885
8886 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
8887 integers and enumeration types.
8888
8889 2019-02-17 Joel Brobecker <brobecker@adacore.com>
8890
8891 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
8892 instead of lookup_symbol_in_language
8893 (do_exact_match): New function.
8894 (ada_get_symbol_name_matcher): Return do_exact_match when
8895 doing a verbatim match.
8896
8897 2019-02-15 Tom Tromey <tromey@adacore.com>
8898
8899 * ravenscar-thread.c (ravenscar_thread_target::resume)
8900 (ravenscar_thread_target::wait): Special case wildcard requests.
8901
8902 2019-02-15 Tom Tromey <tromey@adacore.com>
8903
8904 * ravenscar-thread.c (base_ptid): Remove.
8905 (struct ravenscar_thread_target) <close>: New method.
8906 <m_base_ptid>: New member.
8907 <update_inferior_ptid, active_task, task_is_currently_active,
8908 runtime_initialized>: Declare methods.
8909 <ravenscar_thread_target>: Add constructor.
8910 (ravenscar_thread_target::task_is_currently_active)
8911 (ravenscar_thread_target::update_inferior_ptid)
8912 (ravenscar_runtime_initialized): Rename. Now methods.
8913 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
8914 (ravenscar_thread_target::update_thread_list): Update.
8915 (ravenscar_thread_target::active_task): Now method.
8916 (ravenscar_thread_target::store_registers)
8917 (ravenscar_thread_target::prepare_to_store)
8918 (ravenscar_thread_target::prepare_to_store)
8919 (ravenscar_thread_target::mourn_inferior): Update.
8920 (ravenscar_inferior_created): Use "new" to create target.
8921 (ravenscar_thread_target::get_ada_task_ptid): Update.
8922 (_initialize_ravenscar): Don't initialize base_ptid.
8923 (ravenscar_ops): Remove global.
8924
8925 2019-02-15 Tom Tromey <tromey@adacore.com>
8926
8927 * target.h (push_target): Declare new overload.
8928 * target.c (push_target): New overload, taking an rvalue reference.
8929 * remote.c (remote_target::open_1): Use push_target overload.
8930 * corelow.c (core_target_open): Use push_target overload.
8931
8932 2019-02-15 Tom Tromey <tromey@adacore.com>
8933
8934 * ravenscar-thread.c (is_ravenscar_task)
8935 (ravenscar_task_is_currently_active): Return bool.
8936 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
8937 (_initialize_ravenscar): Remove "(void)".
8938 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
8939 Return bool.
8940
8941 2019-02-15 Tom Tromey <tromey@adacore.com>
8942
8943 * ravenscar-thread.c (ravenscar_runtime_initializer)
8944 (has_ravenscar_runtime, get_running_thread_id)
8945 (ravenscar_thread_target::resume): Fix indentation.
8946
8947 2019-02-15 Tom Tromey <tromey@adacore.com>
8948
8949 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
8950 from ravenscar_arch_ops.
8951 (sparc_ravenscar_ops::fetch_registers)
8952 (sparc_ravenscar_ops::store_registers): Now methods.
8953 (sparc_ravenscar_prepare_to_store): Remove.
8954 (sparc_ravenscar_ops): Redefine.
8955 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
8956 methods and destructor. Remove members.
8957 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
8958 (ravenscar_thread_target::store_registers)
8959 (ravenscar_thread_target::prepare_to_store): Update.
8960 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
8961 Remove.
8962 (struct ppc_ravenscar_powerpc_ops): Derive from
8963 ravenscar_arch_ops.
8964 (ppc_ravenscar_powerpc_ops::fetch_registers)
8965 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
8966 (ppc_ravenscar_powerpc_ops): Redefine.
8967 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
8968 (ppc_ravenscar_e500_ops::fetch_registers)
8969 (ppc_ravenscar_e500_ops::store_registers): Now methods.
8970 (ppc_ravenscar_e500_ops): Redefine.
8971 * aarch64-ravenscar-thread.c
8972 (aarch64_ravenscar_generic_prepare_to_store): Remove.
8973 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
8974 (aarch64_ravenscar_fetch_registers)
8975 (aarch64_ravenscar_store_registers): Now methods.
8976 (aarch64_ravenscar_ops): Redefine.
8977
8978 2019-02-15 Tom Tromey <tromey@adacore.com>
8979
8980 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
8981 (ravenscar_thread_target::stopped_by_hw_breakpoint)
8982 (ravenscar_thread_target::stopped_by_watchpoint)
8983 (ravenscar_thread_target::stopped_data_address)
8984 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
8985
8986 2019-02-15 Tom Tromey <tromey@adacore.com>
8987
8988 * ravenscar-thread.c: Fix some typos.
8989
8990 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8991 Tom Tromey <tromey@adacore.com>
8992
8993 * ada-lang.c (ada_exception_sal): Change addr_string to a
8994 std::string.
8995 (create_ada_exception_catchpoint): Update.
8996
8997 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8998 Tom Tromey <tromey@adacore.com>
8999
9000 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
9001 (bp_location_ops): Remove.
9002 (base_breakpoint_allocate_location): Update.
9003 (free_bp_location): Update.
9004 * ada-lang.c (class ada_catchpoint_location)
9005 <ada_catchpoint_location>: Remove ops parameter.
9006 (ada_catchpoint_location_dtor): Remove.
9007 (ada_catchpoint_location_ops): Remove.
9008 (allocate_location_exception): Update.
9009 * breakpoint.h (struct bp_location_ops): Remove.
9010 (class bp_location) <bp_location>: Remove bp_location_ops
9011 parameter.
9012 <~bp_location>: Add destructor.
9013 <ops>: Remove.
9014
9015 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
9016 Pedro Alves <palves@redhat.com>
9017
9018 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
9019 'PATH_MAX'.
9020
9021 2019-02-14 David Michael <fedora.dm0@gmail.com>
9022 Samuel Thibault <samuel.thibault@gnu.org>
9023 Thomas Schwinge <thomas@codesourcery.com>
9024
9025 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
9026 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
9027
9028 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
9029
9030 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
9031 (check_empty): Use "const char *".
9032
9033 * gnu-nat.c (gnu_nat_target::detach): Instead of
9034 'detach_inferior (pid)' call
9035 'detach_inferior (find_inferior_pid (pid))'.
9036
9037 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
9038 'nat/fork-inferior.o'.
9039 * gnu-nat.c: #include "nat/fork-inferior.h".
9040
9041 * gnu-nat.c (gnu_nat_target::detach): Instead of
9042 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
9043 * gnu-nat.h: #include "inf-child.h".
9044 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
9045 'i386_gnu_nat_target::fetch_registers'.
9046 (gnu_store_registers): Rename/move to
9047 'i386_gnu_nat_target::store_registers'.
9048
9049 * config/i386/nm-i386gnu.h: Don't "#include" any files.
9050 * gnu-nat.h (mach_thread_info): New function.
9051 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
9052
9053 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
9054
9055 2019-02-14 Frederic Konrad <konrad@adacore.com>
9056
9057 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
9058
9059 2019-02-14 Joel Brobecker <brobecker@adacore.com>
9060
9061 * windows-nat.c (windows_add_thread): Add new parameter
9062 "main_thread_p" with default value set to false. Update
9063 function documentation as well as all callers.
9064 (windows_delete_thread): Likewise.
9065 (fake_create_process): Update call to windows_add_thread.
9066 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
9067 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
9068 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
9069 call to windows_delete_thread.
9070
9071 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
9072
9073 * MAINTAINERS: Add Andrew Burgess as global maintainer.
9074
9075 2019-02-12 John Baldwin <jhb@FreeBSD.org>
9076
9077 * symfile.c (find_separate_debug_file): Use canonical path of
9078 sysroot with child_path instead of gdb_sysroot if it is valid.
9079
9080 2019-02-12 John Baldwin <jhb@FreeBSD.org>
9081
9082 * symfile.c (find_separate_debug_file): Use child_path to
9083 determine if an object file is under a sysroot.
9084
9085 2019-02-12 John Baldwin <jhb@FreeBSD.org>
9086
9087 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9088 unittests/child-path-selftests.c.
9089 * common/pathstuff.c (child_path): New function.
9090 * common/pathstuff.h (child_path): New prototype.
9091 * unittests/child-path-selftests.c: New file.
9092
9093 2019-02-12 John Baldwin <jhb@FreeBSD.org>
9094
9095 * symfile.c (find_separate_debug_file): Look for separate debug
9096 files in debug directories under the sysroot.
9097
9098 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9099
9100 * symtab.h (struct minimal_symbol data_p): New const method.
9101 (struct minimal_symbol text_p): Likewise.
9102 * symtab.c (output_source_filename): Use file name style
9103 to print file name.
9104 (print_symbol_info): Likewise.
9105 (print_msymbol_info): Use address style to print addresses.
9106 Use function name style to print executable text symbols.
9107 (expand_symtab_containing_pc): Use data_p.
9108 (find_pc_sect_compunit_symtab): Likewise.
9109
9110 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9111
9112 * breakpoint.c (describe_other_breakpoints): Use address style
9113 to print addresses.
9114 (say_where): Likewise.
9115
9116 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9117
9118 * ada-typeprint.c (print_func_type): Print function name
9119 style to print function name.
9120 * c-typeprint.c (c_print_type_1): Likewise.
9121
9122 2019-02-11 Alan Hayward <alan.hayward@arm.com>
9123
9124 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
9125 for execve.
9126
9127 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9128
9129 * c-exp.y (direct_abs_decl): Use emplace_back to record the
9130 type_stack.
9131
9132 2019-02-10 Joel Brobecker <brobecker@adacore.com>
9133
9134 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
9135 TYPE_CODE_REF types.
9136
9137 2019-02-08 Jim Wilson <jimw@sifive.com>
9138
9139 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
9140 (riscv_linux_fregset): New.
9141 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
9142
9143 2019-02-07 Tom Tromey <tom@tromey.com>
9144
9145 * thread.c (thread_cancel_execution_command): Update.
9146 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
9147 methods.
9148 (struct thread_fsm_ops): Remove.
9149 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
9150 (thread_fsm_should_stop, thread_fsm_return_value)
9151 (thread_fsm_set_finished, thread_fsm_finished_p)
9152 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
9153 Don't declare.
9154 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
9155 * infrun.c (clear_proceed_status_thread)
9156 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
9157 (print_stop_event): Update.
9158 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
9159 Add constructor.
9160 (step_command_fsm_ops): Remove.
9161 (new_step_command_fsm): Remove.
9162 (step_1): Update.
9163 (step_command_fsm::should_stop): Rename from
9164 step_command_fsm_should_stop.
9165 (step_command_fsm::clean_up): Rename from
9166 step_command_fsm_clean_up.
9167 (step_command_fsm::do_async_reply_reason): Rename from
9168 step_command_fsm_async_reply_reason.
9169 (struct until_next_fsm): Inherit from thread_fsm. Add
9170 constructor.
9171 (until_next_fsm_ops): Remove.
9172 (new_until_next_fsm): Remove.
9173 (until_next_fsm::should_stop): Rename from
9174 until_next_fsm_should_stop.
9175 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
9176 (until_next_fsm::do_async_reply_reason): Rename from
9177 until_next_fsm_async_reply_reason.
9178 (struct finish_command_fsm): Inherit from thread_fsm. Add
9179 constructor. Change type of breakpoint.
9180 (finish_command_fsm_ops): Remove.
9181 (new_finish_command_fsm): Remove.
9182 (finish_command_fsm::should_stop): Rename from
9183 finish_command_fsm_should_stop.
9184 (finish_command_fsm::clean_up): Rename from
9185 finish_command_fsm_clean_up.
9186 (finish_command_fsm::return_value): Rename from
9187 finish_command_fsm_return_value.
9188 (finish_command_fsm::do_async_reply_reason): Rename from
9189 finish_command_fsm_async_reply_reason.
9190 (finish_command): Update.
9191 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
9192 Add constructor.
9193 (call_thread_fsm_ops): Remove.
9194 (call_thread_fsm::call_thread_fsm): Rename from
9195 new_call_thread_fsm.
9196 (call_thread_fsm::should_stop): Rename from
9197 call_thread_fsm_should_stop.
9198 (call_thread_fsm::should_notify_stop): Rename from
9199 call_thread_fsm_should_notify_stop.
9200 (run_inferior_call, call_function_by_hand_dummy): Update.
9201 * cli/cli-interp.c (should_print_stop_to_console): Update.
9202 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
9203 Add constructor. Change type of location_breakpoint,
9204 caller_breakpoint.
9205 (until_break_fsm_ops): Remove.
9206 (new_until_break_fsm): Remove.
9207 (until_break_fsm::should_stop): Rename from
9208 until_break_fsm_should_stop.
9209 (until_break_fsm::clean_up): Rename from
9210 until_break_fsm_clean_up.
9211 (until_break_fsm::do_async_reply_reason): Rename from
9212 until_break_fsm_async_reply_reason.
9213 (until_break_command): Update.
9214 * thread-fsm.c: Remove.
9215 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
9216
9217 2019-02-07 Tom Tromey <tom@tromey.com>
9218
9219 * yy-remap.h: Add include guard.
9220 * xtensa-tdep.h: Add include guard.
9221 * xcoffread.h: Rename include guard.
9222 * varobj-iter.h: Add include guard.
9223 * tui/tui.h: Rename include guard.
9224 * tui/tui-winsource.h: Rename include guard.
9225 * tui/tui-wingeneral.h: Rename include guard.
9226 * tui/tui-windata.h: Rename include guard.
9227 * tui/tui-win.h: Rename include guard.
9228 * tui/tui-stack.h: Rename include guard.
9229 * tui/tui-source.h: Rename include guard.
9230 * tui/tui-regs.h: Rename include guard.
9231 * tui/tui-out.h: Rename include guard.
9232 * tui/tui-layout.h: Rename include guard.
9233 * tui/tui-io.h: Rename include guard.
9234 * tui/tui-hooks.h: Rename include guard.
9235 * tui/tui-file.h: Rename include guard.
9236 * tui/tui-disasm.h: Rename include guard.
9237 * tui/tui-data.h: Rename include guard.
9238 * tui/tui-command.h: Rename include guard.
9239 * tic6x-tdep.h: Add include guard.
9240 * target/waitstatus.h: Rename include guard.
9241 * target/wait.h: Rename include guard.
9242 * target/target.h: Rename include guard.
9243 * target/resume.h: Rename include guard.
9244 * target-float.h: Rename include guard.
9245 * stabsread.h: Add include guard.
9246 * rs6000-tdep.h: Add include guard.
9247 * riscv-fbsd-tdep.h: Add include guard.
9248 * regformats/regdef.h: Rename include guard.
9249 * record.h: Rename include guard.
9250 * python/python.h: Rename include guard.
9251 * python/python-internal.h: Rename include guard.
9252 * python/py-stopevent.h: Rename include guard.
9253 * python/py-ref.h: Rename include guard.
9254 * python/py-record.h: Rename include guard.
9255 * python/py-record-full.h: Rename include guard.
9256 * python/py-record-btrace.h: Rename include guard.
9257 * python/py-instruction.h: Rename include guard.
9258 * python/py-events.h: Rename include guard.
9259 * python/py-event.h: Rename include guard.
9260 * procfs.h: Add include guard.
9261 * proc-utils.h: Add include guard.
9262 * p-lang.h: Add include guard.
9263 * or1k-tdep.h: Rename include guard.
9264 * observable.h: Rename include guard.
9265 * nto-tdep.h: Rename include guard.
9266 * nat/x86-linux.h: Rename include guard.
9267 * nat/x86-linux-dregs.h: Rename include guard.
9268 * nat/x86-gcc-cpuid.h: Add include guard.
9269 * nat/x86-dregs.h: Rename include guard.
9270 * nat/x86-cpuid.h: Rename include guard.
9271 * nat/ppc-linux.h: Rename include guard.
9272 * nat/mips-linux-watch.h: Rename include guard.
9273 * nat/linux-waitpid.h: Rename include guard.
9274 * nat/linux-ptrace.h: Rename include guard.
9275 * nat/linux-procfs.h: Rename include guard.
9276 * nat/linux-osdata.h: Rename include guard.
9277 * nat/linux-nat.h: Rename include guard.
9278 * nat/linux-namespaces.h: Rename include guard.
9279 * nat/linux-btrace.h: Rename include guard.
9280 * nat/glibc_thread_db.h: Rename include guard.
9281 * nat/gdb_thread_db.h: Rename include guard.
9282 * nat/gdb_ptrace.h: Rename include guard.
9283 * nat/fork-inferior.h: Rename include guard.
9284 * nat/amd64-linux-siginfo.h: Rename include guard.
9285 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
9286 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
9287 * nat/aarch64-linux.h: Rename include guard.
9288 * nat/aarch64-linux-hw-point.h: Rename include guard.
9289 * mn10300-tdep.h: Add include guard.
9290 * mips-linux-tdep.h: Add include guard.
9291 * mi/mi-parse.h: Rename include guard.
9292 * mi/mi-out.h: Rename include guard.
9293 * mi/mi-main.h: Rename include guard.
9294 * mi/mi-interp.h: Rename include guard.
9295 * mi/mi-getopt.h: Rename include guard.
9296 * mi/mi-console.h: Rename include guard.
9297 * mi/mi-common.h: Rename include guard.
9298 * mi/mi-cmds.h: Rename include guard.
9299 * mi/mi-cmd-break.h: Rename include guard.
9300 * m2-lang.h: Add include guard.
9301 * location.h: Rename include guard.
9302 * linux-record.h: Rename include guard.
9303 * linux-nat.h: Add include guard.
9304 * linux-fork.h: Add include guard.
9305 * i386-darwin-tdep.h: Rename include guard.
9306 * hppa-linux-offsets.h: Add include guard.
9307 * guile/guile.h: Rename include guard.
9308 * guile/guile-internal.h: Rename include guard.
9309 * gnu-nat.h: Rename include guard.
9310 * gdb-stabs.h: Rename include guard.
9311 * frv-tdep.h: Add include guard.
9312 * f-lang.h: Add include guard.
9313 * event-loop.h: Add include guard.
9314 * darwin-nat.h: Rename include guard.
9315 * cp-abi.h: Rename include guard.
9316 * config/sparc/nm-sol2.h: Rename include guard.
9317 * config/nm-nto.h: Rename include guard.
9318 * config/nm-linux.h: Add include guard.
9319 * config/i386/nm-i386gnu.h: Rename include guard.
9320 * config/djgpp/nl_types.h: Rename include guard.
9321 * config/djgpp/langinfo.h: Rename include guard.
9322 * compile/gcc-cp-plugin.h: Add include guard.
9323 * compile/gcc-c-plugin.h: Add include guard.
9324 * compile/compile.h: Rename include guard.
9325 * compile/compile-object-run.h: Rename include guard.
9326 * compile/compile-object-load.h: Rename include guard.
9327 * compile/compile-internal.h: Rename include guard.
9328 * compile/compile-cplus.h: Rename include guard.
9329 * compile/compile-c.h: Rename include guard.
9330 * common/xml-utils.h: Rename include guard.
9331 * common/x86-xstate.h: Rename include guard.
9332 * common/version.h: Rename include guard.
9333 * common/vec.h: Rename include guard.
9334 * common/tdesc.h: Rename include guard.
9335 * common/selftest.h: Rename include guard.
9336 * common/scoped_restore.h: Rename include guard.
9337 * common/scoped_mmap.h: Rename include guard.
9338 * common/scoped_fd.h: Rename include guard.
9339 * common/safe-iterator.h: Rename include guard.
9340 * common/run-time-clock.h: Rename include guard.
9341 * common/refcounted-object.h: Rename include guard.
9342 * common/queue.h: Rename include guard.
9343 * common/ptid.h: Rename include guard.
9344 * common/print-utils.h: Rename include guard.
9345 * common/preprocessor.h: Rename include guard.
9346 * common/pathstuff.h: Rename include guard.
9347 * common/observable.h: Rename include guard.
9348 * common/netstuff.h: Rename include guard.
9349 * common/job-control.h: Rename include guard.
9350 * common/host-defs.h: Rename include guard.
9351 * common/gdb_wait.h: Rename include guard.
9352 * common/gdb_vecs.h: Rename include guard.
9353 * common/gdb_unlinker.h: Rename include guard.
9354 * common/gdb_unique_ptr.h: Rename include guard.
9355 * common/gdb_tilde_expand.h: Rename include guard.
9356 * common/gdb_sys_time.h: Rename include guard.
9357 * common/gdb_string_view.h: Rename include guard.
9358 * common/gdb_splay_tree.h: Rename include guard.
9359 * common/gdb_setjmp.h: Rename include guard.
9360 * common/gdb_ref_ptr.h: Rename include guard.
9361 * common/gdb_optional.h: Rename include guard.
9362 * common/gdb_locale.h: Rename include guard.
9363 * common/gdb_assert.h: Rename include guard.
9364 * common/filtered-iterator.h: Rename include guard.
9365 * common/filestuff.h: Rename include guard.
9366 * common/fileio.h: Rename include guard.
9367 * common/environ.h: Rename include guard.
9368 * common/common-utils.h: Rename include guard.
9369 * common/common-types.h: Rename include guard.
9370 * common/common-regcache.h: Rename include guard.
9371 * common/common-inferior.h: Rename include guard.
9372 * common/common-gdbthread.h: Rename include guard.
9373 * common/common-exceptions.h: Rename include guard.
9374 * common/common-defs.h: Rename include guard.
9375 * common/common-debug.h: Rename include guard.
9376 * common/cleanups.h: Rename include guard.
9377 * common/buffer.h: Rename include guard.
9378 * common/btrace-common.h: Rename include guard.
9379 * common/break-common.h: Rename include guard.
9380 * cli/cli-utils.h: Rename include guard.
9381 * cli/cli-style.h: Rename include guard.
9382 * cli/cli-setshow.h: Rename include guard.
9383 * cli/cli-script.h: Rename include guard.
9384 * cli/cli-interp.h: Rename include guard.
9385 * cli/cli-decode.h: Rename include guard.
9386 * cli/cli-cmds.h: Rename include guard.
9387 * charset-list.h: Add include guard.
9388 * buildsym-legacy.h: Rename include guard.
9389 * bfin-tdep.h: Add include guard.
9390 * ax.h: Rename include guard.
9391 * arm-linux-tdep.h: Add include guard.
9392 * arm-fbsd-tdep.h: Add include guard.
9393 * arch/xtensa.h: Rename include guard.
9394 * arch/tic6x.h: Add include guard.
9395 * arch/i386.h: Add include guard.
9396 * arch/arm.h: Rename include guard.
9397 * arch/arm-linux.h: Rename include guard.
9398 * arch/arm-get-next-pcs.h: Rename include guard.
9399 * arch/amd64.h: Add include guard.
9400 * arch/aarch64-insn.h: Rename include guard.
9401 * arch-utils.h: Rename include guard.
9402 * annotate.h: Add include guard.
9403 * amd64-darwin-tdep.h: Rename include guard.
9404 * aarch64-linux-tdep.h: Add include guard.
9405 * aarch64-fbsd-tdep.h: Add include guard.
9406 * aarch32-linux-nat.h: Add include guard.
9407
9408 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9409
9410 * macrotab.c (macro_define_internal): New function that
9411 factorizes macro_define_object_internal and macro_define_function
9412 code.
9413 (macro_define_object_internal): Use macro_define_internal.
9414 (macro_define_function): Likewise.
9415
9416 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9417
9418 * macrocmd.c (extract_identifier): Return
9419 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
9420 callers.
9421
9422 2019-02-06 John Baldwin <jhb@FreeBSD.org>
9423
9424 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
9425
9426 2019-02-05 Tom Tromey <tom@tromey.com>
9427
9428 * target.c (target_stack::unpush): Move assertion earlier.
9429
9430 2019-01-30 Tom Tromey <tom@tromey.com>
9431
9432 PR python/23615:
9433 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
9434 (gdbpy_parse_and_eval): Likewise.
9435 * python/python-internal.h (gdbpy_allow_threads): New class.
9436
9437 2019-01-28 John Baldwin <jhb@FreeBSD.org>
9438
9439 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
9440 (aarch64_fbsd_fpregmap): Move earlier.
9441 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
9442 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
9443 instead of individual calls to trad_frame_set_reg_addr.
9444 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
9445 earlier.
9446 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
9447 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
9448 instead of individual calls to trad_frame_set_reg_addr.
9449
9450 2019-01-28 Alan Hayward <alan.hayward@arm.com>
9451
9452 * CONTRIBUTE: Replace contribution list with wiki link.
9453
9454 2019-01-25 Tom Tromey <tom@tromey.com>
9455
9456 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
9457
9458 2019-01-25 Tom Tromey <tom@tromey.com>
9459
9460 * xtensa-linux-nat.c: Fix common/ includes.
9461 * xml-support.h: Fix common/ includes.
9462 * xml-support.c: Fix common/ includes.
9463 * x86-linux-nat.c: Fix common/ includes.
9464 * windows-nat.c: Fix common/ includes.
9465 * varobj.h: Fix common/ includes.
9466 * varobj.c: Fix common/ includes.
9467 * value.c: Fix common/ includes.
9468 * valops.c: Fix common/ includes.
9469 * utils.c: Fix common/ includes.
9470 * unittests/xml-utils-selftests.c: Fix common/ includes.
9471 * unittests/utils-selftests.c: Fix common/ includes.
9472 * unittests/unpack-selftests.c: Fix common/ includes.
9473 * unittests/tracepoint-selftests.c: Fix common/ includes.
9474 * unittests/style-selftests.c: Fix common/ includes.
9475 * unittests/string_view-selftests.c: Fix common/ includes.
9476 * unittests/scoped_restore-selftests.c: Fix common/ includes.
9477 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
9478 * unittests/scoped_fd-selftests.c: Fix common/ includes.
9479 * unittests/rsp-low-selftests.c: Fix common/ includes.
9480 * unittests/parse-connection-spec-selftests.c: Fix common/
9481 includes.
9482 * unittests/optional-selftests.c: Fix common/ includes.
9483 * unittests/offset-type-selftests.c: Fix common/ includes.
9484 * unittests/observable-selftests.c: Fix common/ includes.
9485 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
9486 * unittests/memrange-selftests.c: Fix common/ includes.
9487 * unittests/memory-map-selftests.c: Fix common/ includes.
9488 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
9489 * unittests/function-view-selftests.c: Fix common/ includes.
9490 * unittests/environ-selftests.c: Fix common/ includes.
9491 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
9492 * unittests/common-utils-selftests.c: Fix common/ includes.
9493 * unittests/cli-utils-selftests.c: Fix common/ includes.
9494 * unittests/array-view-selftests.c: Fix common/ includes.
9495 * ui-file.c: Fix common/ includes.
9496 * tui/tui-io.c: Fix common/ includes.
9497 * tracepoint.h: Fix common/ includes.
9498 * tracepoint.c: Fix common/ includes.
9499 * tracefile-tfile.c: Fix common/ includes.
9500 * top.h: Fix common/ includes.
9501 * top.c: Fix common/ includes.
9502 * thread.c: Fix common/ includes.
9503 * target/waitstatus.h: Fix common/ includes.
9504 * target/waitstatus.c: Fix common/ includes.
9505 * target.h: Fix common/ includes.
9506 * target.c: Fix common/ includes.
9507 * target-memory.c: Fix common/ includes.
9508 * target-descriptions.c: Fix common/ includes.
9509 * symtab.h: Fix common/ includes.
9510 * symfile.c: Fix common/ includes.
9511 * stap-probe.c: Fix common/ includes.
9512 * spu-linux-nat.c: Fix common/ includes.
9513 * sparc-nat.c: Fix common/ includes.
9514 * source.c: Fix common/ includes.
9515 * solib.c: Fix common/ includes.
9516 * solib-target.c: Fix common/ includes.
9517 * ser-unix.c: Fix common/ includes.
9518 * ser-tcp.c: Fix common/ includes.
9519 * ser-pipe.c: Fix common/ includes.
9520 * ser-base.c: Fix common/ includes.
9521 * selftest-arch.c: Fix common/ includes.
9522 * s12z-tdep.c: Fix common/ includes.
9523 * rust-exp.y: Fix common/ includes.
9524 * rs6000-aix-tdep.c: Fix common/ includes.
9525 * riscv-tdep.c: Fix common/ includes.
9526 * remote.c: Fix common/ includes.
9527 * remote-notif.h: Fix common/ includes.
9528 * remote-fileio.h: Fix common/ includes.
9529 * remote-fileio.c: Fix common/ includes.
9530 * regcache.h: Fix common/ includes.
9531 * regcache.c: Fix common/ includes.
9532 * record-btrace.c: Fix common/ includes.
9533 * python/python.c: Fix common/ includes.
9534 * python/py-type.c: Fix common/ includes.
9535 * python/py-inferior.c: Fix common/ includes.
9536 * progspace.h: Fix common/ includes.
9537 * producer.c: Fix common/ includes.
9538 * procfs.c: Fix common/ includes.
9539 * proc-api.c: Fix common/ includes.
9540 * printcmd.c: Fix common/ includes.
9541 * ppc-linux-nat.c: Fix common/ includes.
9542 * parser-defs.h: Fix common/ includes.
9543 * osdata.c: Fix common/ includes.
9544 * obsd-nat.c: Fix common/ includes.
9545 * nat/x86-linux.c: Fix common/ includes.
9546 * nat/x86-linux-dregs.c: Fix common/ includes.
9547 * nat/x86-dregs.h: Fix common/ includes.
9548 * nat/x86-dregs.c: Fix common/ includes.
9549 * nat/ppc-linux.c: Fix common/ includes.
9550 * nat/mips-linux-watch.h: Fix common/ includes.
9551 * nat/mips-linux-watch.c: Fix common/ includes.
9552 * nat/linux-waitpid.c: Fix common/ includes.
9553 * nat/linux-ptrace.h: Fix common/ includes.
9554 * nat/linux-ptrace.c: Fix common/ includes.
9555 * nat/linux-procfs.c: Fix common/ includes.
9556 * nat/linux-personality.c: Fix common/ includes.
9557 * nat/linux-osdata.c: Fix common/ includes.
9558 * nat/linux-namespaces.c: Fix common/ includes.
9559 * nat/linux-btrace.h: Fix common/ includes.
9560 * nat/linux-btrace.c: Fix common/ includes.
9561 * nat/fork-inferior.c: Fix common/ includes.
9562 * nat/amd64-linux-siginfo.c: Fix common/ includes.
9563 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
9564 * nat/aarch64-linux.c: Fix common/ includes.
9565 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
9566 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
9567 * namespace.h: Fix common/ includes.
9568 * mips-linux-tdep.c: Fix common/ includes.
9569 * minsyms.c: Fix common/ includes.
9570 * mi/mi-parse.h: Fix common/ includes.
9571 * mi/mi-main.c: Fix common/ includes.
9572 * mi/mi-cmd-env.c: Fix common/ includes.
9573 * memrange.h: Fix common/ includes.
9574 * memattr.c: Fix common/ includes.
9575 * maint.h: Fix common/ includes.
9576 * maint.c: Fix common/ includes.
9577 * main.c: Fix common/ includes.
9578 * machoread.c: Fix common/ includes.
9579 * location.c: Fix common/ includes.
9580 * linux-thread-db.c: Fix common/ includes.
9581 * linux-nat.c: Fix common/ includes.
9582 * linux-fork.c: Fix common/ includes.
9583 * inline-frame.c: Fix common/ includes.
9584 * infrun.c: Fix common/ includes.
9585 * inflow.c: Fix common/ includes.
9586 * inferior.h: Fix common/ includes.
9587 * inferior.c: Fix common/ includes.
9588 * infcmd.c: Fix common/ includes.
9589 * inf-ptrace.c: Fix common/ includes.
9590 * inf-child.c: Fix common/ includes.
9591 * ia64-linux-nat.c: Fix common/ includes.
9592 * i387-tdep.c: Fix common/ includes.
9593 * i386-tdep.c: Fix common/ includes.
9594 * i386-linux-tdep.c: Fix common/ includes.
9595 * i386-linux-nat.c: Fix common/ includes.
9596 * i386-go32-tdep.c: Fix common/ includes.
9597 * i386-fbsd-tdep.c: Fix common/ includes.
9598 * i386-fbsd-nat.c: Fix common/ includes.
9599 * guile/scm-type.c: Fix common/ includes.
9600 * guile/guile.c: Fix common/ includes.
9601 * go32-nat.c: Fix common/ includes.
9602 * gnu-nat.c: Fix common/ includes.
9603 * gdbthread.h: Fix common/ includes.
9604 * gdbarch-selftests.c: Fix common/ includes.
9605 * gdb_usleep.c: Fix common/ includes.
9606 * gdb_select.h: Fix common/ includes.
9607 * gdb_bfd.c: Fix common/ includes.
9608 * gcore.c: Fix common/ includes.
9609 * fork-child.c: Fix common/ includes.
9610 * findvar.c: Fix common/ includes.
9611 * fbsd-nat.c: Fix common/ includes.
9612 * event-top.c: Fix common/ includes.
9613 * event-loop.c: Fix common/ includes.
9614 * dwarf2read.c: Fix common/ includes.
9615 * dwarf2loc.c: Fix common/ includes.
9616 * dwarf2-frame.c: Fix common/ includes.
9617 * dwarf-index-cache.c: Fix common/ includes.
9618 * dtrace-probe.c: Fix common/ includes.
9619 * disasm-selftests.c: Fix common/ includes.
9620 * defs.h: Fix common/ includes.
9621 * csky-tdep.c: Fix common/ includes.
9622 * cp-valprint.c: Fix common/ includes.
9623 * cp-support.h: Fix common/ includes.
9624 * cp-support.c: Fix common/ includes.
9625 * corelow.c: Fix common/ includes.
9626 * completer.h: Fix common/ includes.
9627 * completer.c: Fix common/ includes.
9628 * compile/compile.c: Fix common/ includes.
9629 * compile/compile-loc2c.c: Fix common/ includes.
9630 * compile/compile-cplus-types.c: Fix common/ includes.
9631 * compile/compile-cplus-symbols.c: Fix common/ includes.
9632 * command.h: Fix common/ includes.
9633 * cli/cli-dump.c: Fix common/ includes.
9634 * cli/cli-cmds.c: Fix common/ includes.
9635 * charset.c: Fix common/ includes.
9636 * build-id.c: Fix common/ includes.
9637 * btrace.h: Fix common/ includes.
9638 * btrace.c: Fix common/ includes.
9639 * breakpoint.h: Fix common/ includes.
9640 * breakpoint.c: Fix common/ includes.
9641 * ax.h:
9642 (enum agent_op): Fix common/ includes.
9643 * ax-general.c (struct aop_map): Fix common/ includes.
9644 * ax-gdb.c: Fix common/ includes.
9645 * auxv.c: Fix common/ includes.
9646 * auto-load.c: Fix common/ includes.
9647 * arm-tdep.c: Fix common/ includes.
9648 * arch/riscv.c: Fix common/ includes.
9649 * arch/ppc-linux-common.c: Fix common/ includes.
9650 * arch/i386.c: Fix common/ includes.
9651 * arch/arm.c: Fix common/ includes.
9652 * arch/arm-linux.c: Fix common/ includes.
9653 * arch/arm-get-next-pcs.c: Fix common/ includes.
9654 * arch/amd64.c: Fix common/ includes.
9655 * arch/aarch64.c: Fix common/ includes.
9656 * arch/aarch64-insn.c: Fix common/ includes.
9657 * arch-utils.c: Fix common/ includes.
9658 * amd64-windows-tdep.c: Fix common/ includes.
9659 * amd64-tdep.c: Fix common/ includes.
9660 * amd64-sol2-tdep.c: Fix common/ includes.
9661 * amd64-obsd-tdep.c: Fix common/ includes.
9662 * amd64-nbsd-tdep.c: Fix common/ includes.
9663 * amd64-linux-tdep.c: Fix common/ includes.
9664 * amd64-linux-nat.c: Fix common/ includes.
9665 * amd64-fbsd-tdep.c: Fix common/ includes.
9666 * amd64-fbsd-nat.c: Fix common/ includes.
9667 * amd64-dicos-tdep.c: Fix common/ includes.
9668 * amd64-darwin-tdep.c: Fix common/ includes.
9669 * agent.c: Fix common/ includes.
9670 * ada-lang.h: Fix common/ includes.
9671 * ada-lang.c: Fix common/ includes.
9672 * aarch64-tdep.c: Fix common/ includes.
9673
9674 2019-01-25 Tom Tromey <tom@tromey.com>
9675
9676 * common/create-version.sh: Use common/version.h.
9677
9678 2019-01-24 Pedro Alves <palves@redhat.com>
9679
9680 * infrun.c (signal_stop, signal_print, signal_program)
9681 (signal_catch, signal_pass): Now arrays instead of pointers.
9682 (update_signals_program_target, do_target_resume)
9683 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
9684 * linux-nat.c (linux_nat_target::pass_signals)
9685 (linux_nat_target::create_inferior, linux_nat_target::attach):
9686 Adjust.
9687 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
9688 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
9689 * procfs.c (procfs_target::pass_signals): Adjust.
9690 * record-full.c (record_full_target::resume): Adjust.
9691 * remote.c (remote_target::pass_signals)
9692 (remote_target::program_signals): Adjust.
9693 * target-debug.h (target_debug_print_signals): Now takes a
9694 gdb::array_view as parameter. Adjust.
9695 * target.h (target_ops) <pass_signals, program_signals>: Replace
9696 pointer and length parameters with gdb::array_view.
9697 (target_pass_signals, target_program_signals): Likewise.
9698 * target-delegates.c: Regenerate.
9699
9700 2019-01-24 Pedro Alves <palves@redhat.com>
9701
9702 * common/forward-scope-exit.h
9703 (forward_scope_exit::forward_scope_exit): Pass arguments to
9704 m_bind_function directly, instead of creating a std::bind and
9705 copying that.
9706
9707 2019-01-24 Alan Hayward <alan.hayward@arm.com>
9708
9709 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
9710 for static members.
9711 (pass_in_v_vfp_candidate): Likewise.
9712
9713 2019-01-23 Tom Tromey <tom@tromey.com>
9714 Pedro Alves <palves@redhat.com>
9715
9716 * regcache.c (class regcache_invalidator): Remove.
9717 (regcache::raw_write): Use make_scope_exit.
9718
9719 2019-01-23 Tom Tromey <tom@tromey.com>
9720
9721 * ui-out.h (class ui_out_emit_type): Update comment.
9722
9723 2019-01-23 Tom Tromey <tom@tromey.com>
9724
9725 * infrun.c (fetch_inferior_event): Update comment.
9726
9727 2019-01-23 Tom Tromey <tom@tromey.com>
9728 Pedro Alves <palves@redhat.com>
9729
9730 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
9731 parameter.
9732 (fetch_inferior_event): Use SCOPE_EXIT.
9733
9734
9735 2019-01-23 Tom Tromey <tom@tromey.com>
9736 Pedro Alves <palves@redhat.com>
9737
9738 * infrun.c (disable_thread_events): Delete.
9739 (stop_all_threads): Use SCOPE_EXIT.
9740
9741 2019-01-23 Tom Tromey <tom@tromey.com>
9742 Pedro Alves <palves@redhat.com>
9743
9744 * symfile.c: Include forward-scope-exit.h.
9745 (clear_symtab_users_cleanup): Replace forward declaration with
9746 a FORWARD_SCOPE_EXIT.
9747 (syms_from_objfile_1): Use the forward_scope_exit and
9748 gdb::optional instead of cleanup_function.
9749 (reread_symbols): Use the forward_scope_exit instead of
9750 cleanup_function.
9751 (clear_symtab_users_cleanup): Remove function.
9752
9753 2019-01-23 Tom Tromey <tom@tromey.com>
9754 Pedro Alves <palves@redhat.com>
9755
9756 * linux-nat.c: Include scope-exit.h.
9757 (cleanup_target_stop): Remove.
9758 (linux_nat_target::static_tracepoint_markers_by_strid): Use
9759 SCOPE_EXIT.
9760
9761 2019-01-23 Tom Tromey <tom@tromey.com>
9762 Pedro Alves <palves@redhat.com>
9763
9764 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
9765 (call_function_by_hand_dummy): Use SCOPE_EXIT.
9766
9767 2019-01-23 Tom Tromey <tom@tromey.com>
9768 Andrew Burgess <andrew.burgess@embecosm.com>
9769 Pedro Alves <palves@redhat.com>
9770
9771 * infrun.c (fetch_inferior_event): Use scope_exit.
9772 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
9773 * top.c (execute_command): Use scope_exit.
9774 * breakpoint.c (bpstat_do_actions): Use scope_exit.
9775 * utils.c (do_bpstat_clear_actions_cleanup)
9776 (make_bpstat_clear_actions_cleanup): Remove.
9777
9778 2019-01-23 Tom Tromey <tom@tromey.com>
9779 Pedro Alves <palves@redhat.com>
9780
9781 * infrun.c: Include "common/scope-exit.h"
9782 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
9783 (wait_for_inferior): Use SCOPE_EXIT.
9784 (fetch_inferior_event): Use scope_exit.
9785
9786 2019-01-23 Tom Tromey <tom@tromey.com>
9787 Pedro Alves <palves@redhat.com>
9788
9789 * breakpoint.c (create_breakpoint): Remove cleanup.
9790
9791 2019-01-23 Tom Tromey <tom@tromey.com>
9792 Andrew Burgess <andrew.burgess@embecosm.com>
9793 Pedro Alves <palves@redhat.com>
9794
9795 2019-01-23 Pedro Alves <palves@redhat.com>
9796
9797 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
9798
9799 2019-01-23 Pedro Alves <palves@redhat.com>
9800 Andrew Burgess <andrew.burgess@embecosm.com>
9801
9802 * gdbthread.h: Include "common/forward-scope-exit.h".
9803 (scoped_finish_thread_state): Redefine custom class in terms of
9804 forward_scope_exit.
9805
9806 2019-01-23 Pedro Alves <palves@redhat.com>
9807 Andrew Burgess <andrew.burgess@embecosm.com>
9808
9809 * common/forward-scope-exit.h: New file.
9810
9811 2019-01-23 Pedro Alves <palves@redhat.com>
9812 Andrew Burgess <andrew.burgess@embecosm.com>
9813 Tom Tromey <tom@tromey.com>
9814
9815 * common/scope-exit.h: New file.
9816
9817 2019-01-23 Pedro Alves <palves@redhat.com>
9818
9819 * common/preprocessor.h (ESC): Rename to ...
9820 (ESC_PARENS): ... this.
9821 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
9822 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
9823
9824 2019-01-23 Tom Tromey <tom@tromey.com>
9825
9826 * language.h (class scoped_switch_to_sym_language_if_auto):
9827 Initialize m_lang in both cases.
9828
9829 2019-01-23 Alan Hayward <alan.hayward@arm.com>
9830
9831 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
9832 with XCNEW.
9833
9834 2019-01-22 Tom Tromey <tom@tromey.com>
9835
9836 * corelow.c: Do not include sys/file.h.
9837
9838 2019-01-22 Tom Tromey <tom@tromey.com>
9839
9840 * tui/tui-wingeneral.h: Include gdb_curses.h.
9841
9842 2019-01-22 Tom Tromey <tom@tromey.com>
9843
9844 * source-cache.h (class source_cache) <get_source_lines,
9845 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
9846
9847 2019-01-22 Tom Tromey <tom@tromey.com>
9848
9849 * remote-fileio.h (struct remote_target): Declare.
9850
9851 2019-01-22 Tom Tromey <tom@tromey.com>
9852
9853 * python/py-arch.c: Do not include py-ref.h.
9854 * python/py-bpevent.c: Do not include py-ref.h.
9855 * python/py-cmd.c: Do not include py-ref.h.
9856 * python/py-continueevent.c: Do not include py-ref.h.
9857 * python/py-event.h: Do not include py-ref.h.
9858 * python/py-evtregistry.c: Do not include py-ref.h.
9859 * python/py-finishbreakpoint.c: Do not include py-ref.h.
9860 * python/py-frame.c: Do not include py-ref.h.
9861 * python/py-framefilter.c: Do not include py-ref.h.
9862 * python/py-function.c: Do not include py-ref.h.
9863 * python/py-infevents.c: Do not include py-ref.h.
9864 * python/py-linetable.c: Do not include py-ref.h.
9865 * python/py-objfile.c: Do not include py-ref.h.
9866 * python/py-param.c: Do not include py-ref.h.
9867 * python/py-prettyprint.c: Do not include py-ref.h.
9868 * python/py-progspace.c: Do not include py-ref.h.
9869 * python/py-symbol.c: Do not include py-ref.h.
9870 * python/py-symtab.c: Do not include py-ref.h.
9871 * python/py-type.c: Do not include py-ref.h.
9872 * python/py-unwind.c: Do not include py-ref.h.
9873 * python/py-utils.c: Do not include py-ref.h.
9874 * python/py-value.c: Do not include py-ref.h.
9875 * python/py-varobj.c: Do not include py-ref.h.
9876 * python/py-xmethods.c: Do not include py-ref.h.
9877 * python/python.c: Do not include py-ref.h.
9878 * varobj.c: Do not include py-ref.h.
9879
9880 2019-01-22 Tom Tromey <tom@tromey.com>
9881
9882 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
9883 keyword for bcache.
9884
9885 2019-01-22 Tom Tromey <tom@tromey.com>
9886
9887 * compile/compile-cplus-types.c: Remove a comment by #include.
9888
9889 2019-01-22 Tom Tromey <tom@tromey.com>
9890
9891 * compile/gcc-c-plugin.h: Include compile-internal.h.
9892
9893 2019-01-22 Tom Tromey <tom@tromey.com>
9894
9895 * stabsread.c (EXTERN): Do not define.
9896 (symnum, next_symbol_text_func, processing_gcc_compilation)
9897 (within_function, global_sym_chain, global_stabs)
9898 (previous_stab_code, this_object_header_files)
9899 (n_this_object_header_files)
9900 (n_allocated_this_object_header_files): Define.
9901 * stabsread.h (EXTERN): Never define. Use "extern".
9902
9903 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9904
9905 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
9906 history_value.
9907
9908 2019-01-21 Tom Tromey <tom@tromey.com>
9909
9910 * ui-out.c: Fix includes.
9911 * tui/tui-source.c: Fix includes.
9912 * target.c: Fix includes.
9913 * remote.c: Fix includes.
9914 * regcache.c: Fix includes.
9915 * python/py-block.c: Fix includes.
9916 * printcmd.c: Fix includes.
9917 * or1k-tdep.c: Fix includes.
9918 * mi/mi-main.c: Fix includes.
9919 * m32r-tdep.c: Fix includes.
9920 * csky-tdep.c: Fix includes.
9921 * compile/compile-cplus-types.c: Fix includes.
9922 * cli/cli-interp.c: Fix includes.
9923
9924 2019-01-21 Alan Hayward <alan.hayward@arm.com>
9925
9926 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
9927 for padding.
9928
9929 2019-01-16 Tom Tromey <tom@tromey.com>
9930
9931 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
9932 earlier.
9933 (struct objfile) <msymbols_range>: Move from top level.
9934 <msymbols>: New method.
9935 (class objfile_msymbols): Remove.
9936 * symtab.c (default_collect_symbol_completion_matches_break_on):
9937 Update.
9938 * symmisc.c (dump_msymbols): Update.
9939 * stabsread.c (scan_file_globals): Update.
9940 * objc-lang.c (info_selectors_command, info_classes_command)
9941 (find_methods): Update.
9942 * minsyms.c (find_solib_trampoline_target): Update.
9943 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
9944 * coffread.c (coff_symfile_read): Update.
9945 * ada-lang.c (ada_lookup_simple_minsym)
9946 (ada_collect_symbol_completion_matches): Update.
9947
9948 2019-01-16 Tom Tromey <tom@tromey.com>
9949
9950 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
9951 type. Remove no-argument constructor.
9952 <iterator::operator++>: Simplify.
9953 <begin>: Update.
9954 <end>: Use minimal_symbol_count.
9955
9956 2019-01-16 Tom Tromey <tom@tromey.com>
9957
9958 * objfiles.h (struct objfile) <psymtabs>: New method.
9959 (class objfile_psymtabs): Remove.
9960 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
9961 typedef.
9962 <range>: New method.
9963 (require_partial_symbols): Change return type.
9964 * psymtab.c (require_partial_symbols)
9965 (psym_expand_symtabs_matching): Update.
9966 * mdebugread.c (parse_partial_symbols): Update.
9967 * dbxread.c (dbx_end_psymtab): Update.
9968
9969 2019-01-15 Tom Tromey <tom@tromey.com>
9970
9971 * symtab.c (lookup_objfile_from_block)
9972 (lookup_symbol_in_objfile_symtabs)
9973 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
9974 (find_line_symtab, info_sources_command)
9975 (default_collect_symbol_completion_matches_break_on)
9976 (make_source_files_completion_list): Update.
9977 * symmisc.c (print_objfile_statistics, dump_objfile)
9978 (maintenance_print_symbols, maintenance_info_symtabs)
9979 (maintenance_check_symtabs, maintenance_info_line_tables):
9980 Update.
9981 * source.c (select_source_symtab)
9982 (forget_cached_source_info_for_objfile): Update.
9983 * objfiles.h (class objfile_compunits): Remove.
9984 (struct objfile) <compunits_range>: New typedef.
9985 (compunits): New method.
9986 * objfiles.c (objfile_relocate1): Update.
9987 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
9988 * maint.c (count_symtabs_and_blocks): Update.
9989 * linespec.c (iterate_over_all_matching_symtabs): Update.
9990 * cp-support.c (add_symbol_overload_list_qualified): Update.
9991 * coffread.c (coff_symtab_read): Update.
9992 * ada-lang.c (add_nonlocal_symbols)
9993 (ada_collect_symbol_completion_matches)
9994 (ada_add_global_exceptions): Update.
9995
9996 2019-01-15 Tom Tromey <tom@tromey.com>
9997
9998 * progspace.h (program_space) <objfiles_safe_range>: New
9999 typedef.
10000 <objfiles_safe>: New method.
10001 * objfiles.h (class all_objfiles_safe): Remove.
10002 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
10003 * jit.c (jit_inferior_exit_hook): Update.
10004
10005 2019-01-17 Tom Tromey <tom@tromey.com>
10006
10007 * progspace.h (program_space) <objfiles_range>: New typedef.
10008 <objfiles>: New method.
10009 <objfiles_head>: Rename from objfiles.
10010 (object_files): Update.
10011 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
10012 * guile/scm-pretty-print.c
10013 (ppscm_find_pretty_printer_from_objfiles): Update.
10014 * guile/scm-objfile.c (gdbscm_objfiles): Update.
10015 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
10016 Update.
10017 * python/py-progspace.c (pspy_get_objfiles): Update.
10018 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
10019 Update.
10020 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
10021 (objfpy_lookup_objfile_by_build_id): Update.
10022 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
10023 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
10024 Update.
10025 * symtab.c (iterate_over_symtabs, matching_obj_sections)
10026 (expand_symtab_containing_pc, lookup_objfile_from_block)
10027 (lookup_static_symbol, basic_lookup_transparent_type)
10028 (find_pc_sect_compunit_symtab, find_symbol_at_address)
10029 (find_line_symtab, info_sources_command)
10030 (default_collect_symbol_completion_matches_break_on)
10031 (make_source_files_completion_list, find_main_name): Update.
10032 * symmisc.c (print_symbol_bcache_statistics)
10033 (print_objfile_statistics, maintenance_print_symbols)
10034 (maintenance_print_msymbols, maintenance_print_objfiles)
10035 (maintenance_info_symtabs, maintenance_check_symtabs)
10036 (maintenance_expand_symtabs, maintenance_info_line_tables):
10037 Update.
10038 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
10039 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
10040 (map_overlay_command, unmap_overlay_command)
10041 (simple_overlay_update, expand_symtabs_matching)
10042 (map_symbol_filenames): Update.
10043 * symfile-debug.c (set_debug_symfile): Update.
10044 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
10045 Update.
10046 * source.c (select_source_symtab, forget_cached_source_info):
10047 Update.
10048 * solib.c (solib_read_symbols): Update.
10049 * solib-spu.c (append_ocl_sos): Update.
10050 * psymtab.c (maintenance_print_psymbols)
10051 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
10052 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
10053 * printcmd.c (info_symbol_command): Update.
10054 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
10055 Update.
10056 * objfiles.h (class all_objfiles): Remove.
10057 * objfiles.c (have_partial_symbols, have_full_symbols)
10058 (have_minimal_symbols, qsort_cmp, update_section_map)
10059 (shared_objfile_contains_address_p)
10060 (default_iterate_over_objfiles_in_search_order): Update.
10061 * objc-lang.c (info_selectors_command, info_classes_command)
10062 (find_methods): Update.
10063 * minsyms.c (find_solib_trampoline_target): Update.
10064 * maint.c (maintenance_info_sections)
10065 (maintenance_translate_address, count_symtabs_and_blocks):
10066 Update.
10067 * main.c (captured_main_1): Update.
10068 * linux-thread-db.c (try_thread_db_load_from_pdir)
10069 (has_libpthread): Update.
10070 * linespec.c (iterate_over_all_matching_symtabs)
10071 (search_minsyms_for_name): Update.
10072 * jit.c (jit_find_objf_with_entry_addr): Update.
10073 * hppa-tdep.c (find_unwind_entry)
10074 (hppa_lookup_stub_minimal_symbol): Update.
10075 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
10076 Update.
10077 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
10078 (elf_gnu_ifunc_resolve_by_got): Update.
10079 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
10080 * dwarf-index-write.c (save_gdb_index_command): Update.
10081 * cp-support.c (add_symbol_overload_list_qualified): Update.
10082 * breakpoint.c (create_overlay_event_breakpoint)
10083 (create_longjmp_master_breakpoint)
10084 (create_std_terminate_master_breakpoint)
10085 (create_exception_master_breakpoint): Update.
10086 * blockframe.c (find_pc_partial_function): Update.
10087 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
10088 (ada_collect_symbol_completion_matches)
10089 (ada_add_global_exceptions): Update.
10090
10091 2019-01-17 Tom Tromey <tom@tromey.com>
10092
10093 * solib-target.c (lm_info_target_p): Remove typedef. Don't
10094 declare VEC.
10095 (solib_target_parse_libraries): Change return type.
10096 (library_list_start_segment, library_list_start_section)
10097 (library_list_end_library, library_list_start_library); Update.
10098 (solib_target_free_library_list): Remove.
10099 (solib_target_parse_libraries): Remove cleanup. Change return
10100 type.
10101 (solib_target_current_sos): Update.
10102
10103 2019-01-17 Tom Tromey <tromey@bapiya>
10104
10105 * valprint.c: Replace "the the" with "the".
10106 * symtab.c: Replace "the the" with "the".
10107 * solib.c: Replace "the the" with "the".
10108 * solib-dsbt.c: Replace "the the" with "the".
10109 * linespec.c: Replace "the the" with "the".
10110 * dwarf2loc.h: Replace "the the" with "the".
10111 * amd64-windows-tdep.c: Replace "the the" with "the".
10112 * aarch64-tdep.c: Replace "the the" with "the".
10113
10114 2019-01-16 Keith Seitz <keiths@redhat.com>
10115
10116 PR gdb/23773
10117 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
10118 <builder>: Rename to ..
10119 <m_builder>: ... this and make private.
10120 (dwarf2_cu::get_builder): New method. Change all users of
10121 `builder' to use this method.
10122 (dwarf2_start_symtab): Move to ...
10123 (dwarf2_cu::start_symtab): ... here. Update all callers
10124 (setup_type_unit_groups): Move to ...
10125 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
10126 callers.
10127 (dwarf2_cu::reset_builder): New method.
10128 (process_full_compunit, process_full_type_unit): Use
10129 dwarf2_cu::reset_builder.
10130 (follow_die_offset): Record the ancestor CU if it is different
10131 from the followed DIE's CU.
10132 (follow_die_sig_1): Likewise.
10133
10134 2019-01-15 Tom Tromey <tom@tromey.com>
10135
10136 * remote.c (class remote_state) <buf>: Now a char_vector.
10137 <buf_size>: Remove.
10138 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
10139 parameter.
10140 (remote_target::getpkt_or_notif_sane_1)
10141 (remote_target::getpkt_sane)
10142 (remote_target::getpkt_or_notif_sane): Likewise.
10143 (class remote_target) <putpkt>: New overload.
10144 (remote_target::read_frame): Change type of "buf_p". Remove
10145 sizeof_p parameter.
10146 (packet_ok): New overload.
10147 (packet_check_result): New overload.
10148 Update all uses.
10149
10150 2019-01-14 Tom Tromey <tom@tromey.com>
10151
10152 * remote-notif.c (handle_notification, remote_notif_ack)
10153 (remote_notif_parse): Make "buf" const.
10154 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
10155 const.
10156 (remote_notif_parse, remote_notif_ack, handle_notification):
10157 Likewise.
10158 * remote.c (remote_notif_stop_parse): Make "buf" const.
10159 (remote_target::remote_parse_stop_reply): Make "buf" const.
10160 (remote_notif_stop_ack): Make "buf" const.
10161
10162 2019-01-14 Tom Tromey <tom@tromey.com>
10163
10164 * remote.c (remote_console_output): Make parameter const.
10165
10166 2019-01-14 Tom Tromey <tom@tromey.com>
10167
10168 * target-debug.h (target_debug_print_signals): Constify.
10169 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
10170 * procfs.c (procfs_target::pass_signals): Update.
10171 * linux-nat.c (linux_nat_target::pass_signals): Update.
10172 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
10173 * target-delegates.c: Rebuild.
10174 * remote.c (remote_target::program_signals): Update.
10175 (remote_target::pass_signals): Update.
10176 * target.c (target_pass_signals): Constify argument.
10177 (target_program_signals): Likewise.
10178 * target.h (struct target_ops) <pass_signals, program_signals>:
10179 Constify argument.
10180 (target_pass_signals, target_program_signals): Constify argument.
10181
10182 2019-01-14 Tom Tromey <tom@tromey.com>
10183
10184 PR tui/28819:
10185 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
10186
10187 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10188
10189 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
10190 field.
10191 * rs6000-tdep.c: Include reggroups.h.
10192 (IS_V_ALIAS_PSEUDOREG): Define.
10193 (rs6000_register_name): Return names for the "vX" aliases.
10194 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
10195 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
10196 aliases. Call default_register_reggroup_p for all other
10197 pseudo-registers.
10198 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
10199 New functions.
10200 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
10201 Handle "vX" aliases.
10202 (v_alias_pseudo_register_collect): New function.
10203 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
10204 (rs6000_gdbarch_init): Initialize "vX" aliases as
10205 pseudo-registers. Restore registration of
10206 rs6000_pseudo_register_reggroup_p with
10207 set_tdesc_pseudo_register_reggroup_p.
10208
10209 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
10210
10211 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
10212 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
10213 set_gdbarch_num_pseudo_regs.
10214
10215 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10216
10217 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
10218 Remove arg prefixname, add do_set and do_show.
10219 Add member functions set_list and show_list.
10220 * cli/cli-style.c (class cli_style_option): Update accordingly.
10221 (style_set_list): Move to file scope.
10222 (style_show_list): Likewise.
10223 (set_style): Call help_list.
10224 (show_style): Call cmd_show_list.
10225 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
10226 Update to use the new macro.
10227
10228 2019-10-12 Joel Brobecker <brobecker@adacore.com>
10229
10230 * ada-lang.c (_initialize_ada_language): Expand the help text
10231 for the "catch exception" command.
10232
10233 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10234
10235 * symtab.c (matching_obj_sections): Initialize obj,
10236 declare it closer to its usage.
10237
10238 2019-01-10 Tom Tromey <tom@tromey.com>
10239
10240 * thread-iter.h (inf_threads_iterator): Use next_iterator.
10241 (basic_inf_threads_range): Remove.
10242 (inf_threads_range, inf_non_exited_threads_range)
10243 (safe_inf_threads_range): Use next_adapter.
10244
10245 2019-01-10 Keith Seitz <keiths@redhat.com>
10246
10247 PR gdb/23712
10248 PR symtab/23010
10249 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
10250 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
10251
10252 2019-01-10 Keith Seitz <keiths@redhat.com>
10253
10254 PR gdb/23712
10255 PR symtab/23010
10256 * dictionary.c (pending_to_vector): Remove.
10257 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
10258 Remove _1 suffix, replacing functions of the same name. Update
10259 all callers.
10260 (dict_create_hashed, dict_create_hashed_expandable)
10261 (dict_create_linear, dict_create_linear_expandable, dict_free)
10262 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
10263 Make functions static.
10264
10265 2019-01-10 Keith Seitz <keiths@redhat.com>
10266
10267 PR gdb/23712
10268 PR symtab/23010
10269 * dictionary.h (struct dictionary): Replace declaration with
10270 multidictionary.
10271 (dict_create_hashed, dict_create_hashed_expandable)
10272 (dict_create_linear, dict_create_linear_expandable)
10273 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
10274 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
10275 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
10276 taking multidictionary argument.
10277 [ALL_DICT_SYMBOLS]: Update for multidictionary.
10278 * block.h (struct block) <dict>: Change to multidictionary
10279 and rename `multidict'.
10280 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
10281 symmisc.c: Update all dictionary references to multidictionary.
10282
10283 2019-01-10 Keith Seitz <keiths@redhat.com>
10284
10285 PR gdb/23712
10286 PR symtab/23010
10287 * dictionary.c: Include unordered_map.
10288 (pending_to_vector): New function.
10289 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
10290 Rewrite the non-"_1" functions to take vector instead
10291 of linked list.
10292 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
10293 "new" _1 versions of the same name.
10294 (multidictionary): Define.
10295 (std::hash<enum language): New definition.
10296 (collate_pending_symbols_by_language, mdict_create_hashed)
10297 (mdict_create_hashed_expandable, mdict_create_linear)
10298 (mdict_create_linear_expandable, mdict_free)
10299 (find_language_dictionary, create_new_language_dictionary)
10300 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
10301 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
10302 (mdict_size, mdict_empty): New functions.
10303 * dictionary.h (mdict_iterator): Define.
10304
10305 2019-01-10 Pedro Alves <palves@redhat.com>
10306
10307 * breakpoint.c (read_uploaded_action)
10308 (create_tracepoint_from_upload): Adjust to use
10309 gdb::unique_xmalloc_ptr.
10310 * ctf.c (ctf_write_uploaded_tp):
10311 (SET_ARRAY_FIELD): Use emplace_back.
10312 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
10313 * tracefile-tfile.c (tfile_write_uploaded_tp):
10314 * tracepoint.c (parse_tracepoint_definition): Adjust to use
10315 gdb::unique_xmalloc_ptr.
10316 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
10317 at_string, cond_string, cmd_strings>: Replace char pointers
10318 with gdb::unique_xmalloc_ptr.
10319
10320 2019-01-10 Pedro Alves <palves@redhat.com>
10321
10322 * solib-target.c (library_list_start_library): Don't xstrdup name.
10323
10324 2019-01-10 Pedro Alves <palves@redhat.com>
10325
10326 * mdebugread.c (parse_partial_symbols): Use
10327 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
10328
10329 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
10330
10331 * linux-fork.c (scoped_switch_fork_info)
10332 <~scoped_switch_fork_info>: Fix incorrect variable name.
10333
10334 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
10335
10336 * linux-fork.c (scoped_switch_fork_info)
10337 <scoped_switch_fork_info>: Make explicit.
10338 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
10339
10340 2019-01-10 Tom Tromey <tom@tromey.com>
10341
10342 * objfiles.h (objfile::reset_psymtabs): Update.
10343 * objfiles.c (objfile::objfile): Update.
10344 * psymtab.h (psymtab_storage::obstack): Update.
10345 (psymtab_storage::m_obstack): Use gdb::optional.
10346 (class psymtab_storage): Update comment. Remove objfile
10347 parameter.
10348 * psymtab.c (psymtab_storage::psymtab_storage): Update.
10349
10350 2019-01-10 Tom Tromey <tom@tromey.com>
10351
10352 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
10353 <free_psymtabs>: Now private.
10354 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
10355 (allocate_psymtab): Use new method.
10356
10357 2019-01-10 Tom Tromey <tom@tromey.com>
10358
10359 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
10360 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
10361 * mdebugread.c (parse_partial_symbols): Use
10362 allocate_dependencies.
10363 * dwarf2read.c (dwarf2_create_include_psymtab): Use
10364 allocate_dependencies.
10365 (process_psymtab_comp_unit_reader)
10366 (build_type_psymtab_dependencies): Likewise.
10367 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
10368
10369 2019-01-10 Tom Tromey <tom@tromey.com>
10370
10371 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
10372 PSYMBOL_SET_LANGUAGE.
10373 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
10374
10375 2019-01-10 Tom Tromey <tom@tromey.com>
10376
10377 * psymtab.h (psymtab_storage::obstack): New method.
10378 <m_obstack>: Rename from obstack; now private.
10379 * psymtab.c (psymtab_storage): Update.
10380 * dwarf2read.c (create_addrmap_from_index)
10381 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
10382 Update.
10383
10384 2019-01-10 Tom Tromey <tom@tromey.com>
10385
10386 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
10387 * objfiles.h (objfile::reset_psymtabs): New method.
10388
10389 2019-01-10 Tom Tromey <tom@tromey.com>
10390
10391 * symmisc.c (print_symbol_bcache_statistics): Update.
10392 (print_objfile_statistics): Update.
10393 * symfile.c (reread_symbols): Update.
10394 * psymtab.h (class psymtab_storage): New.
10395 * psymtab.c (psymtab_storage): New constructor.
10396 (~psymtab_storage): New destructor.
10397 (require_partial_symbols): Update.
10398 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
10399 (find_pc_sect_psymtab, find_pc_sect_psymbol)
10400 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
10401 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
10402 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
10403 (start_psymtab_common, end_psymtab_common)
10404 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
10405 (allocate_psymtab): Update.
10406 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
10407 Update.
10408 (dump_psymtab_addrmap, maintenance_print_psymbols)
10409 (maintenance_check_psymtabs): Update.
10410 (class objfile_psymtabs): Move to objfiles.h.
10411 * psympriv.h (discard_psymtab): Now inline.
10412 (psymtab_discarder::psymtab_discarder): Update.
10413 (psymtab_discarder::~psymtab_discarder): Update.
10414 (ALL_OBJFILE_PSYMTABS): Rewrite.
10415 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
10416 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
10417 Remove fields.
10418 <partial_symtabs>: New field.
10419 (class objfile_psymtabs): Move from psymtab.h. Update.
10420 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
10421 psymbol_cache.
10422 (objfile::~objfile): Don't destroy psymbol_cache.
10423 * mdebugread.c (parse_partial_symbols): Update.
10424 * dwarf2read.c (create_addrmap_from_index)
10425 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
10426 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
10427 (add_partial_subprogram, dwarf2_ranges_read): Update.
10428 * dwarf-index-write.c (write_address_map)
10429 (write_one_signatured_type, recursively_write_psymbols)
10430 (class debug_names, class debug_names, write_psymtabs_to_index):
10431 Update.
10432
10433 2019-01-10 Tom Tromey <tom@tromey.com>
10434
10435 * symtab.h (SYMBOL_SET_NAMES): Update.
10436 (symbol_set_names): Update.
10437 (MSYMBOL_SET_NAMES): Update.
10438 * symtab.c (symbol_set_names): Change argument to be an
10439 objfile_per_bfd_storage.
10440 * psymtab.c (add_psymbol_to_bcache): Update.
10441 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
10442
10443 2019-01-10 Tom Tromey <tom@tromey.com>
10444
10445 * symtab.c (create_demangled_names_hash): Change argument to be an
10446 objfile_per_bfd_storage.
10447 (symbol_set_names): Update.
10448
10449 2019-01-10 Tom Tromey <tom@tromey.com>
10450
10451 * xcoffread.c (xcoff_initial_scan): Unconditionally call
10452 init_psymbol_list.
10453 * psymtab.c (init_psymbol_list): Do nothing if already called.
10454 * psympriv.h (init_psymbol_list): Add comment.
10455 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
10456 init_psymbol_list.
10457 * dbxread.c (dbx_symfile_read): Unconditionally call
10458 init_psymbol_list.
10459
10460 2019-01-10 Tom Tromey <tom@tromey.com>
10461
10462 * xcoffread.c (scan_xcoff_symtab): Update.
10463 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
10464 "where".
10465 * mdebugread.c (parse_partial_symbols)
10466 (handle_psymbol_enumerators): Update.
10467 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
10468 * dbxread.c (read_dbx_symtab): Update.
10469 * psympriv.h (psymbol_placement): New enum.
10470 (add_psymbol_to_list): Update.
10471
10472 2019-01-10 Tom Tromey <tom@tromey.com>
10473
10474 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
10475 static_psymbols parameters.
10476 (scan_xcoff_symtab): Update.
10477 * psymtab.c (start_psymtab_common): Remove global_psymbols and
10478 static_psymbols parameters.
10479 * psympriv.h (start_psymtab_common): Update.
10480 * mdebugread.c (parse_partial_symbols): Update.
10481 * dwarf2read.c (create_partial_symtab): Update.
10482 * dbxread.c (read_dbx_symtab): Update.
10483 (start_psymtab): Remove global_psymbols and static_psymbols
10484 parameters.
10485
10486 2019-01-10 Tom Tromey <tom@tromey.com>
10487
10488 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
10489 * psymtab.c (allocate_psymtab): Add comment.
10490 * psympriv.h (allocate_psymtab): Add comment.
10491 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
10492 initializations.
10493 * dbxread.c (dbx_end_psymtab): Remove some initializations.
10494
10495 2019-01-10 Tom Tromey <tom@tromey.com>
10496
10497 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
10498 Don't declare.
10499 * mipsread.c: Include mdebugread.h.
10500 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
10501 Declare.
10502 * elfread.c: Include mdebugread.h.
10503
10504 2019-01-09 Tom Tromey <tom@tromey.com>
10505
10506 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
10507 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
10508 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
10509 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
10510 (psym_lookup_symbol, psym_find_last_source_symtab)
10511 (psym_forget_cached_source_info, psym_print_stats)
10512 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
10513 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
10514 (psym_map_matching_symbols, psym_expand_symtabs_matching)
10515 (psym_find_compunit_symtab_by_address)
10516 (maintenance_print_psymbols, maintenance_info_psymtabs)
10517 (maintenance_check_psymtabs): Use ranged for.
10518 * psymtab.h (class objfile_psymtabs): New.
10519 (require_partial_symbols): Return objfile_psymtabs.
10520 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
10521
10522 2019-01-09 Tom Tromey <tom@tromey.com>
10523
10524 * symfile.c (overlay_invalidate_all, find_pc_overlay)
10525 (find_pc_mapped_section, list_overlays_command)
10526 (map_overlay_command, unmap_overlay_command)
10527 (simple_overlay_update): Use all_objfiles.
10528 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
10529 * printcmd.c (info_symbol_command): Use all_objfiles.
10530 * objfiles.h (ALL_OBJSECTIONS): Remove.
10531 * maint.c (maintenance_translate_address): Use all_objfiles.
10532 * gcore.c (gcore_create_callback): Use all_objfiles.
10533 (objfile_find_memory_regions): Likewise.
10534
10535 2019-01-09 Tom Tromey <tom@tromey.com>
10536
10537 * symtab.c (find_line_symtab, info_sources_command)
10538 (make_source_files_completion_list): Use objfile_compunits.
10539 * source.c (select_source_symtab): Use objfile_compunits.
10540 * objfiles.h (struct objfile): Update comment.
10541 (ALL_OBJFILES): Remove.
10542 (ALL_FILETABS): Remove.
10543 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
10544 objfile_compunits.
10545
10546 2019-01-09 Tom Tromey <tom@tromey.com>
10547
10548 * symmisc.c (print_objfile_statistics, dump_objfile)
10549 (maintenance_print_symbols): Use compunit_filetabs.
10550 * source.c (forget_cached_source_info_for_objfile): Use
10551 compunit_filetabs.
10552 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
10553 (ALL_FILETABS): Use compunit_filetabs.
10554 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
10555 * coffread.c (coff_symtab_read): Use compunit_filetabs.
10556
10557 2019-01-09 Tom Tromey <tom@tromey.com>
10558
10559 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
10560 (compunit_filetabs): New.
10561 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
10562 compunit_filetabs.
10563 (info_sources_command, make_source_files_completion_list): Remove
10564 declaration.
10565 * symmisc.c (print_objfile_statistics, dump_objfile)
10566 (maintenance_print_symbols): Remove declaration.
10567 (maintenance_info_symtabs): Use compunit_filetabs.
10568 (maintenance_info_line_tables): Likewise.
10569 * source.c (select_source_symtab): Change local variable name.
10570 (forget_cached_source_info_for_objfile): Remove declaration.
10571 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
10572 * objfiles.c (objfile_relocate1): Remove declaration.
10573 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
10574 declaration.
10575 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
10576 * coffread.c (coff_symtab_read): Remove declaration.
10577 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
10578 compunit_filetabs.
10579
10580 2019-01-09 Tom Tromey <tom@tromey.com>
10581
10582 * symtab.c (lookup_objfile_from_block)
10583 (find_pc_sect_compunit_symtab, search_symbols)
10584 (default_collect_symbol_completion_matches_break_on): Use
10585 objfile_compunits.
10586 * objfiles.h (ALL_COMPUNITS): Remove.
10587 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
10588 * cp-support.c (add_symbol_overload_list_qualified): Use
10589 objfile_compunits.
10590 * ada-lang.c (ada_collect_symbol_completion_matches)
10591 (ada_add_global_exceptions): Use objfile_compunits.
10592
10593 2019-01-09 Tom Tromey <tom@tromey.com>
10594
10595 * source.c (select_source_symtab)
10596 (forget_cached_source_info_for_objfile): Remove declaration.
10597 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
10598 declaration.
10599 * maint.c (count_symtabs_and_blocks): Remove declaration.
10600 * cp-support.c (add_symbol_overload_list_qualified): Remove
10601 declaration.
10602 * coffread.c (coff_symtab_read): Remove declaration.
10603 * symtab.c (lookup_symbol_in_objfile_symtabs)
10604 (basic_lookup_transparent_type_1): Use objfile_compunits.
10605 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
10606 (info_sources_command, search_symbols)
10607 (default_collect_symbol_completion_matches_break_on)
10608 (make_source_files_completion_list): Remove declaration.
10609 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
10610 (ada_collect_symbol_completion_matches)
10611 (ada_add_global_exceptions): Remove declaration.
10612 * linespec.c (iterate_over_all_matching_symtabs): Use
10613 objfile_compunits.
10614 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
10615 (class objfile_compunits): New.
10616 (ALL_COMPUNITS): Use objfile_compunits.
10617 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
10618 (maintenance_check_symtabs, maintenance_info_line_tables): Use
10619 objfile_compunits.
10620 * objfiles.c (objfile_relocate1): Use objfile_compunits.
10621
10622 2019-01-09 Tom Tromey <tom@tromey.com>
10623
10624 * symtab.c (search_symbols)
10625 (default_collect_symbol_completion_matches_break_on): Use
10626 objfile_msymbols.
10627 * ada-lang.c (ada_lookup_simple_minsym)
10628 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
10629 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
10630 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
10631 objfile_msymbols.
10632 * coffread.c (coff_symfile_read): Use objfile_msymbols.
10633 * symmisc.c (dump_msymbols): Use objfile_msymbols.
10634 * objc-lang.c (find_methods): Use objfile_msymbols.
10635 (info_selectors_command, info_classes_command): Likewise.
10636 * stabsread.c (scan_file_globals): Use objfile_msymbols.
10637 * objfiles.h (class objfile_msymbols): New.
10638 (ALL_OBJFILE_MSYMBOLS): Remove.
10639 (ALL_MSYMBOLS): Remove.
10640
10641 2019-01-09 Tom Tromey <tom@tromey.com>
10642
10643 * common/next-iterator.h (next_adapter): Add Iterator template
10644 parameter.
10645 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
10646 (class all_objfiles_safe): New.
10647 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
10648 * objfiles.c (put_objfile_before): Update comment.
10649 (add_separate_debug_objfile): Likewise.
10650 (free_all_objfiles): Use all_objfiles_safe.
10651 (objfile_purge_solibs): Likewise.
10652
10653 2019-01-09 Tom Tromey <tom@tromey.com>
10654
10655 * symtab.c (iterate_over_symtabs, matching_obj_sections)
10656 (expand_symtab_containing_pc, lookup_static_symbol)
10657 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
10658 (find_symbol_at_address, find_line_symtab, find_main_name): Use
10659 all_objfiles.
10660 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
10661 * breakpoint.c (create_overlay_event_breakpoint)
10662 (create_longjmp_master_breakpoint)
10663 (create_std_terminate_master_breakpoint)
10664 (create_exception_master_breakpoint): Use all_objfiles.
10665 * linux-thread-db.c (try_thread_db_load_from_pdir)
10666 (has_libpthread): Use all_objfiles.
10667 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
10668 * linespec.c (iterate_over_all_matching_symtabs)
10669 (search_minsyms_for_name): Use all_objfiles.
10670 * maint.c (maintenance_info_sections): Use all_objfiles.
10671 * main.c (captured_main_1): Use all_objfiles.
10672 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
10673 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
10674 * guile/scm-pretty-print.c
10675 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
10676 * solib-spu.c (append_ocl_sos): Use all_objfiles.
10677 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
10678 (maintenance_print_msymbols): Use all_objfiles.
10679 * source.c (select_source_symtab): Use all_objfiles.
10680 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
10681 * symfile.c (remove_symbol_file_command)
10682 (expand_symtabs_matching, map_symbol_filenames): Use
10683 all_objfiles.
10684 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
10685 all_objfiles.
10686 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
10687 * objc-lang.c (find_methods): Use all_objfiles.
10688 * objfiles.c (have_partial_symbols, have_full_symbols)
10689 (have_minimal_symbols, qsort_cmp)
10690 (default_iterate_over_objfiles_in_search_order): Use
10691 all_objfiles.
10692 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
10693 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
10694 (maintenance_check_psymtabs): Use all_objfiles.
10695 (ALL_PSYMTABS): Remove.
10696 * compile/compile-object-run.c (do_module_cleanup): Use
10697 all_objfiles.
10698 * blockframe.c (find_pc_partial_function): Use all_objfiles.
10699 * cp-support.c (add_symbol_overload_list_qualified): Use
10700 all_objfiles.
10701 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
10702 Use all_objfiles.
10703 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
10704 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
10705 all_objfiles.
10706 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
10707 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
10708 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
10709 Uses all_objfiles.
10710 * solib.c (solib_read_symbols): Use all_objfiles
10711
10712 2019-01-09 Tom Tromey <tom@tromey.com>
10713
10714 * probe.c (parse_probes_in_pspace): Use all_objfiles.
10715 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
10716 all_objfiles.
10717 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
10718 * symmisc.c (print_symbol_bcache_statistics)
10719 (print_objfile_statistics, maintenance_print_objfiles)
10720 (maintenance_info_symtabs, maintenance_check_symtabs)
10721 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
10722 all_objfiles.
10723 * source.c (forget_cached_source_info): Use all_objfiles.
10724 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
10725 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
10726 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
10727 * objfiles.c (update_section_map): Use all_objfiles.
10728 (shared_objfile_contains_address_p): Likewise.
10729 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
10730 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
10731
10732 2019-01-09 Tom Tromey <tom@tromey.com>
10733
10734 * common/next-iterator.h: New file.
10735 * objfiles.h (class all_objfiles): New.
10736 (struct objfile_iterator): New.
10737
10738 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10739
10740 * NEWS: Move the description of the changed "frame", "select-frame",
10741 and "info frame" commands to the Changed commands section.
10742
10743 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
10744
10745 * gdbtypes.c (check_stub_method_group): Remove handling of old
10746 mangling schemes.
10747 * linespec.c (find_methods): Likewise.
10748 * stabsread.c (read_member_functions): Likewise.
10749 * valops.c (search_struct_method): Likewise.
10750 (value_struct_elt_for_reference): Likewise.
10751 * NEWS: Mention this change.
10752
10753 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
10754
10755 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
10756 print_source_lines.
10757 * source.c (print_source_lines_base): Update line number check.
10758 (print_source_lines): New function.
10759 (source_lines_range::source_lines_range): New function.
10760 * source.h (class source_lines_range): New class.
10761 (print_source_lines): New declaration.
10762
10763 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10764
10765 * linespec.c (linespec_state_destructor): Free self->canonical_names.
10766
10767 2019-01-08 Tom Tromey <tom@tromey.com>
10768 Simon Marchi <simon.marchi@ericsson.com>
10769
10770 PR gdb/24060
10771 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
10772 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
10773 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
10774 * f-exp.y (DOLLAR_VARIABLE): Likewise.
10775 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
10776 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
10777
10778 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
10779
10780 * source.c (select_source_symtab): Move header comment to
10781 declaration in source.h.
10782 (forget_cached_source_info_for_objfile): Likewise.
10783 (forget_cached_source_info): Likewise.
10784 (identify_source_line): Likewise.
10785 * source.h (identify_source_line): Move declaration from symtab.h
10786 and add comment from source.c
10787 (print_source_lines): Likewise.
10788 (forget_cached_source_info_for_objfile): Likewise.
10789 (forget_cached_source_info): Likewise.
10790 (select_source_symtab): Likewise.
10791 (enum print_source_lines_flag): Move definition from symtab.h.
10792 * symtab.h (identify_source_line): Move declaration to source.h.
10793 (print_source_lines): Likewise.
10794 (forget_cached_source_info_for_objfile): Likewise.
10795 (forget_cached_source_info): Likewise.
10796 (select_source_symtab): Likewise.
10797 (enum print_source_lines_flag): Move definition to source.h.
10798 * tui/tui-hooks.c: Add 'source.h' include.
10799
10800 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
10801
10802 * source.c (print_source_lines_base): Handle requests to print
10803 reverse line number sequences, and guard against empty lines
10804 string.
10805
10806 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
10807
10808 * source.c (print_source_lines_base): Fix skip of '\r' if next
10809 character is '\n'.
10810
10811 2019-01-06 Tom Tromey <tom@tromey.com>
10812
10813 * c-exp.y (struct c_parse_state) <macro_original_text,
10814 expansion_obstack>: New member.
10815 (macro_original_text, expansion_obstack): Remove globals.
10816 (scan_macro_expansion, scanning_macro_expansion)
10817 (finished_macro_expansion): Update.
10818 (scan_macro_cleanup): Remove.
10819 (yylex, c_parse): Update.
10820
10821 2019-01-06 Tom Tromey <tom@tromey.com>
10822
10823 * c-exp.y (struct c_parse_state) <strings>: New member.
10824 (operator_stoken): Update.
10825
10826 2019-01-06 Tom Tromey <tom@tromey.com>
10827
10828 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
10829 (union type_stack_elt) <typelist_val>: Now a pointer to
10830 std::vector.
10831 (type_stack_cleanup): Don't declare.
10832 (push_typelist): Update.
10833 * parse.c (pop_typelist): Return a std::vector.
10834 (push_typelist): Take a std::vector.
10835 (follow_types): Update. Do not free args.
10836 (type_stack_cleanup): Remove.
10837 * c-exp.y (struct c_parse_state): New.
10838 (cpstate): New global.
10839 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
10840 (nonempty_typelist): Update.
10841 (func_mod): Create a new vector.
10842 (c_parse): Create a c_parse_state.
10843 (check_parameter_typelist): Do not delete params.
10844 (function_method): Update. Do not delete type_list.
10845
10846 2019-01-06 Tom Tromey <tom@tromey.com>
10847
10848 PR gdb/28155:
10849 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
10850 check_typedef.
10851 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
10852 (print_return_value): Likewise.
10853
10854 2019-01-05 Tom Tromey <tom@tromey.com>
10855
10856 * contrib/cleanup_check.py: Remove.
10857 * contrib/gcc-with-excheck: Remove.
10858 * contrib/exsummary.py: Remove.
10859 * contrib/excheck.py: Remove.
10860
10861 2019-01-05 Joel Brobecker <brobecker@adacore.com>
10862
10863 * thread.c (delete_thread_1): Add gdb_assert that THR is not
10864 NULL. Initialize tpprev to NULL instead of assigning it
10865 to NULL on the next statement.
10866 * windows-nat.c (windows_delete_thread): Remove check for
10867 main_thread_id before printing thread exit notifications.
10868 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
10869 Remove thread ID check against main_thread_id.
10870 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
10871 windows_delete_thread.
10872 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
10873
10874 2019-01-04 Tom Tromey <tom@tromey.com>
10875
10876 * compile/compile.c (_initialize_compile): Use upper case for
10877 metasyntactic variables.
10878 * symmisc.c (_initialize_symmisc): Use upper case for
10879 metasyntactic variables.
10880 * psymtab.c (_initialize_psymtab): Use upper case for
10881 metasyntactic variables.
10882 * demangle.c (demangle_command): Use upper case for metasyntactic
10883 variables.
10884 (_initialize_demangler): Likewise.
10885 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
10886 variables.
10887
10888 2019-01-03 Tom Tromey <tom@tromey.com>
10889
10890 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
10891
10892 2019-01-03 Tom Tromey <tom@tromey.com>
10893
10894 * python/py-symtab.c (salpy_str): Update.
10895 (struct salpy_sal_object) <symtab>: Now a PyObject.
10896 (salpy_dealloc): Update.
10897 (del_objfile_sal): Use gdbpy_ref.
10898
10899 2019-01-03 Tom Tromey <tom@tromey.com>
10900
10901 * python/py-type.c (convert_field): Use new_reference. Return
10902 gdbpy_ref.
10903 (make_fielditem): Return gdbpy_ref.
10904 (typy_fields): Update.
10905 (typy_getitem): Update.
10906 (field_name): Return gdbpy_ref. Use new_reference.
10907 (typy_iterator_iternext): Update.
10908
10909 2019-01-03 Tom Tromey <tom@tromey.com>
10910
10911 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
10912
10913 2019-01-03 Tom Tromey <tom@tromey.com>
10914
10915 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
10916 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
10917 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
10918 (pspy_set_frame_filters, pspy_set_frame_unwinders)
10919 (pspy_set_type_printers): Likewise.
10920 * python/py-function.c (fnpy_init): Use gdbpy_ref.
10921 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
10922 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
10923 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
10924 (objfpy_set_type_printers): Likewise.
10925
10926 2019-01-03 Tom Tromey <tom@tromey.com>
10927
10928 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
10929 (gdbpy_print_stack): Use gdbpy_err_fetch.
10930 * python/python-internal.h (class gdbpy_err_fetch): New class.
10931 (class gdbpy_enter) <m_error_type, m_error_value,
10932 m_error_traceback>: Remove.
10933 <m_error>: New member.
10934 (gdbpy_exception_to_string): Don't declare.
10935 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
10936 * python/py-value.c (convert_value_from_python): Use
10937 gdbpy_err_fetch.
10938 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
10939 gdbpy_exception_to_string.
10940 (gdbpy_handle_exception): Use gdbpy_err_fetch.
10941 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
10942 gdbpy_err_fetch.
10943
10944 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
10945
10946 * linux-nat.c (delete_lwp_cleanup): Delete.
10947 (struct lwp_deleter): New struct.
10948 (lwp_info_up): New typedef.
10949 (linux_nat_target::follow_fork): Delete cleanup, and make use of
10950 lwp_info_up.
10951
10952 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
10953
10954 * linux-fork.c (class scoped_switch_fork_info): New class.
10955 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
10956
10957 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
10958
10959 * valops.c (find_overload_match): Remove use of null_cleanup, and
10960 calls to do_cleanups.
10961
10962 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
10963
10964 * compile/compile-cplus-types.c
10965 (compile_cplus_instance::decl_name): Handle changes to
10966 cp_func_name.
10967 * cp-support.c (cp_func_name): Update header comment, update
10968 return type.
10969 * cp-support.h (cp_func_name): Update return type in declaration.
10970 * valops.c (find_overload_match): Move temp_func local to top
10971 level of function and change its type. Use temp_func to hold and
10972 delete temporary string obtained from cp_func_name.
10973
10974 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
10975
10976 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
10977 gdb::char_vector, remove cleanup, and update uses of `msg`.
10978
10979 2019-01-03 Jim Wilson <jimw@sifive.com>
10980
10981 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
10982
10983 2019-01-02 Tom Tromey <tom@tromey.com>
10984
10985 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
10986 (tdesc_parse_xml): Remove cleanups.
10987 * target-descriptions.h (make_cleanup_free_target_description):
10988 Don't declare.
10989 (target_desc_deleter): New struct.
10990 (target_desc_up): New typedef.
10991 * target-descriptions.c (target_desc_deleter::operator()): Rename
10992 from free_target_description.
10993 (make_cleanup_free_target_description): Remove.
10994
10995 2019-01-02 Tom Tromey <tom@tromey.com>
10996
10997 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
10998 constructor, destructor.
10999 (linespec_parser): Remove typedef.
11000 (~linespec_parser): Rename from linespec_parser_delete.
11001 (linespec_lex_to_end, linespec_complete_label)
11002 (linespec_complete): Update.
11003 (decode_line_full): Remove cleanups.
11004 (decode_line_1): Update.
11005
11006 2019-01-02 Tom Tromey <tom@tromey.com>
11007
11008 * python/python-internal.h (inferior_to_inferior_object): Change
11009 return type.
11010 * python/py-exitedevent.c (create_exited_event_object): Update.
11011 * python/py-inferior.c (inferior_to_inferior_object): Return
11012 gdbpy_ref.
11013 (python_new_inferior, python_inferior_deleted)
11014 (thread_to_thread_object, delete_thread_object)
11015 (build_inferior_list, gdbpy_selected_inferior): Update.
11016 * python/py-infthread.c (create_thread_object): Update. Also fail
11017 if inferior_to_inferior_object fails.
11018
11019 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
11020
11021 * inferior.h (class inferior) <displaced_step_state>: New field.
11022 * infrun.h (struct displaced_step_state): Move here from
11023 infrun.c. Initialize fields, add constructor.
11024 <inf>: Remove field.
11025 <reset>: New method.
11026 * infrun.c (struct displaced_step_inferior_state): Move to
11027 infrun.h.
11028 (displaced_step_inferior_states): Remove.
11029 (get_displaced_stepping_state): Adust.
11030 (displaced_step_in_progress_any_inferior): Adjust.
11031 (displaced_step_in_progress_thread): Adjust.
11032 (displaced_step_in_progress): Adjust.
11033 (add_displaced_stepping_state): Remove.
11034 (get_displaced_step_closure_by_addr): Adjust.
11035 (remove_displaced_stepping_state): Remove.
11036 (infrun_inferior_exit): Call displaced_step_state.reset.
11037 (use_displaced_stepping): Don't check for NULL.
11038 (displaced_step_prepare_throw): Call
11039 get_displaced_stepping_state.
11040 (displaced_step_fixup): Don't check for NULL.
11041 (prepare_for_detach): Don't check for NULL.
11042
11043 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11044
11045 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
11046 in case of call that did not complete.
11047
11048 2019-01-02 Andrey Utkin <autkin@undo.io>
11049
11050 * symfile.c (find_separate_debug_file): Fix search of debug files for
11051 remote debuggee.
11052
11053 2019-01-02 Tom Tromey <tom@tromey.com>
11054
11055 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
11056 indentation.
11057 * python/py-frame.c (frapy_older): Remove cast.
11058 (frapy_newer): Likewise.
11059 * python/py-breakpoint.c (local_setattro): Remove cast.
11060 * python/py-arch.c (archpy_name): Remove local variable.
11061 * python/py-type.c (gdbpy_lookup_type): Remove cast.
11062
11063 2019-01-02 Joel Brobecker <brobecker@adacore.com>
11064
11065 * unittests/basic_string_view/element_access/char/empty.cc:
11066 Fix year range in copyright header.
11067
11068 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
11069
11070 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
11071 Delete.
11072 <operator==>: Update with for removed field.
11073 <hash>: Likewise.
11074 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
11075 <isa_features>: ...this.
11076 <abi_features>: New field.
11077 (riscv_isa_flen): Update comment.
11078 (riscv_abi_xlen): New declaration.
11079 (riscv_abi_flen): New declaration.
11080 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
11081 isa_features.
11082 (riscv_abi_xlen): New function.
11083 (riscv_isa_flen): Update to get answer from isa_features.
11084 (riscv_abi_flen): New function.
11085 (riscv_has_fp_abi): Update to get answer from abi_features.
11086 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
11087 xlen and flen.
11088 (riscv_call_info) <xlen, flen>: Update comment.
11089 (riscv_call_arg_struct): Remove invalid assertions
11090 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
11091 is removed.
11092 (riscv_gdbarch_init): Gather isa features and abi features
11093 separately, ensure both match on the gdbarch when reusing an old
11094 gdbarch. Relax an error check to allow 32-bit abi float to run on
11095 a target with 64-bit float hardware.
11096
11097 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11098
11099 * source.c (search_command_helper): Stop reverse search
11100 when line 1 has been searched.
11101
11102 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11103
11104 * record-full.c (record_full_base_target::close): Rewrite
11105 record_full_core_buf_list free logic.
11106
11107 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11108
11109 * break-catch-syscall.c (print_one_catch_syscall): xfree
11110 the last text.
11111
11112 2019-01-01 Joel Brobecker <brobecker@adacore.com>
11113
11114 * top.c (print_gdb_version): Update Copyright year in version
11115 message.
11116
11117 2019-01-01 Joel Brobecker <brobecker@adacore.com>
11118
11119 Update copyright year range in all GDB files.
11120
11121 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
11122
11123 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
11124
11125 For older changes see ChangeLog-2018.
11126 \f
11127 Local Variables:
11128 mode: change-log
11129 left-margin: 8
11130 fill-column: 74
11131 version-control: never
11132 coding: utf-8
11133 End:
11134