ca0c0c366dcb1ec78dc2f2e1ea69d1bd3720d28c
[binutils-gdb.git] / gdb / ChangeLog
1 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
2
3 * python/py-symbol.c (gdbpy_lookup_static_symbol): Lookup in
4 static block of current object file first. Also fix typo in
5 header comment.
6
7 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
8
9 * stack.c (set_last_displayed_sal): Delete.
10 (last_displayed_sal_valid): Delete.
11 (last_displayed_pspace): Delete.
12 (last_displayed_addr): Delete.
13 (last_displayed_symtab): Delete.
14 (last_displayed_line): Delete.
15 (class last_displayed_symtab_info_type): New.
16 (last_displayed_symtab_info): New static global variable.
17 (print_frame_info): Call methods on last_displayed_symtab_info.
18 (clear_last_displayed_sal): Update header comment, and make use of
19 last_displayed_symtab_info.
20 (last_displayed_sal_is_valid): Likewise.
21 (get_last_displayed_pspace): Likewise.
22 (get_last_displayed_addr): Likewise.
23 (get_last_displayed_symtab): Likewise.
24 (get_last_displayed_line): Likewise.
25 (get_last_displayed_sal): Likewise.
26 * stack.h (clear_last_displayed_sal): Update header comment.
27 (last_displayed_sal_is_valid): Likewise.
28 (get_last_displayed_pspace): Likewise.
29 (get_last_displayed_addr): Likewise.
30 (get_last_displayed_symtab): Likewise.
31 (get_last_displayed_line): Likewise.
32 (get_last_displayed_sal): Likewise.
33
34 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
35
36 * stack.c (frame_show_address): Convert return type to bool.
37 * stack.h (frame_show_address): Likewise, and update header
38 comment.
39
40 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
41
42 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new file to the list.
43 * unittests/vec-utils-selftests.c: New file.
44 * gdbsupport/gdb_vecs.h (unordered_remove): Avoid self move assign.
45
46 2019-11-10 Tom Tromey <tom@tromey.com>
47
48 * tui/tui-wingeneral.c (tui_unhighlight_win): Use can_box.
49 (tui_highlight_win): Likewise.
50 (tui_win_info::check_and_display_highlight_if_needed): Likewise.
51 * tui/tui-data.h (struct tui_win_info) <can_highlight>: Remove.
52 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
53 Don't set can_highlight.
54
55 2019-11-10 Tom Tromey <tom@tromey.com>
56
57 * cli/cli-style.h (class cli_style_option) <cli_style_option>:
58 Remove unused declaration.
59
60 2019-11-08 Tom Tromey <tromey@adacore.com>
61
62 * top.c (read_command_file): Update.
63 (command_line_input): Make return type const.
64 * python/py-gdb-readline.c: Update.
65 * linespec.c (decode_line_2): Update.
66 * defs.h (command_line_input): Make return type const.
67 * cli/cli-script.c (read_next_line): Make return type const.
68 * ada-lang.c (get_selections): Update.
69
70 2019-11-06 Christian Biesinger <cbiesinger@google.com>
71
72 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
73 * mi/mi-main.c (output_cores): Likewise.
74 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
75 (linux_xfer_osdata_modules): Likewise.
76 * remote.c (register_remote_support_xml): Likewise.
77 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
78 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
79
80 2019-11-06 Tom Tromey <tom@tromey.com>
81
82 * tui/tui-interp.c: Don't include readline.h.
83 * tui/tui-hooks.c: Don't include readline.h.
84 * symmisc.c: Include tilde.h, not readline.h.
85 * symfile.c: Include tilde.h, not readline.h.
86 * source.c: Include tilde.h, not readline.h.
87 * solib.c: Include tilde.h, not readline.h.
88 * psymtab.c: Include tilde.h, not readline.h.
89 * exec.c: Include tilde.h, not readline.h.
90 * corelow.c: Include tilde.h, not readline.h.
91 * cli/cli-dump.c: Include tilde.h, not readline.h.
92 * cli/cli-cmds.c: Don't include readline.h.
93
94 2019-11-05 Tom Tromey <tom@tromey.com>
95
96 * tui/tui-disasm.c (struct tui_asm_line) <addr_size>: New member.
97 (tui_disassemble): Set addr_size.
98 (tui_disasm_window::set_contents): Use addr_size.
99
100 2019-11-05 Tom Tromey <tom@tromey.com>
101
102 * rust-lang.c (rust_language_defn): Update.
103 * python/py-value.c (valpy_string): Call c_get_string.
104 * p-lang.c (pascal_language_defn): Update.
105 * opencl-lang.c (opencl_language_defn): Update.
106 * objc-lang.c (objc_language_defn): Update.
107 * m2-lang.c (m2_language_defn): Update.
108 * language.c (unknown_language_defn, auto_language_defn): Update.
109 (default_get_string): Remove.
110 * guile/scm-value.c (gdbscm_value_to_string): Use c_get_string.
111 * go-lang.c (go_language_defn): Update.
112 * f-lang.c (f_language_defn): Update.
113 * d-lang.c (d_language_defn): Update.
114 * c-lang.c (c_language_defn, cplus_language_defn)
115 (asm_language_defn, minimal_language_defn): Update.
116 * ada-lang.c (ada_language_defn): Update.
117 * language.h (struct language_defn) <la_get_string>: Remove.
118 (LA_GET_STRING): Remove.
119 (default_get_string): Don't declare.
120
121 2019-11-05 Tom Tromey <tom@tromey.com>
122
123 * tui/tui-source.h (struct tui_source_window): Inline
124 constructor. Remove destructor.
125 <style_changed, m_observable>: Move to superclass.
126 * tui/tui-winsource.h (tui_copy_source_line): Declare.
127 (struct tui_source_window_base): Move private members to end.
128 <style_changed, m_observable>: Move from tui_source_window.
129 * tui/tui-winsource.c (tui_copy_source_line): Move from
130 tui-source.c. Rename from copy_source_line. Add special handling
131 for negative line number.
132 (tui_source_window_base::style_changed): Move from
133 tui_source_window.
134 (tui_source_window_base): Register observer.
135 (~tui_source_window_base): New.
136 * tui/tui-source.c (copy_source_line): Move to tui-winsource.c;
137 rename.
138 (tui_source_window::set_contents): Use tui_copy_source_line.
139 (tui_source_window::tui_source_window): Move to tui-source.h.
140 (tui_source_window::~tui_source_window): Remove.
141 (tui_source_window::style_changed): Move to superclass.
142 * tui/tui-disasm.c (tui_disassemble): Create string file with
143 styling, when possible. Add "addr_size" parameter.
144 (tui_disasm_window::set_contents): Use tui_copy_source_line.
145 Don't compute maximum size.
146 (len_without_escapes): New function
147
148 2019-11-05 Tom Tromey <tom@tromey.com>
149
150 * tui/tui-winsource.h (struct tui_source_element) <line>: Now a
151 std::string.
152 * tui/tui-winsource.c (tui_show_source_line): Update.
153 * tui/tui-source.c (tui_source_window::set_contents): Update.
154 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
155
156 2019-11-05 Christian Biesinger <cbiesinger@google.com>
157
158 * symtab.h (gdb_static_assert): Put && operator at the beginning
159 of the line instead of the end.
160
161 2019-11-04 Christian Biesinger <cbiesinger@google.com>
162
163 * psympriv.h: Add static_asserts for sizeof (general_symbol_info)
164 and sizeof (symbol).
165 * symtab.h: Add a static_assert for sizeof (partial_symbol).
166
167 2019-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
168
169 * NEWS (Changes since GDB 8.3): Document Solaris 10 removal.
170 * configure.host: Mark *-*-solaris2.10* obsolete.
171 * configure.tgt: Mark Solaris < 11 obsolete.
172 * MAINTAINERS (Target Instruction Set Architectures) <sparc>:
173 Update target triplet.
174
175 2019-11-01 Tom Tromey <tromey@adacore.com>
176
177 * utils.c (print_sys_errmsg): Simplify.
178
179 2019-11-01 Tom Tromey <tromey@adacore.com>
180
181 * gdbsupport/mingw-strerror.c (safe_strerror): Constify result.
182
183 2019-11-01 Christian Biesinger <cbiesinger@google.com>
184
185 * configure: Regenerate.
186 * configure.ac: Remove check for strerror_r.
187 * gdbsupport/common.m4: Check for strerror_r.
188
189 2019-11-01 Luis Machado <luis.machado@linaro.org>
190
191 PR gdb/25124
192
193 * arm-tdep.c (arm_per_objfile): Rename to ...
194 (arm_per_bfd): ... this.
195 (arm_objfile_data_key): Rename to ...
196 (arm_bfd_data_key): ... this.
197 (arm_find_mapping_symbol): Adjust access to new bfd_key-based
198 data.
199 (arm_record_special_symbol): Likewise.
200
201 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
202
203 * ada-typeprint.c (ada_print_typedef): Don't print newline at the
204 end.
205 * c-typeprint.c (c_print_typedef): Likewise.
206 * f-typeprint.c (f_print_typedef): Likewise.
207 * m2-typeprint.c (m2_print_typedef): Likewise.
208 * p-typeprint.c (pascal_print_typedef): Likewise.
209 * rust-lang.c (rust_print_typedef): Likewise.
210 * symtab.c (print_symbol_info): Print a newline after calling
211 typedef_print.
212
213 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
214
215 * symtab.c (info_module_cmdlist): New variable.
216 (info_module_command): New function.
217 (search_module_symbols): New function.
218 (info_module_subcommand): New function.
219 (struct info_modules_var_func_options): New struct.
220 (info_modules_var_func_options_defs): New variable.
221 (make_info_modules_var_func_options_def_group): New function.
222 (info_module_functions_command): New function.
223 (info_module_variables_command): New function.
224 (info_module_var_func_command_completer): New function.
225 (_initialize_symtab): Register new 'info module functions' and
226 'info module variables' commands.
227 * symtab.h (typedef symbol_search_in_module): New typedef.
228 (search_module_symbols): Declare new function.
229 * NEWS: Mention new commands.
230
231 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
232
233 * dwarf2read.c (dw2_symtab_iter_next): Handle MODULE_DOMAIN.
234 (dw2_expand_marked_cus): Handle MODULES_DOMAIN.
235 (dw2_debug_names_iterator::next): Handle MODULE_DOMAIN and
236 MODULES_DOMAIN.
237 (scan_partial_symbols): Only create partial module symbols for non
238 declarations.
239 * psymtab.c (recursively_search_psymtabs): Handle MODULE_DOMAIN
240 and MODULES_DOMAIN.
241 * symtab.c (search_domain_name): Likewise.
242 (search_symbols): Likewise.
243 (print_symbol_info): Likewise.
244 (symtab_symbol_info): Likewise.
245 (info_modules_command): New function.
246 (_initialize_symtab): Register 'info modules' command.
247 * symtab.h (enum search_domain): Add MODULES_DOMAIN.
248 * NEWS: Mention new 'info modules' command.
249
250 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
251
252 * NEWS: Mention $_gdb_setting, $_gdb_setting_str, $_gdb_maint_setting
253 and $_gdb_maint_setting_str.
254
255 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
256
257 * cli/cli-cmds.c (setting_cmd, value_from_setting)
258 (gdb_setting_internal_fn, gdb_maint_setting_internal_fn)
259 (str_value_from_setting, gdb_setting_str_internal_fn)
260 (gdb_maint_setting_str_internal_fn): New functions.
261 (_initialize_cli_cmds): Define the new convenience functions.
262 * gdb/cli/cli-setshow.h (get_setshow_command_value_string): Constify.
263 * gdb/cli/cli-setshow.c (get_setshow_command_value_string): Constify.
264
265 2019-10-31 Christian Biesinger <cbiesinger@google.com>
266
267 * agent.c (set_can_use_agent): When the setting is turned on,
268 look up agent symbols if we don't have them yet.
269 (agent_new_objfile): Don't look up agent symbols when the agent
270 setting is off.
271
272 2019-10-31 Christian Biesinger <cbiesinger@google.com>
273
274 * config.in: Regenerate.
275
276 2019-10-31 Christian Biesinger <cbiesinger@google.com>
277
278 * configure: Regenerate.
279 * configure.ac: Check for strerror_r.
280 * gdbsupport/common-utils.h (safe_strerror): Change return value
281 to const char * and document that this function is now threadsafe.
282 * gdbsupport/posix-strerror.c (safe_strerror): Make buf
283 thread_local and call strerror_r, if available.
284 * utils.c (perror_string): Update.
285 (print_sys_errmsg): Update.
286
287 2019-10-31 Luis Machado <luis.machado@linaro.org>
288
289 * arm-tdep.c (arm_exidx_data_key): Use bfd_key instead of
290 objfile_key.
291 (arm_exidx_new_objfile): Adjust to use objfile->obfd instead of
292 objfile to fetch per-bfd data.
293 (arm_find_exidx_entry): Likewise.
294
295 2019-10-31 Christian Biesinger <cbiesinger@google.com>
296
297 * gdbsupport/agent.c (debug_agent): Change type to bool.
298 (use_agent): Likewise.
299 (all_agent_symbols_look_up): Likewise.
300 (agent_loaded_p): Change return value to bool.
301 (agent_look_up_symbols): Update.
302 (agent_capability_check): Change return value to bool.
303 * gdbsupport/agent.h (agent_loaded_p): Likewise.
304 (debug_agent): Change type to bool.
305 (use_agent): Likewise.
306 (agent_capability_check): Change return value to bool.
307
308 2019-10-30 Christian Biesinger <cbiesinger@google.com>
309
310 * minsyms.c (clear_minimal_symbol_hash_tables): New function.
311 (build_minimal_symbol_hash_tables): Code to clear the table moved
312 to clear_minimal_symbol_hash_tables.
313 (minimal_symbol_reader::install): Call clear_minimal_symbol_hash_tables
314 when needed.
315
316 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
317
318 * infcmd.c: Remove includes.
319 * infrun.c: Remove includes.
320
321 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
322
323 * ada-lang.h (GROW_VECT): Move to ada-lang.c.
324 (grow_vect): Remove declaration.
325 (ada_type_of_array): Remove declaration.
326 (ada_update_initial_language): Remove declaration.
327 (ada_fold_name): Remove declaration.
328 (ada_fill_in_ada_prototype): Remove declaration.
329 (user_select_syms): Remove declaration.
330 (get_selections): Remove declaration.
331 (ada_tag_type): Remove declaration.
332 (ada_value_tag): Remove declaration.
333 (ada_is_others_clause): Remove declaration.
334 (ada_in_variant): Remove declaration.
335 (ada_value_struct_elt): Remove declaration.
336 (ada_attribute_name): Remove declaration.
337 (ada_system_address_type): Remove declaration.
338 * ada-lang.c (ada_watch_location_expression): Make static.
339 (GROW_VECT): Move here from ada-lang.h.
340 (grow_vect): Make static.
341 (ada_update_initial_language): Make static.
342 (ada_fold_name): Make static.
343 (ada_type_of_array): Make static.
344 (encoded_ordered_before): Move up.
345 (sort_choices): Move up.
346 (print_signatures): Move up.
347 (ada_print_symbol_signature): Move up.
348 (get_selections): Move up and make static.
349 (user_select_syms): Move up and make static.
350 (ada_value_struct_elt): Move up and make static.
351 (ada_tag_type): Make static.
352 (ada_value_tag): Make static.
353 (ada_is_others_clause): Make static.
354 (ada_in_variant): Make static.
355 (ada_attribute_name): Make static.
356
357 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
358
359 * ada-lang.c: Remove includes.
360 * ada-typeprint.c: Remove includes.
361 * ada-valprint.c: Remove includes.
362
363 2019-10-29 Simon Marchi <simon.marchi@efficios.com>
364
365 * addrmap.c: Add static assertions of type size, moved from
366 _initialize_addrmap.
367 (_initialize_addrmap): Remove.
368
369 2019-10-29 Christian Biesinger <cbiesinger@google.com>
370
371 * coffread.c (record_minimal_symbol): Update.
372 (process_coff_symbol): Update.
373 * dbxread.c (read_dbx_symtab): Update.
374 * dwarf2read.c (add_partial_symbol): Update.
375 (fixup_go_packaging): Update.
376 (load_partial_dies): Update.
377 (new_symbol): Update.
378 * elfread.c (record_minimal_symbol): Change signature to use
379 gdb::string_view instead of name+len.
380 (elf_symtab_read): Update.
381 (elf_rel_plt_read): Update.
382 * mdebugread.c (parse_partial_symbols): Update.
383 (handle_psymbol_enumerators): Update.
384 (new_symbol): Update.
385 * minsyms.c (minimal_symbol_reader::record_full): Change signature
386 to use gdb::string_view instead of name+len.
387 * minsyms.h (class minimal_symbol_reader) <record_full>: Likewise.
388 * psympriv.h (add_psymbol_to_list): Likewise.
389 * psymtab.c (add_psymbol_to_bcache): Likewise.
390 (add_psymbol_to_list): Likewise.
391 * stabsread.c (define_symbol): Update.
392 * symtab.c (symbol_set_names): Change signature to use gdb::string_view.
393 * symtab.h (SYMBOL_SET_NAMES): Likewise.
394 (symbol_set_names): Likewise.
395 * xcoffread.c (scan_xcoff_symtab): Update.
396
397 2019-10-29 Christian Biesinger <cbiesinger@google.com>
398
399 * symtab.h (symbol_set_names): Document that copy_name must be
400 set to true for non-nullterminated strings.
401 * symtab.c (symbol_set_names): Only make a nullterminated copy of
402 linkage_name if the entry was not found and we need to demangle.
403
404 2019-10-29 Christian Biesinger <cbiesinger@google.com>
405
406 * Makefile.in (HFILES_NO_SRCDIR): Add gdb_binary_search.h.
407 * dwarf2-frame.c (bsearch_fde_cmp): Update.
408 (dwarf2_frame_find_fde): Replace bsearch with gdb::binary_search.
409 * gdbsupport/gdb_binary_search.h: New file.
410
411 2019-10-29 Christian Biesinger <cbiesinger@google.com>
412
413 * NEWS: Mention new --with-system-gdbinit-dir option.
414 * config.in: Regenerate.
415 * configure: Regenerate.
416 * configure.ac: Add new option --with-system-gdbinit-dir.
417 * extension.c (get_ext_lang_of_file): Return extension_language_gdb
418 for a ".gdb" suffix.
419 * main.c (get_init_files): Change system_gdbinit argument to
420 a vector and return the files in SYSTEM_GDBINIT_DIR in
421 addition to SYSTEM_GDBINIT.
422 (captured_main_1): Update.
423 (print_gdb_help): Update.
424 * top.c (print_gdb_configuration): Also print the value of
425 SYSTEM_GDBINIT_DIR.
426
427 2019-10-28 Christian Biesinger <cbiesinger@google.com>
428
429 * gdbsupport/common-utils.h (startswith): Add an overloaded version
430 that takes gdb::string_view arguments.
431
432 2019-10-26 Tom de Vries <tdevries@suse.de>
433
434 * aarch64-linux-tdep.c: Fix typos in comments.
435 * aarch64-tdep.c: Same.
436 * ada-lang.c: Same.
437 * amd64-nat.c: Same.
438 * arc-tdep.c: Same.
439 * arch/aarch64-insn.c: Same.
440 * block.c: Same.
441 * breakpoint.h: Same.
442 * btrace.h: Same.
443 * c-varobj.c: Same.
444 * cli/cli-decode.c: Same.
445 * cli/cli-script.c: Same.
446 * cli/cli-utils.h: Same.
447 * coff-pe-read.c: Same.
448 * coffread.c: Same.
449 * compile/compile-cplus-symbols.c: Same.
450 * compile/compile-object-run.c: Same.
451 * completer.c: Same.
452 * corelow.c: Same.
453 * cp-support.c: Same.
454 * demangle.c: Same.
455 * dwarf-index-write.c: Same.
456 * dwarf2-frame.c: Same.
457 * dwarf2-frame.h: Same.
458 * eval.c: Same.
459 * frame-base.h: Same.
460 * frame.h: Same.
461 * gdbcmd.h: Same.
462 * gdbtypes.h: Same.
463 * gnu-nat.c: Same.
464 * guile/scm-objfile.c: Same.
465 * i386-tdep.c: Same.
466 * i386-tdep.h: Same.
467 * infcall.c: Same.
468 * infcall.h: Same.
469 * linux-nat.c: Same.
470 * m68k-tdep.c: Same.
471 * macroexp.c: Same.
472 * memattr.c: Same.
473 * mi/mi-cmd-disas.c: Same.
474 * mi/mi-getopt.h: Same.
475 * mi/mi-main.c: Same.
476 * minsyms.c: Same.
477 * nat/aarch64-sve-linux-sigcontext.h: Same.
478 * objfiles.h: Same.
479 * ppc-linux-nat.c: Same.
480 * ppc-linux-tdep.c: Same.
481 * ppc-tdep.h: Same.
482 * progspace.h: Same.
483 * prologue-value.h: Same.
484 * python/py-evtregistry.c: Same.
485 * python/py-instruction.h: Same.
486 * record-btrace.c: Same.
487 * record-full.c: Same.
488 * remote.c: Same.
489 * rs6000-tdep.c: Same.
490 * ser-tcp.c: Same.
491 * sol-thread.c: Same.
492 * sparc-sol2-tdep.c: Same.
493 * sparc64-tdep.c: Same.
494 * stabsread.c: Same.
495 * symfile.c: Same.
496 * symtab.h: Same.
497 * target.c: Same.
498 * tracepoint.c: Same.
499 * tui/tui-data.h: Same.
500 * tui/tui-io.c: Same.
501 * tui/tui-win.c: Same.
502 * tui/tui.c: Same.
503 * unittests/rsp-low-selftests.c: Same.
504 * user-regs.h: Same.
505 * utils.c: Same.
506 * utils.h: Same.
507 * valarith.c: Same.
508 * valops.c: Same.
509 * valprint.c: Same.
510 * valprint.h: Same.
511 * value.c: Same.
512 * value.h: Same.
513 * varobj.c: Same.
514 * x86-nat.h: Same.
515 * xtensa-tdep.c: Same.
516
517 2019-10-25 Ali Tamur <tamur@google.com>
518
519 * charset.c (find_charset_names): Reflect API change.
520
521 2019-10-25 Christian Biesinger <cbiesinger@google.com>
522
523 * symtab.c (struct demangled_name_entry): Change demangled name
524 to a unique_xmalloc_ptr<char>, now that we don't allocate it as
525 part of the struct anymore.
526 (symbol_set_names): No longer obstack allocate + copy the demangled
527 name, just store the allocated name from bfd.
528
529 2019-10-25 Tom Tromey <tromey@adacore.com>
530
531 * dwarf2-frame.c (dwarf2_cie_table): Now a typedef.
532 (bsearch_cie_cmp, add_cie): Remove.
533 (find_cie): Reimplement.
534 (decode_frame_entry_1, decode_frame_entry): Change type. Update.
535 (dwarf2_build_frame_info): Update.
536
537 2019-10-24 H.J. Lu <hongjiu.lu@intel.com>
538
539 PR gdb/25126
540 * symfile.c (reread_symbols): Call forget_cached_source_info to
541 clear the stale source cache.
542
543 2019-10-24 Christian Biesinger <cbiesinger@google.com>
544
545 * configure: Regenerate.
546 * configure.ac: Remove code that sets python_has_threads.
547
548 2019-10-24 Christian Biesinger <cbiesinger@google.com>
549
550 * config.in: Regenerate.
551 * configure: Regenerate.
552 * configure.ac: Remove the code that uses sed to get the python
553 version and defines HAVE_LIBPYTHON2_6 / HAVE_LIBPYTHON2_7.
554
555 2019-10-24 Andrew Burgess <andrew.burgess@embecosm.com>
556
557 * python/py-progspace.c (pspy_block_for_pc): Return None for all
558 error paths.
559
560 2019-10-23 Tom Tromey <tom@tromey.com>
561
562 * arc-tdep.c: Remove ".." from include.
563 * frv-tdep.c: Remove ".." from include.
564 * lm32-tdep.c: Remove ".." from include.
565 * microblaze-tdep.c: Remove ".." from include.
566 * or1k-tdep.h: Remove ".." from include.
567 * s12z-tdep.c: Remove ".." from include.
568 * Makefile.in (OPCODES_CFLAGS): Add comment.
569 (TOP_CFLAGS): New variable.
570 (INTERNAL_CFLAGS_BASE): Add TOP_CFLAGS.
571
572 2019-10-23 Tom Tromey <tom@tromey.com>
573
574 * Makefile.in (READLINE_DIR): Update.
575
576 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
577
578 * infcall.c (call_function_by_hand_dummy): Fix the function
579 comment. And extract out a code section into...
580 (reserve_stack_space): ...this new function.
581
582 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
583
584 * infcall.c (value_arg_coerce): Remove an unused parameter.
585 (call_function_by_hand_dummy): Update the call to
586 'value_arg_coerce'.
587
588 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
589
590 * infcall.c (call_function_by_hand_dummy): Refactor.
591
592 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
593
594 * MAINTAINERS (Write After Approval): Add Tankut Baris Aktemur.
595
596 2019-10-23 Tom Tromey <tom@tromey.com>
597
598 * configure: Rebuild.
599 * configure.ac: Don't check for sigprocmask.
600 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for sigprocmask.
601
602 2019-10-23 Tom Tromey <tom@tromey.com>
603
604 * configure: Rebuild.
605 * acinclude.m4: Use m4_include, not sinclude.
606
607 2019-10-23 Tom de Vries <tdevries@suse.de>
608
609 PR breakpoints/24687
610 * symtab.c (iterate_over_some_symtabs): Apply gdb_realpath on fullname.
611
612 2019-10-22 Christian Biesinger <cbiesinger@google.com>
613
614 * symtab.c (struct demangled_name_entry) <language>: Change from
615 bitfield to regular variable.
616
617 2019-10-22 Christian Biesinger <cbiesinger@google.com>
618
619 * symtab.c (struct demangled_name_entry): Add a constructor.
620 (free_demangled_name_entry): New function to call the destructor
621 for demangled_name_entry.
622 (create_demangled_names_hash): Pass free_demangled_name_entry to
623 htab_create_alloc.
624 (symbol_set_names): Call placement new for demangled_name_entry.
625 * utils.c: No longer include xxhash.h here, now that fast_hash
626 is inlined in the header.
627 * utils.h: Instead, include it here.
628
629 2019-10-22 Christian Biesinger <cbiesinger@google.com>
630
631 * Makefile.in: Link with libxxhash.
632 * config.in: Regenerate.
633 * configure: Regenerate.
634 * configure.ac: Search for libxxhash.
635 * utils.c (fast_hash): Use xxhash if present.
636
637 2019-10-22 Christian Biesinger <cbiesinger@google.com>
638
639 * utils.h (fast_hash): New function.
640 * symtab.c (hash_demangled_name_entry): Call new function
641 fast_hash.
642
643 2019-10-22 Christian Biesinger <cbiesinger@google.com>
644
645 * symtab.c (struct demangled_name_entry): Change type of mangled
646 to gdb::string_view. Also adds a constructor that takes the
647 mangled name.
648 (hash_demangled_name_entry): Update.
649 (eq_demangled_name_entry): Update.
650 (free_demangled_name_entry): New function to call the destructor
651 now that this is not a POD anymore.
652 (create_demangled_names_hash): Pass free_demangled_name_entry to
653 htab_create_alloc.
654 (symbol_set_names): Update.
655
656 2019-10-21 Ali Tamur <tamu@google.com>
657
658 * dwarf2read.c (dir_index): Change type.
659 (file_name_index): Likewise.
660 (line_header::include_dir_at): Change comment and implementation on
661 whether it is DWARF 5.
662 (line_header::is_valid_file_index): New function.
663 (line_header::file_name_at): Change comment and implementation on
664 whether it is DWARF 5.
665 (line_header::file_names): Change to private field renamed as
666 m_file_names and introduce a new accessor method.
667 (line_header::file_names_size): New method.
668 (line_header::include_dirs): Change to private field and rename as
669 m_include_dirs.
670 (dw2_get_file_names_reader): Define local var at a smaller scope and
671 reflect API change.
672 (dwarf2_cu::setup_type_unit_groups): Reflect API change.
673 (process_structure_scope): Likewise.
674 (line_header::add_include_dir): Change message and reflect renaming.
675 (line_header::add_file_name): Likewise.
676 (read_formatted_entries): Handle DW_FORM_data16.
677 (dwarf_decode_line_header): Fix line header length calculation.
678 (psymtab_include_file_name): Change comment and API.
679 (lnp_state_machine::m_file): Update comment and reflect type change.
680 (lnp_state_machine::record_line): Reflect type change.
681 (dwarf_decode_lines): Reflect API change.
682 (file_file_name): Likewise.
683 (file_full_name): Likewise.
684
685 2019-10-21 Andrew Burgess <andrew.burgess@embecosm.com>
686
687 * objfiles.c (sort_cmp): Ensure that !(a < a) holds true.
688
689 2019-10-21 Tom Tromey <tom@tromey.com>
690
691 * tui/tui-winsource.h (tui_exec_info_content): Remove typedef.
692
693 2019-10-21 Tom Tromey <tom@tromey.com>
694
695 * configure.ac (nm.h): Conditionally create nm.h link. Subst
696 NM_H. Use AC_CONFIG_LINKS.
697 * configure: Rebuild.
698 * Makefile.in (NM_H): New variable.
699 (generated_files): Add NM_H. Remove gcore.
700 (nm.h, stamp-nmh): New targets.
701
702 2019-10-20 Tom Tromey <tom@tromey.com>
703
704 * objfiles.h (unlink_objfile, put_objfile_before): Don't declare.
705 * objfiles.c (unlink_objfile): Move earlier. Now static. Remove
706 obsolete comment.
707 (put_objfile_before): Now static.
708
709 2019-10-19 Simon Marchi <simon.marchi@polymtl.ca>
710
711 * gdbsupport/common-utils.h (startswith): Change return type to
712 bool.
713
714 2019-10-19 Christian Biesinger <cbiesinger@google.com>
715
716 * bcache.c (bcache::print_statistics): Use std::sort instead of qsort.
717 * breakpoint.c (bp_locations_compare): Rename to...
718 (bp_location_is_less_than): ...this, and change to std::sort semantics.
719 (update_global_location_list): Use std::sort instead of qsort.
720 * buildsym.c (compare_line_numbers): Rename to...
721 (lte_is_less_than): ...this, and change to std::sort semantics.
722 (buildsym_compunit::end_symtab_with_blockvector): Use std::sort
723 instead of qsort.
724 * disasm.c (compare_lines): Rename to...
725 (line_is_less_than): ...this, and change to std::sort semantics.
726 (do_mixed_source_and_assembly_deprecated): Call std::sort instead
727 of qsort.
728 * dwarf2-frame.c (qsort_fde_cmp): Rename to...
729 (fde_is_less_than): ...this, and change to std::sort semantics.
730 (dwarf2_build_frame_info): Call std::sort instead of qsort.
731 * mdebugread.c (compare_blocks):
732 (block_is_less_than): ...this, and change to std::sort semantics.
733 (sort_blocks): Call std::sort instead of qsort.
734 * objfiles.c (qsort_cmp): Rename to...
735 (sort_cmp): ...this, and change to std::sort semantics.
736 (update_section_map): Call std::sort instead of qsort.
737 * remote.c (compare_pnums): Remove.
738 (map_regcache_remote_table): Call std::sort instead of qsort.
739 * utils.c (compare_positive_ints): Remove.
740 * utils.h (compare_positive_ints): Remove.
741 * xcoffread.c (compare_lte): Remove.
742 (arrange_linetable): Call std::sort instead of qsort.
743
744 2019-10-19 Sergio Durigan Junior <sergiodj@redhat.com>
745
746 * symfile.c (init_entry_point_info): Fix typo.
747 * i386-darwin-tdep.c (darwin_dwarf_signal_frame_p): Fix typo.
748
749 2019-10-18 Tom de Vries <tdevries@suse.de>
750
751 * aarch64-tdep.c: Fix typos in comments.
752 * ada-lang.c: Same.
753 * ada-tasks.c: Same.
754 * alpha-tdep.c: Same.
755 * alpha-tdep.h: Same.
756 * amd64-nat.c: Same.
757 * amd64-windows-tdep.c: Same.
758 * arc-tdep.c: Same.
759 * arc-tdep.h: Same.
760 * arch-utils.c: Same.
761 * arm-nbsd-tdep.c: Same.
762 * arm-tdep.c: Same.
763 * ax-gdb.c: Same.
764 * blockframe.c: Same.
765 * btrace.c: Same.
766 * c-varobj.c: Same.
767 * coff-pe-read.c: Same.
768 * coffread.c: Same.
769 * cris-tdep.c: Same.
770 * darwin-nat.c: Same.
771 * dbxread.c: Same.
772 * dcache.c: Same.
773 * disasm.c: Same.
774 * dtrace-probe.c: Same.
775 * dwarf-index-write.c: Same.
776 * dwarf2-frame-tailcall.c: Same.
777 * dwarf2-frame.c: Same.
778 * dwarf2read.c: Same.
779 * eval.c: Same.
780 * exceptions.c: Same.
781 * fbsd-tdep.c: Same.
782 * findvar.c: Same.
783 * frame.c: Same.
784 * frv-tdep.c: Same.
785 * gnu-v3-abi.c: Same.
786 * go32-nat.c: Same.
787 * h8300-tdep.c: Same.
788 * hppa-tdep.c: Same.
789 * i386-linux-tdep.c: Same.
790 * i386-tdep.c: Same.
791 * ia64-libunwind-tdep.c: Same.
792 * ia64-tdep.c: Same.
793 * infcmd.c: Same.
794 * infrun.c: Same.
795 * linespec.c: Same.
796 * linux-nat.c: Same.
797 * linux-thread-db.c: Same.
798 * machoread.c: Same.
799 * mdebugread.c: Same.
800 * mep-tdep.c: Same.
801 * mn10300-tdep.c: Same.
802 * namespace.c: Same.
803 * objfiles.c: Same.
804 * opencl-lang.c: Same.
805 * or1k-tdep.c: Same.
806 * osabi.c: Same.
807 * ppc-linux-nat.c: Same.
808 * ppc-linux-tdep.c: Same.
809 * ppc-sysv-tdep.c: Same.
810 * printcmd.c: Same.
811 * procfs.c: Same.
812 * record-btrace.c: Same.
813 * record-full.c: Same.
814 * remote-fileio.c: Same.
815 * remote.c: Same.
816 * rs6000-tdep.c: Same.
817 * s12z-tdep.c: Same.
818 * score-tdep.c: Same.
819 * ser-base.c: Same.
820 * ser-go32.c: Same.
821 * skip.c: Same.
822 * sol-thread.c: Same.
823 * solib-svr4.c: Same.
824 * solib.c: Same.
825 * source.c: Same.
826 * sparc-nat.c: Same.
827 * sparc-sol2-tdep.c: Same.
828 * sparc-tdep.c: Same.
829 * sparc64-tdep.c: Same.
830 * stabsread.c: Same.
831 * stack.c: Same.
832 * symfile.c: Same.
833 * symtab.c: Same.
834 * target-descriptions.c: Same.
835 * target-float.c: Same.
836 * thread.c: Same.
837 * utils.c: Same.
838 * valops.c: Same.
839 * valprint.c: Same.
840 * value.c: Same.
841 * varobj.c: Same.
842 * windows-nat.c: Same.
843 * xcoffread.c: Same.
844 * xstormy16-tdep.c: Same.
845 * xtensa-tdep.c: Same.
846
847 2019-10-17 Tom Tromey <tromey@adacore.com>
848
849 * configure: Rebuild.
850 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
851 in AC_CONFIG_FILES invocation.
852 * Makefile.in (Makefile, data-directory/Makefile, stamp-h): Use
853 new-style config.status invocation.
854
855 2019-10-17 Tom de Vries <tdevries@suse.de>
856
857 * arm-nbsd-nat.c: Fix typos in comments.
858 * arm-tdep.c: Same.
859 * darwin-nat-info.c: Same.
860 * dwarf2read.c: Same.
861 * elfread.c: Same.
862 * event-top.c: Same.
863 * findvar.c: Same.
864 * gdbtypes.c: Same.
865 * hppa-tdep.c: Same.
866 * i386-tdep.c: Same.
867 * jit.c: Same.
868 * main.c: Same.
869 * mdebugread.c: Same.
870 * moxie-tdep.c: Same.
871 * nto-procfs.c: Same.
872 * osabi.c: Same.
873 * ppc-linux-tdep.c: Same.
874 * remote.c: Same.
875 * riscv-tdep.c: Same.
876 * s390-tdep.c: Same.
877 * sh-tdep.c: Same.
878 * sparc-linux-tdep.c: Same.
879 * sparc-nat.c: Same.
880 * stack.c: Same.
881 * target-descriptions.c: Same.
882 * top.c: Same.
883 * varobj.c: Same.
884
885 2019-10-16 Tom Tromey <tom@tromey.com>
886
887 * objfiles.h (struct objfile) <original_name>: Now const.
888
889 2019-10-16 Christian Biesinger <cbiesinger@google.com>
890
891 * gdbsupport/gdb_setjmp.h (SIGSETJMP): Allow passing in the value to
892 pass on to sigsetjmp's second argument.
893 * cp-support.c (gdb_demangle): Unblock SIGSEGV if we caught a crash.
894
895 2019-10-16 Keith Seitz <keiths@redhat.com>
896
897 PR gdb/23567
898 * dwarf2read.c (dwarf2_per_objfile::locate_sections): Discard
899 sections whose size is greater than the file size.
900
901 2019-10-16 Jim Wilson <jimw@sifive.com>
902
903 * riscv-tdep.c (riscv_gcc_target_options): New.
904 (riscv_gnu_triplet_regexp): New.
905 (riscv_gdbarch_init): Call set_gdbarch_gcc_triplet_options and
906 set_gdbarch_gnu_triplet_regexp.
907
908 2019-10-16 Christian Biesinger <cbiesinger@google.com>
909
910 * Makefile.in: Add xml-builtin.h.
911 * features/feature_to_c.sh: Add an include for xml-builtin.h
912 to ensure that the compiler checks that the types match.
913 * xml-builtin.h: New file.
914 * xml-support.c (fetch_xml_builtin): Add missing const.
915 * xml-support.h: Remove declaration of xml_builtins.
916
917 2019-10-16 Tom de Vries <tdevries@suse.de>
918
919 PR tdep/25096
920 * amd64-tdep.c (amd64_classify_aggregate_field): Factor out of ...
921 (amd64_classify_aggregate): ... here.
922 (amd64_classify_aggregate_field): Handled fiels of nested structs
923 recursively.
924
925 2019-10-16 Tom de Vries <tdevries@suse.de>
926
927 PR tdep/24104
928 * amd64-tdep.c (amd64_push_arguments): Handle AMD64_NO_CLASS in loop
929 that handles 'theclass'.
930
931 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
932
933 * linespec.c (decode_digits_ordinary): Update comment.
934 * make-target-delegates: No longer need to handle VEC case.
935 * memrange.c (normalize_mem_ranges): Update comment.
936 * namespace.c (add_using_directive): Update comment.
937 * objc-lang.c (uniquify_strings): Update comment.
938 * ppc-linux-nat.c (struct thread_points): Update comment.
939 * probe.h (find_probes_in_objfile): Update comment.
940 * target.h (enum flash_preserve_mode): Update comment.
941 * varobj.c (varobj_restrict_range): Update comment.
942 * varobj.h (varobj_list_children): Update comment.
943
944 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
945
946 * Makefile.in: Remove references to vec.h and vec.c.
947 * aarch64-tdep.c: No longer include vec.h.
948 * ada-lang.c: Likewise.
949 * ada-lang.h: Likewise.
950 * arm-tdep.c: Likewise.
951 * ax.h: Likewise.
952 * breakpoint.h: Likewise.
953 * charset.c: Likewise.
954 * cp-support.h: Likewise.
955 * dtrace-probe.c: Likewise.
956 * dwarf2read.c: Likewise.
957 * extension.h: Likewise.
958 * gdb_bfd.c: Likewise.
959 * gdbsupport/gdb_vecs.h: Likewise.
960 * gdbsupport/vec.c: Remove.
961 * gdbsupport/vec.h: Remove.
962 * gdbthread.h: Likewise.
963 * guile/scm-type.c: Likewise.
964 * inline-frame.c: Likewise.
965 * machoread.c: Likewise.
966 * memattr.c: Likewise.
967 * memrange.h: Likewise.
968 * namespace.h: Likewise.
969 * nat/linux-btrace.h: Likewise.
970 * osdata.c: Likewise.
971 * parser-defs.h: Likewise.
972 * progspace.h: Likewise.
973 * python/py-type.c: Likewise.
974 * record-btrace.c: Likewise.
975 * rust-exp.y: Likewise.
976 * solib-target.c: Likewise.
977 * stap-probe.c: Likewise.
978 * target-descriptions.c: Likewise.
979 * target-memory.c: Likewise.
980 * target.h: Likewise.
981 * varobj.c: Likewise.
982 * varobj.h: Likewise.
983 * xml-support.h: Likewise.
984
985 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
986
987 * gdb/dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile):
988 Update for new std::vector based implementation.
989 (process_psymtab_comp_unit_reader): Likewise.
990 (scan_partial_symbols): Likewise.
991 (recursively_compute_inclusions): Likewise.
992 (compute_compunit_symtab_includes): Likewise.
993 (process_imported_unit_die): Likewise.
994 (queue_and_load_dwo_tu): Likewise.
995 (follow_die_sig_1): Likewise.
996 * gdb/dwarf2read.h: Remove DEF_VEC_P.
997 (typedef dwarf2_per_cu_ptr): Remove.
998 (struct dwarf2_per_cu_data) <imported_symtabs_empty>: New
999 function.
1000 (struct dwarf2_per_cu_data) <imported_symtabs_push>: New function.
1001 (struct dwarf2_per_cu_data) <imported_symtabs_size>: New function.
1002 (struct dwarf2_per_cu_data) <imported_symtabs_free>: New function.
1003 (struct dwarf2_per_cu_data) <imported_symtabs>: Change to
1004 std::vector.
1005
1006 2019-10-15 Tom Tromey <tromey@adacore.com>
1007
1008 * windows-nat.c (windows_nat_target::resume): Use %x when logging
1009 TID.
1010
1011 2019-10-15 Tom Tromey <tromey@adacore.com>
1012
1013 * windows-nat.c (windows_nat_target::fetch_registers)
1014 (windows_nat_target::store_registers): Rename "pid" to "tid".
1015
1016 2019-10-15 Tom Tromey <tromey@adacore.com>
1017
1018 * gdbarch.h, gdbarch.c: Rebuild.
1019 * gdbarch.sh (gcc_target_options): Change return type to
1020 std::string.
1021 * compile/compile.c (get_args): Update.
1022 * nios2-tdep.c (nios2_gcc_target_options): Return std::string.
1023 * arm-linux-tdep.c (arm_linux_gcc_target_options): Return
1024 std::string.
1025 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): Return
1026 std::string.
1027 * arch-utils.c (default_gcc_target_options): Return std::string.
1028 * arch-utils.h (default_gcc_target_options): Return std::string.
1029 * s390-tdep.c (s390_gcc_target_options): Return std::string.
1030
1031 2019-10-15 Christian Biesinger <cbiesinger@google.com>
1032
1033 * breakpoint.c (breakpoint_chain): Make static.
1034 * tui/tui-winsource.c: Call iterate_over_breakpoints instead
1035 of accessing breakpoint_chain.
1036
1037 2019-10-15 Christian Biesinger <cbiesinger@google.com>
1038
1039 * breakpoint.c (iterate_over_breakpoints): Change function pointer
1040 to a gdb::function_view and return value to bool.
1041 * breakpoint.h (iterate_over_breakpoints): Likewise.
1042 * dummy-frame.c (pop_dummy_frame_bpt): Update.
1043 (pop_dummy_frame): Update.
1044 * guile/scm-breakpoint.c (bpscm_build_bp_list): Update.
1045 (gdbscm_breakpoints): Update.
1046 * python/py-breakpoint.c (build_bp_list): Update.
1047 (gdbpy_breakpoints): Update.
1048 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
1049 Update.
1050 (bpfinishpy_handle_stop): Update.
1051 (bpfinishpy_handle_exit): Update.
1052 * solib-svr4.c (svr4_update_solib_event_breakpoint): Update.
1053 (svr4_update_solib_event_breakpoints): Update.
1054
1055 2019-10-15 Andreas Arnez <arnez@linux.ibm.com>
1056
1057 * s390-tdep.c (s390_effective_inner_type): Ignore static fields
1058 when unwrapping single-field structs.
1059
1060 2019-10-14 Simon Marchi <simon.marchi@polymtl.ca>
1061
1062 * dwarf2read.c: Remove includes.
1063
1064 2019-10-13 Simon Marchi <simon.marchi@polymtl.ca>
1065
1066 * ui-out.c (ui_out::call_do_message): Silence
1067 -Wformat-nonliteral warning.
1068
1069 2019-10-12 Simon Marchi <simon.marchi@polymtl.ca>
1070
1071 * breakpoint.c: Remove some includes: continuations.h, skip.h,
1072 mi/mi-main.h, readline/readline.h, readline/history.h. Add
1073 include: readline/tilde.h.
1074
1075 2019-10-12 Christian Biesinger <cbiesinger@google.com>
1076
1077 * remote.c (remote_target::get_trace_status): Remove declaration of
1078 trace_regblock_size.
1079
1080 2019-10-12 Christian Biesinger <cbiesinger@google.com>
1081
1082 * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
1083 (show_user): Remove declaration of cmdlist.
1084 * cli/cli-cmds.h (max_user_call_depth): Declare.
1085 * cli/cli-script.c (execute_user_command): Remove declaration
1086 of max_user_call_depth.
1087
1088 2019-10-11 Jim Wilson <jimw@sifive.com>
1089
1090 * gdbsupport/print-utils.h (pulongest): Fix comment.
1091 (plongest): Likewise.
1092 (phex): Add missing comment, mention leading zeros.
1093 (phex_nz): Add mention of no leading zeros to comment.
1094
1095 * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
1096 plongest instead of unsigned long long cast.
1097
1098 2019-10-10 Christian Biesinger <cbiesinger@google.com>
1099
1100 * main.c (captured_main_1): Include gdbtk.h and remove declarations
1101 for external_editor_command and gdbtk_test.
1102
1103 2019-10-10 Christian Biesinger <cbiesinger@google.com>
1104
1105 * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
1106 * varobj.c (varobjdebug): Move comment to...
1107 * varobj.h (varobjdebug): ...here, and declare.
1108
1109 2019-10-09 Tom Tromey <tom@tromey.com>
1110
1111 * tui/tui-regs.c (tui_data_window::show_registers): Don't call
1112 erase_data_content.
1113
1114 2019-10-09 Tom Tromey <tom@tromey.com>
1115
1116 * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
1117 * tui/tui-stack.c (tui_locator_window::rerender): Update.
1118 * tui/tui-command.c (tui_cmd_window::resize)
1119 (tui_refresh_cmd_win): Update.
1120 * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
1121 * tui/tui.c (tui_rl_other_window, tui_enable): Update.
1122 * tui/tui-data.c (~tui_gen_win_info): Remove.
1123 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
1124 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
1125 (tui_redisplay_readline, tui_mld_flush)
1126 (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
1127 * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
1128 (tui_data_window::erase_data_content)
1129 (tui_data_item_window::rerender)
1130 (tui_data_item_window::refresh_window): Update.
1131 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
1132 (box_win, tui_gen_win_info::make_window)
1133 (tui_gen_win_info::make_visible): Update.
1134 (tui_delete_win): Remove.
1135 * tui/tui-winsource.c
1136 (tui_source_window_base::do_erase_source_content): Update.
1137 (tui_show_source_line, tui_source_window_base::update_tab_width)
1138 (tui_source_window_base::update_exec_info): Update.
1139 * tui/tui-data.h (struct curses_deleter): New.
1140 (struct tui_gen_win_info) <handle>: Now a unique_ptr.
1141 (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
1142
1143 2019-10-09 Tom Tromey <tom@tromey.com>
1144
1145 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
1146
1147 2019-10-09 Tom Tromey <tom@tromey.com>
1148
1149 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
1150 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
1151
1152 2019-10-09 Tom Tromey <tom@tromey.com>
1153
1154 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
1155 window height directly.
1156 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
1157 declare.
1158 * tui/tui-layout.c (tui_default_win_height): Remove.
1159 (tui_default_win_viewport_height): Remove.
1160
1161 2019-10-09 Tom Tromey <tom@tromey.com>
1162
1163 * tui/tui.h: Remove comments.
1164
1165 2019-10-09 Tom de Vries <tdevries@suse.de>
1166
1167 * python/lib/gdb/printer/bound_registers.py: Use
1168 '^builtin_type_bound128' as regexp argument for
1169 add_builtin_pretty_printer.
1170
1171 2019-10-09 Christian Biesinger <cbiesinger@google.com>
1172
1173 * guile/guile.c (guile_extension_script_ops): Remove forward
1174 declaration and mark as static.
1175 (guile_script_ops): Likewise.
1176 (extension_language_guile): Move further down in the file so
1177 it can reference the definitions for guile_{extension_,}script_ops.
1178
1179 2019-10-09 Andreas Arnez <arnez@linux.ibm.com>
1180
1181 * s390-tdep.c (390_process_record): Handle new arch13 instructions
1182 except SORTL, DFLTCC, and KDSA.
1183
1184 2019-10-08 Tom Tromey <tromey@adacore.com>
1185
1186 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
1187 (struct safe_symbol_file_add_args): Remove.
1188
1189 2019-10-08 Tom Tromey <tromey@adacore.com>
1190
1191 * windows-nat.c: Don't include buildsym-legacy.h.
1192
1193 2019-10-08 Tom Tromey <tromey@adacore.com>
1194
1195 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
1196
1197 2019-10-08 Christian Biesinger <cbiesinger@google.com>
1198
1199 * gdbtypes.c (overload_debug): Move comment to header.
1200 * gdbtypes.h (overload_debug): Declare.
1201 * valops.c: Remove declaration of overload_debug, instead
1202 include gdbtypes.h.
1203
1204 2019-10-08 Christian Biesinger <cbiesinger@google.com>
1205
1206 * language.c (show_language_command): Pass lang_frame_mismatch_warn
1207 through _().
1208 (lang_frame_mismatch_warn): Make const, mark with N_(), and
1209 move comment...
1210 * language.h (lang_frame_mismatch_warn): ... here. Also add
1211 declaration.
1212 * top.c (lang_frame_mismatch_warn): Remove declaration.
1213 (check_frame_language_change): Pass lang_frame_mismatch_warn
1214 through _().
1215
1216 2019-10-07 Christian Biesinger <cbiesinger@google.com>
1217
1218 * c-lang.h (vtbl_ptr_name): Declare.
1219 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
1220 it from the header.
1221 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
1222
1223 2019-10-07 Christian Biesinger <cbiesinger@google.com>
1224
1225 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
1226 gdb_static_assert.
1227
1228 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
1229
1230 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
1231 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
1232 * ctfread.c: New file.
1233 * ctfread.h: New file.
1234 * elfread.c: Include ctfread.h.
1235 (struct elfinfo text_p): New member ctfsect.
1236 (elf_locate_sections): Mark CTF section.
1237 (elf_symfile_read): Call elfctf_build_psymtabs.
1238 * Makefile.in (LIBCTF): Add.
1239 (CLIBS): Use it.
1240 (CDEPS): Likewise.
1241 (DIST): Add ctfread.c.
1242
1243 2019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
1244
1245 * ctfread.c (struct nextfield): Renamed to ...
1246 (struct ctf_nextfield): ... this.
1247 (struct field_info): Renamed to ...
1248 (strut ctf_field_info): ... this.
1249 (attach_fields_to_type): Update for renamed structures.
1250 (ctf_add_member_cb): Likewise.
1251 (ctf_add_enum_member_cb): Likewise.
1252 (process_struct_members): Likewise.
1253 (process_enum_type): Likewise.
1254
1255 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
1256
1257 * tracectf.h: Rename, was ctf.h.
1258 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
1259 * tracefile.c: Likewise.
1260 * tracepoint.c: Remove unused include ctf.h.
1261 * mi/mi-main.c: Likewise.
1262 * Makefile.in Replace ctf.c with tracectf.c.
1263
1264 2019-10-06 Joel Brobecker <brobecker@adacore.com>
1265
1266 * version.in: Change version number to "9.0.50.DATE-git".
1267
1268 2019-10-03 Tom Tromey <tom@tromey.com>
1269
1270 PR rust/24976:
1271 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
1272
1273 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
1274
1275 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
1276 cp_search_name_hash.
1277 * NEWS: Add entry about nested function support.
1278
1279 2019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
1280 Andrew Burgess <andrew.burgess@embecosm.com>
1281
1282 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
1283 for nested static variables when searchin VAR_DOMAIN.
1284 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
1285 global scope, update comment.
1286 (add_partial_subprogram): Call add_partial_subprogram recursively
1287 for nested subroutines when processinng Fortran.
1288 (load_partial_dies): Process the child entities of a subprogram
1289 when processing Fortran.
1290 (partial_die_parent_scope): Handle building scope
1291 for Fortran nested functions.
1292 (process_die): Record that nested functions have a scope.
1293 (new_symbol): Always record Fortran subprograms on the global
1294 symbol list.
1295 (determine_prefix): How to build the prefix for Fortran
1296 subprograms.
1297
1298 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
1299
1300 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
1301 have just sent the thread a SIGSTOP and are waiting for it to
1302 arrive.
1303
1304 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
1305
1306 * btrace.c (btrace_add_pc): Remove whitespace before the template
1307 parameter in 'std::vector <...>'.
1308 (parse_xml_btrace_block): Likewise.
1309 (btrace_maint_decode_pt): Likewise.
1310 (btrace_maint_update_packets): Likewise.
1311 (btrace_maint_print_packets): Likewise.
1312 * btrace.h (struct btrace_maint_info): Likewise.
1313 * dwarf2read.c (struct type_unit_group): Likewise.
1314 (build_type_psymtabs_reader): Likewise.
1315 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
1316 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
1317 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
1318
1319 2019-10-03 Tom de Vries <tdevries@suse.de>
1320
1321 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
1322 the first line of the help text for set/show style metadata.
1323
1324 2019-10-02 Tom Tromey <tromey@adacore.com>
1325
1326 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
1327 * gdbsupport/common-inferior.c: New file.
1328 * infcmd.c (startup_with_shell): Don't define.
1329 * nat/fork-inferior.h (startup_with_shell): Don't declare.
1330 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
1331 * inferior.h (startup_with_shell): Don't declare.
1332
1333 2019-10-02 Christian Biesinger <cbiesinger@google.com>
1334
1335 * gdbsupport/gdb_assert.h: Include errors.h.
1336 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
1337
1338 2019-10-02 Tom Tromey <tromey@adacore.com>
1339
1340 * NEWS: Add $_ada_exception entry.
1341 * ada-lang.c (struct ada_catchpoint): Add constructor.
1342 <m_kind>: New member.
1343 (allocate_location_exception, re_set_exception): Remove
1344 "ex" parameter.
1345 (should_stop_exception): Compute $_ada_exception.
1346 (check_status_exception, print_it_exception)
1347 (print_one_exception, print_mention_exception): Remove
1348 "ex" parameter.
1349 (allocate_location_catch_exception, re_set_catch_exception)
1350 (check_status_exception, print_it_catch_exception)
1351 (print_one_catch_exception, print_mention_catch_exception)
1352 (print_recreate_catch_exception)
1353 (allocate_location_catch_exception_unhandled)
1354 (re_set_catch_exception_unhandled)
1355 (check_status_exception, print_it_catch_exception_unhandled)
1356 (print_one_catch_exception_unhandled)
1357 (print_mention_catch_exception_unhandled)
1358 (print_recreate_catch_exception_unhandled)
1359 (allocate_location_catch_assert, re_set_catch_assert)
1360 (check_status_assert, print_it_catch_assert)
1361 (print_one_catch_assert, print_mention_catch_assert)
1362 (print_recreate_catch_assert)
1363 (allocate_location_catch_handlers, re_set_catch_handlers)
1364 (check_status_handlers, print_it_catch_handlers)
1365 (print_one_catch_handlers, print_mention_catch_handlers)
1366 (print_recreate_catch_handlers): Remove.
1367 (create_ada_exception_catchpoint): Update.
1368 (initialize_ada_catchpoint_ops): Update.
1369
1370 2019-10-02 Tom Tromey <tromey@adacore.com>
1371
1372 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
1373 (create_excep_cond_exprs): Simplify exception string computation.
1374 (ada_exception_catchpoint_cond_string): Likewise.
1375
1376 2019-10-02 Tom Tromey <tromey@adacore.com>
1377
1378 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
1379 * ada-lang.c (lesseq_defined_than): Handle
1380 LOC_STATIC.
1381 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
1382 parameter.
1383 (dwarf2_has_info): Likewise.
1384 (new_symbol): Set maybe_copied on symbol when
1385 appropriate.
1386 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
1387 parameter.
1388 <can_copy>: New member.
1389 * elfread.c (record_minimal_symbol): Set maybe_copied
1390 on symbol when appropriate.
1391 (elf_symfile_read): Update call to dwarf2_has_info.
1392 * minsyms.c (lookup_minimal_symbol_linkage): New
1393 function.
1394 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
1395 * symtab.c (get_symbol_address, get_msymbol_address):
1396 New functions.
1397 * symtab.h (get_symbol_address, get_msymbol_address):
1398 Declare.
1399 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
1400 maybe_copied.
1401 (struct symbol, struct minimal_symbol) <maybe_copied>:
1402 New member.
1403
1404 2019-10-02 Tom Tromey <tromey@adacore.com>
1405
1406 * source.c (struct current_source_location): New.
1407 (current_source_key): New global.
1408 (current_source_symtab, current_source_line)
1409 (current_source_pspace): Remove.
1410 (get_source_location): New function.
1411 (get_current_source_symtab_and_line)
1412 (set_default_source_symtab_and_line)
1413 (set_current_source_symtab_and_line)
1414 (clear_current_source_symtab_and_line, select_source_symtab)
1415 (info_source_command, print_source_lines_base)
1416 (info_line_command, search_command_helper, _initialize_source):
1417 Update.
1418
1419 2019-10-02 Tom Tromey <tromey@adacore.com>
1420
1421 * source.c (select_source_symtab): Don't call
1422 decode_line_with_current_source.
1423
1424 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
1425
1426 * symtab.c (lookup_global_symbol): Search global block.
1427
1428 2019-10-02 Tom Tromey <tromey@adacore.com>
1429
1430 * coffread.c (process_coff_symbol): Update.
1431 * dwarf2read.c (var_decode_location, new_symbol): Update.
1432 * mdebugread.c (parse_symbol): Update.
1433 * objfiles.c (relocate_one_symbol): Update.
1434 * stabsread.c (define_symbol, fix_common_block)
1435 (scan_file_globals): Update.
1436 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
1437 (SET_SYMBOL_VALUE_ADDRESS): New macro.
1438 * xcoffread.c (process_xcoff_symbol): Update.
1439
1440 2019-10-02 Andreas Arnez <arnez@linux.ibm.com>
1441
1442 * MAINTAINERS: Update my email address.
1443
1444 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
1445
1446 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
1447 std::vector.
1448 (build_type_psymtabs_reader): Update for std::vector.
1449 (build_type_psymtab_dependencies): Likewise.
1450 * dwarf2read.h: Remove use of DEF_VEC_P.
1451 (typedef sig_type_ptr): Delete.
1452
1453 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
1454
1455 * btrace.c (btrace_maint_clear): Update to handle change from VEC
1456 to std::vector.
1457 (btrace_maint_decode_pt): Likewise, and move allocation of the
1458 vector outside of the loop.
1459 (btrace_maint_update_packets): Update to handle change from VEC to
1460 std::vector.
1461 (btrace_maint_print_packets): Likewise.
1462 (maint_info_btrace_cmd): Likewise.
1463 * btrace.h: Remove use of DEF_VEC_O.
1464 (typedef btrace_pt_packet_s): Delete.
1465 (struct btrace_maint_info) <packets>: Change fromm VEC to
1466 std::vector.
1467 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
1468
1469 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
1470
1471 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
1472 make accesses into the vector constant references.
1473 (btrace_add_pc): Update for std::vector.
1474 (btrace_stitch_bts): Likewise.
1475 (parse_xml_btrace_block): Likewise.
1476 (btrace_maint_update_packets): Likewise.
1477 (btrace_maint_print_packets): Likewise.
1478 (maint_info_btrace_cmd): Likewise.
1479 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
1480 std::vector.
1481 (btrace_data::empty): Likewise.
1482 (btrace_data_append): Likewise.
1483 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
1484 (typedef btrace_block_s): Delete.
1485 (struct btrace_block): Add constructor.
1486 (struct btrace_data_bts) <blocks>: Change to std::vector.
1487 * nat/linux-btrace.c (perf_event_read_bts): Update for
1488 std::vector.
1489 (linux_read_bts): Likewise.
1490
1491 2019-10-01 Tom Tromey <tom@tromey.com>
1492
1493 * cli/cli-logging.c (show_logging_filename): Use styled_string.
1494
1495 2019-10-01 Tom Tromey <tom@tromey.com>
1496
1497 * stack.c (print_frame, info_frame_command_core): Use
1498 styled_string.
1499 * linux-thread-db.c (try_thread_db_load_1)
1500 (try_thread_db_load_from_pdir_1): Use styled_string.
1501 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
1502 (auto_load_section_scripts, info_auto_load_local_gdbinit)
1503 (maybe_print_unsupported_script_warning)
1504 (maybe_print_script_not_found_warning): Use styled_string.
1505 * ada-lang.c (user_select_syms): Use styled_string.
1506
1507 2019-10-01 Tom Tromey <tom@tromey.com>
1508
1509 * p-lang.c (pascal_printstr): Use metadata style.
1510 * value.c (show_convenience): Use metadata style.
1511 * valprint.c (valprint_check_validity, val_print_optimized_out)
1512 (val_print_not_saved, val_print_unavailable)
1513 (val_print_invalid_address, generic_val_print, val_print)
1514 (value_check_printable, val_print_array_elements): Use metadata
1515 style.
1516 * ui-out.h (class ui_out) <field_fmt>: New overload.
1517 <do_field_fmt>: Add style parameter.
1518 * ui-out.c (ui_out::field_fmt): New overload.
1519 * typeprint.c (type_print_unknown_return_type)
1520 (val_print_not_allocated, val_print_not_associated): Use metadata
1521 style.
1522 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
1523 parameter.
1524 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
1525 * tracepoint.c (tvariables_info_1): Use metadata style.
1526 * stack.c (print_frame_arg, print_frame_info, print_frame)
1527 (info_frame_command_core): Use metadata style.
1528 * skip.c (info_skip_command): Use metadata style.
1529 * rust-lang.c (rust_print_enum): Use metadata style.
1530 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
1531 metadata style.
1532 * python/py-framefilter.c (py_print_single_arg): Use metadata
1533 style.
1534 * printcmd.c (do_one_display, print_variable_and_value): Use
1535 metadata style.
1536 * p-valprint.c (pascal_val_print)
1537 (pascal_object_print_value_fields): Use metadata style.
1538 * p-typeprint.c (pascal_type_print_base): Use metadata style.
1539 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
1540 parameter.
1541 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
1542 * m2-valprint.c (m2_print_long_set): Use metadata style.
1543 * m2-typeprint.c (m2_print_type): Use metadata style.
1544 * infcmd.c (print_return_value_1): Use metadata style.
1545 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
1546 * f-valprint.c (info_common_command_for_block): Use metadata
1547 style.
1548 * f-typeprint.c (f_type_print_base): Use metadata style.
1549 * expprint.c (print_subexp_standard): Use metadata style.
1550 * cp-valprint.c (cp_print_value_fields): Use metadata style.
1551 * cli/cli-style.h (class cli_style_option): Add constructor.
1552 (metadata_style): Declare.
1553 * cli/cli-style.c (metadata_style): New global.
1554 (_initialize_cli_style): Register metadata style.
1555 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
1556 parameter.
1557 * cli-out.c (cli_ui_out::do_field_fmt): Update.
1558 * c-typeprint.c (c_type_print_base_struct_union)
1559 (c_type_print_base_1): Use metadata style.
1560 * breakpoint.c (watchpoint_value_print)
1561 (print_one_breakpoint_location): Use metadata style.
1562 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
1563 style.
1564 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
1565 style.
1566 * ada-valprint.c (val_print_packed_array_elements, printstr)
1567 (print_field_values, ada_val_print_ref, ada_val_print): Use
1568 metadata style.
1569 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
1570 style.
1571 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
1572 style.
1573 * ada-lang.c (user_select_syms): Use metadata style.
1574
1575 2019-10-01 Tom Tromey <tom@tromey.com>
1576
1577 * cli/cli-cmds.c (pwd_command): Style output.
1578
1579 2019-10-01 Pedro Alves <palves@redhat.com>
1580 Tom Tromey <tom@tromey.com>
1581
1582 * symtab.c (print_symbol_info): Use %ps.
1583 (print_msymbol_info): Use %ps.
1584 * symfile.c (symbol_file_add_with_addrs): Use %ps.
1585 * printcmd.c (print_variable_and_value): Use %ps.
1586 * macrocmd.c (show_pp_source_pos): Use %ps.
1587 * infrun.c (print_exited_reason): Use ui_out::message.
1588 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
1589 (describe_other_breakpoints): Use ui_out::message and new
1590 formats.
1591 (say_where): Use new formats.
1592 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
1593 and new formats.
1594
1595 2019-10-01 Pedro Alves <palves@redhat.com>
1596 Tom Tromey <tom@tromey.com>
1597
1598 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
1599 (test_gdb_formats): New function.
1600 (run_tests): Call it.
1601 (test_format_specifier): Update.
1602 * utils.h (fputs_filtered): Update comment.
1603 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
1604 (fputs_styled_unfiltered): Declare.
1605 * utils.c (fputs_styled_unfiltered): New function.
1606 (vfprintf_maybe_filtered): Add gdbfmt parameter.
1607 (vfprintf_filtered): Update.
1608 (vfprintf_unfiltered, vprintf_filtered): Update.
1609 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
1610 * ui-out.h (enum ui_out_flag) <unfiltered_output,
1611 disallow_ui_out_field>: New constants.
1612 (enum class field_kind): New.
1613 (struct base_field_s, struct signed_field_s): New.
1614 (signed_field): New function.
1615 (struct string_field_s): New.
1616 (string_field): New function.
1617 (struct styled_string_s): New.
1618 (styled_string): New function.
1619 (class ui_out) <message>: Add comment.
1620 <vmessage, call_do_message>: New methods.
1621 <do_message>: Add style parameter.
1622 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
1623 methods.
1624 (ui_out::message): Rewrite.
1625 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
1626 parameter.
1627 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
1628 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
1629 gdb_extensions parameter.
1630 (class format_piece): Add parameter to constructor.
1631 (n_int_args): New field.
1632 * gdbsupport/format.c (format_pieces::format_pieces): Add
1633 gdb_extensions parameter. Handle '*'.
1634 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
1635 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
1636 vfprintf_styled_no_gdbfmt.
1637 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
1638 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
1639 unfiltered output.
1640 * ui-style.h (struct ui_file_style) <ptr>: New method.
1641
1642 2019-10-01 Tom Tromey <tom@tromey.com>
1643
1644 * unittests/format_pieces-selftests.c: Update. Add final format.
1645 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
1646 empty literal pieces.
1647
1648 2019-10-01 Tom Tromey <tom@tromey.com>
1649
1650 * ui-out.h (enum class ui_out_style_kind): Remove.
1651 (class ui_out) <field_string, field_stsream, do_field_string>:
1652 Change type of "style".
1653 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
1654 (ui_out::field_string): Update.
1655 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
1656 of "style".
1657 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
1658 * tracepoint.c (print_one_static_tracepoint_marker): Update.
1659 * stack.c (print_frame_arg, print_frame_info, print_frame):
1660 Update.
1661 * source.c (print_source_lines_base): Update.
1662 * solib.c (info_sharedlibrary_command): Update.
1663 * skip.c (info_skip_command): Update.
1664 * record-btrace.c (btrace_call_history_src_line)
1665 (btrace_call_history): Update.
1666 * python/py-framefilter.c (py_print_frame): Update.
1667 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
1668 "style".
1669 * mi/mi-out.c (mi_ui_out::do_table_header)
1670 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
1671 (mi_ui_out::do_field_string): Update.
1672 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
1673 Update.
1674 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
1675 "style".
1676 * cli-out.c (cli_ui_out::do_table_header)
1677 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
1678 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
1679 (cli_ui_out::do_field_fmt): Update.
1680 * breakpoint.c (print_breakpoint_location): Update.
1681 (update_static_tracepoint): Update.
1682
1683 2019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1684
1685 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
1686 conversion of gdb_datadir.
1687 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
1688 remove not needed c_str ().
1689
1690 2019-09-30 Ali Tamur <tamur@google.com>
1691
1692 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
1693 (dwarf2_string_attr): Likewise.
1694
1695 2019-09-30 Ali Tamur <tamur@google.com>
1696
1697 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
1698 (process_full_type_unit): Likewise.
1699 (dump_die_shallow): Likewise.
1700 (cu_debug_loc_section): Likewise.
1701
1702 2019-09-28 Christian Biesinger <cbiesinger@google.com>
1703
1704 * minsyms.c (compare_minimal_symbols): Rename to...
1705 (minimal_symbol_is_less_than): ...this, and adjust to STL
1706 conventions (return bool, take arguments as references)
1707 (minimal_symbol_reader::install): Call std::sort instead
1708 of qsort.
1709
1710 2019-09-29 Christian Biesinger <cbiesinger@google.com>
1711
1712 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
1713 hash and why.
1714 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
1715 msymbol_hash, msymbol_demangled_hash>: Improve comments.
1716
1717 2019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
1718
1719 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
1720 * psympriv.h (add_psymbol_to_list): Move comment here and update
1721 it.
1722
1723 2019-09-29 Tom de Vries <tdevries@suse.de>
1724
1725 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
1726 Use $tmpdir/$(basename "$output_file").dwz instead of
1727 "${output_file}.dwz".
1728
1729 2019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
1730
1731 PR gdb/25045
1732 * hppa-linux-nat.c: Include gdbarch.h.
1733
1734 2019-09-26 Christian Biesinger <cbiesinger@google.com>
1735
1736 * blockframe.c (find_pc_partial_function): Change return type to bool.
1737 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
1738 * minsyms.c (in_gnu_ifunc_stub): Likewise.
1739 (stub_gnu_ifunc_resolve_name): Likewise.
1740 * symtab.c (compare_filenames_for_search): Likewise.
1741 (compare_glob_filenames_for_search): Likewise.
1742 (matching_obj_sections): Likewise.
1743 (symbol_matches_domain): Likewise.
1744 (find_line_symtab): Change out param EXACT_MATCH to bool *.
1745 (find_line_pc): Change return type to bool.
1746 (find_line_pc_range): Likewise.
1747 (producer_is_realview): Likewise.
1748 * symtab.h (symbol_matches_domain): Likewise.
1749 (find_pc_partial_function): Likewise.
1750 (find_pc_line_pc_range): Likewise.
1751 (in_gnu_ifunc_stub): Likewise.
1752 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
1753 (find_line_pc): Likewise.
1754 (find_line_pc_range): Likewise.
1755 (matching_obj_sections): Likewise.
1756 (find_line_symtab): Change out parameter to bool.
1757 (producer_is_realview): Change return type to bool.
1758 (compare_filenames_for_search): Likewise.
1759 (compare_glob_filenames_for_search): Likewise.
1760
1761 2019-09-26 Tom Tromey <tom@tromey.com>
1762
1763 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
1764 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
1765 * gdb_usleep.h: Remove.
1766 * gdb_usleep.c: Remove.
1767 * utils.c: Don't include gdb_usleep.h.
1768
1769 2019-09-26 Tom Tromey <tromey@adacore.com>
1770
1771 * python/py-type.c (type_to_type_object): Call check_typedef
1772 for stub types.
1773
1774 2019-09-26 Tom Tromey <tom@tromey.com>
1775
1776 * utils.h (initialize_utils): Don't declare.
1777 * top.c (gdb_init): Don't call initialize_utils.
1778 * utils.c (initialize_utils): Remove. Move contents...
1779 (_initialize_utils): ... here.
1780
1781 2019-09-25 Tom Tromey <tom@tromey.com>
1782
1783 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
1784 * utils.h (make_hex_string): Don't declare.
1785 * utils.c (make_hex_string): Remove.
1786
1787 2019-09-24 Tom de Vries <tdevries@suse.de>
1788
1789 PR gdb/23815
1790 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
1791 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
1792
1793 2019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
1794
1795 * NEWS: Mention new simulator port for PRU.
1796
1797 2019-09-23 Christian Biesinger <cbiesinger@google.com>
1798
1799 * ada-exp.y (write_object_remaining): Update.
1800 * ada-lang.c (ada_decode): Return a std::string instead of a char*
1801 and eliminate the static buffer.
1802 (ada_decode_symbol): Update.
1803 (ada_la_decode): Update.
1804 (ada_sniff_from_mangled_name): Update.
1805 (is_valid_name_for_wild_match): Update.
1806 (ada_lookup_name_info::matches): Update and simplify.
1807 (name_matches_regex): Update.
1808 (ada_add_global_exceptions): Update.
1809 * ada-lang.h (ada_decode): Update signature.
1810 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
1811 * dwarf-index-write.c (debug_names::insert): Update.
1812
1813 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
1814
1815 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
1816 formatting.
1817
1818 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
1819
1820 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
1821 Change "nonzero" to "true" in documentation.
1822
1823 2019-09-20 Christian Biesinger <cbiesinger@google.com>
1824
1825 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
1826 (_initialize_darwin_solib): Don't set
1827 darwin_so_ops.lookup_lib_global_symbol.
1828 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
1829 set_gdbarch_iterate_over_objfiles_in_search_order.
1830 (elf_lookup_lib_symbol): Rename to...
1831 (svr4_iterate_over_objfiles_in_search_order): this, and update
1832 to iterate semantics.
1833 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
1834 * solib.c (solib_global_lookup): Remove.
1835 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
1836 (solib_global_lookup): Remove.
1837 * symtab.c (lookup_global_or_static_symbol): Remove call to
1838 solib_global_lookup.
1839
1840 2019-09-20 Joel Brobecker <brobecker@adacore.com>
1841
1842 * NEWS: Move entries about default MI version now being
1843 version 3, and about the GDB/MI fix for multi-location
1844 breakpoints to the "since GDB 8.3" section.
1845
1846 2019-09-20 Joel Brobecker <brobecker@adacore.com>
1847
1848 GDB 8.3.1 released.
1849
1850 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
1851
1852 * NEWS: Mention that Cell/B.E. debugging support was removed.
1853 * MAINTAINERS: Remove spu target.
1854
1855 * config/djgpp/fnchange.lst: Remove entries for removed files.
1856
1857 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
1858 spu-multiarch.o, and spu-tdep.o.
1859 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
1860 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
1861 spu-multiarch.c, and spu-tdep.c.
1862 * spu-linux-nat.c: Remove file.
1863 * spu-multiarch.c: Remove file.
1864 * spu-tdep.c: Remove file.
1865 * spu-tdep.h: Remove file.
1866 * solib-spu.c: Remove file.
1867 * solib-spu.h: Remove file.
1868
1869 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
1870 * configure.nat (spu-linux): Remove.
1871 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
1872 solib-multiarch.o from gdb_target_obs.
1873 (spu*-*-*): Remove.
1874
1875 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
1876 feature flag.
1877 (ppc_linux_no_features): Update.
1878 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
1879 Cell/B.E. support.
1880 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
1881 (tdesc_powerpc_cell64l): Likewise.
1882 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
1883 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
1884 Cell/B.E. support.
1885 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
1886 Do not include "features/rs6000/powerpc-cell32l.c" or
1887 "features/rs6000/powerpc-cell64l.c".
1888 (ppc_linux_spu_section): Remove.
1889 (ppc_linux_core_read_description): Remove Cell/B.E. support.
1890 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
1891 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
1892 (ppc_linux_spe_context_lookup): Remove.
1893 (ppc_linux_spe_context_inferior_created): Remove.
1894 (ppc_linux_spe_context_solib_loaded): Remove.
1895 (ppc_linux_spe_context_solib_unloaded): Remove.
1896 (ppc_linux_spe_context): Remove.
1897 (struct ppu2spu_cache): Remove.
1898 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
1899 (struct ppu2spu_data): Remove.
1900 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
1901 ppu2spu_unwind): Remove.
1902 (ppc_linux_init_abi): Remove Cell/B.E. support.
1903 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
1904
1905 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
1906 (rs6000/powerpc-cell64l-expedite): Likewise
1907 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
1908 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
1909 rs6000/powerpc-cell64l.xml.
1910 * features/rs6000/powerpc-cell32l.xml: Remove.
1911 * features/rs6000/powerpc-cell64l.xml: Likewise.
1912 * features/rs6000/powerpc-cell32l.c: Remove generated file.
1913 * features/rs6000/powerpc-cell64l.c: Likewise.
1914 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
1915 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
1916 * regformats/reg-spu.dat: Remove.
1917
1918 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
1919 * corelow.c (struct spuid_list): Remove.
1920 (add_to_spuid_list): Remove.
1921 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
1922 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
1923 (remote_protocol_features): Remove associated entries.
1924 (_initialize_remote): No longer initialize them.
1925 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
1926 * linux-nat.c (SPUFS_MAGIC): Remove.
1927 (linux_proc_xfer_spu): Remove.
1928 (spu_enumerate_spu_ids): Remove.
1929 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
1930 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
1931 (linux_make_corefile_notes): No longer call it.
1932
1933 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
1934 (cooked_write_test): Likewise.
1935
1936 2019-09-20 Tom Tromey <tom@tromey.com>
1937
1938 * NEWS: Mention case-sensitivity of TUI commands.
1939 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
1940 (tui_set_win_height_command, parse_scrolling_args): Likewise.
1941 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
1942
1943 2019-09-20 Tom Tromey <tom@tromey.com>
1944
1945 * tui/tui-source.c (tui_source_window::set_contents): Use
1946 make_unique_xstrdup.
1947 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
1948 make_unique_xstrdup.
1949
1950 2019-09-20 Tom Tromey <tom@tromey.com>
1951
1952 * tui/tui-data.c: Remove separator comments.
1953 * tui/tui-layout.c: Remove separator comments.
1954 * tui/tui-win.c: Remove separator comments.
1955 * tui/tui-wingeneral.c: Remove separator comments.
1956
1957 2019-09-20 Tom Tromey <tom@tromey.com>
1958
1959 * tui/tui.h (strcat_to_buf): Don't declare.
1960 * tui/tui.c (strcat_to_buf): Remove.
1961
1962 2019-09-20 Tom Tromey <tom@tromey.com>
1963
1964 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
1965 from "fullname".
1966 * tui/tui-source.c (tui_source_window::set_contents)
1967 (tui_source_window::location_matches_p)
1968 (tui_source_window::maybe_update): Update.
1969
1970 2019-09-20 Tom Tromey <tom@tromey.com>
1971
1972 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
1973 Update.
1974 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
1975 prefix.
1976 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
1977 (tui_data_window::line_from_reg_element_no)
1978 (tui_data_window::first_reg_element_no_inline)
1979 (tui_data_window::show_registers)
1980 (tui_data_window::show_register_group)
1981 (tui_data_window::display_registers_from)
1982 (tui_data_window::display_registers_from_line)
1983 (tui_data_window::first_data_item_displayed)
1984 (tui_data_window::delete_data_content_windows)
1985 (tui_data_window::erase_data_content)
1986 (tui_data_window::do_scroll_vertical)
1987 (tui_data_window::refresh_window)
1988 (tui_data_window::check_register_values): Update.
1989
1990 2019-09-20 Tom Tromey <tom@tromey.com>
1991
1992 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
1993 (struct tui_locator_window) <full_name, proc_name>: Now
1994 std::string.
1995 * tui/tui-stack.c (tui_locator_window::make_status_line)
1996 (tui_locator_window::set_locator_fullname)
1997 (tui_locator_window::set_locator_info): Update.
1998 * tui/tui-source.c (tui_source_window::set_contents)
1999 (tui_source_window::showing_source_p): Update.
2000
2001 2019-09-20 Tom Tromey <tom@tromey.com>
2002
2003 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
2004 Don't call tui_locator_win_info_ptr.
2005
2006 2019-09-20 Tom Tromey <tom@tromey.com>
2007
2008 * tui/tui-win.c (tui_resize_all): Don't call refresh.
2009
2010 2019-09-20 Tom Tromey <tom@tromey.com>
2011
2012 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
2013 height for locator.
2014 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
2015 * tui/tui-layout.c (show_source_disasm_command, show_data)
2016 (show_source_or_disasm_and_command): Use 1 as height for locator.
2017
2018 2019-09-20 Tom Tromey <tom@tromey.com>
2019
2020 * tui/tui.c (tui_enable): Update.
2021 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
2022 Update.
2023 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
2024 Update.
2025 * tui/tui-data.c (win_resized): Now bool.
2026 (tui_win_resized): Return bool.
2027 (tui_set_win_resized_to): Accept a bool.
2028
2029 2019-09-20 Tom Tromey <tom@tromey.com>
2030
2031 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
2032 Change type of "refresh_values_only".
2033 * tui/tui-regs.c (tui_data_window::show_register_group): Change
2034 type of "refresh_values_only".
2035
2036 2019-09-20 Tom Tromey <tom@tromey.com>
2037
2038 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
2039 std::string.
2040 (tui_disassemble): Add "pos" parameter.
2041 (tui_disasm_window::set_contents): Simplify.
2042
2043 2019-09-20 Tom Tromey <tom@tromey.com>
2044
2045 * tui/tui-winsource.h (struct tui_source_window_base)
2046 <show_source_content>: Now private.
2047 * tui/tui-winsource.c
2048 (tui_source_window_base::show_source_content): Don't handle empty
2049 content case.
2050
2051 2019-09-20 Tom Tromey <tom@tromey.com>
2052
2053 * tui/tui-layout.c (show_source_disasm_command)
2054 (show_source_or_disasm_and_command): Don't call
2055 show_source_content.
2056
2057 2019-09-20 Tom Tromey <tom@tromey.com>
2058
2059 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
2060 Declare.
2061 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
2062 from tui_make_status_line.
2063 (tui_locator_window::rerender): Update.
2064
2065 2019-09-20 Tom Tromey <tom@tromey.com>
2066
2067 * tui/tui-stack.c (tui_make_status_line): Return std::string.
2068 (tui_locator_window::rerender): Update.
2069
2070 2019-09-20 Tom Tromey <tom@tromey.com>
2071
2072 * tui/tui-winsource.h (struct tui_source_window_base)
2073 <~tui_source_window_base>: Don't declare.
2074 <fullname>: Remove.
2075 * tui/tui-winsource.c (~tui_source_window_base): Remove.
2076 * tui/tui-source.h (struct tui_source_window) <fullname>: New
2077 member.
2078 * tui/tui-source.c (tui_source_window::set_contents): Update.
2079 (tui_source_window::location_matches_p)
2080 (tui_source_window::maybe_update): Update.
2081
2082 2019-09-20 Tom Tromey <tom@tromey.com>
2083
2084 * tui/tui-winsource.h (~tui_source_element): Remove.
2085 (tui_source_element): Update.
2086 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
2087 * tui/tui-winsource.c (tui_show_source_line): Update.
2088 * tui/tui-source.c (tui_source_window::set_contents): Update.
2089 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
2090
2091 2019-09-20 Tom Tromey <tom@tromey.com>
2092
2093 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
2094 declare.
2095 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
2096 tui_clear_source_windows_detail.
2097 * tui/tui-winsource.h (struct tui_source_window_base)
2098 <clear_detail>: Don't declare.
2099 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
2100 Remove.
2101 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
2102
2103 2019-09-20 Tom Tromey <tromey@adacore.com>
2104
2105 PR ada/24919:
2106 * block.c (contained_in): Fix final return value.
2107
2108 2019-09-20 Alan Modra <amodra@gmail.com>
2109
2110 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
2111 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
2112 (read_indirect_string_from_dwz): Use bfd accessor.
2113 * dwarf2read.h (struct dwz_file <filename>): Likewise.
2114 * machoread.c (macho_symfile_read_all_oso): Likewise.
2115 * solib.c (solib_bfd_open): Likewise.
2116
2117 2019-09-19 Christian Biesinger <cbiesinger@google.com>
2118
2119 * eval.c: Move declaration of overload_resolution to...
2120 * value.h: ...here.
2121
2122 2019-09-19 Christian Biesinger <cbiesinger@google.com>
2123
2124 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
2125 * arm-linux-tdep.c: Likewise.
2126 * arm-nbsd-nat.c: Likewise.
2127 * arm-tdep.h: Declare arm_apcs_32.
2128 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
2129
2130 2019-09-19 Christian Biesinger <cbiesinger@google.com>
2131
2132 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
2133 * dwarf2read.h: Declare dwarf_always_disassemble.
2134
2135 2019-09-19 Tom de Vries <tdevries@suse.de>
2136
2137 PR gdb/25009
2138 * source-cache.c (source_cache::ensure): Catch exception thrown during
2139 construction of the highlighter.
2140
2141 2019-09-18 Alan Modra <amodra@gmail.com>
2142
2143 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
2144 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
2145 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
2146 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
2147 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
2148 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
2149 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
2150 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
2151 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
2152 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
2153 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
2154 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
2155 * solib-spu.c, * solib-svr4.c, * solib-target.c,
2156 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
2157 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
2158 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
2159 * mi/mi-interp.c: Update throughout for bfd section macro and
2160 function changes.
2161 * gcore (gcore_create_callback): Use bfd_set_section_lma.
2162 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
2163
2164 2019-09-18 Tom Tromey <tom@tromey.com>
2165
2166 * NEWS: Add entry.
2167 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
2168 call rl_initialize.
2169 (tui_enable): Do not call rl_initialize.
2170
2171 2019-09-18 Christian Groessler <chris@groessler.org>
2172
2173 * alpha-linux-nat.c: Include gdbarch.h.
2174
2175 2019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
2176
2177 * ui-file.c: Include cli/cli-style.h.
2178 (term_cli_styling): Remove cli_styling declaration.
2179
2180 2019-09-18 Alan Modra <amodra@gmail.com>
2181
2182 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
2183 to bfd_asymbol_section.
2184
2185 2019-09-18 Alan Modra <amodra@gmail.com>
2186
2187 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
2188 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
2189 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
2190
2191 2019-09-18 Alan Modra <amodra@gmail.com>
2192
2193 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
2194 * spu-linux-nat.c (spu_bfd_open): Likewise.
2195
2196 2019-09-18 Christian Biesinger <cbiesinger@google.com>
2197
2198 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
2199 to bool to match definition in dwarf2read.c.
2200
2201 2019-09-17 Christian Biesinger <cbiesinger@google.com>
2202
2203 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
2204 (print_signatures): Likewise.
2205 (trust_pad_over_xvs): Likewise.
2206 * arch/aarch64-insn.c (aarch64_debug): Likewise.
2207 * arch/aarch64-insn.h (aarch64_debug): Likewise.
2208 * arm-linux-nat.c (arm_apcs_32): Likewise.
2209 * arm-linux-tdep.c (arm_apcs_32): Likewise.
2210 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
2211 * arm-tdep.c (arm_debug): Likewise.
2212 (arm_apcs_32): Likewise.
2213 * auto-load.c (debug_auto_load): Likewise.
2214 (auto_load_gdb_scripts): Likewise.
2215 (global_auto_load): Likewise.
2216 (auto_load_local_gdbinit): Likewise.
2217 (auto_load_local_gdbinit_loaded): Likewise.
2218 * auto-load.h (global_auto_load): Likewise.
2219 (auto_load_local_gdbinit): Likewise.
2220 (auto_load_local_gdbinit_loaded): Likewise.
2221 * breakpoint.c (disconnected_dprintf): Likewise.
2222 (breakpoint_proceeded): Likewise.
2223 (automatic_hardware_breakpoints): Likewise.
2224 (always_inserted_mode): Likewise.
2225 (target_exact_watchpoints): Likewise.
2226 (_initialize_breakpoint): Update.
2227 * breakpoint.h (target_exact_watchpoints): Change to bool.
2228 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
2229 * cli/cli-cmds.c (trace_commands): Likewise.
2230 * cli/cli-cmds.h (trace_commands): Likewise.
2231 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
2232 to bool*.
2233 * cli/cli-logging.c (logging_overwrite): Change to bool.
2234 (logging_redirect): Likewise.
2235 (debug_redirect): Likewise.
2236 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
2237 (struct boolean_option_def) <get_var_address_cb_>: Change return type
2238 to bool.
2239 <boolean_option_def>: Update.
2240 (struct flag_option_def): Change default type of Context to bool
2241 from int.
2242 <flag_option_def>: Change return type of var_address_cb_ to bool*.
2243 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
2244 (get_setshow_command_value_string): Likewise.
2245 * cli/cli-style.c (cli_styling): Change to bool.
2246 (source_styling): Likewise.
2247 * cli/cli-style.h (source_styling): Likewise.
2248 (cli_styling): Likewise.
2249 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
2250 to bool.
2251 * command.h (var_types): Update comment.
2252 (add_setshow_boolean_cmd): Change int* var argument to bool*.
2253 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
2254 bool.
2255 (debug_compile_cplus_scopes): Likewise.
2256 * compile/compile-internal.h (compile_debug): Likewise.
2257 * compile/compile.c (compile_debug): Likewise.
2258 (struct compile_options) <raw>: Likewise.
2259 * cp-support.c (catch_demangler_crashes): Likewise.
2260 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
2261 (usr_cmd_cris_dwarf2_cfi): Likewise.
2262 * csky-tdep.c (csky_debug): Likewise.
2263 * darwin-nat.c (enable_mach_exceptions): Likewise.
2264 * dcache.c (dcache_enabled_p): Likewise.
2265 * defs.h (info_verbose): Likewise.
2266 * demangle.c (demangle): Likewise.
2267 (asm_demangle): Likewise.
2268 * dwarf-index-cache.c (debug_index_cache): Likewise.
2269 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
2270 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
2271 * dwarf2read.c (check_physname): Likewise.
2272 (use_deprecated_index_sections): Likewise.
2273 (dwarf_always_disassemble): Likewise.
2274 * eval.c (overload_resolution): Likewise.
2275 * event-top.c (set_editing_cmd_var): Likewise.
2276 (exec_done_display_p): Likewise.
2277 * event-top.h (set_editing_cmd_var): Likewise.
2278 (exec_done_display_p): Likewise.
2279 * exec.c (write_files): Likewise.
2280 * fbsd-nat.c (debug_fbsd_lwp): Likewise
2281 (debug_fbsd_nat): Likewise.
2282 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
2283 Likewise.
2284 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
2285 <backtrace_past_entry> Likewise.
2286 * gdb-demangle.h (demangle): Likewise.
2287 (asm_demangle): Likewise.
2288 * gdb_bfd.c (bfd_sharing): Likewise.
2289 * gdbcore.h (write_files): Likewise.
2290 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
2291 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
2292 * gdbthread.h (print_thread_events): Likewise.
2293 * gdbtypes.c (opaque_type_resolution): Likewise.
2294 (strict_type_checking): Likewise.
2295 * gnu-nat.c (gnu_debug_flag): Likewise.
2296 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
2297 * guile/scm-param.c (pascm_variable): Add boolval.
2298 (add_setshow_generic): Update.
2299 (pascm_param_value): Update.
2300 (pascm_set_param_value_x): Update.
2301 * hppa-tdep.c (hppa_debug): Change to bool..
2302 * infcall.c (may_call_functions_p): Likewise.
2303 (coerce_float_to_double_p): Likewise.
2304 (unwind_on_signal_p): Likewise.
2305 (unwind_on_terminating_exception_p): Likewise.
2306 * infcmd.c (startup_with_shell): Likewise.
2307 * inferior.c (print_inferior_events): Likewise.
2308 * inferior.h (startup_with_shell): Likewise.
2309 (print_inferior_events): Likewise.
2310 * infrun.c (step_stop_if_no_debug): Likewise.
2311 (detach_fork): Likewise.
2312 (debug_displaced): Likewise.
2313 (disable_randomization): Likewise.
2314 (non_stop): Likewise.
2315 (non_stop_1): Likewise.
2316 (observer_mode): Likewise.
2317 (observer_mode_1): Likewise.
2318 (set_observer_mode): Update.
2319 (sched_multi): Change to bool.
2320 * infrun.h (debug_displaced): Likewise.
2321 (sched_multi): Likewise.
2322 (step_stop_if_no_debug): Likewise.
2323 (non_stop): Likewise.
2324 (disable_randomization): Likewise.
2325 * linux-tdep.c (use_coredump_filter): Likewise.
2326 (dump_excluded_mappings): Likewise.
2327 * linux-thread-db.c (auto_load_thread_db): Likewise.
2328 (check_thread_db_on_load): Likewise.
2329 * main.c (captured_main_1): Update.
2330 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
2331 xx2_opt, boolean_opt>: Change to bool.
2332 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
2333 * maint.c (maintenance_profile_p): Likewise.
2334 (per_command_time): Likewise.
2335 (per_command_space): Likewise.
2336 (per_command_symtab): Likewise.
2337 * memattr.c (inaccessible_by_default): Likewise.
2338 * mi/mi-main.c (mi_async): Likewise.
2339 (mi_async_1): Likewise.
2340 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
2341 * nat/fork-inferior.h (startup_with_shell): Likewise.
2342 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
2343 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
2344 * nios2-tdep.c (nios2_debug): Likewise.
2345 * or1k-tdep.c (or1k_debug): Likewise.
2346 * parse.c (parser_debug): Likewise.
2347 * parser-defs.h (parser_debug): Likewise.
2348 * printcmd.c (print_symbol_filename): Likewise.
2349 * proc-api.c (procfs_trace): Likewise.
2350 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
2351 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
2352 (set_parameter_value): Update.
2353 (add_setshow_generic): Update.
2354 * python/py-value.c (copy_py_bool_obj): Change argument from int*
2355 to bool*.
2356 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
2357 int*.
2358 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
2359 * record-btrace.c (record_btrace_target::store_registers): Update.
2360 * record-full.c (record_full_memory_query): Change to bool.
2361 (record_full_stop_at_limit): Likewise.
2362 * record-full.h (record_full_memory_query): Likewise.
2363 * remote-notif.c (notif_debug): Likewise.
2364 * remote-notif.h (notif_debug): Likewise.
2365 * remote.c (use_range_stepping): Likewise.
2366 (interrupt_on_connect): Likewise.
2367 (remote_break): Likewise.
2368 * ser-tcp.c (tcp_auto_retry): Likewise.
2369 * ser-unix.c (serial_hwflow): Likewise.
2370 * skip.c (debug_skip): Likewise.
2371 * solib-aix.c (solib_aix_debug): Likewise.
2372 * spu-tdep.c (spu_stop_on_load_p): Likewise.
2373 (spu_auto_flush_cache_p): Likewise.
2374 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
2375 Likewise.
2376 (struct info_print_options) <quiet>: Likewise.
2377 * symfile-debug.c (debug_symfile): Likewise.
2378 * symfile.c (auto_solib_add): Likewise.
2379 (separate_debug_file_debug): Likewise.
2380 * symfile.h (auto_solib_add): Likewise.
2381 (separate_debug_file_debug): Likewise.
2382 * symtab.c (basenames_may_differ): Likewise.
2383 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
2384 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
2385 (struct info_types_options) <quiet>: Likewise.
2386 * symtab.h (demangle): Likewise.
2387 (basenames_may_differ): Likewise.
2388 * target-dcache.c (stack_cache_enabled_1): Likewise.
2389 (code_cache_enabled_1): Likewise.
2390 * target.c (trust_readonly): Likewise.
2391 (may_write_registers): Likewise.
2392 (may_write_memory): Likewise.
2393 (may_insert_breakpoints): Likewise.
2394 (may_insert_tracepoints): Likewise.
2395 (may_insert_fast_tracepoints): Likewise.
2396 (may_stop): Likewise.
2397 (auto_connect_native_target): Likewise.
2398 (target_stop_and_wait): Update.
2399 (target_async_permitted): Change to bool.
2400 (target_async_permitted_1): Likewise.
2401 (may_write_registers_1): Likewise.
2402 (may_write_memory_1): Likewise.
2403 (may_insert_breakpoints_1): Likewise.
2404 (may_insert_tracepoints_1): Likewise.
2405 (may_insert_fast_tracepoints_1): Likewise.
2406 (may_stop_1): Likewise.
2407 * target.h (target_async_permitted): Likewise.
2408 (may_write_registers): Likewise.
2409 (may_write_memory): Likewise.
2410 (may_insert_breakpoints): Likewise.
2411 (may_insert_tracepoints): Likewise.
2412 (may_insert_fast_tracepoints): Likewise.
2413 (may_stop): Likewise.
2414 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
2415 (make_thread_apply_all_options_def_group): Change argument from int*
2416 to bool*.
2417 (thread_apply_all_command): Update.
2418 (print_thread_events): Change to bool.
2419 * top.c (confirm): Likewise.
2420 (command_editing_p): Likewise.
2421 (history_expansion_p): Likewise.
2422 (write_history_p): Likewise.
2423 (info_verbose): Likewise.
2424 * top.h (confirm): Likewise.
2425 (history_expansion_p): Likewise.
2426 * tracepoint.c (disconnected_tracing): Likewise.
2427 (circular_trace_buffer): Likewise.
2428 * typeprint.c (print_methods): Likewise.
2429 (print_typedefs): Likewise.
2430 * utils.c (debug_timestamp): Likewise.
2431 (sevenbit_strings): Likewise.
2432 (pagination_enabled): Likewise.
2433 * utils.h (sevenbit_strings): Likewise.
2434 (pagination_enabled): Likewise.
2435 * valops.c (overload_resolution): Likewise.
2436 * valprint.h (struct value_print_options) <prettyformat_arrays,
2437 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
2438 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
2439 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
2440 Likewise.
2441 * windows-nat.c (new_console): Likewise.
2442 (cygwin_exceptions): Likewise.
2443 (new_group): Likewise.
2444 (debug_exec): Likewise.
2445 (debug_events): Likewise.
2446 (debug_memory): Likewise.
2447 (debug_exceptions): Likewise.
2448 (useshell): Likewise.
2449 * windows-tdep.c (maint_display_all_tib): Likewise.
2450 * xml-support.c (debug_xml): Likewise.
2451
2452 2019-09-17 Mike Gulick <mgulick@mathworks.com>
2453
2454 * source.c (prepare_path_for_appending): New function.
2455 (openp): Make use of new function.
2456 (find_and_open_source): Search for the compilation directory and
2457 source file as a relative path beneath the directory search path.
2458
2459 2019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
2460
2461 * source-cache.c (source_cache::get_line_charpos): Catch
2462 exceptions and return false, this matches the behaviour documented
2463 in the header file.
2464
2465 2019-09-17 Joel Brobecker <brobecker@adacore.com>
2466
2467 * ada-tasks.c (info_task): Remove quoting of the task's name.
2468
2469 2019-09-16 Christian Biesinger <cbiesinger@google.com>
2470
2471 * symfile.c (auto_solib_add): Replace comment with a reference
2472 to the header file.
2473
2474 2019-09-14 Christian Biesinger <cbiesinger@google.com>
2475
2476 * NEWS: Mention that gdb can now be compiled with Python 3
2477 on Windows.
2478
2479 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
2480
2481 * maint.c (maint_print_section_data::maint_print_section_data):
2482 Force use of 'float log10 (float)' by casting the argument to
2483 float.
2484
2485 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
2486
2487 * maint.c: Add 'cmath' include.
2488 (struct maint_print_section_data): New structure.
2489 (print_section_index): New function.
2490 (print_bfd_section_info): Add header comment, small whitespace
2491 cleanup, and update to call new print_section_index function.
2492 (print_objfile_section_info): Likewise.
2493 (maint_obj_section_from_bfd_section): New function.
2494 (print_bfd_section_info_maybe_relocated): New function.
2495 (maintenance_info_sections): Add header comment, always use
2496 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
2497
2498 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
2499
2500 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
2501 inner scope, add check that the objfile has psymtabs before
2502 checking psymtabs_addrmap.
2503 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
2504
2505 2019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2506
2507 * NEWS: Announce that Ada task names are now shown at more places,
2508 and between quotes (except in info task output).
2509 * gdb/ada-tasks.c (task_to_str): New function.
2510 (display_current_task_id): Call task_to_str.
2511 (task_command_1): Likewise.
2512 (print_ada_task_info): In non-mi mode, Properly align headers and data
2513 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
2514
2515 2019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2516
2517 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
2518 prstatus.pr_lwp.pr_info instead of making it up.
2519
2520 2019-09-11 Christian Biesinger <cbiesinger@google.com>
2521
2522 * auto-load.c (auto_load_expand_dir_vars): Update.
2523 * defs.h (gdb_datadir): Change to std::string.
2524 (python_libdir): Likewise.
2525 (relocate_gdb_directory): Change return type to std::string.
2526 * guile/guile.c (gdbscm_data_directory): Update.
2527 (initialize_scheme_side): Update.
2528 * jit.c (jit_reader_dir): Change to std::string.
2529 (jit_reader_load_command): Update.
2530 * main.c (gdb_datadir): Change to std::string.
2531 (python_libdir): Likewise.
2532 (set_gdb_data_directory): Update.
2533 (relocate_path): Change to return std::string.
2534 (relocate_gdb_directory): Change to return std::string.
2535 (relocate_gdbinit_path_maybe_in_datadir): Update.
2536 (captured_main_1): Update.
2537 * python/python.c (do_start_initialization): Update.
2538 * top.c (show_gdb_datadir): Update.
2539 * xml-syscall.c (xml_init_syscalls_info): Update.
2540 (init_syscalls_info): Update.
2541
2542 2019-09-11 Christian Biesinger <cbiesinger@google.com>
2543
2544 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
2545 out of get_init_files.
2546 (get_init_files): Update.
2547
2548 2019-09-11 Christian Biesinger <cbiesinger@google.com>
2549
2550 * main.c (get_init_files): Change to use std::string.
2551 (captured_main_1): Update.
2552 (print_gdb_help): Update.
2553
2554 2019-09-11 Ali Tamur <tamur@google.com>
2555
2556 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
2557 implementation.
2558
2559 2019-09-11 Christian Biesinger <cbiesinger@google.com>
2560
2561 * dbxread.c (read_dbx_symtab): Update.
2562 * dwarf2read.c (load_partial_dies): Update.
2563 * mdebugread.c (parse_partial_symbols): Update.
2564 (handle_psymbol_enumerators): Update.
2565 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
2566 * psymtab.c (add_psymbol_to_bcache): Likewise.
2567 (add_psymbol_to_list): Likewise.
2568 * symtab.c (symbol_set_names): Likewise.
2569 * symtab.h (symbol_set_names): Likewise.
2570 * xcoffread.c (scan_xcoff_symtab): Update.
2571
2572 2019-09-11 Tom Tromey <tom@tromey.com>
2573
2574 * symfile-mem.c (symbol_file_add_from_memory): Use
2575 bfd_set_filename.
2576 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
2577 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
2578
2579 2019-09-10 Tom Tromey <tromey@adacore.com>
2580
2581 * dwarf-index-write.c (write_psymbols): Extend error message.
2582 (debug_names::insert): Add Ada code.
2583 (debug_names::write_psymbols): Remove Ada check.
2584 (debug_names) <m_string_obstack>: New member.
2585 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
2586 (gdb_index_symbol_name_matcher::matches): Remove.
2587 (mapped_index_base::find_name_components_bounds): Add "lang"
2588 parameter.
2589 (mapped_index_base::build_name_components): Also split names
2590 according to Ada syntax.
2591 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
2592 type of "match_callback".
2593 (check_match, check_find_bounds_finds)
2594 (dw2_expand_symtabs_matching): Update.
2595 (dw2_debug_names_iterator): Add new constructor.
2596 (dw2_debug_names_map_matching_symbols): New function.
2597 (dw2_debug_names_expand_symtabs_matching): Update.
2598 (dwarf2_debug_names_functions): Use
2599 dw2_debug_names_map_matching_symbols.
2600
2601 2019-09-10 Tom Tromey <tromey@adacore.com>
2602
2603 * dwarf2read.c (dw2_get_file_names_reader): Add the
2604 CU's file name to the results.
2605
2606 2019-09-10 Tom Tromey <tromey@adacore.com>
2607
2608 * ada-lang.c (add_nonlocal_symbols): Combine calls to
2609 map_matching_symbols. Update.
2610 * dwarf2read.c (dw2_map_matching_symbols): Update.
2611 * psymtab.c (match_partial_symbol): Change type; update.
2612 (psym_map_matching_symbols): Likewise.
2613 * symfile-debug.c (debug_qf_map_matching_symbols): Change
2614 type; update.
2615 * symfile.h (struct quick_symbol_functions)
2616 <map_matching_symbols>: Change "name" to be a lookup_name_info.
2617 Remove "match".
2618
2619 2019-09-10 Tom Tromey <tromey@adacore.com>
2620
2621 * psymtab.c (map_block): Remove.
2622 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
2623 * symtab.c (iterate_over_symbols_terminated): New function.
2624 * symtab.c (iterate_over_symbols_terminated): Declare.
2625
2626 2019-09-10 Tom Tromey <tromey@adacore.com>
2627
2628 * ada-lang.c (ada_iterate_over_symbols): Return bool.
2629 * language.h (struct language_defn) <la_iterate_over_symbols>:
2630 Return bool.
2631 * symtab.c (iterate_over_symbols): Return bool.
2632 * symtab.h (iterate_over_symbols): Return bool.
2633
2634 2019-09-10 Tom Tromey <tromey@adacore.com>
2635
2636 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
2637 (add_nonlocal_symbols): Update.
2638 * dwarf2read.c (dw2_map_matching_symbols): Change type.
2639 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
2640 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
2641 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
2642 Change type of "callback". Remove "data".
2643
2644
2645 2019-09-09 Ali Tamur <tamur@google.com>
2646
2647 * dwarf2read.c (comp_unit_head): Update comment.
2648 (dwarf2_dwo_name): New function declaration.
2649 (dwarf_unit_type_name): New function declaration.
2650 (read_comp_unit_head): Add support for new compilation units,
2651 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
2652 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
2653 (currently named as "signature") in their header. Also clarify error
2654 messages.
2655 (lookup_dwo_id): New function. Returns the dwo id of the given
2656 compile unit.
2657 (lookup_dwo_unit): Use the new lookup_dwo_id function.
2658 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
2659 functions.
2660 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
2661 (dwarf2_dwo_name): Get the dwo name if present.
2662 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
2663 purposes.
2664
2665 2019-09-09 Tom Tromey <tom@tromey.com>
2666
2667 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
2668
2669 2019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2670
2671 * python/python.c (do_start_initialization): Make progname_copy static,
2672 to avoid a leak report.
2673
2674 2019-09-08 Tom Tromey <tom@tromey.com>
2675
2676 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
2677
2678 2019-09-07 Simon Marchi <simon.marchi@efficios.com>
2679
2680 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
2681 Change type to gdb::optional<block_enum>.
2682 (dw2_symtab_iter_init): Change block_index parameter type
2683 to gdb::optional<block_enum>.
2684 (dw2_lookup_symbol): Change block_index parameter
2685 type to block_enum.c
2686 (dw2_debug_names_lookup_symbol): Likewise.
2687 * psymtab.c (psym_lookup_symbol): Likewise.
2688 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
2689 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
2690 Likewise.
2691
2692 2019-09-06 Christian Biesinger <cbiesinger@google.com>
2693
2694 * defs.h (relocate_gdb_directory): Change int to bool in
2695 signature and rename flag to relocatable.
2696 * main.c (relocate_path): Likewise.
2697 (relocate_gdb_directory): Likewise.
2698
2699 2019-09-06 Alan Modra <amodra@gmail.com>
2700
2701 * coffread.c (coff_symfile_read): Constify filename variable.
2702 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
2703 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
2704 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
2705 * solib.c (reload_shared_libraries_1): Likewise.
2706 * symfile.c (reread_symbols): Likewise.
2707 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
2708 * solib-darwin.c (darwin_bfd_open): Likewise.
2709 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
2710
2711 2019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
2712
2713 * psymtab.c (print_partial_symbols): Handle missing domain_enum
2714 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
2715
2716 2019-09-03 Tom Tromey <tromey@adacore.com>
2717
2718 * ada-valprint.c (ada_val_print_num): Don't recurse for range
2719 types.
2720 (has_negatives): Unbias a range type bound.
2721 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
2722 * gdbtypes.c (operator==): Handle new field.
2723 (create_range_type): Add "bias" parameter.
2724 (create_static_range_type, resolve_dynamic_range): Update.
2725 * gdbtypes.h (struct range_bounds) <bias>: New member.
2726 (create_range_type): Add bias parameter.
2727 * printcmd.c (print_scalar_formatted): Unbias range types.
2728 * value.c (unpack_long): Unbias range types.
2729 (pack_long): Bias range types.
2730
2731 2019-09-02 Alan Hayward <alan.hayward@arm.com>
2732
2733 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
2734 probe arguments.
2735
2736 2019-09-02 Alan Hayward <alan.hayward@arm.com>
2737
2738 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
2739 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
2740 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
2741 (compile_probe_arg): Likewise.
2742 * probe.h (get_argument_count): Likewise.
2743 * solib-svr4.c (solib_event_probe_action): Likewise.
2744 * stap-probe.c (stap_probe::get_argument_count): Likewise.
2745
2746 2019-09-02 Alan Hayward <alan.hayward@arm.com>
2747
2748 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
2749 code to here...
2750 (svr4_create_solib_event_breakpoints): ...from here.
2751
2752 2019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
2753
2754 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
2755 suffix from warning message.
2756
2757 2019-08-30 Tom Tromey <tom@tromey.com>
2758
2759 * tui/tui-winsource.h (struct tui_source_window_base)
2760 <refresh_all>: Don't declare.
2761 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
2762 Remove.
2763 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
2764 tui_show_locator_content.
2765 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
2766 declare.
2767 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
2768 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
2769 declare.
2770
2771 2019-08-30 Tom Tromey <tom@tromey.com>
2772
2773 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
2774
2775 2019-08-30 Tom Tromey <tom@tromey.com>
2776
2777 * tui/tui-stack.c (_initialize_tui_stack): Move later.
2778 Remove unnecessary forward declarations.
2779
2780 2019-08-30 Tom Tromey <tom@tromey.com>
2781
2782 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
2783 rerender.
2784 (tui_update_locator_fullname, tui_show_frame_info): Don't call
2785 tui_show_locator_content.
2786
2787 2019-08-30 Tom Tromey <tom@tromey.com>
2788
2789 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
2790 (tui_locator_window::rerender): Rewrite using body of previous
2791 tui_show_locator_content.
2792
2793 2019-08-30 Tom Tromey <tom@tromey.com>
2794
2795 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
2796 set_locator_fullname>: New methods.
2797 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
2798 Rename from tui_set_locator_fullname.
2799 (tui_locator_window::set_locator_info): Rename from
2800 tui_set_locator_info. Return bool.
2801 (tui_update_locator_fullname, tui_show_frame_info): Update.
2802
2803 2019-08-30 Tom Tromey <tom@tromey.com>
2804
2805 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
2806
2807 2019-08-30 Tom Tromey <tom@tromey.com>
2808
2809 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
2810 call touchwin.
2811
2812 2019-08-30 Tom Tromey <tom@tromey.com>
2813
2814 * tui/tui-wingeneral.c (box_win): Assume win_info and
2815 win_info->handle cannot be NULL.
2816
2817 2019-08-30 Tom Tromey <tom@tromey.com>
2818
2819 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
2820 refresh_window>: Declare.
2821 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
2822 resize.
2823 (tui_data_item_window::rerender): Rename from
2824 tui_display_register.
2825 (tui_data_item_window::refresh_window): New method.
2826 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
2827 no-op.
2828
2829 2019-08-30 Tom Tromey <tom@tromey.com>
2830
2831 * tui/tui-regs.h (struct tui_data_window) <regs_content,
2832 regs_column_count, current_group>: Move later. Now private.
2833 <get_current_group>: New method.
2834 * tui/tui-regs.c (tui_reg_command): Update.
2835 * tui/tui-layout.c (tui_set_layout): Update.
2836
2837 2019-08-30 Tom Tromey <tom@tromey.com>
2838
2839 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
2840 (tui_data_window::rerender): Don't call
2841 check_and_display_highlight_if_needed.
2842 (tui_data_window::refresh_all): Remove call to
2843 erase_data_content.
2844
2845 2019-08-30 Tom Tromey <tom@tromey.com>
2846
2847 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
2848 (tui_data_window::display_registers_from)
2849 (tui_data_window::display_reg_element_at_line)
2850 (tui_data_window::display_registers_from_line): Remove checks of
2851 "empty".
2852
2853 2019-08-30 Tom Tromey <tom@tromey.com>
2854
2855 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
2856 Don't declare.
2857 * tui/tui-regs.c (tui_data_window::show_registers): Call
2858 rerender.
2859 (tui_data_window::rerender): Rename from display_all_data.
2860 (tui_data_window::rerender): Remove old implementation.
2861
2862 2019-08-30 Tom Tromey <tom@tromey.com>
2863
2864 * tui/tui-regs.c (tui_data_window::display_all_data): Change
2865 text.
2866 * tui/tui-data.h (NO_DATA_STRING): Remove define.
2867
2868 2019-08-29 Bernhard Wodok <barto@gmx.net>
2869 Sergio Durigan Junior <sergiodj@redhat.com>
2870
2871 PR win32/24284
2872 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
2873
2874 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
2875
2876 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
2877 when searching for types.
2878
2879 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
2880
2881 * f-lang.c (f_language_defn): Use f_print_typedef.
2882 * f-lang.h (f_print_typedef): Declare.
2883 * f-typeprint.c (f_print_typedef): Define.
2884
2885 2019-08-27 Christian Biesinger <cbiesinger@google.com>
2886
2887 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
2888
2889 2019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
2890
2891 * cli/cli-utils.c (info_print_options_defs): Delete.
2892 (make_info_print_options_def_group): Delete.
2893 (extract_info_print_options): Delete.
2894 (info_print_command_completer): Delete.
2895 (info_print_args_help): Add extra parameter, and optionally
2896 include text about -n flag.
2897 * cli/cli-utils.h (struct info_print_options): Delete.
2898 (extract_info_print_options): Delete declaration.
2899 (info_print_command_completer): Delete declaration.
2900 (info_print_args_help): Add extra parameter, extend header
2901 comment.
2902 * python/python.c (gdbpy_rbreak): Pass additional parameter to
2903 search_symbols.
2904 * stack.c (struct info_print_options): New type.
2905 (info_print_options_defs): New file scoped variable.
2906 (make_info_print_options_def_group): New static function.
2907 (info_print_command_completer): New static function.
2908 (info_locals_command): Update to use new local functions.
2909 (info_args_command): Likewise.
2910 (_initialize_stack): Add extra parameter to calls to
2911 info_print_args_help.
2912 * symtab.c (search_symbols): Add extra parameter, use this to
2913 possibly excluse non-debug symbols.
2914 (symtab_symbol_info): Add extra parameter, which is passed on to
2915 search_symbols.
2916 (struct info_print_options): New type.
2917 (info_print_options_defs): New file scoped variable.
2918 (make_info_print_options_def_group): New static function.
2919 (info_print_command_completer): New static function.
2920 (info_variables_command): Update to use local functions, and pass
2921 extra parameter through to symtab_symbol_info.
2922 (info_functions_command): Likewise.
2923 (info_types_command): Pass additional argument through to
2924 symtab_symbol_info.
2925 (rbreak_command): Pass extra argument to search_symbols.
2926 (_initialize_symtab): Add extra arguments for calls to
2927 info_print_args_help, and update help text for 'info variables',
2928 'whereis', and 'info functions' commands.
2929 * symtab.h (search_symbols): Add extra argument to declaration.
2930 * NEWS: Mention new flags.
2931
2932 2019-08-26 Christian Biesinger <cbiesinger@google.com>
2933
2934 * symtab.c (lookup_static_symbol): Call the new function (and move
2935 it down to be next to lookup_global_symbol).
2936 (struct global_sym_lookup_data): Add block_enum member and rename to...
2937 (struct global_or_static_sym_lookup_data): ...this.
2938 (lookup_symbol_global_iterator_cb): Pass block_index instead of
2939 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
2940 (lookup_symbol_global_or_static_iterator_cb): ...this.
2941 (lookup_global_or_static_symbol): New function.
2942 (lookup_global_symbol): Call new function.
2943
2944 2019-08-26 Tom de Vries <tdevries@suse.de>
2945
2946 PR c++/24852
2947 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
2948 when pc_probe.prob == NULL.
2949
2950 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
2951
2952 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
2953 variable symbol_linkage to symbol_linkage_.
2954
2955 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
2956
2957 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
2958 represent whether the symbol is static, dynamic, or we don't
2959 know.
2960
2961 2019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
2962
2963 * gdb/rx-tdep.c (rx_register_names): New.
2964 (rx_register_name): Delete.
2965 (rx_psw_type): Delete.
2966 (rx_fpsw_type): Delete.
2967 (rx_register_type): Delete.
2968 (rx_gdbarch_init): Convert target-descriptions.
2969 (_initialize_rx_tdep): Add initialize_tdesc_rx.
2970 * gdb/features/Makefile: Add rx.xml.
2971 * gdb/features/rx.xml: New.
2972 * gdb/features/rx.c: Generated.
2973 * gdb/NEWS: Mention target description support.
2974
2975 2019-08-22 Christian Biesinger <cbiesinger@google.com>
2976
2977 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
2978 *slot_ptr.
2979
2980 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
2981
2982 * configure.ac: Don't check for 'dlfcn.h' (moved to
2983 gdbsupport/common.m4).
2984 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
2985 'gdbsupport/'.
2986 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
2987 * compile/compile-c-support.c: Include
2988 'gdbsupport/gdb-dlfcn.h'.
2989 * gdbsupport/common.m4: Check for 'dlfcn.h'.
2990 * gdb-dlfcn.c: Move to...
2991 * gdbsupport/gdb-dlfcn.c: ... here.
2992 * gdb-dlfcn.h: Move to...
2993 * gdbsupport/gdb-dlfcn.h: ... here.
2994
2995 2019-08-23 Sandra Loosemore <sandra@codesourcery.com>
2996
2997 * nios2-tdep.c (struct reg_value): Improve comments. Make
2998 the offset field signed.
2999
3000 2019-08-22 Christian Biesinger <cbiesinger@google.com>
3001
3002 * python/lib/gdb/__init__.py (_execute_file): New function.
3003 * python/python.c (python_run_simple_file): Call gdb._execute_file
3004 on Windows.
3005
3006 2019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
3007
3008 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
3009 all uses as this was never set to anything but a zero value.
3010
3011 2019-08-21 Bogdan Harjoc <harjoc@gmail.com>
3012
3013 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
3014
3015 2019-08-21 Christian Biesinger <cbiesinger@google.com>
3016
3017 * tui/tui-data.h (tui_gen_win_info): Add an =default
3018 move constructor, required by some GCC versions.
3019
3020 2019-08-21 Jinke Fan <fanjinke51@yeah.net>
3021
3022 * go32-nat.c (go32_sysinfo): Add hygon_p.
3023
3024 2019-08-20 Tom Tromey <tom@tromey.com>
3025
3026 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
3027 line_from_reg_element_no, first_reg_element_no_inline,
3028 display_all_data, delete_data_content_windows,
3029 erase_data_content>: Now private.
3030
3031 2019-08-20 Tom Tromey <tom@tromey.com>
3032
3033 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
3034 (tui_unhighlight_win, tui_highlight_win)
3035 (tui_win_info::make_window): Update.
3036 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
3037
3038 2019-08-20 Tom Tromey <tom@tromey.com>
3039
3040 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
3041 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
3042 (MAX_PID_WIDTH): Move to tui-stack.c.
3043 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
3044 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
3045 (MAX_PID_WIDTH): Move from tui-data.h.
3046
3047 2019-08-20 Tom Tromey <tom@tromey.com>
3048
3049 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
3050 * tui/tui-wingeneral.c (box_win): Change type of win_info.
3051 (box_win): Update.
3052 (tui_gen_win_info::make_window): Rename from tui_make_window.
3053 (tui_win_info::make_window): New method.
3054 (tui_gen_win_info::make_visible): Update.
3055 * tui/tui-source.c (tui_source_window::set_contents): Update.
3056 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
3057 (tui_data_window::display_registers_from): Update.
3058 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
3059 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
3060 Declare.
3061 <can_box>: Remove.
3062 <title>: Remove.
3063 (struct tui_win_info) <make_window>: Declare.
3064 <can_box>: Now virtual.
3065 <title>: New member.
3066 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
3067 * tui/tui-command.c (tui_cmd_window::resize): Update.
3068
3069 2019-08-20 Tom Tromey <tom@tromey.com>
3070
3071 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
3072 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3073 (tui_data_window::check_register_values): Update.
3074
3075 2019-08-20 Tom Tromey <tom@tromey.com>
3076
3077 * tui/tui-regs.h (struct tui_data_window): Use
3078 DISABLE_COPY_AND_ASSIGN.
3079 <regs_content>: Change type, removing unique_ptr.
3080 <tui_data_window>: Add move constructor.
3081 * tui/tui-regs.c (tui_data_window::show_registers)
3082 (tui_data_window::show_register_group)
3083 (tui_data_window::display_registers_from)
3084 (tui_data_window::display_registers_from)
3085 (tui_data_window::first_data_item_displayed)
3086 (tui_data_window::delete_data_content_windows)
3087 (tui_data_window::rerender, tui_data_window::refresh_window)
3088 (tui_data_window::check_register_values): Update.
3089
3090 2019-08-20 Tom Tromey <tom@tromey.com>
3091
3092 * tui/tui-regs.h (struct tui_data_window) <show_registers,
3093 show_register_group>: Declare.
3094 (tui_show_register_group): Don't declare.
3095 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
3096 tui_show_registers.
3097 (tui_data_window::show_register_group): Rename from
3098 tui_show_register_group.
3099 (tui_data_window::check_register_values, tui_reg_command):
3100 Update.
3101 * tui/tui-layout.c (tui_set_layout): Update.
3102
3103 2019-08-20 Tom Tromey <tom@tromey.com>
3104
3105 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
3106 Declare.
3107 (tui_check_register_values): Don't declare.
3108 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
3109 from tui_check_register_values.
3110 * tui/tui-hooks.c (tui_register_changed): Update.
3111
3112 2019-08-20 Tom Tromey <tom@tromey.com>
3113
3114 * tui/tui-regs.c (tui_reg_layout): Move later.
3115 (tui_show_registers): Don't enable TUI mode or change layout.
3116
3117 2019-08-20 Tom Tromey <tom@tromey.com>
3118
3119 * tui/tui-regs.h (struct tui_data_item_window)
3120 <~tui_data_item_window>: Remove.
3121 <content>: Now a unique_xmalloc_ptr.
3122 * tui/tui-regs.c (tui_register_format): Return a
3123 unique_xmalloc_ptr.
3124 (tui_get_register): Update.
3125 (~tui_data_item_window): Remove.
3126 (tui_data_window::display_registers_from, tui_display_register):
3127 Update.
3128 * tui/tui-io.h (tui_expand_tabs): Update.
3129 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
3130 Remove "col" parameter.
3131
3132 2019-08-20 Tom Tromey <tom@tromey.com>
3133
3134 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
3135 field.
3136 * tui/tui-regs.c (~tui_data_item_window): Update.
3137
3138 2019-08-20 Tom Tromey <tom@tromey.com>
3139
3140 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
3141 earlier.
3142
3143 2019-08-20 Tom Tromey <tom@tromey.com>
3144
3145 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
3146
3147 2019-08-20 Tom Tromey <tom@tromey.com>
3148
3149 * tui/tui-source.h (struct tui_source_window): Update.
3150 * tui/tui-regs.c (tui_show_registers): Update.
3151 * tui/tui-disasm.h (struct tui_disasm_window): Update.
3152 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
3153 (NO_REGS_STRING): Remove defines.
3154
3155 2019-08-20 Conrad Meyer <cem@FreeBSD.org>
3156
3157 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
3158 unnecessary thread walk if remote doesn't support the packet.
3159
3160 2019-08-19 Tom Tromey <tromey@adacore.com>
3161
3162 * python/py-value.c (value_has_field): Fix indentation.
3163
3164 2019-08-19 Tom Tromey <tromey@adacore.com>
3165
3166 * printcmd.c (do_one_display, info_display_command): Update.
3167 * block.h (contained_in): Return bool. Add allow_nested
3168 parameter.
3169 * block.c (contained_in): Return bool. Add allow_nested
3170 parameter.
3171
3172 2019-08-19 Tom Tromey <tom@tromey.com>
3173
3174 * configure: Rebuild.
3175 * configure.ac: Disallow the combination of -static-libstdc++ and
3176 source highlight.
3177 * source-cache.c (get_language_name): Handle rust.
3178 (source_cache::get_source_lines): Ignore highlighting exceptions.
3179
3180 2019-08-16 Tom Tromey <tom@tromey.com>
3181
3182 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
3183 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
3184 (struct tui_source_window_base) <make_visible, refresh_window,
3185 resize>: Remove methods.
3186 <execution_info>: Remove field.
3187 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
3188 (tui_show_source_line, tui_source_window_base)
3189 (~tui_source_window_base): Update.
3190 (tui_source_window_base::resize)
3191 (tui_source_window_base::make_visible)
3192 (tui_source_window_base::refresh_window): Remove.
3193 (tui_source_window_base::update_exec_info): Update.
3194 * tui/tui-source.c (tui_source_window::set_contents): Update.
3195 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
3196
3197 2019-08-16 Tom Tromey <tom@tromey.com>
3198
3199 * tui/tui-hooks.c (tui_remove_hooks): Don't set
3200 deprecated_query_hook.
3201
3202 2019-08-16 Tom Tromey <tom@tromey.com>
3203
3204 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
3205 (tui_update_source_windows_with_line): Update.
3206 * tui/tui-source.h (struct tui_source_window)
3207 <show_symtab_source>: Declare.
3208 (tui_show_symtab_source): Don't declare.
3209 * tui/tui-source.c (tui_show_symtab_source): Rename from
3210 tui_show_symtab_source.
3211
3212 2019-08-16 Tom Tromey <tom@tromey.com>
3213
3214 * tui/tui-winsource.h (struct tui_source_window_base)
3215 <set_contents>: Declare.
3216 * tui/tui-winsource.c
3217 (tui_source_window_base::update_source_window_as_is): Update.
3218 * tui/tui-source.h (struct tui_source_window) <set_contents>:
3219 Declare.
3220 (tui_set_source_content): Don't declare.
3221 * tui/tui-source.c (tui_source_window::set_contents): Rename from
3222 tui_set_source_content.
3223 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
3224 Declare.
3225 (tui_set_disassem_content): Don't declare.
3226 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
3227 tui_set_disassem_content.
3228
3229 2019-08-16 Tom Tromey <tom@tromey.com>
3230
3231 * tui/tui-winsource.h (struct tui_source_window_base)
3232 <update_breakpoint_info>: Declare.
3233 (tui_update_breakpoint_info): Don't declare.
3234 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
3235 (tui_update_all_breakpoint_info): Update.
3236 (tui_source_window_base::update_breakpoint_info): Rename from
3237 tui_update_breakpoint_info.
3238 (tui_source_window_base::update_exec_info): Update.
3239
3240 2019-08-16 Tom Tromey <tom@tromey.com>
3241
3242 * tui/tui-winsource.h (struct tui_source_window_base)
3243 <update_source_window>: Declare.
3244 (tui_update_source_window): Don't declare.
3245 * tui/tui-winsource.c
3246 (tui_source_window_base::update_source_window): Rename from
3247 tui_update_source_window.
3248 (tui_source_window_base::rerender): Update.
3249 * tui/tui-source.c (tui_source_window::maybe_update): Update.
3250 * tui/tui-disasm.c (tui_show_disassem)
3251 (tui_show_disassem_and_update_source)
3252 (tui_disasm_window::maybe_update): Update.
3253
3254 2019-08-16 Tom Tromey <tom@tromey.com>
3255
3256 * tui/tui-winsource.h (struct tui_source_window_base)
3257 <update_source_window_as_is>: Declare.
3258 (tui_update_source_window_as_is): Don't declare.
3259 * tui/tui-winsource.c (tui_update_source_window): Update
3260 (tui_source_window_base::update_source_window_as_is): Rename from
3261 tui_update_source_window_as_is.
3262 (tui_source_window_base::refill): Update.
3263 * tui/tui-source.c (tui_show_symtab_source): Update.
3264 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
3265 Update.
3266
3267 2019-08-16 Tom Tromey <tom@tromey.com>
3268
3269 * tui/tui-winsource.h (tui_update_source_window)
3270 (tui_update_source_window_as_is): Remove "noerror" parameter.
3271 * tui/tui-winsource.c (tui_update_source_window)
3272 (tui_update_source_window_as_is): Remove "noerror" parameter.
3273 (tui_update_source_windows_with_addr)
3274 (tui_update_source_windows_with_line)
3275 (tui_source_window_base::rerender)
3276 (tui_source_window_base::refill): Update.
3277 * tui/tui-source.h (tui_set_source_content)
3278 (tui_show_symtab_source): Remove "noerror" parameter.
3279 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
3280 parameter.
3281 (tui_show_symtab_source): Likewise.
3282 (tui_source_window::maybe_update): Update.
3283 * tui/tui-disasm.c (tui_show_disassem)
3284 (tui_show_disassem_and_update_source)
3285 (tui_disasm_window::do_scroll_vertical)
3286 (tui_disasm_window::maybe_update): Update.
3287
3288 2019-08-16 Tom Tromey <tom@tromey.com>
3289
3290 * tui/tui.c (tui_is_window_visible): Update.
3291 * tui/tui-wingeneral.c (tui_make_window)
3292 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
3293 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
3294 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
3295 (tui_set_win_height_command, parse_scrolling_args): Update.
3296 * tui/tui-source.c (tui_source_window::style_changed): Update.
3297 * tui/tui-regs.c (tui_show_registers)
3298 (tui_data_window::first_data_item_displayed)
3299 (tui_data_window::delete_data_content_windows)
3300 (tui_check_register_values, tui_reg_command): Update.
3301 * tui/tui-disasm.c (tui_show_disassem): Update.
3302 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
3303 method.
3304 <is_visible>: Remove field.
3305 * tui/tui-data.c (tui_next_win, tui_prev_win)
3306 (tui_delete_invisible_windows): Update.
3307
3308 2019-08-16 Tom Tromey <tom@tromey.com>
3309
3310 * tui/tui-winsource.h (struct tui_source_window_base)
3311 <m_has_locator>: Remove.
3312 * tui/tui-layout.c (show_source_disasm_command, show_data)
3313 (show_source_or_disasm_and_command): Update.
3314
3315 2019-08-16 Alan Hayward <alan.hayward@arm.com>
3316
3317 * NEWS (Other MI changes): New subsection.
3318 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
3319 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
3320 * arch-utils.c (default_get_pc_address_flags): New function.
3321 * arch-utils.h (default_get_pc_address_flags): New declaration.
3322 * gdbarch.sh: Add get_pc_address_flags.
3323 * gdbarch.c: Regenerate.
3324 * gdbarch.h: Likewise.
3325 * stack.c (print_pc): New function.
3326 (print_frame_info) (print_frame): Call print_pc.
3327
3328 2019-08-16 Tom de Vries <tdevries@suse.de>
3329
3330 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
3331 print_objfile_section_info.
3332
3333 2019-08-15 Tom Tromey <tom@tromey.com>
3334
3335 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
3336 calling update_cmdwin_start_line.
3337 * tui/tui-winsource.h (struct tui_source_window_base)
3338 <do_make_visible_with_new_height, set_new_height>: Don't declare.
3339 <rerender>: Declare.
3340 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
3341 Call rerender.
3342 (tui_source_window_base::set_new_height): Remove.
3343 (tui_source_window_base::rerender): Rename from
3344 do_make_visible_with_new_height.
3345 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
3346 resize method.
3347 (tui_win_info::make_invisible_and_set_new_height)
3348 (tui_win_info::make_visible_with_new_height): Remove.
3349 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
3350 Declare.
3351 * tui/tui-stack.c (tui_locator_window::rerender): New method.
3352 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
3353 do_make_visible_with_new_height>: Don't declare.
3354 <rerender>: Declare.
3355 * tui/tui-regs.c (tui_data_window::rerender): Rename from
3356 set_new_height.
3357 (tui_data_window::do_make_visible_with_new_height): Remove.
3358 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
3359 call tui_show_locator_content.
3360 (tui_gen_win_info::resize): Call rerender.
3361 (show_source_or_disasm_and_command): Don't call
3362 tui_show_locator_content.
3363 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
3364 method.
3365 (struct tui_win_info) <rerender>: Declare.
3366 <set_new_height, make_invisible_and_set_new_height,
3367 make_visible_with_new_height>: Don't declare.
3368 * tui/tui-data.c (tui_win_list::rerender): New method.
3369 * tui/tui-command.h (struct tui_cmd_window)
3370 <do_make_visible_with_new_height>: Don't declare.
3371 * tui/tui-command.c
3372 (tui_cmd_window::do_make_visible_with_new_height): Remove.
3373
3374 2019-08-15 Tom Tromey <tromey@adacore.com>
3375
3376 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
3377 * ada-lang.c (ada_enum_name): Likewise.
3378
3379 2019-08-15 Christian Biesinger <cbiesinger@google.com>
3380
3381 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
3382 leading underscore.
3383 (GdbOutputErrorFile): Likewise.
3384 (global scope): Adjust constructor calls to GdbOutput{,Error}File
3385 accordingly.
3386 (execute_unwinders): Rename to have a leading underscore.
3387 (auto_load_packages): Likewise.
3388 (global scope): Adjust call to auto_load_packages accordingly.
3389 (GdbSetPythonDirectory): Likewise.
3390 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
3391 instead of execute_unwinders.
3392
3393 2019-08-15 Tom Tromey <tom@tromey.com>
3394
3395 * tui/tui-layout.c (show_layout, show_source_disasm_command)
3396 (show_data): Don't change window visibility.
3397 (tui_gen_win_info::resize): Remove special case for command
3398 window. Use wresize, when available.
3399 (show_source_or_disasm_and_command): Don't change window
3400 visibility.
3401 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
3402 <make_visible>: New method.
3403 * tui/tui-command.c (tui_cmd_window::resize): New method.
3404
3405 2019-08-15 Tom Tromey <tom@tromey.com>
3406
3407 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
3408 (struct tui_source_windows): New.
3409 * tui/tui-winsource.c (tui_display_main): Update.
3410 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
3411 (new_height_ok, parse_scrolling_args): Update.
3412 * tui/tui-layout.c (show_layout, show_data): Update.
3413 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
3414 (tui_add_to_source_windows): Don't declare.
3415 * tui/tui-data.c (source_windows, tui_source_windows)
3416 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
3417
3418 2019-08-15 Tom Tromey <tom@tromey.com>
3419
3420 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
3421 Rename from reset.
3422 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
3423 * tui/tui-layout.c (show_source_disasm_command, show_data):
3424 Update.
3425 (tui_gen_win_info::resize): Rename.
3426 (show_source_or_disasm_and_command): Update.
3427 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
3428 reset.
3429
3430 2019-08-15 Tom Tromey <tom@tromey.com>
3431
3432 * tui/tui-stack.c (tui_initialize_static_data): Remove.
3433 * tui/tui-interp.c (tui_interp::init): Don't call
3434 tui_initialize_static_data.
3435 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
3436
3437 2019-08-15 Tom Tromey <tom@tromey.com>
3438
3439 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
3440 examine tui_win_list.
3441
3442 2019-08-15 Tom Tromey <tom@tromey.com>
3443
3444 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
3445 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
3446 tui_clear_source_content.
3447 (tui_clear_source_content): Remove.
3448 (tui_source_window_base::do_erase_source_content): Hoist call to
3449 content.clear().
3450 * tui/tui-stack.c (tui_show_frame_info): Don't call
3451 tui_clear_source_content.
3452
3453 2019-08-15 Tom Tromey <tom@tromey.com>
3454
3455 * tui/tui-winsource.h (struct tui_source_window_base)
3456 <do_erase_source_content>: New method.
3457 <erase_source_content>: New method.
3458 (tui_erase_source_content): Don't declare.
3459 * tui/tui-winsource.c (tui_clear_source_content): Update.
3460 (tui_source_window_base::do_erase_source_content): Rename from
3461 tui_erase_source_content.
3462 (tui_source_window_base::show_source_content): Update.
3463 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
3464 * tui/tui-source.h (struct tui_source_window)
3465 <erase_source_content>: New method.
3466 * tui/tui-disasm.h (struct tui_disasm_window)
3467 <erase_source_content>: New method.
3468
3469 2019-08-15 Tom Tromey <tom@tromey.com>
3470
3471 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
3472 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
3473 constructor.
3474 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
3475 * tui/tui-source.c (tui_set_source_content): Update.
3476 * tui/tui-disasm.c (tui_set_disassem_content): Update.
3477
3478 2019-08-15 Tom Tromey <tom@tromey.com>
3479
3480 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
3481 * tui/tui-winsource.c (tui_line_is_displayed): Move to
3482 tui-source.c.
3483 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
3484 Declare.
3485 * tui/tui-source.c (tui_source_window::line_is_displayed): New
3486 method.
3487 (tui_source_window::maybe_update): Update.
3488
3489 2019-08-15 Tom Tromey <tom@tromey.com>
3490
3491 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
3492 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
3493 tui-disasm.c.
3494 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
3495 Declare.
3496 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
3497 method.
3498 (tui_disasm_window::maybe_update): Update.
3499
3500 2019-08-15 Tom Tromey <tom@tromey.com>
3501
3502 * tui/tui-winsource.h (struct tui_source_window_base)
3503 <maybe_update>: Declare.
3504 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
3505 method.
3506 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
3507 Declare.
3508 * tui/tui-source.c (tui_source_window::maybe_update): New method.
3509 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
3510 Declare.
3511 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
3512
3513 2019-08-15 Tom Tromey <tom@tromey.com>
3514
3515 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
3516
3517 2019-08-15 Tom Tromey <tom@tromey.com>
3518
3519 * tui/tui-wingeneral.c: Include tui-stack.h.
3520 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
3521 (struct tui_locator_window): Move from tui-data.h.
3522 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
3523 (tui_initialize_static_data): Move from tui-data.c.
3524 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
3525 (struct tui_locator_window): Move to tui-stack.c.
3526 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
3527 (tui_initialize_static_data): Move to tui-stack.c.
3528
3529 2019-08-15 Tom Tromey <tom@tromey.com>
3530
3531 * tui/tui-layout.c (show_source_disasm_command)
3532 (show_source_or_disasm_and_command): Use make_visible method, not
3533 tui_make_window.
3534 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
3535 Remove.
3536
3537 2019-08-15 Tom Tromey <tom@tromey.com>
3538
3539 * tui/tui-wingeneral.h (tui_make_window): Update.
3540 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
3541 parameter.
3542 (tui_gen_win_info::make_visible): Update.
3543 * tui/tui-regs.c (tui_data_window::display_registers_from):
3544 Update.
3545 * tui/tui-layout.c (show_source_disasm_command)
3546 (show_source_or_disasm_and_command): Update.
3547 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
3548 (enum tui_box): Remove.
3549 (struct tui_win_info) <can_box>: New method.
3550 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
3551 method.
3552
3553 2019-08-15 Tom de Vries <tdevries@suse.de>
3554
3555 * linux-nat-trad.c: Include gdbarch.h.
3556
3557 2019-08-14 Alan Hayward <alan.hayward@arm.com>
3558
3559 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
3560 register sizes.
3561
3562 2019-08-14 Tom Tromey <tromey@adacore.com>
3563
3564 * darwin-nat.c: Include gdbarch.h.
3565 * darwin-nat-info.c: Include gdbarch.h.
3566
3567 2019-08-13 Tom Tromey <tom@tromey.com>
3568
3569 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
3570 Remove.
3571 * tui/tui-data.c (tui_initialize_static_data): Update.
3572
3573 2019-08-13 Tom Tromey <tom@tromey.com>
3574
3575 * tui/tui-winsource.h (struct tui_exec_info_window)
3576 <~tui_exec_info_window, maybe_allocate_content, get_content,
3577 m_content>: Remove.
3578 (struct tui_source_window_base) <set_exec_info_content,
3579 show_exec_info_content>: Don't declare.
3580 * tui/tui-winsource.c
3581 (tui_exec_info_window::maybe_allocate_content): Remove.
3582 (tui_source_window_base::update_exec_info): Rename from
3583 set_exec_info_content.
3584 (tui_source_window_base::show_exec_info_content)
3585 (tui_source_window_base::update_exec_info): Remove.
3586
3587 2019-08-13 Tom Tromey <tom@tromey.com>
3588
3589 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
3590 declare.
3591 * tui/tui-winsource.c (tui_update_source_window_as_is)
3592 (tui_update_source_windows_with_addr, tui_erase_source_content):
3593 Update.
3594 (tui_clear_exec_info_content): Remove.
3595
3596 2019-08-13 Tom Tromey <tom@tromey.com>
3597
3598 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
3599 declare.
3600 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
3601 call tui_erase_exec_info_content.
3602 (tui_clear_exec_info_content): Rename from
3603 tui_erase_exec_info_content.
3604 (tui_clear_exec_info_content): Delete.
3605
3606 2019-08-13 Tom Tromey <tom@tromey.com>
3607
3608 * tui/tui-winsource.h (struct tui_source_window_base)
3609 <show_exec_info_content>: Declare.
3610 (tui_show_exec_info_content): Don't declare.
3611 * tui/tui-winsource.c
3612 (tui_source_window_base::show_exec_info_content): Rename from
3613 tui_show_exec_info_content.
3614 (tui_source_window_base::update_exec_info): Update.
3615
3616 2019-08-13 Tom Tromey <tom@tromey.com>
3617
3618 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
3619 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
3620 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
3621 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
3622 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
3623 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
3624 ... here.
3625
3626 2019-08-13 Tom Tromey <tom@tromey.com>
3627
3628 * tui/tui-winsource.h (struct tui_source_window_base)
3629 <update_exec_info>: Declare.
3630 (tui_update_exec_info): Don't declare.
3631 * tui/tui-winsource.c (tui_update_source_window_as_is)
3632 (tui_source_window_base::refresh_all)
3633 (tui_update_all_breakpoint_info): Update.
3634 (tui_source_window_base::update_exec_info): Rename from
3635 tui_update_exec_info.
3636 * tui/tui-stack.c (tui_show_frame_info): Update.
3637
3638 2019-08-13 Tom Tromey <tom@tromey.com>
3639
3640 * tui/tui-winsource.h (struct tui_source_window_base)
3641 <set_exec_info_content>: Declare.
3642 (tui_set_exec_info_content): Don't declare.
3643 * tui/tui-winsource.c
3644 (tui_source_window_base::set_exec_info_content): Rename from
3645 tui_set_exec_info_content.
3646 (tui_update_exec_info): Update.
3647
3648 2019-08-13 Tom Tromey <tom@tromey.com>
3649
3650 * tui/tui-winsource.h (struct tui_source_window_base)
3651 <show_source_content>: Declare.
3652 (tui_show_source_content): Don't declare.
3653 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
3654 (tui_source_window_base::show_source_content): Rename from
3655 tui_show_source_content.
3656 (tui_source_window_base::refresh_all): Update.
3657 * tui/tui-layout.c (show_source_disasm_command)
3658 (show_source_or_disasm_and_command): Update.
3659
3660 2019-08-13 Tom Tromey <tom@tromey.com>
3661
3662 * tui/tui-winsource.c (tui_erase_source_content)
3663 (tui_show_source_content, tui_source_window_base::refresh_all):
3664 Update.
3665 * tui/tui-wingeneral.h
3666 (tui_check_and_display_highlight_if_needed): Don't declare.
3667 * tui/tui-wingeneral.c
3668 (tui_win_info::check_and_display_highlight_if_needed): Rename from
3669 check_and_display_highlight_if_needed.
3670 * tui/tui-win.c (tui_rehighlight_all)
3671 (tui_win_info::make_visible_with_new_height): Update.
3672 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
3673 (tui_data_window::erase_data_content)
3674 (tui_data_window::display_all_data): Update.
3675 * tui/tui-data.h (struct tui_win_info)
3676 <check_and_display_highlight_if_needed>: Declare.
3677
3678 2019-08-13 Tom Tromey <tom@tromey.com>
3679
3680 * tui/tui-win.c (tui_resize_all): Call
3681 tui_delete_invisible_windows.
3682 * tui/tui-layout.c (show_layout): Call
3683 tui_delete_invisible_windows.
3684 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
3685 * tui/tui-data.c (tui_delete_invisible_windows): New function.
3686
3687 2019-08-13 Tom Tromey <tom@tromey.com>
3688
3689 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
3690 tui_add_win_to_layout.
3691
3692 2019-08-13 Tom Tromey <tom@tromey.com>
3693
3694 * tui/tui-layout.h (tui_default_win_height): Don't declare.
3695 * tui/tui-layout.c (tui_default_win_height): Now static.
3696
3697 2019-08-13 Tom Tromey <tom@tromey.com>
3698
3699 * tui/tui-layout.c (show_layout): Unify all layout cases into a
3700 single switch.
3701 (show_source_disasm_command, show_source_or_disasm_and_command):
3702 Don't check current layout.
3703
3704 2019-08-13 Tom Tromey <tom@tromey.com>
3705
3706 * tui/tui-wingeneral.c (make_all_visible): Remove.
3707 (tui_make_all_invisible): Simplify.
3708 * tui/tui-layout.c (tui_make_all_invisible): Move from
3709 tui-wingeneral.c; simplify.
3710 (show_layout): Hoist call to tui_make_all_invisible.
3711 (show_data): Don't call tui_make_all_invisible.
3712
3713 2019-08-13 Tom Tromey <tom@tromey.com>
3714
3715 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
3716 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
3717
3718 2019-08-13 Tom Tromey <tom@tromey.com>
3719
3720 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
3721 tui-data.c.
3722 (show_source_disasm_command, show_data)
3723 (show_source_or_disasm_and_command): Don't use
3724 tui_set_current_layout_to.
3725 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
3726 * tui/tui-data.c (current_layout, tui_current_layout): Move to
3727 tui-layout.c.
3728 (tui_set_current_layout_to): Remove.
3729
3730 2019-08-13 Tom Tromey <tom@tromey.com>
3731
3732 * tui/tui-layout.c (tui_set_layout): Update.
3733 * tui/tui-data.h (struct tui_layout_def): Remove.
3734 (tui_layout_def): Don't declare.
3735 * tui/tui-data.c (layout_def): Remove.
3736 (tui_layout_def): Remove.
3737
3738 2019-08-13 Tom Tromey <tom@tromey.com>
3739
3740 * tui/tui-winsource.h (struct tui_source_window_base)
3741 <clear_detail>: No longer "override".
3742 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
3743 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
3744 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
3745 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
3746 Remove.
3747 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
3748
3749 2019-08-13 Tom Tromey <tromey@adacore.com>
3750
3751 * tracepoint.c: Don't include readline.h or history.h.
3752
3753 2019-08-12 Tom Tromey <tom@tromey.com>
3754
3755 * configure: Rebuild.
3756 * configure.ac: Check for readline 7.
3757 * NEWS: Mention readline 7 requirement.
3758 * README: Update.
3759
3760 2019-08-12 Tom Tromey <tom@tromey.com>
3761
3762 * mingw-hdep.c (gdb_select): Remove readline hack.
3763
3764 2019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3765
3766 * blockframe.c (find_pc_partial_function): Set *block to nullptr
3767 when the function fails.
3768
3769 2019-08-09 Andreas Arnez <arnez@linux.ibm.com>
3770
3771 * s390-tdep.c (s390_type_align): New function.
3772 (s390_gdbarch_init): Set it as type_align gdbarch method.
3773
3774 2019-08-09 Tom de Vries <tdevries@suse.de>
3775
3776 PR gdb/24591
3777 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
3778 pc_low with relocation offset.
3779
3780 2019-08-07 Tom Tromey <tromey@adacore.com>
3781
3782 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
3783 (print_frame_args): Update.
3784 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
3785 Update.
3786 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
3787 * frame.h (struct frame_arg): Add initializers.
3788 <error>: Now a unique_xmalloc_ptr.
3789
3790 2019-08-07 Alan Hayward <alan.hayward@arm.com>
3791
3792 * NEWS: Expand the Pointer Authentication entry.
3793 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
3794 (aarch64_frame_unmask_lr): ... to this.
3795 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
3796 Call aarch64_frame_unmask_lr.
3797 * frame.c (struct frame_info): Add "masked" variable.
3798 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
3799 (fprint_frame): Check for masked pc.
3800 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
3801 declarations.
3802 * python/py-framefilter.c (py_print_frame): Check for masked pc.
3803 * stack.c (print_frame): Check for masked pc.
3804
3805 2019-08-06 Tom Tromey <tom@tromey.com>
3806
3807 * stabsread.c (patch_block_stabs, read_one_struct_field)
3808 (read_enum_type): Use obstack_strndup.
3809 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
3810 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
3811 * dwarf2read.c (guess_full_die_structure_name)
3812 (anonymous_struct_prefix): Use obstack_strndup.
3813 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
3814 * c-exp.y (yylex): Use obstack_strndup.
3815 * ada-exp.y (write_object_renaming, write_ambiguous_var)
3816 (write_var_or_type): Use obstack_strndup.
3817
3818 2019-08-06 Tom Tromey <tom@tromey.com>
3819
3820 * symfile.c (reread_symbols): Use obstack_strdup.
3821 * stabsread.c (read_type): Use obstack_strdup.
3822 * gdb_obstack.h (obstack_strdup): New overload.
3823 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
3824 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
3825 (dwarf2_canonicalize_name): Use obstack_strdup.
3826 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
3827 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
3828 Use obstack_strdup.
3829
3830 2019-08-06 Tom Tromey <tom@tromey.com>
3831
3832 * gdb_obstack.h (obstack_strdup): Define.
3833 * gdb_obstack.c (obstack_strdup): Don't define.
3834
3835 2019-08-06 Tom Tromey <tom@tromey.com>
3836
3837 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
3838 obstack_strdup.
3839 * typeprint.c (typedef_hash_table::find_global_typedef): Use
3840 obstack_strdup.
3841 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
3842 * stabsread.c (common_block_start): Use obstack_strdup.
3843 * objfiles.c (set_objfile_main_name, objfile): Use
3844 obstack_strdup.
3845 * namespace.c (add_using_directive): Use obstack_strdup.
3846 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
3847 * jit.c (finalize_symtab): Use obstack_strdup.
3848 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
3849 (guess_partial_die_structure_name, partial_die_info::fixup)
3850 (dwarf2_name): Use obstack_strdup.
3851 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
3852 obstack_strdup.
3853 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
3854 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
3855 obstack_strdup.
3856 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
3857
3858 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3859
3860 * unittests/help-doc-selftests.c: New file.
3861 * Makefile.in: Add the new file.
3862
3863 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3864
3865 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
3866 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
3867 the full first line, except when FOR_VALUE_PREFIX. In this case,
3868 the trailing '.' is not output, and the first character is uppercased.
3869 (print_help_for_command): Update call to print_doc_line.
3870 (print_doc_of_command): Likewise.
3871 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
3872 * cli/cli-option.c (append_indented_doc): Do not append newline.
3873 (build_help_option): Append newline after first appended_indented_doc
3874 only if a second call is done.
3875 (build_help): Append 2 new lines before each option, except the first
3876 one.
3877 * compile/compile.c (_initialize_compile): Add new lines after
3878 %OPTIONS%, when not at the end of the help.
3879 Change help doc or code
3880 producing the help doc to respect the invariants.
3881 * maint-test-options.c (_initialize_maint_test_options): Likewise.
3882 Also removed the new line after 'Options:', as all other commands
3883 do not put an empty line between 'Options:' and the first option.
3884 * printcmd.c (_initialize_printcmd): Likewise.
3885 * stack.c (_initialize_stack): Likewise.
3886 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
3887 incorrectly telling COMMAND is optional.
3888 * ada-lang.c (_initialize_ada_language): Change help doc or code
3889 producing the help doc to respect the invariants.
3890 * ada-tasks.c (_initialize_ada_tasks): Likewise.
3891 * breakpoint.c (_initialize_breakpoint): Likewise.
3892 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
3893 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
3894 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
3895 * cli/cli-style.c (cli_style_option::add_setshow_commands,
3896 _initialize_cli_style): Likewise.
3897 * corelow.c (core_target_info): Likewise.
3898 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
3899 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
3900 * filesystem.c (_initialize_filesystem): Likewise.
3901 * frame.c (_initialize_frame): Likewise.
3902 * gnu-nat.c (add_task_commands): Likewise.
3903 * infcall.c (_initialize_infcall): Likewise.
3904 * infcmd.c (_initialize_infcmd): Likewise.
3905 * interps.c (_initialize_interpreter): Likewise.
3906 * language.c (_initialize_language): Likewise.
3907 * linux-fork.c (_initialize_linux_fork): Likewise.
3908 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
3909 * maint.c (_initialize_maint_cmds): Likewise.
3910 * memattr.c (_initialize_mem): Likewise.
3911 * printcmd.c (_initialize_printcmd): Likewise.
3912 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
3913 _RegEx): Likewise.
3914 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
3915 * record-btrace.c (_initialize_record_btrace): Likewise.
3916 * record-full.c (_initialize_record_full): Likewise.
3917 * record.c (_initialize_record): Likewise.
3918 * regcache-dump.c (_initialize_regcache_dump): Likewise.
3919 * regcache.c (_initialize_regcache): Likewise.
3920 * remote.c (add_packet_config_cmd, init_remote_threadtests,
3921 _initialize_remote): Likewise.
3922 * ser-tcp.c (_initialize_ser_tcp): Likewise.
3923 * serial.c (_initialize_serial): Likewise.
3924 * skip.c (_initialize_step_skip): Likewise.
3925 * source.c (_initialize_source): Likewise.
3926 * stack.c (_initialize_stack): Likewise.
3927 * symfile.c (_initialize_symfile): Likewise.
3928 * symtab.c (_initialize_symtab): Likewise.
3929 * target-descriptions.c (_initialize_target_descriptions): Likewise.
3930 * top.c (init_main): Likewise.
3931 * tracefile-tfile.c (tfile_target_info): Likewise.
3932 * tracepoint.c (_initialize_tracepoint): Likewise.
3933 * tui/tui-win.c (_initialize_tui_win): Likewise.
3934 * utils.c (add_internal_problem_command): Likewise.
3935 * valprint.c (value_print_option_defs): Likewise.
3936
3937 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
3938
3939 PR build/24886
3940 * configure.ac: Drop enable-libmcheck support.
3941 * configure, config.in: Rebuild.
3942 * libmcheck.m4: Remove.
3943 * acinclude.m4: Don't include it.
3944 * Makefile.in: Don't distribute it.
3945 * top.c (print_gdb_configuration): Don't mention it.
3946
3947 2019-08-06 Tom Tromey <tom@tromey.com>
3948
3949 * utils.c (set_output_style): Sometimes pass stream to
3950 emit_style_escape.
3951 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
3952 * record-btrace.c (btrace_insn_history): Update.
3953 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
3954 method.
3955 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
3956 Update initializers.
3957 <m_uiout>: New field.
3958 <m_di>: Move lower.
3959 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3960 Remove "uiout" parameter.
3961 (dump_insns): Update.
3962 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
3963 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
3964
3965 2019-08-06 Christian Biesinger <cbiesinger@google.com>
3966
3967 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
3968 (error_in_psymtab_expansion): Likewise.
3969 (lookup_symbol_via_quick_fns): Likewise.
3970 (basic_lookup_transparent_type_quick): Likewise.
3971 (basic_lookup_transparent_type_1): Likewise.
3972
3973 2019-08-06 Tom Tromey <tromey@adacore.com>
3974
3975 * source.c (last_source_error): Now bool.
3976 (print_source_lines_base): Make "noprint" bool. Only open
3977 source file when last_source_visited changes.
3978
3979 2019-08-06 Tom Tromey <tromey@adacore.com>
3980
3981 * annotate.c (annotate_source_line): Use g_source_cache.
3982 * source-cache.c (source_cache::get_plain_source_lines): Change
3983 parameters. Populate m_offset_cache.
3984 (source_cache::ensure): New method.
3985 (source_cache::get_line_charpos): New method.
3986 (extract_lines): Move lower. Change parameters.
3987 (source_cache::get_source_lines): Move lower.
3988 * source-cache.h (class source_cache): Update comment.
3989 <get_line_charpos>: New method.
3990 <get_source_lines>: Update comment.
3991 <clear>: Clear m_offset_cache.
3992 <get_plain_source_lines>: Change parameters.
3993 <ensure>: New method
3994 <m_offset_cache>: New member.
3995 * source.c (forget_cached_source_info_for_objfile): Update.
3996 (info_source_command): Use g_source_cache.
3997 (find_source_lines, open_source_file_with_line_charpos): Remove.
3998 (print_source_lines_base, search_command_helper): Use g_source_cache.
3999 * source.h (open_source_file_with_line_charpos): Don't declare.
4000 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
4001 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
4002 Use g_source_cache.
4003
4004 2019-08-06 Tom Tromey <tromey@adacore.com>
4005
4006 * source-cache.c (source_cache::get_plain_source_lines):
4007 Remove "first_line" and "last_line" parameters.
4008 (source_cache::get_source_lines): Cache plain text.
4009 * source-cache.h (class source_cache)
4010 <get_plain_source_lines>: Update.
4011
4012 2019-08-06 Tom Tromey <tromey@adacore.com>
4013
4014 * source-cache.c (extract_lines): No longer a method.
4015 Changed type of parameter. Include final newline.
4016 (selftests::extract_lines_test): New function.
4017 (_initialize_source_cache): Likewise.
4018 * source-cache.h (class source_cache)
4019 <extract_lines>: Don't declare.
4020
4021 2019-08-06 Tom Tromey <tromey@adacore.com>
4022
4023 * breakpoint.c (init_breakpoint_sal): Update.
4024 (breakpoint): Update.
4025 * breakpoint.h (struct breakpoint) <filter>: Now a
4026 unique_xmalloc_ptr.
4027
4028 2019-08-05 Christian Biesinger <cbiesinger@google.com>
4029
4030 * NEWS: Mention dictionary access on blocks.
4031 * python/py-block.c (blpy_getitem): New function.
4032 (block_object_as_mapping): New struct.
4033 (block_object_type): Use new struct for tp_as_mapping field.
4034
4035 2019-08-05 Christian Biesinger <cbiesinger@google.com>
4036
4037 * objfiles.h (objfile): Add a comment describing partial symbols.
4038
4039 2019-08-05 Tom Tromey <tromey@adacore.com>
4040
4041 * compile/compile.c (_initialize_compile): Use _(), not N_().
4042 * thread.c (_initialize_thread): Use _(), not N_().
4043 * stack.c (_initialize_stack): Use _(), not N_().
4044 * printcmd.c (_initialize_printcmd): Use _(), not N_().
4045
4046 2019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4047
4048 * dwarf2read.c (struct dw2_symtab_iterator):
4049 <want_specific_block>: Remove.
4050 <block_index>: Change type to gdb::optional.
4051 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
4052 change type of BLOCK_INDEX parameter to gdb::optional.
4053 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
4054 (dw2_lookup_symbol): Don't pass argument for
4055 WANT_SPECIFIC_BLOCK.
4056 (dw2_expand_symtabs_for_function): Don't pass argument for
4057 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
4058 (class dw2_debug_names_iterator)
4059 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
4060 parameter, change BLOCK_INDEX type to gdb::optional.
4061 <m_want_specific_block>: Remove.
4062 <m_block_index>: Change type to gdb::optional.
4063 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
4064 gdb::optional. Re-write in function of gdb::optional.
4065 (dw2_debug_names_lookup_symbol): Don't pass argument for
4066 WANT_SPECIFIC_BLOCK.
4067 (dw2_debug_names_expand_symtabs_for_function): Don't pass
4068 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
4069 BLOCK_INDEX.
4070
4071 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4072
4073 * NEWS: Mention changes to "info sources" command.
4074
4075 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4076
4077 * symtab.c (filename_partial_match_opts): New struct type.
4078 (struct output_source_filename_data): New members
4079 regexp, c_regexp, partial_match.
4080 (output_source_filename): Use new members to decide to print file.
4081 (info_sources_option_defs): New variable.
4082 (make_info_sources_options_def_group, print_info_sources_header,
4083 info_sources_command_completer):
4084 New functions.
4085 (info_sources_command): Read new optional arguments.
4086 (_initialize_symtab): Update info sources help.
4087
4088 2019-08-02 Alexandre Oliva <oliva@adacore.com>
4089
4090 * ada-lang.c (exception_support_info_v0): Renamed from...
4091 (default_exception_support_info): ... this. Create new
4092 definition for v1.
4093 (ada_has_this_exception_support): Look up catch_handlers_sym.
4094 (ada_exception_support_info_sniffer): Try v0 after default.
4095
4096 2019-08-01 Tom Tromey <tromey@adacore.com>
4097
4098 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
4099 gdbarch.h.
4100
4101 2019-08-01 Christian Biesinger <cbiesinger@google.com>
4102
4103 * s12z-tdep.c: Fix include path for s12z-opc.h.
4104
4105 2019-08-01 Alan Hayward <alan.hayward@arm.com>
4106
4107 * NEWS: Require GNU make 3.82.
4108
4109 2019-07-16 Tom Tromey <tom@tromey.com>
4110
4111 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
4112 declare.
4113
4114 2019-07-30 Tom Tromey <tromey@adacore.com>
4115
4116 * block.c (contained_in): Remove BLOCK_FUNCTION check.
4117
4118 2019-07-30 Kevin Buettner <kevinb@redhat.com>
4119
4120 * printcmd.c (print_address_symbolic): Print negative offsets.
4121 (build_address_symbolic): Force signed arithmetic when computing
4122 offset.
4123
4124 2019-07-30 Christian Biesinger <cbiesinger@google.com>
4125
4126 PR/24474: Add a function to lookup static variables.
4127 * NEWS: Mention this new function.
4128 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
4129 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
4130 * python/python.c (python_GdbMethods): Add new function.
4131
4132 2019-07-29 Christian Biesinger <cbiesinger@google.com>
4133
4134 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
4135 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
4136 (objfpy_lookup_static_symbol): New function.
4137 (objfile_object_methods): Add new functions.
4138
4139 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4140
4141 * NEWS: Mention 'set|show print frame-info'. Mention new
4142 'presence' value for 'frame-arguments'. Mention new '-frame-info'
4143 backtrace argument. Mention that python frame filtering code
4144 is now consistent with what 'backtrace' command prints.
4145
4146 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4147
4148 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
4149 comments.
4150 (print_frame_info_auto, print_frame_info_source_line,
4151 print_frame_info_location, print_frame_info_source_and_location,
4152 print_frame_info_location_and_address, print_frame_info_short_location):
4153 New declarations.
4154 (struct frame_print_options): New member print_frame_info.
4155 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
4156 * stack.h (get_user_print_what_frame_info): New declaration.
4157 (frame_show_address): New declaration.
4158 * stack.c (print_frame_arguments_choices): New value 'presence'.
4159 (print_frame_info_auto, print_frame_info_source_line,
4160 print_frame_info_location, print_frame_info_source_and_location,
4161 print_frame_info_location_and_address, print_frame_info_short_location,
4162 print_frame_info_choices, print_frame_info_print_what): New definitions.
4163 (print_frame_args): Only print dots for args if print frame-arguments
4164 is 'presence'.
4165 (frame_print_option_defs): New element for "frame-info".
4166 (get_user_print_what_frame_info): New function.
4167 (frame_show_address): Make non static. Move comment to stack.h.
4168 (print_frame_info_to_print_what): New function.
4169 (print_frame_info): Update comment. Use fp_opts.print_frame_info
4170 to decide what to print.
4171 (backtrace_command_1): Handle the new print_frame_arguments_presence
4172 value.
4173 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
4174 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
4175 (py_print_frame): In non-mi mode, use LOCATION as default for
4176 print_what, similarly to frame information printed directly by
4177 backtrace command. Handle frame-info user option in non MI mode.
4178
4179 2019-07-27 Kevin Buettner <kevinb@redhat.com>
4180
4181 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
4182 Add case for debugging 32-bit target on 64-bit host. Revise
4183 comment.
4184
4185 2019-07-27 Kevin Buettner <kevinb@redhat.com>
4186
4187 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
4188 instead of find_function_entry_range_from_pc.
4189
4190 2019-07-27 Kevin Buettner <kevinb@redhat.com>
4191
4192 * stack.c (find_frame_funname): Remove code which preferred
4193 minsym over symtab sym in "certain pathological cases".
4194
4195 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
4196 parameter. Change type of "do_demangle" to bool.
4197 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
4198 Pass suitable "prefer_sym_over_minsym" flag to
4199 build_address_symbolic(). Don't output "+" for negative offsets.
4200 * printcmd.c (print_address_symbolic): Update invocation of
4201 build_address_symbolic to include a "prefer_sym_over_minsym"
4202 flag.
4203 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
4204 Restrict cases in which use of minimal symbol is preferred to that
4205 of a found symbol. Update comments.
4206
4207 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
4208 for entry pc when entry pc is out of range for that FDE.
4209
4210 2019-07-26 Brian Callahan <bcallah@openbsd.org>
4211
4212 PR gdb/24839:
4213 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
4214 type.
4215
4216 2019-07-25 Christian Biesinger <cbiesinger@google.com>
4217
4218 * python/py-objfile.c (add_separate_debug_file): Fix comment about
4219 this function's Python signature.
4220
4221
4222 2019-07-24 Christian Biesinger <cbiesinger@google.com>
4223
4224 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
4225 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
4226 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
4227 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
4228 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
4229
4230
4231 2019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
4232
4233 * h8300-tdep.c (h8300_register_name_common): New.
4234 h8300_register_name): Use h8300_register_name_common.
4235 (h8300s_register_name): Likewise.
4236 (h8300sx_register_name): Likewise.
4237 (h8300h_register_nam): New.
4238 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
4239
4240
4241 2019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
4242
4243 * arm-tdep.c (arm_skip_cmse_entry): New function.
4244 (arm_is_sgstubs_section): New function.
4245 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
4246
4247 2019-07-22 Tom Tromey <tom@tromey.com>
4248
4249 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
4250 Don't self-assign.
4251
4252 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
4253
4254 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
4255 type_print.
4256
4257 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
4258
4259 * symtab.c (search_symbols): Adjust msymbol matching type arrays
4260 so that GDB doesn't match any msymbols when searching in the
4261 TYPES_DOMAIN.
4262 (print_symbol_info): Print using typedef_print or type_print based
4263 on the type of the symbol. Add updated FIXME comment moved from...
4264 (_initialize_symtab): ... move and update FIXME comment to above.
4265
4266 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
4267
4268 * NEWS: Mention adding -q option to "info types".
4269 * symtab.c (struct info_types_options): New struct.
4270 (info_types_options_defs): New variable.
4271 (make_info_types_options_def_group): New function.
4272 (info_types_command): Use gdb::option framework to parse options.
4273 (info_types_command_completer): New function.
4274 (_initialize_symtab): Extend the help text on "info types" and
4275 register command completer.
4276
4277 2019-07-21 Christian Biesinger <cbiesinger@google.com>
4278
4279 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
4280 (lookup_symbol_in_objfile): Change int to block_enum and add a
4281 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
4282
4283 2019-07-20 Christian Biesinger <cbiesinger@google.com>
4284
4285 * MAINTAINERS (Write After Approval): Add self.
4286
4287 2019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
4288
4289 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
4290 instruction to the dummy code region.
4291
4292 2019-07-19 Tom Tromey <tromey@adacore.com>
4293
4294 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
4295 (ARGSUSED, PARAMS, __func__): Remove rules.
4296
4297 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4298
4299 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
4300 * features/arm/arm-with-iwmmxt.c: Remove.
4301 * features/arm/arm-with-iwmmxt.xml: Remove.
4302 * features/arm/arm-with-m-fpa-layout.c: Remove.
4303 * features/arm/arm-with-m-fpa-layout.xml: Remove.
4304 * features/arm/arm-with-m-vfp-d16.c: Remove.
4305 * features/arm/arm-with-m-vfp-d16.xml: Remove.
4306 * features/arm/arm-with-m.c: Remove.
4307 * features/arm/arm-with-m.xml: Remove.
4308 * features/arm/arm-with-neon.c: Remove.
4309 * features/arm/arm-with-neon.xml: Remove.
4310 * features/arm/arm-with-vfpv2.c: Remove.
4311 * features/arm/arm-with-vfpv2.xml: Remove.
4312 * features/arm/arm-with-vfpv3.c: Remove.
4313 * features/arm/arm-with-vfpv3.xml: Remove.
4314
4315 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4316
4317 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
4318
4319 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4320
4321 * arch/aarch32.c (aarch32_create_target_description): Create
4322 target descriptions using features.
4323 * arch/arm.c (arm_create_target_description)
4324 (arm_create_mprofile_target_description): Likewise.
4325 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
4326
4327 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4328
4329 * Makefile.in: Add new files.
4330 * aarch32-tdep.c: New file.
4331 * aarch32-tdep.h: New file.
4332 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
4333 Call aarch32_read_description.
4334 * arch/aarch32.c: New file.
4335 * arch/aarch32.h: New file.
4336 * arch/arm.c (arm_create_target_description)
4337 (arm_create_mprofile_target_description): New function.
4338 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
4339 (arm_create_target_description)
4340 (arm_create_mprofile_target_description): New declaration.
4341 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
4342 read_description functions.
4343 * arm-linux-nat.c (arm_linux_nat_target::read_description):
4344 Likewise.
4345 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
4346 * arm-tdep.c (tdesc_arm_list): New variable.
4347 (arm_register_g_packet_guesses): Call create description functions.
4348 (arm_read_description) (arm_read_mprofile_description): New
4349 function.
4350 * arm-tdep.h (arm_read_description)
4351 (arm_read_mprofile_description): Add declaration.
4352 * configure.tgt: Add new files.
4353
4354 2019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
4355
4356 * top.c (new_ui_command): Open specified terminal just once.
4357
4358 2019-07-18 Tom Tromey <tromey@adacore.com>
4359
4360 * symtab.c (main_name): Constify return type.
4361 * symfile.c (set_initial_language): Update.
4362 * symtab.h (main_name): Constify return type.
4363
4364 2019-07-17 Tom Tromey <tom@tromey.com>
4365
4366 * tui/tui-winsource.c (tui_update_source_window)
4367 (tui_update_source_window_as_is)
4368 (tui_update_source_windows_with_line): Remove return.
4369 * tui/tui-disasm.c (tui_show_disassem)
4370 (tui_show_disassem_and_update_source): Remove return.
4371 * tui/tui.c (tui_reset): Remove return.
4372 * tui/tui-wingeneral.c
4373 (tui_check_and_display_highlight_if_needed): Remove return.
4374
4375 2019-07-17 Tom Tromey <tom@tromey.com>
4376
4377 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
4378
4379 2019-07-17 Tom Tromey <tom@tromey.com>
4380
4381 * tui/tui-winsource.h (struct tui_exec_info_window)
4382 (struct tui_source_window_base): Move from tui-data.h.
4383 * tui/tui-winsource.c: Move many method definitions from
4384 elsewhere. Remove "structuring" comments.
4385 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
4386 (tui_source_window_base::refresh_window): Move to
4387 tui-winsource.c.
4388 * tui/tui-win.c (tui_source_window_base::refresh_all)
4389 (tui_source_window_base::update_tab_width)
4390 (tui_source_window_base::set_new_height)
4391 (tui_source_window_base::do_make_visible_with_new_height): Move to
4392 tui-winsource.c.
4393 * tui/tui-source.h: Update.
4394 * tui/tui-source.c (tui_source_window_base::reset): Move to
4395 tui-winsource.c.
4396 * tui/tui-disasm.h: Update.
4397 * tui/tui-data.h (struct tui_exec_info_window): Move to
4398 tui-winsource.h.
4399 (struct tui_source_window_base): Likewise.
4400 * tui/tui-data.c (tui_source_window_base::clear_detail)
4401 (tui_source_window_base, ~tui_source_window_base): Move to
4402 tui-winsource.c.
4403
4404 2019-07-17 Tom Tromey <tom@tromey.com>
4405
4406 * tui/tui-win.c (tui_resize_all)
4407 (tui_source_window_base::update_tab_width)
4408 (tui_adjust_win_heights): Update.
4409 (tui_win_info::make_invisible_and_set_new_height): Rename from
4410 make_invisible_and_set_new_height.
4411 * tui/tui-data.h (struct tui_win_info)
4412 <make_invisible_and_set_new_height>: New method.
4413
4414 2019-07-17 Tom Tromey <tom@tromey.com>
4415
4416 * tui/tui.c: Update.
4417 * tui/tui-source.h (struct tui_source_window): Move from
4418 tui-data.h.
4419 * tui/tui-layout.c: Update.
4420 * tui/tui-disasm.c: Update.
4421 * tui/tui-data.h (struct tui_source_window): Move to
4422 tui-source.h.
4423
4424 2019-07-17 Tom Tromey <tom@tromey.com>
4425
4426 * tui/tui-disasm.h (struct tui_disasm_window): Move from
4427 tui-data.h.
4428 * tui/tui-data.h (struct tui_disasm_window): Move to
4429 tui-disasm.h.
4430
4431 2019-07-17 Tom Tromey <tom@tromey.com>
4432
4433 * tui/tui-regs.h (struct tui_data_item_window): Move from
4434 tui-data.h.
4435 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
4436 * tui/tui-data.h (struct tui_data_item_window): Move to
4437 tui-regs.h.
4438 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
4439
4440 2019-07-17 Tom Tromey <tom@tromey.com>
4441
4442 * tui/tui.c: Update.
4443 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
4444 (tui_cmd_window::max_height): Move to tui-command.c.
4445 * tui/tui-layout.c: Update.
4446 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
4447 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
4448 tui-command.c.
4449 * tui/tui-command.h (struct tui_cmd_window): Move from
4450 tui-data.h.
4451 * tui/tui-command.c: Remove "structuring" comments.
4452 (tui_cmd_window::clear_detail)
4453 (tui_cmd_window::do_make_visible_with_new_height)
4454 (tui_cmd_window::max_height): Move from elsewhere.
4455
4456 2019-07-17 Tom Tromey <tom@tromey.com>
4457
4458 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
4459 Now static.
4460 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
4461 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
4462
4463 2019-07-17 Tom Tromey <tom@tromey.com>
4464
4465 * tui/tui.c: Update.
4466 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
4467 tui-regs.c.
4468 * tui/tui-windata.h: Remove file.
4469 * tui/tui-windata.c: Remove file.
4470 * tui/tui-win.c (tui_data_window::set_new_height)
4471 (tui_data_window::do_make_visible_with_new_height): Move to
4472 tui-regs.c.
4473 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
4474 * tui/tui-regs.c: Remove "structuring" comments.
4475 (tui_data_window::first_data_item_displayed)
4476 (tui_data_window::delete_data_content_windows)
4477 (tui_data_window::erase_data_content)
4478 (tui_data_window::display_all_data)
4479 (tui_data_window::refresh_all)
4480 (tui_data_window::do_scroll_vertical)
4481 (tui_data_window::clear_detail, tui_data_window::set_new_height)
4482 (tui_data_window::do_make_visible_with_new_height)
4483 (tui_data_window::refresh_window): Move from elsewhere.
4484 (_initialize_tui_regs): Move to end of file.
4485 * tui/tui-layout.c: Update.
4486 * tui/tui-hooks.c: Update.
4487 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
4488 * tui/tui-data.c (tui_data_window::clear_detail): Move to
4489 tui-regs.c.
4490 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
4491
4492 2019-07-17 Tom Tromey <tom@tromey.com>
4493
4494 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
4495 seen.
4496
4497 2019-07-17 Tom Tromey <tom@tromey.com>
4498
4499 * tui/tui-win.c (tui_source_window_base::set_new_height)
4500 (tui_source_window_base::do_make_visible_with_new_height): Use
4501 m_has_locator field directly.
4502 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
4503 method.
4504 (struct tui_source_window_base) <has_locator>: Likewise.
4505
4506 2019-07-17 Tom Tromey <tom@tromey.com>
4507
4508 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
4509 Don't declare.
4510 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
4511 Remove.
4512 * tui/tui-win.c (tui_source_window_base::set_new_height)
4513 (tui_source_window_base::set_new_height)
4514 (make_invisible_and_set_new_height)
4515 (tui_source_window_base::do_make_visible_with_new_height)
4516 (tui_source_window_base::do_make_visible_with_new_height):
4517 Update.
4518 * tui/tui-layout.c (show_source_disasm_command, show_data)
4519 (show_source_or_disasm_and_command): Update.
4520 * tui/tui-layout.c (show_layout): Update.
4521
4522 2019-07-17 Tom Tromey <tom@tromey.com>
4523
4524 * tui/tui-layout.c (make_data_window): Remove.
4525 (show_data): Unify creation and re-initialization cases.
4526
4527 2019-07-17 Tom Tromey <tom@tromey.com>
4528
4529 * tui/tui-layout.c (make_source_window, make_disasm_window):
4530 Remove.
4531 (show_data): Unify creation and re-initialization cases.
4532
4533 2019-07-17 Tom Tromey <tom@tromey.com>
4534
4535 * tui/tui-layout.c (make_command_window): Remove.
4536 (show_source_disasm_command, show_source_or_disasm_and_command):
4537 Unify creation and re-initialization cases.
4538
4539 2019-07-17 Tom Tromey <tom@tromey.com>
4540
4541 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
4542 creation and re-initialization cases.
4543
4544 2019-07-17 Tom Tromey <tom@tromey.com>
4545
4546 * tui/tui-regs.c (tui_get_register): Return void.
4547
4548 2019-07-17 Tom Tromey <tom@tromey.com>
4549
4550 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
4551 Simplify.
4552
4553 2019-07-17 Tom Tromey <tom@tromey.com>
4554
4555 * tui/tui-layout.c (show_source_disasm_command): Simplify window
4556 resetting.
4557
4558 2019-07-17 Tom Tromey <tom@tromey.com>
4559
4560 * tui/tui.h (tui_set_layout_by_name): Don't declare.
4561 * tui/tui-regs.c (tui_reg_layout): New function.
4562 (tui_show_registers, tui_reg_command): Use it.
4563 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
4564 (tui_layout_command): Rename from tui_set_layout_by_name. Change
4565 parameters.
4566 (tui_layout_command): Remove.
4567
4568 2019-07-17 Tom Tromey <tom@tromey.com>
4569
4570 * tui/tui-layout.h (tui/tui-layout): Return void.
4571 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
4572
4573 2019-07-17 Tom Tromey <tom@tromey.com>
4574
4575 * tui/tui-layout.c (show_source_disasm_command, show_data):
4576 Update.
4577 (reset_locator): Remove.
4578 (show_source_or_disasm_and_command): Update.
4579
4580 2019-07-17 Tom Tromey <tom@tromey.com>
4581
4582 * tui/tui-source.c (tui_source_window_base::reset): Remove
4583 win_type parameter.
4584 * tui/tui-layout.c (make_command_window, make_source_window)
4585 (make_disasm_window, make_data_window)
4586 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
4587 (reset_locator, show_source_or_disasm_and_command): Update.
4588 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
4589 win_type parameter.
4590 (struct tui_source_window_base) <reset>: Likewise.
4591
4592 2019-07-17 Tom Tromey <tom@tromey.com>
4593
4594 * tui/tui-layout.c (show_source_disasm_command): Use
4595 reset_locator.
4596 (reset_locator): New function.
4597 (init_and_make_win): Remove.
4598 (show_source_or_disasm_and_command): Use reset_locator.
4599
4600 2019-07-17 Tom Tromey <tom@tromey.com>
4601
4602 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
4603 condition.
4604 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
4605 Remove condition.
4606 * tui/tui-source.c (tui_source_window_base::reset): New method.
4607 * tui/tui-layout.c (make_command_window): Don't call
4608 init_and_make_win.
4609 (make_source_window, make_disasm_window): Don't call
4610 make_source_or_disasm_window.
4611 (make_data_window): Don't call init_and_make_win. Change calling
4612 convention.
4613 (show_source_disasm_command, show_data): Simplify.
4614 (make_source_or_disasm_window): Remove.
4615 (show_source_or_disasm_and_command): Simplify.
4616 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
4617 (struct tui_source_window_base) <reset>: Likewise.
4618 <execution_info>: Remove initializer.
4619 * tui/tui-data.c (tui_source_window_base): Initialize
4620 execution_info.
4621
4622 2019-07-17 Tom Tromey <tom@tromey.com>
4623
4624 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
4625 variable.
4626
4627 2019-07-17 Tom Tromey <tom@tromey.com>
4628
4629 * tui/tui.c (tui_rl_other_window): Update.
4630 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
4631 superclass method first. Always iterate over regs_content.
4632 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
4633 method.
4634 * tui/tui-win.c (tui_set_focus_command): Update.
4635
4636 2019-07-17 Tom Tromey <tom@tromey.com>
4637
4638 * tui/tui-win.c (tui_set_focus_command): Rename from
4639 tui_set_focus. Call tui_enable.
4640 (tui_set_focus_command): Remove.
4641
4642 2019-07-17 Tom Tromey <tom@tromey.com>
4643
4644 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
4645 refresh_window.
4646 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
4647 touchwin.
4648 (tui_data_window::refresh_window): Call refresh_window on data
4649 items. Always call superclass refresh_window.
4650 (tui_win_info::refresh): Remove.
4651 (tui_source_window_base::refresh_window): Update.
4652 (tui_refresh_all): Update.
4653 * tui/tui-layout.c (show_source_disasm_command): Remove call to
4654 refresh_window.
4655 (show_source_or_disasm_and_command): Likewise.
4656 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
4657 (struct tui_source_window_base) <refresh>: Likewise.
4658
4659 2019-07-17 Tom Tromey <tom@tromey.com>
4660
4661 * tui/tui-winsource.c (tui_clear_source_content)
4662 (tui_show_source_content): Update.
4663 * tui/tui-source.c (tui_source_window::showing_source_p): Check
4664 whether content is empty.
4665 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
4666 Remove.
4667
4668 2019-07-17 Tom Tromey <tom@tromey.com>
4669
4670 * tui/tui-winsource.c (tui_erase_source_content): Clear the
4671 window's contents.
4672 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
4673 * tui/tui-source.c (tui_set_source_content_nil): Remove.
4674
4675 2019-07-17 Tom Tromey <tom@tromey.com>
4676
4677 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
4678 (struct tui_data_item_window): Update.
4679
4680 2019-07-17 Tom Tromey <tom@tromey.com>
4681
4682 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
4683 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
4684 defines.
4685
4686 2019-07-17 Tom Tromey <tom@tromey.com>
4687
4688 * tui/tui-winsource.h (tui_erase_source_content)
4689 (tui_clear_source_content): Remove "display_prompt" parameter.
4690 * tui/tui-winsource.c (tui_update_source_window_as_is)
4691 (tui_update_source_windows_with_addr): Update.
4692 (tui_clear_source_content): Remove "display_prompt" parameter.
4693 (tui_erase_source_content): Likewise. Simplify.
4694 (tui_show_source_content): Update.
4695 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
4696 * tui/tui-stack.c (tui_show_frame_info): Update.
4697 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
4698 Remove defines.
4699
4700 2019-07-17 Tom Tromey <tom@tromey.com>
4701
4702 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
4703 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
4704 parameter.
4705 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
4706 parameter.
4707
4708 2019-07-17 Tom Tromey <tom@tromey.com>
4709
4710 * tui/tui-winsource.c (tui_clear_source_content)
4711 (tui_show_source_content, tui_show_exec_info_content)
4712 (tui_clear_exec_info_content): Update.
4713 * tui/tui-stack.c (tui_show_locator_content): Update.
4714 (tui_show_frame_info): Update.
4715 * tui/tui-source.h (tui_source_window): Don't declare.
4716 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
4717 from tui_source_is_displayed.
4718 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
4719 Remove field.
4720 (struct tui_source_window_base) <content_in_use>: New field. Now
4721 bool.
4722 (struct tui_source_window) <showing_source_p>: New method.
4723 (TUI_SRC_WIN): Change cast.
4724 * tui/tui-data.c (tui_initialize_static_data): Update.
4725
4726 2019-07-17 Tom Tromey <tom@tromey.com>
4727
4728 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
4729 location_matches_p.
4730 * tui/tui-source.c (tui_source_window::location_matches_p): New
4731 method.
4732 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
4733 method.
4734 * tui/tui-data.h (struct tui_source_window_base)
4735 <location_matches_p>: New method.
4736 (struct tui_source_window, struct tui_disasm_window)
4737 <location_matches_p>: Likewise.
4738
4739 2019-07-17 Tom Tromey <tom@tromey.com>
4740
4741 * tui/tui-win.c (tui_set_win_height_command): Rename from
4742 tui_set_win_height.
4743 (tui_set_win_height_command): Remove.
4744
4745 2019-07-17 Tom Tromey <tom@tromey.com>
4746
4747 * tui/tui-source.c (tui_source_window): New constructor. Add
4748 observer.
4749 (~tui_source_window): New destructor.
4750 (tui_source_window::style_changed): New method.
4751 * tui/tui-hooks.c (tui_redisplay_source): Remove.
4752 (tui_attach_detach_observers): Update.
4753 * tui/tui-data.h (struct tui_source_window): Make constructor not
4754 inline. Add destructor.
4755 (struct tui_source_window) <style_changed>: New method.
4756 <m_observable>: New member.
4757
4758 2019-07-17 Tom Tromey <tom@tromey.com>
4759
4760 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
4761 * tui/tui-win.c (tui_resize_all): Fix typo.
4762
4763 2019-07-17 Tom Tromey <tom@tromey.com>
4764
4765 * tui/tui-wingeneral.h (tui_refresh_all): Update.
4766 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
4767 (tui_refresh_all): Remove "list" parameter. Use foreach.
4768 * tui/tui-win.c (window_name_completer): Use foreach.
4769 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
4770 (update_tab_width): Likewise.
4771 * tui/tui-layout.c (show_layout): Update.
4772 * tui/tui-data.h (class tui_window_iterator): New.
4773 (struct all_tui_windows): New.
4774 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
4775
4776 2019-07-17 Tom Tromey <tom@tromey.com>
4777
4778 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
4779 parameter. Don't reference globals.
4780 (tui_reg_command): Update.
4781
4782 2019-07-17 Tom Tromey <tom@tromey.com>
4783
4784 * tui/tui-regs.c (tui_show_registers): Simplify.
4785
4786 2019-07-17 Tom Tromey <tom@tromey.com>
4787
4788 * tui/tui-regs.c (tui_show_registers): Update.
4789 (tui_show_register_group): Add win_info parameter.
4790
4791 2019-07-17 Tom Tromey <tom@tromey.com>
4792
4793 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
4794 Rename from tui_display_reg_element_at_line.
4795 (tui_data_window::display_registers_from_line): Update.
4796 * tui/tui-data.h (struct tui_data_window)
4797 <display_reg_element_at_line>: New method.
4798
4799 2019-07-17 Tom Tromey <tom@tromey.com>
4800
4801 * tui/tui-regs.h (tui_display_registers_from)
4802 (tui_display_registers_from_line): Don't declare.
4803 * tui/tui-windata.c (tui_data_window::display_all_data)
4804 (tui_data_window::refresh_all)
4805 (tui_data_window::do_scroll_vertical): Update.
4806 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
4807 from tui_display_registers_from.
4808 (tui_display_reg_element_at_line): Update.
4809 (tui_data_window::display_registers_from_line): Rename from
4810 tui_display_registers_from_line.
4811 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
4812 display_registers_from_line>: New methods.
4813
4814 2019-07-17 Tom Tromey <tom@tromey.com>
4815
4816 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
4817 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
4818 from tui_erase_data_content.
4819 (tui_data_window::display_all_data)
4820 (tui_data_window::refresh_all)
4821 (tui_data_window::do_scroll_vertical): Update.
4822 * tui/tui-regs.c (tui_show_registers): Update.
4823 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
4824 New method.
4825
4826 2019-07-17 Tom Tromey <tom@tromey.com>
4827
4828 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
4829 declare.
4830 * tui/tui-windata.c
4831 (tui_data_window::delete_data_content_windows): Rename from
4832 tui_delete_data_content_windows.
4833 (tui_data_window::display_all_data)
4834 (tui_data_window::do_scroll_vertical): Update.
4835 * tui/tui-data.h (struct tui_data_window)
4836 <delete_data_content_windows>: New method.
4837
4838 2019-07-17 Tom Tromey <tom@tromey.com>
4839
4840 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
4841 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
4842
4843 2019-07-17 Tom Tromey <tom@tromey.com>
4844
4845 * tui/tui-windata.h (tui_display_all_data): Don't declare.
4846 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
4847 from tui_display_all_data.
4848 * tui/tui-win.c
4849 (tui_data_window::do_make_visible_with_new_height): Update.
4850 * tui/tui-regs.c (tui_show_registers): Update.
4851 * tui/tui-layout.c (tui_set_layout): Update.
4852 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
4853 method.
4854
4855 2019-07-17 Tom Tromey <tom@tromey.com>
4856
4857 * tui/tui-windata.h (tui_display_data_from): Don't declare.
4858 * tui/tui-windata.c (tui_display_data_from): Remove.
4859 (tui_data_window::refresh_all): Update.
4860
4861 2019-07-17 Tom Tromey <tom@tromey.com>
4862
4863 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
4864 * tui/tui-windata.c (tui_display_data_from_line): Remove.
4865 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
4866 tui_display_registers_from_line.
4867 * tui/tui-regs.h (tui_display_registers_from_line): Update.
4868 * tui/tui-regs.c (tui_display_registers_from_line): Remove
4869 "force_display" parameter.
4870
4871 2019-07-17 Tom Tromey <tom@tromey.com>
4872
4873 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
4874 declare.
4875 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
4876 Rename from tui_first_reg_element_no_inline.
4877 (tui_display_reg_element_at_line)
4878 (tui_display_registers_from_line): Update.
4879 * tui/tui-data.h (struct tui_data_window)
4880 <first_reg_element_no_inline>: New method.
4881
4882 2019-07-17 Tom Tromey <tom@tromey.com>
4883
4884 * tui/tui-windata.c (tui_display_data_from)
4885 (tui_data_window::do_scroll_vertical): Update.
4886 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
4887 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
4888 Rename from tui_line_from_reg_element_no.
4889 (tui_display_registers_from_line): Update.
4890 * tui/tui-data.h (struct tui_data_window)
4891 <line_from_reg_element_no>: New method.
4892
4893 2019-07-17 Tom Tromey <tom@tromey.com>
4894
4895 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
4896 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
4897 tui_last_regs_line_no.
4898 (tui_display_reg_element_at_line)
4899 (tui_display_registers_from_line): Update.
4900 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
4901 method.
4902
4903 2019-07-17 Tom Tromey <tom@tromey.com>
4904
4905 PR tui/24722:
4906 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
4907 (tui_update_breakpoint_info): Add "being_deleted" parameter.
4908 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
4909 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
4910 (tui_update_breakpoint_info): Likewise.
4911 * tui/tui-hooks.c (tui_event_create_breakpoint)
4912 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
4913 Update.
4914
4915 2019-07-17 Tom Tromey <tom@tromey.com>
4916
4917 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
4918
4919 2019-07-17 Tom Tromey <tom@tromey.com>
4920
4921 * tui/tui-winsource.c (tui_update_source_window_as_is)
4922 (tui_update_source_windows_with_addr): Update.
4923 * tui/tui-source.h (tui_set_source_content)
4924 (tui_show_symtab_source): Add "win_info" parameter.
4925 * tui/tui-source.c (tui_set_source_content): Add "win_info"
4926 parameter.
4927 (tui_show_symtab_source): Likewise.
4928
4929 2019-07-17 Tom Tromey <tom@tromey.com>
4930
4931 * tui/tui-wingeneral.c
4932 (tui_check_and_display_highlight_if_needed): Check can_highlight.
4933
4934 2019-07-17 Tom Tromey <tom@tromey.com>
4935
4936 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
4937 (struct tui_cmd_window) <can_scroll>: New method.
4938 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
4939 method.
4940
4941 2019-07-17 Tom Tromey <tromey@adacore.com>
4942
4943 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
4944 do_field_signed>: Rename. Change type of "value".
4945 * ui-out.c (ui_out::field_signed): Rename from field_int.
4946 Change type of "value".
4947 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
4948 type of "value".
4949 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
4950 do_field_int. Change type of "value".
4951 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
4952 do_field_int. Change type of "value".
4953 * tracepoint.c (trace_status_mi, tfind_1)
4954 (print_one_static_tracepoint_marker): Update.
4955 * thread.c (print_thread_info_1, print_selected_thread_frame):
4956 Update.
4957 * stack.c (print_frame, print_frame_info): Update.
4958 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
4959 Update.
4960 * source.c (print_source_lines_base): Update.
4961 * skip.c (info_skip_command): Update.
4962 * record-btrace.c (btrace_ui_out_decode_error)
4963 (btrace_call_history_src_line): Update.
4964 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
4965 Update.
4966 * progspace.c (print_program_space): Update.
4967 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
4968 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
4969 do_field_int. Change type of "value".
4970 * mi/mi-out.c (mi_ui_out::do_table_begin)
4971 (mi_ui_out::do_table_header): Update.
4972 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
4973 type of "value".
4974 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
4975 (mi_cmd_data_list_changed_registers, output_register)
4976 (mi_cmd_data_read_memory, mi_load_progress)
4977 (mi_cmd_trace_frame_collected): Update.
4978 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
4979 Update.
4980 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
4981 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
4982 (mi_cmd_var_list_children, varobj_update_one): Update.
4983 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
4984 (mi_cmd_stack_list_args, list_arg_or_local): Update.
4985 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
4986 * inferior.c (print_inferior): Update.
4987 * gdb_bfd.c (print_one_bfd): Update.
4988 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
4989 Update.
4990 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
4991 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
4992 do_field_int. Change type of "value".
4993 * cli-out.c (cli_ui_out::do_field_signed): Rename from
4994 do_field_int. Change type of "value".
4995 * breakpoint.c (watchpoint_check, print_breakpoint_location)
4996 (print_one_breakpoint_location, print_it_catch_fork)
4997 (print_one_catch_fork, print_it_catch_vfork)
4998 (print_one_catch_vfork, print_it_catch_solib)
4999 (print_it_catch_exec, print_it_ranged_breakpoint)
5000 (print_mention_watchpoint, print_mention_masked_watchpoint)
5001 (bkpt_print_it, update_static_tracepoint): Update.
5002 * break-catch-throw.c (print_it_exception_catchpoint): Update.
5003 * break-catch-syscall.c (print_it_catch_syscall): Update.
5004 * ada-tasks.c (print_ada_task_info): Update.
5005 * ada-lang.c (print_it_exception, print_mention_exception):
5006 Update.
5007
5008 2019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
5009
5010 PR breakpoints/24541
5011 * gdbarch.c: Regenerate.
5012 * gdbarch.h: Regenerate.
5013 * gdbarch.sh: Adjust return type and parameter types for
5014 'stap_adjust_register'.
5015 (i386_stap_adjust_register): Adjust signature and return new
5016 register name.
5017 * stap-probe.c (stap_parse_register_operand): Adjust use of
5018 'gdbarch_stap_adjust_register'.
5019
5020 2019-07-17 Tom Tromey <tromey@adacore.com>
5021
5022 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
5023 declare VEC.
5024 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
5025 std::vector.
5026 (struct s390_process_info): Add initializers.
5027 (s390_add_process): Use new.
5028 (s390_linux_nat_target::low_forget_process): Use delete.
5029 (s390_linux_nat_target::low_new_fork)
5030 (s390_linux_nat_target::stopped_by_watchpoint)
5031 (s390_linux_nat_target::low_prepare_to_resume)
5032 (s390_linux_nat_target::insert_watchpoint)
5033 (s390_linux_nat_target::insert_hw_breakpoint)
5034 (s390_linux_nat_target::remove_watchpoint)
5035 (s390_linux_nat_target::remove_hw_breakpoint): Update.
5036
5037 2019-07-16 John Baldwin <jhb@FreeBSD.org>
5038
5039 * aarch64-fbsd-nat.c: Include regcache.h.
5040 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
5041 argument.
5042 (aarch64_fbsd_nat_target::fetch_registers)
5043 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
5044 variable.
5045 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
5046
5047 2019-07-16 John Baldwin <jhb@FreeBSD.org>
5048
5049 * fbsd-nat.c: Include gdbarch.h.
5050
5051 2019-07-15 Tom Tromey <tromey@adacore.com>
5052
5053 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
5054
5055 2019-07-15 Tom Tromey <tromey@adacore.com>
5056
5057 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
5058 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
5059 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
5060 * cli-out.c (cli_ui_out::do_field_int): New method.
5061 * ui-out.c (ui_out::field_unsigned): New method.
5062 * symfile.c (generic_load): Use field_unsigned.
5063 (print_transfer_performance): Likewise.
5064 * record-btrace.c (ui_out_field_uint): Remove.
5065 (btrace_call_history_insn_range, btrace_call_history): Use
5066 field_unsigned.
5067 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
5068 field_unsigned.
5069 * ui-out.h (class ui_out) <field_unsigned>: New method.
5070 <do_field_unsigned>: Likewise.
5071
5072 2019-07-15 Tom Tromey <tromey@adacore.com>
5073
5074 * mi/mi-main.c (list_available_thread_groups): Use field_string.
5075 * mi/mi-interp.c (mi_memory_changed): Use field_string.
5076 * target.c (flash_erase_command): Use field_string.
5077 * infrun.c (print_signal_received_reason): Use field_string.
5078 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
5079 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
5080 field_string.
5081 * ada-tasks.c (print_ada_task_info): Use field_string.
5082
5083 2019-07-15 Tom Tromey <tromey@adacore.com>
5084
5085 * target.c (flash_erase_command): Use field_core_addr.
5086 * symfile.c (generic_load): Use field_core_addr.
5087 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
5088 Use field_core_addr.
5089 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
5090 field_core_addr.
5091
5092 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5093
5094 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
5095 value if its desired type is smaller than a CORE_ADDR and signed.
5096
5097 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5098
5099 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
5100 of changes to field names, and use new is_reference field to
5101 decide if a property is a reference or not.
5102 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
5103 field.
5104 (struct dwarf2_property_baton): Update header comment, rename
5105 'referenced_type' to 'property_type' and update comments.
5106 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
5107 default property type, store in property baton, update to take
5108 accound of renamed field.
5109 (read_func_scope): Update call to attr_to_dynamic_prop.
5110 (read_array_type): Likewise.
5111 (dwarf2_per_cu_addr_sized_int_type): New function.
5112 (read_subrange_index_type): Move type finding code to
5113 dwarf2_per_cu_addr_sized_int_type.
5114 (read_subrange_type): Update calls to attr_to_dynamic_prop.
5115 (dwarf2_per_cu_addr_type): New function.
5116 (set_die_type): Update calls to attr_to_dynamic_prop.
5117
5118 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5119
5120 * dwarf2read.c (read_subrange_index_type): New function.
5121 (read_subrange_type): Move code into new function and call it.
5122 * gdbtypes.c (create_range_type): Add some asserts.
5123
5124 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5125
5126 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
5127 update return statements.
5128 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
5129 declaration, and update comment to match.
5130 * gdbtypes.c (resolve_dynamic_array): Update call to
5131 dwarf2_evaluate_property to match new return type.
5132
5133 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5134
5135 * valarith.c (value_subscripted_rvalue): Change lowerbound
5136 parameter type from int to LONGEST.
5137 * value.h (value_subscripted_rvalue): Likewise in declaration.
5138
5139 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
5140
5141 * cli/cli-utils.c (info_print_command_completer): New function.
5142 * cli/cli-utils.h: Add 'completer.h' include, and forward
5143 declaration for 'struct cmd_list_element'.
5144 (info_print_command_completer): Declare.
5145 * stack.c (_initialize_stack): Add completer for 'info locals' and
5146 'info args'.
5147 * symtab.c (_initialize_symtab): Add completer for 'info
5148 variables' and 'info functions'.
5149 * NEWS: Mention completion for additional info commands.
5150
5151 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
5152
5153 * cli/cli-utils.c (extract_info_print_args): Delete.
5154 (extract_arg_maybe_quoted): Delete.
5155 (info_print_options_defs): New variable.
5156 (make_info_print_options_def_group): New function.
5157 (extract_info_print_options): Define new function.
5158 * cli/cli-utils.h (extract_info_print_args): Delete.
5159 (struct info_print_options): New structure.
5160 (extract_info_print_options): Declare new function.
5161 * stack.c (info_locals_command): Update to use new
5162 extract_info_print_options, also add a header comment.
5163 (info_args_command): Likewise.
5164 * symtab.c (info_variables_command): Likewise.
5165 (info_functions_command): Likewise.
5166
5167 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
5168
5169 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
5170 to extract string arguments.
5171 * common/common-utils.c (extract_string_maybe_quoted): New function.
5172 * common/common-utils.h (extract_string_maybe_quoted): Declare.
5173
5174 2019-07-11 Tom Tromey <tromey@adacore.com>
5175
5176 * main.c (get_init_files): Use GDBINIT, not gdbinit.
5177 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
5178 * top.h (gdbinit): Don't declare.
5179 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
5180 into...
5181 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
5182 * top.c (gdb_init): Don't call init_cli_cmds.
5183 (gdbinit): Remove.
5184 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
5185
5186 2019-07-11 Tom Tromey <tromey@adacore.com>
5187
5188 * python/py-inferior.c (add_thread_object): Don't use thread_obj
5189 after it has been moved.
5190
5191 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
5192
5193 * valops.c (value_must_coerce_to_target): Change return type to
5194 bool.
5195 * value.h (value_must_coerce_to_target): Likewise.
5196
5197 2019-07-10 Simon Marchi <simon.marchi@efficios.com>
5198
5199 * breakpoint.c (is_hardware_watchpoint): Remove
5200 forward-declaration.
5201 (is_masked_watchpoint): Change return type to bool.
5202 (is_tracepoint): Likewise.
5203 (is_breakpoint): Likewise.
5204 (is_hardware_watchpoint): Likewise.
5205 (is_watchpoint): Likewise.
5206 (is_no_memory_software_watchpoint): Likewise.
5207 (is_catchpoint): Likewise.
5208 (breakpoint_1): Make FILTER parameter's return type bool.
5209 is_masked_watchpoint): Change return type to bool.
5210 (save_breakpoints): Make FILTER parameter's return type bool.
5211 * breakpoint.h (is_breakpoint): Change return type to bool.
5212 (is_watchpoint): Likewise.
5213 (is_catchpoint): Likewise.
5214 (is_tracepoint): Likewise.
5215
5216 2019-07-10 Tom Tromey <tom@tromey.com>
5217
5218 * defs.h: Don't include gdbarch.h.
5219 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
5220 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
5221 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
5222 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
5223 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
5224 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
5225 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
5226 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
5227 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
5228 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
5229 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
5230 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
5231 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
5232 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
5233 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
5234 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
5235 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
5236 record-btrace.c, record.h, regcache-dump.c, regcache.h,
5237 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
5238 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
5239 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
5240 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
5241 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
5242 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
5243 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
5244 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
5245 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
5246
5247 2019-07-10 Tom Tromey <tromey@adacore.com>
5248
5249 * ada-lang.h (is_ada_exception_catchpoint): Declare.
5250 * breakpoint.c (init_ada_exception_breakpoint): Register as
5251 bp_catchpoint.
5252 (print_one_breakpoint_location, print_one_breakpoint): Use
5253 is_ada_exception_catchpoint.
5254 * ada-lang.c (class ada_catchpoint_location): Pass
5255 bp_loc_software_breakpoint to bp_location constructor.
5256 (is_ada_exception_catchpoint): New function.
5257
5258 2019-07-10 Tom Tromey <tromey@adacore.com>
5259
5260 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
5261 VEC.
5262 (struct arm_exidx_entry): New method operator<.
5263 (struct arm_exidx_data) <section_maps>: Change type.
5264 (arm_exidx_data_free): Remove.
5265 (arm_exidx_data_key): Change type. Move lower.
5266 (arm_exidx_new_objfile): Update.
5267 (arm_compare_exidx_entries): Remove.
5268 (arm_find_exidx_entry, _initialize_arm_tdep)
5269
5270 2019-07-10 Tom Tromey <tromey@adacore.com>
5271
5272 * solib-spu.c (ocl_program_data_key): Change type.
5273 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
5274 Update.
5275
5276 2019-07-10 Tom Tromey <tromey@adacore.com>
5277
5278 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
5279 (struct solib_aix_inferior_data) <library_list>: Change type.
5280 (solib_aix_inferior_data_handle): Change type.
5281 (get_solib_aix_inferior_data): Update.
5282 (solib_aix_free_library_list): Remove.
5283 (library_list_start_library): Update.
5284 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
5285 return type.
5286 (solib_aix_get_library_list)
5287 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
5288 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
5289
5290 2019-07-10 Tom Tromey <tromey@adacore.com>
5291
5292 * solib-dsbt.c (struct dsbt_info): Add initializers.
5293 (solib_dsbt_pspace_data): Change type.
5294 (dsbt_pspace_data_cleanup): Remove.
5295 (get_dsbt_info, _initialize_dsbt_solib): Update.
5296
5297 2019-07-10 Tom Tromey <tromey@adacore.com>
5298
5299 * spu-tdep.c (spu_overlay_data): Change type.
5300 (spu_get_overlay_table, spu_overlay_new_objfile)
5301 (_initialize_spu_tdep): Update.
5302
5303 2019-07-10 Tom Tromey <tromey@adacore.com>
5304
5305 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
5306 destructor.
5307 (dbx_objfile_data_key): Change type and declare later.
5308 (DBX_SYMFILE_INFO): Rewrite.
5309 * dbxread.c (dbx_objfile_data_key): Change type.
5310 (dbx_symfile_init): Update.
5311 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
5312 (coffstab_build_psymtabs, elfstab_build_psymtabs)
5313 (stabsect_build_psymtabs, _initialize_dbxread): Update.
5314
5315 2019-07-10 Tom Tromey <tromey@adacore.com>
5316
5317 * jit.c (jit_program_space_key): Change type. Move lower.
5318 (get_jit_program_space_data): Update.
5319 (jit_program_space_data_cleanup): Remove.
5320 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
5321 Update.
5322 (struct jit_program_space_data): Add initializers.
5323
5324 2019-07-10 Tom Tromey <tromey@adacore.com>
5325
5326 * solib-darwin.c (struct darwin_info): Add initializers.
5327 (solib_darwin_pspace_data): Change type.
5328 (darwin_pspace_data_cleanup): Remove.
5329 (get_darwin_info, _initialize_darwin_solib): Update.
5330
5331 2019-07-10 Tom Tromey <tromey@adacore.com>
5332
5333 * remote-sim.c (struct sim_inferior_data): Add initializers,
5334 constructor, and destructor.
5335 (sim_inferior_data_key): Change type. Move lower.
5336 (check_for_duplicate_sim_descriptor): Update.
5337 (get_sim_inferior_data): Use new. Update.
5338 (~sim_inferior_data_cleanup): Rename from
5339 sim_inferior_data_cleanup. Simplify.
5340 (gdbsim_close_inferior, simulator_command)
5341 (sim_command_completer, _initialize_remote_sim): Update.
5342 (next_pid, INITIAL_PID): Move earlier.
5343
5344 2019-07-10 Tom Tromey <tromey@adacore.com>
5345
5346 * python/python-internal.h (create_thread_object): Return
5347 gdbpy_ref.
5348 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
5349 * python/py-inferior.c (struct threadlist_entry): Add
5350 constructor.
5351 <thread_obj>: Now a gdbpy_ref.
5352 (thread_to_thread_object): Update.
5353 (add_thread_object): Use new.
5354 (delete_thread_object): Use delete.
5355 (infpy_threads): Update.
5356 (py_free_inferior): Update. Construct "inf_obj" after acquiring
5357 GIL.
5358
5359 2019-07-10 Tom Tromey <tromey@adacore.com>
5360
5361 * valops.c (value_cast): Specialize error message for Ada.
5362
5363 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
5364
5365 * breakpoint.c (breakpoint_1): Update doc and parameter names.
5366
5367 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
5368
5369 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
5370 bpstat_should_step): Return bool, adjust comments.
5371 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
5372 bpstat_should_step): Likewise.
5373
5374 2019-07-10 Alan Hayward <alan.hayward@arm.com>
5375
5376 * features/Makefile: Use feature target descriptions for Arm.
5377 * features/arm/arm-core.c: Generate new file.
5378 * features/arm/arm-fpa.c: Likewise.
5379 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
5380 * features/arm/arm-m-profile.c: Likewise.
5381 * features/arm/arm-vfpv2.c: Likewise.
5382 * features/arm/arm-vfpv3.c: Likewise.
5383 * features/arm/xscale-iwmmxt.c: Likewise.
5384 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
5385
5386 2019-07-10 Alan Hayward <alan.hayward@arm.com>
5387
5388 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
5389 ptrace earlier.
5390
5391 2019-07-10 Alan Hayward <alan.hayward@arm.com>
5392
5393 * features/aarch64-pauth.c: Regenerate.
5394
5395 2019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
5396
5397 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
5398 bool.
5399 (bpstat_what): Use false instead of 0.
5400
5401 2019-07-09 Pedro Alves <palves@redhat.com>
5402
5403 * break-catch-throw.c (is_exception_catchpoint): New.
5404 * breakpoint.c (print_one_breakpoint_location): New parameter
5405 'raw_loc'. Handle it. Use
5406 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
5407 looking at the breakpoint's type.
5408 (print_one_breakpoint): If handling "maint info breakpoints", also
5409 print locations of exception catchpoints.
5410 * breakpoint.h (is_exception_catchpoint): Declare.
5411
5412 2019-07-09 Pedro Alves <palves@redhat.com>
5413
5414 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
5415 "addr" field.
5416 (allocate_location_exception_catchpoint): New.
5417 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
5418 (initialize_throw_catchpoint_ops): Install
5419 allocate_location_exception_catchpoint as allocate_location
5420 method.
5421 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
5422 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
5423 bp_loc_other.
5424 (breakpoint_address_is_meaningful): Delete.
5425 (bl_address_is_meaningful): New.
5426 (breakpoint_locations_match): Adjust comment.
5427 (bp_location_from_bp_type): New, factored out of...
5428 (bp_location::bp_location(breakpoint *)): ... this.
5429 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
5430 factored out of...
5431 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
5432 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
5433 breakpoint_address_is_meaningful.
5434 (bp_locations_compare): Adjust comment.
5435 (update_global_location_list): Use bl_address_is_meaningful
5436 instead of breakpoint_address_is_meaningful.
5437 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
5438 explicit.
5439 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
5440 * python/py-breakpoint.c (bppy_get_location): No longer check
5441 whether location is null.
5442
5443 2019-07-09 Pedro Alves <palves@redhat.com>
5444
5445 PR c++/15468
5446 * breakpoint.c (print_one_breakpoint_location): Remove
5447 single-location assert.
5448
5449 2019-07-09 Tom Tromey <tom@tromey.com>
5450
5451 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
5452 * configure: Rebuild.
5453 * configure.ac: Change common to gdbsupport.
5454 * gdbsupport: Rename from common.
5455 * acinclude.m4: Change common to gdbsupport.
5456 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
5457 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
5458 gdbsupport.
5459 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
5460 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
5461 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
5462 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
5463 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
5464 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
5465 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
5466 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
5467 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
5468 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
5469 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
5470 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
5471 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
5472 coff-pe-read.c, command.h, compile/compile-c-support.c,
5473 compile/compile-c.h, compile/compile-cplus-symbols.c,
5474 compile/compile-cplus-types.c, compile/compile-cplus.h,
5475 compile/compile-loc2c.c, compile/compile.c, completer.c,
5476 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
5477 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
5478 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
5479 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
5480 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
5481 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
5482 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
5483 features/aarch64-core.c, features/aarch64-fpu.c,
5484 features/aarch64-pauth.c, features/aarch64-sve.c,
5485 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
5486 features/i386/32bit-core.c, features/i386/32bit-linux.c,
5487 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
5488 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
5489 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
5490 features/i386/64bit-core.c, features/i386/64bit-linux.c,
5491 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
5492 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
5493 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
5494 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
5495 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
5496 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
5497 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
5498 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
5499 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
5500 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
5501 go32-nat.c, guile/guile.c, guile/scm-ports.c,
5502 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
5503 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
5504 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
5505 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
5506 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
5507 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
5508 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
5509 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
5510 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
5511 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
5512 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
5513 minsyms.c, mips-linux-tdep.c, namespace.h,
5514 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
5515 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
5516 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
5517 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
5518 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
5519 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
5520 nat/linux-waitpid.c, nat/mips-linux-watch.c,
5521 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
5522 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
5523 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
5524 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
5525 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
5526 procfs.c, producer.c, progspace.h, psymtab.h,
5527 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
5528 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
5529 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
5530 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
5531 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
5532 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
5533 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
5534 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
5535 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
5536 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
5537 target-memory.c, target.c, target.h, target/waitstatus.c,
5538 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
5539 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
5540 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
5541 unittests/array-view-selftests.c,
5542 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
5543 unittests/common-utils-selftests.c,
5544 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
5545 unittests/format_pieces-selftests.c,
5546 unittests/function-view-selftests.c,
5547 unittests/lookup_name_info-selftests.c,
5548 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
5549 unittests/mkdir-recursive-selftests.c,
5550 unittests/observable-selftests.c,
5551 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
5552 unittests/parse-connection-spec-selftests.c,
5553 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
5554 unittests/scoped_fd-selftests.c,
5555 unittests/scoped_mmap-selftests.c,
5556 unittests/scoped_restore-selftests.c,
5557 unittests/string_view-selftests.c, unittests/style-selftests.c,
5558 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
5559 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
5560 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
5561 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
5562 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
5563 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
5564
5565 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5566
5567 * linespec.c (decode_digits_list_mode): Set explicit_line to a
5568 bool value.
5569 (decode_digits_ordinary): Set explicit_line field in sal.
5570 * symtab.c (skip_prologue_sal): Don't skip prologue for a
5571 symtab_and_line that was set on an explicit line number in
5572 assembler code. Do always update the recorded symtab and line if
5573 we do skip the prologue.
5574
5575 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5576
5577 * breakpoint.c (set_breakpoint_location_function): Remove
5578 explicit_loc parameter.
5579 (momentary_breakpoint_from_master): Update call to
5580 set_breakpoint_location_function.
5581 (add_location_to_breakpoint): Likewise.
5582
5583 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5584
5585 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
5586 required features based on default bfd type when no specific bfd
5587 is present.
5588
5589 2019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5590
5591 * NEWS: Mention that GDB printf and eval commands can now print
5592 C-style and Ada-style convenience var strings without
5593 calling the inferior.
5594 * printcmd.c (printf_c_string): Locally print GDB internal var
5595 instead of transiting via the inferior.
5596 (printf_wide_c_string): Likewise.
5597
5598 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5599
5600 PR breakpoints/25011
5601 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
5602
5603 2019-07-04 Tom Tromey <tom@tromey.com>
5604
5605 PR tui/24724:
5606 * tui/tui-winsource.c (tui_clear_source_content): Update.
5607 (tui_source_window_base::set_is_exec_point_at): Fix comment.
5608 (tui_update_breakpoint_info): Update.
5609 (tui_set_exec_info_content): Update.
5610 * tui/tui-source.c (tui_set_source_content_nil): Update.
5611 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
5612 has_break.
5613 * tui/tui-data.h (enum tui_bp_flag): New.
5614 (tui_bp_flags): New enum flags type.
5615 (struct tui_source_element) <break_mode>: Change type. Rename
5616 from has_break.
5617 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
5618 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
5619 constants.
5620 * tui/tui-winsource.h: Fix comment.
5621
5622 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5623
5624 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
5625 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
5626 (store_fpregs_to_thread)
5627 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
5628 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
5629 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
5630 (IWMMXT_REGS_SIZE): Add define.
5631 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
5632 (fetch_vfp_regs, store_vfp_regs)
5633 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
5634 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
5635
5636 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5637
5638 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
5639 defines.
5640 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
5641 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
5642 (ARM_INT_REGISTER_SIZE): ...to this.
5643 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
5644 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
5645 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
5646 (arm_linux_collect_gregset, supply_nwfpe_register)
5647 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
5648 defines.
5649 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
5650 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
5651 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
5652 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
5653 (arm_return_in_memory, arm_store_return_value)
5654 (arm_get_longjmp_target, arm_register_g_packet_guesses)
5655 (arm_record_ld_st_multiple): Likewise.
5656 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
5657 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
5658
5659 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5660
5661 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
5662 AARCH64_DISPLACED_MODIFIED_INSNS.
5663 * aarch64-tdep.c (struct aarch64_displaced_step_data)
5664 (aarch64_displaced_step_copy_insn): Likewise.
5665 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
5666 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
5667 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
5668 ARM_DISPLACED_MODIFIED_INSNS.
5669 * arm-tdep.c (arm_gdbarch_init): Likewise.
5670 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
5671 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
5672 (struct arm_displaced_step_closure): Use
5673 ARM_DISPLACED_MODIFIED_INSNS.
5674
5675 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5676
5677 * features/Makefile: Remove unused xml files.
5678 * features/aarch64.xml: Remove.
5679 * features/i386/amd64-avx-avx512-linux.xml: Remove.
5680 * features/i386/amd64-avx-avx512.xml: Remove.
5681 * features/i386/amd64-avx-linux.xml: Remove.
5682 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
5683 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
5684 * features/i386/amd64-avx-mpx-linux.xml: Remove.
5685 * features/i386/amd64-avx-mpx.xml: Remove.
5686 * features/i386/amd64-avx.xml: Remove.
5687 * features/i386/amd64-linux.xml: Remove.
5688 * features/i386/amd64-mpx-linux.xml: Remove.
5689 * features/i386/amd64-mpx.xml: Remove.
5690 * features/i386/amd64.xml: Remove.
5691 * features/i386/i386-avx-avx512-linux.xml: Remove.
5692 * features/i386/i386-avx-avx512.xml: Remove.
5693 * features/i386/i386-avx-linux.xml: Remove.
5694 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
5695 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
5696 * features/i386/i386-avx-mpx-linux.xml: Remove.
5697 * features/i386/i386-avx-mpx.xml: Remove.
5698 * features/i386/i386-avx.xml: Remove.
5699 * features/i386/i386-linux.xml: Remove.
5700 * features/i386/i386-mmx-linux.xml: Remove.
5701 * features/i386/i386-mmx.xml: Remove.
5702 * features/i386/i386-mpx-linux.xml: Remove.
5703 * features/i386/i386-mpx.xml: Remove.
5704 * features/i386/i386.xml: Remove.
5705 * features/i386/x32-avx-avx512-linux.xml: Remove.
5706 * features/i386/x32-avx-linux.xml: Remove.
5707 * features/i386/x32-linux.xml: Remove.
5708
5709 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5710
5711 * regformats/aarch64.dat: Remove.
5712 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
5713 * regformats/i386/amd64-avx-linux.dat: Remove.
5714 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
5715 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
5716 * regformats/i386/amd64-linux.dat: Remove.
5717 * regformats/i386/amd64-mpx-linux.dat: Remove.
5718 * regformats/i386/amd64.dat: Remove.
5719 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
5720 * regformats/i386/i386-avx-linux.dat: Remove.
5721 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
5722 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
5723 * regformats/i386/i386-linux.dat: Remove.
5724 * regformats/i386/i386-mmx-linux.dat: Remove.
5725 * regformats/i386/i386-mpx-linux.dat: Remove.
5726 * regformats/i386/i386.dat: Remove.
5727 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
5728 * regformats/i386/x32-avx-linux.dat: Remove.
5729 * regformats/i386/x32-linux.dat: Remove.
5730
5731 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5732
5733 * aarch64-tdep.c: Remove xml self tests.
5734 * amd64-linux-tdep.c: Likewise.
5735 * amd64-tdep.c: Likewise.
5736 * i386-linux-tdep.c: Likewise.
5737 * i386-tdep.c: Likewise.
5738
5739 2019-07-03 Pedro Alves <palves@redhat.com>
5740
5741 PR cli/24732
5742 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
5743 (pipe_cmd_option_defs): New.
5744 (make_pipe_cmd_options_def_group): New.
5745 (pipe_command): Use gdb::option::process_options.
5746 (pipe_command_completer): New function.
5747 (_initialize_cli_cmds): Install completer for "pipe" command.
5748
5749 2019-07-03 Pedro Alves <palves@redhat.com>
5750
5751 * cli/cli-option.c (union option_value) <string>: New field.
5752 (struct option_def_and_value): Add ctor, move ctor, dtor and
5753 use DISABLE_COPY_AND_ASSIGN.
5754 (option_def_and_value::clear_value): New.
5755 (parse_option, save_option_value_in_ctx, get_val_type_str)
5756 (add_setshow_cmds_for_options): Handle var_string.
5757 * cli-option.h (union option_def::var_address) <string>: New
5758 field.
5759 (struct string_option_def): New.
5760 * maint-test-options.c (struct test_options_opts): Add default
5761 ctor and use DISABLE_COPY_AND_ASSIGN.
5762 <string_opt>: New field.
5763 (test_options_opts::~test_options_opts): New.
5764 (test_options_opts::dump): Also dump "-string".
5765 (test_options_option_defs): Install "string.
5766
5767 2019-07-03 Pedro Alves <palves@redhat.com>
5768
5769 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
5770 option_value with a null enumeration.
5771 (complete_options): Save the option values in the context.
5772 (save_option_value_in_ctx): New, factored out from ...
5773 (process_options): ... here.
5774 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
5775 of the function.
5776 * maint-test-options.c (test_options_opts::dump): New, factored
5777 out from ...
5778 (maintenance_test_options_command_mode): ... here.
5779 (maintenance_test_options_command_completion_result): Delete.
5780 (maintenance_test_options_command_completion_text): Update
5781 comment.
5782 (maintenance_show_test_options_completion_result): Change
5783 prototype. Just print
5784 maintenance_test_options_command_completion_text.
5785 (save_completion_result): New.
5786 (maintenance_test_options_completer_mode): Pass options context to
5787 complete_options, and then save a dump.
5788 (_initialize_maint_test_options): Use add_cmd to install "maint
5789 show test-options-completion-result".
5790
5791 2019-07-03 Pedro Alves <palves@redhat.com>
5792
5793 * NEWS (New commands): Mention "with" and "maint with".
5794 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
5795 (with_command, with_command_completer): New.
5796 (pipe_command): Adjust to new repeat_previous
5797 interface.
5798 (_initialize_cli_cmds): Install the "with" command and its "w"
5799 alias.
5800 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
5801 declarations.
5802 * cli/cli-setshow.c (parse_cli_var_uinteger)
5803 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
5804 argument strings for all var_types.
5805 (get_setshow_command_value_string): New, factored out from ...
5806 (do_show_command): ... this.
5807 * cli/cli-setshow.h: Include <string>.
5808 (get_setshow_command_value_string): Declare.
5809 * command.h (repeat_previous): Now returns const char *. Adjust
5810 comment.
5811 * maint.c: Include "cli/cli-cmds.h".
5812 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
5813 (_initialize_maint_cmds): Register the "maintenance with" command.
5814 * top.c (repeat_previous): Move bits from pipe_command here:
5815 Return the saved command line, if any; error out if there's no
5816 command to relaunch.
5817
5818 2019-07-03 Pedro Alves <palves@redhat.com>
5819
5820 * NEWS (New commands): Mention "maint set/show test-settings"
5821 instead of "maint test-settings".
5822 * maint-test-settings.c (maintenance_test_settings_list): Delete.
5823 (maintenance_test_settings_set_list): Rename to ...
5824 (maintenance_set_test_settings_list): ... this.
5825 (maintenance_test_settings_show_list): Rename to ...
5826 (maintenance_show_test_settings_list): ... this.
5827 (maintenance_test_settings_cmd): Delete.
5828 (maintenance_test_settings_set_cmd): ...
5829 (maintenance_set_test_settings_cmd): ... this.
5830 (maintenance_test_settings_show_cmd): ...
5831 (maintenance_show_test_settings_cmd): ... this.
5832 (maintenance_test_settings_show_value_cmd):
5833 (maintenance_show_test_settings_value_cmd): ... this.
5834 (_initialize_maint_test_settings): No longer install the "maint
5835 test-settings" prefix command. Rename "maint test-settings set"
5836 to "maint set test-settings", and "maint test-settings show" to
5837 "maint show test-settings". Adjust all subcommands.
5838
5839 2019-07-03 Pedro Alves <palves@redhat.com>
5840
5841 * maint-test-settings.c: Fix file's intro comment. Replace all
5842 references to "test-options" with references to "test-settings",
5843 in comments.
5844
5845 2019-07-03 Pedro Alves <palves@redhat.com>
5846
5847 * maint-test-settings.c (maintenance_test_settings_xxx)
5848 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
5849 New.
5850 (maintenance_test_settings_enums): Use them.
5851 (maintenance_test_settings_enum): Default to
5852 maintenance_test_settings_xxx.
5853 (_initialize_maint_test_settings): Initialize
5854 MAINTENANCE_TEST_SETTINGS_FILENAME.
5855
5856 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5857
5858 * breakpoint.h (remove_breakpoints_inf): Change return type to
5859 void, move function documentation here.
5860 * breakpoint.c (remove_breakpoints_inf): Change return type to
5861 void, move function documentation to header.
5862
5863 2019-07-02 Pedro Alves <palves@redhat.com>
5864
5865 * NEWS (Completion improvements): Mention "info threads".
5866 * thread.c (struct info_threads_opts, info_threads_option_defs)
5867 (make_info_threads_options_def_group): New.
5868 (info_threads_command): Use gdb::option::process_options.
5869 (info_threads_command_completer): New.
5870 (_initialize_thread): Use gdb::option::build_help to build the
5871 help text for "info threads".
5872
5873 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5874
5875 * defs.h (generic_load): Move from here...
5876 * symfile.h (generic_load): ... to here. Rename name parameter
5877 to args.
5878 * symfile.c (generic_load): Add comment.
5879
5880 2019-07-01 Tom Tromey <tromey@adacore.com>
5881
5882 * dwarf2read.c
5883 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
5884 declaration of without_params. Fix formatting.
5885
5886 2019-07-01 Tom Tromey <tromey@adacore.com>
5887
5888 * ada-exp.y (find_primitive_type): Update.
5889 * ada-lang.h (ada_lookup_symbol): Update.
5890 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
5891 parameter.
5892 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
5893
5894 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
5895
5896 PR breakpoints/24541
5897 * gdbarch.c: Regenerate.
5898 * gdbarch.h: Regenerate.
5899 * gdbarch.sh: Add 'stap_adjust_register'.
5900 * i386-tdep.c: Include '<unordered_set>'.
5901 (i386_stap_adjust_register): New function.
5902 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
5903 * stap-probe.c (stap_parse_register_operand): Call
5904 'gdbarch_stap_adjust_register'.
5905
5906 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
5907
5908 PR python/24742
5909 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
5910 * python/python.c (do_start_initialization): Use 'xmalloc'
5911 instead of 'PyMem_Malloc'.
5912
5913 2019-06-28 Tom Tromey <tromey@adacore.com>
5914
5915 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
5916 for Ada.
5917
5918 2019-06-27 Tom Tromey <tromey@adacore.com>
5919
5920 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
5921 objfile_key.
5922 (arm_find_mapping_symbol, arm_record_special_symbol)
5923 (_initialize_arm_tdep): Update.
5924 (arm_objfile_data_free): Remove.
5925
5926 2019-06-27 Tom Tromey <tromey@adacore.com>
5927
5928 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
5929 to cp_print_static_field.
5930
5931 2019-06-26 Tom Tromey <tromey@adacore.com>
5932
5933 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
5934 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
5935 declare.
5936
5937 2019-06-26 Alan Hayward <alan.hayward@arm.com>
5938
5939 * features/aarch64-core.c (create_feature_aarch64_core):
5940 Regenerate.
5941 * features/aarch64-core.xml: Add cpsr flags.
5942
5943 2019-06-26 Alan Hayward <alan.hayward@arm.com>
5944
5945 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
5946 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
5947
5948 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
5949
5950 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
5951 field.
5952 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
5953 use.
5954 (arm_record_special_symbol): Don't insert new symbol in sorted
5955 position, push it at the end.
5956
5957 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
5958
5959 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
5960 (arm_mapping_symbol_s): Remove.
5961 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
5962 (arm_mapping_symbol_vec): New typedef.
5963 (struct arm_per_objfile): Add constructor.
5964 <section_maps>: Change type to
5965 std::unique_ptr<arm_mapping_symbol_vec[]>.
5966 (arm_compare_mapping_symbols): Remove.
5967 (arm_find_mapping_symbol): Adjust to section_maps type change.
5968 (arm_objfile_data_free): Call delete on arm_per_objfile.
5969 (arm_record_special_symbol): Adjust to section_maps type change.
5970 Allocate arm_per_objfile with new.
5971
5972 2019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5973
5974 * cli/cli-cmds.c (alias_command): Compare the alias prefix
5975 with the command prefix.
5976
5977 2019-06-25 Tom Tromey <tom@tromey.com>
5978
5979 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
5980 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
5981
5982 2019-06-25 Tom Tromey <tom@tromey.com>
5983
5984 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
5985 type.
5986 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
5987 protected.
5988
5989 2019-06-25 Tom Tromey <tom@tromey.com>
5990
5991 * tui/tui-winsource.c
5992 (tui_source_window_base::set_is_exec_point_at): Add check against
5993 LOA_ADDRESS.
5994
5995 2019-06-25 Tom Tromey <tom@tromey.com>
5996
5997 * tui/tui-source.c (tui_set_source_content): Don't check before
5998 xfree.
5999 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
6000
6001 2019-06-25 Tom Tromey <tom@tromey.com>
6002
6003 * tui/tui-winsource.h (tui_update_source_window_as_is)
6004 (tui_alloc_source_buffer, tui_line_is_displayed)
6005 (tui_addr_is_displayed): Change type of win_info.
6006 * tui/tui-winsource.c (tui_update_source_window_as_is)
6007 (tui_clear_source_content, tui_show_source_line)
6008 (tui_show_source_content, tui_source_window_base::refill)
6009 (tui_source_window_base::set_is_exec_point_at)
6010 (tui_source_window_base::set_is_exec_point_at)
6011 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
6012 (tui_alloc_source_buffer, tui_line_is_displayed)
6013 (tui_addr_is_displayed): Change type of win_info. Update.
6014 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
6015 (tui_source_window_base::do_make_visible_with_new_height):
6016 Update.
6017 * tui/tui-source.c (tui_set_source_content)
6018 (tui_set_source_content_nil)
6019 (tui_source_window::do_scroll_vertical): Update.
6020 * tui/tui-layout.c (show_layout): Update.
6021 * tui/tui-disasm.c (tui_set_disassem_content)
6022 (tui_disasm_window::do_scroll_vertical): Update.
6023 * tui/tui-data.h (tui_win_content): Remove.
6024 (struct tui_gen_win_info) <content, content_size>: Remove.
6025 (struct tui_source_element): Add initializers and destructor.
6026 (union tui_which_element, struct tui_win_element): Remove.
6027 (struct tui_source_window_base) <content>: New field.
6028 (struct tui_data_window): Remove destructor.
6029 (tui_alloc_content, tui_free_win_content)
6030 (tui_free_all_source_wins_content): Don't declare.
6031 * tui/tui-data.c (tui_initialize_static_data): Update.
6032 (init_content_element, tui_alloc_content): Remove.
6033 (~tui_gen_win_info): Update.
6034 (~tui_data_window, tui_free_all_source_wins_content)
6035 (tui_free_win_content, free_content, free_content_elements):
6036 Remove.
6037
6038 2019-06-25 Tom Tromey <tom@tromey.com>
6039
6040 * tui/tui-winsource.h (tui_clear_source_content)
6041 (tui_erase_source_content, tui_show_source_content): Change type
6042 of win_info.
6043 * tui/tui-winsource.c (tui_clear_source_content)
6044 (tui_erase_source_content, tui_show_source_content): Change type
6045 of win_info.
6046 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
6047 * tui/tui-source.h (tui_set_source_content_nil): Change type of
6048 win_info.
6049 * tui/tui-source.c (tui_set_source_content_nil): Change type of
6050 win_info.
6051 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
6052
6053 2019-06-25 Tom Tromey <tom@tromey.com>
6054
6055 * tui/tui-winsource.c (tui_clear_source_content)
6056 (tui_source_window_base::set_is_exec_point_at): Update.
6057 * tui/tui-source.c (tui_set_source_content_nil): Update.
6058 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
6059 a bool.
6060 * tui/tui-data.c (init_content_element): Update.
6061
6062 2019-06-25 Tom Tromey <tom@tromey.com>
6063
6064 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
6065 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
6066 * tui/tui-layout.c (init_and_make_win): Update.
6067 * tui/tui.h (enum tui_win_type): Update.
6068 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
6069 tui_win_is_auxillary.
6070 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
6071 tui_win_is_auxillary.
6072
6073 2019-06-25 Tom Tromey <tom@tromey.com>
6074
6075 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
6076 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
6077 (tui_delete_data_content_windows, tui_display_all_data)
6078 (tui_data_window::do_scroll_vertical, tui_display_data_from):
6079 Update.
6080 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
6081 * tui/tui-regs.c (tui_last_regs_line_no)
6082 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
6083 (tui_show_registers): Update.
6084 (tui_show_register_group): Return void. Update.
6085 (tui_display_registers_from, tui_display_reg_element_at_line)
6086 (tui_display_registers_from_line, tui_check_register_values):
6087 Update.
6088 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
6089 member.
6090 (struct tui_data_window) <regs_content>: Now a std::vector.
6091 <regs_content_count>: Remove.
6092 (tui_add_content_elements, tui_free_data_content): Don't declare.
6093 * tui/tui-data.c (tui_data_window::clear_detail): Update.
6094 (init_content_element): Remove DATA_WIN case. Add assert.
6095 (tui_add_content_elements): Remove.
6096 (tui_data_window): Update.
6097 (tui_free_data_content): Remove.
6098 (free_content_elements): Remove DATA_WIN case.
6099
6100 2019-06-25 Tom Tromey <tom@tromey.com>
6101
6102 * tui/tui-data.c (tui_data_item_window): Update.
6103 * tui/tui-windata.h (tui_check_data_values): Don't declare.
6104 * tui/tui-windata.c (tui_display_all_data)
6105 (tui_display_data_from_line): Update.
6106 (tui_check_data_values): Remove.
6107 * tui/tui-regs.c (tui_show_register_group)
6108 (tui_display_reg_element_at_line): Update.
6109 * tui/tui-hooks.c (tui_register_changed)
6110 (tui_refresh_frame_and_register_information): Call
6111 tui_check_register_values.
6112 * tui/tui-data.h (struct tui_data_window) <data_content,
6113 data_content_count, data_type>: Remove.
6114 (enum tui_data_type): Remove.
6115
6116 * tui/tui-data.c (tui_data_window::clear_detail)
6117 (~tui_data_window): Update.
6118
6119 2019-06-25 Tom Tromey <tom@tromey.com>
6120
6121 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
6122 declare.
6123 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
6124 Rename from tui_first_data_item_displayed. Update.
6125 (tui_data_window::refresh_all)
6126 (tui_data_window::do_scroll_vertical): Update.
6127 * tui/tui-data.h (struct tui_data_window)
6128 <first_data_item_displayed>: Declare new method.
6129
6130 2019-06-25 Tom Tromey <tom@tromey.com>
6131
6132 * tui/tui-data.h (tui_init_generic_part): Don't declare.
6133 * tui/tui-data.c (tui_init_generic_part): Remove, moving
6134 contents...
6135 (tui_initialize_static_data): ...here.
6136
6137 2019-06-25 Tom Tromey <tom@tromey.com>
6138
6139 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
6140 (tui_display_registers_from, tui_check_register_values): Update.
6141 (tui_display_register): Remove win_info parameter; update.
6142 (tui_get_register): Change type of parameters.
6143 * tui/tui-data.h (struct tui_data_element): Remove.
6144 (union tui_which_element) <data>: Remove.
6145 <data_window>: Change type.
6146 (struct tui_data_item_window): New.
6147 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
6148 case. Add assert.
6149 (~tui_data_item_window): New destructor.
6150 (free_content_elements): Remove DATA_ITEM_WIN case.
6151
6152 2019-06-25 Tom Tromey <tom@tromey.com>
6153
6154 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
6155 Remove.
6156
6157 2019-06-25 Tom Tromey <tom@tromey.com>
6158
6159 * tui/tui-data.h (struct tui_command_element): Remove.
6160 (union tui_which_element) <command>: Remove.
6161 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
6162 assert.
6163 (free_content_elements): Remove CMD_WIN case.
6164
6165 2019-06-25 Tom Tromey <tom@tromey.com>
6166
6167 * tui/tui-layout.c (tui_set_layout): Update.
6168 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
6169 * tui/tui-data.c (layout_def): Update.
6170
6171 2019-06-25 Tom Tromey <tom@tromey.com>
6172
6173 * tui/tui-wingeneral.c (tui_refresh_all): Update.
6174 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
6175 (tui_source_window_base::set_new_height): Update.
6176 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
6177 Update.
6178 (tui_set_locator_fullname, tui_set_locator_info)
6179 (tui_show_frame_info): Update.
6180 * tui/tui-source.c (tui_set_source_content)
6181 (tui_source_is_displayed): Update.
6182 * tui/tui-layout.c (show_source_disasm_command, show_data)
6183 (show_source_or_disasm_and_command): Update.
6184 * tui/tui-disasm.c (tui_set_disassem_content)
6185 (tui_get_begin_asm_address): Update.
6186 * tui/tui-data.h (struct tui_locator_element): Remove.
6187 (union tui_which_element) <locator>: Remove.
6188 (struct tui_locator_window): New.
6189 (tui_locator_win_info_ptr): Change return type.
6190 * tui/tui-data.c (_locator): Change type.
6191 (tui_locator_win_info_ptr): Change return type.
6192 (init_content_element): Remove LOCATOR_WIN case. Add assert.
6193 (tui_alloc_content): Add assert.
6194
6195 2019-06-25 Tom Tromey <tom@tromey.com>
6196
6197 * tui/tui-winsource.c
6198 (tui_exec_info_window::maybe_allocate_content): New method.
6199 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
6200 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
6201 (make_source_or_disasm_window): Add cast.
6202 * tui/tui-data.h (union tui_which_element) <simple_string>:
6203 Remove.
6204 (struct tui_source_info): New.
6205 (struct tui_source_window_base) <execution_info>: Change type.
6206 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
6207 case, and add assert.
6208 (tui_alloc_content): Add assert.
6209
6210 2019-06-25 Tom Tromey <tom@tromey.com>
6211
6212 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
6213 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
6214 * tui/tui-data.c (tui_alloc_win_info): Remove.
6215
6216 2019-06-25 Tom Tromey <tom@tromey.com>
6217
6218 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
6219 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
6220 can_highlight.
6221
6222 2019-06-25 Tom Tromey <tom@tromey.com>
6223
6224 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
6225 make_visible_with_new_height method.
6226 (tui_win_info::make_visible_with_new_height): New method.
6227 (tui_source_window_base::do_make_visible_with_new_height)
6228 (tui_data_window::do_make_visible_with_new_height)
6229 (tui_cmd_window::do_make_visible_with_new_height): New methods.
6230 (make_visible_with_new_height): Remove.
6231 (tui_resize_all, tui_adjust_win_heights): Use
6232 make_visible_with_new_height method.
6233 * tui/tui-data.h (struct tui_win_info)
6234 <do_make_visible_with_new_height, make_visible_with_new_height>:
6235 New methods.
6236 (struct tui_source_window_base, struct tui_data_window)
6237 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
6238 methods.
6239
6240 2019-06-25 Tom Tromey <tom@tromey.com>
6241
6242 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
6243 method.
6244 (update_tab_width): Call update_tab_width method.
6245 * tui/tui-data.h (struct tui_win_info)
6246 (struct tui_source_window_base) <update_tab_width>: New methods.
6247
6248 2019-06-25 Tom Tromey <tom@tromey.com>
6249
6250 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
6251 parameter.
6252 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
6253 parameter.
6254 (tui_gen_win_info::make_visible): Update.
6255 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
6256 parameter.
6257 * tui/tui-data.h (enum tui_box): New enum.
6258 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
6259
6260 2019-06-25 Tom Tromey <tom@tromey.com>
6261
6262 * tui/tui-layout.c (make_source_or_disasm_window): Always use
6263 init_and_make_win for EXEC_INFO_WIN.
6264 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
6265 longer inline.
6266 (struct tui_win_info) <~tui_win_info>: Inline.
6267 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
6268 Don't declare.
6269 * tui/tui-data.c (source_win, disasm_win): Remove globals.
6270 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
6271 Remove.
6272 (tui_initialize_static_data): Update.
6273 (~tui_gen_win_info): Handle more cleanup here.
6274 (~tui_source_window_base): Delete "execution_info".
6275 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
6276
6277 2019-06-25 Tom Tromey <tom@tromey.com>
6278
6279 * tui/tui-layout.c (make_command_window): Don't set
6280 can_highlight.
6281 (show_source_disasm_command): Call the reset method.
6282 (show_data): Don't set can_highlight. Call the reset method.
6283 (tui_gen_win_info::reset): Rename from init_gen_win_info
6284 (init_and_make_win): Simplify. Return tui_gen_win_info.
6285 (show_source_or_disasm_and_command): Call the reset method.
6286 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
6287 (struct tui_cmd_window): Set can_highlight.
6288
6289 2019-06-25 Tom Tromey <tom@tromey.com>
6290
6291 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
6292 from make_visible.
6293 (tui_make_visible, tui_make_invisible): Rewrite.
6294 (tui_win_info::make_visible): Remove.
6295 (tui_source_window_base::make_visible): Update.
6296 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
6297 method. Moved from...
6298 (struct tui_win_info) <make_visible>: ...here.
6299
6300 2019-06-25 Tom Tromey <tom@tromey.com>
6301
6302 * tui/tui-winsource.c
6303 (tui_source_window_base::do_scroll_horizontal): Remove direction
6304 parameter.
6305 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
6306 direction parameter.
6307 * tui/tui-win.c (tui_win_info::forward_scroll)
6308 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
6309 (tui_win_info::right_scroll): Update.
6310 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
6311 direction parameter.
6312 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
6313 direction parameter.
6314 * tui/tui-data.h (enum tui_scroll_direction): Remove.
6315 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
6316 Remove direction parameter.
6317 (struct tui_source_window_base, struct tui_source_window)
6318 (struct tui_disasm_window, struct tui_data_window)
6319 (struct tui_cmd_window): Update.
6320
6321 2019-06-25 Tom Tromey <tom@tromey.com>
6322
6323 * tui/tui-winsource.h (tui_set_exec_info_content)
6324 (tui_show_exec_info_content, tui_erase_exec_info_content)
6325 (tui_clear_exec_info_content, tui_update_exec_info): Change
6326 argument to tui_source_window_base.
6327 * tui/tui-winsource.c (tui_set_exec_info_content)
6328 (tui_show_exec_info_content, tui_erase_exec_info_content)
6329 (tui_clear_exec_info_content, tui_update_exec_info): Change
6330 argument to tui_source_window_base.
6331
6332 2019-06-25 Tom Tromey <tom@tromey.com>
6333
6334 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
6335 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
6336
6337 2019-06-25 Tom Tromey <tom@tromey.com>
6338
6339 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
6340 check.
6341
6342 2019-06-25 Tom Tromey <tom@tromey.com>
6343
6344 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
6345 type to void.
6346 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
6347 type to void.
6348 * tui/tui-source.c (tui_set_source_content): Update.
6349 * tui/tui-disasm.c (tui_set_disassem_content): Update.
6350
6351 2019-06-25 Tom Tromey <tom@tromey.com>
6352
6353 * tui/tui-win.c (window_name_completer, tui_set_focus)
6354 (tui_all_windows_info): Use name method.
6355 * tui/tui-data.h (struct tui_gen_win_info)
6356 (struct tui_source_window, struct tui_disasm_window)
6357 (struct tui_data_window, struct tui_cmd_window) <name>: New
6358 method.
6359 (tui_win_name): Don't declare.
6360 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
6361 (tui_win_name): Remove.
6362
6363 2019-06-25 Tom Tromey <tom@tromey.com>
6364
6365 * tui/tui-winsource.h (tui_update_source_window)
6366 (tui_update_source_window_as_is): Change parameter type.
6367 * tui/tui-winsource.c (tui_update_source_window): Change win_info
6368 to be a tui_source_window_base.
6369 (tui_update_source_window_as_is): Likewise.
6370 * tui/tui-win.c (make_visible_with_new_height): Update.
6371
6372 2019-06-25 Tom Tromey <tom@tromey.com>
6373
6374 * tui/tui-winsource.c (tui_erase_source_content)
6375 (tui_show_source_content, tui_show_exec_info_content)
6376 (tui_erase_exec_info_content): Use refresh_window method.
6377 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
6378 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
6379 from tui_refresh_win.
6380 (tui_data_window::refresh_window): New method.
6381 (tui_win_info::refresh, tui_source_window_base::refresh)
6382 (tui_refresh_all): Use refresh_window method.
6383 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
6384 method.
6385 * tui/tui-regs.c (tui_display_register): Call refresh_window
6386 method.
6387 * tui/tui-layout.c (show_source_disasm_command)
6388 (show_source_or_disasm_and_command): Call refresh_window method.
6389 * tui/tui-data.h (struct tui_gen_win_info)
6390 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
6391 New method.
6392
6393 2019-06-25 Tom Tromey <tom@tromey.com>
6394
6395 * tui/tui.c (tui_rl_other_window, tui_enable)
6396 (tui_is_window_visible, tui_get_command_dimension): Update.
6397 * tui/tui-winsource.c (tui_update_source_window_as_is)
6398 (tui_clear_source_content, tui_erase_source_content)
6399 (tui_show_source_line, tui_source_window_base::refill)
6400 (tui_source_window_base::do_scroll_horizontal)
6401 (tui_source_window_base::set_is_exec_point_at)
6402 (tui_update_breakpoint_info, tui_set_exec_info_content)
6403 (tui_alloc_source_buffer, tui_line_is_displayed)
6404 (tui_addr_is_displayed): Update.
6405 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
6406 (tui_check_and_display_highlight_if_needed)
6407 (tui_win_info::make_visible, tui_win_info::refresh)
6408 (tui_refresh_all): Update.
6409 * tui/tui-windata.c (tui_first_data_item_displayed)
6410 (tui_delete_data_content_windows, tui_erase_data_content)
6411 (tui_display_all_data, tui_data_window::refresh_all)
6412 (tui_check_data_values): Update.
6413 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
6414 (tui_set_win_focus_to, tui_win_info::forward_scroll)
6415 (tui_win_info::backward_scroll, tui_refresh_all_win)
6416 (tui_resize_all, tui_set_focus, tui_all_windows_info)
6417 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
6418 (tui_source_window_base::set_new_height)
6419 (tui_data_window::set_new_height)
6420 (make_invisible_and_set_new_height)
6421 (make_visible_with_new_height, new_height_ok)
6422 (parse_scrolling_args): Update.
6423 * tui/tui-stack.c (tui_show_frame_info): Update.
6424 * tui/tui-source.c (tui_set_source_content)
6425 (tui_set_source_content_nil, tui_source_is_displayed)
6426 (tui_source_window::do_scroll_vertical): Update.
6427 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
6428 (tui_display_registers_from, tui_display_reg_element_at_line)
6429 (tui_check_register_values, tui_reg_command): Update.
6430 * tui/tui-layout.c (tui_default_win_height)
6431 (show_source_disasm_command, show_data, init_and_make_win)
6432 (show_source_or_disasm_and_command): Update.
6433 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
6434 (tui_redisplay_readline, tui_mld_flush)
6435 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
6436 (tui_getc): Update.
6437 * tui/tui-disasm.c (tui_set_disassem_content)
6438 (tui_disasm_window::do_scroll_vertical): Update.
6439 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
6440 Now virtual.
6441 (struct tui_win_info): Derive from tui_gen_win_info.
6442 <~tui_win_info>: Mark as override.
6443 <generic>: Remove member.
6444 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
6445 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
6446 (~tui_data_window, ~tui_win_info)
6447 (tui_free_all_source_wins_content): Update.
6448 * tui/tui-command.c (tui_refresh_cmd_win): Update.
6449
6450 2019-06-25 Tom Tromey <tom@tromey.com>
6451
6452 * tui/tui-layout.c (init_and_make_win): Use new.
6453 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
6454 destructor, initializers.
6455 (tui_alloc_generic_win_info): Don't declare.
6456 * tui/tui-data.c (_locator): Add argument to constructor.
6457 (source_win, disasm_win): New globals.
6458 (exec_info): Remove.
6459 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
6460 Update.
6461 (tui_alloc_generic_win_info): Remove.
6462 (init_content_element): Use new.
6463 (tui_win_info::tui_win_info): Update.
6464 (free_content_elements) <case DATA_WIN>: Use delete.
6465
6466 2019-06-25 Tom Tromey <tom@tromey.com>
6467
6468 * tui/tui-wingeneral.c (tui_refresh_win): Update.
6469 * tui/tui-windata.c (tui_first_data_item_displayed)
6470 (tui_delete_data_content_windows): Update.
6471 * tui/tui-win.c (tui_data_window::set_new_height): Update.
6472 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
6473 (tui_display_registers_from, tui_check_register_values): Update.
6474 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
6475 pointer.
6476 * tui/tui-data.c (init_content_element): Update. Allocate the new
6477 window.
6478 (tui_free_data_content): Update.
6479 (free_content_elements) <case DATA_WIN>: Free the window.
6480
6481 2019-06-25 Tom Tromey <tom@tromey.com>
6482
6483 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
6484 Update.
6485 * tui/tui-layout.c (make_command_window)
6486 (show_source_disasm_command, show_data, init_and_make_win)
6487 (show_source_or_disasm_and_command): Update.
6488 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
6489 method.
6490 <can_highight, is_highlighted>: Now bool.
6491 (tui_set_win_highlight): Don't declare.
6492 * tui/tui-data.c (tui_set_win_highlight): Remove.
6493
6494 2019-06-25 Tom Tromey <tom@tromey.com>
6495
6496 * tui/tui-wingeneral.c (make_visible): Remove check of window
6497 type.
6498
6499 2019-06-25 Tom Tromey <tom@tromey.com>
6500
6501 * tui/tui-win.c (tui_win_info::max_height)
6502 (tui_cmd_window::max_height): New methods.
6503 (new_height_ok): Call max_height.
6504 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
6505 <max_height>: New method.
6506
6507 2019-06-25 Tom Tromey <tom@tromey.com>
6508
6509 * tui/tui-win.c (tui_source_window_base::set_new_height)
6510 (tui_data_window::set_new_height): New methods.
6511 (make_invisible_and_set_new_height): Call set_new_height method.
6512 * tui/tui-data.h (struct tui_win_info)
6513 (struct tui_source_window_base, struct tui_data_window)
6514 <set_new_height>: New method.
6515
6516 2019-06-25 Tom Tromey <tom@tromey.com>
6517
6518 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
6519 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
6520 tui_refresh_data_win.
6521 * tui/tui-win.c (tui_source_window_base::refresh_all): New
6522 method.
6523 (tui_refresh_all_win): Call the refresh_all method.
6524 (tui_set_focus): Likewise.
6525 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
6526 (struct tui_source_window_base, struct tui_data_window) <refresh>:
6527 Likewise.
6528
6529 2019-06-25 Tom Tromey <tom@tromey.com>
6530
6531 * tui/tui-winsource.h (tui_refill_source_window)
6532 (tui_set_is_exec_point_at): Don't declare.
6533 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
6534 (tui_source_window_base::refill): Rename from
6535 tui_refill_source_window.
6536 (tui_source_window_base::do_scroll_horizontal): Update.
6537 (tui_source_window_base::set_is_exec_point_at): Rename from
6538 tui_set_is_exec_point_at.
6539 (tui_update_all_breakpoint_info): Update.
6540 * tui/tui-stack.c (tui_show_frame_info): Update.
6541 * tui/tui-layout.c (show_data): Add cast.
6542 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
6543 * tui/tui-data.h (struct tui_source_window_base) <refill,
6544 set_is_exec_point_at>: New methods.
6545 (tui_source_windows, tui_add_to_source_windows): Update types.
6546 (tui_add_to_source_windows): Remove redundant declaration.
6547 * tui/tui-data.c (source_windows): Store tui_source_window_base.
6548 (tui_source_windows): Change return type.
6549 (tui_clear_source_windows_detail): Update.
6550 (tui_add_to_source_windows): Change type of parameter.
6551 (tui_free_all_source_wins_content): Update.
6552
6553 2019-06-25 Tom Tromey <tom@tromey.com>
6554
6555 * tui/tui-wingeneral.c (tui_win_info::refresh)
6556 (tui_source_window_base::refresh): New methods.
6557 (tui_refresh_all): Call the refresh method.
6558 * tui/tui-data.h (struct tui_win_info)
6559 (struct tui_source_window_base) <refresh>: New method.
6560
6561 2019-06-25 Tom Tromey <tom@tromey.com>
6562
6563 * tui/tui.h (tui_is_window_visible): Return bool.
6564 * tui/tui.c (tui_is_window_visible): Return bool.
6565 * tui/tui-wingeneral.c (tui_make_window, make_visible)
6566 (tui_make_visible, tui_make_invisible)
6567 (tui_win_info::make_visible)
6568 (tui_source_window_base::make_visible, make_all_visible)
6569 (tui_make_all_visible, tui_make_all_invisible): Update.
6570 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
6571 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
6572 bool.
6573 (struct tui_win_info, struct tui_source_window_base)
6574 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
6575 * tui/tui-data.c (tui_init_generic_part): Update.
6576
6577 2019-06-25 Tom Tromey <tom@tromey.com>
6578
6579 * tui/tui-wingeneral.c (tui_win_info::make_visible)
6580 (tui_source_window_base::make_visible): New methods.
6581 (make_all_visible): Make method call.
6582 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
6583 (struct tui_source_window_base, struct tui_cmd_window): Override
6584 make_visible.
6585 (tui_win_is_source_type): Don't declare.
6586 * tui/tui-data.c (tui_win_is_source_type): Remove.
6587
6588 2019-06-25 Tom Tromey <tom@tromey.com>
6589
6590 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
6591 NULL check.
6592
6593 2019-06-25 Tom Tromey <tom@tromey.com>
6594
6595 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
6596 Inline constructor. Add initializers for members.
6597 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
6598 constructors; now inline in class.
6599
6600 2019-06-25 Tom Tromey <tom@tromey.com>
6601
6602 * tui/tui-regs.c (tui_show_registers): Update.
6603 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
6604 bool.
6605 * tui/tui-data.c (tui_data_window::clear_detail)
6606 (tui_data_window): Update.
6607
6608 2019-06-25 Tom Tromey <tom@tromey.com>
6609
6610 * tui/tui-windata.c (tui_display_all_data)
6611 (tui_display_data_from_line, tui_display_data_from)
6612 (tui_check_data_values, tui_data_window::do_scroll_vertical):
6613 Update.
6614 * tui/tui-regs.c (tui_last_regs_line_no)
6615 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
6616 (tui_show_registers, tui_show_register_group)
6617 (tui_display_registers_from, tui_display_reg_element_at_line)
6618 (tui_display_registers_from_line, tui_check_register_values)
6619 (tui_reg_next, tui_reg_prev): Update.
6620 * tui/tui-layout.c (tui_set_layout, show_data): Update.
6621 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
6622 tui_data_window.
6623 (struct tui_win_info) <detail>: Remove. Add new fields from
6624 tui_data_info.
6625 (TUI_DATA_WIN): Add cast.
6626 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
6627 (~tui_data_window): Simplify.
6628
6629 2019-06-25 Tom Tromey <tom@tromey.com>
6630
6631 * tui/tui-layout.c (show_source_disasm_command)
6632 (show_source_or_disasm_and_command): Update.
6633 * tui/tui-io.c (update_cmdwin_start_line)
6634 (tui_redisplay_readline): Update.
6635 * tui/tui-data.h (struct tui_command_info): Remove.
6636 (struct tui_win_info) <detail>: Remove command_info member.
6637 (struct tui_data_window) <start_line>: New member, from
6638 tui_command_info.
6639 (TUI_CMD_WIN): Add casts.
6640
6641 2019-06-25 Tom Tromey <tom@tromey.com>
6642
6643 * tui/tui-winsource.c (tui_update_source_window)
6644 (tui_refill_source_window)
6645 (tui_source_window_base::do_scroll_horizontal)
6646 (tui_update_breakpoint_info, tui_set_exec_info_content)
6647 (tui_show_exec_info_content, tui_erase_exec_info_content)
6648 (tui_clear_exec_info_content): Update.
6649 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
6650 Update.
6651 * tui/tui-win.c (make_invisible_and_set_new_height)
6652 (make_visible_with_new_height): Update.
6653 * tui/tui-source.c (tui_set_source_content)
6654 (tui_show_symtab_source): Update.
6655 * tui/tui-layout.c (extract_display_start_addr)
6656 (show_source_disasm_command, show_data)
6657 (make_source_or_disasm_window)
6658 (show_source_or_disasm_and_command): Update.
6659 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
6660 (tui_disasm_window::do_scroll_vertical): Remove shadowing
6661 "gdbarch".
6662 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
6663 to tui_source_window_base.
6664 (struct tui_win_info) <detail>: Remove source_info member.
6665 (struct tui_source_window_base) <has_locator>: Inline.
6666 Move contents from tui_source_info; rename has_locator member to
6667 m_has_locator.
6668 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
6669 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
6670 header file.
6671 (tui_source_window_base::clear_detail, ~tui_source_window_base):
6672 Simplify.
6673 (tui_free_all_source_wins_content): Cast to
6674 tui_source_window_base.
6675
6676 2019-06-25 Tom Tromey <tom@tromey.com>
6677
6678 * tui/tui-win.c (make_invisible_and_set_new_height)
6679 (make_visible_with_new_height): Call has_locator method.
6680 * tui/tui-layout.c (show_source_disasm_command, show_data)
6681 (show_source_or_disasm_and_command): Update for bool change.
6682 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
6683 (tui_win_info) <has_locator>: New method.
6684 (struct tui_source_window_base) <has_locator>: New method.
6685 (tui_win_has_locator): Don't declare.
6686 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
6687 from tui_win_has_locator.
6688 (tui_source_window_base): Use false, not FALSE.
6689
6690 2019-06-25 Tom Tromey <tom@tromey.com>
6691
6692 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
6693 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
6694 clear_detail method directly.
6695 (tui_clear_win_detail): Remove.
6696
6697 2019-06-25 Tom Tromey <tom@tromey.com>
6698
6699 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
6700 "this", not TUI_DISASM_WIN.
6701
6702 2019-06-25 Tom Tromey <tom@tromey.com>
6703
6704 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
6705 declare.
6706 * tui/tui-winsource.c
6707 (tui_source_window_base::do_scroll_horizontal): Rename from
6708 tui_horizontal_source_scroll.
6709 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
6710 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
6711 from tui_vertical_data_scroll.
6712 * tui/tui-win.h (tui_scroll): Don't declare.
6713 * tui/tui-win.c (tui_win_info::forward_scroll)
6714 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
6715 (tui_win_info::right_scroll): Rename and update.
6716 (tui_scroll_forward_command, tui_scroll_backward_command)
6717 (tui_scroll_left_command, tui_scroll_right_command): Update.
6718 (tui_scroll): Remove.
6719 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
6720 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
6721 from tui_vertical_source_scroll.
6722 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
6723 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
6724 from tui_vertical_disassem_scroll.
6725 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
6726 do_scroll_horizontal>: New methods.
6727 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
6728 Likewise.
6729 (struct tui_source_window_base): Add do_scroll_horizontal.
6730 (struct tui_source_window, struct tui_disasm_window): Add
6731 do_scroll_vertical.
6732 (struct tui_data_window, struct tui_cmd_window): Add
6733 do_scroll_horizontal and do_scroll_vertical.
6734 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
6735
6736 2019-06-25 Tom Tromey <tom@tromey.com>
6737
6738 * tui/tui-data.h (struct tui_source_window_base): New struct.
6739 (struct tui_source_window): Derive from tui_source_window_base.
6740 (struct tui_disasm_window): New struct.
6741 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
6742 from tui_source_window::clear_detail.
6743 (tui_source_window_base): Rename from tui_source_window.
6744 (~tui_source_window_base): Rename from ~tui_source_window.
6745 (tui_alloc_win_info): Create a tui_disasm_window.
6746
6747 2019-06-25 Tom Tromey <tom@tromey.com>
6748
6749 * tui/tui-data.h (struct tui_source_window)
6750 (struct tui_data_window): Declare destructors.
6751 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
6752 destructors.
6753 (tui_win_info): Simplify.
6754
6755 2019-06-25 Tom Tromey <tom@tromey.com>
6756
6757 * tui/tui-winsource.c (tui_display_main)
6758 (tui_update_source_windows_with_addr)
6759 (tui_update_all_breakpoint_info): Update.
6760 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
6761 (new_height_ok, parse_scrolling_args): Update.
6762 * tui/tui-stack.c (tui_show_frame_info): Update.
6763 * tui/tui-data.h (struct tui_list): Remove.
6764 (tui_source_windows): Return a reference to a std::vector.
6765 * tui/tui-data.c (source_windows): Now a std::vector.
6766 (tui_source_windows): Change return type.
6767 (tui_clear_source_windows): Rewrite.
6768 (tui_clear_source_windows_detail, tui_add_to_source_windows)
6769 (tui_free_all_source_wins_content): Rewrite.
6770
6771 2019-06-25 Tom Tromey <tom@tromey.com>
6772
6773 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
6774 (struct tui_data_window, struct tui_cmd_window): Declare
6775 clear_detail method.
6776 * tui/tui-data.c (tui_source_window::clear_detail)
6777 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
6778 methods.
6779 (tui_clear_win_detail): Simplify.
6780
6781 2019-06-25 Tom Tromey <tom@tromey.com>
6782
6783 * tui/tui-layout.c (make_source_window, make_disasm_window)
6784 (make_source_or_disasm_window): Remove win_info_ptr parameter.
6785 Return the new window.
6786 (show_source_disasm_command, show_data)
6787 (show_source_or_disasm_and_command): Update.
6788
6789 2019-06-25 Tom Tromey <tom@tromey.com>
6790
6791 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
6792 parameter. Return the new window.
6793 (show_source_disasm_command): Update and remove NULL check.
6794 (show_source_or_disasm_and_command): Update.
6795
6796 2019-06-25 Tom Tromey <tom@tromey.com>
6797
6798 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
6799
6800 2019-06-25 Tom Tromey <tom@tromey.com>
6801
6802 * tui/tui-data.h (struct tui_win_info): Make constructor
6803 protected. Make destructor virtual. Add initializers.
6804 (tui_source_window, tui_data_window, tui_cmd_window): New
6805 classes.
6806 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
6807 constructor. Add "type" parameter.
6808 (tui_source_window, tui_data_window, tui_cmd_window): New
6809 constructors.
6810 (tui_alloc_win_info): Instantiate the appropriate subclass.
6811
6812 2019-06-25 Tom Tromey <tom@tromey.com>
6813
6814 * tui/tui-win.c (tui_resize_all): Use delete.
6815 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
6816 destructor.
6817 (tui_free_window): Don't declare.
6818 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
6819 Update.
6820
6821 2019-06-25 Tom Tromey <tom@tromey.com>
6822
6823 * tui/tui-data.h (struct tui_win_info): Add constructor.
6824 * tui/tui-data.c (tui_alloc_win_info): Use new.
6825 (tui_free_window): Use delete.
6826
6827 2019-06-22 Tom Tromey <tom@tromey.com>
6828
6829 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
6830 declare.
6831 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
6832
6833 2019-06-22 Tom Tromey <tom@tromey.com>
6834
6835 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
6836 declare.
6837 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
6838
6839 2019-06-22 Tom de Vries <tdevries@suse.de>
6840
6841 * dwarf2read.c (create_addrmap_from_aranges)
6842 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
6843 instead of '%zu'.
6844
6845 2019-06-21 Simon Marchi <simon.marchi@efficios.com>
6846
6847 * dwarf2read.h (dwarf2_section_info_def): Remove.
6848 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
6849 * dwarf2read.c (struct dwo_sections) <types>: Change type to
6850 std::vector<dwarf2_section_info>.
6851 (struct dwo_file) <~dwo_file>: Remove.
6852 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
6853 types field.
6854 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
6855 (dwarf2_read_debug_names): Likewise.
6856 (create_debug_types_hash_table): Change parameter type to
6857 array_view, adjust code accordingly.
6858 (dwarf2_locate_dwo_sections): Adjust to std::vector.
6859 (partial_die_info::fixup): Likewise.
6860 (determine_prefix): Likewise.
6861 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
6862
6863 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
6864
6865 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
6866 gdb_bfd_ref_ptr.
6867 <~dwo_file>: Remove call to gdb_bfd_unref.
6868 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
6869 gdb_bfd_ref_ptr::get.
6870
6871 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
6872
6873 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
6874 type to htab_up.
6875 * dwarf2read.c (struct dwo_file): Initialize fields.
6876 <~dwo_file>: New.
6877 (free_dwo_file): Remove, move content to ~dwo_file.
6878 (struct dwo_file_deleter): Remove.
6879 (dwo_file_up>: Remove custom deleter.
6880 (free_dwo_files): Remove.
6881 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
6882 dwo_files.
6883 (process_skeletonless_type_units): Call unique_ptr::get.
6884 (allocate_dwo_file_hash_table): Add deleter to created hash
6885 table. Change return type to htab_up.
6886 (lookup_dwo_file_slot): Don't memset dwo_file, call
6887 unique_ptr::get.
6888 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
6889 (create_dwo_unit_in_dwp_v2): Likewise.
6890 (open_and_init_dwo_file): Likewise.
6891 (free_dwo_file_from_slot): Remove.
6892
6893 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
6894
6895 * dwarf2read.h (struct dwarf2_section_info) <readin,
6896 is_virtual>: Change type to bool.
6897 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
6898 true instead of 1.
6899
6900 2019-06-19 Tom Tromey <tom@tromey.com>
6901
6902 * tui/tui-data.h (tui_init_content_element): Don't declare.
6903
6904 2019-06-19 Tom Tromey <tom@tromey.com>
6905
6906 * tui/tui-data.h (tui_init_win_info): Don't declare.
6907
6908 2019-06-19 Tom de Vries <tdevries@suse.de>
6909
6910 * dwarf2read.h (abstract_to_concrete): Change type to
6911 std::unordered_map<sect_offset, std::vector<sect_offset>,
6912 gdb::hash_enum<sect_offset>>.
6913
6914 2019-06-19 Tom Tromey <tromey@adacore.com>
6915
6916 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
6917 EVAL_AVOID_SIDE_EFFECTS specially.
6918
6919 2019-06-19 Tom Tromey <tromey@adacore.com>
6920
6921 * source-cache.c (highlighter): New global.
6922 (source_cache::get_source_lines): Create a highlighter on demand.
6923
6924 2019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
6925
6926 * defs.h (deprecated_interactive_hook): Delete declaration.
6927 * interps.c (clear_interpreter_hooks): Remove use of
6928 deprecated_interactive_hook.
6929 * top.c (deprecated_interactive_hook): Delete definition.
6930 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
6931
6932 2019-06-18 Tom de Vries <tdevries@suse.de>
6933
6934 PR gdb/24515
6935 * dwarf2read.h (abstract_to_concrete): Change type from
6936 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
6937 std::unordered_map<sect_offset, std::vector<sect_offset>>.
6938 * dwarf2read.c (read_variable): Update.
6939 (dwarf2_fetch_die_loc_sect_off): Update.
6940
6941 2019-06-17 Tom de Vries <tdevries@suse.de>
6942
6943 PR gdb/24617
6944 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
6945 accessing parent[parent_len - 1].
6946
6947 2019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
6948
6949 PR gdb/24364
6950 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
6951 call dtrace_process_dof with NULL dof.
6952
6953 2019-06-16 Tom de Vries <tdevries@suse.de>
6954
6955 PR gdb/24445
6956 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
6957
6958 2019-06-16 Tom Tromey <tom@tromey.com>
6959
6960 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
6961 (make_all_visible): Use address of member.
6962
6963 2019-06-16 Tom Tromey <tom@tromey.com>
6964
6965 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
6966 (tui_free_window, free_content, free_content_elements): Remove
6967 unnecessary cast.
6968 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
6969 cast.
6970 * tui/tui-regs.c (tui_show_register_group)
6971 (tui_display_registers_from, tui_display_reg_element_at_line):
6972 Remove unnecessary cast.
6973
6974 2019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
6975
6976 * linux-nat.c (normal_mask): Delete.
6977 (_initialize_linux_nat): Don't initialise normal_mask.
6978
6979 2019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
6980
6981 PR gdb/24445
6982 * dwarf-index-write.h (write_psymtabs_to_index): Add
6983 dwz_basename parameter.
6984 * dwarf-index-write.c (write_gdbindex): Move file writing to
6985 write_gdbindex_1. Change return type void.
6986 (assert_file_size): Move up, remove filename parameter.
6987 (write_gdbindex_1): New function.
6988 (write_debug_names): Change return type to void, call
6989 assert_file_size.
6990 (struct index_wip_file): New struct.
6991 (write_psymtabs_to_index): Add dwz_basename parameter. Move
6992 file logic to index_wip_file. Write index for dwz file if
6993 needed.
6994 (save_gdb_index_command): Pass basename of dwz file, if present.
6995 * dwarf-index-cache.c (index_cache::store): Obtain and pass
6996 build-id of dwz file, if present.
6997 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
6998 (dwarf2_get_dwz_file): Likewise.
6999 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
7000 (dwarf2_get_dwz_file): Likewise.
7001
7002 2019-06-16 Tom Tromey <tom@tromey.com>
7003
7004 * coffread.c (process_coff_symbol): Use xstrdup.
7005 * value.c (create_internalvar): Use xstrdup.
7006
7007 2019-06-16 Tom Tromey <tom@tromey.com>
7008
7009 * valops.c (value_cast, value_slice): Remove unnecessary cast.
7010 * breakpoint.c (stopin_command, stopat_command)
7011 (until_break_command, decode_location_default): Remove unnecessary
7012 cast.
7013 * utils.c (subset_compare): Remove unnecessary cast.
7014 * ada-lang.c (ada_update_initial_language): Remove unnecessary
7015 cast.
7016 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
7017 cast.
7018 * infcmd.c (path_command): Remove unnecessary cast.
7019 * coffread.c (decode_type): Remove unnecessary cast.
7020 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
7021 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
7022 * tui/tui-stack.c (tui_show_locator_content)
7023 (tui_show_frame_info): Remove unnecessary cast.
7024 * tui/tui-win.c (tui_scroll_forward_command)
7025 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
7026 (parse_scrolling_args): Remove unnecessary cast.
7027 * tui/tui-data.c (init_win_info, tui_del_window)
7028 (tui_free_window, tui_del_data_windows, tui_free_data_content)
7029 (free_content_elements): Remove unnecessary cast.
7030 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
7031 unnecessary cast.
7032 * tui/tui-source.c (tui_set_source_content)
7033 (tui_vertical_source_scroll): Remove unnecessary cast.
7034 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
7035 cast.
7036 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
7037 * tui/tui-regs.c (tui_display_registers_from)
7038 (tui_display_register): Remove unnecessary cast.
7039 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
7040 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
7041 (make_visible): Remove unnecessary cast.
7042 * tui/tui-winsource.c (tui_erase_source_content)
7043 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
7044 unnecessary cast.
7045 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
7046 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
7047 * stabsread.c (read_type, read_array_type, read_range_type):
7048 Remove unnecessary cast.
7049 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
7050 (parse_symbol, parse_type, upgrade_type, parse_external)
7051 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
7052 unnecessary cast.
7053 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
7054
7055 2019-06-16 Tom Tromey <tom@tromey.com>
7056
7057 * tui/tui-data.c (tui_alloc_generic_win_info)
7058 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
7059 checks.
7060
7061 2019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
7062 Andrew Burgess <andrew.burgess@embecosm.com>
7063
7064 * f-typeprint.c (f_print_type): Don't return early for not
7065 associated or not allocated types.
7066 (f_type_print_varspec_suffix): Add print_rank parameter and print
7067 ranks of array types in case they dangling.
7068 (f_type_print_base): Add print_rank parameter.
7069
7070 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7071
7072 * NEWS: Mention new MI commands.
7073 * break-catch-throw.c (enum exception_event_kind): Move to
7074 breakpoint.h.
7075 (print_mention_exception_catchpoint): Output text as a single
7076 message.
7077 (catch_exception_command_1): Rename to...
7078 (catch_exception_event): ...this, make non-static, update header
7079 command, and change some parameter types.
7080 (catch_catch_command): Update for changes to
7081 catch_exception_command_1.
7082 (catch_throw_command): Likewise.
7083 (catch_rethrow_command): Likewise.
7084 * breakpoint.c (enum exception_event_kind): Delete.
7085 * breakpoint.h (enum exception_event_kind): Moved here from
7086 break-catch-throw.c.
7087 (catch_exception_event): Declare.
7088 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
7089 (mi_cmd_catch_throw): New function.
7090 (mi_cmd_catch_rethrow): New function.
7091 (mi_cmd_catch_catch): New function.
7092 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
7093 'catch-catch' entries.
7094 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
7095 (mi_cmd_catch_rethrow): Declare.
7096 (mi_cmd_catch_catch): Declare.
7097
7098 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7099
7100 * annotate.c (annotate_source_line): Change return type to void,
7101 update implementation to match.
7102 * annotate.h (annotate_source_line): Change return type to void,
7103 update header comment.
7104 * stack.c (print_frame_info): Don't change what frame information
7105 is printed based on whether annotations are on or not.
7106
7107 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7108
7109 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
7110 (annotate_source): Make static.
7111 (annotate_source_line): Moved from source.c and renamed from
7112 identify_source_line. Update the return type.
7113 * annotate.h (annotate_source): Delete declaration.
7114 (annotate_source_line): Declaration moved from source.h, and
7115 renamed from identify_source_line. Return type updated.
7116 * source.c (identify_source_line): Moved to annotate.c and renamed
7117 to annotate_source_line.
7118 (info_line_command): Remove check of annotation_level.
7119 * source.h (identify_source_line): Move declaration to annotate.h
7120 and rename to annotate_source_line.
7121 * stack.c: Add 'annotate.h' include.
7122 (print_frame_info): Remove check of annotation_level before
7123 calling annotate_source_line.
7124
7125 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7126
7127 * source-cache.c (source_cache::get_plain_source_lines): Use
7128 open_source_file_with_line_charpos instead of just
7129 open_source_file, remove call to find_source_lines.
7130 (source_cache::get_source_lines): Likewise.
7131 * source.c (find_source_lines): Make static.
7132 (get_filename_and_charpos): Renamed into...
7133 (open_source_file_with_line_charpos): ..this along with changes to
7134 return a scoped_fd, and some other minor clean ups.
7135 (identify_source_line): Use open_source_file_with_line_charpos.
7136 (search_command_helper): Use open_source_file_with_line_charpos
7137 instead of just open_source_file, remove call to
7138 find_source_lines.
7139 * source.h (open_source_file_with_line_charpos): Declare new
7140 function.
7141 (find_source_lines): Delete declaration.
7142
7143 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7144
7145 * source.c (get_filename_and_charpos): Remove fullname
7146 parameter.
7147 (identify_source_line): Update call to get_filename_and_charpos.
7148
7149 2019-06-14 Tom Tromey <tromey@adacore.com>
7150
7151 PR gdb/24502:
7152 * ui-style.h (skip_ansi_escape): Update comment.
7153 * ui-file.h (class no_terminal_escape_file): New class.
7154 * ui-file.c (no_terminal_escape_file::write)
7155 (no_terminal_escape_file::puts): New methods.
7156 * cli/cli-logging.c (handle_redirections): Use
7157 no_terminal_escape_file.
7158
7159 2019-06-14 Tom Tromey <tromey@adacore.com>
7160
7161 * NEWS: Move convenience variable news above Python news.
7162
7163 2019-06-14 Tom Tromey <tom@tromey.com>
7164
7165 * gnulib: Move directory to top-level.
7166 * configure.ac: Don't configure gnulib.
7167 * configure: Rebuild.
7168 * common/common-defs.h: Use new path to gnulib.
7169 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
7170 (GNULIB_H): Remove.
7171 (INCGNU): Look in new gnulib location.
7172 (HFILES_NO_SRCDIR): Remove gnulib files.
7173 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
7174 (generated_files): Remove GNULIB_H.
7175 ($(LIBGNU), all-lib): Remove targets.
7176 (distclean): Don't mention GNULIB_BUILDDIR.
7177 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
7178
7179 2019-06-14 Tom Tromey <tromey@adacore.com>
7180
7181 * symfile.c (add_symbol_file_command): Remove obsolete comment.
7182 Warn if symbol file does not provide any symbols.
7183
7184 2019-06-14 Tom Tromey <tromey@adacore.com>
7185
7186 * source.c (find_and_open_source): Respect basenames_may_differ.
7187
7188 2019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
7189
7190 * annotate.c (annotate_breakpoints_invalid): Make use of
7191 scoped_restore_terminal_state.
7192 (annotate_frames_invalid): Likewise.
7193
7194 2019-06-14 Tom Tromey <tromey@adacore.com>
7195
7196 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
7197 allow assignment to an internalvar.
7198
7199 2019-06-14 Tom Tromey <tromey@adacore.com>
7200
7201 * ada-lex.l: Allow "_" in attribute names.
7202
7203 2019-06-14 Tom Tromey <tromey@adacore.com>
7204
7205 PR gdb/24653:
7206 * regcache.c (registers_changed): Don't call alloca.
7207 * top.c (execute_command): Don't call alloca.
7208
7209 2019-06-13 Pedro Alves <palves@redhat.com>
7210
7211 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
7212 'expression'. When parsing an expression, error out if there's
7213 junk after "unlimited".
7214 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
7215 (do_set_command): Adjust calls to is_unlimited_literal.
7216
7217 2019-06-13 Pedro Alves <palves@redhat.com>
7218
7219 * compile/compile.c (make_compile_options_def_group): Add braces
7220 around array_view initializer.
7221 * thread.c (make_thread_apply_all_options_def_group)
7222 (make_thread_apply_all_options_def_group): Likewise.
7223
7224 2019-06-13 Pedro Alves <palves@redhat.com>
7225
7226 * NEWS (New commands): Mention "maint test-options
7227 require-delimiter", "maint test-options unknown-is-error", "maint
7228 test-options unknown-is-operand" and "maint show
7229 test-options-completion-result".
7230 (New command options, command completion): New section.
7231 (Completion improvements): New section.
7232 Mention that you can abbreviate "unlimited".
7233
7234 2019-06-13 Pedro Alves <palves@redhat.com>
7235
7236 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
7237 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
7238 * unittests/cli-utils-selftests.c (test_parse_flags)
7239 (test_parse_flags_qcs): Delete.
7240 (test_cli_utils): Don't call deleted functions.
7241
7242 2019-06-13 Pedro Alves <palves@redhat.com>
7243
7244 * thread.c: Include "cli/cli-option.h".
7245 (tp_array_compar_ascending): Global.
7246 (tp_array_compar): Delete function.
7247 (tp_array_compar_ascending, tp_array_compar_descending): New
7248 functions.
7249 (ascending_option_def, qcs_flag_option_def)
7250 (thr_qcs_flags_option_defs)
7251 (make_thread_apply_all_options_def_group)
7252 (make_thread_apply_options_def_group): New.
7253 (thread_apply_all_command): Use gdb::option::process_options.
7254 (thread_apply_command_completer)
7255 (thread_apply_all_command_completer): New.
7256 (thread_apply_command): Use gdb::option::process_options.
7257 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
7258 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
7259 to generate help text of "thread apply". Adjust "taas"'s help.
7260 * tid-parse.c (tid_range_parser::in_thread_range): New method.
7261 * tid-parse.h (tid_range_parser::in_thread_range): New method.
7262
7263 2019-06-13 Pedro Alves <palves@redhat.com>
7264
7265 * thread.c (thread_apply_command): Check for invalid TID with
7266 isdigit instead of !isalpha.
7267
7268 2019-06-13 Pedro Alves <palves@redhat.com>
7269
7270 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
7271 (validate_flags_qcs): New.
7272 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
7273 (validate_flags_qcs): Declare.
7274 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
7275 (make_frame_apply_options_def_group): New.
7276 (frame_apply_command_count): Process options with
7277 gdb::option::process_options.
7278 (frame_apply_completer): New.
7279 (frame_apply_level_completer, frame_apply_all_completer)
7280 (frame_apply_completer): New.
7281 (_initialize_stack): Update help of "frame apply", "frame apply
7282 level", "frame apply all" and "faas" to mention supported options
7283 and install command completers.
7284 * stack.h (frame_apply_all_completer): Declare.
7285 * thread.c: Include "stack.h".
7286 (tfaas_command): Add "--".
7287 (_initialize_thread): Update help "tfaas" to mention supported
7288 options and install command completer.
7289
7290 2019-06-13 Pedro Alves <palves@redhat.com>
7291
7292 * completer.c (complete_nested_command_line): New.
7293 (gdb_completion_word_break_characters_throw): Add assertion.
7294 * completer.h (complete_nested_command_line): Declare.
7295
7296 2019-06-13 Pedro Alves <palves@redhat.com>
7297
7298 * stack.c (parse_backtrace_qualifiers): New.
7299 (backtrace_command): Use it.
7300 (backtrace_command_completer): Complete on qualifiers.
7301
7302 2019-06-13 Pedro Alves <palves@redhat.com>
7303
7304 * frame.c: Include "cli/cli-option.h.
7305 (user_set_backtrace_options): New.
7306 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
7307 Delete.
7308 (get_prev_frame): Adjust.
7309 (boolean_option_def, uinteger_option_def)
7310 (set_backtrace_option_defs): New.
7311 (_initialize_frame): Adjust and use
7312 gdb::option::add_setshow_cmds_for_options to install "set
7313 backtrace past-main" and "set backtrace past-entry".
7314 * frame.h: Include "cli/cli-option.h".
7315 (struct frame_print_options): Forward declare.
7316 (print_frame_arguments_all, print_frame_arguments_scalars)
7317 (print_frame_arguments_none): Declare.
7318 (print_entry_values): Delete declaration.
7319 (struct frame_print_options, user_frame_print_options): New.
7320 (struct set_backtrace_options): New.
7321 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
7322 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
7323 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
7324 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
7325 (list_args_or_locals): Add frame_print_options parameter.
7326 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
7327 * python/py-framefilter.c (enumerate_args): Pass down
7328 USER_FRAME_PRINT_OPTIONS.
7329 * stack.c: Include "cli/cli-option.h".
7330 (print_frame_arguments_all, print_frame_arguments_scalars)
7331 (print_frame_arguments_none): Declare.
7332 (print_raw_frame_arguments, print_entry_values): Delete.
7333 (user_frame_print_options): New.
7334 (boolean_option_def, enum_option_def, frame_print_option_defs):
7335 New.
7336 (struct backtrace_cmd_options): New.
7337 (bt_flag_option_def): New.
7338 (backtrace_command_option_defs): New.
7339 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
7340 (print_frame_arg, read_frame_arg, print_frame_args)
7341 (print_frame_info, print_frame): Add frame_print_options parameter
7342 and use it.
7343 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
7344 (backtrace_command_1): Add frame_print_options and
7345 backtrace_cmd_options parameters and use them.
7346 (make_backtrace_options_def_group): New.
7347 (backtrace_command): Process command options with
7348 gdb::option::process_options.
7349 (backtrace_command_completer): New.
7350 (_initialize_stack): Extend "backtrace"'s help to mention
7351 supported options. Install completer for "backtrace".
7352 Install some settings commands with add_setshow_cmds_for_options.
7353
7354 2019-06-13 Pedro Alves <palves@redhat.com>
7355
7356 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
7357 and that "set/show print raw frame-arguments" are now deprecated.
7358
7359 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
7360 command.
7361 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
7362 * stack.c (_initialize_stack): Install "set/show print
7363 raw-frame-arguments", and deprecate "set/show print raw
7364 frame-arguments".
7365 * valprint.c (_initialize_valprint): Deprecate "set/show print
7366 raw".
7367
7368 2019-06-13 Pedro Alves <palves@redhat.com>
7369
7370 * compile/compile.c (struct compile_options): New.
7371 (compile_flag_option_def, compile_command_option_defs)
7372 (make_compile_options_def_group): New.
7373 (compile_file_command): Handle options with
7374 gdb::option::process_options.
7375 (compile_file_command_completer): New function.
7376 (compile_code_command): Handle options with
7377 gdb::option::process_options.
7378 (compile_code_command_completer): New function.
7379 (_initialize_compiler): Install completers for "compile code" and
7380 "compile file". Mention available options in "compile code" and
7381 "compile code"'s help.
7382 * completer.c (advance_to_completion_word): New, factored out from
7383 ...
7384 (advance_to_expression_complete_word_point): ... this.
7385 (advance_to_filename_complete_word_point): New.
7386 * completer.h (advance_to_filename_complete_word_point): New
7387 declaration.
7388
7389 2019-06-13 Pedro Alves <palves@redhat.com>
7390
7391 * compile/compile.c: Include "cli/cli-option.h".
7392 (compile_print_value): Scope data pointer is now a
7393 value_print_options pointer; adjust.
7394 (compile_print_command): Process options. Scope data pointer is
7395 now a value_print_options pointer; adjust.
7396 (_initialize_compile): Update "compile print"'s help to include
7397 supported options. Install a completer for "compile print".
7398 * cp-valprint.c (show_vtblprint, show_objectprint)
7399 (show_static_field_print): Delete.
7400 (_initialize_cp_valprint): Don't install "set print
7401 static-members", "set print vtbl", "set print object" here.
7402 * printcmd.c: Include "cli/cli-option.h" and
7403 "common/gdb_optional.h".
7404 (print_command_parse_format): Rework to fill in a
7405 value_print_options instead of a format_data.
7406 (print_value): Change parameter type from format_data pointer to
7407 value_print_options reference. Adjust.
7408 (print_command_1): Process options. Adjust to pass down a
7409 value_print_options.
7410 (print_command_completer): New.
7411 (_initialize_printcmd): Install print_command_completer as
7412 handle_brkchars completer for the "print" command. Update
7413 "print"'s help to include supported options.
7414 * valprint.c: Include "cli/cli-option.h".
7415 (show_vtblprint, show_objectprint, show_static_field_print): Moved
7416 here from cp-valprint.c.
7417 (boolean_option_def, uinteger_option_def)
7418 (value_print_option_defs, make_value_print_options_def_group):
7419 New. Use gdb::option::add_setshow_cmds_for_options to install
7420 "set print elements", "set print null-stop", "set print repeats",
7421 "set print pretty", "set print union", "set print array", "set
7422 print address", "set print symbol", "set print array-indexes".
7423 * valprint.h: Include <string> and "cli/cli-option.h".
7424 (make_value_print_options_def_group): Declare.
7425 (print_value): Change parameter type from format_data pointer to
7426 value_print_options reference.
7427 (print_command_completer): Declare.
7428
7429 2019-06-13 Pedro Alves <palves@redhat.com>
7430
7431 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
7432 (COMMON_SFILES): Add maint-test-settings.c.
7433 * cli/cli-decode.c (boolean_enums): New global, factored out from
7434 ...
7435 (add_setshow_boolean_cmd): ... here.
7436 * cli/cli-decode.h (boolean_enums): Declare.
7437 * cli/cli-option.c: New file.
7438 * cli/cli-option.h: New file.
7439 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
7440 factored out from ...
7441 (parse_cli_boolean_value(const char *)): ... this.
7442 (is_unlimited_literal): Change parameter type to pointer to
7443 pointer. Adjust and advance ARG pointer.
7444 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
7445 (parse_cli_var_enum): New, factored out from ...
7446 (do_set_command): ... this. Adjust.
7447 * cli/cli-setshow.h (parse_cli_boolean_value)
7448 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
7449 (parse_cli_var_enum): Declare.
7450 * cli/cli-utils.c: Include "cli/cli-option.h".
7451 (get_ulongest): New.
7452 * cli/cli-utils.h (get_ulongest): Declare.
7453 (check_for_argument): New overloads.
7454 * maint-test-options.c: New file.
7455
7456 2019-06-13 Pedro Alves <palves@redhat.com>
7457
7458 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
7459 parse a range if "-" is at the end of the string.
7460
7461 2019-06-13 Pedro Alves <palves@redhat.com>
7462
7463 * cli/cli-setshow.c (parse_auto_binary_operation)
7464 (parse_cli_boolean_value): Don't allow "o".
7465
7466 2019-06-13 Pedro Alves <palves@redhat.com>
7467
7468 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
7469 * NEWS: Mention maint test-settings KIND.
7470 * maint-test-settings.c: New file.
7471
7472 2019-06-13 Pedro Alves <palves@redhat.com>
7473
7474 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
7475 completer.
7476 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
7477 "set" completers.
7478
7479 2019-06-13 Pedro Alves <palves@redhat.com>
7480
7481 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
7482 after item.
7483
7484 2019-06-13 Pedro Alves <palves@redhat.com>
7485
7486 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
7487
7488 2019-06-13 Pedro Alves <palves@redhat.com>
7489
7490 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
7491 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
7492 call.
7493 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
7494 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
7495 calls.
7496 (check_for_argument): Skip spaces after argument.
7497
7498 2019-06-13 Pedro Alves <palves@redhat.com>
7499
7500 * thread.c (thread_apply_command): Adjust TID parsing.
7501 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
7502 detected before end of string.
7503 (tid_is_in_list): Error out if LIST is invalid.
7504
7505 2019-06-13 Pedro Alves <palves@redhat.com>
7506
7507 * completer.c (complete_line_internal_1): Rewind completion word
7508 point.
7509 (completion_tracker::advance_custom_word_point_by): Change
7510 parameter type to int.
7511 * completer.h (completion_tracker::advance_custom_word_point_by):
7512 Likewise.
7513
7514 2019-06-13 Pedro Alves <palves@redhat.com>
7515
7516 * completer.c (advance_to_completion_word): Handle delimiters.
7517
7518 2019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
7519
7520 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
7521
7522 2019-06-11 Tom Tromey <tom@tromey.com>
7523
7524 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
7525 (xmalloc_failed): Move to alloc.c.
7526 * alloc.c: New file.
7527 * Makefile.in (COMMON_SFILES): Add alloc.c.
7528
7529 2019-06-11 Tom Tromey <tom@tromey.com>
7530
7531 * nat/linux-waitpid.c: Don't include server.h.
7532 (linux_debug): Remove.
7533 (my_waitpid): Update.
7534
7535 2019-06-11 Tom Tromey <tromey@adacore.com>
7536
7537 * infcall.c (_initialize_infcall): Remove trailing newline from
7538 help.
7539 * user-regs.c (_initialize_user_regs): Remove trailing newline
7540 from help.
7541 * typeprint.c (_initialize_typeprint): Remove trailing newline
7542 from help.
7543 * reverse.c (_initialize_reverse): Remove trailing newlines from
7544 help.
7545 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
7546 from help.
7547 * language.c (add_set_language_command): Remove trailing newline
7548 from help.
7549 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
7550 help.
7551 * disasm.c (_initialize_disasm): Remove trailing newline from
7552 help.
7553 * top.c (init_main): Remove trailing newline from help.
7554 * interps.c (_initialize_interpreter): Remove trailing newline
7555 from help.
7556 * btrace.c (_initialize_btrace): Remove trailing newlines from
7557 help.
7558 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
7559 from help.
7560 * python/python.c (_initialize_python): Remove trailing newline
7561 from help.
7562 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
7563 help.
7564 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
7565 from help. Reformat some text.
7566 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
7567 from help.
7568 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
7569 newline from help.
7570
7571 2019-06-11 Tom Tromey <tromey@adacore.com>
7572
7573 * darwin-nat.c (darwin_decode_exception_message)
7574 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
7575
7576 2019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
7577
7578 * valops.c (value_slice): Check for not allocated or not
7579 associated values.
7580
7581 2019-06-10 Tom de Vries <tdevries@suse.de>
7582
7583 PR gdb/24618
7584 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
7585 sure an empty slot (defined by a 32-bit zero pair) is recognized as
7586 invalid.
7587
7588 2019-06-10 Tom de Vries <tdevries@suse.de>
7589
7590 PR gdb/24611
7591 * linespec.c (linespec_lexer_lex_string): Remove incorrect
7592 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
7593
7594 2019-06-10 Tom de Vries <tdevries@suse.de>
7595
7596 PR symtab/24545
7597 * symtab.c (struct demangled_name_entry): Add language field.
7598 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
7599 static minimal symbol". Set and use language field.
7600
7601 2019-06-10 Tom Tromey <tromey@adacore.com>
7602
7603 * ada-lang.c (_initialize_ada_language): Update help text.
7604
7605 2019-06-10 Tom Tromey <tromey@adacore.com>
7606
7607 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
7608 with a newline.
7609 * guile/guile.c (handle_boot_error): Don't end warning with a
7610 newline.
7611 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
7612 warning with a newline.
7613 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
7614 newline.
7615 (s12z_frame_cache): Likewise.
7616 * dwarf-index-cache.c (index_cache::store): Don't end warning with
7617 a newline.
7618 * solib-svr4.c (disable_probes_interface): Don't end warning with
7619 a newline.
7620 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
7621 newline.
7622 * python/python.c (do_finish_initialization): Don't end warning
7623 with a newline.
7624
7625 2019-06-10 Tom Tromey <tom@tromey.com>
7626
7627 * python/py-breakpoint.c (gdbpy_breakpoint_created)
7628 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
7629 gdbpy_enter.
7630
7631 2019-06-10 Tom Tromey <tromey@adacore.com>
7632
7633 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
7634 data.
7635 (elf_new_init): Don't call stabsread_new_init.
7636 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
7637 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
7638 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
7639
7640 2019-06-10 Tom de Vries <tdevries@suse.de>
7641
7642 PR symtab/16264
7643 PR symtab/24517
7644 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
7645
7646 2019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
7647
7648 * source.c (find_and_open_source): Also rewrite relative file
7649 names.
7650
7651 2019-04-26 Amos Bird <amosbird@gmail.com>
7652
7653 * annotate.c (annotate_thread_exited): Add "thread-exited"
7654 annotation.
7655
7656 2019-06-06 Tom Tromey <tromey@adacore.com>
7657
7658 * maint.h (class scoped_command_stats): Use
7659 DISABLE_COPY_AND_ASSIGN.
7660 <print_time>: New method.
7661 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
7662 print_time.
7663 (scoped_command_stats::print_time): New method.
7664
7665 2019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
7666
7667 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
7668 instructions of lengths 6 or 8 bytes.
7669
7670 2019-06-04 Pedro Alves <palves@redhat.com>
7671
7672 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
7673
7674 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
7675 * breakpoint.c (condition_completer): Likewise.
7676 * cli/cli-dump.c (scan_expression): Likewise.
7677 * common/filestuff.c (mkdir_recursive): Likewise.
7678 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
7679 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
7680 (gdb_abspath): Likewise.
7681 * compile/compile-cplus-types.c
7682 (compile_cplus_instance::decl_name): Likewise.
7683 * completer.c (complete_explicit_location):
7684 (signal_completer, reg_or_group_completer_1): Likewise.
7685 * cp-support.c (cp_remove_params_if_any): Likewise.
7686 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
7687 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
7688 * infcmd.c (strip_bg_char): Likewise.
7689 * linespec.c (copy_token_string): Likewise.
7690 * mi/mi-main.c (output_cores): Likewise.
7691 * psymtab.c (psymtab_search_name):
7692 * symfile.c (test_set_ext_lang_command): Likewise.
7693 * target.c (target_fileio_read_stralloc): Likewise.
7694 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
7695 * value.c (complete_internalvar): Likewise.
7696
7697 2019-06-04 Christian Biesinger <cbiesinger@google.com>
7698
7699 Add objfile property to gdb.Type.
7700 * NEWS: Mention Python API addition.
7701 * python/py-type.c (typy_get_objfile): New method.
7702
7703 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7704
7705 * NEWS: Mention the new set|show style [title|highlight].
7706 Mention changes to "show style", "help" and "apropos".
7707
7708 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7709
7710 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
7711 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
7712 instead of print_help_for_command.
7713 (print_doc_of_command): New function.
7714 (help_list): Add 'apropos -v word' suggestion.
7715 (print_help_for_command): Style the command name using title style.
7716 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
7717 (_initialize_cli_cmds): Describe -v in apropos_command help.
7718
7719 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7720
7721 * cli/cli-style.h (cli_style_option): Add name in constructor,
7722 add m_name class member, add constructor with intensity,
7723 add name class function.
7724 (cli_style_option::add_setshow_commands): Remove name argument.
7725 (highlight_style, title_style): New styles.
7726 * cli/cli-style.c (do_show): New function that shows a style
7727 characteristic styling the style name with itself.
7728 (set_style_name): New function.
7729 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
7730 Update all callers according to the changes in cli/cli-style.h.
7731 * utils.h (fputs_highlighted): New function.
7732 * utils.c (fputs_highlighted): Likewise.
7733
7734 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7735
7736 * NEWS: Mention new pipe command and new convenience variables.
7737
7738 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7739
7740 * cli/cli-cmds.c (pipe_command): New function.
7741 (_initialize_cli_cmds): Call add_com for pipe_command.
7742 Define | as an alias for pipe.
7743 (exit_status_set_internal_vars): New function.
7744 (shell_escape): Call exit_status_set_internal_vars.
7745 cli/cli-decode.c (find_command_name_length): Recognize | as
7746 a single character command.
7747
7748 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7749
7750 * gdbcmd.h (execute_command_to_ui_file): New declaration.
7751 top.c (execute_command_to_ui_file): New function, mostly a copy
7752 of execute_command_to_string.
7753 (execute_command_to_string): Implement by calling
7754 execute_command_to_ui_file.
7755
7756 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7757
7758 * top.h (saved_command_line): Remove declaration.
7759 * top.c (previous_saved_command_line, previous_repeat_arguments):
7760 New variables.
7761 (saved_command_line): Make static, define together with other
7762 'repeat variables'.
7763 (dont_repeat): Clear repeat_arguments.
7764 (repeat_previous, get_saved_command_line, save_command_line):
7765 New functions.
7766 (gdb_init): Initialize saved_command_line
7767 and previous_saved_command_line.
7768 * main.c (captured_main_1): Remove saved_command_line initialization.
7769 * event-top.c (handle_line_of_input): Update to use
7770 the new 'repeat' related functions instead of direct access to
7771 saved_command_line.
7772 * command.h (repeat_previous, get_saved_command_line,
7773 save_command_line): New declarations.
7774 (dont_repeat): Add comment.
7775
7776 2019-05-30 Tom Tromey <tromey@adacore.com>
7777
7778 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
7779 Fix comment.
7780 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
7781
7782 2019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
7783
7784 PR cli/24587
7785 * completer.c (complete): Initialize variable word.
7786
7787 2019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
7788
7789 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
7790 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
7791 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
7792 'body' is NULL to the outter 'if', protecting the '!is_define'
7793 situation as well.
7794
7795 2019-05-29 Tom Tromey <tromey@adacore.com>
7796
7797 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
7798 (dwarf_unknown): New function.
7799 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
7800 (dwarf_type_encoding_name): Use dwarf_unknown.
7801
7802 2019-05-29 Tom Tromey <tromey@adacore.com>
7803
7804 PR c++/20020:
7805 * cp-valprint.c (cp_print_value_fields): Call
7806 cp_print_static_field inside "try".
7807
7808 2019-05-29 Tom Tromey <tromey@adacore.com>
7809
7810 * inflow.c (struct terminal_info): Add default operator=.
7811 * configure: Rebuild.
7812 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
7813 -Wdeprecated-copy-dtor, -Wredundant-move.
7814
7815 2019-05-29 Tom Tromey <tromey@adacore.com>
7816
7817 * NEWS: Add entry.
7818 * infcmd.c (print_return_value_1): Handle finish_print
7819 option.
7820 (show_print_finish): New function.
7821 (_initialize_infcmd): Add "set/show print finish" commands.
7822 * valprint.c (user_print_options): Initialize new member.
7823 * valprint.h (struct value_print_options) <finish_print>: New
7824 member.
7825
7826 2019-05-28 Tom Tromey <tromey@adacore.com>
7827
7828 * ada-lang.c (ada_remove_Xbn_suffix)
7829 (find_old_style_renaming_symbol)
7830 (parse_old_style_renaming): Remove.
7831 (ada_find_renaming_symbol): Don't call
7832 find_old_style_renaming_symbol.
7833 (ada_is_renaming_symbol): Rename from
7834 ada_find_renaming_symbol. Remove "block" parameter. Return
7835 bool. Now static.
7836 (ada_read_var_value): Update and simplify.
7837 * ada-exp.y (write_var_or_type): Remove old code.
7838
7839 2019-05-28 Alan Hayward <alan.hayward@arm.com>
7840
7841 PR gdb/25010
7842 * event-top.c: Remove include comment.
7843 * inflow.c (class scoped_ignore_sigttou): Move from here...
7844 * inflow.h (class scoped_ignore_sigttou): ...to here.
7845 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
7846 * top.c: Remove include comment.
7847
7848 2019-05-27 Tom Tromey <tom@tromey.com>
7849
7850 * NEWS: Fix typo.
7851
7852 2019-05-22 Tom Tromey <tromey@adacore.com>
7853
7854 * target.c (target_follow_exec): Constify parameter.
7855 * target-delegates.c: Rebuild.
7856 * remote.c (remote_target::follow_exec): Constify parameter.
7857 * infrun.c (follow_exec): Constify parameter.
7858 * target.h (struct target_ops) <follow_exec>: Constify parameter.
7859 (target_follow_exec): Likewise.
7860
7861 2019-05-22 Alan Hayward <alan.hayward@arm.com>
7862
7863 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
7864 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
7865
7866 2019-05-22 Alan Hayward <alan.hayward@arm.com>
7867
7868 * NEWS: Add debugredirect and testsuite sections.
7869
7870 2019-05-22 Simon Cook <simon.cook@embecosm.com>
7871
7872 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
7873 target descriptions using exclusively floating point register name
7874 aliases.
7875
7876 2019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7877
7878 PR gdb/18644:
7879 * f-lang.c (build_fortran_types): Handle the case where
7880 gdbarch_floatformat_for_type returns a nullptr.
7881
7882 2019-05-21 Tom de Vries <tdevries@suse.de>
7883
7884 PR cli/24587
7885 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
7886
7887 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
7888
7889 PR gdb/18644:
7890 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
7891 16-byte floats.
7892 * i386-tdep.c (i386_floatformat_for_type): Use
7893 floatformats_ia64_quad for the 16-byte floating point component
7894 within a fortran 32-byte complex number.
7895
7896 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
7897
7898 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
7899 delete default constructor.
7900 (find_partial_die): Update to return const struct.
7901 (partial_die_parent_scope): Move variable declaration into scope
7902 of its use and change its type to auto.
7903 (guess_partial_die_structure_name): Likewise.
7904 (partial_die_info::fixup): Likewise.
7905
7906 2019-05-17 Tom Tromey <tromey@adacore.com>
7907
7908 * source.c (find_and_open_source): Remove cast.
7909
7910 2019-05-17 Tom Tromey <tromey@adacore.com>
7911
7912 * annotate.c (annotate_source): Make "filename" const.
7913 * annotate.h (annotate_source): Use const.
7914
7915 2019-05-17 Alan Hayward <alan.hayward@arm.com>
7916
7917 * disasm.c (set_disassembler_options): Send errors to stderr.
7918
7919 2019-05-17 Alan Hayward <alan.hayward@arm.com>
7920
7921 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
7922 (cli_interp_base::set_logging): Check debug_redirect.
7923 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
7924 * cli/cli-logging.c (debug_redirect): Add static variable.
7925 (pop_output_files): Add default param.
7926 (handle_redirections): Print debug setting.
7927 (show_logging_command): Likewise.
7928 (_initialize_cli_logging): Add debugredirect command.
7929 * interps.c (current_interp_set_logging): Add debug_redirect
7930 parameter.
7931 * interps.h (set_logging): Add debug_redirect parameter.
7932 (current_interp_set_logging): Likewise.
7933 * mi/mi-common.h: Likewise.
7934 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
7935
7936 2019-05-17 Alan Hayward <alan.hayward@arm.com>
7937 Tom Tromey <tromey@adacore.com>
7938
7939 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
7940 directly.
7941 * cli/cli-interp.h (make_logging_output): Remove declaration.
7942 * cli/cli-logging.c (make_logging_output): Remove function.
7943 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
7944 directly.
7945 * ui-file.c (tee_file::tee_file): Remove bools.
7946 (tee_file::~tee_file): Remove deletes.
7947 * ui-file.h (tee_file): Remove bools.
7948
7949 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
7950
7951 * mi/mi-cmds.h (mi_cmd_complete): New function.
7952 * mi/mi-main.c (mi_cmd_complete): Likewise.
7953 * mi/mi-cmds.c: Define new MI command -complete.
7954 * NEWS: Mention new -complete command.
7955
7956 2019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
7957
7958 * completer.h (complete): New function.
7959 * completer.c (complete): Likewise.
7960 * cli/cli-cmds.c: (complete_command): Update to use new complete()
7961 function defined in completer.h.
7962
7963 2019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
7964
7965 * MAINTAINERS (Write After Approval): Add myself.
7966
7967 2019-05-17 Tom de Vries <tdevries@suse.de>
7968
7969 PR gdb/24094
7970 * dwarf2read.c (struct cu_partial_die_info): New struct.
7971 (find_partial_die): Return cu_partial_die_info.
7972 (partial_die_parent_scope, guess_partial_die_structure_name)
7973 (partial_die_info::fixup): Handle new return type of find_partial_die.
7974
7975 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7976
7977 PR breakpoints/24541
7978 * stap-probe.c (stap_parse_register_operand): Make "regname" an
7979 "std::string", simplifying the algorithm.
7980
7981 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7982
7983 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
7984 (stap_static_probe_ops::get_probes): Likewise.
7985
7986 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7987
7988 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
7989 '-')" and "else if".
7990 (stap_parse_single_operand): Join checks for
7991 "gdbarch_stap_parse_special_token_p" and
7992 "gdbarch_stap_parse_special_token" in the same "if" statement.
7993 Invert check when verifying for operation on register
7994 displacement.
7995
7996 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7997
7998 * stap-probe.c (stap_get_opcode): Update comment.
7999 (stap_get_expected_argument_type): Likewise.
8000 (handle_stap_probe): Likewise.
8001
8002 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8003
8004 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
8005 return type to 'bool'. Adjust comment. Use 'bool' when
8006 appropriate.
8007 (i386_stap_parse_special_token_three_arg_disp): Likewise.
8008 * stap-probe.c (stap_parse_argument_1): Likewise.
8009 (stap_is_operator): Likewise.
8010 (stap_is_generic_prefix): Likewise.
8011 (stap_is_register_prefix): Likewise.
8012 (stap_is_register_indirection_prefix): Likewise.
8013 (stap_is_integer_prefix): Likewise.
8014 (stap_generic_check_suffix): Likewise.
8015 (stap_check_integer_suffix): Likewise.
8016 (stap_check_register_suffix): Likewise.
8017 (stap_check_register_indirection_suffix): Likewise.
8018 (stap_parse_register_operand): Likewise.
8019 (stap_parse_single_operand): Likewise.
8020 (stap_parse_argument_1): Likewise.
8021 (stap_probe::get_argument_count): Likewise.
8022 (stap_is_operator): Likewise.
8023
8024 2019-05-16 Tom Tromey <tromey@adacore.com>
8025
8026 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
8027 keyword to foreach.
8028
8029 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
8030
8031 * linux-thread-db.c (try_thread_db_load_1): Change return type
8032 to bool.
8033 (try_thread_db_load): Likewise.
8034 (try_thread_db_load_from_pdir_1): Likewise.
8035 (try_thread_db_load_from_pdir): Likewise.
8036 (try_thread_db_load_from_sdir): Likewise.
8037 (try_thread_db_load_from_dir): Likewise.
8038 (thread_db_load_search): Likewise.
8039 (has_libpthread): Likewise.
8040 (thread_db_load): Likewise.
8041
8042 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
8043
8044 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
8045 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
8046 NULL, and complain/return if that's the case.
8047
8048 2019-05-15 John Darrington <john@darrington.wattle.id.au>
8049
8050 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
8051 (advance, posn, abstract_read_memory): New functions.
8052 [struct mem_read_abstraction]: New struct.
8053 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
8054
8055 2019-05-14 Tom Tromey <tromey@adacore.com>
8056
8057 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
8058 value is not lval_memory.
8059
8060 2019-05-14 Tom Tromey <tromey@adacore.com>
8061
8062 * solib.c (info_sharedlibrary_command): Style the file name.
8063
8064 2019-05-14 Alan Hayward <alan.hayward@arm.com>
8065
8066 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
8067 (aarch64_vnv_type): Likewise.
8068 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
8069 * common/tdesc.c: Likewise.
8070 * common/tdesc.h (enum tdesc_type_kind): Likewise.
8071 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
8072 * features/aarch64-fpu.xml: Add ieee half view.
8073 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
8074 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
8075 * gdbtypes.h (struct builtin_type): Likewise.
8076 (struct objfile_type): Likewise.
8077
8078 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
8079
8080 * language.c (language_sniff_from_mangled_name): Fix "langauge"
8081 typo.
8082 * location.h (string_to_event_location): Likewise.
8083
8084 2019-05-11 Joel Brobecker <brobecker@adacore.com>
8085
8086 GDB 8.3 released.
8087
8088 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
8089
8090 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
8091 New variable declaration.
8092 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
8093 New variable.
8094 (print_one_breakpoint): Use ui_out::test_flags and new global
8095 variable to compute use_fixed_output.
8096 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
8097 Remove.
8098 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
8099 (mi_multi_location_breakpoint_output_fixed): Remove.
8100 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
8101 new variable.
8102 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
8103 fix_multi_location_breakpoint_output flag if version >= 3.
8104 * ui-out.h (enum ui_out_flag)
8105 <fix_multi_location_breakpoint_output>: New enumerator.
8106
8107 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
8108
8109 * contrib/cc-with-tweaks.sh: Validate dwz's work.
8110
8111 2019-05-10 Tom Tromey <tromey@adacore.com>
8112
8113 * ada-lang.c (catch_ada_completer): New function.
8114 (_initialize_ada_language): Use it.
8115
8116 2019-05-10 Tom Tromey <tromey@adacore.com>
8117
8118 * thread.c (print_thread_info): Make "requested_threads" const.
8119 * gdbthread.h (print_thread_info): Make "requested_threads"
8120 const.
8121 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
8122 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
8123
8124 2019-05-08 Tom Tromey <tom@tromey.com>
8125
8126 * gdbtypes.c (objfile_type_data): Change type.
8127 (objfile_type, _initialize_gdbtypes): Update.
8128
8129 2019-05-08 Tom Tromey <tom@tromey.com>
8130
8131 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
8132 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
8133 (_initialize_dwarf2_frame): Update.
8134
8135 2019-05-08 Tom Tromey <tom@tromey.com>
8136
8137 * objc-lang.c (objc_objfile_data): Change type.
8138 (find_methods): Update.
8139 (_initialize_objc_lang): Remove.
8140
8141 2019-05-08 Tom Tromey <tom@tromey.com>
8142
8143 * stabsread.c (rs6000_builtin_type_data): Change type.
8144 (rs6000_builtin_type, _initialize_stabsread): Update.
8145
8146 2019-05-08 Tom Tromey <tom@tromey.com>
8147
8148 * mips-tdep.c (mips_pdr_data): Remove.
8149 (_initialize_mips_tdep): Update.
8150
8151 2019-05-08 Tom Tromey <tom@tromey.com>
8152
8153 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
8154 (hppa_init_objfile_priv_data, read_unwind_info)
8155 (find_unwind_entry, _initialize_hppa_tdep): Update.
8156
8157 2019-05-08 Tom Tromey <tom@tromey.com>
8158
8159 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
8160 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
8161 on obstack.
8162 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
8163
8164 2019-05-08 Tom Tromey <tom@tromey.com>
8165
8166 * mdebugread.c (basic_type_data): Change type.
8167 (basic_type, _initialize_mdebugread): Update.
8168
8169 2019-05-08 Tom Tromey <tom@tromey.com>
8170
8171 * common/gdb_unique_ptr.h (struct noop_deleter): New.
8172
8173 2019-05-08 Tom Tromey <tom@tromey.com>
8174
8175 * nto-tdep.c (nto_inferior_data_reg): Change type.
8176 (nto_inferior_data): Update.
8177 (nto_inferior_data_cleanup, nto_new_inferior_data)
8178 (_initialize_nto_tdep): Remove.
8179 * nto-tdep.h (struct nto_inferior_data): Add initializers.
8180
8181 2019-05-08 Tom Tromey <tom@tromey.com>
8182
8183 * ada-lang.c (struct ada_inferior_data): Add initializers.
8184 (ada_inferior_data): Change type.
8185 (ada_inferior_data_cleanup): Remove.
8186 (get_ada_inferior_data, ada_inferior_exit)
8187 (struct ada_pspace_data): Add initializers, destructor.
8188 (ada_pspace_data_handle): Change type.
8189 (get_ada_pspace_data): Update.
8190 (ada_pspace_data_cleanup): Remove.
8191
8192 2019-05-08 Tom Tromey <tom@tromey.com>
8193
8194 * coffread.c (struct coff_symfile_info): Add initializers.
8195 (coff_objfile_data_key): Move lower. Change type.
8196 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
8197 Update.
8198 (coff_free_info): Remove.
8199
8200 2019-05-08 Tom Tromey <tom@tromey.com>
8201
8202 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
8203 (fbsd_pspace_data_handle): Move lower. Change type.
8204 (get_fbsd_pspace_data): Update.
8205 (fbsd_pspace_data_cleanup): Remove.
8206 (_initialize_fbsd_tdep): Update.
8207
8208 2019-05-08 Tom Tromey <tom@tromey.com>
8209
8210 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
8211 (get_ada_tasks_pspace_data): Update.
8212 (ada_tasks_pspace_data_cleanup): Remove.
8213 (_initialize_tasks): Update.
8214 (ada_tasks_inferior_data_handle): Change type.
8215 (get_ada_tasks_inferior_data): Update.
8216 (ada_tasks_inferior_data_cleanup): Remove.
8217 (struct ada_tasks_pspace_data): Add initializers.
8218
8219 2019-05-08 Tom Tromey <tom@tromey.com>
8220
8221 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
8222 * symfile-debug.c (debug_sym_get_probes): Change type.
8223 * stap-probe.c (handle_stap_probe):
8224 (stap_static_probe_ops::get_probes): Change type.
8225 * probe.h (class static_probe_ops) <get_probes>: Change type.
8226 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
8227 (parse_probes_in_pspace): Update.
8228 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
8229 Update.
8230 (any_static_probe_ops::get_probes): Change type.
8231 * elfread.c (elfread_data): New typedef.
8232 (probe_key): Change type.
8233 (elf_get_probes): Likewise. Update.
8234 (probe_key_free): Remove.
8235 (_initialize_elfread): Update.
8236 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
8237 Change type.
8238 (dtrace_process_dof_probe, dtrace_process_dof)
8239 (dtrace_static_probe_ops::get_probe): Change type.
8240
8241 2019-05-08 Tom Tromey <tom@tromey.com>
8242
8243 * xcoffread.c (struct xcoff_symfile_info): Rename from
8244 coff_symfile_info. Add initializers.
8245 (xcoff_objfile_data_key): Move lower. Change type.
8246 (XCOFF_DATA): Rewrite.
8247 (xcoff_free_info): Remove.
8248 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
8249 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
8250 (xcoff_initial_scan): Update.
8251
8252 2019-05-08 Tom Tromey <tom@tromey.com>
8253
8254 * solib-svr4.c (struct svr4_info): Add initializers and
8255 destructor.
8256 <probes_table>: Now an htab_up.
8257 (solib_svr4_pspace_data): Change type.
8258 (free_probes_table): Simplify.
8259 (~svr4_info): Rename from svr4_pspace_data_cleanup.
8260 (get_svr4_info, probes_table_htab_remove_objfile_probes)
8261 (probes_table_remove_objfile_probes, register_solib_event_probe)
8262 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
8263 (_initialize_svr4_solib): Update.
8264
8265 2019-05-08 Tom Tromey <tom@tromey.com>
8266
8267 * remote.c (remote_pspace_data): Change type.
8268 (remote_pspace_data_cleanup): Remove.
8269 (get_remote_exec_file, set_pspace_remote_exec_file)
8270 (_initialize_remote): Update.
8271
8272 2019-05-08 Tom Tromey <tom@tromey.com>
8273
8274 * breakpoint.c (breakpoint_objfile_key): Change type.
8275 (get_breakpoint_objfile_data): Update.
8276 (free_breakpoint_objfile_data): Remove.
8277 (_initialize_breakpoint): Update.
8278
8279 2019-05-08 Tom Tromey <tom@tromey.com>
8280
8281 * linux-tdep.c (struct linux_info): Add initializers.
8282 (linux_inferior_data): Move. Change type.
8283 (invalidate_linux_cache_inf): Update.
8284 (linux_inferior_data_cleanup): Remove.
8285 (get_linux_inferior_data, _initialize_linux_tdep): Update.
8286
8287 2019-05-08 Tom Tromey <tom@tromey.com>
8288
8289 * auxv.c (auxv_inferior_data): Move. Change type.
8290 (auxv_inferior_data_cleanup): Remove.
8291 (invalidate_auxv_cache_inf): Rewrite.
8292 (get_auxv_inferior_data, _initialize_auxv): Update.
8293
8294 2019-05-08 Tom Tromey <tom@tromey.com>
8295
8296 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
8297 (symfile_debug_objfile_data_key): Change type.
8298 (symfile_debug_installed, debug_qf_has_symbols)
8299 (debug_qf_find_last_source_symtab)
8300 (debug_qf_forget_cached_source_info)
8301 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
8302 (debug_qf_print_stats, debug_qf_dump)
8303 (debug_qf_expand_symtabs_for_function)
8304 (debug_qf_expand_all_symtabs)
8305 (debug_qf_expand_symtabs_with_fullname)
8306 (debug_qf_map_matching_symbols)
8307 (debug_qf_expand_symtabs_matching)
8308 (debug_qf_find_pc_sect_compunit_symtab)
8309 (debug_qf_map_symbol_filenames)
8310 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
8311 (debug_sym_new_init, debug_sym_init, debug_sym_read)
8312 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
8313 (debug_sym_read_linetable, debug_sym_relocate): Update.
8314 (symfile_debug_free_objfile): Remove.
8315 (install_symfile_debug_logging, _initialize_symfile_debug):
8316 Update.
8317
8318 2019-05-08 Tom Tromey <tom@tromey.com>
8319
8320 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
8321 allocate_on_obstack.
8322 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
8323 (get_dwarf2_per_objfile): Update.
8324 (set_dwarf2_per_objfile): Remove.
8325 (dwarf2_has_info, dwarf2_get_section_info): Update.
8326 (dwarf2_free_objfile): Remove.
8327 (_initialize_dwarf2_read): Update.
8328
8329 2019-05-08 Tom Tromey <tom@tromey.com>
8330
8331 * auto-load.c (struct auto_load_pspace_info): Add destructor and
8332 initializers.
8333 <unsupported_script_warning_printed,
8334 script_not_found_warning_printed>: Now bool.
8335 (auto_load_pspace_data): Change type.
8336 (~auto_load_pspace_info): Rename from
8337 auto_load_pspace_data_cleanup.
8338 (get_auto_load_pspace_data, init_loaded_scripts_info)
8339 (clear_section_scripts, maybe_print_unsupported_script_warning)
8340 (maybe_print_script_not_found_warning, _initialize_auto_load):
8341 Update.
8342
8343 2019-05-08 Tom Tromey <tom@tromey.com>
8344
8345 * objfiles.c (objfile_pspace_info): Add destructor and
8346 initializers.
8347 (objfiles_pspace_data): Change type.
8348 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
8349 (get_objfile_pspace_data): Update.
8350 (objfiles_bfd_data): Change type.
8351 (get_objfile_bfd_data): Update.
8352 (objfile_bfd_data_free, _initialize_objfiles): Remove.
8353
8354 2019-05-08 Tom Tromey <tom@tromey.com>
8355
8356 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
8357 Change type.
8358 (get_catch_syscall_inferior_data): Update.
8359 (catch_syscall_inferior_data_cleanup): Remove.
8360 (_initialize_break_catch_syscall): Update.
8361
8362 2019-05-08 Tom Tromey <tom@tromey.com>
8363
8364 * inflow.c (struct terminal_info): Add destructor and
8365 initializers.
8366 (inflow_inferior_data): Change type.
8367 (~terminal_info): Rename from inflow_inferior_data_cleanup.
8368 (get_inflow_inferior_data, inflow_inferior_exit)
8369 (swap_terminal_info, _initialize_inflow): Update.
8370
8371 2019-05-08 Tom Tromey <tom@tromey.com>
8372
8373 * target-dcache.c (target_dcache_cleanup): Remove.
8374 (target_dcache_aspace_key): Change type.
8375 (target_dcache_init_p, target_dcache_invalidate)
8376 (target_dcache_get, target_dcache_get_or_init)
8377 (_initialize_target_dcache): Update.
8378 * dcache.h (struct dcache_deleter): New.
8379
8380 2019-05-08 Tom Tromey <tom@tromey.com>
8381
8382 * symtab.c (struct symbol_cache): Add destructor and
8383 initializers.
8384 (symbol_cache_key): Move. Change type.
8385 (make_symbol_cache, free_symbol_cache): Remove.
8386 (get_symbol_cache): Update.
8387 (symbol_cache_cleanup): Remove.
8388 (ALL_PSPACES, symbol_cache_flush)
8389 (maintenance_print_symbol_cache)
8390 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
8391 Update.
8392
8393 2019-05-08 Tom Tromey <tom@tromey.com>
8394
8395 * symtab.c (struct main_info): Add destructor and initializers.
8396 (main_progspace_key): Move. Change type.
8397 (get_main_info): Update.
8398 (main_info_cleanup): Remove.
8399 (_initialize_symtab): Update.
8400
8401 2019-05-08 Tom Tromey <tom@tromey.com>
8402
8403 * registry.h (DECLARE_REGISTRY): Define the _key class.
8404
8405 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
8406
8407 * NEWS: Merge two 'New commands' sections.
8408
8409 2019-05-08 Joel Brobecker <brobecker@adacore.com>
8410
8411 * ada-valprint.c (ada_val_print_gnat_array): Remove language
8412 parameter and use Ada language definition instead.
8413 (ada_val_print_ptr): Remove unused language parameter.
8414 (ada_val_print_num): Remove language parameter and use Ada language
8415 definition instead.
8416 (ada_val_print_enum, ada_val_print_flt): Remove unused language
8417 parameter.
8418 (ada_val_print_struct_union, ada_val_print_ref): Remove language
8419 parameter and use Ada language definition instead.
8420 (ada_val_print_1): Update all ada_val_print_xxx calls.
8421 Remove language parameter.
8422 (ada_val_print): Update ada_val_print_1 call.
8423
8424 2019-05-08 Tom Tromey <tromey@adacore.com>
8425
8426 * remote.c (remote_hw_watchpoint_limit)
8427 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
8428 Now static.
8429
8430 2019-05-08 Tom Tromey <tromey@adacore.com>
8431
8432 * maint.c (_initialize_maint_cmds): Move initialization code to
8433 remote.c.
8434 (watchdog, show_watchdog): Move to remote.c.
8435 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
8436 "watchdog" static.
8437 (_initialize_remote): Move initialization code from maint.c.
8438 * defs.h (watchdog): Don't declare.
8439
8440 2019-05-08 Tom Tromey <tromey@adacore.com>
8441
8442 * tui/tui-interp.c: Include main.h.
8443 * interps.c: Include main.h.
8444 * main.h (interpreter_p): Declare.
8445 * defs.h (interpreter_p): Don't declare.
8446
8447 2019-05-08 Tom Tromey <tromey@adacore.com>
8448
8449 * dwarf2loc.c: Include dwarf2read.h.
8450 * defs.h (read_unsigned_leb128): Don't declare.
8451 * dwarf2read.h (read_unsigned_leb128): Declare.
8452
8453 2019-05-08 Tom Tromey <tromey@adacore.com>
8454
8455 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
8456 method.
8457
8458 2019-05-08 Tom Tromey <tromey@adacore.com>
8459
8460 * utils.c (fputs_maybe_filtered): Reset style after paging, even
8461 when no wrap column is set.
8462
8463 2019-05-08 Tom Tromey <tromey@adacore.com>
8464
8465 * c-lang.c (c_get_string): Handle non-C-style arrays.
8466
8467 2019-05-08 Tom Tromey <tromey@adacore.com>
8468
8469 * typeprint.c (print_offset_data::update): Print the bit offset,
8470 not the number of bits remaining.
8471
8472 2019-05-08 Tom Tromey <tromey@adacore.com>
8473
8474 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
8475 padding at end of comment.
8476
8477 2019-05-08 Tom Tromey <tromey@adacore.com>
8478
8479 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
8480 Compare main types.
8481
8482 2019-05-06 Tom Tromey <tom@tromey.com>
8483
8484 * common/scoped_mmap.c: Include common-defs.h.
8485 * common/scoped_mmap.h: Don't include config.h.
8486
8487 2019-05-04 Tom Tromey <tom@tromey.com>
8488
8489 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
8490 (struct aarch64_call_info): Add initializers.
8491 <si>: Now a std::vector.
8492 (pass_on_stack, aarch64_push_dummy_call): Update.
8493
8494 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
8495 Tom Tromey <tom@tromey.com>
8496
8497 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
8498 (ppc_threads): Now a std::vector. Now static.
8499 (hwdebug_find_thread_points_by_tid)
8500 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
8501 Update.
8502
8503 2019-05-04 Tom Tromey <tom@tromey.com>
8504
8505 * arc-tdep.c (arc_tdesc_init): Return bool.
8506
8507 2019-05-04 Tom Tromey <tom@tromey.com>
8508
8509 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
8510 Use gdb_assert_not_reached.
8511
8512 2019-05-04 Tom Tromey <tom@tromey.com>
8513
8514 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
8515 "false".
8516
8517 2019-05-04 Tom Tromey <tom@tromey.com>
8518
8519 * arc-tdep.c (arc_tdesc_init): Use bool.
8520
8521 2019-05-04 Tom Tromey <tom@tromey.com>
8522
8523 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
8524
8525 2019-05-04 Tom Tromey <tom@tromey.com>
8526
8527 * cli/cli-cmds.c (valid_command_p): Return bool.
8528
8529 2019-05-04 Tom Tromey <tom@tromey.com>
8530
8531 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
8532 * command.h (valid_user_defined_cmd_name_p): Channge return type.
8533
8534 2019-05-04 Raul Tambre <raul@tambre.ee>
8535
8536 * python/lib/gdb/prompt.py (_ExtendedPrompt)
8537 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
8538 operator for comparison.
8539
8540 2019-05-04 Tom Tromey <tom@tromey.com>
8541
8542 * psymtab.c (psymbol_name_matches, match_partial_symbol)
8543 (lookup_partial_symbol, print_partial_symbols)
8544 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
8545 (psymbol_compare): Update.
8546 (add_psymbol_to_bcache): Clear the entire psymbol.
8547 (maintenance_check_psymtabs): Update.
8548 * psympriv.h (struct partial_symbol): Don't derive from
8549 general_symbol_info.
8550 <obj_section, unrelocated_address, address,
8551 set_unrelocated_address>: Update.
8552 <ginfo>: New member.
8553 * dwarf-index-write.c (write_psymbols, debug_names::insert)
8554 (debug_names::write_psymbols): Update.
8555
8556 2019-05-04 Tom de Vries <tdevries@suse.de>
8557
8558 * contrib/cc-with-tweaks.sh: Support -n arg.
8559
8560 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8561
8562 * corelow.c (core_target::detach): Ensure frame cache and
8563 register caches are cleared.
8564 inferior.c (exit_inferior_1): Likewise.
8565
8566 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
8567 Tom Tromey <tom@tromey.com>
8568
8569 * dictionary.c (collate_pending_symbols_by_language): Remove
8570 "struct" from foreach.
8571 * symtab.c (lookup_global_symbol_from_objfile)
8572 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
8573 foreach.
8574 * ser-tcp.c (net_open): Remove "struct" from foreach.
8575 * objfiles.c (objfile_relocate, objfile_rebase)
8576 (objfile_has_symbols): Remove "struct" from foreach.
8577 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
8578 from foreach.
8579 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
8580 foreach.
8581 * darwin-nat.c (thread_info_from_private_thread_info): Remove
8582 "struct" from foreach.
8583 * ada-lang.c (create_excep_cond_exprs)
8584 (ada_exception_catchpoint_cond_string): Remove "struct" from
8585 foreach.
8586
8587 2019-05-03 Tom Tromey <tromey@adacore.com>
8588
8589 * ada-exp.y (convert_char_literal): Check suffix of each
8590 enumerator.
8591
8592 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
8593
8594 PR ada/21406:
8595 * ada-exp.y (yywrap): Don't define.
8596 * ada-lex.l (%option): Add noyywrap
8597 (yywrap): Remove.
8598
8599 2019-05-03 Eli Zaretskii <eliz@gnu.org>
8600
8601 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
8602 _WIN32_WINNT to the XP level, unless already defined to a higher
8603 level.
8604
8605 * unittests/parse-connection-spec-selftests.c:
8606 * ser-tcp.c:
8607 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
8608 override.
8609
8610 * symfile.c (find_separate_debug_file): Remove colon from the
8611 drive spec of DOS/Windows file names of the target, so that the
8612 file name produced from DEBUGDIR and the target's directory will
8613 be valid on DOS/Windows systems.
8614
8615 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
8616
8617 * rust-lang.c (val_print_struct): Handle printing structures
8618 containing strings.
8619
8620 2019-05-02 Tom Tromey <tromey@adacore.com>
8621
8622 * valarith.c (_initialize_valarith): Remove.
8623
8624 2019-05-01 Tom Tromey <tromey@adacore.com>
8625
8626 * ada-lang.c (ada_value_primitive_field): Treat more fields as
8627 bitfields.
8628
8629 2019-05-01 Tom Tromey <tromey@adacore.com>
8630
8631 * ada-lang.c (ada_value_assign): Correctly compute starting offset
8632 for big-endian copies.
8633
8634 2019-04-30 Ali Tamur <tamur@google.com>
8635 * gdb/dwarf2read.c (read_3_bytes): New declaration.
8636 (read_attribute_value): Added DW_FORM_strx1-4 cases.
8637 (read_3_bytes): New function.
8638
8639 2019-04-30 Joel Brobecker <brobecker@adacore.com>
8640
8641 * windows-nat.c (main_thread_id): Delete.
8642 (handle_output_debug_string): Replace main_thread_id by
8643 current_event.dwThreadId.
8644 (fake_create_process): Likewise.
8645 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
8646 Do not set main_thread_id.
8647 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
8648 current_event.dwThreadId.
8649 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
8650
8651 2019-04-30 Joel Brobecker <brobecker@adacore.com>
8652
8653 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
8654 Use current_event.dwThreadId instead of main_thread_id.
8655
8656 2019-04-30 Tom Tromey <tromey@adacore.com>
8657
8658 * ada-lang.c (ada_lookup_simple_minsyms): New function.
8659 (create_excep_cond_exprs): Iterate over program spaces.
8660 (ada_exception_catchpoint_cond_string): Examine all minimal
8661 symbols for exception types.
8662
8663 2019-04-30 Tom Tromey <tromey@adacore.com>
8664
8665 PR c++/24470:
8666 * dwarf2read.c (process_structure_scope): Handle case where type
8667 has template parameters but no symbol was created.
8668
8669 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8670 Chris January <chris.january@arm.com>
8671
8672 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
8673 qualifier.
8674 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
8675
8676 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8677
8678 * f-typeprint.c (f_print_type): Update rules for printing
8679 whitespace.
8680 (f_type_print_varspec_suffix): Likewise.
8681
8682 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8683 Chris January <chris.january@arm.com>
8684
8685 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
8686 function arguments.
8687
8688 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8689
8690 * f-lang.c (build_fortran_types): Change name of void type to
8691 lower case.
8692 * f-typeprint.c (f_type_print_base): Print the name of the void
8693 type, rather than a fixed string.
8694 * f-valprint.c (f_decorations): Use lower case void string.
8695
8696 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8697 Chris January <chris.january@arm.com>
8698
8699 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
8700 types for Fortran.
8701
8702 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8703 Chris January <chris.january@arm.com>
8704 David Lecomber <david.lecomber@arm.com>
8705
8706 * f-exp.y (BINOP_INTRINSIC): New token.
8707 (exp): New parser rule handling BINOP_INTRINSIC.
8708 (f77_keywords): Add new builtin procedures.
8709 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
8710 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
8711 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
8712 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
8713 (print_unop_subexp_f): New function.
8714 (print_binop_subexp_f): New function.
8715 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
8716 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
8717 (dump_subexp_body_f): Likewise.
8718 (operator_check_f): Likewise.
8719 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
8720 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
8721
8722 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8723
8724 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
8725 UNOP_KIND.
8726 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
8727 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
8728 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
8729 (operator_length_f): New fuction.
8730 (print_subexp_f): New function.
8731 (op_name_f): New function.
8732 (dump_subexp_body_f): New function.
8733 (operator_check_f): New function.
8734 (exp_descriptor_f): Replace standard expression handling functions
8735 with new functions.
8736 * gdb/fortran-operator.def: New file.
8737 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
8738 * gdb/std-operator.def: Remove UNOP_KIND.
8739
8740 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8741
8742 * std-operator.def: Remove unbalanced, stray double quote
8743 character.
8744
8745 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
8746 Chris January <chris.january@arm.com>
8747 Daniel Everett <daniel.everett@arm.com>
8748 Nick Forrington <nick.forrington@arm.com>
8749 Richard Bunt <richard.bunt@arm.com>
8750
8751 * cp-valprint.c (cp_print_value_fields): Allow an additional level
8752 of depth when printing anonymous structs or unions.
8753 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
8754 Don't print either the top-level value, or the children if the
8755 max-depth is exceeded.
8756 (ppscm_print_children): When printing the key of a map, allow one
8757 extra level of depth.
8758 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
8759 print either the top-level value, or the children if the max-depth
8760 is exceeded.
8761 (print_children): When printing the key of a map, allow one extra
8762 level of depth.
8763 * python/py-value.c (valpy_format_string): Add max_depth keyword.
8764 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
8765 (user_print_options): Initialise max_depth field.
8766 (val_print_scalar_or_string_type_p): New function.
8767 (val_print): Check to see if the max depth has been reached.
8768 (val_print_check_max_depth): Define new function.
8769 (show_print_max_depth): New function.
8770 (_initialize_valprint): Add 'print max-depth' option.
8771 * valprint.h (struct value_print_options) <max_depth>: New field.
8772 (val_print_check_max_depth): Declare new function.
8773 * NEWS: Document new feature.
8774
8775 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
8776
8777 * ada-lang.c (ada_language_defn): Initialise new field.
8778 * c-lang.c (c_is_string_type_p): New function.
8779 (c_language_defn): Initialise new field.
8780 (cplus_language_defn): Initialise new field.
8781 (asm_language_defn): Initialise new field.
8782 (minimal_language_defn): Initialise new field.
8783 * c-lang.h (c_is_string_type_p): Declare new function.
8784 * d-lang.c (d_language_defn): Initialise new field.
8785 * f-lang.c (f_is_string_type_p): New function.
8786 (f_language_defn): Initialise new field.
8787 * go-lang.c (go_is_string_type_p): New function.
8788 (go_language_defn): Initialise new field.
8789 * language.c (default_is_string_type_p): New function.
8790 (unknown_language_defn): Initialise new field.
8791 (auto_language_defn): Initialise new field.
8792 * language.h (struct language_defn) <la_is_string_type_p>: New
8793 member variable.
8794 (default_is_string_type_p): Declare new function.
8795 * m2-lang.c (m2_language_defn): Initialise new field.
8796 * objc-lang.c (objc_language_defn): Initialise new field.
8797 * opencl-lang.c (opencl_language_defn): Initialise new field.
8798 * p-lang.c (pascal_is_string_type_p): New function.
8799 (pascal_language_defn): Initialise new field.
8800 * rust-lang.c (rust_is_string_type_p): New function.
8801 (rust_language_defn): Initialise new field.
8802
8803 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
8804
8805 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
8806 New field.
8807 * ada-lang.c (ada_language_defn): Initialise new field.
8808 * c-lang.c (c_language_defn): Likewise.
8809 (cplus_language_defn): Likewise.
8810 (asm_language_defn): Likewise.
8811 (minimal_language_defn): Likewise.
8812 * d-lang.c (d_language_defn): Likewise.
8813 * f-lang.c (f_language_defn): Likewise.
8814 * go-lang.c (go_language_defn): Likewise.
8815 * language.c (unknown_language_defn): Likewise.
8816 (auto_language_defn): Likewise.
8817 * m2-lang.c (m2_language_defn): Likewise.
8818 * objc-lang.c (objc_language_defn): Likewise.
8819 * opencl-lang.c (opencl_language_defn): Likewise.
8820 * p-lang.c (pascal_language_defn): Likewise.
8821 * rust-lang.c (rust_language_defn): Likewise.
8822
8823 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
8824
8825 * ada-lang.c (ada_is_character_type): Change return type to bool.
8826 (ada_is_string_type): Likewise.
8827 * ada-lang.h (ada_is_character_type): Update declaration
8828 (ada_is_string_type): Likewise.
8829
8830 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8831
8832 Support style in 'frame|thread apply'
8833
8834 * gdbcmd.h (execute_command_to_string): New term_out parameter.
8835 * record.c (record_start, record_stop): Update callers of
8836 execute_command_to_string with false.
8837 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
8838 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
8839 methods.
8840 (class string_file): New constructor with term_out parameter.
8841 Override methods term_out and can_emit_style_escape. New member
8842 term_out.
8843 (class stdio_file): Override can_emit_style_escape.
8844 (class tee_file): Override term_out and can_emit_style_escape.
8845 * utils.h (can_emit_style_escape): Remove.
8846 * utils.c (can_emit_style_escape): Likewise.
8847 Update all callers of can_emit_style_escape (SOMESTREAM) to
8848 SOMESTREAM->can_emit_style_escape.
8849 * source-cache.c (source_cache::get_source_lines): Likewise.
8850 * stack.c (frame_apply_command_count): Call execute_command_to_string
8851 passing the term_out characteristic of the current gdb_stdout.
8852 * thread.c (thr_try_catch_cmd): Likewise.
8853 * top.c (execute_command_to_string): pass term_out parameter
8854 to construct the string_file for the command output.
8855 * ui-file.c (term_cli_styling): New function (most code moved
8856 from utils.c can_emit_style_escape).
8857 (string_file::string_file, string_file::can_emit_style_escape,
8858 stdio_file::can_emit_style_escape, tee_file::term_out,
8859 tee_file::can_emit_style_escape): New functions.
8860
8861 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8862
8863 * NEWS: Mention the new set|show may-call-functions.
8864 * infcall.c (may_call_functions_p): New variable.
8865 (show_may_call_functions_p): New function.
8866 (call_function_by_hand_dummy): Throws an error if not
8867 may-call-functions.
8868 (_initialize_infcall): Call add_setshow_boolean_cmd for
8869 may-call-functions.
8870
8871 2019-04-25 Keith Seitz <keiths@redhat.com>
8872
8873 PR c++/24367
8874 * cp-support.c (inspect_type): Don't attempt substitutions
8875 of symbol with the same name.
8876
8877 2019-04-25 Tom Tromey <tromey@adacore.com>
8878
8879 PR gdb/24475:
8880 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
8881 static.
8882
8883 2019-04-25 Tom Tromey <tromey@adacore.com>
8884
8885 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
8886 rvalue reference.
8887 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
8888 (gdb_xml_parser::parse): Use std::move.
8889 * python/python-internal.h (gdbpy_convert_exception): Take a const
8890 reference.
8891 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
8892 std::move.
8893 * python/py-utils.c (gdbpy_convert_exception): Take a const
8894 reference.
8895 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
8896 Use std::move.
8897 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
8898 Use std::move.
8899 * mi/mi-main.c (mi_print_exception): Take a const reference.
8900 * main.c (handle_command_errors): Take a const reference.
8901 * linespec.c (parse_linespec): Use std::move.
8902 * infcall.c (run_inferior_call): Use std::move.
8903 (call_function_by_hand_dummy): Use std::move.
8904 * exec.c (try_open_exec_file): Use std::move.
8905 * exceptions.h (exception_print, exception_fprintf)
8906 (exception_print_same): Update.
8907 * exceptions.c (print_exception, exception_print)
8908 (exception_fprintf, exception_print_same): Change parameters to
8909 const reference.
8910 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
8911 * common/new-op.c: Use std::move.
8912 * common/common-exceptions.h (struct gdb_exception): Add move
8913 constructor.
8914 (struct gdb_exception_error, struct gdb_exception_quit, struct
8915 gdb_quit_bad_alloc): Change constructor to move constructor.
8916 (throw_exception): Change parameter to rvalue reference.
8917 * common/common-exceptions.c (throw_exception): Take rvalue
8918 reference.
8919 * cli/cli-interp.c (safe_execute_command): Use std::move.
8920 * breakpoint.c (insert_bp_location, location_to_sals): Use
8921 std::move.
8922
8923 2019-04-25 Tom Tromey <tromey@adacore.com>
8924
8925 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
8926 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
8927 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
8928 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
8929 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
8930 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
8931 guile/scm-value.c: Use unpack.
8932 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
8933 gdbscm_gdb_exception.
8934 (gdbscm_throw_gdb_exception): Likewise.
8935 (struct gdbscm_gdb_exception): New.
8936 (unpack): New function.
8937 (gdbscm_wrap): Use unpack.
8938
8939 2019-04-25 Tom Tromey <tromey@adacore.com>
8940
8941 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
8942 (gdb_rl_callback_handler): Use std::move.
8943 * common/common-exceptions.h (struct gdb_exception): Add move
8944 assignment operator.
8945 (throw_exception_sjlj): Change "exception" to const reference.
8946 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
8947 (throw_exception_sjlj): Change "exception" to const reference.
8948
8949 2019-04-25 Tom Tromey <tromey@adacore.com>
8950
8951 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
8952 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
8953 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
8954 Update.
8955 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
8956 Update.
8957 * mi/mi-interp.c (mi_interp::exec): Update.
8958 * linespec.c (parse_linespec): Update.
8959 * infcall.c (run_inferior_call): Update.
8960 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
8961 * guile/scm-symbol.c (gdbscm_lookup_symbol)
8962 (gdbscm_lookup_global_symbol): Update.
8963 * guile/scm-param.c (gdbscm_parameter_value): Update.
8964 * guile/scm-frame.c (gdbscm_frame_read_register)
8965 (gdbscm_frame_read_var): Update.
8966 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
8967 * exec.c (try_open_exec_file): Update.
8968 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
8969 (gdb_rl_callback_handler): Update.
8970 * common/common-exceptions.h (exception_none): Don't declare.
8971 * common/common-exceptions.c (exception_none): Don't define.
8972 (struct catcher) <exception>: Update.
8973 * cli/cli-interp.c (safe_execute_command): Update.
8974 * breakpoint.c (insert_bp_location, location_to_sals): Update.
8975
8976 2019-04-25 Ali Tamur <tamur@google.com>
8977
8978 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
8979 (read_attribute_value): Likewise.
8980 (dwarf2_read_addr_index): Update comment.
8981 (read_str_index): Add DW_FORM_strx.
8982 (dwarf2_string_attr): Likewise.
8983 (dwarf2_const_value_attr): Likewise.
8984 (dump_die_shallow): Likewise.
8985 (dwarf2_fetch_constant_bytes): Likewise.
8986 (skip_form_bytes): Likewise.
8987 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
8988
8989 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
8990
8991 PR corefiles/11608
8992 PR corefiles/18187
8993 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
8994 OFFSET. Verify if current mapping contains an ELF header.
8995 (linux_find_memory_regions_full): Adjust call to
8996 dump_mapping_p.
8997
8998 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
8999 Kang Li <kanglictf@gmail.com>
9000
9001 PR gdb/21600
9002
9003 * dwarf2-frame.c (read_initial_length): Be consistent about using
9004 unsigned representation of length.
9005 (decode_frame_entry_1): Likewise. Check for wraparound of
9006 end pointer as well as buffer overflow.
9007
9008 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
9009
9010 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
9011 "vq".
9012
9013 2019-04-24 Tom Tromey <tromey@adacore.com>
9014
9015 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
9016
9017 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9018
9019 * s12z-tdep.c (s12z_unwind_pc): Delete.
9020 (s12z_unwind_sp): Delete.
9021 (s12z_gdbarch_init): Don't register deleted functions with
9022 gdbarch.
9023
9024 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9025
9026 * rl78-tdep.c (rl78_unwind_sp): Delete.
9027 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
9028
9029 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9030
9031 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
9032 (xstormy16_unwind_pc): Delete.
9033 (xstormy16_dummy_id): Delete.
9034 (xstormy16_gdbarch_init): Don't register deleted functions with
9035 gdbarch.
9036
9037 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9038
9039 * vax-tdep.c (vax_unwind_pc): Delete.
9040 (vax_gdbarch_init): Don't register deleted function with gdbarch.
9041
9042 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9043
9044 * v850-tdep.c (v850_unwind_sp): Delete.
9045 (v850_unwind_pc): Delete.
9046 (v850_dummy_id): Delete.
9047 (v850_gdbarch_init): Don't register deleted functions with
9048 gdbarch.
9049
9050 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9051
9052 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
9053 (tilegx_unwind_pc): Delete.
9054 (tilegx_unwind_dummy_id): Delete.
9055 (tilegx_gdbarch_init): Don't register deleted functions with
9056 gdbarch.
9057
9058 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9059
9060 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
9061 (tic6x_dummy_id): Delete.
9062 (tic6x_gdbarch_init): Don't register deleted functions with
9063 gdbarch.
9064
9065 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9066
9067 * sparc-tdep.c (sparc_unwind_pc): Delete.
9068 (sparc32_gdbarch_init): Don't register deleted function with
9069 gdbarch.
9070
9071 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9072
9073 * sh-tdep.c (sh_unwind_sp): Delete.
9074 (sh_unwind_pc): Delete.
9075 (sh_dummy_id): Delete.
9076 (sh_gdbarch_init): Don't register deleted functions with
9077 gdbarch.
9078
9079 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9080
9081 * score-tdep.c (score_unwind_sp): Delete.
9082 (score_unwind_pc): Delete.
9083 (score_dummy_id): Delete.
9084 (score_gdbarch_init): Don't register deleted functions with
9085 gdbarch.
9086
9087 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9088
9089 * rx-tdep.c (rx_unwind_pc): Delete.
9090 (rx_unwind_sp): Delete.
9091 (rx_dummy_id): Delete.
9092 (rx_gdbarch_init): Don't register deleted functions with
9093 gdbarch. Update comment.
9094
9095 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9096
9097 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
9098 (rs6000_dummy_id): Delete.
9099 (rs6000_gdbarch_init): Don't register deleted functions with
9100 gdbarch.
9101
9102 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9103
9104 * or1k-tdep.c (or1k_dummy_id): Delete.
9105 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
9106
9107 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9108
9109 * nios2-tdep.c (nios2_dummy_id): Delete.
9110 (nios2_unwind_sp): Delete.
9111 (nios2_gdbarch_init): Don't register deleted functions with
9112 gdbarch.
9113
9114 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9115
9116 * nds32-tdep.c (nds32_dummy_id): Delete.
9117 (nds32_unwind_pc): Delete.
9118 (nds32_unwind_sp): Delete.
9119 (nds32_gdbarch_init): Don't register deleted functions with
9120 gdbarch.
9121
9122 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9123
9124 * msp430-tdep.c (msp430_unwind_pc): Delete.
9125 (msp430_unwind_sp): Delete.
9126 (msp430_dummy_id): Delete.
9127 (msp430_gdbarch_init): Don't register deleted functions with
9128 gdbarch.
9129
9130 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9131
9132 * moxie-tdep.c (moxie_unwind_sp): Delete.
9133 (moxie_unwind_pc): Delete.
9134 (moxie_dummy_id): Delete.
9135 (moxie_gdbarch_init): Don't register deleted functions with
9136 gdbarch.
9137
9138 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9139
9140 * mn10300-tdep.c (mn10300_dummy_id): Delete.
9141 (mn10300_unwind_pc): Delete.
9142 (mn10300_unwind_sp): Delete.
9143 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
9144 mn10300_unwind_sp.
9145 (mn10300_frame_unwind_init): Don't register deleted functions with
9146 gdbarch.
9147
9148 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9149
9150 * mep-tdep.c (mep_unwind_pc): Delete.
9151 (mep_unwind_sp): Delete.
9152 (mep_dummy_id): Delete.
9153 (mep_gdbarch_init): Don't register deleted functions with
9154 gdbarch.
9155
9156 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9157
9158 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
9159 (m68hc11_unwind_sp): Delete.
9160 (m68hc11_gdbarch_init): Don't register deleted functions with
9161 gdbarch.
9162
9163 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9164
9165 * m32r-tdep.c (m32r_unwind_sp): Delete.
9166 (m32r_unwind_pc): Delete.
9167 (m32r_dummy_id): Delete.
9168 (m32r_gdbarch_init): Don't register deleted functions with
9169 gdbarch.
9170
9171 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9172
9173 * m32c-tdep.c (m32c_unwind_pc): Delete.
9174 (m32c_unwind_sp): Delete.
9175 (m32c_dummy_id): Delete.
9176 (m32c_gdbarch_init): Don't register deleted functions with
9177 gdbarch.
9178
9179 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9180
9181 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
9182 (lm32_unwind_pc): Delete.
9183 (lm32_dummy_id): Delete.
9184 (lm32_gdbarch_init): Don't register deleted functions with
9185 gdbarch.
9186
9187 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9188
9189 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
9190 (iq2000_unwind_pc): Delete.
9191 (iq2000_dummy_id): Delete.
9192 (iq2000_gdbarch_init): Don't register deleted functions with
9193 gdbarch.
9194
9195 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9196
9197 * nds32-tdep.c (nds32_type_align): Delete.
9198 (nds32_push_dummy_call): Use type_align instead.
9199
9200 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9201
9202 * arm-tdep.c (arm_type_align): Only handle vector override case.
9203 (arm_push_dummy_call): Use type_align.
9204 (arm_gdbarch_init): Register arm_type_align gdbarch function.
9205
9206 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9207
9208 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
9209 case.
9210 (pass_on_stack): Use type_align.
9211 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
9212 function.
9213
9214 2019-04-23 Tom Tromey <tromey@adacore.com>
9215
9216 * dwarf2read.c (line_header::file_name_at): Remove unused
9217 overload.
9218
9219 2019-04-23 Tom de Vries <tdevries@suse.de>
9220
9221 PR gdb/24438
9222 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
9223 invocation.
9224
9225
9226 2019-03-27 Ali Tamur <tamur@google.com>
9227
9228 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
9229 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
9230 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
9231 (dwarf_expr_context::get_addr_index): Likewise
9232 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
9233 (symbol_needs_eval_context::get_addr_index): Likewise
9234 (disassemble_dwarf_expression): Add DW_OP_addrx
9235 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
9236 (read_cutu_die_from_dwo): Update comment
9237 (skip_one_die): Add DW_FORM_addrx
9238 (read_attribute_value): Likewise
9239 (var_decode_location): Add DW_OP_addrx
9240 (dwarf2_const_value_attr): Add DW_FORM_addrx
9241 (dump_die_shallow): Likewise
9242 (dwarf2_fetch_constant_bytes): Likewise
9243 (decode_locdesc): Add DW_OP_addrx
9244 (skip_form_bytes): Add DW_FORM_addrx
9245
9246 2019-04-22 Ali Tamur <tamur@google.com>
9247
9248 * MAINTAINERS (Write After Approval): Add self.
9249
9250 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
9251
9252 * solib-svr4.c (get_svr4_info): Add pspace parameter.
9253 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
9254 (open_symbol_file_object): Likewise.
9255 (svr4_default_sos): Add info parameter.
9256 (svr4_read_so_list): Likewise.
9257 (svr4_current_sos_direct): Adjust functions calls to pass down
9258 info.
9259 (svr4_current_sos_1): Add info parameter.
9260 (svr4_current_sos): Call get_svr4_info, pass info down to
9261 svr4_current_sos_1.
9262 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
9263 get_svr4_info.
9264 (svr4_in_dynsym_resolve_code): Pass current_program_space to
9265 get_svr4_info.
9266 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
9267 to get_svr4_info.
9268 (probes_table_remove_objfile_probes): Likewise.
9269 (register_solib_event_probe): Add info parameter.
9270 (solist_update_incremental): Pass info parameter down to
9271 svr4_read_so_list.
9272 (disable_probes_interface): Add info parameter.
9273 (svr4_handle_solib_event): Pass current_program_space to
9274 get_svr4_info. Adjust disable_probes_interface cleanup.
9275 (svr4_create_probe_breakpoints): Add info parameter, pass it
9276 down to register_solib_event_probe.
9277 (svr4_create_solib_event_breakpoints): Add info parameter,
9278 pass it down to svr4_create_probe_breakpoints.
9279 (enable_break): Pass info down to
9280 svr4_create_solib_event_breakpoints.
9281 (svr4_solib_create_inferior_hook): Pass current_program_space to
9282 get_svr4_info.
9283 (svr4_clear_solib): Likewise.
9284
9285 2019-04-22 Pedro Alves <palves@redhat.com>
9286
9287 * solib-svr4.c (svr4_free_objfile_observer): New.
9288 (probe_and_action::objfile): New field.
9289 (probes_table_htab_remove_objfile_probes)
9290 (probes_table_remove_objfile_probes): New functions.
9291 (register_solib_event_probe): Add 'objfile' parameter. Store it
9292 in the new probe_and_action. Don't store the probe in 'lookup'.
9293 (svr4_create_probe_breakpoints): Pass objfile to
9294 register_solib_event_probe.
9295 (_initialize_svr4_solib): Register a free_objfile observer.
9296
9297 2019-04-19 Tom Tromey <tom@tromey.com>
9298
9299 * common/queue.h: Remove.
9300
9301 2019-04-19 Tom Tromey <tom@tromey.com>
9302
9303 * event-loop.c: Don't include "common/queue.h".
9304
9305 2019-04-19 Tom Tromey <tom@tromey.com>
9306
9307 * remote.c (remote_target): Use delete.
9308 * remote-notif.h: Include <list>, not "common/queue.h".
9309 (notif_client_p): Remove typedef.
9310 (remote_notif_state): Add constructor, destructor, initializer.
9311 <notif_queue>: Now a std::list.
9312 (remote_notif_state_xfree): Don't declare.
9313 * remote-notif.c (remote_notif_process, handle_notification)
9314 (remote_notif_state_allocate): Update.
9315 (~remote_notif_state): Rename from remote_notif_state_xfree.
9316
9317 2019-04-19 Tom Tromey <tom@tromey.com>
9318
9319 * symfile.c (reread_symbols): Update.
9320 * objfiles.c (objfile_register_static_link)
9321 (objfile_lookup_static_link): Update
9322 (~objfile) Don't delete static_links.
9323 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
9324
9325 2019-04-19 Tom Tromey <tom@tromey.com>
9326
9327 * type-stack.h (struct type_stack) <insert>: Constify string.
9328 * type-stack.c (type_stack::insert): Constify string.
9329 * gdbtypes.h (lookup_template_type): Update.
9330 (address_space_name_to_int): Update.
9331 * gdbtypes.c (address_space_name_to_int): Make space_identifier
9332 const.
9333 (lookup_template_type): Make name const.
9334 * c-exp.y: Update rules.
9335 (lex_one_token, classify_name, classify_inner_name)
9336 (c_print_token): Update.
9337 * p-exp.y: Update rules.
9338 (yylex): Update.
9339 * f-exp.y: Update rules.
9340 (yylex): Update.
9341 * d-exp.y: Update rules.
9342 (lex_one_token, classify_name, classify_inner_name): Update.
9343 * parse.c (write_dollar_variable, copy_name): Return std::string.
9344 * parser-defs.h (copy_name): Change return type.
9345 * m2-exp.y: Update rules.
9346 (yylex): Update.
9347 * go-exp.y (lex_one_token): Update.
9348 Update rules.
9349 (classify_unsafe_function, classify_packaged_name)
9350 (classify_name, yylex): Update.
9351
9352 2019-04-19 Sergei Trofimovich <siarheit@google.com>
9353
9354 * configure.ac: add --enable-source-highlight switch.
9355 * configure: Regenerate.
9356 * top.c (print_gdb_version): plumb --enable-source-highlight
9357 status to "show configuration".
9358
9359 2019-04-19 Tom Tromey <tromey@adacore.com>
9360
9361 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
9362 Check ADA_TYPE_P.
9363 (empty_record, ada_template_to_fixed_record_type_1)
9364 (template_to_static_fixed_type)
9365 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
9366 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
9367 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
9368 macros.
9369
9370 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
9371
9372 PR symtab/24423:
9373 * source.c (print_source_lines_base): Advance "iter" when a
9374 control character is seen.
9375
9376 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9377
9378 * inferior.h (struct infcall_suspend_state_deleter):
9379 Catch exception in destructor to avoid crash.
9380
9381 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9382
9383 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
9384 close to the add_com "shell".
9385
9386 2019-04-18 Tom Tromey <tromey@adacore.com>
9387
9388 * process-stratum-target.h (class process_stratum_target)
9389 <stratum>: Add "final".
9390
9391 2019-04-17 Tom Tromey <tromey@adacore.com>
9392
9393 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
9394 against nullptr before use.
9395
9396 2019-04-17 Alan Hayward <alan.hayward@arm.com>
9397
9398 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
9399
9400 2019-04-17 Jim Wilson <jimw@sifive.com>
9401 Andrew Burgess <andrew.burgess@embecosm.com>
9402
9403 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
9404 code read might fail, assume 4-byte breakpoint in that case.
9405
9406 2019-04-15 Leszek Swirski <leszeks@google.com>
9407
9408 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
9409 rather than a hand-rolled POD check when checking for forced MEMORY
9410 classification.
9411
9412 2019-04-15 Alan Hayward <alan.hayward@arm.com>
9413
9414 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
9415 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
9416 function.
9417 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
9418 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
9419 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
9420 declaration.
9421
9422 2019-04-15 Alan Hayward <alan.hayward@arm.com>
9423
9424 * aarch64-linux-nat.c
9425 (aarch64_linux_nat_target::thread_architecture): Add override.
9426 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
9427 each VQ.
9428
9429 2019-04-15 Alan Hayward <alan.hayward@arm.com>
9430
9431 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
9432
9433 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
9434
9435 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
9436 target types of size 96-bits, add some additional comments, and
9437 check that the builtin type we found was the correct size.
9438
9439 2019-04-12 Eli Zaretskii <eliz@gnu.org>
9440
9441 * utils.c (prompt_for_continue): Don't restore the styling at the
9442 end, as applied_style has the wrong value. This fixes styling in
9443 long lists of file names that are interrupted by the "Continue?"
9444 prompt.
9445
9446 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
9447
9448 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
9449 * c-lang.c (c_language_defn): Likewise.
9450 (cplus_language_defn): Likewise.
9451 (asm_language_defn): Likewise.
9452 (minimal_language_defn): Likewise.
9453 * d-lang.c (d_language_defn): Likewise.
9454 * f-lang.c (f_language_defn): Likewise.
9455 * go-lang.c (go_language_defn): Likewise.
9456 * language.c (unknown_language_defn): Likewise.
9457 (auto_language_defn): Likewise.
9458 * language.h (struct language_defn): Remove la_magic field.
9459 (LANG_MAGIC): Delete.
9460 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
9461 * objc-lang.c (objc_language_defn): Likewise.
9462 * opencl-lang.c (opencl_language_defn): Likewise.
9463 * p-lang.c (pascal_language_defn): Likewise.
9464 * rust-lang.c (rust_language_defn): Likewise.
9465
9466 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
9467
9468 * riscv-tdep.c (riscv_type_align): New function.
9469 (riscv_type_alignment): Delete.
9470 (riscv_arg_location): Use 'type_align'.
9471 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
9472
9473 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
9474
9475 * gdbtypes.c (type_align): A struct with no non-static fields also
9476 has alignment of 1.
9477
9478 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
9479
9480 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
9481 component to 0.
9482 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
9483 member.
9484 (riscv_struct_info::analyse): New implementation using new
9485 analyse_inner member function.
9486 (riscv_struct_info::field_offset): New member function.
9487 (riscv_struct_info::m_offsets): New member variable.
9488 (riscv_struct_info::analyse_inner): New private member function,
9489 takes the old implementation of riscv_struct_info::analyse but
9490 extended to track field offsets.
9491 (riscv_call_arg_struct): Update the struct folding special cases
9492 to handle cases where empty C++ structs, which are non-zero
9493 length, are found.
9494 (riscv_arg_location): Initialise the length of each location, a
9495 non-zero length now indicates the location is in use.
9496 (riscv_push_dummy_call): Allow for the first location having a
9497 non-zero offset when setting up arguments.
9498 (riscv_return_value): Likewise, but for return values.
9499
9500 2019-04-11 Tom Tromey <tromey@adacore.com>
9501
9502 * utils.c (internal_vproblem): Make "msg" const.
9503
9504 2019-04-11 Alan Hayward <alan.hayward@arm.com>
9505
9506 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
9507 * trad-frame.c (trad_frame_reset_saved_regs): New function.
9508 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
9509 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
9510
9511 2019-04-10 Kevin Buettner <kevinb@redhat.com>
9512
9513 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
9514 function.
9515 (fill_gregset): Call amd64_linux_collect_native_gregset instead
9516 of amd64_collect_native_gregset.
9517 (amd64_linux_nat_target::store_registers): Likewise.
9518
9519 2019-04-10 Tom Tromey <tom@tromey.com>
9520
9521 * symtab.c (lookup_global_symbol_from_objfile)
9522 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
9523 * objfiles.h (class separate_debug_iterator): New.
9524 (class separate_debug_range): New.
9525 (struct objfile) <separate_debug_objfiles>: New method.
9526 (objfile_separate_debug_iterate): Don't declare.
9527 * objfiles.c (separate_debug_iterator::operator++): Rename from
9528 objfile_separate_debug_iterate.
9529 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
9530 iterator.
9531 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
9532 iterator.
9533
9534 2019-04-10 Tom Tromey <tom@tromey.com>
9535
9536 * symfile.c (reread_symbols): Remove old comment.
9537 * objfiles.c (free_all_objfiles): Fix a typo.
9538
9539 2019-04-10 Tom Tromey <tom@tromey.com>
9540
9541 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
9542 * minsyms.c (lookup_minimal_symbol): Use foreach.
9543 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
9544 (lookup_minimal_symbol_solib_trampoline): Likewise.
9545 * symfile.c (reread_symbols): Use foreach.
9546
9547 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
9548 Tom Tromey <tromey@adacore.com>
9549
9550 PR rust/24414:
9551 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
9552 (rust_lex_int_test): Change "value" to be LONGEST.
9553 (rust_lex_tests): Add test for long integer literal.
9554
9555 2019-04-09 Tom Tromey <tromey@adacore.com>
9556
9557 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
9558 to bool.
9559 (extended_remote_target::attach): Update.
9560 (remote_target::remote_notice_new_inferior): Update.
9561 (remote_target::add_current_inferior_and_thread): Update.
9562 * inferior.c (exit_inferior_1): Use "false".
9563 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
9564
9565 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
9566
9567 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
9568 the "start" command.
9569
9570 2019-04-08 Kevin Buettner <kevinb@redhat.com>
9571
9572 * python/py-inferior.c (infpy_thread_from_thread_handle):
9573 Adjust comments to reflect renaming of thread_from_thread_handle
9574 to thread_from_handle. Adjust keywords. Fix type error message.
9575 (inferior_object_methods): Add thread_from_handle. Retain
9576 thread_from_thread_handle, but mark it as deprecated.
9577
9578 2019-04-08 Kevin Buettner <kevinb@redhat.com>
9579
9580 * gdbthread.h (find_thread_by_handle): Revise declaration.
9581 * thread.c (find_thread_by_handle): Likewise. Adjust
9582 implementation too.
9583 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
9584 support for buffer objects as handles.
9585
9586 2019-04-08 Kevin Buettner <kevinb@redhat.com>
9587
9588 * python/py-infthread.c (thpy_thread_handle): New function.
9589 (thread_object_methods): Register thpy_thread_handle.
9590
9591 2019-04-08 Kevin Buettner <kevinb@redhat.com>
9592
9593 * gdbthread.h (thread_to_thread_handle): Declare.
9594 * thread.c (gdbtypes.h): Include.
9595 (thread_to_thread_handle): New function.
9596
9597 * target.h (struct target_ops): Add thread_info_to_thread_handle.
9598 (target_thread_info_to_thread_handle): Declare.
9599 * target.c (target_thread_info_to_thread_handle): New function.
9600 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
9601 * target-delegates.c: Regenerate.
9602
9603 * linux-thread-db.c (class thread_db_target): Add method
9604 thread_info_to_thread_handle.
9605 (thread_db_target::thread_info_to_thread_handle): Define.
9606 * remote.c (class remote_target): Add new method
9607 thread_info_to_thread_handle.
9608 (remote_target::thread_info_to_thread_handle): Define.
9609
9610 2019-04-08 Pedro Alves <palves@redhat.com>
9611
9612 * common/common-exceptions.c (throw_exception): Don't create
9613 named object to throw; throw directly.
9614 (throw_it): Likewise. Don't initialize gdb_exception::message
9615 here, with new; pass FMT and AP to the ctor instead.
9616 * common/common-exceptions.h: Include <string>.
9617 (gdb_exception::gdb_exception(enum return_reason, enum errors,
9618 const char *, va_list)): New ctor. Use std::make_shared.
9619 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
9620 errors)): Delete.
9621 (gdb_exception_error::gdb_exception_error(enum errors, const char
9622 *, va_list)): New.
9623 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
9624 Add assertion.
9625 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
9626 errors)): Delete.
9627 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
9628 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
9629 Add assertion.
9630
9631 2019-04-08 Tom Tromey <tom@tromey.com>
9632
9633 * valops.c (value_rtti_indirect_type): Replace throw_exception
9634 with throw.
9635 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
9636 with throw.
9637 * thread.c (thr_try_catch_cmd): Replace throw_exception with
9638 throw.
9639 * target.c (target_translate_tls_address): Replace throw_exception
9640 with throw.
9641 * stack.c (frame_apply_command_count): Replace throw_exception
9642 with throw.
9643 * solib-spu.c (append_ocl_sos): Replace throw_exception with
9644 throw.
9645 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
9646 with throw.
9647 * rs6000-tdep.c (rs6000_frame_cache)
9648 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
9649 * remote.c: Replace throw_exception with throw.
9650 * record-full.c (record_full_message, record_full_wait_1)
9651 (record_full_restore): Replace throw_exception with throw.
9652 * record-btrace.c:
9653 (get_thread_current_frame_id, record_btrace_start_replaying)
9654 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
9655 (cmd_record_btrace_start): Replace throw_exception with throw.
9656 * parse.c (parse_exp_in_context_1): Replace throw_exception with
9657 throw.
9658 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
9659 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
9660 * linespec.c:
9661 (find_linespec_symbols): Replace throw_exception with throw.
9662 * infrun.c (displaced_step_prepare, resume): Replace
9663 throw_exception with throw.
9664 * infcmd.c (post_create_inferior): Replace throw_exception with
9665 throw.
9666 * inf-loop.c (inferior_event_handler): Replace throw_exception
9667 with throw.
9668 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
9669 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
9670 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
9671 (get_prev_frame_always, get_frame_pc_if_available)
9672 (get_frame_address_in_block_if_available, get_frame_language):
9673 Replace throw_exception with throw.
9674 * frame-unwind.c (frame_unwind_try_unwinder): Replace
9675 throw_exception with throw.
9676 * eval.c (fetch_subexp_value, evaluate_var_value)
9677 (evaluate_funcall, evaluate_subexp_standard): Replace
9678 throw_exception with throw.
9679 * dwarf2loc.c (call_site_find_chain)
9680 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
9681 Replace throw_exception with throw.
9682 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
9683 with throw.
9684 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
9685 throw.
9686 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
9687 * completer.c (complete_line_internal): Replace throw_exception
9688 with throw.
9689 * compile/compile-object-run.c (compile_object_run): Replace
9690 throw_exception with throw.
9691 * cli/cli-script.c (process_next_line): Replace throw_exception
9692 with throw.
9693 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
9694 (btrace_enable, btrace_maint_update_pt_packets): Replace
9695 throw_exception with throw.
9696 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
9697 throw_exception with throw.
9698 * break-catch-throw.c (re_set_exception_catchpoint): Replace
9699 throw_exception with throw.
9700 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
9701 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
9702 * aarch64-tdep.c (aarch64_make_prologue_cache)
9703 (aarch64_make_stub_cache): Replace throw_exception with throw.
9704
9705 2019-04-08 Tom Tromey <tom@tromey.com>
9706
9707 * common/common-exceptions.c (throw_exception): Rename from
9708 throw_exception_cxx. Remove old copy. Make argument const.
9709 (throw_it): Create and throw exception objects directly.
9710 * common/common-exceptions.h (throw_exception): Make argument
9711 const.
9712 (struct gdb_exception_error): Add constructor.
9713 (struct gdb_exception_quit): Add constructor.
9714
9715 2019-04-08 Tom Tromey <tom@tromey.com>
9716
9717 * common/common-exceptions.h (exception_rethrow): Don't declare.
9718 (TRY_SJLJ): Update comment.
9719 (TRY, CATCH, END_CATCH): Remove.
9720 * common/common-exceptions.c (exception_rethrow): Remove.
9721
9722 2019-04-08 Tom Tromey <tom@tromey.com>
9723
9724 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
9725 Remove.
9726 (gdb_exception_error): Rename from
9727 gdb_exception_RETURN_MASK_ERROR.
9728 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
9729 (gdb_quit_bad_alloc): Update.
9730 * aarch64-tdep.c: Update.
9731 * ada-lang.c: Update.
9732 * ada-typeprint.c: Update.
9733 * ada-valprint.c: Update.
9734 * amd64-tdep.c: Update.
9735 * arch-utils.c: Update.
9736 * break-catch-throw.c: Update.
9737 * breakpoint.c: Update.
9738 * btrace.c: Update.
9739 * c-varobj.c: Update.
9740 * cli/cli-cmds.c: Update.
9741 * cli/cli-interp.c: Update.
9742 * cli/cli-script.c: Update.
9743 * common/common-exceptions.c: Update.
9744 * common/new-op.c: Update.
9745 * common/selftest.c: Update.
9746 * compile/compile-c-symbols.c: Update.
9747 * compile/compile-cplus-symbols.c: Update.
9748 * compile/compile-object-load.c: Update.
9749 * compile/compile-object-run.c: Update.
9750 * completer.c: Update.
9751 * corelow.c: Update.
9752 * cp-abi.c: Update.
9753 * cp-support.c: Update.
9754 * cp-valprint.c: Update.
9755 * darwin-nat.c: Update.
9756 * disasm-selftests.c: Update.
9757 * dtrace-probe.c: Update.
9758 * dwarf-index-cache.c: Update.
9759 * dwarf-index-write.c: Update.
9760 * dwarf2-frame-tailcall.c: Update.
9761 * dwarf2-frame.c: Update.
9762 * dwarf2loc.c: Update.
9763 * dwarf2read.c: Update.
9764 * eval.c: Update.
9765 * event-loop.c: Update.
9766 * event-top.c: Update.
9767 * exec.c: Update.
9768 * f-valprint.c: Update.
9769 * fbsd-tdep.c: Update.
9770 * frame-unwind.c: Update.
9771 * frame.c: Update.
9772 * gdbtypes.c: Update.
9773 * gnu-v3-abi.c: Update.
9774 * guile/guile-internal.h: Update.
9775 * guile/scm-block.c: Update.
9776 * guile/scm-breakpoint.c: Update.
9777 * guile/scm-cmd.c: Update.
9778 * guile/scm-disasm.c: Update.
9779 * guile/scm-frame.c: Update.
9780 * guile/scm-lazy-string.c: Update.
9781 * guile/scm-math.c: Update.
9782 * guile/scm-param.c: Update.
9783 * guile/scm-ports.c: Update.
9784 * guile/scm-pretty-print.c: Update.
9785 * guile/scm-symbol.c: Update.
9786 * guile/scm-symtab.c: Update.
9787 * guile/scm-type.c: Update.
9788 * guile/scm-value.c: Update.
9789 * i386-linux-tdep.c: Update.
9790 * i386-tdep.c: Update.
9791 * inf-loop.c: Update.
9792 * infcall.c: Update.
9793 * infcmd.c: Update.
9794 * infrun.c: Update.
9795 * jit.c: Update.
9796 * language.c: Update.
9797 * linespec.c: Update.
9798 * linux-fork.c: Update.
9799 * linux-nat.c: Update.
9800 * linux-tdep.c: Update.
9801 * linux-thread-db.c: Update.
9802 * main.c: Update.
9803 * mi/mi-cmd-break.c: Update.
9804 * mi/mi-cmd-stack.c: Update.
9805 * mi/mi-interp.c: Update.
9806 * mi/mi-main.c: Update.
9807 * objc-lang.c: Update.
9808 * p-valprint.c: Update.
9809 * parse.c: Update.
9810 * ppc-linux-tdep.c: Update.
9811 * printcmd.c: Update.
9812 * python/py-arch.c: Update.
9813 * python/py-breakpoint.c: Update.
9814 * python/py-cmd.c: Update.
9815 * python/py-finishbreakpoint.c: Update.
9816 * python/py-frame.c: Update.
9817 * python/py-framefilter.c: Update.
9818 * python/py-gdb-readline.c: Update.
9819 * python/py-inferior.c: Update.
9820 * python/py-infthread.c: Update.
9821 * python/py-lazy-string.c: Update.
9822 * python/py-linetable.c: Update.
9823 * python/py-objfile.c: Update.
9824 * python/py-param.c: Update.
9825 * python/py-prettyprint.c: Update.
9826 * python/py-progspace.c: Update.
9827 * python/py-record-btrace.c: Update.
9828 * python/py-record.c: Update.
9829 * python/py-symbol.c: Update.
9830 * python/py-type.c: Update.
9831 * python/py-unwind.c: Update.
9832 * python/py-utils.c: Update.
9833 * python/py-value.c: Update.
9834 * python/python.c: Update.
9835 * record-btrace.c: Update.
9836 * record-full.c: Update.
9837 * remote-fileio.c: Update.
9838 * remote.c: Update.
9839 * riscv-tdep.c: Update.
9840 * rs6000-aix-tdep.c: Update.
9841 * rs6000-tdep.c: Update.
9842 * rust-exp.y: Update.
9843 * rust-lang.c: Update.
9844 * s390-tdep.c: Update.
9845 * selftest-arch.c: Update.
9846 * solib-dsbt.c: Update.
9847 * solib-frv.c: Update.
9848 * solib-spu.c: Update.
9849 * solib-svr4.c: Update.
9850 * solib.c: Update.
9851 * sparc64-linux-tdep.c: Update.
9852 * stack.c: Update.
9853 * symfile-mem.c: Update.
9854 * symmisc.c: Update.
9855 * target.c: Update.
9856 * thread.c: Update.
9857 * top.c: Update.
9858 * tracefile-tfile.c: Update.
9859 * tui/tui.c: Update.
9860 * typeprint.c: Update.
9861 * unittests/cli-utils-selftests.c: Update.
9862 * unittests/parse-connection-spec-selftests.c: Update.
9863 * valops.c: Update.
9864 * valprint.c: Update.
9865 * value.c: Update.
9866 * varobj.c: Update.
9867 * windows-nat.c: Update.
9868 * x86-linux-nat.c: Update.
9869 * xml-support.c: Update.
9870
9871 2019-04-08 Tom Tromey <tom@tromey.com>
9872
9873 * xml-support.c: Use C++ exception handling.
9874 * x86-linux-nat.c: Use C++ exception handling.
9875 * windows-nat.c: Use C++ exception handling.
9876 * varobj.c: Use C++ exception handling.
9877 * value.c: Use C++ exception handling.
9878 * valprint.c: Use C++ exception handling.
9879 * valops.c: Use C++ exception handling.
9880 * unittests/parse-connection-spec-selftests.c: Use C++ exception
9881 handling.
9882 * unittests/cli-utils-selftests.c: Use C++ exception handling.
9883 * typeprint.c: Use C++ exception handling.
9884 * tui/tui.c: Use C++ exception handling.
9885 * tracefile-tfile.c: Use C++ exception handling.
9886 * top.c: Use C++ exception handling.
9887 * thread.c: Use C++ exception handling.
9888 * target.c: Use C++ exception handling.
9889 * symmisc.c: Use C++ exception handling.
9890 * symfile-mem.c: Use C++ exception handling.
9891 * stack.c: Use C++ exception handling.
9892 * sparc64-linux-tdep.c: Use C++ exception handling.
9893 * solib.c: Use C++ exception handling.
9894 * solib-svr4.c: Use C++ exception handling.
9895 * solib-spu.c: Use C++ exception handling.
9896 * solib-frv.c: Use C++ exception handling.
9897 * solib-dsbt.c: Use C++ exception handling.
9898 * selftest-arch.c: Use C++ exception handling.
9899 * s390-tdep.c: Use C++ exception handling.
9900 * rust-lang.c: Use C++ exception handling.
9901 * rust-exp.y: Use C++ exception handling.
9902 * rs6000-tdep.c: Use C++ exception handling.
9903 * rs6000-aix-tdep.c: Use C++ exception handling.
9904 * riscv-tdep.c: Use C++ exception handling.
9905 * remote.c: Use C++ exception handling.
9906 * remote-fileio.c: Use C++ exception handling.
9907 * record-full.c: Use C++ exception handling.
9908 * record-btrace.c: Use C++ exception handling.
9909 * python/python.c: Use C++ exception handling.
9910 * python/py-value.c: Use C++ exception handling.
9911 * python/py-utils.c: Use C++ exception handling.
9912 * python/py-unwind.c: Use C++ exception handling.
9913 * python/py-type.c: Use C++ exception handling.
9914 * python/py-symbol.c: Use C++ exception handling.
9915 * python/py-record.c: Use C++ exception handling.
9916 * python/py-record-btrace.c: Use C++ exception handling.
9917 * python/py-progspace.c: Use C++ exception handling.
9918 * python/py-prettyprint.c: Use C++ exception handling.
9919 * python/py-param.c: Use C++ exception handling.
9920 * python/py-objfile.c: Use C++ exception handling.
9921 * python/py-linetable.c: Use C++ exception handling.
9922 * python/py-lazy-string.c: Use C++ exception handling.
9923 * python/py-infthread.c: Use C++ exception handling.
9924 * python/py-inferior.c: Use C++ exception handling.
9925 * python/py-gdb-readline.c: Use C++ exception handling.
9926 * python/py-framefilter.c: Use C++ exception handling.
9927 * python/py-frame.c: Use C++ exception handling.
9928 * python/py-finishbreakpoint.c: Use C++ exception handling.
9929 * python/py-cmd.c: Use C++ exception handling.
9930 * python/py-breakpoint.c: Use C++ exception handling.
9931 * python/py-arch.c: Use C++ exception handling.
9932 * printcmd.c: Use C++ exception handling.
9933 * ppc-linux-tdep.c: Use C++ exception handling.
9934 * parse.c: Use C++ exception handling.
9935 * p-valprint.c: Use C++ exception handling.
9936 * objc-lang.c: Use C++ exception handling.
9937 * mi/mi-main.c: Use C++ exception handling.
9938 * mi/mi-interp.c: Use C++ exception handling.
9939 * mi/mi-cmd-stack.c: Use C++ exception handling.
9940 * mi/mi-cmd-break.c: Use C++ exception handling.
9941 * main.c: Use C++ exception handling.
9942 * linux-thread-db.c: Use C++ exception handling.
9943 * linux-tdep.c: Use C++ exception handling.
9944 * linux-nat.c: Use C++ exception handling.
9945 * linux-fork.c: Use C++ exception handling.
9946 * linespec.c: Use C++ exception handling.
9947 * language.c: Use C++ exception handling.
9948 * jit.c: Use C++ exception handling.
9949 * infrun.c: Use C++ exception handling.
9950 * infcmd.c: Use C++ exception handling.
9951 * infcall.c: Use C++ exception handling.
9952 * inf-loop.c: Use C++ exception handling.
9953 * i386-tdep.c: Use C++ exception handling.
9954 * i386-linux-tdep.c: Use C++ exception handling.
9955 * guile/scm-value.c: Use C++ exception handling.
9956 * guile/scm-type.c: Use C++ exception handling.
9957 * guile/scm-symtab.c: Use C++ exception handling.
9958 * guile/scm-symbol.c: Use C++ exception handling.
9959 * guile/scm-pretty-print.c: Use C++ exception handling.
9960 * guile/scm-ports.c: Use C++ exception handling.
9961 * guile/scm-param.c: Use C++ exception handling.
9962 * guile/scm-math.c: Use C++ exception handling.
9963 * guile/scm-lazy-string.c: Use C++ exception handling.
9964 * guile/scm-frame.c: Use C++ exception handling.
9965 * guile/scm-disasm.c: Use C++ exception handling.
9966 * guile/scm-cmd.c: Use C++ exception handling.
9967 * guile/scm-breakpoint.c: Use C++ exception handling.
9968 * guile/scm-block.c: Use C++ exception handling.
9969 * guile/guile-internal.h: Use C++ exception handling.
9970 * gnu-v3-abi.c: Use C++ exception handling.
9971 * gdbtypes.c: Use C++ exception handling.
9972 * frame.c: Use C++ exception handling.
9973 * frame-unwind.c: Use C++ exception handling.
9974 * fbsd-tdep.c: Use C++ exception handling.
9975 * f-valprint.c: Use C++ exception handling.
9976 * exec.c: Use C++ exception handling.
9977 * event-top.c: Use C++ exception handling.
9978 * event-loop.c: Use C++ exception handling.
9979 * eval.c: Use C++ exception handling.
9980 * dwarf2read.c: Use C++ exception handling.
9981 * dwarf2loc.c: Use C++ exception handling.
9982 * dwarf2-frame.c: Use C++ exception handling.
9983 * dwarf2-frame-tailcall.c: Use C++ exception handling.
9984 * dwarf-index-write.c: Use C++ exception handling.
9985 * dwarf-index-cache.c: Use C++ exception handling.
9986 * dtrace-probe.c: Use C++ exception handling.
9987 * disasm-selftests.c: Use C++ exception handling.
9988 * darwin-nat.c: Use C++ exception handling.
9989 * cp-valprint.c: Use C++ exception handling.
9990 * cp-support.c: Use C++ exception handling.
9991 * cp-abi.c: Use C++ exception handling.
9992 * corelow.c: Use C++ exception handling.
9993 * completer.c: Use C++ exception handling.
9994 * compile/compile-object-run.c: Use C++ exception handling.
9995 * compile/compile-object-load.c: Use C++ exception handling.
9996 * compile/compile-cplus-symbols.c: Use C++ exception handling.
9997 * compile/compile-c-symbols.c: Use C++ exception handling.
9998 * common/selftest.c: Use C++ exception handling.
9999 * common/new-op.c: Use C++ exception handling.
10000 * cli/cli-script.c: Use C++ exception handling.
10001 * cli/cli-interp.c: Use C++ exception handling.
10002 * cli/cli-cmds.c: Use C++ exception handling.
10003 * c-varobj.c: Use C++ exception handling.
10004 * btrace.c: Use C++ exception handling.
10005 * breakpoint.c: Use C++ exception handling.
10006 * break-catch-throw.c: Use C++ exception handling.
10007 * arch-utils.c: Use C++ exception handling.
10008 * amd64-tdep.c: Use C++ exception handling.
10009 * ada-valprint.c: Use C++ exception handling.
10010 * ada-typeprint.c: Use C++ exception handling.
10011 * ada-lang.c: Use C++ exception handling.
10012 * aarch64-tdep.c: Use C++ exception handling.
10013
10014 2019-04-08 Tom Tromey <tom@tromey.com>
10015
10016 * xml-support.c (gdb_xml_parser::parse): Update.
10017 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
10018 * value.c (show_convenience): Update.
10019 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
10020 (test_parse_flags_qcs): Update.
10021 * thread.c (thr_try_catch_cmd): Update.
10022 * target.c (target_translate_tls_address): Update.
10023 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
10024 (info_frame_command_core, frame_apply_command_count): Update.
10025 * rust-exp.y (rust_lex_exception_test): Update.
10026 * riscv-tdep.c (riscv_print_one_register_info): Update.
10027 * remote.c (remote_target::enable_btrace): Update.
10028 * record-btrace.c (record_btrace_enable_warn): Update.
10029 * python/py-utils.c (gdbpy_convert_exception): Update.
10030 * printcmd.c (do_one_display, print_variable_and_value): Update.
10031 * mi/mi-main.c (mi_print_exception): Update.
10032 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
10033 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
10034 * linux-nat.c (linux_nat_target::attach): Update.
10035 * linux-fork.c (class scoped_switch_fork_info): Update.
10036 * infrun.c (displaced_step_prepare): Update.
10037 * infcall.c (call_function_by_hand_dummy): Update.
10038 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
10039 * gnu-v3-abi.c (print_one_vtable): Update.
10040 * frame.c (get_prev_frame_always): Update.
10041 * f-valprint.c (info_common_command_for_block): Update.
10042 * exec.c (try_open_exec_file): Update.
10043 * exceptions.c (print_exception, exception_print)
10044 (exception_fprintf, exception_print_same): Update.
10045 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
10046 * dwarf-index-cache.c (index_cache::store)
10047 (index_cache::lookup_gdb_index): Update.
10048 * darwin-nat.c (maybe_cache_shell): Update.
10049 * cp-valprint.c (cp_print_value_fields): Update.
10050 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
10051 (gcc_cplus_symbol_address): Update.
10052 * compile/compile-c-symbols.c (gcc_convert_symbol)
10053 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
10054 * common/selftest.c: Update.
10055 * common/common-exceptions.h (struct gdb_exception) <message>: Now
10056 a std::string.
10057 (exception_try_scope_entry, exception_try_scope_exit): Don't
10058 declare.
10059 (struct exception_try_scope): Remove.
10060 (TRY): Don't use exception_try_scope.
10061 (struct gdb_exception): Add constructor, operator=.
10062 <what>: New method.
10063 (struct gdb_exception_RETURN_MASK_ALL)
10064 (struct gdb_exception_RETURN_MASK_ERROR)
10065 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
10066 (struct gdb_quit_bad_alloc): Update.
10067 * common/common-exceptions.c (exception_none): Change
10068 initializer.
10069 (struct catcher) <state, exception>: Initialize inline.
10070 <prev>: Remove member.
10071 (current_catcher): Remove.
10072 (catchers): New global.
10073 (exceptions_state_mc_init): Simplify.
10074 (catcher_pop): Remove.
10075 (exceptions_state_mc, exceptions_state_mc_catch): Update.
10076 (try_scope_depth, exception_try_scope_entry)
10077 (exception_try_scope_exit): Remove.
10078 (throw_exception_sjlj): Update.
10079 (exception_messages, exception_messages_size): Remove.
10080 (throw_it): Simplify.
10081 (gdb_exception_sliced_copy): Remove.
10082 (throw_exception_cxx): Update.
10083 * cli/cli-script.c (script_from_file): Update.
10084 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
10085 Update.
10086 * ada-valprint.c (ada_val_print): Update.
10087 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
10088 (create_excep_cond_exprs): Update.
10089
10090 2019-04-08 Tom Tromey <tom@tromey.com>
10091
10092 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
10093 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
10094 (TRY, CATCH, END_CATCH): Remove some definitions.
10095 * common/common-exceptions.c: Don't use GDB_XCPT.
10096 (catcher_list_size): Remove.
10097 (throw_exception, throw_it): Simplify.
10098
10099 2019-04-05 Tom Tromey <tom@tromey.com>
10100
10101 Revert the header-sorting patch.
10102 * ft32-tdep.c: Revert.
10103 * frv-tdep.c: Revert.
10104 * frv-linux-tdep.c: Revert.
10105 * frame.c: Revert.
10106 * frame-unwind.c: Revert.
10107 * frame-base.c: Revert.
10108 * fork-child.c: Revert.
10109 * findvar.c: Revert.
10110 * findcmd.c: Revert.
10111 * filesystem.c: Revert.
10112 * filename-seen-cache.h: Revert.
10113 * filename-seen-cache.c: Revert.
10114 * fbsd-tdep.c: Revert.
10115 * fbsd-nat.h: Revert.
10116 * fbsd-nat.c: Revert.
10117 * f-valprint.c: Revert.
10118 * f-typeprint.c: Revert.
10119 * f-lang.c: Revert.
10120 * extension.h: Revert.
10121 * extension.c: Revert.
10122 * extension-priv.h: Revert.
10123 * expprint.c: Revert.
10124 * exec.h: Revert.
10125 * exec.c: Revert.
10126 * exceptions.c: Revert.
10127 * event-top.c: Revert.
10128 * event-loop.c: Revert.
10129 * eval.c: Revert.
10130 * elfread.c: Revert.
10131 * dwarf2read.h: Revert.
10132 * dwarf2read.c: Revert.
10133 * dwarf2loc.c: Revert.
10134 * dwarf2expr.h: Revert.
10135 * dwarf2expr.c: Revert.
10136 * dwarf2-frame.c: Revert.
10137 * dwarf2-frame-tailcall.c: Revert.
10138 * dwarf-index-write.h: Revert.
10139 * dwarf-index-write.c: Revert.
10140 * dwarf-index-common.c: Revert.
10141 * dwarf-index-cache.h: Revert.
10142 * dwarf-index-cache.c: Revert.
10143 * dummy-frame.c: Revert.
10144 * dtrace-probe.c: Revert.
10145 * disasm.h: Revert.
10146 * disasm.c: Revert.
10147 * disasm-selftests.c: Revert.
10148 * dictionary.c: Revert.
10149 * dicos-tdep.c: Revert.
10150 * demangle.c: Revert.
10151 * dcache.h: Revert.
10152 * dcache.c: Revert.
10153 * darwin-nat.h: Revert.
10154 * darwin-nat.c: Revert.
10155 * darwin-nat-info.c: Revert.
10156 * d-valprint.c: Revert.
10157 * d-namespace.c: Revert.
10158 * d-lang.c: Revert.
10159 * ctf.c: Revert.
10160 * csky-tdep.c: Revert.
10161 * csky-linux-tdep.c: Revert.
10162 * cris-tdep.c: Revert.
10163 * cris-linux-tdep.c: Revert.
10164 * cp-valprint.c: Revert.
10165 * cp-support.c: Revert.
10166 * cp-namespace.c: Revert.
10167 * cp-abi.c: Revert.
10168 * corelow.c: Revert.
10169 * corefile.c: Revert.
10170 * continuations.c: Revert.
10171 * completer.h: Revert.
10172 * completer.c: Revert.
10173 * complaints.c: Revert.
10174 * coffread.c: Revert.
10175 * coff-pe-read.c: Revert.
10176 * cli-out.h: Revert.
10177 * cli-out.c: Revert.
10178 * charset.c: Revert.
10179 * c-varobj.c: Revert.
10180 * c-valprint.c: Revert.
10181 * c-typeprint.c: Revert.
10182 * c-lang.c: Revert.
10183 * buildsym.c: Revert.
10184 * buildsym-legacy.c: Revert.
10185 * build-id.h: Revert.
10186 * build-id.c: Revert.
10187 * btrace.c: Revert.
10188 * bsd-uthread.c: Revert.
10189 * breakpoint.h: Revert.
10190 * breakpoint.c: Revert.
10191 * break-catch-throw.c: Revert.
10192 * break-catch-syscall.c: Revert.
10193 * break-catch-sig.c: Revert.
10194 * blockframe.c: Revert.
10195 * block.c: Revert.
10196 * bfin-tdep.c: Revert.
10197 * bfin-linux-tdep.c: Revert.
10198 * bfd-target.c: Revert.
10199 * bcache.c: Revert.
10200 * ax-general.c: Revert.
10201 * ax-gdb.h: Revert.
10202 * ax-gdb.c: Revert.
10203 * avr-tdep.c: Revert.
10204 * auxv.c: Revert.
10205 * auto-load.c: Revert.
10206 * arm-wince-tdep.c: Revert.
10207 * arm-tdep.c: Revert.
10208 * arm-symbian-tdep.c: Revert.
10209 * arm-pikeos-tdep.c: Revert.
10210 * arm-obsd-tdep.c: Revert.
10211 * arm-nbsd-tdep.c: Revert.
10212 * arm-nbsd-nat.c: Revert.
10213 * arm-linux-tdep.c: Revert.
10214 * arm-linux-nat.c: Revert.
10215 * arm-fbsd-tdep.c: Revert.
10216 * arm-fbsd-nat.c: Revert.
10217 * arm-bsd-tdep.c: Revert.
10218 * arch-utils.c: Revert.
10219 * arc-tdep.c: Revert.
10220 * arc-newlib-tdep.c: Revert.
10221 * annotate.h: Revert.
10222 * annotate.c: Revert.
10223 * amd64-windows-tdep.c: Revert.
10224 * amd64-windows-nat.c: Revert.
10225 * amd64-tdep.c: Revert.
10226 * amd64-sol2-tdep.c: Revert.
10227 * amd64-obsd-tdep.c: Revert.
10228 * amd64-obsd-nat.c: Revert.
10229 * amd64-nbsd-tdep.c: Revert.
10230 * amd64-nbsd-nat.c: Revert.
10231 * amd64-nat.c: Revert.
10232 * amd64-linux-tdep.c: Revert.
10233 * amd64-linux-nat.c: Revert.
10234 * amd64-fbsd-tdep.c: Revert.
10235 * amd64-fbsd-nat.c: Revert.
10236 * amd64-dicos-tdep.c: Revert.
10237 * amd64-darwin-tdep.c: Revert.
10238 * amd64-bsd-nat.c: Revert.
10239 * alpha-tdep.c: Revert.
10240 * alpha-obsd-tdep.c: Revert.
10241 * alpha-nbsd-tdep.c: Revert.
10242 * alpha-mdebug-tdep.c: Revert.
10243 * alpha-linux-tdep.c: Revert.
10244 * alpha-linux-nat.c: Revert.
10245 * alpha-bsd-tdep.c: Revert.
10246 * alpha-bsd-nat.c: Revert.
10247 * aix-thread.c: Revert.
10248 * agent.c: Revert.
10249 * addrmap.c: Revert.
10250 * ada-varobj.c: Revert.
10251 * ada-valprint.c: Revert.
10252 * ada-typeprint.c: Revert.
10253 * ada-tasks.c: Revert.
10254 * ada-lang.c: Revert.
10255 * aarch64-tdep.c: Revert.
10256 * aarch64-ravenscar-thread.c: Revert.
10257 * aarch64-newlib-tdep.c: Revert.
10258 * aarch64-linux-tdep.c: Revert.
10259 * aarch64-linux-nat.c: Revert.
10260 * aarch64-fbsd-tdep.c: Revert.
10261 * aarch64-fbsd-nat.c: Revert.
10262 * aarch32-linux-nat.c: Revert.
10263
10264 2019-04-05 Tom Tromey <tom@tromey.com>
10265
10266 * ft32-tdep.c: Sort headers.
10267 * frv-tdep.c: Sort headers.
10268 * frv-linux-tdep.c: Sort headers.
10269 * frame.c: Sort headers.
10270 * frame-unwind.c: Sort headers.
10271 * frame-base.c: Sort headers.
10272 * fork-child.c: Sort headers.
10273 * findvar.c: Sort headers.
10274 * findcmd.c: Sort headers.
10275 * filesystem.c: Sort headers.
10276 * filename-seen-cache.h: Sort headers.
10277 * filename-seen-cache.c: Sort headers.
10278 * fbsd-tdep.c: Sort headers.
10279 * fbsd-nat.h: Sort headers.
10280 * fbsd-nat.c: Sort headers.
10281 * f-valprint.c: Sort headers.
10282 * f-typeprint.c: Sort headers.
10283 * f-lang.c: Sort headers.
10284 * extension.h: Sort headers.
10285 * extension.c: Sort headers.
10286 * extension-priv.h: Sort headers.
10287 * expprint.c: Sort headers.
10288 * exec.h: Sort headers.
10289 * exec.c: Sort headers.
10290 * exceptions.c: Sort headers.
10291 * event-top.c: Sort headers.
10292 * event-loop.c: Sort headers.
10293 * eval.c: Sort headers.
10294 * elfread.c: Sort headers.
10295 * dwarf2read.h: Sort headers.
10296 * dwarf2read.c: Sort headers.
10297 * dwarf2loc.c: Sort headers.
10298 * dwarf2expr.h: Sort headers.
10299 * dwarf2expr.c: Sort headers.
10300 * dwarf2-frame.c: Sort headers.
10301 * dwarf2-frame-tailcall.c: Sort headers.
10302 * dwarf-index-write.h: Sort headers.
10303 * dwarf-index-write.c: Sort headers.
10304 * dwarf-index-common.c: Sort headers.
10305 * dwarf-index-cache.h: Sort headers.
10306 * dwarf-index-cache.c: Sort headers.
10307 * dummy-frame.c: Sort headers.
10308 * dtrace-probe.c: Sort headers.
10309 * disasm.h: Sort headers.
10310 * disasm.c: Sort headers.
10311 * disasm-selftests.c: Sort headers.
10312 * dictionary.c: Sort headers.
10313 * dicos-tdep.c: Sort headers.
10314 * demangle.c: Sort headers.
10315 * dcache.h: Sort headers.
10316 * dcache.c: Sort headers.
10317 * darwin-nat.h: Sort headers.
10318 * darwin-nat.c: Sort headers.
10319 * darwin-nat-info.c: Sort headers.
10320 * d-valprint.c: Sort headers.
10321 * d-namespace.c: Sort headers.
10322 * d-lang.c: Sort headers.
10323 * ctf.c: Sort headers.
10324 * csky-tdep.c: Sort headers.
10325 * csky-linux-tdep.c: Sort headers.
10326 * cris-tdep.c: Sort headers.
10327 * cris-linux-tdep.c: Sort headers.
10328 * cp-valprint.c: Sort headers.
10329 * cp-support.c: Sort headers.
10330 * cp-namespace.c: Sort headers.
10331 * cp-abi.c: Sort headers.
10332 * corelow.c: Sort headers.
10333 * corefile.c: Sort headers.
10334 * continuations.c: Sort headers.
10335 * completer.h: Sort headers.
10336 * completer.c: Sort headers.
10337 * complaints.c: Sort headers.
10338 * coffread.c: Sort headers.
10339 * coff-pe-read.c: Sort headers.
10340 * cli-out.h: Sort headers.
10341 * cli-out.c: Sort headers.
10342 * charset.c: Sort headers.
10343 * c-varobj.c: Sort headers.
10344 * c-valprint.c: Sort headers.
10345 * c-typeprint.c: Sort headers.
10346 * c-lang.c: Sort headers.
10347 * buildsym.c: Sort headers.
10348 * buildsym-legacy.c: Sort headers.
10349 * build-id.h: Sort headers.
10350 * build-id.c: Sort headers.
10351 * btrace.c: Sort headers.
10352 * bsd-uthread.c: Sort headers.
10353 * breakpoint.h: Sort headers.
10354 * breakpoint.c: Sort headers.
10355 * break-catch-throw.c: Sort headers.
10356 * break-catch-syscall.c: Sort headers.
10357 * break-catch-sig.c: Sort headers.
10358 * blockframe.c: Sort headers.
10359 * block.c: Sort headers.
10360 * bfin-tdep.c: Sort headers.
10361 * bfin-linux-tdep.c: Sort headers.
10362 * bfd-target.c: Sort headers.
10363 * bcache.c: Sort headers.
10364 * ax-general.c: Sort headers.
10365 * ax-gdb.h: Sort headers.
10366 * ax-gdb.c: Sort headers.
10367 * avr-tdep.c: Sort headers.
10368 * auxv.c: Sort headers.
10369 * auto-load.c: Sort headers.
10370 * arm-wince-tdep.c: Sort headers.
10371 * arm-tdep.c: Sort headers.
10372 * arm-symbian-tdep.c: Sort headers.
10373 * arm-pikeos-tdep.c: Sort headers.
10374 * arm-obsd-tdep.c: Sort headers.
10375 * arm-nbsd-tdep.c: Sort headers.
10376 * arm-nbsd-nat.c: Sort headers.
10377 * arm-linux-tdep.c: Sort headers.
10378 * arm-linux-nat.c: Sort headers.
10379 * arm-fbsd-tdep.c: Sort headers.
10380 * arm-fbsd-nat.c: Sort headers.
10381 * arm-bsd-tdep.c: Sort headers.
10382 * arch-utils.c: Sort headers.
10383 * arc-tdep.c: Sort headers.
10384 * arc-newlib-tdep.c: Sort headers.
10385 * annotate.h: Sort headers.
10386 * annotate.c: Sort headers.
10387 * amd64-windows-tdep.c: Sort headers.
10388 * amd64-windows-nat.c: Sort headers.
10389 * amd64-tdep.c: Sort headers.
10390 * amd64-sol2-tdep.c: Sort headers.
10391 * amd64-obsd-tdep.c: Sort headers.
10392 * amd64-obsd-nat.c: Sort headers.
10393 * amd64-nbsd-tdep.c: Sort headers.
10394 * amd64-nbsd-nat.c: Sort headers.
10395 * amd64-nat.c: Sort headers.
10396 * amd64-linux-tdep.c: Sort headers.
10397 * amd64-linux-nat.c: Sort headers.
10398 * amd64-fbsd-tdep.c: Sort headers.
10399 * amd64-fbsd-nat.c: Sort headers.
10400 * amd64-dicos-tdep.c: Sort headers.
10401 * amd64-darwin-tdep.c: Sort headers.
10402 * amd64-bsd-nat.c: Sort headers.
10403 * alpha-tdep.c: Sort headers.
10404 * alpha-obsd-tdep.c: Sort headers.
10405 * alpha-nbsd-tdep.c: Sort headers.
10406 * alpha-mdebug-tdep.c: Sort headers.
10407 * alpha-linux-tdep.c: Sort headers.
10408 * alpha-linux-nat.c: Sort headers.
10409 * alpha-bsd-tdep.c: Sort headers.
10410 * alpha-bsd-nat.c: Sort headers.
10411 * aix-thread.c: Sort headers.
10412 * agent.c: Sort headers.
10413 * addrmap.c: Sort headers.
10414 * ada-varobj.c: Sort headers.
10415 * ada-valprint.c: Sort headers.
10416 * ada-typeprint.c: Sort headers.
10417 * ada-tasks.c: Sort headers.
10418 * ada-lang.c: Sort headers.
10419 * aarch64-tdep.c: Sort headers.
10420 * aarch64-ravenscar-thread.c: Sort headers.
10421 * aarch64-newlib-tdep.c: Sort headers.
10422 * aarch64-linux-tdep.c: Sort headers.
10423 * aarch64-linux-nat.c: Sort headers.
10424 * aarch64-fbsd-tdep.c: Sort headers.
10425 * aarch64-fbsd-nat.c: Sort headers.
10426 * aarch32-linux-nat.c: Sort headers.
10427
10428 2019-04-04 Tom Tromey <tom@tromey.com>
10429
10430 * varobj.c (varobj_create): Update.
10431 * rust-exp.y (struct rust_parser) <update_innermost_block,
10432 lookup_symbol>: New methods.
10433 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
10434 Rename.
10435 (rust_parser::rust_lookup_type)
10436 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
10437 * printcmd.c (display_command, do_one_display): Update.
10438 * parser-defs.h (struct parser_state) <parser_state>: Add
10439 "tracker" parameter.
10440 (block_tracker): New member.
10441 (class innermost_block_tracker) <innermost_block_tracker>: Add
10442 "types" parameter.
10443 <reset>: Remove method.
10444 (innermost_block): Don't declare.
10445 (null_post_parser): Update.
10446 * parse.c (innermost_block): Remove global.
10447 (write_dollar_variable): Update.
10448 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
10449 Remove "tracker_types" parameter.
10450 (parse_expression): Add "tracker" parameter.
10451 (parse_expression_for_completion): Update.
10452 (null_post_parser): Add "tracker" parameter.
10453 * p-exp.y: Update rules.
10454 * m2-exp.y: Update rules.
10455 * language.h (struct language_defn) <la_post_parser>: Add
10456 "tracker" parameter.
10457 * go-exp.y: Update rules.
10458 * f-exp.y: Update rules.
10459 * expression.h (parse_expression, parse_exp_1): Add "tracker"
10460 parameter.
10461 * d-exp.y: Update rules.
10462 * c-exp.y: Update rules.
10463 * breakpoint.c (set_breakpoint_condition): Create an
10464 innermost_block_tracker.
10465 (watch_command_1): Likewise.
10466 * ada-lang.c (resolve): Add "tracker" parameter.
10467 (resolve_subexp): Likewise.
10468 * ada-exp.y (write_var_from_sym): Update.
10469
10470 2019-04-04 Tom Tromey <tom@tromey.com>
10471
10472 * type-stack.h: New file.
10473 * type-stack.c: New file.
10474 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
10475 type-stack.h.
10476 (insert_into_type_stack, insert_type, push_type, push_type_int)
10477 (insert_type_address_space, pop_type, pop_type_int)
10478 (pop_typelist, pop_type_stack, append_type_stack)
10479 (push_type_stack, get_type_stack, push_typelist)
10480 (follow_type_instance_flags, follow_types): Don't declare.
10481 * parse.c (type_stack): Remove global.
10482 (parse_exp_in_context): Update.
10483 (insert_into_type_stack, insert_type, push_type, push_type_int)
10484 (insert_type_address_space, pop_type, pop_type_int)
10485 (pop_typelist, pop_type_stack, append_type_stack)
10486 (push_type_stack, get_type_stack, push_typelist)
10487 (follow_type_instance_flags, follow_types): Remove (moved to
10488 type-stack.c).
10489 * f-exp.y (type_stack): New global.
10490 Update rules.
10491 (push_kind_type, f_parse): Update.
10492 * d-exp.y (type_stack): New global.
10493 Update rules.
10494 (d_parse): Update.
10495 * c-exp.y (struct c_parse_state) <type_stack>: New member.
10496 Update rules.
10497 * Makefile.in (COMMON_SFILES): Add type-stack.c.
10498 (HFILES_NO_SRCDIR): Add type-stack.h.
10499
10500 2019-04-04 Tom Tromey <tom@tromey.com>
10501
10502 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
10503 (rust_parser::convert_ast_to_expression, rust_parse)
10504 (rust_lex_test_completion, rust_lex_tests): Update.
10505 * parser-defs.h (struct expr_completion_state): New.
10506 (struct parser_state) <parser_state>: Add completion parameter.
10507 <mark_struct_expression, mark_completion_tag>: New methods.
10508 <parse_completion, m_completion_state>: New members.
10509 (prefixify_expression, null_post_parser): Update.
10510 (mark_struct_expression, mark_completion_tag): Don't declare.
10511 * parse.c (parse_completion, expout_last_struct)
10512 (expout_tag_completion_type, expout_completion_name): Remove
10513 globals.
10514 (parser_state::mark_struct_expression)
10515 (parser_state::mark_completion_tag): Now methods.
10516 (prefixify_expression): Add last_struct parameter.
10517 (prefixify_subexp): Likewise.
10518 (parse_exp_1): Update.
10519 (parse_exp_in_context): Add cstate parameter. Update.
10520 (parse_expression_for_completion): Create an
10521 expr_completion_state.
10522 (null_post_parser): Add "completion" parameter.
10523 * p-exp.y: Update rules.
10524 (yylex): Update.
10525 * language.h (struct language_defn) <la_post_parser>: Add
10526 "completing" parameter.
10527 * go-exp.y: Update rules.
10528 (lex_one_token): Update.
10529 * expression.h (parse_completion): Don't declare.
10530 * d-exp.y: Update rules.
10531 (lex_one_token): Update rules.
10532 * c-exp.y: Update rules.
10533 (lex_one_token): Update.
10534 * ada-lang.c (resolve): Add "parse_completion" parameter.
10535 (resolve_subexp): Likewise.
10536 (ada_resolve_function): Likewise.
10537
10538 2019-04-04 Tom Tromey <tom@tromey.com>
10539
10540 * parser-defs.h (struct parser_state) <start_arglist,
10541 end_arglist>: New methods.
10542 <arglist_len, m_funcall_chain>: New members.
10543 (arglist_len, start_arglist, end_arglist): Don't declare.
10544 * parse.c (arglist_len, funcall_chain): Remove global.
10545 (start_arglist, end_arglist): Remove functions.
10546 (parse_exp_in_context): Update.
10547 * p-exp.y: Update rules.
10548 * m2-exp.y: Update rules.
10549 * go-exp.y: Update rules.
10550 * f-exp.y: Update rules.
10551 * d-exp.y: Update rules.
10552 * c-exp.y: Update rules.
10553
10554 2019-04-04 Tom Tromey <tom@tromey.com>
10555
10556 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
10557 lex_operator, push_back>: New methods.
10558 Update all rules.
10559 (rust_parser::lex_hex, lex_escape): Rename and update.
10560 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
10561 (rust_parser::lex_operator): Rename and update.
10562 (rust_parser::lex_number, rustyylex, rustyyerror)
10563 (rust_lex_test_init, rust_lex_test_sequence)
10564 (rust_lex_test_push_back, rust_lex_tests): Update.
10565 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
10566 parameter.
10567 <lexptr, prev_lexptr>: New members.
10568 (lexptr, prev_lexptr): Don't declare.
10569 * parse.c (lexptr, prev_lexptr): Remove globals.
10570 (parse_exp_in_context): Update.
10571 * p-exp.y (yylex, yyerror): Update.
10572 * m2-exp.y (parse_number, yylex, yyerror): Update.
10573 * go-exp.y (lex_one_token, yyerror): Update.
10574 * f-exp.y (match_string_literal, yylex, yyerror): Update.
10575 * d-exp.y (lex_one_token, yyerror): Update.
10576 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
10577 (lex_one_token, yyerror): Update.
10578 * ada-lex.l (YY_INPUT): Update.
10579 (rewind_to_char): Update.
10580 * ada-exp.y (yyerror): Update.
10581
10582 2019-04-04 Tom Tromey <tom@tromey.com>
10583
10584 * rust-exp.y (rustyylex, rust_lex_tests): Update.
10585 * parser-defs.h (struct parser_state) <parser_state>: Add new
10586 parameter.
10587 <comma_terminates>: New member.
10588 (comma_terminates): Don't declare global.
10589 * parse.c (comma_terminates): Remove global.
10590 (parse_exp_in_context): Update.
10591 * p-exp.y (yylex): Update.
10592 * m2-exp.y (yylex): Update.
10593 * go-exp.y (lex_one_token): Update.
10594 * f-exp.y (yylex): Update.
10595 * d-exp.y (lex_one_token): Update.
10596 * c-exp.y (lex_one_token): Update.
10597 * ada-lex.l: Update.
10598
10599 2019-04-04 Tom Tromey <tom@tromey.com>
10600
10601 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
10602 (rustyylex, rust_lex_test_init, rust_lex_test_one)
10603 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
10604 * parser-defs.h (paren_depth): Don't declare.
10605 * parse.c (paren_depth): Remove global.
10606 (parse_exp_in_context): Update.
10607 * p-exp.y (paren_depth): New global.
10608 (pascal_parse): Initialize it.
10609 * m2-exp.y (paren_depth): New global.
10610 (m2_parse): Initialize it.
10611 * go-exp.y (paren_depth): New global.
10612 (go_parse): Initialize it.
10613 * f-exp.y (paren_depth): New global.
10614 (f_parse): Initialize it.
10615 * d-exp.y (paren_depth): New global.
10616 (d_parse): Initialize it.
10617 * c-exp.y (paren_depth): New global.
10618 (c_parse): Initialize it.
10619 * ada-lex.l (paren_depth): New global.
10620 (lexer_init): Initialize it.
10621
10622 2019-04-04 Tom Tromey <tom@tromey.com>
10623
10624 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
10625 (rust_parser::convert_ast_to_type)
10626 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
10627 * parser-defs.h (struct parser_state) <parser_state>: Add
10628 parameters. Initialize new members.
10629 <expression_context_block, expression_context_pc>: New members.
10630 * parse.c (expression_context_block, expression_context_pc):
10631 Remove globals.
10632 (parse_exp_in_context): Update.
10633 * p-exp.y: Update all rules.
10634 (yylex): Update.
10635 * m2-exp.y: Update all rules.
10636 (yylex): Update.
10637 * go-exp.y (yylex): Update.
10638 * f-exp.y (yylex): Update.
10639 * d-exp.y: Update all rules.
10640 (yylex): Update.
10641 * c-exp.y: Update all rules.
10642 (lex_one_token, classify_name, yylex, c_parse): Update.
10643 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
10644
10645 2019-04-04 Tom Tromey <tom@tromey.com>
10646
10647 * gdbarch.h, gdbarch.c: Rebuild.
10648 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
10649 * stap-probe.h:
10650 (struct stap_parse_info): Replace "parser_state" with
10651 "expr_builder".
10652 * parser-defs.h (struct expr_builder): Rename from "parser_state".
10653 (parser_state): New class.
10654 * parse.c (expr_builder): Rename.
10655 (expr_builder::release): Rename.
10656 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
10657 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
10658 (write_exp_elt_longcst, write_exp_elt_floatcst)
10659 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
10660 (write_exp_string_vector, write_exp_bitstring)
10661 (write_exp_msymbol, mark_struct_expression)
10662 (write_dollar_variable)
10663 (insert_type_address_space, increase_expout_size): Replace
10664 "parser_state" with "expr_builder".
10665 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
10666 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
10667 "parser_state" with "expr_builder".
10668
10669 2019-04-04 Tom Tromey <tom@tromey.com>
10670
10671 * rust-exp.y: Replace "parse_language" with method call.
10672 * p-exp.y:
10673 (yylex): Replace "parse_language" with method call.
10674 * m2-exp.y:
10675 (yylex): Replace "parse_language" with method call.
10676 * go-exp.y (classify_name): Replace "parse_language" with method
10677 call.
10678 * f-exp.y (yylex): Replace "parse_language" with method call.
10679 * d-exp.y (lex_one_token): Replace "parse_language" with method
10680 call.
10681 * c-exp.y:
10682 (lex_one_token, classify_name, yylex): Replace "parse_language"
10683 with method call.
10684 * ada-exp.y (find_primitive_type, type_char)
10685 (type_system_address): Replace "parse_language" with method call.
10686
10687 2019-04-04 Tom Tromey <tom@tromey.com>
10688
10689 * rust-exp.y: Replace "parse_gdbarch" with method call.
10690 * parse.c (write_dollar_variable, insert_type_address_space):
10691 Replace "parse_gdbarch" with method call.
10692 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
10693 call.
10694 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
10695 call.
10696 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
10697 "parse_gdbarch" with method call.
10698 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
10699 with method call.
10700 * f-exp.y (parse_type, parse_f_type, yylex): Replace
10701 "parse_gdbarch" with method call.
10702 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
10703 "parse_gdbarch" with method call.
10704 * c-exp.y (parse_type, parse_number, classify_name): Replace
10705 "parse_gdbarch" with method call.
10706 * ada-lex.l: Replace "parse_gdbarch" with method call.
10707 * ada-exp.y (parse_type, find_primitive_type, type_char)
10708 (type_system_address): Replace "parse_gdbarch" with method call.
10709
10710 2019-04-04 Tom Tromey <tom@tromey.com>
10711
10712 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
10713 * stap-probe.c (stap_parse_argument): Update.
10714 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
10715 initial_size parameter.
10716 * rust-exp.y (rust_lex_tests): Update.
10717 * parse.c (parser_state): Update.
10718 (parse_exp_in_context): Update.
10719 * parser-defs.h (struct parser_state) <parser_state>: Remove
10720 "initial_size" parameter.
10721
10722 2019-04-04 Tom Tromey <tom@tromey.com>
10723
10724 * parser-defs.h (increase_expout_size): Don't declare.
10725 * parse.c (increase_expout_size): Now static.
10726
10727 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
10728
10729 * gnu-nat.c (gnu_nat_target::wait): Fix
10730 target_waitstatus_to_string call.
10731
10732 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
10733
10734 * eval.c (evaluate_subexp_standard): Handle internal functions
10735 during Fortran function call handling.
10736
10737 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
10738
10739 * NEWS: Mention new internal functions.
10740 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
10741 (read_base_type): Use dwarf2_init_complex_target_type.
10742 * value.c (creal_internal_fn): New function.
10743 (cimag_internal_fn): New function.
10744 (_initialize_values): Register new internal functions.
10745
10746 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10747
10748 * infrun.c (stop_all_threads): If debug_infrun, always
10749 trace the wait status after wait_one, using
10750 target_waitstatus_to_string and target_pid_to_str.
10751 (handle_inferior_event): Replace various trace of
10752 wait status kind by a single trace.
10753 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
10754 wait status kind image by target_waitstatus_to_string.
10755 * target/waitstatus.c (target_waitstatus_to_string): Fix
10756 obsolete comment.
10757
10758 2019-04-01 Tom Tromey <tromey@adacore.com>
10759
10760 PR symtab/23331:
10761 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
10762
10763 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
10764 Pedro Alves <palves@redhat.com>
10765
10766 * top.c (quit_force): Call 'finalize_values'.
10767 * value.c (finalize_values): New function.
10768 * value.h (finalize_values): Declare.
10769
10770 2019-03-30 Eli Zaretskii <eliz@gnu.org>
10771
10772 * NEWS: Announce $_gdb_major and $_gdb_minor.
10773
10774 * top.c (init_gdb_version_vars): New function.
10775 (gdb_init): Call init_gdb_version_vars.
10776
10777 2019-03-29 Tom Tromey <tromey@adacore.com>
10778
10779 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
10780 help text. Remove dead code.
10781
10782 2019-03-29 Keith Seitz <keiths@redhat.com>
10783
10784 From Siddhesh Poyarekar:
10785 * f-lang.h (f77_get_upperbound): Return LONGEST.
10786 (f77_get_lowerbound): Likewise.
10787 * f-typeprint.c (f_type_print_varspec_suffix): Expand
10788 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
10789 print them.
10790 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
10791 plongest to format print it.
10792 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
10793 (f77_get_upperbound): Likewise.
10794 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
10795 LOWER_BOUND to LONGEST.
10796 (f77_create_arrayprint_offset_tbl): Likewise.
10797
10798 2019-03-29 Keith Seitz <keiths@redhat.com>
10799
10800 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
10801 %s/pulongest for TYPE_LENGTH instead of %d in format
10802 strings.
10803 * ada-typerint.c (ada_print_type): Likewise.
10804 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
10805 * compile/compile-c-support.c (generate_register_struct): Likewise.
10806 * gdbtypes.c (recursive_dump_type): Likewise.
10807 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
10808 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
10809 instead of %d in format strings.
10810 * riscv-tdep.c (riscv_type_alignment): Cast second argument
10811 to std::min to ULONGEST.
10812 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
10813 instead of %d in format strings.
10814 * tracepoint.c (info_scope_command): Likewise.
10815 * typeprint.c (print_offset_data::update)
10816 (print_offset_data::finish): Likewise.
10817 * xtensa-tdep.c (xtensa_store_return_value)
10818 (xtensa_push_dummy_call): Likewise.
10819
10820 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
10821
10822 * windows-nat.c (display_selector): Fixed format specifications
10823 for 64-bit Cygwin.
10824
10825 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10826
10827 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
10828
10829 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
10830
10831 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
10832 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
10833 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
10834 (nios2_linux_init_abi): Install it.
10835
10836 2019-03-28 Alan Hayward <alan.hayward@arm.com>
10837
10838 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
10839
10840 2019-03-28 Alan Hayward <alan.hayward@arm.com>
10841
10842 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
10843
10844 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10845 Tom Tromey <tromey@adacore.com>
10846
10847 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
10848
10849 2019-03-26 Joel Brobecker <brobecker@adacore.com>
10850
10851 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
10852 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
10853 method to compute the bounds of range types. Also print "[evaluated]"
10854 if the bounds' values come from a dynamic evaluation.
10855
10856 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
10857
10858 * cp-valprint.c (cp_print_value_fields): Don't print trailing
10859 whitespace when pretty printing is on.
10860
10861 2019-03-26 Alan Hayward <alan.hayward@arm.com>
10862
10863 * ppc-linux-nat.c: Add include.
10864
10865 2019-03-26 Alan Hayward <alan.hayward@arm.com>
10866
10867 * NEWS: Mention AArch64 Pointer Authentication.
10868
10869 2019-03-26 Alan Hayward <alan.hayward@arm.com>
10870
10871 * arm-linux-nat.c: Add include.
10872
10873 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
10874
10875 * source-cache.c (source_cache::get_source_lines): Re-read
10876 fullname after calling open_source_file.
10877
10878 2019-03-25 John Baldwin <jhb@FreeBSD.org>
10879
10880 * NEWS: Mention TLS support for FreeBSD.
10881
10882 2019-03-25 Tom Tromey <tromey@adacore.com>
10883
10884 * minsyms.c (BUNCH_SIZE): Update comment.
10885 (~minimal_symbol_reader): Remove old comment.
10886 (compact_minimal_symbols): Update comment.
10887 (minimal_symbol_reader::install): Remove old comment. Update
10888 other comments.
10889
10890 2019-03-25 Alan Hayward <alan.hayward@arm.com>
10891
10892 * s390-linux-nat.c: Add include.
10893
10894 2019-03-25 Alan Hayward <alan.hayward@arm.com>
10895
10896 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
10897 Call linux_get_hwcap.
10898 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
10899 Likewise.
10900 (aarch64_linux_get_hwcap): Remove function.
10901 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
10902 declaration.
10903 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
10904 linux_get_hwcap.
10905 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
10906 * linux-tdep.c (linux_get_hwcap): Add function.
10907 (linux_get_hwcap2): Likewise.
10908 * linux-tdep.h (linux_get_hwcap): Add declaration.
10909 (linux_get_hwcap2): Likewise.
10910 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
10911 (ppc_linux_get_hwcap2): Likewise.
10912 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
10913 linux_get_hwcap.
10914 (ppc_linux_nat_target::insert_watchpoint): Likewise.
10915 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
10916 (ppc_linux_nat_target::read_description): Likewise.
10917 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
10918 * s390-linux-nat.c: Likewise.
10919 * s390-linux-tdep.c (s390_core_read_description): Likewise.
10920
10921 2019-03-24 Tom Tromey <tom@tromey.com>
10922
10923 * ada-lang.c (standard_lookup): Simplify initialization.
10924 (ada_lookup_symbol_nonlocal): Simplify return.
10925 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
10926 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
10927 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
10928 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
10929 initialization.
10930 * solib.c (solib_global_lookup): Simplify.
10931 * symtab.c (null_block_symbol): Remove.
10932 (symbol_cache_lookup): Simplify returns.
10933 (lookup_language_this): Simplify returns.
10934 (lookup_symbol_aux): Simplify return.
10935 (lookup_local_symbol): Simplify returns.
10936 (lookup_global_symbol_from_objfile): Simplify return.
10937 (lookup_symbol_in_objfile_symtabs)
10938 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
10939 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
10940 (lookup_static_symbol, lookup_global_symbol): Simplify return.
10941 * cp-namespace.c (cp_lookup_bare_symbol)
10942 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
10943 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
10944 (cp_lookup_nested_symbol): Don't use null_block_symbol.
10945 (cp_lookup_symbol_via_imports): Simplify initialization.
10946 (find_symbol_in_baseclass): Likewise.
10947 * symtab.h (null_block_symbol): Remove.
10948 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
10949 (d_lookup_nested_symbol, d_lookup_symbol_imports)
10950 (d_lookup_symbol_module): Likewise.
10951 (find_symbol_in_baseclass): Simplify initialization.
10952
10953 2019-03-24 Tom Tromey <tom@tromey.com>
10954
10955 * expression.h: Don't include symtab.h.
10956 (struct block): Forward declare.
10957
10958 2019-03-24 Tom Tromey <tom@tromey.com>
10959
10960 * c-exp.y (typebase): Remove casts.
10961 * gdbtypes.c (lookup_unsigned_typename, )
10962 (lookup_signed_typename): Remove cast.
10963 * eval.c (parse_to_comma_and_eval): Remove cast.
10964 * parse.c (write_dollar_variable): Remove cast.
10965 * block.h (struct block) <superblock>: Now const.
10966 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
10967 * psymtab.c (psym_map_matching_symbols): Make "block" const.
10968 (map_block): Make "block" const.
10969 * symfile.h (struct quick_symbol_functions)
10970 <map_matching_symbols>: Constify block argument to "callback".
10971 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
10972 const.
10973 (find_pc_sect_compunit_symtab): Make "b" const.
10974 (find_symbol_at_address): Likewise.
10975 (search_symbols): Likewise.
10976 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
10977 (dw2_debug_names_lookup_symbol): Likewise.
10978 (dw2_map_matching_symbols): Update.
10979 * p-valprint.c (pascal_val_print): Remove "block".
10980 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
10981 (aux_add_nonlocal_symbols): Make "block" const.
10982 (resolve_subexp): Remove cast.
10983 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
10984 const.
10985 (iterate_over_file_blocks): Likewise.
10986 * f-exp.y (%union) <bval>: Remove.
10987 * coffread.c (patch_opaque_types): Make "b" const.
10988 * spu-tdep.c (spu_catch_start): Make "block" const.
10989 * c-valprint.c (print_unpacked_pointer): Remove "block".
10990 * symmisc.c (dump_symtab_1): Make "b" const.
10991 (block_depth): Make "block" const.
10992 * d-exp.y (%union) <bval>: Remove.
10993 * cp-support.h (cp_lookup_rtti_type): Update.
10994 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
10995 * psymtab.c (psym_lookup_symbol): Make "block" const.
10996 (maintenance_check_psymtabs): Make "b" const.
10997 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
10998 (enumerate_locals, enumerate_args): Update.
10999 * python/py-symtab.c (stpy_global_block): Make "block" const.
11000 (stpy_static_block): Likewise.
11001 * inline-frame.c (block_starting_point_at): Make "new_block"
11002 const.
11003 * block.c (find_block_in_blockvector): Make return type const.
11004 (blockvector_for_pc_sect): Make "b" const.
11005 (find_block_in_blockvector): Make "b" const.
11006
11007 2019-03-23 Tom Tromey <tom@tromey.com>
11008
11009 * varobj.c (varobj_create): Update.
11010 * symfile.c (clear_symtab_users): Don't reset innermost_block.
11011 * printcmd.c (display_command, do_one_display): Don't reset
11012 innermost_block.
11013 * parser-defs.h (enum innermost_block_tracker_type): Move to
11014 expression.h.
11015 (innermost_block): Update comment.
11016 * parse.c (parse_exp_1): Add tracker_types parameter.
11017 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
11018 tracker_types parameter. Reset innermost_block.
11019 (parse_exp_in_context): Remove.
11020 (parse_expression_for_completion): Update.
11021 * objfiles.c (~objfile): Don't reset expression_context_block or
11022 innermost_block.
11023 * expression.h (enum innermost_block_tracker_type): Move from
11024 parser-defs.h.
11025 (parse_exp_1): Add tracker_types parameter.
11026 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
11027 reset innermost_block.
11028
11029 2019-03-23 Tom Tromey <tom@tromey.com>
11030
11031 * objfiles.h: Include bcache.h.
11032
11033 2019-03-23 Tom Tromey <tom@tromey.com>
11034
11035 * linespec.c (get_current_search_block): Use
11036 scoped_restore_current_language.
11037 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
11038
11039 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11040 Jiong Wang <jiong.wang@arm.com>
11041
11042 * aarch64-linux-tdep.c
11043 (aarch64_linux_iterate_over_regset_sections): Check for pauth
11044 section.
11045 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
11046
11047 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11048 Jiong Wang <jiong.wang@arm.com>
11049
11050 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
11051 instructions.
11052 (aarch64_analyze_prologue_test): Add PACIASP test.
11053 (aarch64_prologue_prev_register): Unmask PC value.
11054
11055 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11056 Jiong Wang <jiong.wang@arm.com>
11057
11058 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
11059 (aarch64_dwarf2_prev_register): Unmask PC value.
11060 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
11061 (aarch64_execute_dwarf_cfa_vendor_op): Check for
11062 DW_CFA_AARCH64_negate_ra_state.
11063 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
11064
11065 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11066 Jiong Wang <jiong.wang@arm.com>
11067
11068 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
11069 registers.
11070 (aarch64_pseudo_register_name): Likewise.
11071 (aarch64_pseudo_register_type): Likewise.
11072 (aarch64_pseudo_register_reggroup_p): Likewise.
11073 (aarch64_gdbarch_init): Add pauth registers.
11074 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
11075 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
11076 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
11077 (struct gdbarch_tdep): Add regnum for ra_state.
11078
11079 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11080 Jiong Wang <jiong.wang@arm.com>
11081
11082 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
11083
11084 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11085 Jiong Wang <jiong.wang@arm.com>
11086
11087 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
11088 function.
11089 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
11090 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
11091 (aarch64_gdbarch_init): Add puth registers.
11092 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
11093 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
11094 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
11095
11096 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11097 Jiong Wang <jiong.wang@arm.com>
11098
11099 * aarch64-linux-nat.c
11100 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
11101 * aarch64-linux-tdep.c
11102 (aarch64_linux_core_read_description): Likewise.
11103 (aarch64_linux_get_hwcap): New function.
11104 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
11105 (aarch64_linux_get_hwcap): New declaration.
11106
11107 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11108 Jiong Wang <jiong.wang@arm.com>
11109
11110 * aarch64-linux-nat.c
11111 (aarch64_linux_nat_target::read_description): Add pauth param.
11112 * aarch64-linux-tdep.c
11113 (aarch64_linux_core_read_description): Likewise.
11114 * aarch64-tdep.c (struct target_desc): Add in pauth.
11115 (aarch64_read_description): Add pauth param.
11116 (aarch64_gdbarch_init): Likewise.
11117 * aarch64-tdep.h (aarch64_read_description): Likewise.
11118 * arch/aarch64.c (aarch64_create_target_description): Likewise.
11119 * arch/aarch64.h (aarch64_create_target_description): Likewise.
11120 * features/Makefile: Add new files.
11121 * features/aarch64-pauth.c: New file.
11122 * features/aarch64-pauth.xml: New file.
11123
11124 2019-03-20 Tom Tromey <tromey@adacore.com>
11125
11126 * infrun.c (handle_inferior_event): Rename from
11127 handle_inferior_event_1. Create a scoped_value_mark.
11128 (handle_inferior_event): Remove.
11129
11130 2019-03-19 Tom Tromey <tromey@adacore.com>
11131
11132 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
11133 * infrun.h (print_stop_event): Add "displays" parameter.
11134 * infrun.c (print_stop_event): Add "displays" parameter.
11135
11136 2019-03-19 Pedro Alves <palves@redhat.com>
11137
11138 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
11139 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
11140 to -1. Fix TABs vs spaces.
11141 (tui_ui_out::tui_ui_out): Don't initialize fields here.
11142 * tui/tui-out.h (tui_ui_out) Add intro comments.
11143 <m_line, m_start_of_line>: In-class initialize, and add describing
11144 comment.
11145
11146 2019-03-18 Alan Hayward <alan.hayward@arm.com>
11147
11148 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
11149 variable names.
11150 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
11151
11152 2019-03-18 Pedro Alves <palves@redhat.com>
11153 Eli Zaretskii <eliz@gnu.org>
11154
11155 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
11156 m_line and m_start_of_line.
11157
11158 2019-03-18 Eli Zaretskii <eliz@gnu.org>
11159
11160 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
11161 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
11162 it returns a newline. This fixes a regression in TU mode, whereby
11163 the next line is output on the same screen line as the user input.
11164
11165 2019-03-18 Tom Tromey <tromey@adacore.com>
11166
11167 * minsyms.c (minimal_symbol_reader::install): Remove call to
11168 obstack_blank.
11169
11170 2019-03-18 Pedro Alves <palves@redhat.com>
11171
11172 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
11173 New globals.
11174 (apply_style): New, factored out from ...
11175 (apply_ansi_escape): ... this. Handle reverse video mode.
11176 (tui_set_reverse_mode): New function.
11177 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
11178 * tui/tui-winsource.c (tui_show_source_line): Use
11179 tui_set_reverse_mode instead of setting A_STANDOUT.
11180 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
11181 New setter methods.
11182
11183 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
11184
11185 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
11186 Handle tabs.
11187
11188 2019-03-18 Tom Tromey <tromey@adacore.com>
11189
11190 * ada-lang.c (empty_array): Add "high" parameter.
11191 (ada_evaluate_subexp): Update.
11192
11193 2019-03-17 Sergei Trofimovich <siarheit@google.com>
11194
11195 * unittests/string_view-selftests.c: Define
11196 _initialize_string_view_selftests unconditionally.
11197
11198 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
11199
11200 PR gdb/24350
11201 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
11202
11203 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
11204
11205 PR gdb/24351
11206 * windows-nat.c (display_selector): Fix format specifiers.
11207
11208 2019-03-17 Eli Zaretskii <eliz@gnu.org>
11209
11210 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
11211 tui_refill_source_window instead of tui_refresh_win, to update the
11212 current execution line. This fixes redisplay of the current line
11213 when stepping through the code with "next" or "step".
11214
11215 2019-03-16 Eli Zaretskii <eliz@gnu.org>
11216
11217 * source-cache.c (source_cache::get_source_lines): Call
11218 find_source_lines to initialize s->nlines. This fixes vertical
11219 scrolling of TUI source window when the DOWN arrow is pressed.
11220
11221 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11222
11223 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
11224 linux-thread-db.c (_initialize_thread_db): Likewise.
11225
11226 2019-03-16 Eli Zaretskii <eliz@gnu.org>
11227
11228 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
11229 wclrtoeol in tui_show_source_line". This reverts changes made in
11230 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
11231
11232 2019-03-15 Tom Tromey <tom@tromey.com>
11233
11234 * symtab.h (struct minimal_symbol): Derive from
11235 general_symbol_info.
11236 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
11237 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
11238 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
11239 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
11240 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
11241 (MSYMBOL_SEARCH_NAME): Update.
11242 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
11243 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
11244 * minsyms.c (minimal_symbol_reader::record_full): Update.
11245
11246 2019-03-15 Tom Tromey <tom@tromey.com>
11247
11248 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
11249
11250 2019-03-15 Tom Tromey <tom@tromey.com>
11251
11252 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
11253 unique_xmalloc_ptr.
11254 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
11255 Update.
11256 * minsyms.c (lookup_minimal_symbol_by_pc_section)
11257 (build_minimal_symbol_hash_tables)
11258 (minimal_symbol_reader::install): Update.
11259
11260 2019-03-15 Tom Tromey <tom@tromey.com>
11261
11262 * symtab.c (create_demangled_names_hash): Update.
11263 (symbol_set_names): Update.
11264 * objfiles.h (struct objfile_per_bfd_storage)
11265 <demangled_names_hash>: Now an htab_up.
11266 * objfiles.c (objfile_per_bfd_storage): Simplify.
11267
11268 2019-03-15 Tom Tromey <tom@tromey.com>
11269
11270 * objfiles.h (struct objfile_per_bfd_storage): Declare
11271 destructor.
11272 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
11273 New.
11274 (get_objfile_bfd_data): Use new. Don't initialize
11275 language_of_main.
11276 (free_objfile_per_bfd_storage): Remove.
11277 (objfile_bfd_data_free, objfile::~objfile): Use delete.
11278
11279 2019-03-15 Tom Tromey <tom@tromey.com>
11280
11281 * symfile.c (reread_symbols): Update.
11282 * objfiles.c (objfile::objfile): Update.
11283 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
11284 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
11285 comment.
11286 (minimal_symbol_reader::install): Update.
11287 (terminate_minimal_symbol_table): Remove.
11288 * jit.c (jit_object_close_impl): Update.
11289
11290 2019-03-15 Tom Tromey <tom@tromey.com>
11291
11292 * minsyms.c (minimal_symbol_reader::record_full): Remove some
11293 initializations.
11294
11295 2019-03-15 Tom Tromey <tom@tromey.com>
11296
11297 * objfiles.h (struct objfile_per_bfd_storage)
11298 <demangled_hash_languages>: Now a bitset.
11299 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
11300 (lookup_minimal_symbol): Update.
11301
11302 2019-03-15 Tom Tromey <tom@tromey.com>
11303
11304 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
11305 Don't return the symbol.
11306 * coffread.c (record_minimal_symbol): Use record_full.
11307
11308 2019-03-14 Eli Zaretskii <eliz@gnu.org>
11309
11310 The MS-Windows port of ncurses fails to switch to a color pair if
11311 one or both of the colors are the implicit default colors. This
11312 change records the default colors when TUI is initialized, and
11313 then specifies them explicitly when a color pair uses the default
11314 colors. This allows color styling in TUI mode on MS-Windows.
11315
11316 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
11317 ncurses_norm_attr.
11318 (tui_initialize_io) [__MINGW32__]: Record the default terminal
11319 colors in ncurses_norm_attr.
11320 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
11321 "none", replace it with the default color recorded in
11322 ncurses_norm_attr.
11323
11324 2019-03-14 Tom Tromey <tromey@adacore.com>
11325
11326 * source-cache.h (class source_cache) <get_source_lines>: Return
11327 std::string.
11328 * source-cache.c (source_cache::extract_lines): Handle case where
11329 first_pos==npos. Return std::string.
11330 (source_cache::get_source_lines): Update.
11331
11332 2019-03-14 Tom Tromey <tromey@adacore.com>
11333
11334 * NEWS: Add item for "style sources" commands.
11335 * source-cache.c (source_cache::get_source_lines): Check
11336 source_styling.
11337 * cli/cli-style.c (source_styling): New global.
11338 (_initialize_cli_style): Add "style sources" commands.
11339 (show_style_sources): New function.
11340 * cli/cli-style.h (source_styling): Declare.
11341
11342 2019-03-14 Pedro Alves <palves@redhat.com>
11343 Tom Tromey <tromey@adacore.com>
11344
11345 * tui/tui-winsource.h (tui_refill_source_window): Declare.
11346 * tui/tui-winsource.c (tui_refill_source_window): New function,
11347 from...
11348 (tui_horizontal_source_scroll): ... here. Move some logic.
11349 * cli/cli-style.c (set_style_enabled): Notify new observable.
11350 * tui/tui-hooks.c (tui_redisplay_source): New function.
11351 (tui_attach_detach_observers): Attach or detach
11352 tui_redisplay_source.
11353 * observable.h (source_styling_changed): New observable.
11354 * observable.c: Define source_styling_changed observable.
11355
11356 2019-03-13 Tom Tromey <tromey@adacore.com>
11357
11358 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
11359 (i386_gnu_nat_target::store_registers): Update.
11360 * target-debug.h (target_debug_print_std_string): New macro.
11361 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
11362 * windows-tdep.c (display_one_tib): Update.
11363 * tui/tui-stack.c (tui_make_status_line): Update.
11364 * top.c (print_inferior_quit_action): Update.
11365 * thread.c (thr_try_catch_cmd): Update.
11366 (add_thread_with_info): Update.
11367 (thread_target_id_str): Update.
11368 (thr_try_catch_cmd): Update.
11369 (thread_command): Update.
11370 (thread_find_command): Update.
11371 * record-btrace.c (record_btrace_target::info_record)
11372 (record_btrace_resume_thread, record_btrace_target::resume)
11373 (record_btrace_cancel_resume, record_btrace_step_thread)
11374 (record_btrace_target::wait, record_btrace_target::wait)
11375 (record_btrace_target::wait, record_btrace_target::stop): Update.
11376 * progspace.c (print_program_space): Update.
11377 * process-stratum-target.c
11378 (process_stratum_target::thread_address_space): Update.
11379 * linux-fork.c (linux_fork_mourn_inferior)
11380 (detach_checkpoint_command, info_checkpoints_command)
11381 (linux_fork_context): Update.
11382 (linux_fork_detach): Update.
11383 (class scoped_switch_fork_info): Update.
11384 (delete_checkpoint_command): Update.
11385 * infrun.c (follow_fork_inferior): Update.
11386 (follow_fork_inferior): Update.
11387 (proceed_after_vfork_done): Update.
11388 (handle_vfork_child_exec_or_exit): Update.
11389 (follow_exec): Update.
11390 (displaced_step_prepare_throw): Update.
11391 (displaced_step_restore): Update.
11392 (start_step_over): Update.
11393 (resume_1): Update.
11394 (clear_proceed_status_thread): Update.
11395 (proceed): Update.
11396 (print_target_wait_results): Update.
11397 (do_target_wait): Update.
11398 (context_switch): Update.
11399 (stop_all_threads): Update.
11400 (restart_threads): Update.
11401 (finish_step_over): Update.
11402 (handle_signal_stop): Update.
11403 (switch_back_to_stepped_thread): Update.
11404 (keep_going_pass_signal): Update.
11405 (print_exited_reason): Update.
11406 (normal_stop): Update.
11407 * inferior.c (inferior_pid_to_str): Change return type.
11408 (print_selected_inferior): Update.
11409 (add_inferior): Update.
11410 (detach_inferior): Update.
11411 * dummy-frame.c (fprint_dummy_frames): Update.
11412 * dcache.c (dcache_info_1): Update.
11413 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
11414 (btrace_fetch, btrace_clear): Update.
11415 * linux-tdep.c (linux_core_pid_to_str): Change return type.
11416 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
11417 type.
11418 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
11419 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
11420 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
11421 * gdbarch.c, gdbarch.h: Rebuild.
11422 * gdbarch.sh (core_pid_to_str): Change return type.
11423 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
11424 return type.
11425 (windows_nat_target::pid_to_str): Change return type.
11426 (windows_delete_thread): Update.
11427 (windows_nat_target::attach): Update.
11428 (windows_nat_target::files_info): Update.
11429 * target-delegates.c: Rebuild.
11430 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
11431 return type.
11432 (sol_thread_target::pid_to_str): Change return type.
11433 * remote.c (class remote_target) <pid_to_str>: Change return
11434 type.
11435 (remote_target::pid_to_str): Change return type.
11436 (extended_remote_target::attach, remote_target::remote_stop_ns)
11437 (remote_target::remote_notif_remove_queued_reply)
11438 (remote_target::push_stop_reply, remote_target::disable_btrace):
11439 Update.
11440 (extended_remote_target::attach): Update.
11441 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
11442 type.
11443 (gdbsim_target::pid_to_str): Change return type.
11444 * ravenscar-thread.c (struct ravenscar_thread_target)
11445 <pid_to_str>: Change return type.
11446 (ravenscar_thread_target::pid_to_str): Change return type.
11447 * procfs.c (class procfs_target) <pid_to_str>: Change return
11448 type.
11449 (procfs_target::pid_to_str): Change return type.
11450 (procfs_target::attach): Update.
11451 (procfs_target::detach): Update.
11452 (procfs_target::fetch_registers): Update.
11453 (procfs_target::store_registers): Update.
11454 (procfs_target::wait): Update.
11455 (procfs_target::files_info): Update.
11456 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
11457 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
11458 return type.
11459 (nto_procfs_target::pid_to_str): Change return type.
11460 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
11461 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
11462 return type.
11463 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
11464 (exit_lwp): Update.
11465 (attach_proc_task_lwp_callback, get_detach_signal)
11466 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
11467 (linux_nat_target::resume, wait_lwp, stop_callback)
11468 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
11469 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
11470 (linux_nat_wait_1, resume_stopped_resumed_lwps)
11471 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
11472 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
11473 type.
11474 (inf_ptrace_target::attach): Update.
11475 (inf_ptrace_target::files_info): Update.
11476 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
11477 type.
11478 (go32_nat_target::pid_to_str): Change return type.
11479 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
11480 (gnu_nat_target::wait): Update.
11481 (gnu_nat_target::wait): Update.
11482 (gnu_nat_target::resume): Update.
11483 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
11484 (fbsd_nat_target::wait): Update.
11485 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
11486 type.
11487 (darwin_nat_target::attach): Update.
11488 * corelow.c (class core_target) <pid_to_str>: Change return type.
11489 (core_target::pid_to_str): Change return type.
11490 * target.c (normal_pid_to_str): Change return type.
11491 (default_pid_to_str): Likewise.
11492 (target_pid_to_str): Change return type.
11493 (target_translate_tls_address): Update.
11494 (target_announce_detach): Update.
11495 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
11496 return type.
11497 (bsd_uthread_target::pid_to_str): Change return type.
11498 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
11499 type.
11500 (bsd_kvm_target::pid_to_str): Change return type.
11501 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
11502 return type.
11503 (aix_thread_target::pid_to_str): Change return type.
11504 * target.h (struct target_ops) <pid_to_str>: Change return type.
11505 (target_pid_to_str, normal_pid_to_str): Likewise.
11506 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
11507 type.
11508 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
11509 type.
11510 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
11511 return type.
11512 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
11513 type.
11514 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
11515 type.
11516 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
11517 return type.
11518
11519 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
11520
11521 * NEWS: Mention that the new default MI version is 3. Mention
11522 changes to the output of commands and events that deal with
11523 multi-location breakpoints.
11524 * breakpoint.c: Include "mi/mi-out.h".
11525 (print_one_breakpoint): Change output syntax if using MI version
11526 >= 3.
11527 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
11528 New.
11529 (mi_multi_location_breakpoint_output_fixed): New.
11530 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
11531 (mi_cmd_fix_multi_location_breakpoint_output): New.
11532 (mi_multi_location_breakpoint_output_fixed): New.
11533 * mi/mi-cmds.c (mi_cmds): Register command
11534 -fix-multi-location-breakpoint-output.
11535 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
11536 interpreter "mi".
11537
11538 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
11539
11540 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
11541 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
11542 instantiate mi_ui_out based on interpreter name.
11543 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
11544 * mi/mi-main.c (mi_load_progress): Likewise.
11545
11546 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11547
11548 * NEWS: Combine separate "New targets" sections for 8.3.
11549
11550 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11551
11552 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
11553 (ppcfbsd_init_abi): Install gdbarch
11554 "fetch_tls_load_module_address" and "get_thread_local_address"
11555 methods.
11556
11557 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11558
11559 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
11560 (riscv_fbsd_init_abi): Install gdbarch
11561 "fetch_tls_load_module_address" and "get_thread_local_address"
11562 methods.
11563
11564 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11565
11566 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
11567 (i386fbsd_init_abi): Install gdbarch
11568 "fetch_tls_load_module_address" and "get_thread_local_address"
11569 methods.
11570
11571 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11572
11573 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
11574 (amd64fbsd_init_abi): Install gdbarch
11575 "fetch_tls_load_module_address" and "get_thread_local_address"
11576 methods.
11577
11578 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11579
11580 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
11581 (struct fbsd_pspace_data): New type.
11582 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
11583 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
11584 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
11585 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
11586 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
11587
11588 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11589
11590 * gdbtypes.c (lookup_struct_elt): New function.
11591 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
11592 * gdbtypes.h (struct struct_elt): New type.
11593 (lookup_struct_elt): New prototype.
11594
11595 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11596
11597 * gdbtypes.c (lookup_struct_elt_type): Update comment and
11598 remove disabled code block.
11599
11600 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11601
11602 * gdbarch.sh (get_thread_local_address): New method.
11603 * gdbarch.h, gdbarch.c: Regenerate.
11604 * target.c (target_translate_tls_address): Use
11605 gdbarch_get_thread_local_address if present instead of
11606 target::get_thread_local_address.
11607
11608 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11609
11610 * target.h (target::get_thread_local_address): Update comment.
11611
11612 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11613
11614 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
11615 objfile->separate_debug_objfile_backlink if not NULL.
11616
11617 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11618
11619 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
11620 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
11621 (amd64bsd_store_inferior_registers): Likewise.
11622 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
11623 Enable segment base registers.
11624 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
11625 PT_GETFSBASE and PT_GETGSBASE.
11626 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
11627 PT_SETGSBASE.
11628 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
11629 segment base registers.
11630 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
11631
11632 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11633
11634 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
11635 Update calls to i386_target_description to add 'segments'
11636 parameter.
11637 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
11638 add segment base registers.
11639 * arch/i386.c (i386_create_target_description): Add 'segments'
11640 parameter to enable segment base registers.
11641 * arch/i386.h (i386_create_target_description): Likewise.
11642 * features/i386/32bit-segments.xml: New file.
11643 * features/i386/32bit-segments.c: Generate.
11644 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
11645 call to i386_target_description to add 'segments' parameter.
11646 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
11647 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
11648 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
11649 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
11650 if feature is present.
11651 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
11652 Add 'segments' parameter to call to i386_target_description.
11653 (i386_target_description): Add 'segments' parameter to enable
11654 segment base registers.
11655 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
11656 to call to i386_target_description.
11657 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
11658 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
11659 Define I386_NUM_REGS.
11660 (i386_target_description): Add 'segments' parameter to enable
11661 segment base registers.
11662
11663 2019-03-12 Eli Zaretskii <eliz@gnu.org>
11664
11665 PR/24325
11666 * source-cache.c: #undef open and close, to avoid unresolved
11667 externals during linking.
11668
11669 2019-03-12 Tom Tromey <tromey@adacore.com>
11670
11671 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
11672 const. Add initializers.
11673 (_initialize_remote): Don't initialize ptid globals.
11674
11675 2019-03-12 Pedro Alves <palves@redhat.com>
11676
11677 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
11678
11679 2019-03-12 Pedro Alves <palves@redhat.com>
11680
11681 * cp-name-parser.y (main): Remove unused 'len' variable.
11682
11683 2019-03-12 Tom Tromey <tromey@adacore.com>
11684
11685 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
11686 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
11687
11688 2019-03-12 Tom Tromey <tromey@adacore.com>
11689
11690 * linux-nat.c (iterate_over_lwps): Update.
11691 (stop_callback): Remove parameter.
11692 (stop_wait_callback, detach_callback, resume_set_callback)
11693 (select_singlestep_lwp_callback, set_ignore_sigint)
11694 (status_callback, resumed_callback, resume_clear_callback)
11695 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
11696 data parameter.
11697 (linux_nat_target::detach, linux_nat_target::resume)
11698 (linux_stop_and_wait_all_lwps, select_event_lwp)
11699 (linux_nat_filter_event, linux_nat_wait_1)
11700 (linux_nat_target::kill, linux_nat_target::stop)
11701 (linux_nat_target::stop): Update.
11702 (linux_nat_resume_callback): Change type.
11703 (resume_stopped_resumed_lwps, count_events_callback)
11704 (select_event_lwp_callback): Likewise.
11705 (linux_stop_lwp, linux_nat_stop_lwp): Update.
11706 * arm-linux-nat.c (struct update_registers_data): Remove.
11707 (update_registers_callback): Change type.
11708 (arm_linux_insert_hw_breakpoint1): Update.
11709 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
11710 parameter.
11711 (x86_linux_dr_set_addr): Update.
11712 (x86_linux_dr_set_control): Update.
11713 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
11714 (iterate_over_lwps): Use gdb::function_view.
11715 * nat/aarch64-linux-hw-point.c (struct
11716 aarch64_dr_update_callback_param): Remove.
11717 (debug_reg_change_callback): Change type.
11718 (aarch64_notify_debug_reg_change): Update.
11719 * s390-linux-nat.c (s390_refresh_per_info): Update.
11720
11721 2019-03-11 Tom Tromey <tromey@adacore.com>
11722
11723 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
11724 redundant assignment to "this_cu".
11725
11726 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11727
11728 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
11729
11730 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11731
11732 * gdbtypes.c (rank_one_type_parm_set): New function extracted
11733 from...
11734 (rank_one_type): ... this.
11735
11736 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11737
11738 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
11739 from...
11740 (rank_one_type): ... this.
11741
11742 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11743
11744 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
11745 from...
11746 (rank_one_type): ... this.
11747
11748 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11749
11750 * gdbtypes.c (rank_one_type_parm_float): New function extracted
11751 from...
11752 (rank_one_type): ... this.
11753
11754 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11755
11756 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
11757 from...
11758 (rank_one_type): ... this.
11759
11760 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11761
11762 * gdbtypes.c (rank_one_type_parm_range): New function extracted
11763 from...
11764 (rank_one_type): ... this.
11765
11766 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11767
11768 * gdbtypes.c (rank_one_type_parm_char): New function extracted
11769 from...
11770 (rank_one_type): ... this.
11771
11772 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11773
11774 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
11775 from...
11776 (rank_one_type): ... this.
11777
11778 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11779
11780 * gdbtypes.c (rank_one_type_parm_int): New function extracted
11781 from...
11782 (rank_one_type): ... this.
11783
11784 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11785
11786 * gdbtypes.c (rank_one_type_parm_func): New function extracted
11787 from...
11788 (rank_one_type): ... this.
11789
11790 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11791
11792 * gdbtypes.c (rank_one_type_parm_array): New function extracted
11793 from...
11794 (rank_one_type): ... this.
11795
11796 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11797
11798 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
11799 from...
11800 (rank_one_type): ... this.
11801
11802 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11803
11804 * inferior.c (initialize_inferiors): Ensure 'help set/show print
11805 inferior-events' shows the example events.
11806
11807 2019-03-08 Eli Zaretskii <eliz@gnu.org>
11808
11809 Support styling on native MS-Windows console
11810
11811 PR/24315
11812 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
11813 on MS-Windows if $TERM is not defined.
11814
11815 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
11816
11817 * posix-hdep.c (gdb_console_fputs):
11818 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
11819 functions.
11820 * ui-file.h (gdb_console_fputs): Add prototype.
11821
11822 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
11823 back to fputs only if the former returns zero.
11824
11825 2019-03-07 Tom Tromey <tom@tromey.com>
11826
11827 * symmisc.c (print_symbol_bcache_statistics): Update.
11828 (print_objfile_statistics): Update.
11829 * symfile.c (allocate_symtab): Update.
11830 * stabsread.c: Don't include bcache.h.
11831 * psymtab.h (struct psymbol_bcache): Don't declare.
11832 (class psymtab_storage) <psymbol_cache>: Now a bcache.
11833 (psymbol_bcache_init, psymbol_bcache_free)
11834 (psymbol_bcache_get_bcache): Don't declare.
11835 * psymtab.c (struct psymbol_bcache): Remove.
11836 (psymtab_storage::psymtab_storage): Update.
11837 (psymtab_storage::~psymtab_storage): Update.
11838 (psymbol_bcache_init, psymbol_bcache_free)
11839 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
11840 (add_psymbol_to_bcache): Update.
11841 (allocate_psymtab): Update.
11842 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
11843 macro_cache>: No longer pointers.
11844 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
11845 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
11846 * macrotab.c (macro_bcache): Update.
11847 * macroexp.c: Don't include bcache.h.
11848 * gdbtypes.c (check_types_worklist): Update.
11849 (types_deeply_equal): Remove TRY/CATCH. Update.
11850 * elfread.c (elf_symtab_read): Update.
11851 * dwarf2read.c: Don't include bcache.h.
11852 * buildsym.c (buildsym_compunit::get_macro_table): Update.
11853 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
11854 (print_bcache_statistics, bcache_memory_used): Don't declare.
11855 (struct bcache): Move from bcache.c. Add constructor, destructor,
11856 methods. Rename all data members.
11857 * bcache.c (struct bcache): Move to bcache.h.
11858 (bcache::expand_hash_table): Rename from expand_hash_table.
11859 (bcache): Remove.
11860 (bcache::insert): Rename from bcache_full.
11861 (bcache::compare): Rename from bcache_compare.
11862 (bcache_xmalloc): Remove.
11863 (bcache::~bcache): Rename from bcache_xfree.
11864 (bcache::print_statistics): Rename from print_bcache_statistics.
11865 (bcache::memory_used): Rename from bcache_memory_used.
11866
11867 2019-03-07 Pedro Alves <palves@redhat.com>
11868
11869 * infrun.c (normal_stop): Also check for
11870 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
11871
11872 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
11873
11874 * f-lang.c (value_from_host_double): Moved to...
11875 * value.c (value_from_host_double): ...here.
11876 * value.h (value_from_host_double): Declare.
11877 * guile/scm-math.c (vlscm_convert_typed_number): Use
11878 value_from_host_double.
11879 (vlscm_convert_number): Likewise.
11880 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
11881 * python/py-value.c (convert_value_from_python): Likewise.
11882
11883 2019-03-06 Tom Tromey <tom@tromey.com>
11884
11885 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
11886
11887 2019-03-06 Tom Tromey <tom@tromey.com>
11888
11889 * utils.h (free_current_contents): Don't declare.
11890 * utils.c (free_current_contents): Remove.
11891
11892 2019-03-06 Tom Tromey <tom@tromey.com>
11893
11894 * top.c (quit_force): Update.
11895 * main.c (captured_command_loop): Update.
11896 * common/new-op.c (operator new): Update.
11897 * common/common-exceptions.c (struct catcher)
11898 <save_cleanup_chain>: Remove member.
11899 (exceptions_state_mc_init): Update.
11900 (exception_try_scope_entry): Return nullptr.
11901 (exception_try_scope_exit, exception_rethrow)
11902 (throw_exception_sjlj, throw_exception_cxx): Update.
11903 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
11904 (all_cleanups, do_cleanups, discard_cleanups)
11905 (discard_final_cleanups, save_cleanups, save_final_cleanups)
11906 (restore_cleanups, restore_final_cleanups): Don't declare.
11907 (do_final_cleanups): Remove parameter.
11908 * common/cleanups.c (cleanup_chain, make_cleanup)
11909 (make_cleanup_dtor, all_cleanups, do_cleanups)
11910 (discard_my_cleanups, discard_cleanups)
11911 (discard_final_cleanups, save_my_cleanups, save_cleanups)
11912 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
11913 (null_cleanup): Remove.
11914 (do_final_cleanups): Remove parameter.
11915
11916 2019-03-06 Tom Tromey <tom@tromey.com>
11917
11918 * remote.c (remote_target::remote_parse_stop_reply): Use
11919 unique_xmalloc_ptr.
11920
11921 2019-03-06 Tom Tromey <tom@tromey.com>
11922
11923 * stabsread.c (struct stabs_field_info): Rename from field_info.
11924 <list, fnlist>: Add initializers.
11925 <obstack>: New member.
11926 (read_member_functions, read_struct_fields, read_baseclasses):
11927 Allocate on obstack. Don't use cleanups.
11928 (read_one_struct_field, read_member_functions, read_struct_fields)
11929 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
11930 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
11931 (read_struct_type): Update.
11932
11933 2019-03-06 Tom Tromey <tom@tromey.com>
11934
11935 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
11936 * common/filestuff.h (make_cleanup_close): Don't declare.
11937 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
11938 Remove.
11939
11940 2019-03-06 Tom Tromey <tom@tromey.com>
11941
11942 * solib-aix.c: Use make_scope_exit.
11943
11944 2019-03-06 Tom Tromey <tom@tromey.com>
11945
11946 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
11947 Use make_scope_exit.
11948
11949 2019-03-06 Tom Tromey <tom@tromey.com>
11950
11951 * solib-svr4.c (disable_probes_interface): Remove parameter.
11952 (svr4_handle_solib_event): Use make_scope_exit.
11953
11954 2019-03-06 Tom Tromey <tom@tromey.com>
11955
11956 * remote.c (struct stop_reply_deleter): Remove.
11957 (stop_reply_up): Update.
11958 (struct stop_reply): Derive from notif_event. Don't typedef.
11959 <regcache>: Now a std::vector.
11960 (stop_reply_xfree): Remove.
11961 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
11962 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
11963 (remote_target::discard_pending_stop_replies): Use delete.
11964 (remote_target::remote_parse_stop_reply): Update.
11965 (remote_target::process_stop_reply): Update.
11966 * remote-notif.h (struct notif_event): Add virtual destructor.
11967 Remove "dtr" member.
11968 (struct notif_client) <alloc_event>: Return a unique_ptr.
11969 (notif_event_xfree): Don't declare.
11970 (notif_event_up): New typedef.
11971 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
11972 (notif_event_xfree, do_notif_event_xfree): Remove.
11973 (remote_notif_state_xfree): Update.
11974
11975 2019-03-06 Tom Tromey <tom@tromey.com>
11976
11977 * infrun.c (displaced_step_clear_cleanup): Now a
11978 forward_scope_exit type.
11979 (displaced_step_prepare_throw): Update.
11980 (displaced_step_fixup): Update.
11981
11982 2019-03-06 Tom Tromey <tom@tromey.com>
11983
11984 * inferior.h (class inferior): Update comment.
11985 * gdbthread.h (class thread_info): Update comment.
11986
11987 2019-03-06 Joel Brobecker <brobecker@adacore.com>
11988 Tom Tromey <tom@tromey.com>
11989
11990 * stabsread.h (struct stab_section_list): Remove.
11991 (coffstab_build_psymtabs): Update.
11992 * dbxread.c (symbuf_sections): Now a std::vector.
11993 (sect_idx): New global.
11994 (fill_symbuf): Update.
11995 (coffstab_build_psymtabs): Change type of stabsects parameter.
11996 Update.
11997 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
11998 std::vector.
11999 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
12000 (coff_locate_sections): Update.
12001 (coff_symfile_read): Remove cleanups. Update.
12002 (init_stringtab): Add storage parameter.
12003 (free_stringtab, free_stringtab_cleanup): Remove.
12004 (init_lineno): Add storage parameter.
12005 (free_linetab, free_linetab_cleanup): Remove.
12006
12007 2019-03-06 Pedro Alves <palves@redhat.com>
12008
12009 * linux-fork.c (fork_info::clobber_regs): Delete.
12010 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
12011 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
12012 comment. Adjust.
12013 (scoped_switch_fork_info::scoped_switch_fork_info)
12014 (checkpoint_command, linux_fork_context): Adjust
12015 fork_save_infrun_state calls.
12016
12017 2019-03-06 Pedro Alves <palves@redhat.com>
12018
12019 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
12020 (inf_has_multiple_threads): Return 'bool' and rewrite using
12021 inferior_info::threads().
12022
12023 2019-03-06 Pedro Alves <palves@redhat.com>
12024
12025 * linux-fork.c: Include <list>.
12026 (fork_list): Now a std::list instance.
12027 (fork_info): Add ctor, dtor, and in-class initialize all fields.
12028 (forks_exist_p, find_last_fork): Adjust.
12029 (new_fork): Delete.
12030 (one_fork_p): New.
12031 (add_fork): Adjust.
12032 (free_fork): Delete, folded into fork_info::~fork_info().
12033 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
12034 Adjust.
12035 (init_fork_list): Delete.
12036 (linux_fork_killall, linux_fork_mourn_inferior)
12037 (linux_fork_detach, info_checkpoints_command): Adjust.
12038 (_initialize_linux_fork): No longer call init_fork_list.
12039
12040 2019-03-06 Pedro Alves <palves@redhat.com>
12041
12042 * linux-fork.c (new_fork): New, split out of ...
12043 (add_fork): ... this. Return void. Move "first fork" special
12044 case from here, to ...
12045 (checkpoint_command): ... here.
12046 * linux-linux.h (add_fork): Return void.
12047
12048 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12049
12050 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
12051
12052 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12053 Chris January <chris.january@arm.com>
12054 David Lecomber <david.lecomber@arm.com>
12055
12056 * f-exp.y: New token, UNOP_INTRINSIC.
12057 (exp): New pattern using UNOP_INTRINSIC token.
12058 (f77_keywords): Add 'abs' keyword.
12059 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
12060 (value_from_host_double): New function.
12061 (evaluate_subexp_f): Support UNOP_ABS.
12062
12063 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12064
12065 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
12066 types.
12067
12068 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12069
12070 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
12071 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
12072 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
12073
12074 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12075
12076 * f-exp.y (convert_to_kind_type): Handle more type kinds.
12077
12078 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12079 Chris January <chris.january@arm.com>
12080
12081 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
12082 * f-exp.y: Define 'KIND' token.
12083 (exp): New pattern for KIND expressions.
12084 (ptype): Handle types with a kind extension.
12085 (direct_abs_decl): Extend to spot kind extensions.
12086 (f77_keywords): Add 'kind' to the list.
12087 (push_kind_type): New function.
12088 (convert_to_kind_type): New function.
12089 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
12090 * parse.c (operator_length_standard): Likewise.
12091 * parser-defs.h (enum type_pieces): Add tp_kind.
12092 * std-operator.def: Add UNOP_KIND.
12093
12094 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12095
12096 * f-exp.y (f_parse): Set yydebug.
12097
12098 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12099
12100 * f-lang.c (evaluate_subexp_f): New function.
12101 (exp_descriptor_f): New global.
12102 (f_language_defn): Use exp_descriptor_f instead of
12103 exp_descriptor_standard.
12104
12105 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12106
12107 * f-exp.y (struct token): Add comments.
12108 (dot_ops): Remove uppercase versions and the end marker.
12109 (f77_keywords): Likewise.
12110 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
12111 entries in the dot_ops array are case insensitive, and use
12112 strncasecmp to compare strings. Also some whitespace cleanup in
12113 this area. Similar for the f77_keywords array, except entries in
12114 this list might be case sensitive.
12115
12116 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12117
12118 * f-exp.y (struct f77_boolean_val): Add comments.
12119 (boolean_values): Remove uppercase versions, and end marker.
12120 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
12121 and use strncasecmp to achieve case insensitivity. Additionally,
12122 perform whitespace cleanup around this code.
12123
12124 2019-03-06 Tom Tromey <tromey@adacore.com>
12125
12126 * remote-sim.c (gdbsim_target_open): Use result of
12127 gdb_argv::release.
12128
12129 2019-03-06 Richard Bunt <richard.bunt@arm.com>
12130 Dirk Schubert <dirk.schubert@arm.com>
12131 Chris January <chris.january@arm.com>
12132
12133 * eval.c (evaluate_subexp_standard): Call Fortran argument
12134 wrapping logic.
12135 * f-lang.c (struct value): A value which can be passed into a
12136 Fortran function call.
12137 (fortran_argument_convert): Wrap Fortran arguments in a pointer
12138 where appropriate.
12139 (struct type): Value ready for a Fortran function call.
12140 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
12141 is needed.
12142 * f-lang.h (fortran_argument_convert): Declaration.
12143 (fortran_preserve_arg_pointer): Declaration.
12144 * infcall.c (value_arg_coerce): Call Fortran argument logic.
12145
12146 2019-03-05 Tom Tromey <tromey@adacore.com>
12147
12148 * python/py-prettyprint.c (print_string_repr): Remove #if.
12149 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
12150
12151 2019-03-05 Tom Tromey <tromey@adacore.com>
12152
12153 * target.c (the_dummy_target): Move later. Change type to
12154 "dummy_target".
12155 (initialize_targets): Don't initialize the_dummy_target.
12156
12157 2019-03-05 Tom Tromey <tromey@adacore.com>
12158
12159 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
12160 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
12161
12162 2019-03-05 Tom Tromey <tromey@adacore.com>
12163
12164 * windows-nat.c (windows_nat_target::attach)
12165 (windows_nat_target::detach): Don't call gdb_flush.
12166 * valprint.c (generic_val_print, val_print, val_print_string):
12167 Don't call gdb_flush.
12168 * utils.c (defaulted_query): Don't call gdb_flush.
12169 * typeprint.c (print_type_scalar): Don't call gdb_flush.
12170 * target.c (target_announce_detach): Don't call gdb_flush.
12171 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
12172 * remote.c (extended_remote_target::attach): Don't call
12173 gdb_flush.
12174 * procfs.c (procfs_target::detach): Don't call gdb_flush.
12175 * printcmd.c (do_examine): Don't call gdb_flush.
12176 (info_display_command): Don't call gdb_flush.
12177 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
12178 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
12179 * memattr.c (info_mem_command): Don't call gdb_flush.
12180 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
12181 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
12182 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
12183 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
12184 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
12185 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
12186 (gnu_nat_target::detach): Don't call gdb_flush.
12187 * f-valprint.c (f_val_print): Don't call gdb_flush.
12188 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
12189 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
12190 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
12191 gdb_flush.
12192 * c-valprint.c (c_val_print): Don't call gdb_flush.
12193 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
12194
12195 2019-03-05 Tom Tromey <tromey@adacore.com>
12196
12197 * varobj.c (update_dynamic_varobj_children): Update.
12198 (install_default_visualizer): Use reset, not release.
12199 * value.c (set_internalvar): Update.
12200 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
12201 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
12202 ATTRIBUTE_UNUSED_RESULT.
12203
12204 2019-03-05 Tom Tromey <tromey@adacore.com>
12205
12206 * remote.c (class scoped_remote_fd) <release>: Add
12207 ATTRIBUTE_UNUSED_RESULT.
12208
12209 2019-03-05 Tom Tromey <tromey@adacore.com>
12210
12211 * macroexp.c (struct macro_buffer) <release>: Add
12212 ATTRIBUTE_UNUSED_RESULT.
12213
12214 2019-03-05 Tom Tromey <tromey@adacore.com>
12215
12216 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
12217 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
12218 ATTRIBUTE_UNUSED_RESULT.
12219
12220 2019-03-05 Tom Tromey <tromey@adacore.com>
12221
12222 * common/scoped_fd.h (class scoped_fd) <release>: Add
12223 ATTRIBUTE_UNUSED_RESULT.
12224
12225 2019-03-05 Tom Tromey <tromey@adacore.com>
12226
12227 * parser-defs.h (struct parser_state) <release>: Add
12228 ATTRIBUTE_UNUSED_RESULT.
12229
12230 2019-03-05 Tom Tromey <tromey@adacore.com>
12231
12232 * utils.h (class gdb_argv) <release>: Add
12233 ATTRIBUTE_UNUSED_RESULT.
12234 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
12235
12236 2019-03-02 Eli Zaretskii <eliz@gnu.org>
12237
12238 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
12239 for-loop range, to avoid compiler warnings.
12240
12241 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
12242 avoid compiler warnings about unused variables.
12243
12244 * NEWS: Mention end of support for native debugging on MS-Windows
12245 before XP.
12246
12247 PR gdb/24292
12248 * common/netstuff.c:
12249 * gdbserver/gdbreplay.c
12250 * gdbserver/remote-utils.c:
12251 * ser-tcp.c:
12252 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
12253 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
12254 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
12255 'getaddrinfo' and 'freeaddrinfo' were not available before
12256 Windows XP, and mingw.org's MinGW headers by default define
12257 _WIN32_WINNT to 0x500.
12258
12259 2019-03-01 Gary Benson <gbenson@redhat.com>
12260
12261 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
12262
12263 2019-02-28 Brian Vandenberg <phantall@gmail.com>
12264 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12265
12266 PR gdb/8527
12267 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
12268 set_sigint_trap, clear_sigint_trap.
12269
12270 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12271
12272 * target.c (target_detach): Clear the regcache and the
12273 frame cache.
12274
12275 2019-02-27 Pedro Alves <palves@redhat.com>
12276
12277 * utils.c (set_screen_size): When we cap the height/width sizes,
12278 tweak the corresponding command variable to show "unlimited":
12279
12280 2019-02-27 Saagar Jha <saagar@saagarjha.com>
12281 Pedro Alves <palves@redhat.com>
12282
12283 * utils.c (set_screen_size): Reduce "infinite" rows and columns
12284 before calling rl_set_screen_size.
12285
12286 2019-02-27 Tom Tromey <tromey@adacore.com>
12287
12288 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
12289 define.
12290 * python/py-value.c: Remove Python 2.4 workaround.
12291 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
12292 workaround.
12293 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
12294 Python 2.4 workaround.
12295 * python/python-internal.h: Remove Python 2.4 comment.
12296 (Py_ssize_t): Don't define.
12297 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
12298 (gdb_Py_DECREF): Remove Python 2.4 workaround.
12299 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
12300 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
12301 * python/python.c (do_start_initialization): Remove Python 2.4
12302 workaround.
12303 * python/py-prettyprint.c (class dummy_python_frame): Remove.
12304 (print_children): Remove Python 2.4 workaround.
12305 * python/py-inferior.c (buffer_procs): Remove Python 2.4
12306 workaround.
12307 (CHARBUFFERPROC_NAME): Remove.
12308 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
12309 Python 2.4 workaround.
12310
12311 2019-02-27 Kevin Buettner <kevinb@redhat.com>
12312
12313 * NEWS: Note minimum Python version.
12314
12315 2019-02-27 Kevin Buettner <kevinb@redhat.com>
12316
12317 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
12318 code from these functions. Remove corresponding ifdefs. Use
12319 Py_buffer_up instead of explicit calls to PyBuffer_Release.
12320 Remove gotos and target of gotos.
12321 (infpy_search_memory): Likewise.
12322
12323 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12324
12325 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
12326 (hppa_gdbarch_init): Don't register deleted functions with
12327 gdbarch.
12328
12329 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12330
12331 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
12332 (h8300_unwind_sp): Delete.
12333 (h8300_dummy_id): Delete.
12334 (h8300_gdbarch_init): Don't register deleted functions with
12335 gdbarch.
12336
12337 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12338
12339 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
12340 (ft32_unwind_pc): Delete.
12341 (ft32_unwind_sp): Delete.
12342 (ft32_gdbarch_init): Don't register deleted functions with
12343 gdbarch.
12344
12345 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12346
12347 * gdb/frv-tdep.c (frv_dummy_id): Delete.
12348 (frv_unwind_pc): Delete.
12349 (frv_unwind_sp): Delete.
12350 (frv_gdbarch_init): Don't register deleted functions with
12351 gdbarch.
12352
12353 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12354
12355 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
12356 (riscv_unwind_pc): Delete.
12357 (riscv_unwind_sp): Delete.
12358 (riscv_gdbarch_init): Don't register deleted functions with
12359 gdbarch.
12360
12361 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12362
12363 * gdb/csky-tdep.c (csky_dummy_id): Delete.
12364 (csky_unwind_pc): Delete.
12365 (csky_unwind_sp): Delete.
12366 (csky_gdbarch_init): Don't register deleted functions with
12367 gdbarch.
12368
12369 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12370
12371 * gdb/cris-tdep.c (cris_dummy_id): Delete.
12372 (cris_unwind_pc): Delete.
12373 (cris_unwind_sp): Delete.
12374 (cris_gdbarch_init): Don't register deleted functions with
12375 gdbarch.
12376
12377 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12378
12379 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
12380 (bfin_unwind_pc): Delete.
12381 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
12382
12383 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12384
12385 * gdb/arm-tdep.c (arm_dummy_id): Delete.
12386 (arm_unwind_pc): Delete.
12387 (arm_unwind_sp): Delete.
12388 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
12389
12390 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12391
12392 * gdb/arc-tdep.c (arc_dummy_id): Delete.
12393 (arc_unwind_pc): Delete.
12394 (arc_unwind_sp): Delete.
12395 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
12396
12397 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12398
12399 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
12400 (alpha_unwind_pc): Delete.
12401 (alpha_gdbarch_init): Don't register deleted functions with
12402 gdbarch.
12403
12404 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12405
12406 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
12407 (aarch64_unwind_pc): Delete.
12408 (aarch64_unwind_sp): Delete.
12409 (aarch64_gdbarch_init): Don't register deleted functions with
12410 gdbarch.
12411
12412 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12413
12414 * gdbtypes.c (type_align): Don't consider static members when
12415 computing structure alignment.
12416
12417 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12418
12419 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
12420 return 0 for other types.
12421 * arch-utils.c (default_type_align): Always return 0.
12422 * gdbarch.h: Regenerate.
12423 * gdbarch.sh (type_align): Extend comment.
12424 * gdbtypes.c (type_align): Add additional comments, always call
12425 gdbarch_type_align before applying the default rules.
12426 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
12427 generic code will then apply a suitable default.
12428 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
12429 types, return 0 for other types.
12430
12431 2019-02-27 Joel Brobecker <brobecker@adacore.com>
12432
12433 * NEWS: Create a new section for the next release branch.
12434 Rename the section of the current branch, now that it has
12435 been cut.
12436
12437 2019-02-27 Joel Brobecker <brobecker@adacore.com>
12438
12439 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
12440 * version.in: Bump version to 8.3.50.DATE-git.
12441
12442 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
12443
12444 * aix-thread.c (ptid_cmp): Remove unused variable.
12445 (get_signaled_thread): Likewise.
12446 (store_regs_user_thread): Likewise.
12447 (store_regs_kernel_thread): Likewise.
12448 (fetch_regs_kernel_thread): Remove shadowed variable.
12449
12450 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
12451
12452 * features/riscv/32bit-cpu.xml: Add register numbers.
12453 * features/riscv/32bit-fpu.c: Regenerate.
12454 * features/riscv/32bit-fpu.xml: Add register numbers.
12455 * features/riscv/64bit-cpu.xml: Add register numbers.
12456 * features/riscv/64bit-fpu.c: Regenerate.
12457 * features/riscv/64bit-fpu.xml: Add register numbers.
12458
12459 2019-02-26 Kevin Buettner <kevinb@redhat.com>
12460
12461 * NEWS: Mention two argument form of gdb.Value constructor.
12462 * python/py-value.c (convert_buffer_and_type_to_value): New
12463 function.
12464 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
12465 Add support for handling an optional second argument. Call
12466 convert_buffer_and_type_to_value as appropriate.
12467 * python/python-internal.h (Py_buffer_deleter): New struct.
12468 (Py_buffer_up): New typedef.
12469
12470 2019-02-25 John Baldwin <jhb@FreeBSD.org>
12471
12472 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
12473 instead of releasing ownership.
12474
12475 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
12476
12477 * dwarf2read.c (open_and_init_dwp_file): Call
12478 elf_numsections instead of bfd_count_sections to initialize
12479 dwp_file->num_sections.
12480
12481 2019-02-25 Tom Tromey <tromey@adacore.com>
12482
12483 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
12484
12485 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
12486
12487 * gcore.in: Add '--readnever' option when invoking GDB.
12488
12489 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
12490
12491 * MAINTAINERS: Update my email address.
12492
12493 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
12494
12495 * build-id.c (build_id_to_debug_bfd_1): New function.
12496 (build_id_to_debug_bfd): Look for separate debug file in
12497 sysroot.
12498
12499 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
12500
12501 * gdbarch.sh: Update the copyright year range that is placed into
12502 generated files.
12503
12504 2019-02-22 Keith Seitz <keiths@redhat.com>
12505
12506 PR symtab/23853
12507 * linespec.c (create_sals_line_offset): Search for the default
12508 symtab's filename instead of its fullname.
12509
12510 2019-02-21 Alan Hayward <alan.hayward@arm.com>
12511
12512 * NEWS: Update style defaults.
12513
12514 2019-02-21 Alan Hayward <alan.hayward@arm.com>
12515
12516 * main.c (captured_main_1): Disable styling in batch mode.
12517
12518 2019-02-20 Tom Tromey <tom@tromey.com>
12519
12520 * symtab.c (symtab_symbol_info): Fix typos.
12521
12522 2019-02-20 Tom Tromey <tromey@adacore.com>
12523
12524 * findcmd.c (_initialize_mem_search): Use upper case for
12525 metasyntactic variables.
12526
12527 2019-02-20 Alan Hayward <alan.hayward@arm.com>
12528
12529 * aarch64-tdep.c (aarch64_add_reggroups): New function.
12530 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
12531
12532 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
12533
12534 * top.h (source_file_name): Change to std::string.
12535 * top.c (source_file_name): Likewise.
12536 (command_line_input): Adjust.
12537 * cli/cli-script.c (script_from_file): Adjust.
12538
12539 2019-02-19 Tom Tromey <tromey@adacore.com>
12540
12541 * ravenscar-thread.c
12542 (ravenscar_thread_target::update_thread_list): Don't call
12543 ada_build_task_list.
12544 * ada-lang.h (ada_build_task_list): Don't declare.
12545 * ada-tasks.c (struct ada_tasks_inferior_data)
12546 <task_list_valid_p>: Now bool.
12547 (read_known_tasks, ada_task_list_changed)
12548 (ada_tasks_invalidate_inferior_data): Update.
12549 (read_known_tasks_array): Return bool.
12550 (read_known_tasks_list): Likewise.
12551 (read_known_tasks): Return void.
12552 (ada_build_task_list): Now static.
12553
12554 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
12555
12556 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
12557 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
12558
12559 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12560
12561 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
12562 variant for ada_tasks_pspace_data_handle and
12563 ada_tasks_inferior_data_handle.
12564 (ada_tasks_pspace_data_cleanup): New function.
12565 (ada_tasks_inferior_data_cleanup): New function.
12566
12567 2019-02-17 Tom Tromey <tom@tromey.com>
12568
12569 * macrotab.h (macro_source_fullname): Return a std::string.
12570 * macrotab.c (macro_include, check_for_redefinition)
12571 (macro_undef, macro_lookup_definition, foreach_macro)
12572 (foreach_macro_in_scope): Update.
12573 (macro_source_fullname): Return a std::string.
12574 * macrocmd.c (show_pp_source_pos): Update.
12575
12576 2019-02-17 Tom Tromey <tom@tromey.com>
12577
12578 * macrocmd.c (show_pp_source_pos): Style the file names.
12579
12580 2019-02-17 Tom Tromey <tom@tromey.com>
12581
12582 PR tui/24197:
12583 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
12584
12585 2019-02-17 Tom Tromey <tom@tromey.com>
12586
12587 * ada-lang.c (user_select_syms): Use filtered printing.
12588 * utils.c (wrap_style): New global.
12589 (desired_style): Remove.
12590 (emit_style_escape): Add stream parameter.
12591 (set_output_style, reset_terminal_style, prompt_for_continue):
12592 Update.
12593 (flush_wrap_buffer): Only flush gdb_stdout.
12594 (wrap_here): Set wrap_style.
12595 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
12596 treat escape sequences as a character. Change when wrap buffer is
12597 flushed.
12598 (fputs_styled): Do not set the output style when the default is
12599 requested.
12600 * ui-style.h (struct ui_file_style) <is_default>: New method.
12601 * source.c (print_source_lines_base): Emit escape sequences in one
12602 piece.
12603
12604 2019-02-17 Joel Brobecker <brobecker@adacore.com>
12605
12606 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
12607 integers and enumeration types.
12608
12609 2019-02-17 Joel Brobecker <brobecker@adacore.com>
12610
12611 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
12612 instead of lookup_symbol_in_language
12613 (do_exact_match): New function.
12614 (ada_get_symbol_name_matcher): Return do_exact_match when
12615 doing a verbatim match.
12616
12617 2019-02-15 Tom Tromey <tromey@adacore.com>
12618
12619 * ravenscar-thread.c (ravenscar_thread_target::resume)
12620 (ravenscar_thread_target::wait): Special case wildcard requests.
12621
12622 2019-02-15 Tom Tromey <tromey@adacore.com>
12623
12624 * ravenscar-thread.c (base_ptid): Remove.
12625 (struct ravenscar_thread_target) <close>: New method.
12626 <m_base_ptid>: New member.
12627 <update_inferior_ptid, active_task, task_is_currently_active,
12628 runtime_initialized>: Declare methods.
12629 <ravenscar_thread_target>: Add constructor.
12630 (ravenscar_thread_target::task_is_currently_active)
12631 (ravenscar_thread_target::update_inferior_ptid)
12632 (ravenscar_runtime_initialized): Rename. Now methods.
12633 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
12634 (ravenscar_thread_target::update_thread_list): Update.
12635 (ravenscar_thread_target::active_task): Now method.
12636 (ravenscar_thread_target::store_registers)
12637 (ravenscar_thread_target::prepare_to_store)
12638 (ravenscar_thread_target::prepare_to_store)
12639 (ravenscar_thread_target::mourn_inferior): Update.
12640 (ravenscar_inferior_created): Use "new" to create target.
12641 (ravenscar_thread_target::get_ada_task_ptid): Update.
12642 (_initialize_ravenscar): Don't initialize base_ptid.
12643 (ravenscar_ops): Remove global.
12644
12645 2019-02-15 Tom Tromey <tromey@adacore.com>
12646
12647 * target.h (push_target): Declare new overload.
12648 * target.c (push_target): New overload, taking an rvalue reference.
12649 * remote.c (remote_target::open_1): Use push_target overload.
12650 * corelow.c (core_target_open): Use push_target overload.
12651
12652 2019-02-15 Tom Tromey <tromey@adacore.com>
12653
12654 * ravenscar-thread.c (is_ravenscar_task)
12655 (ravenscar_task_is_currently_active): Return bool.
12656 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
12657 (_initialize_ravenscar): Remove "(void)".
12658 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
12659 Return bool.
12660
12661 2019-02-15 Tom Tromey <tromey@adacore.com>
12662
12663 * ravenscar-thread.c (ravenscar_runtime_initializer)
12664 (has_ravenscar_runtime, get_running_thread_id)
12665 (ravenscar_thread_target::resume): Fix indentation.
12666
12667 2019-02-15 Tom Tromey <tromey@adacore.com>
12668
12669 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
12670 from ravenscar_arch_ops.
12671 (sparc_ravenscar_ops::fetch_registers)
12672 (sparc_ravenscar_ops::store_registers): Now methods.
12673 (sparc_ravenscar_prepare_to_store): Remove.
12674 (sparc_ravenscar_ops): Redefine.
12675 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
12676 methods and destructor. Remove members.
12677 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
12678 (ravenscar_thread_target::store_registers)
12679 (ravenscar_thread_target::prepare_to_store): Update.
12680 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
12681 Remove.
12682 (struct ppc_ravenscar_powerpc_ops): Derive from
12683 ravenscar_arch_ops.
12684 (ppc_ravenscar_powerpc_ops::fetch_registers)
12685 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
12686 (ppc_ravenscar_powerpc_ops): Redefine.
12687 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
12688 (ppc_ravenscar_e500_ops::fetch_registers)
12689 (ppc_ravenscar_e500_ops::store_registers): Now methods.
12690 (ppc_ravenscar_e500_ops): Redefine.
12691 * aarch64-ravenscar-thread.c
12692 (aarch64_ravenscar_generic_prepare_to_store): Remove.
12693 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
12694 (aarch64_ravenscar_fetch_registers)
12695 (aarch64_ravenscar_store_registers): Now methods.
12696 (aarch64_ravenscar_ops): Redefine.
12697
12698 2019-02-15 Tom Tromey <tromey@adacore.com>
12699
12700 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
12701 (ravenscar_thread_target::stopped_by_hw_breakpoint)
12702 (ravenscar_thread_target::stopped_by_watchpoint)
12703 (ravenscar_thread_target::stopped_data_address)
12704 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
12705
12706 2019-02-15 Tom Tromey <tromey@adacore.com>
12707
12708 * ravenscar-thread.c: Fix some typos.
12709
12710 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12711 Tom Tromey <tromey@adacore.com>
12712
12713 * ada-lang.c (ada_exception_sal): Change addr_string to a
12714 std::string.
12715 (create_ada_exception_catchpoint): Update.
12716
12717 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12718 Tom Tromey <tromey@adacore.com>
12719
12720 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
12721 (bp_location_ops): Remove.
12722 (base_breakpoint_allocate_location): Update.
12723 (free_bp_location): Update.
12724 * ada-lang.c (class ada_catchpoint_location)
12725 <ada_catchpoint_location>: Remove ops parameter.
12726 (ada_catchpoint_location_dtor): Remove.
12727 (ada_catchpoint_location_ops): Remove.
12728 (allocate_location_exception): Update.
12729 * breakpoint.h (struct bp_location_ops): Remove.
12730 (class bp_location) <bp_location>: Remove bp_location_ops
12731 parameter.
12732 <~bp_location>: Add destructor.
12733 <ops>: Remove.
12734
12735 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
12736 Pedro Alves <palves@redhat.com>
12737
12738 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
12739 'PATH_MAX'.
12740
12741 2019-02-14 David Michael <fedora.dm0@gmail.com>
12742 Samuel Thibault <samuel.thibault@gnu.org>
12743 Thomas Schwinge <thomas@codesourcery.com>
12744
12745 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
12746 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
12747
12748 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
12749
12750 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
12751 (check_empty): Use "const char *".
12752
12753 * gnu-nat.c (gnu_nat_target::detach): Instead of
12754 'detach_inferior (pid)' call
12755 'detach_inferior (find_inferior_pid (pid))'.
12756
12757 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
12758 'nat/fork-inferior.o'.
12759 * gnu-nat.c: #include "nat/fork-inferior.h".
12760
12761 * gnu-nat.c (gnu_nat_target::detach): Instead of
12762 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
12763 * gnu-nat.h: #include "inf-child.h".
12764 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
12765 'i386_gnu_nat_target::fetch_registers'.
12766 (gnu_store_registers): Rename/move to
12767 'i386_gnu_nat_target::store_registers'.
12768
12769 * config/i386/nm-i386gnu.h: Don't "#include" any files.
12770 * gnu-nat.h (mach_thread_info): New function.
12771 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
12772
12773 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
12774
12775 2019-02-14 Frederic Konrad <konrad@adacore.com>
12776
12777 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
12778
12779 2019-02-14 Joel Brobecker <brobecker@adacore.com>
12780
12781 * windows-nat.c (windows_add_thread): Add new parameter
12782 "main_thread_p" with default value set to false. Update
12783 function documentation as well as all callers.
12784 (windows_delete_thread): Likewise.
12785 (fake_create_process): Update call to windows_add_thread.
12786 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
12787 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
12788 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
12789 call to windows_delete_thread.
12790
12791 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
12792
12793 * MAINTAINERS: Add Andrew Burgess as global maintainer.
12794
12795 2019-02-12 John Baldwin <jhb@FreeBSD.org>
12796
12797 * symfile.c (find_separate_debug_file): Use canonical path of
12798 sysroot with child_path instead of gdb_sysroot if it is valid.
12799
12800 2019-02-12 John Baldwin <jhb@FreeBSD.org>
12801
12802 * symfile.c (find_separate_debug_file): Use child_path to
12803 determine if an object file is under a sysroot.
12804
12805 2019-02-12 John Baldwin <jhb@FreeBSD.org>
12806
12807 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12808 unittests/child-path-selftests.c.
12809 * common/pathstuff.c (child_path): New function.
12810 * common/pathstuff.h (child_path): New prototype.
12811 * unittests/child-path-selftests.c: New file.
12812
12813 2019-02-12 John Baldwin <jhb@FreeBSD.org>
12814
12815 * symfile.c (find_separate_debug_file): Look for separate debug
12816 files in debug directories under the sysroot.
12817
12818 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12819
12820 * symtab.h (struct minimal_symbol data_p): New const method.
12821 (struct minimal_symbol text_p): Likewise.
12822 * symtab.c (output_source_filename): Use file name style
12823 to print file name.
12824 (print_symbol_info): Likewise.
12825 (print_msymbol_info): Use address style to print addresses.
12826 Use function name style to print executable text symbols.
12827 (expand_symtab_containing_pc): Use data_p.
12828 (find_pc_sect_compunit_symtab): Likewise.
12829
12830 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12831
12832 * breakpoint.c (describe_other_breakpoints): Use address style
12833 to print addresses.
12834 (say_where): Likewise.
12835
12836 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12837
12838 * ada-typeprint.c (print_func_type): Print function name
12839 style to print function name.
12840 * c-typeprint.c (c_print_type_1): Likewise.
12841
12842 2019-02-11 Alan Hayward <alan.hayward@arm.com>
12843
12844 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
12845 for execve.
12846
12847 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12848
12849 * c-exp.y (direct_abs_decl): Use emplace_back to record the
12850 type_stack.
12851
12852 2019-02-10 Joel Brobecker <brobecker@adacore.com>
12853
12854 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
12855 TYPE_CODE_REF types.
12856
12857 2019-02-08 Jim Wilson <jimw@sifive.com>
12858
12859 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
12860 (riscv_linux_fregset): New.
12861 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
12862
12863 2019-02-07 Tom Tromey <tom@tromey.com>
12864
12865 * thread.c (thread_cancel_execution_command): Update.
12866 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
12867 methods.
12868 (struct thread_fsm_ops): Remove.
12869 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
12870 (thread_fsm_should_stop, thread_fsm_return_value)
12871 (thread_fsm_set_finished, thread_fsm_finished_p)
12872 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
12873 Don't declare.
12874 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
12875 * infrun.c (clear_proceed_status_thread)
12876 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
12877 (print_stop_event): Update.
12878 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
12879 Add constructor.
12880 (step_command_fsm_ops): Remove.
12881 (new_step_command_fsm): Remove.
12882 (step_1): Update.
12883 (step_command_fsm::should_stop): Rename from
12884 step_command_fsm_should_stop.
12885 (step_command_fsm::clean_up): Rename from
12886 step_command_fsm_clean_up.
12887 (step_command_fsm::do_async_reply_reason): Rename from
12888 step_command_fsm_async_reply_reason.
12889 (struct until_next_fsm): Inherit from thread_fsm. Add
12890 constructor.
12891 (until_next_fsm_ops): Remove.
12892 (new_until_next_fsm): Remove.
12893 (until_next_fsm::should_stop): Rename from
12894 until_next_fsm_should_stop.
12895 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
12896 (until_next_fsm::do_async_reply_reason): Rename from
12897 until_next_fsm_async_reply_reason.
12898 (struct finish_command_fsm): Inherit from thread_fsm. Add
12899 constructor. Change type of breakpoint.
12900 (finish_command_fsm_ops): Remove.
12901 (new_finish_command_fsm): Remove.
12902 (finish_command_fsm::should_stop): Rename from
12903 finish_command_fsm_should_stop.
12904 (finish_command_fsm::clean_up): Rename from
12905 finish_command_fsm_clean_up.
12906 (finish_command_fsm::return_value): Rename from
12907 finish_command_fsm_return_value.
12908 (finish_command_fsm::do_async_reply_reason): Rename from
12909 finish_command_fsm_async_reply_reason.
12910 (finish_command): Update.
12911 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
12912 Add constructor.
12913 (call_thread_fsm_ops): Remove.
12914 (call_thread_fsm::call_thread_fsm): Rename from
12915 new_call_thread_fsm.
12916 (call_thread_fsm::should_stop): Rename from
12917 call_thread_fsm_should_stop.
12918 (call_thread_fsm::should_notify_stop): Rename from
12919 call_thread_fsm_should_notify_stop.
12920 (run_inferior_call, call_function_by_hand_dummy): Update.
12921 * cli/cli-interp.c (should_print_stop_to_console): Update.
12922 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
12923 Add constructor. Change type of location_breakpoint,
12924 caller_breakpoint.
12925 (until_break_fsm_ops): Remove.
12926 (new_until_break_fsm): Remove.
12927 (until_break_fsm::should_stop): Rename from
12928 until_break_fsm_should_stop.
12929 (until_break_fsm::clean_up): Rename from
12930 until_break_fsm_clean_up.
12931 (until_break_fsm::do_async_reply_reason): Rename from
12932 until_break_fsm_async_reply_reason.
12933 (until_break_command): Update.
12934 * thread-fsm.c: Remove.
12935 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
12936
12937 2019-02-07 Tom Tromey <tom@tromey.com>
12938
12939 * yy-remap.h: Add include guard.
12940 * xtensa-tdep.h: Add include guard.
12941 * xcoffread.h: Rename include guard.
12942 * varobj-iter.h: Add include guard.
12943 * tui/tui.h: Rename include guard.
12944 * tui/tui-winsource.h: Rename include guard.
12945 * tui/tui-wingeneral.h: Rename include guard.
12946 * tui/tui-windata.h: Rename include guard.
12947 * tui/tui-win.h: Rename include guard.
12948 * tui/tui-stack.h: Rename include guard.
12949 * tui/tui-source.h: Rename include guard.
12950 * tui/tui-regs.h: Rename include guard.
12951 * tui/tui-out.h: Rename include guard.
12952 * tui/tui-layout.h: Rename include guard.
12953 * tui/tui-io.h: Rename include guard.
12954 * tui/tui-hooks.h: Rename include guard.
12955 * tui/tui-file.h: Rename include guard.
12956 * tui/tui-disasm.h: Rename include guard.
12957 * tui/tui-data.h: Rename include guard.
12958 * tui/tui-command.h: Rename include guard.
12959 * tic6x-tdep.h: Add include guard.
12960 * target/waitstatus.h: Rename include guard.
12961 * target/wait.h: Rename include guard.
12962 * target/target.h: Rename include guard.
12963 * target/resume.h: Rename include guard.
12964 * target-float.h: Rename include guard.
12965 * stabsread.h: Add include guard.
12966 * rs6000-tdep.h: Add include guard.
12967 * riscv-fbsd-tdep.h: Add include guard.
12968 * regformats/regdef.h: Rename include guard.
12969 * record.h: Rename include guard.
12970 * python/python.h: Rename include guard.
12971 * python/python-internal.h: Rename include guard.
12972 * python/py-stopevent.h: Rename include guard.
12973 * python/py-ref.h: Rename include guard.
12974 * python/py-record.h: Rename include guard.
12975 * python/py-record-full.h: Rename include guard.
12976 * python/py-record-btrace.h: Rename include guard.
12977 * python/py-instruction.h: Rename include guard.
12978 * python/py-events.h: Rename include guard.
12979 * python/py-event.h: Rename include guard.
12980 * procfs.h: Add include guard.
12981 * proc-utils.h: Add include guard.
12982 * p-lang.h: Add include guard.
12983 * or1k-tdep.h: Rename include guard.
12984 * observable.h: Rename include guard.
12985 * nto-tdep.h: Rename include guard.
12986 * nat/x86-linux.h: Rename include guard.
12987 * nat/x86-linux-dregs.h: Rename include guard.
12988 * nat/x86-gcc-cpuid.h: Add include guard.
12989 * nat/x86-dregs.h: Rename include guard.
12990 * nat/x86-cpuid.h: Rename include guard.
12991 * nat/ppc-linux.h: Rename include guard.
12992 * nat/mips-linux-watch.h: Rename include guard.
12993 * nat/linux-waitpid.h: Rename include guard.
12994 * nat/linux-ptrace.h: Rename include guard.
12995 * nat/linux-procfs.h: Rename include guard.
12996 * nat/linux-osdata.h: Rename include guard.
12997 * nat/linux-nat.h: Rename include guard.
12998 * nat/linux-namespaces.h: Rename include guard.
12999 * nat/linux-btrace.h: Rename include guard.
13000 * nat/glibc_thread_db.h: Rename include guard.
13001 * nat/gdb_thread_db.h: Rename include guard.
13002 * nat/gdb_ptrace.h: Rename include guard.
13003 * nat/fork-inferior.h: Rename include guard.
13004 * nat/amd64-linux-siginfo.h: Rename include guard.
13005 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
13006 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
13007 * nat/aarch64-linux.h: Rename include guard.
13008 * nat/aarch64-linux-hw-point.h: Rename include guard.
13009 * mn10300-tdep.h: Add include guard.
13010 * mips-linux-tdep.h: Add include guard.
13011 * mi/mi-parse.h: Rename include guard.
13012 * mi/mi-out.h: Rename include guard.
13013 * mi/mi-main.h: Rename include guard.
13014 * mi/mi-interp.h: Rename include guard.
13015 * mi/mi-getopt.h: Rename include guard.
13016 * mi/mi-console.h: Rename include guard.
13017 * mi/mi-common.h: Rename include guard.
13018 * mi/mi-cmds.h: Rename include guard.
13019 * mi/mi-cmd-break.h: Rename include guard.
13020 * m2-lang.h: Add include guard.
13021 * location.h: Rename include guard.
13022 * linux-record.h: Rename include guard.
13023 * linux-nat.h: Add include guard.
13024 * linux-fork.h: Add include guard.
13025 * i386-darwin-tdep.h: Rename include guard.
13026 * hppa-linux-offsets.h: Add include guard.
13027 * guile/guile.h: Rename include guard.
13028 * guile/guile-internal.h: Rename include guard.
13029 * gnu-nat.h: Rename include guard.
13030 * gdb-stabs.h: Rename include guard.
13031 * frv-tdep.h: Add include guard.
13032 * f-lang.h: Add include guard.
13033 * event-loop.h: Add include guard.
13034 * darwin-nat.h: Rename include guard.
13035 * cp-abi.h: Rename include guard.
13036 * config/sparc/nm-sol2.h: Rename include guard.
13037 * config/nm-nto.h: Rename include guard.
13038 * config/nm-linux.h: Add include guard.
13039 * config/i386/nm-i386gnu.h: Rename include guard.
13040 * config/djgpp/nl_types.h: Rename include guard.
13041 * config/djgpp/langinfo.h: Rename include guard.
13042 * compile/gcc-cp-plugin.h: Add include guard.
13043 * compile/gcc-c-plugin.h: Add include guard.
13044 * compile/compile.h: Rename include guard.
13045 * compile/compile-object-run.h: Rename include guard.
13046 * compile/compile-object-load.h: Rename include guard.
13047 * compile/compile-internal.h: Rename include guard.
13048 * compile/compile-cplus.h: Rename include guard.
13049 * compile/compile-c.h: Rename include guard.
13050 * common/xml-utils.h: Rename include guard.
13051 * common/x86-xstate.h: Rename include guard.
13052 * common/version.h: Rename include guard.
13053 * common/vec.h: Rename include guard.
13054 * common/tdesc.h: Rename include guard.
13055 * common/selftest.h: Rename include guard.
13056 * common/scoped_restore.h: Rename include guard.
13057 * common/scoped_mmap.h: Rename include guard.
13058 * common/scoped_fd.h: Rename include guard.
13059 * common/safe-iterator.h: Rename include guard.
13060 * common/run-time-clock.h: Rename include guard.
13061 * common/refcounted-object.h: Rename include guard.
13062 * common/queue.h: Rename include guard.
13063 * common/ptid.h: Rename include guard.
13064 * common/print-utils.h: Rename include guard.
13065 * common/preprocessor.h: Rename include guard.
13066 * common/pathstuff.h: Rename include guard.
13067 * common/observable.h: Rename include guard.
13068 * common/netstuff.h: Rename include guard.
13069 * common/job-control.h: Rename include guard.
13070 * common/host-defs.h: Rename include guard.
13071 * common/gdb_wait.h: Rename include guard.
13072 * common/gdb_vecs.h: Rename include guard.
13073 * common/gdb_unlinker.h: Rename include guard.
13074 * common/gdb_unique_ptr.h: Rename include guard.
13075 * common/gdb_tilde_expand.h: Rename include guard.
13076 * common/gdb_sys_time.h: Rename include guard.
13077 * common/gdb_string_view.h: Rename include guard.
13078 * common/gdb_splay_tree.h: Rename include guard.
13079 * common/gdb_setjmp.h: Rename include guard.
13080 * common/gdb_ref_ptr.h: Rename include guard.
13081 * common/gdb_optional.h: Rename include guard.
13082 * common/gdb_locale.h: Rename include guard.
13083 * common/gdb_assert.h: Rename include guard.
13084 * common/filtered-iterator.h: Rename include guard.
13085 * common/filestuff.h: Rename include guard.
13086 * common/fileio.h: Rename include guard.
13087 * common/environ.h: Rename include guard.
13088 * common/common-utils.h: Rename include guard.
13089 * common/common-types.h: Rename include guard.
13090 * common/common-regcache.h: Rename include guard.
13091 * common/common-inferior.h: Rename include guard.
13092 * common/common-gdbthread.h: Rename include guard.
13093 * common/common-exceptions.h: Rename include guard.
13094 * common/common-defs.h: Rename include guard.
13095 * common/common-debug.h: Rename include guard.
13096 * common/cleanups.h: Rename include guard.
13097 * common/buffer.h: Rename include guard.
13098 * common/btrace-common.h: Rename include guard.
13099 * common/break-common.h: Rename include guard.
13100 * cli/cli-utils.h: Rename include guard.
13101 * cli/cli-style.h: Rename include guard.
13102 * cli/cli-setshow.h: Rename include guard.
13103 * cli/cli-script.h: Rename include guard.
13104 * cli/cli-interp.h: Rename include guard.
13105 * cli/cli-decode.h: Rename include guard.
13106 * cli/cli-cmds.h: Rename include guard.
13107 * charset-list.h: Add include guard.
13108 * buildsym-legacy.h: Rename include guard.
13109 * bfin-tdep.h: Add include guard.
13110 * ax.h: Rename include guard.
13111 * arm-linux-tdep.h: Add include guard.
13112 * arm-fbsd-tdep.h: Add include guard.
13113 * arch/xtensa.h: Rename include guard.
13114 * arch/tic6x.h: Add include guard.
13115 * arch/i386.h: Add include guard.
13116 * arch/arm.h: Rename include guard.
13117 * arch/arm-linux.h: Rename include guard.
13118 * arch/arm-get-next-pcs.h: Rename include guard.
13119 * arch/amd64.h: Add include guard.
13120 * arch/aarch64-insn.h: Rename include guard.
13121 * arch-utils.h: Rename include guard.
13122 * annotate.h: Add include guard.
13123 * amd64-darwin-tdep.h: Rename include guard.
13124 * aarch64-linux-tdep.h: Add include guard.
13125 * aarch64-fbsd-tdep.h: Add include guard.
13126 * aarch32-linux-nat.h: Add include guard.
13127
13128 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13129
13130 * macrotab.c (macro_define_internal): New function that
13131 factorizes macro_define_object_internal and macro_define_function
13132 code.
13133 (macro_define_object_internal): Use macro_define_internal.
13134 (macro_define_function): Likewise.
13135
13136 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13137
13138 * macrocmd.c (extract_identifier): Return
13139 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
13140 callers.
13141
13142 2019-02-06 John Baldwin <jhb@FreeBSD.org>
13143
13144 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
13145
13146 2019-02-05 Tom Tromey <tom@tromey.com>
13147
13148 * target.c (target_stack::unpush): Move assertion earlier.
13149
13150 2019-01-30 Tom Tromey <tom@tromey.com>
13151
13152 PR python/23615:
13153 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
13154 (gdbpy_parse_and_eval): Likewise.
13155 * python/python-internal.h (gdbpy_allow_threads): New class.
13156
13157 2019-01-28 John Baldwin <jhb@FreeBSD.org>
13158
13159 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
13160 (aarch64_fbsd_fpregmap): Move earlier.
13161 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
13162 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
13163 instead of individual calls to trad_frame_set_reg_addr.
13164 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
13165 earlier.
13166 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
13167 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
13168 instead of individual calls to trad_frame_set_reg_addr.
13169
13170 2019-01-28 Alan Hayward <alan.hayward@arm.com>
13171
13172 * CONTRIBUTE: Replace contribution list with wiki link.
13173
13174 2019-01-25 Tom Tromey <tom@tromey.com>
13175
13176 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
13177
13178 2019-01-25 Tom Tromey <tom@tromey.com>
13179
13180 * xtensa-linux-nat.c: Fix common/ includes.
13181 * xml-support.h: Fix common/ includes.
13182 * xml-support.c: Fix common/ includes.
13183 * x86-linux-nat.c: Fix common/ includes.
13184 * windows-nat.c: Fix common/ includes.
13185 * varobj.h: Fix common/ includes.
13186 * varobj.c: Fix common/ includes.
13187 * value.c: Fix common/ includes.
13188 * valops.c: Fix common/ includes.
13189 * utils.c: Fix common/ includes.
13190 * unittests/xml-utils-selftests.c: Fix common/ includes.
13191 * unittests/utils-selftests.c: Fix common/ includes.
13192 * unittests/unpack-selftests.c: Fix common/ includes.
13193 * unittests/tracepoint-selftests.c: Fix common/ includes.
13194 * unittests/style-selftests.c: Fix common/ includes.
13195 * unittests/string_view-selftests.c: Fix common/ includes.
13196 * unittests/scoped_restore-selftests.c: Fix common/ includes.
13197 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
13198 * unittests/scoped_fd-selftests.c: Fix common/ includes.
13199 * unittests/rsp-low-selftests.c: Fix common/ includes.
13200 * unittests/parse-connection-spec-selftests.c: Fix common/
13201 includes.
13202 * unittests/optional-selftests.c: Fix common/ includes.
13203 * unittests/offset-type-selftests.c: Fix common/ includes.
13204 * unittests/observable-selftests.c: Fix common/ includes.
13205 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
13206 * unittests/memrange-selftests.c: Fix common/ includes.
13207 * unittests/memory-map-selftests.c: Fix common/ includes.
13208 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
13209 * unittests/function-view-selftests.c: Fix common/ includes.
13210 * unittests/environ-selftests.c: Fix common/ includes.
13211 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
13212 * unittests/common-utils-selftests.c: Fix common/ includes.
13213 * unittests/cli-utils-selftests.c: Fix common/ includes.
13214 * unittests/array-view-selftests.c: Fix common/ includes.
13215 * ui-file.c: Fix common/ includes.
13216 * tui/tui-io.c: Fix common/ includes.
13217 * tracepoint.h: Fix common/ includes.
13218 * tracepoint.c: Fix common/ includes.
13219 * tracefile-tfile.c: Fix common/ includes.
13220 * top.h: Fix common/ includes.
13221 * top.c: Fix common/ includes.
13222 * thread.c: Fix common/ includes.
13223 * target/waitstatus.h: Fix common/ includes.
13224 * target/waitstatus.c: Fix common/ includes.
13225 * target.h: Fix common/ includes.
13226 * target.c: Fix common/ includes.
13227 * target-memory.c: Fix common/ includes.
13228 * target-descriptions.c: Fix common/ includes.
13229 * symtab.h: Fix common/ includes.
13230 * symfile.c: Fix common/ includes.
13231 * stap-probe.c: Fix common/ includes.
13232 * spu-linux-nat.c: Fix common/ includes.
13233 * sparc-nat.c: Fix common/ includes.
13234 * source.c: Fix common/ includes.
13235 * solib.c: Fix common/ includes.
13236 * solib-target.c: Fix common/ includes.
13237 * ser-unix.c: Fix common/ includes.
13238 * ser-tcp.c: Fix common/ includes.
13239 * ser-pipe.c: Fix common/ includes.
13240 * ser-base.c: Fix common/ includes.
13241 * selftest-arch.c: Fix common/ includes.
13242 * s12z-tdep.c: Fix common/ includes.
13243 * rust-exp.y: Fix common/ includes.
13244 * rs6000-aix-tdep.c: Fix common/ includes.
13245 * riscv-tdep.c: Fix common/ includes.
13246 * remote.c: Fix common/ includes.
13247 * remote-notif.h: Fix common/ includes.
13248 * remote-fileio.h: Fix common/ includes.
13249 * remote-fileio.c: Fix common/ includes.
13250 * regcache.h: Fix common/ includes.
13251 * regcache.c: Fix common/ includes.
13252 * record-btrace.c: Fix common/ includes.
13253 * python/python.c: Fix common/ includes.
13254 * python/py-type.c: Fix common/ includes.
13255 * python/py-inferior.c: Fix common/ includes.
13256 * progspace.h: Fix common/ includes.
13257 * producer.c: Fix common/ includes.
13258 * procfs.c: Fix common/ includes.
13259 * proc-api.c: Fix common/ includes.
13260 * printcmd.c: Fix common/ includes.
13261 * ppc-linux-nat.c: Fix common/ includes.
13262 * parser-defs.h: Fix common/ includes.
13263 * osdata.c: Fix common/ includes.
13264 * obsd-nat.c: Fix common/ includes.
13265 * nat/x86-linux.c: Fix common/ includes.
13266 * nat/x86-linux-dregs.c: Fix common/ includes.
13267 * nat/x86-dregs.h: Fix common/ includes.
13268 * nat/x86-dregs.c: Fix common/ includes.
13269 * nat/ppc-linux.c: Fix common/ includes.
13270 * nat/mips-linux-watch.h: Fix common/ includes.
13271 * nat/mips-linux-watch.c: Fix common/ includes.
13272 * nat/linux-waitpid.c: Fix common/ includes.
13273 * nat/linux-ptrace.h: Fix common/ includes.
13274 * nat/linux-ptrace.c: Fix common/ includes.
13275 * nat/linux-procfs.c: Fix common/ includes.
13276 * nat/linux-personality.c: Fix common/ includes.
13277 * nat/linux-osdata.c: Fix common/ includes.
13278 * nat/linux-namespaces.c: Fix common/ includes.
13279 * nat/linux-btrace.h: Fix common/ includes.
13280 * nat/linux-btrace.c: Fix common/ includes.
13281 * nat/fork-inferior.c: Fix common/ includes.
13282 * nat/amd64-linux-siginfo.c: Fix common/ includes.
13283 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
13284 * nat/aarch64-linux.c: Fix common/ includes.
13285 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
13286 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
13287 * namespace.h: Fix common/ includes.
13288 * mips-linux-tdep.c: Fix common/ includes.
13289 * minsyms.c: Fix common/ includes.
13290 * mi/mi-parse.h: Fix common/ includes.
13291 * mi/mi-main.c: Fix common/ includes.
13292 * mi/mi-cmd-env.c: Fix common/ includes.
13293 * memrange.h: Fix common/ includes.
13294 * memattr.c: Fix common/ includes.
13295 * maint.h: Fix common/ includes.
13296 * maint.c: Fix common/ includes.
13297 * main.c: Fix common/ includes.
13298 * machoread.c: Fix common/ includes.
13299 * location.c: Fix common/ includes.
13300 * linux-thread-db.c: Fix common/ includes.
13301 * linux-nat.c: Fix common/ includes.
13302 * linux-fork.c: Fix common/ includes.
13303 * inline-frame.c: Fix common/ includes.
13304 * infrun.c: Fix common/ includes.
13305 * inflow.c: Fix common/ includes.
13306 * inferior.h: Fix common/ includes.
13307 * inferior.c: Fix common/ includes.
13308 * infcmd.c: Fix common/ includes.
13309 * inf-ptrace.c: Fix common/ includes.
13310 * inf-child.c: Fix common/ includes.
13311 * ia64-linux-nat.c: Fix common/ includes.
13312 * i387-tdep.c: Fix common/ includes.
13313 * i386-tdep.c: Fix common/ includes.
13314 * i386-linux-tdep.c: Fix common/ includes.
13315 * i386-linux-nat.c: Fix common/ includes.
13316 * i386-go32-tdep.c: Fix common/ includes.
13317 * i386-fbsd-tdep.c: Fix common/ includes.
13318 * i386-fbsd-nat.c: Fix common/ includes.
13319 * guile/scm-type.c: Fix common/ includes.
13320 * guile/guile.c: Fix common/ includes.
13321 * go32-nat.c: Fix common/ includes.
13322 * gnu-nat.c: Fix common/ includes.
13323 * gdbthread.h: Fix common/ includes.
13324 * gdbarch-selftests.c: Fix common/ includes.
13325 * gdb_usleep.c: Fix common/ includes.
13326 * gdb_select.h: Fix common/ includes.
13327 * gdb_bfd.c: Fix common/ includes.
13328 * gcore.c: Fix common/ includes.
13329 * fork-child.c: Fix common/ includes.
13330 * findvar.c: Fix common/ includes.
13331 * fbsd-nat.c: Fix common/ includes.
13332 * event-top.c: Fix common/ includes.
13333 * event-loop.c: Fix common/ includes.
13334 * dwarf2read.c: Fix common/ includes.
13335 * dwarf2loc.c: Fix common/ includes.
13336 * dwarf2-frame.c: Fix common/ includes.
13337 * dwarf-index-cache.c: Fix common/ includes.
13338 * dtrace-probe.c: Fix common/ includes.
13339 * disasm-selftests.c: Fix common/ includes.
13340 * defs.h: Fix common/ includes.
13341 * csky-tdep.c: Fix common/ includes.
13342 * cp-valprint.c: Fix common/ includes.
13343 * cp-support.h: Fix common/ includes.
13344 * cp-support.c: Fix common/ includes.
13345 * corelow.c: Fix common/ includes.
13346 * completer.h: Fix common/ includes.
13347 * completer.c: Fix common/ includes.
13348 * compile/compile.c: Fix common/ includes.
13349 * compile/compile-loc2c.c: Fix common/ includes.
13350 * compile/compile-cplus-types.c: Fix common/ includes.
13351 * compile/compile-cplus-symbols.c: Fix common/ includes.
13352 * command.h: Fix common/ includes.
13353 * cli/cli-dump.c: Fix common/ includes.
13354 * cli/cli-cmds.c: Fix common/ includes.
13355 * charset.c: Fix common/ includes.
13356 * build-id.c: Fix common/ includes.
13357 * btrace.h: Fix common/ includes.
13358 * btrace.c: Fix common/ includes.
13359 * breakpoint.h: Fix common/ includes.
13360 * breakpoint.c: Fix common/ includes.
13361 * ax.h:
13362 (enum agent_op): Fix common/ includes.
13363 * ax-general.c (struct aop_map): Fix common/ includes.
13364 * ax-gdb.c: Fix common/ includes.
13365 * auxv.c: Fix common/ includes.
13366 * auto-load.c: Fix common/ includes.
13367 * arm-tdep.c: Fix common/ includes.
13368 * arch/riscv.c: Fix common/ includes.
13369 * arch/ppc-linux-common.c: Fix common/ includes.
13370 * arch/i386.c: Fix common/ includes.
13371 * arch/arm.c: Fix common/ includes.
13372 * arch/arm-linux.c: Fix common/ includes.
13373 * arch/arm-get-next-pcs.c: Fix common/ includes.
13374 * arch/amd64.c: Fix common/ includes.
13375 * arch/aarch64.c: Fix common/ includes.
13376 * arch/aarch64-insn.c: Fix common/ includes.
13377 * arch-utils.c: Fix common/ includes.
13378 * amd64-windows-tdep.c: Fix common/ includes.
13379 * amd64-tdep.c: Fix common/ includes.
13380 * amd64-sol2-tdep.c: Fix common/ includes.
13381 * amd64-obsd-tdep.c: Fix common/ includes.
13382 * amd64-nbsd-tdep.c: Fix common/ includes.
13383 * amd64-linux-tdep.c: Fix common/ includes.
13384 * amd64-linux-nat.c: Fix common/ includes.
13385 * amd64-fbsd-tdep.c: Fix common/ includes.
13386 * amd64-fbsd-nat.c: Fix common/ includes.
13387 * amd64-dicos-tdep.c: Fix common/ includes.
13388 * amd64-darwin-tdep.c: Fix common/ includes.
13389 * agent.c: Fix common/ includes.
13390 * ada-lang.h: Fix common/ includes.
13391 * ada-lang.c: Fix common/ includes.
13392 * aarch64-tdep.c: Fix common/ includes.
13393
13394 2019-01-25 Tom Tromey <tom@tromey.com>
13395
13396 * common/create-version.sh: Use common/version.h.
13397
13398 2019-01-24 Pedro Alves <palves@redhat.com>
13399
13400 * infrun.c (signal_stop, signal_print, signal_program)
13401 (signal_catch, signal_pass): Now arrays instead of pointers.
13402 (update_signals_program_target, do_target_resume)
13403 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
13404 * linux-nat.c (linux_nat_target::pass_signals)
13405 (linux_nat_target::create_inferior, linux_nat_target::attach):
13406 Adjust.
13407 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
13408 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
13409 * procfs.c (procfs_target::pass_signals): Adjust.
13410 * record-full.c (record_full_target::resume): Adjust.
13411 * remote.c (remote_target::pass_signals)
13412 (remote_target::program_signals): Adjust.
13413 * target-debug.h (target_debug_print_signals): Now takes a
13414 gdb::array_view as parameter. Adjust.
13415 * target.h (target_ops) <pass_signals, program_signals>: Replace
13416 pointer and length parameters with gdb::array_view.
13417 (target_pass_signals, target_program_signals): Likewise.
13418 * target-delegates.c: Regenerate.
13419
13420 2019-01-24 Pedro Alves <palves@redhat.com>
13421
13422 * common/forward-scope-exit.h
13423 (forward_scope_exit::forward_scope_exit): Pass arguments to
13424 m_bind_function directly, instead of creating a std::bind and
13425 copying that.
13426
13427 2019-01-24 Alan Hayward <alan.hayward@arm.com>
13428
13429 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
13430 for static members.
13431 (pass_in_v_vfp_candidate): Likewise.
13432
13433 2019-01-23 Tom Tromey <tom@tromey.com>
13434 Pedro Alves <palves@redhat.com>
13435
13436 * regcache.c (class regcache_invalidator): Remove.
13437 (regcache::raw_write): Use make_scope_exit.
13438
13439 2019-01-23 Tom Tromey <tom@tromey.com>
13440
13441 * ui-out.h (class ui_out_emit_type): Update comment.
13442
13443 2019-01-23 Tom Tromey <tom@tromey.com>
13444
13445 * infrun.c (fetch_inferior_event): Update comment.
13446
13447 2019-01-23 Tom Tromey <tom@tromey.com>
13448 Pedro Alves <palves@redhat.com>
13449
13450 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
13451 parameter.
13452 (fetch_inferior_event): Use SCOPE_EXIT.
13453
13454
13455 2019-01-23 Tom Tromey <tom@tromey.com>
13456 Pedro Alves <palves@redhat.com>
13457
13458 * infrun.c (disable_thread_events): Delete.
13459 (stop_all_threads): Use SCOPE_EXIT.
13460
13461 2019-01-23 Tom Tromey <tom@tromey.com>
13462 Pedro Alves <palves@redhat.com>
13463
13464 * symfile.c: Include forward-scope-exit.h.
13465 (clear_symtab_users_cleanup): Replace forward declaration with
13466 a FORWARD_SCOPE_EXIT.
13467 (syms_from_objfile_1): Use the forward_scope_exit and
13468 gdb::optional instead of cleanup_function.
13469 (reread_symbols): Use the forward_scope_exit instead of
13470 cleanup_function.
13471 (clear_symtab_users_cleanup): Remove function.
13472
13473 2019-01-23 Tom Tromey <tom@tromey.com>
13474 Pedro Alves <palves@redhat.com>
13475
13476 * linux-nat.c: Include scope-exit.h.
13477 (cleanup_target_stop): Remove.
13478 (linux_nat_target::static_tracepoint_markers_by_strid): Use
13479 SCOPE_EXIT.
13480
13481 2019-01-23 Tom Tromey <tom@tromey.com>
13482 Pedro Alves <palves@redhat.com>
13483
13484 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
13485 (call_function_by_hand_dummy): Use SCOPE_EXIT.
13486
13487 2019-01-23 Tom Tromey <tom@tromey.com>
13488 Andrew Burgess <andrew.burgess@embecosm.com>
13489 Pedro Alves <palves@redhat.com>
13490
13491 * infrun.c (fetch_inferior_event): Use scope_exit.
13492 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
13493 * top.c (execute_command): Use scope_exit.
13494 * breakpoint.c (bpstat_do_actions): Use scope_exit.
13495 * utils.c (do_bpstat_clear_actions_cleanup)
13496 (make_bpstat_clear_actions_cleanup): Remove.
13497
13498 2019-01-23 Tom Tromey <tom@tromey.com>
13499 Pedro Alves <palves@redhat.com>
13500
13501 * infrun.c: Include "common/scope-exit.h"
13502 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
13503 (wait_for_inferior): Use SCOPE_EXIT.
13504 (fetch_inferior_event): Use scope_exit.
13505
13506 2019-01-23 Tom Tromey <tom@tromey.com>
13507 Pedro Alves <palves@redhat.com>
13508
13509 * breakpoint.c (create_breakpoint): Remove cleanup.
13510
13511 2019-01-23 Tom Tromey <tom@tromey.com>
13512 Andrew Burgess <andrew.burgess@embecosm.com>
13513 Pedro Alves <palves@redhat.com>
13514
13515 2019-01-23 Pedro Alves <palves@redhat.com>
13516
13517 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
13518
13519 2019-01-23 Pedro Alves <palves@redhat.com>
13520 Andrew Burgess <andrew.burgess@embecosm.com>
13521
13522 * gdbthread.h: Include "common/forward-scope-exit.h".
13523 (scoped_finish_thread_state): Redefine custom class in terms of
13524 forward_scope_exit.
13525
13526 2019-01-23 Pedro Alves <palves@redhat.com>
13527 Andrew Burgess <andrew.burgess@embecosm.com>
13528
13529 * common/forward-scope-exit.h: New file.
13530
13531 2019-01-23 Pedro Alves <palves@redhat.com>
13532 Andrew Burgess <andrew.burgess@embecosm.com>
13533 Tom Tromey <tom@tromey.com>
13534
13535 * common/scope-exit.h: New file.
13536
13537 2019-01-23 Pedro Alves <palves@redhat.com>
13538
13539 * common/preprocessor.h (ESC): Rename to ...
13540 (ESC_PARENS): ... this.
13541 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
13542 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
13543
13544 2019-01-23 Tom Tromey <tom@tromey.com>
13545
13546 * language.h (class scoped_switch_to_sym_language_if_auto):
13547 Initialize m_lang in both cases.
13548
13549 2019-01-23 Alan Hayward <alan.hayward@arm.com>
13550
13551 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
13552 with XCNEW.
13553
13554 2019-01-22 Tom Tromey <tom@tromey.com>
13555
13556 * corelow.c: Do not include sys/file.h.
13557
13558 2019-01-22 Tom Tromey <tom@tromey.com>
13559
13560 * tui/tui-wingeneral.h: Include gdb_curses.h.
13561
13562 2019-01-22 Tom Tromey <tom@tromey.com>
13563
13564 * source-cache.h (class source_cache) <get_source_lines,
13565 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
13566
13567 2019-01-22 Tom Tromey <tom@tromey.com>
13568
13569 * remote-fileio.h (struct remote_target): Declare.
13570
13571 2019-01-22 Tom Tromey <tom@tromey.com>
13572
13573 * python/py-arch.c: Do not include py-ref.h.
13574 * python/py-bpevent.c: Do not include py-ref.h.
13575 * python/py-cmd.c: Do not include py-ref.h.
13576 * python/py-continueevent.c: Do not include py-ref.h.
13577 * python/py-event.h: Do not include py-ref.h.
13578 * python/py-evtregistry.c: Do not include py-ref.h.
13579 * python/py-finishbreakpoint.c: Do not include py-ref.h.
13580 * python/py-frame.c: Do not include py-ref.h.
13581 * python/py-framefilter.c: Do not include py-ref.h.
13582 * python/py-function.c: Do not include py-ref.h.
13583 * python/py-infevents.c: Do not include py-ref.h.
13584 * python/py-linetable.c: Do not include py-ref.h.
13585 * python/py-objfile.c: Do not include py-ref.h.
13586 * python/py-param.c: Do not include py-ref.h.
13587 * python/py-prettyprint.c: Do not include py-ref.h.
13588 * python/py-progspace.c: Do not include py-ref.h.
13589 * python/py-symbol.c: Do not include py-ref.h.
13590 * python/py-symtab.c: Do not include py-ref.h.
13591 * python/py-type.c: Do not include py-ref.h.
13592 * python/py-unwind.c: Do not include py-ref.h.
13593 * python/py-utils.c: Do not include py-ref.h.
13594 * python/py-value.c: Do not include py-ref.h.
13595 * python/py-varobj.c: Do not include py-ref.h.
13596 * python/py-xmethods.c: Do not include py-ref.h.
13597 * python/python.c: Do not include py-ref.h.
13598 * varobj.c: Do not include py-ref.h.
13599
13600 2019-01-22 Tom Tromey <tom@tromey.com>
13601
13602 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
13603 keyword for bcache.
13604
13605 2019-01-22 Tom Tromey <tom@tromey.com>
13606
13607 * compile/compile-cplus-types.c: Remove a comment by #include.
13608
13609 2019-01-22 Tom Tromey <tom@tromey.com>
13610
13611 * compile/gcc-c-plugin.h: Include compile-internal.h.
13612
13613 2019-01-22 Tom Tromey <tom@tromey.com>
13614
13615 * stabsread.c (EXTERN): Do not define.
13616 (symnum, next_symbol_text_func, processing_gcc_compilation)
13617 (within_function, global_sym_chain, global_stabs)
13618 (previous_stab_code, this_object_header_files)
13619 (n_this_object_header_files)
13620 (n_allocated_this_object_header_files): Define.
13621 * stabsread.h (EXTERN): Never define. Use "extern".
13622
13623 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13624
13625 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
13626 history_value.
13627
13628 2019-01-21 Tom Tromey <tom@tromey.com>
13629
13630 * ui-out.c: Fix includes.
13631 * tui/tui-source.c: Fix includes.
13632 * target.c: Fix includes.
13633 * remote.c: Fix includes.
13634 * regcache.c: Fix includes.
13635 * python/py-block.c: Fix includes.
13636 * printcmd.c: Fix includes.
13637 * or1k-tdep.c: Fix includes.
13638 * mi/mi-main.c: Fix includes.
13639 * m32r-tdep.c: Fix includes.
13640 * csky-tdep.c: Fix includes.
13641 * compile/compile-cplus-types.c: Fix includes.
13642 * cli/cli-interp.c: Fix includes.
13643
13644 2019-01-21 Alan Hayward <alan.hayward@arm.com>
13645
13646 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
13647 for padding.
13648
13649 2019-01-16 Tom Tromey <tom@tromey.com>
13650
13651 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
13652 earlier.
13653 (struct objfile) <msymbols_range>: Move from top level.
13654 <msymbols>: New method.
13655 (class objfile_msymbols): Remove.
13656 * symtab.c (default_collect_symbol_completion_matches_break_on):
13657 Update.
13658 * symmisc.c (dump_msymbols): Update.
13659 * stabsread.c (scan_file_globals): Update.
13660 * objc-lang.c (info_selectors_command, info_classes_command)
13661 (find_methods): Update.
13662 * minsyms.c (find_solib_trampoline_target): Update.
13663 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
13664 * coffread.c (coff_symfile_read): Update.
13665 * ada-lang.c (ada_lookup_simple_minsym)
13666 (ada_collect_symbol_completion_matches): Update.
13667
13668 2019-01-16 Tom Tromey <tom@tromey.com>
13669
13670 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
13671 type. Remove no-argument constructor.
13672 <iterator::operator++>: Simplify.
13673 <begin>: Update.
13674 <end>: Use minimal_symbol_count.
13675
13676 2019-01-16 Tom Tromey <tom@tromey.com>
13677
13678 * objfiles.h (struct objfile) <psymtabs>: New method.
13679 (class objfile_psymtabs): Remove.
13680 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
13681 typedef.
13682 <range>: New method.
13683 (require_partial_symbols): Change return type.
13684 * psymtab.c (require_partial_symbols)
13685 (psym_expand_symtabs_matching): Update.
13686 * mdebugread.c (parse_partial_symbols): Update.
13687 * dbxread.c (dbx_end_psymtab): Update.
13688
13689 2019-01-15 Tom Tromey <tom@tromey.com>
13690
13691 * symtab.c (lookup_objfile_from_block)
13692 (lookup_symbol_in_objfile_symtabs)
13693 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
13694 (find_line_symtab, info_sources_command)
13695 (default_collect_symbol_completion_matches_break_on)
13696 (make_source_files_completion_list): Update.
13697 * symmisc.c (print_objfile_statistics, dump_objfile)
13698 (maintenance_print_symbols, maintenance_info_symtabs)
13699 (maintenance_check_symtabs, maintenance_info_line_tables):
13700 Update.
13701 * source.c (select_source_symtab)
13702 (forget_cached_source_info_for_objfile): Update.
13703 * objfiles.h (class objfile_compunits): Remove.
13704 (struct objfile) <compunits_range>: New typedef.
13705 (compunits): New method.
13706 * objfiles.c (objfile_relocate1): Update.
13707 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
13708 * maint.c (count_symtabs_and_blocks): Update.
13709 * linespec.c (iterate_over_all_matching_symtabs): Update.
13710 * cp-support.c (add_symbol_overload_list_qualified): Update.
13711 * coffread.c (coff_symtab_read): Update.
13712 * ada-lang.c (add_nonlocal_symbols)
13713 (ada_collect_symbol_completion_matches)
13714 (ada_add_global_exceptions): Update.
13715
13716 2019-01-15 Tom Tromey <tom@tromey.com>
13717
13718 * progspace.h (program_space) <objfiles_safe_range>: New
13719 typedef.
13720 <objfiles_safe>: New method.
13721 * objfiles.h (class all_objfiles_safe): Remove.
13722 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
13723 * jit.c (jit_inferior_exit_hook): Update.
13724
13725 2019-01-17 Tom Tromey <tom@tromey.com>
13726
13727 * progspace.h (program_space) <objfiles_range>: New typedef.
13728 <objfiles>: New method.
13729 <objfiles_head>: Rename from objfiles.
13730 (object_files): Update.
13731 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
13732 * guile/scm-pretty-print.c
13733 (ppscm_find_pretty_printer_from_objfiles): Update.
13734 * guile/scm-objfile.c (gdbscm_objfiles): Update.
13735 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
13736 Update.
13737 * python/py-progspace.c (pspy_get_objfiles): Update.
13738 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
13739 Update.
13740 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
13741 (objfpy_lookup_objfile_by_build_id): Update.
13742 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
13743 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
13744 Update.
13745 * symtab.c (iterate_over_symtabs, matching_obj_sections)
13746 (expand_symtab_containing_pc, lookup_objfile_from_block)
13747 (lookup_static_symbol, basic_lookup_transparent_type)
13748 (find_pc_sect_compunit_symtab, find_symbol_at_address)
13749 (find_line_symtab, info_sources_command)
13750 (default_collect_symbol_completion_matches_break_on)
13751 (make_source_files_completion_list, find_main_name): Update.
13752 * symmisc.c (print_symbol_bcache_statistics)
13753 (print_objfile_statistics, maintenance_print_symbols)
13754 (maintenance_print_msymbols, maintenance_print_objfiles)
13755 (maintenance_info_symtabs, maintenance_check_symtabs)
13756 (maintenance_expand_symtabs, maintenance_info_line_tables):
13757 Update.
13758 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
13759 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
13760 (map_overlay_command, unmap_overlay_command)
13761 (simple_overlay_update, expand_symtabs_matching)
13762 (map_symbol_filenames): Update.
13763 * symfile-debug.c (set_debug_symfile): Update.
13764 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
13765 Update.
13766 * source.c (select_source_symtab, forget_cached_source_info):
13767 Update.
13768 * solib.c (solib_read_symbols): Update.
13769 * solib-spu.c (append_ocl_sos): Update.
13770 * psymtab.c (maintenance_print_psymbols)
13771 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
13772 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
13773 * printcmd.c (info_symbol_command): Update.
13774 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
13775 Update.
13776 * objfiles.h (class all_objfiles): Remove.
13777 * objfiles.c (have_partial_symbols, have_full_symbols)
13778 (have_minimal_symbols, qsort_cmp, update_section_map)
13779 (shared_objfile_contains_address_p)
13780 (default_iterate_over_objfiles_in_search_order): Update.
13781 * objc-lang.c (info_selectors_command, info_classes_command)
13782 (find_methods): Update.
13783 * minsyms.c (find_solib_trampoline_target): Update.
13784 * maint.c (maintenance_info_sections)
13785 (maintenance_translate_address, count_symtabs_and_blocks):
13786 Update.
13787 * main.c (captured_main_1): Update.
13788 * linux-thread-db.c (try_thread_db_load_from_pdir)
13789 (has_libpthread): Update.
13790 * linespec.c (iterate_over_all_matching_symtabs)
13791 (search_minsyms_for_name): Update.
13792 * jit.c (jit_find_objf_with_entry_addr): Update.
13793 * hppa-tdep.c (find_unwind_entry)
13794 (hppa_lookup_stub_minimal_symbol): Update.
13795 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
13796 Update.
13797 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
13798 (elf_gnu_ifunc_resolve_by_got): Update.
13799 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
13800 * dwarf-index-write.c (save_gdb_index_command): Update.
13801 * cp-support.c (add_symbol_overload_list_qualified): Update.
13802 * breakpoint.c (create_overlay_event_breakpoint)
13803 (create_longjmp_master_breakpoint)
13804 (create_std_terminate_master_breakpoint)
13805 (create_exception_master_breakpoint): Update.
13806 * blockframe.c (find_pc_partial_function): Update.
13807 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
13808 (ada_collect_symbol_completion_matches)
13809 (ada_add_global_exceptions): Update.
13810
13811 2019-01-17 Tom Tromey <tom@tromey.com>
13812
13813 * solib-target.c (lm_info_target_p): Remove typedef. Don't
13814 declare VEC.
13815 (solib_target_parse_libraries): Change return type.
13816 (library_list_start_segment, library_list_start_section)
13817 (library_list_end_library, library_list_start_library); Update.
13818 (solib_target_free_library_list): Remove.
13819 (solib_target_parse_libraries): Remove cleanup. Change return
13820 type.
13821 (solib_target_current_sos): Update.
13822
13823 2019-01-17 Tom Tromey <tromey@bapiya>
13824
13825 * valprint.c: Replace "the the" with "the".
13826 * symtab.c: Replace "the the" with "the".
13827 * solib.c: Replace "the the" with "the".
13828 * solib-dsbt.c: Replace "the the" with "the".
13829 * linespec.c: Replace "the the" with "the".
13830 * dwarf2loc.h: Replace "the the" with "the".
13831 * amd64-windows-tdep.c: Replace "the the" with "the".
13832 * aarch64-tdep.c: Replace "the the" with "the".
13833
13834 2019-01-16 Keith Seitz <keiths@redhat.com>
13835
13836 PR gdb/23773
13837 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
13838 <builder>: Rename to ..
13839 <m_builder>: ... this and make private.
13840 (dwarf2_cu::get_builder): New method. Change all users of
13841 `builder' to use this method.
13842 (dwarf2_start_symtab): Move to ...
13843 (dwarf2_cu::start_symtab): ... here. Update all callers
13844 (setup_type_unit_groups): Move to ...
13845 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
13846 callers.
13847 (dwarf2_cu::reset_builder): New method.
13848 (process_full_compunit, process_full_type_unit): Use
13849 dwarf2_cu::reset_builder.
13850 (follow_die_offset): Record the ancestor CU if it is different
13851 from the followed DIE's CU.
13852 (follow_die_sig_1): Likewise.
13853
13854 2019-01-15 Tom Tromey <tom@tromey.com>
13855
13856 * remote.c (class remote_state) <buf>: Now a char_vector.
13857 <buf_size>: Remove.
13858 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
13859 parameter.
13860 (remote_target::getpkt_or_notif_sane_1)
13861 (remote_target::getpkt_sane)
13862 (remote_target::getpkt_or_notif_sane): Likewise.
13863 (class remote_target) <putpkt>: New overload.
13864 (remote_target::read_frame): Change type of "buf_p". Remove
13865 sizeof_p parameter.
13866 (packet_ok): New overload.
13867 (packet_check_result): New overload.
13868 Update all uses.
13869
13870 2019-01-14 Tom Tromey <tom@tromey.com>
13871
13872 * remote-notif.c (handle_notification, remote_notif_ack)
13873 (remote_notif_parse): Make "buf" const.
13874 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
13875 const.
13876 (remote_notif_parse, remote_notif_ack, handle_notification):
13877 Likewise.
13878 * remote.c (remote_notif_stop_parse): Make "buf" const.
13879 (remote_target::remote_parse_stop_reply): Make "buf" const.
13880 (remote_notif_stop_ack): Make "buf" const.
13881
13882 2019-01-14 Tom Tromey <tom@tromey.com>
13883
13884 * remote.c (remote_console_output): Make parameter const.
13885
13886 2019-01-14 Tom Tromey <tom@tromey.com>
13887
13888 * target-debug.h (target_debug_print_signals): Constify.
13889 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
13890 * procfs.c (procfs_target::pass_signals): Update.
13891 * linux-nat.c (linux_nat_target::pass_signals): Update.
13892 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
13893 * target-delegates.c: Rebuild.
13894 * remote.c (remote_target::program_signals): Update.
13895 (remote_target::pass_signals): Update.
13896 * target.c (target_pass_signals): Constify argument.
13897 (target_program_signals): Likewise.
13898 * target.h (struct target_ops) <pass_signals, program_signals>:
13899 Constify argument.
13900 (target_pass_signals, target_program_signals): Constify argument.
13901
13902 2019-01-14 Tom Tromey <tom@tromey.com>
13903
13904 PR tui/28819:
13905 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
13906
13907 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
13908
13909 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
13910 field.
13911 * rs6000-tdep.c: Include reggroups.h.
13912 (IS_V_ALIAS_PSEUDOREG): Define.
13913 (rs6000_register_name): Return names for the "vX" aliases.
13914 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
13915 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
13916 aliases. Call default_register_reggroup_p for all other
13917 pseudo-registers.
13918 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
13919 New functions.
13920 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
13921 Handle "vX" aliases.
13922 (v_alias_pseudo_register_collect): New function.
13923 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
13924 (rs6000_gdbarch_init): Initialize "vX" aliases as
13925 pseudo-registers. Restore registration of
13926 rs6000_pseudo_register_reggroup_p with
13927 set_tdesc_pseudo_register_reggroup_p.
13928
13929 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
13930
13931 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
13932 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
13933 set_gdbarch_num_pseudo_regs.
13934
13935 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13936
13937 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
13938 Remove arg prefixname, add do_set and do_show.
13939 Add member functions set_list and show_list.
13940 * cli/cli-style.c (class cli_style_option): Update accordingly.
13941 (style_set_list): Move to file scope.
13942 (style_show_list): Likewise.
13943 (set_style): Call help_list.
13944 (show_style): Call cmd_show_list.
13945 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
13946 Update to use the new macro.
13947
13948 2019-10-12 Joel Brobecker <brobecker@adacore.com>
13949
13950 * ada-lang.c (_initialize_ada_language): Expand the help text
13951 for the "catch exception" command.
13952
13953 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13954
13955 * symtab.c (matching_obj_sections): Initialize obj,
13956 declare it closer to its usage.
13957
13958 2019-01-10 Tom Tromey <tom@tromey.com>
13959
13960 * thread-iter.h (inf_threads_iterator): Use next_iterator.
13961 (basic_inf_threads_range): Remove.
13962 (inf_threads_range, inf_non_exited_threads_range)
13963 (safe_inf_threads_range): Use next_adapter.
13964
13965 2019-01-10 Keith Seitz <keiths@redhat.com>
13966
13967 PR gdb/23712
13968 PR symtab/23010
13969 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
13970 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
13971
13972 2019-01-10 Keith Seitz <keiths@redhat.com>
13973
13974 PR gdb/23712
13975 PR symtab/23010
13976 * dictionary.c (pending_to_vector): Remove.
13977 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
13978 Remove _1 suffix, replacing functions of the same name. Update
13979 all callers.
13980 (dict_create_hashed, dict_create_hashed_expandable)
13981 (dict_create_linear, dict_create_linear_expandable, dict_free)
13982 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
13983 Make functions static.
13984
13985 2019-01-10 Keith Seitz <keiths@redhat.com>
13986
13987 PR gdb/23712
13988 PR symtab/23010
13989 * dictionary.h (struct dictionary): Replace declaration with
13990 multidictionary.
13991 (dict_create_hashed, dict_create_hashed_expandable)
13992 (dict_create_linear, dict_create_linear_expandable)
13993 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
13994 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
13995 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
13996 taking multidictionary argument.
13997 [ALL_DICT_SYMBOLS]: Update for multidictionary.
13998 * block.h (struct block) <dict>: Change to multidictionary
13999 and rename `multidict'.
14000 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
14001 symmisc.c: Update all dictionary references to multidictionary.
14002
14003 2019-01-10 Keith Seitz <keiths@redhat.com>
14004
14005 PR gdb/23712
14006 PR symtab/23010
14007 * dictionary.c: Include unordered_map.
14008 (pending_to_vector): New function.
14009 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
14010 Rewrite the non-"_1" functions to take vector instead
14011 of linked list.
14012 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
14013 "new" _1 versions of the same name.
14014 (multidictionary): Define.
14015 (std::hash<enum language): New definition.
14016 (collate_pending_symbols_by_language, mdict_create_hashed)
14017 (mdict_create_hashed_expandable, mdict_create_linear)
14018 (mdict_create_linear_expandable, mdict_free)
14019 (find_language_dictionary, create_new_language_dictionary)
14020 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
14021 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
14022 (mdict_size, mdict_empty): New functions.
14023 * dictionary.h (mdict_iterator): Define.
14024
14025 2019-01-10 Pedro Alves <palves@redhat.com>
14026
14027 * breakpoint.c (read_uploaded_action)
14028 (create_tracepoint_from_upload): Adjust to use
14029 gdb::unique_xmalloc_ptr.
14030 * ctf.c (ctf_write_uploaded_tp):
14031 (SET_ARRAY_FIELD): Use emplace_back.
14032 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
14033 * tracefile-tfile.c (tfile_write_uploaded_tp):
14034 * tracepoint.c (parse_tracepoint_definition): Adjust to use
14035 gdb::unique_xmalloc_ptr.
14036 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
14037 at_string, cond_string, cmd_strings>: Replace char pointers
14038 with gdb::unique_xmalloc_ptr.
14039
14040 2019-01-10 Pedro Alves <palves@redhat.com>
14041
14042 * solib-target.c (library_list_start_library): Don't xstrdup name.
14043
14044 2019-01-10 Pedro Alves <palves@redhat.com>
14045
14046 * mdebugread.c (parse_partial_symbols): Use
14047 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
14048
14049 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
14050
14051 * linux-fork.c (scoped_switch_fork_info)
14052 <~scoped_switch_fork_info>: Fix incorrect variable name.
14053
14054 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
14055
14056 * linux-fork.c (scoped_switch_fork_info)
14057 <scoped_switch_fork_info>: Make explicit.
14058 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
14059
14060 2019-01-10 Tom Tromey <tom@tromey.com>
14061
14062 * objfiles.h (objfile::reset_psymtabs): Update.
14063 * objfiles.c (objfile::objfile): Update.
14064 * psymtab.h (psymtab_storage::obstack): Update.
14065 (psymtab_storage::m_obstack): Use gdb::optional.
14066 (class psymtab_storage): Update comment. Remove objfile
14067 parameter.
14068 * psymtab.c (psymtab_storage::psymtab_storage): Update.
14069
14070 2019-01-10 Tom Tromey <tom@tromey.com>
14071
14072 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
14073 <free_psymtabs>: Now private.
14074 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
14075 (allocate_psymtab): Use new method.
14076
14077 2019-01-10 Tom Tromey <tom@tromey.com>
14078
14079 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
14080 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
14081 * mdebugread.c (parse_partial_symbols): Use
14082 allocate_dependencies.
14083 * dwarf2read.c (dwarf2_create_include_psymtab): Use
14084 allocate_dependencies.
14085 (process_psymtab_comp_unit_reader)
14086 (build_type_psymtab_dependencies): Likewise.
14087 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
14088
14089 2019-01-10 Tom Tromey <tom@tromey.com>
14090
14091 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
14092 PSYMBOL_SET_LANGUAGE.
14093 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
14094
14095 2019-01-10 Tom Tromey <tom@tromey.com>
14096
14097 * psymtab.h (psymtab_storage::obstack): New method.
14098 <m_obstack>: Rename from obstack; now private.
14099 * psymtab.c (psymtab_storage): Update.
14100 * dwarf2read.c (create_addrmap_from_index)
14101 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
14102 Update.
14103
14104 2019-01-10 Tom Tromey <tom@tromey.com>
14105
14106 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
14107 * objfiles.h (objfile::reset_psymtabs): New method.
14108
14109 2019-01-10 Tom Tromey <tom@tromey.com>
14110
14111 * symmisc.c (print_symbol_bcache_statistics): Update.
14112 (print_objfile_statistics): Update.
14113 * symfile.c (reread_symbols): Update.
14114 * psymtab.h (class psymtab_storage): New.
14115 * psymtab.c (psymtab_storage): New constructor.
14116 (~psymtab_storage): New destructor.
14117 (require_partial_symbols): Update.
14118 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
14119 (find_pc_sect_psymtab, find_pc_sect_psymbol)
14120 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
14121 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
14122 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
14123 (start_psymtab_common, end_psymtab_common)
14124 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
14125 (allocate_psymtab): Update.
14126 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
14127 Update.
14128 (dump_psymtab_addrmap, maintenance_print_psymbols)
14129 (maintenance_check_psymtabs): Update.
14130 (class objfile_psymtabs): Move to objfiles.h.
14131 * psympriv.h (discard_psymtab): Now inline.
14132 (psymtab_discarder::psymtab_discarder): Update.
14133 (psymtab_discarder::~psymtab_discarder): Update.
14134 (ALL_OBJFILE_PSYMTABS): Rewrite.
14135 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
14136 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
14137 Remove fields.
14138 <partial_symtabs>: New field.
14139 (class objfile_psymtabs): Move from psymtab.h. Update.
14140 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
14141 psymbol_cache.
14142 (objfile::~objfile): Don't destroy psymbol_cache.
14143 * mdebugread.c (parse_partial_symbols): Update.
14144 * dwarf2read.c (create_addrmap_from_index)
14145 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
14146 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
14147 (add_partial_subprogram, dwarf2_ranges_read): Update.
14148 * dwarf-index-write.c (write_address_map)
14149 (write_one_signatured_type, recursively_write_psymbols)
14150 (class debug_names, class debug_names, write_psymtabs_to_index):
14151 Update.
14152
14153 2019-01-10 Tom Tromey <tom@tromey.com>
14154
14155 * symtab.h (SYMBOL_SET_NAMES): Update.
14156 (symbol_set_names): Update.
14157 (MSYMBOL_SET_NAMES): Update.
14158 * symtab.c (symbol_set_names): Change argument to be an
14159 objfile_per_bfd_storage.
14160 * psymtab.c (add_psymbol_to_bcache): Update.
14161 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
14162
14163 2019-01-10 Tom Tromey <tom@tromey.com>
14164
14165 * symtab.c (create_demangled_names_hash): Change argument to be an
14166 objfile_per_bfd_storage.
14167 (symbol_set_names): Update.
14168
14169 2019-01-10 Tom Tromey <tom@tromey.com>
14170
14171 * xcoffread.c (xcoff_initial_scan): Unconditionally call
14172 init_psymbol_list.
14173 * psymtab.c (init_psymbol_list): Do nothing if already called.
14174 * psympriv.h (init_psymbol_list): Add comment.
14175 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
14176 init_psymbol_list.
14177 * dbxread.c (dbx_symfile_read): Unconditionally call
14178 init_psymbol_list.
14179
14180 2019-01-10 Tom Tromey <tom@tromey.com>
14181
14182 * xcoffread.c (scan_xcoff_symtab): Update.
14183 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
14184 "where".
14185 * mdebugread.c (parse_partial_symbols)
14186 (handle_psymbol_enumerators): Update.
14187 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
14188 * dbxread.c (read_dbx_symtab): Update.
14189 * psympriv.h (psymbol_placement): New enum.
14190 (add_psymbol_to_list): Update.
14191
14192 2019-01-10 Tom Tromey <tom@tromey.com>
14193
14194 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
14195 static_psymbols parameters.
14196 (scan_xcoff_symtab): Update.
14197 * psymtab.c (start_psymtab_common): Remove global_psymbols and
14198 static_psymbols parameters.
14199 * psympriv.h (start_psymtab_common): Update.
14200 * mdebugread.c (parse_partial_symbols): Update.
14201 * dwarf2read.c (create_partial_symtab): Update.
14202 * dbxread.c (read_dbx_symtab): Update.
14203 (start_psymtab): Remove global_psymbols and static_psymbols
14204 parameters.
14205
14206 2019-01-10 Tom Tromey <tom@tromey.com>
14207
14208 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
14209 * psymtab.c (allocate_psymtab): Add comment.
14210 * psympriv.h (allocate_psymtab): Add comment.
14211 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
14212 initializations.
14213 * dbxread.c (dbx_end_psymtab): Remove some initializations.
14214
14215 2019-01-10 Tom Tromey <tom@tromey.com>
14216
14217 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
14218 Don't declare.
14219 * mipsread.c: Include mdebugread.h.
14220 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
14221 Declare.
14222 * elfread.c: Include mdebugread.h.
14223
14224 2019-01-09 Tom Tromey <tom@tromey.com>
14225
14226 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
14227 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
14228 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
14229 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
14230 (psym_lookup_symbol, psym_find_last_source_symtab)
14231 (psym_forget_cached_source_info, psym_print_stats)
14232 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
14233 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
14234 (psym_map_matching_symbols, psym_expand_symtabs_matching)
14235 (psym_find_compunit_symtab_by_address)
14236 (maintenance_print_psymbols, maintenance_info_psymtabs)
14237 (maintenance_check_psymtabs): Use ranged for.
14238 * psymtab.h (class objfile_psymtabs): New.
14239 (require_partial_symbols): Return objfile_psymtabs.
14240 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
14241
14242 2019-01-09 Tom Tromey <tom@tromey.com>
14243
14244 * symfile.c (overlay_invalidate_all, find_pc_overlay)
14245 (find_pc_mapped_section, list_overlays_command)
14246 (map_overlay_command, unmap_overlay_command)
14247 (simple_overlay_update): Use all_objfiles.
14248 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
14249 * printcmd.c (info_symbol_command): Use all_objfiles.
14250 * objfiles.h (ALL_OBJSECTIONS): Remove.
14251 * maint.c (maintenance_translate_address): Use all_objfiles.
14252 * gcore.c (gcore_create_callback): Use all_objfiles.
14253 (objfile_find_memory_regions): Likewise.
14254
14255 2019-01-09 Tom Tromey <tom@tromey.com>
14256
14257 * symtab.c (find_line_symtab, info_sources_command)
14258 (make_source_files_completion_list): Use objfile_compunits.
14259 * source.c (select_source_symtab): Use objfile_compunits.
14260 * objfiles.h (struct objfile): Update comment.
14261 (ALL_OBJFILES): Remove.
14262 (ALL_FILETABS): Remove.
14263 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
14264 objfile_compunits.
14265
14266 2019-01-09 Tom Tromey <tom@tromey.com>
14267
14268 * symmisc.c (print_objfile_statistics, dump_objfile)
14269 (maintenance_print_symbols): Use compunit_filetabs.
14270 * source.c (forget_cached_source_info_for_objfile): Use
14271 compunit_filetabs.
14272 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
14273 (ALL_FILETABS): Use compunit_filetabs.
14274 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
14275 * coffread.c (coff_symtab_read): Use compunit_filetabs.
14276
14277 2019-01-09 Tom Tromey <tom@tromey.com>
14278
14279 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
14280 (compunit_filetabs): New.
14281 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
14282 compunit_filetabs.
14283 (info_sources_command, make_source_files_completion_list): Remove
14284 declaration.
14285 * symmisc.c (print_objfile_statistics, dump_objfile)
14286 (maintenance_print_symbols): Remove declaration.
14287 (maintenance_info_symtabs): Use compunit_filetabs.
14288 (maintenance_info_line_tables): Likewise.
14289 * source.c (select_source_symtab): Change local variable name.
14290 (forget_cached_source_info_for_objfile): Remove declaration.
14291 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
14292 * objfiles.c (objfile_relocate1): Remove declaration.
14293 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
14294 declaration.
14295 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
14296 * coffread.c (coff_symtab_read): Remove declaration.
14297 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
14298 compunit_filetabs.
14299
14300 2019-01-09 Tom Tromey <tom@tromey.com>
14301
14302 * symtab.c (lookup_objfile_from_block)
14303 (find_pc_sect_compunit_symtab, search_symbols)
14304 (default_collect_symbol_completion_matches_break_on): Use
14305 objfile_compunits.
14306 * objfiles.h (ALL_COMPUNITS): Remove.
14307 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
14308 * cp-support.c (add_symbol_overload_list_qualified): Use
14309 objfile_compunits.
14310 * ada-lang.c (ada_collect_symbol_completion_matches)
14311 (ada_add_global_exceptions): Use objfile_compunits.
14312
14313 2019-01-09 Tom Tromey <tom@tromey.com>
14314
14315 * source.c (select_source_symtab)
14316 (forget_cached_source_info_for_objfile): Remove declaration.
14317 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
14318 declaration.
14319 * maint.c (count_symtabs_and_blocks): Remove declaration.
14320 * cp-support.c (add_symbol_overload_list_qualified): Remove
14321 declaration.
14322 * coffread.c (coff_symtab_read): Remove declaration.
14323 * symtab.c (lookup_symbol_in_objfile_symtabs)
14324 (basic_lookup_transparent_type_1): Use objfile_compunits.
14325 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
14326 (info_sources_command, search_symbols)
14327 (default_collect_symbol_completion_matches_break_on)
14328 (make_source_files_completion_list): Remove declaration.
14329 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
14330 (ada_collect_symbol_completion_matches)
14331 (ada_add_global_exceptions): Remove declaration.
14332 * linespec.c (iterate_over_all_matching_symtabs): Use
14333 objfile_compunits.
14334 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
14335 (class objfile_compunits): New.
14336 (ALL_COMPUNITS): Use objfile_compunits.
14337 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
14338 (maintenance_check_symtabs, maintenance_info_line_tables): Use
14339 objfile_compunits.
14340 * objfiles.c (objfile_relocate1): Use objfile_compunits.
14341
14342 2019-01-09 Tom Tromey <tom@tromey.com>
14343
14344 * symtab.c (search_symbols)
14345 (default_collect_symbol_completion_matches_break_on): Use
14346 objfile_msymbols.
14347 * ada-lang.c (ada_lookup_simple_minsym)
14348 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
14349 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
14350 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
14351 objfile_msymbols.
14352 * coffread.c (coff_symfile_read): Use objfile_msymbols.
14353 * symmisc.c (dump_msymbols): Use objfile_msymbols.
14354 * objc-lang.c (find_methods): Use objfile_msymbols.
14355 (info_selectors_command, info_classes_command): Likewise.
14356 * stabsread.c (scan_file_globals): Use objfile_msymbols.
14357 * objfiles.h (class objfile_msymbols): New.
14358 (ALL_OBJFILE_MSYMBOLS): Remove.
14359 (ALL_MSYMBOLS): Remove.
14360
14361 2019-01-09 Tom Tromey <tom@tromey.com>
14362
14363 * common/next-iterator.h (next_adapter): Add Iterator template
14364 parameter.
14365 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
14366 (class all_objfiles_safe): New.
14367 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
14368 * objfiles.c (put_objfile_before): Update comment.
14369 (add_separate_debug_objfile): Likewise.
14370 (free_all_objfiles): Use all_objfiles_safe.
14371 (objfile_purge_solibs): Likewise.
14372
14373 2019-01-09 Tom Tromey <tom@tromey.com>
14374
14375 * symtab.c (iterate_over_symtabs, matching_obj_sections)
14376 (expand_symtab_containing_pc, lookup_static_symbol)
14377 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
14378 (find_symbol_at_address, find_line_symtab, find_main_name): Use
14379 all_objfiles.
14380 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
14381 * breakpoint.c (create_overlay_event_breakpoint)
14382 (create_longjmp_master_breakpoint)
14383 (create_std_terminate_master_breakpoint)
14384 (create_exception_master_breakpoint): Use all_objfiles.
14385 * linux-thread-db.c (try_thread_db_load_from_pdir)
14386 (has_libpthread): Use all_objfiles.
14387 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
14388 * linespec.c (iterate_over_all_matching_symtabs)
14389 (search_minsyms_for_name): Use all_objfiles.
14390 * maint.c (maintenance_info_sections): Use all_objfiles.
14391 * main.c (captured_main_1): Use all_objfiles.
14392 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
14393 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
14394 * guile/scm-pretty-print.c
14395 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
14396 * solib-spu.c (append_ocl_sos): Use all_objfiles.
14397 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
14398 (maintenance_print_msymbols): Use all_objfiles.
14399 * source.c (select_source_symtab): Use all_objfiles.
14400 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
14401 * symfile.c (remove_symbol_file_command)
14402 (expand_symtabs_matching, map_symbol_filenames): Use
14403 all_objfiles.
14404 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
14405 all_objfiles.
14406 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
14407 * objc-lang.c (find_methods): Use all_objfiles.
14408 * objfiles.c (have_partial_symbols, have_full_symbols)
14409 (have_minimal_symbols, qsort_cmp)
14410 (default_iterate_over_objfiles_in_search_order): Use
14411 all_objfiles.
14412 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
14413 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
14414 (maintenance_check_psymtabs): Use all_objfiles.
14415 (ALL_PSYMTABS): Remove.
14416 * compile/compile-object-run.c (do_module_cleanup): Use
14417 all_objfiles.
14418 * blockframe.c (find_pc_partial_function): Use all_objfiles.
14419 * cp-support.c (add_symbol_overload_list_qualified): Use
14420 all_objfiles.
14421 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
14422 Use all_objfiles.
14423 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
14424 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
14425 all_objfiles.
14426 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
14427 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
14428 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
14429 Uses all_objfiles.
14430 * solib.c (solib_read_symbols): Use all_objfiles
14431
14432 2019-01-09 Tom Tromey <tom@tromey.com>
14433
14434 * probe.c (parse_probes_in_pspace): Use all_objfiles.
14435 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
14436 all_objfiles.
14437 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
14438 * symmisc.c (print_symbol_bcache_statistics)
14439 (print_objfile_statistics, maintenance_print_objfiles)
14440 (maintenance_info_symtabs, maintenance_check_symtabs)
14441 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
14442 all_objfiles.
14443 * source.c (forget_cached_source_info): Use all_objfiles.
14444 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
14445 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
14446 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
14447 * objfiles.c (update_section_map): Use all_objfiles.
14448 (shared_objfile_contains_address_p): Likewise.
14449 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
14450 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
14451
14452 2019-01-09 Tom Tromey <tom@tromey.com>
14453
14454 * common/next-iterator.h: New file.
14455 * objfiles.h (class all_objfiles): New.
14456 (struct objfile_iterator): New.
14457
14458 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14459
14460 * NEWS: Move the description of the changed "frame", "select-frame",
14461 and "info frame" commands to the Changed commands section.
14462
14463 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
14464
14465 * gdbtypes.c (check_stub_method_group): Remove handling of old
14466 mangling schemes.
14467 * linespec.c (find_methods): Likewise.
14468 * stabsread.c (read_member_functions): Likewise.
14469 * valops.c (search_struct_method): Likewise.
14470 (value_struct_elt_for_reference): Likewise.
14471 * NEWS: Mention this change.
14472
14473 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
14474
14475 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
14476 print_source_lines.
14477 * source.c (print_source_lines_base): Update line number check.
14478 (print_source_lines): New function.
14479 (source_lines_range::source_lines_range): New function.
14480 * source.h (class source_lines_range): New class.
14481 (print_source_lines): New declaration.
14482
14483 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14484
14485 * linespec.c (linespec_state_destructor): Free self->canonical_names.
14486
14487 2019-01-08 Tom Tromey <tom@tromey.com>
14488 Simon Marchi <simon.marchi@ericsson.com>
14489
14490 PR gdb/24060
14491 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
14492 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
14493 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
14494 * f-exp.y (DOLLAR_VARIABLE): Likewise.
14495 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
14496 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
14497
14498 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
14499
14500 * source.c (select_source_symtab): Move header comment to
14501 declaration in source.h.
14502 (forget_cached_source_info_for_objfile): Likewise.
14503 (forget_cached_source_info): Likewise.
14504 (identify_source_line): Likewise.
14505 * source.h (identify_source_line): Move declaration from symtab.h
14506 and add comment from source.c
14507 (print_source_lines): Likewise.
14508 (forget_cached_source_info_for_objfile): Likewise.
14509 (forget_cached_source_info): Likewise.
14510 (select_source_symtab): Likewise.
14511 (enum print_source_lines_flag): Move definition from symtab.h.
14512 * symtab.h (identify_source_line): Move declaration to source.h.
14513 (print_source_lines): Likewise.
14514 (forget_cached_source_info_for_objfile): Likewise.
14515 (forget_cached_source_info): Likewise.
14516 (select_source_symtab): Likewise.
14517 (enum print_source_lines_flag): Move definition to source.h.
14518 * tui/tui-hooks.c: Add 'source.h' include.
14519
14520 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
14521
14522 * source.c (print_source_lines_base): Handle requests to print
14523 reverse line number sequences, and guard against empty lines
14524 string.
14525
14526 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
14527
14528 * source.c (print_source_lines_base): Fix skip of '\r' if next
14529 character is '\n'.
14530
14531 2019-01-06 Tom Tromey <tom@tromey.com>
14532
14533 * c-exp.y (struct c_parse_state) <macro_original_text,
14534 expansion_obstack>: New member.
14535 (macro_original_text, expansion_obstack): Remove globals.
14536 (scan_macro_expansion, scanning_macro_expansion)
14537 (finished_macro_expansion): Update.
14538 (scan_macro_cleanup): Remove.
14539 (yylex, c_parse): Update.
14540
14541 2019-01-06 Tom Tromey <tom@tromey.com>
14542
14543 * c-exp.y (struct c_parse_state) <strings>: New member.
14544 (operator_stoken): Update.
14545
14546 2019-01-06 Tom Tromey <tom@tromey.com>
14547
14548 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
14549 (union type_stack_elt) <typelist_val>: Now a pointer to
14550 std::vector.
14551 (type_stack_cleanup): Don't declare.
14552 (push_typelist): Update.
14553 * parse.c (pop_typelist): Return a std::vector.
14554 (push_typelist): Take a std::vector.
14555 (follow_types): Update. Do not free args.
14556 (type_stack_cleanup): Remove.
14557 * c-exp.y (struct c_parse_state): New.
14558 (cpstate): New global.
14559 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
14560 (nonempty_typelist): Update.
14561 (func_mod): Create a new vector.
14562 (c_parse): Create a c_parse_state.
14563 (check_parameter_typelist): Do not delete params.
14564 (function_method): Update. Do not delete type_list.
14565
14566 2019-01-06 Tom Tromey <tom@tromey.com>
14567
14568 PR gdb/28155:
14569 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
14570 check_typedef.
14571 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
14572 (print_return_value): Likewise.
14573
14574 2019-01-05 Tom Tromey <tom@tromey.com>
14575
14576 * contrib/cleanup_check.py: Remove.
14577 * contrib/gcc-with-excheck: Remove.
14578 * contrib/exsummary.py: Remove.
14579 * contrib/excheck.py: Remove.
14580
14581 2019-01-05 Joel Brobecker <brobecker@adacore.com>
14582
14583 * thread.c (delete_thread_1): Add gdb_assert that THR is not
14584 NULL. Initialize tpprev to NULL instead of assigning it
14585 to NULL on the next statement.
14586 * windows-nat.c (windows_delete_thread): Remove check for
14587 main_thread_id before printing thread exit notifications.
14588 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
14589 Remove thread ID check against main_thread_id.
14590 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
14591 windows_delete_thread.
14592 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
14593
14594 2019-01-04 Tom Tromey <tom@tromey.com>
14595
14596 * compile/compile.c (_initialize_compile): Use upper case for
14597 metasyntactic variables.
14598 * symmisc.c (_initialize_symmisc): Use upper case for
14599 metasyntactic variables.
14600 * psymtab.c (_initialize_psymtab): Use upper case for
14601 metasyntactic variables.
14602 * demangle.c (demangle_command): Use upper case for metasyntactic
14603 variables.
14604 (_initialize_demangler): Likewise.
14605 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
14606 variables.
14607
14608 2019-01-03 Tom Tromey <tom@tromey.com>
14609
14610 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
14611
14612 2019-01-03 Tom Tromey <tom@tromey.com>
14613
14614 * python/py-symtab.c (salpy_str): Update.
14615 (struct salpy_sal_object) <symtab>: Now a PyObject.
14616 (salpy_dealloc): Update.
14617 (del_objfile_sal): Use gdbpy_ref.
14618
14619 2019-01-03 Tom Tromey <tom@tromey.com>
14620
14621 * python/py-type.c (convert_field): Use new_reference. Return
14622 gdbpy_ref.
14623 (make_fielditem): Return gdbpy_ref.
14624 (typy_fields): Update.
14625 (typy_getitem): Update.
14626 (field_name): Return gdbpy_ref. Use new_reference.
14627 (typy_iterator_iternext): Update.
14628
14629 2019-01-03 Tom Tromey <tom@tromey.com>
14630
14631 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
14632
14633 2019-01-03 Tom Tromey <tom@tromey.com>
14634
14635 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
14636 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
14637 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
14638 (pspy_set_frame_filters, pspy_set_frame_unwinders)
14639 (pspy_set_type_printers): Likewise.
14640 * python/py-function.c (fnpy_init): Use gdbpy_ref.
14641 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
14642 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
14643 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
14644 (objfpy_set_type_printers): Likewise.
14645
14646 2019-01-03 Tom Tromey <tom@tromey.com>
14647
14648 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
14649 (gdbpy_print_stack): Use gdbpy_err_fetch.
14650 * python/python-internal.h (class gdbpy_err_fetch): New class.
14651 (class gdbpy_enter) <m_error_type, m_error_value,
14652 m_error_traceback>: Remove.
14653 <m_error>: New member.
14654 (gdbpy_exception_to_string): Don't declare.
14655 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
14656 * python/py-value.c (convert_value_from_python): Use
14657 gdbpy_err_fetch.
14658 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
14659 gdbpy_exception_to_string.
14660 (gdbpy_handle_exception): Use gdbpy_err_fetch.
14661 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
14662 gdbpy_err_fetch.
14663
14664 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14665
14666 * linux-nat.c (delete_lwp_cleanup): Delete.
14667 (struct lwp_deleter): New struct.
14668 (lwp_info_up): New typedef.
14669 (linux_nat_target::follow_fork): Delete cleanup, and make use of
14670 lwp_info_up.
14671
14672 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14673
14674 * linux-fork.c (class scoped_switch_fork_info): New class.
14675 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
14676
14677 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14678
14679 * valops.c (find_overload_match): Remove use of null_cleanup, and
14680 calls to do_cleanups.
14681
14682 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14683
14684 * compile/compile-cplus-types.c
14685 (compile_cplus_instance::decl_name): Handle changes to
14686 cp_func_name.
14687 * cp-support.c (cp_func_name): Update header comment, update
14688 return type.
14689 * cp-support.h (cp_func_name): Update return type in declaration.
14690 * valops.c (find_overload_match): Move temp_func local to top
14691 level of function and change its type. Use temp_func to hold and
14692 delete temporary string obtained from cp_func_name.
14693
14694 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14695
14696 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
14697 gdb::char_vector, remove cleanup, and update uses of `msg`.
14698
14699 2019-01-03 Jim Wilson <jimw@sifive.com>
14700
14701 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
14702
14703 2019-01-02 Tom Tromey <tom@tromey.com>
14704
14705 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
14706 (tdesc_parse_xml): Remove cleanups.
14707 * target-descriptions.h (make_cleanup_free_target_description):
14708 Don't declare.
14709 (target_desc_deleter): New struct.
14710 (target_desc_up): New typedef.
14711 * target-descriptions.c (target_desc_deleter::operator()): Rename
14712 from free_target_description.
14713 (make_cleanup_free_target_description): Remove.
14714
14715 2019-01-02 Tom Tromey <tom@tromey.com>
14716
14717 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
14718 constructor, destructor.
14719 (linespec_parser): Remove typedef.
14720 (~linespec_parser): Rename from linespec_parser_delete.
14721 (linespec_lex_to_end, linespec_complete_label)
14722 (linespec_complete): Update.
14723 (decode_line_full): Remove cleanups.
14724 (decode_line_1): Update.
14725
14726 2019-01-02 Tom Tromey <tom@tromey.com>
14727
14728 * python/python-internal.h (inferior_to_inferior_object): Change
14729 return type.
14730 * python/py-exitedevent.c (create_exited_event_object): Update.
14731 * python/py-inferior.c (inferior_to_inferior_object): Return
14732 gdbpy_ref.
14733 (python_new_inferior, python_inferior_deleted)
14734 (thread_to_thread_object, delete_thread_object)
14735 (build_inferior_list, gdbpy_selected_inferior): Update.
14736 * python/py-infthread.c (create_thread_object): Update. Also fail
14737 if inferior_to_inferior_object fails.
14738
14739 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
14740
14741 * inferior.h (class inferior) <displaced_step_state>: New field.
14742 * infrun.h (struct displaced_step_state): Move here from
14743 infrun.c. Initialize fields, add constructor.
14744 <inf>: Remove field.
14745 <reset>: New method.
14746 * infrun.c (struct displaced_step_inferior_state): Move to
14747 infrun.h.
14748 (displaced_step_inferior_states): Remove.
14749 (get_displaced_stepping_state): Adust.
14750 (displaced_step_in_progress_any_inferior): Adjust.
14751 (displaced_step_in_progress_thread): Adjust.
14752 (displaced_step_in_progress): Adjust.
14753 (add_displaced_stepping_state): Remove.
14754 (get_displaced_step_closure_by_addr): Adjust.
14755 (remove_displaced_stepping_state): Remove.
14756 (infrun_inferior_exit): Call displaced_step_state.reset.
14757 (use_displaced_stepping): Don't check for NULL.
14758 (displaced_step_prepare_throw): Call
14759 get_displaced_stepping_state.
14760 (displaced_step_fixup): Don't check for NULL.
14761 (prepare_for_detach): Don't check for NULL.
14762
14763 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14764
14765 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
14766 in case of call that did not complete.
14767
14768 2019-01-02 Andrey Utkin <autkin@undo.io>
14769
14770 * symfile.c (find_separate_debug_file): Fix search of debug files for
14771 remote debuggee.
14772
14773 2019-01-02 Tom Tromey <tom@tromey.com>
14774
14775 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
14776 indentation.
14777 * python/py-frame.c (frapy_older): Remove cast.
14778 (frapy_newer): Likewise.
14779 * python/py-breakpoint.c (local_setattro): Remove cast.
14780 * python/py-arch.c (archpy_name): Remove local variable.
14781 * python/py-type.c (gdbpy_lookup_type): Remove cast.
14782
14783 2019-01-02 Joel Brobecker <brobecker@adacore.com>
14784
14785 * unittests/basic_string_view/element_access/char/empty.cc:
14786 Fix year range in copyright header.
14787
14788 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
14789
14790 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
14791 Delete.
14792 <operator==>: Update with for removed field.
14793 <hash>: Likewise.
14794 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
14795 <isa_features>: ...this.
14796 <abi_features>: New field.
14797 (riscv_isa_flen): Update comment.
14798 (riscv_abi_xlen): New declaration.
14799 (riscv_abi_flen): New declaration.
14800 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
14801 isa_features.
14802 (riscv_abi_xlen): New function.
14803 (riscv_isa_flen): Update to get answer from isa_features.
14804 (riscv_abi_flen): New function.
14805 (riscv_has_fp_abi): Update to get answer from abi_features.
14806 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
14807 xlen and flen.
14808 (riscv_call_info) <xlen, flen>: Update comment.
14809 (riscv_call_arg_struct): Remove invalid assertions
14810 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
14811 is removed.
14812 (riscv_gdbarch_init): Gather isa features and abi features
14813 separately, ensure both match on the gdbarch when reusing an old
14814 gdbarch. Relax an error check to allow 32-bit abi float to run on
14815 a target with 64-bit float hardware.
14816
14817 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14818
14819 * source.c (search_command_helper): Stop reverse search
14820 when line 1 has been searched.
14821
14822 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14823
14824 * record-full.c (record_full_base_target::close): Rewrite
14825 record_full_core_buf_list free logic.
14826
14827 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14828
14829 * break-catch-syscall.c (print_one_catch_syscall): xfree
14830 the last text.
14831
14832 2019-01-01 Joel Brobecker <brobecker@adacore.com>
14833
14834 * top.c (print_gdb_version): Update Copyright year in version
14835 message.
14836
14837 2019-01-01 Joel Brobecker <brobecker@adacore.com>
14838
14839 Update copyright year range in all GDB files.
14840
14841 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
14842
14843 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
14844
14845 For older changes see ChangeLog-2018.
14846 \f
14847 Local Variables:
14848 mode: change-log
14849 left-margin: 8
14850 fill-column: 74
14851 version-control: never
14852 coding: utf-8
14853 End:
14854