]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gdb/ChangeLog
Consolidate setting of current_layout
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
1 2019-11-12 Tom Tromey <tom@tromey.com>
2
3 * tui/tui-layout.c (show_layout): Set current_layout.
4 (show_source_disasm_command, show_data)
5 (show_source_or_disasm_and_command): Don't set current_layout.
6
7 2019-11-12 Tom Tromey <tom@tromey.com>
8
9 * tui/tui-layout.c (_initialize_tui_layout): Move to end.
10
11 2019-11-12 Tom Tromey <tom@tromey.com>
12
13 * tui/tui-win.c (resize_message): New global.
14 (show_tui_resize_message): New function.
15 (tui_async_resize_screen): Print message if requested.
16 (_initialize_tui_win): Add tui-resize-message setting.
17 * NEWS: Add entry for new commands.
18
19 2019-11-11 Tom Tromey <tom@tromey.com>
20
21 * tui/tui.c (tui_initialize_readline): Add new bindable readline
22 functions.
23
24 2019-11-11 Christian Biesinger <cbiesinger@google.com>
25
26 * nat/linux-osdata.c (user_from_uid): Use getpwuid_r.
27
28 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
29
30 * python/py-symbol.c (gdbpy_lookup_static_symbols): New
31 function.
32 * python/python-internal.h (gdbpy_lookup_static_symbols):
33 Declare new function.
34 * python/python.c (python_GdbMethods): Add
35 gdb.lookup_static_symbols method.
36 * NEWS: Mention gdb.lookup_static_symbols.
37
38 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
39
40 * python/py-symbol.c (gdbpy_lookup_static_symbol): Lookup in
41 static block of current object file first. Also fix typo in
42 header comment.
43
44 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
45
46 * stack.c (set_last_displayed_sal): Delete.
47 (last_displayed_sal_valid): Delete.
48 (last_displayed_pspace): Delete.
49 (last_displayed_addr): Delete.
50 (last_displayed_symtab): Delete.
51 (last_displayed_line): Delete.
52 (class last_displayed_symtab_info_type): New.
53 (last_displayed_symtab_info): New static global variable.
54 (print_frame_info): Call methods on last_displayed_symtab_info.
55 (clear_last_displayed_sal): Update header comment, and make use of
56 last_displayed_symtab_info.
57 (last_displayed_sal_is_valid): Likewise.
58 (get_last_displayed_pspace): Likewise.
59 (get_last_displayed_addr): Likewise.
60 (get_last_displayed_symtab): Likewise.
61 (get_last_displayed_line): Likewise.
62 (get_last_displayed_sal): Likewise.
63 * stack.h (clear_last_displayed_sal): Update header comment.
64 (last_displayed_sal_is_valid): Likewise.
65 (get_last_displayed_pspace): Likewise.
66 (get_last_displayed_addr): Likewise.
67 (get_last_displayed_symtab): Likewise.
68 (get_last_displayed_line): Likewise.
69 (get_last_displayed_sal): Likewise.
70
71 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
72
73 * stack.c (frame_show_address): Convert return type to bool.
74 * stack.h (frame_show_address): Likewise, and update header
75 comment.
76
77 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
78
79 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new file to the list.
80 * unittests/vec-utils-selftests.c: New file.
81 * gdbsupport/gdb_vecs.h (unordered_remove): Avoid self move assign.
82
83 2019-11-10 Tom Tromey <tom@tromey.com>
84
85 * tui/tui-wingeneral.c (tui_unhighlight_win): Use can_box.
86 (tui_highlight_win): Likewise.
87 (tui_win_info::check_and_display_highlight_if_needed): Likewise.
88 * tui/tui-data.h (struct tui_win_info) <can_highlight>: Remove.
89 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
90 Don't set can_highlight.
91
92 2019-11-10 Tom Tromey <tom@tromey.com>
93
94 * cli/cli-style.h (class cli_style_option) <cli_style_option>:
95 Remove unused declaration.
96
97 2019-11-08 Tom Tromey <tromey@adacore.com>
98
99 * top.c (read_command_file): Update.
100 (command_line_input): Make return type const.
101 * python/py-gdb-readline.c: Update.
102 * linespec.c (decode_line_2): Update.
103 * defs.h (command_line_input): Make return type const.
104 * cli/cli-script.c (read_next_line): Make return type const.
105 * ada-lang.c (get_selections): Update.
106
107 2019-11-06 Christian Biesinger <cbiesinger@google.com>
108
109 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
110 * mi/mi-main.c (output_cores): Likewise.
111 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
112 (linux_xfer_osdata_modules): Likewise.
113 * remote.c (register_remote_support_xml): Likewise.
114 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
115 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
116
117 2019-11-06 Tom Tromey <tom@tromey.com>
118
119 * tui/tui-interp.c: Don't include readline.h.
120 * tui/tui-hooks.c: Don't include readline.h.
121 * symmisc.c: Include tilde.h, not readline.h.
122 * symfile.c: Include tilde.h, not readline.h.
123 * source.c: Include tilde.h, not readline.h.
124 * solib.c: Include tilde.h, not readline.h.
125 * psymtab.c: Include tilde.h, not readline.h.
126 * exec.c: Include tilde.h, not readline.h.
127 * corelow.c: Include tilde.h, not readline.h.
128 * cli/cli-dump.c: Include tilde.h, not readline.h.
129 * cli/cli-cmds.c: Don't include readline.h.
130
131 2019-11-05 Tom Tromey <tom@tromey.com>
132
133 * tui/tui-disasm.c (struct tui_asm_line) <addr_size>: New member.
134 (tui_disassemble): Set addr_size.
135 (tui_disasm_window::set_contents): Use addr_size.
136
137 2019-11-05 Tom Tromey <tom@tromey.com>
138
139 * rust-lang.c (rust_language_defn): Update.
140 * python/py-value.c (valpy_string): Call c_get_string.
141 * p-lang.c (pascal_language_defn): Update.
142 * opencl-lang.c (opencl_language_defn): Update.
143 * objc-lang.c (objc_language_defn): Update.
144 * m2-lang.c (m2_language_defn): Update.
145 * language.c (unknown_language_defn, auto_language_defn): Update.
146 (default_get_string): Remove.
147 * guile/scm-value.c (gdbscm_value_to_string): Use c_get_string.
148 * go-lang.c (go_language_defn): Update.
149 * f-lang.c (f_language_defn): Update.
150 * d-lang.c (d_language_defn): Update.
151 * c-lang.c (c_language_defn, cplus_language_defn)
152 (asm_language_defn, minimal_language_defn): Update.
153 * ada-lang.c (ada_language_defn): Update.
154 * language.h (struct language_defn) <la_get_string>: Remove.
155 (LA_GET_STRING): Remove.
156 (default_get_string): Don't declare.
157
158 2019-11-05 Tom Tromey <tom@tromey.com>
159
160 * tui/tui-source.h (struct tui_source_window): Inline
161 constructor. Remove destructor.
162 <style_changed, m_observable>: Move to superclass.
163 * tui/tui-winsource.h (tui_copy_source_line): Declare.
164 (struct tui_source_window_base): Move private members to end.
165 <style_changed, m_observable>: Move from tui_source_window.
166 * tui/tui-winsource.c (tui_copy_source_line): Move from
167 tui-source.c. Rename from copy_source_line. Add special handling
168 for negative line number.
169 (tui_source_window_base::style_changed): Move from
170 tui_source_window.
171 (tui_source_window_base): Register observer.
172 (~tui_source_window_base): New.
173 * tui/tui-source.c (copy_source_line): Move to tui-winsource.c;
174 rename.
175 (tui_source_window::set_contents): Use tui_copy_source_line.
176 (tui_source_window::tui_source_window): Move to tui-source.h.
177 (tui_source_window::~tui_source_window): Remove.
178 (tui_source_window::style_changed): Move to superclass.
179 * tui/tui-disasm.c (tui_disassemble): Create string file with
180 styling, when possible. Add "addr_size" parameter.
181 (tui_disasm_window::set_contents): Use tui_copy_source_line.
182 Don't compute maximum size.
183 (len_without_escapes): New function
184
185 2019-11-05 Tom Tromey <tom@tromey.com>
186
187 * tui/tui-winsource.h (struct tui_source_element) <line>: Now a
188 std::string.
189 * tui/tui-winsource.c (tui_show_source_line): Update.
190 * tui/tui-source.c (tui_source_window::set_contents): Update.
191 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
192
193 2019-11-05 Christian Biesinger <cbiesinger@google.com>
194
195 * symtab.h (gdb_static_assert): Put && operator at the beginning
196 of the line instead of the end.
197
198 2019-11-04 Christian Biesinger <cbiesinger@google.com>
199
200 * psympriv.h: Add static_asserts for sizeof (general_symbol_info)
201 and sizeof (symbol).
202 * symtab.h: Add a static_assert for sizeof (partial_symbol).
203
204 2019-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
205
206 * NEWS (Changes since GDB 8.3): Document Solaris 10 removal.
207 * configure.host: Mark *-*-solaris2.10* obsolete.
208 * configure.tgt: Mark Solaris < 11 obsolete.
209 * MAINTAINERS (Target Instruction Set Architectures) <sparc>:
210 Update target triplet.
211
212 2019-11-01 Tom Tromey <tromey@adacore.com>
213
214 * utils.c (print_sys_errmsg): Simplify.
215
216 2019-11-01 Tom Tromey <tromey@adacore.com>
217
218 * gdbsupport/mingw-strerror.c (safe_strerror): Constify result.
219
220 2019-11-01 Christian Biesinger <cbiesinger@google.com>
221
222 * configure: Regenerate.
223 * configure.ac: Remove check for strerror_r.
224 * gdbsupport/common.m4: Check for strerror_r.
225
226 2019-11-01 Luis Machado <luis.machado@linaro.org>
227
228 PR gdb/25124
229
230 * arm-tdep.c (arm_per_objfile): Rename to ...
231 (arm_per_bfd): ... this.
232 (arm_objfile_data_key): Rename to ...
233 (arm_bfd_data_key): ... this.
234 (arm_find_mapping_symbol): Adjust access to new bfd_key-based
235 data.
236 (arm_record_special_symbol): Likewise.
237
238 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
239
240 * ada-typeprint.c (ada_print_typedef): Don't print newline at the
241 end.
242 * c-typeprint.c (c_print_typedef): Likewise.
243 * f-typeprint.c (f_print_typedef): Likewise.
244 * m2-typeprint.c (m2_print_typedef): Likewise.
245 * p-typeprint.c (pascal_print_typedef): Likewise.
246 * rust-lang.c (rust_print_typedef): Likewise.
247 * symtab.c (print_symbol_info): Print a newline after calling
248 typedef_print.
249
250 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
251
252 * symtab.c (info_module_cmdlist): New variable.
253 (info_module_command): New function.
254 (search_module_symbols): New function.
255 (info_module_subcommand): New function.
256 (struct info_modules_var_func_options): New struct.
257 (info_modules_var_func_options_defs): New variable.
258 (make_info_modules_var_func_options_def_group): New function.
259 (info_module_functions_command): New function.
260 (info_module_variables_command): New function.
261 (info_module_var_func_command_completer): New function.
262 (_initialize_symtab): Register new 'info module functions' and
263 'info module variables' commands.
264 * symtab.h (typedef symbol_search_in_module): New typedef.
265 (search_module_symbols): Declare new function.
266 * NEWS: Mention new commands.
267
268 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
269
270 * dwarf2read.c (dw2_symtab_iter_next): Handle MODULE_DOMAIN.
271 (dw2_expand_marked_cus): Handle MODULES_DOMAIN.
272 (dw2_debug_names_iterator::next): Handle MODULE_DOMAIN and
273 MODULES_DOMAIN.
274 (scan_partial_symbols): Only create partial module symbols for non
275 declarations.
276 * psymtab.c (recursively_search_psymtabs): Handle MODULE_DOMAIN
277 and MODULES_DOMAIN.
278 * symtab.c (search_domain_name): Likewise.
279 (search_symbols): Likewise.
280 (print_symbol_info): Likewise.
281 (symtab_symbol_info): Likewise.
282 (info_modules_command): New function.
283 (_initialize_symtab): Register 'info modules' command.
284 * symtab.h (enum search_domain): Add MODULES_DOMAIN.
285 * NEWS: Mention new 'info modules' command.
286
287 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
288
289 * NEWS: Mention $_gdb_setting, $_gdb_setting_str, $_gdb_maint_setting
290 and $_gdb_maint_setting_str.
291
292 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
293
294 * cli/cli-cmds.c (setting_cmd, value_from_setting)
295 (gdb_setting_internal_fn, gdb_maint_setting_internal_fn)
296 (str_value_from_setting, gdb_setting_str_internal_fn)
297 (gdb_maint_setting_str_internal_fn): New functions.
298 (_initialize_cli_cmds): Define the new convenience functions.
299 * gdb/cli/cli-setshow.h (get_setshow_command_value_string): Constify.
300 * gdb/cli/cli-setshow.c (get_setshow_command_value_string): Constify.
301
302 2019-10-31 Christian Biesinger <cbiesinger@google.com>
303
304 * agent.c (set_can_use_agent): When the setting is turned on,
305 look up agent symbols if we don't have them yet.
306 (agent_new_objfile): Don't look up agent symbols when the agent
307 setting is off.
308
309 2019-10-31 Christian Biesinger <cbiesinger@google.com>
310
311 * config.in: Regenerate.
312
313 2019-10-31 Christian Biesinger <cbiesinger@google.com>
314
315 * configure: Regenerate.
316 * configure.ac: Check for strerror_r.
317 * gdbsupport/common-utils.h (safe_strerror): Change return value
318 to const char * and document that this function is now threadsafe.
319 * gdbsupport/posix-strerror.c (safe_strerror): Make buf
320 thread_local and call strerror_r, if available.
321 * utils.c (perror_string): Update.
322 (print_sys_errmsg): Update.
323
324 2019-10-31 Luis Machado <luis.machado@linaro.org>
325
326 * arm-tdep.c (arm_exidx_data_key): Use bfd_key instead of
327 objfile_key.
328 (arm_exidx_new_objfile): Adjust to use objfile->obfd instead of
329 objfile to fetch per-bfd data.
330 (arm_find_exidx_entry): Likewise.
331
332 2019-10-31 Christian Biesinger <cbiesinger@google.com>
333
334 * gdbsupport/agent.c (debug_agent): Change type to bool.
335 (use_agent): Likewise.
336 (all_agent_symbols_look_up): Likewise.
337 (agent_loaded_p): Change return value to bool.
338 (agent_look_up_symbols): Update.
339 (agent_capability_check): Change return value to bool.
340 * gdbsupport/agent.h (agent_loaded_p): Likewise.
341 (debug_agent): Change type to bool.
342 (use_agent): Likewise.
343 (agent_capability_check): Change return value to bool.
344
345 2019-10-30 Christian Biesinger <cbiesinger@google.com>
346
347 * minsyms.c (clear_minimal_symbol_hash_tables): New function.
348 (build_minimal_symbol_hash_tables): Code to clear the table moved
349 to clear_minimal_symbol_hash_tables.
350 (minimal_symbol_reader::install): Call clear_minimal_symbol_hash_tables
351 when needed.
352
353 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
354
355 * infcmd.c: Remove includes.
356 * infrun.c: Remove includes.
357
358 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
359
360 * ada-lang.h (GROW_VECT): Move to ada-lang.c.
361 (grow_vect): Remove declaration.
362 (ada_type_of_array): Remove declaration.
363 (ada_update_initial_language): Remove declaration.
364 (ada_fold_name): Remove declaration.
365 (ada_fill_in_ada_prototype): Remove declaration.
366 (user_select_syms): Remove declaration.
367 (get_selections): Remove declaration.
368 (ada_tag_type): Remove declaration.
369 (ada_value_tag): Remove declaration.
370 (ada_is_others_clause): Remove declaration.
371 (ada_in_variant): Remove declaration.
372 (ada_value_struct_elt): Remove declaration.
373 (ada_attribute_name): Remove declaration.
374 (ada_system_address_type): Remove declaration.
375 * ada-lang.c (ada_watch_location_expression): Make static.
376 (GROW_VECT): Move here from ada-lang.h.
377 (grow_vect): Make static.
378 (ada_update_initial_language): Make static.
379 (ada_fold_name): Make static.
380 (ada_type_of_array): Make static.
381 (encoded_ordered_before): Move up.
382 (sort_choices): Move up.
383 (print_signatures): Move up.
384 (ada_print_symbol_signature): Move up.
385 (get_selections): Move up and make static.
386 (user_select_syms): Move up and make static.
387 (ada_value_struct_elt): Move up and make static.
388 (ada_tag_type): Make static.
389 (ada_value_tag): Make static.
390 (ada_is_others_clause): Make static.
391 (ada_in_variant): Make static.
392 (ada_attribute_name): Make static.
393
394 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
395
396 * ada-lang.c: Remove includes.
397 * ada-typeprint.c: Remove includes.
398 * ada-valprint.c: Remove includes.
399
400 2019-10-29 Simon Marchi <simon.marchi@efficios.com>
401
402 * addrmap.c: Add static assertions of type size, moved from
403 _initialize_addrmap.
404 (_initialize_addrmap): Remove.
405
406 2019-10-29 Christian Biesinger <cbiesinger@google.com>
407
408 * coffread.c (record_minimal_symbol): Update.
409 (process_coff_symbol): Update.
410 * dbxread.c (read_dbx_symtab): Update.
411 * dwarf2read.c (add_partial_symbol): Update.
412 (fixup_go_packaging): Update.
413 (load_partial_dies): Update.
414 (new_symbol): Update.
415 * elfread.c (record_minimal_symbol): Change signature to use
416 gdb::string_view instead of name+len.
417 (elf_symtab_read): Update.
418 (elf_rel_plt_read): Update.
419 * mdebugread.c (parse_partial_symbols): Update.
420 (handle_psymbol_enumerators): Update.
421 (new_symbol): Update.
422 * minsyms.c (minimal_symbol_reader::record_full): Change signature
423 to use gdb::string_view instead of name+len.
424 * minsyms.h (class minimal_symbol_reader) <record_full>: Likewise.
425 * psympriv.h (add_psymbol_to_list): Likewise.
426 * psymtab.c (add_psymbol_to_bcache): Likewise.
427 (add_psymbol_to_list): Likewise.
428 * stabsread.c (define_symbol): Update.
429 * symtab.c (symbol_set_names): Change signature to use gdb::string_view.
430 * symtab.h (SYMBOL_SET_NAMES): Likewise.
431 (symbol_set_names): Likewise.
432 * xcoffread.c (scan_xcoff_symtab): Update.
433
434 2019-10-29 Christian Biesinger <cbiesinger@google.com>
435
436 * symtab.h (symbol_set_names): Document that copy_name must be
437 set to true for non-nullterminated strings.
438 * symtab.c (symbol_set_names): Only make a nullterminated copy of
439 linkage_name if the entry was not found and we need to demangle.
440
441 2019-10-29 Christian Biesinger <cbiesinger@google.com>
442
443 * Makefile.in (HFILES_NO_SRCDIR): Add gdb_binary_search.h.
444 * dwarf2-frame.c (bsearch_fde_cmp): Update.
445 (dwarf2_frame_find_fde): Replace bsearch with gdb::binary_search.
446 * gdbsupport/gdb_binary_search.h: New file.
447
448 2019-10-29 Christian Biesinger <cbiesinger@google.com>
449
450 * NEWS: Mention new --with-system-gdbinit-dir option.
451 * config.in: Regenerate.
452 * configure: Regenerate.
453 * configure.ac: Add new option --with-system-gdbinit-dir.
454 * extension.c (get_ext_lang_of_file): Return extension_language_gdb
455 for a ".gdb" suffix.
456 * main.c (get_init_files): Change system_gdbinit argument to
457 a vector and return the files in SYSTEM_GDBINIT_DIR in
458 addition to SYSTEM_GDBINIT.
459 (captured_main_1): Update.
460 (print_gdb_help): Update.
461 * top.c (print_gdb_configuration): Also print the value of
462 SYSTEM_GDBINIT_DIR.
463
464 2019-10-28 Christian Biesinger <cbiesinger@google.com>
465
466 * gdbsupport/common-utils.h (startswith): Add an overloaded version
467 that takes gdb::string_view arguments.
468
469 2019-10-26 Tom de Vries <tdevries@suse.de>
470
471 * aarch64-linux-tdep.c: Fix typos in comments.
472 * aarch64-tdep.c: Same.
473 * ada-lang.c: Same.
474 * amd64-nat.c: Same.
475 * arc-tdep.c: Same.
476 * arch/aarch64-insn.c: Same.
477 * block.c: Same.
478 * breakpoint.h: Same.
479 * btrace.h: Same.
480 * c-varobj.c: Same.
481 * cli/cli-decode.c: Same.
482 * cli/cli-script.c: Same.
483 * cli/cli-utils.h: Same.
484 * coff-pe-read.c: Same.
485 * coffread.c: Same.
486 * compile/compile-cplus-symbols.c: Same.
487 * compile/compile-object-run.c: Same.
488 * completer.c: Same.
489 * corelow.c: Same.
490 * cp-support.c: Same.
491 * demangle.c: Same.
492 * dwarf-index-write.c: Same.
493 * dwarf2-frame.c: Same.
494 * dwarf2-frame.h: Same.
495 * eval.c: Same.
496 * frame-base.h: Same.
497 * frame.h: Same.
498 * gdbcmd.h: Same.
499 * gdbtypes.h: Same.
500 * gnu-nat.c: Same.
501 * guile/scm-objfile.c: Same.
502 * i386-tdep.c: Same.
503 * i386-tdep.h: Same.
504 * infcall.c: Same.
505 * infcall.h: Same.
506 * linux-nat.c: Same.
507 * m68k-tdep.c: Same.
508 * macroexp.c: Same.
509 * memattr.c: Same.
510 * mi/mi-cmd-disas.c: Same.
511 * mi/mi-getopt.h: Same.
512 * mi/mi-main.c: Same.
513 * minsyms.c: Same.
514 * nat/aarch64-sve-linux-sigcontext.h: Same.
515 * objfiles.h: Same.
516 * ppc-linux-nat.c: Same.
517 * ppc-linux-tdep.c: Same.
518 * ppc-tdep.h: Same.
519 * progspace.h: Same.
520 * prologue-value.h: Same.
521 * python/py-evtregistry.c: Same.
522 * python/py-instruction.h: Same.
523 * record-btrace.c: Same.
524 * record-full.c: Same.
525 * remote.c: Same.
526 * rs6000-tdep.c: Same.
527 * ser-tcp.c: Same.
528 * sol-thread.c: Same.
529 * sparc-sol2-tdep.c: Same.
530 * sparc64-tdep.c: Same.
531 * stabsread.c: Same.
532 * symfile.c: Same.
533 * symtab.h: Same.
534 * target.c: Same.
535 * tracepoint.c: Same.
536 * tui/tui-data.h: Same.
537 * tui/tui-io.c: Same.
538 * tui/tui-win.c: Same.
539 * tui/tui.c: Same.
540 * unittests/rsp-low-selftests.c: Same.
541 * user-regs.h: Same.
542 * utils.c: Same.
543 * utils.h: Same.
544 * valarith.c: Same.
545 * valops.c: Same.
546 * valprint.c: Same.
547 * valprint.h: Same.
548 * value.c: Same.
549 * value.h: Same.
550 * varobj.c: Same.
551 * x86-nat.h: Same.
552 * xtensa-tdep.c: Same.
553
554 2019-10-25 Ali Tamur <tamur@google.com>
555
556 * charset.c (find_charset_names): Reflect API change.
557
558 2019-10-25 Christian Biesinger <cbiesinger@google.com>
559
560 * symtab.c (struct demangled_name_entry): Change demangled name
561 to a unique_xmalloc_ptr<char>, now that we don't allocate it as
562 part of the struct anymore.
563 (symbol_set_names): No longer obstack allocate + copy the demangled
564 name, just store the allocated name from bfd.
565
566 2019-10-25 Tom Tromey <tromey@adacore.com>
567
568 * dwarf2-frame.c (dwarf2_cie_table): Now a typedef.
569 (bsearch_cie_cmp, add_cie): Remove.
570 (find_cie): Reimplement.
571 (decode_frame_entry_1, decode_frame_entry): Change type. Update.
572 (dwarf2_build_frame_info): Update.
573
574 2019-10-24 H.J. Lu <hongjiu.lu@intel.com>
575
576 PR gdb/25126
577 * symfile.c (reread_symbols): Call forget_cached_source_info to
578 clear the stale source cache.
579
580 2019-10-24 Christian Biesinger <cbiesinger@google.com>
581
582 * configure: Regenerate.
583 * configure.ac: Remove code that sets python_has_threads.
584
585 2019-10-24 Christian Biesinger <cbiesinger@google.com>
586
587 * config.in: Regenerate.
588 * configure: Regenerate.
589 * configure.ac: Remove the code that uses sed to get the python
590 version and defines HAVE_LIBPYTHON2_6 / HAVE_LIBPYTHON2_7.
591
592 2019-10-24 Andrew Burgess <andrew.burgess@embecosm.com>
593
594 * python/py-progspace.c (pspy_block_for_pc): Return None for all
595 error paths.
596
597 2019-10-23 Tom Tromey <tom@tromey.com>
598
599 * arc-tdep.c: Remove ".." from include.
600 * frv-tdep.c: Remove ".." from include.
601 * lm32-tdep.c: Remove ".." from include.
602 * microblaze-tdep.c: Remove ".." from include.
603 * or1k-tdep.h: Remove ".." from include.
604 * s12z-tdep.c: Remove ".." from include.
605 * Makefile.in (OPCODES_CFLAGS): Add comment.
606 (TOP_CFLAGS): New variable.
607 (INTERNAL_CFLAGS_BASE): Add TOP_CFLAGS.
608
609 2019-10-23 Tom Tromey <tom@tromey.com>
610
611 * Makefile.in (READLINE_DIR): Update.
612
613 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
614
615 * infcall.c (call_function_by_hand_dummy): Fix the function
616 comment. And extract out a code section into...
617 (reserve_stack_space): ...this new function.
618
619 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
620
621 * infcall.c (value_arg_coerce): Remove an unused parameter.
622 (call_function_by_hand_dummy): Update the call to
623 'value_arg_coerce'.
624
625 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
626
627 * infcall.c (call_function_by_hand_dummy): Refactor.
628
629 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
630
631 * MAINTAINERS (Write After Approval): Add Tankut Baris Aktemur.
632
633 2019-10-23 Tom Tromey <tom@tromey.com>
634
635 * configure: Rebuild.
636 * configure.ac: Don't check for sigprocmask.
637 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for sigprocmask.
638
639 2019-10-23 Tom Tromey <tom@tromey.com>
640
641 * configure: Rebuild.
642 * acinclude.m4: Use m4_include, not sinclude.
643
644 2019-10-23 Tom de Vries <tdevries@suse.de>
645
646 PR breakpoints/24687
647 * symtab.c (iterate_over_some_symtabs): Apply gdb_realpath on fullname.
648
649 2019-10-22 Christian Biesinger <cbiesinger@google.com>
650
651 * symtab.c (struct demangled_name_entry) <language>: Change from
652 bitfield to regular variable.
653
654 2019-10-22 Christian Biesinger <cbiesinger@google.com>
655
656 * symtab.c (struct demangled_name_entry): Add a constructor.
657 (free_demangled_name_entry): New function to call the destructor
658 for demangled_name_entry.
659 (create_demangled_names_hash): Pass free_demangled_name_entry to
660 htab_create_alloc.
661 (symbol_set_names): Call placement new for demangled_name_entry.
662 * utils.c: No longer include xxhash.h here, now that fast_hash
663 is inlined in the header.
664 * utils.h: Instead, include it here.
665
666 2019-10-22 Christian Biesinger <cbiesinger@google.com>
667
668 * Makefile.in: Link with libxxhash.
669 * config.in: Regenerate.
670 * configure: Regenerate.
671 * configure.ac: Search for libxxhash.
672 * utils.c (fast_hash): Use xxhash if present.
673
674 2019-10-22 Christian Biesinger <cbiesinger@google.com>
675
676 * utils.h (fast_hash): New function.
677 * symtab.c (hash_demangled_name_entry): Call new function
678 fast_hash.
679
680 2019-10-22 Christian Biesinger <cbiesinger@google.com>
681
682 * symtab.c (struct demangled_name_entry): Change type of mangled
683 to gdb::string_view. Also adds a constructor that takes the
684 mangled name.
685 (hash_demangled_name_entry): Update.
686 (eq_demangled_name_entry): Update.
687 (free_demangled_name_entry): New function to call the destructor
688 now that this is not a POD anymore.
689 (create_demangled_names_hash): Pass free_demangled_name_entry to
690 htab_create_alloc.
691 (symbol_set_names): Update.
692
693 2019-10-21 Ali Tamur <tamu@google.com>
694
695 * dwarf2read.c (dir_index): Change type.
696 (file_name_index): Likewise.
697 (line_header::include_dir_at): Change comment and implementation on
698 whether it is DWARF 5.
699 (line_header::is_valid_file_index): New function.
700 (line_header::file_name_at): Change comment and implementation on
701 whether it is DWARF 5.
702 (line_header::file_names): Change to private field renamed as
703 m_file_names and introduce a new accessor method.
704 (line_header::file_names_size): New method.
705 (line_header::include_dirs): Change to private field and rename as
706 m_include_dirs.
707 (dw2_get_file_names_reader): Define local var at a smaller scope and
708 reflect API change.
709 (dwarf2_cu::setup_type_unit_groups): Reflect API change.
710 (process_structure_scope): Likewise.
711 (line_header::add_include_dir): Change message and reflect renaming.
712 (line_header::add_file_name): Likewise.
713 (read_formatted_entries): Handle DW_FORM_data16.
714 (dwarf_decode_line_header): Fix line header length calculation.
715 (psymtab_include_file_name): Change comment and API.
716 (lnp_state_machine::m_file): Update comment and reflect type change.
717 (lnp_state_machine::record_line): Reflect type change.
718 (dwarf_decode_lines): Reflect API change.
719 (file_file_name): Likewise.
720 (file_full_name): Likewise.
721
722 2019-10-21 Andrew Burgess <andrew.burgess@embecosm.com>
723
724 * objfiles.c (sort_cmp): Ensure that !(a < a) holds true.
725
726 2019-10-21 Tom Tromey <tom@tromey.com>
727
728 * tui/tui-winsource.h (tui_exec_info_content): Remove typedef.
729
730 2019-10-21 Tom Tromey <tom@tromey.com>
731
732 * configure.ac (nm.h): Conditionally create nm.h link. Subst
733 NM_H. Use AC_CONFIG_LINKS.
734 * configure: Rebuild.
735 * Makefile.in (NM_H): New variable.
736 (generated_files): Add NM_H. Remove gcore.
737 (nm.h, stamp-nmh): New targets.
738
739 2019-10-20 Tom Tromey <tom@tromey.com>
740
741 * objfiles.h (unlink_objfile, put_objfile_before): Don't declare.
742 * objfiles.c (unlink_objfile): Move earlier. Now static. Remove
743 obsolete comment.
744 (put_objfile_before): Now static.
745
746 2019-10-19 Simon Marchi <simon.marchi@polymtl.ca>
747
748 * gdbsupport/common-utils.h (startswith): Change return type to
749 bool.
750
751 2019-10-19 Christian Biesinger <cbiesinger@google.com>
752
753 * bcache.c (bcache::print_statistics): Use std::sort instead of qsort.
754 * breakpoint.c (bp_locations_compare): Rename to...
755 (bp_location_is_less_than): ...this, and change to std::sort semantics.
756 (update_global_location_list): Use std::sort instead of qsort.
757 * buildsym.c (compare_line_numbers): Rename to...
758 (lte_is_less_than): ...this, and change to std::sort semantics.
759 (buildsym_compunit::end_symtab_with_blockvector): Use std::sort
760 instead of qsort.
761 * disasm.c (compare_lines): Rename to...
762 (line_is_less_than): ...this, and change to std::sort semantics.
763 (do_mixed_source_and_assembly_deprecated): Call std::sort instead
764 of qsort.
765 * dwarf2-frame.c (qsort_fde_cmp): Rename to...
766 (fde_is_less_than): ...this, and change to std::sort semantics.
767 (dwarf2_build_frame_info): Call std::sort instead of qsort.
768 * mdebugread.c (compare_blocks):
769 (block_is_less_than): ...this, and change to std::sort semantics.
770 (sort_blocks): Call std::sort instead of qsort.
771 * objfiles.c (qsort_cmp): Rename to...
772 (sort_cmp): ...this, and change to std::sort semantics.
773 (update_section_map): Call std::sort instead of qsort.
774 * remote.c (compare_pnums): Remove.
775 (map_regcache_remote_table): Call std::sort instead of qsort.
776 * utils.c (compare_positive_ints): Remove.
777 * utils.h (compare_positive_ints): Remove.
778 * xcoffread.c (compare_lte): Remove.
779 (arrange_linetable): Call std::sort instead of qsort.
780
781 2019-10-19 Sergio Durigan Junior <sergiodj@redhat.com>
782
783 * symfile.c (init_entry_point_info): Fix typo.
784 * i386-darwin-tdep.c (darwin_dwarf_signal_frame_p): Fix typo.
785
786 2019-10-18 Tom de Vries <tdevries@suse.de>
787
788 * aarch64-tdep.c: Fix typos in comments.
789 * ada-lang.c: Same.
790 * ada-tasks.c: Same.
791 * alpha-tdep.c: Same.
792 * alpha-tdep.h: Same.
793 * amd64-nat.c: Same.
794 * amd64-windows-tdep.c: Same.
795 * arc-tdep.c: Same.
796 * arc-tdep.h: Same.
797 * arch-utils.c: Same.
798 * arm-nbsd-tdep.c: Same.
799 * arm-tdep.c: Same.
800 * ax-gdb.c: Same.
801 * blockframe.c: Same.
802 * btrace.c: Same.
803 * c-varobj.c: Same.
804 * coff-pe-read.c: Same.
805 * coffread.c: Same.
806 * cris-tdep.c: Same.
807 * darwin-nat.c: Same.
808 * dbxread.c: Same.
809 * dcache.c: Same.
810 * disasm.c: Same.
811 * dtrace-probe.c: Same.
812 * dwarf-index-write.c: Same.
813 * dwarf2-frame-tailcall.c: Same.
814 * dwarf2-frame.c: Same.
815 * dwarf2read.c: Same.
816 * eval.c: Same.
817 * exceptions.c: Same.
818 * fbsd-tdep.c: Same.
819 * findvar.c: Same.
820 * frame.c: Same.
821 * frv-tdep.c: Same.
822 * gnu-v3-abi.c: Same.
823 * go32-nat.c: Same.
824 * h8300-tdep.c: Same.
825 * hppa-tdep.c: Same.
826 * i386-linux-tdep.c: Same.
827 * i386-tdep.c: Same.
828 * ia64-libunwind-tdep.c: Same.
829 * ia64-tdep.c: Same.
830 * infcmd.c: Same.
831 * infrun.c: Same.
832 * linespec.c: Same.
833 * linux-nat.c: Same.
834 * linux-thread-db.c: Same.
835 * machoread.c: Same.
836 * mdebugread.c: Same.
837 * mep-tdep.c: Same.
838 * mn10300-tdep.c: Same.
839 * namespace.c: Same.
840 * objfiles.c: Same.
841 * opencl-lang.c: Same.
842 * or1k-tdep.c: Same.
843 * osabi.c: Same.
844 * ppc-linux-nat.c: Same.
845 * ppc-linux-tdep.c: Same.
846 * ppc-sysv-tdep.c: Same.
847 * printcmd.c: Same.
848 * procfs.c: Same.
849 * record-btrace.c: Same.
850 * record-full.c: Same.
851 * remote-fileio.c: Same.
852 * remote.c: Same.
853 * rs6000-tdep.c: Same.
854 * s12z-tdep.c: Same.
855 * score-tdep.c: Same.
856 * ser-base.c: Same.
857 * ser-go32.c: Same.
858 * skip.c: Same.
859 * sol-thread.c: Same.
860 * solib-svr4.c: Same.
861 * solib.c: Same.
862 * source.c: Same.
863 * sparc-nat.c: Same.
864 * sparc-sol2-tdep.c: Same.
865 * sparc-tdep.c: Same.
866 * sparc64-tdep.c: Same.
867 * stabsread.c: Same.
868 * stack.c: Same.
869 * symfile.c: Same.
870 * symtab.c: Same.
871 * target-descriptions.c: Same.
872 * target-float.c: Same.
873 * thread.c: Same.
874 * utils.c: Same.
875 * valops.c: Same.
876 * valprint.c: Same.
877 * value.c: Same.
878 * varobj.c: Same.
879 * windows-nat.c: Same.
880 * xcoffread.c: Same.
881 * xstormy16-tdep.c: Same.
882 * xtensa-tdep.c: Same.
883
884 2019-10-17 Tom Tromey <tromey@adacore.com>
885
886 * configure: Rebuild.
887 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
888 in AC_CONFIG_FILES invocation.
889 * Makefile.in (Makefile, data-directory/Makefile, stamp-h): Use
890 new-style config.status invocation.
891
892 2019-10-17 Tom de Vries <tdevries@suse.de>
893
894 * arm-nbsd-nat.c: Fix typos in comments.
895 * arm-tdep.c: Same.
896 * darwin-nat-info.c: Same.
897 * dwarf2read.c: Same.
898 * elfread.c: Same.
899 * event-top.c: Same.
900 * findvar.c: Same.
901 * gdbtypes.c: Same.
902 * hppa-tdep.c: Same.
903 * i386-tdep.c: Same.
904 * jit.c: Same.
905 * main.c: Same.
906 * mdebugread.c: Same.
907 * moxie-tdep.c: Same.
908 * nto-procfs.c: Same.
909 * osabi.c: Same.
910 * ppc-linux-tdep.c: Same.
911 * remote.c: Same.
912 * riscv-tdep.c: Same.
913 * s390-tdep.c: Same.
914 * sh-tdep.c: Same.
915 * sparc-linux-tdep.c: Same.
916 * sparc-nat.c: Same.
917 * stack.c: Same.
918 * target-descriptions.c: Same.
919 * top.c: Same.
920 * varobj.c: Same.
921
922 2019-10-16 Tom Tromey <tom@tromey.com>
923
924 * objfiles.h (struct objfile) <original_name>: Now const.
925
926 2019-10-16 Christian Biesinger <cbiesinger@google.com>
927
928 * gdbsupport/gdb_setjmp.h (SIGSETJMP): Allow passing in the value to
929 pass on to sigsetjmp's second argument.
930 * cp-support.c (gdb_demangle): Unblock SIGSEGV if we caught a crash.
931
932 2019-10-16 Keith Seitz <keiths@redhat.com>
933
934 PR gdb/23567
935 * dwarf2read.c (dwarf2_per_objfile::locate_sections): Discard
936 sections whose size is greater than the file size.
937
938 2019-10-16 Jim Wilson <jimw@sifive.com>
939
940 * riscv-tdep.c (riscv_gcc_target_options): New.
941 (riscv_gnu_triplet_regexp): New.
942 (riscv_gdbarch_init): Call set_gdbarch_gcc_triplet_options and
943 set_gdbarch_gnu_triplet_regexp.
944
945 2019-10-16 Christian Biesinger <cbiesinger@google.com>
946
947 * Makefile.in: Add xml-builtin.h.
948 * features/feature_to_c.sh: Add an include for xml-builtin.h
949 to ensure that the compiler checks that the types match.
950 * xml-builtin.h: New file.
951 * xml-support.c (fetch_xml_builtin): Add missing const.
952 * xml-support.h: Remove declaration of xml_builtins.
953
954 2019-10-16 Tom de Vries <tdevries@suse.de>
955
956 PR tdep/25096
957 * amd64-tdep.c (amd64_classify_aggregate_field): Factor out of ...
958 (amd64_classify_aggregate): ... here.
959 (amd64_classify_aggregate_field): Handled fiels of nested structs
960 recursively.
961
962 2019-10-16 Tom de Vries <tdevries@suse.de>
963
964 PR tdep/24104
965 * amd64-tdep.c (amd64_push_arguments): Handle AMD64_NO_CLASS in loop
966 that handles 'theclass'.
967
968 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
969
970 * linespec.c (decode_digits_ordinary): Update comment.
971 * make-target-delegates: No longer need to handle VEC case.
972 * memrange.c (normalize_mem_ranges): Update comment.
973 * namespace.c (add_using_directive): Update comment.
974 * objc-lang.c (uniquify_strings): Update comment.
975 * ppc-linux-nat.c (struct thread_points): Update comment.
976 * probe.h (find_probes_in_objfile): Update comment.
977 * target.h (enum flash_preserve_mode): Update comment.
978 * varobj.c (varobj_restrict_range): Update comment.
979 * varobj.h (varobj_list_children): Update comment.
980
981 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
982
983 * Makefile.in: Remove references to vec.h and vec.c.
984 * aarch64-tdep.c: No longer include vec.h.
985 * ada-lang.c: Likewise.
986 * ada-lang.h: Likewise.
987 * arm-tdep.c: Likewise.
988 * ax.h: Likewise.
989 * breakpoint.h: Likewise.
990 * charset.c: Likewise.
991 * cp-support.h: Likewise.
992 * dtrace-probe.c: Likewise.
993 * dwarf2read.c: Likewise.
994 * extension.h: Likewise.
995 * gdb_bfd.c: Likewise.
996 * gdbsupport/gdb_vecs.h: Likewise.
997 * gdbsupport/vec.c: Remove.
998 * gdbsupport/vec.h: Remove.
999 * gdbthread.h: Likewise.
1000 * guile/scm-type.c: Likewise.
1001 * inline-frame.c: Likewise.
1002 * machoread.c: Likewise.
1003 * memattr.c: Likewise.
1004 * memrange.h: Likewise.
1005 * namespace.h: Likewise.
1006 * nat/linux-btrace.h: Likewise.
1007 * osdata.c: Likewise.
1008 * parser-defs.h: Likewise.
1009 * progspace.h: Likewise.
1010 * python/py-type.c: Likewise.
1011 * record-btrace.c: Likewise.
1012 * rust-exp.y: Likewise.
1013 * solib-target.c: Likewise.
1014 * stap-probe.c: Likewise.
1015 * target-descriptions.c: Likewise.
1016 * target-memory.c: Likewise.
1017 * target.h: Likewise.
1018 * varobj.c: Likewise.
1019 * varobj.h: Likewise.
1020 * xml-support.h: Likewise.
1021
1022 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
1023
1024 * gdb/dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile):
1025 Update for new std::vector based implementation.
1026 (process_psymtab_comp_unit_reader): Likewise.
1027 (scan_partial_symbols): Likewise.
1028 (recursively_compute_inclusions): Likewise.
1029 (compute_compunit_symtab_includes): Likewise.
1030 (process_imported_unit_die): Likewise.
1031 (queue_and_load_dwo_tu): Likewise.
1032 (follow_die_sig_1): Likewise.
1033 * gdb/dwarf2read.h: Remove DEF_VEC_P.
1034 (typedef dwarf2_per_cu_ptr): Remove.
1035 (struct dwarf2_per_cu_data) <imported_symtabs_empty>: New
1036 function.
1037 (struct dwarf2_per_cu_data) <imported_symtabs_push>: New function.
1038 (struct dwarf2_per_cu_data) <imported_symtabs_size>: New function.
1039 (struct dwarf2_per_cu_data) <imported_symtabs_free>: New function.
1040 (struct dwarf2_per_cu_data) <imported_symtabs>: Change to
1041 std::vector.
1042
1043 2019-10-15 Tom Tromey <tromey@adacore.com>
1044
1045 * windows-nat.c (windows_nat_target::resume): Use %x when logging
1046 TID.
1047
1048 2019-10-15 Tom Tromey <tromey@adacore.com>
1049
1050 * windows-nat.c (windows_nat_target::fetch_registers)
1051 (windows_nat_target::store_registers): Rename "pid" to "tid".
1052
1053 2019-10-15 Tom Tromey <tromey@adacore.com>
1054
1055 * gdbarch.h, gdbarch.c: Rebuild.
1056 * gdbarch.sh (gcc_target_options): Change return type to
1057 std::string.
1058 * compile/compile.c (get_args): Update.
1059 * nios2-tdep.c (nios2_gcc_target_options): Return std::string.
1060 * arm-linux-tdep.c (arm_linux_gcc_target_options): Return
1061 std::string.
1062 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): Return
1063 std::string.
1064 * arch-utils.c (default_gcc_target_options): Return std::string.
1065 * arch-utils.h (default_gcc_target_options): Return std::string.
1066 * s390-tdep.c (s390_gcc_target_options): Return std::string.
1067
1068 2019-10-15 Christian Biesinger <cbiesinger@google.com>
1069
1070 * breakpoint.c (breakpoint_chain): Make static.
1071 * tui/tui-winsource.c: Call iterate_over_breakpoints instead
1072 of accessing breakpoint_chain.
1073
1074 2019-10-15 Christian Biesinger <cbiesinger@google.com>
1075
1076 * breakpoint.c (iterate_over_breakpoints): Change function pointer
1077 to a gdb::function_view and return value to bool.
1078 * breakpoint.h (iterate_over_breakpoints): Likewise.
1079 * dummy-frame.c (pop_dummy_frame_bpt): Update.
1080 (pop_dummy_frame): Update.
1081 * guile/scm-breakpoint.c (bpscm_build_bp_list): Update.
1082 (gdbscm_breakpoints): Update.
1083 * python/py-breakpoint.c (build_bp_list): Update.
1084 (gdbpy_breakpoints): Update.
1085 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
1086 Update.
1087 (bpfinishpy_handle_stop): Update.
1088 (bpfinishpy_handle_exit): Update.
1089 * solib-svr4.c (svr4_update_solib_event_breakpoint): Update.
1090 (svr4_update_solib_event_breakpoints): Update.
1091
1092 2019-10-15 Andreas Arnez <arnez@linux.ibm.com>
1093
1094 * s390-tdep.c (s390_effective_inner_type): Ignore static fields
1095 when unwrapping single-field structs.
1096
1097 2019-10-14 Simon Marchi <simon.marchi@polymtl.ca>
1098
1099 * dwarf2read.c: Remove includes.
1100
1101 2019-10-13 Simon Marchi <simon.marchi@polymtl.ca>
1102
1103 * ui-out.c (ui_out::call_do_message): Silence
1104 -Wformat-nonliteral warning.
1105
1106 2019-10-12 Simon Marchi <simon.marchi@polymtl.ca>
1107
1108 * breakpoint.c: Remove some includes: continuations.h, skip.h,
1109 mi/mi-main.h, readline/readline.h, readline/history.h. Add
1110 include: readline/tilde.h.
1111
1112 2019-10-12 Christian Biesinger <cbiesinger@google.com>
1113
1114 * remote.c (remote_target::get_trace_status): Remove declaration of
1115 trace_regblock_size.
1116
1117 2019-10-12 Christian Biesinger <cbiesinger@google.com>
1118
1119 * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
1120 (show_user): Remove declaration of cmdlist.
1121 * cli/cli-cmds.h (max_user_call_depth): Declare.
1122 * cli/cli-script.c (execute_user_command): Remove declaration
1123 of max_user_call_depth.
1124
1125 2019-10-11 Jim Wilson <jimw@sifive.com>
1126
1127 * gdbsupport/print-utils.h (pulongest): Fix comment.
1128 (plongest): Likewise.
1129 (phex): Add missing comment, mention leading zeros.
1130 (phex_nz): Add mention of no leading zeros to comment.
1131
1132 * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
1133 plongest instead of unsigned long long cast.
1134
1135 2019-10-10 Christian Biesinger <cbiesinger@google.com>
1136
1137 * main.c (captured_main_1): Include gdbtk.h and remove declarations
1138 for external_editor_command and gdbtk_test.
1139
1140 2019-10-10 Christian Biesinger <cbiesinger@google.com>
1141
1142 * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
1143 * varobj.c (varobjdebug): Move comment to...
1144 * varobj.h (varobjdebug): ...here, and declare.
1145
1146 2019-10-09 Tom Tromey <tom@tromey.com>
1147
1148 * tui/tui-regs.c (tui_data_window::show_registers): Don't call
1149 erase_data_content.
1150
1151 2019-10-09 Tom Tromey <tom@tromey.com>
1152
1153 * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
1154 * tui/tui-stack.c (tui_locator_window::rerender): Update.
1155 * tui/tui-command.c (tui_cmd_window::resize)
1156 (tui_refresh_cmd_win): Update.
1157 * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
1158 * tui/tui.c (tui_rl_other_window, tui_enable): Update.
1159 * tui/tui-data.c (~tui_gen_win_info): Remove.
1160 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
1161 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
1162 (tui_redisplay_readline, tui_mld_flush)
1163 (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
1164 * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
1165 (tui_data_window::erase_data_content)
1166 (tui_data_item_window::rerender)
1167 (tui_data_item_window::refresh_window): Update.
1168 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
1169 (box_win, tui_gen_win_info::make_window)
1170 (tui_gen_win_info::make_visible): Update.
1171 (tui_delete_win): Remove.
1172 * tui/tui-winsource.c
1173 (tui_source_window_base::do_erase_source_content): Update.
1174 (tui_show_source_line, tui_source_window_base::update_tab_width)
1175 (tui_source_window_base::update_exec_info): Update.
1176 * tui/tui-data.h (struct curses_deleter): New.
1177 (struct tui_gen_win_info) <handle>: Now a unique_ptr.
1178 (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
1179
1180 2019-10-09 Tom Tromey <tom@tromey.com>
1181
1182 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
1183
1184 2019-10-09 Tom Tromey <tom@tromey.com>
1185
1186 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
1187 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
1188
1189 2019-10-09 Tom Tromey <tom@tromey.com>
1190
1191 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
1192 window height directly.
1193 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
1194 declare.
1195 * tui/tui-layout.c (tui_default_win_height): Remove.
1196 (tui_default_win_viewport_height): Remove.
1197
1198 2019-10-09 Tom Tromey <tom@tromey.com>
1199
1200 * tui/tui.h: Remove comments.
1201
1202 2019-10-09 Tom de Vries <tdevries@suse.de>
1203
1204 * python/lib/gdb/printer/bound_registers.py: Use
1205 '^builtin_type_bound128' as regexp argument for
1206 add_builtin_pretty_printer.
1207
1208 2019-10-09 Christian Biesinger <cbiesinger@google.com>
1209
1210 * guile/guile.c (guile_extension_script_ops): Remove forward
1211 declaration and mark as static.
1212 (guile_script_ops): Likewise.
1213 (extension_language_guile): Move further down in the file so
1214 it can reference the definitions for guile_{extension_,}script_ops.
1215
1216 2019-10-09 Andreas Arnez <arnez@linux.ibm.com>
1217
1218 * s390-tdep.c (390_process_record): Handle new arch13 instructions
1219 except SORTL, DFLTCC, and KDSA.
1220
1221 2019-10-08 Tom Tromey <tromey@adacore.com>
1222
1223 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
1224 (struct safe_symbol_file_add_args): Remove.
1225
1226 2019-10-08 Tom Tromey <tromey@adacore.com>
1227
1228 * windows-nat.c: Don't include buildsym-legacy.h.
1229
1230 2019-10-08 Tom Tromey <tromey@adacore.com>
1231
1232 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
1233
1234 2019-10-08 Christian Biesinger <cbiesinger@google.com>
1235
1236 * gdbtypes.c (overload_debug): Move comment to header.
1237 * gdbtypes.h (overload_debug): Declare.
1238 * valops.c: Remove declaration of overload_debug, instead
1239 include gdbtypes.h.
1240
1241 2019-10-08 Christian Biesinger <cbiesinger@google.com>
1242
1243 * language.c (show_language_command): Pass lang_frame_mismatch_warn
1244 through _().
1245 (lang_frame_mismatch_warn): Make const, mark with N_(), and
1246 move comment...
1247 * language.h (lang_frame_mismatch_warn): ... here. Also add
1248 declaration.
1249 * top.c (lang_frame_mismatch_warn): Remove declaration.
1250 (check_frame_language_change): Pass lang_frame_mismatch_warn
1251 through _().
1252
1253 2019-10-07 Christian Biesinger <cbiesinger@google.com>
1254
1255 * c-lang.h (vtbl_ptr_name): Declare.
1256 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
1257 it from the header.
1258 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
1259
1260 2019-10-07 Christian Biesinger <cbiesinger@google.com>
1261
1262 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
1263 gdb_static_assert.
1264
1265 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
1266
1267 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
1268 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
1269 * ctfread.c: New file.
1270 * ctfread.h: New file.
1271 * elfread.c: Include ctfread.h.
1272 (struct elfinfo text_p): New member ctfsect.
1273 (elf_locate_sections): Mark CTF section.
1274 (elf_symfile_read): Call elfctf_build_psymtabs.
1275 * Makefile.in (LIBCTF): Add.
1276 (CLIBS): Use it.
1277 (CDEPS): Likewise.
1278 (DIST): Add ctfread.c.
1279
1280 2019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
1281
1282 * ctfread.c (struct nextfield): Renamed to ...
1283 (struct ctf_nextfield): ... this.
1284 (struct field_info): Renamed to ...
1285 (strut ctf_field_info): ... this.
1286 (attach_fields_to_type): Update for renamed structures.
1287 (ctf_add_member_cb): Likewise.
1288 (ctf_add_enum_member_cb): Likewise.
1289 (process_struct_members): Likewise.
1290 (process_enum_type): Likewise.
1291
1292 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
1293
1294 * tracectf.h: Rename, was ctf.h.
1295 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
1296 * tracefile.c: Likewise.
1297 * tracepoint.c: Remove unused include ctf.h.
1298 * mi/mi-main.c: Likewise.
1299 * Makefile.in Replace ctf.c with tracectf.c.
1300
1301 2019-10-06 Joel Brobecker <brobecker@adacore.com>
1302
1303 * version.in: Change version number to "9.0.50.DATE-git".
1304
1305 2019-10-03 Tom Tromey <tom@tromey.com>
1306
1307 PR rust/24976:
1308 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
1309
1310 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
1311
1312 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
1313 cp_search_name_hash.
1314 * NEWS: Add entry about nested function support.
1315
1316 2019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
1317 Andrew Burgess <andrew.burgess@embecosm.com>
1318
1319 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
1320 for nested static variables when searchin VAR_DOMAIN.
1321 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
1322 global scope, update comment.
1323 (add_partial_subprogram): Call add_partial_subprogram recursively
1324 for nested subroutines when processinng Fortran.
1325 (load_partial_dies): Process the child entities of a subprogram
1326 when processing Fortran.
1327 (partial_die_parent_scope): Handle building scope
1328 for Fortran nested functions.
1329 (process_die): Record that nested functions have a scope.
1330 (new_symbol): Always record Fortran subprograms on the global
1331 symbol list.
1332 (determine_prefix): How to build the prefix for Fortran
1333 subprograms.
1334
1335 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
1336
1337 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
1338 have just sent the thread a SIGSTOP and are waiting for it to
1339 arrive.
1340
1341 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
1342
1343 * btrace.c (btrace_add_pc): Remove whitespace before the template
1344 parameter in 'std::vector <...>'.
1345 (parse_xml_btrace_block): Likewise.
1346 (btrace_maint_decode_pt): Likewise.
1347 (btrace_maint_update_packets): Likewise.
1348 (btrace_maint_print_packets): Likewise.
1349 * btrace.h (struct btrace_maint_info): Likewise.
1350 * dwarf2read.c (struct type_unit_group): Likewise.
1351 (build_type_psymtabs_reader): Likewise.
1352 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
1353 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
1354 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
1355
1356 2019-10-03 Tom de Vries <tdevries@suse.de>
1357
1358 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
1359 the first line of the help text for set/show style metadata.
1360
1361 2019-10-02 Tom Tromey <tromey@adacore.com>
1362
1363 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
1364 * gdbsupport/common-inferior.c: New file.
1365 * infcmd.c (startup_with_shell): Don't define.
1366 * nat/fork-inferior.h (startup_with_shell): Don't declare.
1367 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
1368 * inferior.h (startup_with_shell): Don't declare.
1369
1370 2019-10-02 Christian Biesinger <cbiesinger@google.com>
1371
1372 * gdbsupport/gdb_assert.h: Include errors.h.
1373 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
1374
1375 2019-10-02 Tom Tromey <tromey@adacore.com>
1376
1377 * NEWS: Add $_ada_exception entry.
1378 * ada-lang.c (struct ada_catchpoint): Add constructor.
1379 <m_kind>: New member.
1380 (allocate_location_exception, re_set_exception): Remove
1381 "ex" parameter.
1382 (should_stop_exception): Compute $_ada_exception.
1383 (check_status_exception, print_it_exception)
1384 (print_one_exception, print_mention_exception): Remove
1385 "ex" parameter.
1386 (allocate_location_catch_exception, re_set_catch_exception)
1387 (check_status_exception, print_it_catch_exception)
1388 (print_one_catch_exception, print_mention_catch_exception)
1389 (print_recreate_catch_exception)
1390 (allocate_location_catch_exception_unhandled)
1391 (re_set_catch_exception_unhandled)
1392 (check_status_exception, print_it_catch_exception_unhandled)
1393 (print_one_catch_exception_unhandled)
1394 (print_mention_catch_exception_unhandled)
1395 (print_recreate_catch_exception_unhandled)
1396 (allocate_location_catch_assert, re_set_catch_assert)
1397 (check_status_assert, print_it_catch_assert)
1398 (print_one_catch_assert, print_mention_catch_assert)
1399 (print_recreate_catch_assert)
1400 (allocate_location_catch_handlers, re_set_catch_handlers)
1401 (check_status_handlers, print_it_catch_handlers)
1402 (print_one_catch_handlers, print_mention_catch_handlers)
1403 (print_recreate_catch_handlers): Remove.
1404 (create_ada_exception_catchpoint): Update.
1405 (initialize_ada_catchpoint_ops): Update.
1406
1407 2019-10-02 Tom Tromey <tromey@adacore.com>
1408
1409 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
1410 (create_excep_cond_exprs): Simplify exception string computation.
1411 (ada_exception_catchpoint_cond_string): Likewise.
1412
1413 2019-10-02 Tom Tromey <tromey@adacore.com>
1414
1415 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
1416 * ada-lang.c (lesseq_defined_than): Handle
1417 LOC_STATIC.
1418 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
1419 parameter.
1420 (dwarf2_has_info): Likewise.
1421 (new_symbol): Set maybe_copied on symbol when
1422 appropriate.
1423 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
1424 parameter.
1425 <can_copy>: New member.
1426 * elfread.c (record_minimal_symbol): Set maybe_copied
1427 on symbol when appropriate.
1428 (elf_symfile_read): Update call to dwarf2_has_info.
1429 * minsyms.c (lookup_minimal_symbol_linkage): New
1430 function.
1431 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
1432 * symtab.c (get_symbol_address, get_msymbol_address):
1433 New functions.
1434 * symtab.h (get_symbol_address, get_msymbol_address):
1435 Declare.
1436 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
1437 maybe_copied.
1438 (struct symbol, struct minimal_symbol) <maybe_copied>:
1439 New member.
1440
1441 2019-10-02 Tom Tromey <tromey@adacore.com>
1442
1443 * source.c (struct current_source_location): New.
1444 (current_source_key): New global.
1445 (current_source_symtab, current_source_line)
1446 (current_source_pspace): Remove.
1447 (get_source_location): New function.
1448 (get_current_source_symtab_and_line)
1449 (set_default_source_symtab_and_line)
1450 (set_current_source_symtab_and_line)
1451 (clear_current_source_symtab_and_line, select_source_symtab)
1452 (info_source_command, print_source_lines_base)
1453 (info_line_command, search_command_helper, _initialize_source):
1454 Update.
1455
1456 2019-10-02 Tom Tromey <tromey@adacore.com>
1457
1458 * source.c (select_source_symtab): Don't call
1459 decode_line_with_current_source.
1460
1461 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
1462
1463 * symtab.c (lookup_global_symbol): Search global block.
1464
1465 2019-10-02 Tom Tromey <tromey@adacore.com>
1466
1467 * coffread.c (process_coff_symbol): Update.
1468 * dwarf2read.c (var_decode_location, new_symbol): Update.
1469 * mdebugread.c (parse_symbol): Update.
1470 * objfiles.c (relocate_one_symbol): Update.
1471 * stabsread.c (define_symbol, fix_common_block)
1472 (scan_file_globals): Update.
1473 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
1474 (SET_SYMBOL_VALUE_ADDRESS): New macro.
1475 * xcoffread.c (process_xcoff_symbol): Update.
1476
1477 2019-10-02 Andreas Arnez <arnez@linux.ibm.com>
1478
1479 * MAINTAINERS: Update my email address.
1480
1481 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
1482
1483 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
1484 std::vector.
1485 (build_type_psymtabs_reader): Update for std::vector.
1486 (build_type_psymtab_dependencies): Likewise.
1487 * dwarf2read.h: Remove use of DEF_VEC_P.
1488 (typedef sig_type_ptr): Delete.
1489
1490 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
1491
1492 * btrace.c (btrace_maint_clear): Update to handle change from VEC
1493 to std::vector.
1494 (btrace_maint_decode_pt): Likewise, and move allocation of the
1495 vector outside of the loop.
1496 (btrace_maint_update_packets): Update to handle change from VEC to
1497 std::vector.
1498 (btrace_maint_print_packets): Likewise.
1499 (maint_info_btrace_cmd): Likewise.
1500 * btrace.h: Remove use of DEF_VEC_O.
1501 (typedef btrace_pt_packet_s): Delete.
1502 (struct btrace_maint_info) <packets>: Change fromm VEC to
1503 std::vector.
1504 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
1505
1506 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
1507
1508 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
1509 make accesses into the vector constant references.
1510 (btrace_add_pc): Update for std::vector.
1511 (btrace_stitch_bts): Likewise.
1512 (parse_xml_btrace_block): Likewise.
1513 (btrace_maint_update_packets): Likewise.
1514 (btrace_maint_print_packets): Likewise.
1515 (maint_info_btrace_cmd): Likewise.
1516 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
1517 std::vector.
1518 (btrace_data::empty): Likewise.
1519 (btrace_data_append): Likewise.
1520 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
1521 (typedef btrace_block_s): Delete.
1522 (struct btrace_block): Add constructor.
1523 (struct btrace_data_bts) <blocks>: Change to std::vector.
1524 * nat/linux-btrace.c (perf_event_read_bts): Update for
1525 std::vector.
1526 (linux_read_bts): Likewise.
1527
1528 2019-10-01 Tom Tromey <tom@tromey.com>
1529
1530 * cli/cli-logging.c (show_logging_filename): Use styled_string.
1531
1532 2019-10-01 Tom Tromey <tom@tromey.com>
1533
1534 * stack.c (print_frame, info_frame_command_core): Use
1535 styled_string.
1536 * linux-thread-db.c (try_thread_db_load_1)
1537 (try_thread_db_load_from_pdir_1): Use styled_string.
1538 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
1539 (auto_load_section_scripts, info_auto_load_local_gdbinit)
1540 (maybe_print_unsupported_script_warning)
1541 (maybe_print_script_not_found_warning): Use styled_string.
1542 * ada-lang.c (user_select_syms): Use styled_string.
1543
1544 2019-10-01 Tom Tromey <tom@tromey.com>
1545
1546 * p-lang.c (pascal_printstr): Use metadata style.
1547 * value.c (show_convenience): Use metadata style.
1548 * valprint.c (valprint_check_validity, val_print_optimized_out)
1549 (val_print_not_saved, val_print_unavailable)
1550 (val_print_invalid_address, generic_val_print, val_print)
1551 (value_check_printable, val_print_array_elements): Use metadata
1552 style.
1553 * ui-out.h (class ui_out) <field_fmt>: New overload.
1554 <do_field_fmt>: Add style parameter.
1555 * ui-out.c (ui_out::field_fmt): New overload.
1556 * typeprint.c (type_print_unknown_return_type)
1557 (val_print_not_allocated, val_print_not_associated): Use metadata
1558 style.
1559 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
1560 parameter.
1561 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
1562 * tracepoint.c (tvariables_info_1): Use metadata style.
1563 * stack.c (print_frame_arg, print_frame_info, print_frame)
1564 (info_frame_command_core): Use metadata style.
1565 * skip.c (info_skip_command): Use metadata style.
1566 * rust-lang.c (rust_print_enum): Use metadata style.
1567 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
1568 metadata style.
1569 * python/py-framefilter.c (py_print_single_arg): Use metadata
1570 style.
1571 * printcmd.c (do_one_display, print_variable_and_value): Use
1572 metadata style.
1573 * p-valprint.c (pascal_val_print)
1574 (pascal_object_print_value_fields): Use metadata style.
1575 * p-typeprint.c (pascal_type_print_base): Use metadata style.
1576 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
1577 parameter.
1578 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
1579 * m2-valprint.c (m2_print_long_set): Use metadata style.
1580 * m2-typeprint.c (m2_print_type): Use metadata style.
1581 * infcmd.c (print_return_value_1): Use metadata style.
1582 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
1583 * f-valprint.c (info_common_command_for_block): Use metadata
1584 style.
1585 * f-typeprint.c (f_type_print_base): Use metadata style.
1586 * expprint.c (print_subexp_standard): Use metadata style.
1587 * cp-valprint.c (cp_print_value_fields): Use metadata style.
1588 * cli/cli-style.h (class cli_style_option): Add constructor.
1589 (metadata_style): Declare.
1590 * cli/cli-style.c (metadata_style): New global.
1591 (_initialize_cli_style): Register metadata style.
1592 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
1593 parameter.
1594 * cli-out.c (cli_ui_out::do_field_fmt): Update.
1595 * c-typeprint.c (c_type_print_base_struct_union)
1596 (c_type_print_base_1): Use metadata style.
1597 * breakpoint.c (watchpoint_value_print)
1598 (print_one_breakpoint_location): Use metadata style.
1599 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
1600 style.
1601 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
1602 style.
1603 * ada-valprint.c (val_print_packed_array_elements, printstr)
1604 (print_field_values, ada_val_print_ref, ada_val_print): Use
1605 metadata style.
1606 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
1607 style.
1608 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
1609 style.
1610 * ada-lang.c (user_select_syms): Use metadata style.
1611
1612 2019-10-01 Tom Tromey <tom@tromey.com>
1613
1614 * cli/cli-cmds.c (pwd_command): Style output.
1615
1616 2019-10-01 Pedro Alves <palves@redhat.com>
1617 Tom Tromey <tom@tromey.com>
1618
1619 * symtab.c (print_symbol_info): Use %ps.
1620 (print_msymbol_info): Use %ps.
1621 * symfile.c (symbol_file_add_with_addrs): Use %ps.
1622 * printcmd.c (print_variable_and_value): Use %ps.
1623 * macrocmd.c (show_pp_source_pos): Use %ps.
1624 * infrun.c (print_exited_reason): Use ui_out::message.
1625 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
1626 (describe_other_breakpoints): Use ui_out::message and new
1627 formats.
1628 (say_where): Use new formats.
1629 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
1630 and new formats.
1631
1632 2019-10-01 Pedro Alves <palves@redhat.com>
1633 Tom Tromey <tom@tromey.com>
1634
1635 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
1636 (test_gdb_formats): New function.
1637 (run_tests): Call it.
1638 (test_format_specifier): Update.
1639 * utils.h (fputs_filtered): Update comment.
1640 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
1641 (fputs_styled_unfiltered): Declare.
1642 * utils.c (fputs_styled_unfiltered): New function.
1643 (vfprintf_maybe_filtered): Add gdbfmt parameter.
1644 (vfprintf_filtered): Update.
1645 (vfprintf_unfiltered, vprintf_filtered): Update.
1646 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
1647 * ui-out.h (enum ui_out_flag) <unfiltered_output,
1648 disallow_ui_out_field>: New constants.
1649 (enum class field_kind): New.
1650 (struct base_field_s, struct signed_field_s): New.
1651 (signed_field): New function.
1652 (struct string_field_s): New.
1653 (string_field): New function.
1654 (struct styled_string_s): New.
1655 (styled_string): New function.
1656 (class ui_out) <message>: Add comment.
1657 <vmessage, call_do_message>: New methods.
1658 <do_message>: Add style parameter.
1659 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
1660 methods.
1661 (ui_out::message): Rewrite.
1662 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
1663 parameter.
1664 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
1665 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
1666 gdb_extensions parameter.
1667 (class format_piece): Add parameter to constructor.
1668 (n_int_args): New field.
1669 * gdbsupport/format.c (format_pieces::format_pieces): Add
1670 gdb_extensions parameter. Handle '*'.
1671 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
1672 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
1673 vfprintf_styled_no_gdbfmt.
1674 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
1675 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
1676 unfiltered output.
1677 * ui-style.h (struct ui_file_style) <ptr>: New method.
1678
1679 2019-10-01 Tom Tromey <tom@tromey.com>
1680
1681 * unittests/format_pieces-selftests.c: Update. Add final format.
1682 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
1683 empty literal pieces.
1684
1685 2019-10-01 Tom Tromey <tom@tromey.com>
1686
1687 * ui-out.h (enum class ui_out_style_kind): Remove.
1688 (class ui_out) <field_string, field_stsream, do_field_string>:
1689 Change type of "style".
1690 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
1691 (ui_out::field_string): Update.
1692 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
1693 of "style".
1694 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
1695 * tracepoint.c (print_one_static_tracepoint_marker): Update.
1696 * stack.c (print_frame_arg, print_frame_info, print_frame):
1697 Update.
1698 * source.c (print_source_lines_base): Update.
1699 * solib.c (info_sharedlibrary_command): Update.
1700 * skip.c (info_skip_command): Update.
1701 * record-btrace.c (btrace_call_history_src_line)
1702 (btrace_call_history): Update.
1703 * python/py-framefilter.c (py_print_frame): Update.
1704 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
1705 "style".
1706 * mi/mi-out.c (mi_ui_out::do_table_header)
1707 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
1708 (mi_ui_out::do_field_string): Update.
1709 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
1710 Update.
1711 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
1712 "style".
1713 * cli-out.c (cli_ui_out::do_table_header)
1714 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
1715 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
1716 (cli_ui_out::do_field_fmt): Update.
1717 * breakpoint.c (print_breakpoint_location): Update.
1718 (update_static_tracepoint): Update.
1719
1720 2019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1721
1722 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
1723 conversion of gdb_datadir.
1724 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
1725 remove not needed c_str ().
1726
1727 2019-09-30 Ali Tamur <tamur@google.com>
1728
1729 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
1730 (dwarf2_string_attr): Likewise.
1731
1732 2019-09-30 Ali Tamur <tamur@google.com>
1733
1734 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
1735 (process_full_type_unit): Likewise.
1736 (dump_die_shallow): Likewise.
1737 (cu_debug_loc_section): Likewise.
1738
1739 2019-09-28 Christian Biesinger <cbiesinger@google.com>
1740
1741 * minsyms.c (compare_minimal_symbols): Rename to...
1742 (minimal_symbol_is_less_than): ...this, and adjust to STL
1743 conventions (return bool, take arguments as references)
1744 (minimal_symbol_reader::install): Call std::sort instead
1745 of qsort.
1746
1747 2019-09-29 Christian Biesinger <cbiesinger@google.com>
1748
1749 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
1750 hash and why.
1751 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
1752 msymbol_hash, msymbol_demangled_hash>: Improve comments.
1753
1754 2019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
1755
1756 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
1757 * psympriv.h (add_psymbol_to_list): Move comment here and update
1758 it.
1759
1760 2019-09-29 Tom de Vries <tdevries@suse.de>
1761
1762 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
1763 Use $tmpdir/$(basename "$output_file").dwz instead of
1764 "${output_file}.dwz".
1765
1766 2019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
1767
1768 PR gdb/25045
1769 * hppa-linux-nat.c: Include gdbarch.h.
1770
1771 2019-09-26 Christian Biesinger <cbiesinger@google.com>
1772
1773 * blockframe.c (find_pc_partial_function): Change return type to bool.
1774 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
1775 * minsyms.c (in_gnu_ifunc_stub): Likewise.
1776 (stub_gnu_ifunc_resolve_name): Likewise.
1777 * symtab.c (compare_filenames_for_search): Likewise.
1778 (compare_glob_filenames_for_search): Likewise.
1779 (matching_obj_sections): Likewise.
1780 (symbol_matches_domain): Likewise.
1781 (find_line_symtab): Change out param EXACT_MATCH to bool *.
1782 (find_line_pc): Change return type to bool.
1783 (find_line_pc_range): Likewise.
1784 (producer_is_realview): Likewise.
1785 * symtab.h (symbol_matches_domain): Likewise.
1786 (find_pc_partial_function): Likewise.
1787 (find_pc_line_pc_range): Likewise.
1788 (in_gnu_ifunc_stub): Likewise.
1789 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
1790 (find_line_pc): Likewise.
1791 (find_line_pc_range): Likewise.
1792 (matching_obj_sections): Likewise.
1793 (find_line_symtab): Change out parameter to bool.
1794 (producer_is_realview): Change return type to bool.
1795 (compare_filenames_for_search): Likewise.
1796 (compare_glob_filenames_for_search): Likewise.
1797
1798 2019-09-26 Tom Tromey <tom@tromey.com>
1799
1800 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
1801 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
1802 * gdb_usleep.h: Remove.
1803 * gdb_usleep.c: Remove.
1804 * utils.c: Don't include gdb_usleep.h.
1805
1806 2019-09-26 Tom Tromey <tromey@adacore.com>
1807
1808 * python/py-type.c (type_to_type_object): Call check_typedef
1809 for stub types.
1810
1811 2019-09-26 Tom Tromey <tom@tromey.com>
1812
1813 * utils.h (initialize_utils): Don't declare.
1814 * top.c (gdb_init): Don't call initialize_utils.
1815 * utils.c (initialize_utils): Remove. Move contents...
1816 (_initialize_utils): ... here.
1817
1818 2019-09-25 Tom Tromey <tom@tromey.com>
1819
1820 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
1821 * utils.h (make_hex_string): Don't declare.
1822 * utils.c (make_hex_string): Remove.
1823
1824 2019-09-24 Tom de Vries <tdevries@suse.de>
1825
1826 PR gdb/23815
1827 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
1828 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
1829
1830 2019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
1831
1832 * NEWS: Mention new simulator port for PRU.
1833
1834 2019-09-23 Christian Biesinger <cbiesinger@google.com>
1835
1836 * ada-exp.y (write_object_remaining): Update.
1837 * ada-lang.c (ada_decode): Return a std::string instead of a char*
1838 and eliminate the static buffer.
1839 (ada_decode_symbol): Update.
1840 (ada_la_decode): Update.
1841 (ada_sniff_from_mangled_name): Update.
1842 (is_valid_name_for_wild_match): Update.
1843 (ada_lookup_name_info::matches): Update and simplify.
1844 (name_matches_regex): Update.
1845 (ada_add_global_exceptions): Update.
1846 * ada-lang.h (ada_decode): Update signature.
1847 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
1848 * dwarf-index-write.c (debug_names::insert): Update.
1849
1850 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
1851
1852 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
1853 formatting.
1854
1855 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
1856
1857 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
1858 Change "nonzero" to "true" in documentation.
1859
1860 2019-09-20 Christian Biesinger <cbiesinger@google.com>
1861
1862 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
1863 (_initialize_darwin_solib): Don't set
1864 darwin_so_ops.lookup_lib_global_symbol.
1865 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
1866 set_gdbarch_iterate_over_objfiles_in_search_order.
1867 (elf_lookup_lib_symbol): Rename to...
1868 (svr4_iterate_over_objfiles_in_search_order): this, and update
1869 to iterate semantics.
1870 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
1871 * solib.c (solib_global_lookup): Remove.
1872 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
1873 (solib_global_lookup): Remove.
1874 * symtab.c (lookup_global_or_static_symbol): Remove call to
1875 solib_global_lookup.
1876
1877 2019-09-20 Joel Brobecker <brobecker@adacore.com>
1878
1879 * NEWS: Move entries about default MI version now being
1880 version 3, and about the GDB/MI fix for multi-location
1881 breakpoints to the "since GDB 8.3" section.
1882
1883 2019-09-20 Joel Brobecker <brobecker@adacore.com>
1884
1885 GDB 8.3.1 released.
1886
1887 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
1888
1889 * NEWS: Mention that Cell/B.E. debugging support was removed.
1890 * MAINTAINERS: Remove spu target.
1891
1892 * config/djgpp/fnchange.lst: Remove entries for removed files.
1893
1894 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
1895 spu-multiarch.o, and spu-tdep.o.
1896 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
1897 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
1898 spu-multiarch.c, and spu-tdep.c.
1899 * spu-linux-nat.c: Remove file.
1900 * spu-multiarch.c: Remove file.
1901 * spu-tdep.c: Remove file.
1902 * spu-tdep.h: Remove file.
1903 * solib-spu.c: Remove file.
1904 * solib-spu.h: Remove file.
1905
1906 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
1907 * configure.nat (spu-linux): Remove.
1908 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
1909 solib-multiarch.o from gdb_target_obs.
1910 (spu*-*-*): Remove.
1911
1912 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
1913 feature flag.
1914 (ppc_linux_no_features): Update.
1915 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
1916 Cell/B.E. support.
1917 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
1918 (tdesc_powerpc_cell64l): Likewise.
1919 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
1920 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
1921 Cell/B.E. support.
1922 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
1923 Do not include "features/rs6000/powerpc-cell32l.c" or
1924 "features/rs6000/powerpc-cell64l.c".
1925 (ppc_linux_spu_section): Remove.
1926 (ppc_linux_core_read_description): Remove Cell/B.E. support.
1927 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
1928 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
1929 (ppc_linux_spe_context_lookup): Remove.
1930 (ppc_linux_spe_context_inferior_created): Remove.
1931 (ppc_linux_spe_context_solib_loaded): Remove.
1932 (ppc_linux_spe_context_solib_unloaded): Remove.
1933 (ppc_linux_spe_context): Remove.
1934 (struct ppu2spu_cache): Remove.
1935 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
1936 (struct ppu2spu_data): Remove.
1937 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
1938 ppu2spu_unwind): Remove.
1939 (ppc_linux_init_abi): Remove Cell/B.E. support.
1940 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
1941
1942 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
1943 (rs6000/powerpc-cell64l-expedite): Likewise
1944 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
1945 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
1946 rs6000/powerpc-cell64l.xml.
1947 * features/rs6000/powerpc-cell32l.xml: Remove.
1948 * features/rs6000/powerpc-cell64l.xml: Likewise.
1949 * features/rs6000/powerpc-cell32l.c: Remove generated file.
1950 * features/rs6000/powerpc-cell64l.c: Likewise.
1951 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
1952 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
1953 * regformats/reg-spu.dat: Remove.
1954
1955 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
1956 * corelow.c (struct spuid_list): Remove.
1957 (add_to_spuid_list): Remove.
1958 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
1959 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
1960 (remote_protocol_features): Remove associated entries.
1961 (_initialize_remote): No longer initialize them.
1962 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
1963 * linux-nat.c (SPUFS_MAGIC): Remove.
1964 (linux_proc_xfer_spu): Remove.
1965 (spu_enumerate_spu_ids): Remove.
1966 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
1967 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
1968 (linux_make_corefile_notes): No longer call it.
1969
1970 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
1971 (cooked_write_test): Likewise.
1972
1973 2019-09-20 Tom Tromey <tom@tromey.com>
1974
1975 * NEWS: Mention case-sensitivity of TUI commands.
1976 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
1977 (tui_set_win_height_command, parse_scrolling_args): Likewise.
1978 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
1979
1980 2019-09-20 Tom Tromey <tom@tromey.com>
1981
1982 * tui/tui-source.c (tui_source_window::set_contents): Use
1983 make_unique_xstrdup.
1984 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
1985 make_unique_xstrdup.
1986
1987 2019-09-20 Tom Tromey <tom@tromey.com>
1988
1989 * tui/tui-data.c: Remove separator comments.
1990 * tui/tui-layout.c: Remove separator comments.
1991 * tui/tui-win.c: Remove separator comments.
1992 * tui/tui-wingeneral.c: Remove separator comments.
1993
1994 2019-09-20 Tom Tromey <tom@tromey.com>
1995
1996 * tui/tui.h (strcat_to_buf): Don't declare.
1997 * tui/tui.c (strcat_to_buf): Remove.
1998
1999 2019-09-20 Tom Tromey <tom@tromey.com>
2000
2001 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
2002 from "fullname".
2003 * tui/tui-source.c (tui_source_window::set_contents)
2004 (tui_source_window::location_matches_p)
2005 (tui_source_window::maybe_update): Update.
2006
2007 2019-09-20 Tom Tromey <tom@tromey.com>
2008
2009 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
2010 Update.
2011 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
2012 prefix.
2013 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
2014 (tui_data_window::line_from_reg_element_no)
2015 (tui_data_window::first_reg_element_no_inline)
2016 (tui_data_window::show_registers)
2017 (tui_data_window::show_register_group)
2018 (tui_data_window::display_registers_from)
2019 (tui_data_window::display_registers_from_line)
2020 (tui_data_window::first_data_item_displayed)
2021 (tui_data_window::delete_data_content_windows)
2022 (tui_data_window::erase_data_content)
2023 (tui_data_window::do_scroll_vertical)
2024 (tui_data_window::refresh_window)
2025 (tui_data_window::check_register_values): Update.
2026
2027 2019-09-20 Tom Tromey <tom@tromey.com>
2028
2029 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
2030 (struct tui_locator_window) <full_name, proc_name>: Now
2031 std::string.
2032 * tui/tui-stack.c (tui_locator_window::make_status_line)
2033 (tui_locator_window::set_locator_fullname)
2034 (tui_locator_window::set_locator_info): Update.
2035 * tui/tui-source.c (tui_source_window::set_contents)
2036 (tui_source_window::showing_source_p): Update.
2037
2038 2019-09-20 Tom Tromey <tom@tromey.com>
2039
2040 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
2041 Don't call tui_locator_win_info_ptr.
2042
2043 2019-09-20 Tom Tromey <tom@tromey.com>
2044
2045 * tui/tui-win.c (tui_resize_all): Don't call refresh.
2046
2047 2019-09-20 Tom Tromey <tom@tromey.com>
2048
2049 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
2050 height for locator.
2051 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
2052 * tui/tui-layout.c (show_source_disasm_command, show_data)
2053 (show_source_or_disasm_and_command): Use 1 as height for locator.
2054
2055 2019-09-20 Tom Tromey <tom@tromey.com>
2056
2057 * tui/tui.c (tui_enable): Update.
2058 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
2059 Update.
2060 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
2061 Update.
2062 * tui/tui-data.c (win_resized): Now bool.
2063 (tui_win_resized): Return bool.
2064 (tui_set_win_resized_to): Accept a bool.
2065
2066 2019-09-20 Tom Tromey <tom@tromey.com>
2067
2068 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
2069 Change type of "refresh_values_only".
2070 * tui/tui-regs.c (tui_data_window::show_register_group): Change
2071 type of "refresh_values_only".
2072
2073 2019-09-20 Tom Tromey <tom@tromey.com>
2074
2075 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
2076 std::string.
2077 (tui_disassemble): Add "pos" parameter.
2078 (tui_disasm_window::set_contents): Simplify.
2079
2080 2019-09-20 Tom Tromey <tom@tromey.com>
2081
2082 * tui/tui-winsource.h (struct tui_source_window_base)
2083 <show_source_content>: Now private.
2084 * tui/tui-winsource.c
2085 (tui_source_window_base::show_source_content): Don't handle empty
2086 content case.
2087
2088 2019-09-20 Tom Tromey <tom@tromey.com>
2089
2090 * tui/tui-layout.c (show_source_disasm_command)
2091 (show_source_or_disasm_and_command): Don't call
2092 show_source_content.
2093
2094 2019-09-20 Tom Tromey <tom@tromey.com>
2095
2096 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
2097 Declare.
2098 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
2099 from tui_make_status_line.
2100 (tui_locator_window::rerender): Update.
2101
2102 2019-09-20 Tom Tromey <tom@tromey.com>
2103
2104 * tui/tui-stack.c (tui_make_status_line): Return std::string.
2105 (tui_locator_window::rerender): Update.
2106
2107 2019-09-20 Tom Tromey <tom@tromey.com>
2108
2109 * tui/tui-winsource.h (struct tui_source_window_base)
2110 <~tui_source_window_base>: Don't declare.
2111 <fullname>: Remove.
2112 * tui/tui-winsource.c (~tui_source_window_base): Remove.
2113 * tui/tui-source.h (struct tui_source_window) <fullname>: New
2114 member.
2115 * tui/tui-source.c (tui_source_window::set_contents): Update.
2116 (tui_source_window::location_matches_p)
2117 (tui_source_window::maybe_update): Update.
2118
2119 2019-09-20 Tom Tromey <tom@tromey.com>
2120
2121 * tui/tui-winsource.h (~tui_source_element): Remove.
2122 (tui_source_element): Update.
2123 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
2124 * tui/tui-winsource.c (tui_show_source_line): Update.
2125 * tui/tui-source.c (tui_source_window::set_contents): Update.
2126 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
2127
2128 2019-09-20 Tom Tromey <tom@tromey.com>
2129
2130 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
2131 declare.
2132 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
2133 tui_clear_source_windows_detail.
2134 * tui/tui-winsource.h (struct tui_source_window_base)
2135 <clear_detail>: Don't declare.
2136 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
2137 Remove.
2138 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
2139
2140 2019-09-20 Tom Tromey <tromey@adacore.com>
2141
2142 PR ada/24919:
2143 * block.c (contained_in): Fix final return value.
2144
2145 2019-09-20 Alan Modra <amodra@gmail.com>
2146
2147 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
2148 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
2149 (read_indirect_string_from_dwz): Use bfd accessor.
2150 * dwarf2read.h (struct dwz_file <filename>): Likewise.
2151 * machoread.c (macho_symfile_read_all_oso): Likewise.
2152 * solib.c (solib_bfd_open): Likewise.
2153
2154 2019-09-19 Christian Biesinger <cbiesinger@google.com>
2155
2156 * eval.c: Move declaration of overload_resolution to...
2157 * value.h: ...here.
2158
2159 2019-09-19 Christian Biesinger <cbiesinger@google.com>
2160
2161 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
2162 * arm-linux-tdep.c: Likewise.
2163 * arm-nbsd-nat.c: Likewise.
2164 * arm-tdep.h: Declare arm_apcs_32.
2165 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
2166
2167 2019-09-19 Christian Biesinger <cbiesinger@google.com>
2168
2169 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
2170 * dwarf2read.h: Declare dwarf_always_disassemble.
2171
2172 2019-09-19 Tom de Vries <tdevries@suse.de>
2173
2174 PR gdb/25009
2175 * source-cache.c (source_cache::ensure): Catch exception thrown during
2176 construction of the highlighter.
2177
2178 2019-09-18 Alan Modra <amodra@gmail.com>
2179
2180 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
2181 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
2182 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
2183 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
2184 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
2185 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
2186 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
2187 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
2188 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
2189 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
2190 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
2191 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
2192 * solib-spu.c, * solib-svr4.c, * solib-target.c,
2193 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
2194 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
2195 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
2196 * mi/mi-interp.c: Update throughout for bfd section macro and
2197 function changes.
2198 * gcore (gcore_create_callback): Use bfd_set_section_lma.
2199 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
2200
2201 2019-09-18 Tom Tromey <tom@tromey.com>
2202
2203 * NEWS: Add entry.
2204 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
2205 call rl_initialize.
2206 (tui_enable): Do not call rl_initialize.
2207
2208 2019-09-18 Christian Groessler <chris@groessler.org>
2209
2210 * alpha-linux-nat.c: Include gdbarch.h.
2211
2212 2019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
2213
2214 * ui-file.c: Include cli/cli-style.h.
2215 (term_cli_styling): Remove cli_styling declaration.
2216
2217 2019-09-18 Alan Modra <amodra@gmail.com>
2218
2219 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
2220 to bfd_asymbol_section.
2221
2222 2019-09-18 Alan Modra <amodra@gmail.com>
2223
2224 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
2225 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
2226 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
2227
2228 2019-09-18 Alan Modra <amodra@gmail.com>
2229
2230 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
2231 * spu-linux-nat.c (spu_bfd_open): Likewise.
2232
2233 2019-09-18 Christian Biesinger <cbiesinger@google.com>
2234
2235 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
2236 to bool to match definition in dwarf2read.c.
2237
2238 2019-09-17 Christian Biesinger <cbiesinger@google.com>
2239
2240 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
2241 (print_signatures): Likewise.
2242 (trust_pad_over_xvs): Likewise.
2243 * arch/aarch64-insn.c (aarch64_debug): Likewise.
2244 * arch/aarch64-insn.h (aarch64_debug): Likewise.
2245 * arm-linux-nat.c (arm_apcs_32): Likewise.
2246 * arm-linux-tdep.c (arm_apcs_32): Likewise.
2247 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
2248 * arm-tdep.c (arm_debug): Likewise.
2249 (arm_apcs_32): Likewise.
2250 * auto-load.c (debug_auto_load): Likewise.
2251 (auto_load_gdb_scripts): Likewise.
2252 (global_auto_load): Likewise.
2253 (auto_load_local_gdbinit): Likewise.
2254 (auto_load_local_gdbinit_loaded): Likewise.
2255 * auto-load.h (global_auto_load): Likewise.
2256 (auto_load_local_gdbinit): Likewise.
2257 (auto_load_local_gdbinit_loaded): Likewise.
2258 * breakpoint.c (disconnected_dprintf): Likewise.
2259 (breakpoint_proceeded): Likewise.
2260 (automatic_hardware_breakpoints): Likewise.
2261 (always_inserted_mode): Likewise.
2262 (target_exact_watchpoints): Likewise.
2263 (_initialize_breakpoint): Update.
2264 * breakpoint.h (target_exact_watchpoints): Change to bool.
2265 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
2266 * cli/cli-cmds.c (trace_commands): Likewise.
2267 * cli/cli-cmds.h (trace_commands): Likewise.
2268 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
2269 to bool*.
2270 * cli/cli-logging.c (logging_overwrite): Change to bool.
2271 (logging_redirect): Likewise.
2272 (debug_redirect): Likewise.
2273 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
2274 (struct boolean_option_def) <get_var_address_cb_>: Change return type
2275 to bool.
2276 <boolean_option_def>: Update.
2277 (struct flag_option_def): Change default type of Context to bool
2278 from int.
2279 <flag_option_def>: Change return type of var_address_cb_ to bool*.
2280 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
2281 (get_setshow_command_value_string): Likewise.
2282 * cli/cli-style.c (cli_styling): Change to bool.
2283 (source_styling): Likewise.
2284 * cli/cli-style.h (source_styling): Likewise.
2285 (cli_styling): Likewise.
2286 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
2287 to bool.
2288 * command.h (var_types): Update comment.
2289 (add_setshow_boolean_cmd): Change int* var argument to bool*.
2290 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
2291 bool.
2292 (debug_compile_cplus_scopes): Likewise.
2293 * compile/compile-internal.h (compile_debug): Likewise.
2294 * compile/compile.c (compile_debug): Likewise.
2295 (struct compile_options) <raw>: Likewise.
2296 * cp-support.c (catch_demangler_crashes): Likewise.
2297 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
2298 (usr_cmd_cris_dwarf2_cfi): Likewise.
2299 * csky-tdep.c (csky_debug): Likewise.
2300 * darwin-nat.c (enable_mach_exceptions): Likewise.
2301 * dcache.c (dcache_enabled_p): Likewise.
2302 * defs.h (info_verbose): Likewise.
2303 * demangle.c (demangle): Likewise.
2304 (asm_demangle): Likewise.
2305 * dwarf-index-cache.c (debug_index_cache): Likewise.
2306 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
2307 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
2308 * dwarf2read.c (check_physname): Likewise.
2309 (use_deprecated_index_sections): Likewise.
2310 (dwarf_always_disassemble): Likewise.
2311 * eval.c (overload_resolution): Likewise.
2312 * event-top.c (set_editing_cmd_var): Likewise.
2313 (exec_done_display_p): Likewise.
2314 * event-top.h (set_editing_cmd_var): Likewise.
2315 (exec_done_display_p): Likewise.
2316 * exec.c (write_files): Likewise.
2317 * fbsd-nat.c (debug_fbsd_lwp): Likewise
2318 (debug_fbsd_nat): Likewise.
2319 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
2320 Likewise.
2321 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
2322 <backtrace_past_entry> Likewise.
2323 * gdb-demangle.h (demangle): Likewise.
2324 (asm_demangle): Likewise.
2325 * gdb_bfd.c (bfd_sharing): Likewise.
2326 * gdbcore.h (write_files): Likewise.
2327 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
2328 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
2329 * gdbthread.h (print_thread_events): Likewise.
2330 * gdbtypes.c (opaque_type_resolution): Likewise.
2331 (strict_type_checking): Likewise.
2332 * gnu-nat.c (gnu_debug_flag): Likewise.
2333 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
2334 * guile/scm-param.c (pascm_variable): Add boolval.
2335 (add_setshow_generic): Update.
2336 (pascm_param_value): Update.
2337 (pascm_set_param_value_x): Update.
2338 * hppa-tdep.c (hppa_debug): Change to bool..
2339 * infcall.c (may_call_functions_p): Likewise.
2340 (coerce_float_to_double_p): Likewise.
2341 (unwind_on_signal_p): Likewise.
2342 (unwind_on_terminating_exception_p): Likewise.
2343 * infcmd.c (startup_with_shell): Likewise.
2344 * inferior.c (print_inferior_events): Likewise.
2345 * inferior.h (startup_with_shell): Likewise.
2346 (print_inferior_events): Likewise.
2347 * infrun.c (step_stop_if_no_debug): Likewise.
2348 (detach_fork): Likewise.
2349 (debug_displaced): Likewise.
2350 (disable_randomization): Likewise.
2351 (non_stop): Likewise.
2352 (non_stop_1): Likewise.
2353 (observer_mode): Likewise.
2354 (observer_mode_1): Likewise.
2355 (set_observer_mode): Update.
2356 (sched_multi): Change to bool.
2357 * infrun.h (debug_displaced): Likewise.
2358 (sched_multi): Likewise.
2359 (step_stop_if_no_debug): Likewise.
2360 (non_stop): Likewise.
2361 (disable_randomization): Likewise.
2362 * linux-tdep.c (use_coredump_filter): Likewise.
2363 (dump_excluded_mappings): Likewise.
2364 * linux-thread-db.c (auto_load_thread_db): Likewise.
2365 (check_thread_db_on_load): Likewise.
2366 * main.c (captured_main_1): Update.
2367 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
2368 xx2_opt, boolean_opt>: Change to bool.
2369 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
2370 * maint.c (maintenance_profile_p): Likewise.
2371 (per_command_time): Likewise.
2372 (per_command_space): Likewise.
2373 (per_command_symtab): Likewise.
2374 * memattr.c (inaccessible_by_default): Likewise.
2375 * mi/mi-main.c (mi_async): Likewise.
2376 (mi_async_1): Likewise.
2377 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
2378 * nat/fork-inferior.h (startup_with_shell): Likewise.
2379 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
2380 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
2381 * nios2-tdep.c (nios2_debug): Likewise.
2382 * or1k-tdep.c (or1k_debug): Likewise.
2383 * parse.c (parser_debug): Likewise.
2384 * parser-defs.h (parser_debug): Likewise.
2385 * printcmd.c (print_symbol_filename): Likewise.
2386 * proc-api.c (procfs_trace): Likewise.
2387 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
2388 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
2389 (set_parameter_value): Update.
2390 (add_setshow_generic): Update.
2391 * python/py-value.c (copy_py_bool_obj): Change argument from int*
2392 to bool*.
2393 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
2394 int*.
2395 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
2396 * record-btrace.c (record_btrace_target::store_registers): Update.
2397 * record-full.c (record_full_memory_query): Change to bool.
2398 (record_full_stop_at_limit): Likewise.
2399 * record-full.h (record_full_memory_query): Likewise.
2400 * remote-notif.c (notif_debug): Likewise.
2401 * remote-notif.h (notif_debug): Likewise.
2402 * remote.c (use_range_stepping): Likewise.
2403 (interrupt_on_connect): Likewise.
2404 (remote_break): Likewise.
2405 * ser-tcp.c (tcp_auto_retry): Likewise.
2406 * ser-unix.c (serial_hwflow): Likewise.
2407 * skip.c (debug_skip): Likewise.
2408 * solib-aix.c (solib_aix_debug): Likewise.
2409 * spu-tdep.c (spu_stop_on_load_p): Likewise.
2410 (spu_auto_flush_cache_p): Likewise.
2411 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
2412 Likewise.
2413 (struct info_print_options) <quiet>: Likewise.
2414 * symfile-debug.c (debug_symfile): Likewise.
2415 * symfile.c (auto_solib_add): Likewise.
2416 (separate_debug_file_debug): Likewise.
2417 * symfile.h (auto_solib_add): Likewise.
2418 (separate_debug_file_debug): Likewise.
2419 * symtab.c (basenames_may_differ): Likewise.
2420 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
2421 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
2422 (struct info_types_options) <quiet>: Likewise.
2423 * symtab.h (demangle): Likewise.
2424 (basenames_may_differ): Likewise.
2425 * target-dcache.c (stack_cache_enabled_1): Likewise.
2426 (code_cache_enabled_1): Likewise.
2427 * target.c (trust_readonly): Likewise.
2428 (may_write_registers): Likewise.
2429 (may_write_memory): Likewise.
2430 (may_insert_breakpoints): Likewise.
2431 (may_insert_tracepoints): Likewise.
2432 (may_insert_fast_tracepoints): Likewise.
2433 (may_stop): Likewise.
2434 (auto_connect_native_target): Likewise.
2435 (target_stop_and_wait): Update.
2436 (target_async_permitted): Change to bool.
2437 (target_async_permitted_1): Likewise.
2438 (may_write_registers_1): Likewise.
2439 (may_write_memory_1): Likewise.
2440 (may_insert_breakpoints_1): Likewise.
2441 (may_insert_tracepoints_1): Likewise.
2442 (may_insert_fast_tracepoints_1): Likewise.
2443 (may_stop_1): Likewise.
2444 * target.h (target_async_permitted): Likewise.
2445 (may_write_registers): Likewise.
2446 (may_write_memory): Likewise.
2447 (may_insert_breakpoints): Likewise.
2448 (may_insert_tracepoints): Likewise.
2449 (may_insert_fast_tracepoints): Likewise.
2450 (may_stop): Likewise.
2451 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
2452 (make_thread_apply_all_options_def_group): Change argument from int*
2453 to bool*.
2454 (thread_apply_all_command): Update.
2455 (print_thread_events): Change to bool.
2456 * top.c (confirm): Likewise.
2457 (command_editing_p): Likewise.
2458 (history_expansion_p): Likewise.
2459 (write_history_p): Likewise.
2460 (info_verbose): Likewise.
2461 * top.h (confirm): Likewise.
2462 (history_expansion_p): Likewise.
2463 * tracepoint.c (disconnected_tracing): Likewise.
2464 (circular_trace_buffer): Likewise.
2465 * typeprint.c (print_methods): Likewise.
2466 (print_typedefs): Likewise.
2467 * utils.c (debug_timestamp): Likewise.
2468 (sevenbit_strings): Likewise.
2469 (pagination_enabled): Likewise.
2470 * utils.h (sevenbit_strings): Likewise.
2471 (pagination_enabled): Likewise.
2472 * valops.c (overload_resolution): Likewise.
2473 * valprint.h (struct value_print_options) <prettyformat_arrays,
2474 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
2475 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
2476 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
2477 Likewise.
2478 * windows-nat.c (new_console): Likewise.
2479 (cygwin_exceptions): Likewise.
2480 (new_group): Likewise.
2481 (debug_exec): Likewise.
2482 (debug_events): Likewise.
2483 (debug_memory): Likewise.
2484 (debug_exceptions): Likewise.
2485 (useshell): Likewise.
2486 * windows-tdep.c (maint_display_all_tib): Likewise.
2487 * xml-support.c (debug_xml): Likewise.
2488
2489 2019-09-17 Mike Gulick <mgulick@mathworks.com>
2490
2491 * source.c (prepare_path_for_appending): New function.
2492 (openp): Make use of new function.
2493 (find_and_open_source): Search for the compilation directory and
2494 source file as a relative path beneath the directory search path.
2495
2496 2019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
2497
2498 * source-cache.c (source_cache::get_line_charpos): Catch
2499 exceptions and return false, this matches the behaviour documented
2500 in the header file.
2501
2502 2019-09-17 Joel Brobecker <brobecker@adacore.com>
2503
2504 * ada-tasks.c (info_task): Remove quoting of the task's name.
2505
2506 2019-09-16 Christian Biesinger <cbiesinger@google.com>
2507
2508 * symfile.c (auto_solib_add): Replace comment with a reference
2509 to the header file.
2510
2511 2019-09-14 Christian Biesinger <cbiesinger@google.com>
2512
2513 * NEWS: Mention that gdb can now be compiled with Python 3
2514 on Windows.
2515
2516 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
2517
2518 * maint.c (maint_print_section_data::maint_print_section_data):
2519 Force use of 'float log10 (float)' by casting the argument to
2520 float.
2521
2522 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
2523
2524 * maint.c: Add 'cmath' include.
2525 (struct maint_print_section_data): New structure.
2526 (print_section_index): New function.
2527 (print_bfd_section_info): Add header comment, small whitespace
2528 cleanup, and update to call new print_section_index function.
2529 (print_objfile_section_info): Likewise.
2530 (maint_obj_section_from_bfd_section): New function.
2531 (print_bfd_section_info_maybe_relocated): New function.
2532 (maintenance_info_sections): Add header comment, always use
2533 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
2534
2535 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
2536
2537 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
2538 inner scope, add check that the objfile has psymtabs before
2539 checking psymtabs_addrmap.
2540 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
2541
2542 2019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2543
2544 * NEWS: Announce that Ada task names are now shown at more places,
2545 and between quotes (except in info task output).
2546 * gdb/ada-tasks.c (task_to_str): New function.
2547 (display_current_task_id): Call task_to_str.
2548 (task_command_1): Likewise.
2549 (print_ada_task_info): In non-mi mode, Properly align headers and data
2550 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
2551
2552 2019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2553
2554 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
2555 prstatus.pr_lwp.pr_info instead of making it up.
2556
2557 2019-09-11 Christian Biesinger <cbiesinger@google.com>
2558
2559 * auto-load.c (auto_load_expand_dir_vars): Update.
2560 * defs.h (gdb_datadir): Change to std::string.
2561 (python_libdir): Likewise.
2562 (relocate_gdb_directory): Change return type to std::string.
2563 * guile/guile.c (gdbscm_data_directory): Update.
2564 (initialize_scheme_side): Update.
2565 * jit.c (jit_reader_dir): Change to std::string.
2566 (jit_reader_load_command): Update.
2567 * main.c (gdb_datadir): Change to std::string.
2568 (python_libdir): Likewise.
2569 (set_gdb_data_directory): Update.
2570 (relocate_path): Change to return std::string.
2571 (relocate_gdb_directory): Change to return std::string.
2572 (relocate_gdbinit_path_maybe_in_datadir): Update.
2573 (captured_main_1): Update.
2574 * python/python.c (do_start_initialization): Update.
2575 * top.c (show_gdb_datadir): Update.
2576 * xml-syscall.c (xml_init_syscalls_info): Update.
2577 (init_syscalls_info): Update.
2578
2579 2019-09-11 Christian Biesinger <cbiesinger@google.com>
2580
2581 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
2582 out of get_init_files.
2583 (get_init_files): Update.
2584
2585 2019-09-11 Christian Biesinger <cbiesinger@google.com>
2586
2587 * main.c (get_init_files): Change to use std::string.
2588 (captured_main_1): Update.
2589 (print_gdb_help): Update.
2590
2591 2019-09-11 Ali Tamur <tamur@google.com>
2592
2593 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
2594 implementation.
2595
2596 2019-09-11 Christian Biesinger <cbiesinger@google.com>
2597
2598 * dbxread.c (read_dbx_symtab): Update.
2599 * dwarf2read.c (load_partial_dies): Update.
2600 * mdebugread.c (parse_partial_symbols): Update.
2601 (handle_psymbol_enumerators): Update.
2602 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
2603 * psymtab.c (add_psymbol_to_bcache): Likewise.
2604 (add_psymbol_to_list): Likewise.
2605 * symtab.c (symbol_set_names): Likewise.
2606 * symtab.h (symbol_set_names): Likewise.
2607 * xcoffread.c (scan_xcoff_symtab): Update.
2608
2609 2019-09-11 Tom Tromey <tom@tromey.com>
2610
2611 * symfile-mem.c (symbol_file_add_from_memory): Use
2612 bfd_set_filename.
2613 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
2614 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
2615
2616 2019-09-10 Tom Tromey <tromey@adacore.com>
2617
2618 * dwarf-index-write.c (write_psymbols): Extend error message.
2619 (debug_names::insert): Add Ada code.
2620 (debug_names::write_psymbols): Remove Ada check.
2621 (debug_names) <m_string_obstack>: New member.
2622 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
2623 (gdb_index_symbol_name_matcher::matches): Remove.
2624 (mapped_index_base::find_name_components_bounds): Add "lang"
2625 parameter.
2626 (mapped_index_base::build_name_components): Also split names
2627 according to Ada syntax.
2628 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
2629 type of "match_callback".
2630 (check_match, check_find_bounds_finds)
2631 (dw2_expand_symtabs_matching): Update.
2632 (dw2_debug_names_iterator): Add new constructor.
2633 (dw2_debug_names_map_matching_symbols): New function.
2634 (dw2_debug_names_expand_symtabs_matching): Update.
2635 (dwarf2_debug_names_functions): Use
2636 dw2_debug_names_map_matching_symbols.
2637
2638 2019-09-10 Tom Tromey <tromey@adacore.com>
2639
2640 * dwarf2read.c (dw2_get_file_names_reader): Add the
2641 CU's file name to the results.
2642
2643 2019-09-10 Tom Tromey <tromey@adacore.com>
2644
2645 * ada-lang.c (add_nonlocal_symbols): Combine calls to
2646 map_matching_symbols. Update.
2647 * dwarf2read.c (dw2_map_matching_symbols): Update.
2648 * psymtab.c (match_partial_symbol): Change type; update.
2649 (psym_map_matching_symbols): Likewise.
2650 * symfile-debug.c (debug_qf_map_matching_symbols): Change
2651 type; update.
2652 * symfile.h (struct quick_symbol_functions)
2653 <map_matching_symbols>: Change "name" to be a lookup_name_info.
2654 Remove "match".
2655
2656 2019-09-10 Tom Tromey <tromey@adacore.com>
2657
2658 * psymtab.c (map_block): Remove.
2659 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
2660 * symtab.c (iterate_over_symbols_terminated): New function.
2661 * symtab.c (iterate_over_symbols_terminated): Declare.
2662
2663 2019-09-10 Tom Tromey <tromey@adacore.com>
2664
2665 * ada-lang.c (ada_iterate_over_symbols): Return bool.
2666 * language.h (struct language_defn) <la_iterate_over_symbols>:
2667 Return bool.
2668 * symtab.c (iterate_over_symbols): Return bool.
2669 * symtab.h (iterate_over_symbols): Return bool.
2670
2671 2019-09-10 Tom Tromey <tromey@adacore.com>
2672
2673 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
2674 (add_nonlocal_symbols): Update.
2675 * dwarf2read.c (dw2_map_matching_symbols): Change type.
2676 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
2677 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
2678 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
2679 Change type of "callback". Remove "data".
2680
2681
2682 2019-09-09 Ali Tamur <tamur@google.com>
2683
2684 * dwarf2read.c (comp_unit_head): Update comment.
2685 (dwarf2_dwo_name): New function declaration.
2686 (dwarf_unit_type_name): New function declaration.
2687 (read_comp_unit_head): Add support for new compilation units,
2688 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
2689 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
2690 (currently named as "signature") in their header. Also clarify error
2691 messages.
2692 (lookup_dwo_id): New function. Returns the dwo id of the given
2693 compile unit.
2694 (lookup_dwo_unit): Use the new lookup_dwo_id function.
2695 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
2696 functions.
2697 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
2698 (dwarf2_dwo_name): Get the dwo name if present.
2699 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
2700 purposes.
2701
2702 2019-09-09 Tom Tromey <tom@tromey.com>
2703
2704 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
2705
2706 2019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2707
2708 * python/python.c (do_start_initialization): Make progname_copy static,
2709 to avoid a leak report.
2710
2711 2019-09-08 Tom Tromey <tom@tromey.com>
2712
2713 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
2714
2715 2019-09-07 Simon Marchi <simon.marchi@efficios.com>
2716
2717 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
2718 Change type to gdb::optional<block_enum>.
2719 (dw2_symtab_iter_init): Change block_index parameter type
2720 to gdb::optional<block_enum>.
2721 (dw2_lookup_symbol): Change block_index parameter
2722 type to block_enum.c
2723 (dw2_debug_names_lookup_symbol): Likewise.
2724 * psymtab.c (psym_lookup_symbol): Likewise.
2725 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
2726 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
2727 Likewise.
2728
2729 2019-09-06 Christian Biesinger <cbiesinger@google.com>
2730
2731 * defs.h (relocate_gdb_directory): Change int to bool in
2732 signature and rename flag to relocatable.
2733 * main.c (relocate_path): Likewise.
2734 (relocate_gdb_directory): Likewise.
2735
2736 2019-09-06 Alan Modra <amodra@gmail.com>
2737
2738 * coffread.c (coff_symfile_read): Constify filename variable.
2739 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
2740 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
2741 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
2742 * solib.c (reload_shared_libraries_1): Likewise.
2743 * symfile.c (reread_symbols): Likewise.
2744 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
2745 * solib-darwin.c (darwin_bfd_open): Likewise.
2746 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
2747
2748 2019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
2749
2750 * psymtab.c (print_partial_symbols): Handle missing domain_enum
2751 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
2752
2753 2019-09-03 Tom Tromey <tromey@adacore.com>
2754
2755 * ada-valprint.c (ada_val_print_num): Don't recurse for range
2756 types.
2757 (has_negatives): Unbias a range type bound.
2758 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
2759 * gdbtypes.c (operator==): Handle new field.
2760 (create_range_type): Add "bias" parameter.
2761 (create_static_range_type, resolve_dynamic_range): Update.
2762 * gdbtypes.h (struct range_bounds) <bias>: New member.
2763 (create_range_type): Add bias parameter.
2764 * printcmd.c (print_scalar_formatted): Unbias range types.
2765 * value.c (unpack_long): Unbias range types.
2766 (pack_long): Bias range types.
2767
2768 2019-09-02 Alan Hayward <alan.hayward@arm.com>
2769
2770 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
2771 probe arguments.
2772
2773 2019-09-02 Alan Hayward <alan.hayward@arm.com>
2774
2775 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
2776 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
2777 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
2778 (compile_probe_arg): Likewise.
2779 * probe.h (get_argument_count): Likewise.
2780 * solib-svr4.c (solib_event_probe_action): Likewise.
2781 * stap-probe.c (stap_probe::get_argument_count): Likewise.
2782
2783 2019-09-02 Alan Hayward <alan.hayward@arm.com>
2784
2785 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
2786 code to here...
2787 (svr4_create_solib_event_breakpoints): ...from here.
2788
2789 2019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
2790
2791 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
2792 suffix from warning message.
2793
2794 2019-08-30 Tom Tromey <tom@tromey.com>
2795
2796 * tui/tui-winsource.h (struct tui_source_window_base)
2797 <refresh_all>: Don't declare.
2798 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
2799 Remove.
2800 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
2801 tui_show_locator_content.
2802 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
2803 declare.
2804 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
2805 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
2806 declare.
2807
2808 2019-08-30 Tom Tromey <tom@tromey.com>
2809
2810 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
2811
2812 2019-08-30 Tom Tromey <tom@tromey.com>
2813
2814 * tui/tui-stack.c (_initialize_tui_stack): Move later.
2815 Remove unnecessary forward declarations.
2816
2817 2019-08-30 Tom Tromey <tom@tromey.com>
2818
2819 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
2820 rerender.
2821 (tui_update_locator_fullname, tui_show_frame_info): Don't call
2822 tui_show_locator_content.
2823
2824 2019-08-30 Tom Tromey <tom@tromey.com>
2825
2826 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
2827 (tui_locator_window::rerender): Rewrite using body of previous
2828 tui_show_locator_content.
2829
2830 2019-08-30 Tom Tromey <tom@tromey.com>
2831
2832 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
2833 set_locator_fullname>: New methods.
2834 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
2835 Rename from tui_set_locator_fullname.
2836 (tui_locator_window::set_locator_info): Rename from
2837 tui_set_locator_info. Return bool.
2838 (tui_update_locator_fullname, tui_show_frame_info): Update.
2839
2840 2019-08-30 Tom Tromey <tom@tromey.com>
2841
2842 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
2843
2844 2019-08-30 Tom Tromey <tom@tromey.com>
2845
2846 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
2847 call touchwin.
2848
2849 2019-08-30 Tom Tromey <tom@tromey.com>
2850
2851 * tui/tui-wingeneral.c (box_win): Assume win_info and
2852 win_info->handle cannot be NULL.
2853
2854 2019-08-30 Tom Tromey <tom@tromey.com>
2855
2856 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
2857 refresh_window>: Declare.
2858 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
2859 resize.
2860 (tui_data_item_window::rerender): Rename from
2861 tui_display_register.
2862 (tui_data_item_window::refresh_window): New method.
2863 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
2864 no-op.
2865
2866 2019-08-30 Tom Tromey <tom@tromey.com>
2867
2868 * tui/tui-regs.h (struct tui_data_window) <regs_content,
2869 regs_column_count, current_group>: Move later. Now private.
2870 <get_current_group>: New method.
2871 * tui/tui-regs.c (tui_reg_command): Update.
2872 * tui/tui-layout.c (tui_set_layout): Update.
2873
2874 2019-08-30 Tom Tromey <tom@tromey.com>
2875
2876 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
2877 (tui_data_window::rerender): Don't call
2878 check_and_display_highlight_if_needed.
2879 (tui_data_window::refresh_all): Remove call to
2880 erase_data_content.
2881
2882 2019-08-30 Tom Tromey <tom@tromey.com>
2883
2884 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
2885 (tui_data_window::display_registers_from)
2886 (tui_data_window::display_reg_element_at_line)
2887 (tui_data_window::display_registers_from_line): Remove checks of
2888 "empty".
2889
2890 2019-08-30 Tom Tromey <tom@tromey.com>
2891
2892 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
2893 Don't declare.
2894 * tui/tui-regs.c (tui_data_window::show_registers): Call
2895 rerender.
2896 (tui_data_window::rerender): Rename from display_all_data.
2897 (tui_data_window::rerender): Remove old implementation.
2898
2899 2019-08-30 Tom Tromey <tom@tromey.com>
2900
2901 * tui/tui-regs.c (tui_data_window::display_all_data): Change
2902 text.
2903 * tui/tui-data.h (NO_DATA_STRING): Remove define.
2904
2905 2019-08-29 Bernhard Wodok <barto@gmx.net>
2906 Sergio Durigan Junior <sergiodj@redhat.com>
2907
2908 PR win32/24284
2909 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
2910
2911 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
2912
2913 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
2914 when searching for types.
2915
2916 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
2917
2918 * f-lang.c (f_language_defn): Use f_print_typedef.
2919 * f-lang.h (f_print_typedef): Declare.
2920 * f-typeprint.c (f_print_typedef): Define.
2921
2922 2019-08-27 Christian Biesinger <cbiesinger@google.com>
2923
2924 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
2925
2926 2019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
2927
2928 * cli/cli-utils.c (info_print_options_defs): Delete.
2929 (make_info_print_options_def_group): Delete.
2930 (extract_info_print_options): Delete.
2931 (info_print_command_completer): Delete.
2932 (info_print_args_help): Add extra parameter, and optionally
2933 include text about -n flag.
2934 * cli/cli-utils.h (struct info_print_options): Delete.
2935 (extract_info_print_options): Delete declaration.
2936 (info_print_command_completer): Delete declaration.
2937 (info_print_args_help): Add extra parameter, extend header
2938 comment.
2939 * python/python.c (gdbpy_rbreak): Pass additional parameter to
2940 search_symbols.
2941 * stack.c (struct info_print_options): New type.
2942 (info_print_options_defs): New file scoped variable.
2943 (make_info_print_options_def_group): New static function.
2944 (info_print_command_completer): New static function.
2945 (info_locals_command): Update to use new local functions.
2946 (info_args_command): Likewise.
2947 (_initialize_stack): Add extra parameter to calls to
2948 info_print_args_help.
2949 * symtab.c (search_symbols): Add extra parameter, use this to
2950 possibly excluse non-debug symbols.
2951 (symtab_symbol_info): Add extra parameter, which is passed on to
2952 search_symbols.
2953 (struct info_print_options): New type.
2954 (info_print_options_defs): New file scoped variable.
2955 (make_info_print_options_def_group): New static function.
2956 (info_print_command_completer): New static function.
2957 (info_variables_command): Update to use local functions, and pass
2958 extra parameter through to symtab_symbol_info.
2959 (info_functions_command): Likewise.
2960 (info_types_command): Pass additional argument through to
2961 symtab_symbol_info.
2962 (rbreak_command): Pass extra argument to search_symbols.
2963 (_initialize_symtab): Add extra arguments for calls to
2964 info_print_args_help, and update help text for 'info variables',
2965 'whereis', and 'info functions' commands.
2966 * symtab.h (search_symbols): Add extra argument to declaration.
2967 * NEWS: Mention new flags.
2968
2969 2019-08-26 Christian Biesinger <cbiesinger@google.com>
2970
2971 * symtab.c (lookup_static_symbol): Call the new function (and move
2972 it down to be next to lookup_global_symbol).
2973 (struct global_sym_lookup_data): Add block_enum member and rename to...
2974 (struct global_or_static_sym_lookup_data): ...this.
2975 (lookup_symbol_global_iterator_cb): Pass block_index instead of
2976 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
2977 (lookup_symbol_global_or_static_iterator_cb): ...this.
2978 (lookup_global_or_static_symbol): New function.
2979 (lookup_global_symbol): Call new function.
2980
2981 2019-08-26 Tom de Vries <tdevries@suse.de>
2982
2983 PR c++/24852
2984 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
2985 when pc_probe.prob == NULL.
2986
2987 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
2988
2989 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
2990 variable symbol_linkage to symbol_linkage_.
2991
2992 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
2993
2994 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
2995 represent whether the symbol is static, dynamic, or we don't
2996 know.
2997
2998 2019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
2999
3000 * gdb/rx-tdep.c (rx_register_names): New.
3001 (rx_register_name): Delete.
3002 (rx_psw_type): Delete.
3003 (rx_fpsw_type): Delete.
3004 (rx_register_type): Delete.
3005 (rx_gdbarch_init): Convert target-descriptions.
3006 (_initialize_rx_tdep): Add initialize_tdesc_rx.
3007 * gdb/features/Makefile: Add rx.xml.
3008 * gdb/features/rx.xml: New.
3009 * gdb/features/rx.c: Generated.
3010 * gdb/NEWS: Mention target description support.
3011
3012 2019-08-22 Christian Biesinger <cbiesinger@google.com>
3013
3014 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
3015 *slot_ptr.
3016
3017 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
3018
3019 * configure.ac: Don't check for 'dlfcn.h' (moved to
3020 gdbsupport/common.m4).
3021 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
3022 'gdbsupport/'.
3023 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
3024 * compile/compile-c-support.c: Include
3025 'gdbsupport/gdb-dlfcn.h'.
3026 * gdbsupport/common.m4: Check for 'dlfcn.h'.
3027 * gdb-dlfcn.c: Move to...
3028 * gdbsupport/gdb-dlfcn.c: ... here.
3029 * gdb-dlfcn.h: Move to...
3030 * gdbsupport/gdb-dlfcn.h: ... here.
3031
3032 2019-08-23 Sandra Loosemore <sandra@codesourcery.com>
3033
3034 * nios2-tdep.c (struct reg_value): Improve comments. Make
3035 the offset field signed.
3036
3037 2019-08-22 Christian Biesinger <cbiesinger@google.com>
3038
3039 * python/lib/gdb/__init__.py (_execute_file): New function.
3040 * python/python.c (python_run_simple_file): Call gdb._execute_file
3041 on Windows.
3042
3043 2019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
3044
3045 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
3046 all uses as this was never set to anything but a zero value.
3047
3048 2019-08-21 Bogdan Harjoc <harjoc@gmail.com>
3049
3050 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
3051
3052 2019-08-21 Christian Biesinger <cbiesinger@google.com>
3053
3054 * tui/tui-data.h (tui_gen_win_info): Add an =default
3055 move constructor, required by some GCC versions.
3056
3057 2019-08-21 Jinke Fan <fanjinke51@yeah.net>
3058
3059 * go32-nat.c (go32_sysinfo): Add hygon_p.
3060
3061 2019-08-20 Tom Tromey <tom@tromey.com>
3062
3063 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
3064 line_from_reg_element_no, first_reg_element_no_inline,
3065 display_all_data, delete_data_content_windows,
3066 erase_data_content>: Now private.
3067
3068 2019-08-20 Tom Tromey <tom@tromey.com>
3069
3070 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
3071 (tui_unhighlight_win, tui_highlight_win)
3072 (tui_win_info::make_window): Update.
3073 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
3074
3075 2019-08-20 Tom Tromey <tom@tromey.com>
3076
3077 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
3078 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
3079 (MAX_PID_WIDTH): Move to tui-stack.c.
3080 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
3081 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
3082 (MAX_PID_WIDTH): Move from tui-data.h.
3083
3084 2019-08-20 Tom Tromey <tom@tromey.com>
3085
3086 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
3087 * tui/tui-wingeneral.c (box_win): Change type of win_info.
3088 (box_win): Update.
3089 (tui_gen_win_info::make_window): Rename from tui_make_window.
3090 (tui_win_info::make_window): New method.
3091 (tui_gen_win_info::make_visible): Update.
3092 * tui/tui-source.c (tui_source_window::set_contents): Update.
3093 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
3094 (tui_data_window::display_registers_from): Update.
3095 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
3096 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
3097 Declare.
3098 <can_box>: Remove.
3099 <title>: Remove.
3100 (struct tui_win_info) <make_window>: Declare.
3101 <can_box>: Now virtual.
3102 <title>: New member.
3103 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
3104 * tui/tui-command.c (tui_cmd_window::resize): Update.
3105
3106 2019-08-20 Tom Tromey <tom@tromey.com>
3107
3108 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
3109 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3110 (tui_data_window::check_register_values): Update.
3111
3112 2019-08-20 Tom Tromey <tom@tromey.com>
3113
3114 * tui/tui-regs.h (struct tui_data_window): Use
3115 DISABLE_COPY_AND_ASSIGN.
3116 <regs_content>: Change type, removing unique_ptr.
3117 <tui_data_window>: Add move constructor.
3118 * tui/tui-regs.c (tui_data_window::show_registers)
3119 (tui_data_window::show_register_group)
3120 (tui_data_window::display_registers_from)
3121 (tui_data_window::display_registers_from)
3122 (tui_data_window::first_data_item_displayed)
3123 (tui_data_window::delete_data_content_windows)
3124 (tui_data_window::rerender, tui_data_window::refresh_window)
3125 (tui_data_window::check_register_values): Update.
3126
3127 2019-08-20 Tom Tromey <tom@tromey.com>
3128
3129 * tui/tui-regs.h (struct tui_data_window) <show_registers,
3130 show_register_group>: Declare.
3131 (tui_show_register_group): Don't declare.
3132 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
3133 tui_show_registers.
3134 (tui_data_window::show_register_group): Rename from
3135 tui_show_register_group.
3136 (tui_data_window::check_register_values, tui_reg_command):
3137 Update.
3138 * tui/tui-layout.c (tui_set_layout): Update.
3139
3140 2019-08-20 Tom Tromey <tom@tromey.com>
3141
3142 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
3143 Declare.
3144 (tui_check_register_values): Don't declare.
3145 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
3146 from tui_check_register_values.
3147 * tui/tui-hooks.c (tui_register_changed): Update.
3148
3149 2019-08-20 Tom Tromey <tom@tromey.com>
3150
3151 * tui/tui-regs.c (tui_reg_layout): Move later.
3152 (tui_show_registers): Don't enable TUI mode or change layout.
3153
3154 2019-08-20 Tom Tromey <tom@tromey.com>
3155
3156 * tui/tui-regs.h (struct tui_data_item_window)
3157 <~tui_data_item_window>: Remove.
3158 <content>: Now a unique_xmalloc_ptr.
3159 * tui/tui-regs.c (tui_register_format): Return a
3160 unique_xmalloc_ptr.
3161 (tui_get_register): Update.
3162 (~tui_data_item_window): Remove.
3163 (tui_data_window::display_registers_from, tui_display_register):
3164 Update.
3165 * tui/tui-io.h (tui_expand_tabs): Update.
3166 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
3167 Remove "col" parameter.
3168
3169 2019-08-20 Tom Tromey <tom@tromey.com>
3170
3171 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
3172 field.
3173 * tui/tui-regs.c (~tui_data_item_window): Update.
3174
3175 2019-08-20 Tom Tromey <tom@tromey.com>
3176
3177 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
3178 earlier.
3179
3180 2019-08-20 Tom Tromey <tom@tromey.com>
3181
3182 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
3183
3184 2019-08-20 Tom Tromey <tom@tromey.com>
3185
3186 * tui/tui-source.h (struct tui_source_window): Update.
3187 * tui/tui-regs.c (tui_show_registers): Update.
3188 * tui/tui-disasm.h (struct tui_disasm_window): Update.
3189 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
3190 (NO_REGS_STRING): Remove defines.
3191
3192 2019-08-20 Conrad Meyer <cem@FreeBSD.org>
3193
3194 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
3195 unnecessary thread walk if remote doesn't support the packet.
3196
3197 2019-08-19 Tom Tromey <tromey@adacore.com>
3198
3199 * python/py-value.c (value_has_field): Fix indentation.
3200
3201 2019-08-19 Tom Tromey <tromey@adacore.com>
3202
3203 * printcmd.c (do_one_display, info_display_command): Update.
3204 * block.h (contained_in): Return bool. Add allow_nested
3205 parameter.
3206 * block.c (contained_in): Return bool. Add allow_nested
3207 parameter.
3208
3209 2019-08-19 Tom Tromey <tom@tromey.com>
3210
3211 * configure: Rebuild.
3212 * configure.ac: Disallow the combination of -static-libstdc++ and
3213 source highlight.
3214 * source-cache.c (get_language_name): Handle rust.
3215 (source_cache::get_source_lines): Ignore highlighting exceptions.
3216
3217 2019-08-16 Tom Tromey <tom@tromey.com>
3218
3219 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
3220 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
3221 (struct tui_source_window_base) <make_visible, refresh_window,
3222 resize>: Remove methods.
3223 <execution_info>: Remove field.
3224 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
3225 (tui_show_source_line, tui_source_window_base)
3226 (~tui_source_window_base): Update.
3227 (tui_source_window_base::resize)
3228 (tui_source_window_base::make_visible)
3229 (tui_source_window_base::refresh_window): Remove.
3230 (tui_source_window_base::update_exec_info): Update.
3231 * tui/tui-source.c (tui_source_window::set_contents): Update.
3232 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
3233
3234 2019-08-16 Tom Tromey <tom@tromey.com>
3235
3236 * tui/tui-hooks.c (tui_remove_hooks): Don't set
3237 deprecated_query_hook.
3238
3239 2019-08-16 Tom Tromey <tom@tromey.com>
3240
3241 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
3242 (tui_update_source_windows_with_line): Update.
3243 * tui/tui-source.h (struct tui_source_window)
3244 <show_symtab_source>: Declare.
3245 (tui_show_symtab_source): Don't declare.
3246 * tui/tui-source.c (tui_show_symtab_source): Rename from
3247 tui_show_symtab_source.
3248
3249 2019-08-16 Tom Tromey <tom@tromey.com>
3250
3251 * tui/tui-winsource.h (struct tui_source_window_base)
3252 <set_contents>: Declare.
3253 * tui/tui-winsource.c
3254 (tui_source_window_base::update_source_window_as_is): Update.
3255 * tui/tui-source.h (struct tui_source_window) <set_contents>:
3256 Declare.
3257 (tui_set_source_content): Don't declare.
3258 * tui/tui-source.c (tui_source_window::set_contents): Rename from
3259 tui_set_source_content.
3260 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
3261 Declare.
3262 (tui_set_disassem_content): Don't declare.
3263 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
3264 tui_set_disassem_content.
3265
3266 2019-08-16 Tom Tromey <tom@tromey.com>
3267
3268 * tui/tui-winsource.h (struct tui_source_window_base)
3269 <update_breakpoint_info>: Declare.
3270 (tui_update_breakpoint_info): Don't declare.
3271 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
3272 (tui_update_all_breakpoint_info): Update.
3273 (tui_source_window_base::update_breakpoint_info): Rename from
3274 tui_update_breakpoint_info.
3275 (tui_source_window_base::update_exec_info): Update.
3276
3277 2019-08-16 Tom Tromey <tom@tromey.com>
3278
3279 * tui/tui-winsource.h (struct tui_source_window_base)
3280 <update_source_window>: Declare.
3281 (tui_update_source_window): Don't declare.
3282 * tui/tui-winsource.c
3283 (tui_source_window_base::update_source_window): Rename from
3284 tui_update_source_window.
3285 (tui_source_window_base::rerender): Update.
3286 * tui/tui-source.c (tui_source_window::maybe_update): Update.
3287 * tui/tui-disasm.c (tui_show_disassem)
3288 (tui_show_disassem_and_update_source)
3289 (tui_disasm_window::maybe_update): Update.
3290
3291 2019-08-16 Tom Tromey <tom@tromey.com>
3292
3293 * tui/tui-winsource.h (struct tui_source_window_base)
3294 <update_source_window_as_is>: Declare.
3295 (tui_update_source_window_as_is): Don't declare.
3296 * tui/tui-winsource.c (tui_update_source_window): Update
3297 (tui_source_window_base::update_source_window_as_is): Rename from
3298 tui_update_source_window_as_is.
3299 (tui_source_window_base::refill): Update.
3300 * tui/tui-source.c (tui_show_symtab_source): Update.
3301 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
3302 Update.
3303
3304 2019-08-16 Tom Tromey <tom@tromey.com>
3305
3306 * tui/tui-winsource.h (tui_update_source_window)
3307 (tui_update_source_window_as_is): Remove "noerror" parameter.
3308 * tui/tui-winsource.c (tui_update_source_window)
3309 (tui_update_source_window_as_is): Remove "noerror" parameter.
3310 (tui_update_source_windows_with_addr)
3311 (tui_update_source_windows_with_line)
3312 (tui_source_window_base::rerender)
3313 (tui_source_window_base::refill): Update.
3314 * tui/tui-source.h (tui_set_source_content)
3315 (tui_show_symtab_source): Remove "noerror" parameter.
3316 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
3317 parameter.
3318 (tui_show_symtab_source): Likewise.
3319 (tui_source_window::maybe_update): Update.
3320 * tui/tui-disasm.c (tui_show_disassem)
3321 (tui_show_disassem_and_update_source)
3322 (tui_disasm_window::do_scroll_vertical)
3323 (tui_disasm_window::maybe_update): Update.
3324
3325 2019-08-16 Tom Tromey <tom@tromey.com>
3326
3327 * tui/tui.c (tui_is_window_visible): Update.
3328 * tui/tui-wingeneral.c (tui_make_window)
3329 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
3330 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
3331 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
3332 (tui_set_win_height_command, parse_scrolling_args): Update.
3333 * tui/tui-source.c (tui_source_window::style_changed): Update.
3334 * tui/tui-regs.c (tui_show_registers)
3335 (tui_data_window::first_data_item_displayed)
3336 (tui_data_window::delete_data_content_windows)
3337 (tui_check_register_values, tui_reg_command): Update.
3338 * tui/tui-disasm.c (tui_show_disassem): Update.
3339 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
3340 method.
3341 <is_visible>: Remove field.
3342 * tui/tui-data.c (tui_next_win, tui_prev_win)
3343 (tui_delete_invisible_windows): Update.
3344
3345 2019-08-16 Tom Tromey <tom@tromey.com>
3346
3347 * tui/tui-winsource.h (struct tui_source_window_base)
3348 <m_has_locator>: Remove.
3349 * tui/tui-layout.c (show_source_disasm_command, show_data)
3350 (show_source_or_disasm_and_command): Update.
3351
3352 2019-08-16 Alan Hayward <alan.hayward@arm.com>
3353
3354 * NEWS (Other MI changes): New subsection.
3355 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
3356 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
3357 * arch-utils.c (default_get_pc_address_flags): New function.
3358 * arch-utils.h (default_get_pc_address_flags): New declaration.
3359 * gdbarch.sh: Add get_pc_address_flags.
3360 * gdbarch.c: Regenerate.
3361 * gdbarch.h: Likewise.
3362 * stack.c (print_pc): New function.
3363 (print_frame_info) (print_frame): Call print_pc.
3364
3365 2019-08-16 Tom de Vries <tdevries@suse.de>
3366
3367 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
3368 print_objfile_section_info.
3369
3370 2019-08-15 Tom Tromey <tom@tromey.com>
3371
3372 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
3373 calling update_cmdwin_start_line.
3374 * tui/tui-winsource.h (struct tui_source_window_base)
3375 <do_make_visible_with_new_height, set_new_height>: Don't declare.
3376 <rerender>: Declare.
3377 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
3378 Call rerender.
3379 (tui_source_window_base::set_new_height): Remove.
3380 (tui_source_window_base::rerender): Rename from
3381 do_make_visible_with_new_height.
3382 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
3383 resize method.
3384 (tui_win_info::make_invisible_and_set_new_height)
3385 (tui_win_info::make_visible_with_new_height): Remove.
3386 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
3387 Declare.
3388 * tui/tui-stack.c (tui_locator_window::rerender): New method.
3389 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
3390 do_make_visible_with_new_height>: Don't declare.
3391 <rerender>: Declare.
3392 * tui/tui-regs.c (tui_data_window::rerender): Rename from
3393 set_new_height.
3394 (tui_data_window::do_make_visible_with_new_height): Remove.
3395 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
3396 call tui_show_locator_content.
3397 (tui_gen_win_info::resize): Call rerender.
3398 (show_source_or_disasm_and_command): Don't call
3399 tui_show_locator_content.
3400 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
3401 method.
3402 (struct tui_win_info) <rerender>: Declare.
3403 <set_new_height, make_invisible_and_set_new_height,
3404 make_visible_with_new_height>: Don't declare.
3405 * tui/tui-data.c (tui_win_list::rerender): New method.
3406 * tui/tui-command.h (struct tui_cmd_window)
3407 <do_make_visible_with_new_height>: Don't declare.
3408 * tui/tui-command.c
3409 (tui_cmd_window::do_make_visible_with_new_height): Remove.
3410
3411 2019-08-15 Tom Tromey <tromey@adacore.com>
3412
3413 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
3414 * ada-lang.c (ada_enum_name): Likewise.
3415
3416 2019-08-15 Christian Biesinger <cbiesinger@google.com>
3417
3418 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
3419 leading underscore.
3420 (GdbOutputErrorFile): Likewise.
3421 (global scope): Adjust constructor calls to GdbOutput{,Error}File
3422 accordingly.
3423 (execute_unwinders): Rename to have a leading underscore.
3424 (auto_load_packages): Likewise.
3425 (global scope): Adjust call to auto_load_packages accordingly.
3426 (GdbSetPythonDirectory): Likewise.
3427 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
3428 instead of execute_unwinders.
3429
3430 2019-08-15 Tom Tromey <tom@tromey.com>
3431
3432 * tui/tui-layout.c (show_layout, show_source_disasm_command)
3433 (show_data): Don't change window visibility.
3434 (tui_gen_win_info::resize): Remove special case for command
3435 window. Use wresize, when available.
3436 (show_source_or_disasm_and_command): Don't change window
3437 visibility.
3438 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
3439 <make_visible>: New method.
3440 * tui/tui-command.c (tui_cmd_window::resize): New method.
3441
3442 2019-08-15 Tom Tromey <tom@tromey.com>
3443
3444 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
3445 (struct tui_source_windows): New.
3446 * tui/tui-winsource.c (tui_display_main): Update.
3447 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
3448 (new_height_ok, parse_scrolling_args): Update.
3449 * tui/tui-layout.c (show_layout, show_data): Update.
3450 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
3451 (tui_add_to_source_windows): Don't declare.
3452 * tui/tui-data.c (source_windows, tui_source_windows)
3453 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
3454
3455 2019-08-15 Tom Tromey <tom@tromey.com>
3456
3457 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
3458 Rename from reset.
3459 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
3460 * tui/tui-layout.c (show_source_disasm_command, show_data):
3461 Update.
3462 (tui_gen_win_info::resize): Rename.
3463 (show_source_or_disasm_and_command): Update.
3464 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
3465 reset.
3466
3467 2019-08-15 Tom Tromey <tom@tromey.com>
3468
3469 * tui/tui-stack.c (tui_initialize_static_data): Remove.
3470 * tui/tui-interp.c (tui_interp::init): Don't call
3471 tui_initialize_static_data.
3472 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
3473
3474 2019-08-15 Tom Tromey <tom@tromey.com>
3475
3476 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
3477 examine tui_win_list.
3478
3479 2019-08-15 Tom Tromey <tom@tromey.com>
3480
3481 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
3482 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
3483 tui_clear_source_content.
3484 (tui_clear_source_content): Remove.
3485 (tui_source_window_base::do_erase_source_content): Hoist call to
3486 content.clear().
3487 * tui/tui-stack.c (tui_show_frame_info): Don't call
3488 tui_clear_source_content.
3489
3490 2019-08-15 Tom Tromey <tom@tromey.com>
3491
3492 * tui/tui-winsource.h (struct tui_source_window_base)
3493 <do_erase_source_content>: New method.
3494 <erase_source_content>: New method.
3495 (tui_erase_source_content): Don't declare.
3496 * tui/tui-winsource.c (tui_clear_source_content): Update.
3497 (tui_source_window_base::do_erase_source_content): Rename from
3498 tui_erase_source_content.
3499 (tui_source_window_base::show_source_content): Update.
3500 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
3501 * tui/tui-source.h (struct tui_source_window)
3502 <erase_source_content>: New method.
3503 * tui/tui-disasm.h (struct tui_disasm_window)
3504 <erase_source_content>: New method.
3505
3506 2019-08-15 Tom Tromey <tom@tromey.com>
3507
3508 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
3509 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
3510 constructor.
3511 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
3512 * tui/tui-source.c (tui_set_source_content): Update.
3513 * tui/tui-disasm.c (tui_set_disassem_content): Update.
3514
3515 2019-08-15 Tom Tromey <tom@tromey.com>
3516
3517 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
3518 * tui/tui-winsource.c (tui_line_is_displayed): Move to
3519 tui-source.c.
3520 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
3521 Declare.
3522 * tui/tui-source.c (tui_source_window::line_is_displayed): New
3523 method.
3524 (tui_source_window::maybe_update): Update.
3525
3526 2019-08-15 Tom Tromey <tom@tromey.com>
3527
3528 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
3529 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
3530 tui-disasm.c.
3531 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
3532 Declare.
3533 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
3534 method.
3535 (tui_disasm_window::maybe_update): Update.
3536
3537 2019-08-15 Tom Tromey <tom@tromey.com>
3538
3539 * tui/tui-winsource.h (struct tui_source_window_base)
3540 <maybe_update>: Declare.
3541 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
3542 method.
3543 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
3544 Declare.
3545 * tui/tui-source.c (tui_source_window::maybe_update): New method.
3546 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
3547 Declare.
3548 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
3549
3550 2019-08-15 Tom Tromey <tom@tromey.com>
3551
3552 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
3553
3554 2019-08-15 Tom Tromey <tom@tromey.com>
3555
3556 * tui/tui-wingeneral.c: Include tui-stack.h.
3557 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
3558 (struct tui_locator_window): Move from tui-data.h.
3559 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
3560 (tui_initialize_static_data): Move from tui-data.c.
3561 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
3562 (struct tui_locator_window): Move to tui-stack.c.
3563 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
3564 (tui_initialize_static_data): Move to tui-stack.c.
3565
3566 2019-08-15 Tom Tromey <tom@tromey.com>
3567
3568 * tui/tui-layout.c (show_source_disasm_command)
3569 (show_source_or_disasm_and_command): Use make_visible method, not
3570 tui_make_window.
3571 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
3572 Remove.
3573
3574 2019-08-15 Tom Tromey <tom@tromey.com>
3575
3576 * tui/tui-wingeneral.h (tui_make_window): Update.
3577 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
3578 parameter.
3579 (tui_gen_win_info::make_visible): Update.
3580 * tui/tui-regs.c (tui_data_window::display_registers_from):
3581 Update.
3582 * tui/tui-layout.c (show_source_disasm_command)
3583 (show_source_or_disasm_and_command): Update.
3584 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
3585 (enum tui_box): Remove.
3586 (struct tui_win_info) <can_box>: New method.
3587 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
3588 method.
3589
3590 2019-08-15 Tom de Vries <tdevries@suse.de>
3591
3592 * linux-nat-trad.c: Include gdbarch.h.
3593
3594 2019-08-14 Alan Hayward <alan.hayward@arm.com>
3595
3596 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
3597 register sizes.
3598
3599 2019-08-14 Tom Tromey <tromey@adacore.com>
3600
3601 * darwin-nat.c: Include gdbarch.h.
3602 * darwin-nat-info.c: Include gdbarch.h.
3603
3604 2019-08-13 Tom Tromey <tom@tromey.com>
3605
3606 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
3607 Remove.
3608 * tui/tui-data.c (tui_initialize_static_data): Update.
3609
3610 2019-08-13 Tom Tromey <tom@tromey.com>
3611
3612 * tui/tui-winsource.h (struct tui_exec_info_window)
3613 <~tui_exec_info_window, maybe_allocate_content, get_content,
3614 m_content>: Remove.
3615 (struct tui_source_window_base) <set_exec_info_content,
3616 show_exec_info_content>: Don't declare.
3617 * tui/tui-winsource.c
3618 (tui_exec_info_window::maybe_allocate_content): Remove.
3619 (tui_source_window_base::update_exec_info): Rename from
3620 set_exec_info_content.
3621 (tui_source_window_base::show_exec_info_content)
3622 (tui_source_window_base::update_exec_info): Remove.
3623
3624 2019-08-13 Tom Tromey <tom@tromey.com>
3625
3626 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
3627 declare.
3628 * tui/tui-winsource.c (tui_update_source_window_as_is)
3629 (tui_update_source_windows_with_addr, tui_erase_source_content):
3630 Update.
3631 (tui_clear_exec_info_content): Remove.
3632
3633 2019-08-13 Tom Tromey <tom@tromey.com>
3634
3635 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
3636 declare.
3637 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
3638 call tui_erase_exec_info_content.
3639 (tui_clear_exec_info_content): Rename from
3640 tui_erase_exec_info_content.
3641 (tui_clear_exec_info_content): Delete.
3642
3643 2019-08-13 Tom Tromey <tom@tromey.com>
3644
3645 * tui/tui-winsource.h (struct tui_source_window_base)
3646 <show_exec_info_content>: Declare.
3647 (tui_show_exec_info_content): Don't declare.
3648 * tui/tui-winsource.c
3649 (tui_source_window_base::show_exec_info_content): Rename from
3650 tui_show_exec_info_content.
3651 (tui_source_window_base::update_exec_info): Update.
3652
3653 2019-08-13 Tom Tromey <tom@tromey.com>
3654
3655 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
3656 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
3657 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
3658 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
3659 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
3660 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
3661 ... here.
3662
3663 2019-08-13 Tom Tromey <tom@tromey.com>
3664
3665 * tui/tui-winsource.h (struct tui_source_window_base)
3666 <update_exec_info>: Declare.
3667 (tui_update_exec_info): Don't declare.
3668 * tui/tui-winsource.c (tui_update_source_window_as_is)
3669 (tui_source_window_base::refresh_all)
3670 (tui_update_all_breakpoint_info): Update.
3671 (tui_source_window_base::update_exec_info): Rename from
3672 tui_update_exec_info.
3673 * tui/tui-stack.c (tui_show_frame_info): Update.
3674
3675 2019-08-13 Tom Tromey <tom@tromey.com>
3676
3677 * tui/tui-winsource.h (struct tui_source_window_base)
3678 <set_exec_info_content>: Declare.
3679 (tui_set_exec_info_content): Don't declare.
3680 * tui/tui-winsource.c
3681 (tui_source_window_base::set_exec_info_content): Rename from
3682 tui_set_exec_info_content.
3683 (tui_update_exec_info): Update.
3684
3685 2019-08-13 Tom Tromey <tom@tromey.com>
3686
3687 * tui/tui-winsource.h (struct tui_source_window_base)
3688 <show_source_content>: Declare.
3689 (tui_show_source_content): Don't declare.
3690 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
3691 (tui_source_window_base::show_source_content): Rename from
3692 tui_show_source_content.
3693 (tui_source_window_base::refresh_all): Update.
3694 * tui/tui-layout.c (show_source_disasm_command)
3695 (show_source_or_disasm_and_command): Update.
3696
3697 2019-08-13 Tom Tromey <tom@tromey.com>
3698
3699 * tui/tui-winsource.c (tui_erase_source_content)
3700 (tui_show_source_content, tui_source_window_base::refresh_all):
3701 Update.
3702 * tui/tui-wingeneral.h
3703 (tui_check_and_display_highlight_if_needed): Don't declare.
3704 * tui/tui-wingeneral.c
3705 (tui_win_info::check_and_display_highlight_if_needed): Rename from
3706 check_and_display_highlight_if_needed.
3707 * tui/tui-win.c (tui_rehighlight_all)
3708 (tui_win_info::make_visible_with_new_height): Update.
3709 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
3710 (tui_data_window::erase_data_content)
3711 (tui_data_window::display_all_data): Update.
3712 * tui/tui-data.h (struct tui_win_info)
3713 <check_and_display_highlight_if_needed>: Declare.
3714
3715 2019-08-13 Tom Tromey <tom@tromey.com>
3716
3717 * tui/tui-win.c (tui_resize_all): Call
3718 tui_delete_invisible_windows.
3719 * tui/tui-layout.c (show_layout): Call
3720 tui_delete_invisible_windows.
3721 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
3722 * tui/tui-data.c (tui_delete_invisible_windows): New function.
3723
3724 2019-08-13 Tom Tromey <tom@tromey.com>
3725
3726 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
3727 tui_add_win_to_layout.
3728
3729 2019-08-13 Tom Tromey <tom@tromey.com>
3730
3731 * tui/tui-layout.h (tui_default_win_height): Don't declare.
3732 * tui/tui-layout.c (tui_default_win_height): Now static.
3733
3734 2019-08-13 Tom Tromey <tom@tromey.com>
3735
3736 * tui/tui-layout.c (show_layout): Unify all layout cases into a
3737 single switch.
3738 (show_source_disasm_command, show_source_or_disasm_and_command):
3739 Don't check current layout.
3740
3741 2019-08-13 Tom Tromey <tom@tromey.com>
3742
3743 * tui/tui-wingeneral.c (make_all_visible): Remove.
3744 (tui_make_all_invisible): Simplify.
3745 * tui/tui-layout.c (tui_make_all_invisible): Move from
3746 tui-wingeneral.c; simplify.
3747 (show_layout): Hoist call to tui_make_all_invisible.
3748 (show_data): Don't call tui_make_all_invisible.
3749
3750 2019-08-13 Tom Tromey <tom@tromey.com>
3751
3752 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
3753 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
3754
3755 2019-08-13 Tom Tromey <tom@tromey.com>
3756
3757 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
3758 tui-data.c.
3759 (show_source_disasm_command, show_data)
3760 (show_source_or_disasm_and_command): Don't use
3761 tui_set_current_layout_to.
3762 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
3763 * tui/tui-data.c (current_layout, tui_current_layout): Move to
3764 tui-layout.c.
3765 (tui_set_current_layout_to): Remove.
3766
3767 2019-08-13 Tom Tromey <tom@tromey.com>
3768
3769 * tui/tui-layout.c (tui_set_layout): Update.
3770 * tui/tui-data.h (struct tui_layout_def): Remove.
3771 (tui_layout_def): Don't declare.
3772 * tui/tui-data.c (layout_def): Remove.
3773 (tui_layout_def): Remove.
3774
3775 2019-08-13 Tom Tromey <tom@tromey.com>
3776
3777 * tui/tui-winsource.h (struct tui_source_window_base)
3778 <clear_detail>: No longer "override".
3779 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
3780 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
3781 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
3782 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
3783 Remove.
3784 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
3785
3786 2019-08-13 Tom Tromey <tromey@adacore.com>
3787
3788 * tracepoint.c: Don't include readline.h or history.h.
3789
3790 2019-08-12 Tom Tromey <tom@tromey.com>
3791
3792 * configure: Rebuild.
3793 * configure.ac: Check for readline 7.
3794 * NEWS: Mention readline 7 requirement.
3795 * README: Update.
3796
3797 2019-08-12 Tom Tromey <tom@tromey.com>
3798
3799 * mingw-hdep.c (gdb_select): Remove readline hack.
3800
3801 2019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3802
3803 * blockframe.c (find_pc_partial_function): Set *block to nullptr
3804 when the function fails.
3805
3806 2019-08-09 Andreas Arnez <arnez@linux.ibm.com>
3807
3808 * s390-tdep.c (s390_type_align): New function.
3809 (s390_gdbarch_init): Set it as type_align gdbarch method.
3810
3811 2019-08-09 Tom de Vries <tdevries@suse.de>
3812
3813 PR gdb/24591
3814 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
3815 pc_low with relocation offset.
3816
3817 2019-08-07 Tom Tromey <tromey@adacore.com>
3818
3819 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
3820 (print_frame_args): Update.
3821 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
3822 Update.
3823 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
3824 * frame.h (struct frame_arg): Add initializers.
3825 <error>: Now a unique_xmalloc_ptr.
3826
3827 2019-08-07 Alan Hayward <alan.hayward@arm.com>
3828
3829 * NEWS: Expand the Pointer Authentication entry.
3830 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
3831 (aarch64_frame_unmask_lr): ... to this.
3832 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
3833 Call aarch64_frame_unmask_lr.
3834 * frame.c (struct frame_info): Add "masked" variable.
3835 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
3836 (fprint_frame): Check for masked pc.
3837 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
3838 declarations.
3839 * python/py-framefilter.c (py_print_frame): Check for masked pc.
3840 * stack.c (print_frame): Check for masked pc.
3841
3842 2019-08-06 Tom Tromey <tom@tromey.com>
3843
3844 * stabsread.c (patch_block_stabs, read_one_struct_field)
3845 (read_enum_type): Use obstack_strndup.
3846 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
3847 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
3848 * dwarf2read.c (guess_full_die_structure_name)
3849 (anonymous_struct_prefix): Use obstack_strndup.
3850 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
3851 * c-exp.y (yylex): Use obstack_strndup.
3852 * ada-exp.y (write_object_renaming, write_ambiguous_var)
3853 (write_var_or_type): Use obstack_strndup.
3854
3855 2019-08-06 Tom Tromey <tom@tromey.com>
3856
3857 * symfile.c (reread_symbols): Use obstack_strdup.
3858 * stabsread.c (read_type): Use obstack_strdup.
3859 * gdb_obstack.h (obstack_strdup): New overload.
3860 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
3861 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
3862 (dwarf2_canonicalize_name): Use obstack_strdup.
3863 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
3864 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
3865 Use obstack_strdup.
3866
3867 2019-08-06 Tom Tromey <tom@tromey.com>
3868
3869 * gdb_obstack.h (obstack_strdup): Define.
3870 * gdb_obstack.c (obstack_strdup): Don't define.
3871
3872 2019-08-06 Tom Tromey <tom@tromey.com>
3873
3874 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
3875 obstack_strdup.
3876 * typeprint.c (typedef_hash_table::find_global_typedef): Use
3877 obstack_strdup.
3878 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
3879 * stabsread.c (common_block_start): Use obstack_strdup.
3880 * objfiles.c (set_objfile_main_name, objfile): Use
3881 obstack_strdup.
3882 * namespace.c (add_using_directive): Use obstack_strdup.
3883 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
3884 * jit.c (finalize_symtab): Use obstack_strdup.
3885 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
3886 (guess_partial_die_structure_name, partial_die_info::fixup)
3887 (dwarf2_name): Use obstack_strdup.
3888 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
3889 obstack_strdup.
3890 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
3891 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
3892 obstack_strdup.
3893 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
3894
3895 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3896
3897 * unittests/help-doc-selftests.c: New file.
3898 * Makefile.in: Add the new file.
3899
3900 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3901
3902 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
3903 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
3904 the full first line, except when FOR_VALUE_PREFIX. In this case,
3905 the trailing '.' is not output, and the first character is uppercased.
3906 (print_help_for_command): Update call to print_doc_line.
3907 (print_doc_of_command): Likewise.
3908 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
3909 * cli/cli-option.c (append_indented_doc): Do not append newline.
3910 (build_help_option): Append newline after first appended_indented_doc
3911 only if a second call is done.
3912 (build_help): Append 2 new lines before each option, except the first
3913 one.
3914 * compile/compile.c (_initialize_compile): Add new lines after
3915 %OPTIONS%, when not at the end of the help.
3916 Change help doc or code
3917 producing the help doc to respect the invariants.
3918 * maint-test-options.c (_initialize_maint_test_options): Likewise.
3919 Also removed the new line after 'Options:', as all other commands
3920 do not put an empty line between 'Options:' and the first option.
3921 * printcmd.c (_initialize_printcmd): Likewise.
3922 * stack.c (_initialize_stack): Likewise.
3923 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
3924 incorrectly telling COMMAND is optional.
3925 * ada-lang.c (_initialize_ada_language): Change help doc or code
3926 producing the help doc to respect the invariants.
3927 * ada-tasks.c (_initialize_ada_tasks): Likewise.
3928 * breakpoint.c (_initialize_breakpoint): Likewise.
3929 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
3930 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
3931 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
3932 * cli/cli-style.c (cli_style_option::add_setshow_commands,
3933 _initialize_cli_style): Likewise.
3934 * corelow.c (core_target_info): Likewise.
3935 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
3936 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
3937 * filesystem.c (_initialize_filesystem): Likewise.
3938 * frame.c (_initialize_frame): Likewise.
3939 * gnu-nat.c (add_task_commands): Likewise.
3940 * infcall.c (_initialize_infcall): Likewise.
3941 * infcmd.c (_initialize_infcmd): Likewise.
3942 * interps.c (_initialize_interpreter): Likewise.
3943 * language.c (_initialize_language): Likewise.
3944 * linux-fork.c (_initialize_linux_fork): Likewise.
3945 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
3946 * maint.c (_initialize_maint_cmds): Likewise.
3947 * memattr.c (_initialize_mem): Likewise.
3948 * printcmd.c (_initialize_printcmd): Likewise.
3949 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
3950 _RegEx): Likewise.
3951 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
3952 * record-btrace.c (_initialize_record_btrace): Likewise.
3953 * record-full.c (_initialize_record_full): Likewise.
3954 * record.c (_initialize_record): Likewise.
3955 * regcache-dump.c (_initialize_regcache_dump): Likewise.
3956 * regcache.c (_initialize_regcache): Likewise.
3957 * remote.c (add_packet_config_cmd, init_remote_threadtests,
3958 _initialize_remote): Likewise.
3959 * ser-tcp.c (_initialize_ser_tcp): Likewise.
3960 * serial.c (_initialize_serial): Likewise.
3961 * skip.c (_initialize_step_skip): Likewise.
3962 * source.c (_initialize_source): Likewise.
3963 * stack.c (_initialize_stack): Likewise.
3964 * symfile.c (_initialize_symfile): Likewise.
3965 * symtab.c (_initialize_symtab): Likewise.
3966 * target-descriptions.c (_initialize_target_descriptions): Likewise.
3967 * top.c (init_main): Likewise.
3968 * tracefile-tfile.c (tfile_target_info): Likewise.
3969 * tracepoint.c (_initialize_tracepoint): Likewise.
3970 * tui/tui-win.c (_initialize_tui_win): Likewise.
3971 * utils.c (add_internal_problem_command): Likewise.
3972 * valprint.c (value_print_option_defs): Likewise.
3973
3974 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
3975
3976 PR build/24886
3977 * configure.ac: Drop enable-libmcheck support.
3978 * configure, config.in: Rebuild.
3979 * libmcheck.m4: Remove.
3980 * acinclude.m4: Don't include it.
3981 * Makefile.in: Don't distribute it.
3982 * top.c (print_gdb_configuration): Don't mention it.
3983
3984 2019-08-06 Tom Tromey <tom@tromey.com>
3985
3986 * utils.c (set_output_style): Sometimes pass stream to
3987 emit_style_escape.
3988 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
3989 * record-btrace.c (btrace_insn_history): Update.
3990 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
3991 method.
3992 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
3993 Update initializers.
3994 <m_uiout>: New field.
3995 <m_di>: Move lower.
3996 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3997 Remove "uiout" parameter.
3998 (dump_insns): Update.
3999 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
4000 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
4001
4002 2019-08-06 Christian Biesinger <cbiesinger@google.com>
4003
4004 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
4005 (error_in_psymtab_expansion): Likewise.
4006 (lookup_symbol_via_quick_fns): Likewise.
4007 (basic_lookup_transparent_type_quick): Likewise.
4008 (basic_lookup_transparent_type_1): Likewise.
4009
4010 2019-08-06 Tom Tromey <tromey@adacore.com>
4011
4012 * source.c (last_source_error): Now bool.
4013 (print_source_lines_base): Make "noprint" bool. Only open
4014 source file when last_source_visited changes.
4015
4016 2019-08-06 Tom Tromey <tromey@adacore.com>
4017
4018 * annotate.c (annotate_source_line): Use g_source_cache.
4019 * source-cache.c (source_cache::get_plain_source_lines): Change
4020 parameters. Populate m_offset_cache.
4021 (source_cache::ensure): New method.
4022 (source_cache::get_line_charpos): New method.
4023 (extract_lines): Move lower. Change parameters.
4024 (source_cache::get_source_lines): Move lower.
4025 * source-cache.h (class source_cache): Update comment.
4026 <get_line_charpos>: New method.
4027 <get_source_lines>: Update comment.
4028 <clear>: Clear m_offset_cache.
4029 <get_plain_source_lines>: Change parameters.
4030 <ensure>: New method
4031 <m_offset_cache>: New member.
4032 * source.c (forget_cached_source_info_for_objfile): Update.
4033 (info_source_command): Use g_source_cache.
4034 (find_source_lines, open_source_file_with_line_charpos): Remove.
4035 (print_source_lines_base, search_command_helper): Use g_source_cache.
4036 * source.h (open_source_file_with_line_charpos): Don't declare.
4037 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
4038 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
4039 Use g_source_cache.
4040
4041 2019-08-06 Tom Tromey <tromey@adacore.com>
4042
4043 * source-cache.c (source_cache::get_plain_source_lines):
4044 Remove "first_line" and "last_line" parameters.
4045 (source_cache::get_source_lines): Cache plain text.
4046 * source-cache.h (class source_cache)
4047 <get_plain_source_lines>: Update.
4048
4049 2019-08-06 Tom Tromey <tromey@adacore.com>
4050
4051 * source-cache.c (extract_lines): No longer a method.
4052 Changed type of parameter. Include final newline.
4053 (selftests::extract_lines_test): New function.
4054 (_initialize_source_cache): Likewise.
4055 * source-cache.h (class source_cache)
4056 <extract_lines>: Don't declare.
4057
4058 2019-08-06 Tom Tromey <tromey@adacore.com>
4059
4060 * breakpoint.c (init_breakpoint_sal): Update.
4061 (breakpoint): Update.
4062 * breakpoint.h (struct breakpoint) <filter>: Now a
4063 unique_xmalloc_ptr.
4064
4065 2019-08-05 Christian Biesinger <cbiesinger@google.com>
4066
4067 * NEWS: Mention dictionary access on blocks.
4068 * python/py-block.c (blpy_getitem): New function.
4069 (block_object_as_mapping): New struct.
4070 (block_object_type): Use new struct for tp_as_mapping field.
4071
4072 2019-08-05 Christian Biesinger <cbiesinger@google.com>
4073
4074 * objfiles.h (objfile): Add a comment describing partial symbols.
4075
4076 2019-08-05 Tom Tromey <tromey@adacore.com>
4077
4078 * compile/compile.c (_initialize_compile): Use _(), not N_().
4079 * thread.c (_initialize_thread): Use _(), not N_().
4080 * stack.c (_initialize_stack): Use _(), not N_().
4081 * printcmd.c (_initialize_printcmd): Use _(), not N_().
4082
4083 2019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4084
4085 * dwarf2read.c (struct dw2_symtab_iterator):
4086 <want_specific_block>: Remove.
4087 <block_index>: Change type to gdb::optional.
4088 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
4089 change type of BLOCK_INDEX parameter to gdb::optional.
4090 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
4091 (dw2_lookup_symbol): Don't pass argument for
4092 WANT_SPECIFIC_BLOCK.
4093 (dw2_expand_symtabs_for_function): Don't pass argument for
4094 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
4095 (class dw2_debug_names_iterator)
4096 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
4097 parameter, change BLOCK_INDEX type to gdb::optional.
4098 <m_want_specific_block>: Remove.
4099 <m_block_index>: Change type to gdb::optional.
4100 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
4101 gdb::optional. Re-write in function of gdb::optional.
4102 (dw2_debug_names_lookup_symbol): Don't pass argument for
4103 WANT_SPECIFIC_BLOCK.
4104 (dw2_debug_names_expand_symtabs_for_function): Don't pass
4105 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
4106 BLOCK_INDEX.
4107
4108 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4109
4110 * NEWS: Mention changes to "info sources" command.
4111
4112 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4113
4114 * symtab.c (filename_partial_match_opts): New struct type.
4115 (struct output_source_filename_data): New members
4116 regexp, c_regexp, partial_match.
4117 (output_source_filename): Use new members to decide to print file.
4118 (info_sources_option_defs): New variable.
4119 (make_info_sources_options_def_group, print_info_sources_header,
4120 info_sources_command_completer):
4121 New functions.
4122 (info_sources_command): Read new optional arguments.
4123 (_initialize_symtab): Update info sources help.
4124
4125 2019-08-02 Alexandre Oliva <oliva@adacore.com>
4126
4127 * ada-lang.c (exception_support_info_v0): Renamed from...
4128 (default_exception_support_info): ... this. Create new
4129 definition for v1.
4130 (ada_has_this_exception_support): Look up catch_handlers_sym.
4131 (ada_exception_support_info_sniffer): Try v0 after default.
4132
4133 2019-08-01 Tom Tromey <tromey@adacore.com>
4134
4135 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
4136 gdbarch.h.
4137
4138 2019-08-01 Christian Biesinger <cbiesinger@google.com>
4139
4140 * s12z-tdep.c: Fix include path for s12z-opc.h.
4141
4142 2019-08-01 Alan Hayward <alan.hayward@arm.com>
4143
4144 * NEWS: Require GNU make 3.82.
4145
4146 2019-07-16 Tom Tromey <tom@tromey.com>
4147
4148 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
4149 declare.
4150
4151 2019-07-30 Tom Tromey <tromey@adacore.com>
4152
4153 * block.c (contained_in): Remove BLOCK_FUNCTION check.
4154
4155 2019-07-30 Kevin Buettner <kevinb@redhat.com>
4156
4157 * printcmd.c (print_address_symbolic): Print negative offsets.
4158 (build_address_symbolic): Force signed arithmetic when computing
4159 offset.
4160
4161 2019-07-30 Christian Biesinger <cbiesinger@google.com>
4162
4163 PR/24474: Add a function to lookup static variables.
4164 * NEWS: Mention this new function.
4165 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
4166 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
4167 * python/python.c (python_GdbMethods): Add new function.
4168
4169 2019-07-29 Christian Biesinger <cbiesinger@google.com>
4170
4171 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
4172 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
4173 (objfpy_lookup_static_symbol): New function.
4174 (objfile_object_methods): Add new functions.
4175
4176 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4177
4178 * NEWS: Mention 'set|show print frame-info'. Mention new
4179 'presence' value for 'frame-arguments'. Mention new '-frame-info'
4180 backtrace argument. Mention that python frame filtering code
4181 is now consistent with what 'backtrace' command prints.
4182
4183 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4184
4185 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
4186 comments.
4187 (print_frame_info_auto, print_frame_info_source_line,
4188 print_frame_info_location, print_frame_info_source_and_location,
4189 print_frame_info_location_and_address, print_frame_info_short_location):
4190 New declarations.
4191 (struct frame_print_options): New member print_frame_info.
4192 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
4193 * stack.h (get_user_print_what_frame_info): New declaration.
4194 (frame_show_address): New declaration.
4195 * stack.c (print_frame_arguments_choices): New value 'presence'.
4196 (print_frame_info_auto, print_frame_info_source_line,
4197 print_frame_info_location, print_frame_info_source_and_location,
4198 print_frame_info_location_and_address, print_frame_info_short_location,
4199 print_frame_info_choices, print_frame_info_print_what): New definitions.
4200 (print_frame_args): Only print dots for args if print frame-arguments
4201 is 'presence'.
4202 (frame_print_option_defs): New element for "frame-info".
4203 (get_user_print_what_frame_info): New function.
4204 (frame_show_address): Make non static. Move comment to stack.h.
4205 (print_frame_info_to_print_what): New function.
4206 (print_frame_info): Update comment. Use fp_opts.print_frame_info
4207 to decide what to print.
4208 (backtrace_command_1): Handle the new print_frame_arguments_presence
4209 value.
4210 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
4211 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
4212 (py_print_frame): In non-mi mode, use LOCATION as default for
4213 print_what, similarly to frame information printed directly by
4214 backtrace command. Handle frame-info user option in non MI mode.
4215
4216 2019-07-27 Kevin Buettner <kevinb@redhat.com>
4217
4218 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
4219 Add case for debugging 32-bit target on 64-bit host. Revise
4220 comment.
4221
4222 2019-07-27 Kevin Buettner <kevinb@redhat.com>
4223
4224 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
4225 instead of find_function_entry_range_from_pc.
4226
4227 2019-07-27 Kevin Buettner <kevinb@redhat.com>
4228
4229 * stack.c (find_frame_funname): Remove code which preferred
4230 minsym over symtab sym in "certain pathological cases".
4231
4232 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
4233 parameter. Change type of "do_demangle" to bool.
4234 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
4235 Pass suitable "prefer_sym_over_minsym" flag to
4236 build_address_symbolic(). Don't output "+" for negative offsets.
4237 * printcmd.c (print_address_symbolic): Update invocation of
4238 build_address_symbolic to include a "prefer_sym_over_minsym"
4239 flag.
4240 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
4241 Restrict cases in which use of minimal symbol is preferred to that
4242 of a found symbol. Update comments.
4243
4244 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
4245 for entry pc when entry pc is out of range for that FDE.
4246
4247 2019-07-26 Brian Callahan <bcallah@openbsd.org>
4248
4249 PR gdb/24839:
4250 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
4251 type.
4252
4253 2019-07-25 Christian Biesinger <cbiesinger@google.com>
4254
4255 * python/py-objfile.c (add_separate_debug_file): Fix comment about
4256 this function's Python signature.
4257
4258
4259 2019-07-24 Christian Biesinger <cbiesinger@google.com>
4260
4261 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
4262 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
4263 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
4264 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
4265 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
4266
4267
4268 2019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
4269
4270 * h8300-tdep.c (h8300_register_name_common): New.
4271 h8300_register_name): Use h8300_register_name_common.
4272 (h8300s_register_name): Likewise.
4273 (h8300sx_register_name): Likewise.
4274 (h8300h_register_nam): New.
4275 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
4276
4277
4278 2019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
4279
4280 * arm-tdep.c (arm_skip_cmse_entry): New function.
4281 (arm_is_sgstubs_section): New function.
4282 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
4283
4284 2019-07-22 Tom Tromey <tom@tromey.com>
4285
4286 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
4287 Don't self-assign.
4288
4289 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
4290
4291 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
4292 type_print.
4293
4294 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
4295
4296 * symtab.c (search_symbols): Adjust msymbol matching type arrays
4297 so that GDB doesn't match any msymbols when searching in the
4298 TYPES_DOMAIN.
4299 (print_symbol_info): Print using typedef_print or type_print based
4300 on the type of the symbol. Add updated FIXME comment moved from...
4301 (_initialize_symtab): ... move and update FIXME comment to above.
4302
4303 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
4304
4305 * NEWS: Mention adding -q option to "info types".
4306 * symtab.c (struct info_types_options): New struct.
4307 (info_types_options_defs): New variable.
4308 (make_info_types_options_def_group): New function.
4309 (info_types_command): Use gdb::option framework to parse options.
4310 (info_types_command_completer): New function.
4311 (_initialize_symtab): Extend the help text on "info types" and
4312 register command completer.
4313
4314 2019-07-21 Christian Biesinger <cbiesinger@google.com>
4315
4316 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
4317 (lookup_symbol_in_objfile): Change int to block_enum and add a
4318 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
4319
4320 2019-07-20 Christian Biesinger <cbiesinger@google.com>
4321
4322 * MAINTAINERS (Write After Approval): Add self.
4323
4324 2019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
4325
4326 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
4327 instruction to the dummy code region.
4328
4329 2019-07-19 Tom Tromey <tromey@adacore.com>
4330
4331 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
4332 (ARGSUSED, PARAMS, __func__): Remove rules.
4333
4334 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4335
4336 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
4337 * features/arm/arm-with-iwmmxt.c: Remove.
4338 * features/arm/arm-with-iwmmxt.xml: Remove.
4339 * features/arm/arm-with-m-fpa-layout.c: Remove.
4340 * features/arm/arm-with-m-fpa-layout.xml: Remove.
4341 * features/arm/arm-with-m-vfp-d16.c: Remove.
4342 * features/arm/arm-with-m-vfp-d16.xml: Remove.
4343 * features/arm/arm-with-m.c: Remove.
4344 * features/arm/arm-with-m.xml: Remove.
4345 * features/arm/arm-with-neon.c: Remove.
4346 * features/arm/arm-with-neon.xml: Remove.
4347 * features/arm/arm-with-vfpv2.c: Remove.
4348 * features/arm/arm-with-vfpv2.xml: Remove.
4349 * features/arm/arm-with-vfpv3.c: Remove.
4350 * features/arm/arm-with-vfpv3.xml: Remove.
4351
4352 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4353
4354 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
4355
4356 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4357
4358 * arch/aarch32.c (aarch32_create_target_description): Create
4359 target descriptions using features.
4360 * arch/arm.c (arm_create_target_description)
4361 (arm_create_mprofile_target_description): Likewise.
4362 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
4363
4364 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4365
4366 * Makefile.in: Add new files.
4367 * aarch32-tdep.c: New file.
4368 * aarch32-tdep.h: New file.
4369 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
4370 Call aarch32_read_description.
4371 * arch/aarch32.c: New file.
4372 * arch/aarch32.h: New file.
4373 * arch/arm.c (arm_create_target_description)
4374 (arm_create_mprofile_target_description): New function.
4375 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
4376 (arm_create_target_description)
4377 (arm_create_mprofile_target_description): New declaration.
4378 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
4379 read_description functions.
4380 * arm-linux-nat.c (arm_linux_nat_target::read_description):
4381 Likewise.
4382 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
4383 * arm-tdep.c (tdesc_arm_list): New variable.
4384 (arm_register_g_packet_guesses): Call create description functions.
4385 (arm_read_description) (arm_read_mprofile_description): New
4386 function.
4387 * arm-tdep.h (arm_read_description)
4388 (arm_read_mprofile_description): Add declaration.
4389 * configure.tgt: Add new files.
4390
4391 2019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
4392
4393 * top.c (new_ui_command): Open specified terminal just once.
4394
4395 2019-07-18 Tom Tromey <tromey@adacore.com>
4396
4397 * symtab.c (main_name): Constify return type.
4398 * symfile.c (set_initial_language): Update.
4399 * symtab.h (main_name): Constify return type.
4400
4401 2019-07-17 Tom Tromey <tom@tromey.com>
4402
4403 * tui/tui-winsource.c (tui_update_source_window)
4404 (tui_update_source_window_as_is)
4405 (tui_update_source_windows_with_line): Remove return.
4406 * tui/tui-disasm.c (tui_show_disassem)
4407 (tui_show_disassem_and_update_source): Remove return.
4408 * tui/tui.c (tui_reset): Remove return.
4409 * tui/tui-wingeneral.c
4410 (tui_check_and_display_highlight_if_needed): Remove return.
4411
4412 2019-07-17 Tom Tromey <tom@tromey.com>
4413
4414 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
4415
4416 2019-07-17 Tom Tromey <tom@tromey.com>
4417
4418 * tui/tui-winsource.h (struct tui_exec_info_window)
4419 (struct tui_source_window_base): Move from tui-data.h.
4420 * tui/tui-winsource.c: Move many method definitions from
4421 elsewhere. Remove "structuring" comments.
4422 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
4423 (tui_source_window_base::refresh_window): Move to
4424 tui-winsource.c.
4425 * tui/tui-win.c (tui_source_window_base::refresh_all)
4426 (tui_source_window_base::update_tab_width)
4427 (tui_source_window_base::set_new_height)
4428 (tui_source_window_base::do_make_visible_with_new_height): Move to
4429 tui-winsource.c.
4430 * tui/tui-source.h: Update.
4431 * tui/tui-source.c (tui_source_window_base::reset): Move to
4432 tui-winsource.c.
4433 * tui/tui-disasm.h: Update.
4434 * tui/tui-data.h (struct tui_exec_info_window): Move to
4435 tui-winsource.h.
4436 (struct tui_source_window_base): Likewise.
4437 * tui/tui-data.c (tui_source_window_base::clear_detail)
4438 (tui_source_window_base, ~tui_source_window_base): Move to
4439 tui-winsource.c.
4440
4441 2019-07-17 Tom Tromey <tom@tromey.com>
4442
4443 * tui/tui-win.c (tui_resize_all)
4444 (tui_source_window_base::update_tab_width)
4445 (tui_adjust_win_heights): Update.
4446 (tui_win_info::make_invisible_and_set_new_height): Rename from
4447 make_invisible_and_set_new_height.
4448 * tui/tui-data.h (struct tui_win_info)
4449 <make_invisible_and_set_new_height>: New method.
4450
4451 2019-07-17 Tom Tromey <tom@tromey.com>
4452
4453 * tui/tui.c: Update.
4454 * tui/tui-source.h (struct tui_source_window): Move from
4455 tui-data.h.
4456 * tui/tui-layout.c: Update.
4457 * tui/tui-disasm.c: Update.
4458 * tui/tui-data.h (struct tui_source_window): Move to
4459 tui-source.h.
4460
4461 2019-07-17 Tom Tromey <tom@tromey.com>
4462
4463 * tui/tui-disasm.h (struct tui_disasm_window): Move from
4464 tui-data.h.
4465 * tui/tui-data.h (struct tui_disasm_window): Move to
4466 tui-disasm.h.
4467
4468 2019-07-17 Tom Tromey <tom@tromey.com>
4469
4470 * tui/tui-regs.h (struct tui_data_item_window): Move from
4471 tui-data.h.
4472 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
4473 * tui/tui-data.h (struct tui_data_item_window): Move to
4474 tui-regs.h.
4475 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
4476
4477 2019-07-17 Tom Tromey <tom@tromey.com>
4478
4479 * tui/tui.c: Update.
4480 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
4481 (tui_cmd_window::max_height): Move to tui-command.c.
4482 * tui/tui-layout.c: Update.
4483 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
4484 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
4485 tui-command.c.
4486 * tui/tui-command.h (struct tui_cmd_window): Move from
4487 tui-data.h.
4488 * tui/tui-command.c: Remove "structuring" comments.
4489 (tui_cmd_window::clear_detail)
4490 (tui_cmd_window::do_make_visible_with_new_height)
4491 (tui_cmd_window::max_height): Move from elsewhere.
4492
4493 2019-07-17 Tom Tromey <tom@tromey.com>
4494
4495 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
4496 Now static.
4497 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
4498 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
4499
4500 2019-07-17 Tom Tromey <tom@tromey.com>
4501
4502 * tui/tui.c: Update.
4503 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
4504 tui-regs.c.
4505 * tui/tui-windata.h: Remove file.
4506 * tui/tui-windata.c: Remove file.
4507 * tui/tui-win.c (tui_data_window::set_new_height)
4508 (tui_data_window::do_make_visible_with_new_height): Move to
4509 tui-regs.c.
4510 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
4511 * tui/tui-regs.c: Remove "structuring" comments.
4512 (tui_data_window::first_data_item_displayed)
4513 (tui_data_window::delete_data_content_windows)
4514 (tui_data_window::erase_data_content)
4515 (tui_data_window::display_all_data)
4516 (tui_data_window::refresh_all)
4517 (tui_data_window::do_scroll_vertical)
4518 (tui_data_window::clear_detail, tui_data_window::set_new_height)
4519 (tui_data_window::do_make_visible_with_new_height)
4520 (tui_data_window::refresh_window): Move from elsewhere.
4521 (_initialize_tui_regs): Move to end of file.
4522 * tui/tui-layout.c: Update.
4523 * tui/tui-hooks.c: Update.
4524 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
4525 * tui/tui-data.c (tui_data_window::clear_detail): Move to
4526 tui-regs.c.
4527 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
4528
4529 2019-07-17 Tom Tromey <tom@tromey.com>
4530
4531 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
4532 seen.
4533
4534 2019-07-17 Tom Tromey <tom@tromey.com>
4535
4536 * tui/tui-win.c (tui_source_window_base::set_new_height)
4537 (tui_source_window_base::do_make_visible_with_new_height): Use
4538 m_has_locator field directly.
4539 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
4540 method.
4541 (struct tui_source_window_base) <has_locator>: Likewise.
4542
4543 2019-07-17 Tom Tromey <tom@tromey.com>
4544
4545 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
4546 Don't declare.
4547 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
4548 Remove.
4549 * tui/tui-win.c (tui_source_window_base::set_new_height)
4550 (tui_source_window_base::set_new_height)
4551 (make_invisible_and_set_new_height)
4552 (tui_source_window_base::do_make_visible_with_new_height)
4553 (tui_source_window_base::do_make_visible_with_new_height):
4554 Update.
4555 * tui/tui-layout.c (show_source_disasm_command, show_data)
4556 (show_source_or_disasm_and_command): Update.
4557 * tui/tui-layout.c (show_layout): Update.
4558
4559 2019-07-17 Tom Tromey <tom@tromey.com>
4560
4561 * tui/tui-layout.c (make_data_window): Remove.
4562 (show_data): Unify creation and re-initialization cases.
4563
4564 2019-07-17 Tom Tromey <tom@tromey.com>
4565
4566 * tui/tui-layout.c (make_source_window, make_disasm_window):
4567 Remove.
4568 (show_data): Unify creation and re-initialization cases.
4569
4570 2019-07-17 Tom Tromey <tom@tromey.com>
4571
4572 * tui/tui-layout.c (make_command_window): Remove.
4573 (show_source_disasm_command, show_source_or_disasm_and_command):
4574 Unify creation and re-initialization cases.
4575
4576 2019-07-17 Tom Tromey <tom@tromey.com>
4577
4578 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
4579 creation and re-initialization cases.
4580
4581 2019-07-17 Tom Tromey <tom@tromey.com>
4582
4583 * tui/tui-regs.c (tui_get_register): Return void.
4584
4585 2019-07-17 Tom Tromey <tom@tromey.com>
4586
4587 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
4588 Simplify.
4589
4590 2019-07-17 Tom Tromey <tom@tromey.com>
4591
4592 * tui/tui-layout.c (show_source_disasm_command): Simplify window
4593 resetting.
4594
4595 2019-07-17 Tom Tromey <tom@tromey.com>
4596
4597 * tui/tui.h (tui_set_layout_by_name): Don't declare.
4598 * tui/tui-regs.c (tui_reg_layout): New function.
4599 (tui_show_registers, tui_reg_command): Use it.
4600 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
4601 (tui_layout_command): Rename from tui_set_layout_by_name. Change
4602 parameters.
4603 (tui_layout_command): Remove.
4604
4605 2019-07-17 Tom Tromey <tom@tromey.com>
4606
4607 * tui/tui-layout.h (tui/tui-layout): Return void.
4608 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
4609
4610 2019-07-17 Tom Tromey <tom@tromey.com>
4611
4612 * tui/tui-layout.c (show_source_disasm_command, show_data):
4613 Update.
4614 (reset_locator): Remove.
4615 (show_source_or_disasm_and_command): Update.
4616
4617 2019-07-17 Tom Tromey <tom@tromey.com>
4618
4619 * tui/tui-source.c (tui_source_window_base::reset): Remove
4620 win_type parameter.
4621 * tui/tui-layout.c (make_command_window, make_source_window)
4622 (make_disasm_window, make_data_window)
4623 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
4624 (reset_locator, show_source_or_disasm_and_command): Update.
4625 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
4626 win_type parameter.
4627 (struct tui_source_window_base) <reset>: Likewise.
4628
4629 2019-07-17 Tom Tromey <tom@tromey.com>
4630
4631 * tui/tui-layout.c (show_source_disasm_command): Use
4632 reset_locator.
4633 (reset_locator): New function.
4634 (init_and_make_win): Remove.
4635 (show_source_or_disasm_and_command): Use reset_locator.
4636
4637 2019-07-17 Tom Tromey <tom@tromey.com>
4638
4639 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
4640 condition.
4641 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
4642 Remove condition.
4643 * tui/tui-source.c (tui_source_window_base::reset): New method.
4644 * tui/tui-layout.c (make_command_window): Don't call
4645 init_and_make_win.
4646 (make_source_window, make_disasm_window): Don't call
4647 make_source_or_disasm_window.
4648 (make_data_window): Don't call init_and_make_win. Change calling
4649 convention.
4650 (show_source_disasm_command, show_data): Simplify.
4651 (make_source_or_disasm_window): Remove.
4652 (show_source_or_disasm_and_command): Simplify.
4653 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
4654 (struct tui_source_window_base) <reset>: Likewise.
4655 <execution_info>: Remove initializer.
4656 * tui/tui-data.c (tui_source_window_base): Initialize
4657 execution_info.
4658
4659 2019-07-17 Tom Tromey <tom@tromey.com>
4660
4661 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
4662 variable.
4663
4664 2019-07-17 Tom Tromey <tom@tromey.com>
4665
4666 * tui/tui.c (tui_rl_other_window): Update.
4667 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
4668 superclass method first. Always iterate over regs_content.
4669 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
4670 method.
4671 * tui/tui-win.c (tui_set_focus_command): Update.
4672
4673 2019-07-17 Tom Tromey <tom@tromey.com>
4674
4675 * tui/tui-win.c (tui_set_focus_command): Rename from
4676 tui_set_focus. Call tui_enable.
4677 (tui_set_focus_command): Remove.
4678
4679 2019-07-17 Tom Tromey <tom@tromey.com>
4680
4681 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
4682 refresh_window.
4683 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
4684 touchwin.
4685 (tui_data_window::refresh_window): Call refresh_window on data
4686 items. Always call superclass refresh_window.
4687 (tui_win_info::refresh): Remove.
4688 (tui_source_window_base::refresh_window): Update.
4689 (tui_refresh_all): Update.
4690 * tui/tui-layout.c (show_source_disasm_command): Remove call to
4691 refresh_window.
4692 (show_source_or_disasm_and_command): Likewise.
4693 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
4694 (struct tui_source_window_base) <refresh>: Likewise.
4695
4696 2019-07-17 Tom Tromey <tom@tromey.com>
4697
4698 * tui/tui-winsource.c (tui_clear_source_content)
4699 (tui_show_source_content): Update.
4700 * tui/tui-source.c (tui_source_window::showing_source_p): Check
4701 whether content is empty.
4702 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
4703 Remove.
4704
4705 2019-07-17 Tom Tromey <tom@tromey.com>
4706
4707 * tui/tui-winsource.c (tui_erase_source_content): Clear the
4708 window's contents.
4709 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
4710 * tui/tui-source.c (tui_set_source_content_nil): Remove.
4711
4712 2019-07-17 Tom Tromey <tom@tromey.com>
4713
4714 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
4715 (struct tui_data_item_window): Update.
4716
4717 2019-07-17 Tom Tromey <tom@tromey.com>
4718
4719 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
4720 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
4721 defines.
4722
4723 2019-07-17 Tom Tromey <tom@tromey.com>
4724
4725 * tui/tui-winsource.h (tui_erase_source_content)
4726 (tui_clear_source_content): Remove "display_prompt" parameter.
4727 * tui/tui-winsource.c (tui_update_source_window_as_is)
4728 (tui_update_source_windows_with_addr): Update.
4729 (tui_clear_source_content): Remove "display_prompt" parameter.
4730 (tui_erase_source_content): Likewise. Simplify.
4731 (tui_show_source_content): Update.
4732 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
4733 * tui/tui-stack.c (tui_show_frame_info): Update.
4734 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
4735 Remove defines.
4736
4737 2019-07-17 Tom Tromey <tom@tromey.com>
4738
4739 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
4740 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
4741 parameter.
4742 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
4743 parameter.
4744
4745 2019-07-17 Tom Tromey <tom@tromey.com>
4746
4747 * tui/tui-winsource.c (tui_clear_source_content)
4748 (tui_show_source_content, tui_show_exec_info_content)
4749 (tui_clear_exec_info_content): Update.
4750 * tui/tui-stack.c (tui_show_locator_content): Update.
4751 (tui_show_frame_info): Update.
4752 * tui/tui-source.h (tui_source_window): Don't declare.
4753 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
4754 from tui_source_is_displayed.
4755 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
4756 Remove field.
4757 (struct tui_source_window_base) <content_in_use>: New field. Now
4758 bool.
4759 (struct tui_source_window) <showing_source_p>: New method.
4760 (TUI_SRC_WIN): Change cast.
4761 * tui/tui-data.c (tui_initialize_static_data): Update.
4762
4763 2019-07-17 Tom Tromey <tom@tromey.com>
4764
4765 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
4766 location_matches_p.
4767 * tui/tui-source.c (tui_source_window::location_matches_p): New
4768 method.
4769 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
4770 method.
4771 * tui/tui-data.h (struct tui_source_window_base)
4772 <location_matches_p>: New method.
4773 (struct tui_source_window, struct tui_disasm_window)
4774 <location_matches_p>: Likewise.
4775
4776 2019-07-17 Tom Tromey <tom@tromey.com>
4777
4778 * tui/tui-win.c (tui_set_win_height_command): Rename from
4779 tui_set_win_height.
4780 (tui_set_win_height_command): Remove.
4781
4782 2019-07-17 Tom Tromey <tom@tromey.com>
4783
4784 * tui/tui-source.c (tui_source_window): New constructor. Add
4785 observer.
4786 (~tui_source_window): New destructor.
4787 (tui_source_window::style_changed): New method.
4788 * tui/tui-hooks.c (tui_redisplay_source): Remove.
4789 (tui_attach_detach_observers): Update.
4790 * tui/tui-data.h (struct tui_source_window): Make constructor not
4791 inline. Add destructor.
4792 (struct tui_source_window) <style_changed>: New method.
4793 <m_observable>: New member.
4794
4795 2019-07-17 Tom Tromey <tom@tromey.com>
4796
4797 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
4798 * tui/tui-win.c (tui_resize_all): Fix typo.
4799
4800 2019-07-17 Tom Tromey <tom@tromey.com>
4801
4802 * tui/tui-wingeneral.h (tui_refresh_all): Update.
4803 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
4804 (tui_refresh_all): Remove "list" parameter. Use foreach.
4805 * tui/tui-win.c (window_name_completer): Use foreach.
4806 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
4807 (update_tab_width): Likewise.
4808 * tui/tui-layout.c (show_layout): Update.
4809 * tui/tui-data.h (class tui_window_iterator): New.
4810 (struct all_tui_windows): New.
4811 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
4812
4813 2019-07-17 Tom Tromey <tom@tromey.com>
4814
4815 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
4816 parameter. Don't reference globals.
4817 (tui_reg_command): Update.
4818
4819 2019-07-17 Tom Tromey <tom@tromey.com>
4820
4821 * tui/tui-regs.c (tui_show_registers): Simplify.
4822
4823 2019-07-17 Tom Tromey <tom@tromey.com>
4824
4825 * tui/tui-regs.c (tui_show_registers): Update.
4826 (tui_show_register_group): Add win_info parameter.
4827
4828 2019-07-17 Tom Tromey <tom@tromey.com>
4829
4830 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
4831 Rename from tui_display_reg_element_at_line.
4832 (tui_data_window::display_registers_from_line): Update.
4833 * tui/tui-data.h (struct tui_data_window)
4834 <display_reg_element_at_line>: New method.
4835
4836 2019-07-17 Tom Tromey <tom@tromey.com>
4837
4838 * tui/tui-regs.h (tui_display_registers_from)
4839 (tui_display_registers_from_line): Don't declare.
4840 * tui/tui-windata.c (tui_data_window::display_all_data)
4841 (tui_data_window::refresh_all)
4842 (tui_data_window::do_scroll_vertical): Update.
4843 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
4844 from tui_display_registers_from.
4845 (tui_display_reg_element_at_line): Update.
4846 (tui_data_window::display_registers_from_line): Rename from
4847 tui_display_registers_from_line.
4848 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
4849 display_registers_from_line>: New methods.
4850
4851 2019-07-17 Tom Tromey <tom@tromey.com>
4852
4853 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
4854 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
4855 from tui_erase_data_content.
4856 (tui_data_window::display_all_data)
4857 (tui_data_window::refresh_all)
4858 (tui_data_window::do_scroll_vertical): Update.
4859 * tui/tui-regs.c (tui_show_registers): Update.
4860 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
4861 New method.
4862
4863 2019-07-17 Tom Tromey <tom@tromey.com>
4864
4865 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
4866 declare.
4867 * tui/tui-windata.c
4868 (tui_data_window::delete_data_content_windows): Rename from
4869 tui_delete_data_content_windows.
4870 (tui_data_window::display_all_data)
4871 (tui_data_window::do_scroll_vertical): Update.
4872 * tui/tui-data.h (struct tui_data_window)
4873 <delete_data_content_windows>: New method.
4874
4875 2019-07-17 Tom Tromey <tom@tromey.com>
4876
4877 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
4878 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
4879
4880 2019-07-17 Tom Tromey <tom@tromey.com>
4881
4882 * tui/tui-windata.h (tui_display_all_data): Don't declare.
4883 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
4884 from tui_display_all_data.
4885 * tui/tui-win.c
4886 (tui_data_window::do_make_visible_with_new_height): Update.
4887 * tui/tui-regs.c (tui_show_registers): Update.
4888 * tui/tui-layout.c (tui_set_layout): Update.
4889 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
4890 method.
4891
4892 2019-07-17 Tom Tromey <tom@tromey.com>
4893
4894 * tui/tui-windata.h (tui_display_data_from): Don't declare.
4895 * tui/tui-windata.c (tui_display_data_from): Remove.
4896 (tui_data_window::refresh_all): Update.
4897
4898 2019-07-17 Tom Tromey <tom@tromey.com>
4899
4900 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
4901 * tui/tui-windata.c (tui_display_data_from_line): Remove.
4902 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
4903 tui_display_registers_from_line.
4904 * tui/tui-regs.h (tui_display_registers_from_line): Update.
4905 * tui/tui-regs.c (tui_display_registers_from_line): Remove
4906 "force_display" parameter.
4907
4908 2019-07-17 Tom Tromey <tom@tromey.com>
4909
4910 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
4911 declare.
4912 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
4913 Rename from tui_first_reg_element_no_inline.
4914 (tui_display_reg_element_at_line)
4915 (tui_display_registers_from_line): Update.
4916 * tui/tui-data.h (struct tui_data_window)
4917 <first_reg_element_no_inline>: New method.
4918
4919 2019-07-17 Tom Tromey <tom@tromey.com>
4920
4921 * tui/tui-windata.c (tui_display_data_from)
4922 (tui_data_window::do_scroll_vertical): Update.
4923 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
4924 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
4925 Rename from tui_line_from_reg_element_no.
4926 (tui_display_registers_from_line): Update.
4927 * tui/tui-data.h (struct tui_data_window)
4928 <line_from_reg_element_no>: New method.
4929
4930 2019-07-17 Tom Tromey <tom@tromey.com>
4931
4932 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
4933 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
4934 tui_last_regs_line_no.
4935 (tui_display_reg_element_at_line)
4936 (tui_display_registers_from_line): Update.
4937 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
4938 method.
4939
4940 2019-07-17 Tom Tromey <tom@tromey.com>
4941
4942 PR tui/24722:
4943 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
4944 (tui_update_breakpoint_info): Add "being_deleted" parameter.
4945 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
4946 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
4947 (tui_update_breakpoint_info): Likewise.
4948 * tui/tui-hooks.c (tui_event_create_breakpoint)
4949 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
4950 Update.
4951
4952 2019-07-17 Tom Tromey <tom@tromey.com>
4953
4954 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
4955
4956 2019-07-17 Tom Tromey <tom@tromey.com>
4957
4958 * tui/tui-winsource.c (tui_update_source_window_as_is)
4959 (tui_update_source_windows_with_addr): Update.
4960 * tui/tui-source.h (tui_set_source_content)
4961 (tui_show_symtab_source): Add "win_info" parameter.
4962 * tui/tui-source.c (tui_set_source_content): Add "win_info"
4963 parameter.
4964 (tui_show_symtab_source): Likewise.
4965
4966 2019-07-17 Tom Tromey <tom@tromey.com>
4967
4968 * tui/tui-wingeneral.c
4969 (tui_check_and_display_highlight_if_needed): Check can_highlight.
4970
4971 2019-07-17 Tom Tromey <tom@tromey.com>
4972
4973 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
4974 (struct tui_cmd_window) <can_scroll>: New method.
4975 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
4976 method.
4977
4978 2019-07-17 Tom Tromey <tromey@adacore.com>
4979
4980 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
4981 do_field_signed>: Rename. Change type of "value".
4982 * ui-out.c (ui_out::field_signed): Rename from field_int.
4983 Change type of "value".
4984 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
4985 type of "value".
4986 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
4987 do_field_int. Change type of "value".
4988 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
4989 do_field_int. Change type of "value".
4990 * tracepoint.c (trace_status_mi, tfind_1)
4991 (print_one_static_tracepoint_marker): Update.
4992 * thread.c (print_thread_info_1, print_selected_thread_frame):
4993 Update.
4994 * stack.c (print_frame, print_frame_info): Update.
4995 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
4996 Update.
4997 * source.c (print_source_lines_base): Update.
4998 * skip.c (info_skip_command): Update.
4999 * record-btrace.c (btrace_ui_out_decode_error)
5000 (btrace_call_history_src_line): Update.
5001 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
5002 Update.
5003 * progspace.c (print_program_space): Update.
5004 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
5005 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
5006 do_field_int. Change type of "value".
5007 * mi/mi-out.c (mi_ui_out::do_table_begin)
5008 (mi_ui_out::do_table_header): Update.
5009 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
5010 type of "value".
5011 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
5012 (mi_cmd_data_list_changed_registers, output_register)
5013 (mi_cmd_data_read_memory, mi_load_progress)
5014 (mi_cmd_trace_frame_collected): Update.
5015 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
5016 Update.
5017 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
5018 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
5019 (mi_cmd_var_list_children, varobj_update_one): Update.
5020 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
5021 (mi_cmd_stack_list_args, list_arg_or_local): Update.
5022 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
5023 * inferior.c (print_inferior): Update.
5024 * gdb_bfd.c (print_one_bfd): Update.
5025 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5026 Update.
5027 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
5028 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
5029 do_field_int. Change type of "value".
5030 * cli-out.c (cli_ui_out::do_field_signed): Rename from
5031 do_field_int. Change type of "value".
5032 * breakpoint.c (watchpoint_check, print_breakpoint_location)
5033 (print_one_breakpoint_location, print_it_catch_fork)
5034 (print_one_catch_fork, print_it_catch_vfork)
5035 (print_one_catch_vfork, print_it_catch_solib)
5036 (print_it_catch_exec, print_it_ranged_breakpoint)
5037 (print_mention_watchpoint, print_mention_masked_watchpoint)
5038 (bkpt_print_it, update_static_tracepoint): Update.
5039 * break-catch-throw.c (print_it_exception_catchpoint): Update.
5040 * break-catch-syscall.c (print_it_catch_syscall): Update.
5041 * ada-tasks.c (print_ada_task_info): Update.
5042 * ada-lang.c (print_it_exception, print_mention_exception):
5043 Update.
5044
5045 2019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
5046
5047 PR breakpoints/24541
5048 * gdbarch.c: Regenerate.
5049 * gdbarch.h: Regenerate.
5050 * gdbarch.sh: Adjust return type and parameter types for
5051 'stap_adjust_register'.
5052 (i386_stap_adjust_register): Adjust signature and return new
5053 register name.
5054 * stap-probe.c (stap_parse_register_operand): Adjust use of
5055 'gdbarch_stap_adjust_register'.
5056
5057 2019-07-17 Tom Tromey <tromey@adacore.com>
5058
5059 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
5060 declare VEC.
5061 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
5062 std::vector.
5063 (struct s390_process_info): Add initializers.
5064 (s390_add_process): Use new.
5065 (s390_linux_nat_target::low_forget_process): Use delete.
5066 (s390_linux_nat_target::low_new_fork)
5067 (s390_linux_nat_target::stopped_by_watchpoint)
5068 (s390_linux_nat_target::low_prepare_to_resume)
5069 (s390_linux_nat_target::insert_watchpoint)
5070 (s390_linux_nat_target::insert_hw_breakpoint)
5071 (s390_linux_nat_target::remove_watchpoint)
5072 (s390_linux_nat_target::remove_hw_breakpoint): Update.
5073
5074 2019-07-16 John Baldwin <jhb@FreeBSD.org>
5075
5076 * aarch64-fbsd-nat.c: Include regcache.h.
5077 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
5078 argument.
5079 (aarch64_fbsd_nat_target::fetch_registers)
5080 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
5081 variable.
5082 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
5083
5084 2019-07-16 John Baldwin <jhb@FreeBSD.org>
5085
5086 * fbsd-nat.c: Include gdbarch.h.
5087
5088 2019-07-15 Tom Tromey <tromey@adacore.com>
5089
5090 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
5091
5092 2019-07-15 Tom Tromey <tromey@adacore.com>
5093
5094 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
5095 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
5096 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
5097 * cli-out.c (cli_ui_out::do_field_int): New method.
5098 * ui-out.c (ui_out::field_unsigned): New method.
5099 * symfile.c (generic_load): Use field_unsigned.
5100 (print_transfer_performance): Likewise.
5101 * record-btrace.c (ui_out_field_uint): Remove.
5102 (btrace_call_history_insn_range, btrace_call_history): Use
5103 field_unsigned.
5104 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
5105 field_unsigned.
5106 * ui-out.h (class ui_out) <field_unsigned>: New method.
5107 <do_field_unsigned>: Likewise.
5108
5109 2019-07-15 Tom Tromey <tromey@adacore.com>
5110
5111 * mi/mi-main.c (list_available_thread_groups): Use field_string.
5112 * mi/mi-interp.c (mi_memory_changed): Use field_string.
5113 * target.c (flash_erase_command): Use field_string.
5114 * infrun.c (print_signal_received_reason): Use field_string.
5115 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
5116 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
5117 field_string.
5118 * ada-tasks.c (print_ada_task_info): Use field_string.
5119
5120 2019-07-15 Tom Tromey <tromey@adacore.com>
5121
5122 * target.c (flash_erase_command): Use field_core_addr.
5123 * symfile.c (generic_load): Use field_core_addr.
5124 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
5125 Use field_core_addr.
5126 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
5127 field_core_addr.
5128
5129 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5130
5131 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
5132 value if its desired type is smaller than a CORE_ADDR and signed.
5133
5134 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5135
5136 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
5137 of changes to field names, and use new is_reference field to
5138 decide if a property is a reference or not.
5139 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
5140 field.
5141 (struct dwarf2_property_baton): Update header comment, rename
5142 'referenced_type' to 'property_type' and update comments.
5143 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
5144 default property type, store in property baton, update to take
5145 accound of renamed field.
5146 (read_func_scope): Update call to attr_to_dynamic_prop.
5147 (read_array_type): Likewise.
5148 (dwarf2_per_cu_addr_sized_int_type): New function.
5149 (read_subrange_index_type): Move type finding code to
5150 dwarf2_per_cu_addr_sized_int_type.
5151 (read_subrange_type): Update calls to attr_to_dynamic_prop.
5152 (dwarf2_per_cu_addr_type): New function.
5153 (set_die_type): Update calls to attr_to_dynamic_prop.
5154
5155 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5156
5157 * dwarf2read.c (read_subrange_index_type): New function.
5158 (read_subrange_type): Move code into new function and call it.
5159 * gdbtypes.c (create_range_type): Add some asserts.
5160
5161 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5162
5163 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
5164 update return statements.
5165 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
5166 declaration, and update comment to match.
5167 * gdbtypes.c (resolve_dynamic_array): Update call to
5168 dwarf2_evaluate_property to match new return type.
5169
5170 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5171
5172 * valarith.c (value_subscripted_rvalue): Change lowerbound
5173 parameter type from int to LONGEST.
5174 * value.h (value_subscripted_rvalue): Likewise in declaration.
5175
5176 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
5177
5178 * cli/cli-utils.c (info_print_command_completer): New function.
5179 * cli/cli-utils.h: Add 'completer.h' include, and forward
5180 declaration for 'struct cmd_list_element'.
5181 (info_print_command_completer): Declare.
5182 * stack.c (_initialize_stack): Add completer for 'info locals' and
5183 'info args'.
5184 * symtab.c (_initialize_symtab): Add completer for 'info
5185 variables' and 'info functions'.
5186 * NEWS: Mention completion for additional info commands.
5187
5188 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
5189
5190 * cli/cli-utils.c (extract_info_print_args): Delete.
5191 (extract_arg_maybe_quoted): Delete.
5192 (info_print_options_defs): New variable.
5193 (make_info_print_options_def_group): New function.
5194 (extract_info_print_options): Define new function.
5195 * cli/cli-utils.h (extract_info_print_args): Delete.
5196 (struct info_print_options): New structure.
5197 (extract_info_print_options): Declare new function.
5198 * stack.c (info_locals_command): Update to use new
5199 extract_info_print_options, also add a header comment.
5200 (info_args_command): Likewise.
5201 * symtab.c (info_variables_command): Likewise.
5202 (info_functions_command): Likewise.
5203
5204 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
5205
5206 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
5207 to extract string arguments.
5208 * common/common-utils.c (extract_string_maybe_quoted): New function.
5209 * common/common-utils.h (extract_string_maybe_quoted): Declare.
5210
5211 2019-07-11 Tom Tromey <tromey@adacore.com>
5212
5213 * main.c (get_init_files): Use GDBINIT, not gdbinit.
5214 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
5215 * top.h (gdbinit): Don't declare.
5216 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
5217 into...
5218 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
5219 * top.c (gdb_init): Don't call init_cli_cmds.
5220 (gdbinit): Remove.
5221 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
5222
5223 2019-07-11 Tom Tromey <tromey@adacore.com>
5224
5225 * python/py-inferior.c (add_thread_object): Don't use thread_obj
5226 after it has been moved.
5227
5228 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
5229
5230 * valops.c (value_must_coerce_to_target): Change return type to
5231 bool.
5232 * value.h (value_must_coerce_to_target): Likewise.
5233
5234 2019-07-10 Simon Marchi <simon.marchi@efficios.com>
5235
5236 * breakpoint.c (is_hardware_watchpoint): Remove
5237 forward-declaration.
5238 (is_masked_watchpoint): Change return type to bool.
5239 (is_tracepoint): Likewise.
5240 (is_breakpoint): Likewise.
5241 (is_hardware_watchpoint): Likewise.
5242 (is_watchpoint): Likewise.
5243 (is_no_memory_software_watchpoint): Likewise.
5244 (is_catchpoint): Likewise.
5245 (breakpoint_1): Make FILTER parameter's return type bool.
5246 is_masked_watchpoint): Change return type to bool.
5247 (save_breakpoints): Make FILTER parameter's return type bool.
5248 * breakpoint.h (is_breakpoint): Change return type to bool.
5249 (is_watchpoint): Likewise.
5250 (is_catchpoint): Likewise.
5251 (is_tracepoint): Likewise.
5252
5253 2019-07-10 Tom Tromey <tom@tromey.com>
5254
5255 * defs.h: Don't include gdbarch.h.
5256 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
5257 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
5258 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
5259 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
5260 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
5261 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
5262 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
5263 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
5264 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
5265 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
5266 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
5267 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
5268 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
5269 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
5270 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
5271 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
5272 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
5273 record-btrace.c, record.h, regcache-dump.c, regcache.h,
5274 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
5275 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
5276 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
5277 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
5278 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
5279 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
5280 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
5281 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
5282 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
5283
5284 2019-07-10 Tom Tromey <tromey@adacore.com>
5285
5286 * ada-lang.h (is_ada_exception_catchpoint): Declare.
5287 * breakpoint.c (init_ada_exception_breakpoint): Register as
5288 bp_catchpoint.
5289 (print_one_breakpoint_location, print_one_breakpoint): Use
5290 is_ada_exception_catchpoint.
5291 * ada-lang.c (class ada_catchpoint_location): Pass
5292 bp_loc_software_breakpoint to bp_location constructor.
5293 (is_ada_exception_catchpoint): New function.
5294
5295 2019-07-10 Tom Tromey <tromey@adacore.com>
5296
5297 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
5298 VEC.
5299 (struct arm_exidx_entry): New method operator<.
5300 (struct arm_exidx_data) <section_maps>: Change type.
5301 (arm_exidx_data_free): Remove.
5302 (arm_exidx_data_key): Change type. Move lower.
5303 (arm_exidx_new_objfile): Update.
5304 (arm_compare_exidx_entries): Remove.
5305 (arm_find_exidx_entry, _initialize_arm_tdep)
5306
5307 2019-07-10 Tom Tromey <tromey@adacore.com>
5308
5309 * solib-spu.c (ocl_program_data_key): Change type.
5310 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
5311 Update.
5312
5313 2019-07-10 Tom Tromey <tromey@adacore.com>
5314
5315 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
5316 (struct solib_aix_inferior_data) <library_list>: Change type.
5317 (solib_aix_inferior_data_handle): Change type.
5318 (get_solib_aix_inferior_data): Update.
5319 (solib_aix_free_library_list): Remove.
5320 (library_list_start_library): Update.
5321 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
5322 return type.
5323 (solib_aix_get_library_list)
5324 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
5325 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
5326
5327 2019-07-10 Tom Tromey <tromey@adacore.com>
5328
5329 * solib-dsbt.c (struct dsbt_info): Add initializers.
5330 (solib_dsbt_pspace_data): Change type.
5331 (dsbt_pspace_data_cleanup): Remove.
5332 (get_dsbt_info, _initialize_dsbt_solib): Update.
5333
5334 2019-07-10 Tom Tromey <tromey@adacore.com>
5335
5336 * spu-tdep.c (spu_overlay_data): Change type.
5337 (spu_get_overlay_table, spu_overlay_new_objfile)
5338 (_initialize_spu_tdep): Update.
5339
5340 2019-07-10 Tom Tromey <tromey@adacore.com>
5341
5342 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
5343 destructor.
5344 (dbx_objfile_data_key): Change type and declare later.
5345 (DBX_SYMFILE_INFO): Rewrite.
5346 * dbxread.c (dbx_objfile_data_key): Change type.
5347 (dbx_symfile_init): Update.
5348 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
5349 (coffstab_build_psymtabs, elfstab_build_psymtabs)
5350 (stabsect_build_psymtabs, _initialize_dbxread): Update.
5351
5352 2019-07-10 Tom Tromey <tromey@adacore.com>
5353
5354 * jit.c (jit_program_space_key): Change type. Move lower.
5355 (get_jit_program_space_data): Update.
5356 (jit_program_space_data_cleanup): Remove.
5357 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
5358 Update.
5359 (struct jit_program_space_data): Add initializers.
5360
5361 2019-07-10 Tom Tromey <tromey@adacore.com>
5362
5363 * solib-darwin.c (struct darwin_info): Add initializers.
5364 (solib_darwin_pspace_data): Change type.
5365 (darwin_pspace_data_cleanup): Remove.
5366 (get_darwin_info, _initialize_darwin_solib): Update.
5367
5368 2019-07-10 Tom Tromey <tromey@adacore.com>
5369
5370 * remote-sim.c (struct sim_inferior_data): Add initializers,
5371 constructor, and destructor.
5372 (sim_inferior_data_key): Change type. Move lower.
5373 (check_for_duplicate_sim_descriptor): Update.
5374 (get_sim_inferior_data): Use new. Update.
5375 (~sim_inferior_data_cleanup): Rename from
5376 sim_inferior_data_cleanup. Simplify.
5377 (gdbsim_close_inferior, simulator_command)
5378 (sim_command_completer, _initialize_remote_sim): Update.
5379 (next_pid, INITIAL_PID): Move earlier.
5380
5381 2019-07-10 Tom Tromey <tromey@adacore.com>
5382
5383 * python/python-internal.h (create_thread_object): Return
5384 gdbpy_ref.
5385 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
5386 * python/py-inferior.c (struct threadlist_entry): Add
5387 constructor.
5388 <thread_obj>: Now a gdbpy_ref.
5389 (thread_to_thread_object): Update.
5390 (add_thread_object): Use new.
5391 (delete_thread_object): Use delete.
5392 (infpy_threads): Update.
5393 (py_free_inferior): Update. Construct "inf_obj" after acquiring
5394 GIL.
5395
5396 2019-07-10 Tom Tromey <tromey@adacore.com>
5397
5398 * valops.c (value_cast): Specialize error message for Ada.
5399
5400 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
5401
5402 * breakpoint.c (breakpoint_1): Update doc and parameter names.
5403
5404 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
5405
5406 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
5407 bpstat_should_step): Return bool, adjust comments.
5408 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
5409 bpstat_should_step): Likewise.
5410
5411 2019-07-10 Alan Hayward <alan.hayward@arm.com>
5412
5413 * features/Makefile: Use feature target descriptions for Arm.
5414 * features/arm/arm-core.c: Generate new file.
5415 * features/arm/arm-fpa.c: Likewise.
5416 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
5417 * features/arm/arm-m-profile.c: Likewise.
5418 * features/arm/arm-vfpv2.c: Likewise.
5419 * features/arm/arm-vfpv3.c: Likewise.
5420 * features/arm/xscale-iwmmxt.c: Likewise.
5421 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
5422
5423 2019-07-10 Alan Hayward <alan.hayward@arm.com>
5424
5425 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
5426 ptrace earlier.
5427
5428 2019-07-10 Alan Hayward <alan.hayward@arm.com>
5429
5430 * features/aarch64-pauth.c: Regenerate.
5431
5432 2019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
5433
5434 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
5435 bool.
5436 (bpstat_what): Use false instead of 0.
5437
5438 2019-07-09 Pedro Alves <palves@redhat.com>
5439
5440 * break-catch-throw.c (is_exception_catchpoint): New.
5441 * breakpoint.c (print_one_breakpoint_location): New parameter
5442 'raw_loc'. Handle it. Use
5443 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
5444 looking at the breakpoint's type.
5445 (print_one_breakpoint): If handling "maint info breakpoints", also
5446 print locations of exception catchpoints.
5447 * breakpoint.h (is_exception_catchpoint): Declare.
5448
5449 2019-07-09 Pedro Alves <palves@redhat.com>
5450
5451 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
5452 "addr" field.
5453 (allocate_location_exception_catchpoint): New.
5454 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
5455 (initialize_throw_catchpoint_ops): Install
5456 allocate_location_exception_catchpoint as allocate_location
5457 method.
5458 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
5459 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
5460 bp_loc_other.
5461 (breakpoint_address_is_meaningful): Delete.
5462 (bl_address_is_meaningful): New.
5463 (breakpoint_locations_match): Adjust comment.
5464 (bp_location_from_bp_type): New, factored out of...
5465 (bp_location::bp_location(breakpoint *)): ... this.
5466 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
5467 factored out of...
5468 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
5469 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
5470 breakpoint_address_is_meaningful.
5471 (bp_locations_compare): Adjust comment.
5472 (update_global_location_list): Use bl_address_is_meaningful
5473 instead of breakpoint_address_is_meaningful.
5474 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
5475 explicit.
5476 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
5477 * python/py-breakpoint.c (bppy_get_location): No longer check
5478 whether location is null.
5479
5480 2019-07-09 Pedro Alves <palves@redhat.com>
5481
5482 PR c++/15468
5483 * breakpoint.c (print_one_breakpoint_location): Remove
5484 single-location assert.
5485
5486 2019-07-09 Tom Tromey <tom@tromey.com>
5487
5488 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
5489 * configure: Rebuild.
5490 * configure.ac: Change common to gdbsupport.
5491 * gdbsupport: Rename from common.
5492 * acinclude.m4: Change common to gdbsupport.
5493 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
5494 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
5495 gdbsupport.
5496 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
5497 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
5498 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
5499 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
5500 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
5501 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
5502 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
5503 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
5504 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
5505 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
5506 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
5507 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
5508 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
5509 coff-pe-read.c, command.h, compile/compile-c-support.c,
5510 compile/compile-c.h, compile/compile-cplus-symbols.c,
5511 compile/compile-cplus-types.c, compile/compile-cplus.h,
5512 compile/compile-loc2c.c, compile/compile.c, completer.c,
5513 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
5514 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
5515 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
5516 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
5517 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
5518 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
5519 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
5520 features/aarch64-core.c, features/aarch64-fpu.c,
5521 features/aarch64-pauth.c, features/aarch64-sve.c,
5522 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
5523 features/i386/32bit-core.c, features/i386/32bit-linux.c,
5524 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
5525 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
5526 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
5527 features/i386/64bit-core.c, features/i386/64bit-linux.c,
5528 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
5529 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
5530 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
5531 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
5532 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
5533 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
5534 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
5535 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
5536 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
5537 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
5538 go32-nat.c, guile/guile.c, guile/scm-ports.c,
5539 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
5540 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
5541 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
5542 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
5543 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
5544 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
5545 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
5546 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
5547 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
5548 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
5549 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
5550 minsyms.c, mips-linux-tdep.c, namespace.h,
5551 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
5552 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
5553 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
5554 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
5555 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
5556 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
5557 nat/linux-waitpid.c, nat/mips-linux-watch.c,
5558 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
5559 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
5560 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
5561 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
5562 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
5563 procfs.c, producer.c, progspace.h, psymtab.h,
5564 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
5565 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
5566 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
5567 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
5568 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
5569 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
5570 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
5571 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
5572 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
5573 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
5574 target-memory.c, target.c, target.h, target/waitstatus.c,
5575 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
5576 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
5577 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
5578 unittests/array-view-selftests.c,
5579 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
5580 unittests/common-utils-selftests.c,
5581 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
5582 unittests/format_pieces-selftests.c,
5583 unittests/function-view-selftests.c,
5584 unittests/lookup_name_info-selftests.c,
5585 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
5586 unittests/mkdir-recursive-selftests.c,
5587 unittests/observable-selftests.c,
5588 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
5589 unittests/parse-connection-spec-selftests.c,
5590 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
5591 unittests/scoped_fd-selftests.c,
5592 unittests/scoped_mmap-selftests.c,
5593 unittests/scoped_restore-selftests.c,
5594 unittests/string_view-selftests.c, unittests/style-selftests.c,
5595 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
5596 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
5597 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
5598 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
5599 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
5600 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
5601
5602 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5603
5604 * linespec.c (decode_digits_list_mode): Set explicit_line to a
5605 bool value.
5606 (decode_digits_ordinary): Set explicit_line field in sal.
5607 * symtab.c (skip_prologue_sal): Don't skip prologue for a
5608 symtab_and_line that was set on an explicit line number in
5609 assembler code. Do always update the recorded symtab and line if
5610 we do skip the prologue.
5611
5612 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5613
5614 * breakpoint.c (set_breakpoint_location_function): Remove
5615 explicit_loc parameter.
5616 (momentary_breakpoint_from_master): Update call to
5617 set_breakpoint_location_function.
5618 (add_location_to_breakpoint): Likewise.
5619
5620 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5621
5622 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
5623 required features based on default bfd type when no specific bfd
5624 is present.
5625
5626 2019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5627
5628 * NEWS: Mention that GDB printf and eval commands can now print
5629 C-style and Ada-style convenience var strings without
5630 calling the inferior.
5631 * printcmd.c (printf_c_string): Locally print GDB internal var
5632 instead of transiting via the inferior.
5633 (printf_wide_c_string): Likewise.
5634
5635 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5636
5637 PR breakpoints/25011
5638 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
5639
5640 2019-07-04 Tom Tromey <tom@tromey.com>
5641
5642 PR tui/24724:
5643 * tui/tui-winsource.c (tui_clear_source_content): Update.
5644 (tui_source_window_base::set_is_exec_point_at): Fix comment.
5645 (tui_update_breakpoint_info): Update.
5646 (tui_set_exec_info_content): Update.
5647 * tui/tui-source.c (tui_set_source_content_nil): Update.
5648 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
5649 has_break.
5650 * tui/tui-data.h (enum tui_bp_flag): New.
5651 (tui_bp_flags): New enum flags type.
5652 (struct tui_source_element) <break_mode>: Change type. Rename
5653 from has_break.
5654 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
5655 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
5656 constants.
5657 * tui/tui-winsource.h: Fix comment.
5658
5659 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5660
5661 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
5662 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
5663 (store_fpregs_to_thread)
5664 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
5665 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
5666 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
5667 (IWMMXT_REGS_SIZE): Add define.
5668 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
5669 (fetch_vfp_regs, store_vfp_regs)
5670 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
5671 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
5672
5673 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5674
5675 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
5676 defines.
5677 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
5678 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
5679 (ARM_INT_REGISTER_SIZE): ...to this.
5680 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
5681 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
5682 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
5683 (arm_linux_collect_gregset, supply_nwfpe_register)
5684 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
5685 defines.
5686 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
5687 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
5688 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
5689 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
5690 (arm_return_in_memory, arm_store_return_value)
5691 (arm_get_longjmp_target, arm_register_g_packet_guesses)
5692 (arm_record_ld_st_multiple): Likewise.
5693 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
5694 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
5695
5696 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5697
5698 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
5699 AARCH64_DISPLACED_MODIFIED_INSNS.
5700 * aarch64-tdep.c (struct aarch64_displaced_step_data)
5701 (aarch64_displaced_step_copy_insn): Likewise.
5702 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
5703 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
5704 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
5705 ARM_DISPLACED_MODIFIED_INSNS.
5706 * arm-tdep.c (arm_gdbarch_init): Likewise.
5707 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
5708 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
5709 (struct arm_displaced_step_closure): Use
5710 ARM_DISPLACED_MODIFIED_INSNS.
5711
5712 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5713
5714 * features/Makefile: Remove unused xml files.
5715 * features/aarch64.xml: Remove.
5716 * features/i386/amd64-avx-avx512-linux.xml: Remove.
5717 * features/i386/amd64-avx-avx512.xml: Remove.
5718 * features/i386/amd64-avx-linux.xml: Remove.
5719 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
5720 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
5721 * features/i386/amd64-avx-mpx-linux.xml: Remove.
5722 * features/i386/amd64-avx-mpx.xml: Remove.
5723 * features/i386/amd64-avx.xml: Remove.
5724 * features/i386/amd64-linux.xml: Remove.
5725 * features/i386/amd64-mpx-linux.xml: Remove.
5726 * features/i386/amd64-mpx.xml: Remove.
5727 * features/i386/amd64.xml: Remove.
5728 * features/i386/i386-avx-avx512-linux.xml: Remove.
5729 * features/i386/i386-avx-avx512.xml: Remove.
5730 * features/i386/i386-avx-linux.xml: Remove.
5731 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
5732 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
5733 * features/i386/i386-avx-mpx-linux.xml: Remove.
5734 * features/i386/i386-avx-mpx.xml: Remove.
5735 * features/i386/i386-avx.xml: Remove.
5736 * features/i386/i386-linux.xml: Remove.
5737 * features/i386/i386-mmx-linux.xml: Remove.
5738 * features/i386/i386-mmx.xml: Remove.
5739 * features/i386/i386-mpx-linux.xml: Remove.
5740 * features/i386/i386-mpx.xml: Remove.
5741 * features/i386/i386.xml: Remove.
5742 * features/i386/x32-avx-avx512-linux.xml: Remove.
5743 * features/i386/x32-avx-linux.xml: Remove.
5744 * features/i386/x32-linux.xml: Remove.
5745
5746 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5747
5748 * regformats/aarch64.dat: Remove.
5749 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
5750 * regformats/i386/amd64-avx-linux.dat: Remove.
5751 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
5752 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
5753 * regformats/i386/amd64-linux.dat: Remove.
5754 * regformats/i386/amd64-mpx-linux.dat: Remove.
5755 * regformats/i386/amd64.dat: Remove.
5756 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
5757 * regformats/i386/i386-avx-linux.dat: Remove.
5758 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
5759 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
5760 * regformats/i386/i386-linux.dat: Remove.
5761 * regformats/i386/i386-mmx-linux.dat: Remove.
5762 * regformats/i386/i386-mpx-linux.dat: Remove.
5763 * regformats/i386/i386.dat: Remove.
5764 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
5765 * regformats/i386/x32-avx-linux.dat: Remove.
5766 * regformats/i386/x32-linux.dat: Remove.
5767
5768 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5769
5770 * aarch64-tdep.c: Remove xml self tests.
5771 * amd64-linux-tdep.c: Likewise.
5772 * amd64-tdep.c: Likewise.
5773 * i386-linux-tdep.c: Likewise.
5774 * i386-tdep.c: Likewise.
5775
5776 2019-07-03 Pedro Alves <palves@redhat.com>
5777
5778 PR cli/24732
5779 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
5780 (pipe_cmd_option_defs): New.
5781 (make_pipe_cmd_options_def_group): New.
5782 (pipe_command): Use gdb::option::process_options.
5783 (pipe_command_completer): New function.
5784 (_initialize_cli_cmds): Install completer for "pipe" command.
5785
5786 2019-07-03 Pedro Alves <palves@redhat.com>
5787
5788 * cli/cli-option.c (union option_value) <string>: New field.
5789 (struct option_def_and_value): Add ctor, move ctor, dtor and
5790 use DISABLE_COPY_AND_ASSIGN.
5791 (option_def_and_value::clear_value): New.
5792 (parse_option, save_option_value_in_ctx, get_val_type_str)
5793 (add_setshow_cmds_for_options): Handle var_string.
5794 * cli-option.h (union option_def::var_address) <string>: New
5795 field.
5796 (struct string_option_def): New.
5797 * maint-test-options.c (struct test_options_opts): Add default
5798 ctor and use DISABLE_COPY_AND_ASSIGN.
5799 <string_opt>: New field.
5800 (test_options_opts::~test_options_opts): New.
5801 (test_options_opts::dump): Also dump "-string".
5802 (test_options_option_defs): Install "string.
5803
5804 2019-07-03 Pedro Alves <palves@redhat.com>
5805
5806 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
5807 option_value with a null enumeration.
5808 (complete_options): Save the option values in the context.
5809 (save_option_value_in_ctx): New, factored out from ...
5810 (process_options): ... here.
5811 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
5812 of the function.
5813 * maint-test-options.c (test_options_opts::dump): New, factored
5814 out from ...
5815 (maintenance_test_options_command_mode): ... here.
5816 (maintenance_test_options_command_completion_result): Delete.
5817 (maintenance_test_options_command_completion_text): Update
5818 comment.
5819 (maintenance_show_test_options_completion_result): Change
5820 prototype. Just print
5821 maintenance_test_options_command_completion_text.
5822 (save_completion_result): New.
5823 (maintenance_test_options_completer_mode): Pass options context to
5824 complete_options, and then save a dump.
5825 (_initialize_maint_test_options): Use add_cmd to install "maint
5826 show test-options-completion-result".
5827
5828 2019-07-03 Pedro Alves <palves@redhat.com>
5829
5830 * NEWS (New commands): Mention "with" and "maint with".
5831 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
5832 (with_command, with_command_completer): New.
5833 (pipe_command): Adjust to new repeat_previous
5834 interface.
5835 (_initialize_cli_cmds): Install the "with" command and its "w"
5836 alias.
5837 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
5838 declarations.
5839 * cli/cli-setshow.c (parse_cli_var_uinteger)
5840 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
5841 argument strings for all var_types.
5842 (get_setshow_command_value_string): New, factored out from ...
5843 (do_show_command): ... this.
5844 * cli/cli-setshow.h: Include <string>.
5845 (get_setshow_command_value_string): Declare.
5846 * command.h (repeat_previous): Now returns const char *. Adjust
5847 comment.
5848 * maint.c: Include "cli/cli-cmds.h".
5849 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
5850 (_initialize_maint_cmds): Register the "maintenance with" command.
5851 * top.c (repeat_previous): Move bits from pipe_command here:
5852 Return the saved command line, if any; error out if there's no
5853 command to relaunch.
5854
5855 2019-07-03 Pedro Alves <palves@redhat.com>
5856
5857 * NEWS (New commands): Mention "maint set/show test-settings"
5858 instead of "maint test-settings".
5859 * maint-test-settings.c (maintenance_test_settings_list): Delete.
5860 (maintenance_test_settings_set_list): Rename to ...
5861 (maintenance_set_test_settings_list): ... this.
5862 (maintenance_test_settings_show_list): Rename to ...
5863 (maintenance_show_test_settings_list): ... this.
5864 (maintenance_test_settings_cmd): Delete.
5865 (maintenance_test_settings_set_cmd): ...
5866 (maintenance_set_test_settings_cmd): ... this.
5867 (maintenance_test_settings_show_cmd): ...
5868 (maintenance_show_test_settings_cmd): ... this.
5869 (maintenance_test_settings_show_value_cmd):
5870 (maintenance_show_test_settings_value_cmd): ... this.
5871 (_initialize_maint_test_settings): No longer install the "maint
5872 test-settings" prefix command. Rename "maint test-settings set"
5873 to "maint set test-settings", and "maint test-settings show" to
5874 "maint show test-settings". Adjust all subcommands.
5875
5876 2019-07-03 Pedro Alves <palves@redhat.com>
5877
5878 * maint-test-settings.c: Fix file's intro comment. Replace all
5879 references to "test-options" with references to "test-settings",
5880 in comments.
5881
5882 2019-07-03 Pedro Alves <palves@redhat.com>
5883
5884 * maint-test-settings.c (maintenance_test_settings_xxx)
5885 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
5886 New.
5887 (maintenance_test_settings_enums): Use them.
5888 (maintenance_test_settings_enum): Default to
5889 maintenance_test_settings_xxx.
5890 (_initialize_maint_test_settings): Initialize
5891 MAINTENANCE_TEST_SETTINGS_FILENAME.
5892
5893 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5894
5895 * breakpoint.h (remove_breakpoints_inf): Change return type to
5896 void, move function documentation here.
5897 * breakpoint.c (remove_breakpoints_inf): Change return type to
5898 void, move function documentation to header.
5899
5900 2019-07-02 Pedro Alves <palves@redhat.com>
5901
5902 * NEWS (Completion improvements): Mention "info threads".
5903 * thread.c (struct info_threads_opts, info_threads_option_defs)
5904 (make_info_threads_options_def_group): New.
5905 (info_threads_command): Use gdb::option::process_options.
5906 (info_threads_command_completer): New.
5907 (_initialize_thread): Use gdb::option::build_help to build the
5908 help text for "info threads".
5909
5910 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5911
5912 * defs.h (generic_load): Move from here...
5913 * symfile.h (generic_load): ... to here. Rename name parameter
5914 to args.
5915 * symfile.c (generic_load): Add comment.
5916
5917 2019-07-01 Tom Tromey <tromey@adacore.com>
5918
5919 * dwarf2read.c
5920 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
5921 declaration of without_params. Fix formatting.
5922
5923 2019-07-01 Tom Tromey <tromey@adacore.com>
5924
5925 * ada-exp.y (find_primitive_type): Update.
5926 * ada-lang.h (ada_lookup_symbol): Update.
5927 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
5928 parameter.
5929 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
5930
5931 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
5932
5933 PR breakpoints/24541
5934 * gdbarch.c: Regenerate.
5935 * gdbarch.h: Regenerate.
5936 * gdbarch.sh: Add 'stap_adjust_register'.
5937 * i386-tdep.c: Include '<unordered_set>'.
5938 (i386_stap_adjust_register): New function.
5939 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
5940 * stap-probe.c (stap_parse_register_operand): Call
5941 'gdbarch_stap_adjust_register'.
5942
5943 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
5944
5945 PR python/24742
5946 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
5947 * python/python.c (do_start_initialization): Use 'xmalloc'
5948 instead of 'PyMem_Malloc'.
5949
5950 2019-06-28 Tom Tromey <tromey@adacore.com>
5951
5952 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
5953 for Ada.
5954
5955 2019-06-27 Tom Tromey <tromey@adacore.com>
5956
5957 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
5958 objfile_key.
5959 (arm_find_mapping_symbol, arm_record_special_symbol)
5960 (_initialize_arm_tdep): Update.
5961 (arm_objfile_data_free): Remove.
5962
5963 2019-06-27 Tom Tromey <tromey@adacore.com>
5964
5965 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
5966 to cp_print_static_field.
5967
5968 2019-06-26 Tom Tromey <tromey@adacore.com>
5969
5970 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
5971 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
5972 declare.
5973
5974 2019-06-26 Alan Hayward <alan.hayward@arm.com>
5975
5976 * features/aarch64-core.c (create_feature_aarch64_core):
5977 Regenerate.
5978 * features/aarch64-core.xml: Add cpsr flags.
5979
5980 2019-06-26 Alan Hayward <alan.hayward@arm.com>
5981
5982 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
5983 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
5984
5985 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
5986
5987 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
5988 field.
5989 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
5990 use.
5991 (arm_record_special_symbol): Don't insert new symbol in sorted
5992 position, push it at the end.
5993
5994 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
5995
5996 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
5997 (arm_mapping_symbol_s): Remove.
5998 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
5999 (arm_mapping_symbol_vec): New typedef.
6000 (struct arm_per_objfile): Add constructor.
6001 <section_maps>: Change type to
6002 std::unique_ptr<arm_mapping_symbol_vec[]>.
6003 (arm_compare_mapping_symbols): Remove.
6004 (arm_find_mapping_symbol): Adjust to section_maps type change.
6005 (arm_objfile_data_free): Call delete on arm_per_objfile.
6006 (arm_record_special_symbol): Adjust to section_maps type change.
6007 Allocate arm_per_objfile with new.
6008
6009 2019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6010
6011 * cli/cli-cmds.c (alias_command): Compare the alias prefix
6012 with the command prefix.
6013
6014 2019-06-25 Tom Tromey <tom@tromey.com>
6015
6016 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
6017 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
6018
6019 2019-06-25 Tom Tromey <tom@tromey.com>
6020
6021 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
6022 type.
6023 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
6024 protected.
6025
6026 2019-06-25 Tom Tromey <tom@tromey.com>
6027
6028 * tui/tui-winsource.c
6029 (tui_source_window_base::set_is_exec_point_at): Add check against
6030 LOA_ADDRESS.
6031
6032 2019-06-25 Tom Tromey <tom@tromey.com>
6033
6034 * tui/tui-source.c (tui_set_source_content): Don't check before
6035 xfree.
6036 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
6037
6038 2019-06-25 Tom Tromey <tom@tromey.com>
6039
6040 * tui/tui-winsource.h (tui_update_source_window_as_is)
6041 (tui_alloc_source_buffer, tui_line_is_displayed)
6042 (tui_addr_is_displayed): Change type of win_info.
6043 * tui/tui-winsource.c (tui_update_source_window_as_is)
6044 (tui_clear_source_content, tui_show_source_line)
6045 (tui_show_source_content, tui_source_window_base::refill)
6046 (tui_source_window_base::set_is_exec_point_at)
6047 (tui_source_window_base::set_is_exec_point_at)
6048 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
6049 (tui_alloc_source_buffer, tui_line_is_displayed)
6050 (tui_addr_is_displayed): Change type of win_info. Update.
6051 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
6052 (tui_source_window_base::do_make_visible_with_new_height):
6053 Update.
6054 * tui/tui-source.c (tui_set_source_content)
6055 (tui_set_source_content_nil)
6056 (tui_source_window::do_scroll_vertical): Update.
6057 * tui/tui-layout.c (show_layout): Update.
6058 * tui/tui-disasm.c (tui_set_disassem_content)
6059 (tui_disasm_window::do_scroll_vertical): Update.
6060 * tui/tui-data.h (tui_win_content): Remove.
6061 (struct tui_gen_win_info) <content, content_size>: Remove.
6062 (struct tui_source_element): Add initializers and destructor.
6063 (union tui_which_element, struct tui_win_element): Remove.
6064 (struct tui_source_window_base) <content>: New field.
6065 (struct tui_data_window): Remove destructor.
6066 (tui_alloc_content, tui_free_win_content)
6067 (tui_free_all_source_wins_content): Don't declare.
6068 * tui/tui-data.c (tui_initialize_static_data): Update.
6069 (init_content_element, tui_alloc_content): Remove.
6070 (~tui_gen_win_info): Update.
6071 (~tui_data_window, tui_free_all_source_wins_content)
6072 (tui_free_win_content, free_content, free_content_elements):
6073 Remove.
6074
6075 2019-06-25 Tom Tromey <tom@tromey.com>
6076
6077 * tui/tui-winsource.h (tui_clear_source_content)
6078 (tui_erase_source_content, tui_show_source_content): Change type
6079 of win_info.
6080 * tui/tui-winsource.c (tui_clear_source_content)
6081 (tui_erase_source_content, tui_show_source_content): Change type
6082 of win_info.
6083 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
6084 * tui/tui-source.h (tui_set_source_content_nil): Change type of
6085 win_info.
6086 * tui/tui-source.c (tui_set_source_content_nil): Change type of
6087 win_info.
6088 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
6089
6090 2019-06-25 Tom Tromey <tom@tromey.com>
6091
6092 * tui/tui-winsource.c (tui_clear_source_content)
6093 (tui_source_window_base::set_is_exec_point_at): Update.
6094 * tui/tui-source.c (tui_set_source_content_nil): Update.
6095 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
6096 a bool.
6097 * tui/tui-data.c (init_content_element): Update.
6098
6099 2019-06-25 Tom Tromey <tom@tromey.com>
6100
6101 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
6102 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
6103 * tui/tui-layout.c (init_and_make_win): Update.
6104 * tui/tui.h (enum tui_win_type): Update.
6105 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
6106 tui_win_is_auxillary.
6107 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
6108 tui_win_is_auxillary.
6109
6110 2019-06-25 Tom Tromey <tom@tromey.com>
6111
6112 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
6113 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
6114 (tui_delete_data_content_windows, tui_display_all_data)
6115 (tui_data_window::do_scroll_vertical, tui_display_data_from):
6116 Update.
6117 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
6118 * tui/tui-regs.c (tui_last_regs_line_no)
6119 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
6120 (tui_show_registers): Update.
6121 (tui_show_register_group): Return void. Update.
6122 (tui_display_registers_from, tui_display_reg_element_at_line)
6123 (tui_display_registers_from_line, tui_check_register_values):
6124 Update.
6125 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
6126 member.
6127 (struct tui_data_window) <regs_content>: Now a std::vector.
6128 <regs_content_count>: Remove.
6129 (tui_add_content_elements, tui_free_data_content): Don't declare.
6130 * tui/tui-data.c (tui_data_window::clear_detail): Update.
6131 (init_content_element): Remove DATA_WIN case. Add assert.
6132 (tui_add_content_elements): Remove.
6133 (tui_data_window): Update.
6134 (tui_free_data_content): Remove.
6135 (free_content_elements): Remove DATA_WIN case.
6136
6137 2019-06-25 Tom Tromey <tom@tromey.com>
6138
6139 * tui/tui-data.c (tui_data_item_window): Update.
6140 * tui/tui-windata.h (tui_check_data_values): Don't declare.
6141 * tui/tui-windata.c (tui_display_all_data)
6142 (tui_display_data_from_line): Update.
6143 (tui_check_data_values): Remove.
6144 * tui/tui-regs.c (tui_show_register_group)
6145 (tui_display_reg_element_at_line): Update.
6146 * tui/tui-hooks.c (tui_register_changed)
6147 (tui_refresh_frame_and_register_information): Call
6148 tui_check_register_values.
6149 * tui/tui-data.h (struct tui_data_window) <data_content,
6150 data_content_count, data_type>: Remove.
6151 (enum tui_data_type): Remove.
6152
6153 * tui/tui-data.c (tui_data_window::clear_detail)
6154 (~tui_data_window): Update.
6155
6156 2019-06-25 Tom Tromey <tom@tromey.com>
6157
6158 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
6159 declare.
6160 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
6161 Rename from tui_first_data_item_displayed. Update.
6162 (tui_data_window::refresh_all)
6163 (tui_data_window::do_scroll_vertical): Update.
6164 * tui/tui-data.h (struct tui_data_window)
6165 <first_data_item_displayed>: Declare new method.
6166
6167 2019-06-25 Tom Tromey <tom@tromey.com>
6168
6169 * tui/tui-data.h (tui_init_generic_part): Don't declare.
6170 * tui/tui-data.c (tui_init_generic_part): Remove, moving
6171 contents...
6172 (tui_initialize_static_data): ...here.
6173
6174 2019-06-25 Tom Tromey <tom@tromey.com>
6175
6176 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
6177 (tui_display_registers_from, tui_check_register_values): Update.
6178 (tui_display_register): Remove win_info parameter; update.
6179 (tui_get_register): Change type of parameters.
6180 * tui/tui-data.h (struct tui_data_element): Remove.
6181 (union tui_which_element) <data>: Remove.
6182 <data_window>: Change type.
6183 (struct tui_data_item_window): New.
6184 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
6185 case. Add assert.
6186 (~tui_data_item_window): New destructor.
6187 (free_content_elements): Remove DATA_ITEM_WIN case.
6188
6189 2019-06-25 Tom Tromey <tom@tromey.com>
6190
6191 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
6192 Remove.
6193
6194 2019-06-25 Tom Tromey <tom@tromey.com>
6195
6196 * tui/tui-data.h (struct tui_command_element): Remove.
6197 (union tui_which_element) <command>: Remove.
6198 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
6199 assert.
6200 (free_content_elements): Remove CMD_WIN case.
6201
6202 2019-06-25 Tom Tromey <tom@tromey.com>
6203
6204 * tui/tui-layout.c (tui_set_layout): Update.
6205 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
6206 * tui/tui-data.c (layout_def): Update.
6207
6208 2019-06-25 Tom Tromey <tom@tromey.com>
6209
6210 * tui/tui-wingeneral.c (tui_refresh_all): Update.
6211 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
6212 (tui_source_window_base::set_new_height): Update.
6213 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
6214 Update.
6215 (tui_set_locator_fullname, tui_set_locator_info)
6216 (tui_show_frame_info): Update.
6217 * tui/tui-source.c (tui_set_source_content)
6218 (tui_source_is_displayed): Update.
6219 * tui/tui-layout.c (show_source_disasm_command, show_data)
6220 (show_source_or_disasm_and_command): Update.
6221 * tui/tui-disasm.c (tui_set_disassem_content)
6222 (tui_get_begin_asm_address): Update.
6223 * tui/tui-data.h (struct tui_locator_element): Remove.
6224 (union tui_which_element) <locator>: Remove.
6225 (struct tui_locator_window): New.
6226 (tui_locator_win_info_ptr): Change return type.
6227 * tui/tui-data.c (_locator): Change type.
6228 (tui_locator_win_info_ptr): Change return type.
6229 (init_content_element): Remove LOCATOR_WIN case. Add assert.
6230 (tui_alloc_content): Add assert.
6231
6232 2019-06-25 Tom Tromey <tom@tromey.com>
6233
6234 * tui/tui-winsource.c
6235 (tui_exec_info_window::maybe_allocate_content): New method.
6236 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
6237 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
6238 (make_source_or_disasm_window): Add cast.
6239 * tui/tui-data.h (union tui_which_element) <simple_string>:
6240 Remove.
6241 (struct tui_source_info): New.
6242 (struct tui_source_window_base) <execution_info>: Change type.
6243 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
6244 case, and add assert.
6245 (tui_alloc_content): Add assert.
6246
6247 2019-06-25 Tom Tromey <tom@tromey.com>
6248
6249 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
6250 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
6251 * tui/tui-data.c (tui_alloc_win_info): Remove.
6252
6253 2019-06-25 Tom Tromey <tom@tromey.com>
6254
6255 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
6256 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
6257 can_highlight.
6258
6259 2019-06-25 Tom Tromey <tom@tromey.com>
6260
6261 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
6262 make_visible_with_new_height method.
6263 (tui_win_info::make_visible_with_new_height): New method.
6264 (tui_source_window_base::do_make_visible_with_new_height)
6265 (tui_data_window::do_make_visible_with_new_height)
6266 (tui_cmd_window::do_make_visible_with_new_height): New methods.
6267 (make_visible_with_new_height): Remove.
6268 (tui_resize_all, tui_adjust_win_heights): Use
6269 make_visible_with_new_height method.
6270 * tui/tui-data.h (struct tui_win_info)
6271 <do_make_visible_with_new_height, make_visible_with_new_height>:
6272 New methods.
6273 (struct tui_source_window_base, struct tui_data_window)
6274 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
6275 methods.
6276
6277 2019-06-25 Tom Tromey <tom@tromey.com>
6278
6279 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
6280 method.
6281 (update_tab_width): Call update_tab_width method.
6282 * tui/tui-data.h (struct tui_win_info)
6283 (struct tui_source_window_base) <update_tab_width>: New methods.
6284
6285 2019-06-25 Tom Tromey <tom@tromey.com>
6286
6287 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
6288 parameter.
6289 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
6290 parameter.
6291 (tui_gen_win_info::make_visible): Update.
6292 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
6293 parameter.
6294 * tui/tui-data.h (enum tui_box): New enum.
6295 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
6296
6297 2019-06-25 Tom Tromey <tom@tromey.com>
6298
6299 * tui/tui-layout.c (make_source_or_disasm_window): Always use
6300 init_and_make_win for EXEC_INFO_WIN.
6301 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
6302 longer inline.
6303 (struct tui_win_info) <~tui_win_info>: Inline.
6304 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
6305 Don't declare.
6306 * tui/tui-data.c (source_win, disasm_win): Remove globals.
6307 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
6308 Remove.
6309 (tui_initialize_static_data): Update.
6310 (~tui_gen_win_info): Handle more cleanup here.
6311 (~tui_source_window_base): Delete "execution_info".
6312 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
6313
6314 2019-06-25 Tom Tromey <tom@tromey.com>
6315
6316 * tui/tui-layout.c (make_command_window): Don't set
6317 can_highlight.
6318 (show_source_disasm_command): Call the reset method.
6319 (show_data): Don't set can_highlight. Call the reset method.
6320 (tui_gen_win_info::reset): Rename from init_gen_win_info
6321 (init_and_make_win): Simplify. Return tui_gen_win_info.
6322 (show_source_or_disasm_and_command): Call the reset method.
6323 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
6324 (struct tui_cmd_window): Set can_highlight.
6325
6326 2019-06-25 Tom Tromey <tom@tromey.com>
6327
6328 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
6329 from make_visible.
6330 (tui_make_visible, tui_make_invisible): Rewrite.
6331 (tui_win_info::make_visible): Remove.
6332 (tui_source_window_base::make_visible): Update.
6333 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
6334 method. Moved from...
6335 (struct tui_win_info) <make_visible>: ...here.
6336
6337 2019-06-25 Tom Tromey <tom@tromey.com>
6338
6339 * tui/tui-winsource.c
6340 (tui_source_window_base::do_scroll_horizontal): Remove direction
6341 parameter.
6342 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
6343 direction parameter.
6344 * tui/tui-win.c (tui_win_info::forward_scroll)
6345 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
6346 (tui_win_info::right_scroll): Update.
6347 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
6348 direction parameter.
6349 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
6350 direction parameter.
6351 * tui/tui-data.h (enum tui_scroll_direction): Remove.
6352 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
6353 Remove direction parameter.
6354 (struct tui_source_window_base, struct tui_source_window)
6355 (struct tui_disasm_window, struct tui_data_window)
6356 (struct tui_cmd_window): Update.
6357
6358 2019-06-25 Tom Tromey <tom@tromey.com>
6359
6360 * tui/tui-winsource.h (tui_set_exec_info_content)
6361 (tui_show_exec_info_content, tui_erase_exec_info_content)
6362 (tui_clear_exec_info_content, tui_update_exec_info): Change
6363 argument to tui_source_window_base.
6364 * tui/tui-winsource.c (tui_set_exec_info_content)
6365 (tui_show_exec_info_content, tui_erase_exec_info_content)
6366 (tui_clear_exec_info_content, tui_update_exec_info): Change
6367 argument to tui_source_window_base.
6368
6369 2019-06-25 Tom Tromey <tom@tromey.com>
6370
6371 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
6372 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
6373
6374 2019-06-25 Tom Tromey <tom@tromey.com>
6375
6376 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
6377 check.
6378
6379 2019-06-25 Tom Tromey <tom@tromey.com>
6380
6381 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
6382 type to void.
6383 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
6384 type to void.
6385 * tui/tui-source.c (tui_set_source_content): Update.
6386 * tui/tui-disasm.c (tui_set_disassem_content): Update.
6387
6388 2019-06-25 Tom Tromey <tom@tromey.com>
6389
6390 * tui/tui-win.c (window_name_completer, tui_set_focus)
6391 (tui_all_windows_info): Use name method.
6392 * tui/tui-data.h (struct tui_gen_win_info)
6393 (struct tui_source_window, struct tui_disasm_window)
6394 (struct tui_data_window, struct tui_cmd_window) <name>: New
6395 method.
6396 (tui_win_name): Don't declare.
6397 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
6398 (tui_win_name): Remove.
6399
6400 2019-06-25 Tom Tromey <tom@tromey.com>
6401
6402 * tui/tui-winsource.h (tui_update_source_window)
6403 (tui_update_source_window_as_is): Change parameter type.
6404 * tui/tui-winsource.c (tui_update_source_window): Change win_info
6405 to be a tui_source_window_base.
6406 (tui_update_source_window_as_is): Likewise.
6407 * tui/tui-win.c (make_visible_with_new_height): Update.
6408
6409 2019-06-25 Tom Tromey <tom@tromey.com>
6410
6411 * tui/tui-winsource.c (tui_erase_source_content)
6412 (tui_show_source_content, tui_show_exec_info_content)
6413 (tui_erase_exec_info_content): Use refresh_window method.
6414 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
6415 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
6416 from tui_refresh_win.
6417 (tui_data_window::refresh_window): New method.
6418 (tui_win_info::refresh, tui_source_window_base::refresh)
6419 (tui_refresh_all): Use refresh_window method.
6420 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
6421 method.
6422 * tui/tui-regs.c (tui_display_register): Call refresh_window
6423 method.
6424 * tui/tui-layout.c (show_source_disasm_command)
6425 (show_source_or_disasm_and_command): Call refresh_window method.
6426 * tui/tui-data.h (struct tui_gen_win_info)
6427 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
6428 New method.
6429
6430 2019-06-25 Tom Tromey <tom@tromey.com>
6431
6432 * tui/tui.c (tui_rl_other_window, tui_enable)
6433 (tui_is_window_visible, tui_get_command_dimension): Update.
6434 * tui/tui-winsource.c (tui_update_source_window_as_is)
6435 (tui_clear_source_content, tui_erase_source_content)
6436 (tui_show_source_line, tui_source_window_base::refill)
6437 (tui_source_window_base::do_scroll_horizontal)
6438 (tui_source_window_base::set_is_exec_point_at)
6439 (tui_update_breakpoint_info, tui_set_exec_info_content)
6440 (tui_alloc_source_buffer, tui_line_is_displayed)
6441 (tui_addr_is_displayed): Update.
6442 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
6443 (tui_check_and_display_highlight_if_needed)
6444 (tui_win_info::make_visible, tui_win_info::refresh)
6445 (tui_refresh_all): Update.
6446 * tui/tui-windata.c (tui_first_data_item_displayed)
6447 (tui_delete_data_content_windows, tui_erase_data_content)
6448 (tui_display_all_data, tui_data_window::refresh_all)
6449 (tui_check_data_values): Update.
6450 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
6451 (tui_set_win_focus_to, tui_win_info::forward_scroll)
6452 (tui_win_info::backward_scroll, tui_refresh_all_win)
6453 (tui_resize_all, tui_set_focus, tui_all_windows_info)
6454 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
6455 (tui_source_window_base::set_new_height)
6456 (tui_data_window::set_new_height)
6457 (make_invisible_and_set_new_height)
6458 (make_visible_with_new_height, new_height_ok)
6459 (parse_scrolling_args): Update.
6460 * tui/tui-stack.c (tui_show_frame_info): Update.
6461 * tui/tui-source.c (tui_set_source_content)
6462 (tui_set_source_content_nil, tui_source_is_displayed)
6463 (tui_source_window::do_scroll_vertical): Update.
6464 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
6465 (tui_display_registers_from, tui_display_reg_element_at_line)
6466 (tui_check_register_values, tui_reg_command): Update.
6467 * tui/tui-layout.c (tui_default_win_height)
6468 (show_source_disasm_command, show_data, init_and_make_win)
6469 (show_source_or_disasm_and_command): Update.
6470 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
6471 (tui_redisplay_readline, tui_mld_flush)
6472 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
6473 (tui_getc): Update.
6474 * tui/tui-disasm.c (tui_set_disassem_content)
6475 (tui_disasm_window::do_scroll_vertical): Update.
6476 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
6477 Now virtual.
6478 (struct tui_win_info): Derive from tui_gen_win_info.
6479 <~tui_win_info>: Mark as override.
6480 <generic>: Remove member.
6481 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
6482 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
6483 (~tui_data_window, ~tui_win_info)
6484 (tui_free_all_source_wins_content): Update.
6485 * tui/tui-command.c (tui_refresh_cmd_win): Update.
6486
6487 2019-06-25 Tom Tromey <tom@tromey.com>
6488
6489 * tui/tui-layout.c (init_and_make_win): Use new.
6490 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
6491 destructor, initializers.
6492 (tui_alloc_generic_win_info): Don't declare.
6493 * tui/tui-data.c (_locator): Add argument to constructor.
6494 (source_win, disasm_win): New globals.
6495 (exec_info): Remove.
6496 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
6497 Update.
6498 (tui_alloc_generic_win_info): Remove.
6499 (init_content_element): Use new.
6500 (tui_win_info::tui_win_info): Update.
6501 (free_content_elements) <case DATA_WIN>: Use delete.
6502
6503 2019-06-25 Tom Tromey <tom@tromey.com>
6504
6505 * tui/tui-wingeneral.c (tui_refresh_win): Update.
6506 * tui/tui-windata.c (tui_first_data_item_displayed)
6507 (tui_delete_data_content_windows): Update.
6508 * tui/tui-win.c (tui_data_window::set_new_height): Update.
6509 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
6510 (tui_display_registers_from, tui_check_register_values): Update.
6511 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
6512 pointer.
6513 * tui/tui-data.c (init_content_element): Update. Allocate the new
6514 window.
6515 (tui_free_data_content): Update.
6516 (free_content_elements) <case DATA_WIN>: Free the window.
6517
6518 2019-06-25 Tom Tromey <tom@tromey.com>
6519
6520 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
6521 Update.
6522 * tui/tui-layout.c (make_command_window)
6523 (show_source_disasm_command, show_data, init_and_make_win)
6524 (show_source_or_disasm_and_command): Update.
6525 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
6526 method.
6527 <can_highight, is_highlighted>: Now bool.
6528 (tui_set_win_highlight): Don't declare.
6529 * tui/tui-data.c (tui_set_win_highlight): Remove.
6530
6531 2019-06-25 Tom Tromey <tom@tromey.com>
6532
6533 * tui/tui-wingeneral.c (make_visible): Remove check of window
6534 type.
6535
6536 2019-06-25 Tom Tromey <tom@tromey.com>
6537
6538 * tui/tui-win.c (tui_win_info::max_height)
6539 (tui_cmd_window::max_height): New methods.
6540 (new_height_ok): Call max_height.
6541 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
6542 <max_height>: New method.
6543
6544 2019-06-25 Tom Tromey <tom@tromey.com>
6545
6546 * tui/tui-win.c (tui_source_window_base::set_new_height)
6547 (tui_data_window::set_new_height): New methods.
6548 (make_invisible_and_set_new_height): Call set_new_height method.
6549 * tui/tui-data.h (struct tui_win_info)
6550 (struct tui_source_window_base, struct tui_data_window)
6551 <set_new_height>: New method.
6552
6553 2019-06-25 Tom Tromey <tom@tromey.com>
6554
6555 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
6556 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
6557 tui_refresh_data_win.
6558 * tui/tui-win.c (tui_source_window_base::refresh_all): New
6559 method.
6560 (tui_refresh_all_win): Call the refresh_all method.
6561 (tui_set_focus): Likewise.
6562 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
6563 (struct tui_source_window_base, struct tui_data_window) <refresh>:
6564 Likewise.
6565
6566 2019-06-25 Tom Tromey <tom@tromey.com>
6567
6568 * tui/tui-winsource.h (tui_refill_source_window)
6569 (tui_set_is_exec_point_at): Don't declare.
6570 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
6571 (tui_source_window_base::refill): Rename from
6572 tui_refill_source_window.
6573 (tui_source_window_base::do_scroll_horizontal): Update.
6574 (tui_source_window_base::set_is_exec_point_at): Rename from
6575 tui_set_is_exec_point_at.
6576 (tui_update_all_breakpoint_info): Update.
6577 * tui/tui-stack.c (tui_show_frame_info): Update.
6578 * tui/tui-layout.c (show_data): Add cast.
6579 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
6580 * tui/tui-data.h (struct tui_source_window_base) <refill,
6581 set_is_exec_point_at>: New methods.
6582 (tui_source_windows, tui_add_to_source_windows): Update types.
6583 (tui_add_to_source_windows): Remove redundant declaration.
6584 * tui/tui-data.c (source_windows): Store tui_source_window_base.
6585 (tui_source_windows): Change return type.
6586 (tui_clear_source_windows_detail): Update.
6587 (tui_add_to_source_windows): Change type of parameter.
6588 (tui_free_all_source_wins_content): Update.
6589
6590 2019-06-25 Tom Tromey <tom@tromey.com>
6591
6592 * tui/tui-wingeneral.c (tui_win_info::refresh)
6593 (tui_source_window_base::refresh): New methods.
6594 (tui_refresh_all): Call the refresh method.
6595 * tui/tui-data.h (struct tui_win_info)
6596 (struct tui_source_window_base) <refresh>: New method.
6597
6598 2019-06-25 Tom Tromey <tom@tromey.com>
6599
6600 * tui/tui.h (tui_is_window_visible): Return bool.
6601 * tui/tui.c (tui_is_window_visible): Return bool.
6602 * tui/tui-wingeneral.c (tui_make_window, make_visible)
6603 (tui_make_visible, tui_make_invisible)
6604 (tui_win_info::make_visible)
6605 (tui_source_window_base::make_visible, make_all_visible)
6606 (tui_make_all_visible, tui_make_all_invisible): Update.
6607 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
6608 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
6609 bool.
6610 (struct tui_win_info, struct tui_source_window_base)
6611 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
6612 * tui/tui-data.c (tui_init_generic_part): Update.
6613
6614 2019-06-25 Tom Tromey <tom@tromey.com>
6615
6616 * tui/tui-wingeneral.c (tui_win_info::make_visible)
6617 (tui_source_window_base::make_visible): New methods.
6618 (make_all_visible): Make method call.
6619 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
6620 (struct tui_source_window_base, struct tui_cmd_window): Override
6621 make_visible.
6622 (tui_win_is_source_type): Don't declare.
6623 * tui/tui-data.c (tui_win_is_source_type): Remove.
6624
6625 2019-06-25 Tom Tromey <tom@tromey.com>
6626
6627 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
6628 NULL check.
6629
6630 2019-06-25 Tom Tromey <tom@tromey.com>
6631
6632 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
6633 Inline constructor. Add initializers for members.
6634 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
6635 constructors; now inline in class.
6636
6637 2019-06-25 Tom Tromey <tom@tromey.com>
6638
6639 * tui/tui-regs.c (tui_show_registers): Update.
6640 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
6641 bool.
6642 * tui/tui-data.c (tui_data_window::clear_detail)
6643 (tui_data_window): Update.
6644
6645 2019-06-25 Tom Tromey <tom@tromey.com>
6646
6647 * tui/tui-windata.c (tui_display_all_data)
6648 (tui_display_data_from_line, tui_display_data_from)
6649 (tui_check_data_values, tui_data_window::do_scroll_vertical):
6650 Update.
6651 * tui/tui-regs.c (tui_last_regs_line_no)
6652 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
6653 (tui_show_registers, tui_show_register_group)
6654 (tui_display_registers_from, tui_display_reg_element_at_line)
6655 (tui_display_registers_from_line, tui_check_register_values)
6656 (tui_reg_next, tui_reg_prev): Update.
6657 * tui/tui-layout.c (tui_set_layout, show_data): Update.
6658 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
6659 tui_data_window.
6660 (struct tui_win_info) <detail>: Remove. Add new fields from
6661 tui_data_info.
6662 (TUI_DATA_WIN): Add cast.
6663 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
6664 (~tui_data_window): Simplify.
6665
6666 2019-06-25 Tom Tromey <tom@tromey.com>
6667
6668 * tui/tui-layout.c (show_source_disasm_command)
6669 (show_source_or_disasm_and_command): Update.
6670 * tui/tui-io.c (update_cmdwin_start_line)
6671 (tui_redisplay_readline): Update.
6672 * tui/tui-data.h (struct tui_command_info): Remove.
6673 (struct tui_win_info) <detail>: Remove command_info member.
6674 (struct tui_data_window) <start_line>: New member, from
6675 tui_command_info.
6676 (TUI_CMD_WIN): Add casts.
6677
6678 2019-06-25 Tom Tromey <tom@tromey.com>
6679
6680 * tui/tui-winsource.c (tui_update_source_window)
6681 (tui_refill_source_window)
6682 (tui_source_window_base::do_scroll_horizontal)
6683 (tui_update_breakpoint_info, tui_set_exec_info_content)
6684 (tui_show_exec_info_content, tui_erase_exec_info_content)
6685 (tui_clear_exec_info_content): Update.
6686 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
6687 Update.
6688 * tui/tui-win.c (make_invisible_and_set_new_height)
6689 (make_visible_with_new_height): Update.
6690 * tui/tui-source.c (tui_set_source_content)
6691 (tui_show_symtab_source): Update.
6692 * tui/tui-layout.c (extract_display_start_addr)
6693 (show_source_disasm_command, show_data)
6694 (make_source_or_disasm_window)
6695 (show_source_or_disasm_and_command): Update.
6696 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
6697 (tui_disasm_window::do_scroll_vertical): Remove shadowing
6698 "gdbarch".
6699 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
6700 to tui_source_window_base.
6701 (struct tui_win_info) <detail>: Remove source_info member.
6702 (struct tui_source_window_base) <has_locator>: Inline.
6703 Move contents from tui_source_info; rename has_locator member to
6704 m_has_locator.
6705 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
6706 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
6707 header file.
6708 (tui_source_window_base::clear_detail, ~tui_source_window_base):
6709 Simplify.
6710 (tui_free_all_source_wins_content): Cast to
6711 tui_source_window_base.
6712
6713 2019-06-25 Tom Tromey <tom@tromey.com>
6714
6715 * tui/tui-win.c (make_invisible_and_set_new_height)
6716 (make_visible_with_new_height): Call has_locator method.
6717 * tui/tui-layout.c (show_source_disasm_command, show_data)
6718 (show_source_or_disasm_and_command): Update for bool change.
6719 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
6720 (tui_win_info) <has_locator>: New method.
6721 (struct tui_source_window_base) <has_locator>: New method.
6722 (tui_win_has_locator): Don't declare.
6723 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
6724 from tui_win_has_locator.
6725 (tui_source_window_base): Use false, not FALSE.
6726
6727 2019-06-25 Tom Tromey <tom@tromey.com>
6728
6729 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
6730 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
6731 clear_detail method directly.
6732 (tui_clear_win_detail): Remove.
6733
6734 2019-06-25 Tom Tromey <tom@tromey.com>
6735
6736 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
6737 "this", not TUI_DISASM_WIN.
6738
6739 2019-06-25 Tom Tromey <tom@tromey.com>
6740
6741 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
6742 declare.
6743 * tui/tui-winsource.c
6744 (tui_source_window_base::do_scroll_horizontal): Rename from
6745 tui_horizontal_source_scroll.
6746 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
6747 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
6748 from tui_vertical_data_scroll.
6749 * tui/tui-win.h (tui_scroll): Don't declare.
6750 * tui/tui-win.c (tui_win_info::forward_scroll)
6751 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
6752 (tui_win_info::right_scroll): Rename and update.
6753 (tui_scroll_forward_command, tui_scroll_backward_command)
6754 (tui_scroll_left_command, tui_scroll_right_command): Update.
6755 (tui_scroll): Remove.
6756 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
6757 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
6758 from tui_vertical_source_scroll.
6759 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
6760 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
6761 from tui_vertical_disassem_scroll.
6762 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
6763 do_scroll_horizontal>: New methods.
6764 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
6765 Likewise.
6766 (struct tui_source_window_base): Add do_scroll_horizontal.
6767 (struct tui_source_window, struct tui_disasm_window): Add
6768 do_scroll_vertical.
6769 (struct tui_data_window, struct tui_cmd_window): Add
6770 do_scroll_horizontal and do_scroll_vertical.
6771 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
6772
6773 2019-06-25 Tom Tromey <tom@tromey.com>
6774
6775 * tui/tui-data.h (struct tui_source_window_base): New struct.
6776 (struct tui_source_window): Derive from tui_source_window_base.
6777 (struct tui_disasm_window): New struct.
6778 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
6779 from tui_source_window::clear_detail.
6780 (tui_source_window_base): Rename from tui_source_window.
6781 (~tui_source_window_base): Rename from ~tui_source_window.
6782 (tui_alloc_win_info): Create a tui_disasm_window.
6783
6784 2019-06-25 Tom Tromey <tom@tromey.com>
6785
6786 * tui/tui-data.h (struct tui_source_window)
6787 (struct tui_data_window): Declare destructors.
6788 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
6789 destructors.
6790 (tui_win_info): Simplify.
6791
6792 2019-06-25 Tom Tromey <tom@tromey.com>
6793
6794 * tui/tui-winsource.c (tui_display_main)
6795 (tui_update_source_windows_with_addr)
6796 (tui_update_all_breakpoint_info): Update.
6797 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
6798 (new_height_ok, parse_scrolling_args): Update.
6799 * tui/tui-stack.c (tui_show_frame_info): Update.
6800 * tui/tui-data.h (struct tui_list): Remove.
6801 (tui_source_windows): Return a reference to a std::vector.
6802 * tui/tui-data.c (source_windows): Now a std::vector.
6803 (tui_source_windows): Change return type.
6804 (tui_clear_source_windows): Rewrite.
6805 (tui_clear_source_windows_detail, tui_add_to_source_windows)
6806 (tui_free_all_source_wins_content): Rewrite.
6807
6808 2019-06-25 Tom Tromey <tom@tromey.com>
6809
6810 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
6811 (struct tui_data_window, struct tui_cmd_window): Declare
6812 clear_detail method.
6813 * tui/tui-data.c (tui_source_window::clear_detail)
6814 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
6815 methods.
6816 (tui_clear_win_detail): Simplify.
6817
6818 2019-06-25 Tom Tromey <tom@tromey.com>
6819
6820 * tui/tui-layout.c (make_source_window, make_disasm_window)
6821 (make_source_or_disasm_window): Remove win_info_ptr parameter.
6822 Return the new window.
6823 (show_source_disasm_command, show_data)
6824 (show_source_or_disasm_and_command): Update.
6825
6826 2019-06-25 Tom Tromey <tom@tromey.com>
6827
6828 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
6829 parameter. Return the new window.
6830 (show_source_disasm_command): Update and remove NULL check.
6831 (show_source_or_disasm_and_command): Update.
6832
6833 2019-06-25 Tom Tromey <tom@tromey.com>
6834
6835 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
6836
6837 2019-06-25 Tom Tromey <tom@tromey.com>
6838
6839 * tui/tui-data.h (struct tui_win_info): Make constructor
6840 protected. Make destructor virtual. Add initializers.
6841 (tui_source_window, tui_data_window, tui_cmd_window): New
6842 classes.
6843 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
6844 constructor. Add "type" parameter.
6845 (tui_source_window, tui_data_window, tui_cmd_window): New
6846 constructors.
6847 (tui_alloc_win_info): Instantiate the appropriate subclass.
6848
6849 2019-06-25 Tom Tromey <tom@tromey.com>
6850
6851 * tui/tui-win.c (tui_resize_all): Use delete.
6852 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
6853 destructor.
6854 (tui_free_window): Don't declare.
6855 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
6856 Update.
6857
6858 2019-06-25 Tom Tromey <tom@tromey.com>
6859
6860 * tui/tui-data.h (struct tui_win_info): Add constructor.
6861 * tui/tui-data.c (tui_alloc_win_info): Use new.
6862 (tui_free_window): Use delete.
6863
6864 2019-06-22 Tom Tromey <tom@tromey.com>
6865
6866 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
6867 declare.
6868 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
6869
6870 2019-06-22 Tom Tromey <tom@tromey.com>
6871
6872 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
6873 declare.
6874 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
6875
6876 2019-06-22 Tom de Vries <tdevries@suse.de>
6877
6878 * dwarf2read.c (create_addrmap_from_aranges)
6879 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
6880 instead of '%zu'.
6881
6882 2019-06-21 Simon Marchi <simon.marchi@efficios.com>
6883
6884 * dwarf2read.h (dwarf2_section_info_def): Remove.
6885 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
6886 * dwarf2read.c (struct dwo_sections) <types>: Change type to
6887 std::vector<dwarf2_section_info>.
6888 (struct dwo_file) <~dwo_file>: Remove.
6889 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
6890 types field.
6891 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
6892 (dwarf2_read_debug_names): Likewise.
6893 (create_debug_types_hash_table): Change parameter type to
6894 array_view, adjust code accordingly.
6895 (dwarf2_locate_dwo_sections): Adjust to std::vector.
6896 (partial_die_info::fixup): Likewise.
6897 (determine_prefix): Likewise.
6898 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
6899
6900 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
6901
6902 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
6903 gdb_bfd_ref_ptr.
6904 <~dwo_file>: Remove call to gdb_bfd_unref.
6905 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
6906 gdb_bfd_ref_ptr::get.
6907
6908 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
6909
6910 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
6911 type to htab_up.
6912 * dwarf2read.c (struct dwo_file): Initialize fields.
6913 <~dwo_file>: New.
6914 (free_dwo_file): Remove, move content to ~dwo_file.
6915 (struct dwo_file_deleter): Remove.
6916 (dwo_file_up>: Remove custom deleter.
6917 (free_dwo_files): Remove.
6918 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
6919 dwo_files.
6920 (process_skeletonless_type_units): Call unique_ptr::get.
6921 (allocate_dwo_file_hash_table): Add deleter to created hash
6922 table. Change return type to htab_up.
6923 (lookup_dwo_file_slot): Don't memset dwo_file, call
6924 unique_ptr::get.
6925 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
6926 (create_dwo_unit_in_dwp_v2): Likewise.
6927 (open_and_init_dwo_file): Likewise.
6928 (free_dwo_file_from_slot): Remove.
6929
6930 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
6931
6932 * dwarf2read.h (struct dwarf2_section_info) <readin,
6933 is_virtual>: Change type to bool.
6934 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
6935 true instead of 1.
6936
6937 2019-06-19 Tom Tromey <tom@tromey.com>
6938
6939 * tui/tui-data.h (tui_init_content_element): Don't declare.
6940
6941 2019-06-19 Tom Tromey <tom@tromey.com>
6942
6943 * tui/tui-data.h (tui_init_win_info): Don't declare.
6944
6945 2019-06-19 Tom de Vries <tdevries@suse.de>
6946
6947 * dwarf2read.h (abstract_to_concrete): Change type to
6948 std::unordered_map<sect_offset, std::vector<sect_offset>,
6949 gdb::hash_enum<sect_offset>>.
6950
6951 2019-06-19 Tom Tromey <tromey@adacore.com>
6952
6953 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
6954 EVAL_AVOID_SIDE_EFFECTS specially.
6955
6956 2019-06-19 Tom Tromey <tromey@adacore.com>
6957
6958 * source-cache.c (highlighter): New global.
6959 (source_cache::get_source_lines): Create a highlighter on demand.
6960
6961 2019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
6962
6963 * defs.h (deprecated_interactive_hook): Delete declaration.
6964 * interps.c (clear_interpreter_hooks): Remove use of
6965 deprecated_interactive_hook.
6966 * top.c (deprecated_interactive_hook): Delete definition.
6967 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
6968
6969 2019-06-18 Tom de Vries <tdevries@suse.de>
6970
6971 PR gdb/24515
6972 * dwarf2read.h (abstract_to_concrete): Change type from
6973 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
6974 std::unordered_map<sect_offset, std::vector<sect_offset>>.
6975 * dwarf2read.c (read_variable): Update.
6976 (dwarf2_fetch_die_loc_sect_off): Update.
6977
6978 2019-06-17 Tom de Vries <tdevries@suse.de>
6979
6980 PR gdb/24617
6981 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
6982 accessing parent[parent_len - 1].
6983
6984 2019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
6985
6986 PR gdb/24364
6987 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
6988 call dtrace_process_dof with NULL dof.
6989
6990 2019-06-16 Tom de Vries <tdevries@suse.de>
6991
6992 PR gdb/24445
6993 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
6994
6995 2019-06-16 Tom Tromey <tom@tromey.com>
6996
6997 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
6998 (make_all_visible): Use address of member.
6999
7000 2019-06-16 Tom Tromey <tom@tromey.com>
7001
7002 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
7003 (tui_free_window, free_content, free_content_elements): Remove
7004 unnecessary cast.
7005 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
7006 cast.
7007 * tui/tui-regs.c (tui_show_register_group)
7008 (tui_display_registers_from, tui_display_reg_element_at_line):
7009 Remove unnecessary cast.
7010
7011 2019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
7012
7013 * linux-nat.c (normal_mask): Delete.
7014 (_initialize_linux_nat): Don't initialise normal_mask.
7015
7016 2019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
7017
7018 PR gdb/24445
7019 * dwarf-index-write.h (write_psymtabs_to_index): Add
7020 dwz_basename parameter.
7021 * dwarf-index-write.c (write_gdbindex): Move file writing to
7022 write_gdbindex_1. Change return type void.
7023 (assert_file_size): Move up, remove filename parameter.
7024 (write_gdbindex_1): New function.
7025 (write_debug_names): Change return type to void, call
7026 assert_file_size.
7027 (struct index_wip_file): New struct.
7028 (write_psymtabs_to_index): Add dwz_basename parameter. Move
7029 file logic to index_wip_file. Write index for dwz file if
7030 needed.
7031 (save_gdb_index_command): Pass basename of dwz file, if present.
7032 * dwarf-index-cache.c (index_cache::store): Obtain and pass
7033 build-id of dwz file, if present.
7034 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
7035 (dwarf2_get_dwz_file): Likewise.
7036 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
7037 (dwarf2_get_dwz_file): Likewise.
7038
7039 2019-06-16 Tom Tromey <tom@tromey.com>
7040
7041 * coffread.c (process_coff_symbol): Use xstrdup.
7042 * value.c (create_internalvar): Use xstrdup.
7043
7044 2019-06-16 Tom Tromey <tom@tromey.com>
7045
7046 * valops.c (value_cast, value_slice): Remove unnecessary cast.
7047 * breakpoint.c (stopin_command, stopat_command)
7048 (until_break_command, decode_location_default): Remove unnecessary
7049 cast.
7050 * utils.c (subset_compare): Remove unnecessary cast.
7051 * ada-lang.c (ada_update_initial_language): Remove unnecessary
7052 cast.
7053 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
7054 cast.
7055 * infcmd.c (path_command): Remove unnecessary cast.
7056 * coffread.c (decode_type): Remove unnecessary cast.
7057 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
7058 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
7059 * tui/tui-stack.c (tui_show_locator_content)
7060 (tui_show_frame_info): Remove unnecessary cast.
7061 * tui/tui-win.c (tui_scroll_forward_command)
7062 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
7063 (parse_scrolling_args): Remove unnecessary cast.
7064 * tui/tui-data.c (init_win_info, tui_del_window)
7065 (tui_free_window, tui_del_data_windows, tui_free_data_content)
7066 (free_content_elements): Remove unnecessary cast.
7067 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
7068 unnecessary cast.
7069 * tui/tui-source.c (tui_set_source_content)
7070 (tui_vertical_source_scroll): Remove unnecessary cast.
7071 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
7072 cast.
7073 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
7074 * tui/tui-regs.c (tui_display_registers_from)
7075 (tui_display_register): Remove unnecessary cast.
7076 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
7077 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
7078 (make_visible): Remove unnecessary cast.
7079 * tui/tui-winsource.c (tui_erase_source_content)
7080 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
7081 unnecessary cast.
7082 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
7083 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
7084 * stabsread.c (read_type, read_array_type, read_range_type):
7085 Remove unnecessary cast.
7086 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
7087 (parse_symbol, parse_type, upgrade_type, parse_external)
7088 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
7089 unnecessary cast.
7090 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
7091
7092 2019-06-16 Tom Tromey <tom@tromey.com>
7093
7094 * tui/tui-data.c (tui_alloc_generic_win_info)
7095 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
7096 checks.
7097
7098 2019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
7099 Andrew Burgess <andrew.burgess@embecosm.com>
7100
7101 * f-typeprint.c (f_print_type): Don't return early for not
7102 associated or not allocated types.
7103 (f_type_print_varspec_suffix): Add print_rank parameter and print
7104 ranks of array types in case they dangling.
7105 (f_type_print_base): Add print_rank parameter.
7106
7107 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7108
7109 * NEWS: Mention new MI commands.
7110 * break-catch-throw.c (enum exception_event_kind): Move to
7111 breakpoint.h.
7112 (print_mention_exception_catchpoint): Output text as a single
7113 message.
7114 (catch_exception_command_1): Rename to...
7115 (catch_exception_event): ...this, make non-static, update header
7116 command, and change some parameter types.
7117 (catch_catch_command): Update for changes to
7118 catch_exception_command_1.
7119 (catch_throw_command): Likewise.
7120 (catch_rethrow_command): Likewise.
7121 * breakpoint.c (enum exception_event_kind): Delete.
7122 * breakpoint.h (enum exception_event_kind): Moved here from
7123 break-catch-throw.c.
7124 (catch_exception_event): Declare.
7125 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
7126 (mi_cmd_catch_throw): New function.
7127 (mi_cmd_catch_rethrow): New function.
7128 (mi_cmd_catch_catch): New function.
7129 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
7130 'catch-catch' entries.
7131 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
7132 (mi_cmd_catch_rethrow): Declare.
7133 (mi_cmd_catch_catch): Declare.
7134
7135 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7136
7137 * annotate.c (annotate_source_line): Change return type to void,
7138 update implementation to match.
7139 * annotate.h (annotate_source_line): Change return type to void,
7140 update header comment.
7141 * stack.c (print_frame_info): Don't change what frame information
7142 is printed based on whether annotations are on or not.
7143
7144 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7145
7146 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
7147 (annotate_source): Make static.
7148 (annotate_source_line): Moved from source.c and renamed from
7149 identify_source_line. Update the return type.
7150 * annotate.h (annotate_source): Delete declaration.
7151 (annotate_source_line): Declaration moved from source.h, and
7152 renamed from identify_source_line. Return type updated.
7153 * source.c (identify_source_line): Moved to annotate.c and renamed
7154 to annotate_source_line.
7155 (info_line_command): Remove check of annotation_level.
7156 * source.h (identify_source_line): Move declaration to annotate.h
7157 and rename to annotate_source_line.
7158 * stack.c: Add 'annotate.h' include.
7159 (print_frame_info): Remove check of annotation_level before
7160 calling annotate_source_line.
7161
7162 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7163
7164 * source-cache.c (source_cache::get_plain_source_lines): Use
7165 open_source_file_with_line_charpos instead of just
7166 open_source_file, remove call to find_source_lines.
7167 (source_cache::get_source_lines): Likewise.
7168 * source.c (find_source_lines): Make static.
7169 (get_filename_and_charpos): Renamed into...
7170 (open_source_file_with_line_charpos): ..this along with changes to
7171 return a scoped_fd, and some other minor clean ups.
7172 (identify_source_line): Use open_source_file_with_line_charpos.
7173 (search_command_helper): Use open_source_file_with_line_charpos
7174 instead of just open_source_file, remove call to
7175 find_source_lines.
7176 * source.h (open_source_file_with_line_charpos): Declare new
7177 function.
7178 (find_source_lines): Delete declaration.
7179
7180 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7181
7182 * source.c (get_filename_and_charpos): Remove fullname
7183 parameter.
7184 (identify_source_line): Update call to get_filename_and_charpos.
7185
7186 2019-06-14 Tom Tromey <tromey@adacore.com>
7187
7188 PR gdb/24502:
7189 * ui-style.h (skip_ansi_escape): Update comment.
7190 * ui-file.h (class no_terminal_escape_file): New class.
7191 * ui-file.c (no_terminal_escape_file::write)
7192 (no_terminal_escape_file::puts): New methods.
7193 * cli/cli-logging.c (handle_redirections): Use
7194 no_terminal_escape_file.
7195
7196 2019-06-14 Tom Tromey <tromey@adacore.com>
7197
7198 * NEWS: Move convenience variable news above Python news.
7199
7200 2019-06-14 Tom Tromey <tom@tromey.com>
7201
7202 * gnulib: Move directory to top-level.
7203 * configure.ac: Don't configure gnulib.
7204 * configure: Rebuild.
7205 * common/common-defs.h: Use new path to gnulib.
7206 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
7207 (GNULIB_H): Remove.
7208 (INCGNU): Look in new gnulib location.
7209 (HFILES_NO_SRCDIR): Remove gnulib files.
7210 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
7211 (generated_files): Remove GNULIB_H.
7212 ($(LIBGNU), all-lib): Remove targets.
7213 (distclean): Don't mention GNULIB_BUILDDIR.
7214 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
7215
7216 2019-06-14 Tom Tromey <tromey@adacore.com>
7217
7218 * symfile.c (add_symbol_file_command): Remove obsolete comment.
7219 Warn if symbol file does not provide any symbols.
7220
7221 2019-06-14 Tom Tromey <tromey@adacore.com>
7222
7223 * source.c (find_and_open_source): Respect basenames_may_differ.
7224
7225 2019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
7226
7227 * annotate.c (annotate_breakpoints_invalid): Make use of
7228 scoped_restore_terminal_state.
7229 (annotate_frames_invalid): Likewise.
7230
7231 2019-06-14 Tom Tromey <tromey@adacore.com>
7232
7233 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
7234 allow assignment to an internalvar.
7235
7236 2019-06-14 Tom Tromey <tromey@adacore.com>
7237
7238 * ada-lex.l: Allow "_" in attribute names.
7239
7240 2019-06-14 Tom Tromey <tromey@adacore.com>
7241
7242 PR gdb/24653:
7243 * regcache.c (registers_changed): Don't call alloca.
7244 * top.c (execute_command): Don't call alloca.
7245
7246 2019-06-13 Pedro Alves <palves@redhat.com>
7247
7248 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
7249 'expression'. When parsing an expression, error out if there's
7250 junk after "unlimited".
7251 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
7252 (do_set_command): Adjust calls to is_unlimited_literal.
7253
7254 2019-06-13 Pedro Alves <palves@redhat.com>
7255
7256 * compile/compile.c (make_compile_options_def_group): Add braces
7257 around array_view initializer.
7258 * thread.c (make_thread_apply_all_options_def_group)
7259 (make_thread_apply_all_options_def_group): Likewise.
7260
7261 2019-06-13 Pedro Alves <palves@redhat.com>
7262
7263 * NEWS (New commands): Mention "maint test-options
7264 require-delimiter", "maint test-options unknown-is-error", "maint
7265 test-options unknown-is-operand" and "maint show
7266 test-options-completion-result".
7267 (New command options, command completion): New section.
7268 (Completion improvements): New section.
7269 Mention that you can abbreviate "unlimited".
7270
7271 2019-06-13 Pedro Alves <palves@redhat.com>
7272
7273 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
7274 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
7275 * unittests/cli-utils-selftests.c (test_parse_flags)
7276 (test_parse_flags_qcs): Delete.
7277 (test_cli_utils): Don't call deleted functions.
7278
7279 2019-06-13 Pedro Alves <palves@redhat.com>
7280
7281 * thread.c: Include "cli/cli-option.h".
7282 (tp_array_compar_ascending): Global.
7283 (tp_array_compar): Delete function.
7284 (tp_array_compar_ascending, tp_array_compar_descending): New
7285 functions.
7286 (ascending_option_def, qcs_flag_option_def)
7287 (thr_qcs_flags_option_defs)
7288 (make_thread_apply_all_options_def_group)
7289 (make_thread_apply_options_def_group): New.
7290 (thread_apply_all_command): Use gdb::option::process_options.
7291 (thread_apply_command_completer)
7292 (thread_apply_all_command_completer): New.
7293 (thread_apply_command): Use gdb::option::process_options.
7294 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
7295 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
7296 to generate help text of "thread apply". Adjust "taas"'s help.
7297 * tid-parse.c (tid_range_parser::in_thread_range): New method.
7298 * tid-parse.h (tid_range_parser::in_thread_range): New method.
7299
7300 2019-06-13 Pedro Alves <palves@redhat.com>
7301
7302 * thread.c (thread_apply_command): Check for invalid TID with
7303 isdigit instead of !isalpha.
7304
7305 2019-06-13 Pedro Alves <palves@redhat.com>
7306
7307 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
7308 (validate_flags_qcs): New.
7309 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
7310 (validate_flags_qcs): Declare.
7311 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
7312 (make_frame_apply_options_def_group): New.
7313 (frame_apply_command_count): Process options with
7314 gdb::option::process_options.
7315 (frame_apply_completer): New.
7316 (frame_apply_level_completer, frame_apply_all_completer)
7317 (frame_apply_completer): New.
7318 (_initialize_stack): Update help of "frame apply", "frame apply
7319 level", "frame apply all" and "faas" to mention supported options
7320 and install command completers.
7321 * stack.h (frame_apply_all_completer): Declare.
7322 * thread.c: Include "stack.h".
7323 (tfaas_command): Add "--".
7324 (_initialize_thread): Update help "tfaas" to mention supported
7325 options and install command completer.
7326
7327 2019-06-13 Pedro Alves <palves@redhat.com>
7328
7329 * completer.c (complete_nested_command_line): New.
7330 (gdb_completion_word_break_characters_throw): Add assertion.
7331 * completer.h (complete_nested_command_line): Declare.
7332
7333 2019-06-13 Pedro Alves <palves@redhat.com>
7334
7335 * stack.c (parse_backtrace_qualifiers): New.
7336 (backtrace_command): Use it.
7337 (backtrace_command_completer): Complete on qualifiers.
7338
7339 2019-06-13 Pedro Alves <palves@redhat.com>
7340
7341 * frame.c: Include "cli/cli-option.h.
7342 (user_set_backtrace_options): New.
7343 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
7344 Delete.
7345 (get_prev_frame): Adjust.
7346 (boolean_option_def, uinteger_option_def)
7347 (set_backtrace_option_defs): New.
7348 (_initialize_frame): Adjust and use
7349 gdb::option::add_setshow_cmds_for_options to install "set
7350 backtrace past-main" and "set backtrace past-entry".
7351 * frame.h: Include "cli/cli-option.h".
7352 (struct frame_print_options): Forward declare.
7353 (print_frame_arguments_all, print_frame_arguments_scalars)
7354 (print_frame_arguments_none): Declare.
7355 (print_entry_values): Delete declaration.
7356 (struct frame_print_options, user_frame_print_options): New.
7357 (struct set_backtrace_options): New.
7358 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
7359 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
7360 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
7361 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
7362 (list_args_or_locals): Add frame_print_options parameter.
7363 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
7364 * python/py-framefilter.c (enumerate_args): Pass down
7365 USER_FRAME_PRINT_OPTIONS.
7366 * stack.c: Include "cli/cli-option.h".
7367 (print_frame_arguments_all, print_frame_arguments_scalars)
7368 (print_frame_arguments_none): Declare.
7369 (print_raw_frame_arguments, print_entry_values): Delete.
7370 (user_frame_print_options): New.
7371 (boolean_option_def, enum_option_def, frame_print_option_defs):
7372 New.
7373 (struct backtrace_cmd_options): New.
7374 (bt_flag_option_def): New.
7375 (backtrace_command_option_defs): New.
7376 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
7377 (print_frame_arg, read_frame_arg, print_frame_args)
7378 (print_frame_info, print_frame): Add frame_print_options parameter
7379 and use it.
7380 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
7381 (backtrace_command_1): Add frame_print_options and
7382 backtrace_cmd_options parameters and use them.
7383 (make_backtrace_options_def_group): New.
7384 (backtrace_command): Process command options with
7385 gdb::option::process_options.
7386 (backtrace_command_completer): New.
7387 (_initialize_stack): Extend "backtrace"'s help to mention
7388 supported options. Install completer for "backtrace".
7389 Install some settings commands with add_setshow_cmds_for_options.
7390
7391 2019-06-13 Pedro Alves <palves@redhat.com>
7392
7393 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
7394 and that "set/show print raw frame-arguments" are now deprecated.
7395
7396 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
7397 command.
7398 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
7399 * stack.c (_initialize_stack): Install "set/show print
7400 raw-frame-arguments", and deprecate "set/show print raw
7401 frame-arguments".
7402 * valprint.c (_initialize_valprint): Deprecate "set/show print
7403 raw".
7404
7405 2019-06-13 Pedro Alves <palves@redhat.com>
7406
7407 * compile/compile.c (struct compile_options): New.
7408 (compile_flag_option_def, compile_command_option_defs)
7409 (make_compile_options_def_group): New.
7410 (compile_file_command): Handle options with
7411 gdb::option::process_options.
7412 (compile_file_command_completer): New function.
7413 (compile_code_command): Handle options with
7414 gdb::option::process_options.
7415 (compile_code_command_completer): New function.
7416 (_initialize_compiler): Install completers for "compile code" and
7417 "compile file". Mention available options in "compile code" and
7418 "compile code"'s help.
7419 * completer.c (advance_to_completion_word): New, factored out from
7420 ...
7421 (advance_to_expression_complete_word_point): ... this.
7422 (advance_to_filename_complete_word_point): New.
7423 * completer.h (advance_to_filename_complete_word_point): New
7424 declaration.
7425
7426 2019-06-13 Pedro Alves <palves@redhat.com>
7427
7428 * compile/compile.c: Include "cli/cli-option.h".
7429 (compile_print_value): Scope data pointer is now a
7430 value_print_options pointer; adjust.
7431 (compile_print_command): Process options. Scope data pointer is
7432 now a value_print_options pointer; adjust.
7433 (_initialize_compile): Update "compile print"'s help to include
7434 supported options. Install a completer for "compile print".
7435 * cp-valprint.c (show_vtblprint, show_objectprint)
7436 (show_static_field_print): Delete.
7437 (_initialize_cp_valprint): Don't install "set print
7438 static-members", "set print vtbl", "set print object" here.
7439 * printcmd.c: Include "cli/cli-option.h" and
7440 "common/gdb_optional.h".
7441 (print_command_parse_format): Rework to fill in a
7442 value_print_options instead of a format_data.
7443 (print_value): Change parameter type from format_data pointer to
7444 value_print_options reference. Adjust.
7445 (print_command_1): Process options. Adjust to pass down a
7446 value_print_options.
7447 (print_command_completer): New.
7448 (_initialize_printcmd): Install print_command_completer as
7449 handle_brkchars completer for the "print" command. Update
7450 "print"'s help to include supported options.
7451 * valprint.c: Include "cli/cli-option.h".
7452 (show_vtblprint, show_objectprint, show_static_field_print): Moved
7453 here from cp-valprint.c.
7454 (boolean_option_def, uinteger_option_def)
7455 (value_print_option_defs, make_value_print_options_def_group):
7456 New. Use gdb::option::add_setshow_cmds_for_options to install
7457 "set print elements", "set print null-stop", "set print repeats",
7458 "set print pretty", "set print union", "set print array", "set
7459 print address", "set print symbol", "set print array-indexes".
7460 * valprint.h: Include <string> and "cli/cli-option.h".
7461 (make_value_print_options_def_group): Declare.
7462 (print_value): Change parameter type from format_data pointer to
7463 value_print_options reference.
7464 (print_command_completer): Declare.
7465
7466 2019-06-13 Pedro Alves <palves@redhat.com>
7467
7468 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
7469 (COMMON_SFILES): Add maint-test-settings.c.
7470 * cli/cli-decode.c (boolean_enums): New global, factored out from
7471 ...
7472 (add_setshow_boolean_cmd): ... here.
7473 * cli/cli-decode.h (boolean_enums): Declare.
7474 * cli/cli-option.c: New file.
7475 * cli/cli-option.h: New file.
7476 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
7477 factored out from ...
7478 (parse_cli_boolean_value(const char *)): ... this.
7479 (is_unlimited_literal): Change parameter type to pointer to
7480 pointer. Adjust and advance ARG pointer.
7481 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
7482 (parse_cli_var_enum): New, factored out from ...
7483 (do_set_command): ... this. Adjust.
7484 * cli/cli-setshow.h (parse_cli_boolean_value)
7485 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
7486 (parse_cli_var_enum): Declare.
7487 * cli/cli-utils.c: Include "cli/cli-option.h".
7488 (get_ulongest): New.
7489 * cli/cli-utils.h (get_ulongest): Declare.
7490 (check_for_argument): New overloads.
7491 * maint-test-options.c: New file.
7492
7493 2019-06-13 Pedro Alves <palves@redhat.com>
7494
7495 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
7496 parse a range if "-" is at the end of the string.
7497
7498 2019-06-13 Pedro Alves <palves@redhat.com>
7499
7500 * cli/cli-setshow.c (parse_auto_binary_operation)
7501 (parse_cli_boolean_value): Don't allow "o".
7502
7503 2019-06-13 Pedro Alves <palves@redhat.com>
7504
7505 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
7506 * NEWS: Mention maint test-settings KIND.
7507 * maint-test-settings.c: New file.
7508
7509 2019-06-13 Pedro Alves <palves@redhat.com>
7510
7511 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
7512 completer.
7513 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
7514 "set" completers.
7515
7516 2019-06-13 Pedro Alves <palves@redhat.com>
7517
7518 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
7519 after item.
7520
7521 2019-06-13 Pedro Alves <palves@redhat.com>
7522
7523 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
7524
7525 2019-06-13 Pedro Alves <palves@redhat.com>
7526
7527 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
7528 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
7529 call.
7530 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
7531 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
7532 calls.
7533 (check_for_argument): Skip spaces after argument.
7534
7535 2019-06-13 Pedro Alves <palves@redhat.com>
7536
7537 * thread.c (thread_apply_command): Adjust TID parsing.
7538 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
7539 detected before end of string.
7540 (tid_is_in_list): Error out if LIST is invalid.
7541
7542 2019-06-13 Pedro Alves <palves@redhat.com>
7543
7544 * completer.c (complete_line_internal_1): Rewind completion word
7545 point.
7546 (completion_tracker::advance_custom_word_point_by): Change
7547 parameter type to int.
7548 * completer.h (completion_tracker::advance_custom_word_point_by):
7549 Likewise.
7550
7551 2019-06-13 Pedro Alves <palves@redhat.com>
7552
7553 * completer.c (advance_to_completion_word): Handle delimiters.
7554
7555 2019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
7556
7557 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
7558
7559 2019-06-11 Tom Tromey <tom@tromey.com>
7560
7561 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
7562 (xmalloc_failed): Move to alloc.c.
7563 * alloc.c: New file.
7564 * Makefile.in (COMMON_SFILES): Add alloc.c.
7565
7566 2019-06-11 Tom Tromey <tom@tromey.com>
7567
7568 * nat/linux-waitpid.c: Don't include server.h.
7569 (linux_debug): Remove.
7570 (my_waitpid): Update.
7571
7572 2019-06-11 Tom Tromey <tromey@adacore.com>
7573
7574 * infcall.c (_initialize_infcall): Remove trailing newline from
7575 help.
7576 * user-regs.c (_initialize_user_regs): Remove trailing newline
7577 from help.
7578 * typeprint.c (_initialize_typeprint): Remove trailing newline
7579 from help.
7580 * reverse.c (_initialize_reverse): Remove trailing newlines from
7581 help.
7582 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
7583 from help.
7584 * language.c (add_set_language_command): Remove trailing newline
7585 from help.
7586 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
7587 help.
7588 * disasm.c (_initialize_disasm): Remove trailing newline from
7589 help.
7590 * top.c (init_main): Remove trailing newline from help.
7591 * interps.c (_initialize_interpreter): Remove trailing newline
7592 from help.
7593 * btrace.c (_initialize_btrace): Remove trailing newlines from
7594 help.
7595 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
7596 from help.
7597 * python/python.c (_initialize_python): Remove trailing newline
7598 from help.
7599 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
7600 help.
7601 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
7602 from help. Reformat some text.
7603 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
7604 from help.
7605 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
7606 newline from help.
7607
7608 2019-06-11 Tom Tromey <tromey@adacore.com>
7609
7610 * darwin-nat.c (darwin_decode_exception_message)
7611 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
7612
7613 2019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
7614
7615 * valops.c (value_slice): Check for not allocated or not
7616 associated values.
7617
7618 2019-06-10 Tom de Vries <tdevries@suse.de>
7619
7620 PR gdb/24618
7621 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
7622 sure an empty slot (defined by a 32-bit zero pair) is recognized as
7623 invalid.
7624
7625 2019-06-10 Tom de Vries <tdevries@suse.de>
7626
7627 PR gdb/24611
7628 * linespec.c (linespec_lexer_lex_string): Remove incorrect
7629 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
7630
7631 2019-06-10 Tom de Vries <tdevries@suse.de>
7632
7633 PR symtab/24545
7634 * symtab.c (struct demangled_name_entry): Add language field.
7635 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
7636 static minimal symbol". Set and use language field.
7637
7638 2019-06-10 Tom Tromey <tromey@adacore.com>
7639
7640 * ada-lang.c (_initialize_ada_language): Update help text.
7641
7642 2019-06-10 Tom Tromey <tromey@adacore.com>
7643
7644 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
7645 with a newline.
7646 * guile/guile.c (handle_boot_error): Don't end warning with a
7647 newline.
7648 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
7649 warning with a newline.
7650 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
7651 newline.
7652 (s12z_frame_cache): Likewise.
7653 * dwarf-index-cache.c (index_cache::store): Don't end warning with
7654 a newline.
7655 * solib-svr4.c (disable_probes_interface): Don't end warning with
7656 a newline.
7657 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
7658 newline.
7659 * python/python.c (do_finish_initialization): Don't end warning
7660 with a newline.
7661
7662 2019-06-10 Tom Tromey <tom@tromey.com>
7663
7664 * python/py-breakpoint.c (gdbpy_breakpoint_created)
7665 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
7666 gdbpy_enter.
7667
7668 2019-06-10 Tom Tromey <tromey@adacore.com>
7669
7670 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
7671 data.
7672 (elf_new_init): Don't call stabsread_new_init.
7673 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
7674 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
7675 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
7676
7677 2019-06-10 Tom de Vries <tdevries@suse.de>
7678
7679 PR symtab/16264
7680 PR symtab/24517
7681 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
7682
7683 2019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
7684
7685 * source.c (find_and_open_source): Also rewrite relative file
7686 names.
7687
7688 2019-04-26 Amos Bird <amosbird@gmail.com>
7689
7690 * annotate.c (annotate_thread_exited): Add "thread-exited"
7691 annotation.
7692
7693 2019-06-06 Tom Tromey <tromey@adacore.com>
7694
7695 * maint.h (class scoped_command_stats): Use
7696 DISABLE_COPY_AND_ASSIGN.
7697 <print_time>: New method.
7698 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
7699 print_time.
7700 (scoped_command_stats::print_time): New method.
7701
7702 2019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
7703
7704 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
7705 instructions of lengths 6 or 8 bytes.
7706
7707 2019-06-04 Pedro Alves <palves@redhat.com>
7708
7709 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
7710
7711 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
7712 * breakpoint.c (condition_completer): Likewise.
7713 * cli/cli-dump.c (scan_expression): Likewise.
7714 * common/filestuff.c (mkdir_recursive): Likewise.
7715 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
7716 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
7717 (gdb_abspath): Likewise.
7718 * compile/compile-cplus-types.c
7719 (compile_cplus_instance::decl_name): Likewise.
7720 * completer.c (complete_explicit_location):
7721 (signal_completer, reg_or_group_completer_1): Likewise.
7722 * cp-support.c (cp_remove_params_if_any): Likewise.
7723 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
7724 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
7725 * infcmd.c (strip_bg_char): Likewise.
7726 * linespec.c (copy_token_string): Likewise.
7727 * mi/mi-main.c (output_cores): Likewise.
7728 * psymtab.c (psymtab_search_name):
7729 * symfile.c (test_set_ext_lang_command): Likewise.
7730 * target.c (target_fileio_read_stralloc): Likewise.
7731 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
7732 * value.c (complete_internalvar): Likewise.
7733
7734 2019-06-04 Christian Biesinger <cbiesinger@google.com>
7735
7736 Add objfile property to gdb.Type.
7737 * NEWS: Mention Python API addition.
7738 * python/py-type.c (typy_get_objfile): New method.
7739
7740 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7741
7742 * NEWS: Mention the new set|show style [title|highlight].
7743 Mention changes to "show style", "help" and "apropos".
7744
7745 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7746
7747 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
7748 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
7749 instead of print_help_for_command.
7750 (print_doc_of_command): New function.
7751 (help_list): Add 'apropos -v word' suggestion.
7752 (print_help_for_command): Style the command name using title style.
7753 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
7754 (_initialize_cli_cmds): Describe -v in apropos_command help.
7755
7756 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7757
7758 * cli/cli-style.h (cli_style_option): Add name in constructor,
7759 add m_name class member, add constructor with intensity,
7760 add name class function.
7761 (cli_style_option::add_setshow_commands): Remove name argument.
7762 (highlight_style, title_style): New styles.
7763 * cli/cli-style.c (do_show): New function that shows a style
7764 characteristic styling the style name with itself.
7765 (set_style_name): New function.
7766 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
7767 Update all callers according to the changes in cli/cli-style.h.
7768 * utils.h (fputs_highlighted): New function.
7769 * utils.c (fputs_highlighted): Likewise.
7770
7771 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7772
7773 * NEWS: Mention new pipe command and new convenience variables.
7774
7775 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7776
7777 * cli/cli-cmds.c (pipe_command): New function.
7778 (_initialize_cli_cmds): Call add_com for pipe_command.
7779 Define | as an alias for pipe.
7780 (exit_status_set_internal_vars): New function.
7781 (shell_escape): Call exit_status_set_internal_vars.
7782 cli/cli-decode.c (find_command_name_length): Recognize | as
7783 a single character command.
7784
7785 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7786
7787 * gdbcmd.h (execute_command_to_ui_file): New declaration.
7788 top.c (execute_command_to_ui_file): New function, mostly a copy
7789 of execute_command_to_string.
7790 (execute_command_to_string): Implement by calling
7791 execute_command_to_ui_file.
7792
7793 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7794
7795 * top.h (saved_command_line): Remove declaration.
7796 * top.c (previous_saved_command_line, previous_repeat_arguments):
7797 New variables.
7798 (saved_command_line): Make static, define together with other
7799 'repeat variables'.
7800 (dont_repeat): Clear repeat_arguments.
7801 (repeat_previous, get_saved_command_line, save_command_line):
7802 New functions.
7803 (gdb_init): Initialize saved_command_line
7804 and previous_saved_command_line.
7805 * main.c (captured_main_1): Remove saved_command_line initialization.
7806 * event-top.c (handle_line_of_input): Update to use
7807 the new 'repeat' related functions instead of direct access to
7808 saved_command_line.
7809 * command.h (repeat_previous, get_saved_command_line,
7810 save_command_line): New declarations.
7811 (dont_repeat): Add comment.
7812
7813 2019-05-30 Tom Tromey <tromey@adacore.com>
7814
7815 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
7816 Fix comment.
7817 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
7818
7819 2019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
7820
7821 PR cli/24587
7822 * completer.c (complete): Initialize variable word.
7823
7824 2019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
7825
7826 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
7827 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
7828 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
7829 'body' is NULL to the outter 'if', protecting the '!is_define'
7830 situation as well.
7831
7832 2019-05-29 Tom Tromey <tromey@adacore.com>
7833
7834 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
7835 (dwarf_unknown): New function.
7836 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
7837 (dwarf_type_encoding_name): Use dwarf_unknown.
7838
7839 2019-05-29 Tom Tromey <tromey@adacore.com>
7840
7841 PR c++/20020:
7842 * cp-valprint.c (cp_print_value_fields): Call
7843 cp_print_static_field inside "try".
7844
7845 2019-05-29 Tom Tromey <tromey@adacore.com>
7846
7847 * inflow.c (struct terminal_info): Add default operator=.
7848 * configure: Rebuild.
7849 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
7850 -Wdeprecated-copy-dtor, -Wredundant-move.
7851
7852 2019-05-29 Tom Tromey <tromey@adacore.com>
7853
7854 * NEWS: Add entry.
7855 * infcmd.c (print_return_value_1): Handle finish_print
7856 option.
7857 (show_print_finish): New function.
7858 (_initialize_infcmd): Add "set/show print finish" commands.
7859 * valprint.c (user_print_options): Initialize new member.
7860 * valprint.h (struct value_print_options) <finish_print>: New
7861 member.
7862
7863 2019-05-28 Tom Tromey <tromey@adacore.com>
7864
7865 * ada-lang.c (ada_remove_Xbn_suffix)
7866 (find_old_style_renaming_symbol)
7867 (parse_old_style_renaming): Remove.
7868 (ada_find_renaming_symbol): Don't call
7869 find_old_style_renaming_symbol.
7870 (ada_is_renaming_symbol): Rename from
7871 ada_find_renaming_symbol. Remove "block" parameter. Return
7872 bool. Now static.
7873 (ada_read_var_value): Update and simplify.
7874 * ada-exp.y (write_var_or_type): Remove old code.
7875
7876 2019-05-28 Alan Hayward <alan.hayward@arm.com>
7877
7878 PR gdb/25010
7879 * event-top.c: Remove include comment.
7880 * inflow.c (class scoped_ignore_sigttou): Move from here...
7881 * inflow.h (class scoped_ignore_sigttou): ...to here.
7882 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
7883 * top.c: Remove include comment.
7884
7885 2019-05-27 Tom Tromey <tom@tromey.com>
7886
7887 * NEWS: Fix typo.
7888
7889 2019-05-22 Tom Tromey <tromey@adacore.com>
7890
7891 * target.c (target_follow_exec): Constify parameter.
7892 * target-delegates.c: Rebuild.
7893 * remote.c (remote_target::follow_exec): Constify parameter.
7894 * infrun.c (follow_exec): Constify parameter.
7895 * target.h (struct target_ops) <follow_exec>: Constify parameter.
7896 (target_follow_exec): Likewise.
7897
7898 2019-05-22 Alan Hayward <alan.hayward@arm.com>
7899
7900 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
7901 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
7902
7903 2019-05-22 Alan Hayward <alan.hayward@arm.com>
7904
7905 * NEWS: Add debugredirect and testsuite sections.
7906
7907 2019-05-22 Simon Cook <simon.cook@embecosm.com>
7908
7909 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
7910 target descriptions using exclusively floating point register name
7911 aliases.
7912
7913 2019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7914
7915 PR gdb/18644:
7916 * f-lang.c (build_fortran_types): Handle the case where
7917 gdbarch_floatformat_for_type returns a nullptr.
7918
7919 2019-05-21 Tom de Vries <tdevries@suse.de>
7920
7921 PR cli/24587
7922 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
7923
7924 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
7925
7926 PR gdb/18644:
7927 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
7928 16-byte floats.
7929 * i386-tdep.c (i386_floatformat_for_type): Use
7930 floatformats_ia64_quad for the 16-byte floating point component
7931 within a fortran 32-byte complex number.
7932
7933 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
7934
7935 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
7936 delete default constructor.
7937 (find_partial_die): Update to return const struct.
7938 (partial_die_parent_scope): Move variable declaration into scope
7939 of its use and change its type to auto.
7940 (guess_partial_die_structure_name): Likewise.
7941 (partial_die_info::fixup): Likewise.
7942
7943 2019-05-17 Tom Tromey <tromey@adacore.com>
7944
7945 * source.c (find_and_open_source): Remove cast.
7946
7947 2019-05-17 Tom Tromey <tromey@adacore.com>
7948
7949 * annotate.c (annotate_source): Make "filename" const.
7950 * annotate.h (annotate_source): Use const.
7951
7952 2019-05-17 Alan Hayward <alan.hayward@arm.com>
7953
7954 * disasm.c (set_disassembler_options): Send errors to stderr.
7955
7956 2019-05-17 Alan Hayward <alan.hayward@arm.com>
7957
7958 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
7959 (cli_interp_base::set_logging): Check debug_redirect.
7960 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
7961 * cli/cli-logging.c (debug_redirect): Add static variable.
7962 (pop_output_files): Add default param.
7963 (handle_redirections): Print debug setting.
7964 (show_logging_command): Likewise.
7965 (_initialize_cli_logging): Add debugredirect command.
7966 * interps.c (current_interp_set_logging): Add debug_redirect
7967 parameter.
7968 * interps.h (set_logging): Add debug_redirect parameter.
7969 (current_interp_set_logging): Likewise.
7970 * mi/mi-common.h: Likewise.
7971 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
7972
7973 2019-05-17 Alan Hayward <alan.hayward@arm.com>
7974 Tom Tromey <tromey@adacore.com>
7975
7976 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
7977 directly.
7978 * cli/cli-interp.h (make_logging_output): Remove declaration.
7979 * cli/cli-logging.c (make_logging_output): Remove function.
7980 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
7981 directly.
7982 * ui-file.c (tee_file::tee_file): Remove bools.
7983 (tee_file::~tee_file): Remove deletes.
7984 * ui-file.h (tee_file): Remove bools.
7985
7986 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
7987
7988 * mi/mi-cmds.h (mi_cmd_complete): New function.
7989 * mi/mi-main.c (mi_cmd_complete): Likewise.
7990 * mi/mi-cmds.c: Define new MI command -complete.
7991 * NEWS: Mention new -complete command.
7992
7993 2019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
7994
7995 * completer.h (complete): New function.
7996 * completer.c (complete): Likewise.
7997 * cli/cli-cmds.c: (complete_command): Update to use new complete()
7998 function defined in completer.h.
7999
8000 2019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
8001
8002 * MAINTAINERS (Write After Approval): Add myself.
8003
8004 2019-05-17 Tom de Vries <tdevries@suse.de>
8005
8006 PR gdb/24094
8007 * dwarf2read.c (struct cu_partial_die_info): New struct.
8008 (find_partial_die): Return cu_partial_die_info.
8009 (partial_die_parent_scope, guess_partial_die_structure_name)
8010 (partial_die_info::fixup): Handle new return type of find_partial_die.
8011
8012 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8013
8014 PR breakpoints/24541
8015 * stap-probe.c (stap_parse_register_operand): Make "regname" an
8016 "std::string", simplifying the algorithm.
8017
8018 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8019
8020 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
8021 (stap_static_probe_ops::get_probes): Likewise.
8022
8023 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8024
8025 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
8026 '-')" and "else if".
8027 (stap_parse_single_operand): Join checks for
8028 "gdbarch_stap_parse_special_token_p" and
8029 "gdbarch_stap_parse_special_token" in the same "if" statement.
8030 Invert check when verifying for operation on register
8031 displacement.
8032
8033 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8034
8035 * stap-probe.c (stap_get_opcode): Update comment.
8036 (stap_get_expected_argument_type): Likewise.
8037 (handle_stap_probe): Likewise.
8038
8039 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8040
8041 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
8042 return type to 'bool'. Adjust comment. Use 'bool' when
8043 appropriate.
8044 (i386_stap_parse_special_token_three_arg_disp): Likewise.
8045 * stap-probe.c (stap_parse_argument_1): Likewise.
8046 (stap_is_operator): Likewise.
8047 (stap_is_generic_prefix): Likewise.
8048 (stap_is_register_prefix): Likewise.
8049 (stap_is_register_indirection_prefix): Likewise.
8050 (stap_is_integer_prefix): Likewise.
8051 (stap_generic_check_suffix): Likewise.
8052 (stap_check_integer_suffix): Likewise.
8053 (stap_check_register_suffix): Likewise.
8054 (stap_check_register_indirection_suffix): Likewise.
8055 (stap_parse_register_operand): Likewise.
8056 (stap_parse_single_operand): Likewise.
8057 (stap_parse_argument_1): Likewise.
8058 (stap_probe::get_argument_count): Likewise.
8059 (stap_is_operator): Likewise.
8060
8061 2019-05-16 Tom Tromey <tromey@adacore.com>
8062
8063 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
8064 keyword to foreach.
8065
8066 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
8067
8068 * linux-thread-db.c (try_thread_db_load_1): Change return type
8069 to bool.
8070 (try_thread_db_load): Likewise.
8071 (try_thread_db_load_from_pdir_1): Likewise.
8072 (try_thread_db_load_from_pdir): Likewise.
8073 (try_thread_db_load_from_sdir): Likewise.
8074 (try_thread_db_load_from_dir): Likewise.
8075 (thread_db_load_search): Likewise.
8076 (has_libpthread): Likewise.
8077 (thread_db_load): Likewise.
8078
8079 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
8080
8081 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
8082 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
8083 NULL, and complain/return if that's the case.
8084
8085 2019-05-15 John Darrington <john@darrington.wattle.id.au>
8086
8087 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
8088 (advance, posn, abstract_read_memory): New functions.
8089 [struct mem_read_abstraction]: New struct.
8090 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
8091
8092 2019-05-14 Tom Tromey <tromey@adacore.com>
8093
8094 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
8095 value is not lval_memory.
8096
8097 2019-05-14 Tom Tromey <tromey@adacore.com>
8098
8099 * solib.c (info_sharedlibrary_command): Style the file name.
8100
8101 2019-05-14 Alan Hayward <alan.hayward@arm.com>
8102
8103 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
8104 (aarch64_vnv_type): Likewise.
8105 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
8106 * common/tdesc.c: Likewise.
8107 * common/tdesc.h (enum tdesc_type_kind): Likewise.
8108 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
8109 * features/aarch64-fpu.xml: Add ieee half view.
8110 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
8111 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
8112 * gdbtypes.h (struct builtin_type): Likewise.
8113 (struct objfile_type): Likewise.
8114
8115 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
8116
8117 * language.c (language_sniff_from_mangled_name): Fix "langauge"
8118 typo.
8119 * location.h (string_to_event_location): Likewise.
8120
8121 2019-05-11 Joel Brobecker <brobecker@adacore.com>
8122
8123 GDB 8.3 released.
8124
8125 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
8126
8127 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
8128 New variable declaration.
8129 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
8130 New variable.
8131 (print_one_breakpoint): Use ui_out::test_flags and new global
8132 variable to compute use_fixed_output.
8133 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
8134 Remove.
8135 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
8136 (mi_multi_location_breakpoint_output_fixed): Remove.
8137 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
8138 new variable.
8139 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
8140 fix_multi_location_breakpoint_output flag if version >= 3.
8141 * ui-out.h (enum ui_out_flag)
8142 <fix_multi_location_breakpoint_output>: New enumerator.
8143
8144 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
8145
8146 * contrib/cc-with-tweaks.sh: Validate dwz's work.
8147
8148 2019-05-10 Tom Tromey <tromey@adacore.com>
8149
8150 * ada-lang.c (catch_ada_completer): New function.
8151 (_initialize_ada_language): Use it.
8152
8153 2019-05-10 Tom Tromey <tromey@adacore.com>
8154
8155 * thread.c (print_thread_info): Make "requested_threads" const.
8156 * gdbthread.h (print_thread_info): Make "requested_threads"
8157 const.
8158 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
8159 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
8160
8161 2019-05-08 Tom Tromey <tom@tromey.com>
8162
8163 * gdbtypes.c (objfile_type_data): Change type.
8164 (objfile_type, _initialize_gdbtypes): Update.
8165
8166 2019-05-08 Tom Tromey <tom@tromey.com>
8167
8168 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
8169 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
8170 (_initialize_dwarf2_frame): Update.
8171
8172 2019-05-08 Tom Tromey <tom@tromey.com>
8173
8174 * objc-lang.c (objc_objfile_data): Change type.
8175 (find_methods): Update.
8176 (_initialize_objc_lang): Remove.
8177
8178 2019-05-08 Tom Tromey <tom@tromey.com>
8179
8180 * stabsread.c (rs6000_builtin_type_data): Change type.
8181 (rs6000_builtin_type, _initialize_stabsread): Update.
8182
8183 2019-05-08 Tom Tromey <tom@tromey.com>
8184
8185 * mips-tdep.c (mips_pdr_data): Remove.
8186 (_initialize_mips_tdep): Update.
8187
8188 2019-05-08 Tom Tromey <tom@tromey.com>
8189
8190 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
8191 (hppa_init_objfile_priv_data, read_unwind_info)
8192 (find_unwind_entry, _initialize_hppa_tdep): Update.
8193
8194 2019-05-08 Tom Tromey <tom@tromey.com>
8195
8196 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
8197 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
8198 on obstack.
8199 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
8200
8201 2019-05-08 Tom Tromey <tom@tromey.com>
8202
8203 * mdebugread.c (basic_type_data): Change type.
8204 (basic_type, _initialize_mdebugread): Update.
8205
8206 2019-05-08 Tom Tromey <tom@tromey.com>
8207
8208 * common/gdb_unique_ptr.h (struct noop_deleter): New.
8209
8210 2019-05-08 Tom Tromey <tom@tromey.com>
8211
8212 * nto-tdep.c (nto_inferior_data_reg): Change type.
8213 (nto_inferior_data): Update.
8214 (nto_inferior_data_cleanup, nto_new_inferior_data)
8215 (_initialize_nto_tdep): Remove.
8216 * nto-tdep.h (struct nto_inferior_data): Add initializers.
8217
8218 2019-05-08 Tom Tromey <tom@tromey.com>
8219
8220 * ada-lang.c (struct ada_inferior_data): Add initializers.
8221 (ada_inferior_data): Change type.
8222 (ada_inferior_data_cleanup): Remove.
8223 (get_ada_inferior_data, ada_inferior_exit)
8224 (struct ada_pspace_data): Add initializers, destructor.
8225 (ada_pspace_data_handle): Change type.
8226 (get_ada_pspace_data): Update.
8227 (ada_pspace_data_cleanup): Remove.
8228
8229 2019-05-08 Tom Tromey <tom@tromey.com>
8230
8231 * coffread.c (struct coff_symfile_info): Add initializers.
8232 (coff_objfile_data_key): Move lower. Change type.
8233 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
8234 Update.
8235 (coff_free_info): Remove.
8236
8237 2019-05-08 Tom Tromey <tom@tromey.com>
8238
8239 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
8240 (fbsd_pspace_data_handle): Move lower. Change type.
8241 (get_fbsd_pspace_data): Update.
8242 (fbsd_pspace_data_cleanup): Remove.
8243 (_initialize_fbsd_tdep): Update.
8244
8245 2019-05-08 Tom Tromey <tom@tromey.com>
8246
8247 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
8248 (get_ada_tasks_pspace_data): Update.
8249 (ada_tasks_pspace_data_cleanup): Remove.
8250 (_initialize_tasks): Update.
8251 (ada_tasks_inferior_data_handle): Change type.
8252 (get_ada_tasks_inferior_data): Update.
8253 (ada_tasks_inferior_data_cleanup): Remove.
8254 (struct ada_tasks_pspace_data): Add initializers.
8255
8256 2019-05-08 Tom Tromey <tom@tromey.com>
8257
8258 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
8259 * symfile-debug.c (debug_sym_get_probes): Change type.
8260 * stap-probe.c (handle_stap_probe):
8261 (stap_static_probe_ops::get_probes): Change type.
8262 * probe.h (class static_probe_ops) <get_probes>: Change type.
8263 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
8264 (parse_probes_in_pspace): Update.
8265 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
8266 Update.
8267 (any_static_probe_ops::get_probes): Change type.
8268 * elfread.c (elfread_data): New typedef.
8269 (probe_key): Change type.
8270 (elf_get_probes): Likewise. Update.
8271 (probe_key_free): Remove.
8272 (_initialize_elfread): Update.
8273 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
8274 Change type.
8275 (dtrace_process_dof_probe, dtrace_process_dof)
8276 (dtrace_static_probe_ops::get_probe): Change type.
8277
8278 2019-05-08 Tom Tromey <tom@tromey.com>
8279
8280 * xcoffread.c (struct xcoff_symfile_info): Rename from
8281 coff_symfile_info. Add initializers.
8282 (xcoff_objfile_data_key): Move lower. Change type.
8283 (XCOFF_DATA): Rewrite.
8284 (xcoff_free_info): Remove.
8285 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
8286 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
8287 (xcoff_initial_scan): Update.
8288
8289 2019-05-08 Tom Tromey <tom@tromey.com>
8290
8291 * solib-svr4.c (struct svr4_info): Add initializers and
8292 destructor.
8293 <probes_table>: Now an htab_up.
8294 (solib_svr4_pspace_data): Change type.
8295 (free_probes_table): Simplify.
8296 (~svr4_info): Rename from svr4_pspace_data_cleanup.
8297 (get_svr4_info, probes_table_htab_remove_objfile_probes)
8298 (probes_table_remove_objfile_probes, register_solib_event_probe)
8299 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
8300 (_initialize_svr4_solib): Update.
8301
8302 2019-05-08 Tom Tromey <tom@tromey.com>
8303
8304 * remote.c (remote_pspace_data): Change type.
8305 (remote_pspace_data_cleanup): Remove.
8306 (get_remote_exec_file, set_pspace_remote_exec_file)
8307 (_initialize_remote): Update.
8308
8309 2019-05-08 Tom Tromey <tom@tromey.com>
8310
8311 * breakpoint.c (breakpoint_objfile_key): Change type.
8312 (get_breakpoint_objfile_data): Update.
8313 (free_breakpoint_objfile_data): Remove.
8314 (_initialize_breakpoint): Update.
8315
8316 2019-05-08 Tom Tromey <tom@tromey.com>
8317
8318 * linux-tdep.c (struct linux_info): Add initializers.
8319 (linux_inferior_data): Move. Change type.
8320 (invalidate_linux_cache_inf): Update.
8321 (linux_inferior_data_cleanup): Remove.
8322 (get_linux_inferior_data, _initialize_linux_tdep): Update.
8323
8324 2019-05-08 Tom Tromey <tom@tromey.com>
8325
8326 * auxv.c (auxv_inferior_data): Move. Change type.
8327 (auxv_inferior_data_cleanup): Remove.
8328 (invalidate_auxv_cache_inf): Rewrite.
8329 (get_auxv_inferior_data, _initialize_auxv): Update.
8330
8331 2019-05-08 Tom Tromey <tom@tromey.com>
8332
8333 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
8334 (symfile_debug_objfile_data_key): Change type.
8335 (symfile_debug_installed, debug_qf_has_symbols)
8336 (debug_qf_find_last_source_symtab)
8337 (debug_qf_forget_cached_source_info)
8338 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
8339 (debug_qf_print_stats, debug_qf_dump)
8340 (debug_qf_expand_symtabs_for_function)
8341 (debug_qf_expand_all_symtabs)
8342 (debug_qf_expand_symtabs_with_fullname)
8343 (debug_qf_map_matching_symbols)
8344 (debug_qf_expand_symtabs_matching)
8345 (debug_qf_find_pc_sect_compunit_symtab)
8346 (debug_qf_map_symbol_filenames)
8347 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
8348 (debug_sym_new_init, debug_sym_init, debug_sym_read)
8349 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
8350 (debug_sym_read_linetable, debug_sym_relocate): Update.
8351 (symfile_debug_free_objfile): Remove.
8352 (install_symfile_debug_logging, _initialize_symfile_debug):
8353 Update.
8354
8355 2019-05-08 Tom Tromey <tom@tromey.com>
8356
8357 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
8358 allocate_on_obstack.
8359 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
8360 (get_dwarf2_per_objfile): Update.
8361 (set_dwarf2_per_objfile): Remove.
8362 (dwarf2_has_info, dwarf2_get_section_info): Update.
8363 (dwarf2_free_objfile): Remove.
8364 (_initialize_dwarf2_read): Update.
8365
8366 2019-05-08 Tom Tromey <tom@tromey.com>
8367
8368 * auto-load.c (struct auto_load_pspace_info): Add destructor and
8369 initializers.
8370 <unsupported_script_warning_printed,
8371 script_not_found_warning_printed>: Now bool.
8372 (auto_load_pspace_data): Change type.
8373 (~auto_load_pspace_info): Rename from
8374 auto_load_pspace_data_cleanup.
8375 (get_auto_load_pspace_data, init_loaded_scripts_info)
8376 (clear_section_scripts, maybe_print_unsupported_script_warning)
8377 (maybe_print_script_not_found_warning, _initialize_auto_load):
8378 Update.
8379
8380 2019-05-08 Tom Tromey <tom@tromey.com>
8381
8382 * objfiles.c (objfile_pspace_info): Add destructor and
8383 initializers.
8384 (objfiles_pspace_data): Change type.
8385 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
8386 (get_objfile_pspace_data): Update.
8387 (objfiles_bfd_data): Change type.
8388 (get_objfile_bfd_data): Update.
8389 (objfile_bfd_data_free, _initialize_objfiles): Remove.
8390
8391 2019-05-08 Tom Tromey <tom@tromey.com>
8392
8393 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
8394 Change type.
8395 (get_catch_syscall_inferior_data): Update.
8396 (catch_syscall_inferior_data_cleanup): Remove.
8397 (_initialize_break_catch_syscall): Update.
8398
8399 2019-05-08 Tom Tromey <tom@tromey.com>
8400
8401 * inflow.c (struct terminal_info): Add destructor and
8402 initializers.
8403 (inflow_inferior_data): Change type.
8404 (~terminal_info): Rename from inflow_inferior_data_cleanup.
8405 (get_inflow_inferior_data, inflow_inferior_exit)
8406 (swap_terminal_info, _initialize_inflow): Update.
8407
8408 2019-05-08 Tom Tromey <tom@tromey.com>
8409
8410 * target-dcache.c (target_dcache_cleanup): Remove.
8411 (target_dcache_aspace_key): Change type.
8412 (target_dcache_init_p, target_dcache_invalidate)
8413 (target_dcache_get, target_dcache_get_or_init)
8414 (_initialize_target_dcache): Update.
8415 * dcache.h (struct dcache_deleter): New.
8416
8417 2019-05-08 Tom Tromey <tom@tromey.com>
8418
8419 * symtab.c (struct symbol_cache): Add destructor and
8420 initializers.
8421 (symbol_cache_key): Move. Change type.
8422 (make_symbol_cache, free_symbol_cache): Remove.
8423 (get_symbol_cache): Update.
8424 (symbol_cache_cleanup): Remove.
8425 (ALL_PSPACES, symbol_cache_flush)
8426 (maintenance_print_symbol_cache)
8427 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
8428 Update.
8429
8430 2019-05-08 Tom Tromey <tom@tromey.com>
8431
8432 * symtab.c (struct main_info): Add destructor and initializers.
8433 (main_progspace_key): Move. Change type.
8434 (get_main_info): Update.
8435 (main_info_cleanup): Remove.
8436 (_initialize_symtab): Update.
8437
8438 2019-05-08 Tom Tromey <tom@tromey.com>
8439
8440 * registry.h (DECLARE_REGISTRY): Define the _key class.
8441
8442 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
8443
8444 * NEWS: Merge two 'New commands' sections.
8445
8446 2019-05-08 Joel Brobecker <brobecker@adacore.com>
8447
8448 * ada-valprint.c (ada_val_print_gnat_array): Remove language
8449 parameter and use Ada language definition instead.
8450 (ada_val_print_ptr): Remove unused language parameter.
8451 (ada_val_print_num): Remove language parameter and use Ada language
8452 definition instead.
8453 (ada_val_print_enum, ada_val_print_flt): Remove unused language
8454 parameter.
8455 (ada_val_print_struct_union, ada_val_print_ref): Remove language
8456 parameter and use Ada language definition instead.
8457 (ada_val_print_1): Update all ada_val_print_xxx calls.
8458 Remove language parameter.
8459 (ada_val_print): Update ada_val_print_1 call.
8460
8461 2019-05-08 Tom Tromey <tromey@adacore.com>
8462
8463 * remote.c (remote_hw_watchpoint_limit)
8464 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
8465 Now static.
8466
8467 2019-05-08 Tom Tromey <tromey@adacore.com>
8468
8469 * maint.c (_initialize_maint_cmds): Move initialization code to
8470 remote.c.
8471 (watchdog, show_watchdog): Move to remote.c.
8472 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
8473 "watchdog" static.
8474 (_initialize_remote): Move initialization code from maint.c.
8475 * defs.h (watchdog): Don't declare.
8476
8477 2019-05-08 Tom Tromey <tromey@adacore.com>
8478
8479 * tui/tui-interp.c: Include main.h.
8480 * interps.c: Include main.h.
8481 * main.h (interpreter_p): Declare.
8482 * defs.h (interpreter_p): Don't declare.
8483
8484 2019-05-08 Tom Tromey <tromey@adacore.com>
8485
8486 * dwarf2loc.c: Include dwarf2read.h.
8487 * defs.h (read_unsigned_leb128): Don't declare.
8488 * dwarf2read.h (read_unsigned_leb128): Declare.
8489
8490 2019-05-08 Tom Tromey <tromey@adacore.com>
8491
8492 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
8493 method.
8494
8495 2019-05-08 Tom Tromey <tromey@adacore.com>
8496
8497 * utils.c (fputs_maybe_filtered): Reset style after paging, even
8498 when no wrap column is set.
8499
8500 2019-05-08 Tom Tromey <tromey@adacore.com>
8501
8502 * c-lang.c (c_get_string): Handle non-C-style arrays.
8503
8504 2019-05-08 Tom Tromey <tromey@adacore.com>
8505
8506 * typeprint.c (print_offset_data::update): Print the bit offset,
8507 not the number of bits remaining.
8508
8509 2019-05-08 Tom Tromey <tromey@adacore.com>
8510
8511 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
8512 padding at end of comment.
8513
8514 2019-05-08 Tom Tromey <tromey@adacore.com>
8515
8516 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
8517 Compare main types.
8518
8519 2019-05-06 Tom Tromey <tom@tromey.com>
8520
8521 * common/scoped_mmap.c: Include common-defs.h.
8522 * common/scoped_mmap.h: Don't include config.h.
8523
8524 2019-05-04 Tom Tromey <tom@tromey.com>
8525
8526 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
8527 (struct aarch64_call_info): Add initializers.
8528 <si>: Now a std::vector.
8529 (pass_on_stack, aarch64_push_dummy_call): Update.
8530
8531 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
8532 Tom Tromey <tom@tromey.com>
8533
8534 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
8535 (ppc_threads): Now a std::vector. Now static.
8536 (hwdebug_find_thread_points_by_tid)
8537 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
8538 Update.
8539
8540 2019-05-04 Tom Tromey <tom@tromey.com>
8541
8542 * arc-tdep.c (arc_tdesc_init): Return bool.
8543
8544 2019-05-04 Tom Tromey <tom@tromey.com>
8545
8546 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
8547 Use gdb_assert_not_reached.
8548
8549 2019-05-04 Tom Tromey <tom@tromey.com>
8550
8551 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
8552 "false".
8553
8554 2019-05-04 Tom Tromey <tom@tromey.com>
8555
8556 * arc-tdep.c (arc_tdesc_init): Use bool.
8557
8558 2019-05-04 Tom Tromey <tom@tromey.com>
8559
8560 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
8561
8562 2019-05-04 Tom Tromey <tom@tromey.com>
8563
8564 * cli/cli-cmds.c (valid_command_p): Return bool.
8565
8566 2019-05-04 Tom Tromey <tom@tromey.com>
8567
8568 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
8569 * command.h (valid_user_defined_cmd_name_p): Channge return type.
8570
8571 2019-05-04 Raul Tambre <raul@tambre.ee>
8572
8573 * python/lib/gdb/prompt.py (_ExtendedPrompt)
8574 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
8575 operator for comparison.
8576
8577 2019-05-04 Tom Tromey <tom@tromey.com>
8578
8579 * psymtab.c (psymbol_name_matches, match_partial_symbol)
8580 (lookup_partial_symbol, print_partial_symbols)
8581 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
8582 (psymbol_compare): Update.
8583 (add_psymbol_to_bcache): Clear the entire psymbol.
8584 (maintenance_check_psymtabs): Update.
8585 * psympriv.h (struct partial_symbol): Don't derive from
8586 general_symbol_info.
8587 <obj_section, unrelocated_address, address,
8588 set_unrelocated_address>: Update.
8589 <ginfo>: New member.
8590 * dwarf-index-write.c (write_psymbols, debug_names::insert)
8591 (debug_names::write_psymbols): Update.
8592
8593 2019-05-04 Tom de Vries <tdevries@suse.de>
8594
8595 * contrib/cc-with-tweaks.sh: Support -n arg.
8596
8597 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8598
8599 * corelow.c (core_target::detach): Ensure frame cache and
8600 register caches are cleared.
8601 inferior.c (exit_inferior_1): Likewise.
8602
8603 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
8604 Tom Tromey <tom@tromey.com>
8605
8606 * dictionary.c (collate_pending_symbols_by_language): Remove
8607 "struct" from foreach.
8608 * symtab.c (lookup_global_symbol_from_objfile)
8609 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
8610 foreach.
8611 * ser-tcp.c (net_open): Remove "struct" from foreach.
8612 * objfiles.c (objfile_relocate, objfile_rebase)
8613 (objfile_has_symbols): Remove "struct" from foreach.
8614 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
8615 from foreach.
8616 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
8617 foreach.
8618 * darwin-nat.c (thread_info_from_private_thread_info): Remove
8619 "struct" from foreach.
8620 * ada-lang.c (create_excep_cond_exprs)
8621 (ada_exception_catchpoint_cond_string): Remove "struct" from
8622 foreach.
8623
8624 2019-05-03 Tom Tromey <tromey@adacore.com>
8625
8626 * ada-exp.y (convert_char_literal): Check suffix of each
8627 enumerator.
8628
8629 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
8630
8631 PR ada/21406:
8632 * ada-exp.y (yywrap): Don't define.
8633 * ada-lex.l (%option): Add noyywrap
8634 (yywrap): Remove.
8635
8636 2019-05-03 Eli Zaretskii <eliz@gnu.org>
8637
8638 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
8639 _WIN32_WINNT to the XP level, unless already defined to a higher
8640 level.
8641
8642 * unittests/parse-connection-spec-selftests.c:
8643 * ser-tcp.c:
8644 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
8645 override.
8646
8647 * symfile.c (find_separate_debug_file): Remove colon from the
8648 drive spec of DOS/Windows file names of the target, so that the
8649 file name produced from DEBUGDIR and the target's directory will
8650 be valid on DOS/Windows systems.
8651
8652 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
8653
8654 * rust-lang.c (val_print_struct): Handle printing structures
8655 containing strings.
8656
8657 2019-05-02 Tom Tromey <tromey@adacore.com>
8658
8659 * valarith.c (_initialize_valarith): Remove.
8660
8661 2019-05-01 Tom Tromey <tromey@adacore.com>
8662
8663 * ada-lang.c (ada_value_primitive_field): Treat more fields as
8664 bitfields.
8665
8666 2019-05-01 Tom Tromey <tromey@adacore.com>
8667
8668 * ada-lang.c (ada_value_assign): Correctly compute starting offset
8669 for big-endian copies.
8670
8671 2019-04-30 Ali Tamur <tamur@google.com>
8672 * gdb/dwarf2read.c (read_3_bytes): New declaration.
8673 (read_attribute_value): Added DW_FORM_strx1-4 cases.
8674 (read_3_bytes): New function.
8675
8676 2019-04-30 Joel Brobecker <brobecker@adacore.com>
8677
8678 * windows-nat.c (main_thread_id): Delete.
8679 (handle_output_debug_string): Replace main_thread_id by
8680 current_event.dwThreadId.
8681 (fake_create_process): Likewise.
8682 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
8683 Do not set main_thread_id.
8684 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
8685 current_event.dwThreadId.
8686 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
8687
8688 2019-04-30 Joel Brobecker <brobecker@adacore.com>
8689
8690 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
8691 Use current_event.dwThreadId instead of main_thread_id.
8692
8693 2019-04-30 Tom Tromey <tromey@adacore.com>
8694
8695 * ada-lang.c (ada_lookup_simple_minsyms): New function.
8696 (create_excep_cond_exprs): Iterate over program spaces.
8697 (ada_exception_catchpoint_cond_string): Examine all minimal
8698 symbols for exception types.
8699
8700 2019-04-30 Tom Tromey <tromey@adacore.com>
8701
8702 PR c++/24470:
8703 * dwarf2read.c (process_structure_scope): Handle case where type
8704 has template parameters but no symbol was created.
8705
8706 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8707 Chris January <chris.january@arm.com>
8708
8709 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
8710 qualifier.
8711 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
8712
8713 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8714
8715 * f-typeprint.c (f_print_type): Update rules for printing
8716 whitespace.
8717 (f_type_print_varspec_suffix): Likewise.
8718
8719 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8720 Chris January <chris.january@arm.com>
8721
8722 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
8723 function arguments.
8724
8725 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8726
8727 * f-lang.c (build_fortran_types): Change name of void type to
8728 lower case.
8729 * f-typeprint.c (f_type_print_base): Print the name of the void
8730 type, rather than a fixed string.
8731 * f-valprint.c (f_decorations): Use lower case void string.
8732
8733 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8734 Chris January <chris.january@arm.com>
8735
8736 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
8737 types for Fortran.
8738
8739 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8740 Chris January <chris.january@arm.com>
8741 David Lecomber <david.lecomber@arm.com>
8742
8743 * f-exp.y (BINOP_INTRINSIC): New token.
8744 (exp): New parser rule handling BINOP_INTRINSIC.
8745 (f77_keywords): Add new builtin procedures.
8746 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
8747 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
8748 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
8749 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
8750 (print_unop_subexp_f): New function.
8751 (print_binop_subexp_f): New function.
8752 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
8753 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
8754 (dump_subexp_body_f): Likewise.
8755 (operator_check_f): Likewise.
8756 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
8757 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
8758
8759 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8760
8761 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
8762 UNOP_KIND.
8763 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
8764 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
8765 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
8766 (operator_length_f): New fuction.
8767 (print_subexp_f): New function.
8768 (op_name_f): New function.
8769 (dump_subexp_body_f): New function.
8770 (operator_check_f): New function.
8771 (exp_descriptor_f): Replace standard expression handling functions
8772 with new functions.
8773 * gdb/fortran-operator.def: New file.
8774 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
8775 * gdb/std-operator.def: Remove UNOP_KIND.
8776
8777 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8778
8779 * std-operator.def: Remove unbalanced, stray double quote
8780 character.
8781
8782 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
8783 Chris January <chris.january@arm.com>
8784 Daniel Everett <daniel.everett@arm.com>
8785 Nick Forrington <nick.forrington@arm.com>
8786 Richard Bunt <richard.bunt@arm.com>
8787
8788 * cp-valprint.c (cp_print_value_fields): Allow an additional level
8789 of depth when printing anonymous structs or unions.
8790 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
8791 Don't print either the top-level value, or the children if the
8792 max-depth is exceeded.
8793 (ppscm_print_children): When printing the key of a map, allow one
8794 extra level of depth.
8795 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
8796 print either the top-level value, or the children if the max-depth
8797 is exceeded.
8798 (print_children): When printing the key of a map, allow one extra
8799 level of depth.
8800 * python/py-value.c (valpy_format_string): Add max_depth keyword.
8801 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
8802 (user_print_options): Initialise max_depth field.
8803 (val_print_scalar_or_string_type_p): New function.
8804 (val_print): Check to see if the max depth has been reached.
8805 (val_print_check_max_depth): Define new function.
8806 (show_print_max_depth): New function.
8807 (_initialize_valprint): Add 'print max-depth' option.
8808 * valprint.h (struct value_print_options) <max_depth>: New field.
8809 (val_print_check_max_depth): Declare new function.
8810 * NEWS: Document new feature.
8811
8812 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
8813
8814 * ada-lang.c (ada_language_defn): Initialise new field.
8815 * c-lang.c (c_is_string_type_p): New function.
8816 (c_language_defn): Initialise new field.
8817 (cplus_language_defn): Initialise new field.
8818 (asm_language_defn): Initialise new field.
8819 (minimal_language_defn): Initialise new field.
8820 * c-lang.h (c_is_string_type_p): Declare new function.
8821 * d-lang.c (d_language_defn): Initialise new field.
8822 * f-lang.c (f_is_string_type_p): New function.
8823 (f_language_defn): Initialise new field.
8824 * go-lang.c (go_is_string_type_p): New function.
8825 (go_language_defn): Initialise new field.
8826 * language.c (default_is_string_type_p): New function.
8827 (unknown_language_defn): Initialise new field.
8828 (auto_language_defn): Initialise new field.
8829 * language.h (struct language_defn) <la_is_string_type_p>: New
8830 member variable.
8831 (default_is_string_type_p): Declare new function.
8832 * m2-lang.c (m2_language_defn): Initialise new field.
8833 * objc-lang.c (objc_language_defn): Initialise new field.
8834 * opencl-lang.c (opencl_language_defn): Initialise new field.
8835 * p-lang.c (pascal_is_string_type_p): New function.
8836 (pascal_language_defn): Initialise new field.
8837 * rust-lang.c (rust_is_string_type_p): New function.
8838 (rust_language_defn): Initialise new field.
8839
8840 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
8841
8842 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
8843 New field.
8844 * ada-lang.c (ada_language_defn): Initialise new field.
8845 * c-lang.c (c_language_defn): Likewise.
8846 (cplus_language_defn): Likewise.
8847 (asm_language_defn): Likewise.
8848 (minimal_language_defn): Likewise.
8849 * d-lang.c (d_language_defn): Likewise.
8850 * f-lang.c (f_language_defn): Likewise.
8851 * go-lang.c (go_language_defn): Likewise.
8852 * language.c (unknown_language_defn): Likewise.
8853 (auto_language_defn): Likewise.
8854 * m2-lang.c (m2_language_defn): Likewise.
8855 * objc-lang.c (objc_language_defn): Likewise.
8856 * opencl-lang.c (opencl_language_defn): Likewise.
8857 * p-lang.c (pascal_language_defn): Likewise.
8858 * rust-lang.c (rust_language_defn): Likewise.
8859
8860 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
8861
8862 * ada-lang.c (ada_is_character_type): Change return type to bool.
8863 (ada_is_string_type): Likewise.
8864 * ada-lang.h (ada_is_character_type): Update declaration
8865 (ada_is_string_type): Likewise.
8866
8867 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8868
8869 Support style in 'frame|thread apply'
8870
8871 * gdbcmd.h (execute_command_to_string): New term_out parameter.
8872 * record.c (record_start, record_stop): Update callers of
8873 execute_command_to_string with false.
8874 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
8875 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
8876 methods.
8877 (class string_file): New constructor with term_out parameter.
8878 Override methods term_out and can_emit_style_escape. New member
8879 term_out.
8880 (class stdio_file): Override can_emit_style_escape.
8881 (class tee_file): Override term_out and can_emit_style_escape.
8882 * utils.h (can_emit_style_escape): Remove.
8883 * utils.c (can_emit_style_escape): Likewise.
8884 Update all callers of can_emit_style_escape (SOMESTREAM) to
8885 SOMESTREAM->can_emit_style_escape.
8886 * source-cache.c (source_cache::get_source_lines): Likewise.
8887 * stack.c (frame_apply_command_count): Call execute_command_to_string
8888 passing the term_out characteristic of the current gdb_stdout.
8889 * thread.c (thr_try_catch_cmd): Likewise.
8890 * top.c (execute_command_to_string): pass term_out parameter
8891 to construct the string_file for the command output.
8892 * ui-file.c (term_cli_styling): New function (most code moved
8893 from utils.c can_emit_style_escape).
8894 (string_file::string_file, string_file::can_emit_style_escape,
8895 stdio_file::can_emit_style_escape, tee_file::term_out,
8896 tee_file::can_emit_style_escape): New functions.
8897
8898 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8899
8900 * NEWS: Mention the new set|show may-call-functions.
8901 * infcall.c (may_call_functions_p): New variable.
8902 (show_may_call_functions_p): New function.
8903 (call_function_by_hand_dummy): Throws an error if not
8904 may-call-functions.
8905 (_initialize_infcall): Call add_setshow_boolean_cmd for
8906 may-call-functions.
8907
8908 2019-04-25 Keith Seitz <keiths@redhat.com>
8909
8910 PR c++/24367
8911 * cp-support.c (inspect_type): Don't attempt substitutions
8912 of symbol with the same name.
8913
8914 2019-04-25 Tom Tromey <tromey@adacore.com>
8915
8916 PR gdb/24475:
8917 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
8918 static.
8919
8920 2019-04-25 Tom Tromey <tromey@adacore.com>
8921
8922 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
8923 rvalue reference.
8924 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
8925 (gdb_xml_parser::parse): Use std::move.
8926 * python/python-internal.h (gdbpy_convert_exception): Take a const
8927 reference.
8928 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
8929 std::move.
8930 * python/py-utils.c (gdbpy_convert_exception): Take a const
8931 reference.
8932 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
8933 Use std::move.
8934 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
8935 Use std::move.
8936 * mi/mi-main.c (mi_print_exception): Take a const reference.
8937 * main.c (handle_command_errors): Take a const reference.
8938 * linespec.c (parse_linespec): Use std::move.
8939 * infcall.c (run_inferior_call): Use std::move.
8940 (call_function_by_hand_dummy): Use std::move.
8941 * exec.c (try_open_exec_file): Use std::move.
8942 * exceptions.h (exception_print, exception_fprintf)
8943 (exception_print_same): Update.
8944 * exceptions.c (print_exception, exception_print)
8945 (exception_fprintf, exception_print_same): Change parameters to
8946 const reference.
8947 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
8948 * common/new-op.c: Use std::move.
8949 * common/common-exceptions.h (struct gdb_exception): Add move
8950 constructor.
8951 (struct gdb_exception_error, struct gdb_exception_quit, struct
8952 gdb_quit_bad_alloc): Change constructor to move constructor.
8953 (throw_exception): Change parameter to rvalue reference.
8954 * common/common-exceptions.c (throw_exception): Take rvalue
8955 reference.
8956 * cli/cli-interp.c (safe_execute_command): Use std::move.
8957 * breakpoint.c (insert_bp_location, location_to_sals): Use
8958 std::move.
8959
8960 2019-04-25 Tom Tromey <tromey@adacore.com>
8961
8962 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
8963 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
8964 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
8965 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
8966 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
8967 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
8968 guile/scm-value.c: Use unpack.
8969 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
8970 gdbscm_gdb_exception.
8971 (gdbscm_throw_gdb_exception): Likewise.
8972 (struct gdbscm_gdb_exception): New.
8973 (unpack): New function.
8974 (gdbscm_wrap): Use unpack.
8975
8976 2019-04-25 Tom Tromey <tromey@adacore.com>
8977
8978 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
8979 (gdb_rl_callback_handler): Use std::move.
8980 * common/common-exceptions.h (struct gdb_exception): Add move
8981 assignment operator.
8982 (throw_exception_sjlj): Change "exception" to const reference.
8983 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
8984 (throw_exception_sjlj): Change "exception" to const reference.
8985
8986 2019-04-25 Tom Tromey <tromey@adacore.com>
8987
8988 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
8989 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
8990 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
8991 Update.
8992 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
8993 Update.
8994 * mi/mi-interp.c (mi_interp::exec): Update.
8995 * linespec.c (parse_linespec): Update.
8996 * infcall.c (run_inferior_call): Update.
8997 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
8998 * guile/scm-symbol.c (gdbscm_lookup_symbol)
8999 (gdbscm_lookup_global_symbol): Update.
9000 * guile/scm-param.c (gdbscm_parameter_value): Update.
9001 * guile/scm-frame.c (gdbscm_frame_read_register)
9002 (gdbscm_frame_read_var): Update.
9003 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
9004 * exec.c (try_open_exec_file): Update.
9005 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
9006 (gdb_rl_callback_handler): Update.
9007 * common/common-exceptions.h (exception_none): Don't declare.
9008 * common/common-exceptions.c (exception_none): Don't define.
9009 (struct catcher) <exception>: Update.
9010 * cli/cli-interp.c (safe_execute_command): Update.
9011 * breakpoint.c (insert_bp_location, location_to_sals): Update.
9012
9013 2019-04-25 Ali Tamur <tamur@google.com>
9014
9015 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
9016 (read_attribute_value): Likewise.
9017 (dwarf2_read_addr_index): Update comment.
9018 (read_str_index): Add DW_FORM_strx.
9019 (dwarf2_string_attr): Likewise.
9020 (dwarf2_const_value_attr): Likewise.
9021 (dump_die_shallow): Likewise.
9022 (dwarf2_fetch_constant_bytes): Likewise.
9023 (skip_form_bytes): Likewise.
9024 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
9025
9026 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
9027
9028 PR corefiles/11608
9029 PR corefiles/18187
9030 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
9031 OFFSET. Verify if current mapping contains an ELF header.
9032 (linux_find_memory_regions_full): Adjust call to
9033 dump_mapping_p.
9034
9035 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
9036 Kang Li <kanglictf@gmail.com>
9037
9038 PR gdb/21600
9039
9040 * dwarf2-frame.c (read_initial_length): Be consistent about using
9041 unsigned representation of length.
9042 (decode_frame_entry_1): Likewise. Check for wraparound of
9043 end pointer as well as buffer overflow.
9044
9045 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
9046
9047 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
9048 "vq".
9049
9050 2019-04-24 Tom Tromey <tromey@adacore.com>
9051
9052 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
9053
9054 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9055
9056 * s12z-tdep.c (s12z_unwind_pc): Delete.
9057 (s12z_unwind_sp): Delete.
9058 (s12z_gdbarch_init): Don't register deleted functions with
9059 gdbarch.
9060
9061 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9062
9063 * rl78-tdep.c (rl78_unwind_sp): Delete.
9064 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
9065
9066 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9067
9068 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
9069 (xstormy16_unwind_pc): Delete.
9070 (xstormy16_dummy_id): Delete.
9071 (xstormy16_gdbarch_init): Don't register deleted functions with
9072 gdbarch.
9073
9074 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9075
9076 * vax-tdep.c (vax_unwind_pc): Delete.
9077 (vax_gdbarch_init): Don't register deleted function with gdbarch.
9078
9079 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9080
9081 * v850-tdep.c (v850_unwind_sp): Delete.
9082 (v850_unwind_pc): Delete.
9083 (v850_dummy_id): Delete.
9084 (v850_gdbarch_init): Don't register deleted functions with
9085 gdbarch.
9086
9087 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9088
9089 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
9090 (tilegx_unwind_pc): Delete.
9091 (tilegx_unwind_dummy_id): Delete.
9092 (tilegx_gdbarch_init): Don't register deleted functions with
9093 gdbarch.
9094
9095 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9096
9097 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
9098 (tic6x_dummy_id): Delete.
9099 (tic6x_gdbarch_init): Don't register deleted functions with
9100 gdbarch.
9101
9102 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9103
9104 * sparc-tdep.c (sparc_unwind_pc): Delete.
9105 (sparc32_gdbarch_init): Don't register deleted function with
9106 gdbarch.
9107
9108 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9109
9110 * sh-tdep.c (sh_unwind_sp): Delete.
9111 (sh_unwind_pc): Delete.
9112 (sh_dummy_id): Delete.
9113 (sh_gdbarch_init): Don't register deleted functions with
9114 gdbarch.
9115
9116 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9117
9118 * score-tdep.c (score_unwind_sp): Delete.
9119 (score_unwind_pc): Delete.
9120 (score_dummy_id): Delete.
9121 (score_gdbarch_init): Don't register deleted functions with
9122 gdbarch.
9123
9124 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9125
9126 * rx-tdep.c (rx_unwind_pc): Delete.
9127 (rx_unwind_sp): Delete.
9128 (rx_dummy_id): Delete.
9129 (rx_gdbarch_init): Don't register deleted functions with
9130 gdbarch. Update comment.
9131
9132 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9133
9134 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
9135 (rs6000_dummy_id): Delete.
9136 (rs6000_gdbarch_init): Don't register deleted functions with
9137 gdbarch.
9138
9139 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9140
9141 * or1k-tdep.c (or1k_dummy_id): Delete.
9142 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
9143
9144 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9145
9146 * nios2-tdep.c (nios2_dummy_id): Delete.
9147 (nios2_unwind_sp): Delete.
9148 (nios2_gdbarch_init): Don't register deleted functions with
9149 gdbarch.
9150
9151 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9152
9153 * nds32-tdep.c (nds32_dummy_id): Delete.
9154 (nds32_unwind_pc): Delete.
9155 (nds32_unwind_sp): Delete.
9156 (nds32_gdbarch_init): Don't register deleted functions with
9157 gdbarch.
9158
9159 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9160
9161 * msp430-tdep.c (msp430_unwind_pc): Delete.
9162 (msp430_unwind_sp): Delete.
9163 (msp430_dummy_id): Delete.
9164 (msp430_gdbarch_init): Don't register deleted functions with
9165 gdbarch.
9166
9167 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9168
9169 * moxie-tdep.c (moxie_unwind_sp): Delete.
9170 (moxie_unwind_pc): Delete.
9171 (moxie_dummy_id): Delete.
9172 (moxie_gdbarch_init): Don't register deleted functions with
9173 gdbarch.
9174
9175 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9176
9177 * mn10300-tdep.c (mn10300_dummy_id): Delete.
9178 (mn10300_unwind_pc): Delete.
9179 (mn10300_unwind_sp): Delete.
9180 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
9181 mn10300_unwind_sp.
9182 (mn10300_frame_unwind_init): Don't register deleted functions with
9183 gdbarch.
9184
9185 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9186
9187 * mep-tdep.c (mep_unwind_pc): Delete.
9188 (mep_unwind_sp): Delete.
9189 (mep_dummy_id): Delete.
9190 (mep_gdbarch_init): Don't register deleted functions with
9191 gdbarch.
9192
9193 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9194
9195 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
9196 (m68hc11_unwind_sp): Delete.
9197 (m68hc11_gdbarch_init): Don't register deleted functions with
9198 gdbarch.
9199
9200 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9201
9202 * m32r-tdep.c (m32r_unwind_sp): Delete.
9203 (m32r_unwind_pc): Delete.
9204 (m32r_dummy_id): Delete.
9205 (m32r_gdbarch_init): Don't register deleted functions with
9206 gdbarch.
9207
9208 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9209
9210 * m32c-tdep.c (m32c_unwind_pc): Delete.
9211 (m32c_unwind_sp): Delete.
9212 (m32c_dummy_id): Delete.
9213 (m32c_gdbarch_init): Don't register deleted functions with
9214 gdbarch.
9215
9216 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9217
9218 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
9219 (lm32_unwind_pc): Delete.
9220 (lm32_dummy_id): Delete.
9221 (lm32_gdbarch_init): Don't register deleted functions with
9222 gdbarch.
9223
9224 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9225
9226 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
9227 (iq2000_unwind_pc): Delete.
9228 (iq2000_dummy_id): Delete.
9229 (iq2000_gdbarch_init): Don't register deleted functions with
9230 gdbarch.
9231
9232 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9233
9234 * nds32-tdep.c (nds32_type_align): Delete.
9235 (nds32_push_dummy_call): Use type_align instead.
9236
9237 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9238
9239 * arm-tdep.c (arm_type_align): Only handle vector override case.
9240 (arm_push_dummy_call): Use type_align.
9241 (arm_gdbarch_init): Register arm_type_align gdbarch function.
9242
9243 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9244
9245 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
9246 case.
9247 (pass_on_stack): Use type_align.
9248 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
9249 function.
9250
9251 2019-04-23 Tom Tromey <tromey@adacore.com>
9252
9253 * dwarf2read.c (line_header::file_name_at): Remove unused
9254 overload.
9255
9256 2019-04-23 Tom de Vries <tdevries@suse.de>
9257
9258 PR gdb/24438
9259 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
9260 invocation.
9261
9262
9263 2019-03-27 Ali Tamur <tamur@google.com>
9264
9265 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
9266 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
9267 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
9268 (dwarf_expr_context::get_addr_index): Likewise
9269 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
9270 (symbol_needs_eval_context::get_addr_index): Likewise
9271 (disassemble_dwarf_expression): Add DW_OP_addrx
9272 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
9273 (read_cutu_die_from_dwo): Update comment
9274 (skip_one_die): Add DW_FORM_addrx
9275 (read_attribute_value): Likewise
9276 (var_decode_location): Add DW_OP_addrx
9277 (dwarf2_const_value_attr): Add DW_FORM_addrx
9278 (dump_die_shallow): Likewise
9279 (dwarf2_fetch_constant_bytes): Likewise
9280 (decode_locdesc): Add DW_OP_addrx
9281 (skip_form_bytes): Add DW_FORM_addrx
9282
9283 2019-04-22 Ali Tamur <tamur@google.com>
9284
9285 * MAINTAINERS (Write After Approval): Add self.
9286
9287 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
9288
9289 * solib-svr4.c (get_svr4_info): Add pspace parameter.
9290 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
9291 (open_symbol_file_object): Likewise.
9292 (svr4_default_sos): Add info parameter.
9293 (svr4_read_so_list): Likewise.
9294 (svr4_current_sos_direct): Adjust functions calls to pass down
9295 info.
9296 (svr4_current_sos_1): Add info parameter.
9297 (svr4_current_sos): Call get_svr4_info, pass info down to
9298 svr4_current_sos_1.
9299 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
9300 get_svr4_info.
9301 (svr4_in_dynsym_resolve_code): Pass current_program_space to
9302 get_svr4_info.
9303 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
9304 to get_svr4_info.
9305 (probes_table_remove_objfile_probes): Likewise.
9306 (register_solib_event_probe): Add info parameter.
9307 (solist_update_incremental): Pass info parameter down to
9308 svr4_read_so_list.
9309 (disable_probes_interface): Add info parameter.
9310 (svr4_handle_solib_event): Pass current_program_space to
9311 get_svr4_info. Adjust disable_probes_interface cleanup.
9312 (svr4_create_probe_breakpoints): Add info parameter, pass it
9313 down to register_solib_event_probe.
9314 (svr4_create_solib_event_breakpoints): Add info parameter,
9315 pass it down to svr4_create_probe_breakpoints.
9316 (enable_break): Pass info down to
9317 svr4_create_solib_event_breakpoints.
9318 (svr4_solib_create_inferior_hook): Pass current_program_space to
9319 get_svr4_info.
9320 (svr4_clear_solib): Likewise.
9321
9322 2019-04-22 Pedro Alves <palves@redhat.com>
9323
9324 * solib-svr4.c (svr4_free_objfile_observer): New.
9325 (probe_and_action::objfile): New field.
9326 (probes_table_htab_remove_objfile_probes)
9327 (probes_table_remove_objfile_probes): New functions.
9328 (register_solib_event_probe): Add 'objfile' parameter. Store it
9329 in the new probe_and_action. Don't store the probe in 'lookup'.
9330 (svr4_create_probe_breakpoints): Pass objfile to
9331 register_solib_event_probe.
9332 (_initialize_svr4_solib): Register a free_objfile observer.
9333
9334 2019-04-19 Tom Tromey <tom@tromey.com>
9335
9336 * common/queue.h: Remove.
9337
9338 2019-04-19 Tom Tromey <tom@tromey.com>
9339
9340 * event-loop.c: Don't include "common/queue.h".
9341
9342 2019-04-19 Tom Tromey <tom@tromey.com>
9343
9344 * remote.c (remote_target): Use delete.
9345 * remote-notif.h: Include <list>, not "common/queue.h".
9346 (notif_client_p): Remove typedef.
9347 (remote_notif_state): Add constructor, destructor, initializer.
9348 <notif_queue>: Now a std::list.
9349 (remote_notif_state_xfree): Don't declare.
9350 * remote-notif.c (remote_notif_process, handle_notification)
9351 (remote_notif_state_allocate): Update.
9352 (~remote_notif_state): Rename from remote_notif_state_xfree.
9353
9354 2019-04-19 Tom Tromey <tom@tromey.com>
9355
9356 * symfile.c (reread_symbols): Update.
9357 * objfiles.c (objfile_register_static_link)
9358 (objfile_lookup_static_link): Update
9359 (~objfile) Don't delete static_links.
9360 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
9361
9362 2019-04-19 Tom Tromey <tom@tromey.com>
9363
9364 * type-stack.h (struct type_stack) <insert>: Constify string.
9365 * type-stack.c (type_stack::insert): Constify string.
9366 * gdbtypes.h (lookup_template_type): Update.
9367 (address_space_name_to_int): Update.
9368 * gdbtypes.c (address_space_name_to_int): Make space_identifier
9369 const.
9370 (lookup_template_type): Make name const.
9371 * c-exp.y: Update rules.
9372 (lex_one_token, classify_name, classify_inner_name)
9373 (c_print_token): Update.
9374 * p-exp.y: Update rules.
9375 (yylex): Update.
9376 * f-exp.y: Update rules.
9377 (yylex): Update.
9378 * d-exp.y: Update rules.
9379 (lex_one_token, classify_name, classify_inner_name): Update.
9380 * parse.c (write_dollar_variable, copy_name): Return std::string.
9381 * parser-defs.h (copy_name): Change return type.
9382 * m2-exp.y: Update rules.
9383 (yylex): Update.
9384 * go-exp.y (lex_one_token): Update.
9385 Update rules.
9386 (classify_unsafe_function, classify_packaged_name)
9387 (classify_name, yylex): Update.
9388
9389 2019-04-19 Sergei Trofimovich <siarheit@google.com>
9390
9391 * configure.ac: add --enable-source-highlight switch.
9392 * configure: Regenerate.
9393 * top.c (print_gdb_version): plumb --enable-source-highlight
9394 status to "show configuration".
9395
9396 2019-04-19 Tom Tromey <tromey@adacore.com>
9397
9398 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
9399 Check ADA_TYPE_P.
9400 (empty_record, ada_template_to_fixed_record_type_1)
9401 (template_to_static_fixed_type)
9402 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
9403 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
9404 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
9405 macros.
9406
9407 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
9408
9409 PR symtab/24423:
9410 * source.c (print_source_lines_base): Advance "iter" when a
9411 control character is seen.
9412
9413 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9414
9415 * inferior.h (struct infcall_suspend_state_deleter):
9416 Catch exception in destructor to avoid crash.
9417
9418 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9419
9420 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
9421 close to the add_com "shell".
9422
9423 2019-04-18 Tom Tromey <tromey@adacore.com>
9424
9425 * process-stratum-target.h (class process_stratum_target)
9426 <stratum>: Add "final".
9427
9428 2019-04-17 Tom Tromey <tromey@adacore.com>
9429
9430 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
9431 against nullptr before use.
9432
9433 2019-04-17 Alan Hayward <alan.hayward@arm.com>
9434
9435 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
9436
9437 2019-04-17 Jim Wilson <jimw@sifive.com>
9438 Andrew Burgess <andrew.burgess@embecosm.com>
9439
9440 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
9441 code read might fail, assume 4-byte breakpoint in that case.
9442
9443 2019-04-15 Leszek Swirski <leszeks@google.com>
9444
9445 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
9446 rather than a hand-rolled POD check when checking for forced MEMORY
9447 classification.
9448
9449 2019-04-15 Alan Hayward <alan.hayward@arm.com>
9450
9451 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
9452 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
9453 function.
9454 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
9455 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
9456 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
9457 declaration.
9458
9459 2019-04-15 Alan Hayward <alan.hayward@arm.com>
9460
9461 * aarch64-linux-nat.c
9462 (aarch64_linux_nat_target::thread_architecture): Add override.
9463 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
9464 each VQ.
9465
9466 2019-04-15 Alan Hayward <alan.hayward@arm.com>
9467
9468 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
9469
9470 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
9471
9472 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
9473 target types of size 96-bits, add some additional comments, and
9474 check that the builtin type we found was the correct size.
9475
9476 2019-04-12 Eli Zaretskii <eliz@gnu.org>
9477
9478 * utils.c (prompt_for_continue): Don't restore the styling at the
9479 end, as applied_style has the wrong value. This fixes styling in
9480 long lists of file names that are interrupted by the "Continue?"
9481 prompt.
9482
9483 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
9484
9485 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
9486 * c-lang.c (c_language_defn): Likewise.
9487 (cplus_language_defn): Likewise.
9488 (asm_language_defn): Likewise.
9489 (minimal_language_defn): Likewise.
9490 * d-lang.c (d_language_defn): Likewise.
9491 * f-lang.c (f_language_defn): Likewise.
9492 * go-lang.c (go_language_defn): Likewise.
9493 * language.c (unknown_language_defn): Likewise.
9494 (auto_language_defn): Likewise.
9495 * language.h (struct language_defn): Remove la_magic field.
9496 (LANG_MAGIC): Delete.
9497 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
9498 * objc-lang.c (objc_language_defn): Likewise.
9499 * opencl-lang.c (opencl_language_defn): Likewise.
9500 * p-lang.c (pascal_language_defn): Likewise.
9501 * rust-lang.c (rust_language_defn): Likewise.
9502
9503 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
9504
9505 * riscv-tdep.c (riscv_type_align): New function.
9506 (riscv_type_alignment): Delete.
9507 (riscv_arg_location): Use 'type_align'.
9508 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
9509
9510 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
9511
9512 * gdbtypes.c (type_align): A struct with no non-static fields also
9513 has alignment of 1.
9514
9515 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
9516
9517 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
9518 component to 0.
9519 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
9520 member.
9521 (riscv_struct_info::analyse): New implementation using new
9522 analyse_inner member function.
9523 (riscv_struct_info::field_offset): New member function.
9524 (riscv_struct_info::m_offsets): New member variable.
9525 (riscv_struct_info::analyse_inner): New private member function,
9526 takes the old implementation of riscv_struct_info::analyse but
9527 extended to track field offsets.
9528 (riscv_call_arg_struct): Update the struct folding special cases
9529 to handle cases where empty C++ structs, which are non-zero
9530 length, are found.
9531 (riscv_arg_location): Initialise the length of each location, a
9532 non-zero length now indicates the location is in use.
9533 (riscv_push_dummy_call): Allow for the first location having a
9534 non-zero offset when setting up arguments.
9535 (riscv_return_value): Likewise, but for return values.
9536
9537 2019-04-11 Tom Tromey <tromey@adacore.com>
9538
9539 * utils.c (internal_vproblem): Make "msg" const.
9540
9541 2019-04-11 Alan Hayward <alan.hayward@arm.com>
9542
9543 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
9544 * trad-frame.c (trad_frame_reset_saved_regs): New function.
9545 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
9546 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
9547
9548 2019-04-10 Kevin Buettner <kevinb@redhat.com>
9549
9550 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
9551 function.
9552 (fill_gregset): Call amd64_linux_collect_native_gregset instead
9553 of amd64_collect_native_gregset.
9554 (amd64_linux_nat_target::store_registers): Likewise.
9555
9556 2019-04-10 Tom Tromey <tom@tromey.com>
9557
9558 * symtab.c (lookup_global_symbol_from_objfile)
9559 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
9560 * objfiles.h (class separate_debug_iterator): New.
9561 (class separate_debug_range): New.
9562 (struct objfile) <separate_debug_objfiles>: New method.
9563 (objfile_separate_debug_iterate): Don't declare.
9564 * objfiles.c (separate_debug_iterator::operator++): Rename from
9565 objfile_separate_debug_iterate.
9566 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
9567 iterator.
9568 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
9569 iterator.
9570
9571 2019-04-10 Tom Tromey <tom@tromey.com>
9572
9573 * symfile.c (reread_symbols): Remove old comment.
9574 * objfiles.c (free_all_objfiles): Fix a typo.
9575
9576 2019-04-10 Tom Tromey <tom@tromey.com>
9577
9578 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
9579 * minsyms.c (lookup_minimal_symbol): Use foreach.
9580 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
9581 (lookup_minimal_symbol_solib_trampoline): Likewise.
9582 * symfile.c (reread_symbols): Use foreach.
9583
9584 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
9585 Tom Tromey <tromey@adacore.com>
9586
9587 PR rust/24414:
9588 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
9589 (rust_lex_int_test): Change "value" to be LONGEST.
9590 (rust_lex_tests): Add test for long integer literal.
9591
9592 2019-04-09 Tom Tromey <tromey@adacore.com>
9593
9594 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
9595 to bool.
9596 (extended_remote_target::attach): Update.
9597 (remote_target::remote_notice_new_inferior): Update.
9598 (remote_target::add_current_inferior_and_thread): Update.
9599 * inferior.c (exit_inferior_1): Use "false".
9600 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
9601
9602 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
9603
9604 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
9605 the "start" command.
9606
9607 2019-04-08 Kevin Buettner <kevinb@redhat.com>
9608
9609 * python/py-inferior.c (infpy_thread_from_thread_handle):
9610 Adjust comments to reflect renaming of thread_from_thread_handle
9611 to thread_from_handle. Adjust keywords. Fix type error message.
9612 (inferior_object_methods): Add thread_from_handle. Retain
9613 thread_from_thread_handle, but mark it as deprecated.
9614
9615 2019-04-08 Kevin Buettner <kevinb@redhat.com>
9616
9617 * gdbthread.h (find_thread_by_handle): Revise declaration.
9618 * thread.c (find_thread_by_handle): Likewise. Adjust
9619 implementation too.
9620 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
9621 support for buffer objects as handles.
9622
9623 2019-04-08 Kevin Buettner <kevinb@redhat.com>
9624
9625 * python/py-infthread.c (thpy_thread_handle): New function.
9626 (thread_object_methods): Register thpy_thread_handle.
9627
9628 2019-04-08 Kevin Buettner <kevinb@redhat.com>
9629
9630 * gdbthread.h (thread_to_thread_handle): Declare.
9631 * thread.c (gdbtypes.h): Include.
9632 (thread_to_thread_handle): New function.
9633
9634 * target.h (struct target_ops): Add thread_info_to_thread_handle.
9635 (target_thread_info_to_thread_handle): Declare.
9636 * target.c (target_thread_info_to_thread_handle): New function.
9637 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
9638 * target-delegates.c: Regenerate.
9639
9640 * linux-thread-db.c (class thread_db_target): Add method
9641 thread_info_to_thread_handle.
9642 (thread_db_target::thread_info_to_thread_handle): Define.
9643 * remote.c (class remote_target): Add new method
9644 thread_info_to_thread_handle.
9645 (remote_target::thread_info_to_thread_handle): Define.
9646
9647 2019-04-08 Pedro Alves <palves@redhat.com>
9648
9649 * common/common-exceptions.c (throw_exception): Don't create
9650 named object to throw; throw directly.
9651 (throw_it): Likewise. Don't initialize gdb_exception::message
9652 here, with new; pass FMT and AP to the ctor instead.
9653 * common/common-exceptions.h: Include <string>.
9654 (gdb_exception::gdb_exception(enum return_reason, enum errors,
9655 const char *, va_list)): New ctor. Use std::make_shared.
9656 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
9657 errors)): Delete.
9658 (gdb_exception_error::gdb_exception_error(enum errors, const char
9659 *, va_list)): New.
9660 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
9661 Add assertion.
9662 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
9663 errors)): Delete.
9664 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
9665 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
9666 Add assertion.
9667
9668 2019-04-08 Tom Tromey <tom@tromey.com>
9669
9670 * valops.c (value_rtti_indirect_type): Replace throw_exception
9671 with throw.
9672 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
9673 with throw.
9674 * thread.c (thr_try_catch_cmd): Replace throw_exception with
9675 throw.
9676 * target.c (target_translate_tls_address): Replace throw_exception
9677 with throw.
9678 * stack.c (frame_apply_command_count): Replace throw_exception
9679 with throw.
9680 * solib-spu.c (append_ocl_sos): Replace throw_exception with
9681 throw.
9682 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
9683 with throw.
9684 * rs6000-tdep.c (rs6000_frame_cache)
9685 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
9686 * remote.c: Replace throw_exception with throw.
9687 * record-full.c (record_full_message, record_full_wait_1)
9688 (record_full_restore): Replace throw_exception with throw.
9689 * record-btrace.c:
9690 (get_thread_current_frame_id, record_btrace_start_replaying)
9691 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
9692 (cmd_record_btrace_start): Replace throw_exception with throw.
9693 * parse.c (parse_exp_in_context_1): Replace throw_exception with
9694 throw.
9695 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
9696 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
9697 * linespec.c:
9698 (find_linespec_symbols): Replace throw_exception with throw.
9699 * infrun.c (displaced_step_prepare, resume): Replace
9700 throw_exception with throw.
9701 * infcmd.c (post_create_inferior): Replace throw_exception with
9702 throw.
9703 * inf-loop.c (inferior_event_handler): Replace throw_exception
9704 with throw.
9705 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
9706 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
9707 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
9708 (get_prev_frame_always, get_frame_pc_if_available)
9709 (get_frame_address_in_block_if_available, get_frame_language):
9710 Replace throw_exception with throw.
9711 * frame-unwind.c (frame_unwind_try_unwinder): Replace
9712 throw_exception with throw.
9713 * eval.c (fetch_subexp_value, evaluate_var_value)
9714 (evaluate_funcall, evaluate_subexp_standard): Replace
9715 throw_exception with throw.
9716 * dwarf2loc.c (call_site_find_chain)
9717 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
9718 Replace throw_exception with throw.
9719 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
9720 with throw.
9721 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
9722 throw.
9723 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
9724 * completer.c (complete_line_internal): Replace throw_exception
9725 with throw.
9726 * compile/compile-object-run.c (compile_object_run): Replace
9727 throw_exception with throw.
9728 * cli/cli-script.c (process_next_line): Replace throw_exception
9729 with throw.
9730 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
9731 (btrace_enable, btrace_maint_update_pt_packets): Replace
9732 throw_exception with throw.
9733 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
9734 throw_exception with throw.
9735 * break-catch-throw.c (re_set_exception_catchpoint): Replace
9736 throw_exception with throw.
9737 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
9738 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
9739 * aarch64-tdep.c (aarch64_make_prologue_cache)
9740 (aarch64_make_stub_cache): Replace throw_exception with throw.
9741
9742 2019-04-08 Tom Tromey <tom@tromey.com>
9743
9744 * common/common-exceptions.c (throw_exception): Rename from
9745 throw_exception_cxx. Remove old copy. Make argument const.
9746 (throw_it): Create and throw exception objects directly.
9747 * common/common-exceptions.h (throw_exception): Make argument
9748 const.
9749 (struct gdb_exception_error): Add constructor.
9750 (struct gdb_exception_quit): Add constructor.
9751
9752 2019-04-08 Tom Tromey <tom@tromey.com>
9753
9754 * common/common-exceptions.h (exception_rethrow): Don't declare.
9755 (TRY_SJLJ): Update comment.
9756 (TRY, CATCH, END_CATCH): Remove.
9757 * common/common-exceptions.c (exception_rethrow): Remove.
9758
9759 2019-04-08 Tom Tromey <tom@tromey.com>
9760
9761 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
9762 Remove.
9763 (gdb_exception_error): Rename from
9764 gdb_exception_RETURN_MASK_ERROR.
9765 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
9766 (gdb_quit_bad_alloc): Update.
9767 * aarch64-tdep.c: Update.
9768 * ada-lang.c: Update.
9769 * ada-typeprint.c: Update.
9770 * ada-valprint.c: Update.
9771 * amd64-tdep.c: Update.
9772 * arch-utils.c: Update.
9773 * break-catch-throw.c: Update.
9774 * breakpoint.c: Update.
9775 * btrace.c: Update.
9776 * c-varobj.c: Update.
9777 * cli/cli-cmds.c: Update.
9778 * cli/cli-interp.c: Update.
9779 * cli/cli-script.c: Update.
9780 * common/common-exceptions.c: Update.
9781 * common/new-op.c: Update.
9782 * common/selftest.c: Update.
9783 * compile/compile-c-symbols.c: Update.
9784 * compile/compile-cplus-symbols.c: Update.
9785 * compile/compile-object-load.c: Update.
9786 * compile/compile-object-run.c: Update.
9787 * completer.c: Update.
9788 * corelow.c: Update.
9789 * cp-abi.c: Update.
9790 * cp-support.c: Update.
9791 * cp-valprint.c: Update.
9792 * darwin-nat.c: Update.
9793 * disasm-selftests.c: Update.
9794 * dtrace-probe.c: Update.
9795 * dwarf-index-cache.c: Update.
9796 * dwarf-index-write.c: Update.
9797 * dwarf2-frame-tailcall.c: Update.
9798 * dwarf2-frame.c: Update.
9799 * dwarf2loc.c: Update.
9800 * dwarf2read.c: Update.
9801 * eval.c: Update.
9802 * event-loop.c: Update.
9803 * event-top.c: Update.
9804 * exec.c: Update.
9805 * f-valprint.c: Update.
9806 * fbsd-tdep.c: Update.
9807 * frame-unwind.c: Update.
9808 * frame.c: Update.
9809 * gdbtypes.c: Update.
9810 * gnu-v3-abi.c: Update.
9811 * guile/guile-internal.h: Update.
9812 * guile/scm-block.c: Update.
9813 * guile/scm-breakpoint.c: Update.
9814 * guile/scm-cmd.c: Update.
9815 * guile/scm-disasm.c: Update.
9816 * guile/scm-frame.c: Update.
9817 * guile/scm-lazy-string.c: Update.
9818 * guile/scm-math.c: Update.
9819 * guile/scm-param.c: Update.
9820 * guile/scm-ports.c: Update.
9821 * guile/scm-pretty-print.c: Update.
9822 * guile/scm-symbol.c: Update.
9823 * guile/scm-symtab.c: Update.
9824 * guile/scm-type.c: Update.
9825 * guile/scm-value.c: Update.
9826 * i386-linux-tdep.c: Update.
9827 * i386-tdep.c: Update.
9828 * inf-loop.c: Update.
9829 * infcall.c: Update.
9830 * infcmd.c: Update.
9831 * infrun.c: Update.
9832 * jit.c: Update.
9833 * language.c: Update.
9834 * linespec.c: Update.
9835 * linux-fork.c: Update.
9836 * linux-nat.c: Update.
9837 * linux-tdep.c: Update.
9838 * linux-thread-db.c: Update.
9839 * main.c: Update.
9840 * mi/mi-cmd-break.c: Update.
9841 * mi/mi-cmd-stack.c: Update.
9842 * mi/mi-interp.c: Update.
9843 * mi/mi-main.c: Update.
9844 * objc-lang.c: Update.
9845 * p-valprint.c: Update.
9846 * parse.c: Update.
9847 * ppc-linux-tdep.c: Update.
9848 * printcmd.c: Update.
9849 * python/py-arch.c: Update.
9850 * python/py-breakpoint.c: Update.
9851 * python/py-cmd.c: Update.
9852 * python/py-finishbreakpoint.c: Update.
9853 * python/py-frame.c: Update.
9854 * python/py-framefilter.c: Update.
9855 * python/py-gdb-readline.c: Update.
9856 * python/py-inferior.c: Update.
9857 * python/py-infthread.c: Update.
9858 * python/py-lazy-string.c: Update.
9859 * python/py-linetable.c: Update.
9860 * python/py-objfile.c: Update.
9861 * python/py-param.c: Update.
9862 * python/py-prettyprint.c: Update.
9863 * python/py-progspace.c: Update.
9864 * python/py-record-btrace.c: Update.
9865 * python/py-record.c: Update.
9866 * python/py-symbol.c: Update.
9867 * python/py-type.c: Update.
9868 * python/py-unwind.c: Update.
9869 * python/py-utils.c: Update.
9870 * python/py-value.c: Update.
9871 * python/python.c: Update.
9872 * record-btrace.c: Update.
9873 * record-full.c: Update.
9874 * remote-fileio.c: Update.
9875 * remote.c: Update.
9876 * riscv-tdep.c: Update.
9877 * rs6000-aix-tdep.c: Update.
9878 * rs6000-tdep.c: Update.
9879 * rust-exp.y: Update.
9880 * rust-lang.c: Update.
9881 * s390-tdep.c: Update.
9882 * selftest-arch.c: Update.
9883 * solib-dsbt.c: Update.
9884 * solib-frv.c: Update.
9885 * solib-spu.c: Update.
9886 * solib-svr4.c: Update.
9887 * solib.c: Update.
9888 * sparc64-linux-tdep.c: Update.
9889 * stack.c: Update.
9890 * symfile-mem.c: Update.
9891 * symmisc.c: Update.
9892 * target.c: Update.
9893 * thread.c: Update.
9894 * top.c: Update.
9895 * tracefile-tfile.c: Update.
9896 * tui/tui.c: Update.
9897 * typeprint.c: Update.
9898 * unittests/cli-utils-selftests.c: Update.
9899 * unittests/parse-connection-spec-selftests.c: Update.
9900 * valops.c: Update.
9901 * valprint.c: Update.
9902 * value.c: Update.
9903 * varobj.c: Update.
9904 * windows-nat.c: Update.
9905 * x86-linux-nat.c: Update.
9906 * xml-support.c: Update.
9907
9908 2019-04-08 Tom Tromey <tom@tromey.com>
9909
9910 * xml-support.c: Use C++ exception handling.
9911 * x86-linux-nat.c: Use C++ exception handling.
9912 * windows-nat.c: Use C++ exception handling.
9913 * varobj.c: Use C++ exception handling.
9914 * value.c: Use C++ exception handling.
9915 * valprint.c: Use C++ exception handling.
9916 * valops.c: Use C++ exception handling.
9917 * unittests/parse-connection-spec-selftests.c: Use C++ exception
9918 handling.
9919 * unittests/cli-utils-selftests.c: Use C++ exception handling.
9920 * typeprint.c: Use C++ exception handling.
9921 * tui/tui.c: Use C++ exception handling.
9922 * tracefile-tfile.c: Use C++ exception handling.
9923 * top.c: Use C++ exception handling.
9924 * thread.c: Use C++ exception handling.
9925 * target.c: Use C++ exception handling.
9926 * symmisc.c: Use C++ exception handling.
9927 * symfile-mem.c: Use C++ exception handling.
9928 * stack.c: Use C++ exception handling.
9929 * sparc64-linux-tdep.c: Use C++ exception handling.
9930 * solib.c: Use C++ exception handling.
9931 * solib-svr4.c: Use C++ exception handling.
9932 * solib-spu.c: Use C++ exception handling.
9933 * solib-frv.c: Use C++ exception handling.
9934 * solib-dsbt.c: Use C++ exception handling.
9935 * selftest-arch.c: Use C++ exception handling.
9936 * s390-tdep.c: Use C++ exception handling.
9937 * rust-lang.c: Use C++ exception handling.
9938 * rust-exp.y: Use C++ exception handling.
9939 * rs6000-tdep.c: Use C++ exception handling.
9940 * rs6000-aix-tdep.c: Use C++ exception handling.
9941 * riscv-tdep.c: Use C++ exception handling.
9942 * remote.c: Use C++ exception handling.
9943 * remote-fileio.c: Use C++ exception handling.
9944 * record-full.c: Use C++ exception handling.
9945 * record-btrace.c: Use C++ exception handling.
9946 * python/python.c: Use C++ exception handling.
9947 * python/py-value.c: Use C++ exception handling.
9948 * python/py-utils.c: Use C++ exception handling.
9949 * python/py-unwind.c: Use C++ exception handling.
9950 * python/py-type.c: Use C++ exception handling.
9951 * python/py-symbol.c: Use C++ exception handling.
9952 * python/py-record.c: Use C++ exception handling.
9953 * python/py-record-btrace.c: Use C++ exception handling.
9954 * python/py-progspace.c: Use C++ exception handling.
9955 * python/py-prettyprint.c: Use C++ exception handling.
9956 * python/py-param.c: Use C++ exception handling.
9957 * python/py-objfile.c: Use C++ exception handling.
9958 * python/py-linetable.c: Use C++ exception handling.
9959 * python/py-lazy-string.c: Use C++ exception handling.
9960 * python/py-infthread.c: Use C++ exception handling.
9961 * python/py-inferior.c: Use C++ exception handling.
9962 * python/py-gdb-readline.c: Use C++ exception handling.
9963 * python/py-framefilter.c: Use C++ exception handling.
9964 * python/py-frame.c: Use C++ exception handling.
9965 * python/py-finishbreakpoint.c: Use C++ exception handling.
9966 * python/py-cmd.c: Use C++ exception handling.
9967 * python/py-breakpoint.c: Use C++ exception handling.
9968 * python/py-arch.c: Use C++ exception handling.
9969 * printcmd.c: Use C++ exception handling.
9970 * ppc-linux-tdep.c: Use C++ exception handling.
9971 * parse.c: Use C++ exception handling.
9972 * p-valprint.c: Use C++ exception handling.
9973 * objc-lang.c: Use C++ exception handling.
9974 * mi/mi-main.c: Use C++ exception handling.
9975 * mi/mi-interp.c: Use C++ exception handling.
9976 * mi/mi-cmd-stack.c: Use C++ exception handling.
9977 * mi/mi-cmd-break.c: Use C++ exception handling.
9978 * main.c: Use C++ exception handling.
9979 * linux-thread-db.c: Use C++ exception handling.
9980 * linux-tdep.c: Use C++ exception handling.
9981 * linux-nat.c: Use C++ exception handling.
9982 * linux-fork.c: Use C++ exception handling.
9983 * linespec.c: Use C++ exception handling.
9984 * language.c: Use C++ exception handling.
9985 * jit.c: Use C++ exception handling.
9986 * infrun.c: Use C++ exception handling.
9987 * infcmd.c: Use C++ exception handling.
9988 * infcall.c: Use C++ exception handling.
9989 * inf-loop.c: Use C++ exception handling.
9990 * i386-tdep.c: Use C++ exception handling.
9991 * i386-linux-tdep.c: Use C++ exception handling.
9992 * guile/scm-value.c: Use C++ exception handling.
9993 * guile/scm-type.c: Use C++ exception handling.
9994 * guile/scm-symtab.c: Use C++ exception handling.
9995 * guile/scm-symbol.c: Use C++ exception handling.
9996 * guile/scm-pretty-print.c: Use C++ exception handling.
9997 * guile/scm-ports.c: Use C++ exception handling.
9998 * guile/scm-param.c: Use C++ exception handling.
9999 * guile/scm-math.c: Use C++ exception handling.
10000 * guile/scm-lazy-string.c: Use C++ exception handling.
10001 * guile/scm-frame.c: Use C++ exception handling.
10002 * guile/scm-disasm.c: Use C++ exception handling.
10003 * guile/scm-cmd.c: Use C++ exception handling.
10004 * guile/scm-breakpoint.c: Use C++ exception handling.
10005 * guile/scm-block.c: Use C++ exception handling.
10006 * guile/guile-internal.h: Use C++ exception handling.
10007 * gnu-v3-abi.c: Use C++ exception handling.
10008 * gdbtypes.c: Use C++ exception handling.
10009 * frame.c: Use C++ exception handling.
10010 * frame-unwind.c: Use C++ exception handling.
10011 * fbsd-tdep.c: Use C++ exception handling.
10012 * f-valprint.c: Use C++ exception handling.
10013 * exec.c: Use C++ exception handling.
10014 * event-top.c: Use C++ exception handling.
10015 * event-loop.c: Use C++ exception handling.
10016 * eval.c: Use C++ exception handling.
10017 * dwarf2read.c: Use C++ exception handling.
10018 * dwarf2loc.c: Use C++ exception handling.
10019 * dwarf2-frame.c: Use C++ exception handling.
10020 * dwarf2-frame-tailcall.c: Use C++ exception handling.
10021 * dwarf-index-write.c: Use C++ exception handling.
10022 * dwarf-index-cache.c: Use C++ exception handling.
10023 * dtrace-probe.c: Use C++ exception handling.
10024 * disasm-selftests.c: Use C++ exception handling.
10025 * darwin-nat.c: Use C++ exception handling.
10026 * cp-valprint.c: Use C++ exception handling.
10027 * cp-support.c: Use C++ exception handling.
10028 * cp-abi.c: Use C++ exception handling.
10029 * corelow.c: Use C++ exception handling.
10030 * completer.c: Use C++ exception handling.
10031 * compile/compile-object-run.c: Use C++ exception handling.
10032 * compile/compile-object-load.c: Use C++ exception handling.
10033 * compile/compile-cplus-symbols.c: Use C++ exception handling.
10034 * compile/compile-c-symbols.c: Use C++ exception handling.
10035 * common/selftest.c: Use C++ exception handling.
10036 * common/new-op.c: Use C++ exception handling.
10037 * cli/cli-script.c: Use C++ exception handling.
10038 * cli/cli-interp.c: Use C++ exception handling.
10039 * cli/cli-cmds.c: Use C++ exception handling.
10040 * c-varobj.c: Use C++ exception handling.
10041 * btrace.c: Use C++ exception handling.
10042 * breakpoint.c: Use C++ exception handling.
10043 * break-catch-throw.c: Use C++ exception handling.
10044 * arch-utils.c: Use C++ exception handling.
10045 * amd64-tdep.c: Use C++ exception handling.
10046 * ada-valprint.c: Use C++ exception handling.
10047 * ada-typeprint.c: Use C++ exception handling.
10048 * ada-lang.c: Use C++ exception handling.
10049 * aarch64-tdep.c: Use C++ exception handling.
10050
10051 2019-04-08 Tom Tromey <tom@tromey.com>
10052
10053 * xml-support.c (gdb_xml_parser::parse): Update.
10054 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
10055 * value.c (show_convenience): Update.
10056 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
10057 (test_parse_flags_qcs): Update.
10058 * thread.c (thr_try_catch_cmd): Update.
10059 * target.c (target_translate_tls_address): Update.
10060 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
10061 (info_frame_command_core, frame_apply_command_count): Update.
10062 * rust-exp.y (rust_lex_exception_test): Update.
10063 * riscv-tdep.c (riscv_print_one_register_info): Update.
10064 * remote.c (remote_target::enable_btrace): Update.
10065 * record-btrace.c (record_btrace_enable_warn): Update.
10066 * python/py-utils.c (gdbpy_convert_exception): Update.
10067 * printcmd.c (do_one_display, print_variable_and_value): Update.
10068 * mi/mi-main.c (mi_print_exception): Update.
10069 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
10070 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
10071 * linux-nat.c (linux_nat_target::attach): Update.
10072 * linux-fork.c (class scoped_switch_fork_info): Update.
10073 * infrun.c (displaced_step_prepare): Update.
10074 * infcall.c (call_function_by_hand_dummy): Update.
10075 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
10076 * gnu-v3-abi.c (print_one_vtable): Update.
10077 * frame.c (get_prev_frame_always): Update.
10078 * f-valprint.c (info_common_command_for_block): Update.
10079 * exec.c (try_open_exec_file): Update.
10080 * exceptions.c (print_exception, exception_print)
10081 (exception_fprintf, exception_print_same): Update.
10082 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
10083 * dwarf-index-cache.c (index_cache::store)
10084 (index_cache::lookup_gdb_index): Update.
10085 * darwin-nat.c (maybe_cache_shell): Update.
10086 * cp-valprint.c (cp_print_value_fields): Update.
10087 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
10088 (gcc_cplus_symbol_address): Update.
10089 * compile/compile-c-symbols.c (gcc_convert_symbol)
10090 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
10091 * common/selftest.c: Update.
10092 * common/common-exceptions.h (struct gdb_exception) <message>: Now
10093 a std::string.
10094 (exception_try_scope_entry, exception_try_scope_exit): Don't
10095 declare.
10096 (struct exception_try_scope): Remove.
10097 (TRY): Don't use exception_try_scope.
10098 (struct gdb_exception): Add constructor, operator=.
10099 <what>: New method.
10100 (struct gdb_exception_RETURN_MASK_ALL)
10101 (struct gdb_exception_RETURN_MASK_ERROR)
10102 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
10103 (struct gdb_quit_bad_alloc): Update.
10104 * common/common-exceptions.c (exception_none): Change
10105 initializer.
10106 (struct catcher) <state, exception>: Initialize inline.
10107 <prev>: Remove member.
10108 (current_catcher): Remove.
10109 (catchers): New global.
10110 (exceptions_state_mc_init): Simplify.
10111 (catcher_pop): Remove.
10112 (exceptions_state_mc, exceptions_state_mc_catch): Update.
10113 (try_scope_depth, exception_try_scope_entry)
10114 (exception_try_scope_exit): Remove.
10115 (throw_exception_sjlj): Update.
10116 (exception_messages, exception_messages_size): Remove.
10117 (throw_it): Simplify.
10118 (gdb_exception_sliced_copy): Remove.
10119 (throw_exception_cxx): Update.
10120 * cli/cli-script.c (script_from_file): Update.
10121 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
10122 Update.
10123 * ada-valprint.c (ada_val_print): Update.
10124 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
10125 (create_excep_cond_exprs): Update.
10126
10127 2019-04-08 Tom Tromey <tom@tromey.com>
10128
10129 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
10130 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
10131 (TRY, CATCH, END_CATCH): Remove some definitions.
10132 * common/common-exceptions.c: Don't use GDB_XCPT.
10133 (catcher_list_size): Remove.
10134 (throw_exception, throw_it): Simplify.
10135
10136 2019-04-05 Tom Tromey <tom@tromey.com>
10137
10138 Revert the header-sorting patch.
10139 * ft32-tdep.c: Revert.
10140 * frv-tdep.c: Revert.
10141 * frv-linux-tdep.c: Revert.
10142 * frame.c: Revert.
10143 * frame-unwind.c: Revert.
10144 * frame-base.c: Revert.
10145 * fork-child.c: Revert.
10146 * findvar.c: Revert.
10147 * findcmd.c: Revert.
10148 * filesystem.c: Revert.
10149 * filename-seen-cache.h: Revert.
10150 * filename-seen-cache.c: Revert.
10151 * fbsd-tdep.c: Revert.
10152 * fbsd-nat.h: Revert.
10153 * fbsd-nat.c: Revert.
10154 * f-valprint.c: Revert.
10155 * f-typeprint.c: Revert.
10156 * f-lang.c: Revert.
10157 * extension.h: Revert.
10158 * extension.c: Revert.
10159 * extension-priv.h: Revert.
10160 * expprint.c: Revert.
10161 * exec.h: Revert.
10162 * exec.c: Revert.
10163 * exceptions.c: Revert.
10164 * event-top.c: Revert.
10165 * event-loop.c: Revert.
10166 * eval.c: Revert.
10167 * elfread.c: Revert.
10168 * dwarf2read.h: Revert.
10169 * dwarf2read.c: Revert.
10170 * dwarf2loc.c: Revert.
10171 * dwarf2expr.h: Revert.
10172 * dwarf2expr.c: Revert.
10173 * dwarf2-frame.c: Revert.
10174 * dwarf2-frame-tailcall.c: Revert.
10175 * dwarf-index-write.h: Revert.
10176 * dwarf-index-write.c: Revert.
10177 * dwarf-index-common.c: Revert.
10178 * dwarf-index-cache.h: Revert.
10179 * dwarf-index-cache.c: Revert.
10180 * dummy-frame.c: Revert.
10181 * dtrace-probe.c: Revert.
10182 * disasm.h: Revert.
10183 * disasm.c: Revert.
10184 * disasm-selftests.c: Revert.
10185 * dictionary.c: Revert.
10186 * dicos-tdep.c: Revert.
10187 * demangle.c: Revert.
10188 * dcache.h: Revert.
10189 * dcache.c: Revert.
10190 * darwin-nat.h: Revert.
10191 * darwin-nat.c: Revert.
10192 * darwin-nat-info.c: Revert.
10193 * d-valprint.c: Revert.
10194 * d-namespace.c: Revert.
10195 * d-lang.c: Revert.
10196 * ctf.c: Revert.
10197 * csky-tdep.c: Revert.
10198 * csky-linux-tdep.c: Revert.
10199 * cris-tdep.c: Revert.
10200 * cris-linux-tdep.c: Revert.
10201 * cp-valprint.c: Revert.
10202 * cp-support.c: Revert.
10203 * cp-namespace.c: Revert.
10204 * cp-abi.c: Revert.
10205 * corelow.c: Revert.
10206 * corefile.c: Revert.
10207 * continuations.c: Revert.
10208 * completer.h: Revert.
10209 * completer.c: Revert.
10210 * complaints.c: Revert.
10211 * coffread.c: Revert.
10212 * coff-pe-read.c: Revert.
10213 * cli-out.h: Revert.
10214 * cli-out.c: Revert.
10215 * charset.c: Revert.
10216 * c-varobj.c: Revert.
10217 * c-valprint.c: Revert.
10218 * c-typeprint.c: Revert.
10219 * c-lang.c: Revert.
10220 * buildsym.c: Revert.
10221 * buildsym-legacy.c: Revert.
10222 * build-id.h: Revert.
10223 * build-id.c: Revert.
10224 * btrace.c: Revert.
10225 * bsd-uthread.c: Revert.
10226 * breakpoint.h: Revert.
10227 * breakpoint.c: Revert.
10228 * break-catch-throw.c: Revert.
10229 * break-catch-syscall.c: Revert.
10230 * break-catch-sig.c: Revert.
10231 * blockframe.c: Revert.
10232 * block.c: Revert.
10233 * bfin-tdep.c: Revert.
10234 * bfin-linux-tdep.c: Revert.
10235 * bfd-target.c: Revert.
10236 * bcache.c: Revert.
10237 * ax-general.c: Revert.
10238 * ax-gdb.h: Revert.
10239 * ax-gdb.c: Revert.
10240 * avr-tdep.c: Revert.
10241 * auxv.c: Revert.
10242 * auto-load.c: Revert.
10243 * arm-wince-tdep.c: Revert.
10244 * arm-tdep.c: Revert.
10245 * arm-symbian-tdep.c: Revert.
10246 * arm-pikeos-tdep.c: Revert.
10247 * arm-obsd-tdep.c: Revert.
10248 * arm-nbsd-tdep.c: Revert.
10249 * arm-nbsd-nat.c: Revert.
10250 * arm-linux-tdep.c: Revert.
10251 * arm-linux-nat.c: Revert.
10252 * arm-fbsd-tdep.c: Revert.
10253 * arm-fbsd-nat.c: Revert.
10254 * arm-bsd-tdep.c: Revert.
10255 * arch-utils.c: Revert.
10256 * arc-tdep.c: Revert.
10257 * arc-newlib-tdep.c: Revert.
10258 * annotate.h: Revert.
10259 * annotate.c: Revert.
10260 * amd64-windows-tdep.c: Revert.
10261 * amd64-windows-nat.c: Revert.
10262 * amd64-tdep.c: Revert.
10263 * amd64-sol2-tdep.c: Revert.
10264 * amd64-obsd-tdep.c: Revert.
10265 * amd64-obsd-nat.c: Revert.
10266 * amd64-nbsd-tdep.c: Revert.
10267 * amd64-nbsd-nat.c: Revert.
10268 * amd64-nat.c: Revert.
10269 * amd64-linux-tdep.c: Revert.
10270 * amd64-linux-nat.c: Revert.
10271 * amd64-fbsd-tdep.c: Revert.
10272 * amd64-fbsd-nat.c: Revert.
10273 * amd64-dicos-tdep.c: Revert.
10274 * amd64-darwin-tdep.c: Revert.
10275 * amd64-bsd-nat.c: Revert.
10276 * alpha-tdep.c: Revert.
10277 * alpha-obsd-tdep.c: Revert.
10278 * alpha-nbsd-tdep.c: Revert.
10279 * alpha-mdebug-tdep.c: Revert.
10280 * alpha-linux-tdep.c: Revert.
10281 * alpha-linux-nat.c: Revert.
10282 * alpha-bsd-tdep.c: Revert.
10283 * alpha-bsd-nat.c: Revert.
10284 * aix-thread.c: Revert.
10285 * agent.c: Revert.
10286 * addrmap.c: Revert.
10287 * ada-varobj.c: Revert.
10288 * ada-valprint.c: Revert.
10289 * ada-typeprint.c: Revert.
10290 * ada-tasks.c: Revert.
10291 * ada-lang.c: Revert.
10292 * aarch64-tdep.c: Revert.
10293 * aarch64-ravenscar-thread.c: Revert.
10294 * aarch64-newlib-tdep.c: Revert.
10295 * aarch64-linux-tdep.c: Revert.
10296 * aarch64-linux-nat.c: Revert.
10297 * aarch64-fbsd-tdep.c: Revert.
10298 * aarch64-fbsd-nat.c: Revert.
10299 * aarch32-linux-nat.c: Revert.
10300
10301 2019-04-05 Tom Tromey <tom@tromey.com>
10302
10303 * ft32-tdep.c: Sort headers.
10304 * frv-tdep.c: Sort headers.
10305 * frv-linux-tdep.c: Sort headers.
10306 * frame.c: Sort headers.
10307 * frame-unwind.c: Sort headers.
10308 * frame-base.c: Sort headers.
10309 * fork-child.c: Sort headers.
10310 * findvar.c: Sort headers.
10311 * findcmd.c: Sort headers.
10312 * filesystem.c: Sort headers.
10313 * filename-seen-cache.h: Sort headers.
10314 * filename-seen-cache.c: Sort headers.
10315 * fbsd-tdep.c: Sort headers.
10316 * fbsd-nat.h: Sort headers.
10317 * fbsd-nat.c: Sort headers.
10318 * f-valprint.c: Sort headers.
10319 * f-typeprint.c: Sort headers.
10320 * f-lang.c: Sort headers.
10321 * extension.h: Sort headers.
10322 * extension.c: Sort headers.
10323 * extension-priv.h: Sort headers.
10324 * expprint.c: Sort headers.
10325 * exec.h: Sort headers.
10326 * exec.c: Sort headers.
10327 * exceptions.c: Sort headers.
10328 * event-top.c: Sort headers.
10329 * event-loop.c: Sort headers.
10330 * eval.c: Sort headers.
10331 * elfread.c: Sort headers.
10332 * dwarf2read.h: Sort headers.
10333 * dwarf2read.c: Sort headers.
10334 * dwarf2loc.c: Sort headers.
10335 * dwarf2expr.h: Sort headers.
10336 * dwarf2expr.c: Sort headers.
10337 * dwarf2-frame.c: Sort headers.
10338 * dwarf2-frame-tailcall.c: Sort headers.
10339 * dwarf-index-write.h: Sort headers.
10340 * dwarf-index-write.c: Sort headers.
10341 * dwarf-index-common.c: Sort headers.
10342 * dwarf-index-cache.h: Sort headers.
10343 * dwarf-index-cache.c: Sort headers.
10344 * dummy-frame.c: Sort headers.
10345 * dtrace-probe.c: Sort headers.
10346 * disasm.h: Sort headers.
10347 * disasm.c: Sort headers.
10348 * disasm-selftests.c: Sort headers.
10349 * dictionary.c: Sort headers.
10350 * dicos-tdep.c: Sort headers.
10351 * demangle.c: Sort headers.
10352 * dcache.h: Sort headers.
10353 * dcache.c: Sort headers.
10354 * darwin-nat.h: Sort headers.
10355 * darwin-nat.c: Sort headers.
10356 * darwin-nat-info.c: Sort headers.
10357 * d-valprint.c: Sort headers.
10358 * d-namespace.c: Sort headers.
10359 * d-lang.c: Sort headers.
10360 * ctf.c: Sort headers.
10361 * csky-tdep.c: Sort headers.
10362 * csky-linux-tdep.c: Sort headers.
10363 * cris-tdep.c: Sort headers.
10364 * cris-linux-tdep.c: Sort headers.
10365 * cp-valprint.c: Sort headers.
10366 * cp-support.c: Sort headers.
10367 * cp-namespace.c: Sort headers.
10368 * cp-abi.c: Sort headers.
10369 * corelow.c: Sort headers.
10370 * corefile.c: Sort headers.
10371 * continuations.c: Sort headers.
10372 * completer.h: Sort headers.
10373 * completer.c: Sort headers.
10374 * complaints.c: Sort headers.
10375 * coffread.c: Sort headers.
10376 * coff-pe-read.c: Sort headers.
10377 * cli-out.h: Sort headers.
10378 * cli-out.c: Sort headers.
10379 * charset.c: Sort headers.
10380 * c-varobj.c: Sort headers.
10381 * c-valprint.c: Sort headers.
10382 * c-typeprint.c: Sort headers.
10383 * c-lang.c: Sort headers.
10384 * buildsym.c: Sort headers.
10385 * buildsym-legacy.c: Sort headers.
10386 * build-id.h: Sort headers.
10387 * build-id.c: Sort headers.
10388 * btrace.c: Sort headers.
10389 * bsd-uthread.c: Sort headers.
10390 * breakpoint.h: Sort headers.
10391 * breakpoint.c: Sort headers.
10392 * break-catch-throw.c: Sort headers.
10393 * break-catch-syscall.c: Sort headers.
10394 * break-catch-sig.c: Sort headers.
10395 * blockframe.c: Sort headers.
10396 * block.c: Sort headers.
10397 * bfin-tdep.c: Sort headers.
10398 * bfin-linux-tdep.c: Sort headers.
10399 * bfd-target.c: Sort headers.
10400 * bcache.c: Sort headers.
10401 * ax-general.c: Sort headers.
10402 * ax-gdb.h: Sort headers.
10403 * ax-gdb.c: Sort headers.
10404 * avr-tdep.c: Sort headers.
10405 * auxv.c: Sort headers.
10406 * auto-load.c: Sort headers.
10407 * arm-wince-tdep.c: Sort headers.
10408 * arm-tdep.c: Sort headers.
10409 * arm-symbian-tdep.c: Sort headers.
10410 * arm-pikeos-tdep.c: Sort headers.
10411 * arm-obsd-tdep.c: Sort headers.
10412 * arm-nbsd-tdep.c: Sort headers.
10413 * arm-nbsd-nat.c: Sort headers.
10414 * arm-linux-tdep.c: Sort headers.
10415 * arm-linux-nat.c: Sort headers.
10416 * arm-fbsd-tdep.c: Sort headers.
10417 * arm-fbsd-nat.c: Sort headers.
10418 * arm-bsd-tdep.c: Sort headers.
10419 * arch-utils.c: Sort headers.
10420 * arc-tdep.c: Sort headers.
10421 * arc-newlib-tdep.c: Sort headers.
10422 * annotate.h: Sort headers.
10423 * annotate.c: Sort headers.
10424 * amd64-windows-tdep.c: Sort headers.
10425 * amd64-windows-nat.c: Sort headers.
10426 * amd64-tdep.c: Sort headers.
10427 * amd64-sol2-tdep.c: Sort headers.
10428 * amd64-obsd-tdep.c: Sort headers.
10429 * amd64-obsd-nat.c: Sort headers.
10430 * amd64-nbsd-tdep.c: Sort headers.
10431 * amd64-nbsd-nat.c: Sort headers.
10432 * amd64-nat.c: Sort headers.
10433 * amd64-linux-tdep.c: Sort headers.
10434 * amd64-linux-nat.c: Sort headers.
10435 * amd64-fbsd-tdep.c: Sort headers.
10436 * amd64-fbsd-nat.c: Sort headers.
10437 * amd64-dicos-tdep.c: Sort headers.
10438 * amd64-darwin-tdep.c: Sort headers.
10439 * amd64-bsd-nat.c: Sort headers.
10440 * alpha-tdep.c: Sort headers.
10441 * alpha-obsd-tdep.c: Sort headers.
10442 * alpha-nbsd-tdep.c: Sort headers.
10443 * alpha-mdebug-tdep.c: Sort headers.
10444 * alpha-linux-tdep.c: Sort headers.
10445 * alpha-linux-nat.c: Sort headers.
10446 * alpha-bsd-tdep.c: Sort headers.
10447 * alpha-bsd-nat.c: Sort headers.
10448 * aix-thread.c: Sort headers.
10449 * agent.c: Sort headers.
10450 * addrmap.c: Sort headers.
10451 * ada-varobj.c: Sort headers.
10452 * ada-valprint.c: Sort headers.
10453 * ada-typeprint.c: Sort headers.
10454 * ada-tasks.c: Sort headers.
10455 * ada-lang.c: Sort headers.
10456 * aarch64-tdep.c: Sort headers.
10457 * aarch64-ravenscar-thread.c: Sort headers.
10458 * aarch64-newlib-tdep.c: Sort headers.
10459 * aarch64-linux-tdep.c: Sort headers.
10460 * aarch64-linux-nat.c: Sort headers.
10461 * aarch64-fbsd-tdep.c: Sort headers.
10462 * aarch64-fbsd-nat.c: Sort headers.
10463 * aarch32-linux-nat.c: Sort headers.
10464
10465 2019-04-04 Tom Tromey <tom@tromey.com>
10466
10467 * varobj.c (varobj_create): Update.
10468 * rust-exp.y (struct rust_parser) <update_innermost_block,
10469 lookup_symbol>: New methods.
10470 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
10471 Rename.
10472 (rust_parser::rust_lookup_type)
10473 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
10474 * printcmd.c (display_command, do_one_display): Update.
10475 * parser-defs.h (struct parser_state) <parser_state>: Add
10476 "tracker" parameter.
10477 (block_tracker): New member.
10478 (class innermost_block_tracker) <innermost_block_tracker>: Add
10479 "types" parameter.
10480 <reset>: Remove method.
10481 (innermost_block): Don't declare.
10482 (null_post_parser): Update.
10483 * parse.c (innermost_block): Remove global.
10484 (write_dollar_variable): Update.
10485 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
10486 Remove "tracker_types" parameter.
10487 (parse_expression): Add "tracker" parameter.
10488 (parse_expression_for_completion): Update.
10489 (null_post_parser): Add "tracker" parameter.
10490 * p-exp.y: Update rules.
10491 * m2-exp.y: Update rules.
10492 * language.h (struct language_defn) <la_post_parser>: Add
10493 "tracker" parameter.
10494 * go-exp.y: Update rules.
10495 * f-exp.y: Update rules.
10496 * expression.h (parse_expression, parse_exp_1): Add "tracker"
10497 parameter.
10498 * d-exp.y: Update rules.
10499 * c-exp.y: Update rules.
10500 * breakpoint.c (set_breakpoint_condition): Create an
10501 innermost_block_tracker.
10502 (watch_command_1): Likewise.
10503 * ada-lang.c (resolve): Add "tracker" parameter.
10504 (resolve_subexp): Likewise.
10505 * ada-exp.y (write_var_from_sym): Update.
10506
10507 2019-04-04 Tom Tromey <tom@tromey.com>
10508
10509 * type-stack.h: New file.
10510 * type-stack.c: New file.
10511 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
10512 type-stack.h.
10513 (insert_into_type_stack, insert_type, push_type, push_type_int)
10514 (insert_type_address_space, pop_type, pop_type_int)
10515 (pop_typelist, pop_type_stack, append_type_stack)
10516 (push_type_stack, get_type_stack, push_typelist)
10517 (follow_type_instance_flags, follow_types): Don't declare.
10518 * parse.c (type_stack): Remove global.
10519 (parse_exp_in_context): Update.
10520 (insert_into_type_stack, insert_type, push_type, push_type_int)
10521 (insert_type_address_space, pop_type, pop_type_int)
10522 (pop_typelist, pop_type_stack, append_type_stack)
10523 (push_type_stack, get_type_stack, push_typelist)
10524 (follow_type_instance_flags, follow_types): Remove (moved to
10525 type-stack.c).
10526 * f-exp.y (type_stack): New global.
10527 Update rules.
10528 (push_kind_type, f_parse): Update.
10529 * d-exp.y (type_stack): New global.
10530 Update rules.
10531 (d_parse): Update.
10532 * c-exp.y (struct c_parse_state) <type_stack>: New member.
10533 Update rules.
10534 * Makefile.in (COMMON_SFILES): Add type-stack.c.
10535 (HFILES_NO_SRCDIR): Add type-stack.h.
10536
10537 2019-04-04 Tom Tromey <tom@tromey.com>
10538
10539 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
10540 (rust_parser::convert_ast_to_expression, rust_parse)
10541 (rust_lex_test_completion, rust_lex_tests): Update.
10542 * parser-defs.h (struct expr_completion_state): New.
10543 (struct parser_state) <parser_state>: Add completion parameter.
10544 <mark_struct_expression, mark_completion_tag>: New methods.
10545 <parse_completion, m_completion_state>: New members.
10546 (prefixify_expression, null_post_parser): Update.
10547 (mark_struct_expression, mark_completion_tag): Don't declare.
10548 * parse.c (parse_completion, expout_last_struct)
10549 (expout_tag_completion_type, expout_completion_name): Remove
10550 globals.
10551 (parser_state::mark_struct_expression)
10552 (parser_state::mark_completion_tag): Now methods.
10553 (prefixify_expression): Add last_struct parameter.
10554 (prefixify_subexp): Likewise.
10555 (parse_exp_1): Update.
10556 (parse_exp_in_context): Add cstate parameter. Update.
10557 (parse_expression_for_completion): Create an
10558 expr_completion_state.
10559 (null_post_parser): Add "completion" parameter.
10560 * p-exp.y: Update rules.
10561 (yylex): Update.
10562 * language.h (struct language_defn) <la_post_parser>: Add
10563 "completing" parameter.
10564 * go-exp.y: Update rules.
10565 (lex_one_token): Update.
10566 * expression.h (parse_completion): Don't declare.
10567 * d-exp.y: Update rules.
10568 (lex_one_token): Update rules.
10569 * c-exp.y: Update rules.
10570 (lex_one_token): Update.
10571 * ada-lang.c (resolve): Add "parse_completion" parameter.
10572 (resolve_subexp): Likewise.
10573 (ada_resolve_function): Likewise.
10574
10575 2019-04-04 Tom Tromey <tom@tromey.com>
10576
10577 * parser-defs.h (struct parser_state) <start_arglist,
10578 end_arglist>: New methods.
10579 <arglist_len, m_funcall_chain>: New members.
10580 (arglist_len, start_arglist, end_arglist): Don't declare.
10581 * parse.c (arglist_len, funcall_chain): Remove global.
10582 (start_arglist, end_arglist): Remove functions.
10583 (parse_exp_in_context): Update.
10584 * p-exp.y: Update rules.
10585 * m2-exp.y: Update rules.
10586 * go-exp.y: Update rules.
10587 * f-exp.y: Update rules.
10588 * d-exp.y: Update rules.
10589 * c-exp.y: Update rules.
10590
10591 2019-04-04 Tom Tromey <tom@tromey.com>
10592
10593 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
10594 lex_operator, push_back>: New methods.
10595 Update all rules.
10596 (rust_parser::lex_hex, lex_escape): Rename and update.
10597 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
10598 (rust_parser::lex_operator): Rename and update.
10599 (rust_parser::lex_number, rustyylex, rustyyerror)
10600 (rust_lex_test_init, rust_lex_test_sequence)
10601 (rust_lex_test_push_back, rust_lex_tests): Update.
10602 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
10603 parameter.
10604 <lexptr, prev_lexptr>: New members.
10605 (lexptr, prev_lexptr): Don't declare.
10606 * parse.c (lexptr, prev_lexptr): Remove globals.
10607 (parse_exp_in_context): Update.
10608 * p-exp.y (yylex, yyerror): Update.
10609 * m2-exp.y (parse_number, yylex, yyerror): Update.
10610 * go-exp.y (lex_one_token, yyerror): Update.
10611 * f-exp.y (match_string_literal, yylex, yyerror): Update.
10612 * d-exp.y (lex_one_token, yyerror): Update.
10613 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
10614 (lex_one_token, yyerror): Update.
10615 * ada-lex.l (YY_INPUT): Update.
10616 (rewind_to_char): Update.
10617 * ada-exp.y (yyerror): Update.
10618
10619 2019-04-04 Tom Tromey <tom@tromey.com>
10620
10621 * rust-exp.y (rustyylex, rust_lex_tests): Update.
10622 * parser-defs.h (struct parser_state) <parser_state>: Add new
10623 parameter.
10624 <comma_terminates>: New member.
10625 (comma_terminates): Don't declare global.
10626 * parse.c (comma_terminates): Remove global.
10627 (parse_exp_in_context): Update.
10628 * p-exp.y (yylex): Update.
10629 * m2-exp.y (yylex): Update.
10630 * go-exp.y (lex_one_token): Update.
10631 * f-exp.y (yylex): Update.
10632 * d-exp.y (lex_one_token): Update.
10633 * c-exp.y (lex_one_token): Update.
10634 * ada-lex.l: Update.
10635
10636 2019-04-04 Tom Tromey <tom@tromey.com>
10637
10638 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
10639 (rustyylex, rust_lex_test_init, rust_lex_test_one)
10640 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
10641 * parser-defs.h (paren_depth): Don't declare.
10642 * parse.c (paren_depth): Remove global.
10643 (parse_exp_in_context): Update.
10644 * p-exp.y (paren_depth): New global.
10645 (pascal_parse): Initialize it.
10646 * m2-exp.y (paren_depth): New global.
10647 (m2_parse): Initialize it.
10648 * go-exp.y (paren_depth): New global.
10649 (go_parse): Initialize it.
10650 * f-exp.y (paren_depth): New global.
10651 (f_parse): Initialize it.
10652 * d-exp.y (paren_depth): New global.
10653 (d_parse): Initialize it.
10654 * c-exp.y (paren_depth): New global.
10655 (c_parse): Initialize it.
10656 * ada-lex.l (paren_depth): New global.
10657 (lexer_init): Initialize it.
10658
10659 2019-04-04 Tom Tromey <tom@tromey.com>
10660
10661 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
10662 (rust_parser::convert_ast_to_type)
10663 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
10664 * parser-defs.h (struct parser_state) <parser_state>: Add
10665 parameters. Initialize new members.
10666 <expression_context_block, expression_context_pc>: New members.
10667 * parse.c (expression_context_block, expression_context_pc):
10668 Remove globals.
10669 (parse_exp_in_context): Update.
10670 * p-exp.y: Update all rules.
10671 (yylex): Update.
10672 * m2-exp.y: Update all rules.
10673 (yylex): Update.
10674 * go-exp.y (yylex): Update.
10675 * f-exp.y (yylex): Update.
10676 * d-exp.y: Update all rules.
10677 (yylex): Update.
10678 * c-exp.y: Update all rules.
10679 (lex_one_token, classify_name, yylex, c_parse): Update.
10680 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
10681
10682 2019-04-04 Tom Tromey <tom@tromey.com>
10683
10684 * gdbarch.h, gdbarch.c: Rebuild.
10685 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
10686 * stap-probe.h:
10687 (struct stap_parse_info): Replace "parser_state" with
10688 "expr_builder".
10689 * parser-defs.h (struct expr_builder): Rename from "parser_state".
10690 (parser_state): New class.
10691 * parse.c (expr_builder): Rename.
10692 (expr_builder::release): Rename.
10693 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
10694 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
10695 (write_exp_elt_longcst, write_exp_elt_floatcst)
10696 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
10697 (write_exp_string_vector, write_exp_bitstring)
10698 (write_exp_msymbol, mark_struct_expression)
10699 (write_dollar_variable)
10700 (insert_type_address_space, increase_expout_size): Replace
10701 "parser_state" with "expr_builder".
10702 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
10703 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
10704 "parser_state" with "expr_builder".
10705
10706 2019-04-04 Tom Tromey <tom@tromey.com>
10707
10708 * rust-exp.y: Replace "parse_language" with method call.
10709 * p-exp.y:
10710 (yylex): Replace "parse_language" with method call.
10711 * m2-exp.y:
10712 (yylex): Replace "parse_language" with method call.
10713 * go-exp.y (classify_name): Replace "parse_language" with method
10714 call.
10715 * f-exp.y (yylex): Replace "parse_language" with method call.
10716 * d-exp.y (lex_one_token): Replace "parse_language" with method
10717 call.
10718 * c-exp.y:
10719 (lex_one_token, classify_name, yylex): Replace "parse_language"
10720 with method call.
10721 * ada-exp.y (find_primitive_type, type_char)
10722 (type_system_address): Replace "parse_language" with method call.
10723
10724 2019-04-04 Tom Tromey <tom@tromey.com>
10725
10726 * rust-exp.y: Replace "parse_gdbarch" with method call.
10727 * parse.c (write_dollar_variable, insert_type_address_space):
10728 Replace "parse_gdbarch" with method call.
10729 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
10730 call.
10731 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
10732 call.
10733 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
10734 "parse_gdbarch" with method call.
10735 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
10736 with method call.
10737 * f-exp.y (parse_type, parse_f_type, yylex): Replace
10738 "parse_gdbarch" with method call.
10739 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
10740 "parse_gdbarch" with method call.
10741 * c-exp.y (parse_type, parse_number, classify_name): Replace
10742 "parse_gdbarch" with method call.
10743 * ada-lex.l: Replace "parse_gdbarch" with method call.
10744 * ada-exp.y (parse_type, find_primitive_type, type_char)
10745 (type_system_address): Replace "parse_gdbarch" with method call.
10746
10747 2019-04-04 Tom Tromey <tom@tromey.com>
10748
10749 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
10750 * stap-probe.c (stap_parse_argument): Update.
10751 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
10752 initial_size parameter.
10753 * rust-exp.y (rust_lex_tests): Update.
10754 * parse.c (parser_state): Update.
10755 (parse_exp_in_context): Update.
10756 * parser-defs.h (struct parser_state) <parser_state>: Remove
10757 "initial_size" parameter.
10758
10759 2019-04-04 Tom Tromey <tom@tromey.com>
10760
10761 * parser-defs.h (increase_expout_size): Don't declare.
10762 * parse.c (increase_expout_size): Now static.
10763
10764 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
10765
10766 * gnu-nat.c (gnu_nat_target::wait): Fix
10767 target_waitstatus_to_string call.
10768
10769 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
10770
10771 * eval.c (evaluate_subexp_standard): Handle internal functions
10772 during Fortran function call handling.
10773
10774 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
10775
10776 * NEWS: Mention new internal functions.
10777 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
10778 (read_base_type): Use dwarf2_init_complex_target_type.
10779 * value.c (creal_internal_fn): New function.
10780 (cimag_internal_fn): New function.
10781 (_initialize_values): Register new internal functions.
10782
10783 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10784
10785 * infrun.c (stop_all_threads): If debug_infrun, always
10786 trace the wait status after wait_one, using
10787 target_waitstatus_to_string and target_pid_to_str.
10788 (handle_inferior_event): Replace various trace of
10789 wait status kind by a single trace.
10790 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
10791 wait status kind image by target_waitstatus_to_string.
10792 * target/waitstatus.c (target_waitstatus_to_string): Fix
10793 obsolete comment.
10794
10795 2019-04-01 Tom Tromey <tromey@adacore.com>
10796
10797 PR symtab/23331:
10798 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
10799
10800 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
10801 Pedro Alves <palves@redhat.com>
10802
10803 * top.c (quit_force): Call 'finalize_values'.
10804 * value.c (finalize_values): New function.
10805 * value.h (finalize_values): Declare.
10806
10807 2019-03-30 Eli Zaretskii <eliz@gnu.org>
10808
10809 * NEWS: Announce $_gdb_major and $_gdb_minor.
10810
10811 * top.c (init_gdb_version_vars): New function.
10812 (gdb_init): Call init_gdb_version_vars.
10813
10814 2019-03-29 Tom Tromey <tromey@adacore.com>
10815
10816 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
10817 help text. Remove dead code.
10818
10819 2019-03-29 Keith Seitz <keiths@redhat.com>
10820
10821 From Siddhesh Poyarekar:
10822 * f-lang.h (f77_get_upperbound): Return LONGEST.
10823 (f77_get_lowerbound): Likewise.
10824 * f-typeprint.c (f_type_print_varspec_suffix): Expand
10825 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
10826 print them.
10827 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
10828 plongest to format print it.
10829 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
10830 (f77_get_upperbound): Likewise.
10831 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
10832 LOWER_BOUND to LONGEST.
10833 (f77_create_arrayprint_offset_tbl): Likewise.
10834
10835 2019-03-29 Keith Seitz <keiths@redhat.com>
10836
10837 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
10838 %s/pulongest for TYPE_LENGTH instead of %d in format
10839 strings.
10840 * ada-typerint.c (ada_print_type): Likewise.
10841 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
10842 * compile/compile-c-support.c (generate_register_struct): Likewise.
10843 * gdbtypes.c (recursive_dump_type): Likewise.
10844 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
10845 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
10846 instead of %d in format strings.
10847 * riscv-tdep.c (riscv_type_alignment): Cast second argument
10848 to std::min to ULONGEST.
10849 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
10850 instead of %d in format strings.
10851 * tracepoint.c (info_scope_command): Likewise.
10852 * typeprint.c (print_offset_data::update)
10853 (print_offset_data::finish): Likewise.
10854 * xtensa-tdep.c (xtensa_store_return_value)
10855 (xtensa_push_dummy_call): Likewise.
10856
10857 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
10858
10859 * windows-nat.c (display_selector): Fixed format specifications
10860 for 64-bit Cygwin.
10861
10862 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10863
10864 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
10865
10866 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
10867
10868 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
10869 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
10870 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
10871 (nios2_linux_init_abi): Install it.
10872
10873 2019-03-28 Alan Hayward <alan.hayward@arm.com>
10874
10875 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
10876
10877 2019-03-28 Alan Hayward <alan.hayward@arm.com>
10878
10879 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
10880
10881 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10882 Tom Tromey <tromey@adacore.com>
10883
10884 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
10885
10886 2019-03-26 Joel Brobecker <brobecker@adacore.com>
10887
10888 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
10889 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
10890 method to compute the bounds of range types. Also print "[evaluated]"
10891 if the bounds' values come from a dynamic evaluation.
10892
10893 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
10894
10895 * cp-valprint.c (cp_print_value_fields): Don't print trailing
10896 whitespace when pretty printing is on.
10897
10898 2019-03-26 Alan Hayward <alan.hayward@arm.com>
10899
10900 * ppc-linux-nat.c: Add include.
10901
10902 2019-03-26 Alan Hayward <alan.hayward@arm.com>
10903
10904 * NEWS: Mention AArch64 Pointer Authentication.
10905
10906 2019-03-26 Alan Hayward <alan.hayward@arm.com>
10907
10908 * arm-linux-nat.c: Add include.
10909
10910 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
10911
10912 * source-cache.c (source_cache::get_source_lines): Re-read
10913 fullname after calling open_source_file.
10914
10915 2019-03-25 John Baldwin <jhb@FreeBSD.org>
10916
10917 * NEWS: Mention TLS support for FreeBSD.
10918
10919 2019-03-25 Tom Tromey <tromey@adacore.com>
10920
10921 * minsyms.c (BUNCH_SIZE): Update comment.
10922 (~minimal_symbol_reader): Remove old comment.
10923 (compact_minimal_symbols): Update comment.
10924 (minimal_symbol_reader::install): Remove old comment. Update
10925 other comments.
10926
10927 2019-03-25 Alan Hayward <alan.hayward@arm.com>
10928
10929 * s390-linux-nat.c: Add include.
10930
10931 2019-03-25 Alan Hayward <alan.hayward@arm.com>
10932
10933 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
10934 Call linux_get_hwcap.
10935 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
10936 Likewise.
10937 (aarch64_linux_get_hwcap): Remove function.
10938 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
10939 declaration.
10940 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
10941 linux_get_hwcap.
10942 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
10943 * linux-tdep.c (linux_get_hwcap): Add function.
10944 (linux_get_hwcap2): Likewise.
10945 * linux-tdep.h (linux_get_hwcap): Add declaration.
10946 (linux_get_hwcap2): Likewise.
10947 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
10948 (ppc_linux_get_hwcap2): Likewise.
10949 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
10950 linux_get_hwcap.
10951 (ppc_linux_nat_target::insert_watchpoint): Likewise.
10952 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
10953 (ppc_linux_nat_target::read_description): Likewise.
10954 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
10955 * s390-linux-nat.c: Likewise.
10956 * s390-linux-tdep.c (s390_core_read_description): Likewise.
10957
10958 2019-03-24 Tom Tromey <tom@tromey.com>
10959
10960 * ada-lang.c (standard_lookup): Simplify initialization.
10961 (ada_lookup_symbol_nonlocal): Simplify return.
10962 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
10963 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
10964 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
10965 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
10966 initialization.
10967 * solib.c (solib_global_lookup): Simplify.
10968 * symtab.c (null_block_symbol): Remove.
10969 (symbol_cache_lookup): Simplify returns.
10970 (lookup_language_this): Simplify returns.
10971 (lookup_symbol_aux): Simplify return.
10972 (lookup_local_symbol): Simplify returns.
10973 (lookup_global_symbol_from_objfile): Simplify return.
10974 (lookup_symbol_in_objfile_symtabs)
10975 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
10976 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
10977 (lookup_static_symbol, lookup_global_symbol): Simplify return.
10978 * cp-namespace.c (cp_lookup_bare_symbol)
10979 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
10980 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
10981 (cp_lookup_nested_symbol): Don't use null_block_symbol.
10982 (cp_lookup_symbol_via_imports): Simplify initialization.
10983 (find_symbol_in_baseclass): Likewise.
10984 * symtab.h (null_block_symbol): Remove.
10985 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
10986 (d_lookup_nested_symbol, d_lookup_symbol_imports)
10987 (d_lookup_symbol_module): Likewise.
10988 (find_symbol_in_baseclass): Simplify initialization.
10989
10990 2019-03-24 Tom Tromey <tom@tromey.com>
10991
10992 * expression.h: Don't include symtab.h.
10993 (struct block): Forward declare.
10994
10995 2019-03-24 Tom Tromey <tom@tromey.com>
10996
10997 * c-exp.y (typebase): Remove casts.
10998 * gdbtypes.c (lookup_unsigned_typename, )
10999 (lookup_signed_typename): Remove cast.
11000 * eval.c (parse_to_comma_and_eval): Remove cast.
11001 * parse.c (write_dollar_variable): Remove cast.
11002 * block.h (struct block) <superblock>: Now const.
11003 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
11004 * psymtab.c (psym_map_matching_symbols): Make "block" const.
11005 (map_block): Make "block" const.
11006 * symfile.h (struct quick_symbol_functions)
11007 <map_matching_symbols>: Constify block argument to "callback".
11008 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
11009 const.
11010 (find_pc_sect_compunit_symtab): Make "b" const.
11011 (find_symbol_at_address): Likewise.
11012 (search_symbols): Likewise.
11013 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
11014 (dw2_debug_names_lookup_symbol): Likewise.
11015 (dw2_map_matching_symbols): Update.
11016 * p-valprint.c (pascal_val_print): Remove "block".
11017 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
11018 (aux_add_nonlocal_symbols): Make "block" const.
11019 (resolve_subexp): Remove cast.
11020 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
11021 const.
11022 (iterate_over_file_blocks): Likewise.
11023 * f-exp.y (%union) <bval>: Remove.
11024 * coffread.c (patch_opaque_types): Make "b" const.
11025 * spu-tdep.c (spu_catch_start): Make "block" const.
11026 * c-valprint.c (print_unpacked_pointer): Remove "block".
11027 * symmisc.c (dump_symtab_1): Make "b" const.
11028 (block_depth): Make "block" const.
11029 * d-exp.y (%union) <bval>: Remove.
11030 * cp-support.h (cp_lookup_rtti_type): Update.
11031 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
11032 * psymtab.c (psym_lookup_symbol): Make "block" const.
11033 (maintenance_check_psymtabs): Make "b" const.
11034 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
11035 (enumerate_locals, enumerate_args): Update.
11036 * python/py-symtab.c (stpy_global_block): Make "block" const.
11037 (stpy_static_block): Likewise.
11038 * inline-frame.c (block_starting_point_at): Make "new_block"
11039 const.
11040 * block.c (find_block_in_blockvector): Make return type const.
11041 (blockvector_for_pc_sect): Make "b" const.
11042 (find_block_in_blockvector): Make "b" const.
11043
11044 2019-03-23 Tom Tromey <tom@tromey.com>
11045
11046 * varobj.c (varobj_create): Update.
11047 * symfile.c (clear_symtab_users): Don't reset innermost_block.
11048 * printcmd.c (display_command, do_one_display): Don't reset
11049 innermost_block.
11050 * parser-defs.h (enum innermost_block_tracker_type): Move to
11051 expression.h.
11052 (innermost_block): Update comment.
11053 * parse.c (parse_exp_1): Add tracker_types parameter.
11054 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
11055 tracker_types parameter. Reset innermost_block.
11056 (parse_exp_in_context): Remove.
11057 (parse_expression_for_completion): Update.
11058 * objfiles.c (~objfile): Don't reset expression_context_block or
11059 innermost_block.
11060 * expression.h (enum innermost_block_tracker_type): Move from
11061 parser-defs.h.
11062 (parse_exp_1): Add tracker_types parameter.
11063 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
11064 reset innermost_block.
11065
11066 2019-03-23 Tom Tromey <tom@tromey.com>
11067
11068 * objfiles.h: Include bcache.h.
11069
11070 2019-03-23 Tom Tromey <tom@tromey.com>
11071
11072 * linespec.c (get_current_search_block): Use
11073 scoped_restore_current_language.
11074 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
11075
11076 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11077 Jiong Wang <jiong.wang@arm.com>
11078
11079 * aarch64-linux-tdep.c
11080 (aarch64_linux_iterate_over_regset_sections): Check for pauth
11081 section.
11082 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
11083
11084 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11085 Jiong Wang <jiong.wang@arm.com>
11086
11087 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
11088 instructions.
11089 (aarch64_analyze_prologue_test): Add PACIASP test.
11090 (aarch64_prologue_prev_register): Unmask PC value.
11091
11092 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11093 Jiong Wang <jiong.wang@arm.com>
11094
11095 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
11096 (aarch64_dwarf2_prev_register): Unmask PC value.
11097 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
11098 (aarch64_execute_dwarf_cfa_vendor_op): Check for
11099 DW_CFA_AARCH64_negate_ra_state.
11100 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
11101
11102 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11103 Jiong Wang <jiong.wang@arm.com>
11104
11105 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
11106 registers.
11107 (aarch64_pseudo_register_name): Likewise.
11108 (aarch64_pseudo_register_type): Likewise.
11109 (aarch64_pseudo_register_reggroup_p): Likewise.
11110 (aarch64_gdbarch_init): Add pauth registers.
11111 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
11112 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
11113 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
11114 (struct gdbarch_tdep): Add regnum for ra_state.
11115
11116 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11117 Jiong Wang <jiong.wang@arm.com>
11118
11119 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
11120
11121 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11122 Jiong Wang <jiong.wang@arm.com>
11123
11124 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
11125 function.
11126 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
11127 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
11128 (aarch64_gdbarch_init): Add puth registers.
11129 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
11130 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
11131 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
11132
11133 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11134 Jiong Wang <jiong.wang@arm.com>
11135
11136 * aarch64-linux-nat.c
11137 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
11138 * aarch64-linux-tdep.c
11139 (aarch64_linux_core_read_description): Likewise.
11140 (aarch64_linux_get_hwcap): New function.
11141 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
11142 (aarch64_linux_get_hwcap): New declaration.
11143
11144 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11145 Jiong Wang <jiong.wang@arm.com>
11146
11147 * aarch64-linux-nat.c
11148 (aarch64_linux_nat_target::read_description): Add pauth param.
11149 * aarch64-linux-tdep.c
11150 (aarch64_linux_core_read_description): Likewise.
11151 * aarch64-tdep.c (struct target_desc): Add in pauth.
11152 (aarch64_read_description): Add pauth param.
11153 (aarch64_gdbarch_init): Likewise.
11154 * aarch64-tdep.h (aarch64_read_description): Likewise.
11155 * arch/aarch64.c (aarch64_create_target_description): Likewise.
11156 * arch/aarch64.h (aarch64_create_target_description): Likewise.
11157 * features/Makefile: Add new files.
11158 * features/aarch64-pauth.c: New file.
11159 * features/aarch64-pauth.xml: New file.
11160
11161 2019-03-20 Tom Tromey <tromey@adacore.com>
11162
11163 * infrun.c (handle_inferior_event): Rename from
11164 handle_inferior_event_1. Create a scoped_value_mark.
11165 (handle_inferior_event): Remove.
11166
11167 2019-03-19 Tom Tromey <tromey@adacore.com>
11168
11169 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
11170 * infrun.h (print_stop_event): Add "displays" parameter.
11171 * infrun.c (print_stop_event): Add "displays" parameter.
11172
11173 2019-03-19 Pedro Alves <palves@redhat.com>
11174
11175 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
11176 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
11177 to -1. Fix TABs vs spaces.
11178 (tui_ui_out::tui_ui_out): Don't initialize fields here.
11179 * tui/tui-out.h (tui_ui_out) Add intro comments.
11180 <m_line, m_start_of_line>: In-class initialize, and add describing
11181 comment.
11182
11183 2019-03-18 Alan Hayward <alan.hayward@arm.com>
11184
11185 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
11186 variable names.
11187 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
11188
11189 2019-03-18 Pedro Alves <palves@redhat.com>
11190 Eli Zaretskii <eliz@gnu.org>
11191
11192 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
11193 m_line and m_start_of_line.
11194
11195 2019-03-18 Eli Zaretskii <eliz@gnu.org>
11196
11197 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
11198 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
11199 it returns a newline. This fixes a regression in TU mode, whereby
11200 the next line is output on the same screen line as the user input.
11201
11202 2019-03-18 Tom Tromey <tromey@adacore.com>
11203
11204 * minsyms.c (minimal_symbol_reader::install): Remove call to
11205 obstack_blank.
11206
11207 2019-03-18 Pedro Alves <palves@redhat.com>
11208
11209 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
11210 New globals.
11211 (apply_style): New, factored out from ...
11212 (apply_ansi_escape): ... this. Handle reverse video mode.
11213 (tui_set_reverse_mode): New function.
11214 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
11215 * tui/tui-winsource.c (tui_show_source_line): Use
11216 tui_set_reverse_mode instead of setting A_STANDOUT.
11217 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
11218 New setter methods.
11219
11220 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
11221
11222 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
11223 Handle tabs.
11224
11225 2019-03-18 Tom Tromey <tromey@adacore.com>
11226
11227 * ada-lang.c (empty_array): Add "high" parameter.
11228 (ada_evaluate_subexp): Update.
11229
11230 2019-03-17 Sergei Trofimovich <siarheit@google.com>
11231
11232 * unittests/string_view-selftests.c: Define
11233 _initialize_string_view_selftests unconditionally.
11234
11235 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
11236
11237 PR gdb/24350
11238 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
11239
11240 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
11241
11242 PR gdb/24351
11243 * windows-nat.c (display_selector): Fix format specifiers.
11244
11245 2019-03-17 Eli Zaretskii <eliz@gnu.org>
11246
11247 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
11248 tui_refill_source_window instead of tui_refresh_win, to update the
11249 current execution line. This fixes redisplay of the current line
11250 when stepping through the code with "next" or "step".
11251
11252 2019-03-16 Eli Zaretskii <eliz@gnu.org>
11253
11254 * source-cache.c (source_cache::get_source_lines): Call
11255 find_source_lines to initialize s->nlines. This fixes vertical
11256 scrolling of TUI source window when the DOWN arrow is pressed.
11257
11258 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11259
11260 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
11261 linux-thread-db.c (_initialize_thread_db): Likewise.
11262
11263 2019-03-16 Eli Zaretskii <eliz@gnu.org>
11264
11265 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
11266 wclrtoeol in tui_show_source_line". This reverts changes made in
11267 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
11268
11269 2019-03-15 Tom Tromey <tom@tromey.com>
11270
11271 * symtab.h (struct minimal_symbol): Derive from
11272 general_symbol_info.
11273 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
11274 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
11275 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
11276 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
11277 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
11278 (MSYMBOL_SEARCH_NAME): Update.
11279 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
11280 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
11281 * minsyms.c (minimal_symbol_reader::record_full): Update.
11282
11283 2019-03-15 Tom Tromey <tom@tromey.com>
11284
11285 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
11286
11287 2019-03-15 Tom Tromey <tom@tromey.com>
11288
11289 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
11290 unique_xmalloc_ptr.
11291 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
11292 Update.
11293 * minsyms.c (lookup_minimal_symbol_by_pc_section)
11294 (build_minimal_symbol_hash_tables)
11295 (minimal_symbol_reader::install): Update.
11296
11297 2019-03-15 Tom Tromey <tom@tromey.com>
11298
11299 * symtab.c (create_demangled_names_hash): Update.
11300 (symbol_set_names): Update.
11301 * objfiles.h (struct objfile_per_bfd_storage)
11302 <demangled_names_hash>: Now an htab_up.
11303 * objfiles.c (objfile_per_bfd_storage): Simplify.
11304
11305 2019-03-15 Tom Tromey <tom@tromey.com>
11306
11307 * objfiles.h (struct objfile_per_bfd_storage): Declare
11308 destructor.
11309 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
11310 New.
11311 (get_objfile_bfd_data): Use new. Don't initialize
11312 language_of_main.
11313 (free_objfile_per_bfd_storage): Remove.
11314 (objfile_bfd_data_free, objfile::~objfile): Use delete.
11315
11316 2019-03-15 Tom Tromey <tom@tromey.com>
11317
11318 * symfile.c (reread_symbols): Update.
11319 * objfiles.c (objfile::objfile): Update.
11320 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
11321 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
11322 comment.
11323 (minimal_symbol_reader::install): Update.
11324 (terminate_minimal_symbol_table): Remove.
11325 * jit.c (jit_object_close_impl): Update.
11326
11327 2019-03-15 Tom Tromey <tom@tromey.com>
11328
11329 * minsyms.c (minimal_symbol_reader::record_full): Remove some
11330 initializations.
11331
11332 2019-03-15 Tom Tromey <tom@tromey.com>
11333
11334 * objfiles.h (struct objfile_per_bfd_storage)
11335 <demangled_hash_languages>: Now a bitset.
11336 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
11337 (lookup_minimal_symbol): Update.
11338
11339 2019-03-15 Tom Tromey <tom@tromey.com>
11340
11341 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
11342 Don't return the symbol.
11343 * coffread.c (record_minimal_symbol): Use record_full.
11344
11345 2019-03-14 Eli Zaretskii <eliz@gnu.org>
11346
11347 The MS-Windows port of ncurses fails to switch to a color pair if
11348 one or both of the colors are the implicit default colors. This
11349 change records the default colors when TUI is initialized, and
11350 then specifies them explicitly when a color pair uses the default
11351 colors. This allows color styling in TUI mode on MS-Windows.
11352
11353 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
11354 ncurses_norm_attr.
11355 (tui_initialize_io) [__MINGW32__]: Record the default terminal
11356 colors in ncurses_norm_attr.
11357 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
11358 "none", replace it with the default color recorded in
11359 ncurses_norm_attr.
11360
11361 2019-03-14 Tom Tromey <tromey@adacore.com>
11362
11363 * source-cache.h (class source_cache) <get_source_lines>: Return
11364 std::string.
11365 * source-cache.c (source_cache::extract_lines): Handle case where
11366 first_pos==npos. Return std::string.
11367 (source_cache::get_source_lines): Update.
11368
11369 2019-03-14 Tom Tromey <tromey@adacore.com>
11370
11371 * NEWS: Add item for "style sources" commands.
11372 * source-cache.c (source_cache::get_source_lines): Check
11373 source_styling.
11374 * cli/cli-style.c (source_styling): New global.
11375 (_initialize_cli_style): Add "style sources" commands.
11376 (show_style_sources): New function.
11377 * cli/cli-style.h (source_styling): Declare.
11378
11379 2019-03-14 Pedro Alves <palves@redhat.com>
11380 Tom Tromey <tromey@adacore.com>
11381
11382 * tui/tui-winsource.h (tui_refill_source_window): Declare.
11383 * tui/tui-winsource.c (tui_refill_source_window): New function,
11384 from...
11385 (tui_horizontal_source_scroll): ... here. Move some logic.
11386 * cli/cli-style.c (set_style_enabled): Notify new observable.
11387 * tui/tui-hooks.c (tui_redisplay_source): New function.
11388 (tui_attach_detach_observers): Attach or detach
11389 tui_redisplay_source.
11390 * observable.h (source_styling_changed): New observable.
11391 * observable.c: Define source_styling_changed observable.
11392
11393 2019-03-13 Tom Tromey <tromey@adacore.com>
11394
11395 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
11396 (i386_gnu_nat_target::store_registers): Update.
11397 * target-debug.h (target_debug_print_std_string): New macro.
11398 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
11399 * windows-tdep.c (display_one_tib): Update.
11400 * tui/tui-stack.c (tui_make_status_line): Update.
11401 * top.c (print_inferior_quit_action): Update.
11402 * thread.c (thr_try_catch_cmd): Update.
11403 (add_thread_with_info): Update.
11404 (thread_target_id_str): Update.
11405 (thr_try_catch_cmd): Update.
11406 (thread_command): Update.
11407 (thread_find_command): Update.
11408 * record-btrace.c (record_btrace_target::info_record)
11409 (record_btrace_resume_thread, record_btrace_target::resume)
11410 (record_btrace_cancel_resume, record_btrace_step_thread)
11411 (record_btrace_target::wait, record_btrace_target::wait)
11412 (record_btrace_target::wait, record_btrace_target::stop): Update.
11413 * progspace.c (print_program_space): Update.
11414 * process-stratum-target.c
11415 (process_stratum_target::thread_address_space): Update.
11416 * linux-fork.c (linux_fork_mourn_inferior)
11417 (detach_checkpoint_command, info_checkpoints_command)
11418 (linux_fork_context): Update.
11419 (linux_fork_detach): Update.
11420 (class scoped_switch_fork_info): Update.
11421 (delete_checkpoint_command): Update.
11422 * infrun.c (follow_fork_inferior): Update.
11423 (follow_fork_inferior): Update.
11424 (proceed_after_vfork_done): Update.
11425 (handle_vfork_child_exec_or_exit): Update.
11426 (follow_exec): Update.
11427 (displaced_step_prepare_throw): Update.
11428 (displaced_step_restore): Update.
11429 (start_step_over): Update.
11430 (resume_1): Update.
11431 (clear_proceed_status_thread): Update.
11432 (proceed): Update.
11433 (print_target_wait_results): Update.
11434 (do_target_wait): Update.
11435 (context_switch): Update.
11436 (stop_all_threads): Update.
11437 (restart_threads): Update.
11438 (finish_step_over): Update.
11439 (handle_signal_stop): Update.
11440 (switch_back_to_stepped_thread): Update.
11441 (keep_going_pass_signal): Update.
11442 (print_exited_reason): Update.
11443 (normal_stop): Update.
11444 * inferior.c (inferior_pid_to_str): Change return type.
11445 (print_selected_inferior): Update.
11446 (add_inferior): Update.
11447 (detach_inferior): Update.
11448 * dummy-frame.c (fprint_dummy_frames): Update.
11449 * dcache.c (dcache_info_1): Update.
11450 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
11451 (btrace_fetch, btrace_clear): Update.
11452 * linux-tdep.c (linux_core_pid_to_str): Change return type.
11453 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
11454 type.
11455 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
11456 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
11457 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
11458 * gdbarch.c, gdbarch.h: Rebuild.
11459 * gdbarch.sh (core_pid_to_str): Change return type.
11460 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
11461 return type.
11462 (windows_nat_target::pid_to_str): Change return type.
11463 (windows_delete_thread): Update.
11464 (windows_nat_target::attach): Update.
11465 (windows_nat_target::files_info): Update.
11466 * target-delegates.c: Rebuild.
11467 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
11468 return type.
11469 (sol_thread_target::pid_to_str): Change return type.
11470 * remote.c (class remote_target) <pid_to_str>: Change return
11471 type.
11472 (remote_target::pid_to_str): Change return type.
11473 (extended_remote_target::attach, remote_target::remote_stop_ns)
11474 (remote_target::remote_notif_remove_queued_reply)
11475 (remote_target::push_stop_reply, remote_target::disable_btrace):
11476 Update.
11477 (extended_remote_target::attach): Update.
11478 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
11479 type.
11480 (gdbsim_target::pid_to_str): Change return type.
11481 * ravenscar-thread.c (struct ravenscar_thread_target)
11482 <pid_to_str>: Change return type.
11483 (ravenscar_thread_target::pid_to_str): Change return type.
11484 * procfs.c (class procfs_target) <pid_to_str>: Change return
11485 type.
11486 (procfs_target::pid_to_str): Change return type.
11487 (procfs_target::attach): Update.
11488 (procfs_target::detach): Update.
11489 (procfs_target::fetch_registers): Update.
11490 (procfs_target::store_registers): Update.
11491 (procfs_target::wait): Update.
11492 (procfs_target::files_info): Update.
11493 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
11494 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
11495 return type.
11496 (nto_procfs_target::pid_to_str): Change return type.
11497 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
11498 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
11499 return type.
11500 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
11501 (exit_lwp): Update.
11502 (attach_proc_task_lwp_callback, get_detach_signal)
11503 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
11504 (linux_nat_target::resume, wait_lwp, stop_callback)
11505 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
11506 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
11507 (linux_nat_wait_1, resume_stopped_resumed_lwps)
11508 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
11509 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
11510 type.
11511 (inf_ptrace_target::attach): Update.
11512 (inf_ptrace_target::files_info): Update.
11513 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
11514 type.
11515 (go32_nat_target::pid_to_str): Change return type.
11516 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
11517 (gnu_nat_target::wait): Update.
11518 (gnu_nat_target::wait): Update.
11519 (gnu_nat_target::resume): Update.
11520 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
11521 (fbsd_nat_target::wait): Update.
11522 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
11523 type.
11524 (darwin_nat_target::attach): Update.
11525 * corelow.c (class core_target) <pid_to_str>: Change return type.
11526 (core_target::pid_to_str): Change return type.
11527 * target.c (normal_pid_to_str): Change return type.
11528 (default_pid_to_str): Likewise.
11529 (target_pid_to_str): Change return type.
11530 (target_translate_tls_address): Update.
11531 (target_announce_detach): Update.
11532 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
11533 return type.
11534 (bsd_uthread_target::pid_to_str): Change return type.
11535 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
11536 type.
11537 (bsd_kvm_target::pid_to_str): Change return type.
11538 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
11539 return type.
11540 (aix_thread_target::pid_to_str): Change return type.
11541 * target.h (struct target_ops) <pid_to_str>: Change return type.
11542 (target_pid_to_str, normal_pid_to_str): Likewise.
11543 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
11544 type.
11545 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
11546 type.
11547 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
11548 return type.
11549 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
11550 type.
11551 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
11552 type.
11553 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
11554 return type.
11555
11556 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
11557
11558 * NEWS: Mention that the new default MI version is 3. Mention
11559 changes to the output of commands and events that deal with
11560 multi-location breakpoints.
11561 * breakpoint.c: Include "mi/mi-out.h".
11562 (print_one_breakpoint): Change output syntax if using MI version
11563 >= 3.
11564 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
11565 New.
11566 (mi_multi_location_breakpoint_output_fixed): New.
11567 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
11568 (mi_cmd_fix_multi_location_breakpoint_output): New.
11569 (mi_multi_location_breakpoint_output_fixed): New.
11570 * mi/mi-cmds.c (mi_cmds): Register command
11571 -fix-multi-location-breakpoint-output.
11572 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
11573 interpreter "mi".
11574
11575 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
11576
11577 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
11578 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
11579 instantiate mi_ui_out based on interpreter name.
11580 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
11581 * mi/mi-main.c (mi_load_progress): Likewise.
11582
11583 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11584
11585 * NEWS: Combine separate "New targets" sections for 8.3.
11586
11587 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11588
11589 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
11590 (ppcfbsd_init_abi): Install gdbarch
11591 "fetch_tls_load_module_address" and "get_thread_local_address"
11592 methods.
11593
11594 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11595
11596 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
11597 (riscv_fbsd_init_abi): Install gdbarch
11598 "fetch_tls_load_module_address" and "get_thread_local_address"
11599 methods.
11600
11601 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11602
11603 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
11604 (i386fbsd_init_abi): Install gdbarch
11605 "fetch_tls_load_module_address" and "get_thread_local_address"
11606 methods.
11607
11608 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11609
11610 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
11611 (amd64fbsd_init_abi): Install gdbarch
11612 "fetch_tls_load_module_address" and "get_thread_local_address"
11613 methods.
11614
11615 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11616
11617 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
11618 (struct fbsd_pspace_data): New type.
11619 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
11620 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
11621 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
11622 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
11623 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
11624
11625 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11626
11627 * gdbtypes.c (lookup_struct_elt): New function.
11628 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
11629 * gdbtypes.h (struct struct_elt): New type.
11630 (lookup_struct_elt): New prototype.
11631
11632 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11633
11634 * gdbtypes.c (lookup_struct_elt_type): Update comment and
11635 remove disabled code block.
11636
11637 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11638
11639 * gdbarch.sh (get_thread_local_address): New method.
11640 * gdbarch.h, gdbarch.c: Regenerate.
11641 * target.c (target_translate_tls_address): Use
11642 gdbarch_get_thread_local_address if present instead of
11643 target::get_thread_local_address.
11644
11645 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11646
11647 * target.h (target::get_thread_local_address): Update comment.
11648
11649 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11650
11651 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
11652 objfile->separate_debug_objfile_backlink if not NULL.
11653
11654 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11655
11656 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
11657 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
11658 (amd64bsd_store_inferior_registers): Likewise.
11659 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
11660 Enable segment base registers.
11661 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
11662 PT_GETFSBASE and PT_GETGSBASE.
11663 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
11664 PT_SETGSBASE.
11665 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
11666 segment base registers.
11667 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
11668
11669 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11670
11671 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
11672 Update calls to i386_target_description to add 'segments'
11673 parameter.
11674 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
11675 add segment base registers.
11676 * arch/i386.c (i386_create_target_description): Add 'segments'
11677 parameter to enable segment base registers.
11678 * arch/i386.h (i386_create_target_description): Likewise.
11679 * features/i386/32bit-segments.xml: New file.
11680 * features/i386/32bit-segments.c: Generate.
11681 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
11682 call to i386_target_description to add 'segments' parameter.
11683 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
11684 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
11685 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
11686 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
11687 if feature is present.
11688 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
11689 Add 'segments' parameter to call to i386_target_description.
11690 (i386_target_description): Add 'segments' parameter to enable
11691 segment base registers.
11692 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
11693 to call to i386_target_description.
11694 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
11695 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
11696 Define I386_NUM_REGS.
11697 (i386_target_description): Add 'segments' parameter to enable
11698 segment base registers.
11699
11700 2019-03-12 Eli Zaretskii <eliz@gnu.org>
11701
11702 PR/24325
11703 * source-cache.c: #undef open and close, to avoid unresolved
11704 externals during linking.
11705
11706 2019-03-12 Tom Tromey <tromey@adacore.com>
11707
11708 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
11709 const. Add initializers.
11710 (_initialize_remote): Don't initialize ptid globals.
11711
11712 2019-03-12 Pedro Alves <palves@redhat.com>
11713
11714 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
11715
11716 2019-03-12 Pedro Alves <palves@redhat.com>
11717
11718 * cp-name-parser.y (main): Remove unused 'len' variable.
11719
11720 2019-03-12 Tom Tromey <tromey@adacore.com>
11721
11722 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
11723 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
11724
11725 2019-03-12 Tom Tromey <tromey@adacore.com>
11726
11727 * linux-nat.c (iterate_over_lwps): Update.
11728 (stop_callback): Remove parameter.
11729 (stop_wait_callback, detach_callback, resume_set_callback)
11730 (select_singlestep_lwp_callback, set_ignore_sigint)
11731 (status_callback, resumed_callback, resume_clear_callback)
11732 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
11733 data parameter.
11734 (linux_nat_target::detach, linux_nat_target::resume)
11735 (linux_stop_and_wait_all_lwps, select_event_lwp)
11736 (linux_nat_filter_event, linux_nat_wait_1)
11737 (linux_nat_target::kill, linux_nat_target::stop)
11738 (linux_nat_target::stop): Update.
11739 (linux_nat_resume_callback): Change type.
11740 (resume_stopped_resumed_lwps, count_events_callback)
11741 (select_event_lwp_callback): Likewise.
11742 (linux_stop_lwp, linux_nat_stop_lwp): Update.
11743 * arm-linux-nat.c (struct update_registers_data): Remove.
11744 (update_registers_callback): Change type.
11745 (arm_linux_insert_hw_breakpoint1): Update.
11746 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
11747 parameter.
11748 (x86_linux_dr_set_addr): Update.
11749 (x86_linux_dr_set_control): Update.
11750 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
11751 (iterate_over_lwps): Use gdb::function_view.
11752 * nat/aarch64-linux-hw-point.c (struct
11753 aarch64_dr_update_callback_param): Remove.
11754 (debug_reg_change_callback): Change type.
11755 (aarch64_notify_debug_reg_change): Update.
11756 * s390-linux-nat.c (s390_refresh_per_info): Update.
11757
11758 2019-03-11 Tom Tromey <tromey@adacore.com>
11759
11760 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
11761 redundant assignment to "this_cu".
11762
11763 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11764
11765 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
11766
11767 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11768
11769 * gdbtypes.c (rank_one_type_parm_set): New function extracted
11770 from...
11771 (rank_one_type): ... this.
11772
11773 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11774
11775 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
11776 from...
11777 (rank_one_type): ... this.
11778
11779 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11780
11781 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
11782 from...
11783 (rank_one_type): ... this.
11784
11785 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11786
11787 * gdbtypes.c (rank_one_type_parm_float): New function extracted
11788 from...
11789 (rank_one_type): ... this.
11790
11791 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11792
11793 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
11794 from...
11795 (rank_one_type): ... this.
11796
11797 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11798
11799 * gdbtypes.c (rank_one_type_parm_range): New function extracted
11800 from...
11801 (rank_one_type): ... this.
11802
11803 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11804
11805 * gdbtypes.c (rank_one_type_parm_char): New function extracted
11806 from...
11807 (rank_one_type): ... this.
11808
11809 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11810
11811 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
11812 from...
11813 (rank_one_type): ... this.
11814
11815 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11816
11817 * gdbtypes.c (rank_one_type_parm_int): New function extracted
11818 from...
11819 (rank_one_type): ... this.
11820
11821 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11822
11823 * gdbtypes.c (rank_one_type_parm_func): New function extracted
11824 from...
11825 (rank_one_type): ... this.
11826
11827 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11828
11829 * gdbtypes.c (rank_one_type_parm_array): New function extracted
11830 from...
11831 (rank_one_type): ... this.
11832
11833 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11834
11835 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
11836 from...
11837 (rank_one_type): ... this.
11838
11839 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11840
11841 * inferior.c (initialize_inferiors): Ensure 'help set/show print
11842 inferior-events' shows the example events.
11843
11844 2019-03-08 Eli Zaretskii <eliz@gnu.org>
11845
11846 Support styling on native MS-Windows console
11847
11848 PR/24315
11849 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
11850 on MS-Windows if $TERM is not defined.
11851
11852 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
11853
11854 * posix-hdep.c (gdb_console_fputs):
11855 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
11856 functions.
11857 * ui-file.h (gdb_console_fputs): Add prototype.
11858
11859 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
11860 back to fputs only if the former returns zero.
11861
11862 2019-03-07 Tom Tromey <tom@tromey.com>
11863
11864 * symmisc.c (print_symbol_bcache_statistics): Update.
11865 (print_objfile_statistics): Update.
11866 * symfile.c (allocate_symtab): Update.
11867 * stabsread.c: Don't include bcache.h.
11868 * psymtab.h (struct psymbol_bcache): Don't declare.
11869 (class psymtab_storage) <psymbol_cache>: Now a bcache.
11870 (psymbol_bcache_init, psymbol_bcache_free)
11871 (psymbol_bcache_get_bcache): Don't declare.
11872 * psymtab.c (struct psymbol_bcache): Remove.
11873 (psymtab_storage::psymtab_storage): Update.
11874 (psymtab_storage::~psymtab_storage): Update.
11875 (psymbol_bcache_init, psymbol_bcache_free)
11876 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
11877 (add_psymbol_to_bcache): Update.
11878 (allocate_psymtab): Update.
11879 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
11880 macro_cache>: No longer pointers.
11881 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
11882 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
11883 * macrotab.c (macro_bcache): Update.
11884 * macroexp.c: Don't include bcache.h.
11885 * gdbtypes.c (check_types_worklist): Update.
11886 (types_deeply_equal): Remove TRY/CATCH. Update.
11887 * elfread.c (elf_symtab_read): Update.
11888 * dwarf2read.c: Don't include bcache.h.
11889 * buildsym.c (buildsym_compunit::get_macro_table): Update.
11890 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
11891 (print_bcache_statistics, bcache_memory_used): Don't declare.
11892 (struct bcache): Move from bcache.c. Add constructor, destructor,
11893 methods. Rename all data members.
11894 * bcache.c (struct bcache): Move to bcache.h.
11895 (bcache::expand_hash_table): Rename from expand_hash_table.
11896 (bcache): Remove.
11897 (bcache::insert): Rename from bcache_full.
11898 (bcache::compare): Rename from bcache_compare.
11899 (bcache_xmalloc): Remove.
11900 (bcache::~bcache): Rename from bcache_xfree.
11901 (bcache::print_statistics): Rename from print_bcache_statistics.
11902 (bcache::memory_used): Rename from bcache_memory_used.
11903
11904 2019-03-07 Pedro Alves <palves@redhat.com>
11905
11906 * infrun.c (normal_stop): Also check for
11907 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
11908
11909 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
11910
11911 * f-lang.c (value_from_host_double): Moved to...
11912 * value.c (value_from_host_double): ...here.
11913 * value.h (value_from_host_double): Declare.
11914 * guile/scm-math.c (vlscm_convert_typed_number): Use
11915 value_from_host_double.
11916 (vlscm_convert_number): Likewise.
11917 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
11918 * python/py-value.c (convert_value_from_python): Likewise.
11919
11920 2019-03-06 Tom Tromey <tom@tromey.com>
11921
11922 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
11923
11924 2019-03-06 Tom Tromey <tom@tromey.com>
11925
11926 * utils.h (free_current_contents): Don't declare.
11927 * utils.c (free_current_contents): Remove.
11928
11929 2019-03-06 Tom Tromey <tom@tromey.com>
11930
11931 * top.c (quit_force): Update.
11932 * main.c (captured_command_loop): Update.
11933 * common/new-op.c (operator new): Update.
11934 * common/common-exceptions.c (struct catcher)
11935 <save_cleanup_chain>: Remove member.
11936 (exceptions_state_mc_init): Update.
11937 (exception_try_scope_entry): Return nullptr.
11938 (exception_try_scope_exit, exception_rethrow)
11939 (throw_exception_sjlj, throw_exception_cxx): Update.
11940 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
11941 (all_cleanups, do_cleanups, discard_cleanups)
11942 (discard_final_cleanups, save_cleanups, save_final_cleanups)
11943 (restore_cleanups, restore_final_cleanups): Don't declare.
11944 (do_final_cleanups): Remove parameter.
11945 * common/cleanups.c (cleanup_chain, make_cleanup)
11946 (make_cleanup_dtor, all_cleanups, do_cleanups)
11947 (discard_my_cleanups, discard_cleanups)
11948 (discard_final_cleanups, save_my_cleanups, save_cleanups)
11949 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
11950 (null_cleanup): Remove.
11951 (do_final_cleanups): Remove parameter.
11952
11953 2019-03-06 Tom Tromey <tom@tromey.com>
11954
11955 * remote.c (remote_target::remote_parse_stop_reply): Use
11956 unique_xmalloc_ptr.
11957
11958 2019-03-06 Tom Tromey <tom@tromey.com>
11959
11960 * stabsread.c (struct stabs_field_info): Rename from field_info.
11961 <list, fnlist>: Add initializers.
11962 <obstack>: New member.
11963 (read_member_functions, read_struct_fields, read_baseclasses):
11964 Allocate on obstack. Don't use cleanups.
11965 (read_one_struct_field, read_member_functions, read_struct_fields)
11966 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
11967 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
11968 (read_struct_type): Update.
11969
11970 2019-03-06 Tom Tromey <tom@tromey.com>
11971
11972 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
11973 * common/filestuff.h (make_cleanup_close): Don't declare.
11974 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
11975 Remove.
11976
11977 2019-03-06 Tom Tromey <tom@tromey.com>
11978
11979 * solib-aix.c: Use make_scope_exit.
11980
11981 2019-03-06 Tom Tromey <tom@tromey.com>
11982
11983 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
11984 Use make_scope_exit.
11985
11986 2019-03-06 Tom Tromey <tom@tromey.com>
11987
11988 * solib-svr4.c (disable_probes_interface): Remove parameter.
11989 (svr4_handle_solib_event): Use make_scope_exit.
11990
11991 2019-03-06 Tom Tromey <tom@tromey.com>
11992
11993 * remote.c (struct stop_reply_deleter): Remove.
11994 (stop_reply_up): Update.
11995 (struct stop_reply): Derive from notif_event. Don't typedef.
11996 <regcache>: Now a std::vector.
11997 (stop_reply_xfree): Remove.
11998 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
11999 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
12000 (remote_target::discard_pending_stop_replies): Use delete.
12001 (remote_target::remote_parse_stop_reply): Update.
12002 (remote_target::process_stop_reply): Update.
12003 * remote-notif.h (struct notif_event): Add virtual destructor.
12004 Remove "dtr" member.
12005 (struct notif_client) <alloc_event>: Return a unique_ptr.
12006 (notif_event_xfree): Don't declare.
12007 (notif_event_up): New typedef.
12008 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
12009 (notif_event_xfree, do_notif_event_xfree): Remove.
12010 (remote_notif_state_xfree): Update.
12011
12012 2019-03-06 Tom Tromey <tom@tromey.com>
12013
12014 * infrun.c (displaced_step_clear_cleanup): Now a
12015 forward_scope_exit type.
12016 (displaced_step_prepare_throw): Update.
12017 (displaced_step_fixup): Update.
12018
12019 2019-03-06 Tom Tromey <tom@tromey.com>
12020
12021 * inferior.h (class inferior): Update comment.
12022 * gdbthread.h (class thread_info): Update comment.
12023
12024 2019-03-06 Joel Brobecker <brobecker@adacore.com>
12025 Tom Tromey <tom@tromey.com>
12026
12027 * stabsread.h (struct stab_section_list): Remove.
12028 (coffstab_build_psymtabs): Update.
12029 * dbxread.c (symbuf_sections): Now a std::vector.
12030 (sect_idx): New global.
12031 (fill_symbuf): Update.
12032 (coffstab_build_psymtabs): Change type of stabsects parameter.
12033 Update.
12034 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
12035 std::vector.
12036 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
12037 (coff_locate_sections): Update.
12038 (coff_symfile_read): Remove cleanups. Update.
12039 (init_stringtab): Add storage parameter.
12040 (free_stringtab, free_stringtab_cleanup): Remove.
12041 (init_lineno): Add storage parameter.
12042 (free_linetab, free_linetab_cleanup): Remove.
12043
12044 2019-03-06 Pedro Alves <palves@redhat.com>
12045
12046 * linux-fork.c (fork_info::clobber_regs): Delete.
12047 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
12048 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
12049 comment. Adjust.
12050 (scoped_switch_fork_info::scoped_switch_fork_info)
12051 (checkpoint_command, linux_fork_context): Adjust
12052 fork_save_infrun_state calls.
12053
12054 2019-03-06 Pedro Alves <palves@redhat.com>
12055
12056 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
12057 (inf_has_multiple_threads): Return 'bool' and rewrite using
12058 inferior_info::threads().
12059
12060 2019-03-06 Pedro Alves <palves@redhat.com>
12061
12062 * linux-fork.c: Include <list>.
12063 (fork_list): Now a std::list instance.
12064 (fork_info): Add ctor, dtor, and in-class initialize all fields.
12065 (forks_exist_p, find_last_fork): Adjust.
12066 (new_fork): Delete.
12067 (one_fork_p): New.
12068 (add_fork): Adjust.
12069 (free_fork): Delete, folded into fork_info::~fork_info().
12070 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
12071 Adjust.
12072 (init_fork_list): Delete.
12073 (linux_fork_killall, linux_fork_mourn_inferior)
12074 (linux_fork_detach, info_checkpoints_command): Adjust.
12075 (_initialize_linux_fork): No longer call init_fork_list.
12076
12077 2019-03-06 Pedro Alves <palves@redhat.com>
12078
12079 * linux-fork.c (new_fork): New, split out of ...
12080 (add_fork): ... this. Return void. Move "first fork" special
12081 case from here, to ...
12082 (checkpoint_command): ... here.
12083 * linux-linux.h (add_fork): Return void.
12084
12085 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12086
12087 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
12088
12089 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12090 Chris January <chris.january@arm.com>
12091 David Lecomber <david.lecomber@arm.com>
12092
12093 * f-exp.y: New token, UNOP_INTRINSIC.
12094 (exp): New pattern using UNOP_INTRINSIC token.
12095 (f77_keywords): Add 'abs' keyword.
12096 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
12097 (value_from_host_double): New function.
12098 (evaluate_subexp_f): Support UNOP_ABS.
12099
12100 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12101
12102 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
12103 types.
12104
12105 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12106
12107 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
12108 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
12109 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
12110
12111 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12112
12113 * f-exp.y (convert_to_kind_type): Handle more type kinds.
12114
12115 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12116 Chris January <chris.january@arm.com>
12117
12118 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
12119 * f-exp.y: Define 'KIND' token.
12120 (exp): New pattern for KIND expressions.
12121 (ptype): Handle types with a kind extension.
12122 (direct_abs_decl): Extend to spot kind extensions.
12123 (f77_keywords): Add 'kind' to the list.
12124 (push_kind_type): New function.
12125 (convert_to_kind_type): New function.
12126 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
12127 * parse.c (operator_length_standard): Likewise.
12128 * parser-defs.h (enum type_pieces): Add tp_kind.
12129 * std-operator.def: Add UNOP_KIND.
12130
12131 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12132
12133 * f-exp.y (f_parse): Set yydebug.
12134
12135 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12136
12137 * f-lang.c (evaluate_subexp_f): New function.
12138 (exp_descriptor_f): New global.
12139 (f_language_defn): Use exp_descriptor_f instead of
12140 exp_descriptor_standard.
12141
12142 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12143
12144 * f-exp.y (struct token): Add comments.
12145 (dot_ops): Remove uppercase versions and the end marker.
12146 (f77_keywords): Likewise.
12147 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
12148 entries in the dot_ops array are case insensitive, and use
12149 strncasecmp to compare strings. Also some whitespace cleanup in
12150 this area. Similar for the f77_keywords array, except entries in
12151 this list might be case sensitive.
12152
12153 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12154
12155 * f-exp.y (struct f77_boolean_val): Add comments.
12156 (boolean_values): Remove uppercase versions, and end marker.
12157 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
12158 and use strncasecmp to achieve case insensitivity. Additionally,
12159 perform whitespace cleanup around this code.
12160
12161 2019-03-06 Tom Tromey <tromey@adacore.com>
12162
12163 * remote-sim.c (gdbsim_target_open): Use result of
12164 gdb_argv::release.
12165
12166 2019-03-06 Richard Bunt <richard.bunt@arm.com>
12167 Dirk Schubert <dirk.schubert@arm.com>
12168 Chris January <chris.january@arm.com>
12169
12170 * eval.c (evaluate_subexp_standard): Call Fortran argument
12171 wrapping logic.
12172 * f-lang.c (struct value): A value which can be passed into a
12173 Fortran function call.
12174 (fortran_argument_convert): Wrap Fortran arguments in a pointer
12175 where appropriate.
12176 (struct type): Value ready for a Fortran function call.
12177 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
12178 is needed.
12179 * f-lang.h (fortran_argument_convert): Declaration.
12180 (fortran_preserve_arg_pointer): Declaration.
12181 * infcall.c (value_arg_coerce): Call Fortran argument logic.
12182
12183 2019-03-05 Tom Tromey <tromey@adacore.com>
12184
12185 * python/py-prettyprint.c (print_string_repr): Remove #if.
12186 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
12187
12188 2019-03-05 Tom Tromey <tromey@adacore.com>
12189
12190 * target.c (the_dummy_target): Move later. Change type to
12191 "dummy_target".
12192 (initialize_targets): Don't initialize the_dummy_target.
12193
12194 2019-03-05 Tom Tromey <tromey@adacore.com>
12195
12196 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
12197 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
12198
12199 2019-03-05 Tom Tromey <tromey@adacore.com>
12200
12201 * windows-nat.c (windows_nat_target::attach)
12202 (windows_nat_target::detach): Don't call gdb_flush.
12203 * valprint.c (generic_val_print, val_print, val_print_string):
12204 Don't call gdb_flush.
12205 * utils.c (defaulted_query): Don't call gdb_flush.
12206 * typeprint.c (print_type_scalar): Don't call gdb_flush.
12207 * target.c (target_announce_detach): Don't call gdb_flush.
12208 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
12209 * remote.c (extended_remote_target::attach): Don't call
12210 gdb_flush.
12211 * procfs.c (procfs_target::detach): Don't call gdb_flush.
12212 * printcmd.c (do_examine): Don't call gdb_flush.
12213 (info_display_command): Don't call gdb_flush.
12214 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
12215 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
12216 * memattr.c (info_mem_command): Don't call gdb_flush.
12217 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
12218 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
12219 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
12220 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
12221 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
12222 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
12223 (gnu_nat_target::detach): Don't call gdb_flush.
12224 * f-valprint.c (f_val_print): Don't call gdb_flush.
12225 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
12226 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
12227 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
12228 gdb_flush.
12229 * c-valprint.c (c_val_print): Don't call gdb_flush.
12230 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
12231
12232 2019-03-05 Tom Tromey <tromey@adacore.com>
12233
12234 * varobj.c (update_dynamic_varobj_children): Update.
12235 (install_default_visualizer): Use reset, not release.
12236 * value.c (set_internalvar): Update.
12237 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
12238 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
12239 ATTRIBUTE_UNUSED_RESULT.
12240
12241 2019-03-05 Tom Tromey <tromey@adacore.com>
12242
12243 * remote.c (class scoped_remote_fd) <release>: Add
12244 ATTRIBUTE_UNUSED_RESULT.
12245
12246 2019-03-05 Tom Tromey <tromey@adacore.com>
12247
12248 * macroexp.c (struct macro_buffer) <release>: Add
12249 ATTRIBUTE_UNUSED_RESULT.
12250
12251 2019-03-05 Tom Tromey <tromey@adacore.com>
12252
12253 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
12254 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
12255 ATTRIBUTE_UNUSED_RESULT.
12256
12257 2019-03-05 Tom Tromey <tromey@adacore.com>
12258
12259 * common/scoped_fd.h (class scoped_fd) <release>: Add
12260 ATTRIBUTE_UNUSED_RESULT.
12261
12262 2019-03-05 Tom Tromey <tromey@adacore.com>
12263
12264 * parser-defs.h (struct parser_state) <release>: Add
12265 ATTRIBUTE_UNUSED_RESULT.
12266
12267 2019-03-05 Tom Tromey <tromey@adacore.com>
12268
12269 * utils.h (class gdb_argv) <release>: Add
12270 ATTRIBUTE_UNUSED_RESULT.
12271 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
12272
12273 2019-03-02 Eli Zaretskii <eliz@gnu.org>
12274
12275 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
12276 for-loop range, to avoid compiler warnings.
12277
12278 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
12279 avoid compiler warnings about unused variables.
12280
12281 * NEWS: Mention end of support for native debugging on MS-Windows
12282 before XP.
12283
12284 PR gdb/24292
12285 * common/netstuff.c:
12286 * gdbserver/gdbreplay.c
12287 * gdbserver/remote-utils.c:
12288 * ser-tcp.c:
12289 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
12290 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
12291 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
12292 'getaddrinfo' and 'freeaddrinfo' were not available before
12293 Windows XP, and mingw.org's MinGW headers by default define
12294 _WIN32_WINNT to 0x500.
12295
12296 2019-03-01 Gary Benson <gbenson@redhat.com>
12297
12298 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
12299
12300 2019-02-28 Brian Vandenberg <phantall@gmail.com>
12301 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12302
12303 PR gdb/8527
12304 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
12305 set_sigint_trap, clear_sigint_trap.
12306
12307 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12308
12309 * target.c (target_detach): Clear the regcache and the
12310 frame cache.
12311
12312 2019-02-27 Pedro Alves <palves@redhat.com>
12313
12314 * utils.c (set_screen_size): When we cap the height/width sizes,
12315 tweak the corresponding command variable to show "unlimited":
12316
12317 2019-02-27 Saagar Jha <saagar@saagarjha.com>
12318 Pedro Alves <palves@redhat.com>
12319
12320 * utils.c (set_screen_size): Reduce "infinite" rows and columns
12321 before calling rl_set_screen_size.
12322
12323 2019-02-27 Tom Tromey <tromey@adacore.com>
12324
12325 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
12326 define.
12327 * python/py-value.c: Remove Python 2.4 workaround.
12328 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
12329 workaround.
12330 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
12331 Python 2.4 workaround.
12332 * python/python-internal.h: Remove Python 2.4 comment.
12333 (Py_ssize_t): Don't define.
12334 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
12335 (gdb_Py_DECREF): Remove Python 2.4 workaround.
12336 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
12337 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
12338 * python/python.c (do_start_initialization): Remove Python 2.4
12339 workaround.
12340 * python/py-prettyprint.c (class dummy_python_frame): Remove.
12341 (print_children): Remove Python 2.4 workaround.
12342 * python/py-inferior.c (buffer_procs): Remove Python 2.4
12343 workaround.
12344 (CHARBUFFERPROC_NAME): Remove.
12345 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
12346 Python 2.4 workaround.
12347
12348 2019-02-27 Kevin Buettner <kevinb@redhat.com>
12349
12350 * NEWS: Note minimum Python version.
12351
12352 2019-02-27 Kevin Buettner <kevinb@redhat.com>
12353
12354 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
12355 code from these functions. Remove corresponding ifdefs. Use
12356 Py_buffer_up instead of explicit calls to PyBuffer_Release.
12357 Remove gotos and target of gotos.
12358 (infpy_search_memory): Likewise.
12359
12360 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12361
12362 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
12363 (hppa_gdbarch_init): Don't register deleted functions with
12364 gdbarch.
12365
12366 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12367
12368 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
12369 (h8300_unwind_sp): Delete.
12370 (h8300_dummy_id): Delete.
12371 (h8300_gdbarch_init): Don't register deleted functions with
12372 gdbarch.
12373
12374 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12375
12376 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
12377 (ft32_unwind_pc): Delete.
12378 (ft32_unwind_sp): Delete.
12379 (ft32_gdbarch_init): Don't register deleted functions with
12380 gdbarch.
12381
12382 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12383
12384 * gdb/frv-tdep.c (frv_dummy_id): Delete.
12385 (frv_unwind_pc): Delete.
12386 (frv_unwind_sp): Delete.
12387 (frv_gdbarch_init): Don't register deleted functions with
12388 gdbarch.
12389
12390 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12391
12392 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
12393 (riscv_unwind_pc): Delete.
12394 (riscv_unwind_sp): Delete.
12395 (riscv_gdbarch_init): Don't register deleted functions with
12396 gdbarch.
12397
12398 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12399
12400 * gdb/csky-tdep.c (csky_dummy_id): Delete.
12401 (csky_unwind_pc): Delete.
12402 (csky_unwind_sp): Delete.
12403 (csky_gdbarch_init): Don't register deleted functions with
12404 gdbarch.
12405
12406 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12407
12408 * gdb/cris-tdep.c (cris_dummy_id): Delete.
12409 (cris_unwind_pc): Delete.
12410 (cris_unwind_sp): Delete.
12411 (cris_gdbarch_init): Don't register deleted functions with
12412 gdbarch.
12413
12414 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12415
12416 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
12417 (bfin_unwind_pc): Delete.
12418 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
12419
12420 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12421
12422 * gdb/arm-tdep.c (arm_dummy_id): Delete.
12423 (arm_unwind_pc): Delete.
12424 (arm_unwind_sp): Delete.
12425 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
12426
12427 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12428
12429 * gdb/arc-tdep.c (arc_dummy_id): Delete.
12430 (arc_unwind_pc): Delete.
12431 (arc_unwind_sp): Delete.
12432 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
12433
12434 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12435
12436 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
12437 (alpha_unwind_pc): Delete.
12438 (alpha_gdbarch_init): Don't register deleted functions with
12439 gdbarch.
12440
12441 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12442
12443 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
12444 (aarch64_unwind_pc): Delete.
12445 (aarch64_unwind_sp): Delete.
12446 (aarch64_gdbarch_init): Don't register deleted functions with
12447 gdbarch.
12448
12449 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12450
12451 * gdbtypes.c (type_align): Don't consider static members when
12452 computing structure alignment.
12453
12454 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12455
12456 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
12457 return 0 for other types.
12458 * arch-utils.c (default_type_align): Always return 0.
12459 * gdbarch.h: Regenerate.
12460 * gdbarch.sh (type_align): Extend comment.
12461 * gdbtypes.c (type_align): Add additional comments, always call
12462 gdbarch_type_align before applying the default rules.
12463 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
12464 generic code will then apply a suitable default.
12465 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
12466 types, return 0 for other types.
12467
12468 2019-02-27 Joel Brobecker <brobecker@adacore.com>
12469
12470 * NEWS: Create a new section for the next release branch.
12471 Rename the section of the current branch, now that it has
12472 been cut.
12473
12474 2019-02-27 Joel Brobecker <brobecker@adacore.com>
12475
12476 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
12477 * version.in: Bump version to 8.3.50.DATE-git.
12478
12479 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
12480
12481 * aix-thread.c (ptid_cmp): Remove unused variable.
12482 (get_signaled_thread): Likewise.
12483 (store_regs_user_thread): Likewise.
12484 (store_regs_kernel_thread): Likewise.
12485 (fetch_regs_kernel_thread): Remove shadowed variable.
12486
12487 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
12488
12489 * features/riscv/32bit-cpu.xml: Add register numbers.
12490 * features/riscv/32bit-fpu.c: Regenerate.
12491 * features/riscv/32bit-fpu.xml: Add register numbers.
12492 * features/riscv/64bit-cpu.xml: Add register numbers.
12493 * features/riscv/64bit-fpu.c: Regenerate.
12494 * features/riscv/64bit-fpu.xml: Add register numbers.
12495
12496 2019-02-26 Kevin Buettner <kevinb@redhat.com>
12497
12498 * NEWS: Mention two argument form of gdb.Value constructor.
12499 * python/py-value.c (convert_buffer_and_type_to_value): New
12500 function.
12501 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
12502 Add support for handling an optional second argument. Call
12503 convert_buffer_and_type_to_value as appropriate.
12504 * python/python-internal.h (Py_buffer_deleter): New struct.
12505 (Py_buffer_up): New typedef.
12506
12507 2019-02-25 John Baldwin <jhb@FreeBSD.org>
12508
12509 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
12510 instead of releasing ownership.
12511
12512 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
12513
12514 * dwarf2read.c (open_and_init_dwp_file): Call
12515 elf_numsections instead of bfd_count_sections to initialize
12516 dwp_file->num_sections.
12517
12518 2019-02-25 Tom Tromey <tromey@adacore.com>
12519
12520 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
12521
12522 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
12523
12524 * gcore.in: Add '--readnever' option when invoking GDB.
12525
12526 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
12527
12528 * MAINTAINERS: Update my email address.
12529
12530 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
12531
12532 * build-id.c (build_id_to_debug_bfd_1): New function.
12533 (build_id_to_debug_bfd): Look for separate debug file in
12534 sysroot.
12535
12536 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
12537
12538 * gdbarch.sh: Update the copyright year range that is placed into
12539 generated files.
12540
12541 2019-02-22 Keith Seitz <keiths@redhat.com>
12542
12543 PR symtab/23853
12544 * linespec.c (create_sals_line_offset): Search for the default
12545 symtab's filename instead of its fullname.
12546
12547 2019-02-21 Alan Hayward <alan.hayward@arm.com>
12548
12549 * NEWS: Update style defaults.
12550
12551 2019-02-21 Alan Hayward <alan.hayward@arm.com>
12552
12553 * main.c (captured_main_1): Disable styling in batch mode.
12554
12555 2019-02-20 Tom Tromey <tom@tromey.com>
12556
12557 * symtab.c (symtab_symbol_info): Fix typos.
12558
12559 2019-02-20 Tom Tromey <tromey@adacore.com>
12560
12561 * findcmd.c (_initialize_mem_search): Use upper case for
12562 metasyntactic variables.
12563
12564 2019-02-20 Alan Hayward <alan.hayward@arm.com>
12565
12566 * aarch64-tdep.c (aarch64_add_reggroups): New function.
12567 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
12568
12569 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
12570
12571 * top.h (source_file_name): Change to std::string.
12572 * top.c (source_file_name): Likewise.
12573 (command_line_input): Adjust.
12574 * cli/cli-script.c (script_from_file): Adjust.
12575
12576 2019-02-19 Tom Tromey <tromey@adacore.com>
12577
12578 * ravenscar-thread.c
12579 (ravenscar_thread_target::update_thread_list): Don't call
12580 ada_build_task_list.
12581 * ada-lang.h (ada_build_task_list): Don't declare.
12582 * ada-tasks.c (struct ada_tasks_inferior_data)
12583 <task_list_valid_p>: Now bool.
12584 (read_known_tasks, ada_task_list_changed)
12585 (ada_tasks_invalidate_inferior_data): Update.
12586 (read_known_tasks_array): Return bool.
12587 (read_known_tasks_list): Likewise.
12588 (read_known_tasks): Return void.
12589 (ada_build_task_list): Now static.
12590
12591 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
12592
12593 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
12594 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
12595
12596 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12597
12598 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
12599 variant for ada_tasks_pspace_data_handle and
12600 ada_tasks_inferior_data_handle.
12601 (ada_tasks_pspace_data_cleanup): New function.
12602 (ada_tasks_inferior_data_cleanup): New function.
12603
12604 2019-02-17 Tom Tromey <tom@tromey.com>
12605
12606 * macrotab.h (macro_source_fullname): Return a std::string.
12607 * macrotab.c (macro_include, check_for_redefinition)
12608 (macro_undef, macro_lookup_definition, foreach_macro)
12609 (foreach_macro_in_scope): Update.
12610 (macro_source_fullname): Return a std::string.
12611 * macrocmd.c (show_pp_source_pos): Update.
12612
12613 2019-02-17 Tom Tromey <tom@tromey.com>
12614
12615 * macrocmd.c (show_pp_source_pos): Style the file names.
12616
12617 2019-02-17 Tom Tromey <tom@tromey.com>
12618
12619 PR tui/24197:
12620 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
12621
12622 2019-02-17 Tom Tromey <tom@tromey.com>
12623
12624 * ada-lang.c (user_select_syms): Use filtered printing.
12625 * utils.c (wrap_style): New global.
12626 (desired_style): Remove.
12627 (emit_style_escape): Add stream parameter.
12628 (set_output_style, reset_terminal_style, prompt_for_continue):
12629 Update.
12630 (flush_wrap_buffer): Only flush gdb_stdout.
12631 (wrap_here): Set wrap_style.
12632 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
12633 treat escape sequences as a character. Change when wrap buffer is
12634 flushed.
12635 (fputs_styled): Do not set the output style when the default is
12636 requested.
12637 * ui-style.h (struct ui_file_style) <is_default>: New method.
12638 * source.c (print_source_lines_base): Emit escape sequences in one
12639 piece.
12640
12641 2019-02-17 Joel Brobecker <brobecker@adacore.com>
12642
12643 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
12644 integers and enumeration types.
12645
12646 2019-02-17 Joel Brobecker <brobecker@adacore.com>
12647
12648 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
12649 instead of lookup_symbol_in_language
12650 (do_exact_match): New function.
12651 (ada_get_symbol_name_matcher): Return do_exact_match when
12652 doing a verbatim match.
12653
12654 2019-02-15 Tom Tromey <tromey@adacore.com>
12655
12656 * ravenscar-thread.c (ravenscar_thread_target::resume)
12657 (ravenscar_thread_target::wait): Special case wildcard requests.
12658
12659 2019-02-15 Tom Tromey <tromey@adacore.com>
12660
12661 * ravenscar-thread.c (base_ptid): Remove.
12662 (struct ravenscar_thread_target) <close>: New method.
12663 <m_base_ptid>: New member.
12664 <update_inferior_ptid, active_task, task_is_currently_active,
12665 runtime_initialized>: Declare methods.
12666 <ravenscar_thread_target>: Add constructor.
12667 (ravenscar_thread_target::task_is_currently_active)
12668 (ravenscar_thread_target::update_inferior_ptid)
12669 (ravenscar_runtime_initialized): Rename. Now methods.
12670 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
12671 (ravenscar_thread_target::update_thread_list): Update.
12672 (ravenscar_thread_target::active_task): Now method.
12673 (ravenscar_thread_target::store_registers)
12674 (ravenscar_thread_target::prepare_to_store)
12675 (ravenscar_thread_target::prepare_to_store)
12676 (ravenscar_thread_target::mourn_inferior): Update.
12677 (ravenscar_inferior_created): Use "new" to create target.
12678 (ravenscar_thread_target::get_ada_task_ptid): Update.
12679 (_initialize_ravenscar): Don't initialize base_ptid.
12680 (ravenscar_ops): Remove global.
12681
12682 2019-02-15 Tom Tromey <tromey@adacore.com>
12683
12684 * target.h (push_target): Declare new overload.
12685 * target.c (push_target): New overload, taking an rvalue reference.
12686 * remote.c (remote_target::open_1): Use push_target overload.
12687 * corelow.c (core_target_open): Use push_target overload.
12688
12689 2019-02-15 Tom Tromey <tromey@adacore.com>
12690
12691 * ravenscar-thread.c (is_ravenscar_task)
12692 (ravenscar_task_is_currently_active): Return bool.
12693 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
12694 (_initialize_ravenscar): Remove "(void)".
12695 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
12696 Return bool.
12697
12698 2019-02-15 Tom Tromey <tromey@adacore.com>
12699
12700 * ravenscar-thread.c (ravenscar_runtime_initializer)
12701 (has_ravenscar_runtime, get_running_thread_id)
12702 (ravenscar_thread_target::resume): Fix indentation.
12703
12704 2019-02-15 Tom Tromey <tromey@adacore.com>
12705
12706 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
12707 from ravenscar_arch_ops.
12708 (sparc_ravenscar_ops::fetch_registers)
12709 (sparc_ravenscar_ops::store_registers): Now methods.
12710 (sparc_ravenscar_prepare_to_store): Remove.
12711 (sparc_ravenscar_ops): Redefine.
12712 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
12713 methods and destructor. Remove members.
12714 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
12715 (ravenscar_thread_target::store_registers)
12716 (ravenscar_thread_target::prepare_to_store): Update.
12717 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
12718 Remove.
12719 (struct ppc_ravenscar_powerpc_ops): Derive from
12720 ravenscar_arch_ops.
12721 (ppc_ravenscar_powerpc_ops::fetch_registers)
12722 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
12723 (ppc_ravenscar_powerpc_ops): Redefine.
12724 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
12725 (ppc_ravenscar_e500_ops::fetch_registers)
12726 (ppc_ravenscar_e500_ops::store_registers): Now methods.
12727 (ppc_ravenscar_e500_ops): Redefine.
12728 * aarch64-ravenscar-thread.c
12729 (aarch64_ravenscar_generic_prepare_to_store): Remove.
12730 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
12731 (aarch64_ravenscar_fetch_registers)
12732 (aarch64_ravenscar_store_registers): Now methods.
12733 (aarch64_ravenscar_ops): Redefine.
12734
12735 2019-02-15 Tom Tromey <tromey@adacore.com>
12736
12737 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
12738 (ravenscar_thread_target::stopped_by_hw_breakpoint)
12739 (ravenscar_thread_target::stopped_by_watchpoint)
12740 (ravenscar_thread_target::stopped_data_address)
12741 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
12742
12743 2019-02-15 Tom Tromey <tromey@adacore.com>
12744
12745 * ravenscar-thread.c: Fix some typos.
12746
12747 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12748 Tom Tromey <tromey@adacore.com>
12749
12750 * ada-lang.c (ada_exception_sal): Change addr_string to a
12751 std::string.
12752 (create_ada_exception_catchpoint): Update.
12753
12754 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12755 Tom Tromey <tromey@adacore.com>
12756
12757 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
12758 (bp_location_ops): Remove.
12759 (base_breakpoint_allocate_location): Update.
12760 (free_bp_location): Update.
12761 * ada-lang.c (class ada_catchpoint_location)
12762 <ada_catchpoint_location>: Remove ops parameter.
12763 (ada_catchpoint_location_dtor): Remove.
12764 (ada_catchpoint_location_ops): Remove.
12765 (allocate_location_exception): Update.
12766 * breakpoint.h (struct bp_location_ops): Remove.
12767 (class bp_location) <bp_location>: Remove bp_location_ops
12768 parameter.
12769 <~bp_location>: Add destructor.
12770 <ops>: Remove.
12771
12772 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
12773 Pedro Alves <palves@redhat.com>
12774
12775 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
12776 'PATH_MAX'.
12777
12778 2019-02-14 David Michael <fedora.dm0@gmail.com>
12779 Samuel Thibault <samuel.thibault@gnu.org>
12780 Thomas Schwinge <thomas@codesourcery.com>
12781
12782 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
12783 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
12784
12785 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
12786
12787 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
12788 (check_empty): Use "const char *".
12789
12790 * gnu-nat.c (gnu_nat_target::detach): Instead of
12791 'detach_inferior (pid)' call
12792 'detach_inferior (find_inferior_pid (pid))'.
12793
12794 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
12795 'nat/fork-inferior.o'.
12796 * gnu-nat.c: #include "nat/fork-inferior.h".
12797
12798 * gnu-nat.c (gnu_nat_target::detach): Instead of
12799 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
12800 * gnu-nat.h: #include "inf-child.h".
12801 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
12802 'i386_gnu_nat_target::fetch_registers'.
12803 (gnu_store_registers): Rename/move to
12804 'i386_gnu_nat_target::store_registers'.
12805
12806 * config/i386/nm-i386gnu.h: Don't "#include" any files.
12807 * gnu-nat.h (mach_thread_info): New function.
12808 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
12809
12810 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
12811
12812 2019-02-14 Frederic Konrad <konrad@adacore.com>
12813
12814 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
12815
12816 2019-02-14 Joel Brobecker <brobecker@adacore.com>
12817
12818 * windows-nat.c (windows_add_thread): Add new parameter
12819 "main_thread_p" with default value set to false. Update
12820 function documentation as well as all callers.
12821 (windows_delete_thread): Likewise.
12822 (fake_create_process): Update call to windows_add_thread.
12823 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
12824 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
12825 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
12826 call to windows_delete_thread.
12827
12828 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
12829
12830 * MAINTAINERS: Add Andrew Burgess as global maintainer.
12831
12832 2019-02-12 John Baldwin <jhb@FreeBSD.org>
12833
12834 * symfile.c (find_separate_debug_file): Use canonical path of
12835 sysroot with child_path instead of gdb_sysroot if it is valid.
12836
12837 2019-02-12 John Baldwin <jhb@FreeBSD.org>
12838
12839 * symfile.c (find_separate_debug_file): Use child_path to
12840 determine if an object file is under a sysroot.
12841
12842 2019-02-12 John Baldwin <jhb@FreeBSD.org>
12843
12844 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12845 unittests/child-path-selftests.c.
12846 * common/pathstuff.c (child_path): New function.
12847 * common/pathstuff.h (child_path): New prototype.
12848 * unittests/child-path-selftests.c: New file.
12849
12850 2019-02-12 John Baldwin <jhb@FreeBSD.org>
12851
12852 * symfile.c (find_separate_debug_file): Look for separate debug
12853 files in debug directories under the sysroot.
12854
12855 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12856
12857 * symtab.h (struct minimal_symbol data_p): New const method.
12858 (struct minimal_symbol text_p): Likewise.
12859 * symtab.c (output_source_filename): Use file name style
12860 to print file name.
12861 (print_symbol_info): Likewise.
12862 (print_msymbol_info): Use address style to print addresses.
12863 Use function name style to print executable text symbols.
12864 (expand_symtab_containing_pc): Use data_p.
12865 (find_pc_sect_compunit_symtab): Likewise.
12866
12867 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12868
12869 * breakpoint.c (describe_other_breakpoints): Use address style
12870 to print addresses.
12871 (say_where): Likewise.
12872
12873 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12874
12875 * ada-typeprint.c (print_func_type): Print function name
12876 style to print function name.
12877 * c-typeprint.c (c_print_type_1): Likewise.
12878
12879 2019-02-11 Alan Hayward <alan.hayward@arm.com>
12880
12881 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
12882 for execve.
12883
12884 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12885
12886 * c-exp.y (direct_abs_decl): Use emplace_back to record the
12887 type_stack.
12888
12889 2019-02-10 Joel Brobecker <brobecker@adacore.com>
12890
12891 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
12892 TYPE_CODE_REF types.
12893
12894 2019-02-08 Jim Wilson <jimw@sifive.com>
12895
12896 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
12897 (riscv_linux_fregset): New.
12898 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
12899
12900 2019-02-07 Tom Tromey <tom@tromey.com>
12901
12902 * thread.c (thread_cancel_execution_command): Update.
12903 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
12904 methods.
12905 (struct thread_fsm_ops): Remove.
12906 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
12907 (thread_fsm_should_stop, thread_fsm_return_value)
12908 (thread_fsm_set_finished, thread_fsm_finished_p)
12909 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
12910 Don't declare.
12911 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
12912 * infrun.c (clear_proceed_status_thread)
12913 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
12914 (print_stop_event): Update.
12915 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
12916 Add constructor.
12917 (step_command_fsm_ops): Remove.
12918 (new_step_command_fsm): Remove.
12919 (step_1): Update.
12920 (step_command_fsm::should_stop): Rename from
12921 step_command_fsm_should_stop.
12922 (step_command_fsm::clean_up): Rename from
12923 step_command_fsm_clean_up.
12924 (step_command_fsm::do_async_reply_reason): Rename from
12925 step_command_fsm_async_reply_reason.
12926 (struct until_next_fsm): Inherit from thread_fsm. Add
12927 constructor.
12928 (until_next_fsm_ops): Remove.
12929 (new_until_next_fsm): Remove.
12930 (until_next_fsm::should_stop): Rename from
12931 until_next_fsm_should_stop.
12932 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
12933 (until_next_fsm::do_async_reply_reason): Rename from
12934 until_next_fsm_async_reply_reason.
12935 (struct finish_command_fsm): Inherit from thread_fsm. Add
12936 constructor. Change type of breakpoint.
12937 (finish_command_fsm_ops): Remove.
12938 (new_finish_command_fsm): Remove.
12939 (finish_command_fsm::should_stop): Rename from
12940 finish_command_fsm_should_stop.
12941 (finish_command_fsm::clean_up): Rename from
12942 finish_command_fsm_clean_up.
12943 (finish_command_fsm::return_value): Rename from
12944 finish_command_fsm_return_value.
12945 (finish_command_fsm::do_async_reply_reason): Rename from
12946 finish_command_fsm_async_reply_reason.
12947 (finish_command): Update.
12948 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
12949 Add constructor.
12950 (call_thread_fsm_ops): Remove.
12951 (call_thread_fsm::call_thread_fsm): Rename from
12952 new_call_thread_fsm.
12953 (call_thread_fsm::should_stop): Rename from
12954 call_thread_fsm_should_stop.
12955 (call_thread_fsm::should_notify_stop): Rename from
12956 call_thread_fsm_should_notify_stop.
12957 (run_inferior_call, call_function_by_hand_dummy): Update.
12958 * cli/cli-interp.c (should_print_stop_to_console): Update.
12959 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
12960 Add constructor. Change type of location_breakpoint,
12961 caller_breakpoint.
12962 (until_break_fsm_ops): Remove.
12963 (new_until_break_fsm): Remove.
12964 (until_break_fsm::should_stop): Rename from
12965 until_break_fsm_should_stop.
12966 (until_break_fsm::clean_up): Rename from
12967 until_break_fsm_clean_up.
12968 (until_break_fsm::do_async_reply_reason): Rename from
12969 until_break_fsm_async_reply_reason.
12970 (until_break_command): Update.
12971 * thread-fsm.c: Remove.
12972 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
12973
12974 2019-02-07 Tom Tromey <tom@tromey.com>
12975
12976 * yy-remap.h: Add include guard.
12977 * xtensa-tdep.h: Add include guard.
12978 * xcoffread.h: Rename include guard.
12979 * varobj-iter.h: Add include guard.
12980 * tui/tui.h: Rename include guard.
12981 * tui/tui-winsource.h: Rename include guard.
12982 * tui/tui-wingeneral.h: Rename include guard.
12983 * tui/tui-windata.h: Rename include guard.
12984 * tui/tui-win.h: Rename include guard.
12985 * tui/tui-stack.h: Rename include guard.
12986 * tui/tui-source.h: Rename include guard.
12987 * tui/tui-regs.h: Rename include guard.
12988 * tui/tui-out.h: Rename include guard.
12989 * tui/tui-layout.h: Rename include guard.
12990 * tui/tui-io.h: Rename include guard.
12991 * tui/tui-hooks.h: Rename include guard.
12992 * tui/tui-file.h: Rename include guard.
12993 * tui/tui-disasm.h: Rename include guard.
12994 * tui/tui-data.h: Rename include guard.
12995 * tui/tui-command.h: Rename include guard.
12996 * tic6x-tdep.h: Add include guard.
12997 * target/waitstatus.h: Rename include guard.
12998 * target/wait.h: Rename include guard.
12999 * target/target.h: Rename include guard.
13000 * target/resume.h: Rename include guard.
13001 * target-float.h: Rename include guard.
13002 * stabsread.h: Add include guard.
13003 * rs6000-tdep.h: Add include guard.
13004 * riscv-fbsd-tdep.h: Add include guard.
13005 * regformats/regdef.h: Rename include guard.
13006 * record.h: Rename include guard.
13007 * python/python.h: Rename include guard.
13008 * python/python-internal.h: Rename include guard.
13009 * python/py-stopevent.h: Rename include guard.
13010 * python/py-ref.h: Rename include guard.
13011 * python/py-record.h: Rename include guard.
13012 * python/py-record-full.h: Rename include guard.
13013 * python/py-record-btrace.h: Rename include guard.
13014 * python/py-instruction.h: Rename include guard.
13015 * python/py-events.h: Rename include guard.
13016 * python/py-event.h: Rename include guard.
13017 * procfs.h: Add include guard.
13018 * proc-utils.h: Add include guard.
13019 * p-lang.h: Add include guard.
13020 * or1k-tdep.h: Rename include guard.
13021 * observable.h: Rename include guard.
13022 * nto-tdep.h: Rename include guard.
13023 * nat/x86-linux.h: Rename include guard.
13024 * nat/x86-linux-dregs.h: Rename include guard.
13025 * nat/x86-gcc-cpuid.h: Add include guard.
13026 * nat/x86-dregs.h: Rename include guard.
13027 * nat/x86-cpuid.h: Rename include guard.
13028 * nat/ppc-linux.h: Rename include guard.
13029 * nat/mips-linux-watch.h: Rename include guard.
13030 * nat/linux-waitpid.h: Rename include guard.
13031 * nat/linux-ptrace.h: Rename include guard.
13032 * nat/linux-procfs.h: Rename include guard.
13033 * nat/linux-osdata.h: Rename include guard.
13034 * nat/linux-nat.h: Rename include guard.
13035 * nat/linux-namespaces.h: Rename include guard.
13036 * nat/linux-btrace.h: Rename include guard.
13037 * nat/glibc_thread_db.h: Rename include guard.
13038 * nat/gdb_thread_db.h: Rename include guard.
13039 * nat/gdb_ptrace.h: Rename include guard.
13040 * nat/fork-inferior.h: Rename include guard.
13041 * nat/amd64-linux-siginfo.h: Rename include guard.
13042 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
13043 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
13044 * nat/aarch64-linux.h: Rename include guard.
13045 * nat/aarch64-linux-hw-point.h: Rename include guard.
13046 * mn10300-tdep.h: Add include guard.
13047 * mips-linux-tdep.h: Add include guard.
13048 * mi/mi-parse.h: Rename include guard.
13049 * mi/mi-out.h: Rename include guard.
13050 * mi/mi-main.h: Rename include guard.
13051 * mi/mi-interp.h: Rename include guard.
13052 * mi/mi-getopt.h: Rename include guard.
13053 * mi/mi-console.h: Rename include guard.
13054 * mi/mi-common.h: Rename include guard.
13055 * mi/mi-cmds.h: Rename include guard.
13056 * mi/mi-cmd-break.h: Rename include guard.
13057 * m2-lang.h: Add include guard.
13058 * location.h: Rename include guard.
13059 * linux-record.h: Rename include guard.
13060 * linux-nat.h: Add include guard.
13061 * linux-fork.h: Add include guard.
13062 * i386-darwin-tdep.h: Rename include guard.
13063 * hppa-linux-offsets.h: Add include guard.
13064 * guile/guile.h: Rename include guard.
13065 * guile/guile-internal.h: Rename include guard.
13066 * gnu-nat.h: Rename include guard.
13067 * gdb-stabs.h: Rename include guard.
13068 * frv-tdep.h: Add include guard.
13069 * f-lang.h: Add include guard.
13070 * event-loop.h: Add include guard.
13071 * darwin-nat.h: Rename include guard.
13072 * cp-abi.h: Rename include guard.
13073 * config/sparc/nm-sol2.h: Rename include guard.
13074 * config/nm-nto.h: Rename include guard.
13075 * config/nm-linux.h: Add include guard.
13076 * config/i386/nm-i386gnu.h: Rename include guard.
13077 * config/djgpp/nl_types.h: Rename include guard.
13078 * config/djgpp/langinfo.h: Rename include guard.
13079 * compile/gcc-cp-plugin.h: Add include guard.
13080 * compile/gcc-c-plugin.h: Add include guard.
13081 * compile/compile.h: Rename include guard.
13082 * compile/compile-object-run.h: Rename include guard.
13083 * compile/compile-object-load.h: Rename include guard.
13084 * compile/compile-internal.h: Rename include guard.
13085 * compile/compile-cplus.h: Rename include guard.
13086 * compile/compile-c.h: Rename include guard.
13087 * common/xml-utils.h: Rename include guard.
13088 * common/x86-xstate.h: Rename include guard.
13089 * common/version.h: Rename include guard.
13090 * common/vec.h: Rename include guard.
13091 * common/tdesc.h: Rename include guard.
13092 * common/selftest.h: Rename include guard.
13093 * common/scoped_restore.h: Rename include guard.
13094 * common/scoped_mmap.h: Rename include guard.
13095 * common/scoped_fd.h: Rename include guard.
13096 * common/safe-iterator.h: Rename include guard.
13097 * common/run-time-clock.h: Rename include guard.
13098 * common/refcounted-object.h: Rename include guard.
13099 * common/queue.h: Rename include guard.
13100 * common/ptid.h: Rename include guard.
13101 * common/print-utils.h: Rename include guard.
13102 * common/preprocessor.h: Rename include guard.
13103 * common/pathstuff.h: Rename include guard.
13104 * common/observable.h: Rename include guard.
13105 * common/netstuff.h: Rename include guard.
13106 * common/job-control.h: Rename include guard.
13107 * common/host-defs.h: Rename include guard.
13108 * common/gdb_wait.h: Rename include guard.
13109 * common/gdb_vecs.h: Rename include guard.
13110 * common/gdb_unlinker.h: Rename include guard.
13111 * common/gdb_unique_ptr.h: Rename include guard.
13112 * common/gdb_tilde_expand.h: Rename include guard.
13113 * common/gdb_sys_time.h: Rename include guard.
13114 * common/gdb_string_view.h: Rename include guard.
13115 * common/gdb_splay_tree.h: Rename include guard.
13116 * common/gdb_setjmp.h: Rename include guard.
13117 * common/gdb_ref_ptr.h: Rename include guard.
13118 * common/gdb_optional.h: Rename include guard.
13119 * common/gdb_locale.h: Rename include guard.
13120 * common/gdb_assert.h: Rename include guard.
13121 * common/filtered-iterator.h: Rename include guard.
13122 * common/filestuff.h: Rename include guard.
13123 * common/fileio.h: Rename include guard.
13124 * common/environ.h: Rename include guard.
13125 * common/common-utils.h: Rename include guard.
13126 * common/common-types.h: Rename include guard.
13127 * common/common-regcache.h: Rename include guard.
13128 * common/common-inferior.h: Rename include guard.
13129 * common/common-gdbthread.h: Rename include guard.
13130 * common/common-exceptions.h: Rename include guard.
13131 * common/common-defs.h: Rename include guard.
13132 * common/common-debug.h: Rename include guard.
13133 * common/cleanups.h: Rename include guard.
13134 * common/buffer.h: Rename include guard.
13135 * common/btrace-common.h: Rename include guard.
13136 * common/break-common.h: Rename include guard.
13137 * cli/cli-utils.h: Rename include guard.
13138 * cli/cli-style.h: Rename include guard.
13139 * cli/cli-setshow.h: Rename include guard.
13140 * cli/cli-script.h: Rename include guard.
13141 * cli/cli-interp.h: Rename include guard.
13142 * cli/cli-decode.h: Rename include guard.
13143 * cli/cli-cmds.h: Rename include guard.
13144 * charset-list.h: Add include guard.
13145 * buildsym-legacy.h: Rename include guard.
13146 * bfin-tdep.h: Add include guard.
13147 * ax.h: Rename include guard.
13148 * arm-linux-tdep.h: Add include guard.
13149 * arm-fbsd-tdep.h: Add include guard.
13150 * arch/xtensa.h: Rename include guard.
13151 * arch/tic6x.h: Add include guard.
13152 * arch/i386.h: Add include guard.
13153 * arch/arm.h: Rename include guard.
13154 * arch/arm-linux.h: Rename include guard.
13155 * arch/arm-get-next-pcs.h: Rename include guard.
13156 * arch/amd64.h: Add include guard.
13157 * arch/aarch64-insn.h: Rename include guard.
13158 * arch-utils.h: Rename include guard.
13159 * annotate.h: Add include guard.
13160 * amd64-darwin-tdep.h: Rename include guard.
13161 * aarch64-linux-tdep.h: Add include guard.
13162 * aarch64-fbsd-tdep.h: Add include guard.
13163 * aarch32-linux-nat.h: Add include guard.
13164
13165 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13166
13167 * macrotab.c (macro_define_internal): New function that
13168 factorizes macro_define_object_internal and macro_define_function
13169 code.
13170 (macro_define_object_internal): Use macro_define_internal.
13171 (macro_define_function): Likewise.
13172
13173 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13174
13175 * macrocmd.c (extract_identifier): Return
13176 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
13177 callers.
13178
13179 2019-02-06 John Baldwin <jhb@FreeBSD.org>
13180
13181 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
13182
13183 2019-02-05 Tom Tromey <tom@tromey.com>
13184
13185 * target.c (target_stack::unpush): Move assertion earlier.
13186
13187 2019-01-30 Tom Tromey <tom@tromey.com>
13188
13189 PR python/23615:
13190 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
13191 (gdbpy_parse_and_eval): Likewise.
13192 * python/python-internal.h (gdbpy_allow_threads): New class.
13193
13194 2019-01-28 John Baldwin <jhb@FreeBSD.org>
13195
13196 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
13197 (aarch64_fbsd_fpregmap): Move earlier.
13198 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
13199 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
13200 instead of individual calls to trad_frame_set_reg_addr.
13201 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
13202 earlier.
13203 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
13204 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
13205 instead of individual calls to trad_frame_set_reg_addr.
13206
13207 2019-01-28 Alan Hayward <alan.hayward@arm.com>
13208
13209 * CONTRIBUTE: Replace contribution list with wiki link.
13210
13211 2019-01-25 Tom Tromey <tom@tromey.com>
13212
13213 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
13214
13215 2019-01-25 Tom Tromey <tom@tromey.com>
13216
13217 * xtensa-linux-nat.c: Fix common/ includes.
13218 * xml-support.h: Fix common/ includes.
13219 * xml-support.c: Fix common/ includes.
13220 * x86-linux-nat.c: Fix common/ includes.
13221 * windows-nat.c: Fix common/ includes.
13222 * varobj.h: Fix common/ includes.
13223 * varobj.c: Fix common/ includes.
13224 * value.c: Fix common/ includes.
13225 * valops.c: Fix common/ includes.
13226 * utils.c: Fix common/ includes.
13227 * unittests/xml-utils-selftests.c: Fix common/ includes.
13228 * unittests/utils-selftests.c: Fix common/ includes.
13229 * unittests/unpack-selftests.c: Fix common/ includes.
13230 * unittests/tracepoint-selftests.c: Fix common/ includes.
13231 * unittests/style-selftests.c: Fix common/ includes.
13232 * unittests/string_view-selftests.c: Fix common/ includes.
13233 * unittests/scoped_restore-selftests.c: Fix common/ includes.
13234 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
13235 * unittests/scoped_fd-selftests.c: Fix common/ includes.
13236 * unittests/rsp-low-selftests.c: Fix common/ includes.
13237 * unittests/parse-connection-spec-selftests.c: Fix common/
13238 includes.
13239 * unittests/optional-selftests.c: Fix common/ includes.
13240 * unittests/offset-type-selftests.c: Fix common/ includes.
13241 * unittests/observable-selftests.c: Fix common/ includes.
13242 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
13243 * unittests/memrange-selftests.c: Fix common/ includes.
13244 * unittests/memory-map-selftests.c: Fix common/ includes.
13245 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
13246 * unittests/function-view-selftests.c: Fix common/ includes.
13247 * unittests/environ-selftests.c: Fix common/ includes.
13248 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
13249 * unittests/common-utils-selftests.c: Fix common/ includes.
13250 * unittests/cli-utils-selftests.c: Fix common/ includes.
13251 * unittests/array-view-selftests.c: Fix common/ includes.
13252 * ui-file.c: Fix common/ includes.
13253 * tui/tui-io.c: Fix common/ includes.
13254 * tracepoint.h: Fix common/ includes.
13255 * tracepoint.c: Fix common/ includes.
13256 * tracefile-tfile.c: Fix common/ includes.
13257 * top.h: Fix common/ includes.
13258 * top.c: Fix common/ includes.
13259 * thread.c: Fix common/ includes.
13260 * target/waitstatus.h: Fix common/ includes.
13261 * target/waitstatus.c: Fix common/ includes.
13262 * target.h: Fix common/ includes.
13263 * target.c: Fix common/ includes.
13264 * target-memory.c: Fix common/ includes.
13265 * target-descriptions.c: Fix common/ includes.
13266 * symtab.h: Fix common/ includes.
13267 * symfile.c: Fix common/ includes.
13268 * stap-probe.c: Fix common/ includes.
13269 * spu-linux-nat.c: Fix common/ includes.
13270 * sparc-nat.c: Fix common/ includes.
13271 * source.c: Fix common/ includes.
13272 * solib.c: Fix common/ includes.
13273 * solib-target.c: Fix common/ includes.
13274 * ser-unix.c: Fix common/ includes.
13275 * ser-tcp.c: Fix common/ includes.
13276 * ser-pipe.c: Fix common/ includes.
13277 * ser-base.c: Fix common/ includes.
13278 * selftest-arch.c: Fix common/ includes.
13279 * s12z-tdep.c: Fix common/ includes.
13280 * rust-exp.y: Fix common/ includes.
13281 * rs6000-aix-tdep.c: Fix common/ includes.
13282 * riscv-tdep.c: Fix common/ includes.
13283 * remote.c: Fix common/ includes.
13284 * remote-notif.h: Fix common/ includes.
13285 * remote-fileio.h: Fix common/ includes.
13286 * remote-fileio.c: Fix common/ includes.
13287 * regcache.h: Fix common/ includes.
13288 * regcache.c: Fix common/ includes.
13289 * record-btrace.c: Fix common/ includes.
13290 * python/python.c: Fix common/ includes.
13291 * python/py-type.c: Fix common/ includes.
13292 * python/py-inferior.c: Fix common/ includes.
13293 * progspace.h: Fix common/ includes.
13294 * producer.c: Fix common/ includes.
13295 * procfs.c: Fix common/ includes.
13296 * proc-api.c: Fix common/ includes.
13297 * printcmd.c: Fix common/ includes.
13298 * ppc-linux-nat.c: Fix common/ includes.
13299 * parser-defs.h: Fix common/ includes.
13300 * osdata.c: Fix common/ includes.
13301 * obsd-nat.c: Fix common/ includes.
13302 * nat/x86-linux.c: Fix common/ includes.
13303 * nat/x86-linux-dregs.c: Fix common/ includes.
13304 * nat/x86-dregs.h: Fix common/ includes.
13305 * nat/x86-dregs.c: Fix common/ includes.
13306 * nat/ppc-linux.c: Fix common/ includes.
13307 * nat/mips-linux-watch.h: Fix common/ includes.
13308 * nat/mips-linux-watch.c: Fix common/ includes.
13309 * nat/linux-waitpid.c: Fix common/ includes.
13310 * nat/linux-ptrace.h: Fix common/ includes.
13311 * nat/linux-ptrace.c: Fix common/ includes.
13312 * nat/linux-procfs.c: Fix common/ includes.
13313 * nat/linux-personality.c: Fix common/ includes.
13314 * nat/linux-osdata.c: Fix common/ includes.
13315 * nat/linux-namespaces.c: Fix common/ includes.
13316 * nat/linux-btrace.h: Fix common/ includes.
13317 * nat/linux-btrace.c: Fix common/ includes.
13318 * nat/fork-inferior.c: Fix common/ includes.
13319 * nat/amd64-linux-siginfo.c: Fix common/ includes.
13320 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
13321 * nat/aarch64-linux.c: Fix common/ includes.
13322 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
13323 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
13324 * namespace.h: Fix common/ includes.
13325 * mips-linux-tdep.c: Fix common/ includes.
13326 * minsyms.c: Fix common/ includes.
13327 * mi/mi-parse.h: Fix common/ includes.
13328 * mi/mi-main.c: Fix common/ includes.
13329 * mi/mi-cmd-env.c: Fix common/ includes.
13330 * memrange.h: Fix common/ includes.
13331 * memattr.c: Fix common/ includes.
13332 * maint.h: Fix common/ includes.
13333 * maint.c: Fix common/ includes.
13334 * main.c: Fix common/ includes.
13335 * machoread.c: Fix common/ includes.
13336 * location.c: Fix common/ includes.
13337 * linux-thread-db.c: Fix common/ includes.
13338 * linux-nat.c: Fix common/ includes.
13339 * linux-fork.c: Fix common/ includes.
13340 * inline-frame.c: Fix common/ includes.
13341 * infrun.c: Fix common/ includes.
13342 * inflow.c: Fix common/ includes.
13343 * inferior.h: Fix common/ includes.
13344 * inferior.c: Fix common/ includes.
13345 * infcmd.c: Fix common/ includes.
13346 * inf-ptrace.c: Fix common/ includes.
13347 * inf-child.c: Fix common/ includes.
13348 * ia64-linux-nat.c: Fix common/ includes.
13349 * i387-tdep.c: Fix common/ includes.
13350 * i386-tdep.c: Fix common/ includes.
13351 * i386-linux-tdep.c: Fix common/ includes.
13352 * i386-linux-nat.c: Fix common/ includes.
13353 * i386-go32-tdep.c: Fix common/ includes.
13354 * i386-fbsd-tdep.c: Fix common/ includes.
13355 * i386-fbsd-nat.c: Fix common/ includes.
13356 * guile/scm-type.c: Fix common/ includes.
13357 * guile/guile.c: Fix common/ includes.
13358 * go32-nat.c: Fix common/ includes.
13359 * gnu-nat.c: Fix common/ includes.
13360 * gdbthread.h: Fix common/ includes.
13361 * gdbarch-selftests.c: Fix common/ includes.
13362 * gdb_usleep.c: Fix common/ includes.
13363 * gdb_select.h: Fix common/ includes.
13364 * gdb_bfd.c: Fix common/ includes.
13365 * gcore.c: Fix common/ includes.
13366 * fork-child.c: Fix common/ includes.
13367 * findvar.c: Fix common/ includes.
13368 * fbsd-nat.c: Fix common/ includes.
13369 * event-top.c: Fix common/ includes.
13370 * event-loop.c: Fix common/ includes.
13371 * dwarf2read.c: Fix common/ includes.
13372 * dwarf2loc.c: Fix common/ includes.
13373 * dwarf2-frame.c: Fix common/ includes.
13374 * dwarf-index-cache.c: Fix common/ includes.
13375 * dtrace-probe.c: Fix common/ includes.
13376 * disasm-selftests.c: Fix common/ includes.
13377 * defs.h: Fix common/ includes.
13378 * csky-tdep.c: Fix common/ includes.
13379 * cp-valprint.c: Fix common/ includes.
13380 * cp-support.h: Fix common/ includes.
13381 * cp-support.c: Fix common/ includes.
13382 * corelow.c: Fix common/ includes.
13383 * completer.h: Fix common/ includes.
13384 * completer.c: Fix common/ includes.
13385 * compile/compile.c: Fix common/ includes.
13386 * compile/compile-loc2c.c: Fix common/ includes.
13387 * compile/compile-cplus-types.c: Fix common/ includes.
13388 * compile/compile-cplus-symbols.c: Fix common/ includes.
13389 * command.h: Fix common/ includes.
13390 * cli/cli-dump.c: Fix common/ includes.
13391 * cli/cli-cmds.c: Fix common/ includes.
13392 * charset.c: Fix common/ includes.
13393 * build-id.c: Fix common/ includes.
13394 * btrace.h: Fix common/ includes.
13395 * btrace.c: Fix common/ includes.
13396 * breakpoint.h: Fix common/ includes.
13397 * breakpoint.c: Fix common/ includes.
13398 * ax.h:
13399 (enum agent_op): Fix common/ includes.
13400 * ax-general.c (struct aop_map): Fix common/ includes.
13401 * ax-gdb.c: Fix common/ includes.
13402 * auxv.c: Fix common/ includes.
13403 * auto-load.c: Fix common/ includes.
13404 * arm-tdep.c: Fix common/ includes.
13405 * arch/riscv.c: Fix common/ includes.
13406 * arch/ppc-linux-common.c: Fix common/ includes.
13407 * arch/i386.c: Fix common/ includes.
13408 * arch/arm.c: Fix common/ includes.
13409 * arch/arm-linux.c: Fix common/ includes.
13410 * arch/arm-get-next-pcs.c: Fix common/ includes.
13411 * arch/amd64.c: Fix common/ includes.
13412 * arch/aarch64.c: Fix common/ includes.
13413 * arch/aarch64-insn.c: Fix common/ includes.
13414 * arch-utils.c: Fix common/ includes.
13415 * amd64-windows-tdep.c: Fix common/ includes.
13416 * amd64-tdep.c: Fix common/ includes.
13417 * amd64-sol2-tdep.c: Fix common/ includes.
13418 * amd64-obsd-tdep.c: Fix common/ includes.
13419 * amd64-nbsd-tdep.c: Fix common/ includes.
13420 * amd64-linux-tdep.c: Fix common/ includes.
13421 * amd64-linux-nat.c: Fix common/ includes.
13422 * amd64-fbsd-tdep.c: Fix common/ includes.
13423 * amd64-fbsd-nat.c: Fix common/ includes.
13424 * amd64-dicos-tdep.c: Fix common/ includes.
13425 * amd64-darwin-tdep.c: Fix common/ includes.
13426 * agent.c: Fix common/ includes.
13427 * ada-lang.h: Fix common/ includes.
13428 * ada-lang.c: Fix common/ includes.
13429 * aarch64-tdep.c: Fix common/ includes.
13430
13431 2019-01-25 Tom Tromey <tom@tromey.com>
13432
13433 * common/create-version.sh: Use common/version.h.
13434
13435 2019-01-24 Pedro Alves <palves@redhat.com>
13436
13437 * infrun.c (signal_stop, signal_print, signal_program)
13438 (signal_catch, signal_pass): Now arrays instead of pointers.
13439 (update_signals_program_target, do_target_resume)
13440 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
13441 * linux-nat.c (linux_nat_target::pass_signals)
13442 (linux_nat_target::create_inferior, linux_nat_target::attach):
13443 Adjust.
13444 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
13445 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
13446 * procfs.c (procfs_target::pass_signals): Adjust.
13447 * record-full.c (record_full_target::resume): Adjust.
13448 * remote.c (remote_target::pass_signals)
13449 (remote_target::program_signals): Adjust.
13450 * target-debug.h (target_debug_print_signals): Now takes a
13451 gdb::array_view as parameter. Adjust.
13452 * target.h (target_ops) <pass_signals, program_signals>: Replace
13453 pointer and length parameters with gdb::array_view.
13454 (target_pass_signals, target_program_signals): Likewise.
13455 * target-delegates.c: Regenerate.
13456
13457 2019-01-24 Pedro Alves <palves@redhat.com>
13458
13459 * common/forward-scope-exit.h
13460 (forward_scope_exit::forward_scope_exit): Pass arguments to
13461 m_bind_function directly, instead of creating a std::bind and
13462 copying that.
13463
13464 2019-01-24 Alan Hayward <alan.hayward@arm.com>
13465
13466 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
13467 for static members.
13468 (pass_in_v_vfp_candidate): Likewise.
13469
13470 2019-01-23 Tom Tromey <tom@tromey.com>
13471 Pedro Alves <palves@redhat.com>
13472
13473 * regcache.c (class regcache_invalidator): Remove.
13474 (regcache::raw_write): Use make_scope_exit.
13475
13476 2019-01-23 Tom Tromey <tom@tromey.com>
13477
13478 * ui-out.h (class ui_out_emit_type): Update comment.
13479
13480 2019-01-23 Tom Tromey <tom@tromey.com>
13481
13482 * infrun.c (fetch_inferior_event): Update comment.
13483
13484 2019-01-23 Tom Tromey <tom@tromey.com>
13485 Pedro Alves <palves@redhat.com>
13486
13487 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
13488 parameter.
13489 (fetch_inferior_event): Use SCOPE_EXIT.
13490
13491
13492 2019-01-23 Tom Tromey <tom@tromey.com>
13493 Pedro Alves <palves@redhat.com>
13494
13495 * infrun.c (disable_thread_events): Delete.
13496 (stop_all_threads): Use SCOPE_EXIT.
13497
13498 2019-01-23 Tom Tromey <tom@tromey.com>
13499 Pedro Alves <palves@redhat.com>
13500
13501 * symfile.c: Include forward-scope-exit.h.
13502 (clear_symtab_users_cleanup): Replace forward declaration with
13503 a FORWARD_SCOPE_EXIT.
13504 (syms_from_objfile_1): Use the forward_scope_exit and
13505 gdb::optional instead of cleanup_function.
13506 (reread_symbols): Use the forward_scope_exit instead of
13507 cleanup_function.
13508 (clear_symtab_users_cleanup): Remove function.
13509
13510 2019-01-23 Tom Tromey <tom@tromey.com>
13511 Pedro Alves <palves@redhat.com>
13512
13513 * linux-nat.c: Include scope-exit.h.
13514 (cleanup_target_stop): Remove.
13515 (linux_nat_target::static_tracepoint_markers_by_strid): Use
13516 SCOPE_EXIT.
13517
13518 2019-01-23 Tom Tromey <tom@tromey.com>
13519 Pedro Alves <palves@redhat.com>
13520
13521 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
13522 (call_function_by_hand_dummy): Use SCOPE_EXIT.
13523
13524 2019-01-23 Tom Tromey <tom@tromey.com>
13525 Andrew Burgess <andrew.burgess@embecosm.com>
13526 Pedro Alves <palves@redhat.com>
13527
13528 * infrun.c (fetch_inferior_event): Use scope_exit.
13529 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
13530 * top.c (execute_command): Use scope_exit.
13531 * breakpoint.c (bpstat_do_actions): Use scope_exit.
13532 * utils.c (do_bpstat_clear_actions_cleanup)
13533 (make_bpstat_clear_actions_cleanup): Remove.
13534
13535 2019-01-23 Tom Tromey <tom@tromey.com>
13536 Pedro Alves <palves@redhat.com>
13537
13538 * infrun.c: Include "common/scope-exit.h"
13539 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
13540 (wait_for_inferior): Use SCOPE_EXIT.
13541 (fetch_inferior_event): Use scope_exit.
13542
13543 2019-01-23 Tom Tromey <tom@tromey.com>
13544 Pedro Alves <palves@redhat.com>
13545
13546 * breakpoint.c (create_breakpoint): Remove cleanup.
13547
13548 2019-01-23 Tom Tromey <tom@tromey.com>
13549 Andrew Burgess <andrew.burgess@embecosm.com>
13550 Pedro Alves <palves@redhat.com>
13551
13552 2019-01-23 Pedro Alves <palves@redhat.com>
13553
13554 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
13555
13556 2019-01-23 Pedro Alves <palves@redhat.com>
13557 Andrew Burgess <andrew.burgess@embecosm.com>
13558
13559 * gdbthread.h: Include "common/forward-scope-exit.h".
13560 (scoped_finish_thread_state): Redefine custom class in terms of
13561 forward_scope_exit.
13562
13563 2019-01-23 Pedro Alves <palves@redhat.com>
13564 Andrew Burgess <andrew.burgess@embecosm.com>
13565
13566 * common/forward-scope-exit.h: New file.
13567
13568 2019-01-23 Pedro Alves <palves@redhat.com>
13569 Andrew Burgess <andrew.burgess@embecosm.com>
13570 Tom Tromey <tom@tromey.com>
13571
13572 * common/scope-exit.h: New file.
13573
13574 2019-01-23 Pedro Alves <palves@redhat.com>
13575
13576 * common/preprocessor.h (ESC): Rename to ...
13577 (ESC_PARENS): ... this.
13578 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
13579 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
13580
13581 2019-01-23 Tom Tromey <tom@tromey.com>
13582
13583 * language.h (class scoped_switch_to_sym_language_if_auto):
13584 Initialize m_lang in both cases.
13585
13586 2019-01-23 Alan Hayward <alan.hayward@arm.com>
13587
13588 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
13589 with XCNEW.
13590
13591 2019-01-22 Tom Tromey <tom@tromey.com>
13592
13593 * corelow.c: Do not include sys/file.h.
13594
13595 2019-01-22 Tom Tromey <tom@tromey.com>
13596
13597 * tui/tui-wingeneral.h: Include gdb_curses.h.
13598
13599 2019-01-22 Tom Tromey <tom@tromey.com>
13600
13601 * source-cache.h (class source_cache) <get_source_lines,
13602 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
13603
13604 2019-01-22 Tom Tromey <tom@tromey.com>
13605
13606 * remote-fileio.h (struct remote_target): Declare.
13607
13608 2019-01-22 Tom Tromey <tom@tromey.com>
13609
13610 * python/py-arch.c: Do not include py-ref.h.
13611 * python/py-bpevent.c: Do not include py-ref.h.
13612 * python/py-cmd.c: Do not include py-ref.h.
13613 * python/py-continueevent.c: Do not include py-ref.h.
13614 * python/py-event.h: Do not include py-ref.h.
13615 * python/py-evtregistry.c: Do not include py-ref.h.
13616 * python/py-finishbreakpoint.c: Do not include py-ref.h.
13617 * python/py-frame.c: Do not include py-ref.h.
13618 * python/py-framefilter.c: Do not include py-ref.h.
13619 * python/py-function.c: Do not include py-ref.h.
13620 * python/py-infevents.c: Do not include py-ref.h.
13621 * python/py-linetable.c: Do not include py-ref.h.
13622 * python/py-objfile.c: Do not include py-ref.h.
13623 * python/py-param.c: Do not include py-ref.h.
13624 * python/py-prettyprint.c: Do not include py-ref.h.
13625 * python/py-progspace.c: Do not include py-ref.h.
13626 * python/py-symbol.c: Do not include py-ref.h.
13627 * python/py-symtab.c: Do not include py-ref.h.
13628 * python/py-type.c: Do not include py-ref.h.
13629 * python/py-unwind.c: Do not include py-ref.h.
13630 * python/py-utils.c: Do not include py-ref.h.
13631 * python/py-value.c: Do not include py-ref.h.
13632 * python/py-varobj.c: Do not include py-ref.h.
13633 * python/py-xmethods.c: Do not include py-ref.h.
13634 * python/python.c: Do not include py-ref.h.
13635 * varobj.c: Do not include py-ref.h.
13636
13637 2019-01-22 Tom Tromey <tom@tromey.com>
13638
13639 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
13640 keyword for bcache.
13641
13642 2019-01-22 Tom Tromey <tom@tromey.com>
13643
13644 * compile/compile-cplus-types.c: Remove a comment by #include.
13645
13646 2019-01-22 Tom Tromey <tom@tromey.com>
13647
13648 * compile/gcc-c-plugin.h: Include compile-internal.h.
13649
13650 2019-01-22 Tom Tromey <tom@tromey.com>
13651
13652 * stabsread.c (EXTERN): Do not define.
13653 (symnum, next_symbol_text_func, processing_gcc_compilation)
13654 (within_function, global_sym_chain, global_stabs)
13655 (previous_stab_code, this_object_header_files)
13656 (n_this_object_header_files)
13657 (n_allocated_this_object_header_files): Define.
13658 * stabsread.h (EXTERN): Never define. Use "extern".
13659
13660 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13661
13662 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
13663 history_value.
13664
13665 2019-01-21 Tom Tromey <tom@tromey.com>
13666
13667 * ui-out.c: Fix includes.
13668 * tui/tui-source.c: Fix includes.
13669 * target.c: Fix includes.
13670 * remote.c: Fix includes.
13671 * regcache.c: Fix includes.
13672 * python/py-block.c: Fix includes.
13673 * printcmd.c: Fix includes.
13674 * or1k-tdep.c: Fix includes.
13675 * mi/mi-main.c: Fix includes.
13676 * m32r-tdep.c: Fix includes.
13677 * csky-tdep.c: Fix includes.
13678 * compile/compile-cplus-types.c: Fix includes.
13679 * cli/cli-interp.c: Fix includes.
13680
13681 2019-01-21 Alan Hayward <alan.hayward@arm.com>
13682
13683 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
13684 for padding.
13685
13686 2019-01-16 Tom Tromey <tom@tromey.com>
13687
13688 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
13689 earlier.
13690 (struct objfile) <msymbols_range>: Move from top level.
13691 <msymbols>: New method.
13692 (class objfile_msymbols): Remove.
13693 * symtab.c (default_collect_symbol_completion_matches_break_on):
13694 Update.
13695 * symmisc.c (dump_msymbols): Update.
13696 * stabsread.c (scan_file_globals): Update.
13697 * objc-lang.c (info_selectors_command, info_classes_command)
13698 (find_methods): Update.
13699 * minsyms.c (find_solib_trampoline_target): Update.
13700 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
13701 * coffread.c (coff_symfile_read): Update.
13702 * ada-lang.c (ada_lookup_simple_minsym)
13703 (ada_collect_symbol_completion_matches): Update.
13704
13705 2019-01-16 Tom Tromey <tom@tromey.com>
13706
13707 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
13708 type. Remove no-argument constructor.
13709 <iterator::operator++>: Simplify.
13710 <begin>: Update.
13711 <end>: Use minimal_symbol_count.
13712
13713 2019-01-16 Tom Tromey <tom@tromey.com>
13714
13715 * objfiles.h (struct objfile) <psymtabs>: New method.
13716 (class objfile_psymtabs): Remove.
13717 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
13718 typedef.
13719 <range>: New method.
13720 (require_partial_symbols): Change return type.
13721 * psymtab.c (require_partial_symbols)
13722 (psym_expand_symtabs_matching): Update.
13723 * mdebugread.c (parse_partial_symbols): Update.
13724 * dbxread.c (dbx_end_psymtab): Update.
13725
13726 2019-01-15 Tom Tromey <tom@tromey.com>
13727
13728 * symtab.c (lookup_objfile_from_block)
13729 (lookup_symbol_in_objfile_symtabs)
13730 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
13731 (find_line_symtab, info_sources_command)
13732 (default_collect_symbol_completion_matches_break_on)
13733 (make_source_files_completion_list): Update.
13734 * symmisc.c (print_objfile_statistics, dump_objfile)
13735 (maintenance_print_symbols, maintenance_info_symtabs)
13736 (maintenance_check_symtabs, maintenance_info_line_tables):
13737 Update.
13738 * source.c (select_source_symtab)
13739 (forget_cached_source_info_for_objfile): Update.
13740 * objfiles.h (class objfile_compunits): Remove.
13741 (struct objfile) <compunits_range>: New typedef.
13742 (compunits): New method.
13743 * objfiles.c (objfile_relocate1): Update.
13744 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
13745 * maint.c (count_symtabs_and_blocks): Update.
13746 * linespec.c (iterate_over_all_matching_symtabs): Update.
13747 * cp-support.c (add_symbol_overload_list_qualified): Update.
13748 * coffread.c (coff_symtab_read): Update.
13749 * ada-lang.c (add_nonlocal_symbols)
13750 (ada_collect_symbol_completion_matches)
13751 (ada_add_global_exceptions): Update.
13752
13753 2019-01-15 Tom Tromey <tom@tromey.com>
13754
13755 * progspace.h (program_space) <objfiles_safe_range>: New
13756 typedef.
13757 <objfiles_safe>: New method.
13758 * objfiles.h (class all_objfiles_safe): Remove.
13759 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
13760 * jit.c (jit_inferior_exit_hook): Update.
13761
13762 2019-01-17 Tom Tromey <tom@tromey.com>
13763
13764 * progspace.h (program_space) <objfiles_range>: New typedef.
13765 <objfiles>: New method.
13766 <objfiles_head>: Rename from objfiles.
13767 (object_files): Update.
13768 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
13769 * guile/scm-pretty-print.c
13770 (ppscm_find_pretty_printer_from_objfiles): Update.
13771 * guile/scm-objfile.c (gdbscm_objfiles): Update.
13772 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
13773 Update.
13774 * python/py-progspace.c (pspy_get_objfiles): Update.
13775 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
13776 Update.
13777 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
13778 (objfpy_lookup_objfile_by_build_id): Update.
13779 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
13780 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
13781 Update.
13782 * symtab.c (iterate_over_symtabs, matching_obj_sections)
13783 (expand_symtab_containing_pc, lookup_objfile_from_block)
13784 (lookup_static_symbol, basic_lookup_transparent_type)
13785 (find_pc_sect_compunit_symtab, find_symbol_at_address)
13786 (find_line_symtab, info_sources_command)
13787 (default_collect_symbol_completion_matches_break_on)
13788 (make_source_files_completion_list, find_main_name): Update.
13789 * symmisc.c (print_symbol_bcache_statistics)
13790 (print_objfile_statistics, maintenance_print_symbols)
13791 (maintenance_print_msymbols, maintenance_print_objfiles)
13792 (maintenance_info_symtabs, maintenance_check_symtabs)
13793 (maintenance_expand_symtabs, maintenance_info_line_tables):
13794 Update.
13795 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
13796 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
13797 (map_overlay_command, unmap_overlay_command)
13798 (simple_overlay_update, expand_symtabs_matching)
13799 (map_symbol_filenames): Update.
13800 * symfile-debug.c (set_debug_symfile): Update.
13801 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
13802 Update.
13803 * source.c (select_source_symtab, forget_cached_source_info):
13804 Update.
13805 * solib.c (solib_read_symbols): Update.
13806 * solib-spu.c (append_ocl_sos): Update.
13807 * psymtab.c (maintenance_print_psymbols)
13808 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
13809 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
13810 * printcmd.c (info_symbol_command): Update.
13811 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
13812 Update.
13813 * objfiles.h (class all_objfiles): Remove.
13814 * objfiles.c (have_partial_symbols, have_full_symbols)
13815 (have_minimal_symbols, qsort_cmp, update_section_map)
13816 (shared_objfile_contains_address_p)
13817 (default_iterate_over_objfiles_in_search_order): Update.
13818 * objc-lang.c (info_selectors_command, info_classes_command)
13819 (find_methods): Update.
13820 * minsyms.c (find_solib_trampoline_target): Update.
13821 * maint.c (maintenance_info_sections)
13822 (maintenance_translate_address, count_symtabs_and_blocks):
13823 Update.
13824 * main.c (captured_main_1): Update.
13825 * linux-thread-db.c (try_thread_db_load_from_pdir)
13826 (has_libpthread): Update.
13827 * linespec.c (iterate_over_all_matching_symtabs)
13828 (search_minsyms_for_name): Update.
13829 * jit.c (jit_find_objf_with_entry_addr): Update.
13830 * hppa-tdep.c (find_unwind_entry)
13831 (hppa_lookup_stub_minimal_symbol): Update.
13832 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
13833 Update.
13834 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
13835 (elf_gnu_ifunc_resolve_by_got): Update.
13836 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
13837 * dwarf-index-write.c (save_gdb_index_command): Update.
13838 * cp-support.c (add_symbol_overload_list_qualified): Update.
13839 * breakpoint.c (create_overlay_event_breakpoint)
13840 (create_longjmp_master_breakpoint)
13841 (create_std_terminate_master_breakpoint)
13842 (create_exception_master_breakpoint): Update.
13843 * blockframe.c (find_pc_partial_function): Update.
13844 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
13845 (ada_collect_symbol_completion_matches)
13846 (ada_add_global_exceptions): Update.
13847
13848 2019-01-17 Tom Tromey <tom@tromey.com>
13849
13850 * solib-target.c (lm_info_target_p): Remove typedef. Don't
13851 declare VEC.
13852 (solib_target_parse_libraries): Change return type.
13853 (library_list_start_segment, library_list_start_section)
13854 (library_list_end_library, library_list_start_library); Update.
13855 (solib_target_free_library_list): Remove.
13856 (solib_target_parse_libraries): Remove cleanup. Change return
13857 type.
13858 (solib_target_current_sos): Update.
13859
13860 2019-01-17 Tom Tromey <tromey@bapiya>
13861
13862 * valprint.c: Replace "the the" with "the".
13863 * symtab.c: Replace "the the" with "the".
13864 * solib.c: Replace "the the" with "the".
13865 * solib-dsbt.c: Replace "the the" with "the".
13866 * linespec.c: Replace "the the" with "the".
13867 * dwarf2loc.h: Replace "the the" with "the".
13868 * amd64-windows-tdep.c: Replace "the the" with "the".
13869 * aarch64-tdep.c: Replace "the the" with "the".
13870
13871 2019-01-16 Keith Seitz <keiths@redhat.com>
13872
13873 PR gdb/23773
13874 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
13875 <builder>: Rename to ..
13876 <m_builder>: ... this and make private.
13877 (dwarf2_cu::get_builder): New method. Change all users of
13878 `builder' to use this method.
13879 (dwarf2_start_symtab): Move to ...
13880 (dwarf2_cu::start_symtab): ... here. Update all callers
13881 (setup_type_unit_groups): Move to ...
13882 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
13883 callers.
13884 (dwarf2_cu::reset_builder): New method.
13885 (process_full_compunit, process_full_type_unit): Use
13886 dwarf2_cu::reset_builder.
13887 (follow_die_offset): Record the ancestor CU if it is different
13888 from the followed DIE's CU.
13889 (follow_die_sig_1): Likewise.
13890
13891 2019-01-15 Tom Tromey <tom@tromey.com>
13892
13893 * remote.c (class remote_state) <buf>: Now a char_vector.
13894 <buf_size>: Remove.
13895 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
13896 parameter.
13897 (remote_target::getpkt_or_notif_sane_1)
13898 (remote_target::getpkt_sane)
13899 (remote_target::getpkt_or_notif_sane): Likewise.
13900 (class remote_target) <putpkt>: New overload.
13901 (remote_target::read_frame): Change type of "buf_p". Remove
13902 sizeof_p parameter.
13903 (packet_ok): New overload.
13904 (packet_check_result): New overload.
13905 Update all uses.
13906
13907 2019-01-14 Tom Tromey <tom@tromey.com>
13908
13909 * remote-notif.c (handle_notification, remote_notif_ack)
13910 (remote_notif_parse): Make "buf" const.
13911 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
13912 const.
13913 (remote_notif_parse, remote_notif_ack, handle_notification):
13914 Likewise.
13915 * remote.c (remote_notif_stop_parse): Make "buf" const.
13916 (remote_target::remote_parse_stop_reply): Make "buf" const.
13917 (remote_notif_stop_ack): Make "buf" const.
13918
13919 2019-01-14 Tom Tromey <tom@tromey.com>
13920
13921 * remote.c (remote_console_output): Make parameter const.
13922
13923 2019-01-14 Tom Tromey <tom@tromey.com>
13924
13925 * target-debug.h (target_debug_print_signals): Constify.
13926 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
13927 * procfs.c (procfs_target::pass_signals): Update.
13928 * linux-nat.c (linux_nat_target::pass_signals): Update.
13929 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
13930 * target-delegates.c: Rebuild.
13931 * remote.c (remote_target::program_signals): Update.
13932 (remote_target::pass_signals): Update.
13933 * target.c (target_pass_signals): Constify argument.
13934 (target_program_signals): Likewise.
13935 * target.h (struct target_ops) <pass_signals, program_signals>:
13936 Constify argument.
13937 (target_pass_signals, target_program_signals): Constify argument.
13938
13939 2019-01-14 Tom Tromey <tom@tromey.com>
13940
13941 PR tui/28819:
13942 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
13943
13944 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
13945
13946 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
13947 field.
13948 * rs6000-tdep.c: Include reggroups.h.
13949 (IS_V_ALIAS_PSEUDOREG): Define.
13950 (rs6000_register_name): Return names for the "vX" aliases.
13951 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
13952 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
13953 aliases. Call default_register_reggroup_p for all other
13954 pseudo-registers.
13955 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
13956 New functions.
13957 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
13958 Handle "vX" aliases.
13959 (v_alias_pseudo_register_collect): New function.
13960 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
13961 (rs6000_gdbarch_init): Initialize "vX" aliases as
13962 pseudo-registers. Restore registration of
13963 rs6000_pseudo_register_reggroup_p with
13964 set_tdesc_pseudo_register_reggroup_p.
13965
13966 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
13967
13968 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
13969 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
13970 set_gdbarch_num_pseudo_regs.
13971
13972 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13973
13974 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
13975 Remove arg prefixname, add do_set and do_show.
13976 Add member functions set_list and show_list.
13977 * cli/cli-style.c (class cli_style_option): Update accordingly.
13978 (style_set_list): Move to file scope.
13979 (style_show_list): Likewise.
13980 (set_style): Call help_list.
13981 (show_style): Call cmd_show_list.
13982 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
13983 Update to use the new macro.
13984
13985 2019-10-12 Joel Brobecker <brobecker@adacore.com>
13986
13987 * ada-lang.c (_initialize_ada_language): Expand the help text
13988 for the "catch exception" command.
13989
13990 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13991
13992 * symtab.c (matching_obj_sections): Initialize obj,
13993 declare it closer to its usage.
13994
13995 2019-01-10 Tom Tromey <tom@tromey.com>
13996
13997 * thread-iter.h (inf_threads_iterator): Use next_iterator.
13998 (basic_inf_threads_range): Remove.
13999 (inf_threads_range, inf_non_exited_threads_range)
14000 (safe_inf_threads_range): Use next_adapter.
14001
14002 2019-01-10 Keith Seitz <keiths@redhat.com>
14003
14004 PR gdb/23712
14005 PR symtab/23010
14006 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
14007 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
14008
14009 2019-01-10 Keith Seitz <keiths@redhat.com>
14010
14011 PR gdb/23712
14012 PR symtab/23010
14013 * dictionary.c (pending_to_vector): Remove.
14014 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
14015 Remove _1 suffix, replacing functions of the same name. Update
14016 all callers.
14017 (dict_create_hashed, dict_create_hashed_expandable)
14018 (dict_create_linear, dict_create_linear_expandable, dict_free)
14019 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
14020 Make functions static.
14021
14022 2019-01-10 Keith Seitz <keiths@redhat.com>
14023
14024 PR gdb/23712
14025 PR symtab/23010
14026 * dictionary.h (struct dictionary): Replace declaration with
14027 multidictionary.
14028 (dict_create_hashed, dict_create_hashed_expandable)
14029 (dict_create_linear, dict_create_linear_expandable)
14030 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
14031 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
14032 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
14033 taking multidictionary argument.
14034 [ALL_DICT_SYMBOLS]: Update for multidictionary.
14035 * block.h (struct block) <dict>: Change to multidictionary
14036 and rename `multidict'.
14037 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
14038 symmisc.c: Update all dictionary references to multidictionary.
14039
14040 2019-01-10 Keith Seitz <keiths@redhat.com>
14041
14042 PR gdb/23712
14043 PR symtab/23010
14044 * dictionary.c: Include unordered_map.
14045 (pending_to_vector): New function.
14046 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
14047 Rewrite the non-"_1" functions to take vector instead
14048 of linked list.
14049 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
14050 "new" _1 versions of the same name.
14051 (multidictionary): Define.
14052 (std::hash<enum language): New definition.
14053 (collate_pending_symbols_by_language, mdict_create_hashed)
14054 (mdict_create_hashed_expandable, mdict_create_linear)
14055 (mdict_create_linear_expandable, mdict_free)
14056 (find_language_dictionary, create_new_language_dictionary)
14057 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
14058 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
14059 (mdict_size, mdict_empty): New functions.
14060 * dictionary.h (mdict_iterator): Define.
14061
14062 2019-01-10 Pedro Alves <palves@redhat.com>
14063
14064 * breakpoint.c (read_uploaded_action)
14065 (create_tracepoint_from_upload): Adjust to use
14066 gdb::unique_xmalloc_ptr.
14067 * ctf.c (ctf_write_uploaded_tp):
14068 (SET_ARRAY_FIELD): Use emplace_back.
14069 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
14070 * tracefile-tfile.c (tfile_write_uploaded_tp):
14071 * tracepoint.c (parse_tracepoint_definition): Adjust to use
14072 gdb::unique_xmalloc_ptr.
14073 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
14074 at_string, cond_string, cmd_strings>: Replace char pointers
14075 with gdb::unique_xmalloc_ptr.
14076
14077 2019-01-10 Pedro Alves <palves@redhat.com>
14078
14079 * solib-target.c (library_list_start_library): Don't xstrdup name.
14080
14081 2019-01-10 Pedro Alves <palves@redhat.com>
14082
14083 * mdebugread.c (parse_partial_symbols): Use
14084 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
14085
14086 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
14087
14088 * linux-fork.c (scoped_switch_fork_info)
14089 <~scoped_switch_fork_info>: Fix incorrect variable name.
14090
14091 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
14092
14093 * linux-fork.c (scoped_switch_fork_info)
14094 <scoped_switch_fork_info>: Make explicit.
14095 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
14096
14097 2019-01-10 Tom Tromey <tom@tromey.com>
14098
14099 * objfiles.h (objfile::reset_psymtabs): Update.
14100 * objfiles.c (objfile::objfile): Update.
14101 * psymtab.h (psymtab_storage::obstack): Update.
14102 (psymtab_storage::m_obstack): Use gdb::optional.
14103 (class psymtab_storage): Update comment. Remove objfile
14104 parameter.
14105 * psymtab.c (psymtab_storage::psymtab_storage): Update.
14106
14107 2019-01-10 Tom Tromey <tom@tromey.com>
14108
14109 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
14110 <free_psymtabs>: Now private.
14111 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
14112 (allocate_psymtab): Use new method.
14113
14114 2019-01-10 Tom Tromey <tom@tromey.com>
14115
14116 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
14117 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
14118 * mdebugread.c (parse_partial_symbols): Use
14119 allocate_dependencies.
14120 * dwarf2read.c (dwarf2_create_include_psymtab): Use
14121 allocate_dependencies.
14122 (process_psymtab_comp_unit_reader)
14123 (build_type_psymtab_dependencies): Likewise.
14124 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
14125
14126 2019-01-10 Tom Tromey <tom@tromey.com>
14127
14128 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
14129 PSYMBOL_SET_LANGUAGE.
14130 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
14131
14132 2019-01-10 Tom Tromey <tom@tromey.com>
14133
14134 * psymtab.h (psymtab_storage::obstack): New method.
14135 <m_obstack>: Rename from obstack; now private.
14136 * psymtab.c (psymtab_storage): Update.
14137 * dwarf2read.c (create_addrmap_from_index)
14138 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
14139 Update.
14140
14141 2019-01-10 Tom Tromey <tom@tromey.com>
14142
14143 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
14144 * objfiles.h (objfile::reset_psymtabs): New method.
14145
14146 2019-01-10 Tom Tromey <tom@tromey.com>
14147
14148 * symmisc.c (print_symbol_bcache_statistics): Update.
14149 (print_objfile_statistics): Update.
14150 * symfile.c (reread_symbols): Update.
14151 * psymtab.h (class psymtab_storage): New.
14152 * psymtab.c (psymtab_storage): New constructor.
14153 (~psymtab_storage): New destructor.
14154 (require_partial_symbols): Update.
14155 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
14156 (find_pc_sect_psymtab, find_pc_sect_psymbol)
14157 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
14158 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
14159 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
14160 (start_psymtab_common, end_psymtab_common)
14161 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
14162 (allocate_psymtab): Update.
14163 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
14164 Update.
14165 (dump_psymtab_addrmap, maintenance_print_psymbols)
14166 (maintenance_check_psymtabs): Update.
14167 (class objfile_psymtabs): Move to objfiles.h.
14168 * psympriv.h (discard_psymtab): Now inline.
14169 (psymtab_discarder::psymtab_discarder): Update.
14170 (psymtab_discarder::~psymtab_discarder): Update.
14171 (ALL_OBJFILE_PSYMTABS): Rewrite.
14172 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
14173 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
14174 Remove fields.
14175 <partial_symtabs>: New field.
14176 (class objfile_psymtabs): Move from psymtab.h. Update.
14177 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
14178 psymbol_cache.
14179 (objfile::~objfile): Don't destroy psymbol_cache.
14180 * mdebugread.c (parse_partial_symbols): Update.
14181 * dwarf2read.c (create_addrmap_from_index)
14182 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
14183 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
14184 (add_partial_subprogram, dwarf2_ranges_read): Update.
14185 * dwarf-index-write.c (write_address_map)
14186 (write_one_signatured_type, recursively_write_psymbols)
14187 (class debug_names, class debug_names, write_psymtabs_to_index):
14188 Update.
14189
14190 2019-01-10 Tom Tromey <tom@tromey.com>
14191
14192 * symtab.h (SYMBOL_SET_NAMES): Update.
14193 (symbol_set_names): Update.
14194 (MSYMBOL_SET_NAMES): Update.
14195 * symtab.c (symbol_set_names): Change argument to be an
14196 objfile_per_bfd_storage.
14197 * psymtab.c (add_psymbol_to_bcache): Update.
14198 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
14199
14200 2019-01-10 Tom Tromey <tom@tromey.com>
14201
14202 * symtab.c (create_demangled_names_hash): Change argument to be an
14203 objfile_per_bfd_storage.
14204 (symbol_set_names): Update.
14205
14206 2019-01-10 Tom Tromey <tom@tromey.com>
14207
14208 * xcoffread.c (xcoff_initial_scan): Unconditionally call
14209 init_psymbol_list.
14210 * psymtab.c (init_psymbol_list): Do nothing if already called.
14211 * psympriv.h (init_psymbol_list): Add comment.
14212 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
14213 init_psymbol_list.
14214 * dbxread.c (dbx_symfile_read): Unconditionally call
14215 init_psymbol_list.
14216
14217 2019-01-10 Tom Tromey <tom@tromey.com>
14218
14219 * xcoffread.c (scan_xcoff_symtab): Update.
14220 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
14221 "where".
14222 * mdebugread.c (parse_partial_symbols)
14223 (handle_psymbol_enumerators): Update.
14224 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
14225 * dbxread.c (read_dbx_symtab): Update.
14226 * psympriv.h (psymbol_placement): New enum.
14227 (add_psymbol_to_list): Update.
14228
14229 2019-01-10 Tom Tromey <tom@tromey.com>
14230
14231 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
14232 static_psymbols parameters.
14233 (scan_xcoff_symtab): Update.
14234 * psymtab.c (start_psymtab_common): Remove global_psymbols and
14235 static_psymbols parameters.
14236 * psympriv.h (start_psymtab_common): Update.
14237 * mdebugread.c (parse_partial_symbols): Update.
14238 * dwarf2read.c (create_partial_symtab): Update.
14239 * dbxread.c (read_dbx_symtab): Update.
14240 (start_psymtab): Remove global_psymbols and static_psymbols
14241 parameters.
14242
14243 2019-01-10 Tom Tromey <tom@tromey.com>
14244
14245 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
14246 * psymtab.c (allocate_psymtab): Add comment.
14247 * psympriv.h (allocate_psymtab): Add comment.
14248 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
14249 initializations.
14250 * dbxread.c (dbx_end_psymtab): Remove some initializations.
14251
14252 2019-01-10 Tom Tromey <tom@tromey.com>
14253
14254 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
14255 Don't declare.
14256 * mipsread.c: Include mdebugread.h.
14257 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
14258 Declare.
14259 * elfread.c: Include mdebugread.h.
14260
14261 2019-01-09 Tom Tromey <tom@tromey.com>
14262
14263 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
14264 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
14265 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
14266 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
14267 (psym_lookup_symbol, psym_find_last_source_symtab)
14268 (psym_forget_cached_source_info, psym_print_stats)
14269 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
14270 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
14271 (psym_map_matching_symbols, psym_expand_symtabs_matching)
14272 (psym_find_compunit_symtab_by_address)
14273 (maintenance_print_psymbols, maintenance_info_psymtabs)
14274 (maintenance_check_psymtabs): Use ranged for.
14275 * psymtab.h (class objfile_psymtabs): New.
14276 (require_partial_symbols): Return objfile_psymtabs.
14277 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
14278
14279 2019-01-09 Tom Tromey <tom@tromey.com>
14280
14281 * symfile.c (overlay_invalidate_all, find_pc_overlay)
14282 (find_pc_mapped_section, list_overlays_command)
14283 (map_overlay_command, unmap_overlay_command)
14284 (simple_overlay_update): Use all_objfiles.
14285 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
14286 * printcmd.c (info_symbol_command): Use all_objfiles.
14287 * objfiles.h (ALL_OBJSECTIONS): Remove.
14288 * maint.c (maintenance_translate_address): Use all_objfiles.
14289 * gcore.c (gcore_create_callback): Use all_objfiles.
14290 (objfile_find_memory_regions): Likewise.
14291
14292 2019-01-09 Tom Tromey <tom@tromey.com>
14293
14294 * symtab.c (find_line_symtab, info_sources_command)
14295 (make_source_files_completion_list): Use objfile_compunits.
14296 * source.c (select_source_symtab): Use objfile_compunits.
14297 * objfiles.h (struct objfile): Update comment.
14298 (ALL_OBJFILES): Remove.
14299 (ALL_FILETABS): Remove.
14300 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
14301 objfile_compunits.
14302
14303 2019-01-09 Tom Tromey <tom@tromey.com>
14304
14305 * symmisc.c (print_objfile_statistics, dump_objfile)
14306 (maintenance_print_symbols): Use compunit_filetabs.
14307 * source.c (forget_cached_source_info_for_objfile): Use
14308 compunit_filetabs.
14309 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
14310 (ALL_FILETABS): Use compunit_filetabs.
14311 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
14312 * coffread.c (coff_symtab_read): Use compunit_filetabs.
14313
14314 2019-01-09 Tom Tromey <tom@tromey.com>
14315
14316 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
14317 (compunit_filetabs): New.
14318 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
14319 compunit_filetabs.
14320 (info_sources_command, make_source_files_completion_list): Remove
14321 declaration.
14322 * symmisc.c (print_objfile_statistics, dump_objfile)
14323 (maintenance_print_symbols): Remove declaration.
14324 (maintenance_info_symtabs): Use compunit_filetabs.
14325 (maintenance_info_line_tables): Likewise.
14326 * source.c (select_source_symtab): Change local variable name.
14327 (forget_cached_source_info_for_objfile): Remove declaration.
14328 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
14329 * objfiles.c (objfile_relocate1): Remove declaration.
14330 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
14331 declaration.
14332 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
14333 * coffread.c (coff_symtab_read): Remove declaration.
14334 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
14335 compunit_filetabs.
14336
14337 2019-01-09 Tom Tromey <tom@tromey.com>
14338
14339 * symtab.c (lookup_objfile_from_block)
14340 (find_pc_sect_compunit_symtab, search_symbols)
14341 (default_collect_symbol_completion_matches_break_on): Use
14342 objfile_compunits.
14343 * objfiles.h (ALL_COMPUNITS): Remove.
14344 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
14345 * cp-support.c (add_symbol_overload_list_qualified): Use
14346 objfile_compunits.
14347 * ada-lang.c (ada_collect_symbol_completion_matches)
14348 (ada_add_global_exceptions): Use objfile_compunits.
14349
14350 2019-01-09 Tom Tromey <tom@tromey.com>
14351
14352 * source.c (select_source_symtab)
14353 (forget_cached_source_info_for_objfile): Remove declaration.
14354 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
14355 declaration.
14356 * maint.c (count_symtabs_and_blocks): Remove declaration.
14357 * cp-support.c (add_symbol_overload_list_qualified): Remove
14358 declaration.
14359 * coffread.c (coff_symtab_read): Remove declaration.
14360 * symtab.c (lookup_symbol_in_objfile_symtabs)
14361 (basic_lookup_transparent_type_1): Use objfile_compunits.
14362 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
14363 (info_sources_command, search_symbols)
14364 (default_collect_symbol_completion_matches_break_on)
14365 (make_source_files_completion_list): Remove declaration.
14366 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
14367 (ada_collect_symbol_completion_matches)
14368 (ada_add_global_exceptions): Remove declaration.
14369 * linespec.c (iterate_over_all_matching_symtabs): Use
14370 objfile_compunits.
14371 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
14372 (class objfile_compunits): New.
14373 (ALL_COMPUNITS): Use objfile_compunits.
14374 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
14375 (maintenance_check_symtabs, maintenance_info_line_tables): Use
14376 objfile_compunits.
14377 * objfiles.c (objfile_relocate1): Use objfile_compunits.
14378
14379 2019-01-09 Tom Tromey <tom@tromey.com>
14380
14381 * symtab.c (search_symbols)
14382 (default_collect_symbol_completion_matches_break_on): Use
14383 objfile_msymbols.
14384 * ada-lang.c (ada_lookup_simple_minsym)
14385 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
14386 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
14387 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
14388 objfile_msymbols.
14389 * coffread.c (coff_symfile_read): Use objfile_msymbols.
14390 * symmisc.c (dump_msymbols): Use objfile_msymbols.
14391 * objc-lang.c (find_methods): Use objfile_msymbols.
14392 (info_selectors_command, info_classes_command): Likewise.
14393 * stabsread.c (scan_file_globals): Use objfile_msymbols.
14394 * objfiles.h (class objfile_msymbols): New.
14395 (ALL_OBJFILE_MSYMBOLS): Remove.
14396 (ALL_MSYMBOLS): Remove.
14397
14398 2019-01-09 Tom Tromey <tom@tromey.com>
14399
14400 * common/next-iterator.h (next_adapter): Add Iterator template
14401 parameter.
14402 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
14403 (class all_objfiles_safe): New.
14404 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
14405 * objfiles.c (put_objfile_before): Update comment.
14406 (add_separate_debug_objfile): Likewise.
14407 (free_all_objfiles): Use all_objfiles_safe.
14408 (objfile_purge_solibs): Likewise.
14409
14410 2019-01-09 Tom Tromey <tom@tromey.com>
14411
14412 * symtab.c (iterate_over_symtabs, matching_obj_sections)
14413 (expand_symtab_containing_pc, lookup_static_symbol)
14414 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
14415 (find_symbol_at_address, find_line_symtab, find_main_name): Use
14416 all_objfiles.
14417 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
14418 * breakpoint.c (create_overlay_event_breakpoint)
14419 (create_longjmp_master_breakpoint)
14420 (create_std_terminate_master_breakpoint)
14421 (create_exception_master_breakpoint): Use all_objfiles.
14422 * linux-thread-db.c (try_thread_db_load_from_pdir)
14423 (has_libpthread): Use all_objfiles.
14424 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
14425 * linespec.c (iterate_over_all_matching_symtabs)
14426 (search_minsyms_for_name): Use all_objfiles.
14427 * maint.c (maintenance_info_sections): Use all_objfiles.
14428 * main.c (captured_main_1): Use all_objfiles.
14429 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
14430 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
14431 * guile/scm-pretty-print.c
14432 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
14433 * solib-spu.c (append_ocl_sos): Use all_objfiles.
14434 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
14435 (maintenance_print_msymbols): Use all_objfiles.
14436 * source.c (select_source_symtab): Use all_objfiles.
14437 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
14438 * symfile.c (remove_symbol_file_command)
14439 (expand_symtabs_matching, map_symbol_filenames): Use
14440 all_objfiles.
14441 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
14442 all_objfiles.
14443 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
14444 * objc-lang.c (find_methods): Use all_objfiles.
14445 * objfiles.c (have_partial_symbols, have_full_symbols)
14446 (have_minimal_symbols, qsort_cmp)
14447 (default_iterate_over_objfiles_in_search_order): Use
14448 all_objfiles.
14449 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
14450 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
14451 (maintenance_check_psymtabs): Use all_objfiles.
14452 (ALL_PSYMTABS): Remove.
14453 * compile/compile-object-run.c (do_module_cleanup): Use
14454 all_objfiles.
14455 * blockframe.c (find_pc_partial_function): Use all_objfiles.
14456 * cp-support.c (add_symbol_overload_list_qualified): Use
14457 all_objfiles.
14458 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
14459 Use all_objfiles.
14460 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
14461 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
14462 all_objfiles.
14463 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
14464 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
14465 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
14466 Uses all_objfiles.
14467 * solib.c (solib_read_symbols): Use all_objfiles
14468
14469 2019-01-09 Tom Tromey <tom@tromey.com>
14470
14471 * probe.c (parse_probes_in_pspace): Use all_objfiles.
14472 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
14473 all_objfiles.
14474 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
14475 * symmisc.c (print_symbol_bcache_statistics)
14476 (print_objfile_statistics, maintenance_print_objfiles)
14477 (maintenance_info_symtabs, maintenance_check_symtabs)
14478 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
14479 all_objfiles.
14480 * source.c (forget_cached_source_info): Use all_objfiles.
14481 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
14482 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
14483 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
14484 * objfiles.c (update_section_map): Use all_objfiles.
14485 (shared_objfile_contains_address_p): Likewise.
14486 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
14487 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
14488
14489 2019-01-09 Tom Tromey <tom@tromey.com>
14490
14491 * common/next-iterator.h: New file.
14492 * objfiles.h (class all_objfiles): New.
14493 (struct objfile_iterator): New.
14494
14495 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14496
14497 * NEWS: Move the description of the changed "frame", "select-frame",
14498 and "info frame" commands to the Changed commands section.
14499
14500 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
14501
14502 * gdbtypes.c (check_stub_method_group): Remove handling of old
14503 mangling schemes.
14504 * linespec.c (find_methods): Likewise.
14505 * stabsread.c (read_member_functions): Likewise.
14506 * valops.c (search_struct_method): Likewise.
14507 (value_struct_elt_for_reference): Likewise.
14508 * NEWS: Mention this change.
14509
14510 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
14511
14512 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
14513 print_source_lines.
14514 * source.c (print_source_lines_base): Update line number check.
14515 (print_source_lines): New function.
14516 (source_lines_range::source_lines_range): New function.
14517 * source.h (class source_lines_range): New class.
14518 (print_source_lines): New declaration.
14519
14520 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14521
14522 * linespec.c (linespec_state_destructor): Free self->canonical_names.
14523
14524 2019-01-08 Tom Tromey <tom@tromey.com>
14525 Simon Marchi <simon.marchi@ericsson.com>
14526
14527 PR gdb/24060
14528 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
14529 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
14530 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
14531 * f-exp.y (DOLLAR_VARIABLE): Likewise.
14532 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
14533 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
14534
14535 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
14536
14537 * source.c (select_source_symtab): Move header comment to
14538 declaration in source.h.
14539 (forget_cached_source_info_for_objfile): Likewise.
14540 (forget_cached_source_info): Likewise.
14541 (identify_source_line): Likewise.
14542 * source.h (identify_source_line): Move declaration from symtab.h
14543 and add comment from source.c
14544 (print_source_lines): Likewise.
14545 (forget_cached_source_info_for_objfile): Likewise.
14546 (forget_cached_source_info): Likewise.
14547 (select_source_symtab): Likewise.
14548 (enum print_source_lines_flag): Move definition from symtab.h.
14549 * symtab.h (identify_source_line): Move declaration to source.h.
14550 (print_source_lines): Likewise.
14551 (forget_cached_source_info_for_objfile): Likewise.
14552 (forget_cached_source_info): Likewise.
14553 (select_source_symtab): Likewise.
14554 (enum print_source_lines_flag): Move definition to source.h.
14555 * tui/tui-hooks.c: Add 'source.h' include.
14556
14557 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
14558
14559 * source.c (print_source_lines_base): Handle requests to print
14560 reverse line number sequences, and guard against empty lines
14561 string.
14562
14563 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
14564
14565 * source.c (print_source_lines_base): Fix skip of '\r' if next
14566 character is '\n'.
14567
14568 2019-01-06 Tom Tromey <tom@tromey.com>
14569
14570 * c-exp.y (struct c_parse_state) <macro_original_text,
14571 expansion_obstack>: New member.
14572 (macro_original_text, expansion_obstack): Remove globals.
14573 (scan_macro_expansion, scanning_macro_expansion)
14574 (finished_macro_expansion): Update.
14575 (scan_macro_cleanup): Remove.
14576 (yylex, c_parse): Update.
14577
14578 2019-01-06 Tom Tromey <tom@tromey.com>
14579
14580 * c-exp.y (struct c_parse_state) <strings>: New member.
14581 (operator_stoken): Update.
14582
14583 2019-01-06 Tom Tromey <tom@tromey.com>
14584
14585 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
14586 (union type_stack_elt) <typelist_val>: Now a pointer to
14587 std::vector.
14588 (type_stack_cleanup): Don't declare.
14589 (push_typelist): Update.
14590 * parse.c (pop_typelist): Return a std::vector.
14591 (push_typelist): Take a std::vector.
14592 (follow_types): Update. Do not free args.
14593 (type_stack_cleanup): Remove.
14594 * c-exp.y (struct c_parse_state): New.
14595 (cpstate): New global.
14596 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
14597 (nonempty_typelist): Update.
14598 (func_mod): Create a new vector.
14599 (c_parse): Create a c_parse_state.
14600 (check_parameter_typelist): Do not delete params.
14601 (function_method): Update. Do not delete type_list.
14602
14603 2019-01-06 Tom Tromey <tom@tromey.com>
14604
14605 PR gdb/28155:
14606 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
14607 check_typedef.
14608 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
14609 (print_return_value): Likewise.
14610
14611 2019-01-05 Tom Tromey <tom@tromey.com>
14612
14613 * contrib/cleanup_check.py: Remove.
14614 * contrib/gcc-with-excheck: Remove.
14615 * contrib/exsummary.py: Remove.
14616 * contrib/excheck.py: Remove.
14617
14618 2019-01-05 Joel Brobecker <brobecker@adacore.com>
14619
14620 * thread.c (delete_thread_1): Add gdb_assert that THR is not
14621 NULL. Initialize tpprev to NULL instead of assigning it
14622 to NULL on the next statement.
14623 * windows-nat.c (windows_delete_thread): Remove check for
14624 main_thread_id before printing thread exit notifications.
14625 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
14626 Remove thread ID check against main_thread_id.
14627 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
14628 windows_delete_thread.
14629 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
14630
14631 2019-01-04 Tom Tromey <tom@tromey.com>
14632
14633 * compile/compile.c (_initialize_compile): Use upper case for
14634 metasyntactic variables.
14635 * symmisc.c (_initialize_symmisc): Use upper case for
14636 metasyntactic variables.
14637 * psymtab.c (_initialize_psymtab): Use upper case for
14638 metasyntactic variables.
14639 * demangle.c (demangle_command): Use upper case for metasyntactic
14640 variables.
14641 (_initialize_demangler): Likewise.
14642 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
14643 variables.
14644
14645 2019-01-03 Tom Tromey <tom@tromey.com>
14646
14647 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
14648
14649 2019-01-03 Tom Tromey <tom@tromey.com>
14650
14651 * python/py-symtab.c (salpy_str): Update.
14652 (struct salpy_sal_object) <symtab>: Now a PyObject.
14653 (salpy_dealloc): Update.
14654 (del_objfile_sal): Use gdbpy_ref.
14655
14656 2019-01-03 Tom Tromey <tom@tromey.com>
14657
14658 * python/py-type.c (convert_field): Use new_reference. Return
14659 gdbpy_ref.
14660 (make_fielditem): Return gdbpy_ref.
14661 (typy_fields): Update.
14662 (typy_getitem): Update.
14663 (field_name): Return gdbpy_ref. Use new_reference.
14664 (typy_iterator_iternext): Update.
14665
14666 2019-01-03 Tom Tromey <tom@tromey.com>
14667
14668 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
14669
14670 2019-01-03 Tom Tromey <tom@tromey.com>
14671
14672 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
14673 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
14674 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
14675 (pspy_set_frame_filters, pspy_set_frame_unwinders)
14676 (pspy_set_type_printers): Likewise.
14677 * python/py-function.c (fnpy_init): Use gdbpy_ref.
14678 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
14679 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
14680 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
14681 (objfpy_set_type_printers): Likewise.
14682
14683 2019-01-03 Tom Tromey <tom@tromey.com>
14684
14685 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
14686 (gdbpy_print_stack): Use gdbpy_err_fetch.
14687 * python/python-internal.h (class gdbpy_err_fetch): New class.
14688 (class gdbpy_enter) <m_error_type, m_error_value,
14689 m_error_traceback>: Remove.
14690 <m_error>: New member.
14691 (gdbpy_exception_to_string): Don't declare.
14692 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
14693 * python/py-value.c (convert_value_from_python): Use
14694 gdbpy_err_fetch.
14695 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
14696 gdbpy_exception_to_string.
14697 (gdbpy_handle_exception): Use gdbpy_err_fetch.
14698 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
14699 gdbpy_err_fetch.
14700
14701 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14702
14703 * linux-nat.c (delete_lwp_cleanup): Delete.
14704 (struct lwp_deleter): New struct.
14705 (lwp_info_up): New typedef.
14706 (linux_nat_target::follow_fork): Delete cleanup, and make use of
14707 lwp_info_up.
14708
14709 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14710
14711 * linux-fork.c (class scoped_switch_fork_info): New class.
14712 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
14713
14714 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14715
14716 * valops.c (find_overload_match): Remove use of null_cleanup, and
14717 calls to do_cleanups.
14718
14719 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14720
14721 * compile/compile-cplus-types.c
14722 (compile_cplus_instance::decl_name): Handle changes to
14723 cp_func_name.
14724 * cp-support.c (cp_func_name): Update header comment, update
14725 return type.
14726 * cp-support.h (cp_func_name): Update return type in declaration.
14727 * valops.c (find_overload_match): Move temp_func local to top
14728 level of function and change its type. Use temp_func to hold and
14729 delete temporary string obtained from cp_func_name.
14730
14731 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14732
14733 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
14734 gdb::char_vector, remove cleanup, and update uses of `msg`.
14735
14736 2019-01-03 Jim Wilson <jimw@sifive.com>
14737
14738 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
14739
14740 2019-01-02 Tom Tromey <tom@tromey.com>
14741
14742 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
14743 (tdesc_parse_xml): Remove cleanups.
14744 * target-descriptions.h (make_cleanup_free_target_description):
14745 Don't declare.
14746 (target_desc_deleter): New struct.
14747 (target_desc_up): New typedef.
14748 * target-descriptions.c (target_desc_deleter::operator()): Rename
14749 from free_target_description.
14750 (make_cleanup_free_target_description): Remove.
14751
14752 2019-01-02 Tom Tromey <tom@tromey.com>
14753
14754 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
14755 constructor, destructor.
14756 (linespec_parser): Remove typedef.
14757 (~linespec_parser): Rename from linespec_parser_delete.
14758 (linespec_lex_to_end, linespec_complete_label)
14759 (linespec_complete): Update.
14760 (decode_line_full): Remove cleanups.
14761 (decode_line_1): Update.
14762
14763 2019-01-02 Tom Tromey <tom@tromey.com>
14764
14765 * python/python-internal.h (inferior_to_inferior_object): Change
14766 return type.
14767 * python/py-exitedevent.c (create_exited_event_object): Update.
14768 * python/py-inferior.c (inferior_to_inferior_object): Return
14769 gdbpy_ref.
14770 (python_new_inferior, python_inferior_deleted)
14771 (thread_to_thread_object, delete_thread_object)
14772 (build_inferior_list, gdbpy_selected_inferior): Update.
14773 * python/py-infthread.c (create_thread_object): Update. Also fail
14774 if inferior_to_inferior_object fails.
14775
14776 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
14777
14778 * inferior.h (class inferior) <displaced_step_state>: New field.
14779 * infrun.h (struct displaced_step_state): Move here from
14780 infrun.c. Initialize fields, add constructor.
14781 <inf>: Remove field.
14782 <reset>: New method.
14783 * infrun.c (struct displaced_step_inferior_state): Move to
14784 infrun.h.
14785 (displaced_step_inferior_states): Remove.
14786 (get_displaced_stepping_state): Adust.
14787 (displaced_step_in_progress_any_inferior): Adjust.
14788 (displaced_step_in_progress_thread): Adjust.
14789 (displaced_step_in_progress): Adjust.
14790 (add_displaced_stepping_state): Remove.
14791 (get_displaced_step_closure_by_addr): Adjust.
14792 (remove_displaced_stepping_state): Remove.
14793 (infrun_inferior_exit): Call displaced_step_state.reset.
14794 (use_displaced_stepping): Don't check for NULL.
14795 (displaced_step_prepare_throw): Call
14796 get_displaced_stepping_state.
14797 (displaced_step_fixup): Don't check for NULL.
14798 (prepare_for_detach): Don't check for NULL.
14799
14800 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14801
14802 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
14803 in case of call that did not complete.
14804
14805 2019-01-02 Andrey Utkin <autkin@undo.io>
14806
14807 * symfile.c (find_separate_debug_file): Fix search of debug files for
14808 remote debuggee.
14809
14810 2019-01-02 Tom Tromey <tom@tromey.com>
14811
14812 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
14813 indentation.
14814 * python/py-frame.c (frapy_older): Remove cast.
14815 (frapy_newer): Likewise.
14816 * python/py-breakpoint.c (local_setattro): Remove cast.
14817 * python/py-arch.c (archpy_name): Remove local variable.
14818 * python/py-type.c (gdbpy_lookup_type): Remove cast.
14819
14820 2019-01-02 Joel Brobecker <brobecker@adacore.com>
14821
14822 * unittests/basic_string_view/element_access/char/empty.cc:
14823 Fix year range in copyright header.
14824
14825 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
14826
14827 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
14828 Delete.
14829 <operator==>: Update with for removed field.
14830 <hash>: Likewise.
14831 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
14832 <isa_features>: ...this.
14833 <abi_features>: New field.
14834 (riscv_isa_flen): Update comment.
14835 (riscv_abi_xlen): New declaration.
14836 (riscv_abi_flen): New declaration.
14837 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
14838 isa_features.
14839 (riscv_abi_xlen): New function.
14840 (riscv_isa_flen): Update to get answer from isa_features.
14841 (riscv_abi_flen): New function.
14842 (riscv_has_fp_abi): Update to get answer from abi_features.
14843 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
14844 xlen and flen.
14845 (riscv_call_info) <xlen, flen>: Update comment.
14846 (riscv_call_arg_struct): Remove invalid assertions
14847 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
14848 is removed.
14849 (riscv_gdbarch_init): Gather isa features and abi features
14850 separately, ensure both match on the gdbarch when reusing an old
14851 gdbarch. Relax an error check to allow 32-bit abi float to run on
14852 a target with 64-bit float hardware.
14853
14854 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14855
14856 * source.c (search_command_helper): Stop reverse search
14857 when line 1 has been searched.
14858
14859 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14860
14861 * record-full.c (record_full_base_target::close): Rewrite
14862 record_full_core_buf_list free logic.
14863
14864 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14865
14866 * break-catch-syscall.c (print_one_catch_syscall): xfree
14867 the last text.
14868
14869 2019-01-01 Joel Brobecker <brobecker@adacore.com>
14870
14871 * top.c (print_gdb_version): Update Copyright year in version
14872 message.
14873
14874 2019-01-01 Joel Brobecker <brobecker@adacore.com>
14875
14876 Update copyright year range in all GDB files.
14877
14878 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
14879
14880 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
14881
14882 For older changes see ChangeLog-2018.
14883 \f
14884 Local Variables:
14885 mode: change-log
14886 left-margin: 8
14887 fill-column: 74
14888 version-control: never
14889 coding: utf-8
14890 End:
14891