Allow re-assigning to convenience variables
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2019-11-14 Tom Tromey <tromey@adacore.com>
2
3 * eval.c (evaluate_subexp_standard) <BINOP_ASSIGN>: Do not pass an
4 expected type for the RHS if the LHS is a convenience variable.
5
6 2019-11-14 Simon Marchi <simon.marchi@polymtl.ca>
7
8 * unittests/vec-utils-selftests.c (unordered_remove_tests::obj):
9 Provide explicit default and copy constructor.
10
11 2019-11-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12
13 * python/py-finishbreakpoint.c (gdbpy_breakpoint_created):
14 only call Py_INCREF (newbp) in the bppy_pending_object case.
15
16 2019-11-13 Tom Tromey <tromey@adacore.com>
17
18 PR build/25182:
19 * psympriv.h (partial_symbol): Remove static assert.
20 * symtab.h (general_symbol_info, symbol): Remove static assert.
21
22 2019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
23
24 * gdbsupport/format.c (format_pieces::format_pieces): Support
25 printf 'z' size modifier.
26 * gdbsupport/format.h (enum argclass): Add size_t_arg.
27 * printcmd.c (ui_printf): Handle size_t_arg.
28 * ui-out.c (ui_out::vmessage): Likewise.
29 * unittests/format_pieces-selftests.c (test_format_int_sizes): New
30 function.
31 (run_tests): Call test_format_int_sizes.
32
33 2019-11-12 Christian Biesinger <cbiesinger@google.com>
34
35 * ada-exp.y (write_ambiguous_var): Update.
36 * buildsym.c (add_symbol_to_list): Update.
37 * dwarf2read.c (read_variable): Update.
38 (new_symbol): Update.
39 * jit.c (finalize_symtab): Update.
40 * language.c (language_alloc_type_symbol): Update.
41 * symtab.c (fixup_symbol_section): Update.
42 (initialize_objfile_symbol_1): Move code to...
43 (initialize_objfile_symbol): ...here. Remove now-unnecessary memset.
44 (allocate_symbol): Update.
45 (allocate_template_symbol): Update.
46 (get_symbol_address): Update.
47 * symtab.h (struct symbol): Inherit from general_symbol_info instead
48 of having as a field, and add a constructor.
49 (SYMBOL_VALUE): Update.
50 (SYMBOL_VALUE_ADDRESS): Update.
51 (SET_SYMBOL_VALUE_ADDRESS): Update.
52 (SYMBOL_VALUE_BYTES): Update.
53 (SYMBOL_VALUE_COMMON_BLOCK): Update.
54 (SYMBOL_BLOCK_VALUE): Update.
55 (SYMBOL_VALUE_CHAIN): Update.
56 (SYMBOL_LANGUAGE): Update.
57 (SYMBOL_SECTION): Update.
58 (SYMBOL_OBJ_SECTION): Update.
59 (SYMBOL_SET_LANGUAGE): Update.
60 (SYMBOL_SET_LINKAGE_NAME): Update.
61 (SYMBOL_SET_NAMES): Update.
62 (SYMBOL_NATURAL_NAME): Update.
63 (SYMBOL_LINKAGE_NAME): Update.
64 (SYMBOL_DEMANGLED_NAME): Update.
65 (SYMBOL_SEARCH_NAME): Update.
66 (SYMBOL_MATCHES_SEARCH_NAME): Update.
67 (struct symbol): Update.
68 (struct template_symbol): Update.
69 (struct rust_vtable_symbol): Update.
70 * xcoffread.c (SYMBOL_DUP): Update.
71
72 2019-11-12 Tom Tromey <tom@tromey.com>
73
74 * tui/tui-layout.c (show_layout): Set current_layout.
75 (show_source_disasm_command, show_data)
76 (show_source_or_disasm_and_command): Don't set current_layout.
77
78 2019-11-12 Tom Tromey <tom@tromey.com>
79
80 * tui/tui-layout.c (_initialize_tui_layout): Move to end.
81
82 2019-11-12 Tom Tromey <tom@tromey.com>
83
84 * tui/tui-win.c (resize_message): New global.
85 (show_tui_resize_message): New function.
86 (tui_async_resize_screen): Print message if requested.
87 (_initialize_tui_win): Add tui-resize-message setting.
88 * NEWS: Add entry for new commands.
89
90 2019-11-11 Tom Tromey <tom@tromey.com>
91
92 * tui/tui.c (tui_initialize_readline): Add new bindable readline
93 functions.
94
95 2019-11-11 Christian Biesinger <cbiesinger@google.com>
96
97 * nat/linux-osdata.c (user_from_uid): Use getpwuid_r.
98
99 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
100
101 * python/py-symbol.c (gdbpy_lookup_static_symbols): New
102 function.
103 * python/python-internal.h (gdbpy_lookup_static_symbols):
104 Declare new function.
105 * python/python.c (python_GdbMethods): Add
106 gdb.lookup_static_symbols method.
107 * NEWS: Mention gdb.lookup_static_symbols.
108
109 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
110
111 * python/py-symbol.c (gdbpy_lookup_static_symbol): Lookup in
112 static block of current object file first. Also fix typo in
113 header comment.
114
115 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
116
117 * stack.c (set_last_displayed_sal): Delete.
118 (last_displayed_sal_valid): Delete.
119 (last_displayed_pspace): Delete.
120 (last_displayed_addr): Delete.
121 (last_displayed_symtab): Delete.
122 (last_displayed_line): Delete.
123 (class last_displayed_symtab_info_type): New.
124 (last_displayed_symtab_info): New static global variable.
125 (print_frame_info): Call methods on last_displayed_symtab_info.
126 (clear_last_displayed_sal): Update header comment, and make use of
127 last_displayed_symtab_info.
128 (last_displayed_sal_is_valid): Likewise.
129 (get_last_displayed_pspace): Likewise.
130 (get_last_displayed_addr): Likewise.
131 (get_last_displayed_symtab): Likewise.
132 (get_last_displayed_line): Likewise.
133 (get_last_displayed_sal): Likewise.
134 * stack.h (clear_last_displayed_sal): Update header comment.
135 (last_displayed_sal_is_valid): Likewise.
136 (get_last_displayed_pspace): Likewise.
137 (get_last_displayed_addr): Likewise.
138 (get_last_displayed_symtab): Likewise.
139 (get_last_displayed_line): Likewise.
140 (get_last_displayed_sal): Likewise.
141
142 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
143
144 * stack.c (frame_show_address): Convert return type to bool.
145 * stack.h (frame_show_address): Likewise, and update header
146 comment.
147
148 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
149
150 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new file to the list.
151 * unittests/vec-utils-selftests.c: New file.
152 * gdbsupport/gdb_vecs.h (unordered_remove): Avoid self move assign.
153
154 2019-11-10 Tom Tromey <tom@tromey.com>
155
156 * tui/tui-wingeneral.c (tui_unhighlight_win): Use can_box.
157 (tui_highlight_win): Likewise.
158 (tui_win_info::check_and_display_highlight_if_needed): Likewise.
159 * tui/tui-data.h (struct tui_win_info) <can_highlight>: Remove.
160 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
161 Don't set can_highlight.
162
163 2019-11-10 Tom Tromey <tom@tromey.com>
164
165 * cli/cli-style.h (class cli_style_option) <cli_style_option>:
166 Remove unused declaration.
167
168 2019-11-08 Tom Tromey <tromey@adacore.com>
169
170 * top.c (read_command_file): Update.
171 (command_line_input): Make return type const.
172 * python/py-gdb-readline.c: Update.
173 * linespec.c (decode_line_2): Update.
174 * defs.h (command_line_input): Make return type const.
175 * cli/cli-script.c (read_next_line): Make return type const.
176 * ada-lang.c (get_selections): Update.
177
178 2019-11-06 Christian Biesinger <cbiesinger@google.com>
179
180 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
181 * mi/mi-main.c (output_cores): Likewise.
182 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
183 (linux_xfer_osdata_modules): Likewise.
184 * remote.c (register_remote_support_xml): Likewise.
185 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
186 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
187
188 2019-11-06 Tom Tromey <tom@tromey.com>
189
190 * tui/tui-interp.c: Don't include readline.h.
191 * tui/tui-hooks.c: Don't include readline.h.
192 * symmisc.c: Include tilde.h, not readline.h.
193 * symfile.c: Include tilde.h, not readline.h.
194 * source.c: Include tilde.h, not readline.h.
195 * solib.c: Include tilde.h, not readline.h.
196 * psymtab.c: Include tilde.h, not readline.h.
197 * exec.c: Include tilde.h, not readline.h.
198 * corelow.c: Include tilde.h, not readline.h.
199 * cli/cli-dump.c: Include tilde.h, not readline.h.
200 * cli/cli-cmds.c: Don't include readline.h.
201
202 2019-11-05 Tom Tromey <tom@tromey.com>
203
204 * tui/tui-disasm.c (struct tui_asm_line) <addr_size>: New member.
205 (tui_disassemble): Set addr_size.
206 (tui_disasm_window::set_contents): Use addr_size.
207
208 2019-11-05 Tom Tromey <tom@tromey.com>
209
210 * rust-lang.c (rust_language_defn): Update.
211 * python/py-value.c (valpy_string): Call c_get_string.
212 * p-lang.c (pascal_language_defn): Update.
213 * opencl-lang.c (opencl_language_defn): Update.
214 * objc-lang.c (objc_language_defn): Update.
215 * m2-lang.c (m2_language_defn): Update.
216 * language.c (unknown_language_defn, auto_language_defn): Update.
217 (default_get_string): Remove.
218 * guile/scm-value.c (gdbscm_value_to_string): Use c_get_string.
219 * go-lang.c (go_language_defn): Update.
220 * f-lang.c (f_language_defn): Update.
221 * d-lang.c (d_language_defn): Update.
222 * c-lang.c (c_language_defn, cplus_language_defn)
223 (asm_language_defn, minimal_language_defn): Update.
224 * ada-lang.c (ada_language_defn): Update.
225 * language.h (struct language_defn) <la_get_string>: Remove.
226 (LA_GET_STRING): Remove.
227 (default_get_string): Don't declare.
228
229 2019-11-05 Tom Tromey <tom@tromey.com>
230
231 * tui/tui-source.h (struct tui_source_window): Inline
232 constructor. Remove destructor.
233 <style_changed, m_observable>: Move to superclass.
234 * tui/tui-winsource.h (tui_copy_source_line): Declare.
235 (struct tui_source_window_base): Move private members to end.
236 <style_changed, m_observable>: Move from tui_source_window.
237 * tui/tui-winsource.c (tui_copy_source_line): Move from
238 tui-source.c. Rename from copy_source_line. Add special handling
239 for negative line number.
240 (tui_source_window_base::style_changed): Move from
241 tui_source_window.
242 (tui_source_window_base): Register observer.
243 (~tui_source_window_base): New.
244 * tui/tui-source.c (copy_source_line): Move to tui-winsource.c;
245 rename.
246 (tui_source_window::set_contents): Use tui_copy_source_line.
247 (tui_source_window::tui_source_window): Move to tui-source.h.
248 (tui_source_window::~tui_source_window): Remove.
249 (tui_source_window::style_changed): Move to superclass.
250 * tui/tui-disasm.c (tui_disassemble): Create string file with
251 styling, when possible. Add "addr_size" parameter.
252 (tui_disasm_window::set_contents): Use tui_copy_source_line.
253 Don't compute maximum size.
254 (len_without_escapes): New function
255
256 2019-11-05 Tom Tromey <tom@tromey.com>
257
258 * tui/tui-winsource.h (struct tui_source_element) <line>: Now a
259 std::string.
260 * tui/tui-winsource.c (tui_show_source_line): Update.
261 * tui/tui-source.c (tui_source_window::set_contents): Update.
262 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
263
264 2019-11-05 Christian Biesinger <cbiesinger@google.com>
265
266 * symtab.h (gdb_static_assert): Put && operator at the beginning
267 of the line instead of the end.
268
269 2019-11-04 Christian Biesinger <cbiesinger@google.com>
270
271 * psympriv.h: Add static_asserts for sizeof (general_symbol_info)
272 and sizeof (symbol).
273 * symtab.h: Add a static_assert for sizeof (partial_symbol).
274
275 2019-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
276
277 * NEWS (Changes since GDB 8.3): Document Solaris 10 removal.
278 * configure.host: Mark *-*-solaris2.10* obsolete.
279 * configure.tgt: Mark Solaris < 11 obsolete.
280 * MAINTAINERS (Target Instruction Set Architectures) <sparc>:
281 Update target triplet.
282
283 2019-11-01 Tom Tromey <tromey@adacore.com>
284
285 * utils.c (print_sys_errmsg): Simplify.
286
287 2019-11-01 Tom Tromey <tromey@adacore.com>
288
289 * gdbsupport/mingw-strerror.c (safe_strerror): Constify result.
290
291 2019-11-01 Christian Biesinger <cbiesinger@google.com>
292
293 * configure: Regenerate.
294 * configure.ac: Remove check for strerror_r.
295 * gdbsupport/common.m4: Check for strerror_r.
296
297 2019-11-01 Luis Machado <luis.machado@linaro.org>
298
299 PR gdb/25124
300
301 * arm-tdep.c (arm_per_objfile): Rename to ...
302 (arm_per_bfd): ... this.
303 (arm_objfile_data_key): Rename to ...
304 (arm_bfd_data_key): ... this.
305 (arm_find_mapping_symbol): Adjust access to new bfd_key-based
306 data.
307 (arm_record_special_symbol): Likewise.
308
309 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
310
311 * ada-typeprint.c (ada_print_typedef): Don't print newline at the
312 end.
313 * c-typeprint.c (c_print_typedef): Likewise.
314 * f-typeprint.c (f_print_typedef): Likewise.
315 * m2-typeprint.c (m2_print_typedef): Likewise.
316 * p-typeprint.c (pascal_print_typedef): Likewise.
317 * rust-lang.c (rust_print_typedef): Likewise.
318 * symtab.c (print_symbol_info): Print a newline after calling
319 typedef_print.
320
321 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
322
323 * symtab.c (info_module_cmdlist): New variable.
324 (info_module_command): New function.
325 (search_module_symbols): New function.
326 (info_module_subcommand): New function.
327 (struct info_modules_var_func_options): New struct.
328 (info_modules_var_func_options_defs): New variable.
329 (make_info_modules_var_func_options_def_group): New function.
330 (info_module_functions_command): New function.
331 (info_module_variables_command): New function.
332 (info_module_var_func_command_completer): New function.
333 (_initialize_symtab): Register new 'info module functions' and
334 'info module variables' commands.
335 * symtab.h (typedef symbol_search_in_module): New typedef.
336 (search_module_symbols): Declare new function.
337 * NEWS: Mention new commands.
338
339 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
340
341 * dwarf2read.c (dw2_symtab_iter_next): Handle MODULE_DOMAIN.
342 (dw2_expand_marked_cus): Handle MODULES_DOMAIN.
343 (dw2_debug_names_iterator::next): Handle MODULE_DOMAIN and
344 MODULES_DOMAIN.
345 (scan_partial_symbols): Only create partial module symbols for non
346 declarations.
347 * psymtab.c (recursively_search_psymtabs): Handle MODULE_DOMAIN
348 and MODULES_DOMAIN.
349 * symtab.c (search_domain_name): Likewise.
350 (search_symbols): Likewise.
351 (print_symbol_info): Likewise.
352 (symtab_symbol_info): Likewise.
353 (info_modules_command): New function.
354 (_initialize_symtab): Register 'info modules' command.
355 * symtab.h (enum search_domain): Add MODULES_DOMAIN.
356 * NEWS: Mention new 'info modules' command.
357
358 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
359
360 * NEWS: Mention $_gdb_setting, $_gdb_setting_str, $_gdb_maint_setting
361 and $_gdb_maint_setting_str.
362
363 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
364
365 * cli/cli-cmds.c (setting_cmd, value_from_setting)
366 (gdb_setting_internal_fn, gdb_maint_setting_internal_fn)
367 (str_value_from_setting, gdb_setting_str_internal_fn)
368 (gdb_maint_setting_str_internal_fn): New functions.
369 (_initialize_cli_cmds): Define the new convenience functions.
370 * gdb/cli/cli-setshow.h (get_setshow_command_value_string): Constify.
371 * gdb/cli/cli-setshow.c (get_setshow_command_value_string): Constify.
372
373 2019-10-31 Christian Biesinger <cbiesinger@google.com>
374
375 * agent.c (set_can_use_agent): When the setting is turned on,
376 look up agent symbols if we don't have them yet.
377 (agent_new_objfile): Don't look up agent symbols when the agent
378 setting is off.
379
380 2019-10-31 Christian Biesinger <cbiesinger@google.com>
381
382 * config.in: Regenerate.
383
384 2019-10-31 Christian Biesinger <cbiesinger@google.com>
385
386 * configure: Regenerate.
387 * configure.ac: Check for strerror_r.
388 * gdbsupport/common-utils.h (safe_strerror): Change return value
389 to const char * and document that this function is now threadsafe.
390 * gdbsupport/posix-strerror.c (safe_strerror): Make buf
391 thread_local and call strerror_r, if available.
392 * utils.c (perror_string): Update.
393 (print_sys_errmsg): Update.
394
395 2019-10-31 Luis Machado <luis.machado@linaro.org>
396
397 * arm-tdep.c (arm_exidx_data_key): Use bfd_key instead of
398 objfile_key.
399 (arm_exidx_new_objfile): Adjust to use objfile->obfd instead of
400 objfile to fetch per-bfd data.
401 (arm_find_exidx_entry): Likewise.
402
403 2019-10-31 Christian Biesinger <cbiesinger@google.com>
404
405 * gdbsupport/agent.c (debug_agent): Change type to bool.
406 (use_agent): Likewise.
407 (all_agent_symbols_look_up): Likewise.
408 (agent_loaded_p): Change return value to bool.
409 (agent_look_up_symbols): Update.
410 (agent_capability_check): Change return value to bool.
411 * gdbsupport/agent.h (agent_loaded_p): Likewise.
412 (debug_agent): Change type to bool.
413 (use_agent): Likewise.
414 (agent_capability_check): Change return value to bool.
415
416 2019-10-30 Christian Biesinger <cbiesinger@google.com>
417
418 * minsyms.c (clear_minimal_symbol_hash_tables): New function.
419 (build_minimal_symbol_hash_tables): Code to clear the table moved
420 to clear_minimal_symbol_hash_tables.
421 (minimal_symbol_reader::install): Call clear_minimal_symbol_hash_tables
422 when needed.
423
424 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
425
426 * infcmd.c: Remove includes.
427 * infrun.c: Remove includes.
428
429 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
430
431 * ada-lang.h (GROW_VECT): Move to ada-lang.c.
432 (grow_vect): Remove declaration.
433 (ada_type_of_array): Remove declaration.
434 (ada_update_initial_language): Remove declaration.
435 (ada_fold_name): Remove declaration.
436 (ada_fill_in_ada_prototype): Remove declaration.
437 (user_select_syms): Remove declaration.
438 (get_selections): Remove declaration.
439 (ada_tag_type): Remove declaration.
440 (ada_value_tag): Remove declaration.
441 (ada_is_others_clause): Remove declaration.
442 (ada_in_variant): Remove declaration.
443 (ada_value_struct_elt): Remove declaration.
444 (ada_attribute_name): Remove declaration.
445 (ada_system_address_type): Remove declaration.
446 * ada-lang.c (ada_watch_location_expression): Make static.
447 (GROW_VECT): Move here from ada-lang.h.
448 (grow_vect): Make static.
449 (ada_update_initial_language): Make static.
450 (ada_fold_name): Make static.
451 (ada_type_of_array): Make static.
452 (encoded_ordered_before): Move up.
453 (sort_choices): Move up.
454 (print_signatures): Move up.
455 (ada_print_symbol_signature): Move up.
456 (get_selections): Move up and make static.
457 (user_select_syms): Move up and make static.
458 (ada_value_struct_elt): Move up and make static.
459 (ada_tag_type): Make static.
460 (ada_value_tag): Make static.
461 (ada_is_others_clause): Make static.
462 (ada_in_variant): Make static.
463 (ada_attribute_name): Make static.
464
465 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
466
467 * ada-lang.c: Remove includes.
468 * ada-typeprint.c: Remove includes.
469 * ada-valprint.c: Remove includes.
470
471 2019-10-29 Simon Marchi <simon.marchi@efficios.com>
472
473 * addrmap.c: Add static assertions of type size, moved from
474 _initialize_addrmap.
475 (_initialize_addrmap): Remove.
476
477 2019-10-29 Christian Biesinger <cbiesinger@google.com>
478
479 * coffread.c (record_minimal_symbol): Update.
480 (process_coff_symbol): Update.
481 * dbxread.c (read_dbx_symtab): Update.
482 * dwarf2read.c (add_partial_symbol): Update.
483 (fixup_go_packaging): Update.
484 (load_partial_dies): Update.
485 (new_symbol): Update.
486 * elfread.c (record_minimal_symbol): Change signature to use
487 gdb::string_view instead of name+len.
488 (elf_symtab_read): Update.
489 (elf_rel_plt_read): Update.
490 * mdebugread.c (parse_partial_symbols): Update.
491 (handle_psymbol_enumerators): Update.
492 (new_symbol): Update.
493 * minsyms.c (minimal_symbol_reader::record_full): Change signature
494 to use gdb::string_view instead of name+len.
495 * minsyms.h (class minimal_symbol_reader) <record_full>: Likewise.
496 * psympriv.h (add_psymbol_to_list): Likewise.
497 * psymtab.c (add_psymbol_to_bcache): Likewise.
498 (add_psymbol_to_list): Likewise.
499 * stabsread.c (define_symbol): Update.
500 * symtab.c (symbol_set_names): Change signature to use gdb::string_view.
501 * symtab.h (SYMBOL_SET_NAMES): Likewise.
502 (symbol_set_names): Likewise.
503 * xcoffread.c (scan_xcoff_symtab): Update.
504
505 2019-10-29 Christian Biesinger <cbiesinger@google.com>
506
507 * symtab.h (symbol_set_names): Document that copy_name must be
508 set to true for non-nullterminated strings.
509 * symtab.c (symbol_set_names): Only make a nullterminated copy of
510 linkage_name if the entry was not found and we need to demangle.
511
512 2019-10-29 Christian Biesinger <cbiesinger@google.com>
513
514 * Makefile.in (HFILES_NO_SRCDIR): Add gdb_binary_search.h.
515 * dwarf2-frame.c (bsearch_fde_cmp): Update.
516 (dwarf2_frame_find_fde): Replace bsearch with gdb::binary_search.
517 * gdbsupport/gdb_binary_search.h: New file.
518
519 2019-10-29 Christian Biesinger <cbiesinger@google.com>
520
521 * NEWS: Mention new --with-system-gdbinit-dir option.
522 * config.in: Regenerate.
523 * configure: Regenerate.
524 * configure.ac: Add new option --with-system-gdbinit-dir.
525 * extension.c (get_ext_lang_of_file): Return extension_language_gdb
526 for a ".gdb" suffix.
527 * main.c (get_init_files): Change system_gdbinit argument to
528 a vector and return the files in SYSTEM_GDBINIT_DIR in
529 addition to SYSTEM_GDBINIT.
530 (captured_main_1): Update.
531 (print_gdb_help): Update.
532 * top.c (print_gdb_configuration): Also print the value of
533 SYSTEM_GDBINIT_DIR.
534
535 2019-10-28 Christian Biesinger <cbiesinger@google.com>
536
537 * gdbsupport/common-utils.h (startswith): Add an overloaded version
538 that takes gdb::string_view arguments.
539
540 2019-10-26 Tom de Vries <tdevries@suse.de>
541
542 * aarch64-linux-tdep.c: Fix typos in comments.
543 * aarch64-tdep.c: Same.
544 * ada-lang.c: Same.
545 * amd64-nat.c: Same.
546 * arc-tdep.c: Same.
547 * arch/aarch64-insn.c: Same.
548 * block.c: Same.
549 * breakpoint.h: Same.
550 * btrace.h: Same.
551 * c-varobj.c: Same.
552 * cli/cli-decode.c: Same.
553 * cli/cli-script.c: Same.
554 * cli/cli-utils.h: Same.
555 * coff-pe-read.c: Same.
556 * coffread.c: Same.
557 * compile/compile-cplus-symbols.c: Same.
558 * compile/compile-object-run.c: Same.
559 * completer.c: Same.
560 * corelow.c: Same.
561 * cp-support.c: Same.
562 * demangle.c: Same.
563 * dwarf-index-write.c: Same.
564 * dwarf2-frame.c: Same.
565 * dwarf2-frame.h: Same.
566 * eval.c: Same.
567 * frame-base.h: Same.
568 * frame.h: Same.
569 * gdbcmd.h: Same.
570 * gdbtypes.h: Same.
571 * gnu-nat.c: Same.
572 * guile/scm-objfile.c: Same.
573 * i386-tdep.c: Same.
574 * i386-tdep.h: Same.
575 * infcall.c: Same.
576 * infcall.h: Same.
577 * linux-nat.c: Same.
578 * m68k-tdep.c: Same.
579 * macroexp.c: Same.
580 * memattr.c: Same.
581 * mi/mi-cmd-disas.c: Same.
582 * mi/mi-getopt.h: Same.
583 * mi/mi-main.c: Same.
584 * minsyms.c: Same.
585 * nat/aarch64-sve-linux-sigcontext.h: Same.
586 * objfiles.h: Same.
587 * ppc-linux-nat.c: Same.
588 * ppc-linux-tdep.c: Same.
589 * ppc-tdep.h: Same.
590 * progspace.h: Same.
591 * prologue-value.h: Same.
592 * python/py-evtregistry.c: Same.
593 * python/py-instruction.h: Same.
594 * record-btrace.c: Same.
595 * record-full.c: Same.
596 * remote.c: Same.
597 * rs6000-tdep.c: Same.
598 * ser-tcp.c: Same.
599 * sol-thread.c: Same.
600 * sparc-sol2-tdep.c: Same.
601 * sparc64-tdep.c: Same.
602 * stabsread.c: Same.
603 * symfile.c: Same.
604 * symtab.h: Same.
605 * target.c: Same.
606 * tracepoint.c: Same.
607 * tui/tui-data.h: Same.
608 * tui/tui-io.c: Same.
609 * tui/tui-win.c: Same.
610 * tui/tui.c: Same.
611 * unittests/rsp-low-selftests.c: Same.
612 * user-regs.h: Same.
613 * utils.c: Same.
614 * utils.h: Same.
615 * valarith.c: Same.
616 * valops.c: Same.
617 * valprint.c: Same.
618 * valprint.h: Same.
619 * value.c: Same.
620 * value.h: Same.
621 * varobj.c: Same.
622 * x86-nat.h: Same.
623 * xtensa-tdep.c: Same.
624
625 2019-10-25 Ali Tamur <tamur@google.com>
626
627 * charset.c (find_charset_names): Reflect API change.
628
629 2019-10-25 Christian Biesinger <cbiesinger@google.com>
630
631 * symtab.c (struct demangled_name_entry): Change demangled name
632 to a unique_xmalloc_ptr<char>, now that we don't allocate it as
633 part of the struct anymore.
634 (symbol_set_names): No longer obstack allocate + copy the demangled
635 name, just store the allocated name from bfd.
636
637 2019-10-25 Tom Tromey <tromey@adacore.com>
638
639 * dwarf2-frame.c (dwarf2_cie_table): Now a typedef.
640 (bsearch_cie_cmp, add_cie): Remove.
641 (find_cie): Reimplement.
642 (decode_frame_entry_1, decode_frame_entry): Change type. Update.
643 (dwarf2_build_frame_info): Update.
644
645 2019-10-24 H.J. Lu <hongjiu.lu@intel.com>
646
647 PR gdb/25126
648 * symfile.c (reread_symbols): Call forget_cached_source_info to
649 clear the stale source cache.
650
651 2019-10-24 Christian Biesinger <cbiesinger@google.com>
652
653 * configure: Regenerate.
654 * configure.ac: Remove code that sets python_has_threads.
655
656 2019-10-24 Christian Biesinger <cbiesinger@google.com>
657
658 * config.in: Regenerate.
659 * configure: Regenerate.
660 * configure.ac: Remove the code that uses sed to get the python
661 version and defines HAVE_LIBPYTHON2_6 / HAVE_LIBPYTHON2_7.
662
663 2019-10-24 Andrew Burgess <andrew.burgess@embecosm.com>
664
665 * python/py-progspace.c (pspy_block_for_pc): Return None for all
666 error paths.
667
668 2019-10-23 Tom Tromey <tom@tromey.com>
669
670 * arc-tdep.c: Remove ".." from include.
671 * frv-tdep.c: Remove ".." from include.
672 * lm32-tdep.c: Remove ".." from include.
673 * microblaze-tdep.c: Remove ".." from include.
674 * or1k-tdep.h: Remove ".." from include.
675 * s12z-tdep.c: Remove ".." from include.
676 * Makefile.in (OPCODES_CFLAGS): Add comment.
677 (TOP_CFLAGS): New variable.
678 (INTERNAL_CFLAGS_BASE): Add TOP_CFLAGS.
679
680 2019-10-23 Tom Tromey <tom@tromey.com>
681
682 * Makefile.in (READLINE_DIR): Update.
683
684 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
685
686 * infcall.c (call_function_by_hand_dummy): Fix the function
687 comment. And extract out a code section into...
688 (reserve_stack_space): ...this new function.
689
690 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
691
692 * infcall.c (value_arg_coerce): Remove an unused parameter.
693 (call_function_by_hand_dummy): Update the call to
694 'value_arg_coerce'.
695
696 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
697
698 * infcall.c (call_function_by_hand_dummy): Refactor.
699
700 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
701
702 * MAINTAINERS (Write After Approval): Add Tankut Baris Aktemur.
703
704 2019-10-23 Tom Tromey <tom@tromey.com>
705
706 * configure: Rebuild.
707 * configure.ac: Don't check for sigprocmask.
708 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for sigprocmask.
709
710 2019-10-23 Tom Tromey <tom@tromey.com>
711
712 * configure: Rebuild.
713 * acinclude.m4: Use m4_include, not sinclude.
714
715 2019-10-23 Tom de Vries <tdevries@suse.de>
716
717 PR breakpoints/24687
718 * symtab.c (iterate_over_some_symtabs): Apply gdb_realpath on fullname.
719
720 2019-10-22 Christian Biesinger <cbiesinger@google.com>
721
722 * symtab.c (struct demangled_name_entry) <language>: Change from
723 bitfield to regular variable.
724
725 2019-10-22 Christian Biesinger <cbiesinger@google.com>
726
727 * symtab.c (struct demangled_name_entry): Add a constructor.
728 (free_demangled_name_entry): New function to call the destructor
729 for demangled_name_entry.
730 (create_demangled_names_hash): Pass free_demangled_name_entry to
731 htab_create_alloc.
732 (symbol_set_names): Call placement new for demangled_name_entry.
733 * utils.c: No longer include xxhash.h here, now that fast_hash
734 is inlined in the header.
735 * utils.h: Instead, include it here.
736
737 2019-10-22 Christian Biesinger <cbiesinger@google.com>
738
739 * Makefile.in: Link with libxxhash.
740 * config.in: Regenerate.
741 * configure: Regenerate.
742 * configure.ac: Search for libxxhash.
743 * utils.c (fast_hash): Use xxhash if present.
744
745 2019-10-22 Christian Biesinger <cbiesinger@google.com>
746
747 * utils.h (fast_hash): New function.
748 * symtab.c (hash_demangled_name_entry): Call new function
749 fast_hash.
750
751 2019-10-22 Christian Biesinger <cbiesinger@google.com>
752
753 * symtab.c (struct demangled_name_entry): Change type of mangled
754 to gdb::string_view. Also adds a constructor that takes the
755 mangled name.
756 (hash_demangled_name_entry): Update.
757 (eq_demangled_name_entry): Update.
758 (free_demangled_name_entry): New function to call the destructor
759 now that this is not a POD anymore.
760 (create_demangled_names_hash): Pass free_demangled_name_entry to
761 htab_create_alloc.
762 (symbol_set_names): Update.
763
764 2019-10-21 Ali Tamur <tamu@google.com>
765
766 * dwarf2read.c (dir_index): Change type.
767 (file_name_index): Likewise.
768 (line_header::include_dir_at): Change comment and implementation on
769 whether it is DWARF 5.
770 (line_header::is_valid_file_index): New function.
771 (line_header::file_name_at): Change comment and implementation on
772 whether it is DWARF 5.
773 (line_header::file_names): Change to private field renamed as
774 m_file_names and introduce a new accessor method.
775 (line_header::file_names_size): New method.
776 (line_header::include_dirs): Change to private field and rename as
777 m_include_dirs.
778 (dw2_get_file_names_reader): Define local var at a smaller scope and
779 reflect API change.
780 (dwarf2_cu::setup_type_unit_groups): Reflect API change.
781 (process_structure_scope): Likewise.
782 (line_header::add_include_dir): Change message and reflect renaming.
783 (line_header::add_file_name): Likewise.
784 (read_formatted_entries): Handle DW_FORM_data16.
785 (dwarf_decode_line_header): Fix line header length calculation.
786 (psymtab_include_file_name): Change comment and API.
787 (lnp_state_machine::m_file): Update comment and reflect type change.
788 (lnp_state_machine::record_line): Reflect type change.
789 (dwarf_decode_lines): Reflect API change.
790 (file_file_name): Likewise.
791 (file_full_name): Likewise.
792
793 2019-10-21 Andrew Burgess <andrew.burgess@embecosm.com>
794
795 * objfiles.c (sort_cmp): Ensure that !(a < a) holds true.
796
797 2019-10-21 Tom Tromey <tom@tromey.com>
798
799 * tui/tui-winsource.h (tui_exec_info_content): Remove typedef.
800
801 2019-10-21 Tom Tromey <tom@tromey.com>
802
803 * configure.ac (nm.h): Conditionally create nm.h link. Subst
804 NM_H. Use AC_CONFIG_LINKS.
805 * configure: Rebuild.
806 * Makefile.in (NM_H): New variable.
807 (generated_files): Add NM_H. Remove gcore.
808 (nm.h, stamp-nmh): New targets.
809
810 2019-10-20 Tom Tromey <tom@tromey.com>
811
812 * objfiles.h (unlink_objfile, put_objfile_before): Don't declare.
813 * objfiles.c (unlink_objfile): Move earlier. Now static. Remove
814 obsolete comment.
815 (put_objfile_before): Now static.
816
817 2019-10-19 Simon Marchi <simon.marchi@polymtl.ca>
818
819 * gdbsupport/common-utils.h (startswith): Change return type to
820 bool.
821
822 2019-10-19 Christian Biesinger <cbiesinger@google.com>
823
824 * bcache.c (bcache::print_statistics): Use std::sort instead of qsort.
825 * breakpoint.c (bp_locations_compare): Rename to...
826 (bp_location_is_less_than): ...this, and change to std::sort semantics.
827 (update_global_location_list): Use std::sort instead of qsort.
828 * buildsym.c (compare_line_numbers): Rename to...
829 (lte_is_less_than): ...this, and change to std::sort semantics.
830 (buildsym_compunit::end_symtab_with_blockvector): Use std::sort
831 instead of qsort.
832 * disasm.c (compare_lines): Rename to...
833 (line_is_less_than): ...this, and change to std::sort semantics.
834 (do_mixed_source_and_assembly_deprecated): Call std::sort instead
835 of qsort.
836 * dwarf2-frame.c (qsort_fde_cmp): Rename to...
837 (fde_is_less_than): ...this, and change to std::sort semantics.
838 (dwarf2_build_frame_info): Call std::sort instead of qsort.
839 * mdebugread.c (compare_blocks):
840 (block_is_less_than): ...this, and change to std::sort semantics.
841 (sort_blocks): Call std::sort instead of qsort.
842 * objfiles.c (qsort_cmp): Rename to...
843 (sort_cmp): ...this, and change to std::sort semantics.
844 (update_section_map): Call std::sort instead of qsort.
845 * remote.c (compare_pnums): Remove.
846 (map_regcache_remote_table): Call std::sort instead of qsort.
847 * utils.c (compare_positive_ints): Remove.
848 * utils.h (compare_positive_ints): Remove.
849 * xcoffread.c (compare_lte): Remove.
850 (arrange_linetable): Call std::sort instead of qsort.
851
852 2019-10-19 Sergio Durigan Junior <sergiodj@redhat.com>
853
854 * symfile.c (init_entry_point_info): Fix typo.
855 * i386-darwin-tdep.c (darwin_dwarf_signal_frame_p): Fix typo.
856
857 2019-10-18 Tom de Vries <tdevries@suse.de>
858
859 * aarch64-tdep.c: Fix typos in comments.
860 * ada-lang.c: Same.
861 * ada-tasks.c: Same.
862 * alpha-tdep.c: Same.
863 * alpha-tdep.h: Same.
864 * amd64-nat.c: Same.
865 * amd64-windows-tdep.c: Same.
866 * arc-tdep.c: Same.
867 * arc-tdep.h: Same.
868 * arch-utils.c: Same.
869 * arm-nbsd-tdep.c: Same.
870 * arm-tdep.c: Same.
871 * ax-gdb.c: Same.
872 * blockframe.c: Same.
873 * btrace.c: Same.
874 * c-varobj.c: Same.
875 * coff-pe-read.c: Same.
876 * coffread.c: Same.
877 * cris-tdep.c: Same.
878 * darwin-nat.c: Same.
879 * dbxread.c: Same.
880 * dcache.c: Same.
881 * disasm.c: Same.
882 * dtrace-probe.c: Same.
883 * dwarf-index-write.c: Same.
884 * dwarf2-frame-tailcall.c: Same.
885 * dwarf2-frame.c: Same.
886 * dwarf2read.c: Same.
887 * eval.c: Same.
888 * exceptions.c: Same.
889 * fbsd-tdep.c: Same.
890 * findvar.c: Same.
891 * frame.c: Same.
892 * frv-tdep.c: Same.
893 * gnu-v3-abi.c: Same.
894 * go32-nat.c: Same.
895 * h8300-tdep.c: Same.
896 * hppa-tdep.c: Same.
897 * i386-linux-tdep.c: Same.
898 * i386-tdep.c: Same.
899 * ia64-libunwind-tdep.c: Same.
900 * ia64-tdep.c: Same.
901 * infcmd.c: Same.
902 * infrun.c: Same.
903 * linespec.c: Same.
904 * linux-nat.c: Same.
905 * linux-thread-db.c: Same.
906 * machoread.c: Same.
907 * mdebugread.c: Same.
908 * mep-tdep.c: Same.
909 * mn10300-tdep.c: Same.
910 * namespace.c: Same.
911 * objfiles.c: Same.
912 * opencl-lang.c: Same.
913 * or1k-tdep.c: Same.
914 * osabi.c: Same.
915 * ppc-linux-nat.c: Same.
916 * ppc-linux-tdep.c: Same.
917 * ppc-sysv-tdep.c: Same.
918 * printcmd.c: Same.
919 * procfs.c: Same.
920 * record-btrace.c: Same.
921 * record-full.c: Same.
922 * remote-fileio.c: Same.
923 * remote.c: Same.
924 * rs6000-tdep.c: Same.
925 * s12z-tdep.c: Same.
926 * score-tdep.c: Same.
927 * ser-base.c: Same.
928 * ser-go32.c: Same.
929 * skip.c: Same.
930 * sol-thread.c: Same.
931 * solib-svr4.c: Same.
932 * solib.c: Same.
933 * source.c: Same.
934 * sparc-nat.c: Same.
935 * sparc-sol2-tdep.c: Same.
936 * sparc-tdep.c: Same.
937 * sparc64-tdep.c: Same.
938 * stabsread.c: Same.
939 * stack.c: Same.
940 * symfile.c: Same.
941 * symtab.c: Same.
942 * target-descriptions.c: Same.
943 * target-float.c: Same.
944 * thread.c: Same.
945 * utils.c: Same.
946 * valops.c: Same.
947 * valprint.c: Same.
948 * value.c: Same.
949 * varobj.c: Same.
950 * windows-nat.c: Same.
951 * xcoffread.c: Same.
952 * xstormy16-tdep.c: Same.
953 * xtensa-tdep.c: Same.
954
955 2019-10-17 Tom Tromey <tromey@adacore.com>
956
957 * configure: Rebuild.
958 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
959 in AC_CONFIG_FILES invocation.
960 * Makefile.in (Makefile, data-directory/Makefile, stamp-h): Use
961 new-style config.status invocation.
962
963 2019-10-17 Tom de Vries <tdevries@suse.de>
964
965 * arm-nbsd-nat.c: Fix typos in comments.
966 * arm-tdep.c: Same.
967 * darwin-nat-info.c: Same.
968 * dwarf2read.c: Same.
969 * elfread.c: Same.
970 * event-top.c: Same.
971 * findvar.c: Same.
972 * gdbtypes.c: Same.
973 * hppa-tdep.c: Same.
974 * i386-tdep.c: Same.
975 * jit.c: Same.
976 * main.c: Same.
977 * mdebugread.c: Same.
978 * moxie-tdep.c: Same.
979 * nto-procfs.c: Same.
980 * osabi.c: Same.
981 * ppc-linux-tdep.c: Same.
982 * remote.c: Same.
983 * riscv-tdep.c: Same.
984 * s390-tdep.c: Same.
985 * sh-tdep.c: Same.
986 * sparc-linux-tdep.c: Same.
987 * sparc-nat.c: Same.
988 * stack.c: Same.
989 * target-descriptions.c: Same.
990 * top.c: Same.
991 * varobj.c: Same.
992
993 2019-10-16 Tom Tromey <tom@tromey.com>
994
995 * objfiles.h (struct objfile) <original_name>: Now const.
996
997 2019-10-16 Christian Biesinger <cbiesinger@google.com>
998
999 * gdbsupport/gdb_setjmp.h (SIGSETJMP): Allow passing in the value to
1000 pass on to sigsetjmp's second argument.
1001 * cp-support.c (gdb_demangle): Unblock SIGSEGV if we caught a crash.
1002
1003 2019-10-16 Keith Seitz <keiths@redhat.com>
1004
1005 PR gdb/23567
1006 * dwarf2read.c (dwarf2_per_objfile::locate_sections): Discard
1007 sections whose size is greater than the file size.
1008
1009 2019-10-16 Jim Wilson <jimw@sifive.com>
1010
1011 * riscv-tdep.c (riscv_gcc_target_options): New.
1012 (riscv_gnu_triplet_regexp): New.
1013 (riscv_gdbarch_init): Call set_gdbarch_gcc_triplet_options and
1014 set_gdbarch_gnu_triplet_regexp.
1015
1016 2019-10-16 Christian Biesinger <cbiesinger@google.com>
1017
1018 * Makefile.in: Add xml-builtin.h.
1019 * features/feature_to_c.sh: Add an include for xml-builtin.h
1020 to ensure that the compiler checks that the types match.
1021 * xml-builtin.h: New file.
1022 * xml-support.c (fetch_xml_builtin): Add missing const.
1023 * xml-support.h: Remove declaration of xml_builtins.
1024
1025 2019-10-16 Tom de Vries <tdevries@suse.de>
1026
1027 PR tdep/25096
1028 * amd64-tdep.c (amd64_classify_aggregate_field): Factor out of ...
1029 (amd64_classify_aggregate): ... here.
1030 (amd64_classify_aggregate_field): Handled fiels of nested structs
1031 recursively.
1032
1033 2019-10-16 Tom de Vries <tdevries@suse.de>
1034
1035 PR tdep/24104
1036 * amd64-tdep.c (amd64_push_arguments): Handle AMD64_NO_CLASS in loop
1037 that handles 'theclass'.
1038
1039 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
1040
1041 * linespec.c (decode_digits_ordinary): Update comment.
1042 * make-target-delegates: No longer need to handle VEC case.
1043 * memrange.c (normalize_mem_ranges): Update comment.
1044 * namespace.c (add_using_directive): Update comment.
1045 * objc-lang.c (uniquify_strings): Update comment.
1046 * ppc-linux-nat.c (struct thread_points): Update comment.
1047 * probe.h (find_probes_in_objfile): Update comment.
1048 * target.h (enum flash_preserve_mode): Update comment.
1049 * varobj.c (varobj_restrict_range): Update comment.
1050 * varobj.h (varobj_list_children): Update comment.
1051
1052 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
1053
1054 * Makefile.in: Remove references to vec.h and vec.c.
1055 * aarch64-tdep.c: No longer include vec.h.
1056 * ada-lang.c: Likewise.
1057 * ada-lang.h: Likewise.
1058 * arm-tdep.c: Likewise.
1059 * ax.h: Likewise.
1060 * breakpoint.h: Likewise.
1061 * charset.c: Likewise.
1062 * cp-support.h: Likewise.
1063 * dtrace-probe.c: Likewise.
1064 * dwarf2read.c: Likewise.
1065 * extension.h: Likewise.
1066 * gdb_bfd.c: Likewise.
1067 * gdbsupport/gdb_vecs.h: Likewise.
1068 * gdbsupport/vec.c: Remove.
1069 * gdbsupport/vec.h: Remove.
1070 * gdbthread.h: Likewise.
1071 * guile/scm-type.c: Likewise.
1072 * inline-frame.c: Likewise.
1073 * machoread.c: Likewise.
1074 * memattr.c: Likewise.
1075 * memrange.h: Likewise.
1076 * namespace.h: Likewise.
1077 * nat/linux-btrace.h: Likewise.
1078 * osdata.c: Likewise.
1079 * parser-defs.h: Likewise.
1080 * progspace.h: Likewise.
1081 * python/py-type.c: Likewise.
1082 * record-btrace.c: Likewise.
1083 * rust-exp.y: Likewise.
1084 * solib-target.c: Likewise.
1085 * stap-probe.c: Likewise.
1086 * target-descriptions.c: Likewise.
1087 * target-memory.c: Likewise.
1088 * target.h: Likewise.
1089 * varobj.c: Likewise.
1090 * varobj.h: Likewise.
1091 * xml-support.h: Likewise.
1092
1093 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
1094
1095 * gdb/dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile):
1096 Update for new std::vector based implementation.
1097 (process_psymtab_comp_unit_reader): Likewise.
1098 (scan_partial_symbols): Likewise.
1099 (recursively_compute_inclusions): Likewise.
1100 (compute_compunit_symtab_includes): Likewise.
1101 (process_imported_unit_die): Likewise.
1102 (queue_and_load_dwo_tu): Likewise.
1103 (follow_die_sig_1): Likewise.
1104 * gdb/dwarf2read.h: Remove DEF_VEC_P.
1105 (typedef dwarf2_per_cu_ptr): Remove.
1106 (struct dwarf2_per_cu_data) <imported_symtabs_empty>: New
1107 function.
1108 (struct dwarf2_per_cu_data) <imported_symtabs_push>: New function.
1109 (struct dwarf2_per_cu_data) <imported_symtabs_size>: New function.
1110 (struct dwarf2_per_cu_data) <imported_symtabs_free>: New function.
1111 (struct dwarf2_per_cu_data) <imported_symtabs>: Change to
1112 std::vector.
1113
1114 2019-10-15 Tom Tromey <tromey@adacore.com>
1115
1116 * windows-nat.c (windows_nat_target::resume): Use %x when logging
1117 TID.
1118
1119 2019-10-15 Tom Tromey <tromey@adacore.com>
1120
1121 * windows-nat.c (windows_nat_target::fetch_registers)
1122 (windows_nat_target::store_registers): Rename "pid" to "tid".
1123
1124 2019-10-15 Tom Tromey <tromey@adacore.com>
1125
1126 * gdbarch.h, gdbarch.c: Rebuild.
1127 * gdbarch.sh (gcc_target_options): Change return type to
1128 std::string.
1129 * compile/compile.c (get_args): Update.
1130 * nios2-tdep.c (nios2_gcc_target_options): Return std::string.
1131 * arm-linux-tdep.c (arm_linux_gcc_target_options): Return
1132 std::string.
1133 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): Return
1134 std::string.
1135 * arch-utils.c (default_gcc_target_options): Return std::string.
1136 * arch-utils.h (default_gcc_target_options): Return std::string.
1137 * s390-tdep.c (s390_gcc_target_options): Return std::string.
1138
1139 2019-10-15 Christian Biesinger <cbiesinger@google.com>
1140
1141 * breakpoint.c (breakpoint_chain): Make static.
1142 * tui/tui-winsource.c: Call iterate_over_breakpoints instead
1143 of accessing breakpoint_chain.
1144
1145 2019-10-15 Christian Biesinger <cbiesinger@google.com>
1146
1147 * breakpoint.c (iterate_over_breakpoints): Change function pointer
1148 to a gdb::function_view and return value to bool.
1149 * breakpoint.h (iterate_over_breakpoints): Likewise.
1150 * dummy-frame.c (pop_dummy_frame_bpt): Update.
1151 (pop_dummy_frame): Update.
1152 * guile/scm-breakpoint.c (bpscm_build_bp_list): Update.
1153 (gdbscm_breakpoints): Update.
1154 * python/py-breakpoint.c (build_bp_list): Update.
1155 (gdbpy_breakpoints): Update.
1156 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
1157 Update.
1158 (bpfinishpy_handle_stop): Update.
1159 (bpfinishpy_handle_exit): Update.
1160 * solib-svr4.c (svr4_update_solib_event_breakpoint): Update.
1161 (svr4_update_solib_event_breakpoints): Update.
1162
1163 2019-10-15 Andreas Arnez <arnez@linux.ibm.com>
1164
1165 * s390-tdep.c (s390_effective_inner_type): Ignore static fields
1166 when unwrapping single-field structs.
1167
1168 2019-10-14 Simon Marchi <simon.marchi@polymtl.ca>
1169
1170 * dwarf2read.c: Remove includes.
1171
1172 2019-10-13 Simon Marchi <simon.marchi@polymtl.ca>
1173
1174 * ui-out.c (ui_out::call_do_message): Silence
1175 -Wformat-nonliteral warning.
1176
1177 2019-10-12 Simon Marchi <simon.marchi@polymtl.ca>
1178
1179 * breakpoint.c: Remove some includes: continuations.h, skip.h,
1180 mi/mi-main.h, readline/readline.h, readline/history.h. Add
1181 include: readline/tilde.h.
1182
1183 2019-10-12 Christian Biesinger <cbiesinger@google.com>
1184
1185 * remote.c (remote_target::get_trace_status): Remove declaration of
1186 trace_regblock_size.
1187
1188 2019-10-12 Christian Biesinger <cbiesinger@google.com>
1189
1190 * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
1191 (show_user): Remove declaration of cmdlist.
1192 * cli/cli-cmds.h (max_user_call_depth): Declare.
1193 * cli/cli-script.c (execute_user_command): Remove declaration
1194 of max_user_call_depth.
1195
1196 2019-10-11 Jim Wilson <jimw@sifive.com>
1197
1198 * gdbsupport/print-utils.h (pulongest): Fix comment.
1199 (plongest): Likewise.
1200 (phex): Add missing comment, mention leading zeros.
1201 (phex_nz): Add mention of no leading zeros to comment.
1202
1203 * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
1204 plongest instead of unsigned long long cast.
1205
1206 2019-10-10 Christian Biesinger <cbiesinger@google.com>
1207
1208 * main.c (captured_main_1): Include gdbtk.h and remove declarations
1209 for external_editor_command and gdbtk_test.
1210
1211 2019-10-10 Christian Biesinger <cbiesinger@google.com>
1212
1213 * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
1214 * varobj.c (varobjdebug): Move comment to...
1215 * varobj.h (varobjdebug): ...here, and declare.
1216
1217 2019-10-09 Tom Tromey <tom@tromey.com>
1218
1219 * tui/tui-regs.c (tui_data_window::show_registers): Don't call
1220 erase_data_content.
1221
1222 2019-10-09 Tom Tromey <tom@tromey.com>
1223
1224 * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
1225 * tui/tui-stack.c (tui_locator_window::rerender): Update.
1226 * tui/tui-command.c (tui_cmd_window::resize)
1227 (tui_refresh_cmd_win): Update.
1228 * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
1229 * tui/tui.c (tui_rl_other_window, tui_enable): Update.
1230 * tui/tui-data.c (~tui_gen_win_info): Remove.
1231 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
1232 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
1233 (tui_redisplay_readline, tui_mld_flush)
1234 (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
1235 * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
1236 (tui_data_window::erase_data_content)
1237 (tui_data_item_window::rerender)
1238 (tui_data_item_window::refresh_window): Update.
1239 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
1240 (box_win, tui_gen_win_info::make_window)
1241 (tui_gen_win_info::make_visible): Update.
1242 (tui_delete_win): Remove.
1243 * tui/tui-winsource.c
1244 (tui_source_window_base::do_erase_source_content): Update.
1245 (tui_show_source_line, tui_source_window_base::update_tab_width)
1246 (tui_source_window_base::update_exec_info): Update.
1247 * tui/tui-data.h (struct curses_deleter): New.
1248 (struct tui_gen_win_info) <handle>: Now a unique_ptr.
1249 (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
1250
1251 2019-10-09 Tom Tromey <tom@tromey.com>
1252
1253 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
1254
1255 2019-10-09 Tom Tromey <tom@tromey.com>
1256
1257 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
1258 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
1259
1260 2019-10-09 Tom Tromey <tom@tromey.com>
1261
1262 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
1263 window height directly.
1264 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
1265 declare.
1266 * tui/tui-layout.c (tui_default_win_height): Remove.
1267 (tui_default_win_viewport_height): Remove.
1268
1269 2019-10-09 Tom Tromey <tom@tromey.com>
1270
1271 * tui/tui.h: Remove comments.
1272
1273 2019-10-09 Tom de Vries <tdevries@suse.de>
1274
1275 * python/lib/gdb/printer/bound_registers.py: Use
1276 '^builtin_type_bound128' as regexp argument for
1277 add_builtin_pretty_printer.
1278
1279 2019-10-09 Christian Biesinger <cbiesinger@google.com>
1280
1281 * guile/guile.c (guile_extension_script_ops): Remove forward
1282 declaration and mark as static.
1283 (guile_script_ops): Likewise.
1284 (extension_language_guile): Move further down in the file so
1285 it can reference the definitions for guile_{extension_,}script_ops.
1286
1287 2019-10-09 Andreas Arnez <arnez@linux.ibm.com>
1288
1289 * s390-tdep.c (390_process_record): Handle new arch13 instructions
1290 except SORTL, DFLTCC, and KDSA.
1291
1292 2019-10-08 Tom Tromey <tromey@adacore.com>
1293
1294 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
1295 (struct safe_symbol_file_add_args): Remove.
1296
1297 2019-10-08 Tom Tromey <tromey@adacore.com>
1298
1299 * windows-nat.c: Don't include buildsym-legacy.h.
1300
1301 2019-10-08 Tom Tromey <tromey@adacore.com>
1302
1303 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
1304
1305 2019-10-08 Christian Biesinger <cbiesinger@google.com>
1306
1307 * gdbtypes.c (overload_debug): Move comment to header.
1308 * gdbtypes.h (overload_debug): Declare.
1309 * valops.c: Remove declaration of overload_debug, instead
1310 include gdbtypes.h.
1311
1312 2019-10-08 Christian Biesinger <cbiesinger@google.com>
1313
1314 * language.c (show_language_command): Pass lang_frame_mismatch_warn
1315 through _().
1316 (lang_frame_mismatch_warn): Make const, mark with N_(), and
1317 move comment...
1318 * language.h (lang_frame_mismatch_warn): ... here. Also add
1319 declaration.
1320 * top.c (lang_frame_mismatch_warn): Remove declaration.
1321 (check_frame_language_change): Pass lang_frame_mismatch_warn
1322 through _().
1323
1324 2019-10-07 Christian Biesinger <cbiesinger@google.com>
1325
1326 * c-lang.h (vtbl_ptr_name): Declare.
1327 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
1328 it from the header.
1329 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
1330
1331 2019-10-07 Christian Biesinger <cbiesinger@google.com>
1332
1333 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
1334 gdb_static_assert.
1335
1336 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
1337
1338 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
1339 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
1340 * ctfread.c: New file.
1341 * ctfread.h: New file.
1342 * elfread.c: Include ctfread.h.
1343 (struct elfinfo text_p): New member ctfsect.
1344 (elf_locate_sections): Mark CTF section.
1345 (elf_symfile_read): Call elfctf_build_psymtabs.
1346 * Makefile.in (LIBCTF): Add.
1347 (CLIBS): Use it.
1348 (CDEPS): Likewise.
1349 (DIST): Add ctfread.c.
1350
1351 2019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
1352
1353 * ctfread.c (struct nextfield): Renamed to ...
1354 (struct ctf_nextfield): ... this.
1355 (struct field_info): Renamed to ...
1356 (strut ctf_field_info): ... this.
1357 (attach_fields_to_type): Update for renamed structures.
1358 (ctf_add_member_cb): Likewise.
1359 (ctf_add_enum_member_cb): Likewise.
1360 (process_struct_members): Likewise.
1361 (process_enum_type): Likewise.
1362
1363 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
1364
1365 * tracectf.h: Rename, was ctf.h.
1366 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
1367 * tracefile.c: Likewise.
1368 * tracepoint.c: Remove unused include ctf.h.
1369 * mi/mi-main.c: Likewise.
1370 * Makefile.in Replace ctf.c with tracectf.c.
1371
1372 2019-10-06 Joel Brobecker <brobecker@adacore.com>
1373
1374 * version.in: Change version number to "9.0.50.DATE-git".
1375
1376 2019-10-03 Tom Tromey <tom@tromey.com>
1377
1378 PR rust/24976:
1379 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
1380
1381 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
1382
1383 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
1384 cp_search_name_hash.
1385 * NEWS: Add entry about nested function support.
1386
1387 2019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
1388 Andrew Burgess <andrew.burgess@embecosm.com>
1389
1390 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
1391 for nested static variables when searchin VAR_DOMAIN.
1392 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
1393 global scope, update comment.
1394 (add_partial_subprogram): Call add_partial_subprogram recursively
1395 for nested subroutines when processinng Fortran.
1396 (load_partial_dies): Process the child entities of a subprogram
1397 when processing Fortran.
1398 (partial_die_parent_scope): Handle building scope
1399 for Fortran nested functions.
1400 (process_die): Record that nested functions have a scope.
1401 (new_symbol): Always record Fortran subprograms on the global
1402 symbol list.
1403 (determine_prefix): How to build the prefix for Fortran
1404 subprograms.
1405
1406 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
1407
1408 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
1409 have just sent the thread a SIGSTOP and are waiting for it to
1410 arrive.
1411
1412 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
1413
1414 * btrace.c (btrace_add_pc): Remove whitespace before the template
1415 parameter in 'std::vector <...>'.
1416 (parse_xml_btrace_block): Likewise.
1417 (btrace_maint_decode_pt): Likewise.
1418 (btrace_maint_update_packets): Likewise.
1419 (btrace_maint_print_packets): Likewise.
1420 * btrace.h (struct btrace_maint_info): Likewise.
1421 * dwarf2read.c (struct type_unit_group): Likewise.
1422 (build_type_psymtabs_reader): Likewise.
1423 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
1424 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
1425 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
1426
1427 2019-10-03 Tom de Vries <tdevries@suse.de>
1428
1429 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
1430 the first line of the help text for set/show style metadata.
1431
1432 2019-10-02 Tom Tromey <tromey@adacore.com>
1433
1434 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
1435 * gdbsupport/common-inferior.c: New file.
1436 * infcmd.c (startup_with_shell): Don't define.
1437 * nat/fork-inferior.h (startup_with_shell): Don't declare.
1438 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
1439 * inferior.h (startup_with_shell): Don't declare.
1440
1441 2019-10-02 Christian Biesinger <cbiesinger@google.com>
1442
1443 * gdbsupport/gdb_assert.h: Include errors.h.
1444 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
1445
1446 2019-10-02 Tom Tromey <tromey@adacore.com>
1447
1448 * NEWS: Add $_ada_exception entry.
1449 * ada-lang.c (struct ada_catchpoint): Add constructor.
1450 <m_kind>: New member.
1451 (allocate_location_exception, re_set_exception): Remove
1452 "ex" parameter.
1453 (should_stop_exception): Compute $_ada_exception.
1454 (check_status_exception, print_it_exception)
1455 (print_one_exception, print_mention_exception): Remove
1456 "ex" parameter.
1457 (allocate_location_catch_exception, re_set_catch_exception)
1458 (check_status_exception, print_it_catch_exception)
1459 (print_one_catch_exception, print_mention_catch_exception)
1460 (print_recreate_catch_exception)
1461 (allocate_location_catch_exception_unhandled)
1462 (re_set_catch_exception_unhandled)
1463 (check_status_exception, print_it_catch_exception_unhandled)
1464 (print_one_catch_exception_unhandled)
1465 (print_mention_catch_exception_unhandled)
1466 (print_recreate_catch_exception_unhandled)
1467 (allocate_location_catch_assert, re_set_catch_assert)
1468 (check_status_assert, print_it_catch_assert)
1469 (print_one_catch_assert, print_mention_catch_assert)
1470 (print_recreate_catch_assert)
1471 (allocate_location_catch_handlers, re_set_catch_handlers)
1472 (check_status_handlers, print_it_catch_handlers)
1473 (print_one_catch_handlers, print_mention_catch_handlers)
1474 (print_recreate_catch_handlers): Remove.
1475 (create_ada_exception_catchpoint): Update.
1476 (initialize_ada_catchpoint_ops): Update.
1477
1478 2019-10-02 Tom Tromey <tromey@adacore.com>
1479
1480 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
1481 (create_excep_cond_exprs): Simplify exception string computation.
1482 (ada_exception_catchpoint_cond_string): Likewise.
1483
1484 2019-10-02 Tom Tromey <tromey@adacore.com>
1485
1486 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
1487 * ada-lang.c (lesseq_defined_than): Handle
1488 LOC_STATIC.
1489 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
1490 parameter.
1491 (dwarf2_has_info): Likewise.
1492 (new_symbol): Set maybe_copied on symbol when
1493 appropriate.
1494 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
1495 parameter.
1496 <can_copy>: New member.
1497 * elfread.c (record_minimal_symbol): Set maybe_copied
1498 on symbol when appropriate.
1499 (elf_symfile_read): Update call to dwarf2_has_info.
1500 * minsyms.c (lookup_minimal_symbol_linkage): New
1501 function.
1502 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
1503 * symtab.c (get_symbol_address, get_msymbol_address):
1504 New functions.
1505 * symtab.h (get_symbol_address, get_msymbol_address):
1506 Declare.
1507 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
1508 maybe_copied.
1509 (struct symbol, struct minimal_symbol) <maybe_copied>:
1510 New member.
1511
1512 2019-10-02 Tom Tromey <tromey@adacore.com>
1513
1514 * source.c (struct current_source_location): New.
1515 (current_source_key): New global.
1516 (current_source_symtab, current_source_line)
1517 (current_source_pspace): Remove.
1518 (get_source_location): New function.
1519 (get_current_source_symtab_and_line)
1520 (set_default_source_symtab_and_line)
1521 (set_current_source_symtab_and_line)
1522 (clear_current_source_symtab_and_line, select_source_symtab)
1523 (info_source_command, print_source_lines_base)
1524 (info_line_command, search_command_helper, _initialize_source):
1525 Update.
1526
1527 2019-10-02 Tom Tromey <tromey@adacore.com>
1528
1529 * source.c (select_source_symtab): Don't call
1530 decode_line_with_current_source.
1531
1532 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
1533
1534 * symtab.c (lookup_global_symbol): Search global block.
1535
1536 2019-10-02 Tom Tromey <tromey@adacore.com>
1537
1538 * coffread.c (process_coff_symbol): Update.
1539 * dwarf2read.c (var_decode_location, new_symbol): Update.
1540 * mdebugread.c (parse_symbol): Update.
1541 * objfiles.c (relocate_one_symbol): Update.
1542 * stabsread.c (define_symbol, fix_common_block)
1543 (scan_file_globals): Update.
1544 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
1545 (SET_SYMBOL_VALUE_ADDRESS): New macro.
1546 * xcoffread.c (process_xcoff_symbol): Update.
1547
1548 2019-10-02 Andreas Arnez <arnez@linux.ibm.com>
1549
1550 * MAINTAINERS: Update my email address.
1551
1552 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
1553
1554 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
1555 std::vector.
1556 (build_type_psymtabs_reader): Update for std::vector.
1557 (build_type_psymtab_dependencies): Likewise.
1558 * dwarf2read.h: Remove use of DEF_VEC_P.
1559 (typedef sig_type_ptr): Delete.
1560
1561 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
1562
1563 * btrace.c (btrace_maint_clear): Update to handle change from VEC
1564 to std::vector.
1565 (btrace_maint_decode_pt): Likewise, and move allocation of the
1566 vector outside of the loop.
1567 (btrace_maint_update_packets): Update to handle change from VEC to
1568 std::vector.
1569 (btrace_maint_print_packets): Likewise.
1570 (maint_info_btrace_cmd): Likewise.
1571 * btrace.h: Remove use of DEF_VEC_O.
1572 (typedef btrace_pt_packet_s): Delete.
1573 (struct btrace_maint_info) <packets>: Change fromm VEC to
1574 std::vector.
1575 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
1576
1577 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
1578
1579 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
1580 make accesses into the vector constant references.
1581 (btrace_add_pc): Update for std::vector.
1582 (btrace_stitch_bts): Likewise.
1583 (parse_xml_btrace_block): Likewise.
1584 (btrace_maint_update_packets): Likewise.
1585 (btrace_maint_print_packets): Likewise.
1586 (maint_info_btrace_cmd): Likewise.
1587 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
1588 std::vector.
1589 (btrace_data::empty): Likewise.
1590 (btrace_data_append): Likewise.
1591 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
1592 (typedef btrace_block_s): Delete.
1593 (struct btrace_block): Add constructor.
1594 (struct btrace_data_bts) <blocks>: Change to std::vector.
1595 * nat/linux-btrace.c (perf_event_read_bts): Update for
1596 std::vector.
1597 (linux_read_bts): Likewise.
1598
1599 2019-10-01 Tom Tromey <tom@tromey.com>
1600
1601 * cli/cli-logging.c (show_logging_filename): Use styled_string.
1602
1603 2019-10-01 Tom Tromey <tom@tromey.com>
1604
1605 * stack.c (print_frame, info_frame_command_core): Use
1606 styled_string.
1607 * linux-thread-db.c (try_thread_db_load_1)
1608 (try_thread_db_load_from_pdir_1): Use styled_string.
1609 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
1610 (auto_load_section_scripts, info_auto_load_local_gdbinit)
1611 (maybe_print_unsupported_script_warning)
1612 (maybe_print_script_not_found_warning): Use styled_string.
1613 * ada-lang.c (user_select_syms): Use styled_string.
1614
1615 2019-10-01 Tom Tromey <tom@tromey.com>
1616
1617 * p-lang.c (pascal_printstr): Use metadata style.
1618 * value.c (show_convenience): Use metadata style.
1619 * valprint.c (valprint_check_validity, val_print_optimized_out)
1620 (val_print_not_saved, val_print_unavailable)
1621 (val_print_invalid_address, generic_val_print, val_print)
1622 (value_check_printable, val_print_array_elements): Use metadata
1623 style.
1624 * ui-out.h (class ui_out) <field_fmt>: New overload.
1625 <do_field_fmt>: Add style parameter.
1626 * ui-out.c (ui_out::field_fmt): New overload.
1627 * typeprint.c (type_print_unknown_return_type)
1628 (val_print_not_allocated, val_print_not_associated): Use metadata
1629 style.
1630 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
1631 parameter.
1632 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
1633 * tracepoint.c (tvariables_info_1): Use metadata style.
1634 * stack.c (print_frame_arg, print_frame_info, print_frame)
1635 (info_frame_command_core): Use metadata style.
1636 * skip.c (info_skip_command): Use metadata style.
1637 * rust-lang.c (rust_print_enum): Use metadata style.
1638 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
1639 metadata style.
1640 * python/py-framefilter.c (py_print_single_arg): Use metadata
1641 style.
1642 * printcmd.c (do_one_display, print_variable_and_value): Use
1643 metadata style.
1644 * p-valprint.c (pascal_val_print)
1645 (pascal_object_print_value_fields): Use metadata style.
1646 * p-typeprint.c (pascal_type_print_base): Use metadata style.
1647 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
1648 parameter.
1649 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
1650 * m2-valprint.c (m2_print_long_set): Use metadata style.
1651 * m2-typeprint.c (m2_print_type): Use metadata style.
1652 * infcmd.c (print_return_value_1): Use metadata style.
1653 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
1654 * f-valprint.c (info_common_command_for_block): Use metadata
1655 style.
1656 * f-typeprint.c (f_type_print_base): Use metadata style.
1657 * expprint.c (print_subexp_standard): Use metadata style.
1658 * cp-valprint.c (cp_print_value_fields): Use metadata style.
1659 * cli/cli-style.h (class cli_style_option): Add constructor.
1660 (metadata_style): Declare.
1661 * cli/cli-style.c (metadata_style): New global.
1662 (_initialize_cli_style): Register metadata style.
1663 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
1664 parameter.
1665 * cli-out.c (cli_ui_out::do_field_fmt): Update.
1666 * c-typeprint.c (c_type_print_base_struct_union)
1667 (c_type_print_base_1): Use metadata style.
1668 * breakpoint.c (watchpoint_value_print)
1669 (print_one_breakpoint_location): Use metadata style.
1670 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
1671 style.
1672 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
1673 style.
1674 * ada-valprint.c (val_print_packed_array_elements, printstr)
1675 (print_field_values, ada_val_print_ref, ada_val_print): Use
1676 metadata style.
1677 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
1678 style.
1679 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
1680 style.
1681 * ada-lang.c (user_select_syms): Use metadata style.
1682
1683 2019-10-01 Tom Tromey <tom@tromey.com>
1684
1685 * cli/cli-cmds.c (pwd_command): Style output.
1686
1687 2019-10-01 Pedro Alves <palves@redhat.com>
1688 Tom Tromey <tom@tromey.com>
1689
1690 * symtab.c (print_symbol_info): Use %ps.
1691 (print_msymbol_info): Use %ps.
1692 * symfile.c (symbol_file_add_with_addrs): Use %ps.
1693 * printcmd.c (print_variable_and_value): Use %ps.
1694 * macrocmd.c (show_pp_source_pos): Use %ps.
1695 * infrun.c (print_exited_reason): Use ui_out::message.
1696 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
1697 (describe_other_breakpoints): Use ui_out::message and new
1698 formats.
1699 (say_where): Use new formats.
1700 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
1701 and new formats.
1702
1703 2019-10-01 Pedro Alves <palves@redhat.com>
1704 Tom Tromey <tom@tromey.com>
1705
1706 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
1707 (test_gdb_formats): New function.
1708 (run_tests): Call it.
1709 (test_format_specifier): Update.
1710 * utils.h (fputs_filtered): Update comment.
1711 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
1712 (fputs_styled_unfiltered): Declare.
1713 * utils.c (fputs_styled_unfiltered): New function.
1714 (vfprintf_maybe_filtered): Add gdbfmt parameter.
1715 (vfprintf_filtered): Update.
1716 (vfprintf_unfiltered, vprintf_filtered): Update.
1717 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
1718 * ui-out.h (enum ui_out_flag) <unfiltered_output,
1719 disallow_ui_out_field>: New constants.
1720 (enum class field_kind): New.
1721 (struct base_field_s, struct signed_field_s): New.
1722 (signed_field): New function.
1723 (struct string_field_s): New.
1724 (string_field): New function.
1725 (struct styled_string_s): New.
1726 (styled_string): New function.
1727 (class ui_out) <message>: Add comment.
1728 <vmessage, call_do_message>: New methods.
1729 <do_message>: Add style parameter.
1730 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
1731 methods.
1732 (ui_out::message): Rewrite.
1733 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
1734 parameter.
1735 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
1736 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
1737 gdb_extensions parameter.
1738 (class format_piece): Add parameter to constructor.
1739 (n_int_args): New field.
1740 * gdbsupport/format.c (format_pieces::format_pieces): Add
1741 gdb_extensions parameter. Handle '*'.
1742 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
1743 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
1744 vfprintf_styled_no_gdbfmt.
1745 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
1746 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
1747 unfiltered output.
1748 * ui-style.h (struct ui_file_style) <ptr>: New method.
1749
1750 2019-10-01 Tom Tromey <tom@tromey.com>
1751
1752 * unittests/format_pieces-selftests.c: Update. Add final format.
1753 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
1754 empty literal pieces.
1755
1756 2019-10-01 Tom Tromey <tom@tromey.com>
1757
1758 * ui-out.h (enum class ui_out_style_kind): Remove.
1759 (class ui_out) <field_string, field_stsream, do_field_string>:
1760 Change type of "style".
1761 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
1762 (ui_out::field_string): Update.
1763 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
1764 of "style".
1765 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
1766 * tracepoint.c (print_one_static_tracepoint_marker): Update.
1767 * stack.c (print_frame_arg, print_frame_info, print_frame):
1768 Update.
1769 * source.c (print_source_lines_base): Update.
1770 * solib.c (info_sharedlibrary_command): Update.
1771 * skip.c (info_skip_command): Update.
1772 * record-btrace.c (btrace_call_history_src_line)
1773 (btrace_call_history): Update.
1774 * python/py-framefilter.c (py_print_frame): Update.
1775 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
1776 "style".
1777 * mi/mi-out.c (mi_ui_out::do_table_header)
1778 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
1779 (mi_ui_out::do_field_string): Update.
1780 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
1781 Update.
1782 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
1783 "style".
1784 * cli-out.c (cli_ui_out::do_table_header)
1785 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
1786 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
1787 (cli_ui_out::do_field_fmt): Update.
1788 * breakpoint.c (print_breakpoint_location): Update.
1789 (update_static_tracepoint): Update.
1790
1791 2019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1792
1793 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
1794 conversion of gdb_datadir.
1795 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
1796 remove not needed c_str ().
1797
1798 2019-09-30 Ali Tamur <tamur@google.com>
1799
1800 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
1801 (dwarf2_string_attr): Likewise.
1802
1803 2019-09-30 Ali Tamur <tamur@google.com>
1804
1805 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
1806 (process_full_type_unit): Likewise.
1807 (dump_die_shallow): Likewise.
1808 (cu_debug_loc_section): Likewise.
1809
1810 2019-09-28 Christian Biesinger <cbiesinger@google.com>
1811
1812 * minsyms.c (compare_minimal_symbols): Rename to...
1813 (minimal_symbol_is_less_than): ...this, and adjust to STL
1814 conventions (return bool, take arguments as references)
1815 (minimal_symbol_reader::install): Call std::sort instead
1816 of qsort.
1817
1818 2019-09-29 Christian Biesinger <cbiesinger@google.com>
1819
1820 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
1821 hash and why.
1822 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
1823 msymbol_hash, msymbol_demangled_hash>: Improve comments.
1824
1825 2019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
1826
1827 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
1828 * psympriv.h (add_psymbol_to_list): Move comment here and update
1829 it.
1830
1831 2019-09-29 Tom de Vries <tdevries@suse.de>
1832
1833 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
1834 Use $tmpdir/$(basename "$output_file").dwz instead of
1835 "${output_file}.dwz".
1836
1837 2019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
1838
1839 PR gdb/25045
1840 * hppa-linux-nat.c: Include gdbarch.h.
1841
1842 2019-09-26 Christian Biesinger <cbiesinger@google.com>
1843
1844 * blockframe.c (find_pc_partial_function): Change return type to bool.
1845 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
1846 * minsyms.c (in_gnu_ifunc_stub): Likewise.
1847 (stub_gnu_ifunc_resolve_name): Likewise.
1848 * symtab.c (compare_filenames_for_search): Likewise.
1849 (compare_glob_filenames_for_search): Likewise.
1850 (matching_obj_sections): Likewise.
1851 (symbol_matches_domain): Likewise.
1852 (find_line_symtab): Change out param EXACT_MATCH to bool *.
1853 (find_line_pc): Change return type to bool.
1854 (find_line_pc_range): Likewise.
1855 (producer_is_realview): Likewise.
1856 * symtab.h (symbol_matches_domain): Likewise.
1857 (find_pc_partial_function): Likewise.
1858 (find_pc_line_pc_range): Likewise.
1859 (in_gnu_ifunc_stub): Likewise.
1860 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
1861 (find_line_pc): Likewise.
1862 (find_line_pc_range): Likewise.
1863 (matching_obj_sections): Likewise.
1864 (find_line_symtab): Change out parameter to bool.
1865 (producer_is_realview): Change return type to bool.
1866 (compare_filenames_for_search): Likewise.
1867 (compare_glob_filenames_for_search): Likewise.
1868
1869 2019-09-26 Tom Tromey <tom@tromey.com>
1870
1871 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
1872 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
1873 * gdb_usleep.h: Remove.
1874 * gdb_usleep.c: Remove.
1875 * utils.c: Don't include gdb_usleep.h.
1876
1877 2019-09-26 Tom Tromey <tromey@adacore.com>
1878
1879 * python/py-type.c (type_to_type_object): Call check_typedef
1880 for stub types.
1881
1882 2019-09-26 Tom Tromey <tom@tromey.com>
1883
1884 * utils.h (initialize_utils): Don't declare.
1885 * top.c (gdb_init): Don't call initialize_utils.
1886 * utils.c (initialize_utils): Remove. Move contents...
1887 (_initialize_utils): ... here.
1888
1889 2019-09-25 Tom Tromey <tom@tromey.com>
1890
1891 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
1892 * utils.h (make_hex_string): Don't declare.
1893 * utils.c (make_hex_string): Remove.
1894
1895 2019-09-24 Tom de Vries <tdevries@suse.de>
1896
1897 PR gdb/23815
1898 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
1899 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
1900
1901 2019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
1902
1903 * NEWS: Mention new simulator port for PRU.
1904
1905 2019-09-23 Christian Biesinger <cbiesinger@google.com>
1906
1907 * ada-exp.y (write_object_remaining): Update.
1908 * ada-lang.c (ada_decode): Return a std::string instead of a char*
1909 and eliminate the static buffer.
1910 (ada_decode_symbol): Update.
1911 (ada_la_decode): Update.
1912 (ada_sniff_from_mangled_name): Update.
1913 (is_valid_name_for_wild_match): Update.
1914 (ada_lookup_name_info::matches): Update and simplify.
1915 (name_matches_regex): Update.
1916 (ada_add_global_exceptions): Update.
1917 * ada-lang.h (ada_decode): Update signature.
1918 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
1919 * dwarf-index-write.c (debug_names::insert): Update.
1920
1921 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
1922
1923 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
1924 formatting.
1925
1926 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
1927
1928 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
1929 Change "nonzero" to "true" in documentation.
1930
1931 2019-09-20 Christian Biesinger <cbiesinger@google.com>
1932
1933 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
1934 (_initialize_darwin_solib): Don't set
1935 darwin_so_ops.lookup_lib_global_symbol.
1936 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
1937 set_gdbarch_iterate_over_objfiles_in_search_order.
1938 (elf_lookup_lib_symbol): Rename to...
1939 (svr4_iterate_over_objfiles_in_search_order): this, and update
1940 to iterate semantics.
1941 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
1942 * solib.c (solib_global_lookup): Remove.
1943 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
1944 (solib_global_lookup): Remove.
1945 * symtab.c (lookup_global_or_static_symbol): Remove call to
1946 solib_global_lookup.
1947
1948 2019-09-20 Joel Brobecker <brobecker@adacore.com>
1949
1950 * NEWS: Move entries about default MI version now being
1951 version 3, and about the GDB/MI fix for multi-location
1952 breakpoints to the "since GDB 8.3" section.
1953
1954 2019-09-20 Joel Brobecker <brobecker@adacore.com>
1955
1956 GDB 8.3.1 released.
1957
1958 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
1959
1960 * NEWS: Mention that Cell/B.E. debugging support was removed.
1961 * MAINTAINERS: Remove spu target.
1962
1963 * config/djgpp/fnchange.lst: Remove entries for removed files.
1964
1965 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
1966 spu-multiarch.o, and spu-tdep.o.
1967 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
1968 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
1969 spu-multiarch.c, and spu-tdep.c.
1970 * spu-linux-nat.c: Remove file.
1971 * spu-multiarch.c: Remove file.
1972 * spu-tdep.c: Remove file.
1973 * spu-tdep.h: Remove file.
1974 * solib-spu.c: Remove file.
1975 * solib-spu.h: Remove file.
1976
1977 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
1978 * configure.nat (spu-linux): Remove.
1979 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
1980 solib-multiarch.o from gdb_target_obs.
1981 (spu*-*-*): Remove.
1982
1983 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
1984 feature flag.
1985 (ppc_linux_no_features): Update.
1986 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
1987 Cell/B.E. support.
1988 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
1989 (tdesc_powerpc_cell64l): Likewise.
1990 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
1991 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
1992 Cell/B.E. support.
1993 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
1994 Do not include "features/rs6000/powerpc-cell32l.c" or
1995 "features/rs6000/powerpc-cell64l.c".
1996 (ppc_linux_spu_section): Remove.
1997 (ppc_linux_core_read_description): Remove Cell/B.E. support.
1998 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
1999 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
2000 (ppc_linux_spe_context_lookup): Remove.
2001 (ppc_linux_spe_context_inferior_created): Remove.
2002 (ppc_linux_spe_context_solib_loaded): Remove.
2003 (ppc_linux_spe_context_solib_unloaded): Remove.
2004 (ppc_linux_spe_context): Remove.
2005 (struct ppu2spu_cache): Remove.
2006 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
2007 (struct ppu2spu_data): Remove.
2008 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
2009 ppu2spu_unwind): Remove.
2010 (ppc_linux_init_abi): Remove Cell/B.E. support.
2011 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
2012
2013 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
2014 (rs6000/powerpc-cell64l-expedite): Likewise
2015 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
2016 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
2017 rs6000/powerpc-cell64l.xml.
2018 * features/rs6000/powerpc-cell32l.xml: Remove.
2019 * features/rs6000/powerpc-cell64l.xml: Likewise.
2020 * features/rs6000/powerpc-cell32l.c: Remove generated file.
2021 * features/rs6000/powerpc-cell64l.c: Likewise.
2022 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
2023 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
2024 * regformats/reg-spu.dat: Remove.
2025
2026 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
2027 * corelow.c (struct spuid_list): Remove.
2028 (add_to_spuid_list): Remove.
2029 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
2030 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
2031 (remote_protocol_features): Remove associated entries.
2032 (_initialize_remote): No longer initialize them.
2033 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
2034 * linux-nat.c (SPUFS_MAGIC): Remove.
2035 (linux_proc_xfer_spu): Remove.
2036 (spu_enumerate_spu_ids): Remove.
2037 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
2038 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
2039 (linux_make_corefile_notes): No longer call it.
2040
2041 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
2042 (cooked_write_test): Likewise.
2043
2044 2019-09-20 Tom Tromey <tom@tromey.com>
2045
2046 * NEWS: Mention case-sensitivity of TUI commands.
2047 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
2048 (tui_set_win_height_command, parse_scrolling_args): Likewise.
2049 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
2050
2051 2019-09-20 Tom Tromey <tom@tromey.com>
2052
2053 * tui/tui-source.c (tui_source_window::set_contents): Use
2054 make_unique_xstrdup.
2055 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
2056 make_unique_xstrdup.
2057
2058 2019-09-20 Tom Tromey <tom@tromey.com>
2059
2060 * tui/tui-data.c: Remove separator comments.
2061 * tui/tui-layout.c: Remove separator comments.
2062 * tui/tui-win.c: Remove separator comments.
2063 * tui/tui-wingeneral.c: Remove separator comments.
2064
2065 2019-09-20 Tom Tromey <tom@tromey.com>
2066
2067 * tui/tui.h (strcat_to_buf): Don't declare.
2068 * tui/tui.c (strcat_to_buf): Remove.
2069
2070 2019-09-20 Tom Tromey <tom@tromey.com>
2071
2072 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
2073 from "fullname".
2074 * tui/tui-source.c (tui_source_window::set_contents)
2075 (tui_source_window::location_matches_p)
2076 (tui_source_window::maybe_update): Update.
2077
2078 2019-09-20 Tom Tromey <tom@tromey.com>
2079
2080 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
2081 Update.
2082 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
2083 prefix.
2084 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
2085 (tui_data_window::line_from_reg_element_no)
2086 (tui_data_window::first_reg_element_no_inline)
2087 (tui_data_window::show_registers)
2088 (tui_data_window::show_register_group)
2089 (tui_data_window::display_registers_from)
2090 (tui_data_window::display_registers_from_line)
2091 (tui_data_window::first_data_item_displayed)
2092 (tui_data_window::delete_data_content_windows)
2093 (tui_data_window::erase_data_content)
2094 (tui_data_window::do_scroll_vertical)
2095 (tui_data_window::refresh_window)
2096 (tui_data_window::check_register_values): Update.
2097
2098 2019-09-20 Tom Tromey <tom@tromey.com>
2099
2100 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
2101 (struct tui_locator_window) <full_name, proc_name>: Now
2102 std::string.
2103 * tui/tui-stack.c (tui_locator_window::make_status_line)
2104 (tui_locator_window::set_locator_fullname)
2105 (tui_locator_window::set_locator_info): Update.
2106 * tui/tui-source.c (tui_source_window::set_contents)
2107 (tui_source_window::showing_source_p): Update.
2108
2109 2019-09-20 Tom Tromey <tom@tromey.com>
2110
2111 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
2112 Don't call tui_locator_win_info_ptr.
2113
2114 2019-09-20 Tom Tromey <tom@tromey.com>
2115
2116 * tui/tui-win.c (tui_resize_all): Don't call refresh.
2117
2118 2019-09-20 Tom Tromey <tom@tromey.com>
2119
2120 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
2121 height for locator.
2122 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
2123 * tui/tui-layout.c (show_source_disasm_command, show_data)
2124 (show_source_or_disasm_and_command): Use 1 as height for locator.
2125
2126 2019-09-20 Tom Tromey <tom@tromey.com>
2127
2128 * tui/tui.c (tui_enable): Update.
2129 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
2130 Update.
2131 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
2132 Update.
2133 * tui/tui-data.c (win_resized): Now bool.
2134 (tui_win_resized): Return bool.
2135 (tui_set_win_resized_to): Accept a bool.
2136
2137 2019-09-20 Tom Tromey <tom@tromey.com>
2138
2139 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
2140 Change type of "refresh_values_only".
2141 * tui/tui-regs.c (tui_data_window::show_register_group): Change
2142 type of "refresh_values_only".
2143
2144 2019-09-20 Tom Tromey <tom@tromey.com>
2145
2146 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
2147 std::string.
2148 (tui_disassemble): Add "pos" parameter.
2149 (tui_disasm_window::set_contents): Simplify.
2150
2151 2019-09-20 Tom Tromey <tom@tromey.com>
2152
2153 * tui/tui-winsource.h (struct tui_source_window_base)
2154 <show_source_content>: Now private.
2155 * tui/tui-winsource.c
2156 (tui_source_window_base::show_source_content): Don't handle empty
2157 content case.
2158
2159 2019-09-20 Tom Tromey <tom@tromey.com>
2160
2161 * tui/tui-layout.c (show_source_disasm_command)
2162 (show_source_or_disasm_and_command): Don't call
2163 show_source_content.
2164
2165 2019-09-20 Tom Tromey <tom@tromey.com>
2166
2167 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
2168 Declare.
2169 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
2170 from tui_make_status_line.
2171 (tui_locator_window::rerender): Update.
2172
2173 2019-09-20 Tom Tromey <tom@tromey.com>
2174
2175 * tui/tui-stack.c (tui_make_status_line): Return std::string.
2176 (tui_locator_window::rerender): Update.
2177
2178 2019-09-20 Tom Tromey <tom@tromey.com>
2179
2180 * tui/tui-winsource.h (struct tui_source_window_base)
2181 <~tui_source_window_base>: Don't declare.
2182 <fullname>: Remove.
2183 * tui/tui-winsource.c (~tui_source_window_base): Remove.
2184 * tui/tui-source.h (struct tui_source_window) <fullname>: New
2185 member.
2186 * tui/tui-source.c (tui_source_window::set_contents): Update.
2187 (tui_source_window::location_matches_p)
2188 (tui_source_window::maybe_update): Update.
2189
2190 2019-09-20 Tom Tromey <tom@tromey.com>
2191
2192 * tui/tui-winsource.h (~tui_source_element): Remove.
2193 (tui_source_element): Update.
2194 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
2195 * tui/tui-winsource.c (tui_show_source_line): Update.
2196 * tui/tui-source.c (tui_source_window::set_contents): Update.
2197 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
2198
2199 2019-09-20 Tom Tromey <tom@tromey.com>
2200
2201 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
2202 declare.
2203 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
2204 tui_clear_source_windows_detail.
2205 * tui/tui-winsource.h (struct tui_source_window_base)
2206 <clear_detail>: Don't declare.
2207 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
2208 Remove.
2209 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
2210
2211 2019-09-20 Tom Tromey <tromey@adacore.com>
2212
2213 PR ada/24919:
2214 * block.c (contained_in): Fix final return value.
2215
2216 2019-09-20 Alan Modra <amodra@gmail.com>
2217
2218 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
2219 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
2220 (read_indirect_string_from_dwz): Use bfd accessor.
2221 * dwarf2read.h (struct dwz_file <filename>): Likewise.
2222 * machoread.c (macho_symfile_read_all_oso): Likewise.
2223 * solib.c (solib_bfd_open): Likewise.
2224
2225 2019-09-19 Christian Biesinger <cbiesinger@google.com>
2226
2227 * eval.c: Move declaration of overload_resolution to...
2228 * value.h: ...here.
2229
2230 2019-09-19 Christian Biesinger <cbiesinger@google.com>
2231
2232 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
2233 * arm-linux-tdep.c: Likewise.
2234 * arm-nbsd-nat.c: Likewise.
2235 * arm-tdep.h: Declare arm_apcs_32.
2236 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
2237
2238 2019-09-19 Christian Biesinger <cbiesinger@google.com>
2239
2240 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
2241 * dwarf2read.h: Declare dwarf_always_disassemble.
2242
2243 2019-09-19 Tom de Vries <tdevries@suse.de>
2244
2245 PR gdb/25009
2246 * source-cache.c (source_cache::ensure): Catch exception thrown during
2247 construction of the highlighter.
2248
2249 2019-09-18 Alan Modra <amodra@gmail.com>
2250
2251 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
2252 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
2253 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
2254 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
2255 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
2256 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
2257 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
2258 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
2259 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
2260 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
2261 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
2262 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
2263 * solib-spu.c, * solib-svr4.c, * solib-target.c,
2264 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
2265 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
2266 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
2267 * mi/mi-interp.c: Update throughout for bfd section macro and
2268 function changes.
2269 * gcore (gcore_create_callback): Use bfd_set_section_lma.
2270 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
2271
2272 2019-09-18 Tom Tromey <tom@tromey.com>
2273
2274 * NEWS: Add entry.
2275 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
2276 call rl_initialize.
2277 (tui_enable): Do not call rl_initialize.
2278
2279 2019-09-18 Christian Groessler <chris@groessler.org>
2280
2281 * alpha-linux-nat.c: Include gdbarch.h.
2282
2283 2019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
2284
2285 * ui-file.c: Include cli/cli-style.h.
2286 (term_cli_styling): Remove cli_styling declaration.
2287
2288 2019-09-18 Alan Modra <amodra@gmail.com>
2289
2290 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
2291 to bfd_asymbol_section.
2292
2293 2019-09-18 Alan Modra <amodra@gmail.com>
2294
2295 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
2296 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
2297 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
2298
2299 2019-09-18 Alan Modra <amodra@gmail.com>
2300
2301 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
2302 * spu-linux-nat.c (spu_bfd_open): Likewise.
2303
2304 2019-09-18 Christian Biesinger <cbiesinger@google.com>
2305
2306 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
2307 to bool to match definition in dwarf2read.c.
2308
2309 2019-09-17 Christian Biesinger <cbiesinger@google.com>
2310
2311 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
2312 (print_signatures): Likewise.
2313 (trust_pad_over_xvs): Likewise.
2314 * arch/aarch64-insn.c (aarch64_debug): Likewise.
2315 * arch/aarch64-insn.h (aarch64_debug): Likewise.
2316 * arm-linux-nat.c (arm_apcs_32): Likewise.
2317 * arm-linux-tdep.c (arm_apcs_32): Likewise.
2318 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
2319 * arm-tdep.c (arm_debug): Likewise.
2320 (arm_apcs_32): Likewise.
2321 * auto-load.c (debug_auto_load): Likewise.
2322 (auto_load_gdb_scripts): Likewise.
2323 (global_auto_load): Likewise.
2324 (auto_load_local_gdbinit): Likewise.
2325 (auto_load_local_gdbinit_loaded): Likewise.
2326 * auto-load.h (global_auto_load): Likewise.
2327 (auto_load_local_gdbinit): Likewise.
2328 (auto_load_local_gdbinit_loaded): Likewise.
2329 * breakpoint.c (disconnected_dprintf): Likewise.
2330 (breakpoint_proceeded): Likewise.
2331 (automatic_hardware_breakpoints): Likewise.
2332 (always_inserted_mode): Likewise.
2333 (target_exact_watchpoints): Likewise.
2334 (_initialize_breakpoint): Update.
2335 * breakpoint.h (target_exact_watchpoints): Change to bool.
2336 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
2337 * cli/cli-cmds.c (trace_commands): Likewise.
2338 * cli/cli-cmds.h (trace_commands): Likewise.
2339 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
2340 to bool*.
2341 * cli/cli-logging.c (logging_overwrite): Change to bool.
2342 (logging_redirect): Likewise.
2343 (debug_redirect): Likewise.
2344 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
2345 (struct boolean_option_def) <get_var_address_cb_>: Change return type
2346 to bool.
2347 <boolean_option_def>: Update.
2348 (struct flag_option_def): Change default type of Context to bool
2349 from int.
2350 <flag_option_def>: Change return type of var_address_cb_ to bool*.
2351 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
2352 (get_setshow_command_value_string): Likewise.
2353 * cli/cli-style.c (cli_styling): Change to bool.
2354 (source_styling): Likewise.
2355 * cli/cli-style.h (source_styling): Likewise.
2356 (cli_styling): Likewise.
2357 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
2358 to bool.
2359 * command.h (var_types): Update comment.
2360 (add_setshow_boolean_cmd): Change int* var argument to bool*.
2361 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
2362 bool.
2363 (debug_compile_cplus_scopes): Likewise.
2364 * compile/compile-internal.h (compile_debug): Likewise.
2365 * compile/compile.c (compile_debug): Likewise.
2366 (struct compile_options) <raw>: Likewise.
2367 * cp-support.c (catch_demangler_crashes): Likewise.
2368 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
2369 (usr_cmd_cris_dwarf2_cfi): Likewise.
2370 * csky-tdep.c (csky_debug): Likewise.
2371 * darwin-nat.c (enable_mach_exceptions): Likewise.
2372 * dcache.c (dcache_enabled_p): Likewise.
2373 * defs.h (info_verbose): Likewise.
2374 * demangle.c (demangle): Likewise.
2375 (asm_demangle): Likewise.
2376 * dwarf-index-cache.c (debug_index_cache): Likewise.
2377 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
2378 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
2379 * dwarf2read.c (check_physname): Likewise.
2380 (use_deprecated_index_sections): Likewise.
2381 (dwarf_always_disassemble): Likewise.
2382 * eval.c (overload_resolution): Likewise.
2383 * event-top.c (set_editing_cmd_var): Likewise.
2384 (exec_done_display_p): Likewise.
2385 * event-top.h (set_editing_cmd_var): Likewise.
2386 (exec_done_display_p): Likewise.
2387 * exec.c (write_files): Likewise.
2388 * fbsd-nat.c (debug_fbsd_lwp): Likewise
2389 (debug_fbsd_nat): Likewise.
2390 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
2391 Likewise.
2392 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
2393 <backtrace_past_entry> Likewise.
2394 * gdb-demangle.h (demangle): Likewise.
2395 (asm_demangle): Likewise.
2396 * gdb_bfd.c (bfd_sharing): Likewise.
2397 * gdbcore.h (write_files): Likewise.
2398 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
2399 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
2400 * gdbthread.h (print_thread_events): Likewise.
2401 * gdbtypes.c (opaque_type_resolution): Likewise.
2402 (strict_type_checking): Likewise.
2403 * gnu-nat.c (gnu_debug_flag): Likewise.
2404 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
2405 * guile/scm-param.c (pascm_variable): Add boolval.
2406 (add_setshow_generic): Update.
2407 (pascm_param_value): Update.
2408 (pascm_set_param_value_x): Update.
2409 * hppa-tdep.c (hppa_debug): Change to bool..
2410 * infcall.c (may_call_functions_p): Likewise.
2411 (coerce_float_to_double_p): Likewise.
2412 (unwind_on_signal_p): Likewise.
2413 (unwind_on_terminating_exception_p): Likewise.
2414 * infcmd.c (startup_with_shell): Likewise.
2415 * inferior.c (print_inferior_events): Likewise.
2416 * inferior.h (startup_with_shell): Likewise.
2417 (print_inferior_events): Likewise.
2418 * infrun.c (step_stop_if_no_debug): Likewise.
2419 (detach_fork): Likewise.
2420 (debug_displaced): Likewise.
2421 (disable_randomization): Likewise.
2422 (non_stop): Likewise.
2423 (non_stop_1): Likewise.
2424 (observer_mode): Likewise.
2425 (observer_mode_1): Likewise.
2426 (set_observer_mode): Update.
2427 (sched_multi): Change to bool.
2428 * infrun.h (debug_displaced): Likewise.
2429 (sched_multi): Likewise.
2430 (step_stop_if_no_debug): Likewise.
2431 (non_stop): Likewise.
2432 (disable_randomization): Likewise.
2433 * linux-tdep.c (use_coredump_filter): Likewise.
2434 (dump_excluded_mappings): Likewise.
2435 * linux-thread-db.c (auto_load_thread_db): Likewise.
2436 (check_thread_db_on_load): Likewise.
2437 * main.c (captured_main_1): Update.
2438 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
2439 xx2_opt, boolean_opt>: Change to bool.
2440 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
2441 * maint.c (maintenance_profile_p): Likewise.
2442 (per_command_time): Likewise.
2443 (per_command_space): Likewise.
2444 (per_command_symtab): Likewise.
2445 * memattr.c (inaccessible_by_default): Likewise.
2446 * mi/mi-main.c (mi_async): Likewise.
2447 (mi_async_1): Likewise.
2448 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
2449 * nat/fork-inferior.h (startup_with_shell): Likewise.
2450 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
2451 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
2452 * nios2-tdep.c (nios2_debug): Likewise.
2453 * or1k-tdep.c (or1k_debug): Likewise.
2454 * parse.c (parser_debug): Likewise.
2455 * parser-defs.h (parser_debug): Likewise.
2456 * printcmd.c (print_symbol_filename): Likewise.
2457 * proc-api.c (procfs_trace): Likewise.
2458 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
2459 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
2460 (set_parameter_value): Update.
2461 (add_setshow_generic): Update.
2462 * python/py-value.c (copy_py_bool_obj): Change argument from int*
2463 to bool*.
2464 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
2465 int*.
2466 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
2467 * record-btrace.c (record_btrace_target::store_registers): Update.
2468 * record-full.c (record_full_memory_query): Change to bool.
2469 (record_full_stop_at_limit): Likewise.
2470 * record-full.h (record_full_memory_query): Likewise.
2471 * remote-notif.c (notif_debug): Likewise.
2472 * remote-notif.h (notif_debug): Likewise.
2473 * remote.c (use_range_stepping): Likewise.
2474 (interrupt_on_connect): Likewise.
2475 (remote_break): Likewise.
2476 * ser-tcp.c (tcp_auto_retry): Likewise.
2477 * ser-unix.c (serial_hwflow): Likewise.
2478 * skip.c (debug_skip): Likewise.
2479 * solib-aix.c (solib_aix_debug): Likewise.
2480 * spu-tdep.c (spu_stop_on_load_p): Likewise.
2481 (spu_auto_flush_cache_p): Likewise.
2482 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
2483 Likewise.
2484 (struct info_print_options) <quiet>: Likewise.
2485 * symfile-debug.c (debug_symfile): Likewise.
2486 * symfile.c (auto_solib_add): Likewise.
2487 (separate_debug_file_debug): Likewise.
2488 * symfile.h (auto_solib_add): Likewise.
2489 (separate_debug_file_debug): Likewise.
2490 * symtab.c (basenames_may_differ): Likewise.
2491 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
2492 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
2493 (struct info_types_options) <quiet>: Likewise.
2494 * symtab.h (demangle): Likewise.
2495 (basenames_may_differ): Likewise.
2496 * target-dcache.c (stack_cache_enabled_1): Likewise.
2497 (code_cache_enabled_1): Likewise.
2498 * target.c (trust_readonly): Likewise.
2499 (may_write_registers): Likewise.
2500 (may_write_memory): Likewise.
2501 (may_insert_breakpoints): Likewise.
2502 (may_insert_tracepoints): Likewise.
2503 (may_insert_fast_tracepoints): Likewise.
2504 (may_stop): Likewise.
2505 (auto_connect_native_target): Likewise.
2506 (target_stop_and_wait): Update.
2507 (target_async_permitted): Change to bool.
2508 (target_async_permitted_1): Likewise.
2509 (may_write_registers_1): Likewise.
2510 (may_write_memory_1): Likewise.
2511 (may_insert_breakpoints_1): Likewise.
2512 (may_insert_tracepoints_1): Likewise.
2513 (may_insert_fast_tracepoints_1): Likewise.
2514 (may_stop_1): Likewise.
2515 * target.h (target_async_permitted): Likewise.
2516 (may_write_registers): Likewise.
2517 (may_write_memory): Likewise.
2518 (may_insert_breakpoints): Likewise.
2519 (may_insert_tracepoints): Likewise.
2520 (may_insert_fast_tracepoints): Likewise.
2521 (may_stop): Likewise.
2522 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
2523 (make_thread_apply_all_options_def_group): Change argument from int*
2524 to bool*.
2525 (thread_apply_all_command): Update.
2526 (print_thread_events): Change to bool.
2527 * top.c (confirm): Likewise.
2528 (command_editing_p): Likewise.
2529 (history_expansion_p): Likewise.
2530 (write_history_p): Likewise.
2531 (info_verbose): Likewise.
2532 * top.h (confirm): Likewise.
2533 (history_expansion_p): Likewise.
2534 * tracepoint.c (disconnected_tracing): Likewise.
2535 (circular_trace_buffer): Likewise.
2536 * typeprint.c (print_methods): Likewise.
2537 (print_typedefs): Likewise.
2538 * utils.c (debug_timestamp): Likewise.
2539 (sevenbit_strings): Likewise.
2540 (pagination_enabled): Likewise.
2541 * utils.h (sevenbit_strings): Likewise.
2542 (pagination_enabled): Likewise.
2543 * valops.c (overload_resolution): Likewise.
2544 * valprint.h (struct value_print_options) <prettyformat_arrays,
2545 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
2546 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
2547 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
2548 Likewise.
2549 * windows-nat.c (new_console): Likewise.
2550 (cygwin_exceptions): Likewise.
2551 (new_group): Likewise.
2552 (debug_exec): Likewise.
2553 (debug_events): Likewise.
2554 (debug_memory): Likewise.
2555 (debug_exceptions): Likewise.
2556 (useshell): Likewise.
2557 * windows-tdep.c (maint_display_all_tib): Likewise.
2558 * xml-support.c (debug_xml): Likewise.
2559
2560 2019-09-17 Mike Gulick <mgulick@mathworks.com>
2561
2562 * source.c (prepare_path_for_appending): New function.
2563 (openp): Make use of new function.
2564 (find_and_open_source): Search for the compilation directory and
2565 source file as a relative path beneath the directory search path.
2566
2567 2019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
2568
2569 * source-cache.c (source_cache::get_line_charpos): Catch
2570 exceptions and return false, this matches the behaviour documented
2571 in the header file.
2572
2573 2019-09-17 Joel Brobecker <brobecker@adacore.com>
2574
2575 * ada-tasks.c (info_task): Remove quoting of the task's name.
2576
2577 2019-09-16 Christian Biesinger <cbiesinger@google.com>
2578
2579 * symfile.c (auto_solib_add): Replace comment with a reference
2580 to the header file.
2581
2582 2019-09-14 Christian Biesinger <cbiesinger@google.com>
2583
2584 * NEWS: Mention that gdb can now be compiled with Python 3
2585 on Windows.
2586
2587 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
2588
2589 * maint.c (maint_print_section_data::maint_print_section_data):
2590 Force use of 'float log10 (float)' by casting the argument to
2591 float.
2592
2593 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
2594
2595 * maint.c: Add 'cmath' include.
2596 (struct maint_print_section_data): New structure.
2597 (print_section_index): New function.
2598 (print_bfd_section_info): Add header comment, small whitespace
2599 cleanup, and update to call new print_section_index function.
2600 (print_objfile_section_info): Likewise.
2601 (maint_obj_section_from_bfd_section): New function.
2602 (print_bfd_section_info_maybe_relocated): New function.
2603 (maintenance_info_sections): Add header comment, always use
2604 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
2605
2606 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
2607
2608 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
2609 inner scope, add check that the objfile has psymtabs before
2610 checking psymtabs_addrmap.
2611 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
2612
2613 2019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2614
2615 * NEWS: Announce that Ada task names are now shown at more places,
2616 and between quotes (except in info task output).
2617 * gdb/ada-tasks.c (task_to_str): New function.
2618 (display_current_task_id): Call task_to_str.
2619 (task_command_1): Likewise.
2620 (print_ada_task_info): In non-mi mode, Properly align headers and data
2621 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
2622
2623 2019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2624
2625 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
2626 prstatus.pr_lwp.pr_info instead of making it up.
2627
2628 2019-09-11 Christian Biesinger <cbiesinger@google.com>
2629
2630 * auto-load.c (auto_load_expand_dir_vars): Update.
2631 * defs.h (gdb_datadir): Change to std::string.
2632 (python_libdir): Likewise.
2633 (relocate_gdb_directory): Change return type to std::string.
2634 * guile/guile.c (gdbscm_data_directory): Update.
2635 (initialize_scheme_side): Update.
2636 * jit.c (jit_reader_dir): Change to std::string.
2637 (jit_reader_load_command): Update.
2638 * main.c (gdb_datadir): Change to std::string.
2639 (python_libdir): Likewise.
2640 (set_gdb_data_directory): Update.
2641 (relocate_path): Change to return std::string.
2642 (relocate_gdb_directory): Change to return std::string.
2643 (relocate_gdbinit_path_maybe_in_datadir): Update.
2644 (captured_main_1): Update.
2645 * python/python.c (do_start_initialization): Update.
2646 * top.c (show_gdb_datadir): Update.
2647 * xml-syscall.c (xml_init_syscalls_info): Update.
2648 (init_syscalls_info): Update.
2649
2650 2019-09-11 Christian Biesinger <cbiesinger@google.com>
2651
2652 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
2653 out of get_init_files.
2654 (get_init_files): Update.
2655
2656 2019-09-11 Christian Biesinger <cbiesinger@google.com>
2657
2658 * main.c (get_init_files): Change to use std::string.
2659 (captured_main_1): Update.
2660 (print_gdb_help): Update.
2661
2662 2019-09-11 Ali Tamur <tamur@google.com>
2663
2664 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
2665 implementation.
2666
2667 2019-09-11 Christian Biesinger <cbiesinger@google.com>
2668
2669 * dbxread.c (read_dbx_symtab): Update.
2670 * dwarf2read.c (load_partial_dies): Update.
2671 * mdebugread.c (parse_partial_symbols): Update.
2672 (handle_psymbol_enumerators): Update.
2673 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
2674 * psymtab.c (add_psymbol_to_bcache): Likewise.
2675 (add_psymbol_to_list): Likewise.
2676 * symtab.c (symbol_set_names): Likewise.
2677 * symtab.h (symbol_set_names): Likewise.
2678 * xcoffread.c (scan_xcoff_symtab): Update.
2679
2680 2019-09-11 Tom Tromey <tom@tromey.com>
2681
2682 * symfile-mem.c (symbol_file_add_from_memory): Use
2683 bfd_set_filename.
2684 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
2685 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
2686
2687 2019-09-10 Tom Tromey <tromey@adacore.com>
2688
2689 * dwarf-index-write.c (write_psymbols): Extend error message.
2690 (debug_names::insert): Add Ada code.
2691 (debug_names::write_psymbols): Remove Ada check.
2692 (debug_names) <m_string_obstack>: New member.
2693 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
2694 (gdb_index_symbol_name_matcher::matches): Remove.
2695 (mapped_index_base::find_name_components_bounds): Add "lang"
2696 parameter.
2697 (mapped_index_base::build_name_components): Also split names
2698 according to Ada syntax.
2699 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
2700 type of "match_callback".
2701 (check_match, check_find_bounds_finds)
2702 (dw2_expand_symtabs_matching): Update.
2703 (dw2_debug_names_iterator): Add new constructor.
2704 (dw2_debug_names_map_matching_symbols): New function.
2705 (dw2_debug_names_expand_symtabs_matching): Update.
2706 (dwarf2_debug_names_functions): Use
2707 dw2_debug_names_map_matching_symbols.
2708
2709 2019-09-10 Tom Tromey <tromey@adacore.com>
2710
2711 * dwarf2read.c (dw2_get_file_names_reader): Add the
2712 CU's file name to the results.
2713
2714 2019-09-10 Tom Tromey <tromey@adacore.com>
2715
2716 * ada-lang.c (add_nonlocal_symbols): Combine calls to
2717 map_matching_symbols. Update.
2718 * dwarf2read.c (dw2_map_matching_symbols): Update.
2719 * psymtab.c (match_partial_symbol): Change type; update.
2720 (psym_map_matching_symbols): Likewise.
2721 * symfile-debug.c (debug_qf_map_matching_symbols): Change
2722 type; update.
2723 * symfile.h (struct quick_symbol_functions)
2724 <map_matching_symbols>: Change "name" to be a lookup_name_info.
2725 Remove "match".
2726
2727 2019-09-10 Tom Tromey <tromey@adacore.com>
2728
2729 * psymtab.c (map_block): Remove.
2730 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
2731 * symtab.c (iterate_over_symbols_terminated): New function.
2732 * symtab.c (iterate_over_symbols_terminated): Declare.
2733
2734 2019-09-10 Tom Tromey <tromey@adacore.com>
2735
2736 * ada-lang.c (ada_iterate_over_symbols): Return bool.
2737 * language.h (struct language_defn) <la_iterate_over_symbols>:
2738 Return bool.
2739 * symtab.c (iterate_over_symbols): Return bool.
2740 * symtab.h (iterate_over_symbols): Return bool.
2741
2742 2019-09-10 Tom Tromey <tromey@adacore.com>
2743
2744 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
2745 (add_nonlocal_symbols): Update.
2746 * dwarf2read.c (dw2_map_matching_symbols): Change type.
2747 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
2748 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
2749 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
2750 Change type of "callback". Remove "data".
2751
2752
2753 2019-09-09 Ali Tamur <tamur@google.com>
2754
2755 * dwarf2read.c (comp_unit_head): Update comment.
2756 (dwarf2_dwo_name): New function declaration.
2757 (dwarf_unit_type_name): New function declaration.
2758 (read_comp_unit_head): Add support for new compilation units,
2759 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
2760 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
2761 (currently named as "signature") in their header. Also clarify error
2762 messages.
2763 (lookup_dwo_id): New function. Returns the dwo id of the given
2764 compile unit.
2765 (lookup_dwo_unit): Use the new lookup_dwo_id function.
2766 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
2767 functions.
2768 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
2769 (dwarf2_dwo_name): Get the dwo name if present.
2770 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
2771 purposes.
2772
2773 2019-09-09 Tom Tromey <tom@tromey.com>
2774
2775 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
2776
2777 2019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2778
2779 * python/python.c (do_start_initialization): Make progname_copy static,
2780 to avoid a leak report.
2781
2782 2019-09-08 Tom Tromey <tom@tromey.com>
2783
2784 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
2785
2786 2019-09-07 Simon Marchi <simon.marchi@efficios.com>
2787
2788 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
2789 Change type to gdb::optional<block_enum>.
2790 (dw2_symtab_iter_init): Change block_index parameter type
2791 to gdb::optional<block_enum>.
2792 (dw2_lookup_symbol): Change block_index parameter
2793 type to block_enum.c
2794 (dw2_debug_names_lookup_symbol): Likewise.
2795 * psymtab.c (psym_lookup_symbol): Likewise.
2796 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
2797 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
2798 Likewise.
2799
2800 2019-09-06 Christian Biesinger <cbiesinger@google.com>
2801
2802 * defs.h (relocate_gdb_directory): Change int to bool in
2803 signature and rename flag to relocatable.
2804 * main.c (relocate_path): Likewise.
2805 (relocate_gdb_directory): Likewise.
2806
2807 2019-09-06 Alan Modra <amodra@gmail.com>
2808
2809 * coffread.c (coff_symfile_read): Constify filename variable.
2810 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
2811 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
2812 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
2813 * solib.c (reload_shared_libraries_1): Likewise.
2814 * symfile.c (reread_symbols): Likewise.
2815 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
2816 * solib-darwin.c (darwin_bfd_open): Likewise.
2817 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
2818
2819 2019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
2820
2821 * psymtab.c (print_partial_symbols): Handle missing domain_enum
2822 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
2823
2824 2019-09-03 Tom Tromey <tromey@adacore.com>
2825
2826 * ada-valprint.c (ada_val_print_num): Don't recurse for range
2827 types.
2828 (has_negatives): Unbias a range type bound.
2829 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
2830 * gdbtypes.c (operator==): Handle new field.
2831 (create_range_type): Add "bias" parameter.
2832 (create_static_range_type, resolve_dynamic_range): Update.
2833 * gdbtypes.h (struct range_bounds) <bias>: New member.
2834 (create_range_type): Add bias parameter.
2835 * printcmd.c (print_scalar_formatted): Unbias range types.
2836 * value.c (unpack_long): Unbias range types.
2837 (pack_long): Bias range types.
2838
2839 2019-09-02 Alan Hayward <alan.hayward@arm.com>
2840
2841 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
2842 probe arguments.
2843
2844 2019-09-02 Alan Hayward <alan.hayward@arm.com>
2845
2846 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
2847 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
2848 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
2849 (compile_probe_arg): Likewise.
2850 * probe.h (get_argument_count): Likewise.
2851 * solib-svr4.c (solib_event_probe_action): Likewise.
2852 * stap-probe.c (stap_probe::get_argument_count): Likewise.
2853
2854 2019-09-02 Alan Hayward <alan.hayward@arm.com>
2855
2856 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
2857 code to here...
2858 (svr4_create_solib_event_breakpoints): ...from here.
2859
2860 2019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
2861
2862 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
2863 suffix from warning message.
2864
2865 2019-08-30 Tom Tromey <tom@tromey.com>
2866
2867 * tui/tui-winsource.h (struct tui_source_window_base)
2868 <refresh_all>: Don't declare.
2869 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
2870 Remove.
2871 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
2872 tui_show_locator_content.
2873 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
2874 declare.
2875 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
2876 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
2877 declare.
2878
2879 2019-08-30 Tom Tromey <tom@tromey.com>
2880
2881 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
2882
2883 2019-08-30 Tom Tromey <tom@tromey.com>
2884
2885 * tui/tui-stack.c (_initialize_tui_stack): Move later.
2886 Remove unnecessary forward declarations.
2887
2888 2019-08-30 Tom Tromey <tom@tromey.com>
2889
2890 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
2891 rerender.
2892 (tui_update_locator_fullname, tui_show_frame_info): Don't call
2893 tui_show_locator_content.
2894
2895 2019-08-30 Tom Tromey <tom@tromey.com>
2896
2897 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
2898 (tui_locator_window::rerender): Rewrite using body of previous
2899 tui_show_locator_content.
2900
2901 2019-08-30 Tom Tromey <tom@tromey.com>
2902
2903 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
2904 set_locator_fullname>: New methods.
2905 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
2906 Rename from tui_set_locator_fullname.
2907 (tui_locator_window::set_locator_info): Rename from
2908 tui_set_locator_info. Return bool.
2909 (tui_update_locator_fullname, tui_show_frame_info): Update.
2910
2911 2019-08-30 Tom Tromey <tom@tromey.com>
2912
2913 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
2914
2915 2019-08-30 Tom Tromey <tom@tromey.com>
2916
2917 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
2918 call touchwin.
2919
2920 2019-08-30 Tom Tromey <tom@tromey.com>
2921
2922 * tui/tui-wingeneral.c (box_win): Assume win_info and
2923 win_info->handle cannot be NULL.
2924
2925 2019-08-30 Tom Tromey <tom@tromey.com>
2926
2927 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
2928 refresh_window>: Declare.
2929 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
2930 resize.
2931 (tui_data_item_window::rerender): Rename from
2932 tui_display_register.
2933 (tui_data_item_window::refresh_window): New method.
2934 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
2935 no-op.
2936
2937 2019-08-30 Tom Tromey <tom@tromey.com>
2938
2939 * tui/tui-regs.h (struct tui_data_window) <regs_content,
2940 regs_column_count, current_group>: Move later. Now private.
2941 <get_current_group>: New method.
2942 * tui/tui-regs.c (tui_reg_command): Update.
2943 * tui/tui-layout.c (tui_set_layout): Update.
2944
2945 2019-08-30 Tom Tromey <tom@tromey.com>
2946
2947 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
2948 (tui_data_window::rerender): Don't call
2949 check_and_display_highlight_if_needed.
2950 (tui_data_window::refresh_all): Remove call to
2951 erase_data_content.
2952
2953 2019-08-30 Tom Tromey <tom@tromey.com>
2954
2955 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
2956 (tui_data_window::display_registers_from)
2957 (tui_data_window::display_reg_element_at_line)
2958 (tui_data_window::display_registers_from_line): Remove checks of
2959 "empty".
2960
2961 2019-08-30 Tom Tromey <tom@tromey.com>
2962
2963 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
2964 Don't declare.
2965 * tui/tui-regs.c (tui_data_window::show_registers): Call
2966 rerender.
2967 (tui_data_window::rerender): Rename from display_all_data.
2968 (tui_data_window::rerender): Remove old implementation.
2969
2970 2019-08-30 Tom Tromey <tom@tromey.com>
2971
2972 * tui/tui-regs.c (tui_data_window::display_all_data): Change
2973 text.
2974 * tui/tui-data.h (NO_DATA_STRING): Remove define.
2975
2976 2019-08-29 Bernhard Wodok <barto@gmx.net>
2977 Sergio Durigan Junior <sergiodj@redhat.com>
2978
2979 PR win32/24284
2980 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
2981
2982 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
2983
2984 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
2985 when searching for types.
2986
2987 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
2988
2989 * f-lang.c (f_language_defn): Use f_print_typedef.
2990 * f-lang.h (f_print_typedef): Declare.
2991 * f-typeprint.c (f_print_typedef): Define.
2992
2993 2019-08-27 Christian Biesinger <cbiesinger@google.com>
2994
2995 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
2996
2997 2019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
2998
2999 * cli/cli-utils.c (info_print_options_defs): Delete.
3000 (make_info_print_options_def_group): Delete.
3001 (extract_info_print_options): Delete.
3002 (info_print_command_completer): Delete.
3003 (info_print_args_help): Add extra parameter, and optionally
3004 include text about -n flag.
3005 * cli/cli-utils.h (struct info_print_options): Delete.
3006 (extract_info_print_options): Delete declaration.
3007 (info_print_command_completer): Delete declaration.
3008 (info_print_args_help): Add extra parameter, extend header
3009 comment.
3010 * python/python.c (gdbpy_rbreak): Pass additional parameter to
3011 search_symbols.
3012 * stack.c (struct info_print_options): New type.
3013 (info_print_options_defs): New file scoped variable.
3014 (make_info_print_options_def_group): New static function.
3015 (info_print_command_completer): New static function.
3016 (info_locals_command): Update to use new local functions.
3017 (info_args_command): Likewise.
3018 (_initialize_stack): Add extra parameter to calls to
3019 info_print_args_help.
3020 * symtab.c (search_symbols): Add extra parameter, use this to
3021 possibly excluse non-debug symbols.
3022 (symtab_symbol_info): Add extra parameter, which is passed on to
3023 search_symbols.
3024 (struct info_print_options): New type.
3025 (info_print_options_defs): New file scoped variable.
3026 (make_info_print_options_def_group): New static function.
3027 (info_print_command_completer): New static function.
3028 (info_variables_command): Update to use local functions, and pass
3029 extra parameter through to symtab_symbol_info.
3030 (info_functions_command): Likewise.
3031 (info_types_command): Pass additional argument through to
3032 symtab_symbol_info.
3033 (rbreak_command): Pass extra argument to search_symbols.
3034 (_initialize_symtab): Add extra arguments for calls to
3035 info_print_args_help, and update help text for 'info variables',
3036 'whereis', and 'info functions' commands.
3037 * symtab.h (search_symbols): Add extra argument to declaration.
3038 * NEWS: Mention new flags.
3039
3040 2019-08-26 Christian Biesinger <cbiesinger@google.com>
3041
3042 * symtab.c (lookup_static_symbol): Call the new function (and move
3043 it down to be next to lookup_global_symbol).
3044 (struct global_sym_lookup_data): Add block_enum member and rename to...
3045 (struct global_or_static_sym_lookup_data): ...this.
3046 (lookup_symbol_global_iterator_cb): Pass block_index instead of
3047 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
3048 (lookup_symbol_global_or_static_iterator_cb): ...this.
3049 (lookup_global_or_static_symbol): New function.
3050 (lookup_global_symbol): Call new function.
3051
3052 2019-08-26 Tom de Vries <tdevries@suse.de>
3053
3054 PR c++/24852
3055 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
3056 when pc_probe.prob == NULL.
3057
3058 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
3059
3060 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
3061 variable symbol_linkage to symbol_linkage_.
3062
3063 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
3064
3065 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
3066 represent whether the symbol is static, dynamic, or we don't
3067 know.
3068
3069 2019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
3070
3071 * gdb/rx-tdep.c (rx_register_names): New.
3072 (rx_register_name): Delete.
3073 (rx_psw_type): Delete.
3074 (rx_fpsw_type): Delete.
3075 (rx_register_type): Delete.
3076 (rx_gdbarch_init): Convert target-descriptions.
3077 (_initialize_rx_tdep): Add initialize_tdesc_rx.
3078 * gdb/features/Makefile: Add rx.xml.
3079 * gdb/features/rx.xml: New.
3080 * gdb/features/rx.c: Generated.
3081 * gdb/NEWS: Mention target description support.
3082
3083 2019-08-22 Christian Biesinger <cbiesinger@google.com>
3084
3085 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
3086 *slot_ptr.
3087
3088 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
3089
3090 * configure.ac: Don't check for 'dlfcn.h' (moved to
3091 gdbsupport/common.m4).
3092 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
3093 'gdbsupport/'.
3094 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
3095 * compile/compile-c-support.c: Include
3096 'gdbsupport/gdb-dlfcn.h'.
3097 * gdbsupport/common.m4: Check for 'dlfcn.h'.
3098 * gdb-dlfcn.c: Move to...
3099 * gdbsupport/gdb-dlfcn.c: ... here.
3100 * gdb-dlfcn.h: Move to...
3101 * gdbsupport/gdb-dlfcn.h: ... here.
3102
3103 2019-08-23 Sandra Loosemore <sandra@codesourcery.com>
3104
3105 * nios2-tdep.c (struct reg_value): Improve comments. Make
3106 the offset field signed.
3107
3108 2019-08-22 Christian Biesinger <cbiesinger@google.com>
3109
3110 * python/lib/gdb/__init__.py (_execute_file): New function.
3111 * python/python.c (python_run_simple_file): Call gdb._execute_file
3112 on Windows.
3113
3114 2019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
3115
3116 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
3117 all uses as this was never set to anything but a zero value.
3118
3119 2019-08-21 Bogdan Harjoc <harjoc@gmail.com>
3120
3121 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
3122
3123 2019-08-21 Christian Biesinger <cbiesinger@google.com>
3124
3125 * tui/tui-data.h (tui_gen_win_info): Add an =default
3126 move constructor, required by some GCC versions.
3127
3128 2019-08-21 Jinke Fan <fanjinke51@yeah.net>
3129
3130 * go32-nat.c (go32_sysinfo): Add hygon_p.
3131
3132 2019-08-20 Tom Tromey <tom@tromey.com>
3133
3134 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
3135 line_from_reg_element_no, first_reg_element_no_inline,
3136 display_all_data, delete_data_content_windows,
3137 erase_data_content>: Now private.
3138
3139 2019-08-20 Tom Tromey <tom@tromey.com>
3140
3141 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
3142 (tui_unhighlight_win, tui_highlight_win)
3143 (tui_win_info::make_window): Update.
3144 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
3145
3146 2019-08-20 Tom Tromey <tom@tromey.com>
3147
3148 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
3149 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
3150 (MAX_PID_WIDTH): Move to tui-stack.c.
3151 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
3152 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
3153 (MAX_PID_WIDTH): Move from tui-data.h.
3154
3155 2019-08-20 Tom Tromey <tom@tromey.com>
3156
3157 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
3158 * tui/tui-wingeneral.c (box_win): Change type of win_info.
3159 (box_win): Update.
3160 (tui_gen_win_info::make_window): Rename from tui_make_window.
3161 (tui_win_info::make_window): New method.
3162 (tui_gen_win_info::make_visible): Update.
3163 * tui/tui-source.c (tui_source_window::set_contents): Update.
3164 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
3165 (tui_data_window::display_registers_from): Update.
3166 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
3167 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
3168 Declare.
3169 <can_box>: Remove.
3170 <title>: Remove.
3171 (struct tui_win_info) <make_window>: Declare.
3172 <can_box>: Now virtual.
3173 <title>: New member.
3174 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
3175 * tui/tui-command.c (tui_cmd_window::resize): Update.
3176
3177 2019-08-20 Tom Tromey <tom@tromey.com>
3178
3179 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
3180 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3181 (tui_data_window::check_register_values): Update.
3182
3183 2019-08-20 Tom Tromey <tom@tromey.com>
3184
3185 * tui/tui-regs.h (struct tui_data_window): Use
3186 DISABLE_COPY_AND_ASSIGN.
3187 <regs_content>: Change type, removing unique_ptr.
3188 <tui_data_window>: Add move constructor.
3189 * tui/tui-regs.c (tui_data_window::show_registers)
3190 (tui_data_window::show_register_group)
3191 (tui_data_window::display_registers_from)
3192 (tui_data_window::display_registers_from)
3193 (tui_data_window::first_data_item_displayed)
3194 (tui_data_window::delete_data_content_windows)
3195 (tui_data_window::rerender, tui_data_window::refresh_window)
3196 (tui_data_window::check_register_values): Update.
3197
3198 2019-08-20 Tom Tromey <tom@tromey.com>
3199
3200 * tui/tui-regs.h (struct tui_data_window) <show_registers,
3201 show_register_group>: Declare.
3202 (tui_show_register_group): Don't declare.
3203 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
3204 tui_show_registers.
3205 (tui_data_window::show_register_group): Rename from
3206 tui_show_register_group.
3207 (tui_data_window::check_register_values, tui_reg_command):
3208 Update.
3209 * tui/tui-layout.c (tui_set_layout): Update.
3210
3211 2019-08-20 Tom Tromey <tom@tromey.com>
3212
3213 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
3214 Declare.
3215 (tui_check_register_values): Don't declare.
3216 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
3217 from tui_check_register_values.
3218 * tui/tui-hooks.c (tui_register_changed): Update.
3219
3220 2019-08-20 Tom Tromey <tom@tromey.com>
3221
3222 * tui/tui-regs.c (tui_reg_layout): Move later.
3223 (tui_show_registers): Don't enable TUI mode or change layout.
3224
3225 2019-08-20 Tom Tromey <tom@tromey.com>
3226
3227 * tui/tui-regs.h (struct tui_data_item_window)
3228 <~tui_data_item_window>: Remove.
3229 <content>: Now a unique_xmalloc_ptr.
3230 * tui/tui-regs.c (tui_register_format): Return a
3231 unique_xmalloc_ptr.
3232 (tui_get_register): Update.
3233 (~tui_data_item_window): Remove.
3234 (tui_data_window::display_registers_from, tui_display_register):
3235 Update.
3236 * tui/tui-io.h (tui_expand_tabs): Update.
3237 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
3238 Remove "col" parameter.
3239
3240 2019-08-20 Tom Tromey <tom@tromey.com>
3241
3242 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
3243 field.
3244 * tui/tui-regs.c (~tui_data_item_window): Update.
3245
3246 2019-08-20 Tom Tromey <tom@tromey.com>
3247
3248 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
3249 earlier.
3250
3251 2019-08-20 Tom Tromey <tom@tromey.com>
3252
3253 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
3254
3255 2019-08-20 Tom Tromey <tom@tromey.com>
3256
3257 * tui/tui-source.h (struct tui_source_window): Update.
3258 * tui/tui-regs.c (tui_show_registers): Update.
3259 * tui/tui-disasm.h (struct tui_disasm_window): Update.
3260 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
3261 (NO_REGS_STRING): Remove defines.
3262
3263 2019-08-20 Conrad Meyer <cem@FreeBSD.org>
3264
3265 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
3266 unnecessary thread walk if remote doesn't support the packet.
3267
3268 2019-08-19 Tom Tromey <tromey@adacore.com>
3269
3270 * python/py-value.c (value_has_field): Fix indentation.
3271
3272 2019-08-19 Tom Tromey <tromey@adacore.com>
3273
3274 * printcmd.c (do_one_display, info_display_command): Update.
3275 * block.h (contained_in): Return bool. Add allow_nested
3276 parameter.
3277 * block.c (contained_in): Return bool. Add allow_nested
3278 parameter.
3279
3280 2019-08-19 Tom Tromey <tom@tromey.com>
3281
3282 * configure: Rebuild.
3283 * configure.ac: Disallow the combination of -static-libstdc++ and
3284 source highlight.
3285 * source-cache.c (get_language_name): Handle rust.
3286 (source_cache::get_source_lines): Ignore highlighting exceptions.
3287
3288 2019-08-16 Tom Tromey <tom@tromey.com>
3289
3290 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
3291 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
3292 (struct tui_source_window_base) <make_visible, refresh_window,
3293 resize>: Remove methods.
3294 <execution_info>: Remove field.
3295 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
3296 (tui_show_source_line, tui_source_window_base)
3297 (~tui_source_window_base): Update.
3298 (tui_source_window_base::resize)
3299 (tui_source_window_base::make_visible)
3300 (tui_source_window_base::refresh_window): Remove.
3301 (tui_source_window_base::update_exec_info): Update.
3302 * tui/tui-source.c (tui_source_window::set_contents): Update.
3303 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
3304
3305 2019-08-16 Tom Tromey <tom@tromey.com>
3306
3307 * tui/tui-hooks.c (tui_remove_hooks): Don't set
3308 deprecated_query_hook.
3309
3310 2019-08-16 Tom Tromey <tom@tromey.com>
3311
3312 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
3313 (tui_update_source_windows_with_line): Update.
3314 * tui/tui-source.h (struct tui_source_window)
3315 <show_symtab_source>: Declare.
3316 (tui_show_symtab_source): Don't declare.
3317 * tui/tui-source.c (tui_show_symtab_source): Rename from
3318 tui_show_symtab_source.
3319
3320 2019-08-16 Tom Tromey <tom@tromey.com>
3321
3322 * tui/tui-winsource.h (struct tui_source_window_base)
3323 <set_contents>: Declare.
3324 * tui/tui-winsource.c
3325 (tui_source_window_base::update_source_window_as_is): Update.
3326 * tui/tui-source.h (struct tui_source_window) <set_contents>:
3327 Declare.
3328 (tui_set_source_content): Don't declare.
3329 * tui/tui-source.c (tui_source_window::set_contents): Rename from
3330 tui_set_source_content.
3331 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
3332 Declare.
3333 (tui_set_disassem_content): Don't declare.
3334 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
3335 tui_set_disassem_content.
3336
3337 2019-08-16 Tom Tromey <tom@tromey.com>
3338
3339 * tui/tui-winsource.h (struct tui_source_window_base)
3340 <update_breakpoint_info>: Declare.
3341 (tui_update_breakpoint_info): Don't declare.
3342 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
3343 (tui_update_all_breakpoint_info): Update.
3344 (tui_source_window_base::update_breakpoint_info): Rename from
3345 tui_update_breakpoint_info.
3346 (tui_source_window_base::update_exec_info): Update.
3347
3348 2019-08-16 Tom Tromey <tom@tromey.com>
3349
3350 * tui/tui-winsource.h (struct tui_source_window_base)
3351 <update_source_window>: Declare.
3352 (tui_update_source_window): Don't declare.
3353 * tui/tui-winsource.c
3354 (tui_source_window_base::update_source_window): Rename from
3355 tui_update_source_window.
3356 (tui_source_window_base::rerender): Update.
3357 * tui/tui-source.c (tui_source_window::maybe_update): Update.
3358 * tui/tui-disasm.c (tui_show_disassem)
3359 (tui_show_disassem_and_update_source)
3360 (tui_disasm_window::maybe_update): Update.
3361
3362 2019-08-16 Tom Tromey <tom@tromey.com>
3363
3364 * tui/tui-winsource.h (struct tui_source_window_base)
3365 <update_source_window_as_is>: Declare.
3366 (tui_update_source_window_as_is): Don't declare.
3367 * tui/tui-winsource.c (tui_update_source_window): Update
3368 (tui_source_window_base::update_source_window_as_is): Rename from
3369 tui_update_source_window_as_is.
3370 (tui_source_window_base::refill): Update.
3371 * tui/tui-source.c (tui_show_symtab_source): Update.
3372 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
3373 Update.
3374
3375 2019-08-16 Tom Tromey <tom@tromey.com>
3376
3377 * tui/tui-winsource.h (tui_update_source_window)
3378 (tui_update_source_window_as_is): Remove "noerror" parameter.
3379 * tui/tui-winsource.c (tui_update_source_window)
3380 (tui_update_source_window_as_is): Remove "noerror" parameter.
3381 (tui_update_source_windows_with_addr)
3382 (tui_update_source_windows_with_line)
3383 (tui_source_window_base::rerender)
3384 (tui_source_window_base::refill): Update.
3385 * tui/tui-source.h (tui_set_source_content)
3386 (tui_show_symtab_source): Remove "noerror" parameter.
3387 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
3388 parameter.
3389 (tui_show_symtab_source): Likewise.
3390 (tui_source_window::maybe_update): Update.
3391 * tui/tui-disasm.c (tui_show_disassem)
3392 (tui_show_disassem_and_update_source)
3393 (tui_disasm_window::do_scroll_vertical)
3394 (tui_disasm_window::maybe_update): Update.
3395
3396 2019-08-16 Tom Tromey <tom@tromey.com>
3397
3398 * tui/tui.c (tui_is_window_visible): Update.
3399 * tui/tui-wingeneral.c (tui_make_window)
3400 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
3401 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
3402 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
3403 (tui_set_win_height_command, parse_scrolling_args): Update.
3404 * tui/tui-source.c (tui_source_window::style_changed): Update.
3405 * tui/tui-regs.c (tui_show_registers)
3406 (tui_data_window::first_data_item_displayed)
3407 (tui_data_window::delete_data_content_windows)
3408 (tui_check_register_values, tui_reg_command): Update.
3409 * tui/tui-disasm.c (tui_show_disassem): Update.
3410 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
3411 method.
3412 <is_visible>: Remove field.
3413 * tui/tui-data.c (tui_next_win, tui_prev_win)
3414 (tui_delete_invisible_windows): Update.
3415
3416 2019-08-16 Tom Tromey <tom@tromey.com>
3417
3418 * tui/tui-winsource.h (struct tui_source_window_base)
3419 <m_has_locator>: Remove.
3420 * tui/tui-layout.c (show_source_disasm_command, show_data)
3421 (show_source_or_disasm_and_command): Update.
3422
3423 2019-08-16 Alan Hayward <alan.hayward@arm.com>
3424
3425 * NEWS (Other MI changes): New subsection.
3426 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
3427 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
3428 * arch-utils.c (default_get_pc_address_flags): New function.
3429 * arch-utils.h (default_get_pc_address_flags): New declaration.
3430 * gdbarch.sh: Add get_pc_address_flags.
3431 * gdbarch.c: Regenerate.
3432 * gdbarch.h: Likewise.
3433 * stack.c (print_pc): New function.
3434 (print_frame_info) (print_frame): Call print_pc.
3435
3436 2019-08-16 Tom de Vries <tdevries@suse.de>
3437
3438 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
3439 print_objfile_section_info.
3440
3441 2019-08-15 Tom Tromey <tom@tromey.com>
3442
3443 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
3444 calling update_cmdwin_start_line.
3445 * tui/tui-winsource.h (struct tui_source_window_base)
3446 <do_make_visible_with_new_height, set_new_height>: Don't declare.
3447 <rerender>: Declare.
3448 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
3449 Call rerender.
3450 (tui_source_window_base::set_new_height): Remove.
3451 (tui_source_window_base::rerender): Rename from
3452 do_make_visible_with_new_height.
3453 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
3454 resize method.
3455 (tui_win_info::make_invisible_and_set_new_height)
3456 (tui_win_info::make_visible_with_new_height): Remove.
3457 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
3458 Declare.
3459 * tui/tui-stack.c (tui_locator_window::rerender): New method.
3460 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
3461 do_make_visible_with_new_height>: Don't declare.
3462 <rerender>: Declare.
3463 * tui/tui-regs.c (tui_data_window::rerender): Rename from
3464 set_new_height.
3465 (tui_data_window::do_make_visible_with_new_height): Remove.
3466 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
3467 call tui_show_locator_content.
3468 (tui_gen_win_info::resize): Call rerender.
3469 (show_source_or_disasm_and_command): Don't call
3470 tui_show_locator_content.
3471 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
3472 method.
3473 (struct tui_win_info) <rerender>: Declare.
3474 <set_new_height, make_invisible_and_set_new_height,
3475 make_visible_with_new_height>: Don't declare.
3476 * tui/tui-data.c (tui_win_list::rerender): New method.
3477 * tui/tui-command.h (struct tui_cmd_window)
3478 <do_make_visible_with_new_height>: Don't declare.
3479 * tui/tui-command.c
3480 (tui_cmd_window::do_make_visible_with_new_height): Remove.
3481
3482 2019-08-15 Tom Tromey <tromey@adacore.com>
3483
3484 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
3485 * ada-lang.c (ada_enum_name): Likewise.
3486
3487 2019-08-15 Christian Biesinger <cbiesinger@google.com>
3488
3489 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
3490 leading underscore.
3491 (GdbOutputErrorFile): Likewise.
3492 (global scope): Adjust constructor calls to GdbOutput{,Error}File
3493 accordingly.
3494 (execute_unwinders): Rename to have a leading underscore.
3495 (auto_load_packages): Likewise.
3496 (global scope): Adjust call to auto_load_packages accordingly.
3497 (GdbSetPythonDirectory): Likewise.
3498 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
3499 instead of execute_unwinders.
3500
3501 2019-08-15 Tom Tromey <tom@tromey.com>
3502
3503 * tui/tui-layout.c (show_layout, show_source_disasm_command)
3504 (show_data): Don't change window visibility.
3505 (tui_gen_win_info::resize): Remove special case for command
3506 window. Use wresize, when available.
3507 (show_source_or_disasm_and_command): Don't change window
3508 visibility.
3509 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
3510 <make_visible>: New method.
3511 * tui/tui-command.c (tui_cmd_window::resize): New method.
3512
3513 2019-08-15 Tom Tromey <tom@tromey.com>
3514
3515 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
3516 (struct tui_source_windows): New.
3517 * tui/tui-winsource.c (tui_display_main): Update.
3518 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
3519 (new_height_ok, parse_scrolling_args): Update.
3520 * tui/tui-layout.c (show_layout, show_data): Update.
3521 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
3522 (tui_add_to_source_windows): Don't declare.
3523 * tui/tui-data.c (source_windows, tui_source_windows)
3524 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
3525
3526 2019-08-15 Tom Tromey <tom@tromey.com>
3527
3528 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
3529 Rename from reset.
3530 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
3531 * tui/tui-layout.c (show_source_disasm_command, show_data):
3532 Update.
3533 (tui_gen_win_info::resize): Rename.
3534 (show_source_or_disasm_and_command): Update.
3535 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
3536 reset.
3537
3538 2019-08-15 Tom Tromey <tom@tromey.com>
3539
3540 * tui/tui-stack.c (tui_initialize_static_data): Remove.
3541 * tui/tui-interp.c (tui_interp::init): Don't call
3542 tui_initialize_static_data.
3543 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
3544
3545 2019-08-15 Tom Tromey <tom@tromey.com>
3546
3547 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
3548 examine tui_win_list.
3549
3550 2019-08-15 Tom Tromey <tom@tromey.com>
3551
3552 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
3553 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
3554 tui_clear_source_content.
3555 (tui_clear_source_content): Remove.
3556 (tui_source_window_base::do_erase_source_content): Hoist call to
3557 content.clear().
3558 * tui/tui-stack.c (tui_show_frame_info): Don't call
3559 tui_clear_source_content.
3560
3561 2019-08-15 Tom Tromey <tom@tromey.com>
3562
3563 * tui/tui-winsource.h (struct tui_source_window_base)
3564 <do_erase_source_content>: New method.
3565 <erase_source_content>: New method.
3566 (tui_erase_source_content): Don't declare.
3567 * tui/tui-winsource.c (tui_clear_source_content): Update.
3568 (tui_source_window_base::do_erase_source_content): Rename from
3569 tui_erase_source_content.
3570 (tui_source_window_base::show_source_content): Update.
3571 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
3572 * tui/tui-source.h (struct tui_source_window)
3573 <erase_source_content>: New method.
3574 * tui/tui-disasm.h (struct tui_disasm_window)
3575 <erase_source_content>: New method.
3576
3577 2019-08-15 Tom Tromey <tom@tromey.com>
3578
3579 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
3580 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
3581 constructor.
3582 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
3583 * tui/tui-source.c (tui_set_source_content): Update.
3584 * tui/tui-disasm.c (tui_set_disassem_content): Update.
3585
3586 2019-08-15 Tom Tromey <tom@tromey.com>
3587
3588 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
3589 * tui/tui-winsource.c (tui_line_is_displayed): Move to
3590 tui-source.c.
3591 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
3592 Declare.
3593 * tui/tui-source.c (tui_source_window::line_is_displayed): New
3594 method.
3595 (tui_source_window::maybe_update): Update.
3596
3597 2019-08-15 Tom Tromey <tom@tromey.com>
3598
3599 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
3600 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
3601 tui-disasm.c.
3602 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
3603 Declare.
3604 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
3605 method.
3606 (tui_disasm_window::maybe_update): Update.
3607
3608 2019-08-15 Tom Tromey <tom@tromey.com>
3609
3610 * tui/tui-winsource.h (struct tui_source_window_base)
3611 <maybe_update>: Declare.
3612 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
3613 method.
3614 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
3615 Declare.
3616 * tui/tui-source.c (tui_source_window::maybe_update): New method.
3617 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
3618 Declare.
3619 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
3620
3621 2019-08-15 Tom Tromey <tom@tromey.com>
3622
3623 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
3624
3625 2019-08-15 Tom Tromey <tom@tromey.com>
3626
3627 * tui/tui-wingeneral.c: Include tui-stack.h.
3628 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
3629 (struct tui_locator_window): Move from tui-data.h.
3630 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
3631 (tui_initialize_static_data): Move from tui-data.c.
3632 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
3633 (struct tui_locator_window): Move to tui-stack.c.
3634 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
3635 (tui_initialize_static_data): Move to tui-stack.c.
3636
3637 2019-08-15 Tom Tromey <tom@tromey.com>
3638
3639 * tui/tui-layout.c (show_source_disasm_command)
3640 (show_source_or_disasm_and_command): Use make_visible method, not
3641 tui_make_window.
3642 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
3643 Remove.
3644
3645 2019-08-15 Tom Tromey <tom@tromey.com>
3646
3647 * tui/tui-wingeneral.h (tui_make_window): Update.
3648 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
3649 parameter.
3650 (tui_gen_win_info::make_visible): Update.
3651 * tui/tui-regs.c (tui_data_window::display_registers_from):
3652 Update.
3653 * tui/tui-layout.c (show_source_disasm_command)
3654 (show_source_or_disasm_and_command): Update.
3655 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
3656 (enum tui_box): Remove.
3657 (struct tui_win_info) <can_box>: New method.
3658 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
3659 method.
3660
3661 2019-08-15 Tom de Vries <tdevries@suse.de>
3662
3663 * linux-nat-trad.c: Include gdbarch.h.
3664
3665 2019-08-14 Alan Hayward <alan.hayward@arm.com>
3666
3667 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
3668 register sizes.
3669
3670 2019-08-14 Tom Tromey <tromey@adacore.com>
3671
3672 * darwin-nat.c: Include gdbarch.h.
3673 * darwin-nat-info.c: Include gdbarch.h.
3674
3675 2019-08-13 Tom Tromey <tom@tromey.com>
3676
3677 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
3678 Remove.
3679 * tui/tui-data.c (tui_initialize_static_data): Update.
3680
3681 2019-08-13 Tom Tromey <tom@tromey.com>
3682
3683 * tui/tui-winsource.h (struct tui_exec_info_window)
3684 <~tui_exec_info_window, maybe_allocate_content, get_content,
3685 m_content>: Remove.
3686 (struct tui_source_window_base) <set_exec_info_content,
3687 show_exec_info_content>: Don't declare.
3688 * tui/tui-winsource.c
3689 (tui_exec_info_window::maybe_allocate_content): Remove.
3690 (tui_source_window_base::update_exec_info): Rename from
3691 set_exec_info_content.
3692 (tui_source_window_base::show_exec_info_content)
3693 (tui_source_window_base::update_exec_info): Remove.
3694
3695 2019-08-13 Tom Tromey <tom@tromey.com>
3696
3697 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
3698 declare.
3699 * tui/tui-winsource.c (tui_update_source_window_as_is)
3700 (tui_update_source_windows_with_addr, tui_erase_source_content):
3701 Update.
3702 (tui_clear_exec_info_content): Remove.
3703
3704 2019-08-13 Tom Tromey <tom@tromey.com>
3705
3706 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
3707 declare.
3708 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
3709 call tui_erase_exec_info_content.
3710 (tui_clear_exec_info_content): Rename from
3711 tui_erase_exec_info_content.
3712 (tui_clear_exec_info_content): Delete.
3713
3714 2019-08-13 Tom Tromey <tom@tromey.com>
3715
3716 * tui/tui-winsource.h (struct tui_source_window_base)
3717 <show_exec_info_content>: Declare.
3718 (tui_show_exec_info_content): Don't declare.
3719 * tui/tui-winsource.c
3720 (tui_source_window_base::show_exec_info_content): Rename from
3721 tui_show_exec_info_content.
3722 (tui_source_window_base::update_exec_info): Update.
3723
3724 2019-08-13 Tom Tromey <tom@tromey.com>
3725
3726 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
3727 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
3728 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
3729 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
3730 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
3731 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
3732 ... here.
3733
3734 2019-08-13 Tom Tromey <tom@tromey.com>
3735
3736 * tui/tui-winsource.h (struct tui_source_window_base)
3737 <update_exec_info>: Declare.
3738 (tui_update_exec_info): Don't declare.
3739 * tui/tui-winsource.c (tui_update_source_window_as_is)
3740 (tui_source_window_base::refresh_all)
3741 (tui_update_all_breakpoint_info): Update.
3742 (tui_source_window_base::update_exec_info): Rename from
3743 tui_update_exec_info.
3744 * tui/tui-stack.c (tui_show_frame_info): Update.
3745
3746 2019-08-13 Tom Tromey <tom@tromey.com>
3747
3748 * tui/tui-winsource.h (struct tui_source_window_base)
3749 <set_exec_info_content>: Declare.
3750 (tui_set_exec_info_content): Don't declare.
3751 * tui/tui-winsource.c
3752 (tui_source_window_base::set_exec_info_content): Rename from
3753 tui_set_exec_info_content.
3754 (tui_update_exec_info): Update.
3755
3756 2019-08-13 Tom Tromey <tom@tromey.com>
3757
3758 * tui/tui-winsource.h (struct tui_source_window_base)
3759 <show_source_content>: Declare.
3760 (tui_show_source_content): Don't declare.
3761 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
3762 (tui_source_window_base::show_source_content): Rename from
3763 tui_show_source_content.
3764 (tui_source_window_base::refresh_all): Update.
3765 * tui/tui-layout.c (show_source_disasm_command)
3766 (show_source_or_disasm_and_command): Update.
3767
3768 2019-08-13 Tom Tromey <tom@tromey.com>
3769
3770 * tui/tui-winsource.c (tui_erase_source_content)
3771 (tui_show_source_content, tui_source_window_base::refresh_all):
3772 Update.
3773 * tui/tui-wingeneral.h
3774 (tui_check_and_display_highlight_if_needed): Don't declare.
3775 * tui/tui-wingeneral.c
3776 (tui_win_info::check_and_display_highlight_if_needed): Rename from
3777 check_and_display_highlight_if_needed.
3778 * tui/tui-win.c (tui_rehighlight_all)
3779 (tui_win_info::make_visible_with_new_height): Update.
3780 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
3781 (tui_data_window::erase_data_content)
3782 (tui_data_window::display_all_data): Update.
3783 * tui/tui-data.h (struct tui_win_info)
3784 <check_and_display_highlight_if_needed>: Declare.
3785
3786 2019-08-13 Tom Tromey <tom@tromey.com>
3787
3788 * tui/tui-win.c (tui_resize_all): Call
3789 tui_delete_invisible_windows.
3790 * tui/tui-layout.c (show_layout): Call
3791 tui_delete_invisible_windows.
3792 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
3793 * tui/tui-data.c (tui_delete_invisible_windows): New function.
3794
3795 2019-08-13 Tom Tromey <tom@tromey.com>
3796
3797 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
3798 tui_add_win_to_layout.
3799
3800 2019-08-13 Tom Tromey <tom@tromey.com>
3801
3802 * tui/tui-layout.h (tui_default_win_height): Don't declare.
3803 * tui/tui-layout.c (tui_default_win_height): Now static.
3804
3805 2019-08-13 Tom Tromey <tom@tromey.com>
3806
3807 * tui/tui-layout.c (show_layout): Unify all layout cases into a
3808 single switch.
3809 (show_source_disasm_command, show_source_or_disasm_and_command):
3810 Don't check current layout.
3811
3812 2019-08-13 Tom Tromey <tom@tromey.com>
3813
3814 * tui/tui-wingeneral.c (make_all_visible): Remove.
3815 (tui_make_all_invisible): Simplify.
3816 * tui/tui-layout.c (tui_make_all_invisible): Move from
3817 tui-wingeneral.c; simplify.
3818 (show_layout): Hoist call to tui_make_all_invisible.
3819 (show_data): Don't call tui_make_all_invisible.
3820
3821 2019-08-13 Tom Tromey <tom@tromey.com>
3822
3823 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
3824 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
3825
3826 2019-08-13 Tom Tromey <tom@tromey.com>
3827
3828 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
3829 tui-data.c.
3830 (show_source_disasm_command, show_data)
3831 (show_source_or_disasm_and_command): Don't use
3832 tui_set_current_layout_to.
3833 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
3834 * tui/tui-data.c (current_layout, tui_current_layout): Move to
3835 tui-layout.c.
3836 (tui_set_current_layout_to): Remove.
3837
3838 2019-08-13 Tom Tromey <tom@tromey.com>
3839
3840 * tui/tui-layout.c (tui_set_layout): Update.
3841 * tui/tui-data.h (struct tui_layout_def): Remove.
3842 (tui_layout_def): Don't declare.
3843 * tui/tui-data.c (layout_def): Remove.
3844 (tui_layout_def): Remove.
3845
3846 2019-08-13 Tom Tromey <tom@tromey.com>
3847
3848 * tui/tui-winsource.h (struct tui_source_window_base)
3849 <clear_detail>: No longer "override".
3850 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
3851 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
3852 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
3853 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
3854 Remove.
3855 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
3856
3857 2019-08-13 Tom Tromey <tromey@adacore.com>
3858
3859 * tracepoint.c: Don't include readline.h or history.h.
3860
3861 2019-08-12 Tom Tromey <tom@tromey.com>
3862
3863 * configure: Rebuild.
3864 * configure.ac: Check for readline 7.
3865 * NEWS: Mention readline 7 requirement.
3866 * README: Update.
3867
3868 2019-08-12 Tom Tromey <tom@tromey.com>
3869
3870 * mingw-hdep.c (gdb_select): Remove readline hack.
3871
3872 2019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3873
3874 * blockframe.c (find_pc_partial_function): Set *block to nullptr
3875 when the function fails.
3876
3877 2019-08-09 Andreas Arnez <arnez@linux.ibm.com>
3878
3879 * s390-tdep.c (s390_type_align): New function.
3880 (s390_gdbarch_init): Set it as type_align gdbarch method.
3881
3882 2019-08-09 Tom de Vries <tdevries@suse.de>
3883
3884 PR gdb/24591
3885 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
3886 pc_low with relocation offset.
3887
3888 2019-08-07 Tom Tromey <tromey@adacore.com>
3889
3890 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
3891 (print_frame_args): Update.
3892 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
3893 Update.
3894 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
3895 * frame.h (struct frame_arg): Add initializers.
3896 <error>: Now a unique_xmalloc_ptr.
3897
3898 2019-08-07 Alan Hayward <alan.hayward@arm.com>
3899
3900 * NEWS: Expand the Pointer Authentication entry.
3901 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
3902 (aarch64_frame_unmask_lr): ... to this.
3903 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
3904 Call aarch64_frame_unmask_lr.
3905 * frame.c (struct frame_info): Add "masked" variable.
3906 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
3907 (fprint_frame): Check for masked pc.
3908 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
3909 declarations.
3910 * python/py-framefilter.c (py_print_frame): Check for masked pc.
3911 * stack.c (print_frame): Check for masked pc.
3912
3913 2019-08-06 Tom Tromey <tom@tromey.com>
3914
3915 * stabsread.c (patch_block_stabs, read_one_struct_field)
3916 (read_enum_type): Use obstack_strndup.
3917 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
3918 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
3919 * dwarf2read.c (guess_full_die_structure_name)
3920 (anonymous_struct_prefix): Use obstack_strndup.
3921 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
3922 * c-exp.y (yylex): Use obstack_strndup.
3923 * ada-exp.y (write_object_renaming, write_ambiguous_var)
3924 (write_var_or_type): Use obstack_strndup.
3925
3926 2019-08-06 Tom Tromey <tom@tromey.com>
3927
3928 * symfile.c (reread_symbols): Use obstack_strdup.
3929 * stabsread.c (read_type): Use obstack_strdup.
3930 * gdb_obstack.h (obstack_strdup): New overload.
3931 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
3932 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
3933 (dwarf2_canonicalize_name): Use obstack_strdup.
3934 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
3935 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
3936 Use obstack_strdup.
3937
3938 2019-08-06 Tom Tromey <tom@tromey.com>
3939
3940 * gdb_obstack.h (obstack_strdup): Define.
3941 * gdb_obstack.c (obstack_strdup): Don't define.
3942
3943 2019-08-06 Tom Tromey <tom@tromey.com>
3944
3945 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
3946 obstack_strdup.
3947 * typeprint.c (typedef_hash_table::find_global_typedef): Use
3948 obstack_strdup.
3949 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
3950 * stabsread.c (common_block_start): Use obstack_strdup.
3951 * objfiles.c (set_objfile_main_name, objfile): Use
3952 obstack_strdup.
3953 * namespace.c (add_using_directive): Use obstack_strdup.
3954 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
3955 * jit.c (finalize_symtab): Use obstack_strdup.
3956 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
3957 (guess_partial_die_structure_name, partial_die_info::fixup)
3958 (dwarf2_name): Use obstack_strdup.
3959 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
3960 obstack_strdup.
3961 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
3962 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
3963 obstack_strdup.
3964 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
3965
3966 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3967
3968 * unittests/help-doc-selftests.c: New file.
3969 * Makefile.in: Add the new file.
3970
3971 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3972
3973 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
3974 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
3975 the full first line, except when FOR_VALUE_PREFIX. In this case,
3976 the trailing '.' is not output, and the first character is uppercased.
3977 (print_help_for_command): Update call to print_doc_line.
3978 (print_doc_of_command): Likewise.
3979 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
3980 * cli/cli-option.c (append_indented_doc): Do not append newline.
3981 (build_help_option): Append newline after first appended_indented_doc
3982 only if a second call is done.
3983 (build_help): Append 2 new lines before each option, except the first
3984 one.
3985 * compile/compile.c (_initialize_compile): Add new lines after
3986 %OPTIONS%, when not at the end of the help.
3987 Change help doc or code
3988 producing the help doc to respect the invariants.
3989 * maint-test-options.c (_initialize_maint_test_options): Likewise.
3990 Also removed the new line after 'Options:', as all other commands
3991 do not put an empty line between 'Options:' and the first option.
3992 * printcmd.c (_initialize_printcmd): Likewise.
3993 * stack.c (_initialize_stack): Likewise.
3994 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
3995 incorrectly telling COMMAND is optional.
3996 * ada-lang.c (_initialize_ada_language): Change help doc or code
3997 producing the help doc to respect the invariants.
3998 * ada-tasks.c (_initialize_ada_tasks): Likewise.
3999 * breakpoint.c (_initialize_breakpoint): Likewise.
4000 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
4001 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
4002 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
4003 * cli/cli-style.c (cli_style_option::add_setshow_commands,
4004 _initialize_cli_style): Likewise.
4005 * corelow.c (core_target_info): Likewise.
4006 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
4007 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
4008 * filesystem.c (_initialize_filesystem): Likewise.
4009 * frame.c (_initialize_frame): Likewise.
4010 * gnu-nat.c (add_task_commands): Likewise.
4011 * infcall.c (_initialize_infcall): Likewise.
4012 * infcmd.c (_initialize_infcmd): Likewise.
4013 * interps.c (_initialize_interpreter): Likewise.
4014 * language.c (_initialize_language): Likewise.
4015 * linux-fork.c (_initialize_linux_fork): Likewise.
4016 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
4017 * maint.c (_initialize_maint_cmds): Likewise.
4018 * memattr.c (_initialize_mem): Likewise.
4019 * printcmd.c (_initialize_printcmd): Likewise.
4020 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
4021 _RegEx): Likewise.
4022 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
4023 * record-btrace.c (_initialize_record_btrace): Likewise.
4024 * record-full.c (_initialize_record_full): Likewise.
4025 * record.c (_initialize_record): Likewise.
4026 * regcache-dump.c (_initialize_regcache_dump): Likewise.
4027 * regcache.c (_initialize_regcache): Likewise.
4028 * remote.c (add_packet_config_cmd, init_remote_threadtests,
4029 _initialize_remote): Likewise.
4030 * ser-tcp.c (_initialize_ser_tcp): Likewise.
4031 * serial.c (_initialize_serial): Likewise.
4032 * skip.c (_initialize_step_skip): Likewise.
4033 * source.c (_initialize_source): Likewise.
4034 * stack.c (_initialize_stack): Likewise.
4035 * symfile.c (_initialize_symfile): Likewise.
4036 * symtab.c (_initialize_symtab): Likewise.
4037 * target-descriptions.c (_initialize_target_descriptions): Likewise.
4038 * top.c (init_main): Likewise.
4039 * tracefile-tfile.c (tfile_target_info): Likewise.
4040 * tracepoint.c (_initialize_tracepoint): Likewise.
4041 * tui/tui-win.c (_initialize_tui_win): Likewise.
4042 * utils.c (add_internal_problem_command): Likewise.
4043 * valprint.c (value_print_option_defs): Likewise.
4044
4045 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
4046
4047 PR build/24886
4048 * configure.ac: Drop enable-libmcheck support.
4049 * configure, config.in: Rebuild.
4050 * libmcheck.m4: Remove.
4051 * acinclude.m4: Don't include it.
4052 * Makefile.in: Don't distribute it.
4053 * top.c (print_gdb_configuration): Don't mention it.
4054
4055 2019-08-06 Tom Tromey <tom@tromey.com>
4056
4057 * utils.c (set_output_style): Sometimes pass stream to
4058 emit_style_escape.
4059 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
4060 * record-btrace.c (btrace_insn_history): Update.
4061 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
4062 method.
4063 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
4064 Update initializers.
4065 <m_uiout>: New field.
4066 <m_di>: Move lower.
4067 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
4068 Remove "uiout" parameter.
4069 (dump_insns): Update.
4070 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
4071 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
4072
4073 2019-08-06 Christian Biesinger <cbiesinger@google.com>
4074
4075 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
4076 (error_in_psymtab_expansion): Likewise.
4077 (lookup_symbol_via_quick_fns): Likewise.
4078 (basic_lookup_transparent_type_quick): Likewise.
4079 (basic_lookup_transparent_type_1): Likewise.
4080
4081 2019-08-06 Tom Tromey <tromey@adacore.com>
4082
4083 * source.c (last_source_error): Now bool.
4084 (print_source_lines_base): Make "noprint" bool. Only open
4085 source file when last_source_visited changes.
4086
4087 2019-08-06 Tom Tromey <tromey@adacore.com>
4088
4089 * annotate.c (annotate_source_line): Use g_source_cache.
4090 * source-cache.c (source_cache::get_plain_source_lines): Change
4091 parameters. Populate m_offset_cache.
4092 (source_cache::ensure): New method.
4093 (source_cache::get_line_charpos): New method.
4094 (extract_lines): Move lower. Change parameters.
4095 (source_cache::get_source_lines): Move lower.
4096 * source-cache.h (class source_cache): Update comment.
4097 <get_line_charpos>: New method.
4098 <get_source_lines>: Update comment.
4099 <clear>: Clear m_offset_cache.
4100 <get_plain_source_lines>: Change parameters.
4101 <ensure>: New method
4102 <m_offset_cache>: New member.
4103 * source.c (forget_cached_source_info_for_objfile): Update.
4104 (info_source_command): Use g_source_cache.
4105 (find_source_lines, open_source_file_with_line_charpos): Remove.
4106 (print_source_lines_base, search_command_helper): Use g_source_cache.
4107 * source.h (open_source_file_with_line_charpos): Don't declare.
4108 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
4109 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
4110 Use g_source_cache.
4111
4112 2019-08-06 Tom Tromey <tromey@adacore.com>
4113
4114 * source-cache.c (source_cache::get_plain_source_lines):
4115 Remove "first_line" and "last_line" parameters.
4116 (source_cache::get_source_lines): Cache plain text.
4117 * source-cache.h (class source_cache)
4118 <get_plain_source_lines>: Update.
4119
4120 2019-08-06 Tom Tromey <tromey@adacore.com>
4121
4122 * source-cache.c (extract_lines): No longer a method.
4123 Changed type of parameter. Include final newline.
4124 (selftests::extract_lines_test): New function.
4125 (_initialize_source_cache): Likewise.
4126 * source-cache.h (class source_cache)
4127 <extract_lines>: Don't declare.
4128
4129 2019-08-06 Tom Tromey <tromey@adacore.com>
4130
4131 * breakpoint.c (init_breakpoint_sal): Update.
4132 (breakpoint): Update.
4133 * breakpoint.h (struct breakpoint) <filter>: Now a
4134 unique_xmalloc_ptr.
4135
4136 2019-08-05 Christian Biesinger <cbiesinger@google.com>
4137
4138 * NEWS: Mention dictionary access on blocks.
4139 * python/py-block.c (blpy_getitem): New function.
4140 (block_object_as_mapping): New struct.
4141 (block_object_type): Use new struct for tp_as_mapping field.
4142
4143 2019-08-05 Christian Biesinger <cbiesinger@google.com>
4144
4145 * objfiles.h (objfile): Add a comment describing partial symbols.
4146
4147 2019-08-05 Tom Tromey <tromey@adacore.com>
4148
4149 * compile/compile.c (_initialize_compile): Use _(), not N_().
4150 * thread.c (_initialize_thread): Use _(), not N_().
4151 * stack.c (_initialize_stack): Use _(), not N_().
4152 * printcmd.c (_initialize_printcmd): Use _(), not N_().
4153
4154 2019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4155
4156 * dwarf2read.c (struct dw2_symtab_iterator):
4157 <want_specific_block>: Remove.
4158 <block_index>: Change type to gdb::optional.
4159 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
4160 change type of BLOCK_INDEX parameter to gdb::optional.
4161 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
4162 (dw2_lookup_symbol): Don't pass argument for
4163 WANT_SPECIFIC_BLOCK.
4164 (dw2_expand_symtabs_for_function): Don't pass argument for
4165 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
4166 (class dw2_debug_names_iterator)
4167 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
4168 parameter, change BLOCK_INDEX type to gdb::optional.
4169 <m_want_specific_block>: Remove.
4170 <m_block_index>: Change type to gdb::optional.
4171 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
4172 gdb::optional. Re-write in function of gdb::optional.
4173 (dw2_debug_names_lookup_symbol): Don't pass argument for
4174 WANT_SPECIFIC_BLOCK.
4175 (dw2_debug_names_expand_symtabs_for_function): Don't pass
4176 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
4177 BLOCK_INDEX.
4178
4179 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4180
4181 * NEWS: Mention changes to "info sources" command.
4182
4183 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4184
4185 * symtab.c (filename_partial_match_opts): New struct type.
4186 (struct output_source_filename_data): New members
4187 regexp, c_regexp, partial_match.
4188 (output_source_filename): Use new members to decide to print file.
4189 (info_sources_option_defs): New variable.
4190 (make_info_sources_options_def_group, print_info_sources_header,
4191 info_sources_command_completer):
4192 New functions.
4193 (info_sources_command): Read new optional arguments.
4194 (_initialize_symtab): Update info sources help.
4195
4196 2019-08-02 Alexandre Oliva <oliva@adacore.com>
4197
4198 * ada-lang.c (exception_support_info_v0): Renamed from...
4199 (default_exception_support_info): ... this. Create new
4200 definition for v1.
4201 (ada_has_this_exception_support): Look up catch_handlers_sym.
4202 (ada_exception_support_info_sniffer): Try v0 after default.
4203
4204 2019-08-01 Tom Tromey <tromey@adacore.com>
4205
4206 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
4207 gdbarch.h.
4208
4209 2019-08-01 Christian Biesinger <cbiesinger@google.com>
4210
4211 * s12z-tdep.c: Fix include path for s12z-opc.h.
4212
4213 2019-08-01 Alan Hayward <alan.hayward@arm.com>
4214
4215 * NEWS: Require GNU make 3.82.
4216
4217 2019-07-16 Tom Tromey <tom@tromey.com>
4218
4219 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
4220 declare.
4221
4222 2019-07-30 Tom Tromey <tromey@adacore.com>
4223
4224 * block.c (contained_in): Remove BLOCK_FUNCTION check.
4225
4226 2019-07-30 Kevin Buettner <kevinb@redhat.com>
4227
4228 * printcmd.c (print_address_symbolic): Print negative offsets.
4229 (build_address_symbolic): Force signed arithmetic when computing
4230 offset.
4231
4232 2019-07-30 Christian Biesinger <cbiesinger@google.com>
4233
4234 PR/24474: Add a function to lookup static variables.
4235 * NEWS: Mention this new function.
4236 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
4237 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
4238 * python/python.c (python_GdbMethods): Add new function.
4239
4240 2019-07-29 Christian Biesinger <cbiesinger@google.com>
4241
4242 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
4243 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
4244 (objfpy_lookup_static_symbol): New function.
4245 (objfile_object_methods): Add new functions.
4246
4247 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4248
4249 * NEWS: Mention 'set|show print frame-info'. Mention new
4250 'presence' value for 'frame-arguments'. Mention new '-frame-info'
4251 backtrace argument. Mention that python frame filtering code
4252 is now consistent with what 'backtrace' command prints.
4253
4254 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4255
4256 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
4257 comments.
4258 (print_frame_info_auto, print_frame_info_source_line,
4259 print_frame_info_location, print_frame_info_source_and_location,
4260 print_frame_info_location_and_address, print_frame_info_short_location):
4261 New declarations.
4262 (struct frame_print_options): New member print_frame_info.
4263 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
4264 * stack.h (get_user_print_what_frame_info): New declaration.
4265 (frame_show_address): New declaration.
4266 * stack.c (print_frame_arguments_choices): New value 'presence'.
4267 (print_frame_info_auto, print_frame_info_source_line,
4268 print_frame_info_location, print_frame_info_source_and_location,
4269 print_frame_info_location_and_address, print_frame_info_short_location,
4270 print_frame_info_choices, print_frame_info_print_what): New definitions.
4271 (print_frame_args): Only print dots for args if print frame-arguments
4272 is 'presence'.
4273 (frame_print_option_defs): New element for "frame-info".
4274 (get_user_print_what_frame_info): New function.
4275 (frame_show_address): Make non static. Move comment to stack.h.
4276 (print_frame_info_to_print_what): New function.
4277 (print_frame_info): Update comment. Use fp_opts.print_frame_info
4278 to decide what to print.
4279 (backtrace_command_1): Handle the new print_frame_arguments_presence
4280 value.
4281 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
4282 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
4283 (py_print_frame): In non-mi mode, use LOCATION as default for
4284 print_what, similarly to frame information printed directly by
4285 backtrace command. Handle frame-info user option in non MI mode.
4286
4287 2019-07-27 Kevin Buettner <kevinb@redhat.com>
4288
4289 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
4290 Add case for debugging 32-bit target on 64-bit host. Revise
4291 comment.
4292
4293 2019-07-27 Kevin Buettner <kevinb@redhat.com>
4294
4295 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
4296 instead of find_function_entry_range_from_pc.
4297
4298 2019-07-27 Kevin Buettner <kevinb@redhat.com>
4299
4300 * stack.c (find_frame_funname): Remove code which preferred
4301 minsym over symtab sym in "certain pathological cases".
4302
4303 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
4304 parameter. Change type of "do_demangle" to bool.
4305 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
4306 Pass suitable "prefer_sym_over_minsym" flag to
4307 build_address_symbolic(). Don't output "+" for negative offsets.
4308 * printcmd.c (print_address_symbolic): Update invocation of
4309 build_address_symbolic to include a "prefer_sym_over_minsym"
4310 flag.
4311 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
4312 Restrict cases in which use of minimal symbol is preferred to that
4313 of a found symbol. Update comments.
4314
4315 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
4316 for entry pc when entry pc is out of range for that FDE.
4317
4318 2019-07-26 Brian Callahan <bcallah@openbsd.org>
4319
4320 PR gdb/24839:
4321 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
4322 type.
4323
4324 2019-07-25 Christian Biesinger <cbiesinger@google.com>
4325
4326 * python/py-objfile.c (add_separate_debug_file): Fix comment about
4327 this function's Python signature.
4328
4329
4330 2019-07-24 Christian Biesinger <cbiesinger@google.com>
4331
4332 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
4333 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
4334 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
4335 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
4336 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
4337
4338
4339 2019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
4340
4341 * h8300-tdep.c (h8300_register_name_common): New.
4342 h8300_register_name): Use h8300_register_name_common.
4343 (h8300s_register_name): Likewise.
4344 (h8300sx_register_name): Likewise.
4345 (h8300h_register_nam): New.
4346 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
4347
4348
4349 2019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
4350
4351 * arm-tdep.c (arm_skip_cmse_entry): New function.
4352 (arm_is_sgstubs_section): New function.
4353 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
4354
4355 2019-07-22 Tom Tromey <tom@tromey.com>
4356
4357 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
4358 Don't self-assign.
4359
4360 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
4361
4362 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
4363 type_print.
4364
4365 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
4366
4367 * symtab.c (search_symbols): Adjust msymbol matching type arrays
4368 so that GDB doesn't match any msymbols when searching in the
4369 TYPES_DOMAIN.
4370 (print_symbol_info): Print using typedef_print or type_print based
4371 on the type of the symbol. Add updated FIXME comment moved from...
4372 (_initialize_symtab): ... move and update FIXME comment to above.
4373
4374 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
4375
4376 * NEWS: Mention adding -q option to "info types".
4377 * symtab.c (struct info_types_options): New struct.
4378 (info_types_options_defs): New variable.
4379 (make_info_types_options_def_group): New function.
4380 (info_types_command): Use gdb::option framework to parse options.
4381 (info_types_command_completer): New function.
4382 (_initialize_symtab): Extend the help text on "info types" and
4383 register command completer.
4384
4385 2019-07-21 Christian Biesinger <cbiesinger@google.com>
4386
4387 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
4388 (lookup_symbol_in_objfile): Change int to block_enum and add a
4389 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
4390
4391 2019-07-20 Christian Biesinger <cbiesinger@google.com>
4392
4393 * MAINTAINERS (Write After Approval): Add self.
4394
4395 2019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
4396
4397 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
4398 instruction to the dummy code region.
4399
4400 2019-07-19 Tom Tromey <tromey@adacore.com>
4401
4402 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
4403 (ARGSUSED, PARAMS, __func__): Remove rules.
4404
4405 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4406
4407 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
4408 * features/arm/arm-with-iwmmxt.c: Remove.
4409 * features/arm/arm-with-iwmmxt.xml: Remove.
4410 * features/arm/arm-with-m-fpa-layout.c: Remove.
4411 * features/arm/arm-with-m-fpa-layout.xml: Remove.
4412 * features/arm/arm-with-m-vfp-d16.c: Remove.
4413 * features/arm/arm-with-m-vfp-d16.xml: Remove.
4414 * features/arm/arm-with-m.c: Remove.
4415 * features/arm/arm-with-m.xml: Remove.
4416 * features/arm/arm-with-neon.c: Remove.
4417 * features/arm/arm-with-neon.xml: Remove.
4418 * features/arm/arm-with-vfpv2.c: Remove.
4419 * features/arm/arm-with-vfpv2.xml: Remove.
4420 * features/arm/arm-with-vfpv3.c: Remove.
4421 * features/arm/arm-with-vfpv3.xml: Remove.
4422
4423 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4424
4425 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
4426
4427 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4428
4429 * arch/aarch32.c (aarch32_create_target_description): Create
4430 target descriptions using features.
4431 * arch/arm.c (arm_create_target_description)
4432 (arm_create_mprofile_target_description): Likewise.
4433 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
4434
4435 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4436
4437 * Makefile.in: Add new files.
4438 * aarch32-tdep.c: New file.
4439 * aarch32-tdep.h: New file.
4440 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
4441 Call aarch32_read_description.
4442 * arch/aarch32.c: New file.
4443 * arch/aarch32.h: New file.
4444 * arch/arm.c (arm_create_target_description)
4445 (arm_create_mprofile_target_description): New function.
4446 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
4447 (arm_create_target_description)
4448 (arm_create_mprofile_target_description): New declaration.
4449 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
4450 read_description functions.
4451 * arm-linux-nat.c (arm_linux_nat_target::read_description):
4452 Likewise.
4453 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
4454 * arm-tdep.c (tdesc_arm_list): New variable.
4455 (arm_register_g_packet_guesses): Call create description functions.
4456 (arm_read_description) (arm_read_mprofile_description): New
4457 function.
4458 * arm-tdep.h (arm_read_description)
4459 (arm_read_mprofile_description): Add declaration.
4460 * configure.tgt: Add new files.
4461
4462 2019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
4463
4464 * top.c (new_ui_command): Open specified terminal just once.
4465
4466 2019-07-18 Tom Tromey <tromey@adacore.com>
4467
4468 * symtab.c (main_name): Constify return type.
4469 * symfile.c (set_initial_language): Update.
4470 * symtab.h (main_name): Constify return type.
4471
4472 2019-07-17 Tom Tromey <tom@tromey.com>
4473
4474 * tui/tui-winsource.c (tui_update_source_window)
4475 (tui_update_source_window_as_is)
4476 (tui_update_source_windows_with_line): Remove return.
4477 * tui/tui-disasm.c (tui_show_disassem)
4478 (tui_show_disassem_and_update_source): Remove return.
4479 * tui/tui.c (tui_reset): Remove return.
4480 * tui/tui-wingeneral.c
4481 (tui_check_and_display_highlight_if_needed): Remove return.
4482
4483 2019-07-17 Tom Tromey <tom@tromey.com>
4484
4485 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
4486
4487 2019-07-17 Tom Tromey <tom@tromey.com>
4488
4489 * tui/tui-winsource.h (struct tui_exec_info_window)
4490 (struct tui_source_window_base): Move from tui-data.h.
4491 * tui/tui-winsource.c: Move many method definitions from
4492 elsewhere. Remove "structuring" comments.
4493 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
4494 (tui_source_window_base::refresh_window): Move to
4495 tui-winsource.c.
4496 * tui/tui-win.c (tui_source_window_base::refresh_all)
4497 (tui_source_window_base::update_tab_width)
4498 (tui_source_window_base::set_new_height)
4499 (tui_source_window_base::do_make_visible_with_new_height): Move to
4500 tui-winsource.c.
4501 * tui/tui-source.h: Update.
4502 * tui/tui-source.c (tui_source_window_base::reset): Move to
4503 tui-winsource.c.
4504 * tui/tui-disasm.h: Update.
4505 * tui/tui-data.h (struct tui_exec_info_window): Move to
4506 tui-winsource.h.
4507 (struct tui_source_window_base): Likewise.
4508 * tui/tui-data.c (tui_source_window_base::clear_detail)
4509 (tui_source_window_base, ~tui_source_window_base): Move to
4510 tui-winsource.c.
4511
4512 2019-07-17 Tom Tromey <tom@tromey.com>
4513
4514 * tui/tui-win.c (tui_resize_all)
4515 (tui_source_window_base::update_tab_width)
4516 (tui_adjust_win_heights): Update.
4517 (tui_win_info::make_invisible_and_set_new_height): Rename from
4518 make_invisible_and_set_new_height.
4519 * tui/tui-data.h (struct tui_win_info)
4520 <make_invisible_and_set_new_height>: New method.
4521
4522 2019-07-17 Tom Tromey <tom@tromey.com>
4523
4524 * tui/tui.c: Update.
4525 * tui/tui-source.h (struct tui_source_window): Move from
4526 tui-data.h.
4527 * tui/tui-layout.c: Update.
4528 * tui/tui-disasm.c: Update.
4529 * tui/tui-data.h (struct tui_source_window): Move to
4530 tui-source.h.
4531
4532 2019-07-17 Tom Tromey <tom@tromey.com>
4533
4534 * tui/tui-disasm.h (struct tui_disasm_window): Move from
4535 tui-data.h.
4536 * tui/tui-data.h (struct tui_disasm_window): Move to
4537 tui-disasm.h.
4538
4539 2019-07-17 Tom Tromey <tom@tromey.com>
4540
4541 * tui/tui-regs.h (struct tui_data_item_window): Move from
4542 tui-data.h.
4543 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
4544 * tui/tui-data.h (struct tui_data_item_window): Move to
4545 tui-regs.h.
4546 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
4547
4548 2019-07-17 Tom Tromey <tom@tromey.com>
4549
4550 * tui/tui.c: Update.
4551 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
4552 (tui_cmd_window::max_height): Move to tui-command.c.
4553 * tui/tui-layout.c: Update.
4554 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
4555 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
4556 tui-command.c.
4557 * tui/tui-command.h (struct tui_cmd_window): Move from
4558 tui-data.h.
4559 * tui/tui-command.c: Remove "structuring" comments.
4560 (tui_cmd_window::clear_detail)
4561 (tui_cmd_window::do_make_visible_with_new_height)
4562 (tui_cmd_window::max_height): Move from elsewhere.
4563
4564 2019-07-17 Tom Tromey <tom@tromey.com>
4565
4566 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
4567 Now static.
4568 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
4569 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
4570
4571 2019-07-17 Tom Tromey <tom@tromey.com>
4572
4573 * tui/tui.c: Update.
4574 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
4575 tui-regs.c.
4576 * tui/tui-windata.h: Remove file.
4577 * tui/tui-windata.c: Remove file.
4578 * tui/tui-win.c (tui_data_window::set_new_height)
4579 (tui_data_window::do_make_visible_with_new_height): Move to
4580 tui-regs.c.
4581 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
4582 * tui/tui-regs.c: Remove "structuring" comments.
4583 (tui_data_window::first_data_item_displayed)
4584 (tui_data_window::delete_data_content_windows)
4585 (tui_data_window::erase_data_content)
4586 (tui_data_window::display_all_data)
4587 (tui_data_window::refresh_all)
4588 (tui_data_window::do_scroll_vertical)
4589 (tui_data_window::clear_detail, tui_data_window::set_new_height)
4590 (tui_data_window::do_make_visible_with_new_height)
4591 (tui_data_window::refresh_window): Move from elsewhere.
4592 (_initialize_tui_regs): Move to end of file.
4593 * tui/tui-layout.c: Update.
4594 * tui/tui-hooks.c: Update.
4595 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
4596 * tui/tui-data.c (tui_data_window::clear_detail): Move to
4597 tui-regs.c.
4598 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
4599
4600 2019-07-17 Tom Tromey <tom@tromey.com>
4601
4602 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
4603 seen.
4604
4605 2019-07-17 Tom Tromey <tom@tromey.com>
4606
4607 * tui/tui-win.c (tui_source_window_base::set_new_height)
4608 (tui_source_window_base::do_make_visible_with_new_height): Use
4609 m_has_locator field directly.
4610 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
4611 method.
4612 (struct tui_source_window_base) <has_locator>: Likewise.
4613
4614 2019-07-17 Tom Tromey <tom@tromey.com>
4615
4616 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
4617 Don't declare.
4618 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
4619 Remove.
4620 * tui/tui-win.c (tui_source_window_base::set_new_height)
4621 (tui_source_window_base::set_new_height)
4622 (make_invisible_and_set_new_height)
4623 (tui_source_window_base::do_make_visible_with_new_height)
4624 (tui_source_window_base::do_make_visible_with_new_height):
4625 Update.
4626 * tui/tui-layout.c (show_source_disasm_command, show_data)
4627 (show_source_or_disasm_and_command): Update.
4628 * tui/tui-layout.c (show_layout): Update.
4629
4630 2019-07-17 Tom Tromey <tom@tromey.com>
4631
4632 * tui/tui-layout.c (make_data_window): Remove.
4633 (show_data): Unify creation and re-initialization cases.
4634
4635 2019-07-17 Tom Tromey <tom@tromey.com>
4636
4637 * tui/tui-layout.c (make_source_window, make_disasm_window):
4638 Remove.
4639 (show_data): Unify creation and re-initialization cases.
4640
4641 2019-07-17 Tom Tromey <tom@tromey.com>
4642
4643 * tui/tui-layout.c (make_command_window): Remove.
4644 (show_source_disasm_command, show_source_or_disasm_and_command):
4645 Unify creation and re-initialization cases.
4646
4647 2019-07-17 Tom Tromey <tom@tromey.com>
4648
4649 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
4650 creation and re-initialization cases.
4651
4652 2019-07-17 Tom Tromey <tom@tromey.com>
4653
4654 * tui/tui-regs.c (tui_get_register): Return void.
4655
4656 2019-07-17 Tom Tromey <tom@tromey.com>
4657
4658 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
4659 Simplify.
4660
4661 2019-07-17 Tom Tromey <tom@tromey.com>
4662
4663 * tui/tui-layout.c (show_source_disasm_command): Simplify window
4664 resetting.
4665
4666 2019-07-17 Tom Tromey <tom@tromey.com>
4667
4668 * tui/tui.h (tui_set_layout_by_name): Don't declare.
4669 * tui/tui-regs.c (tui_reg_layout): New function.
4670 (tui_show_registers, tui_reg_command): Use it.
4671 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
4672 (tui_layout_command): Rename from tui_set_layout_by_name. Change
4673 parameters.
4674 (tui_layout_command): Remove.
4675
4676 2019-07-17 Tom Tromey <tom@tromey.com>
4677
4678 * tui/tui-layout.h (tui/tui-layout): Return void.
4679 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
4680
4681 2019-07-17 Tom Tromey <tom@tromey.com>
4682
4683 * tui/tui-layout.c (show_source_disasm_command, show_data):
4684 Update.
4685 (reset_locator): Remove.
4686 (show_source_or_disasm_and_command): Update.
4687
4688 2019-07-17 Tom Tromey <tom@tromey.com>
4689
4690 * tui/tui-source.c (tui_source_window_base::reset): Remove
4691 win_type parameter.
4692 * tui/tui-layout.c (make_command_window, make_source_window)
4693 (make_disasm_window, make_data_window)
4694 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
4695 (reset_locator, show_source_or_disasm_and_command): Update.
4696 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
4697 win_type parameter.
4698 (struct tui_source_window_base) <reset>: Likewise.
4699
4700 2019-07-17 Tom Tromey <tom@tromey.com>
4701
4702 * tui/tui-layout.c (show_source_disasm_command): Use
4703 reset_locator.
4704 (reset_locator): New function.
4705 (init_and_make_win): Remove.
4706 (show_source_or_disasm_and_command): Use reset_locator.
4707
4708 2019-07-17 Tom Tromey <tom@tromey.com>
4709
4710 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
4711 condition.
4712 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
4713 Remove condition.
4714 * tui/tui-source.c (tui_source_window_base::reset): New method.
4715 * tui/tui-layout.c (make_command_window): Don't call
4716 init_and_make_win.
4717 (make_source_window, make_disasm_window): Don't call
4718 make_source_or_disasm_window.
4719 (make_data_window): Don't call init_and_make_win. Change calling
4720 convention.
4721 (show_source_disasm_command, show_data): Simplify.
4722 (make_source_or_disasm_window): Remove.
4723 (show_source_or_disasm_and_command): Simplify.
4724 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
4725 (struct tui_source_window_base) <reset>: Likewise.
4726 <execution_info>: Remove initializer.
4727 * tui/tui-data.c (tui_source_window_base): Initialize
4728 execution_info.
4729
4730 2019-07-17 Tom Tromey <tom@tromey.com>
4731
4732 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
4733 variable.
4734
4735 2019-07-17 Tom Tromey <tom@tromey.com>
4736
4737 * tui/tui.c (tui_rl_other_window): Update.
4738 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
4739 superclass method first. Always iterate over regs_content.
4740 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
4741 method.
4742 * tui/tui-win.c (tui_set_focus_command): Update.
4743
4744 2019-07-17 Tom Tromey <tom@tromey.com>
4745
4746 * tui/tui-win.c (tui_set_focus_command): Rename from
4747 tui_set_focus. Call tui_enable.
4748 (tui_set_focus_command): Remove.
4749
4750 2019-07-17 Tom Tromey <tom@tromey.com>
4751
4752 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
4753 refresh_window.
4754 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
4755 touchwin.
4756 (tui_data_window::refresh_window): Call refresh_window on data
4757 items. Always call superclass refresh_window.
4758 (tui_win_info::refresh): Remove.
4759 (tui_source_window_base::refresh_window): Update.
4760 (tui_refresh_all): Update.
4761 * tui/tui-layout.c (show_source_disasm_command): Remove call to
4762 refresh_window.
4763 (show_source_or_disasm_and_command): Likewise.
4764 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
4765 (struct tui_source_window_base) <refresh>: Likewise.
4766
4767 2019-07-17 Tom Tromey <tom@tromey.com>
4768
4769 * tui/tui-winsource.c (tui_clear_source_content)
4770 (tui_show_source_content): Update.
4771 * tui/tui-source.c (tui_source_window::showing_source_p): Check
4772 whether content is empty.
4773 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
4774 Remove.
4775
4776 2019-07-17 Tom Tromey <tom@tromey.com>
4777
4778 * tui/tui-winsource.c (tui_erase_source_content): Clear the
4779 window's contents.
4780 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
4781 * tui/tui-source.c (tui_set_source_content_nil): Remove.
4782
4783 2019-07-17 Tom Tromey <tom@tromey.com>
4784
4785 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
4786 (struct tui_data_item_window): Update.
4787
4788 2019-07-17 Tom Tromey <tom@tromey.com>
4789
4790 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
4791 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
4792 defines.
4793
4794 2019-07-17 Tom Tromey <tom@tromey.com>
4795
4796 * tui/tui-winsource.h (tui_erase_source_content)
4797 (tui_clear_source_content): Remove "display_prompt" parameter.
4798 * tui/tui-winsource.c (tui_update_source_window_as_is)
4799 (tui_update_source_windows_with_addr): Update.
4800 (tui_clear_source_content): Remove "display_prompt" parameter.
4801 (tui_erase_source_content): Likewise. Simplify.
4802 (tui_show_source_content): Update.
4803 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
4804 * tui/tui-stack.c (tui_show_frame_info): Update.
4805 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
4806 Remove defines.
4807
4808 2019-07-17 Tom Tromey <tom@tromey.com>
4809
4810 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
4811 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
4812 parameter.
4813 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
4814 parameter.
4815
4816 2019-07-17 Tom Tromey <tom@tromey.com>
4817
4818 * tui/tui-winsource.c (tui_clear_source_content)
4819 (tui_show_source_content, tui_show_exec_info_content)
4820 (tui_clear_exec_info_content): Update.
4821 * tui/tui-stack.c (tui_show_locator_content): Update.
4822 (tui_show_frame_info): Update.
4823 * tui/tui-source.h (tui_source_window): Don't declare.
4824 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
4825 from tui_source_is_displayed.
4826 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
4827 Remove field.
4828 (struct tui_source_window_base) <content_in_use>: New field. Now
4829 bool.
4830 (struct tui_source_window) <showing_source_p>: New method.
4831 (TUI_SRC_WIN): Change cast.
4832 * tui/tui-data.c (tui_initialize_static_data): Update.
4833
4834 2019-07-17 Tom Tromey <tom@tromey.com>
4835
4836 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
4837 location_matches_p.
4838 * tui/tui-source.c (tui_source_window::location_matches_p): New
4839 method.
4840 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
4841 method.
4842 * tui/tui-data.h (struct tui_source_window_base)
4843 <location_matches_p>: New method.
4844 (struct tui_source_window, struct tui_disasm_window)
4845 <location_matches_p>: Likewise.
4846
4847 2019-07-17 Tom Tromey <tom@tromey.com>
4848
4849 * tui/tui-win.c (tui_set_win_height_command): Rename from
4850 tui_set_win_height.
4851 (tui_set_win_height_command): Remove.
4852
4853 2019-07-17 Tom Tromey <tom@tromey.com>
4854
4855 * tui/tui-source.c (tui_source_window): New constructor. Add
4856 observer.
4857 (~tui_source_window): New destructor.
4858 (tui_source_window::style_changed): New method.
4859 * tui/tui-hooks.c (tui_redisplay_source): Remove.
4860 (tui_attach_detach_observers): Update.
4861 * tui/tui-data.h (struct tui_source_window): Make constructor not
4862 inline. Add destructor.
4863 (struct tui_source_window) <style_changed>: New method.
4864 <m_observable>: New member.
4865
4866 2019-07-17 Tom Tromey <tom@tromey.com>
4867
4868 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
4869 * tui/tui-win.c (tui_resize_all): Fix typo.
4870
4871 2019-07-17 Tom Tromey <tom@tromey.com>
4872
4873 * tui/tui-wingeneral.h (tui_refresh_all): Update.
4874 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
4875 (tui_refresh_all): Remove "list" parameter. Use foreach.
4876 * tui/tui-win.c (window_name_completer): Use foreach.
4877 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
4878 (update_tab_width): Likewise.
4879 * tui/tui-layout.c (show_layout): Update.
4880 * tui/tui-data.h (class tui_window_iterator): New.
4881 (struct all_tui_windows): New.
4882 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
4883
4884 2019-07-17 Tom Tromey <tom@tromey.com>
4885
4886 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
4887 parameter. Don't reference globals.
4888 (tui_reg_command): Update.
4889
4890 2019-07-17 Tom Tromey <tom@tromey.com>
4891
4892 * tui/tui-regs.c (tui_show_registers): Simplify.
4893
4894 2019-07-17 Tom Tromey <tom@tromey.com>
4895
4896 * tui/tui-regs.c (tui_show_registers): Update.
4897 (tui_show_register_group): Add win_info parameter.
4898
4899 2019-07-17 Tom Tromey <tom@tromey.com>
4900
4901 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
4902 Rename from tui_display_reg_element_at_line.
4903 (tui_data_window::display_registers_from_line): Update.
4904 * tui/tui-data.h (struct tui_data_window)
4905 <display_reg_element_at_line>: New method.
4906
4907 2019-07-17 Tom Tromey <tom@tromey.com>
4908
4909 * tui/tui-regs.h (tui_display_registers_from)
4910 (tui_display_registers_from_line): Don't declare.
4911 * tui/tui-windata.c (tui_data_window::display_all_data)
4912 (tui_data_window::refresh_all)
4913 (tui_data_window::do_scroll_vertical): Update.
4914 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
4915 from tui_display_registers_from.
4916 (tui_display_reg_element_at_line): Update.
4917 (tui_data_window::display_registers_from_line): Rename from
4918 tui_display_registers_from_line.
4919 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
4920 display_registers_from_line>: New methods.
4921
4922 2019-07-17 Tom Tromey <tom@tromey.com>
4923
4924 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
4925 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
4926 from tui_erase_data_content.
4927 (tui_data_window::display_all_data)
4928 (tui_data_window::refresh_all)
4929 (tui_data_window::do_scroll_vertical): Update.
4930 * tui/tui-regs.c (tui_show_registers): Update.
4931 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
4932 New method.
4933
4934 2019-07-17 Tom Tromey <tom@tromey.com>
4935
4936 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
4937 declare.
4938 * tui/tui-windata.c
4939 (tui_data_window::delete_data_content_windows): Rename from
4940 tui_delete_data_content_windows.
4941 (tui_data_window::display_all_data)
4942 (tui_data_window::do_scroll_vertical): Update.
4943 * tui/tui-data.h (struct tui_data_window)
4944 <delete_data_content_windows>: New method.
4945
4946 2019-07-17 Tom Tromey <tom@tromey.com>
4947
4948 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
4949 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
4950
4951 2019-07-17 Tom Tromey <tom@tromey.com>
4952
4953 * tui/tui-windata.h (tui_display_all_data): Don't declare.
4954 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
4955 from tui_display_all_data.
4956 * tui/tui-win.c
4957 (tui_data_window::do_make_visible_with_new_height): Update.
4958 * tui/tui-regs.c (tui_show_registers): Update.
4959 * tui/tui-layout.c (tui_set_layout): Update.
4960 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
4961 method.
4962
4963 2019-07-17 Tom Tromey <tom@tromey.com>
4964
4965 * tui/tui-windata.h (tui_display_data_from): Don't declare.
4966 * tui/tui-windata.c (tui_display_data_from): Remove.
4967 (tui_data_window::refresh_all): Update.
4968
4969 2019-07-17 Tom Tromey <tom@tromey.com>
4970
4971 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
4972 * tui/tui-windata.c (tui_display_data_from_line): Remove.
4973 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
4974 tui_display_registers_from_line.
4975 * tui/tui-regs.h (tui_display_registers_from_line): Update.
4976 * tui/tui-regs.c (tui_display_registers_from_line): Remove
4977 "force_display" parameter.
4978
4979 2019-07-17 Tom Tromey <tom@tromey.com>
4980
4981 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
4982 declare.
4983 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
4984 Rename from tui_first_reg_element_no_inline.
4985 (tui_display_reg_element_at_line)
4986 (tui_display_registers_from_line): Update.
4987 * tui/tui-data.h (struct tui_data_window)
4988 <first_reg_element_no_inline>: New method.
4989
4990 2019-07-17 Tom Tromey <tom@tromey.com>
4991
4992 * tui/tui-windata.c (tui_display_data_from)
4993 (tui_data_window::do_scroll_vertical): Update.
4994 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
4995 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
4996 Rename from tui_line_from_reg_element_no.
4997 (tui_display_registers_from_line): Update.
4998 * tui/tui-data.h (struct tui_data_window)
4999 <line_from_reg_element_no>: New method.
5000
5001 2019-07-17 Tom Tromey <tom@tromey.com>
5002
5003 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
5004 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
5005 tui_last_regs_line_no.
5006 (tui_display_reg_element_at_line)
5007 (tui_display_registers_from_line): Update.
5008 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
5009 method.
5010
5011 2019-07-17 Tom Tromey <tom@tromey.com>
5012
5013 PR tui/24722:
5014 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
5015 (tui_update_breakpoint_info): Add "being_deleted" parameter.
5016 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
5017 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
5018 (tui_update_breakpoint_info): Likewise.
5019 * tui/tui-hooks.c (tui_event_create_breakpoint)
5020 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
5021 Update.
5022
5023 2019-07-17 Tom Tromey <tom@tromey.com>
5024
5025 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
5026
5027 2019-07-17 Tom Tromey <tom@tromey.com>
5028
5029 * tui/tui-winsource.c (tui_update_source_window_as_is)
5030 (tui_update_source_windows_with_addr): Update.
5031 * tui/tui-source.h (tui_set_source_content)
5032 (tui_show_symtab_source): Add "win_info" parameter.
5033 * tui/tui-source.c (tui_set_source_content): Add "win_info"
5034 parameter.
5035 (tui_show_symtab_source): Likewise.
5036
5037 2019-07-17 Tom Tromey <tom@tromey.com>
5038
5039 * tui/tui-wingeneral.c
5040 (tui_check_and_display_highlight_if_needed): Check can_highlight.
5041
5042 2019-07-17 Tom Tromey <tom@tromey.com>
5043
5044 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
5045 (struct tui_cmd_window) <can_scroll>: New method.
5046 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
5047 method.
5048
5049 2019-07-17 Tom Tromey <tromey@adacore.com>
5050
5051 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
5052 do_field_signed>: Rename. Change type of "value".
5053 * ui-out.c (ui_out::field_signed): Rename from field_int.
5054 Change type of "value".
5055 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
5056 type of "value".
5057 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
5058 do_field_int. Change type of "value".
5059 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
5060 do_field_int. Change type of "value".
5061 * tracepoint.c (trace_status_mi, tfind_1)
5062 (print_one_static_tracepoint_marker): Update.
5063 * thread.c (print_thread_info_1, print_selected_thread_frame):
5064 Update.
5065 * stack.c (print_frame, print_frame_info): Update.
5066 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
5067 Update.
5068 * source.c (print_source_lines_base): Update.
5069 * skip.c (info_skip_command): Update.
5070 * record-btrace.c (btrace_ui_out_decode_error)
5071 (btrace_call_history_src_line): Update.
5072 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
5073 Update.
5074 * progspace.c (print_program_space): Update.
5075 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
5076 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
5077 do_field_int. Change type of "value".
5078 * mi/mi-out.c (mi_ui_out::do_table_begin)
5079 (mi_ui_out::do_table_header): Update.
5080 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
5081 type of "value".
5082 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
5083 (mi_cmd_data_list_changed_registers, output_register)
5084 (mi_cmd_data_read_memory, mi_load_progress)
5085 (mi_cmd_trace_frame_collected): Update.
5086 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
5087 Update.
5088 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
5089 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
5090 (mi_cmd_var_list_children, varobj_update_one): Update.
5091 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
5092 (mi_cmd_stack_list_args, list_arg_or_local): Update.
5093 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
5094 * inferior.c (print_inferior): Update.
5095 * gdb_bfd.c (print_one_bfd): Update.
5096 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5097 Update.
5098 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
5099 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
5100 do_field_int. Change type of "value".
5101 * cli-out.c (cli_ui_out::do_field_signed): Rename from
5102 do_field_int. Change type of "value".
5103 * breakpoint.c (watchpoint_check, print_breakpoint_location)
5104 (print_one_breakpoint_location, print_it_catch_fork)
5105 (print_one_catch_fork, print_it_catch_vfork)
5106 (print_one_catch_vfork, print_it_catch_solib)
5107 (print_it_catch_exec, print_it_ranged_breakpoint)
5108 (print_mention_watchpoint, print_mention_masked_watchpoint)
5109 (bkpt_print_it, update_static_tracepoint): Update.
5110 * break-catch-throw.c (print_it_exception_catchpoint): Update.
5111 * break-catch-syscall.c (print_it_catch_syscall): Update.
5112 * ada-tasks.c (print_ada_task_info): Update.
5113 * ada-lang.c (print_it_exception, print_mention_exception):
5114 Update.
5115
5116 2019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
5117
5118 PR breakpoints/24541
5119 * gdbarch.c: Regenerate.
5120 * gdbarch.h: Regenerate.
5121 * gdbarch.sh: Adjust return type and parameter types for
5122 'stap_adjust_register'.
5123 (i386_stap_adjust_register): Adjust signature and return new
5124 register name.
5125 * stap-probe.c (stap_parse_register_operand): Adjust use of
5126 'gdbarch_stap_adjust_register'.
5127
5128 2019-07-17 Tom Tromey <tromey@adacore.com>
5129
5130 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
5131 declare VEC.
5132 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
5133 std::vector.
5134 (struct s390_process_info): Add initializers.
5135 (s390_add_process): Use new.
5136 (s390_linux_nat_target::low_forget_process): Use delete.
5137 (s390_linux_nat_target::low_new_fork)
5138 (s390_linux_nat_target::stopped_by_watchpoint)
5139 (s390_linux_nat_target::low_prepare_to_resume)
5140 (s390_linux_nat_target::insert_watchpoint)
5141 (s390_linux_nat_target::insert_hw_breakpoint)
5142 (s390_linux_nat_target::remove_watchpoint)
5143 (s390_linux_nat_target::remove_hw_breakpoint): Update.
5144
5145 2019-07-16 John Baldwin <jhb@FreeBSD.org>
5146
5147 * aarch64-fbsd-nat.c: Include regcache.h.
5148 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
5149 argument.
5150 (aarch64_fbsd_nat_target::fetch_registers)
5151 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
5152 variable.
5153 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
5154
5155 2019-07-16 John Baldwin <jhb@FreeBSD.org>
5156
5157 * fbsd-nat.c: Include gdbarch.h.
5158
5159 2019-07-15 Tom Tromey <tromey@adacore.com>
5160
5161 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
5162
5163 2019-07-15 Tom Tromey <tromey@adacore.com>
5164
5165 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
5166 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
5167 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
5168 * cli-out.c (cli_ui_out::do_field_int): New method.
5169 * ui-out.c (ui_out::field_unsigned): New method.
5170 * symfile.c (generic_load): Use field_unsigned.
5171 (print_transfer_performance): Likewise.
5172 * record-btrace.c (ui_out_field_uint): Remove.
5173 (btrace_call_history_insn_range, btrace_call_history): Use
5174 field_unsigned.
5175 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
5176 field_unsigned.
5177 * ui-out.h (class ui_out) <field_unsigned>: New method.
5178 <do_field_unsigned>: Likewise.
5179
5180 2019-07-15 Tom Tromey <tromey@adacore.com>
5181
5182 * mi/mi-main.c (list_available_thread_groups): Use field_string.
5183 * mi/mi-interp.c (mi_memory_changed): Use field_string.
5184 * target.c (flash_erase_command): Use field_string.
5185 * infrun.c (print_signal_received_reason): Use field_string.
5186 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
5187 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
5188 field_string.
5189 * ada-tasks.c (print_ada_task_info): Use field_string.
5190
5191 2019-07-15 Tom Tromey <tromey@adacore.com>
5192
5193 * target.c (flash_erase_command): Use field_core_addr.
5194 * symfile.c (generic_load): Use field_core_addr.
5195 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
5196 Use field_core_addr.
5197 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
5198 field_core_addr.
5199
5200 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5201
5202 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
5203 value if its desired type is smaller than a CORE_ADDR and signed.
5204
5205 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5206
5207 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
5208 of changes to field names, and use new is_reference field to
5209 decide if a property is a reference or not.
5210 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
5211 field.
5212 (struct dwarf2_property_baton): Update header comment, rename
5213 'referenced_type' to 'property_type' and update comments.
5214 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
5215 default property type, store in property baton, update to take
5216 accound of renamed field.
5217 (read_func_scope): Update call to attr_to_dynamic_prop.
5218 (read_array_type): Likewise.
5219 (dwarf2_per_cu_addr_sized_int_type): New function.
5220 (read_subrange_index_type): Move type finding code to
5221 dwarf2_per_cu_addr_sized_int_type.
5222 (read_subrange_type): Update calls to attr_to_dynamic_prop.
5223 (dwarf2_per_cu_addr_type): New function.
5224 (set_die_type): Update calls to attr_to_dynamic_prop.
5225
5226 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5227
5228 * dwarf2read.c (read_subrange_index_type): New function.
5229 (read_subrange_type): Move code into new function and call it.
5230 * gdbtypes.c (create_range_type): Add some asserts.
5231
5232 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5233
5234 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
5235 update return statements.
5236 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
5237 declaration, and update comment to match.
5238 * gdbtypes.c (resolve_dynamic_array): Update call to
5239 dwarf2_evaluate_property to match new return type.
5240
5241 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5242
5243 * valarith.c (value_subscripted_rvalue): Change lowerbound
5244 parameter type from int to LONGEST.
5245 * value.h (value_subscripted_rvalue): Likewise in declaration.
5246
5247 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
5248
5249 * cli/cli-utils.c (info_print_command_completer): New function.
5250 * cli/cli-utils.h: Add 'completer.h' include, and forward
5251 declaration for 'struct cmd_list_element'.
5252 (info_print_command_completer): Declare.
5253 * stack.c (_initialize_stack): Add completer for 'info locals' and
5254 'info args'.
5255 * symtab.c (_initialize_symtab): Add completer for 'info
5256 variables' and 'info functions'.
5257 * NEWS: Mention completion for additional info commands.
5258
5259 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
5260
5261 * cli/cli-utils.c (extract_info_print_args): Delete.
5262 (extract_arg_maybe_quoted): Delete.
5263 (info_print_options_defs): New variable.
5264 (make_info_print_options_def_group): New function.
5265 (extract_info_print_options): Define new function.
5266 * cli/cli-utils.h (extract_info_print_args): Delete.
5267 (struct info_print_options): New structure.
5268 (extract_info_print_options): Declare new function.
5269 * stack.c (info_locals_command): Update to use new
5270 extract_info_print_options, also add a header comment.
5271 (info_args_command): Likewise.
5272 * symtab.c (info_variables_command): Likewise.
5273 (info_functions_command): Likewise.
5274
5275 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
5276
5277 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
5278 to extract string arguments.
5279 * common/common-utils.c (extract_string_maybe_quoted): New function.
5280 * common/common-utils.h (extract_string_maybe_quoted): Declare.
5281
5282 2019-07-11 Tom Tromey <tromey@adacore.com>
5283
5284 * main.c (get_init_files): Use GDBINIT, not gdbinit.
5285 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
5286 * top.h (gdbinit): Don't declare.
5287 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
5288 into...
5289 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
5290 * top.c (gdb_init): Don't call init_cli_cmds.
5291 (gdbinit): Remove.
5292 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
5293
5294 2019-07-11 Tom Tromey <tromey@adacore.com>
5295
5296 * python/py-inferior.c (add_thread_object): Don't use thread_obj
5297 after it has been moved.
5298
5299 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
5300
5301 * valops.c (value_must_coerce_to_target): Change return type to
5302 bool.
5303 * value.h (value_must_coerce_to_target): Likewise.
5304
5305 2019-07-10 Simon Marchi <simon.marchi@efficios.com>
5306
5307 * breakpoint.c (is_hardware_watchpoint): Remove
5308 forward-declaration.
5309 (is_masked_watchpoint): Change return type to bool.
5310 (is_tracepoint): Likewise.
5311 (is_breakpoint): Likewise.
5312 (is_hardware_watchpoint): Likewise.
5313 (is_watchpoint): Likewise.
5314 (is_no_memory_software_watchpoint): Likewise.
5315 (is_catchpoint): Likewise.
5316 (breakpoint_1): Make FILTER parameter's return type bool.
5317 is_masked_watchpoint): Change return type to bool.
5318 (save_breakpoints): Make FILTER parameter's return type bool.
5319 * breakpoint.h (is_breakpoint): Change return type to bool.
5320 (is_watchpoint): Likewise.
5321 (is_catchpoint): Likewise.
5322 (is_tracepoint): Likewise.
5323
5324 2019-07-10 Tom Tromey <tom@tromey.com>
5325
5326 * defs.h: Don't include gdbarch.h.
5327 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
5328 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
5329 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
5330 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
5331 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
5332 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
5333 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
5334 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
5335 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
5336 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
5337 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
5338 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
5339 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
5340 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
5341 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
5342 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
5343 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
5344 record-btrace.c, record.h, regcache-dump.c, regcache.h,
5345 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
5346 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
5347 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
5348 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
5349 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
5350 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
5351 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
5352 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
5353 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
5354
5355 2019-07-10 Tom Tromey <tromey@adacore.com>
5356
5357 * ada-lang.h (is_ada_exception_catchpoint): Declare.
5358 * breakpoint.c (init_ada_exception_breakpoint): Register as
5359 bp_catchpoint.
5360 (print_one_breakpoint_location, print_one_breakpoint): Use
5361 is_ada_exception_catchpoint.
5362 * ada-lang.c (class ada_catchpoint_location): Pass
5363 bp_loc_software_breakpoint to bp_location constructor.
5364 (is_ada_exception_catchpoint): New function.
5365
5366 2019-07-10 Tom Tromey <tromey@adacore.com>
5367
5368 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
5369 VEC.
5370 (struct arm_exidx_entry): New method operator<.
5371 (struct arm_exidx_data) <section_maps>: Change type.
5372 (arm_exidx_data_free): Remove.
5373 (arm_exidx_data_key): Change type. Move lower.
5374 (arm_exidx_new_objfile): Update.
5375 (arm_compare_exidx_entries): Remove.
5376 (arm_find_exidx_entry, _initialize_arm_tdep)
5377
5378 2019-07-10 Tom Tromey <tromey@adacore.com>
5379
5380 * solib-spu.c (ocl_program_data_key): Change type.
5381 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
5382 Update.
5383
5384 2019-07-10 Tom Tromey <tromey@adacore.com>
5385
5386 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
5387 (struct solib_aix_inferior_data) <library_list>: Change type.
5388 (solib_aix_inferior_data_handle): Change type.
5389 (get_solib_aix_inferior_data): Update.
5390 (solib_aix_free_library_list): Remove.
5391 (library_list_start_library): Update.
5392 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
5393 return type.
5394 (solib_aix_get_library_list)
5395 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
5396 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
5397
5398 2019-07-10 Tom Tromey <tromey@adacore.com>
5399
5400 * solib-dsbt.c (struct dsbt_info): Add initializers.
5401 (solib_dsbt_pspace_data): Change type.
5402 (dsbt_pspace_data_cleanup): Remove.
5403 (get_dsbt_info, _initialize_dsbt_solib): Update.
5404
5405 2019-07-10 Tom Tromey <tromey@adacore.com>
5406
5407 * spu-tdep.c (spu_overlay_data): Change type.
5408 (spu_get_overlay_table, spu_overlay_new_objfile)
5409 (_initialize_spu_tdep): Update.
5410
5411 2019-07-10 Tom Tromey <tromey@adacore.com>
5412
5413 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
5414 destructor.
5415 (dbx_objfile_data_key): Change type and declare later.
5416 (DBX_SYMFILE_INFO): Rewrite.
5417 * dbxread.c (dbx_objfile_data_key): Change type.
5418 (dbx_symfile_init): Update.
5419 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
5420 (coffstab_build_psymtabs, elfstab_build_psymtabs)
5421 (stabsect_build_psymtabs, _initialize_dbxread): Update.
5422
5423 2019-07-10 Tom Tromey <tromey@adacore.com>
5424
5425 * jit.c (jit_program_space_key): Change type. Move lower.
5426 (get_jit_program_space_data): Update.
5427 (jit_program_space_data_cleanup): Remove.
5428 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
5429 Update.
5430 (struct jit_program_space_data): Add initializers.
5431
5432 2019-07-10 Tom Tromey <tromey@adacore.com>
5433
5434 * solib-darwin.c (struct darwin_info): Add initializers.
5435 (solib_darwin_pspace_data): Change type.
5436 (darwin_pspace_data_cleanup): Remove.
5437 (get_darwin_info, _initialize_darwin_solib): Update.
5438
5439 2019-07-10 Tom Tromey <tromey@adacore.com>
5440
5441 * remote-sim.c (struct sim_inferior_data): Add initializers,
5442 constructor, and destructor.
5443 (sim_inferior_data_key): Change type. Move lower.
5444 (check_for_duplicate_sim_descriptor): Update.
5445 (get_sim_inferior_data): Use new. Update.
5446 (~sim_inferior_data_cleanup): Rename from
5447 sim_inferior_data_cleanup. Simplify.
5448 (gdbsim_close_inferior, simulator_command)
5449 (sim_command_completer, _initialize_remote_sim): Update.
5450 (next_pid, INITIAL_PID): Move earlier.
5451
5452 2019-07-10 Tom Tromey <tromey@adacore.com>
5453
5454 * python/python-internal.h (create_thread_object): Return
5455 gdbpy_ref.
5456 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
5457 * python/py-inferior.c (struct threadlist_entry): Add
5458 constructor.
5459 <thread_obj>: Now a gdbpy_ref.
5460 (thread_to_thread_object): Update.
5461 (add_thread_object): Use new.
5462 (delete_thread_object): Use delete.
5463 (infpy_threads): Update.
5464 (py_free_inferior): Update. Construct "inf_obj" after acquiring
5465 GIL.
5466
5467 2019-07-10 Tom Tromey <tromey@adacore.com>
5468
5469 * valops.c (value_cast): Specialize error message for Ada.
5470
5471 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
5472
5473 * breakpoint.c (breakpoint_1): Update doc and parameter names.
5474
5475 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
5476
5477 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
5478 bpstat_should_step): Return bool, adjust comments.
5479 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
5480 bpstat_should_step): Likewise.
5481
5482 2019-07-10 Alan Hayward <alan.hayward@arm.com>
5483
5484 * features/Makefile: Use feature target descriptions for Arm.
5485 * features/arm/arm-core.c: Generate new file.
5486 * features/arm/arm-fpa.c: Likewise.
5487 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
5488 * features/arm/arm-m-profile.c: Likewise.
5489 * features/arm/arm-vfpv2.c: Likewise.
5490 * features/arm/arm-vfpv3.c: Likewise.
5491 * features/arm/xscale-iwmmxt.c: Likewise.
5492 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
5493
5494 2019-07-10 Alan Hayward <alan.hayward@arm.com>
5495
5496 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
5497 ptrace earlier.
5498
5499 2019-07-10 Alan Hayward <alan.hayward@arm.com>
5500
5501 * features/aarch64-pauth.c: Regenerate.
5502
5503 2019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
5504
5505 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
5506 bool.
5507 (bpstat_what): Use false instead of 0.
5508
5509 2019-07-09 Pedro Alves <palves@redhat.com>
5510
5511 * break-catch-throw.c (is_exception_catchpoint): New.
5512 * breakpoint.c (print_one_breakpoint_location): New parameter
5513 'raw_loc'. Handle it. Use
5514 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
5515 looking at the breakpoint's type.
5516 (print_one_breakpoint): If handling "maint info breakpoints", also
5517 print locations of exception catchpoints.
5518 * breakpoint.h (is_exception_catchpoint): Declare.
5519
5520 2019-07-09 Pedro Alves <palves@redhat.com>
5521
5522 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
5523 "addr" field.
5524 (allocate_location_exception_catchpoint): New.
5525 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
5526 (initialize_throw_catchpoint_ops): Install
5527 allocate_location_exception_catchpoint as allocate_location
5528 method.
5529 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
5530 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
5531 bp_loc_other.
5532 (breakpoint_address_is_meaningful): Delete.
5533 (bl_address_is_meaningful): New.
5534 (breakpoint_locations_match): Adjust comment.
5535 (bp_location_from_bp_type): New, factored out of...
5536 (bp_location::bp_location(breakpoint *)): ... this.
5537 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
5538 factored out of...
5539 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
5540 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
5541 breakpoint_address_is_meaningful.
5542 (bp_locations_compare): Adjust comment.
5543 (update_global_location_list): Use bl_address_is_meaningful
5544 instead of breakpoint_address_is_meaningful.
5545 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
5546 explicit.
5547 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
5548 * python/py-breakpoint.c (bppy_get_location): No longer check
5549 whether location is null.
5550
5551 2019-07-09 Pedro Alves <palves@redhat.com>
5552
5553 PR c++/15468
5554 * breakpoint.c (print_one_breakpoint_location): Remove
5555 single-location assert.
5556
5557 2019-07-09 Tom Tromey <tom@tromey.com>
5558
5559 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
5560 * configure: Rebuild.
5561 * configure.ac: Change common to gdbsupport.
5562 * gdbsupport: Rename from common.
5563 * acinclude.m4: Change common to gdbsupport.
5564 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
5565 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
5566 gdbsupport.
5567 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
5568 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
5569 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
5570 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
5571 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
5572 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
5573 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
5574 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
5575 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
5576 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
5577 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
5578 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
5579 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
5580 coff-pe-read.c, command.h, compile/compile-c-support.c,
5581 compile/compile-c.h, compile/compile-cplus-symbols.c,
5582 compile/compile-cplus-types.c, compile/compile-cplus.h,
5583 compile/compile-loc2c.c, compile/compile.c, completer.c,
5584 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
5585 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
5586 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
5587 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
5588 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
5589 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
5590 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
5591 features/aarch64-core.c, features/aarch64-fpu.c,
5592 features/aarch64-pauth.c, features/aarch64-sve.c,
5593 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
5594 features/i386/32bit-core.c, features/i386/32bit-linux.c,
5595 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
5596 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
5597 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
5598 features/i386/64bit-core.c, features/i386/64bit-linux.c,
5599 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
5600 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
5601 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
5602 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
5603 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
5604 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
5605 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
5606 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
5607 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
5608 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
5609 go32-nat.c, guile/guile.c, guile/scm-ports.c,
5610 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
5611 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
5612 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
5613 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
5614 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
5615 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
5616 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
5617 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
5618 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
5619 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
5620 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
5621 minsyms.c, mips-linux-tdep.c, namespace.h,
5622 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
5623 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
5624 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
5625 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
5626 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
5627 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
5628 nat/linux-waitpid.c, nat/mips-linux-watch.c,
5629 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
5630 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
5631 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
5632 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
5633 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
5634 procfs.c, producer.c, progspace.h, psymtab.h,
5635 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
5636 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
5637 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
5638 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
5639 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
5640 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
5641 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
5642 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
5643 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
5644 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
5645 target-memory.c, target.c, target.h, target/waitstatus.c,
5646 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
5647 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
5648 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
5649 unittests/array-view-selftests.c,
5650 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
5651 unittests/common-utils-selftests.c,
5652 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
5653 unittests/format_pieces-selftests.c,
5654 unittests/function-view-selftests.c,
5655 unittests/lookup_name_info-selftests.c,
5656 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
5657 unittests/mkdir-recursive-selftests.c,
5658 unittests/observable-selftests.c,
5659 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
5660 unittests/parse-connection-spec-selftests.c,
5661 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
5662 unittests/scoped_fd-selftests.c,
5663 unittests/scoped_mmap-selftests.c,
5664 unittests/scoped_restore-selftests.c,
5665 unittests/string_view-selftests.c, unittests/style-selftests.c,
5666 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
5667 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
5668 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
5669 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
5670 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
5671 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
5672
5673 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5674
5675 * linespec.c (decode_digits_list_mode): Set explicit_line to a
5676 bool value.
5677 (decode_digits_ordinary): Set explicit_line field in sal.
5678 * symtab.c (skip_prologue_sal): Don't skip prologue for a
5679 symtab_and_line that was set on an explicit line number in
5680 assembler code. Do always update the recorded symtab and line if
5681 we do skip the prologue.
5682
5683 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5684
5685 * breakpoint.c (set_breakpoint_location_function): Remove
5686 explicit_loc parameter.
5687 (momentary_breakpoint_from_master): Update call to
5688 set_breakpoint_location_function.
5689 (add_location_to_breakpoint): Likewise.
5690
5691 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5692
5693 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
5694 required features based on default bfd type when no specific bfd
5695 is present.
5696
5697 2019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5698
5699 * NEWS: Mention that GDB printf and eval commands can now print
5700 C-style and Ada-style convenience var strings without
5701 calling the inferior.
5702 * printcmd.c (printf_c_string): Locally print GDB internal var
5703 instead of transiting via the inferior.
5704 (printf_wide_c_string): Likewise.
5705
5706 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5707
5708 PR breakpoints/25011
5709 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
5710
5711 2019-07-04 Tom Tromey <tom@tromey.com>
5712
5713 PR tui/24724:
5714 * tui/tui-winsource.c (tui_clear_source_content): Update.
5715 (tui_source_window_base::set_is_exec_point_at): Fix comment.
5716 (tui_update_breakpoint_info): Update.
5717 (tui_set_exec_info_content): Update.
5718 * tui/tui-source.c (tui_set_source_content_nil): Update.
5719 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
5720 has_break.
5721 * tui/tui-data.h (enum tui_bp_flag): New.
5722 (tui_bp_flags): New enum flags type.
5723 (struct tui_source_element) <break_mode>: Change type. Rename
5724 from has_break.
5725 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
5726 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
5727 constants.
5728 * tui/tui-winsource.h: Fix comment.
5729
5730 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5731
5732 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
5733 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
5734 (store_fpregs_to_thread)
5735 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
5736 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
5737 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
5738 (IWMMXT_REGS_SIZE): Add define.
5739 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
5740 (fetch_vfp_regs, store_vfp_regs)
5741 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
5742 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
5743
5744 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5745
5746 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
5747 defines.
5748 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
5749 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
5750 (ARM_INT_REGISTER_SIZE): ...to this.
5751 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
5752 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
5753 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
5754 (arm_linux_collect_gregset, supply_nwfpe_register)
5755 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
5756 defines.
5757 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
5758 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
5759 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
5760 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
5761 (arm_return_in_memory, arm_store_return_value)
5762 (arm_get_longjmp_target, arm_register_g_packet_guesses)
5763 (arm_record_ld_st_multiple): Likewise.
5764 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
5765 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
5766
5767 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5768
5769 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
5770 AARCH64_DISPLACED_MODIFIED_INSNS.
5771 * aarch64-tdep.c (struct aarch64_displaced_step_data)
5772 (aarch64_displaced_step_copy_insn): Likewise.
5773 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
5774 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
5775 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
5776 ARM_DISPLACED_MODIFIED_INSNS.
5777 * arm-tdep.c (arm_gdbarch_init): Likewise.
5778 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
5779 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
5780 (struct arm_displaced_step_closure): Use
5781 ARM_DISPLACED_MODIFIED_INSNS.
5782
5783 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5784
5785 * features/Makefile: Remove unused xml files.
5786 * features/aarch64.xml: Remove.
5787 * features/i386/amd64-avx-avx512-linux.xml: Remove.
5788 * features/i386/amd64-avx-avx512.xml: Remove.
5789 * features/i386/amd64-avx-linux.xml: Remove.
5790 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
5791 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
5792 * features/i386/amd64-avx-mpx-linux.xml: Remove.
5793 * features/i386/amd64-avx-mpx.xml: Remove.
5794 * features/i386/amd64-avx.xml: Remove.
5795 * features/i386/amd64-linux.xml: Remove.
5796 * features/i386/amd64-mpx-linux.xml: Remove.
5797 * features/i386/amd64-mpx.xml: Remove.
5798 * features/i386/amd64.xml: Remove.
5799 * features/i386/i386-avx-avx512-linux.xml: Remove.
5800 * features/i386/i386-avx-avx512.xml: Remove.
5801 * features/i386/i386-avx-linux.xml: Remove.
5802 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
5803 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
5804 * features/i386/i386-avx-mpx-linux.xml: Remove.
5805 * features/i386/i386-avx-mpx.xml: Remove.
5806 * features/i386/i386-avx.xml: Remove.
5807 * features/i386/i386-linux.xml: Remove.
5808 * features/i386/i386-mmx-linux.xml: Remove.
5809 * features/i386/i386-mmx.xml: Remove.
5810 * features/i386/i386-mpx-linux.xml: Remove.
5811 * features/i386/i386-mpx.xml: Remove.
5812 * features/i386/i386.xml: Remove.
5813 * features/i386/x32-avx-avx512-linux.xml: Remove.
5814 * features/i386/x32-avx-linux.xml: Remove.
5815 * features/i386/x32-linux.xml: Remove.
5816
5817 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5818
5819 * regformats/aarch64.dat: Remove.
5820 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
5821 * regformats/i386/amd64-avx-linux.dat: Remove.
5822 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
5823 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
5824 * regformats/i386/amd64-linux.dat: Remove.
5825 * regformats/i386/amd64-mpx-linux.dat: Remove.
5826 * regformats/i386/amd64.dat: Remove.
5827 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
5828 * regformats/i386/i386-avx-linux.dat: Remove.
5829 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
5830 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
5831 * regformats/i386/i386-linux.dat: Remove.
5832 * regformats/i386/i386-mmx-linux.dat: Remove.
5833 * regformats/i386/i386-mpx-linux.dat: Remove.
5834 * regformats/i386/i386.dat: Remove.
5835 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
5836 * regformats/i386/x32-avx-linux.dat: Remove.
5837 * regformats/i386/x32-linux.dat: Remove.
5838
5839 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5840
5841 * aarch64-tdep.c: Remove xml self tests.
5842 * amd64-linux-tdep.c: Likewise.
5843 * amd64-tdep.c: Likewise.
5844 * i386-linux-tdep.c: Likewise.
5845 * i386-tdep.c: Likewise.
5846
5847 2019-07-03 Pedro Alves <palves@redhat.com>
5848
5849 PR cli/24732
5850 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
5851 (pipe_cmd_option_defs): New.
5852 (make_pipe_cmd_options_def_group): New.
5853 (pipe_command): Use gdb::option::process_options.
5854 (pipe_command_completer): New function.
5855 (_initialize_cli_cmds): Install completer for "pipe" command.
5856
5857 2019-07-03 Pedro Alves <palves@redhat.com>
5858
5859 * cli/cli-option.c (union option_value) <string>: New field.
5860 (struct option_def_and_value): Add ctor, move ctor, dtor and
5861 use DISABLE_COPY_AND_ASSIGN.
5862 (option_def_and_value::clear_value): New.
5863 (parse_option, save_option_value_in_ctx, get_val_type_str)
5864 (add_setshow_cmds_for_options): Handle var_string.
5865 * cli-option.h (union option_def::var_address) <string>: New
5866 field.
5867 (struct string_option_def): New.
5868 * maint-test-options.c (struct test_options_opts): Add default
5869 ctor and use DISABLE_COPY_AND_ASSIGN.
5870 <string_opt>: New field.
5871 (test_options_opts::~test_options_opts): New.
5872 (test_options_opts::dump): Also dump "-string".
5873 (test_options_option_defs): Install "string.
5874
5875 2019-07-03 Pedro Alves <palves@redhat.com>
5876
5877 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
5878 option_value with a null enumeration.
5879 (complete_options): Save the option values in the context.
5880 (save_option_value_in_ctx): New, factored out from ...
5881 (process_options): ... here.
5882 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
5883 of the function.
5884 * maint-test-options.c (test_options_opts::dump): New, factored
5885 out from ...
5886 (maintenance_test_options_command_mode): ... here.
5887 (maintenance_test_options_command_completion_result): Delete.
5888 (maintenance_test_options_command_completion_text): Update
5889 comment.
5890 (maintenance_show_test_options_completion_result): Change
5891 prototype. Just print
5892 maintenance_test_options_command_completion_text.
5893 (save_completion_result): New.
5894 (maintenance_test_options_completer_mode): Pass options context to
5895 complete_options, and then save a dump.
5896 (_initialize_maint_test_options): Use add_cmd to install "maint
5897 show test-options-completion-result".
5898
5899 2019-07-03 Pedro Alves <palves@redhat.com>
5900
5901 * NEWS (New commands): Mention "with" and "maint with".
5902 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
5903 (with_command, with_command_completer): New.
5904 (pipe_command): Adjust to new repeat_previous
5905 interface.
5906 (_initialize_cli_cmds): Install the "with" command and its "w"
5907 alias.
5908 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
5909 declarations.
5910 * cli/cli-setshow.c (parse_cli_var_uinteger)
5911 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
5912 argument strings for all var_types.
5913 (get_setshow_command_value_string): New, factored out from ...
5914 (do_show_command): ... this.
5915 * cli/cli-setshow.h: Include <string>.
5916 (get_setshow_command_value_string): Declare.
5917 * command.h (repeat_previous): Now returns const char *. Adjust
5918 comment.
5919 * maint.c: Include "cli/cli-cmds.h".
5920 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
5921 (_initialize_maint_cmds): Register the "maintenance with" command.
5922 * top.c (repeat_previous): Move bits from pipe_command here:
5923 Return the saved command line, if any; error out if there's no
5924 command to relaunch.
5925
5926 2019-07-03 Pedro Alves <palves@redhat.com>
5927
5928 * NEWS (New commands): Mention "maint set/show test-settings"
5929 instead of "maint test-settings".
5930 * maint-test-settings.c (maintenance_test_settings_list): Delete.
5931 (maintenance_test_settings_set_list): Rename to ...
5932 (maintenance_set_test_settings_list): ... this.
5933 (maintenance_test_settings_show_list): Rename to ...
5934 (maintenance_show_test_settings_list): ... this.
5935 (maintenance_test_settings_cmd): Delete.
5936 (maintenance_test_settings_set_cmd): ...
5937 (maintenance_set_test_settings_cmd): ... this.
5938 (maintenance_test_settings_show_cmd): ...
5939 (maintenance_show_test_settings_cmd): ... this.
5940 (maintenance_test_settings_show_value_cmd):
5941 (maintenance_show_test_settings_value_cmd): ... this.
5942 (_initialize_maint_test_settings): No longer install the "maint
5943 test-settings" prefix command. Rename "maint test-settings set"
5944 to "maint set test-settings", and "maint test-settings show" to
5945 "maint show test-settings". Adjust all subcommands.
5946
5947 2019-07-03 Pedro Alves <palves@redhat.com>
5948
5949 * maint-test-settings.c: Fix file's intro comment. Replace all
5950 references to "test-options" with references to "test-settings",
5951 in comments.
5952
5953 2019-07-03 Pedro Alves <palves@redhat.com>
5954
5955 * maint-test-settings.c (maintenance_test_settings_xxx)
5956 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
5957 New.
5958 (maintenance_test_settings_enums): Use them.
5959 (maintenance_test_settings_enum): Default to
5960 maintenance_test_settings_xxx.
5961 (_initialize_maint_test_settings): Initialize
5962 MAINTENANCE_TEST_SETTINGS_FILENAME.
5963
5964 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5965
5966 * breakpoint.h (remove_breakpoints_inf): Change return type to
5967 void, move function documentation here.
5968 * breakpoint.c (remove_breakpoints_inf): Change return type to
5969 void, move function documentation to header.
5970
5971 2019-07-02 Pedro Alves <palves@redhat.com>
5972
5973 * NEWS (Completion improvements): Mention "info threads".
5974 * thread.c (struct info_threads_opts, info_threads_option_defs)
5975 (make_info_threads_options_def_group): New.
5976 (info_threads_command): Use gdb::option::process_options.
5977 (info_threads_command_completer): New.
5978 (_initialize_thread): Use gdb::option::build_help to build the
5979 help text for "info threads".
5980
5981 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5982
5983 * defs.h (generic_load): Move from here...
5984 * symfile.h (generic_load): ... to here. Rename name parameter
5985 to args.
5986 * symfile.c (generic_load): Add comment.
5987
5988 2019-07-01 Tom Tromey <tromey@adacore.com>
5989
5990 * dwarf2read.c
5991 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
5992 declaration of without_params. Fix formatting.
5993
5994 2019-07-01 Tom Tromey <tromey@adacore.com>
5995
5996 * ada-exp.y (find_primitive_type): Update.
5997 * ada-lang.h (ada_lookup_symbol): Update.
5998 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
5999 parameter.
6000 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
6001
6002 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
6003
6004 PR breakpoints/24541
6005 * gdbarch.c: Regenerate.
6006 * gdbarch.h: Regenerate.
6007 * gdbarch.sh: Add 'stap_adjust_register'.
6008 * i386-tdep.c: Include '<unordered_set>'.
6009 (i386_stap_adjust_register): New function.
6010 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
6011 * stap-probe.c (stap_parse_register_operand): Call
6012 'gdbarch_stap_adjust_register'.
6013
6014 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
6015
6016 PR python/24742
6017 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
6018 * python/python.c (do_start_initialization): Use 'xmalloc'
6019 instead of 'PyMem_Malloc'.
6020
6021 2019-06-28 Tom Tromey <tromey@adacore.com>
6022
6023 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
6024 for Ada.
6025
6026 2019-06-27 Tom Tromey <tromey@adacore.com>
6027
6028 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
6029 objfile_key.
6030 (arm_find_mapping_symbol, arm_record_special_symbol)
6031 (_initialize_arm_tdep): Update.
6032 (arm_objfile_data_free): Remove.
6033
6034 2019-06-27 Tom Tromey <tromey@adacore.com>
6035
6036 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
6037 to cp_print_static_field.
6038
6039 2019-06-26 Tom Tromey <tromey@adacore.com>
6040
6041 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
6042 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
6043 declare.
6044
6045 2019-06-26 Alan Hayward <alan.hayward@arm.com>
6046
6047 * features/aarch64-core.c (create_feature_aarch64_core):
6048 Regenerate.
6049 * features/aarch64-core.xml: Add cpsr flags.
6050
6051 2019-06-26 Alan Hayward <alan.hayward@arm.com>
6052
6053 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
6054 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
6055
6056 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
6057
6058 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
6059 field.
6060 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
6061 use.
6062 (arm_record_special_symbol): Don't insert new symbol in sorted
6063 position, push it at the end.
6064
6065 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
6066
6067 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
6068 (arm_mapping_symbol_s): Remove.
6069 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
6070 (arm_mapping_symbol_vec): New typedef.
6071 (struct arm_per_objfile): Add constructor.
6072 <section_maps>: Change type to
6073 std::unique_ptr<arm_mapping_symbol_vec[]>.
6074 (arm_compare_mapping_symbols): Remove.
6075 (arm_find_mapping_symbol): Adjust to section_maps type change.
6076 (arm_objfile_data_free): Call delete on arm_per_objfile.
6077 (arm_record_special_symbol): Adjust to section_maps type change.
6078 Allocate arm_per_objfile with new.
6079
6080 2019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6081
6082 * cli/cli-cmds.c (alias_command): Compare the alias prefix
6083 with the command prefix.
6084
6085 2019-06-25 Tom Tromey <tom@tromey.com>
6086
6087 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
6088 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
6089
6090 2019-06-25 Tom Tromey <tom@tromey.com>
6091
6092 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
6093 type.
6094 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
6095 protected.
6096
6097 2019-06-25 Tom Tromey <tom@tromey.com>
6098
6099 * tui/tui-winsource.c
6100 (tui_source_window_base::set_is_exec_point_at): Add check against
6101 LOA_ADDRESS.
6102
6103 2019-06-25 Tom Tromey <tom@tromey.com>
6104
6105 * tui/tui-source.c (tui_set_source_content): Don't check before
6106 xfree.
6107 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
6108
6109 2019-06-25 Tom Tromey <tom@tromey.com>
6110
6111 * tui/tui-winsource.h (tui_update_source_window_as_is)
6112 (tui_alloc_source_buffer, tui_line_is_displayed)
6113 (tui_addr_is_displayed): Change type of win_info.
6114 * tui/tui-winsource.c (tui_update_source_window_as_is)
6115 (tui_clear_source_content, tui_show_source_line)
6116 (tui_show_source_content, tui_source_window_base::refill)
6117 (tui_source_window_base::set_is_exec_point_at)
6118 (tui_source_window_base::set_is_exec_point_at)
6119 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
6120 (tui_alloc_source_buffer, tui_line_is_displayed)
6121 (tui_addr_is_displayed): Change type of win_info. Update.
6122 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
6123 (tui_source_window_base::do_make_visible_with_new_height):
6124 Update.
6125 * tui/tui-source.c (tui_set_source_content)
6126 (tui_set_source_content_nil)
6127 (tui_source_window::do_scroll_vertical): Update.
6128 * tui/tui-layout.c (show_layout): Update.
6129 * tui/tui-disasm.c (tui_set_disassem_content)
6130 (tui_disasm_window::do_scroll_vertical): Update.
6131 * tui/tui-data.h (tui_win_content): Remove.
6132 (struct tui_gen_win_info) <content, content_size>: Remove.
6133 (struct tui_source_element): Add initializers and destructor.
6134 (union tui_which_element, struct tui_win_element): Remove.
6135 (struct tui_source_window_base) <content>: New field.
6136 (struct tui_data_window): Remove destructor.
6137 (tui_alloc_content, tui_free_win_content)
6138 (tui_free_all_source_wins_content): Don't declare.
6139 * tui/tui-data.c (tui_initialize_static_data): Update.
6140 (init_content_element, tui_alloc_content): Remove.
6141 (~tui_gen_win_info): Update.
6142 (~tui_data_window, tui_free_all_source_wins_content)
6143 (tui_free_win_content, free_content, free_content_elements):
6144 Remove.
6145
6146 2019-06-25 Tom Tromey <tom@tromey.com>
6147
6148 * tui/tui-winsource.h (tui_clear_source_content)
6149 (tui_erase_source_content, tui_show_source_content): Change type
6150 of win_info.
6151 * tui/tui-winsource.c (tui_clear_source_content)
6152 (tui_erase_source_content, tui_show_source_content): Change type
6153 of win_info.
6154 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
6155 * tui/tui-source.h (tui_set_source_content_nil): Change type of
6156 win_info.
6157 * tui/tui-source.c (tui_set_source_content_nil): Change type of
6158 win_info.
6159 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
6160
6161 2019-06-25 Tom Tromey <tom@tromey.com>
6162
6163 * tui/tui-winsource.c (tui_clear_source_content)
6164 (tui_source_window_base::set_is_exec_point_at): Update.
6165 * tui/tui-source.c (tui_set_source_content_nil): Update.
6166 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
6167 a bool.
6168 * tui/tui-data.c (init_content_element): Update.
6169
6170 2019-06-25 Tom Tromey <tom@tromey.com>
6171
6172 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
6173 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
6174 * tui/tui-layout.c (init_and_make_win): Update.
6175 * tui/tui.h (enum tui_win_type): Update.
6176 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
6177 tui_win_is_auxillary.
6178 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
6179 tui_win_is_auxillary.
6180
6181 2019-06-25 Tom Tromey <tom@tromey.com>
6182
6183 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
6184 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
6185 (tui_delete_data_content_windows, tui_display_all_data)
6186 (tui_data_window::do_scroll_vertical, tui_display_data_from):
6187 Update.
6188 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
6189 * tui/tui-regs.c (tui_last_regs_line_no)
6190 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
6191 (tui_show_registers): Update.
6192 (tui_show_register_group): Return void. Update.
6193 (tui_display_registers_from, tui_display_reg_element_at_line)
6194 (tui_display_registers_from_line, tui_check_register_values):
6195 Update.
6196 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
6197 member.
6198 (struct tui_data_window) <regs_content>: Now a std::vector.
6199 <regs_content_count>: Remove.
6200 (tui_add_content_elements, tui_free_data_content): Don't declare.
6201 * tui/tui-data.c (tui_data_window::clear_detail): Update.
6202 (init_content_element): Remove DATA_WIN case. Add assert.
6203 (tui_add_content_elements): Remove.
6204 (tui_data_window): Update.
6205 (tui_free_data_content): Remove.
6206 (free_content_elements): Remove DATA_WIN case.
6207
6208 2019-06-25 Tom Tromey <tom@tromey.com>
6209
6210 * tui/tui-data.c (tui_data_item_window): Update.
6211 * tui/tui-windata.h (tui_check_data_values): Don't declare.
6212 * tui/tui-windata.c (tui_display_all_data)
6213 (tui_display_data_from_line): Update.
6214 (tui_check_data_values): Remove.
6215 * tui/tui-regs.c (tui_show_register_group)
6216 (tui_display_reg_element_at_line): Update.
6217 * tui/tui-hooks.c (tui_register_changed)
6218 (tui_refresh_frame_and_register_information): Call
6219 tui_check_register_values.
6220 * tui/tui-data.h (struct tui_data_window) <data_content,
6221 data_content_count, data_type>: Remove.
6222 (enum tui_data_type): Remove.
6223
6224 * tui/tui-data.c (tui_data_window::clear_detail)
6225 (~tui_data_window): Update.
6226
6227 2019-06-25 Tom Tromey <tom@tromey.com>
6228
6229 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
6230 declare.
6231 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
6232 Rename from tui_first_data_item_displayed. Update.
6233 (tui_data_window::refresh_all)
6234 (tui_data_window::do_scroll_vertical): Update.
6235 * tui/tui-data.h (struct tui_data_window)
6236 <first_data_item_displayed>: Declare new method.
6237
6238 2019-06-25 Tom Tromey <tom@tromey.com>
6239
6240 * tui/tui-data.h (tui_init_generic_part): Don't declare.
6241 * tui/tui-data.c (tui_init_generic_part): Remove, moving
6242 contents...
6243 (tui_initialize_static_data): ...here.
6244
6245 2019-06-25 Tom Tromey <tom@tromey.com>
6246
6247 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
6248 (tui_display_registers_from, tui_check_register_values): Update.
6249 (tui_display_register): Remove win_info parameter; update.
6250 (tui_get_register): Change type of parameters.
6251 * tui/tui-data.h (struct tui_data_element): Remove.
6252 (union tui_which_element) <data>: Remove.
6253 <data_window>: Change type.
6254 (struct tui_data_item_window): New.
6255 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
6256 case. Add assert.
6257 (~tui_data_item_window): New destructor.
6258 (free_content_elements): Remove DATA_ITEM_WIN case.
6259
6260 2019-06-25 Tom Tromey <tom@tromey.com>
6261
6262 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
6263 Remove.
6264
6265 2019-06-25 Tom Tromey <tom@tromey.com>
6266
6267 * tui/tui-data.h (struct tui_command_element): Remove.
6268 (union tui_which_element) <command>: Remove.
6269 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
6270 assert.
6271 (free_content_elements): Remove CMD_WIN case.
6272
6273 2019-06-25 Tom Tromey <tom@tromey.com>
6274
6275 * tui/tui-layout.c (tui_set_layout): Update.
6276 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
6277 * tui/tui-data.c (layout_def): Update.
6278
6279 2019-06-25 Tom Tromey <tom@tromey.com>
6280
6281 * tui/tui-wingeneral.c (tui_refresh_all): Update.
6282 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
6283 (tui_source_window_base::set_new_height): Update.
6284 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
6285 Update.
6286 (tui_set_locator_fullname, tui_set_locator_info)
6287 (tui_show_frame_info): Update.
6288 * tui/tui-source.c (tui_set_source_content)
6289 (tui_source_is_displayed): Update.
6290 * tui/tui-layout.c (show_source_disasm_command, show_data)
6291 (show_source_or_disasm_and_command): Update.
6292 * tui/tui-disasm.c (tui_set_disassem_content)
6293 (tui_get_begin_asm_address): Update.
6294 * tui/tui-data.h (struct tui_locator_element): Remove.
6295 (union tui_which_element) <locator>: Remove.
6296 (struct tui_locator_window): New.
6297 (tui_locator_win_info_ptr): Change return type.
6298 * tui/tui-data.c (_locator): Change type.
6299 (tui_locator_win_info_ptr): Change return type.
6300 (init_content_element): Remove LOCATOR_WIN case. Add assert.
6301 (tui_alloc_content): Add assert.
6302
6303 2019-06-25 Tom Tromey <tom@tromey.com>
6304
6305 * tui/tui-winsource.c
6306 (tui_exec_info_window::maybe_allocate_content): New method.
6307 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
6308 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
6309 (make_source_or_disasm_window): Add cast.
6310 * tui/tui-data.h (union tui_which_element) <simple_string>:
6311 Remove.
6312 (struct tui_source_info): New.
6313 (struct tui_source_window_base) <execution_info>: Change type.
6314 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
6315 case, and add assert.
6316 (tui_alloc_content): Add assert.
6317
6318 2019-06-25 Tom Tromey <tom@tromey.com>
6319
6320 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
6321 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
6322 * tui/tui-data.c (tui_alloc_win_info): Remove.
6323
6324 2019-06-25 Tom Tromey <tom@tromey.com>
6325
6326 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
6327 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
6328 can_highlight.
6329
6330 2019-06-25 Tom Tromey <tom@tromey.com>
6331
6332 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
6333 make_visible_with_new_height method.
6334 (tui_win_info::make_visible_with_new_height): New method.
6335 (tui_source_window_base::do_make_visible_with_new_height)
6336 (tui_data_window::do_make_visible_with_new_height)
6337 (tui_cmd_window::do_make_visible_with_new_height): New methods.
6338 (make_visible_with_new_height): Remove.
6339 (tui_resize_all, tui_adjust_win_heights): Use
6340 make_visible_with_new_height method.
6341 * tui/tui-data.h (struct tui_win_info)
6342 <do_make_visible_with_new_height, make_visible_with_new_height>:
6343 New methods.
6344 (struct tui_source_window_base, struct tui_data_window)
6345 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
6346 methods.
6347
6348 2019-06-25 Tom Tromey <tom@tromey.com>
6349
6350 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
6351 method.
6352 (update_tab_width): Call update_tab_width method.
6353 * tui/tui-data.h (struct tui_win_info)
6354 (struct tui_source_window_base) <update_tab_width>: New methods.
6355
6356 2019-06-25 Tom Tromey <tom@tromey.com>
6357
6358 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
6359 parameter.
6360 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
6361 parameter.
6362 (tui_gen_win_info::make_visible): Update.
6363 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
6364 parameter.
6365 * tui/tui-data.h (enum tui_box): New enum.
6366 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
6367
6368 2019-06-25 Tom Tromey <tom@tromey.com>
6369
6370 * tui/tui-layout.c (make_source_or_disasm_window): Always use
6371 init_and_make_win for EXEC_INFO_WIN.
6372 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
6373 longer inline.
6374 (struct tui_win_info) <~tui_win_info>: Inline.
6375 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
6376 Don't declare.
6377 * tui/tui-data.c (source_win, disasm_win): Remove globals.
6378 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
6379 Remove.
6380 (tui_initialize_static_data): Update.
6381 (~tui_gen_win_info): Handle more cleanup here.
6382 (~tui_source_window_base): Delete "execution_info".
6383 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
6384
6385 2019-06-25 Tom Tromey <tom@tromey.com>
6386
6387 * tui/tui-layout.c (make_command_window): Don't set
6388 can_highlight.
6389 (show_source_disasm_command): Call the reset method.
6390 (show_data): Don't set can_highlight. Call the reset method.
6391 (tui_gen_win_info::reset): Rename from init_gen_win_info
6392 (init_and_make_win): Simplify. Return tui_gen_win_info.
6393 (show_source_or_disasm_and_command): Call the reset method.
6394 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
6395 (struct tui_cmd_window): Set can_highlight.
6396
6397 2019-06-25 Tom Tromey <tom@tromey.com>
6398
6399 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
6400 from make_visible.
6401 (tui_make_visible, tui_make_invisible): Rewrite.
6402 (tui_win_info::make_visible): Remove.
6403 (tui_source_window_base::make_visible): Update.
6404 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
6405 method. Moved from...
6406 (struct tui_win_info) <make_visible>: ...here.
6407
6408 2019-06-25 Tom Tromey <tom@tromey.com>
6409
6410 * tui/tui-winsource.c
6411 (tui_source_window_base::do_scroll_horizontal): Remove direction
6412 parameter.
6413 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
6414 direction parameter.
6415 * tui/tui-win.c (tui_win_info::forward_scroll)
6416 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
6417 (tui_win_info::right_scroll): Update.
6418 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
6419 direction parameter.
6420 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
6421 direction parameter.
6422 * tui/tui-data.h (enum tui_scroll_direction): Remove.
6423 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
6424 Remove direction parameter.
6425 (struct tui_source_window_base, struct tui_source_window)
6426 (struct tui_disasm_window, struct tui_data_window)
6427 (struct tui_cmd_window): Update.
6428
6429 2019-06-25 Tom Tromey <tom@tromey.com>
6430
6431 * tui/tui-winsource.h (tui_set_exec_info_content)
6432 (tui_show_exec_info_content, tui_erase_exec_info_content)
6433 (tui_clear_exec_info_content, tui_update_exec_info): Change
6434 argument to tui_source_window_base.
6435 * tui/tui-winsource.c (tui_set_exec_info_content)
6436 (tui_show_exec_info_content, tui_erase_exec_info_content)
6437 (tui_clear_exec_info_content, tui_update_exec_info): Change
6438 argument to tui_source_window_base.
6439
6440 2019-06-25 Tom Tromey <tom@tromey.com>
6441
6442 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
6443 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
6444
6445 2019-06-25 Tom Tromey <tom@tromey.com>
6446
6447 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
6448 check.
6449
6450 2019-06-25 Tom Tromey <tom@tromey.com>
6451
6452 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
6453 type to void.
6454 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
6455 type to void.
6456 * tui/tui-source.c (tui_set_source_content): Update.
6457 * tui/tui-disasm.c (tui_set_disassem_content): Update.
6458
6459 2019-06-25 Tom Tromey <tom@tromey.com>
6460
6461 * tui/tui-win.c (window_name_completer, tui_set_focus)
6462 (tui_all_windows_info): Use name method.
6463 * tui/tui-data.h (struct tui_gen_win_info)
6464 (struct tui_source_window, struct tui_disasm_window)
6465 (struct tui_data_window, struct tui_cmd_window) <name>: New
6466 method.
6467 (tui_win_name): Don't declare.
6468 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
6469 (tui_win_name): Remove.
6470
6471 2019-06-25 Tom Tromey <tom@tromey.com>
6472
6473 * tui/tui-winsource.h (tui_update_source_window)
6474 (tui_update_source_window_as_is): Change parameter type.
6475 * tui/tui-winsource.c (tui_update_source_window): Change win_info
6476 to be a tui_source_window_base.
6477 (tui_update_source_window_as_is): Likewise.
6478 * tui/tui-win.c (make_visible_with_new_height): Update.
6479
6480 2019-06-25 Tom Tromey <tom@tromey.com>
6481
6482 * tui/tui-winsource.c (tui_erase_source_content)
6483 (tui_show_source_content, tui_show_exec_info_content)
6484 (tui_erase_exec_info_content): Use refresh_window method.
6485 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
6486 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
6487 from tui_refresh_win.
6488 (tui_data_window::refresh_window): New method.
6489 (tui_win_info::refresh, tui_source_window_base::refresh)
6490 (tui_refresh_all): Use refresh_window method.
6491 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
6492 method.
6493 * tui/tui-regs.c (tui_display_register): Call refresh_window
6494 method.
6495 * tui/tui-layout.c (show_source_disasm_command)
6496 (show_source_or_disasm_and_command): Call refresh_window method.
6497 * tui/tui-data.h (struct tui_gen_win_info)
6498 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
6499 New method.
6500
6501 2019-06-25 Tom Tromey <tom@tromey.com>
6502
6503 * tui/tui.c (tui_rl_other_window, tui_enable)
6504 (tui_is_window_visible, tui_get_command_dimension): Update.
6505 * tui/tui-winsource.c (tui_update_source_window_as_is)
6506 (tui_clear_source_content, tui_erase_source_content)
6507 (tui_show_source_line, tui_source_window_base::refill)
6508 (tui_source_window_base::do_scroll_horizontal)
6509 (tui_source_window_base::set_is_exec_point_at)
6510 (tui_update_breakpoint_info, tui_set_exec_info_content)
6511 (tui_alloc_source_buffer, tui_line_is_displayed)
6512 (tui_addr_is_displayed): Update.
6513 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
6514 (tui_check_and_display_highlight_if_needed)
6515 (tui_win_info::make_visible, tui_win_info::refresh)
6516 (tui_refresh_all): Update.
6517 * tui/tui-windata.c (tui_first_data_item_displayed)
6518 (tui_delete_data_content_windows, tui_erase_data_content)
6519 (tui_display_all_data, tui_data_window::refresh_all)
6520 (tui_check_data_values): Update.
6521 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
6522 (tui_set_win_focus_to, tui_win_info::forward_scroll)
6523 (tui_win_info::backward_scroll, tui_refresh_all_win)
6524 (tui_resize_all, tui_set_focus, tui_all_windows_info)
6525 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
6526 (tui_source_window_base::set_new_height)
6527 (tui_data_window::set_new_height)
6528 (make_invisible_and_set_new_height)
6529 (make_visible_with_new_height, new_height_ok)
6530 (parse_scrolling_args): Update.
6531 * tui/tui-stack.c (tui_show_frame_info): Update.
6532 * tui/tui-source.c (tui_set_source_content)
6533 (tui_set_source_content_nil, tui_source_is_displayed)
6534 (tui_source_window::do_scroll_vertical): Update.
6535 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
6536 (tui_display_registers_from, tui_display_reg_element_at_line)
6537 (tui_check_register_values, tui_reg_command): Update.
6538 * tui/tui-layout.c (tui_default_win_height)
6539 (show_source_disasm_command, show_data, init_and_make_win)
6540 (show_source_or_disasm_and_command): Update.
6541 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
6542 (tui_redisplay_readline, tui_mld_flush)
6543 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
6544 (tui_getc): Update.
6545 * tui/tui-disasm.c (tui_set_disassem_content)
6546 (tui_disasm_window::do_scroll_vertical): Update.
6547 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
6548 Now virtual.
6549 (struct tui_win_info): Derive from tui_gen_win_info.
6550 <~tui_win_info>: Mark as override.
6551 <generic>: Remove member.
6552 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
6553 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
6554 (~tui_data_window, ~tui_win_info)
6555 (tui_free_all_source_wins_content): Update.
6556 * tui/tui-command.c (tui_refresh_cmd_win): Update.
6557
6558 2019-06-25 Tom Tromey <tom@tromey.com>
6559
6560 * tui/tui-layout.c (init_and_make_win): Use new.
6561 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
6562 destructor, initializers.
6563 (tui_alloc_generic_win_info): Don't declare.
6564 * tui/tui-data.c (_locator): Add argument to constructor.
6565 (source_win, disasm_win): New globals.
6566 (exec_info): Remove.
6567 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
6568 Update.
6569 (tui_alloc_generic_win_info): Remove.
6570 (init_content_element): Use new.
6571 (tui_win_info::tui_win_info): Update.
6572 (free_content_elements) <case DATA_WIN>: Use delete.
6573
6574 2019-06-25 Tom Tromey <tom@tromey.com>
6575
6576 * tui/tui-wingeneral.c (tui_refresh_win): Update.
6577 * tui/tui-windata.c (tui_first_data_item_displayed)
6578 (tui_delete_data_content_windows): Update.
6579 * tui/tui-win.c (tui_data_window::set_new_height): Update.
6580 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
6581 (tui_display_registers_from, tui_check_register_values): Update.
6582 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
6583 pointer.
6584 * tui/tui-data.c (init_content_element): Update. Allocate the new
6585 window.
6586 (tui_free_data_content): Update.
6587 (free_content_elements) <case DATA_WIN>: Free the window.
6588
6589 2019-06-25 Tom Tromey <tom@tromey.com>
6590
6591 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
6592 Update.
6593 * tui/tui-layout.c (make_command_window)
6594 (show_source_disasm_command, show_data, init_and_make_win)
6595 (show_source_or_disasm_and_command): Update.
6596 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
6597 method.
6598 <can_highight, is_highlighted>: Now bool.
6599 (tui_set_win_highlight): Don't declare.
6600 * tui/tui-data.c (tui_set_win_highlight): Remove.
6601
6602 2019-06-25 Tom Tromey <tom@tromey.com>
6603
6604 * tui/tui-wingeneral.c (make_visible): Remove check of window
6605 type.
6606
6607 2019-06-25 Tom Tromey <tom@tromey.com>
6608
6609 * tui/tui-win.c (tui_win_info::max_height)
6610 (tui_cmd_window::max_height): New methods.
6611 (new_height_ok): Call max_height.
6612 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
6613 <max_height>: New method.
6614
6615 2019-06-25 Tom Tromey <tom@tromey.com>
6616
6617 * tui/tui-win.c (tui_source_window_base::set_new_height)
6618 (tui_data_window::set_new_height): New methods.
6619 (make_invisible_and_set_new_height): Call set_new_height method.
6620 * tui/tui-data.h (struct tui_win_info)
6621 (struct tui_source_window_base, struct tui_data_window)
6622 <set_new_height>: New method.
6623
6624 2019-06-25 Tom Tromey <tom@tromey.com>
6625
6626 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
6627 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
6628 tui_refresh_data_win.
6629 * tui/tui-win.c (tui_source_window_base::refresh_all): New
6630 method.
6631 (tui_refresh_all_win): Call the refresh_all method.
6632 (tui_set_focus): Likewise.
6633 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
6634 (struct tui_source_window_base, struct tui_data_window) <refresh>:
6635 Likewise.
6636
6637 2019-06-25 Tom Tromey <tom@tromey.com>
6638
6639 * tui/tui-winsource.h (tui_refill_source_window)
6640 (tui_set_is_exec_point_at): Don't declare.
6641 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
6642 (tui_source_window_base::refill): Rename from
6643 tui_refill_source_window.
6644 (tui_source_window_base::do_scroll_horizontal): Update.
6645 (tui_source_window_base::set_is_exec_point_at): Rename from
6646 tui_set_is_exec_point_at.
6647 (tui_update_all_breakpoint_info): Update.
6648 * tui/tui-stack.c (tui_show_frame_info): Update.
6649 * tui/tui-layout.c (show_data): Add cast.
6650 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
6651 * tui/tui-data.h (struct tui_source_window_base) <refill,
6652 set_is_exec_point_at>: New methods.
6653 (tui_source_windows, tui_add_to_source_windows): Update types.
6654 (tui_add_to_source_windows): Remove redundant declaration.
6655 * tui/tui-data.c (source_windows): Store tui_source_window_base.
6656 (tui_source_windows): Change return type.
6657 (tui_clear_source_windows_detail): Update.
6658 (tui_add_to_source_windows): Change type of parameter.
6659 (tui_free_all_source_wins_content): Update.
6660
6661 2019-06-25 Tom Tromey <tom@tromey.com>
6662
6663 * tui/tui-wingeneral.c (tui_win_info::refresh)
6664 (tui_source_window_base::refresh): New methods.
6665 (tui_refresh_all): Call the refresh method.
6666 * tui/tui-data.h (struct tui_win_info)
6667 (struct tui_source_window_base) <refresh>: New method.
6668
6669 2019-06-25 Tom Tromey <tom@tromey.com>
6670
6671 * tui/tui.h (tui_is_window_visible): Return bool.
6672 * tui/tui.c (tui_is_window_visible): Return bool.
6673 * tui/tui-wingeneral.c (tui_make_window, make_visible)
6674 (tui_make_visible, tui_make_invisible)
6675 (tui_win_info::make_visible)
6676 (tui_source_window_base::make_visible, make_all_visible)
6677 (tui_make_all_visible, tui_make_all_invisible): Update.
6678 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
6679 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
6680 bool.
6681 (struct tui_win_info, struct tui_source_window_base)
6682 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
6683 * tui/tui-data.c (tui_init_generic_part): Update.
6684
6685 2019-06-25 Tom Tromey <tom@tromey.com>
6686
6687 * tui/tui-wingeneral.c (tui_win_info::make_visible)
6688 (tui_source_window_base::make_visible): New methods.
6689 (make_all_visible): Make method call.
6690 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
6691 (struct tui_source_window_base, struct tui_cmd_window): Override
6692 make_visible.
6693 (tui_win_is_source_type): Don't declare.
6694 * tui/tui-data.c (tui_win_is_source_type): Remove.
6695
6696 2019-06-25 Tom Tromey <tom@tromey.com>
6697
6698 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
6699 NULL check.
6700
6701 2019-06-25 Tom Tromey <tom@tromey.com>
6702
6703 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
6704 Inline constructor. Add initializers for members.
6705 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
6706 constructors; now inline in class.
6707
6708 2019-06-25 Tom Tromey <tom@tromey.com>
6709
6710 * tui/tui-regs.c (tui_show_registers): Update.
6711 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
6712 bool.
6713 * tui/tui-data.c (tui_data_window::clear_detail)
6714 (tui_data_window): Update.
6715
6716 2019-06-25 Tom Tromey <tom@tromey.com>
6717
6718 * tui/tui-windata.c (tui_display_all_data)
6719 (tui_display_data_from_line, tui_display_data_from)
6720 (tui_check_data_values, tui_data_window::do_scroll_vertical):
6721 Update.
6722 * tui/tui-regs.c (tui_last_regs_line_no)
6723 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
6724 (tui_show_registers, tui_show_register_group)
6725 (tui_display_registers_from, tui_display_reg_element_at_line)
6726 (tui_display_registers_from_line, tui_check_register_values)
6727 (tui_reg_next, tui_reg_prev): Update.
6728 * tui/tui-layout.c (tui_set_layout, show_data): Update.
6729 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
6730 tui_data_window.
6731 (struct tui_win_info) <detail>: Remove. Add new fields from
6732 tui_data_info.
6733 (TUI_DATA_WIN): Add cast.
6734 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
6735 (~tui_data_window): Simplify.
6736
6737 2019-06-25 Tom Tromey <tom@tromey.com>
6738
6739 * tui/tui-layout.c (show_source_disasm_command)
6740 (show_source_or_disasm_and_command): Update.
6741 * tui/tui-io.c (update_cmdwin_start_line)
6742 (tui_redisplay_readline): Update.
6743 * tui/tui-data.h (struct tui_command_info): Remove.
6744 (struct tui_win_info) <detail>: Remove command_info member.
6745 (struct tui_data_window) <start_line>: New member, from
6746 tui_command_info.
6747 (TUI_CMD_WIN): Add casts.
6748
6749 2019-06-25 Tom Tromey <tom@tromey.com>
6750
6751 * tui/tui-winsource.c (tui_update_source_window)
6752 (tui_refill_source_window)
6753 (tui_source_window_base::do_scroll_horizontal)
6754 (tui_update_breakpoint_info, tui_set_exec_info_content)
6755 (tui_show_exec_info_content, tui_erase_exec_info_content)
6756 (tui_clear_exec_info_content): Update.
6757 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
6758 Update.
6759 * tui/tui-win.c (make_invisible_and_set_new_height)
6760 (make_visible_with_new_height): Update.
6761 * tui/tui-source.c (tui_set_source_content)
6762 (tui_show_symtab_source): Update.
6763 * tui/tui-layout.c (extract_display_start_addr)
6764 (show_source_disasm_command, show_data)
6765 (make_source_or_disasm_window)
6766 (show_source_or_disasm_and_command): Update.
6767 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
6768 (tui_disasm_window::do_scroll_vertical): Remove shadowing
6769 "gdbarch".
6770 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
6771 to tui_source_window_base.
6772 (struct tui_win_info) <detail>: Remove source_info member.
6773 (struct tui_source_window_base) <has_locator>: Inline.
6774 Move contents from tui_source_info; rename has_locator member to
6775 m_has_locator.
6776 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
6777 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
6778 header file.
6779 (tui_source_window_base::clear_detail, ~tui_source_window_base):
6780 Simplify.
6781 (tui_free_all_source_wins_content): Cast to
6782 tui_source_window_base.
6783
6784 2019-06-25 Tom Tromey <tom@tromey.com>
6785
6786 * tui/tui-win.c (make_invisible_and_set_new_height)
6787 (make_visible_with_new_height): Call has_locator method.
6788 * tui/tui-layout.c (show_source_disasm_command, show_data)
6789 (show_source_or_disasm_and_command): Update for bool change.
6790 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
6791 (tui_win_info) <has_locator>: New method.
6792 (struct tui_source_window_base) <has_locator>: New method.
6793 (tui_win_has_locator): Don't declare.
6794 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
6795 from tui_win_has_locator.
6796 (tui_source_window_base): Use false, not FALSE.
6797
6798 2019-06-25 Tom Tromey <tom@tromey.com>
6799
6800 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
6801 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
6802 clear_detail method directly.
6803 (tui_clear_win_detail): Remove.
6804
6805 2019-06-25 Tom Tromey <tom@tromey.com>
6806
6807 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
6808 "this", not TUI_DISASM_WIN.
6809
6810 2019-06-25 Tom Tromey <tom@tromey.com>
6811
6812 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
6813 declare.
6814 * tui/tui-winsource.c
6815 (tui_source_window_base::do_scroll_horizontal): Rename from
6816 tui_horizontal_source_scroll.
6817 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
6818 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
6819 from tui_vertical_data_scroll.
6820 * tui/tui-win.h (tui_scroll): Don't declare.
6821 * tui/tui-win.c (tui_win_info::forward_scroll)
6822 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
6823 (tui_win_info::right_scroll): Rename and update.
6824 (tui_scroll_forward_command, tui_scroll_backward_command)
6825 (tui_scroll_left_command, tui_scroll_right_command): Update.
6826 (tui_scroll): Remove.
6827 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
6828 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
6829 from tui_vertical_source_scroll.
6830 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
6831 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
6832 from tui_vertical_disassem_scroll.
6833 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
6834 do_scroll_horizontal>: New methods.
6835 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
6836 Likewise.
6837 (struct tui_source_window_base): Add do_scroll_horizontal.
6838 (struct tui_source_window, struct tui_disasm_window): Add
6839 do_scroll_vertical.
6840 (struct tui_data_window, struct tui_cmd_window): Add
6841 do_scroll_horizontal and do_scroll_vertical.
6842 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
6843
6844 2019-06-25 Tom Tromey <tom@tromey.com>
6845
6846 * tui/tui-data.h (struct tui_source_window_base): New struct.
6847 (struct tui_source_window): Derive from tui_source_window_base.
6848 (struct tui_disasm_window): New struct.
6849 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
6850 from tui_source_window::clear_detail.
6851 (tui_source_window_base): Rename from tui_source_window.
6852 (~tui_source_window_base): Rename from ~tui_source_window.
6853 (tui_alloc_win_info): Create a tui_disasm_window.
6854
6855 2019-06-25 Tom Tromey <tom@tromey.com>
6856
6857 * tui/tui-data.h (struct tui_source_window)
6858 (struct tui_data_window): Declare destructors.
6859 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
6860 destructors.
6861 (tui_win_info): Simplify.
6862
6863 2019-06-25 Tom Tromey <tom@tromey.com>
6864
6865 * tui/tui-winsource.c (tui_display_main)
6866 (tui_update_source_windows_with_addr)
6867 (tui_update_all_breakpoint_info): Update.
6868 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
6869 (new_height_ok, parse_scrolling_args): Update.
6870 * tui/tui-stack.c (tui_show_frame_info): Update.
6871 * tui/tui-data.h (struct tui_list): Remove.
6872 (tui_source_windows): Return a reference to a std::vector.
6873 * tui/tui-data.c (source_windows): Now a std::vector.
6874 (tui_source_windows): Change return type.
6875 (tui_clear_source_windows): Rewrite.
6876 (tui_clear_source_windows_detail, tui_add_to_source_windows)
6877 (tui_free_all_source_wins_content): Rewrite.
6878
6879 2019-06-25 Tom Tromey <tom@tromey.com>
6880
6881 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
6882 (struct tui_data_window, struct tui_cmd_window): Declare
6883 clear_detail method.
6884 * tui/tui-data.c (tui_source_window::clear_detail)
6885 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
6886 methods.
6887 (tui_clear_win_detail): Simplify.
6888
6889 2019-06-25 Tom Tromey <tom@tromey.com>
6890
6891 * tui/tui-layout.c (make_source_window, make_disasm_window)
6892 (make_source_or_disasm_window): Remove win_info_ptr parameter.
6893 Return the new window.
6894 (show_source_disasm_command, show_data)
6895 (show_source_or_disasm_and_command): Update.
6896
6897 2019-06-25 Tom Tromey <tom@tromey.com>
6898
6899 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
6900 parameter. Return the new window.
6901 (show_source_disasm_command): Update and remove NULL check.
6902 (show_source_or_disasm_and_command): Update.
6903
6904 2019-06-25 Tom Tromey <tom@tromey.com>
6905
6906 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
6907
6908 2019-06-25 Tom Tromey <tom@tromey.com>
6909
6910 * tui/tui-data.h (struct tui_win_info): Make constructor
6911 protected. Make destructor virtual. Add initializers.
6912 (tui_source_window, tui_data_window, tui_cmd_window): New
6913 classes.
6914 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
6915 constructor. Add "type" parameter.
6916 (tui_source_window, tui_data_window, tui_cmd_window): New
6917 constructors.
6918 (tui_alloc_win_info): Instantiate the appropriate subclass.
6919
6920 2019-06-25 Tom Tromey <tom@tromey.com>
6921
6922 * tui/tui-win.c (tui_resize_all): Use delete.
6923 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
6924 destructor.
6925 (tui_free_window): Don't declare.
6926 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
6927 Update.
6928
6929 2019-06-25 Tom Tromey <tom@tromey.com>
6930
6931 * tui/tui-data.h (struct tui_win_info): Add constructor.
6932 * tui/tui-data.c (tui_alloc_win_info): Use new.
6933 (tui_free_window): Use delete.
6934
6935 2019-06-22 Tom Tromey <tom@tromey.com>
6936
6937 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
6938 declare.
6939 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
6940
6941 2019-06-22 Tom Tromey <tom@tromey.com>
6942
6943 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
6944 declare.
6945 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
6946
6947 2019-06-22 Tom de Vries <tdevries@suse.de>
6948
6949 * dwarf2read.c (create_addrmap_from_aranges)
6950 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
6951 instead of '%zu'.
6952
6953 2019-06-21 Simon Marchi <simon.marchi@efficios.com>
6954
6955 * dwarf2read.h (dwarf2_section_info_def): Remove.
6956 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
6957 * dwarf2read.c (struct dwo_sections) <types>: Change type to
6958 std::vector<dwarf2_section_info>.
6959 (struct dwo_file) <~dwo_file>: Remove.
6960 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
6961 types field.
6962 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
6963 (dwarf2_read_debug_names): Likewise.
6964 (create_debug_types_hash_table): Change parameter type to
6965 array_view, adjust code accordingly.
6966 (dwarf2_locate_dwo_sections): Adjust to std::vector.
6967 (partial_die_info::fixup): Likewise.
6968 (determine_prefix): Likewise.
6969 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
6970
6971 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
6972
6973 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
6974 gdb_bfd_ref_ptr.
6975 <~dwo_file>: Remove call to gdb_bfd_unref.
6976 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
6977 gdb_bfd_ref_ptr::get.
6978
6979 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
6980
6981 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
6982 type to htab_up.
6983 * dwarf2read.c (struct dwo_file): Initialize fields.
6984 <~dwo_file>: New.
6985 (free_dwo_file): Remove, move content to ~dwo_file.
6986 (struct dwo_file_deleter): Remove.
6987 (dwo_file_up>: Remove custom deleter.
6988 (free_dwo_files): Remove.
6989 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
6990 dwo_files.
6991 (process_skeletonless_type_units): Call unique_ptr::get.
6992 (allocate_dwo_file_hash_table): Add deleter to created hash
6993 table. Change return type to htab_up.
6994 (lookup_dwo_file_slot): Don't memset dwo_file, call
6995 unique_ptr::get.
6996 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
6997 (create_dwo_unit_in_dwp_v2): Likewise.
6998 (open_and_init_dwo_file): Likewise.
6999 (free_dwo_file_from_slot): Remove.
7000
7001 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
7002
7003 * dwarf2read.h (struct dwarf2_section_info) <readin,
7004 is_virtual>: Change type to bool.
7005 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
7006 true instead of 1.
7007
7008 2019-06-19 Tom Tromey <tom@tromey.com>
7009
7010 * tui/tui-data.h (tui_init_content_element): Don't declare.
7011
7012 2019-06-19 Tom Tromey <tom@tromey.com>
7013
7014 * tui/tui-data.h (tui_init_win_info): Don't declare.
7015
7016 2019-06-19 Tom de Vries <tdevries@suse.de>
7017
7018 * dwarf2read.h (abstract_to_concrete): Change type to
7019 std::unordered_map<sect_offset, std::vector<sect_offset>,
7020 gdb::hash_enum<sect_offset>>.
7021
7022 2019-06-19 Tom Tromey <tromey@adacore.com>
7023
7024 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
7025 EVAL_AVOID_SIDE_EFFECTS specially.
7026
7027 2019-06-19 Tom Tromey <tromey@adacore.com>
7028
7029 * source-cache.c (highlighter): New global.
7030 (source_cache::get_source_lines): Create a highlighter on demand.
7031
7032 2019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
7033
7034 * defs.h (deprecated_interactive_hook): Delete declaration.
7035 * interps.c (clear_interpreter_hooks): Remove use of
7036 deprecated_interactive_hook.
7037 * top.c (deprecated_interactive_hook): Delete definition.
7038 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
7039
7040 2019-06-18 Tom de Vries <tdevries@suse.de>
7041
7042 PR gdb/24515
7043 * dwarf2read.h (abstract_to_concrete): Change type from
7044 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
7045 std::unordered_map<sect_offset, std::vector<sect_offset>>.
7046 * dwarf2read.c (read_variable): Update.
7047 (dwarf2_fetch_die_loc_sect_off): Update.
7048
7049 2019-06-17 Tom de Vries <tdevries@suse.de>
7050
7051 PR gdb/24617
7052 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
7053 accessing parent[parent_len - 1].
7054
7055 2019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
7056
7057 PR gdb/24364
7058 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
7059 call dtrace_process_dof with NULL dof.
7060
7061 2019-06-16 Tom de Vries <tdevries@suse.de>
7062
7063 PR gdb/24445
7064 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
7065
7066 2019-06-16 Tom Tromey <tom@tromey.com>
7067
7068 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
7069 (make_all_visible): Use address of member.
7070
7071 2019-06-16 Tom Tromey <tom@tromey.com>
7072
7073 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
7074 (tui_free_window, free_content, free_content_elements): Remove
7075 unnecessary cast.
7076 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
7077 cast.
7078 * tui/tui-regs.c (tui_show_register_group)
7079 (tui_display_registers_from, tui_display_reg_element_at_line):
7080 Remove unnecessary cast.
7081
7082 2019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
7083
7084 * linux-nat.c (normal_mask): Delete.
7085 (_initialize_linux_nat): Don't initialise normal_mask.
7086
7087 2019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
7088
7089 PR gdb/24445
7090 * dwarf-index-write.h (write_psymtabs_to_index): Add
7091 dwz_basename parameter.
7092 * dwarf-index-write.c (write_gdbindex): Move file writing to
7093 write_gdbindex_1. Change return type void.
7094 (assert_file_size): Move up, remove filename parameter.
7095 (write_gdbindex_1): New function.
7096 (write_debug_names): Change return type to void, call
7097 assert_file_size.
7098 (struct index_wip_file): New struct.
7099 (write_psymtabs_to_index): Add dwz_basename parameter. Move
7100 file logic to index_wip_file. Write index for dwz file if
7101 needed.
7102 (save_gdb_index_command): Pass basename of dwz file, if present.
7103 * dwarf-index-cache.c (index_cache::store): Obtain and pass
7104 build-id of dwz file, if present.
7105 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
7106 (dwarf2_get_dwz_file): Likewise.
7107 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
7108 (dwarf2_get_dwz_file): Likewise.
7109
7110 2019-06-16 Tom Tromey <tom@tromey.com>
7111
7112 * coffread.c (process_coff_symbol): Use xstrdup.
7113 * value.c (create_internalvar): Use xstrdup.
7114
7115 2019-06-16 Tom Tromey <tom@tromey.com>
7116
7117 * valops.c (value_cast, value_slice): Remove unnecessary cast.
7118 * breakpoint.c (stopin_command, stopat_command)
7119 (until_break_command, decode_location_default): Remove unnecessary
7120 cast.
7121 * utils.c (subset_compare): Remove unnecessary cast.
7122 * ada-lang.c (ada_update_initial_language): Remove unnecessary
7123 cast.
7124 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
7125 cast.
7126 * infcmd.c (path_command): Remove unnecessary cast.
7127 * coffread.c (decode_type): Remove unnecessary cast.
7128 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
7129 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
7130 * tui/tui-stack.c (tui_show_locator_content)
7131 (tui_show_frame_info): Remove unnecessary cast.
7132 * tui/tui-win.c (tui_scroll_forward_command)
7133 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
7134 (parse_scrolling_args): Remove unnecessary cast.
7135 * tui/tui-data.c (init_win_info, tui_del_window)
7136 (tui_free_window, tui_del_data_windows, tui_free_data_content)
7137 (free_content_elements): Remove unnecessary cast.
7138 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
7139 unnecessary cast.
7140 * tui/tui-source.c (tui_set_source_content)
7141 (tui_vertical_source_scroll): Remove unnecessary cast.
7142 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
7143 cast.
7144 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
7145 * tui/tui-regs.c (tui_display_registers_from)
7146 (tui_display_register): Remove unnecessary cast.
7147 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
7148 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
7149 (make_visible): Remove unnecessary cast.
7150 * tui/tui-winsource.c (tui_erase_source_content)
7151 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
7152 unnecessary cast.
7153 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
7154 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
7155 * stabsread.c (read_type, read_array_type, read_range_type):
7156 Remove unnecessary cast.
7157 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
7158 (parse_symbol, parse_type, upgrade_type, parse_external)
7159 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
7160 unnecessary cast.
7161 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
7162
7163 2019-06-16 Tom Tromey <tom@tromey.com>
7164
7165 * tui/tui-data.c (tui_alloc_generic_win_info)
7166 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
7167 checks.
7168
7169 2019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
7170 Andrew Burgess <andrew.burgess@embecosm.com>
7171
7172 * f-typeprint.c (f_print_type): Don't return early for not
7173 associated or not allocated types.
7174 (f_type_print_varspec_suffix): Add print_rank parameter and print
7175 ranks of array types in case they dangling.
7176 (f_type_print_base): Add print_rank parameter.
7177
7178 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7179
7180 * NEWS: Mention new MI commands.
7181 * break-catch-throw.c (enum exception_event_kind): Move to
7182 breakpoint.h.
7183 (print_mention_exception_catchpoint): Output text as a single
7184 message.
7185 (catch_exception_command_1): Rename to...
7186 (catch_exception_event): ...this, make non-static, update header
7187 command, and change some parameter types.
7188 (catch_catch_command): Update for changes to
7189 catch_exception_command_1.
7190 (catch_throw_command): Likewise.
7191 (catch_rethrow_command): Likewise.
7192 * breakpoint.c (enum exception_event_kind): Delete.
7193 * breakpoint.h (enum exception_event_kind): Moved here from
7194 break-catch-throw.c.
7195 (catch_exception_event): Declare.
7196 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
7197 (mi_cmd_catch_throw): New function.
7198 (mi_cmd_catch_rethrow): New function.
7199 (mi_cmd_catch_catch): New function.
7200 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
7201 'catch-catch' entries.
7202 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
7203 (mi_cmd_catch_rethrow): Declare.
7204 (mi_cmd_catch_catch): Declare.
7205
7206 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7207
7208 * annotate.c (annotate_source_line): Change return type to void,
7209 update implementation to match.
7210 * annotate.h (annotate_source_line): Change return type to void,
7211 update header comment.
7212 * stack.c (print_frame_info): Don't change what frame information
7213 is printed based on whether annotations are on or not.
7214
7215 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7216
7217 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
7218 (annotate_source): Make static.
7219 (annotate_source_line): Moved from source.c and renamed from
7220 identify_source_line. Update the return type.
7221 * annotate.h (annotate_source): Delete declaration.
7222 (annotate_source_line): Declaration moved from source.h, and
7223 renamed from identify_source_line. Return type updated.
7224 * source.c (identify_source_line): Moved to annotate.c and renamed
7225 to annotate_source_line.
7226 (info_line_command): Remove check of annotation_level.
7227 * source.h (identify_source_line): Move declaration to annotate.h
7228 and rename to annotate_source_line.
7229 * stack.c: Add 'annotate.h' include.
7230 (print_frame_info): Remove check of annotation_level before
7231 calling annotate_source_line.
7232
7233 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7234
7235 * source-cache.c (source_cache::get_plain_source_lines): Use
7236 open_source_file_with_line_charpos instead of just
7237 open_source_file, remove call to find_source_lines.
7238 (source_cache::get_source_lines): Likewise.
7239 * source.c (find_source_lines): Make static.
7240 (get_filename_and_charpos): Renamed into...
7241 (open_source_file_with_line_charpos): ..this along with changes to
7242 return a scoped_fd, and some other minor clean ups.
7243 (identify_source_line): Use open_source_file_with_line_charpos.
7244 (search_command_helper): Use open_source_file_with_line_charpos
7245 instead of just open_source_file, remove call to
7246 find_source_lines.
7247 * source.h (open_source_file_with_line_charpos): Declare new
7248 function.
7249 (find_source_lines): Delete declaration.
7250
7251 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7252
7253 * source.c (get_filename_and_charpos): Remove fullname
7254 parameter.
7255 (identify_source_line): Update call to get_filename_and_charpos.
7256
7257 2019-06-14 Tom Tromey <tromey@adacore.com>
7258
7259 PR gdb/24502:
7260 * ui-style.h (skip_ansi_escape): Update comment.
7261 * ui-file.h (class no_terminal_escape_file): New class.
7262 * ui-file.c (no_terminal_escape_file::write)
7263 (no_terminal_escape_file::puts): New methods.
7264 * cli/cli-logging.c (handle_redirections): Use
7265 no_terminal_escape_file.
7266
7267 2019-06-14 Tom Tromey <tromey@adacore.com>
7268
7269 * NEWS: Move convenience variable news above Python news.
7270
7271 2019-06-14 Tom Tromey <tom@tromey.com>
7272
7273 * gnulib: Move directory to top-level.
7274 * configure.ac: Don't configure gnulib.
7275 * configure: Rebuild.
7276 * common/common-defs.h: Use new path to gnulib.
7277 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
7278 (GNULIB_H): Remove.
7279 (INCGNU): Look in new gnulib location.
7280 (HFILES_NO_SRCDIR): Remove gnulib files.
7281 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
7282 (generated_files): Remove GNULIB_H.
7283 ($(LIBGNU), all-lib): Remove targets.
7284 (distclean): Don't mention GNULIB_BUILDDIR.
7285 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
7286
7287 2019-06-14 Tom Tromey <tromey@adacore.com>
7288
7289 * symfile.c (add_symbol_file_command): Remove obsolete comment.
7290 Warn if symbol file does not provide any symbols.
7291
7292 2019-06-14 Tom Tromey <tromey@adacore.com>
7293
7294 * source.c (find_and_open_source): Respect basenames_may_differ.
7295
7296 2019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
7297
7298 * annotate.c (annotate_breakpoints_invalid): Make use of
7299 scoped_restore_terminal_state.
7300 (annotate_frames_invalid): Likewise.
7301
7302 2019-06-14 Tom Tromey <tromey@adacore.com>
7303
7304 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
7305 allow assignment to an internalvar.
7306
7307 2019-06-14 Tom Tromey <tromey@adacore.com>
7308
7309 * ada-lex.l: Allow "_" in attribute names.
7310
7311 2019-06-14 Tom Tromey <tromey@adacore.com>
7312
7313 PR gdb/24653:
7314 * regcache.c (registers_changed): Don't call alloca.
7315 * top.c (execute_command): Don't call alloca.
7316
7317 2019-06-13 Pedro Alves <palves@redhat.com>
7318
7319 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
7320 'expression'. When parsing an expression, error out if there's
7321 junk after "unlimited".
7322 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
7323 (do_set_command): Adjust calls to is_unlimited_literal.
7324
7325 2019-06-13 Pedro Alves <palves@redhat.com>
7326
7327 * compile/compile.c (make_compile_options_def_group): Add braces
7328 around array_view initializer.
7329 * thread.c (make_thread_apply_all_options_def_group)
7330 (make_thread_apply_all_options_def_group): Likewise.
7331
7332 2019-06-13 Pedro Alves <palves@redhat.com>
7333
7334 * NEWS (New commands): Mention "maint test-options
7335 require-delimiter", "maint test-options unknown-is-error", "maint
7336 test-options unknown-is-operand" and "maint show
7337 test-options-completion-result".
7338 (New command options, command completion): New section.
7339 (Completion improvements): New section.
7340 Mention that you can abbreviate "unlimited".
7341
7342 2019-06-13 Pedro Alves <palves@redhat.com>
7343
7344 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
7345 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
7346 * unittests/cli-utils-selftests.c (test_parse_flags)
7347 (test_parse_flags_qcs): Delete.
7348 (test_cli_utils): Don't call deleted functions.
7349
7350 2019-06-13 Pedro Alves <palves@redhat.com>
7351
7352 * thread.c: Include "cli/cli-option.h".
7353 (tp_array_compar_ascending): Global.
7354 (tp_array_compar): Delete function.
7355 (tp_array_compar_ascending, tp_array_compar_descending): New
7356 functions.
7357 (ascending_option_def, qcs_flag_option_def)
7358 (thr_qcs_flags_option_defs)
7359 (make_thread_apply_all_options_def_group)
7360 (make_thread_apply_options_def_group): New.
7361 (thread_apply_all_command): Use gdb::option::process_options.
7362 (thread_apply_command_completer)
7363 (thread_apply_all_command_completer): New.
7364 (thread_apply_command): Use gdb::option::process_options.
7365 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
7366 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
7367 to generate help text of "thread apply". Adjust "taas"'s help.
7368 * tid-parse.c (tid_range_parser::in_thread_range): New method.
7369 * tid-parse.h (tid_range_parser::in_thread_range): New method.
7370
7371 2019-06-13 Pedro Alves <palves@redhat.com>
7372
7373 * thread.c (thread_apply_command): Check for invalid TID with
7374 isdigit instead of !isalpha.
7375
7376 2019-06-13 Pedro Alves <palves@redhat.com>
7377
7378 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
7379 (validate_flags_qcs): New.
7380 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
7381 (validate_flags_qcs): Declare.
7382 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
7383 (make_frame_apply_options_def_group): New.
7384 (frame_apply_command_count): Process options with
7385 gdb::option::process_options.
7386 (frame_apply_completer): New.
7387 (frame_apply_level_completer, frame_apply_all_completer)
7388 (frame_apply_completer): New.
7389 (_initialize_stack): Update help of "frame apply", "frame apply
7390 level", "frame apply all" and "faas" to mention supported options
7391 and install command completers.
7392 * stack.h (frame_apply_all_completer): Declare.
7393 * thread.c: Include "stack.h".
7394 (tfaas_command): Add "--".
7395 (_initialize_thread): Update help "tfaas" to mention supported
7396 options and install command completer.
7397
7398 2019-06-13 Pedro Alves <palves@redhat.com>
7399
7400 * completer.c (complete_nested_command_line): New.
7401 (gdb_completion_word_break_characters_throw): Add assertion.
7402 * completer.h (complete_nested_command_line): Declare.
7403
7404 2019-06-13 Pedro Alves <palves@redhat.com>
7405
7406 * stack.c (parse_backtrace_qualifiers): New.
7407 (backtrace_command): Use it.
7408 (backtrace_command_completer): Complete on qualifiers.
7409
7410 2019-06-13 Pedro Alves <palves@redhat.com>
7411
7412 * frame.c: Include "cli/cli-option.h.
7413 (user_set_backtrace_options): New.
7414 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
7415 Delete.
7416 (get_prev_frame): Adjust.
7417 (boolean_option_def, uinteger_option_def)
7418 (set_backtrace_option_defs): New.
7419 (_initialize_frame): Adjust and use
7420 gdb::option::add_setshow_cmds_for_options to install "set
7421 backtrace past-main" and "set backtrace past-entry".
7422 * frame.h: Include "cli/cli-option.h".
7423 (struct frame_print_options): Forward declare.
7424 (print_frame_arguments_all, print_frame_arguments_scalars)
7425 (print_frame_arguments_none): Declare.
7426 (print_entry_values): Delete declaration.
7427 (struct frame_print_options, user_frame_print_options): New.
7428 (struct set_backtrace_options): New.
7429 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
7430 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
7431 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
7432 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
7433 (list_args_or_locals): Add frame_print_options parameter.
7434 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
7435 * python/py-framefilter.c (enumerate_args): Pass down
7436 USER_FRAME_PRINT_OPTIONS.
7437 * stack.c: Include "cli/cli-option.h".
7438 (print_frame_arguments_all, print_frame_arguments_scalars)
7439 (print_frame_arguments_none): Declare.
7440 (print_raw_frame_arguments, print_entry_values): Delete.
7441 (user_frame_print_options): New.
7442 (boolean_option_def, enum_option_def, frame_print_option_defs):
7443 New.
7444 (struct backtrace_cmd_options): New.
7445 (bt_flag_option_def): New.
7446 (backtrace_command_option_defs): New.
7447 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
7448 (print_frame_arg, read_frame_arg, print_frame_args)
7449 (print_frame_info, print_frame): Add frame_print_options parameter
7450 and use it.
7451 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
7452 (backtrace_command_1): Add frame_print_options and
7453 backtrace_cmd_options parameters and use them.
7454 (make_backtrace_options_def_group): New.
7455 (backtrace_command): Process command options with
7456 gdb::option::process_options.
7457 (backtrace_command_completer): New.
7458 (_initialize_stack): Extend "backtrace"'s help to mention
7459 supported options. Install completer for "backtrace".
7460 Install some settings commands with add_setshow_cmds_for_options.
7461
7462 2019-06-13 Pedro Alves <palves@redhat.com>
7463
7464 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
7465 and that "set/show print raw frame-arguments" are now deprecated.
7466
7467 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
7468 command.
7469 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
7470 * stack.c (_initialize_stack): Install "set/show print
7471 raw-frame-arguments", and deprecate "set/show print raw
7472 frame-arguments".
7473 * valprint.c (_initialize_valprint): Deprecate "set/show print
7474 raw".
7475
7476 2019-06-13 Pedro Alves <palves@redhat.com>
7477
7478 * compile/compile.c (struct compile_options): New.
7479 (compile_flag_option_def, compile_command_option_defs)
7480 (make_compile_options_def_group): New.
7481 (compile_file_command): Handle options with
7482 gdb::option::process_options.
7483 (compile_file_command_completer): New function.
7484 (compile_code_command): Handle options with
7485 gdb::option::process_options.
7486 (compile_code_command_completer): New function.
7487 (_initialize_compiler): Install completers for "compile code" and
7488 "compile file". Mention available options in "compile code" and
7489 "compile code"'s help.
7490 * completer.c (advance_to_completion_word): New, factored out from
7491 ...
7492 (advance_to_expression_complete_word_point): ... this.
7493 (advance_to_filename_complete_word_point): New.
7494 * completer.h (advance_to_filename_complete_word_point): New
7495 declaration.
7496
7497 2019-06-13 Pedro Alves <palves@redhat.com>
7498
7499 * compile/compile.c: Include "cli/cli-option.h".
7500 (compile_print_value): Scope data pointer is now a
7501 value_print_options pointer; adjust.
7502 (compile_print_command): Process options. Scope data pointer is
7503 now a value_print_options pointer; adjust.
7504 (_initialize_compile): Update "compile print"'s help to include
7505 supported options. Install a completer for "compile print".
7506 * cp-valprint.c (show_vtblprint, show_objectprint)
7507 (show_static_field_print): Delete.
7508 (_initialize_cp_valprint): Don't install "set print
7509 static-members", "set print vtbl", "set print object" here.
7510 * printcmd.c: Include "cli/cli-option.h" and
7511 "common/gdb_optional.h".
7512 (print_command_parse_format): Rework to fill in a
7513 value_print_options instead of a format_data.
7514 (print_value): Change parameter type from format_data pointer to
7515 value_print_options reference. Adjust.
7516 (print_command_1): Process options. Adjust to pass down a
7517 value_print_options.
7518 (print_command_completer): New.
7519 (_initialize_printcmd): Install print_command_completer as
7520 handle_brkchars completer for the "print" command. Update
7521 "print"'s help to include supported options.
7522 * valprint.c: Include "cli/cli-option.h".
7523 (show_vtblprint, show_objectprint, show_static_field_print): Moved
7524 here from cp-valprint.c.
7525 (boolean_option_def, uinteger_option_def)
7526 (value_print_option_defs, make_value_print_options_def_group):
7527 New. Use gdb::option::add_setshow_cmds_for_options to install
7528 "set print elements", "set print null-stop", "set print repeats",
7529 "set print pretty", "set print union", "set print array", "set
7530 print address", "set print symbol", "set print array-indexes".
7531 * valprint.h: Include <string> and "cli/cli-option.h".
7532 (make_value_print_options_def_group): Declare.
7533 (print_value): Change parameter type from format_data pointer to
7534 value_print_options reference.
7535 (print_command_completer): Declare.
7536
7537 2019-06-13 Pedro Alves <palves@redhat.com>
7538
7539 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
7540 (COMMON_SFILES): Add maint-test-settings.c.
7541 * cli/cli-decode.c (boolean_enums): New global, factored out from
7542 ...
7543 (add_setshow_boolean_cmd): ... here.
7544 * cli/cli-decode.h (boolean_enums): Declare.
7545 * cli/cli-option.c: New file.
7546 * cli/cli-option.h: New file.
7547 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
7548 factored out from ...
7549 (parse_cli_boolean_value(const char *)): ... this.
7550 (is_unlimited_literal): Change parameter type to pointer to
7551 pointer. Adjust and advance ARG pointer.
7552 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
7553 (parse_cli_var_enum): New, factored out from ...
7554 (do_set_command): ... this. Adjust.
7555 * cli/cli-setshow.h (parse_cli_boolean_value)
7556 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
7557 (parse_cli_var_enum): Declare.
7558 * cli/cli-utils.c: Include "cli/cli-option.h".
7559 (get_ulongest): New.
7560 * cli/cli-utils.h (get_ulongest): Declare.
7561 (check_for_argument): New overloads.
7562 * maint-test-options.c: New file.
7563
7564 2019-06-13 Pedro Alves <palves@redhat.com>
7565
7566 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
7567 parse a range if "-" is at the end of the string.
7568
7569 2019-06-13 Pedro Alves <palves@redhat.com>
7570
7571 * cli/cli-setshow.c (parse_auto_binary_operation)
7572 (parse_cli_boolean_value): Don't allow "o".
7573
7574 2019-06-13 Pedro Alves <palves@redhat.com>
7575
7576 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
7577 * NEWS: Mention maint test-settings KIND.
7578 * maint-test-settings.c: New file.
7579
7580 2019-06-13 Pedro Alves <palves@redhat.com>
7581
7582 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
7583 completer.
7584 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
7585 "set" completers.
7586
7587 2019-06-13 Pedro Alves <palves@redhat.com>
7588
7589 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
7590 after item.
7591
7592 2019-06-13 Pedro Alves <palves@redhat.com>
7593
7594 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
7595
7596 2019-06-13 Pedro Alves <palves@redhat.com>
7597
7598 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
7599 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
7600 call.
7601 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
7602 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
7603 calls.
7604 (check_for_argument): Skip spaces after argument.
7605
7606 2019-06-13 Pedro Alves <palves@redhat.com>
7607
7608 * thread.c (thread_apply_command): Adjust TID parsing.
7609 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
7610 detected before end of string.
7611 (tid_is_in_list): Error out if LIST is invalid.
7612
7613 2019-06-13 Pedro Alves <palves@redhat.com>
7614
7615 * completer.c (complete_line_internal_1): Rewind completion word
7616 point.
7617 (completion_tracker::advance_custom_word_point_by): Change
7618 parameter type to int.
7619 * completer.h (completion_tracker::advance_custom_word_point_by):
7620 Likewise.
7621
7622 2019-06-13 Pedro Alves <palves@redhat.com>
7623
7624 * completer.c (advance_to_completion_word): Handle delimiters.
7625
7626 2019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
7627
7628 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
7629
7630 2019-06-11 Tom Tromey <tom@tromey.com>
7631
7632 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
7633 (xmalloc_failed): Move to alloc.c.
7634 * alloc.c: New file.
7635 * Makefile.in (COMMON_SFILES): Add alloc.c.
7636
7637 2019-06-11 Tom Tromey <tom@tromey.com>
7638
7639 * nat/linux-waitpid.c: Don't include server.h.
7640 (linux_debug): Remove.
7641 (my_waitpid): Update.
7642
7643 2019-06-11 Tom Tromey <tromey@adacore.com>
7644
7645 * infcall.c (_initialize_infcall): Remove trailing newline from
7646 help.
7647 * user-regs.c (_initialize_user_regs): Remove trailing newline
7648 from help.
7649 * typeprint.c (_initialize_typeprint): Remove trailing newline
7650 from help.
7651 * reverse.c (_initialize_reverse): Remove trailing newlines from
7652 help.
7653 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
7654 from help.
7655 * language.c (add_set_language_command): Remove trailing newline
7656 from help.
7657 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
7658 help.
7659 * disasm.c (_initialize_disasm): Remove trailing newline from
7660 help.
7661 * top.c (init_main): Remove trailing newline from help.
7662 * interps.c (_initialize_interpreter): Remove trailing newline
7663 from help.
7664 * btrace.c (_initialize_btrace): Remove trailing newlines from
7665 help.
7666 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
7667 from help.
7668 * python/python.c (_initialize_python): Remove trailing newline
7669 from help.
7670 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
7671 help.
7672 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
7673 from help. Reformat some text.
7674 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
7675 from help.
7676 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
7677 newline from help.
7678
7679 2019-06-11 Tom Tromey <tromey@adacore.com>
7680
7681 * darwin-nat.c (darwin_decode_exception_message)
7682 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
7683
7684 2019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
7685
7686 * valops.c (value_slice): Check for not allocated or not
7687 associated values.
7688
7689 2019-06-10 Tom de Vries <tdevries@suse.de>
7690
7691 PR gdb/24618
7692 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
7693 sure an empty slot (defined by a 32-bit zero pair) is recognized as
7694 invalid.
7695
7696 2019-06-10 Tom de Vries <tdevries@suse.de>
7697
7698 PR gdb/24611
7699 * linespec.c (linespec_lexer_lex_string): Remove incorrect
7700 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
7701
7702 2019-06-10 Tom de Vries <tdevries@suse.de>
7703
7704 PR symtab/24545
7705 * symtab.c (struct demangled_name_entry): Add language field.
7706 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
7707 static minimal symbol". Set and use language field.
7708
7709 2019-06-10 Tom Tromey <tromey@adacore.com>
7710
7711 * ada-lang.c (_initialize_ada_language): Update help text.
7712
7713 2019-06-10 Tom Tromey <tromey@adacore.com>
7714
7715 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
7716 with a newline.
7717 * guile/guile.c (handle_boot_error): Don't end warning with a
7718 newline.
7719 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
7720 warning with a newline.
7721 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
7722 newline.
7723 (s12z_frame_cache): Likewise.
7724 * dwarf-index-cache.c (index_cache::store): Don't end warning with
7725 a newline.
7726 * solib-svr4.c (disable_probes_interface): Don't end warning with
7727 a newline.
7728 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
7729 newline.
7730 * python/python.c (do_finish_initialization): Don't end warning
7731 with a newline.
7732
7733 2019-06-10 Tom Tromey <tom@tromey.com>
7734
7735 * python/py-breakpoint.c (gdbpy_breakpoint_created)
7736 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
7737 gdbpy_enter.
7738
7739 2019-06-10 Tom Tromey <tromey@adacore.com>
7740
7741 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
7742 data.
7743 (elf_new_init): Don't call stabsread_new_init.
7744 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
7745 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
7746 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
7747
7748 2019-06-10 Tom de Vries <tdevries@suse.de>
7749
7750 PR symtab/16264
7751 PR symtab/24517
7752 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
7753
7754 2019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
7755
7756 * source.c (find_and_open_source): Also rewrite relative file
7757 names.
7758
7759 2019-04-26 Amos Bird <amosbird@gmail.com>
7760
7761 * annotate.c (annotate_thread_exited): Add "thread-exited"
7762 annotation.
7763
7764 2019-06-06 Tom Tromey <tromey@adacore.com>
7765
7766 * maint.h (class scoped_command_stats): Use
7767 DISABLE_COPY_AND_ASSIGN.
7768 <print_time>: New method.
7769 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
7770 print_time.
7771 (scoped_command_stats::print_time): New method.
7772
7773 2019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
7774
7775 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
7776 instructions of lengths 6 or 8 bytes.
7777
7778 2019-06-04 Pedro Alves <palves@redhat.com>
7779
7780 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
7781
7782 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
7783 * breakpoint.c (condition_completer): Likewise.
7784 * cli/cli-dump.c (scan_expression): Likewise.
7785 * common/filestuff.c (mkdir_recursive): Likewise.
7786 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
7787 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
7788 (gdb_abspath): Likewise.
7789 * compile/compile-cplus-types.c
7790 (compile_cplus_instance::decl_name): Likewise.
7791 * completer.c (complete_explicit_location):
7792 (signal_completer, reg_or_group_completer_1): Likewise.
7793 * cp-support.c (cp_remove_params_if_any): Likewise.
7794 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
7795 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
7796 * infcmd.c (strip_bg_char): Likewise.
7797 * linespec.c (copy_token_string): Likewise.
7798 * mi/mi-main.c (output_cores): Likewise.
7799 * psymtab.c (psymtab_search_name):
7800 * symfile.c (test_set_ext_lang_command): Likewise.
7801 * target.c (target_fileio_read_stralloc): Likewise.
7802 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
7803 * value.c (complete_internalvar): Likewise.
7804
7805 2019-06-04 Christian Biesinger <cbiesinger@google.com>
7806
7807 Add objfile property to gdb.Type.
7808 * NEWS: Mention Python API addition.
7809 * python/py-type.c (typy_get_objfile): New method.
7810
7811 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7812
7813 * NEWS: Mention the new set|show style [title|highlight].
7814 Mention changes to "show style", "help" and "apropos".
7815
7816 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7817
7818 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
7819 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
7820 instead of print_help_for_command.
7821 (print_doc_of_command): New function.
7822 (help_list): Add 'apropos -v word' suggestion.
7823 (print_help_for_command): Style the command name using title style.
7824 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
7825 (_initialize_cli_cmds): Describe -v in apropos_command help.
7826
7827 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7828
7829 * cli/cli-style.h (cli_style_option): Add name in constructor,
7830 add m_name class member, add constructor with intensity,
7831 add name class function.
7832 (cli_style_option::add_setshow_commands): Remove name argument.
7833 (highlight_style, title_style): New styles.
7834 * cli/cli-style.c (do_show): New function that shows a style
7835 characteristic styling the style name with itself.
7836 (set_style_name): New function.
7837 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
7838 Update all callers according to the changes in cli/cli-style.h.
7839 * utils.h (fputs_highlighted): New function.
7840 * utils.c (fputs_highlighted): Likewise.
7841
7842 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7843
7844 * NEWS: Mention new pipe command and new convenience variables.
7845
7846 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7847
7848 * cli/cli-cmds.c (pipe_command): New function.
7849 (_initialize_cli_cmds): Call add_com for pipe_command.
7850 Define | as an alias for pipe.
7851 (exit_status_set_internal_vars): New function.
7852 (shell_escape): Call exit_status_set_internal_vars.
7853 cli/cli-decode.c (find_command_name_length): Recognize | as
7854 a single character command.
7855
7856 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7857
7858 * gdbcmd.h (execute_command_to_ui_file): New declaration.
7859 top.c (execute_command_to_ui_file): New function, mostly a copy
7860 of execute_command_to_string.
7861 (execute_command_to_string): Implement by calling
7862 execute_command_to_ui_file.
7863
7864 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7865
7866 * top.h (saved_command_line): Remove declaration.
7867 * top.c (previous_saved_command_line, previous_repeat_arguments):
7868 New variables.
7869 (saved_command_line): Make static, define together with other
7870 'repeat variables'.
7871 (dont_repeat): Clear repeat_arguments.
7872 (repeat_previous, get_saved_command_line, save_command_line):
7873 New functions.
7874 (gdb_init): Initialize saved_command_line
7875 and previous_saved_command_line.
7876 * main.c (captured_main_1): Remove saved_command_line initialization.
7877 * event-top.c (handle_line_of_input): Update to use
7878 the new 'repeat' related functions instead of direct access to
7879 saved_command_line.
7880 * command.h (repeat_previous, get_saved_command_line,
7881 save_command_line): New declarations.
7882 (dont_repeat): Add comment.
7883
7884 2019-05-30 Tom Tromey <tromey@adacore.com>
7885
7886 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
7887 Fix comment.
7888 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
7889
7890 2019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
7891
7892 PR cli/24587
7893 * completer.c (complete): Initialize variable word.
7894
7895 2019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
7896
7897 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
7898 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
7899 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
7900 'body' is NULL to the outter 'if', protecting the '!is_define'
7901 situation as well.
7902
7903 2019-05-29 Tom Tromey <tromey@adacore.com>
7904
7905 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
7906 (dwarf_unknown): New function.
7907 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
7908 (dwarf_type_encoding_name): Use dwarf_unknown.
7909
7910 2019-05-29 Tom Tromey <tromey@adacore.com>
7911
7912 PR c++/20020:
7913 * cp-valprint.c (cp_print_value_fields): Call
7914 cp_print_static_field inside "try".
7915
7916 2019-05-29 Tom Tromey <tromey@adacore.com>
7917
7918 * inflow.c (struct terminal_info): Add default operator=.
7919 * configure: Rebuild.
7920 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
7921 -Wdeprecated-copy-dtor, -Wredundant-move.
7922
7923 2019-05-29 Tom Tromey <tromey@adacore.com>
7924
7925 * NEWS: Add entry.
7926 * infcmd.c (print_return_value_1): Handle finish_print
7927 option.
7928 (show_print_finish): New function.
7929 (_initialize_infcmd): Add "set/show print finish" commands.
7930 * valprint.c (user_print_options): Initialize new member.
7931 * valprint.h (struct value_print_options) <finish_print>: New
7932 member.
7933
7934 2019-05-28 Tom Tromey <tromey@adacore.com>
7935
7936 * ada-lang.c (ada_remove_Xbn_suffix)
7937 (find_old_style_renaming_symbol)
7938 (parse_old_style_renaming): Remove.
7939 (ada_find_renaming_symbol): Don't call
7940 find_old_style_renaming_symbol.
7941 (ada_is_renaming_symbol): Rename from
7942 ada_find_renaming_symbol. Remove "block" parameter. Return
7943 bool. Now static.
7944 (ada_read_var_value): Update and simplify.
7945 * ada-exp.y (write_var_or_type): Remove old code.
7946
7947 2019-05-28 Alan Hayward <alan.hayward@arm.com>
7948
7949 PR gdb/25010
7950 * event-top.c: Remove include comment.
7951 * inflow.c (class scoped_ignore_sigttou): Move from here...
7952 * inflow.h (class scoped_ignore_sigttou): ...to here.
7953 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
7954 * top.c: Remove include comment.
7955
7956 2019-05-27 Tom Tromey <tom@tromey.com>
7957
7958 * NEWS: Fix typo.
7959
7960 2019-05-22 Tom Tromey <tromey@adacore.com>
7961
7962 * target.c (target_follow_exec): Constify parameter.
7963 * target-delegates.c: Rebuild.
7964 * remote.c (remote_target::follow_exec): Constify parameter.
7965 * infrun.c (follow_exec): Constify parameter.
7966 * target.h (struct target_ops) <follow_exec>: Constify parameter.
7967 (target_follow_exec): Likewise.
7968
7969 2019-05-22 Alan Hayward <alan.hayward@arm.com>
7970
7971 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
7972 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
7973
7974 2019-05-22 Alan Hayward <alan.hayward@arm.com>
7975
7976 * NEWS: Add debugredirect and testsuite sections.
7977
7978 2019-05-22 Simon Cook <simon.cook@embecosm.com>
7979
7980 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
7981 target descriptions using exclusively floating point register name
7982 aliases.
7983
7984 2019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7985
7986 PR gdb/18644:
7987 * f-lang.c (build_fortran_types): Handle the case where
7988 gdbarch_floatformat_for_type returns a nullptr.
7989
7990 2019-05-21 Tom de Vries <tdevries@suse.de>
7991
7992 PR cli/24587
7993 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
7994
7995 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
7996
7997 PR gdb/18644:
7998 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
7999 16-byte floats.
8000 * i386-tdep.c (i386_floatformat_for_type): Use
8001 floatformats_ia64_quad for the 16-byte floating point component
8002 within a fortran 32-byte complex number.
8003
8004 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
8005
8006 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
8007 delete default constructor.
8008 (find_partial_die): Update to return const struct.
8009 (partial_die_parent_scope): Move variable declaration into scope
8010 of its use and change its type to auto.
8011 (guess_partial_die_structure_name): Likewise.
8012 (partial_die_info::fixup): Likewise.
8013
8014 2019-05-17 Tom Tromey <tromey@adacore.com>
8015
8016 * source.c (find_and_open_source): Remove cast.
8017
8018 2019-05-17 Tom Tromey <tromey@adacore.com>
8019
8020 * annotate.c (annotate_source): Make "filename" const.
8021 * annotate.h (annotate_source): Use const.
8022
8023 2019-05-17 Alan Hayward <alan.hayward@arm.com>
8024
8025 * disasm.c (set_disassembler_options): Send errors to stderr.
8026
8027 2019-05-17 Alan Hayward <alan.hayward@arm.com>
8028
8029 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
8030 (cli_interp_base::set_logging): Check debug_redirect.
8031 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
8032 * cli/cli-logging.c (debug_redirect): Add static variable.
8033 (pop_output_files): Add default param.
8034 (handle_redirections): Print debug setting.
8035 (show_logging_command): Likewise.
8036 (_initialize_cli_logging): Add debugredirect command.
8037 * interps.c (current_interp_set_logging): Add debug_redirect
8038 parameter.
8039 * interps.h (set_logging): Add debug_redirect parameter.
8040 (current_interp_set_logging): Likewise.
8041 * mi/mi-common.h: Likewise.
8042 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
8043
8044 2019-05-17 Alan Hayward <alan.hayward@arm.com>
8045 Tom Tromey <tromey@adacore.com>
8046
8047 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
8048 directly.
8049 * cli/cli-interp.h (make_logging_output): Remove declaration.
8050 * cli/cli-logging.c (make_logging_output): Remove function.
8051 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
8052 directly.
8053 * ui-file.c (tee_file::tee_file): Remove bools.
8054 (tee_file::~tee_file): Remove deletes.
8055 * ui-file.h (tee_file): Remove bools.
8056
8057 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
8058
8059 * mi/mi-cmds.h (mi_cmd_complete): New function.
8060 * mi/mi-main.c (mi_cmd_complete): Likewise.
8061 * mi/mi-cmds.c: Define new MI command -complete.
8062 * NEWS: Mention new -complete command.
8063
8064 2019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
8065
8066 * completer.h (complete): New function.
8067 * completer.c (complete): Likewise.
8068 * cli/cli-cmds.c: (complete_command): Update to use new complete()
8069 function defined in completer.h.
8070
8071 2019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
8072
8073 * MAINTAINERS (Write After Approval): Add myself.
8074
8075 2019-05-17 Tom de Vries <tdevries@suse.de>
8076
8077 PR gdb/24094
8078 * dwarf2read.c (struct cu_partial_die_info): New struct.
8079 (find_partial_die): Return cu_partial_die_info.
8080 (partial_die_parent_scope, guess_partial_die_structure_name)
8081 (partial_die_info::fixup): Handle new return type of find_partial_die.
8082
8083 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8084
8085 PR breakpoints/24541
8086 * stap-probe.c (stap_parse_register_operand): Make "regname" an
8087 "std::string", simplifying the algorithm.
8088
8089 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8090
8091 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
8092 (stap_static_probe_ops::get_probes): Likewise.
8093
8094 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8095
8096 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
8097 '-')" and "else if".
8098 (stap_parse_single_operand): Join checks for
8099 "gdbarch_stap_parse_special_token_p" and
8100 "gdbarch_stap_parse_special_token" in the same "if" statement.
8101 Invert check when verifying for operation on register
8102 displacement.
8103
8104 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8105
8106 * stap-probe.c (stap_get_opcode): Update comment.
8107 (stap_get_expected_argument_type): Likewise.
8108 (handle_stap_probe): Likewise.
8109
8110 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8111
8112 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
8113 return type to 'bool'. Adjust comment. Use 'bool' when
8114 appropriate.
8115 (i386_stap_parse_special_token_three_arg_disp): Likewise.
8116 * stap-probe.c (stap_parse_argument_1): Likewise.
8117 (stap_is_operator): Likewise.
8118 (stap_is_generic_prefix): Likewise.
8119 (stap_is_register_prefix): Likewise.
8120 (stap_is_register_indirection_prefix): Likewise.
8121 (stap_is_integer_prefix): Likewise.
8122 (stap_generic_check_suffix): Likewise.
8123 (stap_check_integer_suffix): Likewise.
8124 (stap_check_register_suffix): Likewise.
8125 (stap_check_register_indirection_suffix): Likewise.
8126 (stap_parse_register_operand): Likewise.
8127 (stap_parse_single_operand): Likewise.
8128 (stap_parse_argument_1): Likewise.
8129 (stap_probe::get_argument_count): Likewise.
8130 (stap_is_operator): Likewise.
8131
8132 2019-05-16 Tom Tromey <tromey@adacore.com>
8133
8134 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
8135 keyword to foreach.
8136
8137 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
8138
8139 * linux-thread-db.c (try_thread_db_load_1): Change return type
8140 to bool.
8141 (try_thread_db_load): Likewise.
8142 (try_thread_db_load_from_pdir_1): Likewise.
8143 (try_thread_db_load_from_pdir): Likewise.
8144 (try_thread_db_load_from_sdir): Likewise.
8145 (try_thread_db_load_from_dir): Likewise.
8146 (thread_db_load_search): Likewise.
8147 (has_libpthread): Likewise.
8148 (thread_db_load): Likewise.
8149
8150 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
8151
8152 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
8153 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
8154 NULL, and complain/return if that's the case.
8155
8156 2019-05-15 John Darrington <john@darrington.wattle.id.au>
8157
8158 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
8159 (advance, posn, abstract_read_memory): New functions.
8160 [struct mem_read_abstraction]: New struct.
8161 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
8162
8163 2019-05-14 Tom Tromey <tromey@adacore.com>
8164
8165 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
8166 value is not lval_memory.
8167
8168 2019-05-14 Tom Tromey <tromey@adacore.com>
8169
8170 * solib.c (info_sharedlibrary_command): Style the file name.
8171
8172 2019-05-14 Alan Hayward <alan.hayward@arm.com>
8173
8174 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
8175 (aarch64_vnv_type): Likewise.
8176 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
8177 * common/tdesc.c: Likewise.
8178 * common/tdesc.h (enum tdesc_type_kind): Likewise.
8179 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
8180 * features/aarch64-fpu.xml: Add ieee half view.
8181 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
8182 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
8183 * gdbtypes.h (struct builtin_type): Likewise.
8184 (struct objfile_type): Likewise.
8185
8186 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
8187
8188 * language.c (language_sniff_from_mangled_name): Fix "langauge"
8189 typo.
8190 * location.h (string_to_event_location): Likewise.
8191
8192 2019-05-11 Joel Brobecker <brobecker@adacore.com>
8193
8194 GDB 8.3 released.
8195
8196 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
8197
8198 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
8199 New variable declaration.
8200 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
8201 New variable.
8202 (print_one_breakpoint): Use ui_out::test_flags and new global
8203 variable to compute use_fixed_output.
8204 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
8205 Remove.
8206 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
8207 (mi_multi_location_breakpoint_output_fixed): Remove.
8208 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
8209 new variable.
8210 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
8211 fix_multi_location_breakpoint_output flag if version >= 3.
8212 * ui-out.h (enum ui_out_flag)
8213 <fix_multi_location_breakpoint_output>: New enumerator.
8214
8215 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
8216
8217 * contrib/cc-with-tweaks.sh: Validate dwz's work.
8218
8219 2019-05-10 Tom Tromey <tromey@adacore.com>
8220
8221 * ada-lang.c (catch_ada_completer): New function.
8222 (_initialize_ada_language): Use it.
8223
8224 2019-05-10 Tom Tromey <tromey@adacore.com>
8225
8226 * thread.c (print_thread_info): Make "requested_threads" const.
8227 * gdbthread.h (print_thread_info): Make "requested_threads"
8228 const.
8229 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
8230 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
8231
8232 2019-05-08 Tom Tromey <tom@tromey.com>
8233
8234 * gdbtypes.c (objfile_type_data): Change type.
8235 (objfile_type, _initialize_gdbtypes): Update.
8236
8237 2019-05-08 Tom Tromey <tom@tromey.com>
8238
8239 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
8240 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
8241 (_initialize_dwarf2_frame): Update.
8242
8243 2019-05-08 Tom Tromey <tom@tromey.com>
8244
8245 * objc-lang.c (objc_objfile_data): Change type.
8246 (find_methods): Update.
8247 (_initialize_objc_lang): Remove.
8248
8249 2019-05-08 Tom Tromey <tom@tromey.com>
8250
8251 * stabsread.c (rs6000_builtin_type_data): Change type.
8252 (rs6000_builtin_type, _initialize_stabsread): Update.
8253
8254 2019-05-08 Tom Tromey <tom@tromey.com>
8255
8256 * mips-tdep.c (mips_pdr_data): Remove.
8257 (_initialize_mips_tdep): Update.
8258
8259 2019-05-08 Tom Tromey <tom@tromey.com>
8260
8261 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
8262 (hppa_init_objfile_priv_data, read_unwind_info)
8263 (find_unwind_entry, _initialize_hppa_tdep): Update.
8264
8265 2019-05-08 Tom Tromey <tom@tromey.com>
8266
8267 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
8268 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
8269 on obstack.
8270 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
8271
8272 2019-05-08 Tom Tromey <tom@tromey.com>
8273
8274 * mdebugread.c (basic_type_data): Change type.
8275 (basic_type, _initialize_mdebugread): Update.
8276
8277 2019-05-08 Tom Tromey <tom@tromey.com>
8278
8279 * common/gdb_unique_ptr.h (struct noop_deleter): New.
8280
8281 2019-05-08 Tom Tromey <tom@tromey.com>
8282
8283 * nto-tdep.c (nto_inferior_data_reg): Change type.
8284 (nto_inferior_data): Update.
8285 (nto_inferior_data_cleanup, nto_new_inferior_data)
8286 (_initialize_nto_tdep): Remove.
8287 * nto-tdep.h (struct nto_inferior_data): Add initializers.
8288
8289 2019-05-08 Tom Tromey <tom@tromey.com>
8290
8291 * ada-lang.c (struct ada_inferior_data): Add initializers.
8292 (ada_inferior_data): Change type.
8293 (ada_inferior_data_cleanup): Remove.
8294 (get_ada_inferior_data, ada_inferior_exit)
8295 (struct ada_pspace_data): Add initializers, destructor.
8296 (ada_pspace_data_handle): Change type.
8297 (get_ada_pspace_data): Update.
8298 (ada_pspace_data_cleanup): Remove.
8299
8300 2019-05-08 Tom Tromey <tom@tromey.com>
8301
8302 * coffread.c (struct coff_symfile_info): Add initializers.
8303 (coff_objfile_data_key): Move lower. Change type.
8304 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
8305 Update.
8306 (coff_free_info): Remove.
8307
8308 2019-05-08 Tom Tromey <tom@tromey.com>
8309
8310 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
8311 (fbsd_pspace_data_handle): Move lower. Change type.
8312 (get_fbsd_pspace_data): Update.
8313 (fbsd_pspace_data_cleanup): Remove.
8314 (_initialize_fbsd_tdep): Update.
8315
8316 2019-05-08 Tom Tromey <tom@tromey.com>
8317
8318 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
8319 (get_ada_tasks_pspace_data): Update.
8320 (ada_tasks_pspace_data_cleanup): Remove.
8321 (_initialize_tasks): Update.
8322 (ada_tasks_inferior_data_handle): Change type.
8323 (get_ada_tasks_inferior_data): Update.
8324 (ada_tasks_inferior_data_cleanup): Remove.
8325 (struct ada_tasks_pspace_data): Add initializers.
8326
8327 2019-05-08 Tom Tromey <tom@tromey.com>
8328
8329 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
8330 * symfile-debug.c (debug_sym_get_probes): Change type.
8331 * stap-probe.c (handle_stap_probe):
8332 (stap_static_probe_ops::get_probes): Change type.
8333 * probe.h (class static_probe_ops) <get_probes>: Change type.
8334 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
8335 (parse_probes_in_pspace): Update.
8336 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
8337 Update.
8338 (any_static_probe_ops::get_probes): Change type.
8339 * elfread.c (elfread_data): New typedef.
8340 (probe_key): Change type.
8341 (elf_get_probes): Likewise. Update.
8342 (probe_key_free): Remove.
8343 (_initialize_elfread): Update.
8344 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
8345 Change type.
8346 (dtrace_process_dof_probe, dtrace_process_dof)
8347 (dtrace_static_probe_ops::get_probe): Change type.
8348
8349 2019-05-08 Tom Tromey <tom@tromey.com>
8350
8351 * xcoffread.c (struct xcoff_symfile_info): Rename from
8352 coff_symfile_info. Add initializers.
8353 (xcoff_objfile_data_key): Move lower. Change type.
8354 (XCOFF_DATA): Rewrite.
8355 (xcoff_free_info): Remove.
8356 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
8357 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
8358 (xcoff_initial_scan): Update.
8359
8360 2019-05-08 Tom Tromey <tom@tromey.com>
8361
8362 * solib-svr4.c (struct svr4_info): Add initializers and
8363 destructor.
8364 <probes_table>: Now an htab_up.
8365 (solib_svr4_pspace_data): Change type.
8366 (free_probes_table): Simplify.
8367 (~svr4_info): Rename from svr4_pspace_data_cleanup.
8368 (get_svr4_info, probes_table_htab_remove_objfile_probes)
8369 (probes_table_remove_objfile_probes, register_solib_event_probe)
8370 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
8371 (_initialize_svr4_solib): Update.
8372
8373 2019-05-08 Tom Tromey <tom@tromey.com>
8374
8375 * remote.c (remote_pspace_data): Change type.
8376 (remote_pspace_data_cleanup): Remove.
8377 (get_remote_exec_file, set_pspace_remote_exec_file)
8378 (_initialize_remote): Update.
8379
8380 2019-05-08 Tom Tromey <tom@tromey.com>
8381
8382 * breakpoint.c (breakpoint_objfile_key): Change type.
8383 (get_breakpoint_objfile_data): Update.
8384 (free_breakpoint_objfile_data): Remove.
8385 (_initialize_breakpoint): Update.
8386
8387 2019-05-08 Tom Tromey <tom@tromey.com>
8388
8389 * linux-tdep.c (struct linux_info): Add initializers.
8390 (linux_inferior_data): Move. Change type.
8391 (invalidate_linux_cache_inf): Update.
8392 (linux_inferior_data_cleanup): Remove.
8393 (get_linux_inferior_data, _initialize_linux_tdep): Update.
8394
8395 2019-05-08 Tom Tromey <tom@tromey.com>
8396
8397 * auxv.c (auxv_inferior_data): Move. Change type.
8398 (auxv_inferior_data_cleanup): Remove.
8399 (invalidate_auxv_cache_inf): Rewrite.
8400 (get_auxv_inferior_data, _initialize_auxv): Update.
8401
8402 2019-05-08 Tom Tromey <tom@tromey.com>
8403
8404 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
8405 (symfile_debug_objfile_data_key): Change type.
8406 (symfile_debug_installed, debug_qf_has_symbols)
8407 (debug_qf_find_last_source_symtab)
8408 (debug_qf_forget_cached_source_info)
8409 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
8410 (debug_qf_print_stats, debug_qf_dump)
8411 (debug_qf_expand_symtabs_for_function)
8412 (debug_qf_expand_all_symtabs)
8413 (debug_qf_expand_symtabs_with_fullname)
8414 (debug_qf_map_matching_symbols)
8415 (debug_qf_expand_symtabs_matching)
8416 (debug_qf_find_pc_sect_compunit_symtab)
8417 (debug_qf_map_symbol_filenames)
8418 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
8419 (debug_sym_new_init, debug_sym_init, debug_sym_read)
8420 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
8421 (debug_sym_read_linetable, debug_sym_relocate): Update.
8422 (symfile_debug_free_objfile): Remove.
8423 (install_symfile_debug_logging, _initialize_symfile_debug):
8424 Update.
8425
8426 2019-05-08 Tom Tromey <tom@tromey.com>
8427
8428 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
8429 allocate_on_obstack.
8430 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
8431 (get_dwarf2_per_objfile): Update.
8432 (set_dwarf2_per_objfile): Remove.
8433 (dwarf2_has_info, dwarf2_get_section_info): Update.
8434 (dwarf2_free_objfile): Remove.
8435 (_initialize_dwarf2_read): Update.
8436
8437 2019-05-08 Tom Tromey <tom@tromey.com>
8438
8439 * auto-load.c (struct auto_load_pspace_info): Add destructor and
8440 initializers.
8441 <unsupported_script_warning_printed,
8442 script_not_found_warning_printed>: Now bool.
8443 (auto_load_pspace_data): Change type.
8444 (~auto_load_pspace_info): Rename from
8445 auto_load_pspace_data_cleanup.
8446 (get_auto_load_pspace_data, init_loaded_scripts_info)
8447 (clear_section_scripts, maybe_print_unsupported_script_warning)
8448 (maybe_print_script_not_found_warning, _initialize_auto_load):
8449 Update.
8450
8451 2019-05-08 Tom Tromey <tom@tromey.com>
8452
8453 * objfiles.c (objfile_pspace_info): Add destructor and
8454 initializers.
8455 (objfiles_pspace_data): Change type.
8456 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
8457 (get_objfile_pspace_data): Update.
8458 (objfiles_bfd_data): Change type.
8459 (get_objfile_bfd_data): Update.
8460 (objfile_bfd_data_free, _initialize_objfiles): Remove.
8461
8462 2019-05-08 Tom Tromey <tom@tromey.com>
8463
8464 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
8465 Change type.
8466 (get_catch_syscall_inferior_data): Update.
8467 (catch_syscall_inferior_data_cleanup): Remove.
8468 (_initialize_break_catch_syscall): Update.
8469
8470 2019-05-08 Tom Tromey <tom@tromey.com>
8471
8472 * inflow.c (struct terminal_info): Add destructor and
8473 initializers.
8474 (inflow_inferior_data): Change type.
8475 (~terminal_info): Rename from inflow_inferior_data_cleanup.
8476 (get_inflow_inferior_data, inflow_inferior_exit)
8477 (swap_terminal_info, _initialize_inflow): Update.
8478
8479 2019-05-08 Tom Tromey <tom@tromey.com>
8480
8481 * target-dcache.c (target_dcache_cleanup): Remove.
8482 (target_dcache_aspace_key): Change type.
8483 (target_dcache_init_p, target_dcache_invalidate)
8484 (target_dcache_get, target_dcache_get_or_init)
8485 (_initialize_target_dcache): Update.
8486 * dcache.h (struct dcache_deleter): New.
8487
8488 2019-05-08 Tom Tromey <tom@tromey.com>
8489
8490 * symtab.c (struct symbol_cache): Add destructor and
8491 initializers.
8492 (symbol_cache_key): Move. Change type.
8493 (make_symbol_cache, free_symbol_cache): Remove.
8494 (get_symbol_cache): Update.
8495 (symbol_cache_cleanup): Remove.
8496 (ALL_PSPACES, symbol_cache_flush)
8497 (maintenance_print_symbol_cache)
8498 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
8499 Update.
8500
8501 2019-05-08 Tom Tromey <tom@tromey.com>
8502
8503 * symtab.c (struct main_info): Add destructor and initializers.
8504 (main_progspace_key): Move. Change type.
8505 (get_main_info): Update.
8506 (main_info_cleanup): Remove.
8507 (_initialize_symtab): Update.
8508
8509 2019-05-08 Tom Tromey <tom@tromey.com>
8510
8511 * registry.h (DECLARE_REGISTRY): Define the _key class.
8512
8513 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
8514
8515 * NEWS: Merge two 'New commands' sections.
8516
8517 2019-05-08 Joel Brobecker <brobecker@adacore.com>
8518
8519 * ada-valprint.c (ada_val_print_gnat_array): Remove language
8520 parameter and use Ada language definition instead.
8521 (ada_val_print_ptr): Remove unused language parameter.
8522 (ada_val_print_num): Remove language parameter and use Ada language
8523 definition instead.
8524 (ada_val_print_enum, ada_val_print_flt): Remove unused language
8525 parameter.
8526 (ada_val_print_struct_union, ada_val_print_ref): Remove language
8527 parameter and use Ada language definition instead.
8528 (ada_val_print_1): Update all ada_val_print_xxx calls.
8529 Remove language parameter.
8530 (ada_val_print): Update ada_val_print_1 call.
8531
8532 2019-05-08 Tom Tromey <tromey@adacore.com>
8533
8534 * remote.c (remote_hw_watchpoint_limit)
8535 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
8536 Now static.
8537
8538 2019-05-08 Tom Tromey <tromey@adacore.com>
8539
8540 * maint.c (_initialize_maint_cmds): Move initialization code to
8541 remote.c.
8542 (watchdog, show_watchdog): Move to remote.c.
8543 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
8544 "watchdog" static.
8545 (_initialize_remote): Move initialization code from maint.c.
8546 * defs.h (watchdog): Don't declare.
8547
8548 2019-05-08 Tom Tromey <tromey@adacore.com>
8549
8550 * tui/tui-interp.c: Include main.h.
8551 * interps.c: Include main.h.
8552 * main.h (interpreter_p): Declare.
8553 * defs.h (interpreter_p): Don't declare.
8554
8555 2019-05-08 Tom Tromey <tromey@adacore.com>
8556
8557 * dwarf2loc.c: Include dwarf2read.h.
8558 * defs.h (read_unsigned_leb128): Don't declare.
8559 * dwarf2read.h (read_unsigned_leb128): Declare.
8560
8561 2019-05-08 Tom Tromey <tromey@adacore.com>
8562
8563 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
8564 method.
8565
8566 2019-05-08 Tom Tromey <tromey@adacore.com>
8567
8568 * utils.c (fputs_maybe_filtered): Reset style after paging, even
8569 when no wrap column is set.
8570
8571 2019-05-08 Tom Tromey <tromey@adacore.com>
8572
8573 * c-lang.c (c_get_string): Handle non-C-style arrays.
8574
8575 2019-05-08 Tom Tromey <tromey@adacore.com>
8576
8577 * typeprint.c (print_offset_data::update): Print the bit offset,
8578 not the number of bits remaining.
8579
8580 2019-05-08 Tom Tromey <tromey@adacore.com>
8581
8582 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
8583 padding at end of comment.
8584
8585 2019-05-08 Tom Tromey <tromey@adacore.com>
8586
8587 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
8588 Compare main types.
8589
8590 2019-05-06 Tom Tromey <tom@tromey.com>
8591
8592 * common/scoped_mmap.c: Include common-defs.h.
8593 * common/scoped_mmap.h: Don't include config.h.
8594
8595 2019-05-04 Tom Tromey <tom@tromey.com>
8596
8597 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
8598 (struct aarch64_call_info): Add initializers.
8599 <si>: Now a std::vector.
8600 (pass_on_stack, aarch64_push_dummy_call): Update.
8601
8602 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
8603 Tom Tromey <tom@tromey.com>
8604
8605 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
8606 (ppc_threads): Now a std::vector. Now static.
8607 (hwdebug_find_thread_points_by_tid)
8608 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
8609 Update.
8610
8611 2019-05-04 Tom Tromey <tom@tromey.com>
8612
8613 * arc-tdep.c (arc_tdesc_init): Return bool.
8614
8615 2019-05-04 Tom Tromey <tom@tromey.com>
8616
8617 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
8618 Use gdb_assert_not_reached.
8619
8620 2019-05-04 Tom Tromey <tom@tromey.com>
8621
8622 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
8623 "false".
8624
8625 2019-05-04 Tom Tromey <tom@tromey.com>
8626
8627 * arc-tdep.c (arc_tdesc_init): Use bool.
8628
8629 2019-05-04 Tom Tromey <tom@tromey.com>
8630
8631 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
8632
8633 2019-05-04 Tom Tromey <tom@tromey.com>
8634
8635 * cli/cli-cmds.c (valid_command_p): Return bool.
8636
8637 2019-05-04 Tom Tromey <tom@tromey.com>
8638
8639 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
8640 * command.h (valid_user_defined_cmd_name_p): Channge return type.
8641
8642 2019-05-04 Raul Tambre <raul@tambre.ee>
8643
8644 * python/lib/gdb/prompt.py (_ExtendedPrompt)
8645 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
8646 operator for comparison.
8647
8648 2019-05-04 Tom Tromey <tom@tromey.com>
8649
8650 * psymtab.c (psymbol_name_matches, match_partial_symbol)
8651 (lookup_partial_symbol, print_partial_symbols)
8652 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
8653 (psymbol_compare): Update.
8654 (add_psymbol_to_bcache): Clear the entire psymbol.
8655 (maintenance_check_psymtabs): Update.
8656 * psympriv.h (struct partial_symbol): Don't derive from
8657 general_symbol_info.
8658 <obj_section, unrelocated_address, address,
8659 set_unrelocated_address>: Update.
8660 <ginfo>: New member.
8661 * dwarf-index-write.c (write_psymbols, debug_names::insert)
8662 (debug_names::write_psymbols): Update.
8663
8664 2019-05-04 Tom de Vries <tdevries@suse.de>
8665
8666 * contrib/cc-with-tweaks.sh: Support -n arg.
8667
8668 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8669
8670 * corelow.c (core_target::detach): Ensure frame cache and
8671 register caches are cleared.
8672 inferior.c (exit_inferior_1): Likewise.
8673
8674 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
8675 Tom Tromey <tom@tromey.com>
8676
8677 * dictionary.c (collate_pending_symbols_by_language): Remove
8678 "struct" from foreach.
8679 * symtab.c (lookup_global_symbol_from_objfile)
8680 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
8681 foreach.
8682 * ser-tcp.c (net_open): Remove "struct" from foreach.
8683 * objfiles.c (objfile_relocate, objfile_rebase)
8684 (objfile_has_symbols): Remove "struct" from foreach.
8685 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
8686 from foreach.
8687 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
8688 foreach.
8689 * darwin-nat.c (thread_info_from_private_thread_info): Remove
8690 "struct" from foreach.
8691 * ada-lang.c (create_excep_cond_exprs)
8692 (ada_exception_catchpoint_cond_string): Remove "struct" from
8693 foreach.
8694
8695 2019-05-03 Tom Tromey <tromey@adacore.com>
8696
8697 * ada-exp.y (convert_char_literal): Check suffix of each
8698 enumerator.
8699
8700 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
8701
8702 PR ada/21406:
8703 * ada-exp.y (yywrap): Don't define.
8704 * ada-lex.l (%option): Add noyywrap
8705 (yywrap): Remove.
8706
8707 2019-05-03 Eli Zaretskii <eliz@gnu.org>
8708
8709 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
8710 _WIN32_WINNT to the XP level, unless already defined to a higher
8711 level.
8712
8713 * unittests/parse-connection-spec-selftests.c:
8714 * ser-tcp.c:
8715 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
8716 override.
8717
8718 * symfile.c (find_separate_debug_file): Remove colon from the
8719 drive spec of DOS/Windows file names of the target, so that the
8720 file name produced from DEBUGDIR and the target's directory will
8721 be valid on DOS/Windows systems.
8722
8723 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
8724
8725 * rust-lang.c (val_print_struct): Handle printing structures
8726 containing strings.
8727
8728 2019-05-02 Tom Tromey <tromey@adacore.com>
8729
8730 * valarith.c (_initialize_valarith): Remove.
8731
8732 2019-05-01 Tom Tromey <tromey@adacore.com>
8733
8734 * ada-lang.c (ada_value_primitive_field): Treat more fields as
8735 bitfields.
8736
8737 2019-05-01 Tom Tromey <tromey@adacore.com>
8738
8739 * ada-lang.c (ada_value_assign): Correctly compute starting offset
8740 for big-endian copies.
8741
8742 2019-04-30 Ali Tamur <tamur@google.com>
8743 * gdb/dwarf2read.c (read_3_bytes): New declaration.
8744 (read_attribute_value): Added DW_FORM_strx1-4 cases.
8745 (read_3_bytes): New function.
8746
8747 2019-04-30 Joel Brobecker <brobecker@adacore.com>
8748
8749 * windows-nat.c (main_thread_id): Delete.
8750 (handle_output_debug_string): Replace main_thread_id by
8751 current_event.dwThreadId.
8752 (fake_create_process): Likewise.
8753 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
8754 Do not set main_thread_id.
8755 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
8756 current_event.dwThreadId.
8757 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
8758
8759 2019-04-30 Joel Brobecker <brobecker@adacore.com>
8760
8761 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
8762 Use current_event.dwThreadId instead of main_thread_id.
8763
8764 2019-04-30 Tom Tromey <tromey@adacore.com>
8765
8766 * ada-lang.c (ada_lookup_simple_minsyms): New function.
8767 (create_excep_cond_exprs): Iterate over program spaces.
8768 (ada_exception_catchpoint_cond_string): Examine all minimal
8769 symbols for exception types.
8770
8771 2019-04-30 Tom Tromey <tromey@adacore.com>
8772
8773 PR c++/24470:
8774 * dwarf2read.c (process_structure_scope): Handle case where type
8775 has template parameters but no symbol was created.
8776
8777 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8778 Chris January <chris.january@arm.com>
8779
8780 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
8781 qualifier.
8782 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
8783
8784 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8785
8786 * f-typeprint.c (f_print_type): Update rules for printing
8787 whitespace.
8788 (f_type_print_varspec_suffix): Likewise.
8789
8790 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8791 Chris January <chris.january@arm.com>
8792
8793 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
8794 function arguments.
8795
8796 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8797
8798 * f-lang.c (build_fortran_types): Change name of void type to
8799 lower case.
8800 * f-typeprint.c (f_type_print_base): Print the name of the void
8801 type, rather than a fixed string.
8802 * f-valprint.c (f_decorations): Use lower case void string.
8803
8804 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8805 Chris January <chris.january@arm.com>
8806
8807 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
8808 types for Fortran.
8809
8810 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8811 Chris January <chris.january@arm.com>
8812 David Lecomber <david.lecomber@arm.com>
8813
8814 * f-exp.y (BINOP_INTRINSIC): New token.
8815 (exp): New parser rule handling BINOP_INTRINSIC.
8816 (f77_keywords): Add new builtin procedures.
8817 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
8818 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
8819 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
8820 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
8821 (print_unop_subexp_f): New function.
8822 (print_binop_subexp_f): New function.
8823 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
8824 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
8825 (dump_subexp_body_f): Likewise.
8826 (operator_check_f): Likewise.
8827 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
8828 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
8829
8830 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8831
8832 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
8833 UNOP_KIND.
8834 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
8835 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
8836 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
8837 (operator_length_f): New fuction.
8838 (print_subexp_f): New function.
8839 (op_name_f): New function.
8840 (dump_subexp_body_f): New function.
8841 (operator_check_f): New function.
8842 (exp_descriptor_f): Replace standard expression handling functions
8843 with new functions.
8844 * gdb/fortran-operator.def: New file.
8845 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
8846 * gdb/std-operator.def: Remove UNOP_KIND.
8847
8848 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8849
8850 * std-operator.def: Remove unbalanced, stray double quote
8851 character.
8852
8853 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
8854 Chris January <chris.january@arm.com>
8855 Daniel Everett <daniel.everett@arm.com>
8856 Nick Forrington <nick.forrington@arm.com>
8857 Richard Bunt <richard.bunt@arm.com>
8858
8859 * cp-valprint.c (cp_print_value_fields): Allow an additional level
8860 of depth when printing anonymous structs or unions.
8861 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
8862 Don't print either the top-level value, or the children if the
8863 max-depth is exceeded.
8864 (ppscm_print_children): When printing the key of a map, allow one
8865 extra level of depth.
8866 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
8867 print either the top-level value, or the children if the max-depth
8868 is exceeded.
8869 (print_children): When printing the key of a map, allow one extra
8870 level of depth.
8871 * python/py-value.c (valpy_format_string): Add max_depth keyword.
8872 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
8873 (user_print_options): Initialise max_depth field.
8874 (val_print_scalar_or_string_type_p): New function.
8875 (val_print): Check to see if the max depth has been reached.
8876 (val_print_check_max_depth): Define new function.
8877 (show_print_max_depth): New function.
8878 (_initialize_valprint): Add 'print max-depth' option.
8879 * valprint.h (struct value_print_options) <max_depth>: New field.
8880 (val_print_check_max_depth): Declare new function.
8881 * NEWS: Document new feature.
8882
8883 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
8884
8885 * ada-lang.c (ada_language_defn): Initialise new field.
8886 * c-lang.c (c_is_string_type_p): New function.
8887 (c_language_defn): Initialise new field.
8888 (cplus_language_defn): Initialise new field.
8889 (asm_language_defn): Initialise new field.
8890 (minimal_language_defn): Initialise new field.
8891 * c-lang.h (c_is_string_type_p): Declare new function.
8892 * d-lang.c (d_language_defn): Initialise new field.
8893 * f-lang.c (f_is_string_type_p): New function.
8894 (f_language_defn): Initialise new field.
8895 * go-lang.c (go_is_string_type_p): New function.
8896 (go_language_defn): Initialise new field.
8897 * language.c (default_is_string_type_p): New function.
8898 (unknown_language_defn): Initialise new field.
8899 (auto_language_defn): Initialise new field.
8900 * language.h (struct language_defn) <la_is_string_type_p>: New
8901 member variable.
8902 (default_is_string_type_p): Declare new function.
8903 * m2-lang.c (m2_language_defn): Initialise new field.
8904 * objc-lang.c (objc_language_defn): Initialise new field.
8905 * opencl-lang.c (opencl_language_defn): Initialise new field.
8906 * p-lang.c (pascal_is_string_type_p): New function.
8907 (pascal_language_defn): Initialise new field.
8908 * rust-lang.c (rust_is_string_type_p): New function.
8909 (rust_language_defn): Initialise new field.
8910
8911 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
8912
8913 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
8914 New field.
8915 * ada-lang.c (ada_language_defn): Initialise new field.
8916 * c-lang.c (c_language_defn): Likewise.
8917 (cplus_language_defn): Likewise.
8918 (asm_language_defn): Likewise.
8919 (minimal_language_defn): Likewise.
8920 * d-lang.c (d_language_defn): Likewise.
8921 * f-lang.c (f_language_defn): Likewise.
8922 * go-lang.c (go_language_defn): Likewise.
8923 * language.c (unknown_language_defn): Likewise.
8924 (auto_language_defn): Likewise.
8925 * m2-lang.c (m2_language_defn): Likewise.
8926 * objc-lang.c (objc_language_defn): Likewise.
8927 * opencl-lang.c (opencl_language_defn): Likewise.
8928 * p-lang.c (pascal_language_defn): Likewise.
8929 * rust-lang.c (rust_language_defn): Likewise.
8930
8931 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
8932
8933 * ada-lang.c (ada_is_character_type): Change return type to bool.
8934 (ada_is_string_type): Likewise.
8935 * ada-lang.h (ada_is_character_type): Update declaration
8936 (ada_is_string_type): Likewise.
8937
8938 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8939
8940 Support style in 'frame|thread apply'
8941
8942 * gdbcmd.h (execute_command_to_string): New term_out parameter.
8943 * record.c (record_start, record_stop): Update callers of
8944 execute_command_to_string with false.
8945 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
8946 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
8947 methods.
8948 (class string_file): New constructor with term_out parameter.
8949 Override methods term_out and can_emit_style_escape. New member
8950 term_out.
8951 (class stdio_file): Override can_emit_style_escape.
8952 (class tee_file): Override term_out and can_emit_style_escape.
8953 * utils.h (can_emit_style_escape): Remove.
8954 * utils.c (can_emit_style_escape): Likewise.
8955 Update all callers of can_emit_style_escape (SOMESTREAM) to
8956 SOMESTREAM->can_emit_style_escape.
8957 * source-cache.c (source_cache::get_source_lines): Likewise.
8958 * stack.c (frame_apply_command_count): Call execute_command_to_string
8959 passing the term_out characteristic of the current gdb_stdout.
8960 * thread.c (thr_try_catch_cmd): Likewise.
8961 * top.c (execute_command_to_string): pass term_out parameter
8962 to construct the string_file for the command output.
8963 * ui-file.c (term_cli_styling): New function (most code moved
8964 from utils.c can_emit_style_escape).
8965 (string_file::string_file, string_file::can_emit_style_escape,
8966 stdio_file::can_emit_style_escape, tee_file::term_out,
8967 tee_file::can_emit_style_escape): New functions.
8968
8969 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8970
8971 * NEWS: Mention the new set|show may-call-functions.
8972 * infcall.c (may_call_functions_p): New variable.
8973 (show_may_call_functions_p): New function.
8974 (call_function_by_hand_dummy): Throws an error if not
8975 may-call-functions.
8976 (_initialize_infcall): Call add_setshow_boolean_cmd for
8977 may-call-functions.
8978
8979 2019-04-25 Keith Seitz <keiths@redhat.com>
8980
8981 PR c++/24367
8982 * cp-support.c (inspect_type): Don't attempt substitutions
8983 of symbol with the same name.
8984
8985 2019-04-25 Tom Tromey <tromey@adacore.com>
8986
8987 PR gdb/24475:
8988 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
8989 static.
8990
8991 2019-04-25 Tom Tromey <tromey@adacore.com>
8992
8993 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
8994 rvalue reference.
8995 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
8996 (gdb_xml_parser::parse): Use std::move.
8997 * python/python-internal.h (gdbpy_convert_exception): Take a const
8998 reference.
8999 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
9000 std::move.
9001 * python/py-utils.c (gdbpy_convert_exception): Take a const
9002 reference.
9003 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
9004 Use std::move.
9005 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
9006 Use std::move.
9007 * mi/mi-main.c (mi_print_exception): Take a const reference.
9008 * main.c (handle_command_errors): Take a const reference.
9009 * linespec.c (parse_linespec): Use std::move.
9010 * infcall.c (run_inferior_call): Use std::move.
9011 (call_function_by_hand_dummy): Use std::move.
9012 * exec.c (try_open_exec_file): Use std::move.
9013 * exceptions.h (exception_print, exception_fprintf)
9014 (exception_print_same): Update.
9015 * exceptions.c (print_exception, exception_print)
9016 (exception_fprintf, exception_print_same): Change parameters to
9017 const reference.
9018 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
9019 * common/new-op.c: Use std::move.
9020 * common/common-exceptions.h (struct gdb_exception): Add move
9021 constructor.
9022 (struct gdb_exception_error, struct gdb_exception_quit, struct
9023 gdb_quit_bad_alloc): Change constructor to move constructor.
9024 (throw_exception): Change parameter to rvalue reference.
9025 * common/common-exceptions.c (throw_exception): Take rvalue
9026 reference.
9027 * cli/cli-interp.c (safe_execute_command): Use std::move.
9028 * breakpoint.c (insert_bp_location, location_to_sals): Use
9029 std::move.
9030
9031 2019-04-25 Tom Tromey <tromey@adacore.com>
9032
9033 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
9034 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
9035 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
9036 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
9037 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
9038 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
9039 guile/scm-value.c: Use unpack.
9040 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
9041 gdbscm_gdb_exception.
9042 (gdbscm_throw_gdb_exception): Likewise.
9043 (struct gdbscm_gdb_exception): New.
9044 (unpack): New function.
9045 (gdbscm_wrap): Use unpack.
9046
9047 2019-04-25 Tom Tromey <tromey@adacore.com>
9048
9049 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
9050 (gdb_rl_callback_handler): Use std::move.
9051 * common/common-exceptions.h (struct gdb_exception): Add move
9052 assignment operator.
9053 (throw_exception_sjlj): Change "exception" to const reference.
9054 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
9055 (throw_exception_sjlj): Change "exception" to const reference.
9056
9057 2019-04-25 Tom Tromey <tromey@adacore.com>
9058
9059 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
9060 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
9061 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
9062 Update.
9063 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
9064 Update.
9065 * mi/mi-interp.c (mi_interp::exec): Update.
9066 * linespec.c (parse_linespec): Update.
9067 * infcall.c (run_inferior_call): Update.
9068 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
9069 * guile/scm-symbol.c (gdbscm_lookup_symbol)
9070 (gdbscm_lookup_global_symbol): Update.
9071 * guile/scm-param.c (gdbscm_parameter_value): Update.
9072 * guile/scm-frame.c (gdbscm_frame_read_register)
9073 (gdbscm_frame_read_var): Update.
9074 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
9075 * exec.c (try_open_exec_file): Update.
9076 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
9077 (gdb_rl_callback_handler): Update.
9078 * common/common-exceptions.h (exception_none): Don't declare.
9079 * common/common-exceptions.c (exception_none): Don't define.
9080 (struct catcher) <exception>: Update.
9081 * cli/cli-interp.c (safe_execute_command): Update.
9082 * breakpoint.c (insert_bp_location, location_to_sals): Update.
9083
9084 2019-04-25 Ali Tamur <tamur@google.com>
9085
9086 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
9087 (read_attribute_value): Likewise.
9088 (dwarf2_read_addr_index): Update comment.
9089 (read_str_index): Add DW_FORM_strx.
9090 (dwarf2_string_attr): Likewise.
9091 (dwarf2_const_value_attr): Likewise.
9092 (dump_die_shallow): Likewise.
9093 (dwarf2_fetch_constant_bytes): Likewise.
9094 (skip_form_bytes): Likewise.
9095 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
9096
9097 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
9098
9099 PR corefiles/11608
9100 PR corefiles/18187
9101 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
9102 OFFSET. Verify if current mapping contains an ELF header.
9103 (linux_find_memory_regions_full): Adjust call to
9104 dump_mapping_p.
9105
9106 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
9107 Kang Li <kanglictf@gmail.com>
9108
9109 PR gdb/21600
9110
9111 * dwarf2-frame.c (read_initial_length): Be consistent about using
9112 unsigned representation of length.
9113 (decode_frame_entry_1): Likewise. Check for wraparound of
9114 end pointer as well as buffer overflow.
9115
9116 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
9117
9118 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
9119 "vq".
9120
9121 2019-04-24 Tom Tromey <tromey@adacore.com>
9122
9123 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
9124
9125 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9126
9127 * s12z-tdep.c (s12z_unwind_pc): Delete.
9128 (s12z_unwind_sp): Delete.
9129 (s12z_gdbarch_init): Don't register deleted functions with
9130 gdbarch.
9131
9132 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9133
9134 * rl78-tdep.c (rl78_unwind_sp): Delete.
9135 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
9136
9137 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9138
9139 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
9140 (xstormy16_unwind_pc): Delete.
9141 (xstormy16_dummy_id): Delete.
9142 (xstormy16_gdbarch_init): Don't register deleted functions with
9143 gdbarch.
9144
9145 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9146
9147 * vax-tdep.c (vax_unwind_pc): Delete.
9148 (vax_gdbarch_init): Don't register deleted function with gdbarch.
9149
9150 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9151
9152 * v850-tdep.c (v850_unwind_sp): Delete.
9153 (v850_unwind_pc): Delete.
9154 (v850_dummy_id): Delete.
9155 (v850_gdbarch_init): Don't register deleted functions with
9156 gdbarch.
9157
9158 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9159
9160 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
9161 (tilegx_unwind_pc): Delete.
9162 (tilegx_unwind_dummy_id): Delete.
9163 (tilegx_gdbarch_init): Don't register deleted functions with
9164 gdbarch.
9165
9166 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9167
9168 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
9169 (tic6x_dummy_id): Delete.
9170 (tic6x_gdbarch_init): Don't register deleted functions with
9171 gdbarch.
9172
9173 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9174
9175 * sparc-tdep.c (sparc_unwind_pc): Delete.
9176 (sparc32_gdbarch_init): Don't register deleted function with
9177 gdbarch.
9178
9179 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9180
9181 * sh-tdep.c (sh_unwind_sp): Delete.
9182 (sh_unwind_pc): Delete.
9183 (sh_dummy_id): Delete.
9184 (sh_gdbarch_init): Don't register deleted functions with
9185 gdbarch.
9186
9187 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9188
9189 * score-tdep.c (score_unwind_sp): Delete.
9190 (score_unwind_pc): Delete.
9191 (score_dummy_id): Delete.
9192 (score_gdbarch_init): Don't register deleted functions with
9193 gdbarch.
9194
9195 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9196
9197 * rx-tdep.c (rx_unwind_pc): Delete.
9198 (rx_unwind_sp): Delete.
9199 (rx_dummy_id): Delete.
9200 (rx_gdbarch_init): Don't register deleted functions with
9201 gdbarch. Update comment.
9202
9203 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9204
9205 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
9206 (rs6000_dummy_id): Delete.
9207 (rs6000_gdbarch_init): Don't register deleted functions with
9208 gdbarch.
9209
9210 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9211
9212 * or1k-tdep.c (or1k_dummy_id): Delete.
9213 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
9214
9215 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9216
9217 * nios2-tdep.c (nios2_dummy_id): Delete.
9218 (nios2_unwind_sp): Delete.
9219 (nios2_gdbarch_init): Don't register deleted functions with
9220 gdbarch.
9221
9222 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9223
9224 * nds32-tdep.c (nds32_dummy_id): Delete.
9225 (nds32_unwind_pc): Delete.
9226 (nds32_unwind_sp): Delete.
9227 (nds32_gdbarch_init): Don't register deleted functions with
9228 gdbarch.
9229
9230 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9231
9232 * msp430-tdep.c (msp430_unwind_pc): Delete.
9233 (msp430_unwind_sp): Delete.
9234 (msp430_dummy_id): Delete.
9235 (msp430_gdbarch_init): Don't register deleted functions with
9236 gdbarch.
9237
9238 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9239
9240 * moxie-tdep.c (moxie_unwind_sp): Delete.
9241 (moxie_unwind_pc): Delete.
9242 (moxie_dummy_id): Delete.
9243 (moxie_gdbarch_init): Don't register deleted functions with
9244 gdbarch.
9245
9246 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9247
9248 * mn10300-tdep.c (mn10300_dummy_id): Delete.
9249 (mn10300_unwind_pc): Delete.
9250 (mn10300_unwind_sp): Delete.
9251 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
9252 mn10300_unwind_sp.
9253 (mn10300_frame_unwind_init): Don't register deleted functions with
9254 gdbarch.
9255
9256 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9257
9258 * mep-tdep.c (mep_unwind_pc): Delete.
9259 (mep_unwind_sp): Delete.
9260 (mep_dummy_id): Delete.
9261 (mep_gdbarch_init): Don't register deleted functions with
9262 gdbarch.
9263
9264 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9265
9266 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
9267 (m68hc11_unwind_sp): Delete.
9268 (m68hc11_gdbarch_init): Don't register deleted functions with
9269 gdbarch.
9270
9271 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9272
9273 * m32r-tdep.c (m32r_unwind_sp): Delete.
9274 (m32r_unwind_pc): Delete.
9275 (m32r_dummy_id): Delete.
9276 (m32r_gdbarch_init): Don't register deleted functions with
9277 gdbarch.
9278
9279 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9280
9281 * m32c-tdep.c (m32c_unwind_pc): Delete.
9282 (m32c_unwind_sp): Delete.
9283 (m32c_dummy_id): Delete.
9284 (m32c_gdbarch_init): Don't register deleted functions with
9285 gdbarch.
9286
9287 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9288
9289 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
9290 (lm32_unwind_pc): Delete.
9291 (lm32_dummy_id): Delete.
9292 (lm32_gdbarch_init): Don't register deleted functions with
9293 gdbarch.
9294
9295 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9296
9297 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
9298 (iq2000_unwind_pc): Delete.
9299 (iq2000_dummy_id): Delete.
9300 (iq2000_gdbarch_init): Don't register deleted functions with
9301 gdbarch.
9302
9303 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9304
9305 * nds32-tdep.c (nds32_type_align): Delete.
9306 (nds32_push_dummy_call): Use type_align instead.
9307
9308 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9309
9310 * arm-tdep.c (arm_type_align): Only handle vector override case.
9311 (arm_push_dummy_call): Use type_align.
9312 (arm_gdbarch_init): Register arm_type_align gdbarch function.
9313
9314 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9315
9316 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
9317 case.
9318 (pass_on_stack): Use type_align.
9319 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
9320 function.
9321
9322 2019-04-23 Tom Tromey <tromey@adacore.com>
9323
9324 * dwarf2read.c (line_header::file_name_at): Remove unused
9325 overload.
9326
9327 2019-04-23 Tom de Vries <tdevries@suse.de>
9328
9329 PR gdb/24438
9330 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
9331 invocation.
9332
9333
9334 2019-03-27 Ali Tamur <tamur@google.com>
9335
9336 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
9337 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
9338 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
9339 (dwarf_expr_context::get_addr_index): Likewise
9340 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
9341 (symbol_needs_eval_context::get_addr_index): Likewise
9342 (disassemble_dwarf_expression): Add DW_OP_addrx
9343 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
9344 (read_cutu_die_from_dwo): Update comment
9345 (skip_one_die): Add DW_FORM_addrx
9346 (read_attribute_value): Likewise
9347 (var_decode_location): Add DW_OP_addrx
9348 (dwarf2_const_value_attr): Add DW_FORM_addrx
9349 (dump_die_shallow): Likewise
9350 (dwarf2_fetch_constant_bytes): Likewise
9351 (decode_locdesc): Add DW_OP_addrx
9352 (skip_form_bytes): Add DW_FORM_addrx
9353
9354 2019-04-22 Ali Tamur <tamur@google.com>
9355
9356 * MAINTAINERS (Write After Approval): Add self.
9357
9358 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
9359
9360 * solib-svr4.c (get_svr4_info): Add pspace parameter.
9361 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
9362 (open_symbol_file_object): Likewise.
9363 (svr4_default_sos): Add info parameter.
9364 (svr4_read_so_list): Likewise.
9365 (svr4_current_sos_direct): Adjust functions calls to pass down
9366 info.
9367 (svr4_current_sos_1): Add info parameter.
9368 (svr4_current_sos): Call get_svr4_info, pass info down to
9369 svr4_current_sos_1.
9370 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
9371 get_svr4_info.
9372 (svr4_in_dynsym_resolve_code): Pass current_program_space to
9373 get_svr4_info.
9374 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
9375 to get_svr4_info.
9376 (probes_table_remove_objfile_probes): Likewise.
9377 (register_solib_event_probe): Add info parameter.
9378 (solist_update_incremental): Pass info parameter down to
9379 svr4_read_so_list.
9380 (disable_probes_interface): Add info parameter.
9381 (svr4_handle_solib_event): Pass current_program_space to
9382 get_svr4_info. Adjust disable_probes_interface cleanup.
9383 (svr4_create_probe_breakpoints): Add info parameter, pass it
9384 down to register_solib_event_probe.
9385 (svr4_create_solib_event_breakpoints): Add info parameter,
9386 pass it down to svr4_create_probe_breakpoints.
9387 (enable_break): Pass info down to
9388 svr4_create_solib_event_breakpoints.
9389 (svr4_solib_create_inferior_hook): Pass current_program_space to
9390 get_svr4_info.
9391 (svr4_clear_solib): Likewise.
9392
9393 2019-04-22 Pedro Alves <palves@redhat.com>
9394
9395 * solib-svr4.c (svr4_free_objfile_observer): New.
9396 (probe_and_action::objfile): New field.
9397 (probes_table_htab_remove_objfile_probes)
9398 (probes_table_remove_objfile_probes): New functions.
9399 (register_solib_event_probe): Add 'objfile' parameter. Store it
9400 in the new probe_and_action. Don't store the probe in 'lookup'.
9401 (svr4_create_probe_breakpoints): Pass objfile to
9402 register_solib_event_probe.
9403 (_initialize_svr4_solib): Register a free_objfile observer.
9404
9405 2019-04-19 Tom Tromey <tom@tromey.com>
9406
9407 * common/queue.h: Remove.
9408
9409 2019-04-19 Tom Tromey <tom@tromey.com>
9410
9411 * event-loop.c: Don't include "common/queue.h".
9412
9413 2019-04-19 Tom Tromey <tom@tromey.com>
9414
9415 * remote.c (remote_target): Use delete.
9416 * remote-notif.h: Include <list>, not "common/queue.h".
9417 (notif_client_p): Remove typedef.
9418 (remote_notif_state): Add constructor, destructor, initializer.
9419 <notif_queue>: Now a std::list.
9420 (remote_notif_state_xfree): Don't declare.
9421 * remote-notif.c (remote_notif_process, handle_notification)
9422 (remote_notif_state_allocate): Update.
9423 (~remote_notif_state): Rename from remote_notif_state_xfree.
9424
9425 2019-04-19 Tom Tromey <tom@tromey.com>
9426
9427 * symfile.c (reread_symbols): Update.
9428 * objfiles.c (objfile_register_static_link)
9429 (objfile_lookup_static_link): Update
9430 (~objfile) Don't delete static_links.
9431 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
9432
9433 2019-04-19 Tom Tromey <tom@tromey.com>
9434
9435 * type-stack.h (struct type_stack) <insert>: Constify string.
9436 * type-stack.c (type_stack::insert): Constify string.
9437 * gdbtypes.h (lookup_template_type): Update.
9438 (address_space_name_to_int): Update.
9439 * gdbtypes.c (address_space_name_to_int): Make space_identifier
9440 const.
9441 (lookup_template_type): Make name const.
9442 * c-exp.y: Update rules.
9443 (lex_one_token, classify_name, classify_inner_name)
9444 (c_print_token): Update.
9445 * p-exp.y: Update rules.
9446 (yylex): Update.
9447 * f-exp.y: Update rules.
9448 (yylex): Update.
9449 * d-exp.y: Update rules.
9450 (lex_one_token, classify_name, classify_inner_name): Update.
9451 * parse.c (write_dollar_variable, copy_name): Return std::string.
9452 * parser-defs.h (copy_name): Change return type.
9453 * m2-exp.y: Update rules.
9454 (yylex): Update.
9455 * go-exp.y (lex_one_token): Update.
9456 Update rules.
9457 (classify_unsafe_function, classify_packaged_name)
9458 (classify_name, yylex): Update.
9459
9460 2019-04-19 Sergei Trofimovich <siarheit@google.com>
9461
9462 * configure.ac: add --enable-source-highlight switch.
9463 * configure: Regenerate.
9464 * top.c (print_gdb_version): plumb --enable-source-highlight
9465 status to "show configuration".
9466
9467 2019-04-19 Tom Tromey <tromey@adacore.com>
9468
9469 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
9470 Check ADA_TYPE_P.
9471 (empty_record, ada_template_to_fixed_record_type_1)
9472 (template_to_static_fixed_type)
9473 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
9474 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
9475 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
9476 macros.
9477
9478 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
9479
9480 PR symtab/24423:
9481 * source.c (print_source_lines_base): Advance "iter" when a
9482 control character is seen.
9483
9484 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9485
9486 * inferior.h (struct infcall_suspend_state_deleter):
9487 Catch exception in destructor to avoid crash.
9488
9489 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9490
9491 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
9492 close to the add_com "shell".
9493
9494 2019-04-18 Tom Tromey <tromey@adacore.com>
9495
9496 * process-stratum-target.h (class process_stratum_target)
9497 <stratum>: Add "final".
9498
9499 2019-04-17 Tom Tromey <tromey@adacore.com>
9500
9501 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
9502 against nullptr before use.
9503
9504 2019-04-17 Alan Hayward <alan.hayward@arm.com>
9505
9506 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
9507
9508 2019-04-17 Jim Wilson <jimw@sifive.com>
9509 Andrew Burgess <andrew.burgess@embecosm.com>
9510
9511 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
9512 code read might fail, assume 4-byte breakpoint in that case.
9513
9514 2019-04-15 Leszek Swirski <leszeks@google.com>
9515
9516 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
9517 rather than a hand-rolled POD check when checking for forced MEMORY
9518 classification.
9519
9520 2019-04-15 Alan Hayward <alan.hayward@arm.com>
9521
9522 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
9523 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
9524 function.
9525 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
9526 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
9527 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
9528 declaration.
9529
9530 2019-04-15 Alan Hayward <alan.hayward@arm.com>
9531
9532 * aarch64-linux-nat.c
9533 (aarch64_linux_nat_target::thread_architecture): Add override.
9534 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
9535 each VQ.
9536
9537 2019-04-15 Alan Hayward <alan.hayward@arm.com>
9538
9539 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
9540
9541 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
9542
9543 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
9544 target types of size 96-bits, add some additional comments, and
9545 check that the builtin type we found was the correct size.
9546
9547 2019-04-12 Eli Zaretskii <eliz@gnu.org>
9548
9549 * utils.c (prompt_for_continue): Don't restore the styling at the
9550 end, as applied_style has the wrong value. This fixes styling in
9551 long lists of file names that are interrupted by the "Continue?"
9552 prompt.
9553
9554 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
9555
9556 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
9557 * c-lang.c (c_language_defn): Likewise.
9558 (cplus_language_defn): Likewise.
9559 (asm_language_defn): Likewise.
9560 (minimal_language_defn): Likewise.
9561 * d-lang.c (d_language_defn): Likewise.
9562 * f-lang.c (f_language_defn): Likewise.
9563 * go-lang.c (go_language_defn): Likewise.
9564 * language.c (unknown_language_defn): Likewise.
9565 (auto_language_defn): Likewise.
9566 * language.h (struct language_defn): Remove la_magic field.
9567 (LANG_MAGIC): Delete.
9568 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
9569 * objc-lang.c (objc_language_defn): Likewise.
9570 * opencl-lang.c (opencl_language_defn): Likewise.
9571 * p-lang.c (pascal_language_defn): Likewise.
9572 * rust-lang.c (rust_language_defn): Likewise.
9573
9574 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
9575
9576 * riscv-tdep.c (riscv_type_align): New function.
9577 (riscv_type_alignment): Delete.
9578 (riscv_arg_location): Use 'type_align'.
9579 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
9580
9581 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
9582
9583 * gdbtypes.c (type_align): A struct with no non-static fields also
9584 has alignment of 1.
9585
9586 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
9587
9588 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
9589 component to 0.
9590 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
9591 member.
9592 (riscv_struct_info::analyse): New implementation using new
9593 analyse_inner member function.
9594 (riscv_struct_info::field_offset): New member function.
9595 (riscv_struct_info::m_offsets): New member variable.
9596 (riscv_struct_info::analyse_inner): New private member function,
9597 takes the old implementation of riscv_struct_info::analyse but
9598 extended to track field offsets.
9599 (riscv_call_arg_struct): Update the struct folding special cases
9600 to handle cases where empty C++ structs, which are non-zero
9601 length, are found.
9602 (riscv_arg_location): Initialise the length of each location, a
9603 non-zero length now indicates the location is in use.
9604 (riscv_push_dummy_call): Allow for the first location having a
9605 non-zero offset when setting up arguments.
9606 (riscv_return_value): Likewise, but for return values.
9607
9608 2019-04-11 Tom Tromey <tromey@adacore.com>
9609
9610 * utils.c (internal_vproblem): Make "msg" const.
9611
9612 2019-04-11 Alan Hayward <alan.hayward@arm.com>
9613
9614 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
9615 * trad-frame.c (trad_frame_reset_saved_regs): New function.
9616 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
9617 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
9618
9619 2019-04-10 Kevin Buettner <kevinb@redhat.com>
9620
9621 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
9622 function.
9623 (fill_gregset): Call amd64_linux_collect_native_gregset instead
9624 of amd64_collect_native_gregset.
9625 (amd64_linux_nat_target::store_registers): Likewise.
9626
9627 2019-04-10 Tom Tromey <tom@tromey.com>
9628
9629 * symtab.c (lookup_global_symbol_from_objfile)
9630 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
9631 * objfiles.h (class separate_debug_iterator): New.
9632 (class separate_debug_range): New.
9633 (struct objfile) <separate_debug_objfiles>: New method.
9634 (objfile_separate_debug_iterate): Don't declare.
9635 * objfiles.c (separate_debug_iterator::operator++): Rename from
9636 objfile_separate_debug_iterate.
9637 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
9638 iterator.
9639 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
9640 iterator.
9641
9642 2019-04-10 Tom Tromey <tom@tromey.com>
9643
9644 * symfile.c (reread_symbols): Remove old comment.
9645 * objfiles.c (free_all_objfiles): Fix a typo.
9646
9647 2019-04-10 Tom Tromey <tom@tromey.com>
9648
9649 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
9650 * minsyms.c (lookup_minimal_symbol): Use foreach.
9651 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
9652 (lookup_minimal_symbol_solib_trampoline): Likewise.
9653 * symfile.c (reread_symbols): Use foreach.
9654
9655 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
9656 Tom Tromey <tromey@adacore.com>
9657
9658 PR rust/24414:
9659 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
9660 (rust_lex_int_test): Change "value" to be LONGEST.
9661 (rust_lex_tests): Add test for long integer literal.
9662
9663 2019-04-09 Tom Tromey <tromey@adacore.com>
9664
9665 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
9666 to bool.
9667 (extended_remote_target::attach): Update.
9668 (remote_target::remote_notice_new_inferior): Update.
9669 (remote_target::add_current_inferior_and_thread): Update.
9670 * inferior.c (exit_inferior_1): Use "false".
9671 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
9672
9673 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
9674
9675 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
9676 the "start" command.
9677
9678 2019-04-08 Kevin Buettner <kevinb@redhat.com>
9679
9680 * python/py-inferior.c (infpy_thread_from_thread_handle):
9681 Adjust comments to reflect renaming of thread_from_thread_handle
9682 to thread_from_handle. Adjust keywords. Fix type error message.
9683 (inferior_object_methods): Add thread_from_handle. Retain
9684 thread_from_thread_handle, but mark it as deprecated.
9685
9686 2019-04-08 Kevin Buettner <kevinb@redhat.com>
9687
9688 * gdbthread.h (find_thread_by_handle): Revise declaration.
9689 * thread.c (find_thread_by_handle): Likewise. Adjust
9690 implementation too.
9691 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
9692 support for buffer objects as handles.
9693
9694 2019-04-08 Kevin Buettner <kevinb@redhat.com>
9695
9696 * python/py-infthread.c (thpy_thread_handle): New function.
9697 (thread_object_methods): Register thpy_thread_handle.
9698
9699 2019-04-08 Kevin Buettner <kevinb@redhat.com>
9700
9701 * gdbthread.h (thread_to_thread_handle): Declare.
9702 * thread.c (gdbtypes.h): Include.
9703 (thread_to_thread_handle): New function.
9704
9705 * target.h (struct target_ops): Add thread_info_to_thread_handle.
9706 (target_thread_info_to_thread_handle): Declare.
9707 * target.c (target_thread_info_to_thread_handle): New function.
9708 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
9709 * target-delegates.c: Regenerate.
9710
9711 * linux-thread-db.c (class thread_db_target): Add method
9712 thread_info_to_thread_handle.
9713 (thread_db_target::thread_info_to_thread_handle): Define.
9714 * remote.c (class remote_target): Add new method
9715 thread_info_to_thread_handle.
9716 (remote_target::thread_info_to_thread_handle): Define.
9717
9718 2019-04-08 Pedro Alves <palves@redhat.com>
9719
9720 * common/common-exceptions.c (throw_exception): Don't create
9721 named object to throw; throw directly.
9722 (throw_it): Likewise. Don't initialize gdb_exception::message
9723 here, with new; pass FMT and AP to the ctor instead.
9724 * common/common-exceptions.h: Include <string>.
9725 (gdb_exception::gdb_exception(enum return_reason, enum errors,
9726 const char *, va_list)): New ctor. Use std::make_shared.
9727 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
9728 errors)): Delete.
9729 (gdb_exception_error::gdb_exception_error(enum errors, const char
9730 *, va_list)): New.
9731 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
9732 Add assertion.
9733 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
9734 errors)): Delete.
9735 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
9736 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
9737 Add assertion.
9738
9739 2019-04-08 Tom Tromey <tom@tromey.com>
9740
9741 * valops.c (value_rtti_indirect_type): Replace throw_exception
9742 with throw.
9743 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
9744 with throw.
9745 * thread.c (thr_try_catch_cmd): Replace throw_exception with
9746 throw.
9747 * target.c (target_translate_tls_address): Replace throw_exception
9748 with throw.
9749 * stack.c (frame_apply_command_count): Replace throw_exception
9750 with throw.
9751 * solib-spu.c (append_ocl_sos): Replace throw_exception with
9752 throw.
9753 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
9754 with throw.
9755 * rs6000-tdep.c (rs6000_frame_cache)
9756 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
9757 * remote.c: Replace throw_exception with throw.
9758 * record-full.c (record_full_message, record_full_wait_1)
9759 (record_full_restore): Replace throw_exception with throw.
9760 * record-btrace.c:
9761 (get_thread_current_frame_id, record_btrace_start_replaying)
9762 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
9763 (cmd_record_btrace_start): Replace throw_exception with throw.
9764 * parse.c (parse_exp_in_context_1): Replace throw_exception with
9765 throw.
9766 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
9767 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
9768 * linespec.c:
9769 (find_linespec_symbols): Replace throw_exception with throw.
9770 * infrun.c (displaced_step_prepare, resume): Replace
9771 throw_exception with throw.
9772 * infcmd.c (post_create_inferior): Replace throw_exception with
9773 throw.
9774 * inf-loop.c (inferior_event_handler): Replace throw_exception
9775 with throw.
9776 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
9777 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
9778 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
9779 (get_prev_frame_always, get_frame_pc_if_available)
9780 (get_frame_address_in_block_if_available, get_frame_language):
9781 Replace throw_exception with throw.
9782 * frame-unwind.c (frame_unwind_try_unwinder): Replace
9783 throw_exception with throw.
9784 * eval.c (fetch_subexp_value, evaluate_var_value)
9785 (evaluate_funcall, evaluate_subexp_standard): Replace
9786 throw_exception with throw.
9787 * dwarf2loc.c (call_site_find_chain)
9788 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
9789 Replace throw_exception with throw.
9790 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
9791 with throw.
9792 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
9793 throw.
9794 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
9795 * completer.c (complete_line_internal): Replace throw_exception
9796 with throw.
9797 * compile/compile-object-run.c (compile_object_run): Replace
9798 throw_exception with throw.
9799 * cli/cli-script.c (process_next_line): Replace throw_exception
9800 with throw.
9801 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
9802 (btrace_enable, btrace_maint_update_pt_packets): Replace
9803 throw_exception with throw.
9804 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
9805 throw_exception with throw.
9806 * break-catch-throw.c (re_set_exception_catchpoint): Replace
9807 throw_exception with throw.
9808 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
9809 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
9810 * aarch64-tdep.c (aarch64_make_prologue_cache)
9811 (aarch64_make_stub_cache): Replace throw_exception with throw.
9812
9813 2019-04-08 Tom Tromey <tom@tromey.com>
9814
9815 * common/common-exceptions.c (throw_exception): Rename from
9816 throw_exception_cxx. Remove old copy. Make argument const.
9817 (throw_it): Create and throw exception objects directly.
9818 * common/common-exceptions.h (throw_exception): Make argument
9819 const.
9820 (struct gdb_exception_error): Add constructor.
9821 (struct gdb_exception_quit): Add constructor.
9822
9823 2019-04-08 Tom Tromey <tom@tromey.com>
9824
9825 * common/common-exceptions.h (exception_rethrow): Don't declare.
9826 (TRY_SJLJ): Update comment.
9827 (TRY, CATCH, END_CATCH): Remove.
9828 * common/common-exceptions.c (exception_rethrow): Remove.
9829
9830 2019-04-08 Tom Tromey <tom@tromey.com>
9831
9832 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
9833 Remove.
9834 (gdb_exception_error): Rename from
9835 gdb_exception_RETURN_MASK_ERROR.
9836 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
9837 (gdb_quit_bad_alloc): Update.
9838 * aarch64-tdep.c: Update.
9839 * ada-lang.c: Update.
9840 * ada-typeprint.c: Update.
9841 * ada-valprint.c: Update.
9842 * amd64-tdep.c: Update.
9843 * arch-utils.c: Update.
9844 * break-catch-throw.c: Update.
9845 * breakpoint.c: Update.
9846 * btrace.c: Update.
9847 * c-varobj.c: Update.
9848 * cli/cli-cmds.c: Update.
9849 * cli/cli-interp.c: Update.
9850 * cli/cli-script.c: Update.
9851 * common/common-exceptions.c: Update.
9852 * common/new-op.c: Update.
9853 * common/selftest.c: Update.
9854 * compile/compile-c-symbols.c: Update.
9855 * compile/compile-cplus-symbols.c: Update.
9856 * compile/compile-object-load.c: Update.
9857 * compile/compile-object-run.c: Update.
9858 * completer.c: Update.
9859 * corelow.c: Update.
9860 * cp-abi.c: Update.
9861 * cp-support.c: Update.
9862 * cp-valprint.c: Update.
9863 * darwin-nat.c: Update.
9864 * disasm-selftests.c: Update.
9865 * dtrace-probe.c: Update.
9866 * dwarf-index-cache.c: Update.
9867 * dwarf-index-write.c: Update.
9868 * dwarf2-frame-tailcall.c: Update.
9869 * dwarf2-frame.c: Update.
9870 * dwarf2loc.c: Update.
9871 * dwarf2read.c: Update.
9872 * eval.c: Update.
9873 * event-loop.c: Update.
9874 * event-top.c: Update.
9875 * exec.c: Update.
9876 * f-valprint.c: Update.
9877 * fbsd-tdep.c: Update.
9878 * frame-unwind.c: Update.
9879 * frame.c: Update.
9880 * gdbtypes.c: Update.
9881 * gnu-v3-abi.c: Update.
9882 * guile/guile-internal.h: Update.
9883 * guile/scm-block.c: Update.
9884 * guile/scm-breakpoint.c: Update.
9885 * guile/scm-cmd.c: Update.
9886 * guile/scm-disasm.c: Update.
9887 * guile/scm-frame.c: Update.
9888 * guile/scm-lazy-string.c: Update.
9889 * guile/scm-math.c: Update.
9890 * guile/scm-param.c: Update.
9891 * guile/scm-ports.c: Update.
9892 * guile/scm-pretty-print.c: Update.
9893 * guile/scm-symbol.c: Update.
9894 * guile/scm-symtab.c: Update.
9895 * guile/scm-type.c: Update.
9896 * guile/scm-value.c: Update.
9897 * i386-linux-tdep.c: Update.
9898 * i386-tdep.c: Update.
9899 * inf-loop.c: Update.
9900 * infcall.c: Update.
9901 * infcmd.c: Update.
9902 * infrun.c: Update.
9903 * jit.c: Update.
9904 * language.c: Update.
9905 * linespec.c: Update.
9906 * linux-fork.c: Update.
9907 * linux-nat.c: Update.
9908 * linux-tdep.c: Update.
9909 * linux-thread-db.c: Update.
9910 * main.c: Update.
9911 * mi/mi-cmd-break.c: Update.
9912 * mi/mi-cmd-stack.c: Update.
9913 * mi/mi-interp.c: Update.
9914 * mi/mi-main.c: Update.
9915 * objc-lang.c: Update.
9916 * p-valprint.c: Update.
9917 * parse.c: Update.
9918 * ppc-linux-tdep.c: Update.
9919 * printcmd.c: Update.
9920 * python/py-arch.c: Update.
9921 * python/py-breakpoint.c: Update.
9922 * python/py-cmd.c: Update.
9923 * python/py-finishbreakpoint.c: Update.
9924 * python/py-frame.c: Update.
9925 * python/py-framefilter.c: Update.
9926 * python/py-gdb-readline.c: Update.
9927 * python/py-inferior.c: Update.
9928 * python/py-infthread.c: Update.
9929 * python/py-lazy-string.c: Update.
9930 * python/py-linetable.c: Update.
9931 * python/py-objfile.c: Update.
9932 * python/py-param.c: Update.
9933 * python/py-prettyprint.c: Update.
9934 * python/py-progspace.c: Update.
9935 * python/py-record-btrace.c: Update.
9936 * python/py-record.c: Update.
9937 * python/py-symbol.c: Update.
9938 * python/py-type.c: Update.
9939 * python/py-unwind.c: Update.
9940 * python/py-utils.c: Update.
9941 * python/py-value.c: Update.
9942 * python/python.c: Update.
9943 * record-btrace.c: Update.
9944 * record-full.c: Update.
9945 * remote-fileio.c: Update.
9946 * remote.c: Update.
9947 * riscv-tdep.c: Update.
9948 * rs6000-aix-tdep.c: Update.
9949 * rs6000-tdep.c: Update.
9950 * rust-exp.y: Update.
9951 * rust-lang.c: Update.
9952 * s390-tdep.c: Update.
9953 * selftest-arch.c: Update.
9954 * solib-dsbt.c: Update.
9955 * solib-frv.c: Update.
9956 * solib-spu.c: Update.
9957 * solib-svr4.c: Update.
9958 * solib.c: Update.
9959 * sparc64-linux-tdep.c: Update.
9960 * stack.c: Update.
9961 * symfile-mem.c: Update.
9962 * symmisc.c: Update.
9963 * target.c: Update.
9964 * thread.c: Update.
9965 * top.c: Update.
9966 * tracefile-tfile.c: Update.
9967 * tui/tui.c: Update.
9968 * typeprint.c: Update.
9969 * unittests/cli-utils-selftests.c: Update.
9970 * unittests/parse-connection-spec-selftests.c: Update.
9971 * valops.c: Update.
9972 * valprint.c: Update.
9973 * value.c: Update.
9974 * varobj.c: Update.
9975 * windows-nat.c: Update.
9976 * x86-linux-nat.c: Update.
9977 * xml-support.c: Update.
9978
9979 2019-04-08 Tom Tromey <tom@tromey.com>
9980
9981 * xml-support.c: Use C++ exception handling.
9982 * x86-linux-nat.c: Use C++ exception handling.
9983 * windows-nat.c: Use C++ exception handling.
9984 * varobj.c: Use C++ exception handling.
9985 * value.c: Use C++ exception handling.
9986 * valprint.c: Use C++ exception handling.
9987 * valops.c: Use C++ exception handling.
9988 * unittests/parse-connection-spec-selftests.c: Use C++ exception
9989 handling.
9990 * unittests/cli-utils-selftests.c: Use C++ exception handling.
9991 * typeprint.c: Use C++ exception handling.
9992 * tui/tui.c: Use C++ exception handling.
9993 * tracefile-tfile.c: Use C++ exception handling.
9994 * top.c: Use C++ exception handling.
9995 * thread.c: Use C++ exception handling.
9996 * target.c: Use C++ exception handling.
9997 * symmisc.c: Use C++ exception handling.
9998 * symfile-mem.c: Use C++ exception handling.
9999 * stack.c: Use C++ exception handling.
10000 * sparc64-linux-tdep.c: Use C++ exception handling.
10001 * solib.c: Use C++ exception handling.
10002 * solib-svr4.c: Use C++ exception handling.
10003 * solib-spu.c: Use C++ exception handling.
10004 * solib-frv.c: Use C++ exception handling.
10005 * solib-dsbt.c: Use C++ exception handling.
10006 * selftest-arch.c: Use C++ exception handling.
10007 * s390-tdep.c: Use C++ exception handling.
10008 * rust-lang.c: Use C++ exception handling.
10009 * rust-exp.y: Use C++ exception handling.
10010 * rs6000-tdep.c: Use C++ exception handling.
10011 * rs6000-aix-tdep.c: Use C++ exception handling.
10012 * riscv-tdep.c: Use C++ exception handling.
10013 * remote.c: Use C++ exception handling.
10014 * remote-fileio.c: Use C++ exception handling.
10015 * record-full.c: Use C++ exception handling.
10016 * record-btrace.c: Use C++ exception handling.
10017 * python/python.c: Use C++ exception handling.
10018 * python/py-value.c: Use C++ exception handling.
10019 * python/py-utils.c: Use C++ exception handling.
10020 * python/py-unwind.c: Use C++ exception handling.
10021 * python/py-type.c: Use C++ exception handling.
10022 * python/py-symbol.c: Use C++ exception handling.
10023 * python/py-record.c: Use C++ exception handling.
10024 * python/py-record-btrace.c: Use C++ exception handling.
10025 * python/py-progspace.c: Use C++ exception handling.
10026 * python/py-prettyprint.c: Use C++ exception handling.
10027 * python/py-param.c: Use C++ exception handling.
10028 * python/py-objfile.c: Use C++ exception handling.
10029 * python/py-linetable.c: Use C++ exception handling.
10030 * python/py-lazy-string.c: Use C++ exception handling.
10031 * python/py-infthread.c: Use C++ exception handling.
10032 * python/py-inferior.c: Use C++ exception handling.
10033 * python/py-gdb-readline.c: Use C++ exception handling.
10034 * python/py-framefilter.c: Use C++ exception handling.
10035 * python/py-frame.c: Use C++ exception handling.
10036 * python/py-finishbreakpoint.c: Use C++ exception handling.
10037 * python/py-cmd.c: Use C++ exception handling.
10038 * python/py-breakpoint.c: Use C++ exception handling.
10039 * python/py-arch.c: Use C++ exception handling.
10040 * printcmd.c: Use C++ exception handling.
10041 * ppc-linux-tdep.c: Use C++ exception handling.
10042 * parse.c: Use C++ exception handling.
10043 * p-valprint.c: Use C++ exception handling.
10044 * objc-lang.c: Use C++ exception handling.
10045 * mi/mi-main.c: Use C++ exception handling.
10046 * mi/mi-interp.c: Use C++ exception handling.
10047 * mi/mi-cmd-stack.c: Use C++ exception handling.
10048 * mi/mi-cmd-break.c: Use C++ exception handling.
10049 * main.c: Use C++ exception handling.
10050 * linux-thread-db.c: Use C++ exception handling.
10051 * linux-tdep.c: Use C++ exception handling.
10052 * linux-nat.c: Use C++ exception handling.
10053 * linux-fork.c: Use C++ exception handling.
10054 * linespec.c: Use C++ exception handling.
10055 * language.c: Use C++ exception handling.
10056 * jit.c: Use C++ exception handling.
10057 * infrun.c: Use C++ exception handling.
10058 * infcmd.c: Use C++ exception handling.
10059 * infcall.c: Use C++ exception handling.
10060 * inf-loop.c: Use C++ exception handling.
10061 * i386-tdep.c: Use C++ exception handling.
10062 * i386-linux-tdep.c: Use C++ exception handling.
10063 * guile/scm-value.c: Use C++ exception handling.
10064 * guile/scm-type.c: Use C++ exception handling.
10065 * guile/scm-symtab.c: Use C++ exception handling.
10066 * guile/scm-symbol.c: Use C++ exception handling.
10067 * guile/scm-pretty-print.c: Use C++ exception handling.
10068 * guile/scm-ports.c: Use C++ exception handling.
10069 * guile/scm-param.c: Use C++ exception handling.
10070 * guile/scm-math.c: Use C++ exception handling.
10071 * guile/scm-lazy-string.c: Use C++ exception handling.
10072 * guile/scm-frame.c: Use C++ exception handling.
10073 * guile/scm-disasm.c: Use C++ exception handling.
10074 * guile/scm-cmd.c: Use C++ exception handling.
10075 * guile/scm-breakpoint.c: Use C++ exception handling.
10076 * guile/scm-block.c: Use C++ exception handling.
10077 * guile/guile-internal.h: Use C++ exception handling.
10078 * gnu-v3-abi.c: Use C++ exception handling.
10079 * gdbtypes.c: Use C++ exception handling.
10080 * frame.c: Use C++ exception handling.
10081 * frame-unwind.c: Use C++ exception handling.
10082 * fbsd-tdep.c: Use C++ exception handling.
10083 * f-valprint.c: Use C++ exception handling.
10084 * exec.c: Use C++ exception handling.
10085 * event-top.c: Use C++ exception handling.
10086 * event-loop.c: Use C++ exception handling.
10087 * eval.c: Use C++ exception handling.
10088 * dwarf2read.c: Use C++ exception handling.
10089 * dwarf2loc.c: Use C++ exception handling.
10090 * dwarf2-frame.c: Use C++ exception handling.
10091 * dwarf2-frame-tailcall.c: Use C++ exception handling.
10092 * dwarf-index-write.c: Use C++ exception handling.
10093 * dwarf-index-cache.c: Use C++ exception handling.
10094 * dtrace-probe.c: Use C++ exception handling.
10095 * disasm-selftests.c: Use C++ exception handling.
10096 * darwin-nat.c: Use C++ exception handling.
10097 * cp-valprint.c: Use C++ exception handling.
10098 * cp-support.c: Use C++ exception handling.
10099 * cp-abi.c: Use C++ exception handling.
10100 * corelow.c: Use C++ exception handling.
10101 * completer.c: Use C++ exception handling.
10102 * compile/compile-object-run.c: Use C++ exception handling.
10103 * compile/compile-object-load.c: Use C++ exception handling.
10104 * compile/compile-cplus-symbols.c: Use C++ exception handling.
10105 * compile/compile-c-symbols.c: Use C++ exception handling.
10106 * common/selftest.c: Use C++ exception handling.
10107 * common/new-op.c: Use C++ exception handling.
10108 * cli/cli-script.c: Use C++ exception handling.
10109 * cli/cli-interp.c: Use C++ exception handling.
10110 * cli/cli-cmds.c: Use C++ exception handling.
10111 * c-varobj.c: Use C++ exception handling.
10112 * btrace.c: Use C++ exception handling.
10113 * breakpoint.c: Use C++ exception handling.
10114 * break-catch-throw.c: Use C++ exception handling.
10115 * arch-utils.c: Use C++ exception handling.
10116 * amd64-tdep.c: Use C++ exception handling.
10117 * ada-valprint.c: Use C++ exception handling.
10118 * ada-typeprint.c: Use C++ exception handling.
10119 * ada-lang.c: Use C++ exception handling.
10120 * aarch64-tdep.c: Use C++ exception handling.
10121
10122 2019-04-08 Tom Tromey <tom@tromey.com>
10123
10124 * xml-support.c (gdb_xml_parser::parse): Update.
10125 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
10126 * value.c (show_convenience): Update.
10127 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
10128 (test_parse_flags_qcs): Update.
10129 * thread.c (thr_try_catch_cmd): Update.
10130 * target.c (target_translate_tls_address): Update.
10131 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
10132 (info_frame_command_core, frame_apply_command_count): Update.
10133 * rust-exp.y (rust_lex_exception_test): Update.
10134 * riscv-tdep.c (riscv_print_one_register_info): Update.
10135 * remote.c (remote_target::enable_btrace): Update.
10136 * record-btrace.c (record_btrace_enable_warn): Update.
10137 * python/py-utils.c (gdbpy_convert_exception): Update.
10138 * printcmd.c (do_one_display, print_variable_and_value): Update.
10139 * mi/mi-main.c (mi_print_exception): Update.
10140 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
10141 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
10142 * linux-nat.c (linux_nat_target::attach): Update.
10143 * linux-fork.c (class scoped_switch_fork_info): Update.
10144 * infrun.c (displaced_step_prepare): Update.
10145 * infcall.c (call_function_by_hand_dummy): Update.
10146 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
10147 * gnu-v3-abi.c (print_one_vtable): Update.
10148 * frame.c (get_prev_frame_always): Update.
10149 * f-valprint.c (info_common_command_for_block): Update.
10150 * exec.c (try_open_exec_file): Update.
10151 * exceptions.c (print_exception, exception_print)
10152 (exception_fprintf, exception_print_same): Update.
10153 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
10154 * dwarf-index-cache.c (index_cache::store)
10155 (index_cache::lookup_gdb_index): Update.
10156 * darwin-nat.c (maybe_cache_shell): Update.
10157 * cp-valprint.c (cp_print_value_fields): Update.
10158 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
10159 (gcc_cplus_symbol_address): Update.
10160 * compile/compile-c-symbols.c (gcc_convert_symbol)
10161 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
10162 * common/selftest.c: Update.
10163 * common/common-exceptions.h (struct gdb_exception) <message>: Now
10164 a std::string.
10165 (exception_try_scope_entry, exception_try_scope_exit): Don't
10166 declare.
10167 (struct exception_try_scope): Remove.
10168 (TRY): Don't use exception_try_scope.
10169 (struct gdb_exception): Add constructor, operator=.
10170 <what>: New method.
10171 (struct gdb_exception_RETURN_MASK_ALL)
10172 (struct gdb_exception_RETURN_MASK_ERROR)
10173 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
10174 (struct gdb_quit_bad_alloc): Update.
10175 * common/common-exceptions.c (exception_none): Change
10176 initializer.
10177 (struct catcher) <state, exception>: Initialize inline.
10178 <prev>: Remove member.
10179 (current_catcher): Remove.
10180 (catchers): New global.
10181 (exceptions_state_mc_init): Simplify.
10182 (catcher_pop): Remove.
10183 (exceptions_state_mc, exceptions_state_mc_catch): Update.
10184 (try_scope_depth, exception_try_scope_entry)
10185 (exception_try_scope_exit): Remove.
10186 (throw_exception_sjlj): Update.
10187 (exception_messages, exception_messages_size): Remove.
10188 (throw_it): Simplify.
10189 (gdb_exception_sliced_copy): Remove.
10190 (throw_exception_cxx): Update.
10191 * cli/cli-script.c (script_from_file): Update.
10192 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
10193 Update.
10194 * ada-valprint.c (ada_val_print): Update.
10195 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
10196 (create_excep_cond_exprs): Update.
10197
10198 2019-04-08 Tom Tromey <tom@tromey.com>
10199
10200 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
10201 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
10202 (TRY, CATCH, END_CATCH): Remove some definitions.
10203 * common/common-exceptions.c: Don't use GDB_XCPT.
10204 (catcher_list_size): Remove.
10205 (throw_exception, throw_it): Simplify.
10206
10207 2019-04-05 Tom Tromey <tom@tromey.com>
10208
10209 Revert the header-sorting patch.
10210 * ft32-tdep.c: Revert.
10211 * frv-tdep.c: Revert.
10212 * frv-linux-tdep.c: Revert.
10213 * frame.c: Revert.
10214 * frame-unwind.c: Revert.
10215 * frame-base.c: Revert.
10216 * fork-child.c: Revert.
10217 * findvar.c: Revert.
10218 * findcmd.c: Revert.
10219 * filesystem.c: Revert.
10220 * filename-seen-cache.h: Revert.
10221 * filename-seen-cache.c: Revert.
10222 * fbsd-tdep.c: Revert.
10223 * fbsd-nat.h: Revert.
10224 * fbsd-nat.c: Revert.
10225 * f-valprint.c: Revert.
10226 * f-typeprint.c: Revert.
10227 * f-lang.c: Revert.
10228 * extension.h: Revert.
10229 * extension.c: Revert.
10230 * extension-priv.h: Revert.
10231 * expprint.c: Revert.
10232 * exec.h: Revert.
10233 * exec.c: Revert.
10234 * exceptions.c: Revert.
10235 * event-top.c: Revert.
10236 * event-loop.c: Revert.
10237 * eval.c: Revert.
10238 * elfread.c: Revert.
10239 * dwarf2read.h: Revert.
10240 * dwarf2read.c: Revert.
10241 * dwarf2loc.c: Revert.
10242 * dwarf2expr.h: Revert.
10243 * dwarf2expr.c: Revert.
10244 * dwarf2-frame.c: Revert.
10245 * dwarf2-frame-tailcall.c: Revert.
10246 * dwarf-index-write.h: Revert.
10247 * dwarf-index-write.c: Revert.
10248 * dwarf-index-common.c: Revert.
10249 * dwarf-index-cache.h: Revert.
10250 * dwarf-index-cache.c: Revert.
10251 * dummy-frame.c: Revert.
10252 * dtrace-probe.c: Revert.
10253 * disasm.h: Revert.
10254 * disasm.c: Revert.
10255 * disasm-selftests.c: Revert.
10256 * dictionary.c: Revert.
10257 * dicos-tdep.c: Revert.
10258 * demangle.c: Revert.
10259 * dcache.h: Revert.
10260 * dcache.c: Revert.
10261 * darwin-nat.h: Revert.
10262 * darwin-nat.c: Revert.
10263 * darwin-nat-info.c: Revert.
10264 * d-valprint.c: Revert.
10265 * d-namespace.c: Revert.
10266 * d-lang.c: Revert.
10267 * ctf.c: Revert.
10268 * csky-tdep.c: Revert.
10269 * csky-linux-tdep.c: Revert.
10270 * cris-tdep.c: Revert.
10271 * cris-linux-tdep.c: Revert.
10272 * cp-valprint.c: Revert.
10273 * cp-support.c: Revert.
10274 * cp-namespace.c: Revert.
10275 * cp-abi.c: Revert.
10276 * corelow.c: Revert.
10277 * corefile.c: Revert.
10278 * continuations.c: Revert.
10279 * completer.h: Revert.
10280 * completer.c: Revert.
10281 * complaints.c: Revert.
10282 * coffread.c: Revert.
10283 * coff-pe-read.c: Revert.
10284 * cli-out.h: Revert.
10285 * cli-out.c: Revert.
10286 * charset.c: Revert.
10287 * c-varobj.c: Revert.
10288 * c-valprint.c: Revert.
10289 * c-typeprint.c: Revert.
10290 * c-lang.c: Revert.
10291 * buildsym.c: Revert.
10292 * buildsym-legacy.c: Revert.
10293 * build-id.h: Revert.
10294 * build-id.c: Revert.
10295 * btrace.c: Revert.
10296 * bsd-uthread.c: Revert.
10297 * breakpoint.h: Revert.
10298 * breakpoint.c: Revert.
10299 * break-catch-throw.c: Revert.
10300 * break-catch-syscall.c: Revert.
10301 * break-catch-sig.c: Revert.
10302 * blockframe.c: Revert.
10303 * block.c: Revert.
10304 * bfin-tdep.c: Revert.
10305 * bfin-linux-tdep.c: Revert.
10306 * bfd-target.c: Revert.
10307 * bcache.c: Revert.
10308 * ax-general.c: Revert.
10309 * ax-gdb.h: Revert.
10310 * ax-gdb.c: Revert.
10311 * avr-tdep.c: Revert.
10312 * auxv.c: Revert.
10313 * auto-load.c: Revert.
10314 * arm-wince-tdep.c: Revert.
10315 * arm-tdep.c: Revert.
10316 * arm-symbian-tdep.c: Revert.
10317 * arm-pikeos-tdep.c: Revert.
10318 * arm-obsd-tdep.c: Revert.
10319 * arm-nbsd-tdep.c: Revert.
10320 * arm-nbsd-nat.c: Revert.
10321 * arm-linux-tdep.c: Revert.
10322 * arm-linux-nat.c: Revert.
10323 * arm-fbsd-tdep.c: Revert.
10324 * arm-fbsd-nat.c: Revert.
10325 * arm-bsd-tdep.c: Revert.
10326 * arch-utils.c: Revert.
10327 * arc-tdep.c: Revert.
10328 * arc-newlib-tdep.c: Revert.
10329 * annotate.h: Revert.
10330 * annotate.c: Revert.
10331 * amd64-windows-tdep.c: Revert.
10332 * amd64-windows-nat.c: Revert.
10333 * amd64-tdep.c: Revert.
10334 * amd64-sol2-tdep.c: Revert.
10335 * amd64-obsd-tdep.c: Revert.
10336 * amd64-obsd-nat.c: Revert.
10337 * amd64-nbsd-tdep.c: Revert.
10338 * amd64-nbsd-nat.c: Revert.
10339 * amd64-nat.c: Revert.
10340 * amd64-linux-tdep.c: Revert.
10341 * amd64-linux-nat.c: Revert.
10342 * amd64-fbsd-tdep.c: Revert.
10343 * amd64-fbsd-nat.c: Revert.
10344 * amd64-dicos-tdep.c: Revert.
10345 * amd64-darwin-tdep.c: Revert.
10346 * amd64-bsd-nat.c: Revert.
10347 * alpha-tdep.c: Revert.
10348 * alpha-obsd-tdep.c: Revert.
10349 * alpha-nbsd-tdep.c: Revert.
10350 * alpha-mdebug-tdep.c: Revert.
10351 * alpha-linux-tdep.c: Revert.
10352 * alpha-linux-nat.c: Revert.
10353 * alpha-bsd-tdep.c: Revert.
10354 * alpha-bsd-nat.c: Revert.
10355 * aix-thread.c: Revert.
10356 * agent.c: Revert.
10357 * addrmap.c: Revert.
10358 * ada-varobj.c: Revert.
10359 * ada-valprint.c: Revert.
10360 * ada-typeprint.c: Revert.
10361 * ada-tasks.c: Revert.
10362 * ada-lang.c: Revert.
10363 * aarch64-tdep.c: Revert.
10364 * aarch64-ravenscar-thread.c: Revert.
10365 * aarch64-newlib-tdep.c: Revert.
10366 * aarch64-linux-tdep.c: Revert.
10367 * aarch64-linux-nat.c: Revert.
10368 * aarch64-fbsd-tdep.c: Revert.
10369 * aarch64-fbsd-nat.c: Revert.
10370 * aarch32-linux-nat.c: Revert.
10371
10372 2019-04-05 Tom Tromey <tom@tromey.com>
10373
10374 * ft32-tdep.c: Sort headers.
10375 * frv-tdep.c: Sort headers.
10376 * frv-linux-tdep.c: Sort headers.
10377 * frame.c: Sort headers.
10378 * frame-unwind.c: Sort headers.
10379 * frame-base.c: Sort headers.
10380 * fork-child.c: Sort headers.
10381 * findvar.c: Sort headers.
10382 * findcmd.c: Sort headers.
10383 * filesystem.c: Sort headers.
10384 * filename-seen-cache.h: Sort headers.
10385 * filename-seen-cache.c: Sort headers.
10386 * fbsd-tdep.c: Sort headers.
10387 * fbsd-nat.h: Sort headers.
10388 * fbsd-nat.c: Sort headers.
10389 * f-valprint.c: Sort headers.
10390 * f-typeprint.c: Sort headers.
10391 * f-lang.c: Sort headers.
10392 * extension.h: Sort headers.
10393 * extension.c: Sort headers.
10394 * extension-priv.h: Sort headers.
10395 * expprint.c: Sort headers.
10396 * exec.h: Sort headers.
10397 * exec.c: Sort headers.
10398 * exceptions.c: Sort headers.
10399 * event-top.c: Sort headers.
10400 * event-loop.c: Sort headers.
10401 * eval.c: Sort headers.
10402 * elfread.c: Sort headers.
10403 * dwarf2read.h: Sort headers.
10404 * dwarf2read.c: Sort headers.
10405 * dwarf2loc.c: Sort headers.
10406 * dwarf2expr.h: Sort headers.
10407 * dwarf2expr.c: Sort headers.
10408 * dwarf2-frame.c: Sort headers.
10409 * dwarf2-frame-tailcall.c: Sort headers.
10410 * dwarf-index-write.h: Sort headers.
10411 * dwarf-index-write.c: Sort headers.
10412 * dwarf-index-common.c: Sort headers.
10413 * dwarf-index-cache.h: Sort headers.
10414 * dwarf-index-cache.c: Sort headers.
10415 * dummy-frame.c: Sort headers.
10416 * dtrace-probe.c: Sort headers.
10417 * disasm.h: Sort headers.
10418 * disasm.c: Sort headers.
10419 * disasm-selftests.c: Sort headers.
10420 * dictionary.c: Sort headers.
10421 * dicos-tdep.c: Sort headers.
10422 * demangle.c: Sort headers.
10423 * dcache.h: Sort headers.
10424 * dcache.c: Sort headers.
10425 * darwin-nat.h: Sort headers.
10426 * darwin-nat.c: Sort headers.
10427 * darwin-nat-info.c: Sort headers.
10428 * d-valprint.c: Sort headers.
10429 * d-namespace.c: Sort headers.
10430 * d-lang.c: Sort headers.
10431 * ctf.c: Sort headers.
10432 * csky-tdep.c: Sort headers.
10433 * csky-linux-tdep.c: Sort headers.
10434 * cris-tdep.c: Sort headers.
10435 * cris-linux-tdep.c: Sort headers.
10436 * cp-valprint.c: Sort headers.
10437 * cp-support.c: Sort headers.
10438 * cp-namespace.c: Sort headers.
10439 * cp-abi.c: Sort headers.
10440 * corelow.c: Sort headers.
10441 * corefile.c: Sort headers.
10442 * continuations.c: Sort headers.
10443 * completer.h: Sort headers.
10444 * completer.c: Sort headers.
10445 * complaints.c: Sort headers.
10446 * coffread.c: Sort headers.
10447 * coff-pe-read.c: Sort headers.
10448 * cli-out.h: Sort headers.
10449 * cli-out.c: Sort headers.
10450 * charset.c: Sort headers.
10451 * c-varobj.c: Sort headers.
10452 * c-valprint.c: Sort headers.
10453 * c-typeprint.c: Sort headers.
10454 * c-lang.c: Sort headers.
10455 * buildsym.c: Sort headers.
10456 * buildsym-legacy.c: Sort headers.
10457 * build-id.h: Sort headers.
10458 * build-id.c: Sort headers.
10459 * btrace.c: Sort headers.
10460 * bsd-uthread.c: Sort headers.
10461 * breakpoint.h: Sort headers.
10462 * breakpoint.c: Sort headers.
10463 * break-catch-throw.c: Sort headers.
10464 * break-catch-syscall.c: Sort headers.
10465 * break-catch-sig.c: Sort headers.
10466 * blockframe.c: Sort headers.
10467 * block.c: Sort headers.
10468 * bfin-tdep.c: Sort headers.
10469 * bfin-linux-tdep.c: Sort headers.
10470 * bfd-target.c: Sort headers.
10471 * bcache.c: Sort headers.
10472 * ax-general.c: Sort headers.
10473 * ax-gdb.h: Sort headers.
10474 * ax-gdb.c: Sort headers.
10475 * avr-tdep.c: Sort headers.
10476 * auxv.c: Sort headers.
10477 * auto-load.c: Sort headers.
10478 * arm-wince-tdep.c: Sort headers.
10479 * arm-tdep.c: Sort headers.
10480 * arm-symbian-tdep.c: Sort headers.
10481 * arm-pikeos-tdep.c: Sort headers.
10482 * arm-obsd-tdep.c: Sort headers.
10483 * arm-nbsd-tdep.c: Sort headers.
10484 * arm-nbsd-nat.c: Sort headers.
10485 * arm-linux-tdep.c: Sort headers.
10486 * arm-linux-nat.c: Sort headers.
10487 * arm-fbsd-tdep.c: Sort headers.
10488 * arm-fbsd-nat.c: Sort headers.
10489 * arm-bsd-tdep.c: Sort headers.
10490 * arch-utils.c: Sort headers.
10491 * arc-tdep.c: Sort headers.
10492 * arc-newlib-tdep.c: Sort headers.
10493 * annotate.h: Sort headers.
10494 * annotate.c: Sort headers.
10495 * amd64-windows-tdep.c: Sort headers.
10496 * amd64-windows-nat.c: Sort headers.
10497 * amd64-tdep.c: Sort headers.
10498 * amd64-sol2-tdep.c: Sort headers.
10499 * amd64-obsd-tdep.c: Sort headers.
10500 * amd64-obsd-nat.c: Sort headers.
10501 * amd64-nbsd-tdep.c: Sort headers.
10502 * amd64-nbsd-nat.c: Sort headers.
10503 * amd64-nat.c: Sort headers.
10504 * amd64-linux-tdep.c: Sort headers.
10505 * amd64-linux-nat.c: Sort headers.
10506 * amd64-fbsd-tdep.c: Sort headers.
10507 * amd64-fbsd-nat.c: Sort headers.
10508 * amd64-dicos-tdep.c: Sort headers.
10509 * amd64-darwin-tdep.c: Sort headers.
10510 * amd64-bsd-nat.c: Sort headers.
10511 * alpha-tdep.c: Sort headers.
10512 * alpha-obsd-tdep.c: Sort headers.
10513 * alpha-nbsd-tdep.c: Sort headers.
10514 * alpha-mdebug-tdep.c: Sort headers.
10515 * alpha-linux-tdep.c: Sort headers.
10516 * alpha-linux-nat.c: Sort headers.
10517 * alpha-bsd-tdep.c: Sort headers.
10518 * alpha-bsd-nat.c: Sort headers.
10519 * aix-thread.c: Sort headers.
10520 * agent.c: Sort headers.
10521 * addrmap.c: Sort headers.
10522 * ada-varobj.c: Sort headers.
10523 * ada-valprint.c: Sort headers.
10524 * ada-typeprint.c: Sort headers.
10525 * ada-tasks.c: Sort headers.
10526 * ada-lang.c: Sort headers.
10527 * aarch64-tdep.c: Sort headers.
10528 * aarch64-ravenscar-thread.c: Sort headers.
10529 * aarch64-newlib-tdep.c: Sort headers.
10530 * aarch64-linux-tdep.c: Sort headers.
10531 * aarch64-linux-nat.c: Sort headers.
10532 * aarch64-fbsd-tdep.c: Sort headers.
10533 * aarch64-fbsd-nat.c: Sort headers.
10534 * aarch32-linux-nat.c: Sort headers.
10535
10536 2019-04-04 Tom Tromey <tom@tromey.com>
10537
10538 * varobj.c (varobj_create): Update.
10539 * rust-exp.y (struct rust_parser) <update_innermost_block,
10540 lookup_symbol>: New methods.
10541 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
10542 Rename.
10543 (rust_parser::rust_lookup_type)
10544 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
10545 * printcmd.c (display_command, do_one_display): Update.
10546 * parser-defs.h (struct parser_state) <parser_state>: Add
10547 "tracker" parameter.
10548 (block_tracker): New member.
10549 (class innermost_block_tracker) <innermost_block_tracker>: Add
10550 "types" parameter.
10551 <reset>: Remove method.
10552 (innermost_block): Don't declare.
10553 (null_post_parser): Update.
10554 * parse.c (innermost_block): Remove global.
10555 (write_dollar_variable): Update.
10556 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
10557 Remove "tracker_types" parameter.
10558 (parse_expression): Add "tracker" parameter.
10559 (parse_expression_for_completion): Update.
10560 (null_post_parser): Add "tracker" parameter.
10561 * p-exp.y: Update rules.
10562 * m2-exp.y: Update rules.
10563 * language.h (struct language_defn) <la_post_parser>: Add
10564 "tracker" parameter.
10565 * go-exp.y: Update rules.
10566 * f-exp.y: Update rules.
10567 * expression.h (parse_expression, parse_exp_1): Add "tracker"
10568 parameter.
10569 * d-exp.y: Update rules.
10570 * c-exp.y: Update rules.
10571 * breakpoint.c (set_breakpoint_condition): Create an
10572 innermost_block_tracker.
10573 (watch_command_1): Likewise.
10574 * ada-lang.c (resolve): Add "tracker" parameter.
10575 (resolve_subexp): Likewise.
10576 * ada-exp.y (write_var_from_sym): Update.
10577
10578 2019-04-04 Tom Tromey <tom@tromey.com>
10579
10580 * type-stack.h: New file.
10581 * type-stack.c: New file.
10582 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
10583 type-stack.h.
10584 (insert_into_type_stack, insert_type, push_type, push_type_int)
10585 (insert_type_address_space, pop_type, pop_type_int)
10586 (pop_typelist, pop_type_stack, append_type_stack)
10587 (push_type_stack, get_type_stack, push_typelist)
10588 (follow_type_instance_flags, follow_types): Don't declare.
10589 * parse.c (type_stack): Remove global.
10590 (parse_exp_in_context): Update.
10591 (insert_into_type_stack, insert_type, push_type, push_type_int)
10592 (insert_type_address_space, pop_type, pop_type_int)
10593 (pop_typelist, pop_type_stack, append_type_stack)
10594 (push_type_stack, get_type_stack, push_typelist)
10595 (follow_type_instance_flags, follow_types): Remove (moved to
10596 type-stack.c).
10597 * f-exp.y (type_stack): New global.
10598 Update rules.
10599 (push_kind_type, f_parse): Update.
10600 * d-exp.y (type_stack): New global.
10601 Update rules.
10602 (d_parse): Update.
10603 * c-exp.y (struct c_parse_state) <type_stack>: New member.
10604 Update rules.
10605 * Makefile.in (COMMON_SFILES): Add type-stack.c.
10606 (HFILES_NO_SRCDIR): Add type-stack.h.
10607
10608 2019-04-04 Tom Tromey <tom@tromey.com>
10609
10610 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
10611 (rust_parser::convert_ast_to_expression, rust_parse)
10612 (rust_lex_test_completion, rust_lex_tests): Update.
10613 * parser-defs.h (struct expr_completion_state): New.
10614 (struct parser_state) <parser_state>: Add completion parameter.
10615 <mark_struct_expression, mark_completion_tag>: New methods.
10616 <parse_completion, m_completion_state>: New members.
10617 (prefixify_expression, null_post_parser): Update.
10618 (mark_struct_expression, mark_completion_tag): Don't declare.
10619 * parse.c (parse_completion, expout_last_struct)
10620 (expout_tag_completion_type, expout_completion_name): Remove
10621 globals.
10622 (parser_state::mark_struct_expression)
10623 (parser_state::mark_completion_tag): Now methods.
10624 (prefixify_expression): Add last_struct parameter.
10625 (prefixify_subexp): Likewise.
10626 (parse_exp_1): Update.
10627 (parse_exp_in_context): Add cstate parameter. Update.
10628 (parse_expression_for_completion): Create an
10629 expr_completion_state.
10630 (null_post_parser): Add "completion" parameter.
10631 * p-exp.y: Update rules.
10632 (yylex): Update.
10633 * language.h (struct language_defn) <la_post_parser>: Add
10634 "completing" parameter.
10635 * go-exp.y: Update rules.
10636 (lex_one_token): Update.
10637 * expression.h (parse_completion): Don't declare.
10638 * d-exp.y: Update rules.
10639 (lex_one_token): Update rules.
10640 * c-exp.y: Update rules.
10641 (lex_one_token): Update.
10642 * ada-lang.c (resolve): Add "parse_completion" parameter.
10643 (resolve_subexp): Likewise.
10644 (ada_resolve_function): Likewise.
10645
10646 2019-04-04 Tom Tromey <tom@tromey.com>
10647
10648 * parser-defs.h (struct parser_state) <start_arglist,
10649 end_arglist>: New methods.
10650 <arglist_len, m_funcall_chain>: New members.
10651 (arglist_len, start_arglist, end_arglist): Don't declare.
10652 * parse.c (arglist_len, funcall_chain): Remove global.
10653 (start_arglist, end_arglist): Remove functions.
10654 (parse_exp_in_context): Update.
10655 * p-exp.y: Update rules.
10656 * m2-exp.y: Update rules.
10657 * go-exp.y: Update rules.
10658 * f-exp.y: Update rules.
10659 * d-exp.y: Update rules.
10660 * c-exp.y: Update rules.
10661
10662 2019-04-04 Tom Tromey <tom@tromey.com>
10663
10664 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
10665 lex_operator, push_back>: New methods.
10666 Update all rules.
10667 (rust_parser::lex_hex, lex_escape): Rename and update.
10668 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
10669 (rust_parser::lex_operator): Rename and update.
10670 (rust_parser::lex_number, rustyylex, rustyyerror)
10671 (rust_lex_test_init, rust_lex_test_sequence)
10672 (rust_lex_test_push_back, rust_lex_tests): Update.
10673 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
10674 parameter.
10675 <lexptr, prev_lexptr>: New members.
10676 (lexptr, prev_lexptr): Don't declare.
10677 * parse.c (lexptr, prev_lexptr): Remove globals.
10678 (parse_exp_in_context): Update.
10679 * p-exp.y (yylex, yyerror): Update.
10680 * m2-exp.y (parse_number, yylex, yyerror): Update.
10681 * go-exp.y (lex_one_token, yyerror): Update.
10682 * f-exp.y (match_string_literal, yylex, yyerror): Update.
10683 * d-exp.y (lex_one_token, yyerror): Update.
10684 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
10685 (lex_one_token, yyerror): Update.
10686 * ada-lex.l (YY_INPUT): Update.
10687 (rewind_to_char): Update.
10688 * ada-exp.y (yyerror): Update.
10689
10690 2019-04-04 Tom Tromey <tom@tromey.com>
10691
10692 * rust-exp.y (rustyylex, rust_lex_tests): Update.
10693 * parser-defs.h (struct parser_state) <parser_state>: Add new
10694 parameter.
10695 <comma_terminates>: New member.
10696 (comma_terminates): Don't declare global.
10697 * parse.c (comma_terminates): Remove global.
10698 (parse_exp_in_context): Update.
10699 * p-exp.y (yylex): Update.
10700 * m2-exp.y (yylex): Update.
10701 * go-exp.y (lex_one_token): Update.
10702 * f-exp.y (yylex): Update.
10703 * d-exp.y (lex_one_token): Update.
10704 * c-exp.y (lex_one_token): Update.
10705 * ada-lex.l: Update.
10706
10707 2019-04-04 Tom Tromey <tom@tromey.com>
10708
10709 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
10710 (rustyylex, rust_lex_test_init, rust_lex_test_one)
10711 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
10712 * parser-defs.h (paren_depth): Don't declare.
10713 * parse.c (paren_depth): Remove global.
10714 (parse_exp_in_context): Update.
10715 * p-exp.y (paren_depth): New global.
10716 (pascal_parse): Initialize it.
10717 * m2-exp.y (paren_depth): New global.
10718 (m2_parse): Initialize it.
10719 * go-exp.y (paren_depth): New global.
10720 (go_parse): Initialize it.
10721 * f-exp.y (paren_depth): New global.
10722 (f_parse): Initialize it.
10723 * d-exp.y (paren_depth): New global.
10724 (d_parse): Initialize it.
10725 * c-exp.y (paren_depth): New global.
10726 (c_parse): Initialize it.
10727 * ada-lex.l (paren_depth): New global.
10728 (lexer_init): Initialize it.
10729
10730 2019-04-04 Tom Tromey <tom@tromey.com>
10731
10732 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
10733 (rust_parser::convert_ast_to_type)
10734 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
10735 * parser-defs.h (struct parser_state) <parser_state>: Add
10736 parameters. Initialize new members.
10737 <expression_context_block, expression_context_pc>: New members.
10738 * parse.c (expression_context_block, expression_context_pc):
10739 Remove globals.
10740 (parse_exp_in_context): Update.
10741 * p-exp.y: Update all rules.
10742 (yylex): Update.
10743 * m2-exp.y: Update all rules.
10744 (yylex): Update.
10745 * go-exp.y (yylex): Update.
10746 * f-exp.y (yylex): Update.
10747 * d-exp.y: Update all rules.
10748 (yylex): Update.
10749 * c-exp.y: Update all rules.
10750 (lex_one_token, classify_name, yylex, c_parse): Update.
10751 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
10752
10753 2019-04-04 Tom Tromey <tom@tromey.com>
10754
10755 * gdbarch.h, gdbarch.c: Rebuild.
10756 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
10757 * stap-probe.h:
10758 (struct stap_parse_info): Replace "parser_state" with
10759 "expr_builder".
10760 * parser-defs.h (struct expr_builder): Rename from "parser_state".
10761 (parser_state): New class.
10762 * parse.c (expr_builder): Rename.
10763 (expr_builder::release): Rename.
10764 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
10765 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
10766 (write_exp_elt_longcst, write_exp_elt_floatcst)
10767 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
10768 (write_exp_string_vector, write_exp_bitstring)
10769 (write_exp_msymbol, mark_struct_expression)
10770 (write_dollar_variable)
10771 (insert_type_address_space, increase_expout_size): Replace
10772 "parser_state" with "expr_builder".
10773 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
10774 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
10775 "parser_state" with "expr_builder".
10776
10777 2019-04-04 Tom Tromey <tom@tromey.com>
10778
10779 * rust-exp.y: Replace "parse_language" with method call.
10780 * p-exp.y:
10781 (yylex): Replace "parse_language" with method call.
10782 * m2-exp.y:
10783 (yylex): Replace "parse_language" with method call.
10784 * go-exp.y (classify_name): Replace "parse_language" with method
10785 call.
10786 * f-exp.y (yylex): Replace "parse_language" with method call.
10787 * d-exp.y (lex_one_token): Replace "parse_language" with method
10788 call.
10789 * c-exp.y:
10790 (lex_one_token, classify_name, yylex): Replace "parse_language"
10791 with method call.
10792 * ada-exp.y (find_primitive_type, type_char)
10793 (type_system_address): Replace "parse_language" with method call.
10794
10795 2019-04-04 Tom Tromey <tom@tromey.com>
10796
10797 * rust-exp.y: Replace "parse_gdbarch" with method call.
10798 * parse.c (write_dollar_variable, insert_type_address_space):
10799 Replace "parse_gdbarch" with method call.
10800 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
10801 call.
10802 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
10803 call.
10804 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
10805 "parse_gdbarch" with method call.
10806 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
10807 with method call.
10808 * f-exp.y (parse_type, parse_f_type, yylex): Replace
10809 "parse_gdbarch" with method call.
10810 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
10811 "parse_gdbarch" with method call.
10812 * c-exp.y (parse_type, parse_number, classify_name): Replace
10813 "parse_gdbarch" with method call.
10814 * ada-lex.l: Replace "parse_gdbarch" with method call.
10815 * ada-exp.y (parse_type, find_primitive_type, type_char)
10816 (type_system_address): Replace "parse_gdbarch" with method call.
10817
10818 2019-04-04 Tom Tromey <tom@tromey.com>
10819
10820 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
10821 * stap-probe.c (stap_parse_argument): Update.
10822 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
10823 initial_size parameter.
10824 * rust-exp.y (rust_lex_tests): Update.
10825 * parse.c (parser_state): Update.
10826 (parse_exp_in_context): Update.
10827 * parser-defs.h (struct parser_state) <parser_state>: Remove
10828 "initial_size" parameter.
10829
10830 2019-04-04 Tom Tromey <tom@tromey.com>
10831
10832 * parser-defs.h (increase_expout_size): Don't declare.
10833 * parse.c (increase_expout_size): Now static.
10834
10835 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
10836
10837 * gnu-nat.c (gnu_nat_target::wait): Fix
10838 target_waitstatus_to_string call.
10839
10840 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
10841
10842 * eval.c (evaluate_subexp_standard): Handle internal functions
10843 during Fortran function call handling.
10844
10845 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
10846
10847 * NEWS: Mention new internal functions.
10848 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
10849 (read_base_type): Use dwarf2_init_complex_target_type.
10850 * value.c (creal_internal_fn): New function.
10851 (cimag_internal_fn): New function.
10852 (_initialize_values): Register new internal functions.
10853
10854 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10855
10856 * infrun.c (stop_all_threads): If debug_infrun, always
10857 trace the wait status after wait_one, using
10858 target_waitstatus_to_string and target_pid_to_str.
10859 (handle_inferior_event): Replace various trace of
10860 wait status kind by a single trace.
10861 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
10862 wait status kind image by target_waitstatus_to_string.
10863 * target/waitstatus.c (target_waitstatus_to_string): Fix
10864 obsolete comment.
10865
10866 2019-04-01 Tom Tromey <tromey@adacore.com>
10867
10868 PR symtab/23331:
10869 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
10870
10871 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
10872 Pedro Alves <palves@redhat.com>
10873
10874 * top.c (quit_force): Call 'finalize_values'.
10875 * value.c (finalize_values): New function.
10876 * value.h (finalize_values): Declare.
10877
10878 2019-03-30 Eli Zaretskii <eliz@gnu.org>
10879
10880 * NEWS: Announce $_gdb_major and $_gdb_minor.
10881
10882 * top.c (init_gdb_version_vars): New function.
10883 (gdb_init): Call init_gdb_version_vars.
10884
10885 2019-03-29 Tom Tromey <tromey@adacore.com>
10886
10887 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
10888 help text. Remove dead code.
10889
10890 2019-03-29 Keith Seitz <keiths@redhat.com>
10891
10892 From Siddhesh Poyarekar:
10893 * f-lang.h (f77_get_upperbound): Return LONGEST.
10894 (f77_get_lowerbound): Likewise.
10895 * f-typeprint.c (f_type_print_varspec_suffix): Expand
10896 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
10897 print them.
10898 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
10899 plongest to format print it.
10900 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
10901 (f77_get_upperbound): Likewise.
10902 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
10903 LOWER_BOUND to LONGEST.
10904 (f77_create_arrayprint_offset_tbl): Likewise.
10905
10906 2019-03-29 Keith Seitz <keiths@redhat.com>
10907
10908 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
10909 %s/pulongest for TYPE_LENGTH instead of %d in format
10910 strings.
10911 * ada-typerint.c (ada_print_type): Likewise.
10912 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
10913 * compile/compile-c-support.c (generate_register_struct): Likewise.
10914 * gdbtypes.c (recursive_dump_type): Likewise.
10915 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
10916 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
10917 instead of %d in format strings.
10918 * riscv-tdep.c (riscv_type_alignment): Cast second argument
10919 to std::min to ULONGEST.
10920 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
10921 instead of %d in format strings.
10922 * tracepoint.c (info_scope_command): Likewise.
10923 * typeprint.c (print_offset_data::update)
10924 (print_offset_data::finish): Likewise.
10925 * xtensa-tdep.c (xtensa_store_return_value)
10926 (xtensa_push_dummy_call): Likewise.
10927
10928 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
10929
10930 * windows-nat.c (display_selector): Fixed format specifications
10931 for 64-bit Cygwin.
10932
10933 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10934
10935 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
10936
10937 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
10938
10939 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
10940 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
10941 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
10942 (nios2_linux_init_abi): Install it.
10943
10944 2019-03-28 Alan Hayward <alan.hayward@arm.com>
10945
10946 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
10947
10948 2019-03-28 Alan Hayward <alan.hayward@arm.com>
10949
10950 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
10951
10952 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10953 Tom Tromey <tromey@adacore.com>
10954
10955 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
10956
10957 2019-03-26 Joel Brobecker <brobecker@adacore.com>
10958
10959 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
10960 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
10961 method to compute the bounds of range types. Also print "[evaluated]"
10962 if the bounds' values come from a dynamic evaluation.
10963
10964 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
10965
10966 * cp-valprint.c (cp_print_value_fields): Don't print trailing
10967 whitespace when pretty printing is on.
10968
10969 2019-03-26 Alan Hayward <alan.hayward@arm.com>
10970
10971 * ppc-linux-nat.c: Add include.
10972
10973 2019-03-26 Alan Hayward <alan.hayward@arm.com>
10974
10975 * NEWS: Mention AArch64 Pointer Authentication.
10976
10977 2019-03-26 Alan Hayward <alan.hayward@arm.com>
10978
10979 * arm-linux-nat.c: Add include.
10980
10981 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
10982
10983 * source-cache.c (source_cache::get_source_lines): Re-read
10984 fullname after calling open_source_file.
10985
10986 2019-03-25 John Baldwin <jhb@FreeBSD.org>
10987
10988 * NEWS: Mention TLS support for FreeBSD.
10989
10990 2019-03-25 Tom Tromey <tromey@adacore.com>
10991
10992 * minsyms.c (BUNCH_SIZE): Update comment.
10993 (~minimal_symbol_reader): Remove old comment.
10994 (compact_minimal_symbols): Update comment.
10995 (minimal_symbol_reader::install): Remove old comment. Update
10996 other comments.
10997
10998 2019-03-25 Alan Hayward <alan.hayward@arm.com>
10999
11000 * s390-linux-nat.c: Add include.
11001
11002 2019-03-25 Alan Hayward <alan.hayward@arm.com>
11003
11004 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
11005 Call linux_get_hwcap.
11006 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
11007 Likewise.
11008 (aarch64_linux_get_hwcap): Remove function.
11009 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
11010 declaration.
11011 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
11012 linux_get_hwcap.
11013 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
11014 * linux-tdep.c (linux_get_hwcap): Add function.
11015 (linux_get_hwcap2): Likewise.
11016 * linux-tdep.h (linux_get_hwcap): Add declaration.
11017 (linux_get_hwcap2): Likewise.
11018 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
11019 (ppc_linux_get_hwcap2): Likewise.
11020 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
11021 linux_get_hwcap.
11022 (ppc_linux_nat_target::insert_watchpoint): Likewise.
11023 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
11024 (ppc_linux_nat_target::read_description): Likewise.
11025 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
11026 * s390-linux-nat.c: Likewise.
11027 * s390-linux-tdep.c (s390_core_read_description): Likewise.
11028
11029 2019-03-24 Tom Tromey <tom@tromey.com>
11030
11031 * ada-lang.c (standard_lookup): Simplify initialization.
11032 (ada_lookup_symbol_nonlocal): Simplify return.
11033 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
11034 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
11035 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
11036 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
11037 initialization.
11038 * solib.c (solib_global_lookup): Simplify.
11039 * symtab.c (null_block_symbol): Remove.
11040 (symbol_cache_lookup): Simplify returns.
11041 (lookup_language_this): Simplify returns.
11042 (lookup_symbol_aux): Simplify return.
11043 (lookup_local_symbol): Simplify returns.
11044 (lookup_global_symbol_from_objfile): Simplify return.
11045 (lookup_symbol_in_objfile_symtabs)
11046 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
11047 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
11048 (lookup_static_symbol, lookup_global_symbol): Simplify return.
11049 * cp-namespace.c (cp_lookup_bare_symbol)
11050 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
11051 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
11052 (cp_lookup_nested_symbol): Don't use null_block_symbol.
11053 (cp_lookup_symbol_via_imports): Simplify initialization.
11054 (find_symbol_in_baseclass): Likewise.
11055 * symtab.h (null_block_symbol): Remove.
11056 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
11057 (d_lookup_nested_symbol, d_lookup_symbol_imports)
11058 (d_lookup_symbol_module): Likewise.
11059 (find_symbol_in_baseclass): Simplify initialization.
11060
11061 2019-03-24 Tom Tromey <tom@tromey.com>
11062
11063 * expression.h: Don't include symtab.h.
11064 (struct block): Forward declare.
11065
11066 2019-03-24 Tom Tromey <tom@tromey.com>
11067
11068 * c-exp.y (typebase): Remove casts.
11069 * gdbtypes.c (lookup_unsigned_typename, )
11070 (lookup_signed_typename): Remove cast.
11071 * eval.c (parse_to_comma_and_eval): Remove cast.
11072 * parse.c (write_dollar_variable): Remove cast.
11073 * block.h (struct block) <superblock>: Now const.
11074 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
11075 * psymtab.c (psym_map_matching_symbols): Make "block" const.
11076 (map_block): Make "block" const.
11077 * symfile.h (struct quick_symbol_functions)
11078 <map_matching_symbols>: Constify block argument to "callback".
11079 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
11080 const.
11081 (find_pc_sect_compunit_symtab): Make "b" const.
11082 (find_symbol_at_address): Likewise.
11083 (search_symbols): Likewise.
11084 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
11085 (dw2_debug_names_lookup_symbol): Likewise.
11086 (dw2_map_matching_symbols): Update.
11087 * p-valprint.c (pascal_val_print): Remove "block".
11088 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
11089 (aux_add_nonlocal_symbols): Make "block" const.
11090 (resolve_subexp): Remove cast.
11091 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
11092 const.
11093 (iterate_over_file_blocks): Likewise.
11094 * f-exp.y (%union) <bval>: Remove.
11095 * coffread.c (patch_opaque_types): Make "b" const.
11096 * spu-tdep.c (spu_catch_start): Make "block" const.
11097 * c-valprint.c (print_unpacked_pointer): Remove "block".
11098 * symmisc.c (dump_symtab_1): Make "b" const.
11099 (block_depth): Make "block" const.
11100 * d-exp.y (%union) <bval>: Remove.
11101 * cp-support.h (cp_lookup_rtti_type): Update.
11102 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
11103 * psymtab.c (psym_lookup_symbol): Make "block" const.
11104 (maintenance_check_psymtabs): Make "b" const.
11105 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
11106 (enumerate_locals, enumerate_args): Update.
11107 * python/py-symtab.c (stpy_global_block): Make "block" const.
11108 (stpy_static_block): Likewise.
11109 * inline-frame.c (block_starting_point_at): Make "new_block"
11110 const.
11111 * block.c (find_block_in_blockvector): Make return type const.
11112 (blockvector_for_pc_sect): Make "b" const.
11113 (find_block_in_blockvector): Make "b" const.
11114
11115 2019-03-23 Tom Tromey <tom@tromey.com>
11116
11117 * varobj.c (varobj_create): Update.
11118 * symfile.c (clear_symtab_users): Don't reset innermost_block.
11119 * printcmd.c (display_command, do_one_display): Don't reset
11120 innermost_block.
11121 * parser-defs.h (enum innermost_block_tracker_type): Move to
11122 expression.h.
11123 (innermost_block): Update comment.
11124 * parse.c (parse_exp_1): Add tracker_types parameter.
11125 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
11126 tracker_types parameter. Reset innermost_block.
11127 (parse_exp_in_context): Remove.
11128 (parse_expression_for_completion): Update.
11129 * objfiles.c (~objfile): Don't reset expression_context_block or
11130 innermost_block.
11131 * expression.h (enum innermost_block_tracker_type): Move from
11132 parser-defs.h.
11133 (parse_exp_1): Add tracker_types parameter.
11134 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
11135 reset innermost_block.
11136
11137 2019-03-23 Tom Tromey <tom@tromey.com>
11138
11139 * objfiles.h: Include bcache.h.
11140
11141 2019-03-23 Tom Tromey <tom@tromey.com>
11142
11143 * linespec.c (get_current_search_block): Use
11144 scoped_restore_current_language.
11145 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
11146
11147 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11148 Jiong Wang <jiong.wang@arm.com>
11149
11150 * aarch64-linux-tdep.c
11151 (aarch64_linux_iterate_over_regset_sections): Check for pauth
11152 section.
11153 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
11154
11155 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11156 Jiong Wang <jiong.wang@arm.com>
11157
11158 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
11159 instructions.
11160 (aarch64_analyze_prologue_test): Add PACIASP test.
11161 (aarch64_prologue_prev_register): Unmask PC value.
11162
11163 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11164 Jiong Wang <jiong.wang@arm.com>
11165
11166 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
11167 (aarch64_dwarf2_prev_register): Unmask PC value.
11168 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
11169 (aarch64_execute_dwarf_cfa_vendor_op): Check for
11170 DW_CFA_AARCH64_negate_ra_state.
11171 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
11172
11173 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11174 Jiong Wang <jiong.wang@arm.com>
11175
11176 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
11177 registers.
11178 (aarch64_pseudo_register_name): Likewise.
11179 (aarch64_pseudo_register_type): Likewise.
11180 (aarch64_pseudo_register_reggroup_p): Likewise.
11181 (aarch64_gdbarch_init): Add pauth registers.
11182 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
11183 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
11184 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
11185 (struct gdbarch_tdep): Add regnum for ra_state.
11186
11187 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11188 Jiong Wang <jiong.wang@arm.com>
11189
11190 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
11191
11192 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11193 Jiong Wang <jiong.wang@arm.com>
11194
11195 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
11196 function.
11197 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
11198 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
11199 (aarch64_gdbarch_init): Add puth registers.
11200 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
11201 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
11202 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
11203
11204 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11205 Jiong Wang <jiong.wang@arm.com>
11206
11207 * aarch64-linux-nat.c
11208 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
11209 * aarch64-linux-tdep.c
11210 (aarch64_linux_core_read_description): Likewise.
11211 (aarch64_linux_get_hwcap): New function.
11212 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
11213 (aarch64_linux_get_hwcap): New declaration.
11214
11215 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11216 Jiong Wang <jiong.wang@arm.com>
11217
11218 * aarch64-linux-nat.c
11219 (aarch64_linux_nat_target::read_description): Add pauth param.
11220 * aarch64-linux-tdep.c
11221 (aarch64_linux_core_read_description): Likewise.
11222 * aarch64-tdep.c (struct target_desc): Add in pauth.
11223 (aarch64_read_description): Add pauth param.
11224 (aarch64_gdbarch_init): Likewise.
11225 * aarch64-tdep.h (aarch64_read_description): Likewise.
11226 * arch/aarch64.c (aarch64_create_target_description): Likewise.
11227 * arch/aarch64.h (aarch64_create_target_description): Likewise.
11228 * features/Makefile: Add new files.
11229 * features/aarch64-pauth.c: New file.
11230 * features/aarch64-pauth.xml: New file.
11231
11232 2019-03-20 Tom Tromey <tromey@adacore.com>
11233
11234 * infrun.c (handle_inferior_event): Rename from
11235 handle_inferior_event_1. Create a scoped_value_mark.
11236 (handle_inferior_event): Remove.
11237
11238 2019-03-19 Tom Tromey <tromey@adacore.com>
11239
11240 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
11241 * infrun.h (print_stop_event): Add "displays" parameter.
11242 * infrun.c (print_stop_event): Add "displays" parameter.
11243
11244 2019-03-19 Pedro Alves <palves@redhat.com>
11245
11246 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
11247 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
11248 to -1. Fix TABs vs spaces.
11249 (tui_ui_out::tui_ui_out): Don't initialize fields here.
11250 * tui/tui-out.h (tui_ui_out) Add intro comments.
11251 <m_line, m_start_of_line>: In-class initialize, and add describing
11252 comment.
11253
11254 2019-03-18 Alan Hayward <alan.hayward@arm.com>
11255
11256 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
11257 variable names.
11258 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
11259
11260 2019-03-18 Pedro Alves <palves@redhat.com>
11261 Eli Zaretskii <eliz@gnu.org>
11262
11263 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
11264 m_line and m_start_of_line.
11265
11266 2019-03-18 Eli Zaretskii <eliz@gnu.org>
11267
11268 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
11269 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
11270 it returns a newline. This fixes a regression in TU mode, whereby
11271 the next line is output on the same screen line as the user input.
11272
11273 2019-03-18 Tom Tromey <tromey@adacore.com>
11274
11275 * minsyms.c (minimal_symbol_reader::install): Remove call to
11276 obstack_blank.
11277
11278 2019-03-18 Pedro Alves <palves@redhat.com>
11279
11280 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
11281 New globals.
11282 (apply_style): New, factored out from ...
11283 (apply_ansi_escape): ... this. Handle reverse video mode.
11284 (tui_set_reverse_mode): New function.
11285 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
11286 * tui/tui-winsource.c (tui_show_source_line): Use
11287 tui_set_reverse_mode instead of setting A_STANDOUT.
11288 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
11289 New setter methods.
11290
11291 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
11292
11293 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
11294 Handle tabs.
11295
11296 2019-03-18 Tom Tromey <tromey@adacore.com>
11297
11298 * ada-lang.c (empty_array): Add "high" parameter.
11299 (ada_evaluate_subexp): Update.
11300
11301 2019-03-17 Sergei Trofimovich <siarheit@google.com>
11302
11303 * unittests/string_view-selftests.c: Define
11304 _initialize_string_view_selftests unconditionally.
11305
11306 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
11307
11308 PR gdb/24350
11309 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
11310
11311 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
11312
11313 PR gdb/24351
11314 * windows-nat.c (display_selector): Fix format specifiers.
11315
11316 2019-03-17 Eli Zaretskii <eliz@gnu.org>
11317
11318 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
11319 tui_refill_source_window instead of tui_refresh_win, to update the
11320 current execution line. This fixes redisplay of the current line
11321 when stepping through the code with "next" or "step".
11322
11323 2019-03-16 Eli Zaretskii <eliz@gnu.org>
11324
11325 * source-cache.c (source_cache::get_source_lines): Call
11326 find_source_lines to initialize s->nlines. This fixes vertical
11327 scrolling of TUI source window when the DOWN arrow is pressed.
11328
11329 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11330
11331 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
11332 linux-thread-db.c (_initialize_thread_db): Likewise.
11333
11334 2019-03-16 Eli Zaretskii <eliz@gnu.org>
11335
11336 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
11337 wclrtoeol in tui_show_source_line". This reverts changes made in
11338 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
11339
11340 2019-03-15 Tom Tromey <tom@tromey.com>
11341
11342 * symtab.h (struct minimal_symbol): Derive from
11343 general_symbol_info.
11344 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
11345 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
11346 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
11347 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
11348 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
11349 (MSYMBOL_SEARCH_NAME): Update.
11350 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
11351 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
11352 * minsyms.c (minimal_symbol_reader::record_full): Update.
11353
11354 2019-03-15 Tom Tromey <tom@tromey.com>
11355
11356 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
11357
11358 2019-03-15 Tom Tromey <tom@tromey.com>
11359
11360 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
11361 unique_xmalloc_ptr.
11362 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
11363 Update.
11364 * minsyms.c (lookup_minimal_symbol_by_pc_section)
11365 (build_minimal_symbol_hash_tables)
11366 (minimal_symbol_reader::install): Update.
11367
11368 2019-03-15 Tom Tromey <tom@tromey.com>
11369
11370 * symtab.c (create_demangled_names_hash): Update.
11371 (symbol_set_names): Update.
11372 * objfiles.h (struct objfile_per_bfd_storage)
11373 <demangled_names_hash>: Now an htab_up.
11374 * objfiles.c (objfile_per_bfd_storage): Simplify.
11375
11376 2019-03-15 Tom Tromey <tom@tromey.com>
11377
11378 * objfiles.h (struct objfile_per_bfd_storage): Declare
11379 destructor.
11380 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
11381 New.
11382 (get_objfile_bfd_data): Use new. Don't initialize
11383 language_of_main.
11384 (free_objfile_per_bfd_storage): Remove.
11385 (objfile_bfd_data_free, objfile::~objfile): Use delete.
11386
11387 2019-03-15 Tom Tromey <tom@tromey.com>
11388
11389 * symfile.c (reread_symbols): Update.
11390 * objfiles.c (objfile::objfile): Update.
11391 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
11392 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
11393 comment.
11394 (minimal_symbol_reader::install): Update.
11395 (terminate_minimal_symbol_table): Remove.
11396 * jit.c (jit_object_close_impl): Update.
11397
11398 2019-03-15 Tom Tromey <tom@tromey.com>
11399
11400 * minsyms.c (minimal_symbol_reader::record_full): Remove some
11401 initializations.
11402
11403 2019-03-15 Tom Tromey <tom@tromey.com>
11404
11405 * objfiles.h (struct objfile_per_bfd_storage)
11406 <demangled_hash_languages>: Now a bitset.
11407 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
11408 (lookup_minimal_symbol): Update.
11409
11410 2019-03-15 Tom Tromey <tom@tromey.com>
11411
11412 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
11413 Don't return the symbol.
11414 * coffread.c (record_minimal_symbol): Use record_full.
11415
11416 2019-03-14 Eli Zaretskii <eliz@gnu.org>
11417
11418 The MS-Windows port of ncurses fails to switch to a color pair if
11419 one or both of the colors are the implicit default colors. This
11420 change records the default colors when TUI is initialized, and
11421 then specifies them explicitly when a color pair uses the default
11422 colors. This allows color styling in TUI mode on MS-Windows.
11423
11424 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
11425 ncurses_norm_attr.
11426 (tui_initialize_io) [__MINGW32__]: Record the default terminal
11427 colors in ncurses_norm_attr.
11428 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
11429 "none", replace it with the default color recorded in
11430 ncurses_norm_attr.
11431
11432 2019-03-14 Tom Tromey <tromey@adacore.com>
11433
11434 * source-cache.h (class source_cache) <get_source_lines>: Return
11435 std::string.
11436 * source-cache.c (source_cache::extract_lines): Handle case where
11437 first_pos==npos. Return std::string.
11438 (source_cache::get_source_lines): Update.
11439
11440 2019-03-14 Tom Tromey <tromey@adacore.com>
11441
11442 * NEWS: Add item for "style sources" commands.
11443 * source-cache.c (source_cache::get_source_lines): Check
11444 source_styling.
11445 * cli/cli-style.c (source_styling): New global.
11446 (_initialize_cli_style): Add "style sources" commands.
11447 (show_style_sources): New function.
11448 * cli/cli-style.h (source_styling): Declare.
11449
11450 2019-03-14 Pedro Alves <palves@redhat.com>
11451 Tom Tromey <tromey@adacore.com>
11452
11453 * tui/tui-winsource.h (tui_refill_source_window): Declare.
11454 * tui/tui-winsource.c (tui_refill_source_window): New function,
11455 from...
11456 (tui_horizontal_source_scroll): ... here. Move some logic.
11457 * cli/cli-style.c (set_style_enabled): Notify new observable.
11458 * tui/tui-hooks.c (tui_redisplay_source): New function.
11459 (tui_attach_detach_observers): Attach or detach
11460 tui_redisplay_source.
11461 * observable.h (source_styling_changed): New observable.
11462 * observable.c: Define source_styling_changed observable.
11463
11464 2019-03-13 Tom Tromey <tromey@adacore.com>
11465
11466 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
11467 (i386_gnu_nat_target::store_registers): Update.
11468 * target-debug.h (target_debug_print_std_string): New macro.
11469 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
11470 * windows-tdep.c (display_one_tib): Update.
11471 * tui/tui-stack.c (tui_make_status_line): Update.
11472 * top.c (print_inferior_quit_action): Update.
11473 * thread.c (thr_try_catch_cmd): Update.
11474 (add_thread_with_info): Update.
11475 (thread_target_id_str): Update.
11476 (thr_try_catch_cmd): Update.
11477 (thread_command): Update.
11478 (thread_find_command): Update.
11479 * record-btrace.c (record_btrace_target::info_record)
11480 (record_btrace_resume_thread, record_btrace_target::resume)
11481 (record_btrace_cancel_resume, record_btrace_step_thread)
11482 (record_btrace_target::wait, record_btrace_target::wait)
11483 (record_btrace_target::wait, record_btrace_target::stop): Update.
11484 * progspace.c (print_program_space): Update.
11485 * process-stratum-target.c
11486 (process_stratum_target::thread_address_space): Update.
11487 * linux-fork.c (linux_fork_mourn_inferior)
11488 (detach_checkpoint_command, info_checkpoints_command)
11489 (linux_fork_context): Update.
11490 (linux_fork_detach): Update.
11491 (class scoped_switch_fork_info): Update.
11492 (delete_checkpoint_command): Update.
11493 * infrun.c (follow_fork_inferior): Update.
11494 (follow_fork_inferior): Update.
11495 (proceed_after_vfork_done): Update.
11496 (handle_vfork_child_exec_or_exit): Update.
11497 (follow_exec): Update.
11498 (displaced_step_prepare_throw): Update.
11499 (displaced_step_restore): Update.
11500 (start_step_over): Update.
11501 (resume_1): Update.
11502 (clear_proceed_status_thread): Update.
11503 (proceed): Update.
11504 (print_target_wait_results): Update.
11505 (do_target_wait): Update.
11506 (context_switch): Update.
11507 (stop_all_threads): Update.
11508 (restart_threads): Update.
11509 (finish_step_over): Update.
11510 (handle_signal_stop): Update.
11511 (switch_back_to_stepped_thread): Update.
11512 (keep_going_pass_signal): Update.
11513 (print_exited_reason): Update.
11514 (normal_stop): Update.
11515 * inferior.c (inferior_pid_to_str): Change return type.
11516 (print_selected_inferior): Update.
11517 (add_inferior): Update.
11518 (detach_inferior): Update.
11519 * dummy-frame.c (fprint_dummy_frames): Update.
11520 * dcache.c (dcache_info_1): Update.
11521 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
11522 (btrace_fetch, btrace_clear): Update.
11523 * linux-tdep.c (linux_core_pid_to_str): Change return type.
11524 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
11525 type.
11526 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
11527 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
11528 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
11529 * gdbarch.c, gdbarch.h: Rebuild.
11530 * gdbarch.sh (core_pid_to_str): Change return type.
11531 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
11532 return type.
11533 (windows_nat_target::pid_to_str): Change return type.
11534 (windows_delete_thread): Update.
11535 (windows_nat_target::attach): Update.
11536 (windows_nat_target::files_info): Update.
11537 * target-delegates.c: Rebuild.
11538 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
11539 return type.
11540 (sol_thread_target::pid_to_str): Change return type.
11541 * remote.c (class remote_target) <pid_to_str>: Change return
11542 type.
11543 (remote_target::pid_to_str): Change return type.
11544 (extended_remote_target::attach, remote_target::remote_stop_ns)
11545 (remote_target::remote_notif_remove_queued_reply)
11546 (remote_target::push_stop_reply, remote_target::disable_btrace):
11547 Update.
11548 (extended_remote_target::attach): Update.
11549 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
11550 type.
11551 (gdbsim_target::pid_to_str): Change return type.
11552 * ravenscar-thread.c (struct ravenscar_thread_target)
11553 <pid_to_str>: Change return type.
11554 (ravenscar_thread_target::pid_to_str): Change return type.
11555 * procfs.c (class procfs_target) <pid_to_str>: Change return
11556 type.
11557 (procfs_target::pid_to_str): Change return type.
11558 (procfs_target::attach): Update.
11559 (procfs_target::detach): Update.
11560 (procfs_target::fetch_registers): Update.
11561 (procfs_target::store_registers): Update.
11562 (procfs_target::wait): Update.
11563 (procfs_target::files_info): Update.
11564 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
11565 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
11566 return type.
11567 (nto_procfs_target::pid_to_str): Change return type.
11568 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
11569 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
11570 return type.
11571 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
11572 (exit_lwp): Update.
11573 (attach_proc_task_lwp_callback, get_detach_signal)
11574 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
11575 (linux_nat_target::resume, wait_lwp, stop_callback)
11576 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
11577 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
11578 (linux_nat_wait_1, resume_stopped_resumed_lwps)
11579 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
11580 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
11581 type.
11582 (inf_ptrace_target::attach): Update.
11583 (inf_ptrace_target::files_info): Update.
11584 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
11585 type.
11586 (go32_nat_target::pid_to_str): Change return type.
11587 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
11588 (gnu_nat_target::wait): Update.
11589 (gnu_nat_target::wait): Update.
11590 (gnu_nat_target::resume): Update.
11591 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
11592 (fbsd_nat_target::wait): Update.
11593 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
11594 type.
11595 (darwin_nat_target::attach): Update.
11596 * corelow.c (class core_target) <pid_to_str>: Change return type.
11597 (core_target::pid_to_str): Change return type.
11598 * target.c (normal_pid_to_str): Change return type.
11599 (default_pid_to_str): Likewise.
11600 (target_pid_to_str): Change return type.
11601 (target_translate_tls_address): Update.
11602 (target_announce_detach): Update.
11603 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
11604 return type.
11605 (bsd_uthread_target::pid_to_str): Change return type.
11606 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
11607 type.
11608 (bsd_kvm_target::pid_to_str): Change return type.
11609 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
11610 return type.
11611 (aix_thread_target::pid_to_str): Change return type.
11612 * target.h (struct target_ops) <pid_to_str>: Change return type.
11613 (target_pid_to_str, normal_pid_to_str): Likewise.
11614 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
11615 type.
11616 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
11617 type.
11618 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
11619 return type.
11620 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
11621 type.
11622 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
11623 type.
11624 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
11625 return type.
11626
11627 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
11628
11629 * NEWS: Mention that the new default MI version is 3. Mention
11630 changes to the output of commands and events that deal with
11631 multi-location breakpoints.
11632 * breakpoint.c: Include "mi/mi-out.h".
11633 (print_one_breakpoint): Change output syntax if using MI version
11634 >= 3.
11635 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
11636 New.
11637 (mi_multi_location_breakpoint_output_fixed): New.
11638 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
11639 (mi_cmd_fix_multi_location_breakpoint_output): New.
11640 (mi_multi_location_breakpoint_output_fixed): New.
11641 * mi/mi-cmds.c (mi_cmds): Register command
11642 -fix-multi-location-breakpoint-output.
11643 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
11644 interpreter "mi".
11645
11646 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
11647
11648 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
11649 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
11650 instantiate mi_ui_out based on interpreter name.
11651 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
11652 * mi/mi-main.c (mi_load_progress): Likewise.
11653
11654 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11655
11656 * NEWS: Combine separate "New targets" sections for 8.3.
11657
11658 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11659
11660 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
11661 (ppcfbsd_init_abi): Install gdbarch
11662 "fetch_tls_load_module_address" and "get_thread_local_address"
11663 methods.
11664
11665 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11666
11667 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
11668 (riscv_fbsd_init_abi): Install gdbarch
11669 "fetch_tls_load_module_address" and "get_thread_local_address"
11670 methods.
11671
11672 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11673
11674 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
11675 (i386fbsd_init_abi): Install gdbarch
11676 "fetch_tls_load_module_address" and "get_thread_local_address"
11677 methods.
11678
11679 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11680
11681 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
11682 (amd64fbsd_init_abi): Install gdbarch
11683 "fetch_tls_load_module_address" and "get_thread_local_address"
11684 methods.
11685
11686 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11687
11688 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
11689 (struct fbsd_pspace_data): New type.
11690 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
11691 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
11692 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
11693 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
11694 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
11695
11696 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11697
11698 * gdbtypes.c (lookup_struct_elt): New function.
11699 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
11700 * gdbtypes.h (struct struct_elt): New type.
11701 (lookup_struct_elt): New prototype.
11702
11703 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11704
11705 * gdbtypes.c (lookup_struct_elt_type): Update comment and
11706 remove disabled code block.
11707
11708 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11709
11710 * gdbarch.sh (get_thread_local_address): New method.
11711 * gdbarch.h, gdbarch.c: Regenerate.
11712 * target.c (target_translate_tls_address): Use
11713 gdbarch_get_thread_local_address if present instead of
11714 target::get_thread_local_address.
11715
11716 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11717
11718 * target.h (target::get_thread_local_address): Update comment.
11719
11720 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11721
11722 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
11723 objfile->separate_debug_objfile_backlink if not NULL.
11724
11725 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11726
11727 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
11728 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
11729 (amd64bsd_store_inferior_registers): Likewise.
11730 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
11731 Enable segment base registers.
11732 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
11733 PT_GETFSBASE and PT_GETGSBASE.
11734 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
11735 PT_SETGSBASE.
11736 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
11737 segment base registers.
11738 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
11739
11740 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11741
11742 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
11743 Update calls to i386_target_description to add 'segments'
11744 parameter.
11745 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
11746 add segment base registers.
11747 * arch/i386.c (i386_create_target_description): Add 'segments'
11748 parameter to enable segment base registers.
11749 * arch/i386.h (i386_create_target_description): Likewise.
11750 * features/i386/32bit-segments.xml: New file.
11751 * features/i386/32bit-segments.c: Generate.
11752 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
11753 call to i386_target_description to add 'segments' parameter.
11754 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
11755 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
11756 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
11757 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
11758 if feature is present.
11759 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
11760 Add 'segments' parameter to call to i386_target_description.
11761 (i386_target_description): Add 'segments' parameter to enable
11762 segment base registers.
11763 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
11764 to call to i386_target_description.
11765 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
11766 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
11767 Define I386_NUM_REGS.
11768 (i386_target_description): Add 'segments' parameter to enable
11769 segment base registers.
11770
11771 2019-03-12 Eli Zaretskii <eliz@gnu.org>
11772
11773 PR/24325
11774 * source-cache.c: #undef open and close, to avoid unresolved
11775 externals during linking.
11776
11777 2019-03-12 Tom Tromey <tromey@adacore.com>
11778
11779 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
11780 const. Add initializers.
11781 (_initialize_remote): Don't initialize ptid globals.
11782
11783 2019-03-12 Pedro Alves <palves@redhat.com>
11784
11785 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
11786
11787 2019-03-12 Pedro Alves <palves@redhat.com>
11788
11789 * cp-name-parser.y (main): Remove unused 'len' variable.
11790
11791 2019-03-12 Tom Tromey <tromey@adacore.com>
11792
11793 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
11794 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
11795
11796 2019-03-12 Tom Tromey <tromey@adacore.com>
11797
11798 * linux-nat.c (iterate_over_lwps): Update.
11799 (stop_callback): Remove parameter.
11800 (stop_wait_callback, detach_callback, resume_set_callback)
11801 (select_singlestep_lwp_callback, set_ignore_sigint)
11802 (status_callback, resumed_callback, resume_clear_callback)
11803 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
11804 data parameter.
11805 (linux_nat_target::detach, linux_nat_target::resume)
11806 (linux_stop_and_wait_all_lwps, select_event_lwp)
11807 (linux_nat_filter_event, linux_nat_wait_1)
11808 (linux_nat_target::kill, linux_nat_target::stop)
11809 (linux_nat_target::stop): Update.
11810 (linux_nat_resume_callback): Change type.
11811 (resume_stopped_resumed_lwps, count_events_callback)
11812 (select_event_lwp_callback): Likewise.
11813 (linux_stop_lwp, linux_nat_stop_lwp): Update.
11814 * arm-linux-nat.c (struct update_registers_data): Remove.
11815 (update_registers_callback): Change type.
11816 (arm_linux_insert_hw_breakpoint1): Update.
11817 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
11818 parameter.
11819 (x86_linux_dr_set_addr): Update.
11820 (x86_linux_dr_set_control): Update.
11821 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
11822 (iterate_over_lwps): Use gdb::function_view.
11823 * nat/aarch64-linux-hw-point.c (struct
11824 aarch64_dr_update_callback_param): Remove.
11825 (debug_reg_change_callback): Change type.
11826 (aarch64_notify_debug_reg_change): Update.
11827 * s390-linux-nat.c (s390_refresh_per_info): Update.
11828
11829 2019-03-11 Tom Tromey <tromey@adacore.com>
11830
11831 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
11832 redundant assignment to "this_cu".
11833
11834 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11835
11836 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
11837
11838 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11839
11840 * gdbtypes.c (rank_one_type_parm_set): New function extracted
11841 from...
11842 (rank_one_type): ... this.
11843
11844 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11845
11846 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
11847 from...
11848 (rank_one_type): ... this.
11849
11850 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11851
11852 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
11853 from...
11854 (rank_one_type): ... this.
11855
11856 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11857
11858 * gdbtypes.c (rank_one_type_parm_float): New function extracted
11859 from...
11860 (rank_one_type): ... this.
11861
11862 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11863
11864 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
11865 from...
11866 (rank_one_type): ... this.
11867
11868 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11869
11870 * gdbtypes.c (rank_one_type_parm_range): New function extracted
11871 from...
11872 (rank_one_type): ... this.
11873
11874 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11875
11876 * gdbtypes.c (rank_one_type_parm_char): New function extracted
11877 from...
11878 (rank_one_type): ... this.
11879
11880 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11881
11882 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
11883 from...
11884 (rank_one_type): ... this.
11885
11886 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11887
11888 * gdbtypes.c (rank_one_type_parm_int): New function extracted
11889 from...
11890 (rank_one_type): ... this.
11891
11892 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11893
11894 * gdbtypes.c (rank_one_type_parm_func): New function extracted
11895 from...
11896 (rank_one_type): ... this.
11897
11898 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11899
11900 * gdbtypes.c (rank_one_type_parm_array): New function extracted
11901 from...
11902 (rank_one_type): ... this.
11903
11904 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11905
11906 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
11907 from...
11908 (rank_one_type): ... this.
11909
11910 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11911
11912 * inferior.c (initialize_inferiors): Ensure 'help set/show print
11913 inferior-events' shows the example events.
11914
11915 2019-03-08 Eli Zaretskii <eliz@gnu.org>
11916
11917 Support styling on native MS-Windows console
11918
11919 PR/24315
11920 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
11921 on MS-Windows if $TERM is not defined.
11922
11923 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
11924
11925 * posix-hdep.c (gdb_console_fputs):
11926 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
11927 functions.
11928 * ui-file.h (gdb_console_fputs): Add prototype.
11929
11930 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
11931 back to fputs only if the former returns zero.
11932
11933 2019-03-07 Tom Tromey <tom@tromey.com>
11934
11935 * symmisc.c (print_symbol_bcache_statistics): Update.
11936 (print_objfile_statistics): Update.
11937 * symfile.c (allocate_symtab): Update.
11938 * stabsread.c: Don't include bcache.h.
11939 * psymtab.h (struct psymbol_bcache): Don't declare.
11940 (class psymtab_storage) <psymbol_cache>: Now a bcache.
11941 (psymbol_bcache_init, psymbol_bcache_free)
11942 (psymbol_bcache_get_bcache): Don't declare.
11943 * psymtab.c (struct psymbol_bcache): Remove.
11944 (psymtab_storage::psymtab_storage): Update.
11945 (psymtab_storage::~psymtab_storage): Update.
11946 (psymbol_bcache_init, psymbol_bcache_free)
11947 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
11948 (add_psymbol_to_bcache): Update.
11949 (allocate_psymtab): Update.
11950 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
11951 macro_cache>: No longer pointers.
11952 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
11953 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
11954 * macrotab.c (macro_bcache): Update.
11955 * macroexp.c: Don't include bcache.h.
11956 * gdbtypes.c (check_types_worklist): Update.
11957 (types_deeply_equal): Remove TRY/CATCH. Update.
11958 * elfread.c (elf_symtab_read): Update.
11959 * dwarf2read.c: Don't include bcache.h.
11960 * buildsym.c (buildsym_compunit::get_macro_table): Update.
11961 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
11962 (print_bcache_statistics, bcache_memory_used): Don't declare.
11963 (struct bcache): Move from bcache.c. Add constructor, destructor,
11964 methods. Rename all data members.
11965 * bcache.c (struct bcache): Move to bcache.h.
11966 (bcache::expand_hash_table): Rename from expand_hash_table.
11967 (bcache): Remove.
11968 (bcache::insert): Rename from bcache_full.
11969 (bcache::compare): Rename from bcache_compare.
11970 (bcache_xmalloc): Remove.
11971 (bcache::~bcache): Rename from bcache_xfree.
11972 (bcache::print_statistics): Rename from print_bcache_statistics.
11973 (bcache::memory_used): Rename from bcache_memory_used.
11974
11975 2019-03-07 Pedro Alves <palves@redhat.com>
11976
11977 * infrun.c (normal_stop): Also check for
11978 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
11979
11980 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
11981
11982 * f-lang.c (value_from_host_double): Moved to...
11983 * value.c (value_from_host_double): ...here.
11984 * value.h (value_from_host_double): Declare.
11985 * guile/scm-math.c (vlscm_convert_typed_number): Use
11986 value_from_host_double.
11987 (vlscm_convert_number): Likewise.
11988 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
11989 * python/py-value.c (convert_value_from_python): Likewise.
11990
11991 2019-03-06 Tom Tromey <tom@tromey.com>
11992
11993 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
11994
11995 2019-03-06 Tom Tromey <tom@tromey.com>
11996
11997 * utils.h (free_current_contents): Don't declare.
11998 * utils.c (free_current_contents): Remove.
11999
12000 2019-03-06 Tom Tromey <tom@tromey.com>
12001
12002 * top.c (quit_force): Update.
12003 * main.c (captured_command_loop): Update.
12004 * common/new-op.c (operator new): Update.
12005 * common/common-exceptions.c (struct catcher)
12006 <save_cleanup_chain>: Remove member.
12007 (exceptions_state_mc_init): Update.
12008 (exception_try_scope_entry): Return nullptr.
12009 (exception_try_scope_exit, exception_rethrow)
12010 (throw_exception_sjlj, throw_exception_cxx): Update.
12011 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
12012 (all_cleanups, do_cleanups, discard_cleanups)
12013 (discard_final_cleanups, save_cleanups, save_final_cleanups)
12014 (restore_cleanups, restore_final_cleanups): Don't declare.
12015 (do_final_cleanups): Remove parameter.
12016 * common/cleanups.c (cleanup_chain, make_cleanup)
12017 (make_cleanup_dtor, all_cleanups, do_cleanups)
12018 (discard_my_cleanups, discard_cleanups)
12019 (discard_final_cleanups, save_my_cleanups, save_cleanups)
12020 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
12021 (null_cleanup): Remove.
12022 (do_final_cleanups): Remove parameter.
12023
12024 2019-03-06 Tom Tromey <tom@tromey.com>
12025
12026 * remote.c (remote_target::remote_parse_stop_reply): Use
12027 unique_xmalloc_ptr.
12028
12029 2019-03-06 Tom Tromey <tom@tromey.com>
12030
12031 * stabsread.c (struct stabs_field_info): Rename from field_info.
12032 <list, fnlist>: Add initializers.
12033 <obstack>: New member.
12034 (read_member_functions, read_struct_fields, read_baseclasses):
12035 Allocate on obstack. Don't use cleanups.
12036 (read_one_struct_field, read_member_functions, read_struct_fields)
12037 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
12038 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
12039 (read_struct_type): Update.
12040
12041 2019-03-06 Tom Tromey <tom@tromey.com>
12042
12043 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
12044 * common/filestuff.h (make_cleanup_close): Don't declare.
12045 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
12046 Remove.
12047
12048 2019-03-06 Tom Tromey <tom@tromey.com>
12049
12050 * solib-aix.c: Use make_scope_exit.
12051
12052 2019-03-06 Tom Tromey <tom@tromey.com>
12053
12054 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
12055 Use make_scope_exit.
12056
12057 2019-03-06 Tom Tromey <tom@tromey.com>
12058
12059 * solib-svr4.c (disable_probes_interface): Remove parameter.
12060 (svr4_handle_solib_event): Use make_scope_exit.
12061
12062 2019-03-06 Tom Tromey <tom@tromey.com>
12063
12064 * remote.c (struct stop_reply_deleter): Remove.
12065 (stop_reply_up): Update.
12066 (struct stop_reply): Derive from notif_event. Don't typedef.
12067 <regcache>: Now a std::vector.
12068 (stop_reply_xfree): Remove.
12069 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
12070 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
12071 (remote_target::discard_pending_stop_replies): Use delete.
12072 (remote_target::remote_parse_stop_reply): Update.
12073 (remote_target::process_stop_reply): Update.
12074 * remote-notif.h (struct notif_event): Add virtual destructor.
12075 Remove "dtr" member.
12076 (struct notif_client) <alloc_event>: Return a unique_ptr.
12077 (notif_event_xfree): Don't declare.
12078 (notif_event_up): New typedef.
12079 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
12080 (notif_event_xfree, do_notif_event_xfree): Remove.
12081 (remote_notif_state_xfree): Update.
12082
12083 2019-03-06 Tom Tromey <tom@tromey.com>
12084
12085 * infrun.c (displaced_step_clear_cleanup): Now a
12086 forward_scope_exit type.
12087 (displaced_step_prepare_throw): Update.
12088 (displaced_step_fixup): Update.
12089
12090 2019-03-06 Tom Tromey <tom@tromey.com>
12091
12092 * inferior.h (class inferior): Update comment.
12093 * gdbthread.h (class thread_info): Update comment.
12094
12095 2019-03-06 Joel Brobecker <brobecker@adacore.com>
12096 Tom Tromey <tom@tromey.com>
12097
12098 * stabsread.h (struct stab_section_list): Remove.
12099 (coffstab_build_psymtabs): Update.
12100 * dbxread.c (symbuf_sections): Now a std::vector.
12101 (sect_idx): New global.
12102 (fill_symbuf): Update.
12103 (coffstab_build_psymtabs): Change type of stabsects parameter.
12104 Update.
12105 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
12106 std::vector.
12107 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
12108 (coff_locate_sections): Update.
12109 (coff_symfile_read): Remove cleanups. Update.
12110 (init_stringtab): Add storage parameter.
12111 (free_stringtab, free_stringtab_cleanup): Remove.
12112 (init_lineno): Add storage parameter.
12113 (free_linetab, free_linetab_cleanup): Remove.
12114
12115 2019-03-06 Pedro Alves <palves@redhat.com>
12116
12117 * linux-fork.c (fork_info::clobber_regs): Delete.
12118 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
12119 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
12120 comment. Adjust.
12121 (scoped_switch_fork_info::scoped_switch_fork_info)
12122 (checkpoint_command, linux_fork_context): Adjust
12123 fork_save_infrun_state calls.
12124
12125 2019-03-06 Pedro Alves <palves@redhat.com>
12126
12127 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
12128 (inf_has_multiple_threads): Return 'bool' and rewrite using
12129 inferior_info::threads().
12130
12131 2019-03-06 Pedro Alves <palves@redhat.com>
12132
12133 * linux-fork.c: Include <list>.
12134 (fork_list): Now a std::list instance.
12135 (fork_info): Add ctor, dtor, and in-class initialize all fields.
12136 (forks_exist_p, find_last_fork): Adjust.
12137 (new_fork): Delete.
12138 (one_fork_p): New.
12139 (add_fork): Adjust.
12140 (free_fork): Delete, folded into fork_info::~fork_info().
12141 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
12142 Adjust.
12143 (init_fork_list): Delete.
12144 (linux_fork_killall, linux_fork_mourn_inferior)
12145 (linux_fork_detach, info_checkpoints_command): Adjust.
12146 (_initialize_linux_fork): No longer call init_fork_list.
12147
12148 2019-03-06 Pedro Alves <palves@redhat.com>
12149
12150 * linux-fork.c (new_fork): New, split out of ...
12151 (add_fork): ... this. Return void. Move "first fork" special
12152 case from here, to ...
12153 (checkpoint_command): ... here.
12154 * linux-linux.h (add_fork): Return void.
12155
12156 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12157
12158 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
12159
12160 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12161 Chris January <chris.january@arm.com>
12162 David Lecomber <david.lecomber@arm.com>
12163
12164 * f-exp.y: New token, UNOP_INTRINSIC.
12165 (exp): New pattern using UNOP_INTRINSIC token.
12166 (f77_keywords): Add 'abs' keyword.
12167 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
12168 (value_from_host_double): New function.
12169 (evaluate_subexp_f): Support UNOP_ABS.
12170
12171 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12172
12173 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
12174 types.
12175
12176 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12177
12178 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
12179 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
12180 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
12181
12182 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12183
12184 * f-exp.y (convert_to_kind_type): Handle more type kinds.
12185
12186 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12187 Chris January <chris.january@arm.com>
12188
12189 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
12190 * f-exp.y: Define 'KIND' token.
12191 (exp): New pattern for KIND expressions.
12192 (ptype): Handle types with a kind extension.
12193 (direct_abs_decl): Extend to spot kind extensions.
12194 (f77_keywords): Add 'kind' to the list.
12195 (push_kind_type): New function.
12196 (convert_to_kind_type): New function.
12197 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
12198 * parse.c (operator_length_standard): Likewise.
12199 * parser-defs.h (enum type_pieces): Add tp_kind.
12200 * std-operator.def: Add UNOP_KIND.
12201
12202 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12203
12204 * f-exp.y (f_parse): Set yydebug.
12205
12206 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12207
12208 * f-lang.c (evaluate_subexp_f): New function.
12209 (exp_descriptor_f): New global.
12210 (f_language_defn): Use exp_descriptor_f instead of
12211 exp_descriptor_standard.
12212
12213 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12214
12215 * f-exp.y (struct token): Add comments.
12216 (dot_ops): Remove uppercase versions and the end marker.
12217 (f77_keywords): Likewise.
12218 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
12219 entries in the dot_ops array are case insensitive, and use
12220 strncasecmp to compare strings. Also some whitespace cleanup in
12221 this area. Similar for the f77_keywords array, except entries in
12222 this list might be case sensitive.
12223
12224 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12225
12226 * f-exp.y (struct f77_boolean_val): Add comments.
12227 (boolean_values): Remove uppercase versions, and end marker.
12228 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
12229 and use strncasecmp to achieve case insensitivity. Additionally,
12230 perform whitespace cleanup around this code.
12231
12232 2019-03-06 Tom Tromey <tromey@adacore.com>
12233
12234 * remote-sim.c (gdbsim_target_open): Use result of
12235 gdb_argv::release.
12236
12237 2019-03-06 Richard Bunt <richard.bunt@arm.com>
12238 Dirk Schubert <dirk.schubert@arm.com>
12239 Chris January <chris.january@arm.com>
12240
12241 * eval.c (evaluate_subexp_standard): Call Fortran argument
12242 wrapping logic.
12243 * f-lang.c (struct value): A value which can be passed into a
12244 Fortran function call.
12245 (fortran_argument_convert): Wrap Fortran arguments in a pointer
12246 where appropriate.
12247 (struct type): Value ready for a Fortran function call.
12248 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
12249 is needed.
12250 * f-lang.h (fortran_argument_convert): Declaration.
12251 (fortran_preserve_arg_pointer): Declaration.
12252 * infcall.c (value_arg_coerce): Call Fortran argument logic.
12253
12254 2019-03-05 Tom Tromey <tromey@adacore.com>
12255
12256 * python/py-prettyprint.c (print_string_repr): Remove #if.
12257 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
12258
12259 2019-03-05 Tom Tromey <tromey@adacore.com>
12260
12261 * target.c (the_dummy_target): Move later. Change type to
12262 "dummy_target".
12263 (initialize_targets): Don't initialize the_dummy_target.
12264
12265 2019-03-05 Tom Tromey <tromey@adacore.com>
12266
12267 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
12268 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
12269
12270 2019-03-05 Tom Tromey <tromey@adacore.com>
12271
12272 * windows-nat.c (windows_nat_target::attach)
12273 (windows_nat_target::detach): Don't call gdb_flush.
12274 * valprint.c (generic_val_print, val_print, val_print_string):
12275 Don't call gdb_flush.
12276 * utils.c (defaulted_query): Don't call gdb_flush.
12277 * typeprint.c (print_type_scalar): Don't call gdb_flush.
12278 * target.c (target_announce_detach): Don't call gdb_flush.
12279 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
12280 * remote.c (extended_remote_target::attach): Don't call
12281 gdb_flush.
12282 * procfs.c (procfs_target::detach): Don't call gdb_flush.
12283 * printcmd.c (do_examine): Don't call gdb_flush.
12284 (info_display_command): Don't call gdb_flush.
12285 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
12286 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
12287 * memattr.c (info_mem_command): Don't call gdb_flush.
12288 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
12289 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
12290 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
12291 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
12292 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
12293 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
12294 (gnu_nat_target::detach): Don't call gdb_flush.
12295 * f-valprint.c (f_val_print): Don't call gdb_flush.
12296 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
12297 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
12298 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
12299 gdb_flush.
12300 * c-valprint.c (c_val_print): Don't call gdb_flush.
12301 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
12302
12303 2019-03-05 Tom Tromey <tromey@adacore.com>
12304
12305 * varobj.c (update_dynamic_varobj_children): Update.
12306 (install_default_visualizer): Use reset, not release.
12307 * value.c (set_internalvar): Update.
12308 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
12309 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
12310 ATTRIBUTE_UNUSED_RESULT.
12311
12312 2019-03-05 Tom Tromey <tromey@adacore.com>
12313
12314 * remote.c (class scoped_remote_fd) <release>: Add
12315 ATTRIBUTE_UNUSED_RESULT.
12316
12317 2019-03-05 Tom Tromey <tromey@adacore.com>
12318
12319 * macroexp.c (struct macro_buffer) <release>: Add
12320 ATTRIBUTE_UNUSED_RESULT.
12321
12322 2019-03-05 Tom Tromey <tromey@adacore.com>
12323
12324 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
12325 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
12326 ATTRIBUTE_UNUSED_RESULT.
12327
12328 2019-03-05 Tom Tromey <tromey@adacore.com>
12329
12330 * common/scoped_fd.h (class scoped_fd) <release>: Add
12331 ATTRIBUTE_UNUSED_RESULT.
12332
12333 2019-03-05 Tom Tromey <tromey@adacore.com>
12334
12335 * parser-defs.h (struct parser_state) <release>: Add
12336 ATTRIBUTE_UNUSED_RESULT.
12337
12338 2019-03-05 Tom Tromey <tromey@adacore.com>
12339
12340 * utils.h (class gdb_argv) <release>: Add
12341 ATTRIBUTE_UNUSED_RESULT.
12342 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
12343
12344 2019-03-02 Eli Zaretskii <eliz@gnu.org>
12345
12346 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
12347 for-loop range, to avoid compiler warnings.
12348
12349 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
12350 avoid compiler warnings about unused variables.
12351
12352 * NEWS: Mention end of support for native debugging on MS-Windows
12353 before XP.
12354
12355 PR gdb/24292
12356 * common/netstuff.c:
12357 * gdbserver/gdbreplay.c
12358 * gdbserver/remote-utils.c:
12359 * ser-tcp.c:
12360 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
12361 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
12362 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
12363 'getaddrinfo' and 'freeaddrinfo' were not available before
12364 Windows XP, and mingw.org's MinGW headers by default define
12365 _WIN32_WINNT to 0x500.
12366
12367 2019-03-01 Gary Benson <gbenson@redhat.com>
12368
12369 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
12370
12371 2019-02-28 Brian Vandenberg <phantall@gmail.com>
12372 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12373
12374 PR gdb/8527
12375 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
12376 set_sigint_trap, clear_sigint_trap.
12377
12378 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12379
12380 * target.c (target_detach): Clear the regcache and the
12381 frame cache.
12382
12383 2019-02-27 Pedro Alves <palves@redhat.com>
12384
12385 * utils.c (set_screen_size): When we cap the height/width sizes,
12386 tweak the corresponding command variable to show "unlimited":
12387
12388 2019-02-27 Saagar Jha <saagar@saagarjha.com>
12389 Pedro Alves <palves@redhat.com>
12390
12391 * utils.c (set_screen_size): Reduce "infinite" rows and columns
12392 before calling rl_set_screen_size.
12393
12394 2019-02-27 Tom Tromey <tromey@adacore.com>
12395
12396 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
12397 define.
12398 * python/py-value.c: Remove Python 2.4 workaround.
12399 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
12400 workaround.
12401 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
12402 Python 2.4 workaround.
12403 * python/python-internal.h: Remove Python 2.4 comment.
12404 (Py_ssize_t): Don't define.
12405 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
12406 (gdb_Py_DECREF): Remove Python 2.4 workaround.
12407 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
12408 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
12409 * python/python.c (do_start_initialization): Remove Python 2.4
12410 workaround.
12411 * python/py-prettyprint.c (class dummy_python_frame): Remove.
12412 (print_children): Remove Python 2.4 workaround.
12413 * python/py-inferior.c (buffer_procs): Remove Python 2.4
12414 workaround.
12415 (CHARBUFFERPROC_NAME): Remove.
12416 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
12417 Python 2.4 workaround.
12418
12419 2019-02-27 Kevin Buettner <kevinb@redhat.com>
12420
12421 * NEWS: Note minimum Python version.
12422
12423 2019-02-27 Kevin Buettner <kevinb@redhat.com>
12424
12425 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
12426 code from these functions. Remove corresponding ifdefs. Use
12427 Py_buffer_up instead of explicit calls to PyBuffer_Release.
12428 Remove gotos and target of gotos.
12429 (infpy_search_memory): Likewise.
12430
12431 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12432
12433 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
12434 (hppa_gdbarch_init): Don't register deleted functions with
12435 gdbarch.
12436
12437 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12438
12439 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
12440 (h8300_unwind_sp): Delete.
12441 (h8300_dummy_id): Delete.
12442 (h8300_gdbarch_init): Don't register deleted functions with
12443 gdbarch.
12444
12445 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12446
12447 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
12448 (ft32_unwind_pc): Delete.
12449 (ft32_unwind_sp): Delete.
12450 (ft32_gdbarch_init): Don't register deleted functions with
12451 gdbarch.
12452
12453 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12454
12455 * gdb/frv-tdep.c (frv_dummy_id): Delete.
12456 (frv_unwind_pc): Delete.
12457 (frv_unwind_sp): Delete.
12458 (frv_gdbarch_init): Don't register deleted functions with
12459 gdbarch.
12460
12461 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12462
12463 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
12464 (riscv_unwind_pc): Delete.
12465 (riscv_unwind_sp): Delete.
12466 (riscv_gdbarch_init): Don't register deleted functions with
12467 gdbarch.
12468
12469 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12470
12471 * gdb/csky-tdep.c (csky_dummy_id): Delete.
12472 (csky_unwind_pc): Delete.
12473 (csky_unwind_sp): Delete.
12474 (csky_gdbarch_init): Don't register deleted functions with
12475 gdbarch.
12476
12477 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12478
12479 * gdb/cris-tdep.c (cris_dummy_id): Delete.
12480 (cris_unwind_pc): Delete.
12481 (cris_unwind_sp): Delete.
12482 (cris_gdbarch_init): Don't register deleted functions with
12483 gdbarch.
12484
12485 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12486
12487 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
12488 (bfin_unwind_pc): Delete.
12489 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
12490
12491 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12492
12493 * gdb/arm-tdep.c (arm_dummy_id): Delete.
12494 (arm_unwind_pc): Delete.
12495 (arm_unwind_sp): Delete.
12496 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
12497
12498 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12499
12500 * gdb/arc-tdep.c (arc_dummy_id): Delete.
12501 (arc_unwind_pc): Delete.
12502 (arc_unwind_sp): Delete.
12503 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
12504
12505 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12506
12507 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
12508 (alpha_unwind_pc): Delete.
12509 (alpha_gdbarch_init): Don't register deleted functions with
12510 gdbarch.
12511
12512 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12513
12514 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
12515 (aarch64_unwind_pc): Delete.
12516 (aarch64_unwind_sp): Delete.
12517 (aarch64_gdbarch_init): Don't register deleted functions with
12518 gdbarch.
12519
12520 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12521
12522 * gdbtypes.c (type_align): Don't consider static members when
12523 computing structure alignment.
12524
12525 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12526
12527 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
12528 return 0 for other types.
12529 * arch-utils.c (default_type_align): Always return 0.
12530 * gdbarch.h: Regenerate.
12531 * gdbarch.sh (type_align): Extend comment.
12532 * gdbtypes.c (type_align): Add additional comments, always call
12533 gdbarch_type_align before applying the default rules.
12534 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
12535 generic code will then apply a suitable default.
12536 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
12537 types, return 0 for other types.
12538
12539 2019-02-27 Joel Brobecker <brobecker@adacore.com>
12540
12541 * NEWS: Create a new section for the next release branch.
12542 Rename the section of the current branch, now that it has
12543 been cut.
12544
12545 2019-02-27 Joel Brobecker <brobecker@adacore.com>
12546
12547 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
12548 * version.in: Bump version to 8.3.50.DATE-git.
12549
12550 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
12551
12552 * aix-thread.c (ptid_cmp): Remove unused variable.
12553 (get_signaled_thread): Likewise.
12554 (store_regs_user_thread): Likewise.
12555 (store_regs_kernel_thread): Likewise.
12556 (fetch_regs_kernel_thread): Remove shadowed variable.
12557
12558 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
12559
12560 * features/riscv/32bit-cpu.xml: Add register numbers.
12561 * features/riscv/32bit-fpu.c: Regenerate.
12562 * features/riscv/32bit-fpu.xml: Add register numbers.
12563 * features/riscv/64bit-cpu.xml: Add register numbers.
12564 * features/riscv/64bit-fpu.c: Regenerate.
12565 * features/riscv/64bit-fpu.xml: Add register numbers.
12566
12567 2019-02-26 Kevin Buettner <kevinb@redhat.com>
12568
12569 * NEWS: Mention two argument form of gdb.Value constructor.
12570 * python/py-value.c (convert_buffer_and_type_to_value): New
12571 function.
12572 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
12573 Add support for handling an optional second argument. Call
12574 convert_buffer_and_type_to_value as appropriate.
12575 * python/python-internal.h (Py_buffer_deleter): New struct.
12576 (Py_buffer_up): New typedef.
12577
12578 2019-02-25 John Baldwin <jhb@FreeBSD.org>
12579
12580 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
12581 instead of releasing ownership.
12582
12583 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
12584
12585 * dwarf2read.c (open_and_init_dwp_file): Call
12586 elf_numsections instead of bfd_count_sections to initialize
12587 dwp_file->num_sections.
12588
12589 2019-02-25 Tom Tromey <tromey@adacore.com>
12590
12591 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
12592
12593 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
12594
12595 * gcore.in: Add '--readnever' option when invoking GDB.
12596
12597 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
12598
12599 * MAINTAINERS: Update my email address.
12600
12601 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
12602
12603 * build-id.c (build_id_to_debug_bfd_1): New function.
12604 (build_id_to_debug_bfd): Look for separate debug file in
12605 sysroot.
12606
12607 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
12608
12609 * gdbarch.sh: Update the copyright year range that is placed into
12610 generated files.
12611
12612 2019-02-22 Keith Seitz <keiths@redhat.com>
12613
12614 PR symtab/23853
12615 * linespec.c (create_sals_line_offset): Search for the default
12616 symtab's filename instead of its fullname.
12617
12618 2019-02-21 Alan Hayward <alan.hayward@arm.com>
12619
12620 * NEWS: Update style defaults.
12621
12622 2019-02-21 Alan Hayward <alan.hayward@arm.com>
12623
12624 * main.c (captured_main_1): Disable styling in batch mode.
12625
12626 2019-02-20 Tom Tromey <tom@tromey.com>
12627
12628 * symtab.c (symtab_symbol_info): Fix typos.
12629
12630 2019-02-20 Tom Tromey <tromey@adacore.com>
12631
12632 * findcmd.c (_initialize_mem_search): Use upper case for
12633 metasyntactic variables.
12634
12635 2019-02-20 Alan Hayward <alan.hayward@arm.com>
12636
12637 * aarch64-tdep.c (aarch64_add_reggroups): New function.
12638 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
12639
12640 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
12641
12642 * top.h (source_file_name): Change to std::string.
12643 * top.c (source_file_name): Likewise.
12644 (command_line_input): Adjust.
12645 * cli/cli-script.c (script_from_file): Adjust.
12646
12647 2019-02-19 Tom Tromey <tromey@adacore.com>
12648
12649 * ravenscar-thread.c
12650 (ravenscar_thread_target::update_thread_list): Don't call
12651 ada_build_task_list.
12652 * ada-lang.h (ada_build_task_list): Don't declare.
12653 * ada-tasks.c (struct ada_tasks_inferior_data)
12654 <task_list_valid_p>: Now bool.
12655 (read_known_tasks, ada_task_list_changed)
12656 (ada_tasks_invalidate_inferior_data): Update.
12657 (read_known_tasks_array): Return bool.
12658 (read_known_tasks_list): Likewise.
12659 (read_known_tasks): Return void.
12660 (ada_build_task_list): Now static.
12661
12662 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
12663
12664 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
12665 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
12666
12667 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12668
12669 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
12670 variant for ada_tasks_pspace_data_handle and
12671 ada_tasks_inferior_data_handle.
12672 (ada_tasks_pspace_data_cleanup): New function.
12673 (ada_tasks_inferior_data_cleanup): New function.
12674
12675 2019-02-17 Tom Tromey <tom@tromey.com>
12676
12677 * macrotab.h (macro_source_fullname): Return a std::string.
12678 * macrotab.c (macro_include, check_for_redefinition)
12679 (macro_undef, macro_lookup_definition, foreach_macro)
12680 (foreach_macro_in_scope): Update.
12681 (macro_source_fullname): Return a std::string.
12682 * macrocmd.c (show_pp_source_pos): Update.
12683
12684 2019-02-17 Tom Tromey <tom@tromey.com>
12685
12686 * macrocmd.c (show_pp_source_pos): Style the file names.
12687
12688 2019-02-17 Tom Tromey <tom@tromey.com>
12689
12690 PR tui/24197:
12691 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
12692
12693 2019-02-17 Tom Tromey <tom@tromey.com>
12694
12695 * ada-lang.c (user_select_syms): Use filtered printing.
12696 * utils.c (wrap_style): New global.
12697 (desired_style): Remove.
12698 (emit_style_escape): Add stream parameter.
12699 (set_output_style, reset_terminal_style, prompt_for_continue):
12700 Update.
12701 (flush_wrap_buffer): Only flush gdb_stdout.
12702 (wrap_here): Set wrap_style.
12703 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
12704 treat escape sequences as a character. Change when wrap buffer is
12705 flushed.
12706 (fputs_styled): Do not set the output style when the default is
12707 requested.
12708 * ui-style.h (struct ui_file_style) <is_default>: New method.
12709 * source.c (print_source_lines_base): Emit escape sequences in one
12710 piece.
12711
12712 2019-02-17 Joel Brobecker <brobecker@adacore.com>
12713
12714 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
12715 integers and enumeration types.
12716
12717 2019-02-17 Joel Brobecker <brobecker@adacore.com>
12718
12719 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
12720 instead of lookup_symbol_in_language
12721 (do_exact_match): New function.
12722 (ada_get_symbol_name_matcher): Return do_exact_match when
12723 doing a verbatim match.
12724
12725 2019-02-15 Tom Tromey <tromey@adacore.com>
12726
12727 * ravenscar-thread.c (ravenscar_thread_target::resume)
12728 (ravenscar_thread_target::wait): Special case wildcard requests.
12729
12730 2019-02-15 Tom Tromey <tromey@adacore.com>
12731
12732 * ravenscar-thread.c (base_ptid): Remove.
12733 (struct ravenscar_thread_target) <close>: New method.
12734 <m_base_ptid>: New member.
12735 <update_inferior_ptid, active_task, task_is_currently_active,
12736 runtime_initialized>: Declare methods.
12737 <ravenscar_thread_target>: Add constructor.
12738 (ravenscar_thread_target::task_is_currently_active)
12739 (ravenscar_thread_target::update_inferior_ptid)
12740 (ravenscar_runtime_initialized): Rename. Now methods.
12741 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
12742 (ravenscar_thread_target::update_thread_list): Update.
12743 (ravenscar_thread_target::active_task): Now method.
12744 (ravenscar_thread_target::store_registers)
12745 (ravenscar_thread_target::prepare_to_store)
12746 (ravenscar_thread_target::prepare_to_store)
12747 (ravenscar_thread_target::mourn_inferior): Update.
12748 (ravenscar_inferior_created): Use "new" to create target.
12749 (ravenscar_thread_target::get_ada_task_ptid): Update.
12750 (_initialize_ravenscar): Don't initialize base_ptid.
12751 (ravenscar_ops): Remove global.
12752
12753 2019-02-15 Tom Tromey <tromey@adacore.com>
12754
12755 * target.h (push_target): Declare new overload.
12756 * target.c (push_target): New overload, taking an rvalue reference.
12757 * remote.c (remote_target::open_1): Use push_target overload.
12758 * corelow.c (core_target_open): Use push_target overload.
12759
12760 2019-02-15 Tom Tromey <tromey@adacore.com>
12761
12762 * ravenscar-thread.c (is_ravenscar_task)
12763 (ravenscar_task_is_currently_active): Return bool.
12764 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
12765 (_initialize_ravenscar): Remove "(void)".
12766 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
12767 Return bool.
12768
12769 2019-02-15 Tom Tromey <tromey@adacore.com>
12770
12771 * ravenscar-thread.c (ravenscar_runtime_initializer)
12772 (has_ravenscar_runtime, get_running_thread_id)
12773 (ravenscar_thread_target::resume): Fix indentation.
12774
12775 2019-02-15 Tom Tromey <tromey@adacore.com>
12776
12777 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
12778 from ravenscar_arch_ops.
12779 (sparc_ravenscar_ops::fetch_registers)
12780 (sparc_ravenscar_ops::store_registers): Now methods.
12781 (sparc_ravenscar_prepare_to_store): Remove.
12782 (sparc_ravenscar_ops): Redefine.
12783 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
12784 methods and destructor. Remove members.
12785 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
12786 (ravenscar_thread_target::store_registers)
12787 (ravenscar_thread_target::prepare_to_store): Update.
12788 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
12789 Remove.
12790 (struct ppc_ravenscar_powerpc_ops): Derive from
12791 ravenscar_arch_ops.
12792 (ppc_ravenscar_powerpc_ops::fetch_registers)
12793 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
12794 (ppc_ravenscar_powerpc_ops): Redefine.
12795 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
12796 (ppc_ravenscar_e500_ops::fetch_registers)
12797 (ppc_ravenscar_e500_ops::store_registers): Now methods.
12798 (ppc_ravenscar_e500_ops): Redefine.
12799 * aarch64-ravenscar-thread.c
12800 (aarch64_ravenscar_generic_prepare_to_store): Remove.
12801 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
12802 (aarch64_ravenscar_fetch_registers)
12803 (aarch64_ravenscar_store_registers): Now methods.
12804 (aarch64_ravenscar_ops): Redefine.
12805
12806 2019-02-15 Tom Tromey <tromey@adacore.com>
12807
12808 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
12809 (ravenscar_thread_target::stopped_by_hw_breakpoint)
12810 (ravenscar_thread_target::stopped_by_watchpoint)
12811 (ravenscar_thread_target::stopped_data_address)
12812 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
12813
12814 2019-02-15 Tom Tromey <tromey@adacore.com>
12815
12816 * ravenscar-thread.c: Fix some typos.
12817
12818 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12819 Tom Tromey <tromey@adacore.com>
12820
12821 * ada-lang.c (ada_exception_sal): Change addr_string to a
12822 std::string.
12823 (create_ada_exception_catchpoint): Update.
12824
12825 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12826 Tom Tromey <tromey@adacore.com>
12827
12828 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
12829 (bp_location_ops): Remove.
12830 (base_breakpoint_allocate_location): Update.
12831 (free_bp_location): Update.
12832 * ada-lang.c (class ada_catchpoint_location)
12833 <ada_catchpoint_location>: Remove ops parameter.
12834 (ada_catchpoint_location_dtor): Remove.
12835 (ada_catchpoint_location_ops): Remove.
12836 (allocate_location_exception): Update.
12837 * breakpoint.h (struct bp_location_ops): Remove.
12838 (class bp_location) <bp_location>: Remove bp_location_ops
12839 parameter.
12840 <~bp_location>: Add destructor.
12841 <ops>: Remove.
12842
12843 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
12844 Pedro Alves <palves@redhat.com>
12845
12846 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
12847 'PATH_MAX'.
12848
12849 2019-02-14 David Michael <fedora.dm0@gmail.com>
12850 Samuel Thibault <samuel.thibault@gnu.org>
12851 Thomas Schwinge <thomas@codesourcery.com>
12852
12853 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
12854 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
12855
12856 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
12857
12858 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
12859 (check_empty): Use "const char *".
12860
12861 * gnu-nat.c (gnu_nat_target::detach): Instead of
12862 'detach_inferior (pid)' call
12863 'detach_inferior (find_inferior_pid (pid))'.
12864
12865 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
12866 'nat/fork-inferior.o'.
12867 * gnu-nat.c: #include "nat/fork-inferior.h".
12868
12869 * gnu-nat.c (gnu_nat_target::detach): Instead of
12870 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
12871 * gnu-nat.h: #include "inf-child.h".
12872 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
12873 'i386_gnu_nat_target::fetch_registers'.
12874 (gnu_store_registers): Rename/move to
12875 'i386_gnu_nat_target::store_registers'.
12876
12877 * config/i386/nm-i386gnu.h: Don't "#include" any files.
12878 * gnu-nat.h (mach_thread_info): New function.
12879 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
12880
12881 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
12882
12883 2019-02-14 Frederic Konrad <konrad@adacore.com>
12884
12885 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
12886
12887 2019-02-14 Joel Brobecker <brobecker@adacore.com>
12888
12889 * windows-nat.c (windows_add_thread): Add new parameter
12890 "main_thread_p" with default value set to false. Update
12891 function documentation as well as all callers.
12892 (windows_delete_thread): Likewise.
12893 (fake_create_process): Update call to windows_add_thread.
12894 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
12895 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
12896 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
12897 call to windows_delete_thread.
12898
12899 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
12900
12901 * MAINTAINERS: Add Andrew Burgess as global maintainer.
12902
12903 2019-02-12 John Baldwin <jhb@FreeBSD.org>
12904
12905 * symfile.c (find_separate_debug_file): Use canonical path of
12906 sysroot with child_path instead of gdb_sysroot if it is valid.
12907
12908 2019-02-12 John Baldwin <jhb@FreeBSD.org>
12909
12910 * symfile.c (find_separate_debug_file): Use child_path to
12911 determine if an object file is under a sysroot.
12912
12913 2019-02-12 John Baldwin <jhb@FreeBSD.org>
12914
12915 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12916 unittests/child-path-selftests.c.
12917 * common/pathstuff.c (child_path): New function.
12918 * common/pathstuff.h (child_path): New prototype.
12919 * unittests/child-path-selftests.c: New file.
12920
12921 2019-02-12 John Baldwin <jhb@FreeBSD.org>
12922
12923 * symfile.c (find_separate_debug_file): Look for separate debug
12924 files in debug directories under the sysroot.
12925
12926 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12927
12928 * symtab.h (struct minimal_symbol data_p): New const method.
12929 (struct minimal_symbol text_p): Likewise.
12930 * symtab.c (output_source_filename): Use file name style
12931 to print file name.
12932 (print_symbol_info): Likewise.
12933 (print_msymbol_info): Use address style to print addresses.
12934 Use function name style to print executable text symbols.
12935 (expand_symtab_containing_pc): Use data_p.
12936 (find_pc_sect_compunit_symtab): Likewise.
12937
12938 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12939
12940 * breakpoint.c (describe_other_breakpoints): Use address style
12941 to print addresses.
12942 (say_where): Likewise.
12943
12944 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12945
12946 * ada-typeprint.c (print_func_type): Print function name
12947 style to print function name.
12948 * c-typeprint.c (c_print_type_1): Likewise.
12949
12950 2019-02-11 Alan Hayward <alan.hayward@arm.com>
12951
12952 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
12953 for execve.
12954
12955 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12956
12957 * c-exp.y (direct_abs_decl): Use emplace_back to record the
12958 type_stack.
12959
12960 2019-02-10 Joel Brobecker <brobecker@adacore.com>
12961
12962 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
12963 TYPE_CODE_REF types.
12964
12965 2019-02-08 Jim Wilson <jimw@sifive.com>
12966
12967 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
12968 (riscv_linux_fregset): New.
12969 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
12970
12971 2019-02-07 Tom Tromey <tom@tromey.com>
12972
12973 * thread.c (thread_cancel_execution_command): Update.
12974 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
12975 methods.
12976 (struct thread_fsm_ops): Remove.
12977 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
12978 (thread_fsm_should_stop, thread_fsm_return_value)
12979 (thread_fsm_set_finished, thread_fsm_finished_p)
12980 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
12981 Don't declare.
12982 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
12983 * infrun.c (clear_proceed_status_thread)
12984 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
12985 (print_stop_event): Update.
12986 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
12987 Add constructor.
12988 (step_command_fsm_ops): Remove.
12989 (new_step_command_fsm): Remove.
12990 (step_1): Update.
12991 (step_command_fsm::should_stop): Rename from
12992 step_command_fsm_should_stop.
12993 (step_command_fsm::clean_up): Rename from
12994 step_command_fsm_clean_up.
12995 (step_command_fsm::do_async_reply_reason): Rename from
12996 step_command_fsm_async_reply_reason.
12997 (struct until_next_fsm): Inherit from thread_fsm. Add
12998 constructor.
12999 (until_next_fsm_ops): Remove.
13000 (new_until_next_fsm): Remove.
13001 (until_next_fsm::should_stop): Rename from
13002 until_next_fsm_should_stop.
13003 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
13004 (until_next_fsm::do_async_reply_reason): Rename from
13005 until_next_fsm_async_reply_reason.
13006 (struct finish_command_fsm): Inherit from thread_fsm. Add
13007 constructor. Change type of breakpoint.
13008 (finish_command_fsm_ops): Remove.
13009 (new_finish_command_fsm): Remove.
13010 (finish_command_fsm::should_stop): Rename from
13011 finish_command_fsm_should_stop.
13012 (finish_command_fsm::clean_up): Rename from
13013 finish_command_fsm_clean_up.
13014 (finish_command_fsm::return_value): Rename from
13015 finish_command_fsm_return_value.
13016 (finish_command_fsm::do_async_reply_reason): Rename from
13017 finish_command_fsm_async_reply_reason.
13018 (finish_command): Update.
13019 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
13020 Add constructor.
13021 (call_thread_fsm_ops): Remove.
13022 (call_thread_fsm::call_thread_fsm): Rename from
13023 new_call_thread_fsm.
13024 (call_thread_fsm::should_stop): Rename from
13025 call_thread_fsm_should_stop.
13026 (call_thread_fsm::should_notify_stop): Rename from
13027 call_thread_fsm_should_notify_stop.
13028 (run_inferior_call, call_function_by_hand_dummy): Update.
13029 * cli/cli-interp.c (should_print_stop_to_console): Update.
13030 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
13031 Add constructor. Change type of location_breakpoint,
13032 caller_breakpoint.
13033 (until_break_fsm_ops): Remove.
13034 (new_until_break_fsm): Remove.
13035 (until_break_fsm::should_stop): Rename from
13036 until_break_fsm_should_stop.
13037 (until_break_fsm::clean_up): Rename from
13038 until_break_fsm_clean_up.
13039 (until_break_fsm::do_async_reply_reason): Rename from
13040 until_break_fsm_async_reply_reason.
13041 (until_break_command): Update.
13042 * thread-fsm.c: Remove.
13043 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
13044
13045 2019-02-07 Tom Tromey <tom@tromey.com>
13046
13047 * yy-remap.h: Add include guard.
13048 * xtensa-tdep.h: Add include guard.
13049 * xcoffread.h: Rename include guard.
13050 * varobj-iter.h: Add include guard.
13051 * tui/tui.h: Rename include guard.
13052 * tui/tui-winsource.h: Rename include guard.
13053 * tui/tui-wingeneral.h: Rename include guard.
13054 * tui/tui-windata.h: Rename include guard.
13055 * tui/tui-win.h: Rename include guard.
13056 * tui/tui-stack.h: Rename include guard.
13057 * tui/tui-source.h: Rename include guard.
13058 * tui/tui-regs.h: Rename include guard.
13059 * tui/tui-out.h: Rename include guard.
13060 * tui/tui-layout.h: Rename include guard.
13061 * tui/tui-io.h: Rename include guard.
13062 * tui/tui-hooks.h: Rename include guard.
13063 * tui/tui-file.h: Rename include guard.
13064 * tui/tui-disasm.h: Rename include guard.
13065 * tui/tui-data.h: Rename include guard.
13066 * tui/tui-command.h: Rename include guard.
13067 * tic6x-tdep.h: Add include guard.
13068 * target/waitstatus.h: Rename include guard.
13069 * target/wait.h: Rename include guard.
13070 * target/target.h: Rename include guard.
13071 * target/resume.h: Rename include guard.
13072 * target-float.h: Rename include guard.
13073 * stabsread.h: Add include guard.
13074 * rs6000-tdep.h: Add include guard.
13075 * riscv-fbsd-tdep.h: Add include guard.
13076 * regformats/regdef.h: Rename include guard.
13077 * record.h: Rename include guard.
13078 * python/python.h: Rename include guard.
13079 * python/python-internal.h: Rename include guard.
13080 * python/py-stopevent.h: Rename include guard.
13081 * python/py-ref.h: Rename include guard.
13082 * python/py-record.h: Rename include guard.
13083 * python/py-record-full.h: Rename include guard.
13084 * python/py-record-btrace.h: Rename include guard.
13085 * python/py-instruction.h: Rename include guard.
13086 * python/py-events.h: Rename include guard.
13087 * python/py-event.h: Rename include guard.
13088 * procfs.h: Add include guard.
13089 * proc-utils.h: Add include guard.
13090 * p-lang.h: Add include guard.
13091 * or1k-tdep.h: Rename include guard.
13092 * observable.h: Rename include guard.
13093 * nto-tdep.h: Rename include guard.
13094 * nat/x86-linux.h: Rename include guard.
13095 * nat/x86-linux-dregs.h: Rename include guard.
13096 * nat/x86-gcc-cpuid.h: Add include guard.
13097 * nat/x86-dregs.h: Rename include guard.
13098 * nat/x86-cpuid.h: Rename include guard.
13099 * nat/ppc-linux.h: Rename include guard.
13100 * nat/mips-linux-watch.h: Rename include guard.
13101 * nat/linux-waitpid.h: Rename include guard.
13102 * nat/linux-ptrace.h: Rename include guard.
13103 * nat/linux-procfs.h: Rename include guard.
13104 * nat/linux-osdata.h: Rename include guard.
13105 * nat/linux-nat.h: Rename include guard.
13106 * nat/linux-namespaces.h: Rename include guard.
13107 * nat/linux-btrace.h: Rename include guard.
13108 * nat/glibc_thread_db.h: Rename include guard.
13109 * nat/gdb_thread_db.h: Rename include guard.
13110 * nat/gdb_ptrace.h: Rename include guard.
13111 * nat/fork-inferior.h: Rename include guard.
13112 * nat/amd64-linux-siginfo.h: Rename include guard.
13113 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
13114 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
13115 * nat/aarch64-linux.h: Rename include guard.
13116 * nat/aarch64-linux-hw-point.h: Rename include guard.
13117 * mn10300-tdep.h: Add include guard.
13118 * mips-linux-tdep.h: Add include guard.
13119 * mi/mi-parse.h: Rename include guard.
13120 * mi/mi-out.h: Rename include guard.
13121 * mi/mi-main.h: Rename include guard.
13122 * mi/mi-interp.h: Rename include guard.
13123 * mi/mi-getopt.h: Rename include guard.
13124 * mi/mi-console.h: Rename include guard.
13125 * mi/mi-common.h: Rename include guard.
13126 * mi/mi-cmds.h: Rename include guard.
13127 * mi/mi-cmd-break.h: Rename include guard.
13128 * m2-lang.h: Add include guard.
13129 * location.h: Rename include guard.
13130 * linux-record.h: Rename include guard.
13131 * linux-nat.h: Add include guard.
13132 * linux-fork.h: Add include guard.
13133 * i386-darwin-tdep.h: Rename include guard.
13134 * hppa-linux-offsets.h: Add include guard.
13135 * guile/guile.h: Rename include guard.
13136 * guile/guile-internal.h: Rename include guard.
13137 * gnu-nat.h: Rename include guard.
13138 * gdb-stabs.h: Rename include guard.
13139 * frv-tdep.h: Add include guard.
13140 * f-lang.h: Add include guard.
13141 * event-loop.h: Add include guard.
13142 * darwin-nat.h: Rename include guard.
13143 * cp-abi.h: Rename include guard.
13144 * config/sparc/nm-sol2.h: Rename include guard.
13145 * config/nm-nto.h: Rename include guard.
13146 * config/nm-linux.h: Add include guard.
13147 * config/i386/nm-i386gnu.h: Rename include guard.
13148 * config/djgpp/nl_types.h: Rename include guard.
13149 * config/djgpp/langinfo.h: Rename include guard.
13150 * compile/gcc-cp-plugin.h: Add include guard.
13151 * compile/gcc-c-plugin.h: Add include guard.
13152 * compile/compile.h: Rename include guard.
13153 * compile/compile-object-run.h: Rename include guard.
13154 * compile/compile-object-load.h: Rename include guard.
13155 * compile/compile-internal.h: Rename include guard.
13156 * compile/compile-cplus.h: Rename include guard.
13157 * compile/compile-c.h: Rename include guard.
13158 * common/xml-utils.h: Rename include guard.
13159 * common/x86-xstate.h: Rename include guard.
13160 * common/version.h: Rename include guard.
13161 * common/vec.h: Rename include guard.
13162 * common/tdesc.h: Rename include guard.
13163 * common/selftest.h: Rename include guard.
13164 * common/scoped_restore.h: Rename include guard.
13165 * common/scoped_mmap.h: Rename include guard.
13166 * common/scoped_fd.h: Rename include guard.
13167 * common/safe-iterator.h: Rename include guard.
13168 * common/run-time-clock.h: Rename include guard.
13169 * common/refcounted-object.h: Rename include guard.
13170 * common/queue.h: Rename include guard.
13171 * common/ptid.h: Rename include guard.
13172 * common/print-utils.h: Rename include guard.
13173 * common/preprocessor.h: Rename include guard.
13174 * common/pathstuff.h: Rename include guard.
13175 * common/observable.h: Rename include guard.
13176 * common/netstuff.h: Rename include guard.
13177 * common/job-control.h: Rename include guard.
13178 * common/host-defs.h: Rename include guard.
13179 * common/gdb_wait.h: Rename include guard.
13180 * common/gdb_vecs.h: Rename include guard.
13181 * common/gdb_unlinker.h: Rename include guard.
13182 * common/gdb_unique_ptr.h: Rename include guard.
13183 * common/gdb_tilde_expand.h: Rename include guard.
13184 * common/gdb_sys_time.h: Rename include guard.
13185 * common/gdb_string_view.h: Rename include guard.
13186 * common/gdb_splay_tree.h: Rename include guard.
13187 * common/gdb_setjmp.h: Rename include guard.
13188 * common/gdb_ref_ptr.h: Rename include guard.
13189 * common/gdb_optional.h: Rename include guard.
13190 * common/gdb_locale.h: Rename include guard.
13191 * common/gdb_assert.h: Rename include guard.
13192 * common/filtered-iterator.h: Rename include guard.
13193 * common/filestuff.h: Rename include guard.
13194 * common/fileio.h: Rename include guard.
13195 * common/environ.h: Rename include guard.
13196 * common/common-utils.h: Rename include guard.
13197 * common/common-types.h: Rename include guard.
13198 * common/common-regcache.h: Rename include guard.
13199 * common/common-inferior.h: Rename include guard.
13200 * common/common-gdbthread.h: Rename include guard.
13201 * common/common-exceptions.h: Rename include guard.
13202 * common/common-defs.h: Rename include guard.
13203 * common/common-debug.h: Rename include guard.
13204 * common/cleanups.h: Rename include guard.
13205 * common/buffer.h: Rename include guard.
13206 * common/btrace-common.h: Rename include guard.
13207 * common/break-common.h: Rename include guard.
13208 * cli/cli-utils.h: Rename include guard.
13209 * cli/cli-style.h: Rename include guard.
13210 * cli/cli-setshow.h: Rename include guard.
13211 * cli/cli-script.h: Rename include guard.
13212 * cli/cli-interp.h: Rename include guard.
13213 * cli/cli-decode.h: Rename include guard.
13214 * cli/cli-cmds.h: Rename include guard.
13215 * charset-list.h: Add include guard.
13216 * buildsym-legacy.h: Rename include guard.
13217 * bfin-tdep.h: Add include guard.
13218 * ax.h: Rename include guard.
13219 * arm-linux-tdep.h: Add include guard.
13220 * arm-fbsd-tdep.h: Add include guard.
13221 * arch/xtensa.h: Rename include guard.
13222 * arch/tic6x.h: Add include guard.
13223 * arch/i386.h: Add include guard.
13224 * arch/arm.h: Rename include guard.
13225 * arch/arm-linux.h: Rename include guard.
13226 * arch/arm-get-next-pcs.h: Rename include guard.
13227 * arch/amd64.h: Add include guard.
13228 * arch/aarch64-insn.h: Rename include guard.
13229 * arch-utils.h: Rename include guard.
13230 * annotate.h: Add include guard.
13231 * amd64-darwin-tdep.h: Rename include guard.
13232 * aarch64-linux-tdep.h: Add include guard.
13233 * aarch64-fbsd-tdep.h: Add include guard.
13234 * aarch32-linux-nat.h: Add include guard.
13235
13236 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13237
13238 * macrotab.c (macro_define_internal): New function that
13239 factorizes macro_define_object_internal and macro_define_function
13240 code.
13241 (macro_define_object_internal): Use macro_define_internal.
13242 (macro_define_function): Likewise.
13243
13244 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13245
13246 * macrocmd.c (extract_identifier): Return
13247 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
13248 callers.
13249
13250 2019-02-06 John Baldwin <jhb@FreeBSD.org>
13251
13252 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
13253
13254 2019-02-05 Tom Tromey <tom@tromey.com>
13255
13256 * target.c (target_stack::unpush): Move assertion earlier.
13257
13258 2019-01-30 Tom Tromey <tom@tromey.com>
13259
13260 PR python/23615:
13261 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
13262 (gdbpy_parse_and_eval): Likewise.
13263 * python/python-internal.h (gdbpy_allow_threads): New class.
13264
13265 2019-01-28 John Baldwin <jhb@FreeBSD.org>
13266
13267 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
13268 (aarch64_fbsd_fpregmap): Move earlier.
13269 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
13270 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
13271 instead of individual calls to trad_frame_set_reg_addr.
13272 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
13273 earlier.
13274 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
13275 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
13276 instead of individual calls to trad_frame_set_reg_addr.
13277
13278 2019-01-28 Alan Hayward <alan.hayward@arm.com>
13279
13280 * CONTRIBUTE: Replace contribution list with wiki link.
13281
13282 2019-01-25 Tom Tromey <tom@tromey.com>
13283
13284 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
13285
13286 2019-01-25 Tom Tromey <tom@tromey.com>
13287
13288 * xtensa-linux-nat.c: Fix common/ includes.
13289 * xml-support.h: Fix common/ includes.
13290 * xml-support.c: Fix common/ includes.
13291 * x86-linux-nat.c: Fix common/ includes.
13292 * windows-nat.c: Fix common/ includes.
13293 * varobj.h: Fix common/ includes.
13294 * varobj.c: Fix common/ includes.
13295 * value.c: Fix common/ includes.
13296 * valops.c: Fix common/ includes.
13297 * utils.c: Fix common/ includes.
13298 * unittests/xml-utils-selftests.c: Fix common/ includes.
13299 * unittests/utils-selftests.c: Fix common/ includes.
13300 * unittests/unpack-selftests.c: Fix common/ includes.
13301 * unittests/tracepoint-selftests.c: Fix common/ includes.
13302 * unittests/style-selftests.c: Fix common/ includes.
13303 * unittests/string_view-selftests.c: Fix common/ includes.
13304 * unittests/scoped_restore-selftests.c: Fix common/ includes.
13305 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
13306 * unittests/scoped_fd-selftests.c: Fix common/ includes.
13307 * unittests/rsp-low-selftests.c: Fix common/ includes.
13308 * unittests/parse-connection-spec-selftests.c: Fix common/
13309 includes.
13310 * unittests/optional-selftests.c: Fix common/ includes.
13311 * unittests/offset-type-selftests.c: Fix common/ includes.
13312 * unittests/observable-selftests.c: Fix common/ includes.
13313 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
13314 * unittests/memrange-selftests.c: Fix common/ includes.
13315 * unittests/memory-map-selftests.c: Fix common/ includes.
13316 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
13317 * unittests/function-view-selftests.c: Fix common/ includes.
13318 * unittests/environ-selftests.c: Fix common/ includes.
13319 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
13320 * unittests/common-utils-selftests.c: Fix common/ includes.
13321 * unittests/cli-utils-selftests.c: Fix common/ includes.
13322 * unittests/array-view-selftests.c: Fix common/ includes.
13323 * ui-file.c: Fix common/ includes.
13324 * tui/tui-io.c: Fix common/ includes.
13325 * tracepoint.h: Fix common/ includes.
13326 * tracepoint.c: Fix common/ includes.
13327 * tracefile-tfile.c: Fix common/ includes.
13328 * top.h: Fix common/ includes.
13329 * top.c: Fix common/ includes.
13330 * thread.c: Fix common/ includes.
13331 * target/waitstatus.h: Fix common/ includes.
13332 * target/waitstatus.c: Fix common/ includes.
13333 * target.h: Fix common/ includes.
13334 * target.c: Fix common/ includes.
13335 * target-memory.c: Fix common/ includes.
13336 * target-descriptions.c: Fix common/ includes.
13337 * symtab.h: Fix common/ includes.
13338 * symfile.c: Fix common/ includes.
13339 * stap-probe.c: Fix common/ includes.
13340 * spu-linux-nat.c: Fix common/ includes.
13341 * sparc-nat.c: Fix common/ includes.
13342 * source.c: Fix common/ includes.
13343 * solib.c: Fix common/ includes.
13344 * solib-target.c: Fix common/ includes.
13345 * ser-unix.c: Fix common/ includes.
13346 * ser-tcp.c: Fix common/ includes.
13347 * ser-pipe.c: Fix common/ includes.
13348 * ser-base.c: Fix common/ includes.
13349 * selftest-arch.c: Fix common/ includes.
13350 * s12z-tdep.c: Fix common/ includes.
13351 * rust-exp.y: Fix common/ includes.
13352 * rs6000-aix-tdep.c: Fix common/ includes.
13353 * riscv-tdep.c: Fix common/ includes.
13354 * remote.c: Fix common/ includes.
13355 * remote-notif.h: Fix common/ includes.
13356 * remote-fileio.h: Fix common/ includes.
13357 * remote-fileio.c: Fix common/ includes.
13358 * regcache.h: Fix common/ includes.
13359 * regcache.c: Fix common/ includes.
13360 * record-btrace.c: Fix common/ includes.
13361 * python/python.c: Fix common/ includes.
13362 * python/py-type.c: Fix common/ includes.
13363 * python/py-inferior.c: Fix common/ includes.
13364 * progspace.h: Fix common/ includes.
13365 * producer.c: Fix common/ includes.
13366 * procfs.c: Fix common/ includes.
13367 * proc-api.c: Fix common/ includes.
13368 * printcmd.c: Fix common/ includes.
13369 * ppc-linux-nat.c: Fix common/ includes.
13370 * parser-defs.h: Fix common/ includes.
13371 * osdata.c: Fix common/ includes.
13372 * obsd-nat.c: Fix common/ includes.
13373 * nat/x86-linux.c: Fix common/ includes.
13374 * nat/x86-linux-dregs.c: Fix common/ includes.
13375 * nat/x86-dregs.h: Fix common/ includes.
13376 * nat/x86-dregs.c: Fix common/ includes.
13377 * nat/ppc-linux.c: Fix common/ includes.
13378 * nat/mips-linux-watch.h: Fix common/ includes.
13379 * nat/mips-linux-watch.c: Fix common/ includes.
13380 * nat/linux-waitpid.c: Fix common/ includes.
13381 * nat/linux-ptrace.h: Fix common/ includes.
13382 * nat/linux-ptrace.c: Fix common/ includes.
13383 * nat/linux-procfs.c: Fix common/ includes.
13384 * nat/linux-personality.c: Fix common/ includes.
13385 * nat/linux-osdata.c: Fix common/ includes.
13386 * nat/linux-namespaces.c: Fix common/ includes.
13387 * nat/linux-btrace.h: Fix common/ includes.
13388 * nat/linux-btrace.c: Fix common/ includes.
13389 * nat/fork-inferior.c: Fix common/ includes.
13390 * nat/amd64-linux-siginfo.c: Fix common/ includes.
13391 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
13392 * nat/aarch64-linux.c: Fix common/ includes.
13393 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
13394 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
13395 * namespace.h: Fix common/ includes.
13396 * mips-linux-tdep.c: Fix common/ includes.
13397 * minsyms.c: Fix common/ includes.
13398 * mi/mi-parse.h: Fix common/ includes.
13399 * mi/mi-main.c: Fix common/ includes.
13400 * mi/mi-cmd-env.c: Fix common/ includes.
13401 * memrange.h: Fix common/ includes.
13402 * memattr.c: Fix common/ includes.
13403 * maint.h: Fix common/ includes.
13404 * maint.c: Fix common/ includes.
13405 * main.c: Fix common/ includes.
13406 * machoread.c: Fix common/ includes.
13407 * location.c: Fix common/ includes.
13408 * linux-thread-db.c: Fix common/ includes.
13409 * linux-nat.c: Fix common/ includes.
13410 * linux-fork.c: Fix common/ includes.
13411 * inline-frame.c: Fix common/ includes.
13412 * infrun.c: Fix common/ includes.
13413 * inflow.c: Fix common/ includes.
13414 * inferior.h: Fix common/ includes.
13415 * inferior.c: Fix common/ includes.
13416 * infcmd.c: Fix common/ includes.
13417 * inf-ptrace.c: Fix common/ includes.
13418 * inf-child.c: Fix common/ includes.
13419 * ia64-linux-nat.c: Fix common/ includes.
13420 * i387-tdep.c: Fix common/ includes.
13421 * i386-tdep.c: Fix common/ includes.
13422 * i386-linux-tdep.c: Fix common/ includes.
13423 * i386-linux-nat.c: Fix common/ includes.
13424 * i386-go32-tdep.c: Fix common/ includes.
13425 * i386-fbsd-tdep.c: Fix common/ includes.
13426 * i386-fbsd-nat.c: Fix common/ includes.
13427 * guile/scm-type.c: Fix common/ includes.
13428 * guile/guile.c: Fix common/ includes.
13429 * go32-nat.c: Fix common/ includes.
13430 * gnu-nat.c: Fix common/ includes.
13431 * gdbthread.h: Fix common/ includes.
13432 * gdbarch-selftests.c: Fix common/ includes.
13433 * gdb_usleep.c: Fix common/ includes.
13434 * gdb_select.h: Fix common/ includes.
13435 * gdb_bfd.c: Fix common/ includes.
13436 * gcore.c: Fix common/ includes.
13437 * fork-child.c: Fix common/ includes.
13438 * findvar.c: Fix common/ includes.
13439 * fbsd-nat.c: Fix common/ includes.
13440 * event-top.c: Fix common/ includes.
13441 * event-loop.c: Fix common/ includes.
13442 * dwarf2read.c: Fix common/ includes.
13443 * dwarf2loc.c: Fix common/ includes.
13444 * dwarf2-frame.c: Fix common/ includes.
13445 * dwarf-index-cache.c: Fix common/ includes.
13446 * dtrace-probe.c: Fix common/ includes.
13447 * disasm-selftests.c: Fix common/ includes.
13448 * defs.h: Fix common/ includes.
13449 * csky-tdep.c: Fix common/ includes.
13450 * cp-valprint.c: Fix common/ includes.
13451 * cp-support.h: Fix common/ includes.
13452 * cp-support.c: Fix common/ includes.
13453 * corelow.c: Fix common/ includes.
13454 * completer.h: Fix common/ includes.
13455 * completer.c: Fix common/ includes.
13456 * compile/compile.c: Fix common/ includes.
13457 * compile/compile-loc2c.c: Fix common/ includes.
13458 * compile/compile-cplus-types.c: Fix common/ includes.
13459 * compile/compile-cplus-symbols.c: Fix common/ includes.
13460 * command.h: Fix common/ includes.
13461 * cli/cli-dump.c: Fix common/ includes.
13462 * cli/cli-cmds.c: Fix common/ includes.
13463 * charset.c: Fix common/ includes.
13464 * build-id.c: Fix common/ includes.
13465 * btrace.h: Fix common/ includes.
13466 * btrace.c: Fix common/ includes.
13467 * breakpoint.h: Fix common/ includes.
13468 * breakpoint.c: Fix common/ includes.
13469 * ax.h:
13470 (enum agent_op): Fix common/ includes.
13471 * ax-general.c (struct aop_map): Fix common/ includes.
13472 * ax-gdb.c: Fix common/ includes.
13473 * auxv.c: Fix common/ includes.
13474 * auto-load.c: Fix common/ includes.
13475 * arm-tdep.c: Fix common/ includes.
13476 * arch/riscv.c: Fix common/ includes.
13477 * arch/ppc-linux-common.c: Fix common/ includes.
13478 * arch/i386.c: Fix common/ includes.
13479 * arch/arm.c: Fix common/ includes.
13480 * arch/arm-linux.c: Fix common/ includes.
13481 * arch/arm-get-next-pcs.c: Fix common/ includes.
13482 * arch/amd64.c: Fix common/ includes.
13483 * arch/aarch64.c: Fix common/ includes.
13484 * arch/aarch64-insn.c: Fix common/ includes.
13485 * arch-utils.c: Fix common/ includes.
13486 * amd64-windows-tdep.c: Fix common/ includes.
13487 * amd64-tdep.c: Fix common/ includes.
13488 * amd64-sol2-tdep.c: Fix common/ includes.
13489 * amd64-obsd-tdep.c: Fix common/ includes.
13490 * amd64-nbsd-tdep.c: Fix common/ includes.
13491 * amd64-linux-tdep.c: Fix common/ includes.
13492 * amd64-linux-nat.c: Fix common/ includes.
13493 * amd64-fbsd-tdep.c: Fix common/ includes.
13494 * amd64-fbsd-nat.c: Fix common/ includes.
13495 * amd64-dicos-tdep.c: Fix common/ includes.
13496 * amd64-darwin-tdep.c: Fix common/ includes.
13497 * agent.c: Fix common/ includes.
13498 * ada-lang.h: Fix common/ includes.
13499 * ada-lang.c: Fix common/ includes.
13500 * aarch64-tdep.c: Fix common/ includes.
13501
13502 2019-01-25 Tom Tromey <tom@tromey.com>
13503
13504 * common/create-version.sh: Use common/version.h.
13505
13506 2019-01-24 Pedro Alves <palves@redhat.com>
13507
13508 * infrun.c (signal_stop, signal_print, signal_program)
13509 (signal_catch, signal_pass): Now arrays instead of pointers.
13510 (update_signals_program_target, do_target_resume)
13511 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
13512 * linux-nat.c (linux_nat_target::pass_signals)
13513 (linux_nat_target::create_inferior, linux_nat_target::attach):
13514 Adjust.
13515 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
13516 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
13517 * procfs.c (procfs_target::pass_signals): Adjust.
13518 * record-full.c (record_full_target::resume): Adjust.
13519 * remote.c (remote_target::pass_signals)
13520 (remote_target::program_signals): Adjust.
13521 * target-debug.h (target_debug_print_signals): Now takes a
13522 gdb::array_view as parameter. Adjust.
13523 * target.h (target_ops) <pass_signals, program_signals>: Replace
13524 pointer and length parameters with gdb::array_view.
13525 (target_pass_signals, target_program_signals): Likewise.
13526 * target-delegates.c: Regenerate.
13527
13528 2019-01-24 Pedro Alves <palves@redhat.com>
13529
13530 * common/forward-scope-exit.h
13531 (forward_scope_exit::forward_scope_exit): Pass arguments to
13532 m_bind_function directly, instead of creating a std::bind and
13533 copying that.
13534
13535 2019-01-24 Alan Hayward <alan.hayward@arm.com>
13536
13537 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
13538 for static members.
13539 (pass_in_v_vfp_candidate): Likewise.
13540
13541 2019-01-23 Tom Tromey <tom@tromey.com>
13542 Pedro Alves <palves@redhat.com>
13543
13544 * regcache.c (class regcache_invalidator): Remove.
13545 (regcache::raw_write): Use make_scope_exit.
13546
13547 2019-01-23 Tom Tromey <tom@tromey.com>
13548
13549 * ui-out.h (class ui_out_emit_type): Update comment.
13550
13551 2019-01-23 Tom Tromey <tom@tromey.com>
13552
13553 * infrun.c (fetch_inferior_event): Update comment.
13554
13555 2019-01-23 Tom Tromey <tom@tromey.com>
13556 Pedro Alves <palves@redhat.com>
13557
13558 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
13559 parameter.
13560 (fetch_inferior_event): Use SCOPE_EXIT.
13561
13562
13563 2019-01-23 Tom Tromey <tom@tromey.com>
13564 Pedro Alves <palves@redhat.com>
13565
13566 * infrun.c (disable_thread_events): Delete.
13567 (stop_all_threads): Use SCOPE_EXIT.
13568
13569 2019-01-23 Tom Tromey <tom@tromey.com>
13570 Pedro Alves <palves@redhat.com>
13571
13572 * symfile.c: Include forward-scope-exit.h.
13573 (clear_symtab_users_cleanup): Replace forward declaration with
13574 a FORWARD_SCOPE_EXIT.
13575 (syms_from_objfile_1): Use the forward_scope_exit and
13576 gdb::optional instead of cleanup_function.
13577 (reread_symbols): Use the forward_scope_exit instead of
13578 cleanup_function.
13579 (clear_symtab_users_cleanup): Remove function.
13580
13581 2019-01-23 Tom Tromey <tom@tromey.com>
13582 Pedro Alves <palves@redhat.com>
13583
13584 * linux-nat.c: Include scope-exit.h.
13585 (cleanup_target_stop): Remove.
13586 (linux_nat_target::static_tracepoint_markers_by_strid): Use
13587 SCOPE_EXIT.
13588
13589 2019-01-23 Tom Tromey <tom@tromey.com>
13590 Pedro Alves <palves@redhat.com>
13591
13592 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
13593 (call_function_by_hand_dummy): Use SCOPE_EXIT.
13594
13595 2019-01-23 Tom Tromey <tom@tromey.com>
13596 Andrew Burgess <andrew.burgess@embecosm.com>
13597 Pedro Alves <palves@redhat.com>
13598
13599 * infrun.c (fetch_inferior_event): Use scope_exit.
13600 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
13601 * top.c (execute_command): Use scope_exit.
13602 * breakpoint.c (bpstat_do_actions): Use scope_exit.
13603 * utils.c (do_bpstat_clear_actions_cleanup)
13604 (make_bpstat_clear_actions_cleanup): Remove.
13605
13606 2019-01-23 Tom Tromey <tom@tromey.com>
13607 Pedro Alves <palves@redhat.com>
13608
13609 * infrun.c: Include "common/scope-exit.h"
13610 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
13611 (wait_for_inferior): Use SCOPE_EXIT.
13612 (fetch_inferior_event): Use scope_exit.
13613
13614 2019-01-23 Tom Tromey <tom@tromey.com>
13615 Pedro Alves <palves@redhat.com>
13616
13617 * breakpoint.c (create_breakpoint): Remove cleanup.
13618
13619 2019-01-23 Tom Tromey <tom@tromey.com>
13620 Andrew Burgess <andrew.burgess@embecosm.com>
13621 Pedro Alves <palves@redhat.com>
13622
13623 2019-01-23 Pedro Alves <palves@redhat.com>
13624
13625 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
13626
13627 2019-01-23 Pedro Alves <palves@redhat.com>
13628 Andrew Burgess <andrew.burgess@embecosm.com>
13629
13630 * gdbthread.h: Include "common/forward-scope-exit.h".
13631 (scoped_finish_thread_state): Redefine custom class in terms of
13632 forward_scope_exit.
13633
13634 2019-01-23 Pedro Alves <palves@redhat.com>
13635 Andrew Burgess <andrew.burgess@embecosm.com>
13636
13637 * common/forward-scope-exit.h: New file.
13638
13639 2019-01-23 Pedro Alves <palves@redhat.com>
13640 Andrew Burgess <andrew.burgess@embecosm.com>
13641 Tom Tromey <tom@tromey.com>
13642
13643 * common/scope-exit.h: New file.
13644
13645 2019-01-23 Pedro Alves <palves@redhat.com>
13646
13647 * common/preprocessor.h (ESC): Rename to ...
13648 (ESC_PARENS): ... this.
13649 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
13650 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
13651
13652 2019-01-23 Tom Tromey <tom@tromey.com>
13653
13654 * language.h (class scoped_switch_to_sym_language_if_auto):
13655 Initialize m_lang in both cases.
13656
13657 2019-01-23 Alan Hayward <alan.hayward@arm.com>
13658
13659 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
13660 with XCNEW.
13661
13662 2019-01-22 Tom Tromey <tom@tromey.com>
13663
13664 * corelow.c: Do not include sys/file.h.
13665
13666 2019-01-22 Tom Tromey <tom@tromey.com>
13667
13668 * tui/tui-wingeneral.h: Include gdb_curses.h.
13669
13670 2019-01-22 Tom Tromey <tom@tromey.com>
13671
13672 * source-cache.h (class source_cache) <get_source_lines,
13673 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
13674
13675 2019-01-22 Tom Tromey <tom@tromey.com>
13676
13677 * remote-fileio.h (struct remote_target): Declare.
13678
13679 2019-01-22 Tom Tromey <tom@tromey.com>
13680
13681 * python/py-arch.c: Do not include py-ref.h.
13682 * python/py-bpevent.c: Do not include py-ref.h.
13683 * python/py-cmd.c: Do not include py-ref.h.
13684 * python/py-continueevent.c: Do not include py-ref.h.
13685 * python/py-event.h: Do not include py-ref.h.
13686 * python/py-evtregistry.c: Do not include py-ref.h.
13687 * python/py-finishbreakpoint.c: Do not include py-ref.h.
13688 * python/py-frame.c: Do not include py-ref.h.
13689 * python/py-framefilter.c: Do not include py-ref.h.
13690 * python/py-function.c: Do not include py-ref.h.
13691 * python/py-infevents.c: Do not include py-ref.h.
13692 * python/py-linetable.c: Do not include py-ref.h.
13693 * python/py-objfile.c: Do not include py-ref.h.
13694 * python/py-param.c: Do not include py-ref.h.
13695 * python/py-prettyprint.c: Do not include py-ref.h.
13696 * python/py-progspace.c: Do not include py-ref.h.
13697 * python/py-symbol.c: Do not include py-ref.h.
13698 * python/py-symtab.c: Do not include py-ref.h.
13699 * python/py-type.c: Do not include py-ref.h.
13700 * python/py-unwind.c: Do not include py-ref.h.
13701 * python/py-utils.c: Do not include py-ref.h.
13702 * python/py-value.c: Do not include py-ref.h.
13703 * python/py-varobj.c: Do not include py-ref.h.
13704 * python/py-xmethods.c: Do not include py-ref.h.
13705 * python/python.c: Do not include py-ref.h.
13706 * varobj.c: Do not include py-ref.h.
13707
13708 2019-01-22 Tom Tromey <tom@tromey.com>
13709
13710 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
13711 keyword for bcache.
13712
13713 2019-01-22 Tom Tromey <tom@tromey.com>
13714
13715 * compile/compile-cplus-types.c: Remove a comment by #include.
13716
13717 2019-01-22 Tom Tromey <tom@tromey.com>
13718
13719 * compile/gcc-c-plugin.h: Include compile-internal.h.
13720
13721 2019-01-22 Tom Tromey <tom@tromey.com>
13722
13723 * stabsread.c (EXTERN): Do not define.
13724 (symnum, next_symbol_text_func, processing_gcc_compilation)
13725 (within_function, global_sym_chain, global_stabs)
13726 (previous_stab_code, this_object_header_files)
13727 (n_this_object_header_files)
13728 (n_allocated_this_object_header_files): Define.
13729 * stabsread.h (EXTERN): Never define. Use "extern".
13730
13731 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13732
13733 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
13734 history_value.
13735
13736 2019-01-21 Tom Tromey <tom@tromey.com>
13737
13738 * ui-out.c: Fix includes.
13739 * tui/tui-source.c: Fix includes.
13740 * target.c: Fix includes.
13741 * remote.c: Fix includes.
13742 * regcache.c: Fix includes.
13743 * python/py-block.c: Fix includes.
13744 * printcmd.c: Fix includes.
13745 * or1k-tdep.c: Fix includes.
13746 * mi/mi-main.c: Fix includes.
13747 * m32r-tdep.c: Fix includes.
13748 * csky-tdep.c: Fix includes.
13749 * compile/compile-cplus-types.c: Fix includes.
13750 * cli/cli-interp.c: Fix includes.
13751
13752 2019-01-21 Alan Hayward <alan.hayward@arm.com>
13753
13754 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
13755 for padding.
13756
13757 2019-01-16 Tom Tromey <tom@tromey.com>
13758
13759 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
13760 earlier.
13761 (struct objfile) <msymbols_range>: Move from top level.
13762 <msymbols>: New method.
13763 (class objfile_msymbols): Remove.
13764 * symtab.c (default_collect_symbol_completion_matches_break_on):
13765 Update.
13766 * symmisc.c (dump_msymbols): Update.
13767 * stabsread.c (scan_file_globals): Update.
13768 * objc-lang.c (info_selectors_command, info_classes_command)
13769 (find_methods): Update.
13770 * minsyms.c (find_solib_trampoline_target): Update.
13771 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
13772 * coffread.c (coff_symfile_read): Update.
13773 * ada-lang.c (ada_lookup_simple_minsym)
13774 (ada_collect_symbol_completion_matches): Update.
13775
13776 2019-01-16 Tom Tromey <tom@tromey.com>
13777
13778 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
13779 type. Remove no-argument constructor.
13780 <iterator::operator++>: Simplify.
13781 <begin>: Update.
13782 <end>: Use minimal_symbol_count.
13783
13784 2019-01-16 Tom Tromey <tom@tromey.com>
13785
13786 * objfiles.h (struct objfile) <psymtabs>: New method.
13787 (class objfile_psymtabs): Remove.
13788 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
13789 typedef.
13790 <range>: New method.
13791 (require_partial_symbols): Change return type.
13792 * psymtab.c (require_partial_symbols)
13793 (psym_expand_symtabs_matching): Update.
13794 * mdebugread.c (parse_partial_symbols): Update.
13795 * dbxread.c (dbx_end_psymtab): Update.
13796
13797 2019-01-15 Tom Tromey <tom@tromey.com>
13798
13799 * symtab.c (lookup_objfile_from_block)
13800 (lookup_symbol_in_objfile_symtabs)
13801 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
13802 (find_line_symtab, info_sources_command)
13803 (default_collect_symbol_completion_matches_break_on)
13804 (make_source_files_completion_list): Update.
13805 * symmisc.c (print_objfile_statistics, dump_objfile)
13806 (maintenance_print_symbols, maintenance_info_symtabs)
13807 (maintenance_check_symtabs, maintenance_info_line_tables):
13808 Update.
13809 * source.c (select_source_symtab)
13810 (forget_cached_source_info_for_objfile): Update.
13811 * objfiles.h (class objfile_compunits): Remove.
13812 (struct objfile) <compunits_range>: New typedef.
13813 (compunits): New method.
13814 * objfiles.c (objfile_relocate1): Update.
13815 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
13816 * maint.c (count_symtabs_and_blocks): Update.
13817 * linespec.c (iterate_over_all_matching_symtabs): Update.
13818 * cp-support.c (add_symbol_overload_list_qualified): Update.
13819 * coffread.c (coff_symtab_read): Update.
13820 * ada-lang.c (add_nonlocal_symbols)
13821 (ada_collect_symbol_completion_matches)
13822 (ada_add_global_exceptions): Update.
13823
13824 2019-01-15 Tom Tromey <tom@tromey.com>
13825
13826 * progspace.h (program_space) <objfiles_safe_range>: New
13827 typedef.
13828 <objfiles_safe>: New method.
13829 * objfiles.h (class all_objfiles_safe): Remove.
13830 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
13831 * jit.c (jit_inferior_exit_hook): Update.
13832
13833 2019-01-17 Tom Tromey <tom@tromey.com>
13834
13835 * progspace.h (program_space) <objfiles_range>: New typedef.
13836 <objfiles>: New method.
13837 <objfiles_head>: Rename from objfiles.
13838 (object_files): Update.
13839 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
13840 * guile/scm-pretty-print.c
13841 (ppscm_find_pretty_printer_from_objfiles): Update.
13842 * guile/scm-objfile.c (gdbscm_objfiles): Update.
13843 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
13844 Update.
13845 * python/py-progspace.c (pspy_get_objfiles): Update.
13846 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
13847 Update.
13848 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
13849 (objfpy_lookup_objfile_by_build_id): Update.
13850 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
13851 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
13852 Update.
13853 * symtab.c (iterate_over_symtabs, matching_obj_sections)
13854 (expand_symtab_containing_pc, lookup_objfile_from_block)
13855 (lookup_static_symbol, basic_lookup_transparent_type)
13856 (find_pc_sect_compunit_symtab, find_symbol_at_address)
13857 (find_line_symtab, info_sources_command)
13858 (default_collect_symbol_completion_matches_break_on)
13859 (make_source_files_completion_list, find_main_name): Update.
13860 * symmisc.c (print_symbol_bcache_statistics)
13861 (print_objfile_statistics, maintenance_print_symbols)
13862 (maintenance_print_msymbols, maintenance_print_objfiles)
13863 (maintenance_info_symtabs, maintenance_check_symtabs)
13864 (maintenance_expand_symtabs, maintenance_info_line_tables):
13865 Update.
13866 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
13867 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
13868 (map_overlay_command, unmap_overlay_command)
13869 (simple_overlay_update, expand_symtabs_matching)
13870 (map_symbol_filenames): Update.
13871 * symfile-debug.c (set_debug_symfile): Update.
13872 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
13873 Update.
13874 * source.c (select_source_symtab, forget_cached_source_info):
13875 Update.
13876 * solib.c (solib_read_symbols): Update.
13877 * solib-spu.c (append_ocl_sos): Update.
13878 * psymtab.c (maintenance_print_psymbols)
13879 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
13880 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
13881 * printcmd.c (info_symbol_command): Update.
13882 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
13883 Update.
13884 * objfiles.h (class all_objfiles): Remove.
13885 * objfiles.c (have_partial_symbols, have_full_symbols)
13886 (have_minimal_symbols, qsort_cmp, update_section_map)
13887 (shared_objfile_contains_address_p)
13888 (default_iterate_over_objfiles_in_search_order): Update.
13889 * objc-lang.c (info_selectors_command, info_classes_command)
13890 (find_methods): Update.
13891 * minsyms.c (find_solib_trampoline_target): Update.
13892 * maint.c (maintenance_info_sections)
13893 (maintenance_translate_address, count_symtabs_and_blocks):
13894 Update.
13895 * main.c (captured_main_1): Update.
13896 * linux-thread-db.c (try_thread_db_load_from_pdir)
13897 (has_libpthread): Update.
13898 * linespec.c (iterate_over_all_matching_symtabs)
13899 (search_minsyms_for_name): Update.
13900 * jit.c (jit_find_objf_with_entry_addr): Update.
13901 * hppa-tdep.c (find_unwind_entry)
13902 (hppa_lookup_stub_minimal_symbol): Update.
13903 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
13904 Update.
13905 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
13906 (elf_gnu_ifunc_resolve_by_got): Update.
13907 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
13908 * dwarf-index-write.c (save_gdb_index_command): Update.
13909 * cp-support.c (add_symbol_overload_list_qualified): Update.
13910 * breakpoint.c (create_overlay_event_breakpoint)
13911 (create_longjmp_master_breakpoint)
13912 (create_std_terminate_master_breakpoint)
13913 (create_exception_master_breakpoint): Update.
13914 * blockframe.c (find_pc_partial_function): Update.
13915 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
13916 (ada_collect_symbol_completion_matches)
13917 (ada_add_global_exceptions): Update.
13918
13919 2019-01-17 Tom Tromey <tom@tromey.com>
13920
13921 * solib-target.c (lm_info_target_p): Remove typedef. Don't
13922 declare VEC.
13923 (solib_target_parse_libraries): Change return type.
13924 (library_list_start_segment, library_list_start_section)
13925 (library_list_end_library, library_list_start_library); Update.
13926 (solib_target_free_library_list): Remove.
13927 (solib_target_parse_libraries): Remove cleanup. Change return
13928 type.
13929 (solib_target_current_sos): Update.
13930
13931 2019-01-17 Tom Tromey <tromey@bapiya>
13932
13933 * valprint.c: Replace "the the" with "the".
13934 * symtab.c: Replace "the the" with "the".
13935 * solib.c: Replace "the the" with "the".
13936 * solib-dsbt.c: Replace "the the" with "the".
13937 * linespec.c: Replace "the the" with "the".
13938 * dwarf2loc.h: Replace "the the" with "the".
13939 * amd64-windows-tdep.c: Replace "the the" with "the".
13940 * aarch64-tdep.c: Replace "the the" with "the".
13941
13942 2019-01-16 Keith Seitz <keiths@redhat.com>
13943
13944 PR gdb/23773
13945 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
13946 <builder>: Rename to ..
13947 <m_builder>: ... this and make private.
13948 (dwarf2_cu::get_builder): New method. Change all users of
13949 `builder' to use this method.
13950 (dwarf2_start_symtab): Move to ...
13951 (dwarf2_cu::start_symtab): ... here. Update all callers
13952 (setup_type_unit_groups): Move to ...
13953 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
13954 callers.
13955 (dwarf2_cu::reset_builder): New method.
13956 (process_full_compunit, process_full_type_unit): Use
13957 dwarf2_cu::reset_builder.
13958 (follow_die_offset): Record the ancestor CU if it is different
13959 from the followed DIE's CU.
13960 (follow_die_sig_1): Likewise.
13961
13962 2019-01-15 Tom Tromey <tom@tromey.com>
13963
13964 * remote.c (class remote_state) <buf>: Now a char_vector.
13965 <buf_size>: Remove.
13966 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
13967 parameter.
13968 (remote_target::getpkt_or_notif_sane_1)
13969 (remote_target::getpkt_sane)
13970 (remote_target::getpkt_or_notif_sane): Likewise.
13971 (class remote_target) <putpkt>: New overload.
13972 (remote_target::read_frame): Change type of "buf_p". Remove
13973 sizeof_p parameter.
13974 (packet_ok): New overload.
13975 (packet_check_result): New overload.
13976 Update all uses.
13977
13978 2019-01-14 Tom Tromey <tom@tromey.com>
13979
13980 * remote-notif.c (handle_notification, remote_notif_ack)
13981 (remote_notif_parse): Make "buf" const.
13982 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
13983 const.
13984 (remote_notif_parse, remote_notif_ack, handle_notification):
13985 Likewise.
13986 * remote.c (remote_notif_stop_parse): Make "buf" const.
13987 (remote_target::remote_parse_stop_reply): Make "buf" const.
13988 (remote_notif_stop_ack): Make "buf" const.
13989
13990 2019-01-14 Tom Tromey <tom@tromey.com>
13991
13992 * remote.c (remote_console_output): Make parameter const.
13993
13994 2019-01-14 Tom Tromey <tom@tromey.com>
13995
13996 * target-debug.h (target_debug_print_signals): Constify.
13997 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
13998 * procfs.c (procfs_target::pass_signals): Update.
13999 * linux-nat.c (linux_nat_target::pass_signals): Update.
14000 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
14001 * target-delegates.c: Rebuild.
14002 * remote.c (remote_target::program_signals): Update.
14003 (remote_target::pass_signals): Update.
14004 * target.c (target_pass_signals): Constify argument.
14005 (target_program_signals): Likewise.
14006 * target.h (struct target_ops) <pass_signals, program_signals>:
14007 Constify argument.
14008 (target_pass_signals, target_program_signals): Constify argument.
14009
14010 2019-01-14 Tom Tromey <tom@tromey.com>
14011
14012 PR tui/28819:
14013 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
14014
14015 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
14016
14017 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
14018 field.
14019 * rs6000-tdep.c: Include reggroups.h.
14020 (IS_V_ALIAS_PSEUDOREG): Define.
14021 (rs6000_register_name): Return names for the "vX" aliases.
14022 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
14023 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
14024 aliases. Call default_register_reggroup_p for all other
14025 pseudo-registers.
14026 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
14027 New functions.
14028 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
14029 Handle "vX" aliases.
14030 (v_alias_pseudo_register_collect): New function.
14031 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
14032 (rs6000_gdbarch_init): Initialize "vX" aliases as
14033 pseudo-registers. Restore registration of
14034 rs6000_pseudo_register_reggroup_p with
14035 set_tdesc_pseudo_register_reggroup_p.
14036
14037 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
14038
14039 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
14040 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
14041 set_gdbarch_num_pseudo_regs.
14042
14043 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14044
14045 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
14046 Remove arg prefixname, add do_set and do_show.
14047 Add member functions set_list and show_list.
14048 * cli/cli-style.c (class cli_style_option): Update accordingly.
14049 (style_set_list): Move to file scope.
14050 (style_show_list): Likewise.
14051 (set_style): Call help_list.
14052 (show_style): Call cmd_show_list.
14053 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
14054 Update to use the new macro.
14055
14056 2019-10-12 Joel Brobecker <brobecker@adacore.com>
14057
14058 * ada-lang.c (_initialize_ada_language): Expand the help text
14059 for the "catch exception" command.
14060
14061 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14062
14063 * symtab.c (matching_obj_sections): Initialize obj,
14064 declare it closer to its usage.
14065
14066 2019-01-10 Tom Tromey <tom@tromey.com>
14067
14068 * thread-iter.h (inf_threads_iterator): Use next_iterator.
14069 (basic_inf_threads_range): Remove.
14070 (inf_threads_range, inf_non_exited_threads_range)
14071 (safe_inf_threads_range): Use next_adapter.
14072
14073 2019-01-10 Keith Seitz <keiths@redhat.com>
14074
14075 PR gdb/23712
14076 PR symtab/23010
14077 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
14078 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
14079
14080 2019-01-10 Keith Seitz <keiths@redhat.com>
14081
14082 PR gdb/23712
14083 PR symtab/23010
14084 * dictionary.c (pending_to_vector): Remove.
14085 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
14086 Remove _1 suffix, replacing functions of the same name. Update
14087 all callers.
14088 (dict_create_hashed, dict_create_hashed_expandable)
14089 (dict_create_linear, dict_create_linear_expandable, dict_free)
14090 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
14091 Make functions static.
14092
14093 2019-01-10 Keith Seitz <keiths@redhat.com>
14094
14095 PR gdb/23712
14096 PR symtab/23010
14097 * dictionary.h (struct dictionary): Replace declaration with
14098 multidictionary.
14099 (dict_create_hashed, dict_create_hashed_expandable)
14100 (dict_create_linear, dict_create_linear_expandable)
14101 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
14102 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
14103 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
14104 taking multidictionary argument.
14105 [ALL_DICT_SYMBOLS]: Update for multidictionary.
14106 * block.h (struct block) <dict>: Change to multidictionary
14107 and rename `multidict'.
14108 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
14109 symmisc.c: Update all dictionary references to multidictionary.
14110
14111 2019-01-10 Keith Seitz <keiths@redhat.com>
14112
14113 PR gdb/23712
14114 PR symtab/23010
14115 * dictionary.c: Include unordered_map.
14116 (pending_to_vector): New function.
14117 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
14118 Rewrite the non-"_1" functions to take vector instead
14119 of linked list.
14120 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
14121 "new" _1 versions of the same name.
14122 (multidictionary): Define.
14123 (std::hash<enum language): New definition.
14124 (collate_pending_symbols_by_language, mdict_create_hashed)
14125 (mdict_create_hashed_expandable, mdict_create_linear)
14126 (mdict_create_linear_expandable, mdict_free)
14127 (find_language_dictionary, create_new_language_dictionary)
14128 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
14129 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
14130 (mdict_size, mdict_empty): New functions.
14131 * dictionary.h (mdict_iterator): Define.
14132
14133 2019-01-10 Pedro Alves <palves@redhat.com>
14134
14135 * breakpoint.c (read_uploaded_action)
14136 (create_tracepoint_from_upload): Adjust to use
14137 gdb::unique_xmalloc_ptr.
14138 * ctf.c (ctf_write_uploaded_tp):
14139 (SET_ARRAY_FIELD): Use emplace_back.
14140 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
14141 * tracefile-tfile.c (tfile_write_uploaded_tp):
14142 * tracepoint.c (parse_tracepoint_definition): Adjust to use
14143 gdb::unique_xmalloc_ptr.
14144 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
14145 at_string, cond_string, cmd_strings>: Replace char pointers
14146 with gdb::unique_xmalloc_ptr.
14147
14148 2019-01-10 Pedro Alves <palves@redhat.com>
14149
14150 * solib-target.c (library_list_start_library): Don't xstrdup name.
14151
14152 2019-01-10 Pedro Alves <palves@redhat.com>
14153
14154 * mdebugread.c (parse_partial_symbols): Use
14155 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
14156
14157 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
14158
14159 * linux-fork.c (scoped_switch_fork_info)
14160 <~scoped_switch_fork_info>: Fix incorrect variable name.
14161
14162 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
14163
14164 * linux-fork.c (scoped_switch_fork_info)
14165 <scoped_switch_fork_info>: Make explicit.
14166 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
14167
14168 2019-01-10 Tom Tromey <tom@tromey.com>
14169
14170 * objfiles.h (objfile::reset_psymtabs): Update.
14171 * objfiles.c (objfile::objfile): Update.
14172 * psymtab.h (psymtab_storage::obstack): Update.
14173 (psymtab_storage::m_obstack): Use gdb::optional.
14174 (class psymtab_storage): Update comment. Remove objfile
14175 parameter.
14176 * psymtab.c (psymtab_storage::psymtab_storage): Update.
14177
14178 2019-01-10 Tom Tromey <tom@tromey.com>
14179
14180 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
14181 <free_psymtabs>: Now private.
14182 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
14183 (allocate_psymtab): Use new method.
14184
14185 2019-01-10 Tom Tromey <tom@tromey.com>
14186
14187 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
14188 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
14189 * mdebugread.c (parse_partial_symbols): Use
14190 allocate_dependencies.
14191 * dwarf2read.c (dwarf2_create_include_psymtab): Use
14192 allocate_dependencies.
14193 (process_psymtab_comp_unit_reader)
14194 (build_type_psymtab_dependencies): Likewise.
14195 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
14196
14197 2019-01-10 Tom Tromey <tom@tromey.com>
14198
14199 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
14200 PSYMBOL_SET_LANGUAGE.
14201 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
14202
14203 2019-01-10 Tom Tromey <tom@tromey.com>
14204
14205 * psymtab.h (psymtab_storage::obstack): New method.
14206 <m_obstack>: Rename from obstack; now private.
14207 * psymtab.c (psymtab_storage): Update.
14208 * dwarf2read.c (create_addrmap_from_index)
14209 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
14210 Update.
14211
14212 2019-01-10 Tom Tromey <tom@tromey.com>
14213
14214 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
14215 * objfiles.h (objfile::reset_psymtabs): New method.
14216
14217 2019-01-10 Tom Tromey <tom@tromey.com>
14218
14219 * symmisc.c (print_symbol_bcache_statistics): Update.
14220 (print_objfile_statistics): Update.
14221 * symfile.c (reread_symbols): Update.
14222 * psymtab.h (class psymtab_storage): New.
14223 * psymtab.c (psymtab_storage): New constructor.
14224 (~psymtab_storage): New destructor.
14225 (require_partial_symbols): Update.
14226 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
14227 (find_pc_sect_psymtab, find_pc_sect_psymbol)
14228 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
14229 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
14230 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
14231 (start_psymtab_common, end_psymtab_common)
14232 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
14233 (allocate_psymtab): Update.
14234 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
14235 Update.
14236 (dump_psymtab_addrmap, maintenance_print_psymbols)
14237 (maintenance_check_psymtabs): Update.
14238 (class objfile_psymtabs): Move to objfiles.h.
14239 * psympriv.h (discard_psymtab): Now inline.
14240 (psymtab_discarder::psymtab_discarder): Update.
14241 (psymtab_discarder::~psymtab_discarder): Update.
14242 (ALL_OBJFILE_PSYMTABS): Rewrite.
14243 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
14244 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
14245 Remove fields.
14246 <partial_symtabs>: New field.
14247 (class objfile_psymtabs): Move from psymtab.h. Update.
14248 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
14249 psymbol_cache.
14250 (objfile::~objfile): Don't destroy psymbol_cache.
14251 * mdebugread.c (parse_partial_symbols): Update.
14252 * dwarf2read.c (create_addrmap_from_index)
14253 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
14254 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
14255 (add_partial_subprogram, dwarf2_ranges_read): Update.
14256 * dwarf-index-write.c (write_address_map)
14257 (write_one_signatured_type, recursively_write_psymbols)
14258 (class debug_names, class debug_names, write_psymtabs_to_index):
14259 Update.
14260
14261 2019-01-10 Tom Tromey <tom@tromey.com>
14262
14263 * symtab.h (SYMBOL_SET_NAMES): Update.
14264 (symbol_set_names): Update.
14265 (MSYMBOL_SET_NAMES): Update.
14266 * symtab.c (symbol_set_names): Change argument to be an
14267 objfile_per_bfd_storage.
14268 * psymtab.c (add_psymbol_to_bcache): Update.
14269 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
14270
14271 2019-01-10 Tom Tromey <tom@tromey.com>
14272
14273 * symtab.c (create_demangled_names_hash): Change argument to be an
14274 objfile_per_bfd_storage.
14275 (symbol_set_names): Update.
14276
14277 2019-01-10 Tom Tromey <tom@tromey.com>
14278
14279 * xcoffread.c (xcoff_initial_scan): Unconditionally call
14280 init_psymbol_list.
14281 * psymtab.c (init_psymbol_list): Do nothing if already called.
14282 * psympriv.h (init_psymbol_list): Add comment.
14283 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
14284 init_psymbol_list.
14285 * dbxread.c (dbx_symfile_read): Unconditionally call
14286 init_psymbol_list.
14287
14288 2019-01-10 Tom Tromey <tom@tromey.com>
14289
14290 * xcoffread.c (scan_xcoff_symtab): Update.
14291 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
14292 "where".
14293 * mdebugread.c (parse_partial_symbols)
14294 (handle_psymbol_enumerators): Update.
14295 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
14296 * dbxread.c (read_dbx_symtab): Update.
14297 * psympriv.h (psymbol_placement): New enum.
14298 (add_psymbol_to_list): Update.
14299
14300 2019-01-10 Tom Tromey <tom@tromey.com>
14301
14302 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
14303 static_psymbols parameters.
14304 (scan_xcoff_symtab): Update.
14305 * psymtab.c (start_psymtab_common): Remove global_psymbols and
14306 static_psymbols parameters.
14307 * psympriv.h (start_psymtab_common): Update.
14308 * mdebugread.c (parse_partial_symbols): Update.
14309 * dwarf2read.c (create_partial_symtab): Update.
14310 * dbxread.c (read_dbx_symtab): Update.
14311 (start_psymtab): Remove global_psymbols and static_psymbols
14312 parameters.
14313
14314 2019-01-10 Tom Tromey <tom@tromey.com>
14315
14316 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
14317 * psymtab.c (allocate_psymtab): Add comment.
14318 * psympriv.h (allocate_psymtab): Add comment.
14319 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
14320 initializations.
14321 * dbxread.c (dbx_end_psymtab): Remove some initializations.
14322
14323 2019-01-10 Tom Tromey <tom@tromey.com>
14324
14325 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
14326 Don't declare.
14327 * mipsread.c: Include mdebugread.h.
14328 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
14329 Declare.
14330 * elfread.c: Include mdebugread.h.
14331
14332 2019-01-09 Tom Tromey <tom@tromey.com>
14333
14334 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
14335 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
14336 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
14337 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
14338 (psym_lookup_symbol, psym_find_last_source_symtab)
14339 (psym_forget_cached_source_info, psym_print_stats)
14340 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
14341 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
14342 (psym_map_matching_symbols, psym_expand_symtabs_matching)
14343 (psym_find_compunit_symtab_by_address)
14344 (maintenance_print_psymbols, maintenance_info_psymtabs)
14345 (maintenance_check_psymtabs): Use ranged for.
14346 * psymtab.h (class objfile_psymtabs): New.
14347 (require_partial_symbols): Return objfile_psymtabs.
14348 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
14349
14350 2019-01-09 Tom Tromey <tom@tromey.com>
14351
14352 * symfile.c (overlay_invalidate_all, find_pc_overlay)
14353 (find_pc_mapped_section, list_overlays_command)
14354 (map_overlay_command, unmap_overlay_command)
14355 (simple_overlay_update): Use all_objfiles.
14356 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
14357 * printcmd.c (info_symbol_command): Use all_objfiles.
14358 * objfiles.h (ALL_OBJSECTIONS): Remove.
14359 * maint.c (maintenance_translate_address): Use all_objfiles.
14360 * gcore.c (gcore_create_callback): Use all_objfiles.
14361 (objfile_find_memory_regions): Likewise.
14362
14363 2019-01-09 Tom Tromey <tom@tromey.com>
14364
14365 * symtab.c (find_line_symtab, info_sources_command)
14366 (make_source_files_completion_list): Use objfile_compunits.
14367 * source.c (select_source_symtab): Use objfile_compunits.
14368 * objfiles.h (struct objfile): Update comment.
14369 (ALL_OBJFILES): Remove.
14370 (ALL_FILETABS): Remove.
14371 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
14372 objfile_compunits.
14373
14374 2019-01-09 Tom Tromey <tom@tromey.com>
14375
14376 * symmisc.c (print_objfile_statistics, dump_objfile)
14377 (maintenance_print_symbols): Use compunit_filetabs.
14378 * source.c (forget_cached_source_info_for_objfile): Use
14379 compunit_filetabs.
14380 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
14381 (ALL_FILETABS): Use compunit_filetabs.
14382 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
14383 * coffread.c (coff_symtab_read): Use compunit_filetabs.
14384
14385 2019-01-09 Tom Tromey <tom@tromey.com>
14386
14387 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
14388 (compunit_filetabs): New.
14389 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
14390 compunit_filetabs.
14391 (info_sources_command, make_source_files_completion_list): Remove
14392 declaration.
14393 * symmisc.c (print_objfile_statistics, dump_objfile)
14394 (maintenance_print_symbols): Remove declaration.
14395 (maintenance_info_symtabs): Use compunit_filetabs.
14396 (maintenance_info_line_tables): Likewise.
14397 * source.c (select_source_symtab): Change local variable name.
14398 (forget_cached_source_info_for_objfile): Remove declaration.
14399 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
14400 * objfiles.c (objfile_relocate1): Remove declaration.
14401 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
14402 declaration.
14403 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
14404 * coffread.c (coff_symtab_read): Remove declaration.
14405 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
14406 compunit_filetabs.
14407
14408 2019-01-09 Tom Tromey <tom@tromey.com>
14409
14410 * symtab.c (lookup_objfile_from_block)
14411 (find_pc_sect_compunit_symtab, search_symbols)
14412 (default_collect_symbol_completion_matches_break_on): Use
14413 objfile_compunits.
14414 * objfiles.h (ALL_COMPUNITS): Remove.
14415 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
14416 * cp-support.c (add_symbol_overload_list_qualified): Use
14417 objfile_compunits.
14418 * ada-lang.c (ada_collect_symbol_completion_matches)
14419 (ada_add_global_exceptions): Use objfile_compunits.
14420
14421 2019-01-09 Tom Tromey <tom@tromey.com>
14422
14423 * source.c (select_source_symtab)
14424 (forget_cached_source_info_for_objfile): Remove declaration.
14425 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
14426 declaration.
14427 * maint.c (count_symtabs_and_blocks): Remove declaration.
14428 * cp-support.c (add_symbol_overload_list_qualified): Remove
14429 declaration.
14430 * coffread.c (coff_symtab_read): Remove declaration.
14431 * symtab.c (lookup_symbol_in_objfile_symtabs)
14432 (basic_lookup_transparent_type_1): Use objfile_compunits.
14433 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
14434 (info_sources_command, search_symbols)
14435 (default_collect_symbol_completion_matches_break_on)
14436 (make_source_files_completion_list): Remove declaration.
14437 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
14438 (ada_collect_symbol_completion_matches)
14439 (ada_add_global_exceptions): Remove declaration.
14440 * linespec.c (iterate_over_all_matching_symtabs): Use
14441 objfile_compunits.
14442 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
14443 (class objfile_compunits): New.
14444 (ALL_COMPUNITS): Use objfile_compunits.
14445 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
14446 (maintenance_check_symtabs, maintenance_info_line_tables): Use
14447 objfile_compunits.
14448 * objfiles.c (objfile_relocate1): Use objfile_compunits.
14449
14450 2019-01-09 Tom Tromey <tom@tromey.com>
14451
14452 * symtab.c (search_symbols)
14453 (default_collect_symbol_completion_matches_break_on): Use
14454 objfile_msymbols.
14455 * ada-lang.c (ada_lookup_simple_minsym)
14456 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
14457 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
14458 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
14459 objfile_msymbols.
14460 * coffread.c (coff_symfile_read): Use objfile_msymbols.
14461 * symmisc.c (dump_msymbols): Use objfile_msymbols.
14462 * objc-lang.c (find_methods): Use objfile_msymbols.
14463 (info_selectors_command, info_classes_command): Likewise.
14464 * stabsread.c (scan_file_globals): Use objfile_msymbols.
14465 * objfiles.h (class objfile_msymbols): New.
14466 (ALL_OBJFILE_MSYMBOLS): Remove.
14467 (ALL_MSYMBOLS): Remove.
14468
14469 2019-01-09 Tom Tromey <tom@tromey.com>
14470
14471 * common/next-iterator.h (next_adapter): Add Iterator template
14472 parameter.
14473 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
14474 (class all_objfiles_safe): New.
14475 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
14476 * objfiles.c (put_objfile_before): Update comment.
14477 (add_separate_debug_objfile): Likewise.
14478 (free_all_objfiles): Use all_objfiles_safe.
14479 (objfile_purge_solibs): Likewise.
14480
14481 2019-01-09 Tom Tromey <tom@tromey.com>
14482
14483 * symtab.c (iterate_over_symtabs, matching_obj_sections)
14484 (expand_symtab_containing_pc, lookup_static_symbol)
14485 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
14486 (find_symbol_at_address, find_line_symtab, find_main_name): Use
14487 all_objfiles.
14488 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
14489 * breakpoint.c (create_overlay_event_breakpoint)
14490 (create_longjmp_master_breakpoint)
14491 (create_std_terminate_master_breakpoint)
14492 (create_exception_master_breakpoint): Use all_objfiles.
14493 * linux-thread-db.c (try_thread_db_load_from_pdir)
14494 (has_libpthread): Use all_objfiles.
14495 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
14496 * linespec.c (iterate_over_all_matching_symtabs)
14497 (search_minsyms_for_name): Use all_objfiles.
14498 * maint.c (maintenance_info_sections): Use all_objfiles.
14499 * main.c (captured_main_1): Use all_objfiles.
14500 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
14501 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
14502 * guile/scm-pretty-print.c
14503 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
14504 * solib-spu.c (append_ocl_sos): Use all_objfiles.
14505 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
14506 (maintenance_print_msymbols): Use all_objfiles.
14507 * source.c (select_source_symtab): Use all_objfiles.
14508 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
14509 * symfile.c (remove_symbol_file_command)
14510 (expand_symtabs_matching, map_symbol_filenames): Use
14511 all_objfiles.
14512 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
14513 all_objfiles.
14514 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
14515 * objc-lang.c (find_methods): Use all_objfiles.
14516 * objfiles.c (have_partial_symbols, have_full_symbols)
14517 (have_minimal_symbols, qsort_cmp)
14518 (default_iterate_over_objfiles_in_search_order): Use
14519 all_objfiles.
14520 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
14521 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
14522 (maintenance_check_psymtabs): Use all_objfiles.
14523 (ALL_PSYMTABS): Remove.
14524 * compile/compile-object-run.c (do_module_cleanup): Use
14525 all_objfiles.
14526 * blockframe.c (find_pc_partial_function): Use all_objfiles.
14527 * cp-support.c (add_symbol_overload_list_qualified): Use
14528 all_objfiles.
14529 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
14530 Use all_objfiles.
14531 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
14532 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
14533 all_objfiles.
14534 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
14535 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
14536 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
14537 Uses all_objfiles.
14538 * solib.c (solib_read_symbols): Use all_objfiles
14539
14540 2019-01-09 Tom Tromey <tom@tromey.com>
14541
14542 * probe.c (parse_probes_in_pspace): Use all_objfiles.
14543 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
14544 all_objfiles.
14545 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
14546 * symmisc.c (print_symbol_bcache_statistics)
14547 (print_objfile_statistics, maintenance_print_objfiles)
14548 (maintenance_info_symtabs, maintenance_check_symtabs)
14549 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
14550 all_objfiles.
14551 * source.c (forget_cached_source_info): Use all_objfiles.
14552 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
14553 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
14554 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
14555 * objfiles.c (update_section_map): Use all_objfiles.
14556 (shared_objfile_contains_address_p): Likewise.
14557 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
14558 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
14559
14560 2019-01-09 Tom Tromey <tom@tromey.com>
14561
14562 * common/next-iterator.h: New file.
14563 * objfiles.h (class all_objfiles): New.
14564 (struct objfile_iterator): New.
14565
14566 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14567
14568 * NEWS: Move the description of the changed "frame", "select-frame",
14569 and "info frame" commands to the Changed commands section.
14570
14571 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
14572
14573 * gdbtypes.c (check_stub_method_group): Remove handling of old
14574 mangling schemes.
14575 * linespec.c (find_methods): Likewise.
14576 * stabsread.c (read_member_functions): Likewise.
14577 * valops.c (search_struct_method): Likewise.
14578 (value_struct_elt_for_reference): Likewise.
14579 * NEWS: Mention this change.
14580
14581 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
14582
14583 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
14584 print_source_lines.
14585 * source.c (print_source_lines_base): Update line number check.
14586 (print_source_lines): New function.
14587 (source_lines_range::source_lines_range): New function.
14588 * source.h (class source_lines_range): New class.
14589 (print_source_lines): New declaration.
14590
14591 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14592
14593 * linespec.c (linespec_state_destructor): Free self->canonical_names.
14594
14595 2019-01-08 Tom Tromey <tom@tromey.com>
14596 Simon Marchi <simon.marchi@ericsson.com>
14597
14598 PR gdb/24060
14599 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
14600 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
14601 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
14602 * f-exp.y (DOLLAR_VARIABLE): Likewise.
14603 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
14604 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
14605
14606 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
14607
14608 * source.c (select_source_symtab): Move header comment to
14609 declaration in source.h.
14610 (forget_cached_source_info_for_objfile): Likewise.
14611 (forget_cached_source_info): Likewise.
14612 (identify_source_line): Likewise.
14613 * source.h (identify_source_line): Move declaration from symtab.h
14614 and add comment from source.c
14615 (print_source_lines): Likewise.
14616 (forget_cached_source_info_for_objfile): Likewise.
14617 (forget_cached_source_info): Likewise.
14618 (select_source_symtab): Likewise.
14619 (enum print_source_lines_flag): Move definition from symtab.h.
14620 * symtab.h (identify_source_line): Move declaration to source.h.
14621 (print_source_lines): Likewise.
14622 (forget_cached_source_info_for_objfile): Likewise.
14623 (forget_cached_source_info): Likewise.
14624 (select_source_symtab): Likewise.
14625 (enum print_source_lines_flag): Move definition to source.h.
14626 * tui/tui-hooks.c: Add 'source.h' include.
14627
14628 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
14629
14630 * source.c (print_source_lines_base): Handle requests to print
14631 reverse line number sequences, and guard against empty lines
14632 string.
14633
14634 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
14635
14636 * source.c (print_source_lines_base): Fix skip of '\r' if next
14637 character is '\n'.
14638
14639 2019-01-06 Tom Tromey <tom@tromey.com>
14640
14641 * c-exp.y (struct c_parse_state) <macro_original_text,
14642 expansion_obstack>: New member.
14643 (macro_original_text, expansion_obstack): Remove globals.
14644 (scan_macro_expansion, scanning_macro_expansion)
14645 (finished_macro_expansion): Update.
14646 (scan_macro_cleanup): Remove.
14647 (yylex, c_parse): Update.
14648
14649 2019-01-06 Tom Tromey <tom@tromey.com>
14650
14651 * c-exp.y (struct c_parse_state) <strings>: New member.
14652 (operator_stoken): Update.
14653
14654 2019-01-06 Tom Tromey <tom@tromey.com>
14655
14656 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
14657 (union type_stack_elt) <typelist_val>: Now a pointer to
14658 std::vector.
14659 (type_stack_cleanup): Don't declare.
14660 (push_typelist): Update.
14661 * parse.c (pop_typelist): Return a std::vector.
14662 (push_typelist): Take a std::vector.
14663 (follow_types): Update. Do not free args.
14664 (type_stack_cleanup): Remove.
14665 * c-exp.y (struct c_parse_state): New.
14666 (cpstate): New global.
14667 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
14668 (nonempty_typelist): Update.
14669 (func_mod): Create a new vector.
14670 (c_parse): Create a c_parse_state.
14671 (check_parameter_typelist): Do not delete params.
14672 (function_method): Update. Do not delete type_list.
14673
14674 2019-01-06 Tom Tromey <tom@tromey.com>
14675
14676 PR gdb/28155:
14677 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
14678 check_typedef.
14679 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
14680 (print_return_value): Likewise.
14681
14682 2019-01-05 Tom Tromey <tom@tromey.com>
14683
14684 * contrib/cleanup_check.py: Remove.
14685 * contrib/gcc-with-excheck: Remove.
14686 * contrib/exsummary.py: Remove.
14687 * contrib/excheck.py: Remove.
14688
14689 2019-01-05 Joel Brobecker <brobecker@adacore.com>
14690
14691 * thread.c (delete_thread_1): Add gdb_assert that THR is not
14692 NULL. Initialize tpprev to NULL instead of assigning it
14693 to NULL on the next statement.
14694 * windows-nat.c (windows_delete_thread): Remove check for
14695 main_thread_id before printing thread exit notifications.
14696 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
14697 Remove thread ID check against main_thread_id.
14698 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
14699 windows_delete_thread.
14700 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
14701
14702 2019-01-04 Tom Tromey <tom@tromey.com>
14703
14704 * compile/compile.c (_initialize_compile): Use upper case for
14705 metasyntactic variables.
14706 * symmisc.c (_initialize_symmisc): Use upper case for
14707 metasyntactic variables.
14708 * psymtab.c (_initialize_psymtab): Use upper case for
14709 metasyntactic variables.
14710 * demangle.c (demangle_command): Use upper case for metasyntactic
14711 variables.
14712 (_initialize_demangler): Likewise.
14713 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
14714 variables.
14715
14716 2019-01-03 Tom Tromey <tom@tromey.com>
14717
14718 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
14719
14720 2019-01-03 Tom Tromey <tom@tromey.com>
14721
14722 * python/py-symtab.c (salpy_str): Update.
14723 (struct salpy_sal_object) <symtab>: Now a PyObject.
14724 (salpy_dealloc): Update.
14725 (del_objfile_sal): Use gdbpy_ref.
14726
14727 2019-01-03 Tom Tromey <tom@tromey.com>
14728
14729 * python/py-type.c (convert_field): Use new_reference. Return
14730 gdbpy_ref.
14731 (make_fielditem): Return gdbpy_ref.
14732 (typy_fields): Update.
14733 (typy_getitem): Update.
14734 (field_name): Return gdbpy_ref. Use new_reference.
14735 (typy_iterator_iternext): Update.
14736
14737 2019-01-03 Tom Tromey <tom@tromey.com>
14738
14739 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
14740
14741 2019-01-03 Tom Tromey <tom@tromey.com>
14742
14743 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
14744 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
14745 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
14746 (pspy_set_frame_filters, pspy_set_frame_unwinders)
14747 (pspy_set_type_printers): Likewise.
14748 * python/py-function.c (fnpy_init): Use gdbpy_ref.
14749 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
14750 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
14751 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
14752 (objfpy_set_type_printers): Likewise.
14753
14754 2019-01-03 Tom Tromey <tom@tromey.com>
14755
14756 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
14757 (gdbpy_print_stack): Use gdbpy_err_fetch.
14758 * python/python-internal.h (class gdbpy_err_fetch): New class.
14759 (class gdbpy_enter) <m_error_type, m_error_value,
14760 m_error_traceback>: Remove.
14761 <m_error>: New member.
14762 (gdbpy_exception_to_string): Don't declare.
14763 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
14764 * python/py-value.c (convert_value_from_python): Use
14765 gdbpy_err_fetch.
14766 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
14767 gdbpy_exception_to_string.
14768 (gdbpy_handle_exception): Use gdbpy_err_fetch.
14769 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
14770 gdbpy_err_fetch.
14771
14772 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14773
14774 * linux-nat.c (delete_lwp_cleanup): Delete.
14775 (struct lwp_deleter): New struct.
14776 (lwp_info_up): New typedef.
14777 (linux_nat_target::follow_fork): Delete cleanup, and make use of
14778 lwp_info_up.
14779
14780 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14781
14782 * linux-fork.c (class scoped_switch_fork_info): New class.
14783 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
14784
14785 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14786
14787 * valops.c (find_overload_match): Remove use of null_cleanup, and
14788 calls to do_cleanups.
14789
14790 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14791
14792 * compile/compile-cplus-types.c
14793 (compile_cplus_instance::decl_name): Handle changes to
14794 cp_func_name.
14795 * cp-support.c (cp_func_name): Update header comment, update
14796 return type.
14797 * cp-support.h (cp_func_name): Update return type in declaration.
14798 * valops.c (find_overload_match): Move temp_func local to top
14799 level of function and change its type. Use temp_func to hold and
14800 delete temporary string obtained from cp_func_name.
14801
14802 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14803
14804 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
14805 gdb::char_vector, remove cleanup, and update uses of `msg`.
14806
14807 2019-01-03 Jim Wilson <jimw@sifive.com>
14808
14809 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
14810
14811 2019-01-02 Tom Tromey <tom@tromey.com>
14812
14813 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
14814 (tdesc_parse_xml): Remove cleanups.
14815 * target-descriptions.h (make_cleanup_free_target_description):
14816 Don't declare.
14817 (target_desc_deleter): New struct.
14818 (target_desc_up): New typedef.
14819 * target-descriptions.c (target_desc_deleter::operator()): Rename
14820 from free_target_description.
14821 (make_cleanup_free_target_description): Remove.
14822
14823 2019-01-02 Tom Tromey <tom@tromey.com>
14824
14825 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
14826 constructor, destructor.
14827 (linespec_parser): Remove typedef.
14828 (~linespec_parser): Rename from linespec_parser_delete.
14829 (linespec_lex_to_end, linespec_complete_label)
14830 (linespec_complete): Update.
14831 (decode_line_full): Remove cleanups.
14832 (decode_line_1): Update.
14833
14834 2019-01-02 Tom Tromey <tom@tromey.com>
14835
14836 * python/python-internal.h (inferior_to_inferior_object): Change
14837 return type.
14838 * python/py-exitedevent.c (create_exited_event_object): Update.
14839 * python/py-inferior.c (inferior_to_inferior_object): Return
14840 gdbpy_ref.
14841 (python_new_inferior, python_inferior_deleted)
14842 (thread_to_thread_object, delete_thread_object)
14843 (build_inferior_list, gdbpy_selected_inferior): Update.
14844 * python/py-infthread.c (create_thread_object): Update. Also fail
14845 if inferior_to_inferior_object fails.
14846
14847 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
14848
14849 * inferior.h (class inferior) <displaced_step_state>: New field.
14850 * infrun.h (struct displaced_step_state): Move here from
14851 infrun.c. Initialize fields, add constructor.
14852 <inf>: Remove field.
14853 <reset>: New method.
14854 * infrun.c (struct displaced_step_inferior_state): Move to
14855 infrun.h.
14856 (displaced_step_inferior_states): Remove.
14857 (get_displaced_stepping_state): Adust.
14858 (displaced_step_in_progress_any_inferior): Adjust.
14859 (displaced_step_in_progress_thread): Adjust.
14860 (displaced_step_in_progress): Adjust.
14861 (add_displaced_stepping_state): Remove.
14862 (get_displaced_step_closure_by_addr): Adjust.
14863 (remove_displaced_stepping_state): Remove.
14864 (infrun_inferior_exit): Call displaced_step_state.reset.
14865 (use_displaced_stepping): Don't check for NULL.
14866 (displaced_step_prepare_throw): Call
14867 get_displaced_stepping_state.
14868 (displaced_step_fixup): Don't check for NULL.
14869 (prepare_for_detach): Don't check for NULL.
14870
14871 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14872
14873 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
14874 in case of call that did not complete.
14875
14876 2019-01-02 Andrey Utkin <autkin@undo.io>
14877
14878 * symfile.c (find_separate_debug_file): Fix search of debug files for
14879 remote debuggee.
14880
14881 2019-01-02 Tom Tromey <tom@tromey.com>
14882
14883 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
14884 indentation.
14885 * python/py-frame.c (frapy_older): Remove cast.
14886 (frapy_newer): Likewise.
14887 * python/py-breakpoint.c (local_setattro): Remove cast.
14888 * python/py-arch.c (archpy_name): Remove local variable.
14889 * python/py-type.c (gdbpy_lookup_type): Remove cast.
14890
14891 2019-01-02 Joel Brobecker <brobecker@adacore.com>
14892
14893 * unittests/basic_string_view/element_access/char/empty.cc:
14894 Fix year range in copyright header.
14895
14896 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
14897
14898 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
14899 Delete.
14900 <operator==>: Update with for removed field.
14901 <hash>: Likewise.
14902 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
14903 <isa_features>: ...this.
14904 <abi_features>: New field.
14905 (riscv_isa_flen): Update comment.
14906 (riscv_abi_xlen): New declaration.
14907 (riscv_abi_flen): New declaration.
14908 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
14909 isa_features.
14910 (riscv_abi_xlen): New function.
14911 (riscv_isa_flen): Update to get answer from isa_features.
14912 (riscv_abi_flen): New function.
14913 (riscv_has_fp_abi): Update to get answer from abi_features.
14914 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
14915 xlen and flen.
14916 (riscv_call_info) <xlen, flen>: Update comment.
14917 (riscv_call_arg_struct): Remove invalid assertions
14918 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
14919 is removed.
14920 (riscv_gdbarch_init): Gather isa features and abi features
14921 separately, ensure both match on the gdbarch when reusing an old
14922 gdbarch. Relax an error check to allow 32-bit abi float to run on
14923 a target with 64-bit float hardware.
14924
14925 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14926
14927 * source.c (search_command_helper): Stop reverse search
14928 when line 1 has been searched.
14929
14930 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14931
14932 * record-full.c (record_full_base_target::close): Rewrite
14933 record_full_core_buf_list free logic.
14934
14935 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14936
14937 * break-catch-syscall.c (print_one_catch_syscall): xfree
14938 the last text.
14939
14940 2019-01-01 Joel Brobecker <brobecker@adacore.com>
14941
14942 * top.c (print_gdb_version): Update Copyright year in version
14943 message.
14944
14945 2019-01-01 Joel Brobecker <brobecker@adacore.com>
14946
14947 Update copyright year range in all GDB files.
14948
14949 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
14950
14951 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
14952
14953 For older changes see ChangeLog-2018.
14954 \f
14955 Local Variables:
14956 mode: change-log
14957 left-margin: 8
14958 fill-column: 74
14959 version-control: never
14960 coding: utf-8
14961 End:
14962
This page took 0.364207 seconds and 5 git commands to generate.