]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gdb/ChangeLog
Document and extend readline-bindable functions
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
1 2019-11-11 Tom Tromey <tom@tromey.com>
2
3 * tui/tui.c (tui_initialize_readline): Add new bindable readline
4 functions.
5
6 2019-11-11 Christian Biesinger <cbiesinger@google.com>
7
8 * nat/linux-osdata.c (user_from_uid): Use getpwuid_r.
9
10 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
11
12 * python/py-symbol.c (gdbpy_lookup_static_symbols): New
13 function.
14 * python/python-internal.h (gdbpy_lookup_static_symbols):
15 Declare new function.
16 * python/python.c (python_GdbMethods): Add
17 gdb.lookup_static_symbols method.
18 * NEWS: Mention gdb.lookup_static_symbols.
19
20 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
21
22 * python/py-symbol.c (gdbpy_lookup_static_symbol): Lookup in
23 static block of current object file first. Also fix typo in
24 header comment.
25
26 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
27
28 * stack.c (set_last_displayed_sal): Delete.
29 (last_displayed_sal_valid): Delete.
30 (last_displayed_pspace): Delete.
31 (last_displayed_addr): Delete.
32 (last_displayed_symtab): Delete.
33 (last_displayed_line): Delete.
34 (class last_displayed_symtab_info_type): New.
35 (last_displayed_symtab_info): New static global variable.
36 (print_frame_info): Call methods on last_displayed_symtab_info.
37 (clear_last_displayed_sal): Update header comment, and make use of
38 last_displayed_symtab_info.
39 (last_displayed_sal_is_valid): Likewise.
40 (get_last_displayed_pspace): Likewise.
41 (get_last_displayed_addr): Likewise.
42 (get_last_displayed_symtab): Likewise.
43 (get_last_displayed_line): Likewise.
44 (get_last_displayed_sal): Likewise.
45 * stack.h (clear_last_displayed_sal): Update header comment.
46 (last_displayed_sal_is_valid): Likewise.
47 (get_last_displayed_pspace): Likewise.
48 (get_last_displayed_addr): Likewise.
49 (get_last_displayed_symtab): Likewise.
50 (get_last_displayed_line): Likewise.
51 (get_last_displayed_sal): Likewise.
52
53 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
54
55 * stack.c (frame_show_address): Convert return type to bool.
56 * stack.h (frame_show_address): Likewise, and update header
57 comment.
58
59 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
60
61 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new file to the list.
62 * unittests/vec-utils-selftests.c: New file.
63 * gdbsupport/gdb_vecs.h (unordered_remove): Avoid self move assign.
64
65 2019-11-10 Tom Tromey <tom@tromey.com>
66
67 * tui/tui-wingeneral.c (tui_unhighlight_win): Use can_box.
68 (tui_highlight_win): Likewise.
69 (tui_win_info::check_and_display_highlight_if_needed): Likewise.
70 * tui/tui-data.h (struct tui_win_info) <can_highlight>: Remove.
71 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
72 Don't set can_highlight.
73
74 2019-11-10 Tom Tromey <tom@tromey.com>
75
76 * cli/cli-style.h (class cli_style_option) <cli_style_option>:
77 Remove unused declaration.
78
79 2019-11-08 Tom Tromey <tromey@adacore.com>
80
81 * top.c (read_command_file): Update.
82 (command_line_input): Make return type const.
83 * python/py-gdb-readline.c: Update.
84 * linespec.c (decode_line_2): Update.
85 * defs.h (command_line_input): Make return type const.
86 * cli/cli-script.c (read_next_line): Make return type const.
87 * ada-lang.c (get_selections): Update.
88
89 2019-11-06 Christian Biesinger <cbiesinger@google.com>
90
91 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
92 * mi/mi-main.c (output_cores): Likewise.
93 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
94 (linux_xfer_osdata_modules): Likewise.
95 * remote.c (register_remote_support_xml): Likewise.
96 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
97 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
98
99 2019-11-06 Tom Tromey <tom@tromey.com>
100
101 * tui/tui-interp.c: Don't include readline.h.
102 * tui/tui-hooks.c: Don't include readline.h.
103 * symmisc.c: Include tilde.h, not readline.h.
104 * symfile.c: Include tilde.h, not readline.h.
105 * source.c: Include tilde.h, not readline.h.
106 * solib.c: Include tilde.h, not readline.h.
107 * psymtab.c: Include tilde.h, not readline.h.
108 * exec.c: Include tilde.h, not readline.h.
109 * corelow.c: Include tilde.h, not readline.h.
110 * cli/cli-dump.c: Include tilde.h, not readline.h.
111 * cli/cli-cmds.c: Don't include readline.h.
112
113 2019-11-05 Tom Tromey <tom@tromey.com>
114
115 * tui/tui-disasm.c (struct tui_asm_line) <addr_size>: New member.
116 (tui_disassemble): Set addr_size.
117 (tui_disasm_window::set_contents): Use addr_size.
118
119 2019-11-05 Tom Tromey <tom@tromey.com>
120
121 * rust-lang.c (rust_language_defn): Update.
122 * python/py-value.c (valpy_string): Call c_get_string.
123 * p-lang.c (pascal_language_defn): Update.
124 * opencl-lang.c (opencl_language_defn): Update.
125 * objc-lang.c (objc_language_defn): Update.
126 * m2-lang.c (m2_language_defn): Update.
127 * language.c (unknown_language_defn, auto_language_defn): Update.
128 (default_get_string): Remove.
129 * guile/scm-value.c (gdbscm_value_to_string): Use c_get_string.
130 * go-lang.c (go_language_defn): Update.
131 * f-lang.c (f_language_defn): Update.
132 * d-lang.c (d_language_defn): Update.
133 * c-lang.c (c_language_defn, cplus_language_defn)
134 (asm_language_defn, minimal_language_defn): Update.
135 * ada-lang.c (ada_language_defn): Update.
136 * language.h (struct language_defn) <la_get_string>: Remove.
137 (LA_GET_STRING): Remove.
138 (default_get_string): Don't declare.
139
140 2019-11-05 Tom Tromey <tom@tromey.com>
141
142 * tui/tui-source.h (struct tui_source_window): Inline
143 constructor. Remove destructor.
144 <style_changed, m_observable>: Move to superclass.
145 * tui/tui-winsource.h (tui_copy_source_line): Declare.
146 (struct tui_source_window_base): Move private members to end.
147 <style_changed, m_observable>: Move from tui_source_window.
148 * tui/tui-winsource.c (tui_copy_source_line): Move from
149 tui-source.c. Rename from copy_source_line. Add special handling
150 for negative line number.
151 (tui_source_window_base::style_changed): Move from
152 tui_source_window.
153 (tui_source_window_base): Register observer.
154 (~tui_source_window_base): New.
155 * tui/tui-source.c (copy_source_line): Move to tui-winsource.c;
156 rename.
157 (tui_source_window::set_contents): Use tui_copy_source_line.
158 (tui_source_window::tui_source_window): Move to tui-source.h.
159 (tui_source_window::~tui_source_window): Remove.
160 (tui_source_window::style_changed): Move to superclass.
161 * tui/tui-disasm.c (tui_disassemble): Create string file with
162 styling, when possible. Add "addr_size" parameter.
163 (tui_disasm_window::set_contents): Use tui_copy_source_line.
164 Don't compute maximum size.
165 (len_without_escapes): New function
166
167 2019-11-05 Tom Tromey <tom@tromey.com>
168
169 * tui/tui-winsource.h (struct tui_source_element) <line>: Now a
170 std::string.
171 * tui/tui-winsource.c (tui_show_source_line): Update.
172 * tui/tui-source.c (tui_source_window::set_contents): Update.
173 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
174
175 2019-11-05 Christian Biesinger <cbiesinger@google.com>
176
177 * symtab.h (gdb_static_assert): Put && operator at the beginning
178 of the line instead of the end.
179
180 2019-11-04 Christian Biesinger <cbiesinger@google.com>
181
182 * psympriv.h: Add static_asserts for sizeof (general_symbol_info)
183 and sizeof (symbol).
184 * symtab.h: Add a static_assert for sizeof (partial_symbol).
185
186 2019-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
187
188 * NEWS (Changes since GDB 8.3): Document Solaris 10 removal.
189 * configure.host: Mark *-*-solaris2.10* obsolete.
190 * configure.tgt: Mark Solaris < 11 obsolete.
191 * MAINTAINERS (Target Instruction Set Architectures) <sparc>:
192 Update target triplet.
193
194 2019-11-01 Tom Tromey <tromey@adacore.com>
195
196 * utils.c (print_sys_errmsg): Simplify.
197
198 2019-11-01 Tom Tromey <tromey@adacore.com>
199
200 * gdbsupport/mingw-strerror.c (safe_strerror): Constify result.
201
202 2019-11-01 Christian Biesinger <cbiesinger@google.com>
203
204 * configure: Regenerate.
205 * configure.ac: Remove check for strerror_r.
206 * gdbsupport/common.m4: Check for strerror_r.
207
208 2019-11-01 Luis Machado <luis.machado@linaro.org>
209
210 PR gdb/25124
211
212 * arm-tdep.c (arm_per_objfile): Rename to ...
213 (arm_per_bfd): ... this.
214 (arm_objfile_data_key): Rename to ...
215 (arm_bfd_data_key): ... this.
216 (arm_find_mapping_symbol): Adjust access to new bfd_key-based
217 data.
218 (arm_record_special_symbol): Likewise.
219
220 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
221
222 * ada-typeprint.c (ada_print_typedef): Don't print newline at the
223 end.
224 * c-typeprint.c (c_print_typedef): Likewise.
225 * f-typeprint.c (f_print_typedef): Likewise.
226 * m2-typeprint.c (m2_print_typedef): Likewise.
227 * p-typeprint.c (pascal_print_typedef): Likewise.
228 * rust-lang.c (rust_print_typedef): Likewise.
229 * symtab.c (print_symbol_info): Print a newline after calling
230 typedef_print.
231
232 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
233
234 * symtab.c (info_module_cmdlist): New variable.
235 (info_module_command): New function.
236 (search_module_symbols): New function.
237 (info_module_subcommand): New function.
238 (struct info_modules_var_func_options): New struct.
239 (info_modules_var_func_options_defs): New variable.
240 (make_info_modules_var_func_options_def_group): New function.
241 (info_module_functions_command): New function.
242 (info_module_variables_command): New function.
243 (info_module_var_func_command_completer): New function.
244 (_initialize_symtab): Register new 'info module functions' and
245 'info module variables' commands.
246 * symtab.h (typedef symbol_search_in_module): New typedef.
247 (search_module_symbols): Declare new function.
248 * NEWS: Mention new commands.
249
250 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
251
252 * dwarf2read.c (dw2_symtab_iter_next): Handle MODULE_DOMAIN.
253 (dw2_expand_marked_cus): Handle MODULES_DOMAIN.
254 (dw2_debug_names_iterator::next): Handle MODULE_DOMAIN and
255 MODULES_DOMAIN.
256 (scan_partial_symbols): Only create partial module symbols for non
257 declarations.
258 * psymtab.c (recursively_search_psymtabs): Handle MODULE_DOMAIN
259 and MODULES_DOMAIN.
260 * symtab.c (search_domain_name): Likewise.
261 (search_symbols): Likewise.
262 (print_symbol_info): Likewise.
263 (symtab_symbol_info): Likewise.
264 (info_modules_command): New function.
265 (_initialize_symtab): Register 'info modules' command.
266 * symtab.h (enum search_domain): Add MODULES_DOMAIN.
267 * NEWS: Mention new 'info modules' command.
268
269 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
270
271 * NEWS: Mention $_gdb_setting, $_gdb_setting_str, $_gdb_maint_setting
272 and $_gdb_maint_setting_str.
273
274 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
275
276 * cli/cli-cmds.c (setting_cmd, value_from_setting)
277 (gdb_setting_internal_fn, gdb_maint_setting_internal_fn)
278 (str_value_from_setting, gdb_setting_str_internal_fn)
279 (gdb_maint_setting_str_internal_fn): New functions.
280 (_initialize_cli_cmds): Define the new convenience functions.
281 * gdb/cli/cli-setshow.h (get_setshow_command_value_string): Constify.
282 * gdb/cli/cli-setshow.c (get_setshow_command_value_string): Constify.
283
284 2019-10-31 Christian Biesinger <cbiesinger@google.com>
285
286 * agent.c (set_can_use_agent): When the setting is turned on,
287 look up agent symbols if we don't have them yet.
288 (agent_new_objfile): Don't look up agent symbols when the agent
289 setting is off.
290
291 2019-10-31 Christian Biesinger <cbiesinger@google.com>
292
293 * config.in: Regenerate.
294
295 2019-10-31 Christian Biesinger <cbiesinger@google.com>
296
297 * configure: Regenerate.
298 * configure.ac: Check for strerror_r.
299 * gdbsupport/common-utils.h (safe_strerror): Change return value
300 to const char * and document that this function is now threadsafe.
301 * gdbsupport/posix-strerror.c (safe_strerror): Make buf
302 thread_local and call strerror_r, if available.
303 * utils.c (perror_string): Update.
304 (print_sys_errmsg): Update.
305
306 2019-10-31 Luis Machado <luis.machado@linaro.org>
307
308 * arm-tdep.c (arm_exidx_data_key): Use bfd_key instead of
309 objfile_key.
310 (arm_exidx_new_objfile): Adjust to use objfile->obfd instead of
311 objfile to fetch per-bfd data.
312 (arm_find_exidx_entry): Likewise.
313
314 2019-10-31 Christian Biesinger <cbiesinger@google.com>
315
316 * gdbsupport/agent.c (debug_agent): Change type to bool.
317 (use_agent): Likewise.
318 (all_agent_symbols_look_up): Likewise.
319 (agent_loaded_p): Change return value to bool.
320 (agent_look_up_symbols): Update.
321 (agent_capability_check): Change return value to bool.
322 * gdbsupport/agent.h (agent_loaded_p): Likewise.
323 (debug_agent): Change type to bool.
324 (use_agent): Likewise.
325 (agent_capability_check): Change return value to bool.
326
327 2019-10-30 Christian Biesinger <cbiesinger@google.com>
328
329 * minsyms.c (clear_minimal_symbol_hash_tables): New function.
330 (build_minimal_symbol_hash_tables): Code to clear the table moved
331 to clear_minimal_symbol_hash_tables.
332 (minimal_symbol_reader::install): Call clear_minimal_symbol_hash_tables
333 when needed.
334
335 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
336
337 * infcmd.c: Remove includes.
338 * infrun.c: Remove includes.
339
340 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
341
342 * ada-lang.h (GROW_VECT): Move to ada-lang.c.
343 (grow_vect): Remove declaration.
344 (ada_type_of_array): Remove declaration.
345 (ada_update_initial_language): Remove declaration.
346 (ada_fold_name): Remove declaration.
347 (ada_fill_in_ada_prototype): Remove declaration.
348 (user_select_syms): Remove declaration.
349 (get_selections): Remove declaration.
350 (ada_tag_type): Remove declaration.
351 (ada_value_tag): Remove declaration.
352 (ada_is_others_clause): Remove declaration.
353 (ada_in_variant): Remove declaration.
354 (ada_value_struct_elt): Remove declaration.
355 (ada_attribute_name): Remove declaration.
356 (ada_system_address_type): Remove declaration.
357 * ada-lang.c (ada_watch_location_expression): Make static.
358 (GROW_VECT): Move here from ada-lang.h.
359 (grow_vect): Make static.
360 (ada_update_initial_language): Make static.
361 (ada_fold_name): Make static.
362 (ada_type_of_array): Make static.
363 (encoded_ordered_before): Move up.
364 (sort_choices): Move up.
365 (print_signatures): Move up.
366 (ada_print_symbol_signature): Move up.
367 (get_selections): Move up and make static.
368 (user_select_syms): Move up and make static.
369 (ada_value_struct_elt): Move up and make static.
370 (ada_tag_type): Make static.
371 (ada_value_tag): Make static.
372 (ada_is_others_clause): Make static.
373 (ada_in_variant): Make static.
374 (ada_attribute_name): Make static.
375
376 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
377
378 * ada-lang.c: Remove includes.
379 * ada-typeprint.c: Remove includes.
380 * ada-valprint.c: Remove includes.
381
382 2019-10-29 Simon Marchi <simon.marchi@efficios.com>
383
384 * addrmap.c: Add static assertions of type size, moved from
385 _initialize_addrmap.
386 (_initialize_addrmap): Remove.
387
388 2019-10-29 Christian Biesinger <cbiesinger@google.com>
389
390 * coffread.c (record_minimal_symbol): Update.
391 (process_coff_symbol): Update.
392 * dbxread.c (read_dbx_symtab): Update.
393 * dwarf2read.c (add_partial_symbol): Update.
394 (fixup_go_packaging): Update.
395 (load_partial_dies): Update.
396 (new_symbol): Update.
397 * elfread.c (record_minimal_symbol): Change signature to use
398 gdb::string_view instead of name+len.
399 (elf_symtab_read): Update.
400 (elf_rel_plt_read): Update.
401 * mdebugread.c (parse_partial_symbols): Update.
402 (handle_psymbol_enumerators): Update.
403 (new_symbol): Update.
404 * minsyms.c (minimal_symbol_reader::record_full): Change signature
405 to use gdb::string_view instead of name+len.
406 * minsyms.h (class minimal_symbol_reader) <record_full>: Likewise.
407 * psympriv.h (add_psymbol_to_list): Likewise.
408 * psymtab.c (add_psymbol_to_bcache): Likewise.
409 (add_psymbol_to_list): Likewise.
410 * stabsread.c (define_symbol): Update.
411 * symtab.c (symbol_set_names): Change signature to use gdb::string_view.
412 * symtab.h (SYMBOL_SET_NAMES): Likewise.
413 (symbol_set_names): Likewise.
414 * xcoffread.c (scan_xcoff_symtab): Update.
415
416 2019-10-29 Christian Biesinger <cbiesinger@google.com>
417
418 * symtab.h (symbol_set_names): Document that copy_name must be
419 set to true for non-nullterminated strings.
420 * symtab.c (symbol_set_names): Only make a nullterminated copy of
421 linkage_name if the entry was not found and we need to demangle.
422
423 2019-10-29 Christian Biesinger <cbiesinger@google.com>
424
425 * Makefile.in (HFILES_NO_SRCDIR): Add gdb_binary_search.h.
426 * dwarf2-frame.c (bsearch_fde_cmp): Update.
427 (dwarf2_frame_find_fde): Replace bsearch with gdb::binary_search.
428 * gdbsupport/gdb_binary_search.h: New file.
429
430 2019-10-29 Christian Biesinger <cbiesinger@google.com>
431
432 * NEWS: Mention new --with-system-gdbinit-dir option.
433 * config.in: Regenerate.
434 * configure: Regenerate.
435 * configure.ac: Add new option --with-system-gdbinit-dir.
436 * extension.c (get_ext_lang_of_file): Return extension_language_gdb
437 for a ".gdb" suffix.
438 * main.c (get_init_files): Change system_gdbinit argument to
439 a vector and return the files in SYSTEM_GDBINIT_DIR in
440 addition to SYSTEM_GDBINIT.
441 (captured_main_1): Update.
442 (print_gdb_help): Update.
443 * top.c (print_gdb_configuration): Also print the value of
444 SYSTEM_GDBINIT_DIR.
445
446 2019-10-28 Christian Biesinger <cbiesinger@google.com>
447
448 * gdbsupport/common-utils.h (startswith): Add an overloaded version
449 that takes gdb::string_view arguments.
450
451 2019-10-26 Tom de Vries <tdevries@suse.de>
452
453 * aarch64-linux-tdep.c: Fix typos in comments.
454 * aarch64-tdep.c: Same.
455 * ada-lang.c: Same.
456 * amd64-nat.c: Same.
457 * arc-tdep.c: Same.
458 * arch/aarch64-insn.c: Same.
459 * block.c: Same.
460 * breakpoint.h: Same.
461 * btrace.h: Same.
462 * c-varobj.c: Same.
463 * cli/cli-decode.c: Same.
464 * cli/cli-script.c: Same.
465 * cli/cli-utils.h: Same.
466 * coff-pe-read.c: Same.
467 * coffread.c: Same.
468 * compile/compile-cplus-symbols.c: Same.
469 * compile/compile-object-run.c: Same.
470 * completer.c: Same.
471 * corelow.c: Same.
472 * cp-support.c: Same.
473 * demangle.c: Same.
474 * dwarf-index-write.c: Same.
475 * dwarf2-frame.c: Same.
476 * dwarf2-frame.h: Same.
477 * eval.c: Same.
478 * frame-base.h: Same.
479 * frame.h: Same.
480 * gdbcmd.h: Same.
481 * gdbtypes.h: Same.
482 * gnu-nat.c: Same.
483 * guile/scm-objfile.c: Same.
484 * i386-tdep.c: Same.
485 * i386-tdep.h: Same.
486 * infcall.c: Same.
487 * infcall.h: Same.
488 * linux-nat.c: Same.
489 * m68k-tdep.c: Same.
490 * macroexp.c: Same.
491 * memattr.c: Same.
492 * mi/mi-cmd-disas.c: Same.
493 * mi/mi-getopt.h: Same.
494 * mi/mi-main.c: Same.
495 * minsyms.c: Same.
496 * nat/aarch64-sve-linux-sigcontext.h: Same.
497 * objfiles.h: Same.
498 * ppc-linux-nat.c: Same.
499 * ppc-linux-tdep.c: Same.
500 * ppc-tdep.h: Same.
501 * progspace.h: Same.
502 * prologue-value.h: Same.
503 * python/py-evtregistry.c: Same.
504 * python/py-instruction.h: Same.
505 * record-btrace.c: Same.
506 * record-full.c: Same.
507 * remote.c: Same.
508 * rs6000-tdep.c: Same.
509 * ser-tcp.c: Same.
510 * sol-thread.c: Same.
511 * sparc-sol2-tdep.c: Same.
512 * sparc64-tdep.c: Same.
513 * stabsread.c: Same.
514 * symfile.c: Same.
515 * symtab.h: Same.
516 * target.c: Same.
517 * tracepoint.c: Same.
518 * tui/tui-data.h: Same.
519 * tui/tui-io.c: Same.
520 * tui/tui-win.c: Same.
521 * tui/tui.c: Same.
522 * unittests/rsp-low-selftests.c: Same.
523 * user-regs.h: Same.
524 * utils.c: Same.
525 * utils.h: Same.
526 * valarith.c: Same.
527 * valops.c: Same.
528 * valprint.c: Same.
529 * valprint.h: Same.
530 * value.c: Same.
531 * value.h: Same.
532 * varobj.c: Same.
533 * x86-nat.h: Same.
534 * xtensa-tdep.c: Same.
535
536 2019-10-25 Ali Tamur <tamur@google.com>
537
538 * charset.c (find_charset_names): Reflect API change.
539
540 2019-10-25 Christian Biesinger <cbiesinger@google.com>
541
542 * symtab.c (struct demangled_name_entry): Change demangled name
543 to a unique_xmalloc_ptr<char>, now that we don't allocate it as
544 part of the struct anymore.
545 (symbol_set_names): No longer obstack allocate + copy the demangled
546 name, just store the allocated name from bfd.
547
548 2019-10-25 Tom Tromey <tromey@adacore.com>
549
550 * dwarf2-frame.c (dwarf2_cie_table): Now a typedef.
551 (bsearch_cie_cmp, add_cie): Remove.
552 (find_cie): Reimplement.
553 (decode_frame_entry_1, decode_frame_entry): Change type. Update.
554 (dwarf2_build_frame_info): Update.
555
556 2019-10-24 H.J. Lu <hongjiu.lu@intel.com>
557
558 PR gdb/25126
559 * symfile.c (reread_symbols): Call forget_cached_source_info to
560 clear the stale source cache.
561
562 2019-10-24 Christian Biesinger <cbiesinger@google.com>
563
564 * configure: Regenerate.
565 * configure.ac: Remove code that sets python_has_threads.
566
567 2019-10-24 Christian Biesinger <cbiesinger@google.com>
568
569 * config.in: Regenerate.
570 * configure: Regenerate.
571 * configure.ac: Remove the code that uses sed to get the python
572 version and defines HAVE_LIBPYTHON2_6 / HAVE_LIBPYTHON2_7.
573
574 2019-10-24 Andrew Burgess <andrew.burgess@embecosm.com>
575
576 * python/py-progspace.c (pspy_block_for_pc): Return None for all
577 error paths.
578
579 2019-10-23 Tom Tromey <tom@tromey.com>
580
581 * arc-tdep.c: Remove ".." from include.
582 * frv-tdep.c: Remove ".." from include.
583 * lm32-tdep.c: Remove ".." from include.
584 * microblaze-tdep.c: Remove ".." from include.
585 * or1k-tdep.h: Remove ".." from include.
586 * s12z-tdep.c: Remove ".." from include.
587 * Makefile.in (OPCODES_CFLAGS): Add comment.
588 (TOP_CFLAGS): New variable.
589 (INTERNAL_CFLAGS_BASE): Add TOP_CFLAGS.
590
591 2019-10-23 Tom Tromey <tom@tromey.com>
592
593 * Makefile.in (READLINE_DIR): Update.
594
595 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
596
597 * infcall.c (call_function_by_hand_dummy): Fix the function
598 comment. And extract out a code section into...
599 (reserve_stack_space): ...this new function.
600
601 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
602
603 * infcall.c (value_arg_coerce): Remove an unused parameter.
604 (call_function_by_hand_dummy): Update the call to
605 'value_arg_coerce'.
606
607 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
608
609 * infcall.c (call_function_by_hand_dummy): Refactor.
610
611 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
612
613 * MAINTAINERS (Write After Approval): Add Tankut Baris Aktemur.
614
615 2019-10-23 Tom Tromey <tom@tromey.com>
616
617 * configure: Rebuild.
618 * configure.ac: Don't check for sigprocmask.
619 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for sigprocmask.
620
621 2019-10-23 Tom Tromey <tom@tromey.com>
622
623 * configure: Rebuild.
624 * acinclude.m4: Use m4_include, not sinclude.
625
626 2019-10-23 Tom de Vries <tdevries@suse.de>
627
628 PR breakpoints/24687
629 * symtab.c (iterate_over_some_symtabs): Apply gdb_realpath on fullname.
630
631 2019-10-22 Christian Biesinger <cbiesinger@google.com>
632
633 * symtab.c (struct demangled_name_entry) <language>: Change from
634 bitfield to regular variable.
635
636 2019-10-22 Christian Biesinger <cbiesinger@google.com>
637
638 * symtab.c (struct demangled_name_entry): Add a constructor.
639 (free_demangled_name_entry): New function to call the destructor
640 for demangled_name_entry.
641 (create_demangled_names_hash): Pass free_demangled_name_entry to
642 htab_create_alloc.
643 (symbol_set_names): Call placement new for demangled_name_entry.
644 * utils.c: No longer include xxhash.h here, now that fast_hash
645 is inlined in the header.
646 * utils.h: Instead, include it here.
647
648 2019-10-22 Christian Biesinger <cbiesinger@google.com>
649
650 * Makefile.in: Link with libxxhash.
651 * config.in: Regenerate.
652 * configure: Regenerate.
653 * configure.ac: Search for libxxhash.
654 * utils.c (fast_hash): Use xxhash if present.
655
656 2019-10-22 Christian Biesinger <cbiesinger@google.com>
657
658 * utils.h (fast_hash): New function.
659 * symtab.c (hash_demangled_name_entry): Call new function
660 fast_hash.
661
662 2019-10-22 Christian Biesinger <cbiesinger@google.com>
663
664 * symtab.c (struct demangled_name_entry): Change type of mangled
665 to gdb::string_view. Also adds a constructor that takes the
666 mangled name.
667 (hash_demangled_name_entry): Update.
668 (eq_demangled_name_entry): Update.
669 (free_demangled_name_entry): New function to call the destructor
670 now that this is not a POD anymore.
671 (create_demangled_names_hash): Pass free_demangled_name_entry to
672 htab_create_alloc.
673 (symbol_set_names): Update.
674
675 2019-10-21 Ali Tamur <tamu@google.com>
676
677 * dwarf2read.c (dir_index): Change type.
678 (file_name_index): Likewise.
679 (line_header::include_dir_at): Change comment and implementation on
680 whether it is DWARF 5.
681 (line_header::is_valid_file_index): New function.
682 (line_header::file_name_at): Change comment and implementation on
683 whether it is DWARF 5.
684 (line_header::file_names): Change to private field renamed as
685 m_file_names and introduce a new accessor method.
686 (line_header::file_names_size): New method.
687 (line_header::include_dirs): Change to private field and rename as
688 m_include_dirs.
689 (dw2_get_file_names_reader): Define local var at a smaller scope and
690 reflect API change.
691 (dwarf2_cu::setup_type_unit_groups): Reflect API change.
692 (process_structure_scope): Likewise.
693 (line_header::add_include_dir): Change message and reflect renaming.
694 (line_header::add_file_name): Likewise.
695 (read_formatted_entries): Handle DW_FORM_data16.
696 (dwarf_decode_line_header): Fix line header length calculation.
697 (psymtab_include_file_name): Change comment and API.
698 (lnp_state_machine::m_file): Update comment and reflect type change.
699 (lnp_state_machine::record_line): Reflect type change.
700 (dwarf_decode_lines): Reflect API change.
701 (file_file_name): Likewise.
702 (file_full_name): Likewise.
703
704 2019-10-21 Andrew Burgess <andrew.burgess@embecosm.com>
705
706 * objfiles.c (sort_cmp): Ensure that !(a < a) holds true.
707
708 2019-10-21 Tom Tromey <tom@tromey.com>
709
710 * tui/tui-winsource.h (tui_exec_info_content): Remove typedef.
711
712 2019-10-21 Tom Tromey <tom@tromey.com>
713
714 * configure.ac (nm.h): Conditionally create nm.h link. Subst
715 NM_H. Use AC_CONFIG_LINKS.
716 * configure: Rebuild.
717 * Makefile.in (NM_H): New variable.
718 (generated_files): Add NM_H. Remove gcore.
719 (nm.h, stamp-nmh): New targets.
720
721 2019-10-20 Tom Tromey <tom@tromey.com>
722
723 * objfiles.h (unlink_objfile, put_objfile_before): Don't declare.
724 * objfiles.c (unlink_objfile): Move earlier. Now static. Remove
725 obsolete comment.
726 (put_objfile_before): Now static.
727
728 2019-10-19 Simon Marchi <simon.marchi@polymtl.ca>
729
730 * gdbsupport/common-utils.h (startswith): Change return type to
731 bool.
732
733 2019-10-19 Christian Biesinger <cbiesinger@google.com>
734
735 * bcache.c (bcache::print_statistics): Use std::sort instead of qsort.
736 * breakpoint.c (bp_locations_compare): Rename to...
737 (bp_location_is_less_than): ...this, and change to std::sort semantics.
738 (update_global_location_list): Use std::sort instead of qsort.
739 * buildsym.c (compare_line_numbers): Rename to...
740 (lte_is_less_than): ...this, and change to std::sort semantics.
741 (buildsym_compunit::end_symtab_with_blockvector): Use std::sort
742 instead of qsort.
743 * disasm.c (compare_lines): Rename to...
744 (line_is_less_than): ...this, and change to std::sort semantics.
745 (do_mixed_source_and_assembly_deprecated): Call std::sort instead
746 of qsort.
747 * dwarf2-frame.c (qsort_fde_cmp): Rename to...
748 (fde_is_less_than): ...this, and change to std::sort semantics.
749 (dwarf2_build_frame_info): Call std::sort instead of qsort.
750 * mdebugread.c (compare_blocks):
751 (block_is_less_than): ...this, and change to std::sort semantics.
752 (sort_blocks): Call std::sort instead of qsort.
753 * objfiles.c (qsort_cmp): Rename to...
754 (sort_cmp): ...this, and change to std::sort semantics.
755 (update_section_map): Call std::sort instead of qsort.
756 * remote.c (compare_pnums): Remove.
757 (map_regcache_remote_table): Call std::sort instead of qsort.
758 * utils.c (compare_positive_ints): Remove.
759 * utils.h (compare_positive_ints): Remove.
760 * xcoffread.c (compare_lte): Remove.
761 (arrange_linetable): Call std::sort instead of qsort.
762
763 2019-10-19 Sergio Durigan Junior <sergiodj@redhat.com>
764
765 * symfile.c (init_entry_point_info): Fix typo.
766 * i386-darwin-tdep.c (darwin_dwarf_signal_frame_p): Fix typo.
767
768 2019-10-18 Tom de Vries <tdevries@suse.de>
769
770 * aarch64-tdep.c: Fix typos in comments.
771 * ada-lang.c: Same.
772 * ada-tasks.c: Same.
773 * alpha-tdep.c: Same.
774 * alpha-tdep.h: Same.
775 * amd64-nat.c: Same.
776 * amd64-windows-tdep.c: Same.
777 * arc-tdep.c: Same.
778 * arc-tdep.h: Same.
779 * arch-utils.c: Same.
780 * arm-nbsd-tdep.c: Same.
781 * arm-tdep.c: Same.
782 * ax-gdb.c: Same.
783 * blockframe.c: Same.
784 * btrace.c: Same.
785 * c-varobj.c: Same.
786 * coff-pe-read.c: Same.
787 * coffread.c: Same.
788 * cris-tdep.c: Same.
789 * darwin-nat.c: Same.
790 * dbxread.c: Same.
791 * dcache.c: Same.
792 * disasm.c: Same.
793 * dtrace-probe.c: Same.
794 * dwarf-index-write.c: Same.
795 * dwarf2-frame-tailcall.c: Same.
796 * dwarf2-frame.c: Same.
797 * dwarf2read.c: Same.
798 * eval.c: Same.
799 * exceptions.c: Same.
800 * fbsd-tdep.c: Same.
801 * findvar.c: Same.
802 * frame.c: Same.
803 * frv-tdep.c: Same.
804 * gnu-v3-abi.c: Same.
805 * go32-nat.c: Same.
806 * h8300-tdep.c: Same.
807 * hppa-tdep.c: Same.
808 * i386-linux-tdep.c: Same.
809 * i386-tdep.c: Same.
810 * ia64-libunwind-tdep.c: Same.
811 * ia64-tdep.c: Same.
812 * infcmd.c: Same.
813 * infrun.c: Same.
814 * linespec.c: Same.
815 * linux-nat.c: Same.
816 * linux-thread-db.c: Same.
817 * machoread.c: Same.
818 * mdebugread.c: Same.
819 * mep-tdep.c: Same.
820 * mn10300-tdep.c: Same.
821 * namespace.c: Same.
822 * objfiles.c: Same.
823 * opencl-lang.c: Same.
824 * or1k-tdep.c: Same.
825 * osabi.c: Same.
826 * ppc-linux-nat.c: Same.
827 * ppc-linux-tdep.c: Same.
828 * ppc-sysv-tdep.c: Same.
829 * printcmd.c: Same.
830 * procfs.c: Same.
831 * record-btrace.c: Same.
832 * record-full.c: Same.
833 * remote-fileio.c: Same.
834 * remote.c: Same.
835 * rs6000-tdep.c: Same.
836 * s12z-tdep.c: Same.
837 * score-tdep.c: Same.
838 * ser-base.c: Same.
839 * ser-go32.c: Same.
840 * skip.c: Same.
841 * sol-thread.c: Same.
842 * solib-svr4.c: Same.
843 * solib.c: Same.
844 * source.c: Same.
845 * sparc-nat.c: Same.
846 * sparc-sol2-tdep.c: Same.
847 * sparc-tdep.c: Same.
848 * sparc64-tdep.c: Same.
849 * stabsread.c: Same.
850 * stack.c: Same.
851 * symfile.c: Same.
852 * symtab.c: Same.
853 * target-descriptions.c: Same.
854 * target-float.c: Same.
855 * thread.c: Same.
856 * utils.c: Same.
857 * valops.c: Same.
858 * valprint.c: Same.
859 * value.c: Same.
860 * varobj.c: Same.
861 * windows-nat.c: Same.
862 * xcoffread.c: Same.
863 * xstormy16-tdep.c: Same.
864 * xtensa-tdep.c: Same.
865
866 2019-10-17 Tom Tromey <tromey@adacore.com>
867
868 * configure: Rebuild.
869 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
870 in AC_CONFIG_FILES invocation.
871 * Makefile.in (Makefile, data-directory/Makefile, stamp-h): Use
872 new-style config.status invocation.
873
874 2019-10-17 Tom de Vries <tdevries@suse.de>
875
876 * arm-nbsd-nat.c: Fix typos in comments.
877 * arm-tdep.c: Same.
878 * darwin-nat-info.c: Same.
879 * dwarf2read.c: Same.
880 * elfread.c: Same.
881 * event-top.c: Same.
882 * findvar.c: Same.
883 * gdbtypes.c: Same.
884 * hppa-tdep.c: Same.
885 * i386-tdep.c: Same.
886 * jit.c: Same.
887 * main.c: Same.
888 * mdebugread.c: Same.
889 * moxie-tdep.c: Same.
890 * nto-procfs.c: Same.
891 * osabi.c: Same.
892 * ppc-linux-tdep.c: Same.
893 * remote.c: Same.
894 * riscv-tdep.c: Same.
895 * s390-tdep.c: Same.
896 * sh-tdep.c: Same.
897 * sparc-linux-tdep.c: Same.
898 * sparc-nat.c: Same.
899 * stack.c: Same.
900 * target-descriptions.c: Same.
901 * top.c: Same.
902 * varobj.c: Same.
903
904 2019-10-16 Tom Tromey <tom@tromey.com>
905
906 * objfiles.h (struct objfile) <original_name>: Now const.
907
908 2019-10-16 Christian Biesinger <cbiesinger@google.com>
909
910 * gdbsupport/gdb_setjmp.h (SIGSETJMP): Allow passing in the value to
911 pass on to sigsetjmp's second argument.
912 * cp-support.c (gdb_demangle): Unblock SIGSEGV if we caught a crash.
913
914 2019-10-16 Keith Seitz <keiths@redhat.com>
915
916 PR gdb/23567
917 * dwarf2read.c (dwarf2_per_objfile::locate_sections): Discard
918 sections whose size is greater than the file size.
919
920 2019-10-16 Jim Wilson <jimw@sifive.com>
921
922 * riscv-tdep.c (riscv_gcc_target_options): New.
923 (riscv_gnu_triplet_regexp): New.
924 (riscv_gdbarch_init): Call set_gdbarch_gcc_triplet_options and
925 set_gdbarch_gnu_triplet_regexp.
926
927 2019-10-16 Christian Biesinger <cbiesinger@google.com>
928
929 * Makefile.in: Add xml-builtin.h.
930 * features/feature_to_c.sh: Add an include for xml-builtin.h
931 to ensure that the compiler checks that the types match.
932 * xml-builtin.h: New file.
933 * xml-support.c (fetch_xml_builtin): Add missing const.
934 * xml-support.h: Remove declaration of xml_builtins.
935
936 2019-10-16 Tom de Vries <tdevries@suse.de>
937
938 PR tdep/25096
939 * amd64-tdep.c (amd64_classify_aggregate_field): Factor out of ...
940 (amd64_classify_aggregate): ... here.
941 (amd64_classify_aggregate_field): Handled fiels of nested structs
942 recursively.
943
944 2019-10-16 Tom de Vries <tdevries@suse.de>
945
946 PR tdep/24104
947 * amd64-tdep.c (amd64_push_arguments): Handle AMD64_NO_CLASS in loop
948 that handles 'theclass'.
949
950 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
951
952 * linespec.c (decode_digits_ordinary): Update comment.
953 * make-target-delegates: No longer need to handle VEC case.
954 * memrange.c (normalize_mem_ranges): Update comment.
955 * namespace.c (add_using_directive): Update comment.
956 * objc-lang.c (uniquify_strings): Update comment.
957 * ppc-linux-nat.c (struct thread_points): Update comment.
958 * probe.h (find_probes_in_objfile): Update comment.
959 * target.h (enum flash_preserve_mode): Update comment.
960 * varobj.c (varobj_restrict_range): Update comment.
961 * varobj.h (varobj_list_children): Update comment.
962
963 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
964
965 * Makefile.in: Remove references to vec.h and vec.c.
966 * aarch64-tdep.c: No longer include vec.h.
967 * ada-lang.c: Likewise.
968 * ada-lang.h: Likewise.
969 * arm-tdep.c: Likewise.
970 * ax.h: Likewise.
971 * breakpoint.h: Likewise.
972 * charset.c: Likewise.
973 * cp-support.h: Likewise.
974 * dtrace-probe.c: Likewise.
975 * dwarf2read.c: Likewise.
976 * extension.h: Likewise.
977 * gdb_bfd.c: Likewise.
978 * gdbsupport/gdb_vecs.h: Likewise.
979 * gdbsupport/vec.c: Remove.
980 * gdbsupport/vec.h: Remove.
981 * gdbthread.h: Likewise.
982 * guile/scm-type.c: Likewise.
983 * inline-frame.c: Likewise.
984 * machoread.c: Likewise.
985 * memattr.c: Likewise.
986 * memrange.h: Likewise.
987 * namespace.h: Likewise.
988 * nat/linux-btrace.h: Likewise.
989 * osdata.c: Likewise.
990 * parser-defs.h: Likewise.
991 * progspace.h: Likewise.
992 * python/py-type.c: Likewise.
993 * record-btrace.c: Likewise.
994 * rust-exp.y: Likewise.
995 * solib-target.c: Likewise.
996 * stap-probe.c: Likewise.
997 * target-descriptions.c: Likewise.
998 * target-memory.c: Likewise.
999 * target.h: Likewise.
1000 * varobj.c: Likewise.
1001 * varobj.h: Likewise.
1002 * xml-support.h: Likewise.
1003
1004 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
1005
1006 * gdb/dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile):
1007 Update for new std::vector based implementation.
1008 (process_psymtab_comp_unit_reader): Likewise.
1009 (scan_partial_symbols): Likewise.
1010 (recursively_compute_inclusions): Likewise.
1011 (compute_compunit_symtab_includes): Likewise.
1012 (process_imported_unit_die): Likewise.
1013 (queue_and_load_dwo_tu): Likewise.
1014 (follow_die_sig_1): Likewise.
1015 * gdb/dwarf2read.h: Remove DEF_VEC_P.
1016 (typedef dwarf2_per_cu_ptr): Remove.
1017 (struct dwarf2_per_cu_data) <imported_symtabs_empty>: New
1018 function.
1019 (struct dwarf2_per_cu_data) <imported_symtabs_push>: New function.
1020 (struct dwarf2_per_cu_data) <imported_symtabs_size>: New function.
1021 (struct dwarf2_per_cu_data) <imported_symtabs_free>: New function.
1022 (struct dwarf2_per_cu_data) <imported_symtabs>: Change to
1023 std::vector.
1024
1025 2019-10-15 Tom Tromey <tromey@adacore.com>
1026
1027 * windows-nat.c (windows_nat_target::resume): Use %x when logging
1028 TID.
1029
1030 2019-10-15 Tom Tromey <tromey@adacore.com>
1031
1032 * windows-nat.c (windows_nat_target::fetch_registers)
1033 (windows_nat_target::store_registers): Rename "pid" to "tid".
1034
1035 2019-10-15 Tom Tromey <tromey@adacore.com>
1036
1037 * gdbarch.h, gdbarch.c: Rebuild.
1038 * gdbarch.sh (gcc_target_options): Change return type to
1039 std::string.
1040 * compile/compile.c (get_args): Update.
1041 * nios2-tdep.c (nios2_gcc_target_options): Return std::string.
1042 * arm-linux-tdep.c (arm_linux_gcc_target_options): Return
1043 std::string.
1044 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): Return
1045 std::string.
1046 * arch-utils.c (default_gcc_target_options): Return std::string.
1047 * arch-utils.h (default_gcc_target_options): Return std::string.
1048 * s390-tdep.c (s390_gcc_target_options): Return std::string.
1049
1050 2019-10-15 Christian Biesinger <cbiesinger@google.com>
1051
1052 * breakpoint.c (breakpoint_chain): Make static.
1053 * tui/tui-winsource.c: Call iterate_over_breakpoints instead
1054 of accessing breakpoint_chain.
1055
1056 2019-10-15 Christian Biesinger <cbiesinger@google.com>
1057
1058 * breakpoint.c (iterate_over_breakpoints): Change function pointer
1059 to a gdb::function_view and return value to bool.
1060 * breakpoint.h (iterate_over_breakpoints): Likewise.
1061 * dummy-frame.c (pop_dummy_frame_bpt): Update.
1062 (pop_dummy_frame): Update.
1063 * guile/scm-breakpoint.c (bpscm_build_bp_list): Update.
1064 (gdbscm_breakpoints): Update.
1065 * python/py-breakpoint.c (build_bp_list): Update.
1066 (gdbpy_breakpoints): Update.
1067 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
1068 Update.
1069 (bpfinishpy_handle_stop): Update.
1070 (bpfinishpy_handle_exit): Update.
1071 * solib-svr4.c (svr4_update_solib_event_breakpoint): Update.
1072 (svr4_update_solib_event_breakpoints): Update.
1073
1074 2019-10-15 Andreas Arnez <arnez@linux.ibm.com>
1075
1076 * s390-tdep.c (s390_effective_inner_type): Ignore static fields
1077 when unwrapping single-field structs.
1078
1079 2019-10-14 Simon Marchi <simon.marchi@polymtl.ca>
1080
1081 * dwarf2read.c: Remove includes.
1082
1083 2019-10-13 Simon Marchi <simon.marchi@polymtl.ca>
1084
1085 * ui-out.c (ui_out::call_do_message): Silence
1086 -Wformat-nonliteral warning.
1087
1088 2019-10-12 Simon Marchi <simon.marchi@polymtl.ca>
1089
1090 * breakpoint.c: Remove some includes: continuations.h, skip.h,
1091 mi/mi-main.h, readline/readline.h, readline/history.h. Add
1092 include: readline/tilde.h.
1093
1094 2019-10-12 Christian Biesinger <cbiesinger@google.com>
1095
1096 * remote.c (remote_target::get_trace_status): Remove declaration of
1097 trace_regblock_size.
1098
1099 2019-10-12 Christian Biesinger <cbiesinger@google.com>
1100
1101 * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
1102 (show_user): Remove declaration of cmdlist.
1103 * cli/cli-cmds.h (max_user_call_depth): Declare.
1104 * cli/cli-script.c (execute_user_command): Remove declaration
1105 of max_user_call_depth.
1106
1107 2019-10-11 Jim Wilson <jimw@sifive.com>
1108
1109 * gdbsupport/print-utils.h (pulongest): Fix comment.
1110 (plongest): Likewise.
1111 (phex): Add missing comment, mention leading zeros.
1112 (phex_nz): Add mention of no leading zeros to comment.
1113
1114 * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
1115 plongest instead of unsigned long long cast.
1116
1117 2019-10-10 Christian Biesinger <cbiesinger@google.com>
1118
1119 * main.c (captured_main_1): Include gdbtk.h and remove declarations
1120 for external_editor_command and gdbtk_test.
1121
1122 2019-10-10 Christian Biesinger <cbiesinger@google.com>
1123
1124 * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
1125 * varobj.c (varobjdebug): Move comment to...
1126 * varobj.h (varobjdebug): ...here, and declare.
1127
1128 2019-10-09 Tom Tromey <tom@tromey.com>
1129
1130 * tui/tui-regs.c (tui_data_window::show_registers): Don't call
1131 erase_data_content.
1132
1133 2019-10-09 Tom Tromey <tom@tromey.com>
1134
1135 * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
1136 * tui/tui-stack.c (tui_locator_window::rerender): Update.
1137 * tui/tui-command.c (tui_cmd_window::resize)
1138 (tui_refresh_cmd_win): Update.
1139 * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
1140 * tui/tui.c (tui_rl_other_window, tui_enable): Update.
1141 * tui/tui-data.c (~tui_gen_win_info): Remove.
1142 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
1143 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
1144 (tui_redisplay_readline, tui_mld_flush)
1145 (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
1146 * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
1147 (tui_data_window::erase_data_content)
1148 (tui_data_item_window::rerender)
1149 (tui_data_item_window::refresh_window): Update.
1150 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
1151 (box_win, tui_gen_win_info::make_window)
1152 (tui_gen_win_info::make_visible): Update.
1153 (tui_delete_win): Remove.
1154 * tui/tui-winsource.c
1155 (tui_source_window_base::do_erase_source_content): Update.
1156 (tui_show_source_line, tui_source_window_base::update_tab_width)
1157 (tui_source_window_base::update_exec_info): Update.
1158 * tui/tui-data.h (struct curses_deleter): New.
1159 (struct tui_gen_win_info) <handle>: Now a unique_ptr.
1160 (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
1161
1162 2019-10-09 Tom Tromey <tom@tromey.com>
1163
1164 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
1165
1166 2019-10-09 Tom Tromey <tom@tromey.com>
1167
1168 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
1169 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
1170
1171 2019-10-09 Tom Tromey <tom@tromey.com>
1172
1173 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
1174 window height directly.
1175 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
1176 declare.
1177 * tui/tui-layout.c (tui_default_win_height): Remove.
1178 (tui_default_win_viewport_height): Remove.
1179
1180 2019-10-09 Tom Tromey <tom@tromey.com>
1181
1182 * tui/tui.h: Remove comments.
1183
1184 2019-10-09 Tom de Vries <tdevries@suse.de>
1185
1186 * python/lib/gdb/printer/bound_registers.py: Use
1187 '^builtin_type_bound128' as regexp argument for
1188 add_builtin_pretty_printer.
1189
1190 2019-10-09 Christian Biesinger <cbiesinger@google.com>
1191
1192 * guile/guile.c (guile_extension_script_ops): Remove forward
1193 declaration and mark as static.
1194 (guile_script_ops): Likewise.
1195 (extension_language_guile): Move further down in the file so
1196 it can reference the definitions for guile_{extension_,}script_ops.
1197
1198 2019-10-09 Andreas Arnez <arnez@linux.ibm.com>
1199
1200 * s390-tdep.c (390_process_record): Handle new arch13 instructions
1201 except SORTL, DFLTCC, and KDSA.
1202
1203 2019-10-08 Tom Tromey <tromey@adacore.com>
1204
1205 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
1206 (struct safe_symbol_file_add_args): Remove.
1207
1208 2019-10-08 Tom Tromey <tromey@adacore.com>
1209
1210 * windows-nat.c: Don't include buildsym-legacy.h.
1211
1212 2019-10-08 Tom Tromey <tromey@adacore.com>
1213
1214 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
1215
1216 2019-10-08 Christian Biesinger <cbiesinger@google.com>
1217
1218 * gdbtypes.c (overload_debug): Move comment to header.
1219 * gdbtypes.h (overload_debug): Declare.
1220 * valops.c: Remove declaration of overload_debug, instead
1221 include gdbtypes.h.
1222
1223 2019-10-08 Christian Biesinger <cbiesinger@google.com>
1224
1225 * language.c (show_language_command): Pass lang_frame_mismatch_warn
1226 through _().
1227 (lang_frame_mismatch_warn): Make const, mark with N_(), and
1228 move comment...
1229 * language.h (lang_frame_mismatch_warn): ... here. Also add
1230 declaration.
1231 * top.c (lang_frame_mismatch_warn): Remove declaration.
1232 (check_frame_language_change): Pass lang_frame_mismatch_warn
1233 through _().
1234
1235 2019-10-07 Christian Biesinger <cbiesinger@google.com>
1236
1237 * c-lang.h (vtbl_ptr_name): Declare.
1238 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
1239 it from the header.
1240 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
1241
1242 2019-10-07 Christian Biesinger <cbiesinger@google.com>
1243
1244 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
1245 gdb_static_assert.
1246
1247 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
1248
1249 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
1250 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
1251 * ctfread.c: New file.
1252 * ctfread.h: New file.
1253 * elfread.c: Include ctfread.h.
1254 (struct elfinfo text_p): New member ctfsect.
1255 (elf_locate_sections): Mark CTF section.
1256 (elf_symfile_read): Call elfctf_build_psymtabs.
1257 * Makefile.in (LIBCTF): Add.
1258 (CLIBS): Use it.
1259 (CDEPS): Likewise.
1260 (DIST): Add ctfread.c.
1261
1262 2019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
1263
1264 * ctfread.c (struct nextfield): Renamed to ...
1265 (struct ctf_nextfield): ... this.
1266 (struct field_info): Renamed to ...
1267 (strut ctf_field_info): ... this.
1268 (attach_fields_to_type): Update for renamed structures.
1269 (ctf_add_member_cb): Likewise.
1270 (ctf_add_enum_member_cb): Likewise.
1271 (process_struct_members): Likewise.
1272 (process_enum_type): Likewise.
1273
1274 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
1275
1276 * tracectf.h: Rename, was ctf.h.
1277 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
1278 * tracefile.c: Likewise.
1279 * tracepoint.c: Remove unused include ctf.h.
1280 * mi/mi-main.c: Likewise.
1281 * Makefile.in Replace ctf.c with tracectf.c.
1282
1283 2019-10-06 Joel Brobecker <brobecker@adacore.com>
1284
1285 * version.in: Change version number to "9.0.50.DATE-git".
1286
1287 2019-10-03 Tom Tromey <tom@tromey.com>
1288
1289 PR rust/24976:
1290 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
1291
1292 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
1293
1294 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
1295 cp_search_name_hash.
1296 * NEWS: Add entry about nested function support.
1297
1298 2019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
1299 Andrew Burgess <andrew.burgess@embecosm.com>
1300
1301 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
1302 for nested static variables when searchin VAR_DOMAIN.
1303 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
1304 global scope, update comment.
1305 (add_partial_subprogram): Call add_partial_subprogram recursively
1306 for nested subroutines when processinng Fortran.
1307 (load_partial_dies): Process the child entities of a subprogram
1308 when processing Fortran.
1309 (partial_die_parent_scope): Handle building scope
1310 for Fortran nested functions.
1311 (process_die): Record that nested functions have a scope.
1312 (new_symbol): Always record Fortran subprograms on the global
1313 symbol list.
1314 (determine_prefix): How to build the prefix for Fortran
1315 subprograms.
1316
1317 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
1318
1319 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
1320 have just sent the thread a SIGSTOP and are waiting for it to
1321 arrive.
1322
1323 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
1324
1325 * btrace.c (btrace_add_pc): Remove whitespace before the template
1326 parameter in 'std::vector <...>'.
1327 (parse_xml_btrace_block): Likewise.
1328 (btrace_maint_decode_pt): Likewise.
1329 (btrace_maint_update_packets): Likewise.
1330 (btrace_maint_print_packets): Likewise.
1331 * btrace.h (struct btrace_maint_info): Likewise.
1332 * dwarf2read.c (struct type_unit_group): Likewise.
1333 (build_type_psymtabs_reader): Likewise.
1334 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
1335 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
1336 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
1337
1338 2019-10-03 Tom de Vries <tdevries@suse.de>
1339
1340 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
1341 the first line of the help text for set/show style metadata.
1342
1343 2019-10-02 Tom Tromey <tromey@adacore.com>
1344
1345 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
1346 * gdbsupport/common-inferior.c: New file.
1347 * infcmd.c (startup_with_shell): Don't define.
1348 * nat/fork-inferior.h (startup_with_shell): Don't declare.
1349 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
1350 * inferior.h (startup_with_shell): Don't declare.
1351
1352 2019-10-02 Christian Biesinger <cbiesinger@google.com>
1353
1354 * gdbsupport/gdb_assert.h: Include errors.h.
1355 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
1356
1357 2019-10-02 Tom Tromey <tromey@adacore.com>
1358
1359 * NEWS: Add $_ada_exception entry.
1360 * ada-lang.c (struct ada_catchpoint): Add constructor.
1361 <m_kind>: New member.
1362 (allocate_location_exception, re_set_exception): Remove
1363 "ex" parameter.
1364 (should_stop_exception): Compute $_ada_exception.
1365 (check_status_exception, print_it_exception)
1366 (print_one_exception, print_mention_exception): Remove
1367 "ex" parameter.
1368 (allocate_location_catch_exception, re_set_catch_exception)
1369 (check_status_exception, print_it_catch_exception)
1370 (print_one_catch_exception, print_mention_catch_exception)
1371 (print_recreate_catch_exception)
1372 (allocate_location_catch_exception_unhandled)
1373 (re_set_catch_exception_unhandled)
1374 (check_status_exception, print_it_catch_exception_unhandled)
1375 (print_one_catch_exception_unhandled)
1376 (print_mention_catch_exception_unhandled)
1377 (print_recreate_catch_exception_unhandled)
1378 (allocate_location_catch_assert, re_set_catch_assert)
1379 (check_status_assert, print_it_catch_assert)
1380 (print_one_catch_assert, print_mention_catch_assert)
1381 (print_recreate_catch_assert)
1382 (allocate_location_catch_handlers, re_set_catch_handlers)
1383 (check_status_handlers, print_it_catch_handlers)
1384 (print_one_catch_handlers, print_mention_catch_handlers)
1385 (print_recreate_catch_handlers): Remove.
1386 (create_ada_exception_catchpoint): Update.
1387 (initialize_ada_catchpoint_ops): Update.
1388
1389 2019-10-02 Tom Tromey <tromey@adacore.com>
1390
1391 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
1392 (create_excep_cond_exprs): Simplify exception string computation.
1393 (ada_exception_catchpoint_cond_string): Likewise.
1394
1395 2019-10-02 Tom Tromey <tromey@adacore.com>
1396
1397 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
1398 * ada-lang.c (lesseq_defined_than): Handle
1399 LOC_STATIC.
1400 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
1401 parameter.
1402 (dwarf2_has_info): Likewise.
1403 (new_symbol): Set maybe_copied on symbol when
1404 appropriate.
1405 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
1406 parameter.
1407 <can_copy>: New member.
1408 * elfread.c (record_minimal_symbol): Set maybe_copied
1409 on symbol when appropriate.
1410 (elf_symfile_read): Update call to dwarf2_has_info.
1411 * minsyms.c (lookup_minimal_symbol_linkage): New
1412 function.
1413 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
1414 * symtab.c (get_symbol_address, get_msymbol_address):
1415 New functions.
1416 * symtab.h (get_symbol_address, get_msymbol_address):
1417 Declare.
1418 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
1419 maybe_copied.
1420 (struct symbol, struct minimal_symbol) <maybe_copied>:
1421 New member.
1422
1423 2019-10-02 Tom Tromey <tromey@adacore.com>
1424
1425 * source.c (struct current_source_location): New.
1426 (current_source_key): New global.
1427 (current_source_symtab, current_source_line)
1428 (current_source_pspace): Remove.
1429 (get_source_location): New function.
1430 (get_current_source_symtab_and_line)
1431 (set_default_source_symtab_and_line)
1432 (set_current_source_symtab_and_line)
1433 (clear_current_source_symtab_and_line, select_source_symtab)
1434 (info_source_command, print_source_lines_base)
1435 (info_line_command, search_command_helper, _initialize_source):
1436 Update.
1437
1438 2019-10-02 Tom Tromey <tromey@adacore.com>
1439
1440 * source.c (select_source_symtab): Don't call
1441 decode_line_with_current_source.
1442
1443 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
1444
1445 * symtab.c (lookup_global_symbol): Search global block.
1446
1447 2019-10-02 Tom Tromey <tromey@adacore.com>
1448
1449 * coffread.c (process_coff_symbol): Update.
1450 * dwarf2read.c (var_decode_location, new_symbol): Update.
1451 * mdebugread.c (parse_symbol): Update.
1452 * objfiles.c (relocate_one_symbol): Update.
1453 * stabsread.c (define_symbol, fix_common_block)
1454 (scan_file_globals): Update.
1455 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
1456 (SET_SYMBOL_VALUE_ADDRESS): New macro.
1457 * xcoffread.c (process_xcoff_symbol): Update.
1458
1459 2019-10-02 Andreas Arnez <arnez@linux.ibm.com>
1460
1461 * MAINTAINERS: Update my email address.
1462
1463 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
1464
1465 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
1466 std::vector.
1467 (build_type_psymtabs_reader): Update for std::vector.
1468 (build_type_psymtab_dependencies): Likewise.
1469 * dwarf2read.h: Remove use of DEF_VEC_P.
1470 (typedef sig_type_ptr): Delete.
1471
1472 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
1473
1474 * btrace.c (btrace_maint_clear): Update to handle change from VEC
1475 to std::vector.
1476 (btrace_maint_decode_pt): Likewise, and move allocation of the
1477 vector outside of the loop.
1478 (btrace_maint_update_packets): Update to handle change from VEC to
1479 std::vector.
1480 (btrace_maint_print_packets): Likewise.
1481 (maint_info_btrace_cmd): Likewise.
1482 * btrace.h: Remove use of DEF_VEC_O.
1483 (typedef btrace_pt_packet_s): Delete.
1484 (struct btrace_maint_info) <packets>: Change fromm VEC to
1485 std::vector.
1486 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
1487
1488 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
1489
1490 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
1491 make accesses into the vector constant references.
1492 (btrace_add_pc): Update for std::vector.
1493 (btrace_stitch_bts): Likewise.
1494 (parse_xml_btrace_block): Likewise.
1495 (btrace_maint_update_packets): Likewise.
1496 (btrace_maint_print_packets): Likewise.
1497 (maint_info_btrace_cmd): Likewise.
1498 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
1499 std::vector.
1500 (btrace_data::empty): Likewise.
1501 (btrace_data_append): Likewise.
1502 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
1503 (typedef btrace_block_s): Delete.
1504 (struct btrace_block): Add constructor.
1505 (struct btrace_data_bts) <blocks>: Change to std::vector.
1506 * nat/linux-btrace.c (perf_event_read_bts): Update for
1507 std::vector.
1508 (linux_read_bts): Likewise.
1509
1510 2019-10-01 Tom Tromey <tom@tromey.com>
1511
1512 * cli/cli-logging.c (show_logging_filename): Use styled_string.
1513
1514 2019-10-01 Tom Tromey <tom@tromey.com>
1515
1516 * stack.c (print_frame, info_frame_command_core): Use
1517 styled_string.
1518 * linux-thread-db.c (try_thread_db_load_1)
1519 (try_thread_db_load_from_pdir_1): Use styled_string.
1520 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
1521 (auto_load_section_scripts, info_auto_load_local_gdbinit)
1522 (maybe_print_unsupported_script_warning)
1523 (maybe_print_script_not_found_warning): Use styled_string.
1524 * ada-lang.c (user_select_syms): Use styled_string.
1525
1526 2019-10-01 Tom Tromey <tom@tromey.com>
1527
1528 * p-lang.c (pascal_printstr): Use metadata style.
1529 * value.c (show_convenience): Use metadata style.
1530 * valprint.c (valprint_check_validity, val_print_optimized_out)
1531 (val_print_not_saved, val_print_unavailable)
1532 (val_print_invalid_address, generic_val_print, val_print)
1533 (value_check_printable, val_print_array_elements): Use metadata
1534 style.
1535 * ui-out.h (class ui_out) <field_fmt>: New overload.
1536 <do_field_fmt>: Add style parameter.
1537 * ui-out.c (ui_out::field_fmt): New overload.
1538 * typeprint.c (type_print_unknown_return_type)
1539 (val_print_not_allocated, val_print_not_associated): Use metadata
1540 style.
1541 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
1542 parameter.
1543 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
1544 * tracepoint.c (tvariables_info_1): Use metadata style.
1545 * stack.c (print_frame_arg, print_frame_info, print_frame)
1546 (info_frame_command_core): Use metadata style.
1547 * skip.c (info_skip_command): Use metadata style.
1548 * rust-lang.c (rust_print_enum): Use metadata style.
1549 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
1550 metadata style.
1551 * python/py-framefilter.c (py_print_single_arg): Use metadata
1552 style.
1553 * printcmd.c (do_one_display, print_variable_and_value): Use
1554 metadata style.
1555 * p-valprint.c (pascal_val_print)
1556 (pascal_object_print_value_fields): Use metadata style.
1557 * p-typeprint.c (pascal_type_print_base): Use metadata style.
1558 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
1559 parameter.
1560 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
1561 * m2-valprint.c (m2_print_long_set): Use metadata style.
1562 * m2-typeprint.c (m2_print_type): Use metadata style.
1563 * infcmd.c (print_return_value_1): Use metadata style.
1564 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
1565 * f-valprint.c (info_common_command_for_block): Use metadata
1566 style.
1567 * f-typeprint.c (f_type_print_base): Use metadata style.
1568 * expprint.c (print_subexp_standard): Use metadata style.
1569 * cp-valprint.c (cp_print_value_fields): Use metadata style.
1570 * cli/cli-style.h (class cli_style_option): Add constructor.
1571 (metadata_style): Declare.
1572 * cli/cli-style.c (metadata_style): New global.
1573 (_initialize_cli_style): Register metadata style.
1574 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
1575 parameter.
1576 * cli-out.c (cli_ui_out::do_field_fmt): Update.
1577 * c-typeprint.c (c_type_print_base_struct_union)
1578 (c_type_print_base_1): Use metadata style.
1579 * breakpoint.c (watchpoint_value_print)
1580 (print_one_breakpoint_location): Use metadata style.
1581 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
1582 style.
1583 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
1584 style.
1585 * ada-valprint.c (val_print_packed_array_elements, printstr)
1586 (print_field_values, ada_val_print_ref, ada_val_print): Use
1587 metadata style.
1588 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
1589 style.
1590 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
1591 style.
1592 * ada-lang.c (user_select_syms): Use metadata style.
1593
1594 2019-10-01 Tom Tromey <tom@tromey.com>
1595
1596 * cli/cli-cmds.c (pwd_command): Style output.
1597
1598 2019-10-01 Pedro Alves <palves@redhat.com>
1599 Tom Tromey <tom@tromey.com>
1600
1601 * symtab.c (print_symbol_info): Use %ps.
1602 (print_msymbol_info): Use %ps.
1603 * symfile.c (symbol_file_add_with_addrs): Use %ps.
1604 * printcmd.c (print_variable_and_value): Use %ps.
1605 * macrocmd.c (show_pp_source_pos): Use %ps.
1606 * infrun.c (print_exited_reason): Use ui_out::message.
1607 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
1608 (describe_other_breakpoints): Use ui_out::message and new
1609 formats.
1610 (say_where): Use new formats.
1611 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
1612 and new formats.
1613
1614 2019-10-01 Pedro Alves <palves@redhat.com>
1615 Tom Tromey <tom@tromey.com>
1616
1617 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
1618 (test_gdb_formats): New function.
1619 (run_tests): Call it.
1620 (test_format_specifier): Update.
1621 * utils.h (fputs_filtered): Update comment.
1622 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
1623 (fputs_styled_unfiltered): Declare.
1624 * utils.c (fputs_styled_unfiltered): New function.
1625 (vfprintf_maybe_filtered): Add gdbfmt parameter.
1626 (vfprintf_filtered): Update.
1627 (vfprintf_unfiltered, vprintf_filtered): Update.
1628 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
1629 * ui-out.h (enum ui_out_flag) <unfiltered_output,
1630 disallow_ui_out_field>: New constants.
1631 (enum class field_kind): New.
1632 (struct base_field_s, struct signed_field_s): New.
1633 (signed_field): New function.
1634 (struct string_field_s): New.
1635 (string_field): New function.
1636 (struct styled_string_s): New.
1637 (styled_string): New function.
1638 (class ui_out) <message>: Add comment.
1639 <vmessage, call_do_message>: New methods.
1640 <do_message>: Add style parameter.
1641 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
1642 methods.
1643 (ui_out::message): Rewrite.
1644 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
1645 parameter.
1646 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
1647 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
1648 gdb_extensions parameter.
1649 (class format_piece): Add parameter to constructor.
1650 (n_int_args): New field.
1651 * gdbsupport/format.c (format_pieces::format_pieces): Add
1652 gdb_extensions parameter. Handle '*'.
1653 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
1654 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
1655 vfprintf_styled_no_gdbfmt.
1656 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
1657 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
1658 unfiltered output.
1659 * ui-style.h (struct ui_file_style) <ptr>: New method.
1660
1661 2019-10-01 Tom Tromey <tom@tromey.com>
1662
1663 * unittests/format_pieces-selftests.c: Update. Add final format.
1664 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
1665 empty literal pieces.
1666
1667 2019-10-01 Tom Tromey <tom@tromey.com>
1668
1669 * ui-out.h (enum class ui_out_style_kind): Remove.
1670 (class ui_out) <field_string, field_stsream, do_field_string>:
1671 Change type of "style".
1672 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
1673 (ui_out::field_string): Update.
1674 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
1675 of "style".
1676 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
1677 * tracepoint.c (print_one_static_tracepoint_marker): Update.
1678 * stack.c (print_frame_arg, print_frame_info, print_frame):
1679 Update.
1680 * source.c (print_source_lines_base): Update.
1681 * solib.c (info_sharedlibrary_command): Update.
1682 * skip.c (info_skip_command): Update.
1683 * record-btrace.c (btrace_call_history_src_line)
1684 (btrace_call_history): Update.
1685 * python/py-framefilter.c (py_print_frame): Update.
1686 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
1687 "style".
1688 * mi/mi-out.c (mi_ui_out::do_table_header)
1689 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
1690 (mi_ui_out::do_field_string): Update.
1691 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
1692 Update.
1693 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
1694 "style".
1695 * cli-out.c (cli_ui_out::do_table_header)
1696 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
1697 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
1698 (cli_ui_out::do_field_fmt): Update.
1699 * breakpoint.c (print_breakpoint_location): Update.
1700 (update_static_tracepoint): Update.
1701
1702 2019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1703
1704 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
1705 conversion of gdb_datadir.
1706 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
1707 remove not needed c_str ().
1708
1709 2019-09-30 Ali Tamur <tamur@google.com>
1710
1711 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
1712 (dwarf2_string_attr): Likewise.
1713
1714 2019-09-30 Ali Tamur <tamur@google.com>
1715
1716 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
1717 (process_full_type_unit): Likewise.
1718 (dump_die_shallow): Likewise.
1719 (cu_debug_loc_section): Likewise.
1720
1721 2019-09-28 Christian Biesinger <cbiesinger@google.com>
1722
1723 * minsyms.c (compare_minimal_symbols): Rename to...
1724 (minimal_symbol_is_less_than): ...this, and adjust to STL
1725 conventions (return bool, take arguments as references)
1726 (minimal_symbol_reader::install): Call std::sort instead
1727 of qsort.
1728
1729 2019-09-29 Christian Biesinger <cbiesinger@google.com>
1730
1731 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
1732 hash and why.
1733 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
1734 msymbol_hash, msymbol_demangled_hash>: Improve comments.
1735
1736 2019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
1737
1738 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
1739 * psympriv.h (add_psymbol_to_list): Move comment here and update
1740 it.
1741
1742 2019-09-29 Tom de Vries <tdevries@suse.de>
1743
1744 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
1745 Use $tmpdir/$(basename "$output_file").dwz instead of
1746 "${output_file}.dwz".
1747
1748 2019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
1749
1750 PR gdb/25045
1751 * hppa-linux-nat.c: Include gdbarch.h.
1752
1753 2019-09-26 Christian Biesinger <cbiesinger@google.com>
1754
1755 * blockframe.c (find_pc_partial_function): Change return type to bool.
1756 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
1757 * minsyms.c (in_gnu_ifunc_stub): Likewise.
1758 (stub_gnu_ifunc_resolve_name): Likewise.
1759 * symtab.c (compare_filenames_for_search): Likewise.
1760 (compare_glob_filenames_for_search): Likewise.
1761 (matching_obj_sections): Likewise.
1762 (symbol_matches_domain): Likewise.
1763 (find_line_symtab): Change out param EXACT_MATCH to bool *.
1764 (find_line_pc): Change return type to bool.
1765 (find_line_pc_range): Likewise.
1766 (producer_is_realview): Likewise.
1767 * symtab.h (symbol_matches_domain): Likewise.
1768 (find_pc_partial_function): Likewise.
1769 (find_pc_line_pc_range): Likewise.
1770 (in_gnu_ifunc_stub): Likewise.
1771 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
1772 (find_line_pc): Likewise.
1773 (find_line_pc_range): Likewise.
1774 (matching_obj_sections): Likewise.
1775 (find_line_symtab): Change out parameter to bool.
1776 (producer_is_realview): Change return type to bool.
1777 (compare_filenames_for_search): Likewise.
1778 (compare_glob_filenames_for_search): Likewise.
1779
1780 2019-09-26 Tom Tromey <tom@tromey.com>
1781
1782 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
1783 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
1784 * gdb_usleep.h: Remove.
1785 * gdb_usleep.c: Remove.
1786 * utils.c: Don't include gdb_usleep.h.
1787
1788 2019-09-26 Tom Tromey <tromey@adacore.com>
1789
1790 * python/py-type.c (type_to_type_object): Call check_typedef
1791 for stub types.
1792
1793 2019-09-26 Tom Tromey <tom@tromey.com>
1794
1795 * utils.h (initialize_utils): Don't declare.
1796 * top.c (gdb_init): Don't call initialize_utils.
1797 * utils.c (initialize_utils): Remove. Move contents...
1798 (_initialize_utils): ... here.
1799
1800 2019-09-25 Tom Tromey <tom@tromey.com>
1801
1802 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
1803 * utils.h (make_hex_string): Don't declare.
1804 * utils.c (make_hex_string): Remove.
1805
1806 2019-09-24 Tom de Vries <tdevries@suse.de>
1807
1808 PR gdb/23815
1809 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
1810 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
1811
1812 2019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
1813
1814 * NEWS: Mention new simulator port for PRU.
1815
1816 2019-09-23 Christian Biesinger <cbiesinger@google.com>
1817
1818 * ada-exp.y (write_object_remaining): Update.
1819 * ada-lang.c (ada_decode): Return a std::string instead of a char*
1820 and eliminate the static buffer.
1821 (ada_decode_symbol): Update.
1822 (ada_la_decode): Update.
1823 (ada_sniff_from_mangled_name): Update.
1824 (is_valid_name_for_wild_match): Update.
1825 (ada_lookup_name_info::matches): Update and simplify.
1826 (name_matches_regex): Update.
1827 (ada_add_global_exceptions): Update.
1828 * ada-lang.h (ada_decode): Update signature.
1829 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
1830 * dwarf-index-write.c (debug_names::insert): Update.
1831
1832 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
1833
1834 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
1835 formatting.
1836
1837 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
1838
1839 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
1840 Change "nonzero" to "true" in documentation.
1841
1842 2019-09-20 Christian Biesinger <cbiesinger@google.com>
1843
1844 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
1845 (_initialize_darwin_solib): Don't set
1846 darwin_so_ops.lookup_lib_global_symbol.
1847 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
1848 set_gdbarch_iterate_over_objfiles_in_search_order.
1849 (elf_lookup_lib_symbol): Rename to...
1850 (svr4_iterate_over_objfiles_in_search_order): this, and update
1851 to iterate semantics.
1852 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
1853 * solib.c (solib_global_lookup): Remove.
1854 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
1855 (solib_global_lookup): Remove.
1856 * symtab.c (lookup_global_or_static_symbol): Remove call to
1857 solib_global_lookup.
1858
1859 2019-09-20 Joel Brobecker <brobecker@adacore.com>
1860
1861 * NEWS: Move entries about default MI version now being
1862 version 3, and about the GDB/MI fix for multi-location
1863 breakpoints to the "since GDB 8.3" section.
1864
1865 2019-09-20 Joel Brobecker <brobecker@adacore.com>
1866
1867 GDB 8.3.1 released.
1868
1869 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
1870
1871 * NEWS: Mention that Cell/B.E. debugging support was removed.
1872 * MAINTAINERS: Remove spu target.
1873
1874 * config/djgpp/fnchange.lst: Remove entries for removed files.
1875
1876 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
1877 spu-multiarch.o, and spu-tdep.o.
1878 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
1879 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
1880 spu-multiarch.c, and spu-tdep.c.
1881 * spu-linux-nat.c: Remove file.
1882 * spu-multiarch.c: Remove file.
1883 * spu-tdep.c: Remove file.
1884 * spu-tdep.h: Remove file.
1885 * solib-spu.c: Remove file.
1886 * solib-spu.h: Remove file.
1887
1888 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
1889 * configure.nat (spu-linux): Remove.
1890 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
1891 solib-multiarch.o from gdb_target_obs.
1892 (spu*-*-*): Remove.
1893
1894 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
1895 feature flag.
1896 (ppc_linux_no_features): Update.
1897 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
1898 Cell/B.E. support.
1899 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
1900 (tdesc_powerpc_cell64l): Likewise.
1901 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
1902 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
1903 Cell/B.E. support.
1904 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
1905 Do not include "features/rs6000/powerpc-cell32l.c" or
1906 "features/rs6000/powerpc-cell64l.c".
1907 (ppc_linux_spu_section): Remove.
1908 (ppc_linux_core_read_description): Remove Cell/B.E. support.
1909 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
1910 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
1911 (ppc_linux_spe_context_lookup): Remove.
1912 (ppc_linux_spe_context_inferior_created): Remove.
1913 (ppc_linux_spe_context_solib_loaded): Remove.
1914 (ppc_linux_spe_context_solib_unloaded): Remove.
1915 (ppc_linux_spe_context): Remove.
1916 (struct ppu2spu_cache): Remove.
1917 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
1918 (struct ppu2spu_data): Remove.
1919 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
1920 ppu2spu_unwind): Remove.
1921 (ppc_linux_init_abi): Remove Cell/B.E. support.
1922 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
1923
1924 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
1925 (rs6000/powerpc-cell64l-expedite): Likewise
1926 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
1927 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
1928 rs6000/powerpc-cell64l.xml.
1929 * features/rs6000/powerpc-cell32l.xml: Remove.
1930 * features/rs6000/powerpc-cell64l.xml: Likewise.
1931 * features/rs6000/powerpc-cell32l.c: Remove generated file.
1932 * features/rs6000/powerpc-cell64l.c: Likewise.
1933 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
1934 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
1935 * regformats/reg-spu.dat: Remove.
1936
1937 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
1938 * corelow.c (struct spuid_list): Remove.
1939 (add_to_spuid_list): Remove.
1940 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
1941 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
1942 (remote_protocol_features): Remove associated entries.
1943 (_initialize_remote): No longer initialize them.
1944 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
1945 * linux-nat.c (SPUFS_MAGIC): Remove.
1946 (linux_proc_xfer_spu): Remove.
1947 (spu_enumerate_spu_ids): Remove.
1948 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
1949 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
1950 (linux_make_corefile_notes): No longer call it.
1951
1952 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
1953 (cooked_write_test): Likewise.
1954
1955 2019-09-20 Tom Tromey <tom@tromey.com>
1956
1957 * NEWS: Mention case-sensitivity of TUI commands.
1958 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
1959 (tui_set_win_height_command, parse_scrolling_args): Likewise.
1960 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
1961
1962 2019-09-20 Tom Tromey <tom@tromey.com>
1963
1964 * tui/tui-source.c (tui_source_window::set_contents): Use
1965 make_unique_xstrdup.
1966 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
1967 make_unique_xstrdup.
1968
1969 2019-09-20 Tom Tromey <tom@tromey.com>
1970
1971 * tui/tui-data.c: Remove separator comments.
1972 * tui/tui-layout.c: Remove separator comments.
1973 * tui/tui-win.c: Remove separator comments.
1974 * tui/tui-wingeneral.c: Remove separator comments.
1975
1976 2019-09-20 Tom Tromey <tom@tromey.com>
1977
1978 * tui/tui.h (strcat_to_buf): Don't declare.
1979 * tui/tui.c (strcat_to_buf): Remove.
1980
1981 2019-09-20 Tom Tromey <tom@tromey.com>
1982
1983 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
1984 from "fullname".
1985 * tui/tui-source.c (tui_source_window::set_contents)
1986 (tui_source_window::location_matches_p)
1987 (tui_source_window::maybe_update): Update.
1988
1989 2019-09-20 Tom Tromey <tom@tromey.com>
1990
1991 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
1992 Update.
1993 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
1994 prefix.
1995 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
1996 (tui_data_window::line_from_reg_element_no)
1997 (tui_data_window::first_reg_element_no_inline)
1998 (tui_data_window::show_registers)
1999 (tui_data_window::show_register_group)
2000 (tui_data_window::display_registers_from)
2001 (tui_data_window::display_registers_from_line)
2002 (tui_data_window::first_data_item_displayed)
2003 (tui_data_window::delete_data_content_windows)
2004 (tui_data_window::erase_data_content)
2005 (tui_data_window::do_scroll_vertical)
2006 (tui_data_window::refresh_window)
2007 (tui_data_window::check_register_values): Update.
2008
2009 2019-09-20 Tom Tromey <tom@tromey.com>
2010
2011 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
2012 (struct tui_locator_window) <full_name, proc_name>: Now
2013 std::string.
2014 * tui/tui-stack.c (tui_locator_window::make_status_line)
2015 (tui_locator_window::set_locator_fullname)
2016 (tui_locator_window::set_locator_info): Update.
2017 * tui/tui-source.c (tui_source_window::set_contents)
2018 (tui_source_window::showing_source_p): Update.
2019
2020 2019-09-20 Tom Tromey <tom@tromey.com>
2021
2022 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
2023 Don't call tui_locator_win_info_ptr.
2024
2025 2019-09-20 Tom Tromey <tom@tromey.com>
2026
2027 * tui/tui-win.c (tui_resize_all): Don't call refresh.
2028
2029 2019-09-20 Tom Tromey <tom@tromey.com>
2030
2031 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
2032 height for locator.
2033 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
2034 * tui/tui-layout.c (show_source_disasm_command, show_data)
2035 (show_source_or_disasm_and_command): Use 1 as height for locator.
2036
2037 2019-09-20 Tom Tromey <tom@tromey.com>
2038
2039 * tui/tui.c (tui_enable): Update.
2040 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
2041 Update.
2042 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
2043 Update.
2044 * tui/tui-data.c (win_resized): Now bool.
2045 (tui_win_resized): Return bool.
2046 (tui_set_win_resized_to): Accept a bool.
2047
2048 2019-09-20 Tom Tromey <tom@tromey.com>
2049
2050 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
2051 Change type of "refresh_values_only".
2052 * tui/tui-regs.c (tui_data_window::show_register_group): Change
2053 type of "refresh_values_only".
2054
2055 2019-09-20 Tom Tromey <tom@tromey.com>
2056
2057 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
2058 std::string.
2059 (tui_disassemble): Add "pos" parameter.
2060 (tui_disasm_window::set_contents): Simplify.
2061
2062 2019-09-20 Tom Tromey <tom@tromey.com>
2063
2064 * tui/tui-winsource.h (struct tui_source_window_base)
2065 <show_source_content>: Now private.
2066 * tui/tui-winsource.c
2067 (tui_source_window_base::show_source_content): Don't handle empty
2068 content case.
2069
2070 2019-09-20 Tom Tromey <tom@tromey.com>
2071
2072 * tui/tui-layout.c (show_source_disasm_command)
2073 (show_source_or_disasm_and_command): Don't call
2074 show_source_content.
2075
2076 2019-09-20 Tom Tromey <tom@tromey.com>
2077
2078 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
2079 Declare.
2080 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
2081 from tui_make_status_line.
2082 (tui_locator_window::rerender): Update.
2083
2084 2019-09-20 Tom Tromey <tom@tromey.com>
2085
2086 * tui/tui-stack.c (tui_make_status_line): Return std::string.
2087 (tui_locator_window::rerender): Update.
2088
2089 2019-09-20 Tom Tromey <tom@tromey.com>
2090
2091 * tui/tui-winsource.h (struct tui_source_window_base)
2092 <~tui_source_window_base>: Don't declare.
2093 <fullname>: Remove.
2094 * tui/tui-winsource.c (~tui_source_window_base): Remove.
2095 * tui/tui-source.h (struct tui_source_window) <fullname>: New
2096 member.
2097 * tui/tui-source.c (tui_source_window::set_contents): Update.
2098 (tui_source_window::location_matches_p)
2099 (tui_source_window::maybe_update): Update.
2100
2101 2019-09-20 Tom Tromey <tom@tromey.com>
2102
2103 * tui/tui-winsource.h (~tui_source_element): Remove.
2104 (tui_source_element): Update.
2105 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
2106 * tui/tui-winsource.c (tui_show_source_line): Update.
2107 * tui/tui-source.c (tui_source_window::set_contents): Update.
2108 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
2109
2110 2019-09-20 Tom Tromey <tom@tromey.com>
2111
2112 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
2113 declare.
2114 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
2115 tui_clear_source_windows_detail.
2116 * tui/tui-winsource.h (struct tui_source_window_base)
2117 <clear_detail>: Don't declare.
2118 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
2119 Remove.
2120 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
2121
2122 2019-09-20 Tom Tromey <tromey@adacore.com>
2123
2124 PR ada/24919:
2125 * block.c (contained_in): Fix final return value.
2126
2127 2019-09-20 Alan Modra <amodra@gmail.com>
2128
2129 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
2130 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
2131 (read_indirect_string_from_dwz): Use bfd accessor.
2132 * dwarf2read.h (struct dwz_file <filename>): Likewise.
2133 * machoread.c (macho_symfile_read_all_oso): Likewise.
2134 * solib.c (solib_bfd_open): Likewise.
2135
2136 2019-09-19 Christian Biesinger <cbiesinger@google.com>
2137
2138 * eval.c: Move declaration of overload_resolution to...
2139 * value.h: ...here.
2140
2141 2019-09-19 Christian Biesinger <cbiesinger@google.com>
2142
2143 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
2144 * arm-linux-tdep.c: Likewise.
2145 * arm-nbsd-nat.c: Likewise.
2146 * arm-tdep.h: Declare arm_apcs_32.
2147 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
2148
2149 2019-09-19 Christian Biesinger <cbiesinger@google.com>
2150
2151 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
2152 * dwarf2read.h: Declare dwarf_always_disassemble.
2153
2154 2019-09-19 Tom de Vries <tdevries@suse.de>
2155
2156 PR gdb/25009
2157 * source-cache.c (source_cache::ensure): Catch exception thrown during
2158 construction of the highlighter.
2159
2160 2019-09-18 Alan Modra <amodra@gmail.com>
2161
2162 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
2163 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
2164 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
2165 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
2166 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
2167 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
2168 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
2169 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
2170 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
2171 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
2172 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
2173 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
2174 * solib-spu.c, * solib-svr4.c, * solib-target.c,
2175 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
2176 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
2177 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
2178 * mi/mi-interp.c: Update throughout for bfd section macro and
2179 function changes.
2180 * gcore (gcore_create_callback): Use bfd_set_section_lma.
2181 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
2182
2183 2019-09-18 Tom Tromey <tom@tromey.com>
2184
2185 * NEWS: Add entry.
2186 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
2187 call rl_initialize.
2188 (tui_enable): Do not call rl_initialize.
2189
2190 2019-09-18 Christian Groessler <chris@groessler.org>
2191
2192 * alpha-linux-nat.c: Include gdbarch.h.
2193
2194 2019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
2195
2196 * ui-file.c: Include cli/cli-style.h.
2197 (term_cli_styling): Remove cli_styling declaration.
2198
2199 2019-09-18 Alan Modra <amodra@gmail.com>
2200
2201 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
2202 to bfd_asymbol_section.
2203
2204 2019-09-18 Alan Modra <amodra@gmail.com>
2205
2206 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
2207 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
2208 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
2209
2210 2019-09-18 Alan Modra <amodra@gmail.com>
2211
2212 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
2213 * spu-linux-nat.c (spu_bfd_open): Likewise.
2214
2215 2019-09-18 Christian Biesinger <cbiesinger@google.com>
2216
2217 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
2218 to bool to match definition in dwarf2read.c.
2219
2220 2019-09-17 Christian Biesinger <cbiesinger@google.com>
2221
2222 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
2223 (print_signatures): Likewise.
2224 (trust_pad_over_xvs): Likewise.
2225 * arch/aarch64-insn.c (aarch64_debug): Likewise.
2226 * arch/aarch64-insn.h (aarch64_debug): Likewise.
2227 * arm-linux-nat.c (arm_apcs_32): Likewise.
2228 * arm-linux-tdep.c (arm_apcs_32): Likewise.
2229 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
2230 * arm-tdep.c (arm_debug): Likewise.
2231 (arm_apcs_32): Likewise.
2232 * auto-load.c (debug_auto_load): Likewise.
2233 (auto_load_gdb_scripts): Likewise.
2234 (global_auto_load): Likewise.
2235 (auto_load_local_gdbinit): Likewise.
2236 (auto_load_local_gdbinit_loaded): Likewise.
2237 * auto-load.h (global_auto_load): Likewise.
2238 (auto_load_local_gdbinit): Likewise.
2239 (auto_load_local_gdbinit_loaded): Likewise.
2240 * breakpoint.c (disconnected_dprintf): Likewise.
2241 (breakpoint_proceeded): Likewise.
2242 (automatic_hardware_breakpoints): Likewise.
2243 (always_inserted_mode): Likewise.
2244 (target_exact_watchpoints): Likewise.
2245 (_initialize_breakpoint): Update.
2246 * breakpoint.h (target_exact_watchpoints): Change to bool.
2247 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
2248 * cli/cli-cmds.c (trace_commands): Likewise.
2249 * cli/cli-cmds.h (trace_commands): Likewise.
2250 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
2251 to bool*.
2252 * cli/cli-logging.c (logging_overwrite): Change to bool.
2253 (logging_redirect): Likewise.
2254 (debug_redirect): Likewise.
2255 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
2256 (struct boolean_option_def) <get_var_address_cb_>: Change return type
2257 to bool.
2258 <boolean_option_def>: Update.
2259 (struct flag_option_def): Change default type of Context to bool
2260 from int.
2261 <flag_option_def>: Change return type of var_address_cb_ to bool*.
2262 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
2263 (get_setshow_command_value_string): Likewise.
2264 * cli/cli-style.c (cli_styling): Change to bool.
2265 (source_styling): Likewise.
2266 * cli/cli-style.h (source_styling): Likewise.
2267 (cli_styling): Likewise.
2268 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
2269 to bool.
2270 * command.h (var_types): Update comment.
2271 (add_setshow_boolean_cmd): Change int* var argument to bool*.
2272 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
2273 bool.
2274 (debug_compile_cplus_scopes): Likewise.
2275 * compile/compile-internal.h (compile_debug): Likewise.
2276 * compile/compile.c (compile_debug): Likewise.
2277 (struct compile_options) <raw>: Likewise.
2278 * cp-support.c (catch_demangler_crashes): Likewise.
2279 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
2280 (usr_cmd_cris_dwarf2_cfi): Likewise.
2281 * csky-tdep.c (csky_debug): Likewise.
2282 * darwin-nat.c (enable_mach_exceptions): Likewise.
2283 * dcache.c (dcache_enabled_p): Likewise.
2284 * defs.h (info_verbose): Likewise.
2285 * demangle.c (demangle): Likewise.
2286 (asm_demangle): Likewise.
2287 * dwarf-index-cache.c (debug_index_cache): Likewise.
2288 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
2289 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
2290 * dwarf2read.c (check_physname): Likewise.
2291 (use_deprecated_index_sections): Likewise.
2292 (dwarf_always_disassemble): Likewise.
2293 * eval.c (overload_resolution): Likewise.
2294 * event-top.c (set_editing_cmd_var): Likewise.
2295 (exec_done_display_p): Likewise.
2296 * event-top.h (set_editing_cmd_var): Likewise.
2297 (exec_done_display_p): Likewise.
2298 * exec.c (write_files): Likewise.
2299 * fbsd-nat.c (debug_fbsd_lwp): Likewise
2300 (debug_fbsd_nat): Likewise.
2301 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
2302 Likewise.
2303 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
2304 <backtrace_past_entry> Likewise.
2305 * gdb-demangle.h (demangle): Likewise.
2306 (asm_demangle): Likewise.
2307 * gdb_bfd.c (bfd_sharing): Likewise.
2308 * gdbcore.h (write_files): Likewise.
2309 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
2310 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
2311 * gdbthread.h (print_thread_events): Likewise.
2312 * gdbtypes.c (opaque_type_resolution): Likewise.
2313 (strict_type_checking): Likewise.
2314 * gnu-nat.c (gnu_debug_flag): Likewise.
2315 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
2316 * guile/scm-param.c (pascm_variable): Add boolval.
2317 (add_setshow_generic): Update.
2318 (pascm_param_value): Update.
2319 (pascm_set_param_value_x): Update.
2320 * hppa-tdep.c (hppa_debug): Change to bool..
2321 * infcall.c (may_call_functions_p): Likewise.
2322 (coerce_float_to_double_p): Likewise.
2323 (unwind_on_signal_p): Likewise.
2324 (unwind_on_terminating_exception_p): Likewise.
2325 * infcmd.c (startup_with_shell): Likewise.
2326 * inferior.c (print_inferior_events): Likewise.
2327 * inferior.h (startup_with_shell): Likewise.
2328 (print_inferior_events): Likewise.
2329 * infrun.c (step_stop_if_no_debug): Likewise.
2330 (detach_fork): Likewise.
2331 (debug_displaced): Likewise.
2332 (disable_randomization): Likewise.
2333 (non_stop): Likewise.
2334 (non_stop_1): Likewise.
2335 (observer_mode): Likewise.
2336 (observer_mode_1): Likewise.
2337 (set_observer_mode): Update.
2338 (sched_multi): Change to bool.
2339 * infrun.h (debug_displaced): Likewise.
2340 (sched_multi): Likewise.
2341 (step_stop_if_no_debug): Likewise.
2342 (non_stop): Likewise.
2343 (disable_randomization): Likewise.
2344 * linux-tdep.c (use_coredump_filter): Likewise.
2345 (dump_excluded_mappings): Likewise.
2346 * linux-thread-db.c (auto_load_thread_db): Likewise.
2347 (check_thread_db_on_load): Likewise.
2348 * main.c (captured_main_1): Update.
2349 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
2350 xx2_opt, boolean_opt>: Change to bool.
2351 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
2352 * maint.c (maintenance_profile_p): Likewise.
2353 (per_command_time): Likewise.
2354 (per_command_space): Likewise.
2355 (per_command_symtab): Likewise.
2356 * memattr.c (inaccessible_by_default): Likewise.
2357 * mi/mi-main.c (mi_async): Likewise.
2358 (mi_async_1): Likewise.
2359 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
2360 * nat/fork-inferior.h (startup_with_shell): Likewise.
2361 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
2362 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
2363 * nios2-tdep.c (nios2_debug): Likewise.
2364 * or1k-tdep.c (or1k_debug): Likewise.
2365 * parse.c (parser_debug): Likewise.
2366 * parser-defs.h (parser_debug): Likewise.
2367 * printcmd.c (print_symbol_filename): Likewise.
2368 * proc-api.c (procfs_trace): Likewise.
2369 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
2370 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
2371 (set_parameter_value): Update.
2372 (add_setshow_generic): Update.
2373 * python/py-value.c (copy_py_bool_obj): Change argument from int*
2374 to bool*.
2375 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
2376 int*.
2377 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
2378 * record-btrace.c (record_btrace_target::store_registers): Update.
2379 * record-full.c (record_full_memory_query): Change to bool.
2380 (record_full_stop_at_limit): Likewise.
2381 * record-full.h (record_full_memory_query): Likewise.
2382 * remote-notif.c (notif_debug): Likewise.
2383 * remote-notif.h (notif_debug): Likewise.
2384 * remote.c (use_range_stepping): Likewise.
2385 (interrupt_on_connect): Likewise.
2386 (remote_break): Likewise.
2387 * ser-tcp.c (tcp_auto_retry): Likewise.
2388 * ser-unix.c (serial_hwflow): Likewise.
2389 * skip.c (debug_skip): Likewise.
2390 * solib-aix.c (solib_aix_debug): Likewise.
2391 * spu-tdep.c (spu_stop_on_load_p): Likewise.
2392 (spu_auto_flush_cache_p): Likewise.
2393 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
2394 Likewise.
2395 (struct info_print_options) <quiet>: Likewise.
2396 * symfile-debug.c (debug_symfile): Likewise.
2397 * symfile.c (auto_solib_add): Likewise.
2398 (separate_debug_file_debug): Likewise.
2399 * symfile.h (auto_solib_add): Likewise.
2400 (separate_debug_file_debug): Likewise.
2401 * symtab.c (basenames_may_differ): Likewise.
2402 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
2403 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
2404 (struct info_types_options) <quiet>: Likewise.
2405 * symtab.h (demangle): Likewise.
2406 (basenames_may_differ): Likewise.
2407 * target-dcache.c (stack_cache_enabled_1): Likewise.
2408 (code_cache_enabled_1): Likewise.
2409 * target.c (trust_readonly): Likewise.
2410 (may_write_registers): Likewise.
2411 (may_write_memory): Likewise.
2412 (may_insert_breakpoints): Likewise.
2413 (may_insert_tracepoints): Likewise.
2414 (may_insert_fast_tracepoints): Likewise.
2415 (may_stop): Likewise.
2416 (auto_connect_native_target): Likewise.
2417 (target_stop_and_wait): Update.
2418 (target_async_permitted): Change to bool.
2419 (target_async_permitted_1): Likewise.
2420 (may_write_registers_1): Likewise.
2421 (may_write_memory_1): Likewise.
2422 (may_insert_breakpoints_1): Likewise.
2423 (may_insert_tracepoints_1): Likewise.
2424 (may_insert_fast_tracepoints_1): Likewise.
2425 (may_stop_1): Likewise.
2426 * target.h (target_async_permitted): Likewise.
2427 (may_write_registers): Likewise.
2428 (may_write_memory): Likewise.
2429 (may_insert_breakpoints): Likewise.
2430 (may_insert_tracepoints): Likewise.
2431 (may_insert_fast_tracepoints): Likewise.
2432 (may_stop): Likewise.
2433 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
2434 (make_thread_apply_all_options_def_group): Change argument from int*
2435 to bool*.
2436 (thread_apply_all_command): Update.
2437 (print_thread_events): Change to bool.
2438 * top.c (confirm): Likewise.
2439 (command_editing_p): Likewise.
2440 (history_expansion_p): Likewise.
2441 (write_history_p): Likewise.
2442 (info_verbose): Likewise.
2443 * top.h (confirm): Likewise.
2444 (history_expansion_p): Likewise.
2445 * tracepoint.c (disconnected_tracing): Likewise.
2446 (circular_trace_buffer): Likewise.
2447 * typeprint.c (print_methods): Likewise.
2448 (print_typedefs): Likewise.
2449 * utils.c (debug_timestamp): Likewise.
2450 (sevenbit_strings): Likewise.
2451 (pagination_enabled): Likewise.
2452 * utils.h (sevenbit_strings): Likewise.
2453 (pagination_enabled): Likewise.
2454 * valops.c (overload_resolution): Likewise.
2455 * valprint.h (struct value_print_options) <prettyformat_arrays,
2456 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
2457 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
2458 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
2459 Likewise.
2460 * windows-nat.c (new_console): Likewise.
2461 (cygwin_exceptions): Likewise.
2462 (new_group): Likewise.
2463 (debug_exec): Likewise.
2464 (debug_events): Likewise.
2465 (debug_memory): Likewise.
2466 (debug_exceptions): Likewise.
2467 (useshell): Likewise.
2468 * windows-tdep.c (maint_display_all_tib): Likewise.
2469 * xml-support.c (debug_xml): Likewise.
2470
2471 2019-09-17 Mike Gulick <mgulick@mathworks.com>
2472
2473 * source.c (prepare_path_for_appending): New function.
2474 (openp): Make use of new function.
2475 (find_and_open_source): Search for the compilation directory and
2476 source file as a relative path beneath the directory search path.
2477
2478 2019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
2479
2480 * source-cache.c (source_cache::get_line_charpos): Catch
2481 exceptions and return false, this matches the behaviour documented
2482 in the header file.
2483
2484 2019-09-17 Joel Brobecker <brobecker@adacore.com>
2485
2486 * ada-tasks.c (info_task): Remove quoting of the task's name.
2487
2488 2019-09-16 Christian Biesinger <cbiesinger@google.com>
2489
2490 * symfile.c (auto_solib_add): Replace comment with a reference
2491 to the header file.
2492
2493 2019-09-14 Christian Biesinger <cbiesinger@google.com>
2494
2495 * NEWS: Mention that gdb can now be compiled with Python 3
2496 on Windows.
2497
2498 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
2499
2500 * maint.c (maint_print_section_data::maint_print_section_data):
2501 Force use of 'float log10 (float)' by casting the argument to
2502 float.
2503
2504 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
2505
2506 * maint.c: Add 'cmath' include.
2507 (struct maint_print_section_data): New structure.
2508 (print_section_index): New function.
2509 (print_bfd_section_info): Add header comment, small whitespace
2510 cleanup, and update to call new print_section_index function.
2511 (print_objfile_section_info): Likewise.
2512 (maint_obj_section_from_bfd_section): New function.
2513 (print_bfd_section_info_maybe_relocated): New function.
2514 (maintenance_info_sections): Add header comment, always use
2515 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
2516
2517 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
2518
2519 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
2520 inner scope, add check that the objfile has psymtabs before
2521 checking psymtabs_addrmap.
2522 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
2523
2524 2019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2525
2526 * NEWS: Announce that Ada task names are now shown at more places,
2527 and between quotes (except in info task output).
2528 * gdb/ada-tasks.c (task_to_str): New function.
2529 (display_current_task_id): Call task_to_str.
2530 (task_command_1): Likewise.
2531 (print_ada_task_info): In non-mi mode, Properly align headers and data
2532 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
2533
2534 2019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2535
2536 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
2537 prstatus.pr_lwp.pr_info instead of making it up.
2538
2539 2019-09-11 Christian Biesinger <cbiesinger@google.com>
2540
2541 * auto-load.c (auto_load_expand_dir_vars): Update.
2542 * defs.h (gdb_datadir): Change to std::string.
2543 (python_libdir): Likewise.
2544 (relocate_gdb_directory): Change return type to std::string.
2545 * guile/guile.c (gdbscm_data_directory): Update.
2546 (initialize_scheme_side): Update.
2547 * jit.c (jit_reader_dir): Change to std::string.
2548 (jit_reader_load_command): Update.
2549 * main.c (gdb_datadir): Change to std::string.
2550 (python_libdir): Likewise.
2551 (set_gdb_data_directory): Update.
2552 (relocate_path): Change to return std::string.
2553 (relocate_gdb_directory): Change to return std::string.
2554 (relocate_gdbinit_path_maybe_in_datadir): Update.
2555 (captured_main_1): Update.
2556 * python/python.c (do_start_initialization): Update.
2557 * top.c (show_gdb_datadir): Update.
2558 * xml-syscall.c (xml_init_syscalls_info): Update.
2559 (init_syscalls_info): Update.
2560
2561 2019-09-11 Christian Biesinger <cbiesinger@google.com>
2562
2563 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
2564 out of get_init_files.
2565 (get_init_files): Update.
2566
2567 2019-09-11 Christian Biesinger <cbiesinger@google.com>
2568
2569 * main.c (get_init_files): Change to use std::string.
2570 (captured_main_1): Update.
2571 (print_gdb_help): Update.
2572
2573 2019-09-11 Ali Tamur <tamur@google.com>
2574
2575 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
2576 implementation.
2577
2578 2019-09-11 Christian Biesinger <cbiesinger@google.com>
2579
2580 * dbxread.c (read_dbx_symtab): Update.
2581 * dwarf2read.c (load_partial_dies): Update.
2582 * mdebugread.c (parse_partial_symbols): Update.
2583 (handle_psymbol_enumerators): Update.
2584 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
2585 * psymtab.c (add_psymbol_to_bcache): Likewise.
2586 (add_psymbol_to_list): Likewise.
2587 * symtab.c (symbol_set_names): Likewise.
2588 * symtab.h (symbol_set_names): Likewise.
2589 * xcoffread.c (scan_xcoff_symtab): Update.
2590
2591 2019-09-11 Tom Tromey <tom@tromey.com>
2592
2593 * symfile-mem.c (symbol_file_add_from_memory): Use
2594 bfd_set_filename.
2595 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
2596 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
2597
2598 2019-09-10 Tom Tromey <tromey@adacore.com>
2599
2600 * dwarf-index-write.c (write_psymbols): Extend error message.
2601 (debug_names::insert): Add Ada code.
2602 (debug_names::write_psymbols): Remove Ada check.
2603 (debug_names) <m_string_obstack>: New member.
2604 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
2605 (gdb_index_symbol_name_matcher::matches): Remove.
2606 (mapped_index_base::find_name_components_bounds): Add "lang"
2607 parameter.
2608 (mapped_index_base::build_name_components): Also split names
2609 according to Ada syntax.
2610 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
2611 type of "match_callback".
2612 (check_match, check_find_bounds_finds)
2613 (dw2_expand_symtabs_matching): Update.
2614 (dw2_debug_names_iterator): Add new constructor.
2615 (dw2_debug_names_map_matching_symbols): New function.
2616 (dw2_debug_names_expand_symtabs_matching): Update.
2617 (dwarf2_debug_names_functions): Use
2618 dw2_debug_names_map_matching_symbols.
2619
2620 2019-09-10 Tom Tromey <tromey@adacore.com>
2621
2622 * dwarf2read.c (dw2_get_file_names_reader): Add the
2623 CU's file name to the results.
2624
2625 2019-09-10 Tom Tromey <tromey@adacore.com>
2626
2627 * ada-lang.c (add_nonlocal_symbols): Combine calls to
2628 map_matching_symbols. Update.
2629 * dwarf2read.c (dw2_map_matching_symbols): Update.
2630 * psymtab.c (match_partial_symbol): Change type; update.
2631 (psym_map_matching_symbols): Likewise.
2632 * symfile-debug.c (debug_qf_map_matching_symbols): Change
2633 type; update.
2634 * symfile.h (struct quick_symbol_functions)
2635 <map_matching_symbols>: Change "name" to be a lookup_name_info.
2636 Remove "match".
2637
2638 2019-09-10 Tom Tromey <tromey@adacore.com>
2639
2640 * psymtab.c (map_block): Remove.
2641 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
2642 * symtab.c (iterate_over_symbols_terminated): New function.
2643 * symtab.c (iterate_over_symbols_terminated): Declare.
2644
2645 2019-09-10 Tom Tromey <tromey@adacore.com>
2646
2647 * ada-lang.c (ada_iterate_over_symbols): Return bool.
2648 * language.h (struct language_defn) <la_iterate_over_symbols>:
2649 Return bool.
2650 * symtab.c (iterate_over_symbols): Return bool.
2651 * symtab.h (iterate_over_symbols): Return bool.
2652
2653 2019-09-10 Tom Tromey <tromey@adacore.com>
2654
2655 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
2656 (add_nonlocal_symbols): Update.
2657 * dwarf2read.c (dw2_map_matching_symbols): Change type.
2658 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
2659 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
2660 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
2661 Change type of "callback". Remove "data".
2662
2663
2664 2019-09-09 Ali Tamur <tamur@google.com>
2665
2666 * dwarf2read.c (comp_unit_head): Update comment.
2667 (dwarf2_dwo_name): New function declaration.
2668 (dwarf_unit_type_name): New function declaration.
2669 (read_comp_unit_head): Add support for new compilation units,
2670 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
2671 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
2672 (currently named as "signature") in their header. Also clarify error
2673 messages.
2674 (lookup_dwo_id): New function. Returns the dwo id of the given
2675 compile unit.
2676 (lookup_dwo_unit): Use the new lookup_dwo_id function.
2677 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
2678 functions.
2679 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
2680 (dwarf2_dwo_name): Get the dwo name if present.
2681 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
2682 purposes.
2683
2684 2019-09-09 Tom Tromey <tom@tromey.com>
2685
2686 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
2687
2688 2019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2689
2690 * python/python.c (do_start_initialization): Make progname_copy static,
2691 to avoid a leak report.
2692
2693 2019-09-08 Tom Tromey <tom@tromey.com>
2694
2695 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
2696
2697 2019-09-07 Simon Marchi <simon.marchi@efficios.com>
2698
2699 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
2700 Change type to gdb::optional<block_enum>.
2701 (dw2_symtab_iter_init): Change block_index parameter type
2702 to gdb::optional<block_enum>.
2703 (dw2_lookup_symbol): Change block_index parameter
2704 type to block_enum.c
2705 (dw2_debug_names_lookup_symbol): Likewise.
2706 * psymtab.c (psym_lookup_symbol): Likewise.
2707 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
2708 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
2709 Likewise.
2710
2711 2019-09-06 Christian Biesinger <cbiesinger@google.com>
2712
2713 * defs.h (relocate_gdb_directory): Change int to bool in
2714 signature and rename flag to relocatable.
2715 * main.c (relocate_path): Likewise.
2716 (relocate_gdb_directory): Likewise.
2717
2718 2019-09-06 Alan Modra <amodra@gmail.com>
2719
2720 * coffread.c (coff_symfile_read): Constify filename variable.
2721 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
2722 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
2723 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
2724 * solib.c (reload_shared_libraries_1): Likewise.
2725 * symfile.c (reread_symbols): Likewise.
2726 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
2727 * solib-darwin.c (darwin_bfd_open): Likewise.
2728 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
2729
2730 2019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
2731
2732 * psymtab.c (print_partial_symbols): Handle missing domain_enum
2733 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
2734
2735 2019-09-03 Tom Tromey <tromey@adacore.com>
2736
2737 * ada-valprint.c (ada_val_print_num): Don't recurse for range
2738 types.
2739 (has_negatives): Unbias a range type bound.
2740 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
2741 * gdbtypes.c (operator==): Handle new field.
2742 (create_range_type): Add "bias" parameter.
2743 (create_static_range_type, resolve_dynamic_range): Update.
2744 * gdbtypes.h (struct range_bounds) <bias>: New member.
2745 (create_range_type): Add bias parameter.
2746 * printcmd.c (print_scalar_formatted): Unbias range types.
2747 * value.c (unpack_long): Unbias range types.
2748 (pack_long): Bias range types.
2749
2750 2019-09-02 Alan Hayward <alan.hayward@arm.com>
2751
2752 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
2753 probe arguments.
2754
2755 2019-09-02 Alan Hayward <alan.hayward@arm.com>
2756
2757 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
2758 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
2759 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
2760 (compile_probe_arg): Likewise.
2761 * probe.h (get_argument_count): Likewise.
2762 * solib-svr4.c (solib_event_probe_action): Likewise.
2763 * stap-probe.c (stap_probe::get_argument_count): Likewise.
2764
2765 2019-09-02 Alan Hayward <alan.hayward@arm.com>
2766
2767 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
2768 code to here...
2769 (svr4_create_solib_event_breakpoints): ...from here.
2770
2771 2019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
2772
2773 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
2774 suffix from warning message.
2775
2776 2019-08-30 Tom Tromey <tom@tromey.com>
2777
2778 * tui/tui-winsource.h (struct tui_source_window_base)
2779 <refresh_all>: Don't declare.
2780 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
2781 Remove.
2782 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
2783 tui_show_locator_content.
2784 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
2785 declare.
2786 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
2787 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
2788 declare.
2789
2790 2019-08-30 Tom Tromey <tom@tromey.com>
2791
2792 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
2793
2794 2019-08-30 Tom Tromey <tom@tromey.com>
2795
2796 * tui/tui-stack.c (_initialize_tui_stack): Move later.
2797 Remove unnecessary forward declarations.
2798
2799 2019-08-30 Tom Tromey <tom@tromey.com>
2800
2801 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
2802 rerender.
2803 (tui_update_locator_fullname, tui_show_frame_info): Don't call
2804 tui_show_locator_content.
2805
2806 2019-08-30 Tom Tromey <tom@tromey.com>
2807
2808 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
2809 (tui_locator_window::rerender): Rewrite using body of previous
2810 tui_show_locator_content.
2811
2812 2019-08-30 Tom Tromey <tom@tromey.com>
2813
2814 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
2815 set_locator_fullname>: New methods.
2816 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
2817 Rename from tui_set_locator_fullname.
2818 (tui_locator_window::set_locator_info): Rename from
2819 tui_set_locator_info. Return bool.
2820 (tui_update_locator_fullname, tui_show_frame_info): Update.
2821
2822 2019-08-30 Tom Tromey <tom@tromey.com>
2823
2824 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
2825
2826 2019-08-30 Tom Tromey <tom@tromey.com>
2827
2828 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
2829 call touchwin.
2830
2831 2019-08-30 Tom Tromey <tom@tromey.com>
2832
2833 * tui/tui-wingeneral.c (box_win): Assume win_info and
2834 win_info->handle cannot be NULL.
2835
2836 2019-08-30 Tom Tromey <tom@tromey.com>
2837
2838 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
2839 refresh_window>: Declare.
2840 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
2841 resize.
2842 (tui_data_item_window::rerender): Rename from
2843 tui_display_register.
2844 (tui_data_item_window::refresh_window): New method.
2845 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
2846 no-op.
2847
2848 2019-08-30 Tom Tromey <tom@tromey.com>
2849
2850 * tui/tui-regs.h (struct tui_data_window) <regs_content,
2851 regs_column_count, current_group>: Move later. Now private.
2852 <get_current_group>: New method.
2853 * tui/tui-regs.c (tui_reg_command): Update.
2854 * tui/tui-layout.c (tui_set_layout): Update.
2855
2856 2019-08-30 Tom Tromey <tom@tromey.com>
2857
2858 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
2859 (tui_data_window::rerender): Don't call
2860 check_and_display_highlight_if_needed.
2861 (tui_data_window::refresh_all): Remove call to
2862 erase_data_content.
2863
2864 2019-08-30 Tom Tromey <tom@tromey.com>
2865
2866 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
2867 (tui_data_window::display_registers_from)
2868 (tui_data_window::display_reg_element_at_line)
2869 (tui_data_window::display_registers_from_line): Remove checks of
2870 "empty".
2871
2872 2019-08-30 Tom Tromey <tom@tromey.com>
2873
2874 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
2875 Don't declare.
2876 * tui/tui-regs.c (tui_data_window::show_registers): Call
2877 rerender.
2878 (tui_data_window::rerender): Rename from display_all_data.
2879 (tui_data_window::rerender): Remove old implementation.
2880
2881 2019-08-30 Tom Tromey <tom@tromey.com>
2882
2883 * tui/tui-regs.c (tui_data_window::display_all_data): Change
2884 text.
2885 * tui/tui-data.h (NO_DATA_STRING): Remove define.
2886
2887 2019-08-29 Bernhard Wodok <barto@gmx.net>
2888 Sergio Durigan Junior <sergiodj@redhat.com>
2889
2890 PR win32/24284
2891 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
2892
2893 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
2894
2895 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
2896 when searching for types.
2897
2898 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
2899
2900 * f-lang.c (f_language_defn): Use f_print_typedef.
2901 * f-lang.h (f_print_typedef): Declare.
2902 * f-typeprint.c (f_print_typedef): Define.
2903
2904 2019-08-27 Christian Biesinger <cbiesinger@google.com>
2905
2906 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
2907
2908 2019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
2909
2910 * cli/cli-utils.c (info_print_options_defs): Delete.
2911 (make_info_print_options_def_group): Delete.
2912 (extract_info_print_options): Delete.
2913 (info_print_command_completer): Delete.
2914 (info_print_args_help): Add extra parameter, and optionally
2915 include text about -n flag.
2916 * cli/cli-utils.h (struct info_print_options): Delete.
2917 (extract_info_print_options): Delete declaration.
2918 (info_print_command_completer): Delete declaration.
2919 (info_print_args_help): Add extra parameter, extend header
2920 comment.
2921 * python/python.c (gdbpy_rbreak): Pass additional parameter to
2922 search_symbols.
2923 * stack.c (struct info_print_options): New type.
2924 (info_print_options_defs): New file scoped variable.
2925 (make_info_print_options_def_group): New static function.
2926 (info_print_command_completer): New static function.
2927 (info_locals_command): Update to use new local functions.
2928 (info_args_command): Likewise.
2929 (_initialize_stack): Add extra parameter to calls to
2930 info_print_args_help.
2931 * symtab.c (search_symbols): Add extra parameter, use this to
2932 possibly excluse non-debug symbols.
2933 (symtab_symbol_info): Add extra parameter, which is passed on to
2934 search_symbols.
2935 (struct info_print_options): New type.
2936 (info_print_options_defs): New file scoped variable.
2937 (make_info_print_options_def_group): New static function.
2938 (info_print_command_completer): New static function.
2939 (info_variables_command): Update to use local functions, and pass
2940 extra parameter through to symtab_symbol_info.
2941 (info_functions_command): Likewise.
2942 (info_types_command): Pass additional argument through to
2943 symtab_symbol_info.
2944 (rbreak_command): Pass extra argument to search_symbols.
2945 (_initialize_symtab): Add extra arguments for calls to
2946 info_print_args_help, and update help text for 'info variables',
2947 'whereis', and 'info functions' commands.
2948 * symtab.h (search_symbols): Add extra argument to declaration.
2949 * NEWS: Mention new flags.
2950
2951 2019-08-26 Christian Biesinger <cbiesinger@google.com>
2952
2953 * symtab.c (lookup_static_symbol): Call the new function (and move
2954 it down to be next to lookup_global_symbol).
2955 (struct global_sym_lookup_data): Add block_enum member and rename to...
2956 (struct global_or_static_sym_lookup_data): ...this.
2957 (lookup_symbol_global_iterator_cb): Pass block_index instead of
2958 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
2959 (lookup_symbol_global_or_static_iterator_cb): ...this.
2960 (lookup_global_or_static_symbol): New function.
2961 (lookup_global_symbol): Call new function.
2962
2963 2019-08-26 Tom de Vries <tdevries@suse.de>
2964
2965 PR c++/24852
2966 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
2967 when pc_probe.prob == NULL.
2968
2969 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
2970
2971 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
2972 variable symbol_linkage to symbol_linkage_.
2973
2974 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
2975
2976 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
2977 represent whether the symbol is static, dynamic, or we don't
2978 know.
2979
2980 2019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
2981
2982 * gdb/rx-tdep.c (rx_register_names): New.
2983 (rx_register_name): Delete.
2984 (rx_psw_type): Delete.
2985 (rx_fpsw_type): Delete.
2986 (rx_register_type): Delete.
2987 (rx_gdbarch_init): Convert target-descriptions.
2988 (_initialize_rx_tdep): Add initialize_tdesc_rx.
2989 * gdb/features/Makefile: Add rx.xml.
2990 * gdb/features/rx.xml: New.
2991 * gdb/features/rx.c: Generated.
2992 * gdb/NEWS: Mention target description support.
2993
2994 2019-08-22 Christian Biesinger <cbiesinger@google.com>
2995
2996 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
2997 *slot_ptr.
2998
2999 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
3000
3001 * configure.ac: Don't check for 'dlfcn.h' (moved to
3002 gdbsupport/common.m4).
3003 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
3004 'gdbsupport/'.
3005 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
3006 * compile/compile-c-support.c: Include
3007 'gdbsupport/gdb-dlfcn.h'.
3008 * gdbsupport/common.m4: Check for 'dlfcn.h'.
3009 * gdb-dlfcn.c: Move to...
3010 * gdbsupport/gdb-dlfcn.c: ... here.
3011 * gdb-dlfcn.h: Move to...
3012 * gdbsupport/gdb-dlfcn.h: ... here.
3013
3014 2019-08-23 Sandra Loosemore <sandra@codesourcery.com>
3015
3016 * nios2-tdep.c (struct reg_value): Improve comments. Make
3017 the offset field signed.
3018
3019 2019-08-22 Christian Biesinger <cbiesinger@google.com>
3020
3021 * python/lib/gdb/__init__.py (_execute_file): New function.
3022 * python/python.c (python_run_simple_file): Call gdb._execute_file
3023 on Windows.
3024
3025 2019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
3026
3027 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
3028 all uses as this was never set to anything but a zero value.
3029
3030 2019-08-21 Bogdan Harjoc <harjoc@gmail.com>
3031
3032 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
3033
3034 2019-08-21 Christian Biesinger <cbiesinger@google.com>
3035
3036 * tui/tui-data.h (tui_gen_win_info): Add an =default
3037 move constructor, required by some GCC versions.
3038
3039 2019-08-21 Jinke Fan <fanjinke51@yeah.net>
3040
3041 * go32-nat.c (go32_sysinfo): Add hygon_p.
3042
3043 2019-08-20 Tom Tromey <tom@tromey.com>
3044
3045 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
3046 line_from_reg_element_no, first_reg_element_no_inline,
3047 display_all_data, delete_data_content_windows,
3048 erase_data_content>: Now private.
3049
3050 2019-08-20 Tom Tromey <tom@tromey.com>
3051
3052 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
3053 (tui_unhighlight_win, tui_highlight_win)
3054 (tui_win_info::make_window): Update.
3055 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
3056
3057 2019-08-20 Tom Tromey <tom@tromey.com>
3058
3059 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
3060 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
3061 (MAX_PID_WIDTH): Move to tui-stack.c.
3062 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
3063 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
3064 (MAX_PID_WIDTH): Move from tui-data.h.
3065
3066 2019-08-20 Tom Tromey <tom@tromey.com>
3067
3068 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
3069 * tui/tui-wingeneral.c (box_win): Change type of win_info.
3070 (box_win): Update.
3071 (tui_gen_win_info::make_window): Rename from tui_make_window.
3072 (tui_win_info::make_window): New method.
3073 (tui_gen_win_info::make_visible): Update.
3074 * tui/tui-source.c (tui_source_window::set_contents): Update.
3075 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
3076 (tui_data_window::display_registers_from): Update.
3077 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
3078 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
3079 Declare.
3080 <can_box>: Remove.
3081 <title>: Remove.
3082 (struct tui_win_info) <make_window>: Declare.
3083 <can_box>: Now virtual.
3084 <title>: New member.
3085 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
3086 * tui/tui-command.c (tui_cmd_window::resize): Update.
3087
3088 2019-08-20 Tom Tromey <tom@tromey.com>
3089
3090 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
3091 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3092 (tui_data_window::check_register_values): Update.
3093
3094 2019-08-20 Tom Tromey <tom@tromey.com>
3095
3096 * tui/tui-regs.h (struct tui_data_window): Use
3097 DISABLE_COPY_AND_ASSIGN.
3098 <regs_content>: Change type, removing unique_ptr.
3099 <tui_data_window>: Add move constructor.
3100 * tui/tui-regs.c (tui_data_window::show_registers)
3101 (tui_data_window::show_register_group)
3102 (tui_data_window::display_registers_from)
3103 (tui_data_window::display_registers_from)
3104 (tui_data_window::first_data_item_displayed)
3105 (tui_data_window::delete_data_content_windows)
3106 (tui_data_window::rerender, tui_data_window::refresh_window)
3107 (tui_data_window::check_register_values): Update.
3108
3109 2019-08-20 Tom Tromey <tom@tromey.com>
3110
3111 * tui/tui-regs.h (struct tui_data_window) <show_registers,
3112 show_register_group>: Declare.
3113 (tui_show_register_group): Don't declare.
3114 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
3115 tui_show_registers.
3116 (tui_data_window::show_register_group): Rename from
3117 tui_show_register_group.
3118 (tui_data_window::check_register_values, tui_reg_command):
3119 Update.
3120 * tui/tui-layout.c (tui_set_layout): Update.
3121
3122 2019-08-20 Tom Tromey <tom@tromey.com>
3123
3124 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
3125 Declare.
3126 (tui_check_register_values): Don't declare.
3127 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
3128 from tui_check_register_values.
3129 * tui/tui-hooks.c (tui_register_changed): Update.
3130
3131 2019-08-20 Tom Tromey <tom@tromey.com>
3132
3133 * tui/tui-regs.c (tui_reg_layout): Move later.
3134 (tui_show_registers): Don't enable TUI mode or change layout.
3135
3136 2019-08-20 Tom Tromey <tom@tromey.com>
3137
3138 * tui/tui-regs.h (struct tui_data_item_window)
3139 <~tui_data_item_window>: Remove.
3140 <content>: Now a unique_xmalloc_ptr.
3141 * tui/tui-regs.c (tui_register_format): Return a
3142 unique_xmalloc_ptr.
3143 (tui_get_register): Update.
3144 (~tui_data_item_window): Remove.
3145 (tui_data_window::display_registers_from, tui_display_register):
3146 Update.
3147 * tui/tui-io.h (tui_expand_tabs): Update.
3148 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
3149 Remove "col" parameter.
3150
3151 2019-08-20 Tom Tromey <tom@tromey.com>
3152
3153 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
3154 field.
3155 * tui/tui-regs.c (~tui_data_item_window): Update.
3156
3157 2019-08-20 Tom Tromey <tom@tromey.com>
3158
3159 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
3160 earlier.
3161
3162 2019-08-20 Tom Tromey <tom@tromey.com>
3163
3164 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
3165
3166 2019-08-20 Tom Tromey <tom@tromey.com>
3167
3168 * tui/tui-source.h (struct tui_source_window): Update.
3169 * tui/tui-regs.c (tui_show_registers): Update.
3170 * tui/tui-disasm.h (struct tui_disasm_window): Update.
3171 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
3172 (NO_REGS_STRING): Remove defines.
3173
3174 2019-08-20 Conrad Meyer <cem@FreeBSD.org>
3175
3176 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
3177 unnecessary thread walk if remote doesn't support the packet.
3178
3179 2019-08-19 Tom Tromey <tromey@adacore.com>
3180
3181 * python/py-value.c (value_has_field): Fix indentation.
3182
3183 2019-08-19 Tom Tromey <tromey@adacore.com>
3184
3185 * printcmd.c (do_one_display, info_display_command): Update.
3186 * block.h (contained_in): Return bool. Add allow_nested
3187 parameter.
3188 * block.c (contained_in): Return bool. Add allow_nested
3189 parameter.
3190
3191 2019-08-19 Tom Tromey <tom@tromey.com>
3192
3193 * configure: Rebuild.
3194 * configure.ac: Disallow the combination of -static-libstdc++ and
3195 source highlight.
3196 * source-cache.c (get_language_name): Handle rust.
3197 (source_cache::get_source_lines): Ignore highlighting exceptions.
3198
3199 2019-08-16 Tom Tromey <tom@tromey.com>
3200
3201 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
3202 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
3203 (struct tui_source_window_base) <make_visible, refresh_window,
3204 resize>: Remove methods.
3205 <execution_info>: Remove field.
3206 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
3207 (tui_show_source_line, tui_source_window_base)
3208 (~tui_source_window_base): Update.
3209 (tui_source_window_base::resize)
3210 (tui_source_window_base::make_visible)
3211 (tui_source_window_base::refresh_window): Remove.
3212 (tui_source_window_base::update_exec_info): Update.
3213 * tui/tui-source.c (tui_source_window::set_contents): Update.
3214 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
3215
3216 2019-08-16 Tom Tromey <tom@tromey.com>
3217
3218 * tui/tui-hooks.c (tui_remove_hooks): Don't set
3219 deprecated_query_hook.
3220
3221 2019-08-16 Tom Tromey <tom@tromey.com>
3222
3223 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
3224 (tui_update_source_windows_with_line): Update.
3225 * tui/tui-source.h (struct tui_source_window)
3226 <show_symtab_source>: Declare.
3227 (tui_show_symtab_source): Don't declare.
3228 * tui/tui-source.c (tui_show_symtab_source): Rename from
3229 tui_show_symtab_source.
3230
3231 2019-08-16 Tom Tromey <tom@tromey.com>
3232
3233 * tui/tui-winsource.h (struct tui_source_window_base)
3234 <set_contents>: Declare.
3235 * tui/tui-winsource.c
3236 (tui_source_window_base::update_source_window_as_is): Update.
3237 * tui/tui-source.h (struct tui_source_window) <set_contents>:
3238 Declare.
3239 (tui_set_source_content): Don't declare.
3240 * tui/tui-source.c (tui_source_window::set_contents): Rename from
3241 tui_set_source_content.
3242 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
3243 Declare.
3244 (tui_set_disassem_content): Don't declare.
3245 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
3246 tui_set_disassem_content.
3247
3248 2019-08-16 Tom Tromey <tom@tromey.com>
3249
3250 * tui/tui-winsource.h (struct tui_source_window_base)
3251 <update_breakpoint_info>: Declare.
3252 (tui_update_breakpoint_info): Don't declare.
3253 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
3254 (tui_update_all_breakpoint_info): Update.
3255 (tui_source_window_base::update_breakpoint_info): Rename from
3256 tui_update_breakpoint_info.
3257 (tui_source_window_base::update_exec_info): Update.
3258
3259 2019-08-16 Tom Tromey <tom@tromey.com>
3260
3261 * tui/tui-winsource.h (struct tui_source_window_base)
3262 <update_source_window>: Declare.
3263 (tui_update_source_window): Don't declare.
3264 * tui/tui-winsource.c
3265 (tui_source_window_base::update_source_window): Rename from
3266 tui_update_source_window.
3267 (tui_source_window_base::rerender): Update.
3268 * tui/tui-source.c (tui_source_window::maybe_update): Update.
3269 * tui/tui-disasm.c (tui_show_disassem)
3270 (tui_show_disassem_and_update_source)
3271 (tui_disasm_window::maybe_update): Update.
3272
3273 2019-08-16 Tom Tromey <tom@tromey.com>
3274
3275 * tui/tui-winsource.h (struct tui_source_window_base)
3276 <update_source_window_as_is>: Declare.
3277 (tui_update_source_window_as_is): Don't declare.
3278 * tui/tui-winsource.c (tui_update_source_window): Update
3279 (tui_source_window_base::update_source_window_as_is): Rename from
3280 tui_update_source_window_as_is.
3281 (tui_source_window_base::refill): Update.
3282 * tui/tui-source.c (tui_show_symtab_source): Update.
3283 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
3284 Update.
3285
3286 2019-08-16 Tom Tromey <tom@tromey.com>
3287
3288 * tui/tui-winsource.h (tui_update_source_window)
3289 (tui_update_source_window_as_is): Remove "noerror" parameter.
3290 * tui/tui-winsource.c (tui_update_source_window)
3291 (tui_update_source_window_as_is): Remove "noerror" parameter.
3292 (tui_update_source_windows_with_addr)
3293 (tui_update_source_windows_with_line)
3294 (tui_source_window_base::rerender)
3295 (tui_source_window_base::refill): Update.
3296 * tui/tui-source.h (tui_set_source_content)
3297 (tui_show_symtab_source): Remove "noerror" parameter.
3298 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
3299 parameter.
3300 (tui_show_symtab_source): Likewise.
3301 (tui_source_window::maybe_update): Update.
3302 * tui/tui-disasm.c (tui_show_disassem)
3303 (tui_show_disassem_and_update_source)
3304 (tui_disasm_window::do_scroll_vertical)
3305 (tui_disasm_window::maybe_update): Update.
3306
3307 2019-08-16 Tom Tromey <tom@tromey.com>
3308
3309 * tui/tui.c (tui_is_window_visible): Update.
3310 * tui/tui-wingeneral.c (tui_make_window)
3311 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
3312 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
3313 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
3314 (tui_set_win_height_command, parse_scrolling_args): Update.
3315 * tui/tui-source.c (tui_source_window::style_changed): Update.
3316 * tui/tui-regs.c (tui_show_registers)
3317 (tui_data_window::first_data_item_displayed)
3318 (tui_data_window::delete_data_content_windows)
3319 (tui_check_register_values, tui_reg_command): Update.
3320 * tui/tui-disasm.c (tui_show_disassem): Update.
3321 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
3322 method.
3323 <is_visible>: Remove field.
3324 * tui/tui-data.c (tui_next_win, tui_prev_win)
3325 (tui_delete_invisible_windows): Update.
3326
3327 2019-08-16 Tom Tromey <tom@tromey.com>
3328
3329 * tui/tui-winsource.h (struct tui_source_window_base)
3330 <m_has_locator>: Remove.
3331 * tui/tui-layout.c (show_source_disasm_command, show_data)
3332 (show_source_or_disasm_and_command): Update.
3333
3334 2019-08-16 Alan Hayward <alan.hayward@arm.com>
3335
3336 * NEWS (Other MI changes): New subsection.
3337 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
3338 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
3339 * arch-utils.c (default_get_pc_address_flags): New function.
3340 * arch-utils.h (default_get_pc_address_flags): New declaration.
3341 * gdbarch.sh: Add get_pc_address_flags.
3342 * gdbarch.c: Regenerate.
3343 * gdbarch.h: Likewise.
3344 * stack.c (print_pc): New function.
3345 (print_frame_info) (print_frame): Call print_pc.
3346
3347 2019-08-16 Tom de Vries <tdevries@suse.de>
3348
3349 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
3350 print_objfile_section_info.
3351
3352 2019-08-15 Tom Tromey <tom@tromey.com>
3353
3354 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
3355 calling update_cmdwin_start_line.
3356 * tui/tui-winsource.h (struct tui_source_window_base)
3357 <do_make_visible_with_new_height, set_new_height>: Don't declare.
3358 <rerender>: Declare.
3359 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
3360 Call rerender.
3361 (tui_source_window_base::set_new_height): Remove.
3362 (tui_source_window_base::rerender): Rename from
3363 do_make_visible_with_new_height.
3364 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
3365 resize method.
3366 (tui_win_info::make_invisible_and_set_new_height)
3367 (tui_win_info::make_visible_with_new_height): Remove.
3368 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
3369 Declare.
3370 * tui/tui-stack.c (tui_locator_window::rerender): New method.
3371 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
3372 do_make_visible_with_new_height>: Don't declare.
3373 <rerender>: Declare.
3374 * tui/tui-regs.c (tui_data_window::rerender): Rename from
3375 set_new_height.
3376 (tui_data_window::do_make_visible_with_new_height): Remove.
3377 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
3378 call tui_show_locator_content.
3379 (tui_gen_win_info::resize): Call rerender.
3380 (show_source_or_disasm_and_command): Don't call
3381 tui_show_locator_content.
3382 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
3383 method.
3384 (struct tui_win_info) <rerender>: Declare.
3385 <set_new_height, make_invisible_and_set_new_height,
3386 make_visible_with_new_height>: Don't declare.
3387 * tui/tui-data.c (tui_win_list::rerender): New method.
3388 * tui/tui-command.h (struct tui_cmd_window)
3389 <do_make_visible_with_new_height>: Don't declare.
3390 * tui/tui-command.c
3391 (tui_cmd_window::do_make_visible_with_new_height): Remove.
3392
3393 2019-08-15 Tom Tromey <tromey@adacore.com>
3394
3395 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
3396 * ada-lang.c (ada_enum_name): Likewise.
3397
3398 2019-08-15 Christian Biesinger <cbiesinger@google.com>
3399
3400 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
3401 leading underscore.
3402 (GdbOutputErrorFile): Likewise.
3403 (global scope): Adjust constructor calls to GdbOutput{,Error}File
3404 accordingly.
3405 (execute_unwinders): Rename to have a leading underscore.
3406 (auto_load_packages): Likewise.
3407 (global scope): Adjust call to auto_load_packages accordingly.
3408 (GdbSetPythonDirectory): Likewise.
3409 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
3410 instead of execute_unwinders.
3411
3412 2019-08-15 Tom Tromey <tom@tromey.com>
3413
3414 * tui/tui-layout.c (show_layout, show_source_disasm_command)
3415 (show_data): Don't change window visibility.
3416 (tui_gen_win_info::resize): Remove special case for command
3417 window. Use wresize, when available.
3418 (show_source_or_disasm_and_command): Don't change window
3419 visibility.
3420 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
3421 <make_visible>: New method.
3422 * tui/tui-command.c (tui_cmd_window::resize): New method.
3423
3424 2019-08-15 Tom Tromey <tom@tromey.com>
3425
3426 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
3427 (struct tui_source_windows): New.
3428 * tui/tui-winsource.c (tui_display_main): Update.
3429 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
3430 (new_height_ok, parse_scrolling_args): Update.
3431 * tui/tui-layout.c (show_layout, show_data): Update.
3432 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
3433 (tui_add_to_source_windows): Don't declare.
3434 * tui/tui-data.c (source_windows, tui_source_windows)
3435 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
3436
3437 2019-08-15 Tom Tromey <tom@tromey.com>
3438
3439 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
3440 Rename from reset.
3441 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
3442 * tui/tui-layout.c (show_source_disasm_command, show_data):
3443 Update.
3444 (tui_gen_win_info::resize): Rename.
3445 (show_source_or_disasm_and_command): Update.
3446 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
3447 reset.
3448
3449 2019-08-15 Tom Tromey <tom@tromey.com>
3450
3451 * tui/tui-stack.c (tui_initialize_static_data): Remove.
3452 * tui/tui-interp.c (tui_interp::init): Don't call
3453 tui_initialize_static_data.
3454 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
3455
3456 2019-08-15 Tom Tromey <tom@tromey.com>
3457
3458 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
3459 examine tui_win_list.
3460
3461 2019-08-15 Tom Tromey <tom@tromey.com>
3462
3463 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
3464 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
3465 tui_clear_source_content.
3466 (tui_clear_source_content): Remove.
3467 (tui_source_window_base::do_erase_source_content): Hoist call to
3468 content.clear().
3469 * tui/tui-stack.c (tui_show_frame_info): Don't call
3470 tui_clear_source_content.
3471
3472 2019-08-15 Tom Tromey <tom@tromey.com>
3473
3474 * tui/tui-winsource.h (struct tui_source_window_base)
3475 <do_erase_source_content>: New method.
3476 <erase_source_content>: New method.
3477 (tui_erase_source_content): Don't declare.
3478 * tui/tui-winsource.c (tui_clear_source_content): Update.
3479 (tui_source_window_base::do_erase_source_content): Rename from
3480 tui_erase_source_content.
3481 (tui_source_window_base::show_source_content): Update.
3482 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
3483 * tui/tui-source.h (struct tui_source_window)
3484 <erase_source_content>: New method.
3485 * tui/tui-disasm.h (struct tui_disasm_window)
3486 <erase_source_content>: New method.
3487
3488 2019-08-15 Tom Tromey <tom@tromey.com>
3489
3490 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
3491 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
3492 constructor.
3493 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
3494 * tui/tui-source.c (tui_set_source_content): Update.
3495 * tui/tui-disasm.c (tui_set_disassem_content): Update.
3496
3497 2019-08-15 Tom Tromey <tom@tromey.com>
3498
3499 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
3500 * tui/tui-winsource.c (tui_line_is_displayed): Move to
3501 tui-source.c.
3502 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
3503 Declare.
3504 * tui/tui-source.c (tui_source_window::line_is_displayed): New
3505 method.
3506 (tui_source_window::maybe_update): Update.
3507
3508 2019-08-15 Tom Tromey <tom@tromey.com>
3509
3510 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
3511 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
3512 tui-disasm.c.
3513 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
3514 Declare.
3515 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
3516 method.
3517 (tui_disasm_window::maybe_update): Update.
3518
3519 2019-08-15 Tom Tromey <tom@tromey.com>
3520
3521 * tui/tui-winsource.h (struct tui_source_window_base)
3522 <maybe_update>: Declare.
3523 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
3524 method.
3525 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
3526 Declare.
3527 * tui/tui-source.c (tui_source_window::maybe_update): New method.
3528 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
3529 Declare.
3530 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
3531
3532 2019-08-15 Tom Tromey <tom@tromey.com>
3533
3534 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
3535
3536 2019-08-15 Tom Tromey <tom@tromey.com>
3537
3538 * tui/tui-wingeneral.c: Include tui-stack.h.
3539 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
3540 (struct tui_locator_window): Move from tui-data.h.
3541 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
3542 (tui_initialize_static_data): Move from tui-data.c.
3543 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
3544 (struct tui_locator_window): Move to tui-stack.c.
3545 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
3546 (tui_initialize_static_data): Move to tui-stack.c.
3547
3548 2019-08-15 Tom Tromey <tom@tromey.com>
3549
3550 * tui/tui-layout.c (show_source_disasm_command)
3551 (show_source_or_disasm_and_command): Use make_visible method, not
3552 tui_make_window.
3553 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
3554 Remove.
3555
3556 2019-08-15 Tom Tromey <tom@tromey.com>
3557
3558 * tui/tui-wingeneral.h (tui_make_window): Update.
3559 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
3560 parameter.
3561 (tui_gen_win_info::make_visible): Update.
3562 * tui/tui-regs.c (tui_data_window::display_registers_from):
3563 Update.
3564 * tui/tui-layout.c (show_source_disasm_command)
3565 (show_source_or_disasm_and_command): Update.
3566 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
3567 (enum tui_box): Remove.
3568 (struct tui_win_info) <can_box>: New method.
3569 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
3570 method.
3571
3572 2019-08-15 Tom de Vries <tdevries@suse.de>
3573
3574 * linux-nat-trad.c: Include gdbarch.h.
3575
3576 2019-08-14 Alan Hayward <alan.hayward@arm.com>
3577
3578 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
3579 register sizes.
3580
3581 2019-08-14 Tom Tromey <tromey@adacore.com>
3582
3583 * darwin-nat.c: Include gdbarch.h.
3584 * darwin-nat-info.c: Include gdbarch.h.
3585
3586 2019-08-13 Tom Tromey <tom@tromey.com>
3587
3588 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
3589 Remove.
3590 * tui/tui-data.c (tui_initialize_static_data): Update.
3591
3592 2019-08-13 Tom Tromey <tom@tromey.com>
3593
3594 * tui/tui-winsource.h (struct tui_exec_info_window)
3595 <~tui_exec_info_window, maybe_allocate_content, get_content,
3596 m_content>: Remove.
3597 (struct tui_source_window_base) <set_exec_info_content,
3598 show_exec_info_content>: Don't declare.
3599 * tui/tui-winsource.c
3600 (tui_exec_info_window::maybe_allocate_content): Remove.
3601 (tui_source_window_base::update_exec_info): Rename from
3602 set_exec_info_content.
3603 (tui_source_window_base::show_exec_info_content)
3604 (tui_source_window_base::update_exec_info): Remove.
3605
3606 2019-08-13 Tom Tromey <tom@tromey.com>
3607
3608 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
3609 declare.
3610 * tui/tui-winsource.c (tui_update_source_window_as_is)
3611 (tui_update_source_windows_with_addr, tui_erase_source_content):
3612 Update.
3613 (tui_clear_exec_info_content): Remove.
3614
3615 2019-08-13 Tom Tromey <tom@tromey.com>
3616
3617 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
3618 declare.
3619 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
3620 call tui_erase_exec_info_content.
3621 (tui_clear_exec_info_content): Rename from
3622 tui_erase_exec_info_content.
3623 (tui_clear_exec_info_content): Delete.
3624
3625 2019-08-13 Tom Tromey <tom@tromey.com>
3626
3627 * tui/tui-winsource.h (struct tui_source_window_base)
3628 <show_exec_info_content>: Declare.
3629 (tui_show_exec_info_content): Don't declare.
3630 * tui/tui-winsource.c
3631 (tui_source_window_base::show_exec_info_content): Rename from
3632 tui_show_exec_info_content.
3633 (tui_source_window_base::update_exec_info): Update.
3634
3635 2019-08-13 Tom Tromey <tom@tromey.com>
3636
3637 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
3638 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
3639 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
3640 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
3641 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
3642 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
3643 ... here.
3644
3645 2019-08-13 Tom Tromey <tom@tromey.com>
3646
3647 * tui/tui-winsource.h (struct tui_source_window_base)
3648 <update_exec_info>: Declare.
3649 (tui_update_exec_info): Don't declare.
3650 * tui/tui-winsource.c (tui_update_source_window_as_is)
3651 (tui_source_window_base::refresh_all)
3652 (tui_update_all_breakpoint_info): Update.
3653 (tui_source_window_base::update_exec_info): Rename from
3654 tui_update_exec_info.
3655 * tui/tui-stack.c (tui_show_frame_info): Update.
3656
3657 2019-08-13 Tom Tromey <tom@tromey.com>
3658
3659 * tui/tui-winsource.h (struct tui_source_window_base)
3660 <set_exec_info_content>: Declare.
3661 (tui_set_exec_info_content): Don't declare.
3662 * tui/tui-winsource.c
3663 (tui_source_window_base::set_exec_info_content): Rename from
3664 tui_set_exec_info_content.
3665 (tui_update_exec_info): Update.
3666
3667 2019-08-13 Tom Tromey <tom@tromey.com>
3668
3669 * tui/tui-winsource.h (struct tui_source_window_base)
3670 <show_source_content>: Declare.
3671 (tui_show_source_content): Don't declare.
3672 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
3673 (tui_source_window_base::show_source_content): Rename from
3674 tui_show_source_content.
3675 (tui_source_window_base::refresh_all): Update.
3676 * tui/tui-layout.c (show_source_disasm_command)
3677 (show_source_or_disasm_and_command): Update.
3678
3679 2019-08-13 Tom Tromey <tom@tromey.com>
3680
3681 * tui/tui-winsource.c (tui_erase_source_content)
3682 (tui_show_source_content, tui_source_window_base::refresh_all):
3683 Update.
3684 * tui/tui-wingeneral.h
3685 (tui_check_and_display_highlight_if_needed): Don't declare.
3686 * tui/tui-wingeneral.c
3687 (tui_win_info::check_and_display_highlight_if_needed): Rename from
3688 check_and_display_highlight_if_needed.
3689 * tui/tui-win.c (tui_rehighlight_all)
3690 (tui_win_info::make_visible_with_new_height): Update.
3691 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
3692 (tui_data_window::erase_data_content)
3693 (tui_data_window::display_all_data): Update.
3694 * tui/tui-data.h (struct tui_win_info)
3695 <check_and_display_highlight_if_needed>: Declare.
3696
3697 2019-08-13 Tom Tromey <tom@tromey.com>
3698
3699 * tui/tui-win.c (tui_resize_all): Call
3700 tui_delete_invisible_windows.
3701 * tui/tui-layout.c (show_layout): Call
3702 tui_delete_invisible_windows.
3703 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
3704 * tui/tui-data.c (tui_delete_invisible_windows): New function.
3705
3706 2019-08-13 Tom Tromey <tom@tromey.com>
3707
3708 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
3709 tui_add_win_to_layout.
3710
3711 2019-08-13 Tom Tromey <tom@tromey.com>
3712
3713 * tui/tui-layout.h (tui_default_win_height): Don't declare.
3714 * tui/tui-layout.c (tui_default_win_height): Now static.
3715
3716 2019-08-13 Tom Tromey <tom@tromey.com>
3717
3718 * tui/tui-layout.c (show_layout): Unify all layout cases into a
3719 single switch.
3720 (show_source_disasm_command, show_source_or_disasm_and_command):
3721 Don't check current layout.
3722
3723 2019-08-13 Tom Tromey <tom@tromey.com>
3724
3725 * tui/tui-wingeneral.c (make_all_visible): Remove.
3726 (tui_make_all_invisible): Simplify.
3727 * tui/tui-layout.c (tui_make_all_invisible): Move from
3728 tui-wingeneral.c; simplify.
3729 (show_layout): Hoist call to tui_make_all_invisible.
3730 (show_data): Don't call tui_make_all_invisible.
3731
3732 2019-08-13 Tom Tromey <tom@tromey.com>
3733
3734 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
3735 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
3736
3737 2019-08-13 Tom Tromey <tom@tromey.com>
3738
3739 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
3740 tui-data.c.
3741 (show_source_disasm_command, show_data)
3742 (show_source_or_disasm_and_command): Don't use
3743 tui_set_current_layout_to.
3744 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
3745 * tui/tui-data.c (current_layout, tui_current_layout): Move to
3746 tui-layout.c.
3747 (tui_set_current_layout_to): Remove.
3748
3749 2019-08-13 Tom Tromey <tom@tromey.com>
3750
3751 * tui/tui-layout.c (tui_set_layout): Update.
3752 * tui/tui-data.h (struct tui_layout_def): Remove.
3753 (tui_layout_def): Don't declare.
3754 * tui/tui-data.c (layout_def): Remove.
3755 (tui_layout_def): Remove.
3756
3757 2019-08-13 Tom Tromey <tom@tromey.com>
3758
3759 * tui/tui-winsource.h (struct tui_source_window_base)
3760 <clear_detail>: No longer "override".
3761 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
3762 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
3763 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
3764 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
3765 Remove.
3766 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
3767
3768 2019-08-13 Tom Tromey <tromey@adacore.com>
3769
3770 * tracepoint.c: Don't include readline.h or history.h.
3771
3772 2019-08-12 Tom Tromey <tom@tromey.com>
3773
3774 * configure: Rebuild.
3775 * configure.ac: Check for readline 7.
3776 * NEWS: Mention readline 7 requirement.
3777 * README: Update.
3778
3779 2019-08-12 Tom Tromey <tom@tromey.com>
3780
3781 * mingw-hdep.c (gdb_select): Remove readline hack.
3782
3783 2019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3784
3785 * blockframe.c (find_pc_partial_function): Set *block to nullptr
3786 when the function fails.
3787
3788 2019-08-09 Andreas Arnez <arnez@linux.ibm.com>
3789
3790 * s390-tdep.c (s390_type_align): New function.
3791 (s390_gdbarch_init): Set it as type_align gdbarch method.
3792
3793 2019-08-09 Tom de Vries <tdevries@suse.de>
3794
3795 PR gdb/24591
3796 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
3797 pc_low with relocation offset.
3798
3799 2019-08-07 Tom Tromey <tromey@adacore.com>
3800
3801 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
3802 (print_frame_args): Update.
3803 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
3804 Update.
3805 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
3806 * frame.h (struct frame_arg): Add initializers.
3807 <error>: Now a unique_xmalloc_ptr.
3808
3809 2019-08-07 Alan Hayward <alan.hayward@arm.com>
3810
3811 * NEWS: Expand the Pointer Authentication entry.
3812 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
3813 (aarch64_frame_unmask_lr): ... to this.
3814 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
3815 Call aarch64_frame_unmask_lr.
3816 * frame.c (struct frame_info): Add "masked" variable.
3817 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
3818 (fprint_frame): Check for masked pc.
3819 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
3820 declarations.
3821 * python/py-framefilter.c (py_print_frame): Check for masked pc.
3822 * stack.c (print_frame): Check for masked pc.
3823
3824 2019-08-06 Tom Tromey <tom@tromey.com>
3825
3826 * stabsread.c (patch_block_stabs, read_one_struct_field)
3827 (read_enum_type): Use obstack_strndup.
3828 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
3829 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
3830 * dwarf2read.c (guess_full_die_structure_name)
3831 (anonymous_struct_prefix): Use obstack_strndup.
3832 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
3833 * c-exp.y (yylex): Use obstack_strndup.
3834 * ada-exp.y (write_object_renaming, write_ambiguous_var)
3835 (write_var_or_type): Use obstack_strndup.
3836
3837 2019-08-06 Tom Tromey <tom@tromey.com>
3838
3839 * symfile.c (reread_symbols): Use obstack_strdup.
3840 * stabsread.c (read_type): Use obstack_strdup.
3841 * gdb_obstack.h (obstack_strdup): New overload.
3842 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
3843 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
3844 (dwarf2_canonicalize_name): Use obstack_strdup.
3845 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
3846 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
3847 Use obstack_strdup.
3848
3849 2019-08-06 Tom Tromey <tom@tromey.com>
3850
3851 * gdb_obstack.h (obstack_strdup): Define.
3852 * gdb_obstack.c (obstack_strdup): Don't define.
3853
3854 2019-08-06 Tom Tromey <tom@tromey.com>
3855
3856 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
3857 obstack_strdup.
3858 * typeprint.c (typedef_hash_table::find_global_typedef): Use
3859 obstack_strdup.
3860 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
3861 * stabsread.c (common_block_start): Use obstack_strdup.
3862 * objfiles.c (set_objfile_main_name, objfile): Use
3863 obstack_strdup.
3864 * namespace.c (add_using_directive): Use obstack_strdup.
3865 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
3866 * jit.c (finalize_symtab): Use obstack_strdup.
3867 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
3868 (guess_partial_die_structure_name, partial_die_info::fixup)
3869 (dwarf2_name): Use obstack_strdup.
3870 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
3871 obstack_strdup.
3872 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
3873 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
3874 obstack_strdup.
3875 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
3876
3877 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3878
3879 * unittests/help-doc-selftests.c: New file.
3880 * Makefile.in: Add the new file.
3881
3882 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3883
3884 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
3885 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
3886 the full first line, except when FOR_VALUE_PREFIX. In this case,
3887 the trailing '.' is not output, and the first character is uppercased.
3888 (print_help_for_command): Update call to print_doc_line.
3889 (print_doc_of_command): Likewise.
3890 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
3891 * cli/cli-option.c (append_indented_doc): Do not append newline.
3892 (build_help_option): Append newline after first appended_indented_doc
3893 only if a second call is done.
3894 (build_help): Append 2 new lines before each option, except the first
3895 one.
3896 * compile/compile.c (_initialize_compile): Add new lines after
3897 %OPTIONS%, when not at the end of the help.
3898 Change help doc or code
3899 producing the help doc to respect the invariants.
3900 * maint-test-options.c (_initialize_maint_test_options): Likewise.
3901 Also removed the new line after 'Options:', as all other commands
3902 do not put an empty line between 'Options:' and the first option.
3903 * printcmd.c (_initialize_printcmd): Likewise.
3904 * stack.c (_initialize_stack): Likewise.
3905 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
3906 incorrectly telling COMMAND is optional.
3907 * ada-lang.c (_initialize_ada_language): Change help doc or code
3908 producing the help doc to respect the invariants.
3909 * ada-tasks.c (_initialize_ada_tasks): Likewise.
3910 * breakpoint.c (_initialize_breakpoint): Likewise.
3911 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
3912 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
3913 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
3914 * cli/cli-style.c (cli_style_option::add_setshow_commands,
3915 _initialize_cli_style): Likewise.
3916 * corelow.c (core_target_info): Likewise.
3917 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
3918 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
3919 * filesystem.c (_initialize_filesystem): Likewise.
3920 * frame.c (_initialize_frame): Likewise.
3921 * gnu-nat.c (add_task_commands): Likewise.
3922 * infcall.c (_initialize_infcall): Likewise.
3923 * infcmd.c (_initialize_infcmd): Likewise.
3924 * interps.c (_initialize_interpreter): Likewise.
3925 * language.c (_initialize_language): Likewise.
3926 * linux-fork.c (_initialize_linux_fork): Likewise.
3927 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
3928 * maint.c (_initialize_maint_cmds): Likewise.
3929 * memattr.c (_initialize_mem): Likewise.
3930 * printcmd.c (_initialize_printcmd): Likewise.
3931 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
3932 _RegEx): Likewise.
3933 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
3934 * record-btrace.c (_initialize_record_btrace): Likewise.
3935 * record-full.c (_initialize_record_full): Likewise.
3936 * record.c (_initialize_record): Likewise.
3937 * regcache-dump.c (_initialize_regcache_dump): Likewise.
3938 * regcache.c (_initialize_regcache): Likewise.
3939 * remote.c (add_packet_config_cmd, init_remote_threadtests,
3940 _initialize_remote): Likewise.
3941 * ser-tcp.c (_initialize_ser_tcp): Likewise.
3942 * serial.c (_initialize_serial): Likewise.
3943 * skip.c (_initialize_step_skip): Likewise.
3944 * source.c (_initialize_source): Likewise.
3945 * stack.c (_initialize_stack): Likewise.
3946 * symfile.c (_initialize_symfile): Likewise.
3947 * symtab.c (_initialize_symtab): Likewise.
3948 * target-descriptions.c (_initialize_target_descriptions): Likewise.
3949 * top.c (init_main): Likewise.
3950 * tracefile-tfile.c (tfile_target_info): Likewise.
3951 * tracepoint.c (_initialize_tracepoint): Likewise.
3952 * tui/tui-win.c (_initialize_tui_win): Likewise.
3953 * utils.c (add_internal_problem_command): Likewise.
3954 * valprint.c (value_print_option_defs): Likewise.
3955
3956 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
3957
3958 PR build/24886
3959 * configure.ac: Drop enable-libmcheck support.
3960 * configure, config.in: Rebuild.
3961 * libmcheck.m4: Remove.
3962 * acinclude.m4: Don't include it.
3963 * Makefile.in: Don't distribute it.
3964 * top.c (print_gdb_configuration): Don't mention it.
3965
3966 2019-08-06 Tom Tromey <tom@tromey.com>
3967
3968 * utils.c (set_output_style): Sometimes pass stream to
3969 emit_style_escape.
3970 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
3971 * record-btrace.c (btrace_insn_history): Update.
3972 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
3973 method.
3974 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
3975 Update initializers.
3976 <m_uiout>: New field.
3977 <m_di>: Move lower.
3978 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3979 Remove "uiout" parameter.
3980 (dump_insns): Update.
3981 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
3982 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
3983
3984 2019-08-06 Christian Biesinger <cbiesinger@google.com>
3985
3986 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
3987 (error_in_psymtab_expansion): Likewise.
3988 (lookup_symbol_via_quick_fns): Likewise.
3989 (basic_lookup_transparent_type_quick): Likewise.
3990 (basic_lookup_transparent_type_1): Likewise.
3991
3992 2019-08-06 Tom Tromey <tromey@adacore.com>
3993
3994 * source.c (last_source_error): Now bool.
3995 (print_source_lines_base): Make "noprint" bool. Only open
3996 source file when last_source_visited changes.
3997
3998 2019-08-06 Tom Tromey <tromey@adacore.com>
3999
4000 * annotate.c (annotate_source_line): Use g_source_cache.
4001 * source-cache.c (source_cache::get_plain_source_lines): Change
4002 parameters. Populate m_offset_cache.
4003 (source_cache::ensure): New method.
4004 (source_cache::get_line_charpos): New method.
4005 (extract_lines): Move lower. Change parameters.
4006 (source_cache::get_source_lines): Move lower.
4007 * source-cache.h (class source_cache): Update comment.
4008 <get_line_charpos>: New method.
4009 <get_source_lines>: Update comment.
4010 <clear>: Clear m_offset_cache.
4011 <get_plain_source_lines>: Change parameters.
4012 <ensure>: New method
4013 <m_offset_cache>: New member.
4014 * source.c (forget_cached_source_info_for_objfile): Update.
4015 (info_source_command): Use g_source_cache.
4016 (find_source_lines, open_source_file_with_line_charpos): Remove.
4017 (print_source_lines_base, search_command_helper): Use g_source_cache.
4018 * source.h (open_source_file_with_line_charpos): Don't declare.
4019 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
4020 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
4021 Use g_source_cache.
4022
4023 2019-08-06 Tom Tromey <tromey@adacore.com>
4024
4025 * source-cache.c (source_cache::get_plain_source_lines):
4026 Remove "first_line" and "last_line" parameters.
4027 (source_cache::get_source_lines): Cache plain text.
4028 * source-cache.h (class source_cache)
4029 <get_plain_source_lines>: Update.
4030
4031 2019-08-06 Tom Tromey <tromey@adacore.com>
4032
4033 * source-cache.c (extract_lines): No longer a method.
4034 Changed type of parameter. Include final newline.
4035 (selftests::extract_lines_test): New function.
4036 (_initialize_source_cache): Likewise.
4037 * source-cache.h (class source_cache)
4038 <extract_lines>: Don't declare.
4039
4040 2019-08-06 Tom Tromey <tromey@adacore.com>
4041
4042 * breakpoint.c (init_breakpoint_sal): Update.
4043 (breakpoint): Update.
4044 * breakpoint.h (struct breakpoint) <filter>: Now a
4045 unique_xmalloc_ptr.
4046
4047 2019-08-05 Christian Biesinger <cbiesinger@google.com>
4048
4049 * NEWS: Mention dictionary access on blocks.
4050 * python/py-block.c (blpy_getitem): New function.
4051 (block_object_as_mapping): New struct.
4052 (block_object_type): Use new struct for tp_as_mapping field.
4053
4054 2019-08-05 Christian Biesinger <cbiesinger@google.com>
4055
4056 * objfiles.h (objfile): Add a comment describing partial symbols.
4057
4058 2019-08-05 Tom Tromey <tromey@adacore.com>
4059
4060 * compile/compile.c (_initialize_compile): Use _(), not N_().
4061 * thread.c (_initialize_thread): Use _(), not N_().
4062 * stack.c (_initialize_stack): Use _(), not N_().
4063 * printcmd.c (_initialize_printcmd): Use _(), not N_().
4064
4065 2019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4066
4067 * dwarf2read.c (struct dw2_symtab_iterator):
4068 <want_specific_block>: Remove.
4069 <block_index>: Change type to gdb::optional.
4070 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
4071 change type of BLOCK_INDEX parameter to gdb::optional.
4072 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
4073 (dw2_lookup_symbol): Don't pass argument for
4074 WANT_SPECIFIC_BLOCK.
4075 (dw2_expand_symtabs_for_function): Don't pass argument for
4076 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
4077 (class dw2_debug_names_iterator)
4078 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
4079 parameter, change BLOCK_INDEX type to gdb::optional.
4080 <m_want_specific_block>: Remove.
4081 <m_block_index>: Change type to gdb::optional.
4082 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
4083 gdb::optional. Re-write in function of gdb::optional.
4084 (dw2_debug_names_lookup_symbol): Don't pass argument for
4085 WANT_SPECIFIC_BLOCK.
4086 (dw2_debug_names_expand_symtabs_for_function): Don't pass
4087 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
4088 BLOCK_INDEX.
4089
4090 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4091
4092 * NEWS: Mention changes to "info sources" command.
4093
4094 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4095
4096 * symtab.c (filename_partial_match_opts): New struct type.
4097 (struct output_source_filename_data): New members
4098 regexp, c_regexp, partial_match.
4099 (output_source_filename): Use new members to decide to print file.
4100 (info_sources_option_defs): New variable.
4101 (make_info_sources_options_def_group, print_info_sources_header,
4102 info_sources_command_completer):
4103 New functions.
4104 (info_sources_command): Read new optional arguments.
4105 (_initialize_symtab): Update info sources help.
4106
4107 2019-08-02 Alexandre Oliva <oliva@adacore.com>
4108
4109 * ada-lang.c (exception_support_info_v0): Renamed from...
4110 (default_exception_support_info): ... this. Create new
4111 definition for v1.
4112 (ada_has_this_exception_support): Look up catch_handlers_sym.
4113 (ada_exception_support_info_sniffer): Try v0 after default.
4114
4115 2019-08-01 Tom Tromey <tromey@adacore.com>
4116
4117 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
4118 gdbarch.h.
4119
4120 2019-08-01 Christian Biesinger <cbiesinger@google.com>
4121
4122 * s12z-tdep.c: Fix include path for s12z-opc.h.
4123
4124 2019-08-01 Alan Hayward <alan.hayward@arm.com>
4125
4126 * NEWS: Require GNU make 3.82.
4127
4128 2019-07-16 Tom Tromey <tom@tromey.com>
4129
4130 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
4131 declare.
4132
4133 2019-07-30 Tom Tromey <tromey@adacore.com>
4134
4135 * block.c (contained_in): Remove BLOCK_FUNCTION check.
4136
4137 2019-07-30 Kevin Buettner <kevinb@redhat.com>
4138
4139 * printcmd.c (print_address_symbolic): Print negative offsets.
4140 (build_address_symbolic): Force signed arithmetic when computing
4141 offset.
4142
4143 2019-07-30 Christian Biesinger <cbiesinger@google.com>
4144
4145 PR/24474: Add a function to lookup static variables.
4146 * NEWS: Mention this new function.
4147 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
4148 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
4149 * python/python.c (python_GdbMethods): Add new function.
4150
4151 2019-07-29 Christian Biesinger <cbiesinger@google.com>
4152
4153 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
4154 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
4155 (objfpy_lookup_static_symbol): New function.
4156 (objfile_object_methods): Add new functions.
4157
4158 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4159
4160 * NEWS: Mention 'set|show print frame-info'. Mention new
4161 'presence' value for 'frame-arguments'. Mention new '-frame-info'
4162 backtrace argument. Mention that python frame filtering code
4163 is now consistent with what 'backtrace' command prints.
4164
4165 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4166
4167 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
4168 comments.
4169 (print_frame_info_auto, print_frame_info_source_line,
4170 print_frame_info_location, print_frame_info_source_and_location,
4171 print_frame_info_location_and_address, print_frame_info_short_location):
4172 New declarations.
4173 (struct frame_print_options): New member print_frame_info.
4174 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
4175 * stack.h (get_user_print_what_frame_info): New declaration.
4176 (frame_show_address): New declaration.
4177 * stack.c (print_frame_arguments_choices): New value 'presence'.
4178 (print_frame_info_auto, print_frame_info_source_line,
4179 print_frame_info_location, print_frame_info_source_and_location,
4180 print_frame_info_location_and_address, print_frame_info_short_location,
4181 print_frame_info_choices, print_frame_info_print_what): New definitions.
4182 (print_frame_args): Only print dots for args if print frame-arguments
4183 is 'presence'.
4184 (frame_print_option_defs): New element for "frame-info".
4185 (get_user_print_what_frame_info): New function.
4186 (frame_show_address): Make non static. Move comment to stack.h.
4187 (print_frame_info_to_print_what): New function.
4188 (print_frame_info): Update comment. Use fp_opts.print_frame_info
4189 to decide what to print.
4190 (backtrace_command_1): Handle the new print_frame_arguments_presence
4191 value.
4192 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
4193 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
4194 (py_print_frame): In non-mi mode, use LOCATION as default for
4195 print_what, similarly to frame information printed directly by
4196 backtrace command. Handle frame-info user option in non MI mode.
4197
4198 2019-07-27 Kevin Buettner <kevinb@redhat.com>
4199
4200 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
4201 Add case for debugging 32-bit target on 64-bit host. Revise
4202 comment.
4203
4204 2019-07-27 Kevin Buettner <kevinb@redhat.com>
4205
4206 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
4207 instead of find_function_entry_range_from_pc.
4208
4209 2019-07-27 Kevin Buettner <kevinb@redhat.com>
4210
4211 * stack.c (find_frame_funname): Remove code which preferred
4212 minsym over symtab sym in "certain pathological cases".
4213
4214 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
4215 parameter. Change type of "do_demangle" to bool.
4216 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
4217 Pass suitable "prefer_sym_over_minsym" flag to
4218 build_address_symbolic(). Don't output "+" for negative offsets.
4219 * printcmd.c (print_address_symbolic): Update invocation of
4220 build_address_symbolic to include a "prefer_sym_over_minsym"
4221 flag.
4222 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
4223 Restrict cases in which use of minimal symbol is preferred to that
4224 of a found symbol. Update comments.
4225
4226 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
4227 for entry pc when entry pc is out of range for that FDE.
4228
4229 2019-07-26 Brian Callahan <bcallah@openbsd.org>
4230
4231 PR gdb/24839:
4232 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
4233 type.
4234
4235 2019-07-25 Christian Biesinger <cbiesinger@google.com>
4236
4237 * python/py-objfile.c (add_separate_debug_file): Fix comment about
4238 this function's Python signature.
4239
4240
4241 2019-07-24 Christian Biesinger <cbiesinger@google.com>
4242
4243 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
4244 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
4245 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
4246 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
4247 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
4248
4249
4250 2019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
4251
4252 * h8300-tdep.c (h8300_register_name_common): New.
4253 h8300_register_name): Use h8300_register_name_common.
4254 (h8300s_register_name): Likewise.
4255 (h8300sx_register_name): Likewise.
4256 (h8300h_register_nam): New.
4257 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
4258
4259
4260 2019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
4261
4262 * arm-tdep.c (arm_skip_cmse_entry): New function.
4263 (arm_is_sgstubs_section): New function.
4264 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
4265
4266 2019-07-22 Tom Tromey <tom@tromey.com>
4267
4268 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
4269 Don't self-assign.
4270
4271 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
4272
4273 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
4274 type_print.
4275
4276 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
4277
4278 * symtab.c (search_symbols): Adjust msymbol matching type arrays
4279 so that GDB doesn't match any msymbols when searching in the
4280 TYPES_DOMAIN.
4281 (print_symbol_info): Print using typedef_print or type_print based
4282 on the type of the symbol. Add updated FIXME comment moved from...
4283 (_initialize_symtab): ... move and update FIXME comment to above.
4284
4285 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
4286
4287 * NEWS: Mention adding -q option to "info types".
4288 * symtab.c (struct info_types_options): New struct.
4289 (info_types_options_defs): New variable.
4290 (make_info_types_options_def_group): New function.
4291 (info_types_command): Use gdb::option framework to parse options.
4292 (info_types_command_completer): New function.
4293 (_initialize_symtab): Extend the help text on "info types" and
4294 register command completer.
4295
4296 2019-07-21 Christian Biesinger <cbiesinger@google.com>
4297
4298 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
4299 (lookup_symbol_in_objfile): Change int to block_enum and add a
4300 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
4301
4302 2019-07-20 Christian Biesinger <cbiesinger@google.com>
4303
4304 * MAINTAINERS (Write After Approval): Add self.
4305
4306 2019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
4307
4308 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
4309 instruction to the dummy code region.
4310
4311 2019-07-19 Tom Tromey <tromey@adacore.com>
4312
4313 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
4314 (ARGSUSED, PARAMS, __func__): Remove rules.
4315
4316 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4317
4318 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
4319 * features/arm/arm-with-iwmmxt.c: Remove.
4320 * features/arm/arm-with-iwmmxt.xml: Remove.
4321 * features/arm/arm-with-m-fpa-layout.c: Remove.
4322 * features/arm/arm-with-m-fpa-layout.xml: Remove.
4323 * features/arm/arm-with-m-vfp-d16.c: Remove.
4324 * features/arm/arm-with-m-vfp-d16.xml: Remove.
4325 * features/arm/arm-with-m.c: Remove.
4326 * features/arm/arm-with-m.xml: Remove.
4327 * features/arm/arm-with-neon.c: Remove.
4328 * features/arm/arm-with-neon.xml: Remove.
4329 * features/arm/arm-with-vfpv2.c: Remove.
4330 * features/arm/arm-with-vfpv2.xml: Remove.
4331 * features/arm/arm-with-vfpv3.c: Remove.
4332 * features/arm/arm-with-vfpv3.xml: Remove.
4333
4334 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4335
4336 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
4337
4338 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4339
4340 * arch/aarch32.c (aarch32_create_target_description): Create
4341 target descriptions using features.
4342 * arch/arm.c (arm_create_target_description)
4343 (arm_create_mprofile_target_description): Likewise.
4344 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
4345
4346 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4347
4348 * Makefile.in: Add new files.
4349 * aarch32-tdep.c: New file.
4350 * aarch32-tdep.h: New file.
4351 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
4352 Call aarch32_read_description.
4353 * arch/aarch32.c: New file.
4354 * arch/aarch32.h: New file.
4355 * arch/arm.c (arm_create_target_description)
4356 (arm_create_mprofile_target_description): New function.
4357 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
4358 (arm_create_target_description)
4359 (arm_create_mprofile_target_description): New declaration.
4360 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
4361 read_description functions.
4362 * arm-linux-nat.c (arm_linux_nat_target::read_description):
4363 Likewise.
4364 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
4365 * arm-tdep.c (tdesc_arm_list): New variable.
4366 (arm_register_g_packet_guesses): Call create description functions.
4367 (arm_read_description) (arm_read_mprofile_description): New
4368 function.
4369 * arm-tdep.h (arm_read_description)
4370 (arm_read_mprofile_description): Add declaration.
4371 * configure.tgt: Add new files.
4372
4373 2019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
4374
4375 * top.c (new_ui_command): Open specified terminal just once.
4376
4377 2019-07-18 Tom Tromey <tromey@adacore.com>
4378
4379 * symtab.c (main_name): Constify return type.
4380 * symfile.c (set_initial_language): Update.
4381 * symtab.h (main_name): Constify return type.
4382
4383 2019-07-17 Tom Tromey <tom@tromey.com>
4384
4385 * tui/tui-winsource.c (tui_update_source_window)
4386 (tui_update_source_window_as_is)
4387 (tui_update_source_windows_with_line): Remove return.
4388 * tui/tui-disasm.c (tui_show_disassem)
4389 (tui_show_disassem_and_update_source): Remove return.
4390 * tui/tui.c (tui_reset): Remove return.
4391 * tui/tui-wingeneral.c
4392 (tui_check_and_display_highlight_if_needed): Remove return.
4393
4394 2019-07-17 Tom Tromey <tom@tromey.com>
4395
4396 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
4397
4398 2019-07-17 Tom Tromey <tom@tromey.com>
4399
4400 * tui/tui-winsource.h (struct tui_exec_info_window)
4401 (struct tui_source_window_base): Move from tui-data.h.
4402 * tui/tui-winsource.c: Move many method definitions from
4403 elsewhere. Remove "structuring" comments.
4404 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
4405 (tui_source_window_base::refresh_window): Move to
4406 tui-winsource.c.
4407 * tui/tui-win.c (tui_source_window_base::refresh_all)
4408 (tui_source_window_base::update_tab_width)
4409 (tui_source_window_base::set_new_height)
4410 (tui_source_window_base::do_make_visible_with_new_height): Move to
4411 tui-winsource.c.
4412 * tui/tui-source.h: Update.
4413 * tui/tui-source.c (tui_source_window_base::reset): Move to
4414 tui-winsource.c.
4415 * tui/tui-disasm.h: Update.
4416 * tui/tui-data.h (struct tui_exec_info_window): Move to
4417 tui-winsource.h.
4418 (struct tui_source_window_base): Likewise.
4419 * tui/tui-data.c (tui_source_window_base::clear_detail)
4420 (tui_source_window_base, ~tui_source_window_base): Move to
4421 tui-winsource.c.
4422
4423 2019-07-17 Tom Tromey <tom@tromey.com>
4424
4425 * tui/tui-win.c (tui_resize_all)
4426 (tui_source_window_base::update_tab_width)
4427 (tui_adjust_win_heights): Update.
4428 (tui_win_info::make_invisible_and_set_new_height): Rename from
4429 make_invisible_and_set_new_height.
4430 * tui/tui-data.h (struct tui_win_info)
4431 <make_invisible_and_set_new_height>: New method.
4432
4433 2019-07-17 Tom Tromey <tom@tromey.com>
4434
4435 * tui/tui.c: Update.
4436 * tui/tui-source.h (struct tui_source_window): Move from
4437 tui-data.h.
4438 * tui/tui-layout.c: Update.
4439 * tui/tui-disasm.c: Update.
4440 * tui/tui-data.h (struct tui_source_window): Move to
4441 tui-source.h.
4442
4443 2019-07-17 Tom Tromey <tom@tromey.com>
4444
4445 * tui/tui-disasm.h (struct tui_disasm_window): Move from
4446 tui-data.h.
4447 * tui/tui-data.h (struct tui_disasm_window): Move to
4448 tui-disasm.h.
4449
4450 2019-07-17 Tom Tromey <tom@tromey.com>
4451
4452 * tui/tui-regs.h (struct tui_data_item_window): Move from
4453 tui-data.h.
4454 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
4455 * tui/tui-data.h (struct tui_data_item_window): Move to
4456 tui-regs.h.
4457 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
4458
4459 2019-07-17 Tom Tromey <tom@tromey.com>
4460
4461 * tui/tui.c: Update.
4462 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
4463 (tui_cmd_window::max_height): Move to tui-command.c.
4464 * tui/tui-layout.c: Update.
4465 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
4466 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
4467 tui-command.c.
4468 * tui/tui-command.h (struct tui_cmd_window): Move from
4469 tui-data.h.
4470 * tui/tui-command.c: Remove "structuring" comments.
4471 (tui_cmd_window::clear_detail)
4472 (tui_cmd_window::do_make_visible_with_new_height)
4473 (tui_cmd_window::max_height): Move from elsewhere.
4474
4475 2019-07-17 Tom Tromey <tom@tromey.com>
4476
4477 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
4478 Now static.
4479 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
4480 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
4481
4482 2019-07-17 Tom Tromey <tom@tromey.com>
4483
4484 * tui/tui.c: Update.
4485 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
4486 tui-regs.c.
4487 * tui/tui-windata.h: Remove file.
4488 * tui/tui-windata.c: Remove file.
4489 * tui/tui-win.c (tui_data_window::set_new_height)
4490 (tui_data_window::do_make_visible_with_new_height): Move to
4491 tui-regs.c.
4492 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
4493 * tui/tui-regs.c: Remove "structuring" comments.
4494 (tui_data_window::first_data_item_displayed)
4495 (tui_data_window::delete_data_content_windows)
4496 (tui_data_window::erase_data_content)
4497 (tui_data_window::display_all_data)
4498 (tui_data_window::refresh_all)
4499 (tui_data_window::do_scroll_vertical)
4500 (tui_data_window::clear_detail, tui_data_window::set_new_height)
4501 (tui_data_window::do_make_visible_with_new_height)
4502 (tui_data_window::refresh_window): Move from elsewhere.
4503 (_initialize_tui_regs): Move to end of file.
4504 * tui/tui-layout.c: Update.
4505 * tui/tui-hooks.c: Update.
4506 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
4507 * tui/tui-data.c (tui_data_window::clear_detail): Move to
4508 tui-regs.c.
4509 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
4510
4511 2019-07-17 Tom Tromey <tom@tromey.com>
4512
4513 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
4514 seen.
4515
4516 2019-07-17 Tom Tromey <tom@tromey.com>
4517
4518 * tui/tui-win.c (tui_source_window_base::set_new_height)
4519 (tui_source_window_base::do_make_visible_with_new_height): Use
4520 m_has_locator field directly.
4521 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
4522 method.
4523 (struct tui_source_window_base) <has_locator>: Likewise.
4524
4525 2019-07-17 Tom Tromey <tom@tromey.com>
4526
4527 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
4528 Don't declare.
4529 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
4530 Remove.
4531 * tui/tui-win.c (tui_source_window_base::set_new_height)
4532 (tui_source_window_base::set_new_height)
4533 (make_invisible_and_set_new_height)
4534 (tui_source_window_base::do_make_visible_with_new_height)
4535 (tui_source_window_base::do_make_visible_with_new_height):
4536 Update.
4537 * tui/tui-layout.c (show_source_disasm_command, show_data)
4538 (show_source_or_disasm_and_command): Update.
4539 * tui/tui-layout.c (show_layout): Update.
4540
4541 2019-07-17 Tom Tromey <tom@tromey.com>
4542
4543 * tui/tui-layout.c (make_data_window): Remove.
4544 (show_data): Unify creation and re-initialization cases.
4545
4546 2019-07-17 Tom Tromey <tom@tromey.com>
4547
4548 * tui/tui-layout.c (make_source_window, make_disasm_window):
4549 Remove.
4550 (show_data): Unify creation and re-initialization cases.
4551
4552 2019-07-17 Tom Tromey <tom@tromey.com>
4553
4554 * tui/tui-layout.c (make_command_window): Remove.
4555 (show_source_disasm_command, show_source_or_disasm_and_command):
4556 Unify creation and re-initialization cases.
4557
4558 2019-07-17 Tom Tromey <tom@tromey.com>
4559
4560 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
4561 creation and re-initialization cases.
4562
4563 2019-07-17 Tom Tromey <tom@tromey.com>
4564
4565 * tui/tui-regs.c (tui_get_register): Return void.
4566
4567 2019-07-17 Tom Tromey <tom@tromey.com>
4568
4569 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
4570 Simplify.
4571
4572 2019-07-17 Tom Tromey <tom@tromey.com>
4573
4574 * tui/tui-layout.c (show_source_disasm_command): Simplify window
4575 resetting.
4576
4577 2019-07-17 Tom Tromey <tom@tromey.com>
4578
4579 * tui/tui.h (tui_set_layout_by_name): Don't declare.
4580 * tui/tui-regs.c (tui_reg_layout): New function.
4581 (tui_show_registers, tui_reg_command): Use it.
4582 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
4583 (tui_layout_command): Rename from tui_set_layout_by_name. Change
4584 parameters.
4585 (tui_layout_command): Remove.
4586
4587 2019-07-17 Tom Tromey <tom@tromey.com>
4588
4589 * tui/tui-layout.h (tui/tui-layout): Return void.
4590 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
4591
4592 2019-07-17 Tom Tromey <tom@tromey.com>
4593
4594 * tui/tui-layout.c (show_source_disasm_command, show_data):
4595 Update.
4596 (reset_locator): Remove.
4597 (show_source_or_disasm_and_command): Update.
4598
4599 2019-07-17 Tom Tromey <tom@tromey.com>
4600
4601 * tui/tui-source.c (tui_source_window_base::reset): Remove
4602 win_type parameter.
4603 * tui/tui-layout.c (make_command_window, make_source_window)
4604 (make_disasm_window, make_data_window)
4605 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
4606 (reset_locator, show_source_or_disasm_and_command): Update.
4607 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
4608 win_type parameter.
4609 (struct tui_source_window_base) <reset>: Likewise.
4610
4611 2019-07-17 Tom Tromey <tom@tromey.com>
4612
4613 * tui/tui-layout.c (show_source_disasm_command): Use
4614 reset_locator.
4615 (reset_locator): New function.
4616 (init_and_make_win): Remove.
4617 (show_source_or_disasm_and_command): Use reset_locator.
4618
4619 2019-07-17 Tom Tromey <tom@tromey.com>
4620
4621 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
4622 condition.
4623 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
4624 Remove condition.
4625 * tui/tui-source.c (tui_source_window_base::reset): New method.
4626 * tui/tui-layout.c (make_command_window): Don't call
4627 init_and_make_win.
4628 (make_source_window, make_disasm_window): Don't call
4629 make_source_or_disasm_window.
4630 (make_data_window): Don't call init_and_make_win. Change calling
4631 convention.
4632 (show_source_disasm_command, show_data): Simplify.
4633 (make_source_or_disasm_window): Remove.
4634 (show_source_or_disasm_and_command): Simplify.
4635 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
4636 (struct tui_source_window_base) <reset>: Likewise.
4637 <execution_info>: Remove initializer.
4638 * tui/tui-data.c (tui_source_window_base): Initialize
4639 execution_info.
4640
4641 2019-07-17 Tom Tromey <tom@tromey.com>
4642
4643 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
4644 variable.
4645
4646 2019-07-17 Tom Tromey <tom@tromey.com>
4647
4648 * tui/tui.c (tui_rl_other_window): Update.
4649 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
4650 superclass method first. Always iterate over regs_content.
4651 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
4652 method.
4653 * tui/tui-win.c (tui_set_focus_command): Update.
4654
4655 2019-07-17 Tom Tromey <tom@tromey.com>
4656
4657 * tui/tui-win.c (tui_set_focus_command): Rename from
4658 tui_set_focus. Call tui_enable.
4659 (tui_set_focus_command): Remove.
4660
4661 2019-07-17 Tom Tromey <tom@tromey.com>
4662
4663 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
4664 refresh_window.
4665 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
4666 touchwin.
4667 (tui_data_window::refresh_window): Call refresh_window on data
4668 items. Always call superclass refresh_window.
4669 (tui_win_info::refresh): Remove.
4670 (tui_source_window_base::refresh_window): Update.
4671 (tui_refresh_all): Update.
4672 * tui/tui-layout.c (show_source_disasm_command): Remove call to
4673 refresh_window.
4674 (show_source_or_disasm_and_command): Likewise.
4675 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
4676 (struct tui_source_window_base) <refresh>: Likewise.
4677
4678 2019-07-17 Tom Tromey <tom@tromey.com>
4679
4680 * tui/tui-winsource.c (tui_clear_source_content)
4681 (tui_show_source_content): Update.
4682 * tui/tui-source.c (tui_source_window::showing_source_p): Check
4683 whether content is empty.
4684 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
4685 Remove.
4686
4687 2019-07-17 Tom Tromey <tom@tromey.com>
4688
4689 * tui/tui-winsource.c (tui_erase_source_content): Clear the
4690 window's contents.
4691 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
4692 * tui/tui-source.c (tui_set_source_content_nil): Remove.
4693
4694 2019-07-17 Tom Tromey <tom@tromey.com>
4695
4696 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
4697 (struct tui_data_item_window): Update.
4698
4699 2019-07-17 Tom Tromey <tom@tromey.com>
4700
4701 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
4702 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
4703 defines.
4704
4705 2019-07-17 Tom Tromey <tom@tromey.com>
4706
4707 * tui/tui-winsource.h (tui_erase_source_content)
4708 (tui_clear_source_content): Remove "display_prompt" parameter.
4709 * tui/tui-winsource.c (tui_update_source_window_as_is)
4710 (tui_update_source_windows_with_addr): Update.
4711 (tui_clear_source_content): Remove "display_prompt" parameter.
4712 (tui_erase_source_content): Likewise. Simplify.
4713 (tui_show_source_content): Update.
4714 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
4715 * tui/tui-stack.c (tui_show_frame_info): Update.
4716 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
4717 Remove defines.
4718
4719 2019-07-17 Tom Tromey <tom@tromey.com>
4720
4721 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
4722 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
4723 parameter.
4724 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
4725 parameter.
4726
4727 2019-07-17 Tom Tromey <tom@tromey.com>
4728
4729 * tui/tui-winsource.c (tui_clear_source_content)
4730 (tui_show_source_content, tui_show_exec_info_content)
4731 (tui_clear_exec_info_content): Update.
4732 * tui/tui-stack.c (tui_show_locator_content): Update.
4733 (tui_show_frame_info): Update.
4734 * tui/tui-source.h (tui_source_window): Don't declare.
4735 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
4736 from tui_source_is_displayed.
4737 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
4738 Remove field.
4739 (struct tui_source_window_base) <content_in_use>: New field. Now
4740 bool.
4741 (struct tui_source_window) <showing_source_p>: New method.
4742 (TUI_SRC_WIN): Change cast.
4743 * tui/tui-data.c (tui_initialize_static_data): Update.
4744
4745 2019-07-17 Tom Tromey <tom@tromey.com>
4746
4747 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
4748 location_matches_p.
4749 * tui/tui-source.c (tui_source_window::location_matches_p): New
4750 method.
4751 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
4752 method.
4753 * tui/tui-data.h (struct tui_source_window_base)
4754 <location_matches_p>: New method.
4755 (struct tui_source_window, struct tui_disasm_window)
4756 <location_matches_p>: Likewise.
4757
4758 2019-07-17 Tom Tromey <tom@tromey.com>
4759
4760 * tui/tui-win.c (tui_set_win_height_command): Rename from
4761 tui_set_win_height.
4762 (tui_set_win_height_command): Remove.
4763
4764 2019-07-17 Tom Tromey <tom@tromey.com>
4765
4766 * tui/tui-source.c (tui_source_window): New constructor. Add
4767 observer.
4768 (~tui_source_window): New destructor.
4769 (tui_source_window::style_changed): New method.
4770 * tui/tui-hooks.c (tui_redisplay_source): Remove.
4771 (tui_attach_detach_observers): Update.
4772 * tui/tui-data.h (struct tui_source_window): Make constructor not
4773 inline. Add destructor.
4774 (struct tui_source_window) <style_changed>: New method.
4775 <m_observable>: New member.
4776
4777 2019-07-17 Tom Tromey <tom@tromey.com>
4778
4779 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
4780 * tui/tui-win.c (tui_resize_all): Fix typo.
4781
4782 2019-07-17 Tom Tromey <tom@tromey.com>
4783
4784 * tui/tui-wingeneral.h (tui_refresh_all): Update.
4785 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
4786 (tui_refresh_all): Remove "list" parameter. Use foreach.
4787 * tui/tui-win.c (window_name_completer): Use foreach.
4788 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
4789 (update_tab_width): Likewise.
4790 * tui/tui-layout.c (show_layout): Update.
4791 * tui/tui-data.h (class tui_window_iterator): New.
4792 (struct all_tui_windows): New.
4793 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
4794
4795 2019-07-17 Tom Tromey <tom@tromey.com>
4796
4797 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
4798 parameter. Don't reference globals.
4799 (tui_reg_command): Update.
4800
4801 2019-07-17 Tom Tromey <tom@tromey.com>
4802
4803 * tui/tui-regs.c (tui_show_registers): Simplify.
4804
4805 2019-07-17 Tom Tromey <tom@tromey.com>
4806
4807 * tui/tui-regs.c (tui_show_registers): Update.
4808 (tui_show_register_group): Add win_info parameter.
4809
4810 2019-07-17 Tom Tromey <tom@tromey.com>
4811
4812 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
4813 Rename from tui_display_reg_element_at_line.
4814 (tui_data_window::display_registers_from_line): Update.
4815 * tui/tui-data.h (struct tui_data_window)
4816 <display_reg_element_at_line>: New method.
4817
4818 2019-07-17 Tom Tromey <tom@tromey.com>
4819
4820 * tui/tui-regs.h (tui_display_registers_from)
4821 (tui_display_registers_from_line): Don't declare.
4822 * tui/tui-windata.c (tui_data_window::display_all_data)
4823 (tui_data_window::refresh_all)
4824 (tui_data_window::do_scroll_vertical): Update.
4825 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
4826 from tui_display_registers_from.
4827 (tui_display_reg_element_at_line): Update.
4828 (tui_data_window::display_registers_from_line): Rename from
4829 tui_display_registers_from_line.
4830 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
4831 display_registers_from_line>: New methods.
4832
4833 2019-07-17 Tom Tromey <tom@tromey.com>
4834
4835 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
4836 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
4837 from tui_erase_data_content.
4838 (tui_data_window::display_all_data)
4839 (tui_data_window::refresh_all)
4840 (tui_data_window::do_scroll_vertical): Update.
4841 * tui/tui-regs.c (tui_show_registers): Update.
4842 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
4843 New method.
4844
4845 2019-07-17 Tom Tromey <tom@tromey.com>
4846
4847 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
4848 declare.
4849 * tui/tui-windata.c
4850 (tui_data_window::delete_data_content_windows): Rename from
4851 tui_delete_data_content_windows.
4852 (tui_data_window::display_all_data)
4853 (tui_data_window::do_scroll_vertical): Update.
4854 * tui/tui-data.h (struct tui_data_window)
4855 <delete_data_content_windows>: New method.
4856
4857 2019-07-17 Tom Tromey <tom@tromey.com>
4858
4859 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
4860 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
4861
4862 2019-07-17 Tom Tromey <tom@tromey.com>
4863
4864 * tui/tui-windata.h (tui_display_all_data): Don't declare.
4865 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
4866 from tui_display_all_data.
4867 * tui/tui-win.c
4868 (tui_data_window::do_make_visible_with_new_height): Update.
4869 * tui/tui-regs.c (tui_show_registers): Update.
4870 * tui/tui-layout.c (tui_set_layout): Update.
4871 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
4872 method.
4873
4874 2019-07-17 Tom Tromey <tom@tromey.com>
4875
4876 * tui/tui-windata.h (tui_display_data_from): Don't declare.
4877 * tui/tui-windata.c (tui_display_data_from): Remove.
4878 (tui_data_window::refresh_all): Update.
4879
4880 2019-07-17 Tom Tromey <tom@tromey.com>
4881
4882 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
4883 * tui/tui-windata.c (tui_display_data_from_line): Remove.
4884 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
4885 tui_display_registers_from_line.
4886 * tui/tui-regs.h (tui_display_registers_from_line): Update.
4887 * tui/tui-regs.c (tui_display_registers_from_line): Remove
4888 "force_display" parameter.
4889
4890 2019-07-17 Tom Tromey <tom@tromey.com>
4891
4892 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
4893 declare.
4894 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
4895 Rename from tui_first_reg_element_no_inline.
4896 (tui_display_reg_element_at_line)
4897 (tui_display_registers_from_line): Update.
4898 * tui/tui-data.h (struct tui_data_window)
4899 <first_reg_element_no_inline>: New method.
4900
4901 2019-07-17 Tom Tromey <tom@tromey.com>
4902
4903 * tui/tui-windata.c (tui_display_data_from)
4904 (tui_data_window::do_scroll_vertical): Update.
4905 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
4906 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
4907 Rename from tui_line_from_reg_element_no.
4908 (tui_display_registers_from_line): Update.
4909 * tui/tui-data.h (struct tui_data_window)
4910 <line_from_reg_element_no>: New method.
4911
4912 2019-07-17 Tom Tromey <tom@tromey.com>
4913
4914 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
4915 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
4916 tui_last_regs_line_no.
4917 (tui_display_reg_element_at_line)
4918 (tui_display_registers_from_line): Update.
4919 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
4920 method.
4921
4922 2019-07-17 Tom Tromey <tom@tromey.com>
4923
4924 PR tui/24722:
4925 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
4926 (tui_update_breakpoint_info): Add "being_deleted" parameter.
4927 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
4928 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
4929 (tui_update_breakpoint_info): Likewise.
4930 * tui/tui-hooks.c (tui_event_create_breakpoint)
4931 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
4932 Update.
4933
4934 2019-07-17 Tom Tromey <tom@tromey.com>
4935
4936 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
4937
4938 2019-07-17 Tom Tromey <tom@tromey.com>
4939
4940 * tui/tui-winsource.c (tui_update_source_window_as_is)
4941 (tui_update_source_windows_with_addr): Update.
4942 * tui/tui-source.h (tui_set_source_content)
4943 (tui_show_symtab_source): Add "win_info" parameter.
4944 * tui/tui-source.c (tui_set_source_content): Add "win_info"
4945 parameter.
4946 (tui_show_symtab_source): Likewise.
4947
4948 2019-07-17 Tom Tromey <tom@tromey.com>
4949
4950 * tui/tui-wingeneral.c
4951 (tui_check_and_display_highlight_if_needed): Check can_highlight.
4952
4953 2019-07-17 Tom Tromey <tom@tromey.com>
4954
4955 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
4956 (struct tui_cmd_window) <can_scroll>: New method.
4957 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
4958 method.
4959
4960 2019-07-17 Tom Tromey <tromey@adacore.com>
4961
4962 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
4963 do_field_signed>: Rename. Change type of "value".
4964 * ui-out.c (ui_out::field_signed): Rename from field_int.
4965 Change type of "value".
4966 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
4967 type of "value".
4968 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
4969 do_field_int. Change type of "value".
4970 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
4971 do_field_int. Change type of "value".
4972 * tracepoint.c (trace_status_mi, tfind_1)
4973 (print_one_static_tracepoint_marker): Update.
4974 * thread.c (print_thread_info_1, print_selected_thread_frame):
4975 Update.
4976 * stack.c (print_frame, print_frame_info): Update.
4977 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
4978 Update.
4979 * source.c (print_source_lines_base): Update.
4980 * skip.c (info_skip_command): Update.
4981 * record-btrace.c (btrace_ui_out_decode_error)
4982 (btrace_call_history_src_line): Update.
4983 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
4984 Update.
4985 * progspace.c (print_program_space): Update.
4986 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
4987 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
4988 do_field_int. Change type of "value".
4989 * mi/mi-out.c (mi_ui_out::do_table_begin)
4990 (mi_ui_out::do_table_header): Update.
4991 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
4992 type of "value".
4993 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
4994 (mi_cmd_data_list_changed_registers, output_register)
4995 (mi_cmd_data_read_memory, mi_load_progress)
4996 (mi_cmd_trace_frame_collected): Update.
4997 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
4998 Update.
4999 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
5000 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
5001 (mi_cmd_var_list_children, varobj_update_one): Update.
5002 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
5003 (mi_cmd_stack_list_args, list_arg_or_local): Update.
5004 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
5005 * inferior.c (print_inferior): Update.
5006 * gdb_bfd.c (print_one_bfd): Update.
5007 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5008 Update.
5009 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
5010 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
5011 do_field_int. Change type of "value".
5012 * cli-out.c (cli_ui_out::do_field_signed): Rename from
5013 do_field_int. Change type of "value".
5014 * breakpoint.c (watchpoint_check, print_breakpoint_location)
5015 (print_one_breakpoint_location, print_it_catch_fork)
5016 (print_one_catch_fork, print_it_catch_vfork)
5017 (print_one_catch_vfork, print_it_catch_solib)
5018 (print_it_catch_exec, print_it_ranged_breakpoint)
5019 (print_mention_watchpoint, print_mention_masked_watchpoint)
5020 (bkpt_print_it, update_static_tracepoint): Update.
5021 * break-catch-throw.c (print_it_exception_catchpoint): Update.
5022 * break-catch-syscall.c (print_it_catch_syscall): Update.
5023 * ada-tasks.c (print_ada_task_info): Update.
5024 * ada-lang.c (print_it_exception, print_mention_exception):
5025 Update.
5026
5027 2019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
5028
5029 PR breakpoints/24541
5030 * gdbarch.c: Regenerate.
5031 * gdbarch.h: Regenerate.
5032 * gdbarch.sh: Adjust return type and parameter types for
5033 'stap_adjust_register'.
5034 (i386_stap_adjust_register): Adjust signature and return new
5035 register name.
5036 * stap-probe.c (stap_parse_register_operand): Adjust use of
5037 'gdbarch_stap_adjust_register'.
5038
5039 2019-07-17 Tom Tromey <tromey@adacore.com>
5040
5041 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
5042 declare VEC.
5043 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
5044 std::vector.
5045 (struct s390_process_info): Add initializers.
5046 (s390_add_process): Use new.
5047 (s390_linux_nat_target::low_forget_process): Use delete.
5048 (s390_linux_nat_target::low_new_fork)
5049 (s390_linux_nat_target::stopped_by_watchpoint)
5050 (s390_linux_nat_target::low_prepare_to_resume)
5051 (s390_linux_nat_target::insert_watchpoint)
5052 (s390_linux_nat_target::insert_hw_breakpoint)
5053 (s390_linux_nat_target::remove_watchpoint)
5054 (s390_linux_nat_target::remove_hw_breakpoint): Update.
5055
5056 2019-07-16 John Baldwin <jhb@FreeBSD.org>
5057
5058 * aarch64-fbsd-nat.c: Include regcache.h.
5059 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
5060 argument.
5061 (aarch64_fbsd_nat_target::fetch_registers)
5062 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
5063 variable.
5064 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
5065
5066 2019-07-16 John Baldwin <jhb@FreeBSD.org>
5067
5068 * fbsd-nat.c: Include gdbarch.h.
5069
5070 2019-07-15 Tom Tromey <tromey@adacore.com>
5071
5072 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
5073
5074 2019-07-15 Tom Tromey <tromey@adacore.com>
5075
5076 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
5077 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
5078 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
5079 * cli-out.c (cli_ui_out::do_field_int): New method.
5080 * ui-out.c (ui_out::field_unsigned): New method.
5081 * symfile.c (generic_load): Use field_unsigned.
5082 (print_transfer_performance): Likewise.
5083 * record-btrace.c (ui_out_field_uint): Remove.
5084 (btrace_call_history_insn_range, btrace_call_history): Use
5085 field_unsigned.
5086 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
5087 field_unsigned.
5088 * ui-out.h (class ui_out) <field_unsigned>: New method.
5089 <do_field_unsigned>: Likewise.
5090
5091 2019-07-15 Tom Tromey <tromey@adacore.com>
5092
5093 * mi/mi-main.c (list_available_thread_groups): Use field_string.
5094 * mi/mi-interp.c (mi_memory_changed): Use field_string.
5095 * target.c (flash_erase_command): Use field_string.
5096 * infrun.c (print_signal_received_reason): Use field_string.
5097 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
5098 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
5099 field_string.
5100 * ada-tasks.c (print_ada_task_info): Use field_string.
5101
5102 2019-07-15 Tom Tromey <tromey@adacore.com>
5103
5104 * target.c (flash_erase_command): Use field_core_addr.
5105 * symfile.c (generic_load): Use field_core_addr.
5106 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
5107 Use field_core_addr.
5108 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
5109 field_core_addr.
5110
5111 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5112
5113 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
5114 value if its desired type is smaller than a CORE_ADDR and signed.
5115
5116 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5117
5118 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
5119 of changes to field names, and use new is_reference field to
5120 decide if a property is a reference or not.
5121 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
5122 field.
5123 (struct dwarf2_property_baton): Update header comment, rename
5124 'referenced_type' to 'property_type' and update comments.
5125 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
5126 default property type, store in property baton, update to take
5127 accound of renamed field.
5128 (read_func_scope): Update call to attr_to_dynamic_prop.
5129 (read_array_type): Likewise.
5130 (dwarf2_per_cu_addr_sized_int_type): New function.
5131 (read_subrange_index_type): Move type finding code to
5132 dwarf2_per_cu_addr_sized_int_type.
5133 (read_subrange_type): Update calls to attr_to_dynamic_prop.
5134 (dwarf2_per_cu_addr_type): New function.
5135 (set_die_type): Update calls to attr_to_dynamic_prop.
5136
5137 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5138
5139 * dwarf2read.c (read_subrange_index_type): New function.
5140 (read_subrange_type): Move code into new function and call it.
5141 * gdbtypes.c (create_range_type): Add some asserts.
5142
5143 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5144
5145 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
5146 update return statements.
5147 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
5148 declaration, and update comment to match.
5149 * gdbtypes.c (resolve_dynamic_array): Update call to
5150 dwarf2_evaluate_property to match new return type.
5151
5152 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5153
5154 * valarith.c (value_subscripted_rvalue): Change lowerbound
5155 parameter type from int to LONGEST.
5156 * value.h (value_subscripted_rvalue): Likewise in declaration.
5157
5158 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
5159
5160 * cli/cli-utils.c (info_print_command_completer): New function.
5161 * cli/cli-utils.h: Add 'completer.h' include, and forward
5162 declaration for 'struct cmd_list_element'.
5163 (info_print_command_completer): Declare.
5164 * stack.c (_initialize_stack): Add completer for 'info locals' and
5165 'info args'.
5166 * symtab.c (_initialize_symtab): Add completer for 'info
5167 variables' and 'info functions'.
5168 * NEWS: Mention completion for additional info commands.
5169
5170 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
5171
5172 * cli/cli-utils.c (extract_info_print_args): Delete.
5173 (extract_arg_maybe_quoted): Delete.
5174 (info_print_options_defs): New variable.
5175 (make_info_print_options_def_group): New function.
5176 (extract_info_print_options): Define new function.
5177 * cli/cli-utils.h (extract_info_print_args): Delete.
5178 (struct info_print_options): New structure.
5179 (extract_info_print_options): Declare new function.
5180 * stack.c (info_locals_command): Update to use new
5181 extract_info_print_options, also add a header comment.
5182 (info_args_command): Likewise.
5183 * symtab.c (info_variables_command): Likewise.
5184 (info_functions_command): Likewise.
5185
5186 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
5187
5188 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
5189 to extract string arguments.
5190 * common/common-utils.c (extract_string_maybe_quoted): New function.
5191 * common/common-utils.h (extract_string_maybe_quoted): Declare.
5192
5193 2019-07-11 Tom Tromey <tromey@adacore.com>
5194
5195 * main.c (get_init_files): Use GDBINIT, not gdbinit.
5196 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
5197 * top.h (gdbinit): Don't declare.
5198 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
5199 into...
5200 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
5201 * top.c (gdb_init): Don't call init_cli_cmds.
5202 (gdbinit): Remove.
5203 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
5204
5205 2019-07-11 Tom Tromey <tromey@adacore.com>
5206
5207 * python/py-inferior.c (add_thread_object): Don't use thread_obj
5208 after it has been moved.
5209
5210 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
5211
5212 * valops.c (value_must_coerce_to_target): Change return type to
5213 bool.
5214 * value.h (value_must_coerce_to_target): Likewise.
5215
5216 2019-07-10 Simon Marchi <simon.marchi@efficios.com>
5217
5218 * breakpoint.c (is_hardware_watchpoint): Remove
5219 forward-declaration.
5220 (is_masked_watchpoint): Change return type to bool.
5221 (is_tracepoint): Likewise.
5222 (is_breakpoint): Likewise.
5223 (is_hardware_watchpoint): Likewise.
5224 (is_watchpoint): Likewise.
5225 (is_no_memory_software_watchpoint): Likewise.
5226 (is_catchpoint): Likewise.
5227 (breakpoint_1): Make FILTER parameter's return type bool.
5228 is_masked_watchpoint): Change return type to bool.
5229 (save_breakpoints): Make FILTER parameter's return type bool.
5230 * breakpoint.h (is_breakpoint): Change return type to bool.
5231 (is_watchpoint): Likewise.
5232 (is_catchpoint): Likewise.
5233 (is_tracepoint): Likewise.
5234
5235 2019-07-10 Tom Tromey <tom@tromey.com>
5236
5237 * defs.h: Don't include gdbarch.h.
5238 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
5239 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
5240 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
5241 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
5242 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
5243 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
5244 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
5245 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
5246 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
5247 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
5248 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
5249 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
5250 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
5251 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
5252 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
5253 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
5254 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
5255 record-btrace.c, record.h, regcache-dump.c, regcache.h,
5256 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
5257 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
5258 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
5259 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
5260 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
5261 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
5262 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
5263 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
5264 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
5265
5266 2019-07-10 Tom Tromey <tromey@adacore.com>
5267
5268 * ada-lang.h (is_ada_exception_catchpoint): Declare.
5269 * breakpoint.c (init_ada_exception_breakpoint): Register as
5270 bp_catchpoint.
5271 (print_one_breakpoint_location, print_one_breakpoint): Use
5272 is_ada_exception_catchpoint.
5273 * ada-lang.c (class ada_catchpoint_location): Pass
5274 bp_loc_software_breakpoint to bp_location constructor.
5275 (is_ada_exception_catchpoint): New function.
5276
5277 2019-07-10 Tom Tromey <tromey@adacore.com>
5278
5279 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
5280 VEC.
5281 (struct arm_exidx_entry): New method operator<.
5282 (struct arm_exidx_data) <section_maps>: Change type.
5283 (arm_exidx_data_free): Remove.
5284 (arm_exidx_data_key): Change type. Move lower.
5285 (arm_exidx_new_objfile): Update.
5286 (arm_compare_exidx_entries): Remove.
5287 (arm_find_exidx_entry, _initialize_arm_tdep)
5288
5289 2019-07-10 Tom Tromey <tromey@adacore.com>
5290
5291 * solib-spu.c (ocl_program_data_key): Change type.
5292 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
5293 Update.
5294
5295 2019-07-10 Tom Tromey <tromey@adacore.com>
5296
5297 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
5298 (struct solib_aix_inferior_data) <library_list>: Change type.
5299 (solib_aix_inferior_data_handle): Change type.
5300 (get_solib_aix_inferior_data): Update.
5301 (solib_aix_free_library_list): Remove.
5302 (library_list_start_library): Update.
5303 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
5304 return type.
5305 (solib_aix_get_library_list)
5306 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
5307 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
5308
5309 2019-07-10 Tom Tromey <tromey@adacore.com>
5310
5311 * solib-dsbt.c (struct dsbt_info): Add initializers.
5312 (solib_dsbt_pspace_data): Change type.
5313 (dsbt_pspace_data_cleanup): Remove.
5314 (get_dsbt_info, _initialize_dsbt_solib): Update.
5315
5316 2019-07-10 Tom Tromey <tromey@adacore.com>
5317
5318 * spu-tdep.c (spu_overlay_data): Change type.
5319 (spu_get_overlay_table, spu_overlay_new_objfile)
5320 (_initialize_spu_tdep): Update.
5321
5322 2019-07-10 Tom Tromey <tromey@adacore.com>
5323
5324 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
5325 destructor.
5326 (dbx_objfile_data_key): Change type and declare later.
5327 (DBX_SYMFILE_INFO): Rewrite.
5328 * dbxread.c (dbx_objfile_data_key): Change type.
5329 (dbx_symfile_init): Update.
5330 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
5331 (coffstab_build_psymtabs, elfstab_build_psymtabs)
5332 (stabsect_build_psymtabs, _initialize_dbxread): Update.
5333
5334 2019-07-10 Tom Tromey <tromey@adacore.com>
5335
5336 * jit.c (jit_program_space_key): Change type. Move lower.
5337 (get_jit_program_space_data): Update.
5338 (jit_program_space_data_cleanup): Remove.
5339 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
5340 Update.
5341 (struct jit_program_space_data): Add initializers.
5342
5343 2019-07-10 Tom Tromey <tromey@adacore.com>
5344
5345 * solib-darwin.c (struct darwin_info): Add initializers.
5346 (solib_darwin_pspace_data): Change type.
5347 (darwin_pspace_data_cleanup): Remove.
5348 (get_darwin_info, _initialize_darwin_solib): Update.
5349
5350 2019-07-10 Tom Tromey <tromey@adacore.com>
5351
5352 * remote-sim.c (struct sim_inferior_data): Add initializers,
5353 constructor, and destructor.
5354 (sim_inferior_data_key): Change type. Move lower.
5355 (check_for_duplicate_sim_descriptor): Update.
5356 (get_sim_inferior_data): Use new. Update.
5357 (~sim_inferior_data_cleanup): Rename from
5358 sim_inferior_data_cleanup. Simplify.
5359 (gdbsim_close_inferior, simulator_command)
5360 (sim_command_completer, _initialize_remote_sim): Update.
5361 (next_pid, INITIAL_PID): Move earlier.
5362
5363 2019-07-10 Tom Tromey <tromey@adacore.com>
5364
5365 * python/python-internal.h (create_thread_object): Return
5366 gdbpy_ref.
5367 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
5368 * python/py-inferior.c (struct threadlist_entry): Add
5369 constructor.
5370 <thread_obj>: Now a gdbpy_ref.
5371 (thread_to_thread_object): Update.
5372 (add_thread_object): Use new.
5373 (delete_thread_object): Use delete.
5374 (infpy_threads): Update.
5375 (py_free_inferior): Update. Construct "inf_obj" after acquiring
5376 GIL.
5377
5378 2019-07-10 Tom Tromey <tromey@adacore.com>
5379
5380 * valops.c (value_cast): Specialize error message for Ada.
5381
5382 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
5383
5384 * breakpoint.c (breakpoint_1): Update doc and parameter names.
5385
5386 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
5387
5388 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
5389 bpstat_should_step): Return bool, adjust comments.
5390 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
5391 bpstat_should_step): Likewise.
5392
5393 2019-07-10 Alan Hayward <alan.hayward@arm.com>
5394
5395 * features/Makefile: Use feature target descriptions for Arm.
5396 * features/arm/arm-core.c: Generate new file.
5397 * features/arm/arm-fpa.c: Likewise.
5398 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
5399 * features/arm/arm-m-profile.c: Likewise.
5400 * features/arm/arm-vfpv2.c: Likewise.
5401 * features/arm/arm-vfpv3.c: Likewise.
5402 * features/arm/xscale-iwmmxt.c: Likewise.
5403 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
5404
5405 2019-07-10 Alan Hayward <alan.hayward@arm.com>
5406
5407 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
5408 ptrace earlier.
5409
5410 2019-07-10 Alan Hayward <alan.hayward@arm.com>
5411
5412 * features/aarch64-pauth.c: Regenerate.
5413
5414 2019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
5415
5416 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
5417 bool.
5418 (bpstat_what): Use false instead of 0.
5419
5420 2019-07-09 Pedro Alves <palves@redhat.com>
5421
5422 * break-catch-throw.c (is_exception_catchpoint): New.
5423 * breakpoint.c (print_one_breakpoint_location): New parameter
5424 'raw_loc'. Handle it. Use
5425 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
5426 looking at the breakpoint's type.
5427 (print_one_breakpoint): If handling "maint info breakpoints", also
5428 print locations of exception catchpoints.
5429 * breakpoint.h (is_exception_catchpoint): Declare.
5430
5431 2019-07-09 Pedro Alves <palves@redhat.com>
5432
5433 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
5434 "addr" field.
5435 (allocate_location_exception_catchpoint): New.
5436 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
5437 (initialize_throw_catchpoint_ops): Install
5438 allocate_location_exception_catchpoint as allocate_location
5439 method.
5440 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
5441 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
5442 bp_loc_other.
5443 (breakpoint_address_is_meaningful): Delete.
5444 (bl_address_is_meaningful): New.
5445 (breakpoint_locations_match): Adjust comment.
5446 (bp_location_from_bp_type): New, factored out of...
5447 (bp_location::bp_location(breakpoint *)): ... this.
5448 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
5449 factored out of...
5450 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
5451 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
5452 breakpoint_address_is_meaningful.
5453 (bp_locations_compare): Adjust comment.
5454 (update_global_location_list): Use bl_address_is_meaningful
5455 instead of breakpoint_address_is_meaningful.
5456 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
5457 explicit.
5458 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
5459 * python/py-breakpoint.c (bppy_get_location): No longer check
5460 whether location is null.
5461
5462 2019-07-09 Pedro Alves <palves@redhat.com>
5463
5464 PR c++/15468
5465 * breakpoint.c (print_one_breakpoint_location): Remove
5466 single-location assert.
5467
5468 2019-07-09 Tom Tromey <tom@tromey.com>
5469
5470 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
5471 * configure: Rebuild.
5472 * configure.ac: Change common to gdbsupport.
5473 * gdbsupport: Rename from common.
5474 * acinclude.m4: Change common to gdbsupport.
5475 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
5476 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
5477 gdbsupport.
5478 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
5479 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
5480 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
5481 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
5482 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
5483 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
5484 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
5485 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
5486 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
5487 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
5488 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
5489 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
5490 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
5491 coff-pe-read.c, command.h, compile/compile-c-support.c,
5492 compile/compile-c.h, compile/compile-cplus-symbols.c,
5493 compile/compile-cplus-types.c, compile/compile-cplus.h,
5494 compile/compile-loc2c.c, compile/compile.c, completer.c,
5495 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
5496 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
5497 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
5498 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
5499 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
5500 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
5501 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
5502 features/aarch64-core.c, features/aarch64-fpu.c,
5503 features/aarch64-pauth.c, features/aarch64-sve.c,
5504 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
5505 features/i386/32bit-core.c, features/i386/32bit-linux.c,
5506 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
5507 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
5508 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
5509 features/i386/64bit-core.c, features/i386/64bit-linux.c,
5510 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
5511 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
5512 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
5513 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
5514 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
5515 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
5516 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
5517 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
5518 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
5519 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
5520 go32-nat.c, guile/guile.c, guile/scm-ports.c,
5521 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
5522 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
5523 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
5524 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
5525 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
5526 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
5527 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
5528 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
5529 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
5530 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
5531 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
5532 minsyms.c, mips-linux-tdep.c, namespace.h,
5533 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
5534 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
5535 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
5536 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
5537 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
5538 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
5539 nat/linux-waitpid.c, nat/mips-linux-watch.c,
5540 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
5541 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
5542 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
5543 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
5544 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
5545 procfs.c, producer.c, progspace.h, psymtab.h,
5546 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
5547 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
5548 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
5549 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
5550 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
5551 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
5552 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
5553 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
5554 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
5555 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
5556 target-memory.c, target.c, target.h, target/waitstatus.c,
5557 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
5558 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
5559 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
5560 unittests/array-view-selftests.c,
5561 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
5562 unittests/common-utils-selftests.c,
5563 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
5564 unittests/format_pieces-selftests.c,
5565 unittests/function-view-selftests.c,
5566 unittests/lookup_name_info-selftests.c,
5567 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
5568 unittests/mkdir-recursive-selftests.c,
5569 unittests/observable-selftests.c,
5570 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
5571 unittests/parse-connection-spec-selftests.c,
5572 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
5573 unittests/scoped_fd-selftests.c,
5574 unittests/scoped_mmap-selftests.c,
5575 unittests/scoped_restore-selftests.c,
5576 unittests/string_view-selftests.c, unittests/style-selftests.c,
5577 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
5578 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
5579 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
5580 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
5581 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
5582 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
5583
5584 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5585
5586 * linespec.c (decode_digits_list_mode): Set explicit_line to a
5587 bool value.
5588 (decode_digits_ordinary): Set explicit_line field in sal.
5589 * symtab.c (skip_prologue_sal): Don't skip prologue for a
5590 symtab_and_line that was set on an explicit line number in
5591 assembler code. Do always update the recorded symtab and line if
5592 we do skip the prologue.
5593
5594 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5595
5596 * breakpoint.c (set_breakpoint_location_function): Remove
5597 explicit_loc parameter.
5598 (momentary_breakpoint_from_master): Update call to
5599 set_breakpoint_location_function.
5600 (add_location_to_breakpoint): Likewise.
5601
5602 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5603
5604 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
5605 required features based on default bfd type when no specific bfd
5606 is present.
5607
5608 2019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5609
5610 * NEWS: Mention that GDB printf and eval commands can now print
5611 C-style and Ada-style convenience var strings without
5612 calling the inferior.
5613 * printcmd.c (printf_c_string): Locally print GDB internal var
5614 instead of transiting via the inferior.
5615 (printf_wide_c_string): Likewise.
5616
5617 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5618
5619 PR breakpoints/25011
5620 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
5621
5622 2019-07-04 Tom Tromey <tom@tromey.com>
5623
5624 PR tui/24724:
5625 * tui/tui-winsource.c (tui_clear_source_content): Update.
5626 (tui_source_window_base::set_is_exec_point_at): Fix comment.
5627 (tui_update_breakpoint_info): Update.
5628 (tui_set_exec_info_content): Update.
5629 * tui/tui-source.c (tui_set_source_content_nil): Update.
5630 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
5631 has_break.
5632 * tui/tui-data.h (enum tui_bp_flag): New.
5633 (tui_bp_flags): New enum flags type.
5634 (struct tui_source_element) <break_mode>: Change type. Rename
5635 from has_break.
5636 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
5637 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
5638 constants.
5639 * tui/tui-winsource.h: Fix comment.
5640
5641 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5642
5643 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
5644 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
5645 (store_fpregs_to_thread)
5646 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
5647 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
5648 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
5649 (IWMMXT_REGS_SIZE): Add define.
5650 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
5651 (fetch_vfp_regs, store_vfp_regs)
5652 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
5653 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
5654
5655 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5656
5657 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
5658 defines.
5659 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
5660 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
5661 (ARM_INT_REGISTER_SIZE): ...to this.
5662 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
5663 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
5664 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
5665 (arm_linux_collect_gregset, supply_nwfpe_register)
5666 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
5667 defines.
5668 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
5669 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
5670 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
5671 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
5672 (arm_return_in_memory, arm_store_return_value)
5673 (arm_get_longjmp_target, arm_register_g_packet_guesses)
5674 (arm_record_ld_st_multiple): Likewise.
5675 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
5676 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
5677
5678 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5679
5680 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
5681 AARCH64_DISPLACED_MODIFIED_INSNS.
5682 * aarch64-tdep.c (struct aarch64_displaced_step_data)
5683 (aarch64_displaced_step_copy_insn): Likewise.
5684 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
5685 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
5686 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
5687 ARM_DISPLACED_MODIFIED_INSNS.
5688 * arm-tdep.c (arm_gdbarch_init): Likewise.
5689 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
5690 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
5691 (struct arm_displaced_step_closure): Use
5692 ARM_DISPLACED_MODIFIED_INSNS.
5693
5694 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5695
5696 * features/Makefile: Remove unused xml files.
5697 * features/aarch64.xml: Remove.
5698 * features/i386/amd64-avx-avx512-linux.xml: Remove.
5699 * features/i386/amd64-avx-avx512.xml: Remove.
5700 * features/i386/amd64-avx-linux.xml: Remove.
5701 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
5702 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
5703 * features/i386/amd64-avx-mpx-linux.xml: Remove.
5704 * features/i386/amd64-avx-mpx.xml: Remove.
5705 * features/i386/amd64-avx.xml: Remove.
5706 * features/i386/amd64-linux.xml: Remove.
5707 * features/i386/amd64-mpx-linux.xml: Remove.
5708 * features/i386/amd64-mpx.xml: Remove.
5709 * features/i386/amd64.xml: Remove.
5710 * features/i386/i386-avx-avx512-linux.xml: Remove.
5711 * features/i386/i386-avx-avx512.xml: Remove.
5712 * features/i386/i386-avx-linux.xml: Remove.
5713 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
5714 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
5715 * features/i386/i386-avx-mpx-linux.xml: Remove.
5716 * features/i386/i386-avx-mpx.xml: Remove.
5717 * features/i386/i386-avx.xml: Remove.
5718 * features/i386/i386-linux.xml: Remove.
5719 * features/i386/i386-mmx-linux.xml: Remove.
5720 * features/i386/i386-mmx.xml: Remove.
5721 * features/i386/i386-mpx-linux.xml: Remove.
5722 * features/i386/i386-mpx.xml: Remove.
5723 * features/i386/i386.xml: Remove.
5724 * features/i386/x32-avx-avx512-linux.xml: Remove.
5725 * features/i386/x32-avx-linux.xml: Remove.
5726 * features/i386/x32-linux.xml: Remove.
5727
5728 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5729
5730 * regformats/aarch64.dat: Remove.
5731 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
5732 * regformats/i386/amd64-avx-linux.dat: Remove.
5733 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
5734 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
5735 * regformats/i386/amd64-linux.dat: Remove.
5736 * regformats/i386/amd64-mpx-linux.dat: Remove.
5737 * regformats/i386/amd64.dat: Remove.
5738 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
5739 * regformats/i386/i386-avx-linux.dat: Remove.
5740 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
5741 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
5742 * regformats/i386/i386-linux.dat: Remove.
5743 * regformats/i386/i386-mmx-linux.dat: Remove.
5744 * regformats/i386/i386-mpx-linux.dat: Remove.
5745 * regformats/i386/i386.dat: Remove.
5746 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
5747 * regformats/i386/x32-avx-linux.dat: Remove.
5748 * regformats/i386/x32-linux.dat: Remove.
5749
5750 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5751
5752 * aarch64-tdep.c: Remove xml self tests.
5753 * amd64-linux-tdep.c: Likewise.
5754 * amd64-tdep.c: Likewise.
5755 * i386-linux-tdep.c: Likewise.
5756 * i386-tdep.c: Likewise.
5757
5758 2019-07-03 Pedro Alves <palves@redhat.com>
5759
5760 PR cli/24732
5761 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
5762 (pipe_cmd_option_defs): New.
5763 (make_pipe_cmd_options_def_group): New.
5764 (pipe_command): Use gdb::option::process_options.
5765 (pipe_command_completer): New function.
5766 (_initialize_cli_cmds): Install completer for "pipe" command.
5767
5768 2019-07-03 Pedro Alves <palves@redhat.com>
5769
5770 * cli/cli-option.c (union option_value) <string>: New field.
5771 (struct option_def_and_value): Add ctor, move ctor, dtor and
5772 use DISABLE_COPY_AND_ASSIGN.
5773 (option_def_and_value::clear_value): New.
5774 (parse_option, save_option_value_in_ctx, get_val_type_str)
5775 (add_setshow_cmds_for_options): Handle var_string.
5776 * cli-option.h (union option_def::var_address) <string>: New
5777 field.
5778 (struct string_option_def): New.
5779 * maint-test-options.c (struct test_options_opts): Add default
5780 ctor and use DISABLE_COPY_AND_ASSIGN.
5781 <string_opt>: New field.
5782 (test_options_opts::~test_options_opts): New.
5783 (test_options_opts::dump): Also dump "-string".
5784 (test_options_option_defs): Install "string.
5785
5786 2019-07-03 Pedro Alves <palves@redhat.com>
5787
5788 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
5789 option_value with a null enumeration.
5790 (complete_options): Save the option values in the context.
5791 (save_option_value_in_ctx): New, factored out from ...
5792 (process_options): ... here.
5793 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
5794 of the function.
5795 * maint-test-options.c (test_options_opts::dump): New, factored
5796 out from ...
5797 (maintenance_test_options_command_mode): ... here.
5798 (maintenance_test_options_command_completion_result): Delete.
5799 (maintenance_test_options_command_completion_text): Update
5800 comment.
5801 (maintenance_show_test_options_completion_result): Change
5802 prototype. Just print
5803 maintenance_test_options_command_completion_text.
5804 (save_completion_result): New.
5805 (maintenance_test_options_completer_mode): Pass options context to
5806 complete_options, and then save a dump.
5807 (_initialize_maint_test_options): Use add_cmd to install "maint
5808 show test-options-completion-result".
5809
5810 2019-07-03 Pedro Alves <palves@redhat.com>
5811
5812 * NEWS (New commands): Mention "with" and "maint with".
5813 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
5814 (with_command, with_command_completer): New.
5815 (pipe_command): Adjust to new repeat_previous
5816 interface.
5817 (_initialize_cli_cmds): Install the "with" command and its "w"
5818 alias.
5819 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
5820 declarations.
5821 * cli/cli-setshow.c (parse_cli_var_uinteger)
5822 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
5823 argument strings for all var_types.
5824 (get_setshow_command_value_string): New, factored out from ...
5825 (do_show_command): ... this.
5826 * cli/cli-setshow.h: Include <string>.
5827 (get_setshow_command_value_string): Declare.
5828 * command.h (repeat_previous): Now returns const char *. Adjust
5829 comment.
5830 * maint.c: Include "cli/cli-cmds.h".
5831 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
5832 (_initialize_maint_cmds): Register the "maintenance with" command.
5833 * top.c (repeat_previous): Move bits from pipe_command here:
5834 Return the saved command line, if any; error out if there's no
5835 command to relaunch.
5836
5837 2019-07-03 Pedro Alves <palves@redhat.com>
5838
5839 * NEWS (New commands): Mention "maint set/show test-settings"
5840 instead of "maint test-settings".
5841 * maint-test-settings.c (maintenance_test_settings_list): Delete.
5842 (maintenance_test_settings_set_list): Rename to ...
5843 (maintenance_set_test_settings_list): ... this.
5844 (maintenance_test_settings_show_list): Rename to ...
5845 (maintenance_show_test_settings_list): ... this.
5846 (maintenance_test_settings_cmd): Delete.
5847 (maintenance_test_settings_set_cmd): ...
5848 (maintenance_set_test_settings_cmd): ... this.
5849 (maintenance_test_settings_show_cmd): ...
5850 (maintenance_show_test_settings_cmd): ... this.
5851 (maintenance_test_settings_show_value_cmd):
5852 (maintenance_show_test_settings_value_cmd): ... this.
5853 (_initialize_maint_test_settings): No longer install the "maint
5854 test-settings" prefix command. Rename "maint test-settings set"
5855 to "maint set test-settings", and "maint test-settings show" to
5856 "maint show test-settings". Adjust all subcommands.
5857
5858 2019-07-03 Pedro Alves <palves@redhat.com>
5859
5860 * maint-test-settings.c: Fix file's intro comment. Replace all
5861 references to "test-options" with references to "test-settings",
5862 in comments.
5863
5864 2019-07-03 Pedro Alves <palves@redhat.com>
5865
5866 * maint-test-settings.c (maintenance_test_settings_xxx)
5867 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
5868 New.
5869 (maintenance_test_settings_enums): Use them.
5870 (maintenance_test_settings_enum): Default to
5871 maintenance_test_settings_xxx.
5872 (_initialize_maint_test_settings): Initialize
5873 MAINTENANCE_TEST_SETTINGS_FILENAME.
5874
5875 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5876
5877 * breakpoint.h (remove_breakpoints_inf): Change return type to
5878 void, move function documentation here.
5879 * breakpoint.c (remove_breakpoints_inf): Change return type to
5880 void, move function documentation to header.
5881
5882 2019-07-02 Pedro Alves <palves@redhat.com>
5883
5884 * NEWS (Completion improvements): Mention "info threads".
5885 * thread.c (struct info_threads_opts, info_threads_option_defs)
5886 (make_info_threads_options_def_group): New.
5887 (info_threads_command): Use gdb::option::process_options.
5888 (info_threads_command_completer): New.
5889 (_initialize_thread): Use gdb::option::build_help to build the
5890 help text for "info threads".
5891
5892 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5893
5894 * defs.h (generic_load): Move from here...
5895 * symfile.h (generic_load): ... to here. Rename name parameter
5896 to args.
5897 * symfile.c (generic_load): Add comment.
5898
5899 2019-07-01 Tom Tromey <tromey@adacore.com>
5900
5901 * dwarf2read.c
5902 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
5903 declaration of without_params. Fix formatting.
5904
5905 2019-07-01 Tom Tromey <tromey@adacore.com>
5906
5907 * ada-exp.y (find_primitive_type): Update.
5908 * ada-lang.h (ada_lookup_symbol): Update.
5909 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
5910 parameter.
5911 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
5912
5913 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
5914
5915 PR breakpoints/24541
5916 * gdbarch.c: Regenerate.
5917 * gdbarch.h: Regenerate.
5918 * gdbarch.sh: Add 'stap_adjust_register'.
5919 * i386-tdep.c: Include '<unordered_set>'.
5920 (i386_stap_adjust_register): New function.
5921 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
5922 * stap-probe.c (stap_parse_register_operand): Call
5923 'gdbarch_stap_adjust_register'.
5924
5925 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
5926
5927 PR python/24742
5928 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
5929 * python/python.c (do_start_initialization): Use 'xmalloc'
5930 instead of 'PyMem_Malloc'.
5931
5932 2019-06-28 Tom Tromey <tromey@adacore.com>
5933
5934 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
5935 for Ada.
5936
5937 2019-06-27 Tom Tromey <tromey@adacore.com>
5938
5939 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
5940 objfile_key.
5941 (arm_find_mapping_symbol, arm_record_special_symbol)
5942 (_initialize_arm_tdep): Update.
5943 (arm_objfile_data_free): Remove.
5944
5945 2019-06-27 Tom Tromey <tromey@adacore.com>
5946
5947 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
5948 to cp_print_static_field.
5949
5950 2019-06-26 Tom Tromey <tromey@adacore.com>
5951
5952 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
5953 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
5954 declare.
5955
5956 2019-06-26 Alan Hayward <alan.hayward@arm.com>
5957
5958 * features/aarch64-core.c (create_feature_aarch64_core):
5959 Regenerate.
5960 * features/aarch64-core.xml: Add cpsr flags.
5961
5962 2019-06-26 Alan Hayward <alan.hayward@arm.com>
5963
5964 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
5965 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
5966
5967 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
5968
5969 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
5970 field.
5971 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
5972 use.
5973 (arm_record_special_symbol): Don't insert new symbol in sorted
5974 position, push it at the end.
5975
5976 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
5977
5978 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
5979 (arm_mapping_symbol_s): Remove.
5980 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
5981 (arm_mapping_symbol_vec): New typedef.
5982 (struct arm_per_objfile): Add constructor.
5983 <section_maps>: Change type to
5984 std::unique_ptr<arm_mapping_symbol_vec[]>.
5985 (arm_compare_mapping_symbols): Remove.
5986 (arm_find_mapping_symbol): Adjust to section_maps type change.
5987 (arm_objfile_data_free): Call delete on arm_per_objfile.
5988 (arm_record_special_symbol): Adjust to section_maps type change.
5989 Allocate arm_per_objfile with new.
5990
5991 2019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5992
5993 * cli/cli-cmds.c (alias_command): Compare the alias prefix
5994 with the command prefix.
5995
5996 2019-06-25 Tom Tromey <tom@tromey.com>
5997
5998 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
5999 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
6000
6001 2019-06-25 Tom Tromey <tom@tromey.com>
6002
6003 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
6004 type.
6005 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
6006 protected.
6007
6008 2019-06-25 Tom Tromey <tom@tromey.com>
6009
6010 * tui/tui-winsource.c
6011 (tui_source_window_base::set_is_exec_point_at): Add check against
6012 LOA_ADDRESS.
6013
6014 2019-06-25 Tom Tromey <tom@tromey.com>
6015
6016 * tui/tui-source.c (tui_set_source_content): Don't check before
6017 xfree.
6018 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
6019
6020 2019-06-25 Tom Tromey <tom@tromey.com>
6021
6022 * tui/tui-winsource.h (tui_update_source_window_as_is)
6023 (tui_alloc_source_buffer, tui_line_is_displayed)
6024 (tui_addr_is_displayed): Change type of win_info.
6025 * tui/tui-winsource.c (tui_update_source_window_as_is)
6026 (tui_clear_source_content, tui_show_source_line)
6027 (tui_show_source_content, tui_source_window_base::refill)
6028 (tui_source_window_base::set_is_exec_point_at)
6029 (tui_source_window_base::set_is_exec_point_at)
6030 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
6031 (tui_alloc_source_buffer, tui_line_is_displayed)
6032 (tui_addr_is_displayed): Change type of win_info. Update.
6033 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
6034 (tui_source_window_base::do_make_visible_with_new_height):
6035 Update.
6036 * tui/tui-source.c (tui_set_source_content)
6037 (tui_set_source_content_nil)
6038 (tui_source_window::do_scroll_vertical): Update.
6039 * tui/tui-layout.c (show_layout): Update.
6040 * tui/tui-disasm.c (tui_set_disassem_content)
6041 (tui_disasm_window::do_scroll_vertical): Update.
6042 * tui/tui-data.h (tui_win_content): Remove.
6043 (struct tui_gen_win_info) <content, content_size>: Remove.
6044 (struct tui_source_element): Add initializers and destructor.
6045 (union tui_which_element, struct tui_win_element): Remove.
6046 (struct tui_source_window_base) <content>: New field.
6047 (struct tui_data_window): Remove destructor.
6048 (tui_alloc_content, tui_free_win_content)
6049 (tui_free_all_source_wins_content): Don't declare.
6050 * tui/tui-data.c (tui_initialize_static_data): Update.
6051 (init_content_element, tui_alloc_content): Remove.
6052 (~tui_gen_win_info): Update.
6053 (~tui_data_window, tui_free_all_source_wins_content)
6054 (tui_free_win_content, free_content, free_content_elements):
6055 Remove.
6056
6057 2019-06-25 Tom Tromey <tom@tromey.com>
6058
6059 * tui/tui-winsource.h (tui_clear_source_content)
6060 (tui_erase_source_content, tui_show_source_content): Change type
6061 of win_info.
6062 * tui/tui-winsource.c (tui_clear_source_content)
6063 (tui_erase_source_content, tui_show_source_content): Change type
6064 of win_info.
6065 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
6066 * tui/tui-source.h (tui_set_source_content_nil): Change type of
6067 win_info.
6068 * tui/tui-source.c (tui_set_source_content_nil): Change type of
6069 win_info.
6070 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
6071
6072 2019-06-25 Tom Tromey <tom@tromey.com>
6073
6074 * tui/tui-winsource.c (tui_clear_source_content)
6075 (tui_source_window_base::set_is_exec_point_at): Update.
6076 * tui/tui-source.c (tui_set_source_content_nil): Update.
6077 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
6078 a bool.
6079 * tui/tui-data.c (init_content_element): Update.
6080
6081 2019-06-25 Tom Tromey <tom@tromey.com>
6082
6083 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
6084 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
6085 * tui/tui-layout.c (init_and_make_win): Update.
6086 * tui/tui.h (enum tui_win_type): Update.
6087 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
6088 tui_win_is_auxillary.
6089 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
6090 tui_win_is_auxillary.
6091
6092 2019-06-25 Tom Tromey <tom@tromey.com>
6093
6094 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
6095 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
6096 (tui_delete_data_content_windows, tui_display_all_data)
6097 (tui_data_window::do_scroll_vertical, tui_display_data_from):
6098 Update.
6099 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
6100 * tui/tui-regs.c (tui_last_regs_line_no)
6101 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
6102 (tui_show_registers): Update.
6103 (tui_show_register_group): Return void. Update.
6104 (tui_display_registers_from, tui_display_reg_element_at_line)
6105 (tui_display_registers_from_line, tui_check_register_values):
6106 Update.
6107 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
6108 member.
6109 (struct tui_data_window) <regs_content>: Now a std::vector.
6110 <regs_content_count>: Remove.
6111 (tui_add_content_elements, tui_free_data_content): Don't declare.
6112 * tui/tui-data.c (tui_data_window::clear_detail): Update.
6113 (init_content_element): Remove DATA_WIN case. Add assert.
6114 (tui_add_content_elements): Remove.
6115 (tui_data_window): Update.
6116 (tui_free_data_content): Remove.
6117 (free_content_elements): Remove DATA_WIN case.
6118
6119 2019-06-25 Tom Tromey <tom@tromey.com>
6120
6121 * tui/tui-data.c (tui_data_item_window): Update.
6122 * tui/tui-windata.h (tui_check_data_values): Don't declare.
6123 * tui/tui-windata.c (tui_display_all_data)
6124 (tui_display_data_from_line): Update.
6125 (tui_check_data_values): Remove.
6126 * tui/tui-regs.c (tui_show_register_group)
6127 (tui_display_reg_element_at_line): Update.
6128 * tui/tui-hooks.c (tui_register_changed)
6129 (tui_refresh_frame_and_register_information): Call
6130 tui_check_register_values.
6131 * tui/tui-data.h (struct tui_data_window) <data_content,
6132 data_content_count, data_type>: Remove.
6133 (enum tui_data_type): Remove.
6134
6135 * tui/tui-data.c (tui_data_window::clear_detail)
6136 (~tui_data_window): Update.
6137
6138 2019-06-25 Tom Tromey <tom@tromey.com>
6139
6140 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
6141 declare.
6142 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
6143 Rename from tui_first_data_item_displayed. Update.
6144 (tui_data_window::refresh_all)
6145 (tui_data_window::do_scroll_vertical): Update.
6146 * tui/tui-data.h (struct tui_data_window)
6147 <first_data_item_displayed>: Declare new method.
6148
6149 2019-06-25 Tom Tromey <tom@tromey.com>
6150
6151 * tui/tui-data.h (tui_init_generic_part): Don't declare.
6152 * tui/tui-data.c (tui_init_generic_part): Remove, moving
6153 contents...
6154 (tui_initialize_static_data): ...here.
6155
6156 2019-06-25 Tom Tromey <tom@tromey.com>
6157
6158 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
6159 (tui_display_registers_from, tui_check_register_values): Update.
6160 (tui_display_register): Remove win_info parameter; update.
6161 (tui_get_register): Change type of parameters.
6162 * tui/tui-data.h (struct tui_data_element): Remove.
6163 (union tui_which_element) <data>: Remove.
6164 <data_window>: Change type.
6165 (struct tui_data_item_window): New.
6166 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
6167 case. Add assert.
6168 (~tui_data_item_window): New destructor.
6169 (free_content_elements): Remove DATA_ITEM_WIN case.
6170
6171 2019-06-25 Tom Tromey <tom@tromey.com>
6172
6173 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
6174 Remove.
6175
6176 2019-06-25 Tom Tromey <tom@tromey.com>
6177
6178 * tui/tui-data.h (struct tui_command_element): Remove.
6179 (union tui_which_element) <command>: Remove.
6180 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
6181 assert.
6182 (free_content_elements): Remove CMD_WIN case.
6183
6184 2019-06-25 Tom Tromey <tom@tromey.com>
6185
6186 * tui/tui-layout.c (tui_set_layout): Update.
6187 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
6188 * tui/tui-data.c (layout_def): Update.
6189
6190 2019-06-25 Tom Tromey <tom@tromey.com>
6191
6192 * tui/tui-wingeneral.c (tui_refresh_all): Update.
6193 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
6194 (tui_source_window_base::set_new_height): Update.
6195 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
6196 Update.
6197 (tui_set_locator_fullname, tui_set_locator_info)
6198 (tui_show_frame_info): Update.
6199 * tui/tui-source.c (tui_set_source_content)
6200 (tui_source_is_displayed): Update.
6201 * tui/tui-layout.c (show_source_disasm_command, show_data)
6202 (show_source_or_disasm_and_command): Update.
6203 * tui/tui-disasm.c (tui_set_disassem_content)
6204 (tui_get_begin_asm_address): Update.
6205 * tui/tui-data.h (struct tui_locator_element): Remove.
6206 (union tui_which_element) <locator>: Remove.
6207 (struct tui_locator_window): New.
6208 (tui_locator_win_info_ptr): Change return type.
6209 * tui/tui-data.c (_locator): Change type.
6210 (tui_locator_win_info_ptr): Change return type.
6211 (init_content_element): Remove LOCATOR_WIN case. Add assert.
6212 (tui_alloc_content): Add assert.
6213
6214 2019-06-25 Tom Tromey <tom@tromey.com>
6215
6216 * tui/tui-winsource.c
6217 (tui_exec_info_window::maybe_allocate_content): New method.
6218 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
6219 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
6220 (make_source_or_disasm_window): Add cast.
6221 * tui/tui-data.h (union tui_which_element) <simple_string>:
6222 Remove.
6223 (struct tui_source_info): New.
6224 (struct tui_source_window_base) <execution_info>: Change type.
6225 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
6226 case, and add assert.
6227 (tui_alloc_content): Add assert.
6228
6229 2019-06-25 Tom Tromey <tom@tromey.com>
6230
6231 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
6232 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
6233 * tui/tui-data.c (tui_alloc_win_info): Remove.
6234
6235 2019-06-25 Tom Tromey <tom@tromey.com>
6236
6237 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
6238 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
6239 can_highlight.
6240
6241 2019-06-25 Tom Tromey <tom@tromey.com>
6242
6243 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
6244 make_visible_with_new_height method.
6245 (tui_win_info::make_visible_with_new_height): New method.
6246 (tui_source_window_base::do_make_visible_with_new_height)
6247 (tui_data_window::do_make_visible_with_new_height)
6248 (tui_cmd_window::do_make_visible_with_new_height): New methods.
6249 (make_visible_with_new_height): Remove.
6250 (tui_resize_all, tui_adjust_win_heights): Use
6251 make_visible_with_new_height method.
6252 * tui/tui-data.h (struct tui_win_info)
6253 <do_make_visible_with_new_height, make_visible_with_new_height>:
6254 New methods.
6255 (struct tui_source_window_base, struct tui_data_window)
6256 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
6257 methods.
6258
6259 2019-06-25 Tom Tromey <tom@tromey.com>
6260
6261 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
6262 method.
6263 (update_tab_width): Call update_tab_width method.
6264 * tui/tui-data.h (struct tui_win_info)
6265 (struct tui_source_window_base) <update_tab_width>: New methods.
6266
6267 2019-06-25 Tom Tromey <tom@tromey.com>
6268
6269 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
6270 parameter.
6271 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
6272 parameter.
6273 (tui_gen_win_info::make_visible): Update.
6274 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
6275 parameter.
6276 * tui/tui-data.h (enum tui_box): New enum.
6277 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
6278
6279 2019-06-25 Tom Tromey <tom@tromey.com>
6280
6281 * tui/tui-layout.c (make_source_or_disasm_window): Always use
6282 init_and_make_win for EXEC_INFO_WIN.
6283 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
6284 longer inline.
6285 (struct tui_win_info) <~tui_win_info>: Inline.
6286 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
6287 Don't declare.
6288 * tui/tui-data.c (source_win, disasm_win): Remove globals.
6289 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
6290 Remove.
6291 (tui_initialize_static_data): Update.
6292 (~tui_gen_win_info): Handle more cleanup here.
6293 (~tui_source_window_base): Delete "execution_info".
6294 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
6295
6296 2019-06-25 Tom Tromey <tom@tromey.com>
6297
6298 * tui/tui-layout.c (make_command_window): Don't set
6299 can_highlight.
6300 (show_source_disasm_command): Call the reset method.
6301 (show_data): Don't set can_highlight. Call the reset method.
6302 (tui_gen_win_info::reset): Rename from init_gen_win_info
6303 (init_and_make_win): Simplify. Return tui_gen_win_info.
6304 (show_source_or_disasm_and_command): Call the reset method.
6305 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
6306 (struct tui_cmd_window): Set can_highlight.
6307
6308 2019-06-25 Tom Tromey <tom@tromey.com>
6309
6310 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
6311 from make_visible.
6312 (tui_make_visible, tui_make_invisible): Rewrite.
6313 (tui_win_info::make_visible): Remove.
6314 (tui_source_window_base::make_visible): Update.
6315 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
6316 method. Moved from...
6317 (struct tui_win_info) <make_visible>: ...here.
6318
6319 2019-06-25 Tom Tromey <tom@tromey.com>
6320
6321 * tui/tui-winsource.c
6322 (tui_source_window_base::do_scroll_horizontal): Remove direction
6323 parameter.
6324 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
6325 direction parameter.
6326 * tui/tui-win.c (tui_win_info::forward_scroll)
6327 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
6328 (tui_win_info::right_scroll): Update.
6329 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
6330 direction parameter.
6331 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
6332 direction parameter.
6333 * tui/tui-data.h (enum tui_scroll_direction): Remove.
6334 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
6335 Remove direction parameter.
6336 (struct tui_source_window_base, struct tui_source_window)
6337 (struct tui_disasm_window, struct tui_data_window)
6338 (struct tui_cmd_window): Update.
6339
6340 2019-06-25 Tom Tromey <tom@tromey.com>
6341
6342 * tui/tui-winsource.h (tui_set_exec_info_content)
6343 (tui_show_exec_info_content, tui_erase_exec_info_content)
6344 (tui_clear_exec_info_content, tui_update_exec_info): Change
6345 argument to tui_source_window_base.
6346 * tui/tui-winsource.c (tui_set_exec_info_content)
6347 (tui_show_exec_info_content, tui_erase_exec_info_content)
6348 (tui_clear_exec_info_content, tui_update_exec_info): Change
6349 argument to tui_source_window_base.
6350
6351 2019-06-25 Tom Tromey <tom@tromey.com>
6352
6353 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
6354 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
6355
6356 2019-06-25 Tom Tromey <tom@tromey.com>
6357
6358 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
6359 check.
6360
6361 2019-06-25 Tom Tromey <tom@tromey.com>
6362
6363 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
6364 type to void.
6365 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
6366 type to void.
6367 * tui/tui-source.c (tui_set_source_content): Update.
6368 * tui/tui-disasm.c (tui_set_disassem_content): Update.
6369
6370 2019-06-25 Tom Tromey <tom@tromey.com>
6371
6372 * tui/tui-win.c (window_name_completer, tui_set_focus)
6373 (tui_all_windows_info): Use name method.
6374 * tui/tui-data.h (struct tui_gen_win_info)
6375 (struct tui_source_window, struct tui_disasm_window)
6376 (struct tui_data_window, struct tui_cmd_window) <name>: New
6377 method.
6378 (tui_win_name): Don't declare.
6379 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
6380 (tui_win_name): Remove.
6381
6382 2019-06-25 Tom Tromey <tom@tromey.com>
6383
6384 * tui/tui-winsource.h (tui_update_source_window)
6385 (tui_update_source_window_as_is): Change parameter type.
6386 * tui/tui-winsource.c (tui_update_source_window): Change win_info
6387 to be a tui_source_window_base.
6388 (tui_update_source_window_as_is): Likewise.
6389 * tui/tui-win.c (make_visible_with_new_height): Update.
6390
6391 2019-06-25 Tom Tromey <tom@tromey.com>
6392
6393 * tui/tui-winsource.c (tui_erase_source_content)
6394 (tui_show_source_content, tui_show_exec_info_content)
6395 (tui_erase_exec_info_content): Use refresh_window method.
6396 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
6397 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
6398 from tui_refresh_win.
6399 (tui_data_window::refresh_window): New method.
6400 (tui_win_info::refresh, tui_source_window_base::refresh)
6401 (tui_refresh_all): Use refresh_window method.
6402 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
6403 method.
6404 * tui/tui-regs.c (tui_display_register): Call refresh_window
6405 method.
6406 * tui/tui-layout.c (show_source_disasm_command)
6407 (show_source_or_disasm_and_command): Call refresh_window method.
6408 * tui/tui-data.h (struct tui_gen_win_info)
6409 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
6410 New method.
6411
6412 2019-06-25 Tom Tromey <tom@tromey.com>
6413
6414 * tui/tui.c (tui_rl_other_window, tui_enable)
6415 (tui_is_window_visible, tui_get_command_dimension): Update.
6416 * tui/tui-winsource.c (tui_update_source_window_as_is)
6417 (tui_clear_source_content, tui_erase_source_content)
6418 (tui_show_source_line, tui_source_window_base::refill)
6419 (tui_source_window_base::do_scroll_horizontal)
6420 (tui_source_window_base::set_is_exec_point_at)
6421 (tui_update_breakpoint_info, tui_set_exec_info_content)
6422 (tui_alloc_source_buffer, tui_line_is_displayed)
6423 (tui_addr_is_displayed): Update.
6424 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
6425 (tui_check_and_display_highlight_if_needed)
6426 (tui_win_info::make_visible, tui_win_info::refresh)
6427 (tui_refresh_all): Update.
6428 * tui/tui-windata.c (tui_first_data_item_displayed)
6429 (tui_delete_data_content_windows, tui_erase_data_content)
6430 (tui_display_all_data, tui_data_window::refresh_all)
6431 (tui_check_data_values): Update.
6432 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
6433 (tui_set_win_focus_to, tui_win_info::forward_scroll)
6434 (tui_win_info::backward_scroll, tui_refresh_all_win)
6435 (tui_resize_all, tui_set_focus, tui_all_windows_info)
6436 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
6437 (tui_source_window_base::set_new_height)
6438 (tui_data_window::set_new_height)
6439 (make_invisible_and_set_new_height)
6440 (make_visible_with_new_height, new_height_ok)
6441 (parse_scrolling_args): Update.
6442 * tui/tui-stack.c (tui_show_frame_info): Update.
6443 * tui/tui-source.c (tui_set_source_content)
6444 (tui_set_source_content_nil, tui_source_is_displayed)
6445 (tui_source_window::do_scroll_vertical): Update.
6446 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
6447 (tui_display_registers_from, tui_display_reg_element_at_line)
6448 (tui_check_register_values, tui_reg_command): Update.
6449 * tui/tui-layout.c (tui_default_win_height)
6450 (show_source_disasm_command, show_data, init_and_make_win)
6451 (show_source_or_disasm_and_command): Update.
6452 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
6453 (tui_redisplay_readline, tui_mld_flush)
6454 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
6455 (tui_getc): Update.
6456 * tui/tui-disasm.c (tui_set_disassem_content)
6457 (tui_disasm_window::do_scroll_vertical): Update.
6458 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
6459 Now virtual.
6460 (struct tui_win_info): Derive from tui_gen_win_info.
6461 <~tui_win_info>: Mark as override.
6462 <generic>: Remove member.
6463 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
6464 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
6465 (~tui_data_window, ~tui_win_info)
6466 (tui_free_all_source_wins_content): Update.
6467 * tui/tui-command.c (tui_refresh_cmd_win): Update.
6468
6469 2019-06-25 Tom Tromey <tom@tromey.com>
6470
6471 * tui/tui-layout.c (init_and_make_win): Use new.
6472 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
6473 destructor, initializers.
6474 (tui_alloc_generic_win_info): Don't declare.
6475 * tui/tui-data.c (_locator): Add argument to constructor.
6476 (source_win, disasm_win): New globals.
6477 (exec_info): Remove.
6478 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
6479 Update.
6480 (tui_alloc_generic_win_info): Remove.
6481 (init_content_element): Use new.
6482 (tui_win_info::tui_win_info): Update.
6483 (free_content_elements) <case DATA_WIN>: Use delete.
6484
6485 2019-06-25 Tom Tromey <tom@tromey.com>
6486
6487 * tui/tui-wingeneral.c (tui_refresh_win): Update.
6488 * tui/tui-windata.c (tui_first_data_item_displayed)
6489 (tui_delete_data_content_windows): Update.
6490 * tui/tui-win.c (tui_data_window::set_new_height): Update.
6491 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
6492 (tui_display_registers_from, tui_check_register_values): Update.
6493 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
6494 pointer.
6495 * tui/tui-data.c (init_content_element): Update. Allocate the new
6496 window.
6497 (tui_free_data_content): Update.
6498 (free_content_elements) <case DATA_WIN>: Free the window.
6499
6500 2019-06-25 Tom Tromey <tom@tromey.com>
6501
6502 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
6503 Update.
6504 * tui/tui-layout.c (make_command_window)
6505 (show_source_disasm_command, show_data, init_and_make_win)
6506 (show_source_or_disasm_and_command): Update.
6507 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
6508 method.
6509 <can_highight, is_highlighted>: Now bool.
6510 (tui_set_win_highlight): Don't declare.
6511 * tui/tui-data.c (tui_set_win_highlight): Remove.
6512
6513 2019-06-25 Tom Tromey <tom@tromey.com>
6514
6515 * tui/tui-wingeneral.c (make_visible): Remove check of window
6516 type.
6517
6518 2019-06-25 Tom Tromey <tom@tromey.com>
6519
6520 * tui/tui-win.c (tui_win_info::max_height)
6521 (tui_cmd_window::max_height): New methods.
6522 (new_height_ok): Call max_height.
6523 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
6524 <max_height>: New method.
6525
6526 2019-06-25 Tom Tromey <tom@tromey.com>
6527
6528 * tui/tui-win.c (tui_source_window_base::set_new_height)
6529 (tui_data_window::set_new_height): New methods.
6530 (make_invisible_and_set_new_height): Call set_new_height method.
6531 * tui/tui-data.h (struct tui_win_info)
6532 (struct tui_source_window_base, struct tui_data_window)
6533 <set_new_height>: New method.
6534
6535 2019-06-25 Tom Tromey <tom@tromey.com>
6536
6537 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
6538 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
6539 tui_refresh_data_win.
6540 * tui/tui-win.c (tui_source_window_base::refresh_all): New
6541 method.
6542 (tui_refresh_all_win): Call the refresh_all method.
6543 (tui_set_focus): Likewise.
6544 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
6545 (struct tui_source_window_base, struct tui_data_window) <refresh>:
6546 Likewise.
6547
6548 2019-06-25 Tom Tromey <tom@tromey.com>
6549
6550 * tui/tui-winsource.h (tui_refill_source_window)
6551 (tui_set_is_exec_point_at): Don't declare.
6552 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
6553 (tui_source_window_base::refill): Rename from
6554 tui_refill_source_window.
6555 (tui_source_window_base::do_scroll_horizontal): Update.
6556 (tui_source_window_base::set_is_exec_point_at): Rename from
6557 tui_set_is_exec_point_at.
6558 (tui_update_all_breakpoint_info): Update.
6559 * tui/tui-stack.c (tui_show_frame_info): Update.
6560 * tui/tui-layout.c (show_data): Add cast.
6561 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
6562 * tui/tui-data.h (struct tui_source_window_base) <refill,
6563 set_is_exec_point_at>: New methods.
6564 (tui_source_windows, tui_add_to_source_windows): Update types.
6565 (tui_add_to_source_windows): Remove redundant declaration.
6566 * tui/tui-data.c (source_windows): Store tui_source_window_base.
6567 (tui_source_windows): Change return type.
6568 (tui_clear_source_windows_detail): Update.
6569 (tui_add_to_source_windows): Change type of parameter.
6570 (tui_free_all_source_wins_content): Update.
6571
6572 2019-06-25 Tom Tromey <tom@tromey.com>
6573
6574 * tui/tui-wingeneral.c (tui_win_info::refresh)
6575 (tui_source_window_base::refresh): New methods.
6576 (tui_refresh_all): Call the refresh method.
6577 * tui/tui-data.h (struct tui_win_info)
6578 (struct tui_source_window_base) <refresh>: New method.
6579
6580 2019-06-25 Tom Tromey <tom@tromey.com>
6581
6582 * tui/tui.h (tui_is_window_visible): Return bool.
6583 * tui/tui.c (tui_is_window_visible): Return bool.
6584 * tui/tui-wingeneral.c (tui_make_window, make_visible)
6585 (tui_make_visible, tui_make_invisible)
6586 (tui_win_info::make_visible)
6587 (tui_source_window_base::make_visible, make_all_visible)
6588 (tui_make_all_visible, tui_make_all_invisible): Update.
6589 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
6590 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
6591 bool.
6592 (struct tui_win_info, struct tui_source_window_base)
6593 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
6594 * tui/tui-data.c (tui_init_generic_part): Update.
6595
6596 2019-06-25 Tom Tromey <tom@tromey.com>
6597
6598 * tui/tui-wingeneral.c (tui_win_info::make_visible)
6599 (tui_source_window_base::make_visible): New methods.
6600 (make_all_visible): Make method call.
6601 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
6602 (struct tui_source_window_base, struct tui_cmd_window): Override
6603 make_visible.
6604 (tui_win_is_source_type): Don't declare.
6605 * tui/tui-data.c (tui_win_is_source_type): Remove.
6606
6607 2019-06-25 Tom Tromey <tom@tromey.com>
6608
6609 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
6610 NULL check.
6611
6612 2019-06-25 Tom Tromey <tom@tromey.com>
6613
6614 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
6615 Inline constructor. Add initializers for members.
6616 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
6617 constructors; now inline in class.
6618
6619 2019-06-25 Tom Tromey <tom@tromey.com>
6620
6621 * tui/tui-regs.c (tui_show_registers): Update.
6622 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
6623 bool.
6624 * tui/tui-data.c (tui_data_window::clear_detail)
6625 (tui_data_window): Update.
6626
6627 2019-06-25 Tom Tromey <tom@tromey.com>
6628
6629 * tui/tui-windata.c (tui_display_all_data)
6630 (tui_display_data_from_line, tui_display_data_from)
6631 (tui_check_data_values, tui_data_window::do_scroll_vertical):
6632 Update.
6633 * tui/tui-regs.c (tui_last_regs_line_no)
6634 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
6635 (tui_show_registers, tui_show_register_group)
6636 (tui_display_registers_from, tui_display_reg_element_at_line)
6637 (tui_display_registers_from_line, tui_check_register_values)
6638 (tui_reg_next, tui_reg_prev): Update.
6639 * tui/tui-layout.c (tui_set_layout, show_data): Update.
6640 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
6641 tui_data_window.
6642 (struct tui_win_info) <detail>: Remove. Add new fields from
6643 tui_data_info.
6644 (TUI_DATA_WIN): Add cast.
6645 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
6646 (~tui_data_window): Simplify.
6647
6648 2019-06-25 Tom Tromey <tom@tromey.com>
6649
6650 * tui/tui-layout.c (show_source_disasm_command)
6651 (show_source_or_disasm_and_command): Update.
6652 * tui/tui-io.c (update_cmdwin_start_line)
6653 (tui_redisplay_readline): Update.
6654 * tui/tui-data.h (struct tui_command_info): Remove.
6655 (struct tui_win_info) <detail>: Remove command_info member.
6656 (struct tui_data_window) <start_line>: New member, from
6657 tui_command_info.
6658 (TUI_CMD_WIN): Add casts.
6659
6660 2019-06-25 Tom Tromey <tom@tromey.com>
6661
6662 * tui/tui-winsource.c (tui_update_source_window)
6663 (tui_refill_source_window)
6664 (tui_source_window_base::do_scroll_horizontal)
6665 (tui_update_breakpoint_info, tui_set_exec_info_content)
6666 (tui_show_exec_info_content, tui_erase_exec_info_content)
6667 (tui_clear_exec_info_content): Update.
6668 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
6669 Update.
6670 * tui/tui-win.c (make_invisible_and_set_new_height)
6671 (make_visible_with_new_height): Update.
6672 * tui/tui-source.c (tui_set_source_content)
6673 (tui_show_symtab_source): Update.
6674 * tui/tui-layout.c (extract_display_start_addr)
6675 (show_source_disasm_command, show_data)
6676 (make_source_or_disasm_window)
6677 (show_source_or_disasm_and_command): Update.
6678 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
6679 (tui_disasm_window::do_scroll_vertical): Remove shadowing
6680 "gdbarch".
6681 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
6682 to tui_source_window_base.
6683 (struct tui_win_info) <detail>: Remove source_info member.
6684 (struct tui_source_window_base) <has_locator>: Inline.
6685 Move contents from tui_source_info; rename has_locator member to
6686 m_has_locator.
6687 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
6688 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
6689 header file.
6690 (tui_source_window_base::clear_detail, ~tui_source_window_base):
6691 Simplify.
6692 (tui_free_all_source_wins_content): Cast to
6693 tui_source_window_base.
6694
6695 2019-06-25 Tom Tromey <tom@tromey.com>
6696
6697 * tui/tui-win.c (make_invisible_and_set_new_height)
6698 (make_visible_with_new_height): Call has_locator method.
6699 * tui/tui-layout.c (show_source_disasm_command, show_data)
6700 (show_source_or_disasm_and_command): Update for bool change.
6701 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
6702 (tui_win_info) <has_locator>: New method.
6703 (struct tui_source_window_base) <has_locator>: New method.
6704 (tui_win_has_locator): Don't declare.
6705 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
6706 from tui_win_has_locator.
6707 (tui_source_window_base): Use false, not FALSE.
6708
6709 2019-06-25 Tom Tromey <tom@tromey.com>
6710
6711 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
6712 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
6713 clear_detail method directly.
6714 (tui_clear_win_detail): Remove.
6715
6716 2019-06-25 Tom Tromey <tom@tromey.com>
6717
6718 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
6719 "this", not TUI_DISASM_WIN.
6720
6721 2019-06-25 Tom Tromey <tom@tromey.com>
6722
6723 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
6724 declare.
6725 * tui/tui-winsource.c
6726 (tui_source_window_base::do_scroll_horizontal): Rename from
6727 tui_horizontal_source_scroll.
6728 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
6729 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
6730 from tui_vertical_data_scroll.
6731 * tui/tui-win.h (tui_scroll): Don't declare.
6732 * tui/tui-win.c (tui_win_info::forward_scroll)
6733 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
6734 (tui_win_info::right_scroll): Rename and update.
6735 (tui_scroll_forward_command, tui_scroll_backward_command)
6736 (tui_scroll_left_command, tui_scroll_right_command): Update.
6737 (tui_scroll): Remove.
6738 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
6739 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
6740 from tui_vertical_source_scroll.
6741 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
6742 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
6743 from tui_vertical_disassem_scroll.
6744 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
6745 do_scroll_horizontal>: New methods.
6746 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
6747 Likewise.
6748 (struct tui_source_window_base): Add do_scroll_horizontal.
6749 (struct tui_source_window, struct tui_disasm_window): Add
6750 do_scroll_vertical.
6751 (struct tui_data_window, struct tui_cmd_window): Add
6752 do_scroll_horizontal and do_scroll_vertical.
6753 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
6754
6755 2019-06-25 Tom Tromey <tom@tromey.com>
6756
6757 * tui/tui-data.h (struct tui_source_window_base): New struct.
6758 (struct tui_source_window): Derive from tui_source_window_base.
6759 (struct tui_disasm_window): New struct.
6760 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
6761 from tui_source_window::clear_detail.
6762 (tui_source_window_base): Rename from tui_source_window.
6763 (~tui_source_window_base): Rename from ~tui_source_window.
6764 (tui_alloc_win_info): Create a tui_disasm_window.
6765
6766 2019-06-25 Tom Tromey <tom@tromey.com>
6767
6768 * tui/tui-data.h (struct tui_source_window)
6769 (struct tui_data_window): Declare destructors.
6770 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
6771 destructors.
6772 (tui_win_info): Simplify.
6773
6774 2019-06-25 Tom Tromey <tom@tromey.com>
6775
6776 * tui/tui-winsource.c (tui_display_main)
6777 (tui_update_source_windows_with_addr)
6778 (tui_update_all_breakpoint_info): Update.
6779 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
6780 (new_height_ok, parse_scrolling_args): Update.
6781 * tui/tui-stack.c (tui_show_frame_info): Update.
6782 * tui/tui-data.h (struct tui_list): Remove.
6783 (tui_source_windows): Return a reference to a std::vector.
6784 * tui/tui-data.c (source_windows): Now a std::vector.
6785 (tui_source_windows): Change return type.
6786 (tui_clear_source_windows): Rewrite.
6787 (tui_clear_source_windows_detail, tui_add_to_source_windows)
6788 (tui_free_all_source_wins_content): Rewrite.
6789
6790 2019-06-25 Tom Tromey <tom@tromey.com>
6791
6792 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
6793 (struct tui_data_window, struct tui_cmd_window): Declare
6794 clear_detail method.
6795 * tui/tui-data.c (tui_source_window::clear_detail)
6796 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
6797 methods.
6798 (tui_clear_win_detail): Simplify.
6799
6800 2019-06-25 Tom Tromey <tom@tromey.com>
6801
6802 * tui/tui-layout.c (make_source_window, make_disasm_window)
6803 (make_source_or_disasm_window): Remove win_info_ptr parameter.
6804 Return the new window.
6805 (show_source_disasm_command, show_data)
6806 (show_source_or_disasm_and_command): Update.
6807
6808 2019-06-25 Tom Tromey <tom@tromey.com>
6809
6810 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
6811 parameter. Return the new window.
6812 (show_source_disasm_command): Update and remove NULL check.
6813 (show_source_or_disasm_and_command): Update.
6814
6815 2019-06-25 Tom Tromey <tom@tromey.com>
6816
6817 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
6818
6819 2019-06-25 Tom Tromey <tom@tromey.com>
6820
6821 * tui/tui-data.h (struct tui_win_info): Make constructor
6822 protected. Make destructor virtual. Add initializers.
6823 (tui_source_window, tui_data_window, tui_cmd_window): New
6824 classes.
6825 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
6826 constructor. Add "type" parameter.
6827 (tui_source_window, tui_data_window, tui_cmd_window): New
6828 constructors.
6829 (tui_alloc_win_info): Instantiate the appropriate subclass.
6830
6831 2019-06-25 Tom Tromey <tom@tromey.com>
6832
6833 * tui/tui-win.c (tui_resize_all): Use delete.
6834 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
6835 destructor.
6836 (tui_free_window): Don't declare.
6837 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
6838 Update.
6839
6840 2019-06-25 Tom Tromey <tom@tromey.com>
6841
6842 * tui/tui-data.h (struct tui_win_info): Add constructor.
6843 * tui/tui-data.c (tui_alloc_win_info): Use new.
6844 (tui_free_window): Use delete.
6845
6846 2019-06-22 Tom Tromey <tom@tromey.com>
6847
6848 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
6849 declare.
6850 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
6851
6852 2019-06-22 Tom Tromey <tom@tromey.com>
6853
6854 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
6855 declare.
6856 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
6857
6858 2019-06-22 Tom de Vries <tdevries@suse.de>
6859
6860 * dwarf2read.c (create_addrmap_from_aranges)
6861 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
6862 instead of '%zu'.
6863
6864 2019-06-21 Simon Marchi <simon.marchi@efficios.com>
6865
6866 * dwarf2read.h (dwarf2_section_info_def): Remove.
6867 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
6868 * dwarf2read.c (struct dwo_sections) <types>: Change type to
6869 std::vector<dwarf2_section_info>.
6870 (struct dwo_file) <~dwo_file>: Remove.
6871 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
6872 types field.
6873 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
6874 (dwarf2_read_debug_names): Likewise.
6875 (create_debug_types_hash_table): Change parameter type to
6876 array_view, adjust code accordingly.
6877 (dwarf2_locate_dwo_sections): Adjust to std::vector.
6878 (partial_die_info::fixup): Likewise.
6879 (determine_prefix): Likewise.
6880 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
6881
6882 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
6883
6884 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
6885 gdb_bfd_ref_ptr.
6886 <~dwo_file>: Remove call to gdb_bfd_unref.
6887 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
6888 gdb_bfd_ref_ptr::get.
6889
6890 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
6891
6892 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
6893 type to htab_up.
6894 * dwarf2read.c (struct dwo_file): Initialize fields.
6895 <~dwo_file>: New.
6896 (free_dwo_file): Remove, move content to ~dwo_file.
6897 (struct dwo_file_deleter): Remove.
6898 (dwo_file_up>: Remove custom deleter.
6899 (free_dwo_files): Remove.
6900 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
6901 dwo_files.
6902 (process_skeletonless_type_units): Call unique_ptr::get.
6903 (allocate_dwo_file_hash_table): Add deleter to created hash
6904 table. Change return type to htab_up.
6905 (lookup_dwo_file_slot): Don't memset dwo_file, call
6906 unique_ptr::get.
6907 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
6908 (create_dwo_unit_in_dwp_v2): Likewise.
6909 (open_and_init_dwo_file): Likewise.
6910 (free_dwo_file_from_slot): Remove.
6911
6912 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
6913
6914 * dwarf2read.h (struct dwarf2_section_info) <readin,
6915 is_virtual>: Change type to bool.
6916 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
6917 true instead of 1.
6918
6919 2019-06-19 Tom Tromey <tom@tromey.com>
6920
6921 * tui/tui-data.h (tui_init_content_element): Don't declare.
6922
6923 2019-06-19 Tom Tromey <tom@tromey.com>
6924
6925 * tui/tui-data.h (tui_init_win_info): Don't declare.
6926
6927 2019-06-19 Tom de Vries <tdevries@suse.de>
6928
6929 * dwarf2read.h (abstract_to_concrete): Change type to
6930 std::unordered_map<sect_offset, std::vector<sect_offset>,
6931 gdb::hash_enum<sect_offset>>.
6932
6933 2019-06-19 Tom Tromey <tromey@adacore.com>
6934
6935 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
6936 EVAL_AVOID_SIDE_EFFECTS specially.
6937
6938 2019-06-19 Tom Tromey <tromey@adacore.com>
6939
6940 * source-cache.c (highlighter): New global.
6941 (source_cache::get_source_lines): Create a highlighter on demand.
6942
6943 2019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
6944
6945 * defs.h (deprecated_interactive_hook): Delete declaration.
6946 * interps.c (clear_interpreter_hooks): Remove use of
6947 deprecated_interactive_hook.
6948 * top.c (deprecated_interactive_hook): Delete definition.
6949 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
6950
6951 2019-06-18 Tom de Vries <tdevries@suse.de>
6952
6953 PR gdb/24515
6954 * dwarf2read.h (abstract_to_concrete): Change type from
6955 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
6956 std::unordered_map<sect_offset, std::vector<sect_offset>>.
6957 * dwarf2read.c (read_variable): Update.
6958 (dwarf2_fetch_die_loc_sect_off): Update.
6959
6960 2019-06-17 Tom de Vries <tdevries@suse.de>
6961
6962 PR gdb/24617
6963 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
6964 accessing parent[parent_len - 1].
6965
6966 2019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
6967
6968 PR gdb/24364
6969 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
6970 call dtrace_process_dof with NULL dof.
6971
6972 2019-06-16 Tom de Vries <tdevries@suse.de>
6973
6974 PR gdb/24445
6975 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
6976
6977 2019-06-16 Tom Tromey <tom@tromey.com>
6978
6979 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
6980 (make_all_visible): Use address of member.
6981
6982 2019-06-16 Tom Tromey <tom@tromey.com>
6983
6984 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
6985 (tui_free_window, free_content, free_content_elements): Remove
6986 unnecessary cast.
6987 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
6988 cast.
6989 * tui/tui-regs.c (tui_show_register_group)
6990 (tui_display_registers_from, tui_display_reg_element_at_line):
6991 Remove unnecessary cast.
6992
6993 2019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
6994
6995 * linux-nat.c (normal_mask): Delete.
6996 (_initialize_linux_nat): Don't initialise normal_mask.
6997
6998 2019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
6999
7000 PR gdb/24445
7001 * dwarf-index-write.h (write_psymtabs_to_index): Add
7002 dwz_basename parameter.
7003 * dwarf-index-write.c (write_gdbindex): Move file writing to
7004 write_gdbindex_1. Change return type void.
7005 (assert_file_size): Move up, remove filename parameter.
7006 (write_gdbindex_1): New function.
7007 (write_debug_names): Change return type to void, call
7008 assert_file_size.
7009 (struct index_wip_file): New struct.
7010 (write_psymtabs_to_index): Add dwz_basename parameter. Move
7011 file logic to index_wip_file. Write index for dwz file if
7012 needed.
7013 (save_gdb_index_command): Pass basename of dwz file, if present.
7014 * dwarf-index-cache.c (index_cache::store): Obtain and pass
7015 build-id of dwz file, if present.
7016 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
7017 (dwarf2_get_dwz_file): Likewise.
7018 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
7019 (dwarf2_get_dwz_file): Likewise.
7020
7021 2019-06-16 Tom Tromey <tom@tromey.com>
7022
7023 * coffread.c (process_coff_symbol): Use xstrdup.
7024 * value.c (create_internalvar): Use xstrdup.
7025
7026 2019-06-16 Tom Tromey <tom@tromey.com>
7027
7028 * valops.c (value_cast, value_slice): Remove unnecessary cast.
7029 * breakpoint.c (stopin_command, stopat_command)
7030 (until_break_command, decode_location_default): Remove unnecessary
7031 cast.
7032 * utils.c (subset_compare): Remove unnecessary cast.
7033 * ada-lang.c (ada_update_initial_language): Remove unnecessary
7034 cast.
7035 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
7036 cast.
7037 * infcmd.c (path_command): Remove unnecessary cast.
7038 * coffread.c (decode_type): Remove unnecessary cast.
7039 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
7040 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
7041 * tui/tui-stack.c (tui_show_locator_content)
7042 (tui_show_frame_info): Remove unnecessary cast.
7043 * tui/tui-win.c (tui_scroll_forward_command)
7044 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
7045 (parse_scrolling_args): Remove unnecessary cast.
7046 * tui/tui-data.c (init_win_info, tui_del_window)
7047 (tui_free_window, tui_del_data_windows, tui_free_data_content)
7048 (free_content_elements): Remove unnecessary cast.
7049 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
7050 unnecessary cast.
7051 * tui/tui-source.c (tui_set_source_content)
7052 (tui_vertical_source_scroll): Remove unnecessary cast.
7053 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
7054 cast.
7055 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
7056 * tui/tui-regs.c (tui_display_registers_from)
7057 (tui_display_register): Remove unnecessary cast.
7058 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
7059 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
7060 (make_visible): Remove unnecessary cast.
7061 * tui/tui-winsource.c (tui_erase_source_content)
7062 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
7063 unnecessary cast.
7064 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
7065 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
7066 * stabsread.c (read_type, read_array_type, read_range_type):
7067 Remove unnecessary cast.
7068 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
7069 (parse_symbol, parse_type, upgrade_type, parse_external)
7070 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
7071 unnecessary cast.
7072 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
7073
7074 2019-06-16 Tom Tromey <tom@tromey.com>
7075
7076 * tui/tui-data.c (tui_alloc_generic_win_info)
7077 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
7078 checks.
7079
7080 2019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
7081 Andrew Burgess <andrew.burgess@embecosm.com>
7082
7083 * f-typeprint.c (f_print_type): Don't return early for not
7084 associated or not allocated types.
7085 (f_type_print_varspec_suffix): Add print_rank parameter and print
7086 ranks of array types in case they dangling.
7087 (f_type_print_base): Add print_rank parameter.
7088
7089 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7090
7091 * NEWS: Mention new MI commands.
7092 * break-catch-throw.c (enum exception_event_kind): Move to
7093 breakpoint.h.
7094 (print_mention_exception_catchpoint): Output text as a single
7095 message.
7096 (catch_exception_command_1): Rename to...
7097 (catch_exception_event): ...this, make non-static, update header
7098 command, and change some parameter types.
7099 (catch_catch_command): Update for changes to
7100 catch_exception_command_1.
7101 (catch_throw_command): Likewise.
7102 (catch_rethrow_command): Likewise.
7103 * breakpoint.c (enum exception_event_kind): Delete.
7104 * breakpoint.h (enum exception_event_kind): Moved here from
7105 break-catch-throw.c.
7106 (catch_exception_event): Declare.
7107 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
7108 (mi_cmd_catch_throw): New function.
7109 (mi_cmd_catch_rethrow): New function.
7110 (mi_cmd_catch_catch): New function.
7111 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
7112 'catch-catch' entries.
7113 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
7114 (mi_cmd_catch_rethrow): Declare.
7115 (mi_cmd_catch_catch): Declare.
7116
7117 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7118
7119 * annotate.c (annotate_source_line): Change return type to void,
7120 update implementation to match.
7121 * annotate.h (annotate_source_line): Change return type to void,
7122 update header comment.
7123 * stack.c (print_frame_info): Don't change what frame information
7124 is printed based on whether annotations are on or not.
7125
7126 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7127
7128 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
7129 (annotate_source): Make static.
7130 (annotate_source_line): Moved from source.c and renamed from
7131 identify_source_line. Update the return type.
7132 * annotate.h (annotate_source): Delete declaration.
7133 (annotate_source_line): Declaration moved from source.h, and
7134 renamed from identify_source_line. Return type updated.
7135 * source.c (identify_source_line): Moved to annotate.c and renamed
7136 to annotate_source_line.
7137 (info_line_command): Remove check of annotation_level.
7138 * source.h (identify_source_line): Move declaration to annotate.h
7139 and rename to annotate_source_line.
7140 * stack.c: Add 'annotate.h' include.
7141 (print_frame_info): Remove check of annotation_level before
7142 calling annotate_source_line.
7143
7144 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7145
7146 * source-cache.c (source_cache::get_plain_source_lines): Use
7147 open_source_file_with_line_charpos instead of just
7148 open_source_file, remove call to find_source_lines.
7149 (source_cache::get_source_lines): Likewise.
7150 * source.c (find_source_lines): Make static.
7151 (get_filename_and_charpos): Renamed into...
7152 (open_source_file_with_line_charpos): ..this along with changes to
7153 return a scoped_fd, and some other minor clean ups.
7154 (identify_source_line): Use open_source_file_with_line_charpos.
7155 (search_command_helper): Use open_source_file_with_line_charpos
7156 instead of just open_source_file, remove call to
7157 find_source_lines.
7158 * source.h (open_source_file_with_line_charpos): Declare new
7159 function.
7160 (find_source_lines): Delete declaration.
7161
7162 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7163
7164 * source.c (get_filename_and_charpos): Remove fullname
7165 parameter.
7166 (identify_source_line): Update call to get_filename_and_charpos.
7167
7168 2019-06-14 Tom Tromey <tromey@adacore.com>
7169
7170 PR gdb/24502:
7171 * ui-style.h (skip_ansi_escape): Update comment.
7172 * ui-file.h (class no_terminal_escape_file): New class.
7173 * ui-file.c (no_terminal_escape_file::write)
7174 (no_terminal_escape_file::puts): New methods.
7175 * cli/cli-logging.c (handle_redirections): Use
7176 no_terminal_escape_file.
7177
7178 2019-06-14 Tom Tromey <tromey@adacore.com>
7179
7180 * NEWS: Move convenience variable news above Python news.
7181
7182 2019-06-14 Tom Tromey <tom@tromey.com>
7183
7184 * gnulib: Move directory to top-level.
7185 * configure.ac: Don't configure gnulib.
7186 * configure: Rebuild.
7187 * common/common-defs.h: Use new path to gnulib.
7188 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
7189 (GNULIB_H): Remove.
7190 (INCGNU): Look in new gnulib location.
7191 (HFILES_NO_SRCDIR): Remove gnulib files.
7192 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
7193 (generated_files): Remove GNULIB_H.
7194 ($(LIBGNU), all-lib): Remove targets.
7195 (distclean): Don't mention GNULIB_BUILDDIR.
7196 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
7197
7198 2019-06-14 Tom Tromey <tromey@adacore.com>
7199
7200 * symfile.c (add_symbol_file_command): Remove obsolete comment.
7201 Warn if symbol file does not provide any symbols.
7202
7203 2019-06-14 Tom Tromey <tromey@adacore.com>
7204
7205 * source.c (find_and_open_source): Respect basenames_may_differ.
7206
7207 2019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
7208
7209 * annotate.c (annotate_breakpoints_invalid): Make use of
7210 scoped_restore_terminal_state.
7211 (annotate_frames_invalid): Likewise.
7212
7213 2019-06-14 Tom Tromey <tromey@adacore.com>
7214
7215 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
7216 allow assignment to an internalvar.
7217
7218 2019-06-14 Tom Tromey <tromey@adacore.com>
7219
7220 * ada-lex.l: Allow "_" in attribute names.
7221
7222 2019-06-14 Tom Tromey <tromey@adacore.com>
7223
7224 PR gdb/24653:
7225 * regcache.c (registers_changed): Don't call alloca.
7226 * top.c (execute_command): Don't call alloca.
7227
7228 2019-06-13 Pedro Alves <palves@redhat.com>
7229
7230 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
7231 'expression'. When parsing an expression, error out if there's
7232 junk after "unlimited".
7233 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
7234 (do_set_command): Adjust calls to is_unlimited_literal.
7235
7236 2019-06-13 Pedro Alves <palves@redhat.com>
7237
7238 * compile/compile.c (make_compile_options_def_group): Add braces
7239 around array_view initializer.
7240 * thread.c (make_thread_apply_all_options_def_group)
7241 (make_thread_apply_all_options_def_group): Likewise.
7242
7243 2019-06-13 Pedro Alves <palves@redhat.com>
7244
7245 * NEWS (New commands): Mention "maint test-options
7246 require-delimiter", "maint test-options unknown-is-error", "maint
7247 test-options unknown-is-operand" and "maint show
7248 test-options-completion-result".
7249 (New command options, command completion): New section.
7250 (Completion improvements): New section.
7251 Mention that you can abbreviate "unlimited".
7252
7253 2019-06-13 Pedro Alves <palves@redhat.com>
7254
7255 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
7256 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
7257 * unittests/cli-utils-selftests.c (test_parse_flags)
7258 (test_parse_flags_qcs): Delete.
7259 (test_cli_utils): Don't call deleted functions.
7260
7261 2019-06-13 Pedro Alves <palves@redhat.com>
7262
7263 * thread.c: Include "cli/cli-option.h".
7264 (tp_array_compar_ascending): Global.
7265 (tp_array_compar): Delete function.
7266 (tp_array_compar_ascending, tp_array_compar_descending): New
7267 functions.
7268 (ascending_option_def, qcs_flag_option_def)
7269 (thr_qcs_flags_option_defs)
7270 (make_thread_apply_all_options_def_group)
7271 (make_thread_apply_options_def_group): New.
7272 (thread_apply_all_command): Use gdb::option::process_options.
7273 (thread_apply_command_completer)
7274 (thread_apply_all_command_completer): New.
7275 (thread_apply_command): Use gdb::option::process_options.
7276 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
7277 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
7278 to generate help text of "thread apply". Adjust "taas"'s help.
7279 * tid-parse.c (tid_range_parser::in_thread_range): New method.
7280 * tid-parse.h (tid_range_parser::in_thread_range): New method.
7281
7282 2019-06-13 Pedro Alves <palves@redhat.com>
7283
7284 * thread.c (thread_apply_command): Check for invalid TID with
7285 isdigit instead of !isalpha.
7286
7287 2019-06-13 Pedro Alves <palves@redhat.com>
7288
7289 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
7290 (validate_flags_qcs): New.
7291 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
7292 (validate_flags_qcs): Declare.
7293 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
7294 (make_frame_apply_options_def_group): New.
7295 (frame_apply_command_count): Process options with
7296 gdb::option::process_options.
7297 (frame_apply_completer): New.
7298 (frame_apply_level_completer, frame_apply_all_completer)
7299 (frame_apply_completer): New.
7300 (_initialize_stack): Update help of "frame apply", "frame apply
7301 level", "frame apply all" and "faas" to mention supported options
7302 and install command completers.
7303 * stack.h (frame_apply_all_completer): Declare.
7304 * thread.c: Include "stack.h".
7305 (tfaas_command): Add "--".
7306 (_initialize_thread): Update help "tfaas" to mention supported
7307 options and install command completer.
7308
7309 2019-06-13 Pedro Alves <palves@redhat.com>
7310
7311 * completer.c (complete_nested_command_line): New.
7312 (gdb_completion_word_break_characters_throw): Add assertion.
7313 * completer.h (complete_nested_command_line): Declare.
7314
7315 2019-06-13 Pedro Alves <palves@redhat.com>
7316
7317 * stack.c (parse_backtrace_qualifiers): New.
7318 (backtrace_command): Use it.
7319 (backtrace_command_completer): Complete on qualifiers.
7320
7321 2019-06-13 Pedro Alves <palves@redhat.com>
7322
7323 * frame.c: Include "cli/cli-option.h.
7324 (user_set_backtrace_options): New.
7325 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
7326 Delete.
7327 (get_prev_frame): Adjust.
7328 (boolean_option_def, uinteger_option_def)
7329 (set_backtrace_option_defs): New.
7330 (_initialize_frame): Adjust and use
7331 gdb::option::add_setshow_cmds_for_options to install "set
7332 backtrace past-main" and "set backtrace past-entry".
7333 * frame.h: Include "cli/cli-option.h".
7334 (struct frame_print_options): Forward declare.
7335 (print_frame_arguments_all, print_frame_arguments_scalars)
7336 (print_frame_arguments_none): Declare.
7337 (print_entry_values): Delete declaration.
7338 (struct frame_print_options, user_frame_print_options): New.
7339 (struct set_backtrace_options): New.
7340 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
7341 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
7342 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
7343 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
7344 (list_args_or_locals): Add frame_print_options parameter.
7345 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
7346 * python/py-framefilter.c (enumerate_args): Pass down
7347 USER_FRAME_PRINT_OPTIONS.
7348 * stack.c: Include "cli/cli-option.h".
7349 (print_frame_arguments_all, print_frame_arguments_scalars)
7350 (print_frame_arguments_none): Declare.
7351 (print_raw_frame_arguments, print_entry_values): Delete.
7352 (user_frame_print_options): New.
7353 (boolean_option_def, enum_option_def, frame_print_option_defs):
7354 New.
7355 (struct backtrace_cmd_options): New.
7356 (bt_flag_option_def): New.
7357 (backtrace_command_option_defs): New.
7358 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
7359 (print_frame_arg, read_frame_arg, print_frame_args)
7360 (print_frame_info, print_frame): Add frame_print_options parameter
7361 and use it.
7362 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
7363 (backtrace_command_1): Add frame_print_options and
7364 backtrace_cmd_options parameters and use them.
7365 (make_backtrace_options_def_group): New.
7366 (backtrace_command): Process command options with
7367 gdb::option::process_options.
7368 (backtrace_command_completer): New.
7369 (_initialize_stack): Extend "backtrace"'s help to mention
7370 supported options. Install completer for "backtrace".
7371 Install some settings commands with add_setshow_cmds_for_options.
7372
7373 2019-06-13 Pedro Alves <palves@redhat.com>
7374
7375 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
7376 and that "set/show print raw frame-arguments" are now deprecated.
7377
7378 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
7379 command.
7380 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
7381 * stack.c (_initialize_stack): Install "set/show print
7382 raw-frame-arguments", and deprecate "set/show print raw
7383 frame-arguments".
7384 * valprint.c (_initialize_valprint): Deprecate "set/show print
7385 raw".
7386
7387 2019-06-13 Pedro Alves <palves@redhat.com>
7388
7389 * compile/compile.c (struct compile_options): New.
7390 (compile_flag_option_def, compile_command_option_defs)
7391 (make_compile_options_def_group): New.
7392 (compile_file_command): Handle options with
7393 gdb::option::process_options.
7394 (compile_file_command_completer): New function.
7395 (compile_code_command): Handle options with
7396 gdb::option::process_options.
7397 (compile_code_command_completer): New function.
7398 (_initialize_compiler): Install completers for "compile code" and
7399 "compile file". Mention available options in "compile code" and
7400 "compile code"'s help.
7401 * completer.c (advance_to_completion_word): New, factored out from
7402 ...
7403 (advance_to_expression_complete_word_point): ... this.
7404 (advance_to_filename_complete_word_point): New.
7405 * completer.h (advance_to_filename_complete_word_point): New
7406 declaration.
7407
7408 2019-06-13 Pedro Alves <palves@redhat.com>
7409
7410 * compile/compile.c: Include "cli/cli-option.h".
7411 (compile_print_value): Scope data pointer is now a
7412 value_print_options pointer; adjust.
7413 (compile_print_command): Process options. Scope data pointer is
7414 now a value_print_options pointer; adjust.
7415 (_initialize_compile): Update "compile print"'s help to include
7416 supported options. Install a completer for "compile print".
7417 * cp-valprint.c (show_vtblprint, show_objectprint)
7418 (show_static_field_print): Delete.
7419 (_initialize_cp_valprint): Don't install "set print
7420 static-members", "set print vtbl", "set print object" here.
7421 * printcmd.c: Include "cli/cli-option.h" and
7422 "common/gdb_optional.h".
7423 (print_command_parse_format): Rework to fill in a
7424 value_print_options instead of a format_data.
7425 (print_value): Change parameter type from format_data pointer to
7426 value_print_options reference. Adjust.
7427 (print_command_1): Process options. Adjust to pass down a
7428 value_print_options.
7429 (print_command_completer): New.
7430 (_initialize_printcmd): Install print_command_completer as
7431 handle_brkchars completer for the "print" command. Update
7432 "print"'s help to include supported options.
7433 * valprint.c: Include "cli/cli-option.h".
7434 (show_vtblprint, show_objectprint, show_static_field_print): Moved
7435 here from cp-valprint.c.
7436 (boolean_option_def, uinteger_option_def)
7437 (value_print_option_defs, make_value_print_options_def_group):
7438 New. Use gdb::option::add_setshow_cmds_for_options to install
7439 "set print elements", "set print null-stop", "set print repeats",
7440 "set print pretty", "set print union", "set print array", "set
7441 print address", "set print symbol", "set print array-indexes".
7442 * valprint.h: Include <string> and "cli/cli-option.h".
7443 (make_value_print_options_def_group): Declare.
7444 (print_value): Change parameter type from format_data pointer to
7445 value_print_options reference.
7446 (print_command_completer): Declare.
7447
7448 2019-06-13 Pedro Alves <palves@redhat.com>
7449
7450 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
7451 (COMMON_SFILES): Add maint-test-settings.c.
7452 * cli/cli-decode.c (boolean_enums): New global, factored out from
7453 ...
7454 (add_setshow_boolean_cmd): ... here.
7455 * cli/cli-decode.h (boolean_enums): Declare.
7456 * cli/cli-option.c: New file.
7457 * cli/cli-option.h: New file.
7458 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
7459 factored out from ...
7460 (parse_cli_boolean_value(const char *)): ... this.
7461 (is_unlimited_literal): Change parameter type to pointer to
7462 pointer. Adjust and advance ARG pointer.
7463 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
7464 (parse_cli_var_enum): New, factored out from ...
7465 (do_set_command): ... this. Adjust.
7466 * cli/cli-setshow.h (parse_cli_boolean_value)
7467 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
7468 (parse_cli_var_enum): Declare.
7469 * cli/cli-utils.c: Include "cli/cli-option.h".
7470 (get_ulongest): New.
7471 * cli/cli-utils.h (get_ulongest): Declare.
7472 (check_for_argument): New overloads.
7473 * maint-test-options.c: New file.
7474
7475 2019-06-13 Pedro Alves <palves@redhat.com>
7476
7477 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
7478 parse a range if "-" is at the end of the string.
7479
7480 2019-06-13 Pedro Alves <palves@redhat.com>
7481
7482 * cli/cli-setshow.c (parse_auto_binary_operation)
7483 (parse_cli_boolean_value): Don't allow "o".
7484
7485 2019-06-13 Pedro Alves <palves@redhat.com>
7486
7487 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
7488 * NEWS: Mention maint test-settings KIND.
7489 * maint-test-settings.c: New file.
7490
7491 2019-06-13 Pedro Alves <palves@redhat.com>
7492
7493 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
7494 completer.
7495 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
7496 "set" completers.
7497
7498 2019-06-13 Pedro Alves <palves@redhat.com>
7499
7500 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
7501 after item.
7502
7503 2019-06-13 Pedro Alves <palves@redhat.com>
7504
7505 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
7506
7507 2019-06-13 Pedro Alves <palves@redhat.com>
7508
7509 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
7510 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
7511 call.
7512 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
7513 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
7514 calls.
7515 (check_for_argument): Skip spaces after argument.
7516
7517 2019-06-13 Pedro Alves <palves@redhat.com>
7518
7519 * thread.c (thread_apply_command): Adjust TID parsing.
7520 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
7521 detected before end of string.
7522 (tid_is_in_list): Error out if LIST is invalid.
7523
7524 2019-06-13 Pedro Alves <palves@redhat.com>
7525
7526 * completer.c (complete_line_internal_1): Rewind completion word
7527 point.
7528 (completion_tracker::advance_custom_word_point_by): Change
7529 parameter type to int.
7530 * completer.h (completion_tracker::advance_custom_word_point_by):
7531 Likewise.
7532
7533 2019-06-13 Pedro Alves <palves@redhat.com>
7534
7535 * completer.c (advance_to_completion_word): Handle delimiters.
7536
7537 2019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
7538
7539 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
7540
7541 2019-06-11 Tom Tromey <tom@tromey.com>
7542
7543 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
7544 (xmalloc_failed): Move to alloc.c.
7545 * alloc.c: New file.
7546 * Makefile.in (COMMON_SFILES): Add alloc.c.
7547
7548 2019-06-11 Tom Tromey <tom@tromey.com>
7549
7550 * nat/linux-waitpid.c: Don't include server.h.
7551 (linux_debug): Remove.
7552 (my_waitpid): Update.
7553
7554 2019-06-11 Tom Tromey <tromey@adacore.com>
7555
7556 * infcall.c (_initialize_infcall): Remove trailing newline from
7557 help.
7558 * user-regs.c (_initialize_user_regs): Remove trailing newline
7559 from help.
7560 * typeprint.c (_initialize_typeprint): Remove trailing newline
7561 from help.
7562 * reverse.c (_initialize_reverse): Remove trailing newlines from
7563 help.
7564 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
7565 from help.
7566 * language.c (add_set_language_command): Remove trailing newline
7567 from help.
7568 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
7569 help.
7570 * disasm.c (_initialize_disasm): Remove trailing newline from
7571 help.
7572 * top.c (init_main): Remove trailing newline from help.
7573 * interps.c (_initialize_interpreter): Remove trailing newline
7574 from help.
7575 * btrace.c (_initialize_btrace): Remove trailing newlines from
7576 help.
7577 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
7578 from help.
7579 * python/python.c (_initialize_python): Remove trailing newline
7580 from help.
7581 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
7582 help.
7583 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
7584 from help. Reformat some text.
7585 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
7586 from help.
7587 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
7588 newline from help.
7589
7590 2019-06-11 Tom Tromey <tromey@adacore.com>
7591
7592 * darwin-nat.c (darwin_decode_exception_message)
7593 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
7594
7595 2019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
7596
7597 * valops.c (value_slice): Check for not allocated or not
7598 associated values.
7599
7600 2019-06-10 Tom de Vries <tdevries@suse.de>
7601
7602 PR gdb/24618
7603 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
7604 sure an empty slot (defined by a 32-bit zero pair) is recognized as
7605 invalid.
7606
7607 2019-06-10 Tom de Vries <tdevries@suse.de>
7608
7609 PR gdb/24611
7610 * linespec.c (linespec_lexer_lex_string): Remove incorrect
7611 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
7612
7613 2019-06-10 Tom de Vries <tdevries@suse.de>
7614
7615 PR symtab/24545
7616 * symtab.c (struct demangled_name_entry): Add language field.
7617 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
7618 static minimal symbol". Set and use language field.
7619
7620 2019-06-10 Tom Tromey <tromey@adacore.com>
7621
7622 * ada-lang.c (_initialize_ada_language): Update help text.
7623
7624 2019-06-10 Tom Tromey <tromey@adacore.com>
7625
7626 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
7627 with a newline.
7628 * guile/guile.c (handle_boot_error): Don't end warning with a
7629 newline.
7630 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
7631 warning with a newline.
7632 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
7633 newline.
7634 (s12z_frame_cache): Likewise.
7635 * dwarf-index-cache.c (index_cache::store): Don't end warning with
7636 a newline.
7637 * solib-svr4.c (disable_probes_interface): Don't end warning with
7638 a newline.
7639 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
7640 newline.
7641 * python/python.c (do_finish_initialization): Don't end warning
7642 with a newline.
7643
7644 2019-06-10 Tom Tromey <tom@tromey.com>
7645
7646 * python/py-breakpoint.c (gdbpy_breakpoint_created)
7647 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
7648 gdbpy_enter.
7649
7650 2019-06-10 Tom Tromey <tromey@adacore.com>
7651
7652 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
7653 data.
7654 (elf_new_init): Don't call stabsread_new_init.
7655 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
7656 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
7657 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
7658
7659 2019-06-10 Tom de Vries <tdevries@suse.de>
7660
7661 PR symtab/16264
7662 PR symtab/24517
7663 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
7664
7665 2019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
7666
7667 * source.c (find_and_open_source): Also rewrite relative file
7668 names.
7669
7670 2019-04-26 Amos Bird <amosbird@gmail.com>
7671
7672 * annotate.c (annotate_thread_exited): Add "thread-exited"
7673 annotation.
7674
7675 2019-06-06 Tom Tromey <tromey@adacore.com>
7676
7677 * maint.h (class scoped_command_stats): Use
7678 DISABLE_COPY_AND_ASSIGN.
7679 <print_time>: New method.
7680 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
7681 print_time.
7682 (scoped_command_stats::print_time): New method.
7683
7684 2019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
7685
7686 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
7687 instructions of lengths 6 or 8 bytes.
7688
7689 2019-06-04 Pedro Alves <palves@redhat.com>
7690
7691 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
7692
7693 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
7694 * breakpoint.c (condition_completer): Likewise.
7695 * cli/cli-dump.c (scan_expression): Likewise.
7696 * common/filestuff.c (mkdir_recursive): Likewise.
7697 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
7698 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
7699 (gdb_abspath): Likewise.
7700 * compile/compile-cplus-types.c
7701 (compile_cplus_instance::decl_name): Likewise.
7702 * completer.c (complete_explicit_location):
7703 (signal_completer, reg_or_group_completer_1): Likewise.
7704 * cp-support.c (cp_remove_params_if_any): Likewise.
7705 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
7706 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
7707 * infcmd.c (strip_bg_char): Likewise.
7708 * linespec.c (copy_token_string): Likewise.
7709 * mi/mi-main.c (output_cores): Likewise.
7710 * psymtab.c (psymtab_search_name):
7711 * symfile.c (test_set_ext_lang_command): Likewise.
7712 * target.c (target_fileio_read_stralloc): Likewise.
7713 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
7714 * value.c (complete_internalvar): Likewise.
7715
7716 2019-06-04 Christian Biesinger <cbiesinger@google.com>
7717
7718 Add objfile property to gdb.Type.
7719 * NEWS: Mention Python API addition.
7720 * python/py-type.c (typy_get_objfile): New method.
7721
7722 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7723
7724 * NEWS: Mention the new set|show style [title|highlight].
7725 Mention changes to "show style", "help" and "apropos".
7726
7727 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7728
7729 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
7730 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
7731 instead of print_help_for_command.
7732 (print_doc_of_command): New function.
7733 (help_list): Add 'apropos -v word' suggestion.
7734 (print_help_for_command): Style the command name using title style.
7735 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
7736 (_initialize_cli_cmds): Describe -v in apropos_command help.
7737
7738 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7739
7740 * cli/cli-style.h (cli_style_option): Add name in constructor,
7741 add m_name class member, add constructor with intensity,
7742 add name class function.
7743 (cli_style_option::add_setshow_commands): Remove name argument.
7744 (highlight_style, title_style): New styles.
7745 * cli/cli-style.c (do_show): New function that shows a style
7746 characteristic styling the style name with itself.
7747 (set_style_name): New function.
7748 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
7749 Update all callers according to the changes in cli/cli-style.h.
7750 * utils.h (fputs_highlighted): New function.
7751 * utils.c (fputs_highlighted): Likewise.
7752
7753 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7754
7755 * NEWS: Mention new pipe command and new convenience variables.
7756
7757 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7758
7759 * cli/cli-cmds.c (pipe_command): New function.
7760 (_initialize_cli_cmds): Call add_com for pipe_command.
7761 Define | as an alias for pipe.
7762 (exit_status_set_internal_vars): New function.
7763 (shell_escape): Call exit_status_set_internal_vars.
7764 cli/cli-decode.c (find_command_name_length): Recognize | as
7765 a single character command.
7766
7767 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7768
7769 * gdbcmd.h (execute_command_to_ui_file): New declaration.
7770 top.c (execute_command_to_ui_file): New function, mostly a copy
7771 of execute_command_to_string.
7772 (execute_command_to_string): Implement by calling
7773 execute_command_to_ui_file.
7774
7775 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7776
7777 * top.h (saved_command_line): Remove declaration.
7778 * top.c (previous_saved_command_line, previous_repeat_arguments):
7779 New variables.
7780 (saved_command_line): Make static, define together with other
7781 'repeat variables'.
7782 (dont_repeat): Clear repeat_arguments.
7783 (repeat_previous, get_saved_command_line, save_command_line):
7784 New functions.
7785 (gdb_init): Initialize saved_command_line
7786 and previous_saved_command_line.
7787 * main.c (captured_main_1): Remove saved_command_line initialization.
7788 * event-top.c (handle_line_of_input): Update to use
7789 the new 'repeat' related functions instead of direct access to
7790 saved_command_line.
7791 * command.h (repeat_previous, get_saved_command_line,
7792 save_command_line): New declarations.
7793 (dont_repeat): Add comment.
7794
7795 2019-05-30 Tom Tromey <tromey@adacore.com>
7796
7797 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
7798 Fix comment.
7799 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
7800
7801 2019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
7802
7803 PR cli/24587
7804 * completer.c (complete): Initialize variable word.
7805
7806 2019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
7807
7808 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
7809 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
7810 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
7811 'body' is NULL to the outter 'if', protecting the '!is_define'
7812 situation as well.
7813
7814 2019-05-29 Tom Tromey <tromey@adacore.com>
7815
7816 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
7817 (dwarf_unknown): New function.
7818 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
7819 (dwarf_type_encoding_name): Use dwarf_unknown.
7820
7821 2019-05-29 Tom Tromey <tromey@adacore.com>
7822
7823 PR c++/20020:
7824 * cp-valprint.c (cp_print_value_fields): Call
7825 cp_print_static_field inside "try".
7826
7827 2019-05-29 Tom Tromey <tromey@adacore.com>
7828
7829 * inflow.c (struct terminal_info): Add default operator=.
7830 * configure: Rebuild.
7831 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
7832 -Wdeprecated-copy-dtor, -Wredundant-move.
7833
7834 2019-05-29 Tom Tromey <tromey@adacore.com>
7835
7836 * NEWS: Add entry.
7837 * infcmd.c (print_return_value_1): Handle finish_print
7838 option.
7839 (show_print_finish): New function.
7840 (_initialize_infcmd): Add "set/show print finish" commands.
7841 * valprint.c (user_print_options): Initialize new member.
7842 * valprint.h (struct value_print_options) <finish_print>: New
7843 member.
7844
7845 2019-05-28 Tom Tromey <tromey@adacore.com>
7846
7847 * ada-lang.c (ada_remove_Xbn_suffix)
7848 (find_old_style_renaming_symbol)
7849 (parse_old_style_renaming): Remove.
7850 (ada_find_renaming_symbol): Don't call
7851 find_old_style_renaming_symbol.
7852 (ada_is_renaming_symbol): Rename from
7853 ada_find_renaming_symbol. Remove "block" parameter. Return
7854 bool. Now static.
7855 (ada_read_var_value): Update and simplify.
7856 * ada-exp.y (write_var_or_type): Remove old code.
7857
7858 2019-05-28 Alan Hayward <alan.hayward@arm.com>
7859
7860 PR gdb/25010
7861 * event-top.c: Remove include comment.
7862 * inflow.c (class scoped_ignore_sigttou): Move from here...
7863 * inflow.h (class scoped_ignore_sigttou): ...to here.
7864 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
7865 * top.c: Remove include comment.
7866
7867 2019-05-27 Tom Tromey <tom@tromey.com>
7868
7869 * NEWS: Fix typo.
7870
7871 2019-05-22 Tom Tromey <tromey@adacore.com>
7872
7873 * target.c (target_follow_exec): Constify parameter.
7874 * target-delegates.c: Rebuild.
7875 * remote.c (remote_target::follow_exec): Constify parameter.
7876 * infrun.c (follow_exec): Constify parameter.
7877 * target.h (struct target_ops) <follow_exec>: Constify parameter.
7878 (target_follow_exec): Likewise.
7879
7880 2019-05-22 Alan Hayward <alan.hayward@arm.com>
7881
7882 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
7883 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
7884
7885 2019-05-22 Alan Hayward <alan.hayward@arm.com>
7886
7887 * NEWS: Add debugredirect and testsuite sections.
7888
7889 2019-05-22 Simon Cook <simon.cook@embecosm.com>
7890
7891 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
7892 target descriptions using exclusively floating point register name
7893 aliases.
7894
7895 2019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7896
7897 PR gdb/18644:
7898 * f-lang.c (build_fortran_types): Handle the case where
7899 gdbarch_floatformat_for_type returns a nullptr.
7900
7901 2019-05-21 Tom de Vries <tdevries@suse.de>
7902
7903 PR cli/24587
7904 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
7905
7906 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
7907
7908 PR gdb/18644:
7909 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
7910 16-byte floats.
7911 * i386-tdep.c (i386_floatformat_for_type): Use
7912 floatformats_ia64_quad for the 16-byte floating point component
7913 within a fortran 32-byte complex number.
7914
7915 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
7916
7917 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
7918 delete default constructor.
7919 (find_partial_die): Update to return const struct.
7920 (partial_die_parent_scope): Move variable declaration into scope
7921 of its use and change its type to auto.
7922 (guess_partial_die_structure_name): Likewise.
7923 (partial_die_info::fixup): Likewise.
7924
7925 2019-05-17 Tom Tromey <tromey@adacore.com>
7926
7927 * source.c (find_and_open_source): Remove cast.
7928
7929 2019-05-17 Tom Tromey <tromey@adacore.com>
7930
7931 * annotate.c (annotate_source): Make "filename" const.
7932 * annotate.h (annotate_source): Use const.
7933
7934 2019-05-17 Alan Hayward <alan.hayward@arm.com>
7935
7936 * disasm.c (set_disassembler_options): Send errors to stderr.
7937
7938 2019-05-17 Alan Hayward <alan.hayward@arm.com>
7939
7940 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
7941 (cli_interp_base::set_logging): Check debug_redirect.
7942 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
7943 * cli/cli-logging.c (debug_redirect): Add static variable.
7944 (pop_output_files): Add default param.
7945 (handle_redirections): Print debug setting.
7946 (show_logging_command): Likewise.
7947 (_initialize_cli_logging): Add debugredirect command.
7948 * interps.c (current_interp_set_logging): Add debug_redirect
7949 parameter.
7950 * interps.h (set_logging): Add debug_redirect parameter.
7951 (current_interp_set_logging): Likewise.
7952 * mi/mi-common.h: Likewise.
7953 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
7954
7955 2019-05-17 Alan Hayward <alan.hayward@arm.com>
7956 Tom Tromey <tromey@adacore.com>
7957
7958 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
7959 directly.
7960 * cli/cli-interp.h (make_logging_output): Remove declaration.
7961 * cli/cli-logging.c (make_logging_output): Remove function.
7962 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
7963 directly.
7964 * ui-file.c (tee_file::tee_file): Remove bools.
7965 (tee_file::~tee_file): Remove deletes.
7966 * ui-file.h (tee_file): Remove bools.
7967
7968 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
7969
7970 * mi/mi-cmds.h (mi_cmd_complete): New function.
7971 * mi/mi-main.c (mi_cmd_complete): Likewise.
7972 * mi/mi-cmds.c: Define new MI command -complete.
7973 * NEWS: Mention new -complete command.
7974
7975 2019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
7976
7977 * completer.h (complete): New function.
7978 * completer.c (complete): Likewise.
7979 * cli/cli-cmds.c: (complete_command): Update to use new complete()
7980 function defined in completer.h.
7981
7982 2019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
7983
7984 * MAINTAINERS (Write After Approval): Add myself.
7985
7986 2019-05-17 Tom de Vries <tdevries@suse.de>
7987
7988 PR gdb/24094
7989 * dwarf2read.c (struct cu_partial_die_info): New struct.
7990 (find_partial_die): Return cu_partial_die_info.
7991 (partial_die_parent_scope, guess_partial_die_structure_name)
7992 (partial_die_info::fixup): Handle new return type of find_partial_die.
7993
7994 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7995
7996 PR breakpoints/24541
7997 * stap-probe.c (stap_parse_register_operand): Make "regname" an
7998 "std::string", simplifying the algorithm.
7999
8000 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8001
8002 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
8003 (stap_static_probe_ops::get_probes): Likewise.
8004
8005 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8006
8007 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
8008 '-')" and "else if".
8009 (stap_parse_single_operand): Join checks for
8010 "gdbarch_stap_parse_special_token_p" and
8011 "gdbarch_stap_parse_special_token" in the same "if" statement.
8012 Invert check when verifying for operation on register
8013 displacement.
8014
8015 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8016
8017 * stap-probe.c (stap_get_opcode): Update comment.
8018 (stap_get_expected_argument_type): Likewise.
8019 (handle_stap_probe): Likewise.
8020
8021 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8022
8023 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
8024 return type to 'bool'. Adjust comment. Use 'bool' when
8025 appropriate.
8026 (i386_stap_parse_special_token_three_arg_disp): Likewise.
8027 * stap-probe.c (stap_parse_argument_1): Likewise.
8028 (stap_is_operator): Likewise.
8029 (stap_is_generic_prefix): Likewise.
8030 (stap_is_register_prefix): Likewise.
8031 (stap_is_register_indirection_prefix): Likewise.
8032 (stap_is_integer_prefix): Likewise.
8033 (stap_generic_check_suffix): Likewise.
8034 (stap_check_integer_suffix): Likewise.
8035 (stap_check_register_suffix): Likewise.
8036 (stap_check_register_indirection_suffix): Likewise.
8037 (stap_parse_register_operand): Likewise.
8038 (stap_parse_single_operand): Likewise.
8039 (stap_parse_argument_1): Likewise.
8040 (stap_probe::get_argument_count): Likewise.
8041 (stap_is_operator): Likewise.
8042
8043 2019-05-16 Tom Tromey <tromey@adacore.com>
8044
8045 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
8046 keyword to foreach.
8047
8048 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
8049
8050 * linux-thread-db.c (try_thread_db_load_1): Change return type
8051 to bool.
8052 (try_thread_db_load): Likewise.
8053 (try_thread_db_load_from_pdir_1): Likewise.
8054 (try_thread_db_load_from_pdir): Likewise.
8055 (try_thread_db_load_from_sdir): Likewise.
8056 (try_thread_db_load_from_dir): Likewise.
8057 (thread_db_load_search): Likewise.
8058 (has_libpthread): Likewise.
8059 (thread_db_load): Likewise.
8060
8061 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
8062
8063 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
8064 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
8065 NULL, and complain/return if that's the case.
8066
8067 2019-05-15 John Darrington <john@darrington.wattle.id.au>
8068
8069 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
8070 (advance, posn, abstract_read_memory): New functions.
8071 [struct mem_read_abstraction]: New struct.
8072 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
8073
8074 2019-05-14 Tom Tromey <tromey@adacore.com>
8075
8076 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
8077 value is not lval_memory.
8078
8079 2019-05-14 Tom Tromey <tromey@adacore.com>
8080
8081 * solib.c (info_sharedlibrary_command): Style the file name.
8082
8083 2019-05-14 Alan Hayward <alan.hayward@arm.com>
8084
8085 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
8086 (aarch64_vnv_type): Likewise.
8087 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
8088 * common/tdesc.c: Likewise.
8089 * common/tdesc.h (enum tdesc_type_kind): Likewise.
8090 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
8091 * features/aarch64-fpu.xml: Add ieee half view.
8092 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
8093 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
8094 * gdbtypes.h (struct builtin_type): Likewise.
8095 (struct objfile_type): Likewise.
8096
8097 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
8098
8099 * language.c (language_sniff_from_mangled_name): Fix "langauge"
8100 typo.
8101 * location.h (string_to_event_location): Likewise.
8102
8103 2019-05-11 Joel Brobecker <brobecker@adacore.com>
8104
8105 GDB 8.3 released.
8106
8107 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
8108
8109 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
8110 New variable declaration.
8111 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
8112 New variable.
8113 (print_one_breakpoint): Use ui_out::test_flags and new global
8114 variable to compute use_fixed_output.
8115 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
8116 Remove.
8117 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
8118 (mi_multi_location_breakpoint_output_fixed): Remove.
8119 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
8120 new variable.
8121 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
8122 fix_multi_location_breakpoint_output flag if version >= 3.
8123 * ui-out.h (enum ui_out_flag)
8124 <fix_multi_location_breakpoint_output>: New enumerator.
8125
8126 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
8127
8128 * contrib/cc-with-tweaks.sh: Validate dwz's work.
8129
8130 2019-05-10 Tom Tromey <tromey@adacore.com>
8131
8132 * ada-lang.c (catch_ada_completer): New function.
8133 (_initialize_ada_language): Use it.
8134
8135 2019-05-10 Tom Tromey <tromey@adacore.com>
8136
8137 * thread.c (print_thread_info): Make "requested_threads" const.
8138 * gdbthread.h (print_thread_info): Make "requested_threads"
8139 const.
8140 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
8141 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
8142
8143 2019-05-08 Tom Tromey <tom@tromey.com>
8144
8145 * gdbtypes.c (objfile_type_data): Change type.
8146 (objfile_type, _initialize_gdbtypes): Update.
8147
8148 2019-05-08 Tom Tromey <tom@tromey.com>
8149
8150 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
8151 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
8152 (_initialize_dwarf2_frame): Update.
8153
8154 2019-05-08 Tom Tromey <tom@tromey.com>
8155
8156 * objc-lang.c (objc_objfile_data): Change type.
8157 (find_methods): Update.
8158 (_initialize_objc_lang): Remove.
8159
8160 2019-05-08 Tom Tromey <tom@tromey.com>
8161
8162 * stabsread.c (rs6000_builtin_type_data): Change type.
8163 (rs6000_builtin_type, _initialize_stabsread): Update.
8164
8165 2019-05-08 Tom Tromey <tom@tromey.com>
8166
8167 * mips-tdep.c (mips_pdr_data): Remove.
8168 (_initialize_mips_tdep): Update.
8169
8170 2019-05-08 Tom Tromey <tom@tromey.com>
8171
8172 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
8173 (hppa_init_objfile_priv_data, read_unwind_info)
8174 (find_unwind_entry, _initialize_hppa_tdep): Update.
8175
8176 2019-05-08 Tom Tromey <tom@tromey.com>
8177
8178 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
8179 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
8180 on obstack.
8181 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
8182
8183 2019-05-08 Tom Tromey <tom@tromey.com>
8184
8185 * mdebugread.c (basic_type_data): Change type.
8186 (basic_type, _initialize_mdebugread): Update.
8187
8188 2019-05-08 Tom Tromey <tom@tromey.com>
8189
8190 * common/gdb_unique_ptr.h (struct noop_deleter): New.
8191
8192 2019-05-08 Tom Tromey <tom@tromey.com>
8193
8194 * nto-tdep.c (nto_inferior_data_reg): Change type.
8195 (nto_inferior_data): Update.
8196 (nto_inferior_data_cleanup, nto_new_inferior_data)
8197 (_initialize_nto_tdep): Remove.
8198 * nto-tdep.h (struct nto_inferior_data): Add initializers.
8199
8200 2019-05-08 Tom Tromey <tom@tromey.com>
8201
8202 * ada-lang.c (struct ada_inferior_data): Add initializers.
8203 (ada_inferior_data): Change type.
8204 (ada_inferior_data_cleanup): Remove.
8205 (get_ada_inferior_data, ada_inferior_exit)
8206 (struct ada_pspace_data): Add initializers, destructor.
8207 (ada_pspace_data_handle): Change type.
8208 (get_ada_pspace_data): Update.
8209 (ada_pspace_data_cleanup): Remove.
8210
8211 2019-05-08 Tom Tromey <tom@tromey.com>
8212
8213 * coffread.c (struct coff_symfile_info): Add initializers.
8214 (coff_objfile_data_key): Move lower. Change type.
8215 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
8216 Update.
8217 (coff_free_info): Remove.
8218
8219 2019-05-08 Tom Tromey <tom@tromey.com>
8220
8221 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
8222 (fbsd_pspace_data_handle): Move lower. Change type.
8223 (get_fbsd_pspace_data): Update.
8224 (fbsd_pspace_data_cleanup): Remove.
8225 (_initialize_fbsd_tdep): Update.
8226
8227 2019-05-08 Tom Tromey <tom@tromey.com>
8228
8229 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
8230 (get_ada_tasks_pspace_data): Update.
8231 (ada_tasks_pspace_data_cleanup): Remove.
8232 (_initialize_tasks): Update.
8233 (ada_tasks_inferior_data_handle): Change type.
8234 (get_ada_tasks_inferior_data): Update.
8235 (ada_tasks_inferior_data_cleanup): Remove.
8236 (struct ada_tasks_pspace_data): Add initializers.
8237
8238 2019-05-08 Tom Tromey <tom@tromey.com>
8239
8240 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
8241 * symfile-debug.c (debug_sym_get_probes): Change type.
8242 * stap-probe.c (handle_stap_probe):
8243 (stap_static_probe_ops::get_probes): Change type.
8244 * probe.h (class static_probe_ops) <get_probes>: Change type.
8245 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
8246 (parse_probes_in_pspace): Update.
8247 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
8248 Update.
8249 (any_static_probe_ops::get_probes): Change type.
8250 * elfread.c (elfread_data): New typedef.
8251 (probe_key): Change type.
8252 (elf_get_probes): Likewise. Update.
8253 (probe_key_free): Remove.
8254 (_initialize_elfread): Update.
8255 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
8256 Change type.
8257 (dtrace_process_dof_probe, dtrace_process_dof)
8258 (dtrace_static_probe_ops::get_probe): Change type.
8259
8260 2019-05-08 Tom Tromey <tom@tromey.com>
8261
8262 * xcoffread.c (struct xcoff_symfile_info): Rename from
8263 coff_symfile_info. Add initializers.
8264 (xcoff_objfile_data_key): Move lower. Change type.
8265 (XCOFF_DATA): Rewrite.
8266 (xcoff_free_info): Remove.
8267 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
8268 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
8269 (xcoff_initial_scan): Update.
8270
8271 2019-05-08 Tom Tromey <tom@tromey.com>
8272
8273 * solib-svr4.c (struct svr4_info): Add initializers and
8274 destructor.
8275 <probes_table>: Now an htab_up.
8276 (solib_svr4_pspace_data): Change type.
8277 (free_probes_table): Simplify.
8278 (~svr4_info): Rename from svr4_pspace_data_cleanup.
8279 (get_svr4_info, probes_table_htab_remove_objfile_probes)
8280 (probes_table_remove_objfile_probes, register_solib_event_probe)
8281 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
8282 (_initialize_svr4_solib): Update.
8283
8284 2019-05-08 Tom Tromey <tom@tromey.com>
8285
8286 * remote.c (remote_pspace_data): Change type.
8287 (remote_pspace_data_cleanup): Remove.
8288 (get_remote_exec_file, set_pspace_remote_exec_file)
8289 (_initialize_remote): Update.
8290
8291 2019-05-08 Tom Tromey <tom@tromey.com>
8292
8293 * breakpoint.c (breakpoint_objfile_key): Change type.
8294 (get_breakpoint_objfile_data): Update.
8295 (free_breakpoint_objfile_data): Remove.
8296 (_initialize_breakpoint): Update.
8297
8298 2019-05-08 Tom Tromey <tom@tromey.com>
8299
8300 * linux-tdep.c (struct linux_info): Add initializers.
8301 (linux_inferior_data): Move. Change type.
8302 (invalidate_linux_cache_inf): Update.
8303 (linux_inferior_data_cleanup): Remove.
8304 (get_linux_inferior_data, _initialize_linux_tdep): Update.
8305
8306 2019-05-08 Tom Tromey <tom@tromey.com>
8307
8308 * auxv.c (auxv_inferior_data): Move. Change type.
8309 (auxv_inferior_data_cleanup): Remove.
8310 (invalidate_auxv_cache_inf): Rewrite.
8311 (get_auxv_inferior_data, _initialize_auxv): Update.
8312
8313 2019-05-08 Tom Tromey <tom@tromey.com>
8314
8315 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
8316 (symfile_debug_objfile_data_key): Change type.
8317 (symfile_debug_installed, debug_qf_has_symbols)
8318 (debug_qf_find_last_source_symtab)
8319 (debug_qf_forget_cached_source_info)
8320 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
8321 (debug_qf_print_stats, debug_qf_dump)
8322 (debug_qf_expand_symtabs_for_function)
8323 (debug_qf_expand_all_symtabs)
8324 (debug_qf_expand_symtabs_with_fullname)
8325 (debug_qf_map_matching_symbols)
8326 (debug_qf_expand_symtabs_matching)
8327 (debug_qf_find_pc_sect_compunit_symtab)
8328 (debug_qf_map_symbol_filenames)
8329 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
8330 (debug_sym_new_init, debug_sym_init, debug_sym_read)
8331 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
8332 (debug_sym_read_linetable, debug_sym_relocate): Update.
8333 (symfile_debug_free_objfile): Remove.
8334 (install_symfile_debug_logging, _initialize_symfile_debug):
8335 Update.
8336
8337 2019-05-08 Tom Tromey <tom@tromey.com>
8338
8339 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
8340 allocate_on_obstack.
8341 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
8342 (get_dwarf2_per_objfile): Update.
8343 (set_dwarf2_per_objfile): Remove.
8344 (dwarf2_has_info, dwarf2_get_section_info): Update.
8345 (dwarf2_free_objfile): Remove.
8346 (_initialize_dwarf2_read): Update.
8347
8348 2019-05-08 Tom Tromey <tom@tromey.com>
8349
8350 * auto-load.c (struct auto_load_pspace_info): Add destructor and
8351 initializers.
8352 <unsupported_script_warning_printed,
8353 script_not_found_warning_printed>: Now bool.
8354 (auto_load_pspace_data): Change type.
8355 (~auto_load_pspace_info): Rename from
8356 auto_load_pspace_data_cleanup.
8357 (get_auto_load_pspace_data, init_loaded_scripts_info)
8358 (clear_section_scripts, maybe_print_unsupported_script_warning)
8359 (maybe_print_script_not_found_warning, _initialize_auto_load):
8360 Update.
8361
8362 2019-05-08 Tom Tromey <tom@tromey.com>
8363
8364 * objfiles.c (objfile_pspace_info): Add destructor and
8365 initializers.
8366 (objfiles_pspace_data): Change type.
8367 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
8368 (get_objfile_pspace_data): Update.
8369 (objfiles_bfd_data): Change type.
8370 (get_objfile_bfd_data): Update.
8371 (objfile_bfd_data_free, _initialize_objfiles): Remove.
8372
8373 2019-05-08 Tom Tromey <tom@tromey.com>
8374
8375 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
8376 Change type.
8377 (get_catch_syscall_inferior_data): Update.
8378 (catch_syscall_inferior_data_cleanup): Remove.
8379 (_initialize_break_catch_syscall): Update.
8380
8381 2019-05-08 Tom Tromey <tom@tromey.com>
8382
8383 * inflow.c (struct terminal_info): Add destructor and
8384 initializers.
8385 (inflow_inferior_data): Change type.
8386 (~terminal_info): Rename from inflow_inferior_data_cleanup.
8387 (get_inflow_inferior_data, inflow_inferior_exit)
8388 (swap_terminal_info, _initialize_inflow): Update.
8389
8390 2019-05-08 Tom Tromey <tom@tromey.com>
8391
8392 * target-dcache.c (target_dcache_cleanup): Remove.
8393 (target_dcache_aspace_key): Change type.
8394 (target_dcache_init_p, target_dcache_invalidate)
8395 (target_dcache_get, target_dcache_get_or_init)
8396 (_initialize_target_dcache): Update.
8397 * dcache.h (struct dcache_deleter): New.
8398
8399 2019-05-08 Tom Tromey <tom@tromey.com>
8400
8401 * symtab.c (struct symbol_cache): Add destructor and
8402 initializers.
8403 (symbol_cache_key): Move. Change type.
8404 (make_symbol_cache, free_symbol_cache): Remove.
8405 (get_symbol_cache): Update.
8406 (symbol_cache_cleanup): Remove.
8407 (ALL_PSPACES, symbol_cache_flush)
8408 (maintenance_print_symbol_cache)
8409 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
8410 Update.
8411
8412 2019-05-08 Tom Tromey <tom@tromey.com>
8413
8414 * symtab.c (struct main_info): Add destructor and initializers.
8415 (main_progspace_key): Move. Change type.
8416 (get_main_info): Update.
8417 (main_info_cleanup): Remove.
8418 (_initialize_symtab): Update.
8419
8420 2019-05-08 Tom Tromey <tom@tromey.com>
8421
8422 * registry.h (DECLARE_REGISTRY): Define the _key class.
8423
8424 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
8425
8426 * NEWS: Merge two 'New commands' sections.
8427
8428 2019-05-08 Joel Brobecker <brobecker@adacore.com>
8429
8430 * ada-valprint.c (ada_val_print_gnat_array): Remove language
8431 parameter and use Ada language definition instead.
8432 (ada_val_print_ptr): Remove unused language parameter.
8433 (ada_val_print_num): Remove language parameter and use Ada language
8434 definition instead.
8435 (ada_val_print_enum, ada_val_print_flt): Remove unused language
8436 parameter.
8437 (ada_val_print_struct_union, ada_val_print_ref): Remove language
8438 parameter and use Ada language definition instead.
8439 (ada_val_print_1): Update all ada_val_print_xxx calls.
8440 Remove language parameter.
8441 (ada_val_print): Update ada_val_print_1 call.
8442
8443 2019-05-08 Tom Tromey <tromey@adacore.com>
8444
8445 * remote.c (remote_hw_watchpoint_limit)
8446 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
8447 Now static.
8448
8449 2019-05-08 Tom Tromey <tromey@adacore.com>
8450
8451 * maint.c (_initialize_maint_cmds): Move initialization code to
8452 remote.c.
8453 (watchdog, show_watchdog): Move to remote.c.
8454 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
8455 "watchdog" static.
8456 (_initialize_remote): Move initialization code from maint.c.
8457 * defs.h (watchdog): Don't declare.
8458
8459 2019-05-08 Tom Tromey <tromey@adacore.com>
8460
8461 * tui/tui-interp.c: Include main.h.
8462 * interps.c: Include main.h.
8463 * main.h (interpreter_p): Declare.
8464 * defs.h (interpreter_p): Don't declare.
8465
8466 2019-05-08 Tom Tromey <tromey@adacore.com>
8467
8468 * dwarf2loc.c: Include dwarf2read.h.
8469 * defs.h (read_unsigned_leb128): Don't declare.
8470 * dwarf2read.h (read_unsigned_leb128): Declare.
8471
8472 2019-05-08 Tom Tromey <tromey@adacore.com>
8473
8474 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
8475 method.
8476
8477 2019-05-08 Tom Tromey <tromey@adacore.com>
8478
8479 * utils.c (fputs_maybe_filtered): Reset style after paging, even
8480 when no wrap column is set.
8481
8482 2019-05-08 Tom Tromey <tromey@adacore.com>
8483
8484 * c-lang.c (c_get_string): Handle non-C-style arrays.
8485
8486 2019-05-08 Tom Tromey <tromey@adacore.com>
8487
8488 * typeprint.c (print_offset_data::update): Print the bit offset,
8489 not the number of bits remaining.
8490
8491 2019-05-08 Tom Tromey <tromey@adacore.com>
8492
8493 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
8494 padding at end of comment.
8495
8496 2019-05-08 Tom Tromey <tromey@adacore.com>
8497
8498 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
8499 Compare main types.
8500
8501 2019-05-06 Tom Tromey <tom@tromey.com>
8502
8503 * common/scoped_mmap.c: Include common-defs.h.
8504 * common/scoped_mmap.h: Don't include config.h.
8505
8506 2019-05-04 Tom Tromey <tom@tromey.com>
8507
8508 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
8509 (struct aarch64_call_info): Add initializers.
8510 <si>: Now a std::vector.
8511 (pass_on_stack, aarch64_push_dummy_call): Update.
8512
8513 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
8514 Tom Tromey <tom@tromey.com>
8515
8516 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
8517 (ppc_threads): Now a std::vector. Now static.
8518 (hwdebug_find_thread_points_by_tid)
8519 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
8520 Update.
8521
8522 2019-05-04 Tom Tromey <tom@tromey.com>
8523
8524 * arc-tdep.c (arc_tdesc_init): Return bool.
8525
8526 2019-05-04 Tom Tromey <tom@tromey.com>
8527
8528 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
8529 Use gdb_assert_not_reached.
8530
8531 2019-05-04 Tom Tromey <tom@tromey.com>
8532
8533 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
8534 "false".
8535
8536 2019-05-04 Tom Tromey <tom@tromey.com>
8537
8538 * arc-tdep.c (arc_tdesc_init): Use bool.
8539
8540 2019-05-04 Tom Tromey <tom@tromey.com>
8541
8542 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
8543
8544 2019-05-04 Tom Tromey <tom@tromey.com>
8545
8546 * cli/cli-cmds.c (valid_command_p): Return bool.
8547
8548 2019-05-04 Tom Tromey <tom@tromey.com>
8549
8550 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
8551 * command.h (valid_user_defined_cmd_name_p): Channge return type.
8552
8553 2019-05-04 Raul Tambre <raul@tambre.ee>
8554
8555 * python/lib/gdb/prompt.py (_ExtendedPrompt)
8556 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
8557 operator for comparison.
8558
8559 2019-05-04 Tom Tromey <tom@tromey.com>
8560
8561 * psymtab.c (psymbol_name_matches, match_partial_symbol)
8562 (lookup_partial_symbol, print_partial_symbols)
8563 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
8564 (psymbol_compare): Update.
8565 (add_psymbol_to_bcache): Clear the entire psymbol.
8566 (maintenance_check_psymtabs): Update.
8567 * psympriv.h (struct partial_symbol): Don't derive from
8568 general_symbol_info.
8569 <obj_section, unrelocated_address, address,
8570 set_unrelocated_address>: Update.
8571 <ginfo>: New member.
8572 * dwarf-index-write.c (write_psymbols, debug_names::insert)
8573 (debug_names::write_psymbols): Update.
8574
8575 2019-05-04 Tom de Vries <tdevries@suse.de>
8576
8577 * contrib/cc-with-tweaks.sh: Support -n arg.
8578
8579 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8580
8581 * corelow.c (core_target::detach): Ensure frame cache and
8582 register caches are cleared.
8583 inferior.c (exit_inferior_1): Likewise.
8584
8585 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
8586 Tom Tromey <tom@tromey.com>
8587
8588 * dictionary.c (collate_pending_symbols_by_language): Remove
8589 "struct" from foreach.
8590 * symtab.c (lookup_global_symbol_from_objfile)
8591 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
8592 foreach.
8593 * ser-tcp.c (net_open): Remove "struct" from foreach.
8594 * objfiles.c (objfile_relocate, objfile_rebase)
8595 (objfile_has_symbols): Remove "struct" from foreach.
8596 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
8597 from foreach.
8598 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
8599 foreach.
8600 * darwin-nat.c (thread_info_from_private_thread_info): Remove
8601 "struct" from foreach.
8602 * ada-lang.c (create_excep_cond_exprs)
8603 (ada_exception_catchpoint_cond_string): Remove "struct" from
8604 foreach.
8605
8606 2019-05-03 Tom Tromey <tromey@adacore.com>
8607
8608 * ada-exp.y (convert_char_literal): Check suffix of each
8609 enumerator.
8610
8611 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
8612
8613 PR ada/21406:
8614 * ada-exp.y (yywrap): Don't define.
8615 * ada-lex.l (%option): Add noyywrap
8616 (yywrap): Remove.
8617
8618 2019-05-03 Eli Zaretskii <eliz@gnu.org>
8619
8620 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
8621 _WIN32_WINNT to the XP level, unless already defined to a higher
8622 level.
8623
8624 * unittests/parse-connection-spec-selftests.c:
8625 * ser-tcp.c:
8626 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
8627 override.
8628
8629 * symfile.c (find_separate_debug_file): Remove colon from the
8630 drive spec of DOS/Windows file names of the target, so that the
8631 file name produced from DEBUGDIR and the target's directory will
8632 be valid on DOS/Windows systems.
8633
8634 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
8635
8636 * rust-lang.c (val_print_struct): Handle printing structures
8637 containing strings.
8638
8639 2019-05-02 Tom Tromey <tromey@adacore.com>
8640
8641 * valarith.c (_initialize_valarith): Remove.
8642
8643 2019-05-01 Tom Tromey <tromey@adacore.com>
8644
8645 * ada-lang.c (ada_value_primitive_field): Treat more fields as
8646 bitfields.
8647
8648 2019-05-01 Tom Tromey <tromey@adacore.com>
8649
8650 * ada-lang.c (ada_value_assign): Correctly compute starting offset
8651 for big-endian copies.
8652
8653 2019-04-30 Ali Tamur <tamur@google.com>
8654 * gdb/dwarf2read.c (read_3_bytes): New declaration.
8655 (read_attribute_value): Added DW_FORM_strx1-4 cases.
8656 (read_3_bytes): New function.
8657
8658 2019-04-30 Joel Brobecker <brobecker@adacore.com>
8659
8660 * windows-nat.c (main_thread_id): Delete.
8661 (handle_output_debug_string): Replace main_thread_id by
8662 current_event.dwThreadId.
8663 (fake_create_process): Likewise.
8664 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
8665 Do not set main_thread_id.
8666 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
8667 current_event.dwThreadId.
8668 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
8669
8670 2019-04-30 Joel Brobecker <brobecker@adacore.com>
8671
8672 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
8673 Use current_event.dwThreadId instead of main_thread_id.
8674
8675 2019-04-30 Tom Tromey <tromey@adacore.com>
8676
8677 * ada-lang.c (ada_lookup_simple_minsyms): New function.
8678 (create_excep_cond_exprs): Iterate over program spaces.
8679 (ada_exception_catchpoint_cond_string): Examine all minimal
8680 symbols for exception types.
8681
8682 2019-04-30 Tom Tromey <tromey@adacore.com>
8683
8684 PR c++/24470:
8685 * dwarf2read.c (process_structure_scope): Handle case where type
8686 has template parameters but no symbol was created.
8687
8688 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8689 Chris January <chris.january@arm.com>
8690
8691 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
8692 qualifier.
8693 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
8694
8695 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8696
8697 * f-typeprint.c (f_print_type): Update rules for printing
8698 whitespace.
8699 (f_type_print_varspec_suffix): Likewise.
8700
8701 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8702 Chris January <chris.january@arm.com>
8703
8704 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
8705 function arguments.
8706
8707 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8708
8709 * f-lang.c (build_fortran_types): Change name of void type to
8710 lower case.
8711 * f-typeprint.c (f_type_print_base): Print the name of the void
8712 type, rather than a fixed string.
8713 * f-valprint.c (f_decorations): Use lower case void string.
8714
8715 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8716 Chris January <chris.january@arm.com>
8717
8718 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
8719 types for Fortran.
8720
8721 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8722 Chris January <chris.january@arm.com>
8723 David Lecomber <david.lecomber@arm.com>
8724
8725 * f-exp.y (BINOP_INTRINSIC): New token.
8726 (exp): New parser rule handling BINOP_INTRINSIC.
8727 (f77_keywords): Add new builtin procedures.
8728 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
8729 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
8730 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
8731 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
8732 (print_unop_subexp_f): New function.
8733 (print_binop_subexp_f): New function.
8734 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
8735 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
8736 (dump_subexp_body_f): Likewise.
8737 (operator_check_f): Likewise.
8738 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
8739 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
8740
8741 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8742
8743 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
8744 UNOP_KIND.
8745 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
8746 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
8747 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
8748 (operator_length_f): New fuction.
8749 (print_subexp_f): New function.
8750 (op_name_f): New function.
8751 (dump_subexp_body_f): New function.
8752 (operator_check_f): New function.
8753 (exp_descriptor_f): Replace standard expression handling functions
8754 with new functions.
8755 * gdb/fortran-operator.def: New file.
8756 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
8757 * gdb/std-operator.def: Remove UNOP_KIND.
8758
8759 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8760
8761 * std-operator.def: Remove unbalanced, stray double quote
8762 character.
8763
8764 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
8765 Chris January <chris.january@arm.com>
8766 Daniel Everett <daniel.everett@arm.com>
8767 Nick Forrington <nick.forrington@arm.com>
8768 Richard Bunt <richard.bunt@arm.com>
8769
8770 * cp-valprint.c (cp_print_value_fields): Allow an additional level
8771 of depth when printing anonymous structs or unions.
8772 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
8773 Don't print either the top-level value, or the children if the
8774 max-depth is exceeded.
8775 (ppscm_print_children): When printing the key of a map, allow one
8776 extra level of depth.
8777 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
8778 print either the top-level value, or the children if the max-depth
8779 is exceeded.
8780 (print_children): When printing the key of a map, allow one extra
8781 level of depth.
8782 * python/py-value.c (valpy_format_string): Add max_depth keyword.
8783 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
8784 (user_print_options): Initialise max_depth field.
8785 (val_print_scalar_or_string_type_p): New function.
8786 (val_print): Check to see if the max depth has been reached.
8787 (val_print_check_max_depth): Define new function.
8788 (show_print_max_depth): New function.
8789 (_initialize_valprint): Add 'print max-depth' option.
8790 * valprint.h (struct value_print_options) <max_depth>: New field.
8791 (val_print_check_max_depth): Declare new function.
8792 * NEWS: Document new feature.
8793
8794 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
8795
8796 * ada-lang.c (ada_language_defn): Initialise new field.
8797 * c-lang.c (c_is_string_type_p): New function.
8798 (c_language_defn): Initialise new field.
8799 (cplus_language_defn): Initialise new field.
8800 (asm_language_defn): Initialise new field.
8801 (minimal_language_defn): Initialise new field.
8802 * c-lang.h (c_is_string_type_p): Declare new function.
8803 * d-lang.c (d_language_defn): Initialise new field.
8804 * f-lang.c (f_is_string_type_p): New function.
8805 (f_language_defn): Initialise new field.
8806 * go-lang.c (go_is_string_type_p): New function.
8807 (go_language_defn): Initialise new field.
8808 * language.c (default_is_string_type_p): New function.
8809 (unknown_language_defn): Initialise new field.
8810 (auto_language_defn): Initialise new field.
8811 * language.h (struct language_defn) <la_is_string_type_p>: New
8812 member variable.
8813 (default_is_string_type_p): Declare new function.
8814 * m2-lang.c (m2_language_defn): Initialise new field.
8815 * objc-lang.c (objc_language_defn): Initialise new field.
8816 * opencl-lang.c (opencl_language_defn): Initialise new field.
8817 * p-lang.c (pascal_is_string_type_p): New function.
8818 (pascal_language_defn): Initialise new field.
8819 * rust-lang.c (rust_is_string_type_p): New function.
8820 (rust_language_defn): Initialise new field.
8821
8822 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
8823
8824 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
8825 New field.
8826 * ada-lang.c (ada_language_defn): Initialise new field.
8827 * c-lang.c (c_language_defn): Likewise.
8828 (cplus_language_defn): Likewise.
8829 (asm_language_defn): Likewise.
8830 (minimal_language_defn): Likewise.
8831 * d-lang.c (d_language_defn): Likewise.
8832 * f-lang.c (f_language_defn): Likewise.
8833 * go-lang.c (go_language_defn): Likewise.
8834 * language.c (unknown_language_defn): Likewise.
8835 (auto_language_defn): Likewise.
8836 * m2-lang.c (m2_language_defn): Likewise.
8837 * objc-lang.c (objc_language_defn): Likewise.
8838 * opencl-lang.c (opencl_language_defn): Likewise.
8839 * p-lang.c (pascal_language_defn): Likewise.
8840 * rust-lang.c (rust_language_defn): Likewise.
8841
8842 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
8843
8844 * ada-lang.c (ada_is_character_type): Change return type to bool.
8845 (ada_is_string_type): Likewise.
8846 * ada-lang.h (ada_is_character_type): Update declaration
8847 (ada_is_string_type): Likewise.
8848
8849 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8850
8851 Support style in 'frame|thread apply'
8852
8853 * gdbcmd.h (execute_command_to_string): New term_out parameter.
8854 * record.c (record_start, record_stop): Update callers of
8855 execute_command_to_string with false.
8856 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
8857 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
8858 methods.
8859 (class string_file): New constructor with term_out parameter.
8860 Override methods term_out and can_emit_style_escape. New member
8861 term_out.
8862 (class stdio_file): Override can_emit_style_escape.
8863 (class tee_file): Override term_out and can_emit_style_escape.
8864 * utils.h (can_emit_style_escape): Remove.
8865 * utils.c (can_emit_style_escape): Likewise.
8866 Update all callers of can_emit_style_escape (SOMESTREAM) to
8867 SOMESTREAM->can_emit_style_escape.
8868 * source-cache.c (source_cache::get_source_lines): Likewise.
8869 * stack.c (frame_apply_command_count): Call execute_command_to_string
8870 passing the term_out characteristic of the current gdb_stdout.
8871 * thread.c (thr_try_catch_cmd): Likewise.
8872 * top.c (execute_command_to_string): pass term_out parameter
8873 to construct the string_file for the command output.
8874 * ui-file.c (term_cli_styling): New function (most code moved
8875 from utils.c can_emit_style_escape).
8876 (string_file::string_file, string_file::can_emit_style_escape,
8877 stdio_file::can_emit_style_escape, tee_file::term_out,
8878 tee_file::can_emit_style_escape): New functions.
8879
8880 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8881
8882 * NEWS: Mention the new set|show may-call-functions.
8883 * infcall.c (may_call_functions_p): New variable.
8884 (show_may_call_functions_p): New function.
8885 (call_function_by_hand_dummy): Throws an error if not
8886 may-call-functions.
8887 (_initialize_infcall): Call add_setshow_boolean_cmd for
8888 may-call-functions.
8889
8890 2019-04-25 Keith Seitz <keiths@redhat.com>
8891
8892 PR c++/24367
8893 * cp-support.c (inspect_type): Don't attempt substitutions
8894 of symbol with the same name.
8895
8896 2019-04-25 Tom Tromey <tromey@adacore.com>
8897
8898 PR gdb/24475:
8899 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
8900 static.
8901
8902 2019-04-25 Tom Tromey <tromey@adacore.com>
8903
8904 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
8905 rvalue reference.
8906 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
8907 (gdb_xml_parser::parse): Use std::move.
8908 * python/python-internal.h (gdbpy_convert_exception): Take a const
8909 reference.
8910 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
8911 std::move.
8912 * python/py-utils.c (gdbpy_convert_exception): Take a const
8913 reference.
8914 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
8915 Use std::move.
8916 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
8917 Use std::move.
8918 * mi/mi-main.c (mi_print_exception): Take a const reference.
8919 * main.c (handle_command_errors): Take a const reference.
8920 * linespec.c (parse_linespec): Use std::move.
8921 * infcall.c (run_inferior_call): Use std::move.
8922 (call_function_by_hand_dummy): Use std::move.
8923 * exec.c (try_open_exec_file): Use std::move.
8924 * exceptions.h (exception_print, exception_fprintf)
8925 (exception_print_same): Update.
8926 * exceptions.c (print_exception, exception_print)
8927 (exception_fprintf, exception_print_same): Change parameters to
8928 const reference.
8929 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
8930 * common/new-op.c: Use std::move.
8931 * common/common-exceptions.h (struct gdb_exception): Add move
8932 constructor.
8933 (struct gdb_exception_error, struct gdb_exception_quit, struct
8934 gdb_quit_bad_alloc): Change constructor to move constructor.
8935 (throw_exception): Change parameter to rvalue reference.
8936 * common/common-exceptions.c (throw_exception): Take rvalue
8937 reference.
8938 * cli/cli-interp.c (safe_execute_command): Use std::move.
8939 * breakpoint.c (insert_bp_location, location_to_sals): Use
8940 std::move.
8941
8942 2019-04-25 Tom Tromey <tromey@adacore.com>
8943
8944 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
8945 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
8946 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
8947 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
8948 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
8949 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
8950 guile/scm-value.c: Use unpack.
8951 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
8952 gdbscm_gdb_exception.
8953 (gdbscm_throw_gdb_exception): Likewise.
8954 (struct gdbscm_gdb_exception): New.
8955 (unpack): New function.
8956 (gdbscm_wrap): Use unpack.
8957
8958 2019-04-25 Tom Tromey <tromey@adacore.com>
8959
8960 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
8961 (gdb_rl_callback_handler): Use std::move.
8962 * common/common-exceptions.h (struct gdb_exception): Add move
8963 assignment operator.
8964 (throw_exception_sjlj): Change "exception" to const reference.
8965 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
8966 (throw_exception_sjlj): Change "exception" to const reference.
8967
8968 2019-04-25 Tom Tromey <tromey@adacore.com>
8969
8970 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
8971 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
8972 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
8973 Update.
8974 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
8975 Update.
8976 * mi/mi-interp.c (mi_interp::exec): Update.
8977 * linespec.c (parse_linespec): Update.
8978 * infcall.c (run_inferior_call): Update.
8979 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
8980 * guile/scm-symbol.c (gdbscm_lookup_symbol)
8981 (gdbscm_lookup_global_symbol): Update.
8982 * guile/scm-param.c (gdbscm_parameter_value): Update.
8983 * guile/scm-frame.c (gdbscm_frame_read_register)
8984 (gdbscm_frame_read_var): Update.
8985 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
8986 * exec.c (try_open_exec_file): Update.
8987 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
8988 (gdb_rl_callback_handler): Update.
8989 * common/common-exceptions.h (exception_none): Don't declare.
8990 * common/common-exceptions.c (exception_none): Don't define.
8991 (struct catcher) <exception>: Update.
8992 * cli/cli-interp.c (safe_execute_command): Update.
8993 * breakpoint.c (insert_bp_location, location_to_sals): Update.
8994
8995 2019-04-25 Ali Tamur <tamur@google.com>
8996
8997 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
8998 (read_attribute_value): Likewise.
8999 (dwarf2_read_addr_index): Update comment.
9000 (read_str_index): Add DW_FORM_strx.
9001 (dwarf2_string_attr): Likewise.
9002 (dwarf2_const_value_attr): Likewise.
9003 (dump_die_shallow): Likewise.
9004 (dwarf2_fetch_constant_bytes): Likewise.
9005 (skip_form_bytes): Likewise.
9006 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
9007
9008 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
9009
9010 PR corefiles/11608
9011 PR corefiles/18187
9012 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
9013 OFFSET. Verify if current mapping contains an ELF header.
9014 (linux_find_memory_regions_full): Adjust call to
9015 dump_mapping_p.
9016
9017 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
9018 Kang Li <kanglictf@gmail.com>
9019
9020 PR gdb/21600
9021
9022 * dwarf2-frame.c (read_initial_length): Be consistent about using
9023 unsigned representation of length.
9024 (decode_frame_entry_1): Likewise. Check for wraparound of
9025 end pointer as well as buffer overflow.
9026
9027 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
9028
9029 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
9030 "vq".
9031
9032 2019-04-24 Tom Tromey <tromey@adacore.com>
9033
9034 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
9035
9036 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9037
9038 * s12z-tdep.c (s12z_unwind_pc): Delete.
9039 (s12z_unwind_sp): Delete.
9040 (s12z_gdbarch_init): Don't register deleted functions with
9041 gdbarch.
9042
9043 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9044
9045 * rl78-tdep.c (rl78_unwind_sp): Delete.
9046 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
9047
9048 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9049
9050 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
9051 (xstormy16_unwind_pc): Delete.
9052 (xstormy16_dummy_id): Delete.
9053 (xstormy16_gdbarch_init): Don't register deleted functions with
9054 gdbarch.
9055
9056 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9057
9058 * vax-tdep.c (vax_unwind_pc): Delete.
9059 (vax_gdbarch_init): Don't register deleted function with gdbarch.
9060
9061 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9062
9063 * v850-tdep.c (v850_unwind_sp): Delete.
9064 (v850_unwind_pc): Delete.
9065 (v850_dummy_id): Delete.
9066 (v850_gdbarch_init): Don't register deleted functions with
9067 gdbarch.
9068
9069 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9070
9071 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
9072 (tilegx_unwind_pc): Delete.
9073 (tilegx_unwind_dummy_id): Delete.
9074 (tilegx_gdbarch_init): Don't register deleted functions with
9075 gdbarch.
9076
9077 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9078
9079 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
9080 (tic6x_dummy_id): Delete.
9081 (tic6x_gdbarch_init): Don't register deleted functions with
9082 gdbarch.
9083
9084 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9085
9086 * sparc-tdep.c (sparc_unwind_pc): Delete.
9087 (sparc32_gdbarch_init): Don't register deleted function with
9088 gdbarch.
9089
9090 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9091
9092 * sh-tdep.c (sh_unwind_sp): Delete.
9093 (sh_unwind_pc): Delete.
9094 (sh_dummy_id): Delete.
9095 (sh_gdbarch_init): Don't register deleted functions with
9096 gdbarch.
9097
9098 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9099
9100 * score-tdep.c (score_unwind_sp): Delete.
9101 (score_unwind_pc): Delete.
9102 (score_dummy_id): Delete.
9103 (score_gdbarch_init): Don't register deleted functions with
9104 gdbarch.
9105
9106 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9107
9108 * rx-tdep.c (rx_unwind_pc): Delete.
9109 (rx_unwind_sp): Delete.
9110 (rx_dummy_id): Delete.
9111 (rx_gdbarch_init): Don't register deleted functions with
9112 gdbarch. Update comment.
9113
9114 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9115
9116 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
9117 (rs6000_dummy_id): Delete.
9118 (rs6000_gdbarch_init): Don't register deleted functions with
9119 gdbarch.
9120
9121 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9122
9123 * or1k-tdep.c (or1k_dummy_id): Delete.
9124 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
9125
9126 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9127
9128 * nios2-tdep.c (nios2_dummy_id): Delete.
9129 (nios2_unwind_sp): Delete.
9130 (nios2_gdbarch_init): Don't register deleted functions with
9131 gdbarch.
9132
9133 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9134
9135 * nds32-tdep.c (nds32_dummy_id): Delete.
9136 (nds32_unwind_pc): Delete.
9137 (nds32_unwind_sp): Delete.
9138 (nds32_gdbarch_init): Don't register deleted functions with
9139 gdbarch.
9140
9141 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9142
9143 * msp430-tdep.c (msp430_unwind_pc): Delete.
9144 (msp430_unwind_sp): Delete.
9145 (msp430_dummy_id): Delete.
9146 (msp430_gdbarch_init): Don't register deleted functions with
9147 gdbarch.
9148
9149 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9150
9151 * moxie-tdep.c (moxie_unwind_sp): Delete.
9152 (moxie_unwind_pc): Delete.
9153 (moxie_dummy_id): Delete.
9154 (moxie_gdbarch_init): Don't register deleted functions with
9155 gdbarch.
9156
9157 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9158
9159 * mn10300-tdep.c (mn10300_dummy_id): Delete.
9160 (mn10300_unwind_pc): Delete.
9161 (mn10300_unwind_sp): Delete.
9162 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
9163 mn10300_unwind_sp.
9164 (mn10300_frame_unwind_init): Don't register deleted functions with
9165 gdbarch.
9166
9167 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9168
9169 * mep-tdep.c (mep_unwind_pc): Delete.
9170 (mep_unwind_sp): Delete.
9171 (mep_dummy_id): Delete.
9172 (mep_gdbarch_init): Don't register deleted functions with
9173 gdbarch.
9174
9175 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9176
9177 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
9178 (m68hc11_unwind_sp): Delete.
9179 (m68hc11_gdbarch_init): Don't register deleted functions with
9180 gdbarch.
9181
9182 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9183
9184 * m32r-tdep.c (m32r_unwind_sp): Delete.
9185 (m32r_unwind_pc): Delete.
9186 (m32r_dummy_id): Delete.
9187 (m32r_gdbarch_init): Don't register deleted functions with
9188 gdbarch.
9189
9190 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9191
9192 * m32c-tdep.c (m32c_unwind_pc): Delete.
9193 (m32c_unwind_sp): Delete.
9194 (m32c_dummy_id): Delete.
9195 (m32c_gdbarch_init): Don't register deleted functions with
9196 gdbarch.
9197
9198 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9199
9200 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
9201 (lm32_unwind_pc): Delete.
9202 (lm32_dummy_id): Delete.
9203 (lm32_gdbarch_init): Don't register deleted functions with
9204 gdbarch.
9205
9206 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9207
9208 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
9209 (iq2000_unwind_pc): Delete.
9210 (iq2000_dummy_id): Delete.
9211 (iq2000_gdbarch_init): Don't register deleted functions with
9212 gdbarch.
9213
9214 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9215
9216 * nds32-tdep.c (nds32_type_align): Delete.
9217 (nds32_push_dummy_call): Use type_align instead.
9218
9219 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9220
9221 * arm-tdep.c (arm_type_align): Only handle vector override case.
9222 (arm_push_dummy_call): Use type_align.
9223 (arm_gdbarch_init): Register arm_type_align gdbarch function.
9224
9225 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9226
9227 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
9228 case.
9229 (pass_on_stack): Use type_align.
9230 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
9231 function.
9232
9233 2019-04-23 Tom Tromey <tromey@adacore.com>
9234
9235 * dwarf2read.c (line_header::file_name_at): Remove unused
9236 overload.
9237
9238 2019-04-23 Tom de Vries <tdevries@suse.de>
9239
9240 PR gdb/24438
9241 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
9242 invocation.
9243
9244
9245 2019-03-27 Ali Tamur <tamur@google.com>
9246
9247 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
9248 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
9249 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
9250 (dwarf_expr_context::get_addr_index): Likewise
9251 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
9252 (symbol_needs_eval_context::get_addr_index): Likewise
9253 (disassemble_dwarf_expression): Add DW_OP_addrx
9254 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
9255 (read_cutu_die_from_dwo): Update comment
9256 (skip_one_die): Add DW_FORM_addrx
9257 (read_attribute_value): Likewise
9258 (var_decode_location): Add DW_OP_addrx
9259 (dwarf2_const_value_attr): Add DW_FORM_addrx
9260 (dump_die_shallow): Likewise
9261 (dwarf2_fetch_constant_bytes): Likewise
9262 (decode_locdesc): Add DW_OP_addrx
9263 (skip_form_bytes): Add DW_FORM_addrx
9264
9265 2019-04-22 Ali Tamur <tamur@google.com>
9266
9267 * MAINTAINERS (Write After Approval): Add self.
9268
9269 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
9270
9271 * solib-svr4.c (get_svr4_info): Add pspace parameter.
9272 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
9273 (open_symbol_file_object): Likewise.
9274 (svr4_default_sos): Add info parameter.
9275 (svr4_read_so_list): Likewise.
9276 (svr4_current_sos_direct): Adjust functions calls to pass down
9277 info.
9278 (svr4_current_sos_1): Add info parameter.
9279 (svr4_current_sos): Call get_svr4_info, pass info down to
9280 svr4_current_sos_1.
9281 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
9282 get_svr4_info.
9283 (svr4_in_dynsym_resolve_code): Pass current_program_space to
9284 get_svr4_info.
9285 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
9286 to get_svr4_info.
9287 (probes_table_remove_objfile_probes): Likewise.
9288 (register_solib_event_probe): Add info parameter.
9289 (solist_update_incremental): Pass info parameter down to
9290 svr4_read_so_list.
9291 (disable_probes_interface): Add info parameter.
9292 (svr4_handle_solib_event): Pass current_program_space to
9293 get_svr4_info. Adjust disable_probes_interface cleanup.
9294 (svr4_create_probe_breakpoints): Add info parameter, pass it
9295 down to register_solib_event_probe.
9296 (svr4_create_solib_event_breakpoints): Add info parameter,
9297 pass it down to svr4_create_probe_breakpoints.
9298 (enable_break): Pass info down to
9299 svr4_create_solib_event_breakpoints.
9300 (svr4_solib_create_inferior_hook): Pass current_program_space to
9301 get_svr4_info.
9302 (svr4_clear_solib): Likewise.
9303
9304 2019-04-22 Pedro Alves <palves@redhat.com>
9305
9306 * solib-svr4.c (svr4_free_objfile_observer): New.
9307 (probe_and_action::objfile): New field.
9308 (probes_table_htab_remove_objfile_probes)
9309 (probes_table_remove_objfile_probes): New functions.
9310 (register_solib_event_probe): Add 'objfile' parameter. Store it
9311 in the new probe_and_action. Don't store the probe in 'lookup'.
9312 (svr4_create_probe_breakpoints): Pass objfile to
9313 register_solib_event_probe.
9314 (_initialize_svr4_solib): Register a free_objfile observer.
9315
9316 2019-04-19 Tom Tromey <tom@tromey.com>
9317
9318 * common/queue.h: Remove.
9319
9320 2019-04-19 Tom Tromey <tom@tromey.com>
9321
9322 * event-loop.c: Don't include "common/queue.h".
9323
9324 2019-04-19 Tom Tromey <tom@tromey.com>
9325
9326 * remote.c (remote_target): Use delete.
9327 * remote-notif.h: Include <list>, not "common/queue.h".
9328 (notif_client_p): Remove typedef.
9329 (remote_notif_state): Add constructor, destructor, initializer.
9330 <notif_queue>: Now a std::list.
9331 (remote_notif_state_xfree): Don't declare.
9332 * remote-notif.c (remote_notif_process, handle_notification)
9333 (remote_notif_state_allocate): Update.
9334 (~remote_notif_state): Rename from remote_notif_state_xfree.
9335
9336 2019-04-19 Tom Tromey <tom@tromey.com>
9337
9338 * symfile.c (reread_symbols): Update.
9339 * objfiles.c (objfile_register_static_link)
9340 (objfile_lookup_static_link): Update
9341 (~objfile) Don't delete static_links.
9342 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
9343
9344 2019-04-19 Tom Tromey <tom@tromey.com>
9345
9346 * type-stack.h (struct type_stack) <insert>: Constify string.
9347 * type-stack.c (type_stack::insert): Constify string.
9348 * gdbtypes.h (lookup_template_type): Update.
9349 (address_space_name_to_int): Update.
9350 * gdbtypes.c (address_space_name_to_int): Make space_identifier
9351 const.
9352 (lookup_template_type): Make name const.
9353 * c-exp.y: Update rules.
9354 (lex_one_token, classify_name, classify_inner_name)
9355 (c_print_token): Update.
9356 * p-exp.y: Update rules.
9357 (yylex): Update.
9358 * f-exp.y: Update rules.
9359 (yylex): Update.
9360 * d-exp.y: Update rules.
9361 (lex_one_token, classify_name, classify_inner_name): Update.
9362 * parse.c (write_dollar_variable, copy_name): Return std::string.
9363 * parser-defs.h (copy_name): Change return type.
9364 * m2-exp.y: Update rules.
9365 (yylex): Update.
9366 * go-exp.y (lex_one_token): Update.
9367 Update rules.
9368 (classify_unsafe_function, classify_packaged_name)
9369 (classify_name, yylex): Update.
9370
9371 2019-04-19 Sergei Trofimovich <siarheit@google.com>
9372
9373 * configure.ac: add --enable-source-highlight switch.
9374 * configure: Regenerate.
9375 * top.c (print_gdb_version): plumb --enable-source-highlight
9376 status to "show configuration".
9377
9378 2019-04-19 Tom Tromey <tromey@adacore.com>
9379
9380 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
9381 Check ADA_TYPE_P.
9382 (empty_record, ada_template_to_fixed_record_type_1)
9383 (template_to_static_fixed_type)
9384 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
9385 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
9386 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
9387 macros.
9388
9389 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
9390
9391 PR symtab/24423:
9392 * source.c (print_source_lines_base): Advance "iter" when a
9393 control character is seen.
9394
9395 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9396
9397 * inferior.h (struct infcall_suspend_state_deleter):
9398 Catch exception in destructor to avoid crash.
9399
9400 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9401
9402 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
9403 close to the add_com "shell".
9404
9405 2019-04-18 Tom Tromey <tromey@adacore.com>
9406
9407 * process-stratum-target.h (class process_stratum_target)
9408 <stratum>: Add "final".
9409
9410 2019-04-17 Tom Tromey <tromey@adacore.com>
9411
9412 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
9413 against nullptr before use.
9414
9415 2019-04-17 Alan Hayward <alan.hayward@arm.com>
9416
9417 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
9418
9419 2019-04-17 Jim Wilson <jimw@sifive.com>
9420 Andrew Burgess <andrew.burgess@embecosm.com>
9421
9422 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
9423 code read might fail, assume 4-byte breakpoint in that case.
9424
9425 2019-04-15 Leszek Swirski <leszeks@google.com>
9426
9427 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
9428 rather than a hand-rolled POD check when checking for forced MEMORY
9429 classification.
9430
9431 2019-04-15 Alan Hayward <alan.hayward@arm.com>
9432
9433 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
9434 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
9435 function.
9436 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
9437 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
9438 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
9439 declaration.
9440
9441 2019-04-15 Alan Hayward <alan.hayward@arm.com>
9442
9443 * aarch64-linux-nat.c
9444 (aarch64_linux_nat_target::thread_architecture): Add override.
9445 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
9446 each VQ.
9447
9448 2019-04-15 Alan Hayward <alan.hayward@arm.com>
9449
9450 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
9451
9452 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
9453
9454 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
9455 target types of size 96-bits, add some additional comments, and
9456 check that the builtin type we found was the correct size.
9457
9458 2019-04-12 Eli Zaretskii <eliz@gnu.org>
9459
9460 * utils.c (prompt_for_continue): Don't restore the styling at the
9461 end, as applied_style has the wrong value. This fixes styling in
9462 long lists of file names that are interrupted by the "Continue?"
9463 prompt.
9464
9465 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
9466
9467 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
9468 * c-lang.c (c_language_defn): Likewise.
9469 (cplus_language_defn): Likewise.
9470 (asm_language_defn): Likewise.
9471 (minimal_language_defn): Likewise.
9472 * d-lang.c (d_language_defn): Likewise.
9473 * f-lang.c (f_language_defn): Likewise.
9474 * go-lang.c (go_language_defn): Likewise.
9475 * language.c (unknown_language_defn): Likewise.
9476 (auto_language_defn): Likewise.
9477 * language.h (struct language_defn): Remove la_magic field.
9478 (LANG_MAGIC): Delete.
9479 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
9480 * objc-lang.c (objc_language_defn): Likewise.
9481 * opencl-lang.c (opencl_language_defn): Likewise.
9482 * p-lang.c (pascal_language_defn): Likewise.
9483 * rust-lang.c (rust_language_defn): Likewise.
9484
9485 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
9486
9487 * riscv-tdep.c (riscv_type_align): New function.
9488 (riscv_type_alignment): Delete.
9489 (riscv_arg_location): Use 'type_align'.
9490 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
9491
9492 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
9493
9494 * gdbtypes.c (type_align): A struct with no non-static fields also
9495 has alignment of 1.
9496
9497 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
9498
9499 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
9500 component to 0.
9501 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
9502 member.
9503 (riscv_struct_info::analyse): New implementation using new
9504 analyse_inner member function.
9505 (riscv_struct_info::field_offset): New member function.
9506 (riscv_struct_info::m_offsets): New member variable.
9507 (riscv_struct_info::analyse_inner): New private member function,
9508 takes the old implementation of riscv_struct_info::analyse but
9509 extended to track field offsets.
9510 (riscv_call_arg_struct): Update the struct folding special cases
9511 to handle cases where empty C++ structs, which are non-zero
9512 length, are found.
9513 (riscv_arg_location): Initialise the length of each location, a
9514 non-zero length now indicates the location is in use.
9515 (riscv_push_dummy_call): Allow for the first location having a
9516 non-zero offset when setting up arguments.
9517 (riscv_return_value): Likewise, but for return values.
9518
9519 2019-04-11 Tom Tromey <tromey@adacore.com>
9520
9521 * utils.c (internal_vproblem): Make "msg" const.
9522
9523 2019-04-11 Alan Hayward <alan.hayward@arm.com>
9524
9525 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
9526 * trad-frame.c (trad_frame_reset_saved_regs): New function.
9527 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
9528 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
9529
9530 2019-04-10 Kevin Buettner <kevinb@redhat.com>
9531
9532 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
9533 function.
9534 (fill_gregset): Call amd64_linux_collect_native_gregset instead
9535 of amd64_collect_native_gregset.
9536 (amd64_linux_nat_target::store_registers): Likewise.
9537
9538 2019-04-10 Tom Tromey <tom@tromey.com>
9539
9540 * symtab.c (lookup_global_symbol_from_objfile)
9541 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
9542 * objfiles.h (class separate_debug_iterator): New.
9543 (class separate_debug_range): New.
9544 (struct objfile) <separate_debug_objfiles>: New method.
9545 (objfile_separate_debug_iterate): Don't declare.
9546 * objfiles.c (separate_debug_iterator::operator++): Rename from
9547 objfile_separate_debug_iterate.
9548 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
9549 iterator.
9550 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
9551 iterator.
9552
9553 2019-04-10 Tom Tromey <tom@tromey.com>
9554
9555 * symfile.c (reread_symbols): Remove old comment.
9556 * objfiles.c (free_all_objfiles): Fix a typo.
9557
9558 2019-04-10 Tom Tromey <tom@tromey.com>
9559
9560 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
9561 * minsyms.c (lookup_minimal_symbol): Use foreach.
9562 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
9563 (lookup_minimal_symbol_solib_trampoline): Likewise.
9564 * symfile.c (reread_symbols): Use foreach.
9565
9566 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
9567 Tom Tromey <tromey@adacore.com>
9568
9569 PR rust/24414:
9570 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
9571 (rust_lex_int_test): Change "value" to be LONGEST.
9572 (rust_lex_tests): Add test for long integer literal.
9573
9574 2019-04-09 Tom Tromey <tromey@adacore.com>
9575
9576 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
9577 to bool.
9578 (extended_remote_target::attach): Update.
9579 (remote_target::remote_notice_new_inferior): Update.
9580 (remote_target::add_current_inferior_and_thread): Update.
9581 * inferior.c (exit_inferior_1): Use "false".
9582 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
9583
9584 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
9585
9586 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
9587 the "start" command.
9588
9589 2019-04-08 Kevin Buettner <kevinb@redhat.com>
9590
9591 * python/py-inferior.c (infpy_thread_from_thread_handle):
9592 Adjust comments to reflect renaming of thread_from_thread_handle
9593 to thread_from_handle. Adjust keywords. Fix type error message.
9594 (inferior_object_methods): Add thread_from_handle. Retain
9595 thread_from_thread_handle, but mark it as deprecated.
9596
9597 2019-04-08 Kevin Buettner <kevinb@redhat.com>
9598
9599 * gdbthread.h (find_thread_by_handle): Revise declaration.
9600 * thread.c (find_thread_by_handle): Likewise. Adjust
9601 implementation too.
9602 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
9603 support for buffer objects as handles.
9604
9605 2019-04-08 Kevin Buettner <kevinb@redhat.com>
9606
9607 * python/py-infthread.c (thpy_thread_handle): New function.
9608 (thread_object_methods): Register thpy_thread_handle.
9609
9610 2019-04-08 Kevin Buettner <kevinb@redhat.com>
9611
9612 * gdbthread.h (thread_to_thread_handle): Declare.
9613 * thread.c (gdbtypes.h): Include.
9614 (thread_to_thread_handle): New function.
9615
9616 * target.h (struct target_ops): Add thread_info_to_thread_handle.
9617 (target_thread_info_to_thread_handle): Declare.
9618 * target.c (target_thread_info_to_thread_handle): New function.
9619 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
9620 * target-delegates.c: Regenerate.
9621
9622 * linux-thread-db.c (class thread_db_target): Add method
9623 thread_info_to_thread_handle.
9624 (thread_db_target::thread_info_to_thread_handle): Define.
9625 * remote.c (class remote_target): Add new method
9626 thread_info_to_thread_handle.
9627 (remote_target::thread_info_to_thread_handle): Define.
9628
9629 2019-04-08 Pedro Alves <palves@redhat.com>
9630
9631 * common/common-exceptions.c (throw_exception): Don't create
9632 named object to throw; throw directly.
9633 (throw_it): Likewise. Don't initialize gdb_exception::message
9634 here, with new; pass FMT and AP to the ctor instead.
9635 * common/common-exceptions.h: Include <string>.
9636 (gdb_exception::gdb_exception(enum return_reason, enum errors,
9637 const char *, va_list)): New ctor. Use std::make_shared.
9638 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
9639 errors)): Delete.
9640 (gdb_exception_error::gdb_exception_error(enum errors, const char
9641 *, va_list)): New.
9642 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
9643 Add assertion.
9644 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
9645 errors)): Delete.
9646 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
9647 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
9648 Add assertion.
9649
9650 2019-04-08 Tom Tromey <tom@tromey.com>
9651
9652 * valops.c (value_rtti_indirect_type): Replace throw_exception
9653 with throw.
9654 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
9655 with throw.
9656 * thread.c (thr_try_catch_cmd): Replace throw_exception with
9657 throw.
9658 * target.c (target_translate_tls_address): Replace throw_exception
9659 with throw.
9660 * stack.c (frame_apply_command_count): Replace throw_exception
9661 with throw.
9662 * solib-spu.c (append_ocl_sos): Replace throw_exception with
9663 throw.
9664 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
9665 with throw.
9666 * rs6000-tdep.c (rs6000_frame_cache)
9667 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
9668 * remote.c: Replace throw_exception with throw.
9669 * record-full.c (record_full_message, record_full_wait_1)
9670 (record_full_restore): Replace throw_exception with throw.
9671 * record-btrace.c:
9672 (get_thread_current_frame_id, record_btrace_start_replaying)
9673 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
9674 (cmd_record_btrace_start): Replace throw_exception with throw.
9675 * parse.c (parse_exp_in_context_1): Replace throw_exception with
9676 throw.
9677 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
9678 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
9679 * linespec.c:
9680 (find_linespec_symbols): Replace throw_exception with throw.
9681 * infrun.c (displaced_step_prepare, resume): Replace
9682 throw_exception with throw.
9683 * infcmd.c (post_create_inferior): Replace throw_exception with
9684 throw.
9685 * inf-loop.c (inferior_event_handler): Replace throw_exception
9686 with throw.
9687 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
9688 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
9689 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
9690 (get_prev_frame_always, get_frame_pc_if_available)
9691 (get_frame_address_in_block_if_available, get_frame_language):
9692 Replace throw_exception with throw.
9693 * frame-unwind.c (frame_unwind_try_unwinder): Replace
9694 throw_exception with throw.
9695 * eval.c (fetch_subexp_value, evaluate_var_value)
9696 (evaluate_funcall, evaluate_subexp_standard): Replace
9697 throw_exception with throw.
9698 * dwarf2loc.c (call_site_find_chain)
9699 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
9700 Replace throw_exception with throw.
9701 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
9702 with throw.
9703 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
9704 throw.
9705 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
9706 * completer.c (complete_line_internal): Replace throw_exception
9707 with throw.
9708 * compile/compile-object-run.c (compile_object_run): Replace
9709 throw_exception with throw.
9710 * cli/cli-script.c (process_next_line): Replace throw_exception
9711 with throw.
9712 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
9713 (btrace_enable, btrace_maint_update_pt_packets): Replace
9714 throw_exception with throw.
9715 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
9716 throw_exception with throw.
9717 * break-catch-throw.c (re_set_exception_catchpoint): Replace
9718 throw_exception with throw.
9719 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
9720 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
9721 * aarch64-tdep.c (aarch64_make_prologue_cache)
9722 (aarch64_make_stub_cache): Replace throw_exception with throw.
9723
9724 2019-04-08 Tom Tromey <tom@tromey.com>
9725
9726 * common/common-exceptions.c (throw_exception): Rename from
9727 throw_exception_cxx. Remove old copy. Make argument const.
9728 (throw_it): Create and throw exception objects directly.
9729 * common/common-exceptions.h (throw_exception): Make argument
9730 const.
9731 (struct gdb_exception_error): Add constructor.
9732 (struct gdb_exception_quit): Add constructor.
9733
9734 2019-04-08 Tom Tromey <tom@tromey.com>
9735
9736 * common/common-exceptions.h (exception_rethrow): Don't declare.
9737 (TRY_SJLJ): Update comment.
9738 (TRY, CATCH, END_CATCH): Remove.
9739 * common/common-exceptions.c (exception_rethrow): Remove.
9740
9741 2019-04-08 Tom Tromey <tom@tromey.com>
9742
9743 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
9744 Remove.
9745 (gdb_exception_error): Rename from
9746 gdb_exception_RETURN_MASK_ERROR.
9747 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
9748 (gdb_quit_bad_alloc): Update.
9749 * aarch64-tdep.c: Update.
9750 * ada-lang.c: Update.
9751 * ada-typeprint.c: Update.
9752 * ada-valprint.c: Update.
9753 * amd64-tdep.c: Update.
9754 * arch-utils.c: Update.
9755 * break-catch-throw.c: Update.
9756 * breakpoint.c: Update.
9757 * btrace.c: Update.
9758 * c-varobj.c: Update.
9759 * cli/cli-cmds.c: Update.
9760 * cli/cli-interp.c: Update.
9761 * cli/cli-script.c: Update.
9762 * common/common-exceptions.c: Update.
9763 * common/new-op.c: Update.
9764 * common/selftest.c: Update.
9765 * compile/compile-c-symbols.c: Update.
9766 * compile/compile-cplus-symbols.c: Update.
9767 * compile/compile-object-load.c: Update.
9768 * compile/compile-object-run.c: Update.
9769 * completer.c: Update.
9770 * corelow.c: Update.
9771 * cp-abi.c: Update.
9772 * cp-support.c: Update.
9773 * cp-valprint.c: Update.
9774 * darwin-nat.c: Update.
9775 * disasm-selftests.c: Update.
9776 * dtrace-probe.c: Update.
9777 * dwarf-index-cache.c: Update.
9778 * dwarf-index-write.c: Update.
9779 * dwarf2-frame-tailcall.c: Update.
9780 * dwarf2-frame.c: Update.
9781 * dwarf2loc.c: Update.
9782 * dwarf2read.c: Update.
9783 * eval.c: Update.
9784 * event-loop.c: Update.
9785 * event-top.c: Update.
9786 * exec.c: Update.
9787 * f-valprint.c: Update.
9788 * fbsd-tdep.c: Update.
9789 * frame-unwind.c: Update.
9790 * frame.c: Update.
9791 * gdbtypes.c: Update.
9792 * gnu-v3-abi.c: Update.
9793 * guile/guile-internal.h: Update.
9794 * guile/scm-block.c: Update.
9795 * guile/scm-breakpoint.c: Update.
9796 * guile/scm-cmd.c: Update.
9797 * guile/scm-disasm.c: Update.
9798 * guile/scm-frame.c: Update.
9799 * guile/scm-lazy-string.c: Update.
9800 * guile/scm-math.c: Update.
9801 * guile/scm-param.c: Update.
9802 * guile/scm-ports.c: Update.
9803 * guile/scm-pretty-print.c: Update.
9804 * guile/scm-symbol.c: Update.
9805 * guile/scm-symtab.c: Update.
9806 * guile/scm-type.c: Update.
9807 * guile/scm-value.c: Update.
9808 * i386-linux-tdep.c: Update.
9809 * i386-tdep.c: Update.
9810 * inf-loop.c: Update.
9811 * infcall.c: Update.
9812 * infcmd.c: Update.
9813 * infrun.c: Update.
9814 * jit.c: Update.
9815 * language.c: Update.
9816 * linespec.c: Update.
9817 * linux-fork.c: Update.
9818 * linux-nat.c: Update.
9819 * linux-tdep.c: Update.
9820 * linux-thread-db.c: Update.
9821 * main.c: Update.
9822 * mi/mi-cmd-break.c: Update.
9823 * mi/mi-cmd-stack.c: Update.
9824 * mi/mi-interp.c: Update.
9825 * mi/mi-main.c: Update.
9826 * objc-lang.c: Update.
9827 * p-valprint.c: Update.
9828 * parse.c: Update.
9829 * ppc-linux-tdep.c: Update.
9830 * printcmd.c: Update.
9831 * python/py-arch.c: Update.
9832 * python/py-breakpoint.c: Update.
9833 * python/py-cmd.c: Update.
9834 * python/py-finishbreakpoint.c: Update.
9835 * python/py-frame.c: Update.
9836 * python/py-framefilter.c: Update.
9837 * python/py-gdb-readline.c: Update.
9838 * python/py-inferior.c: Update.
9839 * python/py-infthread.c: Update.
9840 * python/py-lazy-string.c: Update.
9841 * python/py-linetable.c: Update.
9842 * python/py-objfile.c: Update.
9843 * python/py-param.c: Update.
9844 * python/py-prettyprint.c: Update.
9845 * python/py-progspace.c: Update.
9846 * python/py-record-btrace.c: Update.
9847 * python/py-record.c: Update.
9848 * python/py-symbol.c: Update.
9849 * python/py-type.c: Update.
9850 * python/py-unwind.c: Update.
9851 * python/py-utils.c: Update.
9852 * python/py-value.c: Update.
9853 * python/python.c: Update.
9854 * record-btrace.c: Update.
9855 * record-full.c: Update.
9856 * remote-fileio.c: Update.
9857 * remote.c: Update.
9858 * riscv-tdep.c: Update.
9859 * rs6000-aix-tdep.c: Update.
9860 * rs6000-tdep.c: Update.
9861 * rust-exp.y: Update.
9862 * rust-lang.c: Update.
9863 * s390-tdep.c: Update.
9864 * selftest-arch.c: Update.
9865 * solib-dsbt.c: Update.
9866 * solib-frv.c: Update.
9867 * solib-spu.c: Update.
9868 * solib-svr4.c: Update.
9869 * solib.c: Update.
9870 * sparc64-linux-tdep.c: Update.
9871 * stack.c: Update.
9872 * symfile-mem.c: Update.
9873 * symmisc.c: Update.
9874 * target.c: Update.
9875 * thread.c: Update.
9876 * top.c: Update.
9877 * tracefile-tfile.c: Update.
9878 * tui/tui.c: Update.
9879 * typeprint.c: Update.
9880 * unittests/cli-utils-selftests.c: Update.
9881 * unittests/parse-connection-spec-selftests.c: Update.
9882 * valops.c: Update.
9883 * valprint.c: Update.
9884 * value.c: Update.
9885 * varobj.c: Update.
9886 * windows-nat.c: Update.
9887 * x86-linux-nat.c: Update.
9888 * xml-support.c: Update.
9889
9890 2019-04-08 Tom Tromey <tom@tromey.com>
9891
9892 * xml-support.c: Use C++ exception handling.
9893 * x86-linux-nat.c: Use C++ exception handling.
9894 * windows-nat.c: Use C++ exception handling.
9895 * varobj.c: Use C++ exception handling.
9896 * value.c: Use C++ exception handling.
9897 * valprint.c: Use C++ exception handling.
9898 * valops.c: Use C++ exception handling.
9899 * unittests/parse-connection-spec-selftests.c: Use C++ exception
9900 handling.
9901 * unittests/cli-utils-selftests.c: Use C++ exception handling.
9902 * typeprint.c: Use C++ exception handling.
9903 * tui/tui.c: Use C++ exception handling.
9904 * tracefile-tfile.c: Use C++ exception handling.
9905 * top.c: Use C++ exception handling.
9906 * thread.c: Use C++ exception handling.
9907 * target.c: Use C++ exception handling.
9908 * symmisc.c: Use C++ exception handling.
9909 * symfile-mem.c: Use C++ exception handling.
9910 * stack.c: Use C++ exception handling.
9911 * sparc64-linux-tdep.c: Use C++ exception handling.
9912 * solib.c: Use C++ exception handling.
9913 * solib-svr4.c: Use C++ exception handling.
9914 * solib-spu.c: Use C++ exception handling.
9915 * solib-frv.c: Use C++ exception handling.
9916 * solib-dsbt.c: Use C++ exception handling.
9917 * selftest-arch.c: Use C++ exception handling.
9918 * s390-tdep.c: Use C++ exception handling.
9919 * rust-lang.c: Use C++ exception handling.
9920 * rust-exp.y: Use C++ exception handling.
9921 * rs6000-tdep.c: Use C++ exception handling.
9922 * rs6000-aix-tdep.c: Use C++ exception handling.
9923 * riscv-tdep.c: Use C++ exception handling.
9924 * remote.c: Use C++ exception handling.
9925 * remote-fileio.c: Use C++ exception handling.
9926 * record-full.c: Use C++ exception handling.
9927 * record-btrace.c: Use C++ exception handling.
9928 * python/python.c: Use C++ exception handling.
9929 * python/py-value.c: Use C++ exception handling.
9930 * python/py-utils.c: Use C++ exception handling.
9931 * python/py-unwind.c: Use C++ exception handling.
9932 * python/py-type.c: Use C++ exception handling.
9933 * python/py-symbol.c: Use C++ exception handling.
9934 * python/py-record.c: Use C++ exception handling.
9935 * python/py-record-btrace.c: Use C++ exception handling.
9936 * python/py-progspace.c: Use C++ exception handling.
9937 * python/py-prettyprint.c: Use C++ exception handling.
9938 * python/py-param.c: Use C++ exception handling.
9939 * python/py-objfile.c: Use C++ exception handling.
9940 * python/py-linetable.c: Use C++ exception handling.
9941 * python/py-lazy-string.c: Use C++ exception handling.
9942 * python/py-infthread.c: Use C++ exception handling.
9943 * python/py-inferior.c: Use C++ exception handling.
9944 * python/py-gdb-readline.c: Use C++ exception handling.
9945 * python/py-framefilter.c: Use C++ exception handling.
9946 * python/py-frame.c: Use C++ exception handling.
9947 * python/py-finishbreakpoint.c: Use C++ exception handling.
9948 * python/py-cmd.c: Use C++ exception handling.
9949 * python/py-breakpoint.c: Use C++ exception handling.
9950 * python/py-arch.c: Use C++ exception handling.
9951 * printcmd.c: Use C++ exception handling.
9952 * ppc-linux-tdep.c: Use C++ exception handling.
9953 * parse.c: Use C++ exception handling.
9954 * p-valprint.c: Use C++ exception handling.
9955 * objc-lang.c: Use C++ exception handling.
9956 * mi/mi-main.c: Use C++ exception handling.
9957 * mi/mi-interp.c: Use C++ exception handling.
9958 * mi/mi-cmd-stack.c: Use C++ exception handling.
9959 * mi/mi-cmd-break.c: Use C++ exception handling.
9960 * main.c: Use C++ exception handling.
9961 * linux-thread-db.c: Use C++ exception handling.
9962 * linux-tdep.c: Use C++ exception handling.
9963 * linux-nat.c: Use C++ exception handling.
9964 * linux-fork.c: Use C++ exception handling.
9965 * linespec.c: Use C++ exception handling.
9966 * language.c: Use C++ exception handling.
9967 * jit.c: Use C++ exception handling.
9968 * infrun.c: Use C++ exception handling.
9969 * infcmd.c: Use C++ exception handling.
9970 * infcall.c: Use C++ exception handling.
9971 * inf-loop.c: Use C++ exception handling.
9972 * i386-tdep.c: Use C++ exception handling.
9973 * i386-linux-tdep.c: Use C++ exception handling.
9974 * guile/scm-value.c: Use C++ exception handling.
9975 * guile/scm-type.c: Use C++ exception handling.
9976 * guile/scm-symtab.c: Use C++ exception handling.
9977 * guile/scm-symbol.c: Use C++ exception handling.
9978 * guile/scm-pretty-print.c: Use C++ exception handling.
9979 * guile/scm-ports.c: Use C++ exception handling.
9980 * guile/scm-param.c: Use C++ exception handling.
9981 * guile/scm-math.c: Use C++ exception handling.
9982 * guile/scm-lazy-string.c: Use C++ exception handling.
9983 * guile/scm-frame.c: Use C++ exception handling.
9984 * guile/scm-disasm.c: Use C++ exception handling.
9985 * guile/scm-cmd.c: Use C++ exception handling.
9986 * guile/scm-breakpoint.c: Use C++ exception handling.
9987 * guile/scm-block.c: Use C++ exception handling.
9988 * guile/guile-internal.h: Use C++ exception handling.
9989 * gnu-v3-abi.c: Use C++ exception handling.
9990 * gdbtypes.c: Use C++ exception handling.
9991 * frame.c: Use C++ exception handling.
9992 * frame-unwind.c: Use C++ exception handling.
9993 * fbsd-tdep.c: Use C++ exception handling.
9994 * f-valprint.c: Use C++ exception handling.
9995 * exec.c: Use C++ exception handling.
9996 * event-top.c: Use C++ exception handling.
9997 * event-loop.c: Use C++ exception handling.
9998 * eval.c: Use C++ exception handling.
9999 * dwarf2read.c: Use C++ exception handling.
10000 * dwarf2loc.c: Use C++ exception handling.
10001 * dwarf2-frame.c: Use C++ exception handling.
10002 * dwarf2-frame-tailcall.c: Use C++ exception handling.
10003 * dwarf-index-write.c: Use C++ exception handling.
10004 * dwarf-index-cache.c: Use C++ exception handling.
10005 * dtrace-probe.c: Use C++ exception handling.
10006 * disasm-selftests.c: Use C++ exception handling.
10007 * darwin-nat.c: Use C++ exception handling.
10008 * cp-valprint.c: Use C++ exception handling.
10009 * cp-support.c: Use C++ exception handling.
10010 * cp-abi.c: Use C++ exception handling.
10011 * corelow.c: Use C++ exception handling.
10012 * completer.c: Use C++ exception handling.
10013 * compile/compile-object-run.c: Use C++ exception handling.
10014 * compile/compile-object-load.c: Use C++ exception handling.
10015 * compile/compile-cplus-symbols.c: Use C++ exception handling.
10016 * compile/compile-c-symbols.c: Use C++ exception handling.
10017 * common/selftest.c: Use C++ exception handling.
10018 * common/new-op.c: Use C++ exception handling.
10019 * cli/cli-script.c: Use C++ exception handling.
10020 * cli/cli-interp.c: Use C++ exception handling.
10021 * cli/cli-cmds.c: Use C++ exception handling.
10022 * c-varobj.c: Use C++ exception handling.
10023 * btrace.c: Use C++ exception handling.
10024 * breakpoint.c: Use C++ exception handling.
10025 * break-catch-throw.c: Use C++ exception handling.
10026 * arch-utils.c: Use C++ exception handling.
10027 * amd64-tdep.c: Use C++ exception handling.
10028 * ada-valprint.c: Use C++ exception handling.
10029 * ada-typeprint.c: Use C++ exception handling.
10030 * ada-lang.c: Use C++ exception handling.
10031 * aarch64-tdep.c: Use C++ exception handling.
10032
10033 2019-04-08 Tom Tromey <tom@tromey.com>
10034
10035 * xml-support.c (gdb_xml_parser::parse): Update.
10036 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
10037 * value.c (show_convenience): Update.
10038 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
10039 (test_parse_flags_qcs): Update.
10040 * thread.c (thr_try_catch_cmd): Update.
10041 * target.c (target_translate_tls_address): Update.
10042 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
10043 (info_frame_command_core, frame_apply_command_count): Update.
10044 * rust-exp.y (rust_lex_exception_test): Update.
10045 * riscv-tdep.c (riscv_print_one_register_info): Update.
10046 * remote.c (remote_target::enable_btrace): Update.
10047 * record-btrace.c (record_btrace_enable_warn): Update.
10048 * python/py-utils.c (gdbpy_convert_exception): Update.
10049 * printcmd.c (do_one_display, print_variable_and_value): Update.
10050 * mi/mi-main.c (mi_print_exception): Update.
10051 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
10052 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
10053 * linux-nat.c (linux_nat_target::attach): Update.
10054 * linux-fork.c (class scoped_switch_fork_info): Update.
10055 * infrun.c (displaced_step_prepare): Update.
10056 * infcall.c (call_function_by_hand_dummy): Update.
10057 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
10058 * gnu-v3-abi.c (print_one_vtable): Update.
10059 * frame.c (get_prev_frame_always): Update.
10060 * f-valprint.c (info_common_command_for_block): Update.
10061 * exec.c (try_open_exec_file): Update.
10062 * exceptions.c (print_exception, exception_print)
10063 (exception_fprintf, exception_print_same): Update.
10064 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
10065 * dwarf-index-cache.c (index_cache::store)
10066 (index_cache::lookup_gdb_index): Update.
10067 * darwin-nat.c (maybe_cache_shell): Update.
10068 * cp-valprint.c (cp_print_value_fields): Update.
10069 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
10070 (gcc_cplus_symbol_address): Update.
10071 * compile/compile-c-symbols.c (gcc_convert_symbol)
10072 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
10073 * common/selftest.c: Update.
10074 * common/common-exceptions.h (struct gdb_exception) <message>: Now
10075 a std::string.
10076 (exception_try_scope_entry, exception_try_scope_exit): Don't
10077 declare.
10078 (struct exception_try_scope): Remove.
10079 (TRY): Don't use exception_try_scope.
10080 (struct gdb_exception): Add constructor, operator=.
10081 <what>: New method.
10082 (struct gdb_exception_RETURN_MASK_ALL)
10083 (struct gdb_exception_RETURN_MASK_ERROR)
10084 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
10085 (struct gdb_quit_bad_alloc): Update.
10086 * common/common-exceptions.c (exception_none): Change
10087 initializer.
10088 (struct catcher) <state, exception>: Initialize inline.
10089 <prev>: Remove member.
10090 (current_catcher): Remove.
10091 (catchers): New global.
10092 (exceptions_state_mc_init): Simplify.
10093 (catcher_pop): Remove.
10094 (exceptions_state_mc, exceptions_state_mc_catch): Update.
10095 (try_scope_depth, exception_try_scope_entry)
10096 (exception_try_scope_exit): Remove.
10097 (throw_exception_sjlj): Update.
10098 (exception_messages, exception_messages_size): Remove.
10099 (throw_it): Simplify.
10100 (gdb_exception_sliced_copy): Remove.
10101 (throw_exception_cxx): Update.
10102 * cli/cli-script.c (script_from_file): Update.
10103 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
10104 Update.
10105 * ada-valprint.c (ada_val_print): Update.
10106 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
10107 (create_excep_cond_exprs): Update.
10108
10109 2019-04-08 Tom Tromey <tom@tromey.com>
10110
10111 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
10112 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
10113 (TRY, CATCH, END_CATCH): Remove some definitions.
10114 * common/common-exceptions.c: Don't use GDB_XCPT.
10115 (catcher_list_size): Remove.
10116 (throw_exception, throw_it): Simplify.
10117
10118 2019-04-05 Tom Tromey <tom@tromey.com>
10119
10120 Revert the header-sorting patch.
10121 * ft32-tdep.c: Revert.
10122 * frv-tdep.c: Revert.
10123 * frv-linux-tdep.c: Revert.
10124 * frame.c: Revert.
10125 * frame-unwind.c: Revert.
10126 * frame-base.c: Revert.
10127 * fork-child.c: Revert.
10128 * findvar.c: Revert.
10129 * findcmd.c: Revert.
10130 * filesystem.c: Revert.
10131 * filename-seen-cache.h: Revert.
10132 * filename-seen-cache.c: Revert.
10133 * fbsd-tdep.c: Revert.
10134 * fbsd-nat.h: Revert.
10135 * fbsd-nat.c: Revert.
10136 * f-valprint.c: Revert.
10137 * f-typeprint.c: Revert.
10138 * f-lang.c: Revert.
10139 * extension.h: Revert.
10140 * extension.c: Revert.
10141 * extension-priv.h: Revert.
10142 * expprint.c: Revert.
10143 * exec.h: Revert.
10144 * exec.c: Revert.
10145 * exceptions.c: Revert.
10146 * event-top.c: Revert.
10147 * event-loop.c: Revert.
10148 * eval.c: Revert.
10149 * elfread.c: Revert.
10150 * dwarf2read.h: Revert.
10151 * dwarf2read.c: Revert.
10152 * dwarf2loc.c: Revert.
10153 * dwarf2expr.h: Revert.
10154 * dwarf2expr.c: Revert.
10155 * dwarf2-frame.c: Revert.
10156 * dwarf2-frame-tailcall.c: Revert.
10157 * dwarf-index-write.h: Revert.
10158 * dwarf-index-write.c: Revert.
10159 * dwarf-index-common.c: Revert.
10160 * dwarf-index-cache.h: Revert.
10161 * dwarf-index-cache.c: Revert.
10162 * dummy-frame.c: Revert.
10163 * dtrace-probe.c: Revert.
10164 * disasm.h: Revert.
10165 * disasm.c: Revert.
10166 * disasm-selftests.c: Revert.
10167 * dictionary.c: Revert.
10168 * dicos-tdep.c: Revert.
10169 * demangle.c: Revert.
10170 * dcache.h: Revert.
10171 * dcache.c: Revert.
10172 * darwin-nat.h: Revert.
10173 * darwin-nat.c: Revert.
10174 * darwin-nat-info.c: Revert.
10175 * d-valprint.c: Revert.
10176 * d-namespace.c: Revert.
10177 * d-lang.c: Revert.
10178 * ctf.c: Revert.
10179 * csky-tdep.c: Revert.
10180 * csky-linux-tdep.c: Revert.
10181 * cris-tdep.c: Revert.
10182 * cris-linux-tdep.c: Revert.
10183 * cp-valprint.c: Revert.
10184 * cp-support.c: Revert.
10185 * cp-namespace.c: Revert.
10186 * cp-abi.c: Revert.
10187 * corelow.c: Revert.
10188 * corefile.c: Revert.
10189 * continuations.c: Revert.
10190 * completer.h: Revert.
10191 * completer.c: Revert.
10192 * complaints.c: Revert.
10193 * coffread.c: Revert.
10194 * coff-pe-read.c: Revert.
10195 * cli-out.h: Revert.
10196 * cli-out.c: Revert.
10197 * charset.c: Revert.
10198 * c-varobj.c: Revert.
10199 * c-valprint.c: Revert.
10200 * c-typeprint.c: Revert.
10201 * c-lang.c: Revert.
10202 * buildsym.c: Revert.
10203 * buildsym-legacy.c: Revert.
10204 * build-id.h: Revert.
10205 * build-id.c: Revert.
10206 * btrace.c: Revert.
10207 * bsd-uthread.c: Revert.
10208 * breakpoint.h: Revert.
10209 * breakpoint.c: Revert.
10210 * break-catch-throw.c: Revert.
10211 * break-catch-syscall.c: Revert.
10212 * break-catch-sig.c: Revert.
10213 * blockframe.c: Revert.
10214 * block.c: Revert.
10215 * bfin-tdep.c: Revert.
10216 * bfin-linux-tdep.c: Revert.
10217 * bfd-target.c: Revert.
10218 * bcache.c: Revert.
10219 * ax-general.c: Revert.
10220 * ax-gdb.h: Revert.
10221 * ax-gdb.c: Revert.
10222 * avr-tdep.c: Revert.
10223 * auxv.c: Revert.
10224 * auto-load.c: Revert.
10225 * arm-wince-tdep.c: Revert.
10226 * arm-tdep.c: Revert.
10227 * arm-symbian-tdep.c: Revert.
10228 * arm-pikeos-tdep.c: Revert.
10229 * arm-obsd-tdep.c: Revert.
10230 * arm-nbsd-tdep.c: Revert.
10231 * arm-nbsd-nat.c: Revert.
10232 * arm-linux-tdep.c: Revert.
10233 * arm-linux-nat.c: Revert.
10234 * arm-fbsd-tdep.c: Revert.
10235 * arm-fbsd-nat.c: Revert.
10236 * arm-bsd-tdep.c: Revert.
10237 * arch-utils.c: Revert.
10238 * arc-tdep.c: Revert.
10239 * arc-newlib-tdep.c: Revert.
10240 * annotate.h: Revert.
10241 * annotate.c: Revert.
10242 * amd64-windows-tdep.c: Revert.
10243 * amd64-windows-nat.c: Revert.
10244 * amd64-tdep.c: Revert.
10245 * amd64-sol2-tdep.c: Revert.
10246 * amd64-obsd-tdep.c: Revert.
10247 * amd64-obsd-nat.c: Revert.
10248 * amd64-nbsd-tdep.c: Revert.
10249 * amd64-nbsd-nat.c: Revert.
10250 * amd64-nat.c: Revert.
10251 * amd64-linux-tdep.c: Revert.
10252 * amd64-linux-nat.c: Revert.
10253 * amd64-fbsd-tdep.c: Revert.
10254 * amd64-fbsd-nat.c: Revert.
10255 * amd64-dicos-tdep.c: Revert.
10256 * amd64-darwin-tdep.c: Revert.
10257 * amd64-bsd-nat.c: Revert.
10258 * alpha-tdep.c: Revert.
10259 * alpha-obsd-tdep.c: Revert.
10260 * alpha-nbsd-tdep.c: Revert.
10261 * alpha-mdebug-tdep.c: Revert.
10262 * alpha-linux-tdep.c: Revert.
10263 * alpha-linux-nat.c: Revert.
10264 * alpha-bsd-tdep.c: Revert.
10265 * alpha-bsd-nat.c: Revert.
10266 * aix-thread.c: Revert.
10267 * agent.c: Revert.
10268 * addrmap.c: Revert.
10269 * ada-varobj.c: Revert.
10270 * ada-valprint.c: Revert.
10271 * ada-typeprint.c: Revert.
10272 * ada-tasks.c: Revert.
10273 * ada-lang.c: Revert.
10274 * aarch64-tdep.c: Revert.
10275 * aarch64-ravenscar-thread.c: Revert.
10276 * aarch64-newlib-tdep.c: Revert.
10277 * aarch64-linux-tdep.c: Revert.
10278 * aarch64-linux-nat.c: Revert.
10279 * aarch64-fbsd-tdep.c: Revert.
10280 * aarch64-fbsd-nat.c: Revert.
10281 * aarch32-linux-nat.c: Revert.
10282
10283 2019-04-05 Tom Tromey <tom@tromey.com>
10284
10285 * ft32-tdep.c: Sort headers.
10286 * frv-tdep.c: Sort headers.
10287 * frv-linux-tdep.c: Sort headers.
10288 * frame.c: Sort headers.
10289 * frame-unwind.c: Sort headers.
10290 * frame-base.c: Sort headers.
10291 * fork-child.c: Sort headers.
10292 * findvar.c: Sort headers.
10293 * findcmd.c: Sort headers.
10294 * filesystem.c: Sort headers.
10295 * filename-seen-cache.h: Sort headers.
10296 * filename-seen-cache.c: Sort headers.
10297 * fbsd-tdep.c: Sort headers.
10298 * fbsd-nat.h: Sort headers.
10299 * fbsd-nat.c: Sort headers.
10300 * f-valprint.c: Sort headers.
10301 * f-typeprint.c: Sort headers.
10302 * f-lang.c: Sort headers.
10303 * extension.h: Sort headers.
10304 * extension.c: Sort headers.
10305 * extension-priv.h: Sort headers.
10306 * expprint.c: Sort headers.
10307 * exec.h: Sort headers.
10308 * exec.c: Sort headers.
10309 * exceptions.c: Sort headers.
10310 * event-top.c: Sort headers.
10311 * event-loop.c: Sort headers.
10312 * eval.c: Sort headers.
10313 * elfread.c: Sort headers.
10314 * dwarf2read.h: Sort headers.
10315 * dwarf2read.c: Sort headers.
10316 * dwarf2loc.c: Sort headers.
10317 * dwarf2expr.h: Sort headers.
10318 * dwarf2expr.c: Sort headers.
10319 * dwarf2-frame.c: Sort headers.
10320 * dwarf2-frame-tailcall.c: Sort headers.
10321 * dwarf-index-write.h: Sort headers.
10322 * dwarf-index-write.c: Sort headers.
10323 * dwarf-index-common.c: Sort headers.
10324 * dwarf-index-cache.h: Sort headers.
10325 * dwarf-index-cache.c: Sort headers.
10326 * dummy-frame.c: Sort headers.
10327 * dtrace-probe.c: Sort headers.
10328 * disasm.h: Sort headers.
10329 * disasm.c: Sort headers.
10330 * disasm-selftests.c: Sort headers.
10331 * dictionary.c: Sort headers.
10332 * dicos-tdep.c: Sort headers.
10333 * demangle.c: Sort headers.
10334 * dcache.h: Sort headers.
10335 * dcache.c: Sort headers.
10336 * darwin-nat.h: Sort headers.
10337 * darwin-nat.c: Sort headers.
10338 * darwin-nat-info.c: Sort headers.
10339 * d-valprint.c: Sort headers.
10340 * d-namespace.c: Sort headers.
10341 * d-lang.c: Sort headers.
10342 * ctf.c: Sort headers.
10343 * csky-tdep.c: Sort headers.
10344 * csky-linux-tdep.c: Sort headers.
10345 * cris-tdep.c: Sort headers.
10346 * cris-linux-tdep.c: Sort headers.
10347 * cp-valprint.c: Sort headers.
10348 * cp-support.c: Sort headers.
10349 * cp-namespace.c: Sort headers.
10350 * cp-abi.c: Sort headers.
10351 * corelow.c: Sort headers.
10352 * corefile.c: Sort headers.
10353 * continuations.c: Sort headers.
10354 * completer.h: Sort headers.
10355 * completer.c: Sort headers.
10356 * complaints.c: Sort headers.
10357 * coffread.c: Sort headers.
10358 * coff-pe-read.c: Sort headers.
10359 * cli-out.h: Sort headers.
10360 * cli-out.c: Sort headers.
10361 * charset.c: Sort headers.
10362 * c-varobj.c: Sort headers.
10363 * c-valprint.c: Sort headers.
10364 * c-typeprint.c: Sort headers.
10365 * c-lang.c: Sort headers.
10366 * buildsym.c: Sort headers.
10367 * buildsym-legacy.c: Sort headers.
10368 * build-id.h: Sort headers.
10369 * build-id.c: Sort headers.
10370 * btrace.c: Sort headers.
10371 * bsd-uthread.c: Sort headers.
10372 * breakpoint.h: Sort headers.
10373 * breakpoint.c: Sort headers.
10374 * break-catch-throw.c: Sort headers.
10375 * break-catch-syscall.c: Sort headers.
10376 * break-catch-sig.c: Sort headers.
10377 * blockframe.c: Sort headers.
10378 * block.c: Sort headers.
10379 * bfin-tdep.c: Sort headers.
10380 * bfin-linux-tdep.c: Sort headers.
10381 * bfd-target.c: Sort headers.
10382 * bcache.c: Sort headers.
10383 * ax-general.c: Sort headers.
10384 * ax-gdb.h: Sort headers.
10385 * ax-gdb.c: Sort headers.
10386 * avr-tdep.c: Sort headers.
10387 * auxv.c: Sort headers.
10388 * auto-load.c: Sort headers.
10389 * arm-wince-tdep.c: Sort headers.
10390 * arm-tdep.c: Sort headers.
10391 * arm-symbian-tdep.c: Sort headers.
10392 * arm-pikeos-tdep.c: Sort headers.
10393 * arm-obsd-tdep.c: Sort headers.
10394 * arm-nbsd-tdep.c: Sort headers.
10395 * arm-nbsd-nat.c: Sort headers.
10396 * arm-linux-tdep.c: Sort headers.
10397 * arm-linux-nat.c: Sort headers.
10398 * arm-fbsd-tdep.c: Sort headers.
10399 * arm-fbsd-nat.c: Sort headers.
10400 * arm-bsd-tdep.c: Sort headers.
10401 * arch-utils.c: Sort headers.
10402 * arc-tdep.c: Sort headers.
10403 * arc-newlib-tdep.c: Sort headers.
10404 * annotate.h: Sort headers.
10405 * annotate.c: Sort headers.
10406 * amd64-windows-tdep.c: Sort headers.
10407 * amd64-windows-nat.c: Sort headers.
10408 * amd64-tdep.c: Sort headers.
10409 * amd64-sol2-tdep.c: Sort headers.
10410 * amd64-obsd-tdep.c: Sort headers.
10411 * amd64-obsd-nat.c: Sort headers.
10412 * amd64-nbsd-tdep.c: Sort headers.
10413 * amd64-nbsd-nat.c: Sort headers.
10414 * amd64-nat.c: Sort headers.
10415 * amd64-linux-tdep.c: Sort headers.
10416 * amd64-linux-nat.c: Sort headers.
10417 * amd64-fbsd-tdep.c: Sort headers.
10418 * amd64-fbsd-nat.c: Sort headers.
10419 * amd64-dicos-tdep.c: Sort headers.
10420 * amd64-darwin-tdep.c: Sort headers.
10421 * amd64-bsd-nat.c: Sort headers.
10422 * alpha-tdep.c: Sort headers.
10423 * alpha-obsd-tdep.c: Sort headers.
10424 * alpha-nbsd-tdep.c: Sort headers.
10425 * alpha-mdebug-tdep.c: Sort headers.
10426 * alpha-linux-tdep.c: Sort headers.
10427 * alpha-linux-nat.c: Sort headers.
10428 * alpha-bsd-tdep.c: Sort headers.
10429 * alpha-bsd-nat.c: Sort headers.
10430 * aix-thread.c: Sort headers.
10431 * agent.c: Sort headers.
10432 * addrmap.c: Sort headers.
10433 * ada-varobj.c: Sort headers.
10434 * ada-valprint.c: Sort headers.
10435 * ada-typeprint.c: Sort headers.
10436 * ada-tasks.c: Sort headers.
10437 * ada-lang.c: Sort headers.
10438 * aarch64-tdep.c: Sort headers.
10439 * aarch64-ravenscar-thread.c: Sort headers.
10440 * aarch64-newlib-tdep.c: Sort headers.
10441 * aarch64-linux-tdep.c: Sort headers.
10442 * aarch64-linux-nat.c: Sort headers.
10443 * aarch64-fbsd-tdep.c: Sort headers.
10444 * aarch64-fbsd-nat.c: Sort headers.
10445 * aarch32-linux-nat.c: Sort headers.
10446
10447 2019-04-04 Tom Tromey <tom@tromey.com>
10448
10449 * varobj.c (varobj_create): Update.
10450 * rust-exp.y (struct rust_parser) <update_innermost_block,
10451 lookup_symbol>: New methods.
10452 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
10453 Rename.
10454 (rust_parser::rust_lookup_type)
10455 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
10456 * printcmd.c (display_command, do_one_display): Update.
10457 * parser-defs.h (struct parser_state) <parser_state>: Add
10458 "tracker" parameter.
10459 (block_tracker): New member.
10460 (class innermost_block_tracker) <innermost_block_tracker>: Add
10461 "types" parameter.
10462 <reset>: Remove method.
10463 (innermost_block): Don't declare.
10464 (null_post_parser): Update.
10465 * parse.c (innermost_block): Remove global.
10466 (write_dollar_variable): Update.
10467 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
10468 Remove "tracker_types" parameter.
10469 (parse_expression): Add "tracker" parameter.
10470 (parse_expression_for_completion): Update.
10471 (null_post_parser): Add "tracker" parameter.
10472 * p-exp.y: Update rules.
10473 * m2-exp.y: Update rules.
10474 * language.h (struct language_defn) <la_post_parser>: Add
10475 "tracker" parameter.
10476 * go-exp.y: Update rules.
10477 * f-exp.y: Update rules.
10478 * expression.h (parse_expression, parse_exp_1): Add "tracker"
10479 parameter.
10480 * d-exp.y: Update rules.
10481 * c-exp.y: Update rules.
10482 * breakpoint.c (set_breakpoint_condition): Create an
10483 innermost_block_tracker.
10484 (watch_command_1): Likewise.
10485 * ada-lang.c (resolve): Add "tracker" parameter.
10486 (resolve_subexp): Likewise.
10487 * ada-exp.y (write_var_from_sym): Update.
10488
10489 2019-04-04 Tom Tromey <tom@tromey.com>
10490
10491 * type-stack.h: New file.
10492 * type-stack.c: New file.
10493 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
10494 type-stack.h.
10495 (insert_into_type_stack, insert_type, push_type, push_type_int)
10496 (insert_type_address_space, pop_type, pop_type_int)
10497 (pop_typelist, pop_type_stack, append_type_stack)
10498 (push_type_stack, get_type_stack, push_typelist)
10499 (follow_type_instance_flags, follow_types): Don't declare.
10500 * parse.c (type_stack): Remove global.
10501 (parse_exp_in_context): Update.
10502 (insert_into_type_stack, insert_type, push_type, push_type_int)
10503 (insert_type_address_space, pop_type, pop_type_int)
10504 (pop_typelist, pop_type_stack, append_type_stack)
10505 (push_type_stack, get_type_stack, push_typelist)
10506 (follow_type_instance_flags, follow_types): Remove (moved to
10507 type-stack.c).
10508 * f-exp.y (type_stack): New global.
10509 Update rules.
10510 (push_kind_type, f_parse): Update.
10511 * d-exp.y (type_stack): New global.
10512 Update rules.
10513 (d_parse): Update.
10514 * c-exp.y (struct c_parse_state) <type_stack>: New member.
10515 Update rules.
10516 * Makefile.in (COMMON_SFILES): Add type-stack.c.
10517 (HFILES_NO_SRCDIR): Add type-stack.h.
10518
10519 2019-04-04 Tom Tromey <tom@tromey.com>
10520
10521 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
10522 (rust_parser::convert_ast_to_expression, rust_parse)
10523 (rust_lex_test_completion, rust_lex_tests): Update.
10524 * parser-defs.h (struct expr_completion_state): New.
10525 (struct parser_state) <parser_state>: Add completion parameter.
10526 <mark_struct_expression, mark_completion_tag>: New methods.
10527 <parse_completion, m_completion_state>: New members.
10528 (prefixify_expression, null_post_parser): Update.
10529 (mark_struct_expression, mark_completion_tag): Don't declare.
10530 * parse.c (parse_completion, expout_last_struct)
10531 (expout_tag_completion_type, expout_completion_name): Remove
10532 globals.
10533 (parser_state::mark_struct_expression)
10534 (parser_state::mark_completion_tag): Now methods.
10535 (prefixify_expression): Add last_struct parameter.
10536 (prefixify_subexp): Likewise.
10537 (parse_exp_1): Update.
10538 (parse_exp_in_context): Add cstate parameter. Update.
10539 (parse_expression_for_completion): Create an
10540 expr_completion_state.
10541 (null_post_parser): Add "completion" parameter.
10542 * p-exp.y: Update rules.
10543 (yylex): Update.
10544 * language.h (struct language_defn) <la_post_parser>: Add
10545 "completing" parameter.
10546 * go-exp.y: Update rules.
10547 (lex_one_token): Update.
10548 * expression.h (parse_completion): Don't declare.
10549 * d-exp.y: Update rules.
10550 (lex_one_token): Update rules.
10551 * c-exp.y: Update rules.
10552 (lex_one_token): Update.
10553 * ada-lang.c (resolve): Add "parse_completion" parameter.
10554 (resolve_subexp): Likewise.
10555 (ada_resolve_function): Likewise.
10556
10557 2019-04-04 Tom Tromey <tom@tromey.com>
10558
10559 * parser-defs.h (struct parser_state) <start_arglist,
10560 end_arglist>: New methods.
10561 <arglist_len, m_funcall_chain>: New members.
10562 (arglist_len, start_arglist, end_arglist): Don't declare.
10563 * parse.c (arglist_len, funcall_chain): Remove global.
10564 (start_arglist, end_arglist): Remove functions.
10565 (parse_exp_in_context): Update.
10566 * p-exp.y: Update rules.
10567 * m2-exp.y: Update rules.
10568 * go-exp.y: Update rules.
10569 * f-exp.y: Update rules.
10570 * d-exp.y: Update rules.
10571 * c-exp.y: Update rules.
10572
10573 2019-04-04 Tom Tromey <tom@tromey.com>
10574
10575 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
10576 lex_operator, push_back>: New methods.
10577 Update all rules.
10578 (rust_parser::lex_hex, lex_escape): Rename and update.
10579 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
10580 (rust_parser::lex_operator): Rename and update.
10581 (rust_parser::lex_number, rustyylex, rustyyerror)
10582 (rust_lex_test_init, rust_lex_test_sequence)
10583 (rust_lex_test_push_back, rust_lex_tests): Update.
10584 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
10585 parameter.
10586 <lexptr, prev_lexptr>: New members.
10587 (lexptr, prev_lexptr): Don't declare.
10588 * parse.c (lexptr, prev_lexptr): Remove globals.
10589 (parse_exp_in_context): Update.
10590 * p-exp.y (yylex, yyerror): Update.
10591 * m2-exp.y (parse_number, yylex, yyerror): Update.
10592 * go-exp.y (lex_one_token, yyerror): Update.
10593 * f-exp.y (match_string_literal, yylex, yyerror): Update.
10594 * d-exp.y (lex_one_token, yyerror): Update.
10595 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
10596 (lex_one_token, yyerror): Update.
10597 * ada-lex.l (YY_INPUT): Update.
10598 (rewind_to_char): Update.
10599 * ada-exp.y (yyerror): Update.
10600
10601 2019-04-04 Tom Tromey <tom@tromey.com>
10602
10603 * rust-exp.y (rustyylex, rust_lex_tests): Update.
10604 * parser-defs.h (struct parser_state) <parser_state>: Add new
10605 parameter.
10606 <comma_terminates>: New member.
10607 (comma_terminates): Don't declare global.
10608 * parse.c (comma_terminates): Remove global.
10609 (parse_exp_in_context): Update.
10610 * p-exp.y (yylex): Update.
10611 * m2-exp.y (yylex): Update.
10612 * go-exp.y (lex_one_token): Update.
10613 * f-exp.y (yylex): Update.
10614 * d-exp.y (lex_one_token): Update.
10615 * c-exp.y (lex_one_token): Update.
10616 * ada-lex.l: Update.
10617
10618 2019-04-04 Tom Tromey <tom@tromey.com>
10619
10620 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
10621 (rustyylex, rust_lex_test_init, rust_lex_test_one)
10622 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
10623 * parser-defs.h (paren_depth): Don't declare.
10624 * parse.c (paren_depth): Remove global.
10625 (parse_exp_in_context): Update.
10626 * p-exp.y (paren_depth): New global.
10627 (pascal_parse): Initialize it.
10628 * m2-exp.y (paren_depth): New global.
10629 (m2_parse): Initialize it.
10630 * go-exp.y (paren_depth): New global.
10631 (go_parse): Initialize it.
10632 * f-exp.y (paren_depth): New global.
10633 (f_parse): Initialize it.
10634 * d-exp.y (paren_depth): New global.
10635 (d_parse): Initialize it.
10636 * c-exp.y (paren_depth): New global.
10637 (c_parse): Initialize it.
10638 * ada-lex.l (paren_depth): New global.
10639 (lexer_init): Initialize it.
10640
10641 2019-04-04 Tom Tromey <tom@tromey.com>
10642
10643 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
10644 (rust_parser::convert_ast_to_type)
10645 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
10646 * parser-defs.h (struct parser_state) <parser_state>: Add
10647 parameters. Initialize new members.
10648 <expression_context_block, expression_context_pc>: New members.
10649 * parse.c (expression_context_block, expression_context_pc):
10650 Remove globals.
10651 (parse_exp_in_context): Update.
10652 * p-exp.y: Update all rules.
10653 (yylex): Update.
10654 * m2-exp.y: Update all rules.
10655 (yylex): Update.
10656 * go-exp.y (yylex): Update.
10657 * f-exp.y (yylex): Update.
10658 * d-exp.y: Update all rules.
10659 (yylex): Update.
10660 * c-exp.y: Update all rules.
10661 (lex_one_token, classify_name, yylex, c_parse): Update.
10662 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
10663
10664 2019-04-04 Tom Tromey <tom@tromey.com>
10665
10666 * gdbarch.h, gdbarch.c: Rebuild.
10667 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
10668 * stap-probe.h:
10669 (struct stap_parse_info): Replace "parser_state" with
10670 "expr_builder".
10671 * parser-defs.h (struct expr_builder): Rename from "parser_state".
10672 (parser_state): New class.
10673 * parse.c (expr_builder): Rename.
10674 (expr_builder::release): Rename.
10675 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
10676 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
10677 (write_exp_elt_longcst, write_exp_elt_floatcst)
10678 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
10679 (write_exp_string_vector, write_exp_bitstring)
10680 (write_exp_msymbol, mark_struct_expression)
10681 (write_dollar_variable)
10682 (insert_type_address_space, increase_expout_size): Replace
10683 "parser_state" with "expr_builder".
10684 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
10685 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
10686 "parser_state" with "expr_builder".
10687
10688 2019-04-04 Tom Tromey <tom@tromey.com>
10689
10690 * rust-exp.y: Replace "parse_language" with method call.
10691 * p-exp.y:
10692 (yylex): Replace "parse_language" with method call.
10693 * m2-exp.y:
10694 (yylex): Replace "parse_language" with method call.
10695 * go-exp.y (classify_name): Replace "parse_language" with method
10696 call.
10697 * f-exp.y (yylex): Replace "parse_language" with method call.
10698 * d-exp.y (lex_one_token): Replace "parse_language" with method
10699 call.
10700 * c-exp.y:
10701 (lex_one_token, classify_name, yylex): Replace "parse_language"
10702 with method call.
10703 * ada-exp.y (find_primitive_type, type_char)
10704 (type_system_address): Replace "parse_language" with method call.
10705
10706 2019-04-04 Tom Tromey <tom@tromey.com>
10707
10708 * rust-exp.y: Replace "parse_gdbarch" with method call.
10709 * parse.c (write_dollar_variable, insert_type_address_space):
10710 Replace "parse_gdbarch" with method call.
10711 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
10712 call.
10713 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
10714 call.
10715 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
10716 "parse_gdbarch" with method call.
10717 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
10718 with method call.
10719 * f-exp.y (parse_type, parse_f_type, yylex): Replace
10720 "parse_gdbarch" with method call.
10721 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
10722 "parse_gdbarch" with method call.
10723 * c-exp.y (parse_type, parse_number, classify_name): Replace
10724 "parse_gdbarch" with method call.
10725 * ada-lex.l: Replace "parse_gdbarch" with method call.
10726 * ada-exp.y (parse_type, find_primitive_type, type_char)
10727 (type_system_address): Replace "parse_gdbarch" with method call.
10728
10729 2019-04-04 Tom Tromey <tom@tromey.com>
10730
10731 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
10732 * stap-probe.c (stap_parse_argument): Update.
10733 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
10734 initial_size parameter.
10735 * rust-exp.y (rust_lex_tests): Update.
10736 * parse.c (parser_state): Update.
10737 (parse_exp_in_context): Update.
10738 * parser-defs.h (struct parser_state) <parser_state>: Remove
10739 "initial_size" parameter.
10740
10741 2019-04-04 Tom Tromey <tom@tromey.com>
10742
10743 * parser-defs.h (increase_expout_size): Don't declare.
10744 * parse.c (increase_expout_size): Now static.
10745
10746 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
10747
10748 * gnu-nat.c (gnu_nat_target::wait): Fix
10749 target_waitstatus_to_string call.
10750
10751 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
10752
10753 * eval.c (evaluate_subexp_standard): Handle internal functions
10754 during Fortran function call handling.
10755
10756 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
10757
10758 * NEWS: Mention new internal functions.
10759 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
10760 (read_base_type): Use dwarf2_init_complex_target_type.
10761 * value.c (creal_internal_fn): New function.
10762 (cimag_internal_fn): New function.
10763 (_initialize_values): Register new internal functions.
10764
10765 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10766
10767 * infrun.c (stop_all_threads): If debug_infrun, always
10768 trace the wait status after wait_one, using
10769 target_waitstatus_to_string and target_pid_to_str.
10770 (handle_inferior_event): Replace various trace of
10771 wait status kind by a single trace.
10772 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
10773 wait status kind image by target_waitstatus_to_string.
10774 * target/waitstatus.c (target_waitstatus_to_string): Fix
10775 obsolete comment.
10776
10777 2019-04-01 Tom Tromey <tromey@adacore.com>
10778
10779 PR symtab/23331:
10780 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
10781
10782 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
10783 Pedro Alves <palves@redhat.com>
10784
10785 * top.c (quit_force): Call 'finalize_values'.
10786 * value.c (finalize_values): New function.
10787 * value.h (finalize_values): Declare.
10788
10789 2019-03-30 Eli Zaretskii <eliz@gnu.org>
10790
10791 * NEWS: Announce $_gdb_major and $_gdb_minor.
10792
10793 * top.c (init_gdb_version_vars): New function.
10794 (gdb_init): Call init_gdb_version_vars.
10795
10796 2019-03-29 Tom Tromey <tromey@adacore.com>
10797
10798 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
10799 help text. Remove dead code.
10800
10801 2019-03-29 Keith Seitz <keiths@redhat.com>
10802
10803 From Siddhesh Poyarekar:
10804 * f-lang.h (f77_get_upperbound): Return LONGEST.
10805 (f77_get_lowerbound): Likewise.
10806 * f-typeprint.c (f_type_print_varspec_suffix): Expand
10807 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
10808 print them.
10809 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
10810 plongest to format print it.
10811 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
10812 (f77_get_upperbound): Likewise.
10813 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
10814 LOWER_BOUND to LONGEST.
10815 (f77_create_arrayprint_offset_tbl): Likewise.
10816
10817 2019-03-29 Keith Seitz <keiths@redhat.com>
10818
10819 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
10820 %s/pulongest for TYPE_LENGTH instead of %d in format
10821 strings.
10822 * ada-typerint.c (ada_print_type): Likewise.
10823 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
10824 * compile/compile-c-support.c (generate_register_struct): Likewise.
10825 * gdbtypes.c (recursive_dump_type): Likewise.
10826 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
10827 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
10828 instead of %d in format strings.
10829 * riscv-tdep.c (riscv_type_alignment): Cast second argument
10830 to std::min to ULONGEST.
10831 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
10832 instead of %d in format strings.
10833 * tracepoint.c (info_scope_command): Likewise.
10834 * typeprint.c (print_offset_data::update)
10835 (print_offset_data::finish): Likewise.
10836 * xtensa-tdep.c (xtensa_store_return_value)
10837 (xtensa_push_dummy_call): Likewise.
10838
10839 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
10840
10841 * windows-nat.c (display_selector): Fixed format specifications
10842 for 64-bit Cygwin.
10843
10844 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10845
10846 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
10847
10848 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
10849
10850 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
10851 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
10852 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
10853 (nios2_linux_init_abi): Install it.
10854
10855 2019-03-28 Alan Hayward <alan.hayward@arm.com>
10856
10857 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
10858
10859 2019-03-28 Alan Hayward <alan.hayward@arm.com>
10860
10861 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
10862
10863 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10864 Tom Tromey <tromey@adacore.com>
10865
10866 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
10867
10868 2019-03-26 Joel Brobecker <brobecker@adacore.com>
10869
10870 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
10871 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
10872 method to compute the bounds of range types. Also print "[evaluated]"
10873 if the bounds' values come from a dynamic evaluation.
10874
10875 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
10876
10877 * cp-valprint.c (cp_print_value_fields): Don't print trailing
10878 whitespace when pretty printing is on.
10879
10880 2019-03-26 Alan Hayward <alan.hayward@arm.com>
10881
10882 * ppc-linux-nat.c: Add include.
10883
10884 2019-03-26 Alan Hayward <alan.hayward@arm.com>
10885
10886 * NEWS: Mention AArch64 Pointer Authentication.
10887
10888 2019-03-26 Alan Hayward <alan.hayward@arm.com>
10889
10890 * arm-linux-nat.c: Add include.
10891
10892 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
10893
10894 * source-cache.c (source_cache::get_source_lines): Re-read
10895 fullname after calling open_source_file.
10896
10897 2019-03-25 John Baldwin <jhb@FreeBSD.org>
10898
10899 * NEWS: Mention TLS support for FreeBSD.
10900
10901 2019-03-25 Tom Tromey <tromey@adacore.com>
10902
10903 * minsyms.c (BUNCH_SIZE): Update comment.
10904 (~minimal_symbol_reader): Remove old comment.
10905 (compact_minimal_symbols): Update comment.
10906 (minimal_symbol_reader::install): Remove old comment. Update
10907 other comments.
10908
10909 2019-03-25 Alan Hayward <alan.hayward@arm.com>
10910
10911 * s390-linux-nat.c: Add include.
10912
10913 2019-03-25 Alan Hayward <alan.hayward@arm.com>
10914
10915 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
10916 Call linux_get_hwcap.
10917 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
10918 Likewise.
10919 (aarch64_linux_get_hwcap): Remove function.
10920 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
10921 declaration.
10922 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
10923 linux_get_hwcap.
10924 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
10925 * linux-tdep.c (linux_get_hwcap): Add function.
10926 (linux_get_hwcap2): Likewise.
10927 * linux-tdep.h (linux_get_hwcap): Add declaration.
10928 (linux_get_hwcap2): Likewise.
10929 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
10930 (ppc_linux_get_hwcap2): Likewise.
10931 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
10932 linux_get_hwcap.
10933 (ppc_linux_nat_target::insert_watchpoint): Likewise.
10934 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
10935 (ppc_linux_nat_target::read_description): Likewise.
10936 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
10937 * s390-linux-nat.c: Likewise.
10938 * s390-linux-tdep.c (s390_core_read_description): Likewise.
10939
10940 2019-03-24 Tom Tromey <tom@tromey.com>
10941
10942 * ada-lang.c (standard_lookup): Simplify initialization.
10943 (ada_lookup_symbol_nonlocal): Simplify return.
10944 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
10945 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
10946 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
10947 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
10948 initialization.
10949 * solib.c (solib_global_lookup): Simplify.
10950 * symtab.c (null_block_symbol): Remove.
10951 (symbol_cache_lookup): Simplify returns.
10952 (lookup_language_this): Simplify returns.
10953 (lookup_symbol_aux): Simplify return.
10954 (lookup_local_symbol): Simplify returns.
10955 (lookup_global_symbol_from_objfile): Simplify return.
10956 (lookup_symbol_in_objfile_symtabs)
10957 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
10958 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
10959 (lookup_static_symbol, lookup_global_symbol): Simplify return.
10960 * cp-namespace.c (cp_lookup_bare_symbol)
10961 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
10962 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
10963 (cp_lookup_nested_symbol): Don't use null_block_symbol.
10964 (cp_lookup_symbol_via_imports): Simplify initialization.
10965 (find_symbol_in_baseclass): Likewise.
10966 * symtab.h (null_block_symbol): Remove.
10967 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
10968 (d_lookup_nested_symbol, d_lookup_symbol_imports)
10969 (d_lookup_symbol_module): Likewise.
10970 (find_symbol_in_baseclass): Simplify initialization.
10971
10972 2019-03-24 Tom Tromey <tom@tromey.com>
10973
10974 * expression.h: Don't include symtab.h.
10975 (struct block): Forward declare.
10976
10977 2019-03-24 Tom Tromey <tom@tromey.com>
10978
10979 * c-exp.y (typebase): Remove casts.
10980 * gdbtypes.c (lookup_unsigned_typename, )
10981 (lookup_signed_typename): Remove cast.
10982 * eval.c (parse_to_comma_and_eval): Remove cast.
10983 * parse.c (write_dollar_variable): Remove cast.
10984 * block.h (struct block) <superblock>: Now const.
10985 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
10986 * psymtab.c (psym_map_matching_symbols): Make "block" const.
10987 (map_block): Make "block" const.
10988 * symfile.h (struct quick_symbol_functions)
10989 <map_matching_symbols>: Constify block argument to "callback".
10990 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
10991 const.
10992 (find_pc_sect_compunit_symtab): Make "b" const.
10993 (find_symbol_at_address): Likewise.
10994 (search_symbols): Likewise.
10995 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
10996 (dw2_debug_names_lookup_symbol): Likewise.
10997 (dw2_map_matching_symbols): Update.
10998 * p-valprint.c (pascal_val_print): Remove "block".
10999 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
11000 (aux_add_nonlocal_symbols): Make "block" const.
11001 (resolve_subexp): Remove cast.
11002 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
11003 const.
11004 (iterate_over_file_blocks): Likewise.
11005 * f-exp.y (%union) <bval>: Remove.
11006 * coffread.c (patch_opaque_types): Make "b" const.
11007 * spu-tdep.c (spu_catch_start): Make "block" const.
11008 * c-valprint.c (print_unpacked_pointer): Remove "block".
11009 * symmisc.c (dump_symtab_1): Make "b" const.
11010 (block_depth): Make "block" const.
11011 * d-exp.y (%union) <bval>: Remove.
11012 * cp-support.h (cp_lookup_rtti_type): Update.
11013 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
11014 * psymtab.c (psym_lookup_symbol): Make "block" const.
11015 (maintenance_check_psymtabs): Make "b" const.
11016 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
11017 (enumerate_locals, enumerate_args): Update.
11018 * python/py-symtab.c (stpy_global_block): Make "block" const.
11019 (stpy_static_block): Likewise.
11020 * inline-frame.c (block_starting_point_at): Make "new_block"
11021 const.
11022 * block.c (find_block_in_blockvector): Make return type const.
11023 (blockvector_for_pc_sect): Make "b" const.
11024 (find_block_in_blockvector): Make "b" const.
11025
11026 2019-03-23 Tom Tromey <tom@tromey.com>
11027
11028 * varobj.c (varobj_create): Update.
11029 * symfile.c (clear_symtab_users): Don't reset innermost_block.
11030 * printcmd.c (display_command, do_one_display): Don't reset
11031 innermost_block.
11032 * parser-defs.h (enum innermost_block_tracker_type): Move to
11033 expression.h.
11034 (innermost_block): Update comment.
11035 * parse.c (parse_exp_1): Add tracker_types parameter.
11036 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
11037 tracker_types parameter. Reset innermost_block.
11038 (parse_exp_in_context): Remove.
11039 (parse_expression_for_completion): Update.
11040 * objfiles.c (~objfile): Don't reset expression_context_block or
11041 innermost_block.
11042 * expression.h (enum innermost_block_tracker_type): Move from
11043 parser-defs.h.
11044 (parse_exp_1): Add tracker_types parameter.
11045 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
11046 reset innermost_block.
11047
11048 2019-03-23 Tom Tromey <tom@tromey.com>
11049
11050 * objfiles.h: Include bcache.h.
11051
11052 2019-03-23 Tom Tromey <tom@tromey.com>
11053
11054 * linespec.c (get_current_search_block): Use
11055 scoped_restore_current_language.
11056 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
11057
11058 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11059 Jiong Wang <jiong.wang@arm.com>
11060
11061 * aarch64-linux-tdep.c
11062 (aarch64_linux_iterate_over_regset_sections): Check for pauth
11063 section.
11064 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
11065
11066 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11067 Jiong Wang <jiong.wang@arm.com>
11068
11069 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
11070 instructions.
11071 (aarch64_analyze_prologue_test): Add PACIASP test.
11072 (aarch64_prologue_prev_register): Unmask PC value.
11073
11074 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11075 Jiong Wang <jiong.wang@arm.com>
11076
11077 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
11078 (aarch64_dwarf2_prev_register): Unmask PC value.
11079 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
11080 (aarch64_execute_dwarf_cfa_vendor_op): Check for
11081 DW_CFA_AARCH64_negate_ra_state.
11082 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
11083
11084 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11085 Jiong Wang <jiong.wang@arm.com>
11086
11087 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
11088 registers.
11089 (aarch64_pseudo_register_name): Likewise.
11090 (aarch64_pseudo_register_type): Likewise.
11091 (aarch64_pseudo_register_reggroup_p): Likewise.
11092 (aarch64_gdbarch_init): Add pauth registers.
11093 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
11094 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
11095 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
11096 (struct gdbarch_tdep): Add regnum for ra_state.
11097
11098 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11099 Jiong Wang <jiong.wang@arm.com>
11100
11101 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
11102
11103 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11104 Jiong Wang <jiong.wang@arm.com>
11105
11106 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
11107 function.
11108 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
11109 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
11110 (aarch64_gdbarch_init): Add puth registers.
11111 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
11112 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
11113 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
11114
11115 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11116 Jiong Wang <jiong.wang@arm.com>
11117
11118 * aarch64-linux-nat.c
11119 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
11120 * aarch64-linux-tdep.c
11121 (aarch64_linux_core_read_description): Likewise.
11122 (aarch64_linux_get_hwcap): New function.
11123 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
11124 (aarch64_linux_get_hwcap): New declaration.
11125
11126 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11127 Jiong Wang <jiong.wang@arm.com>
11128
11129 * aarch64-linux-nat.c
11130 (aarch64_linux_nat_target::read_description): Add pauth param.
11131 * aarch64-linux-tdep.c
11132 (aarch64_linux_core_read_description): Likewise.
11133 * aarch64-tdep.c (struct target_desc): Add in pauth.
11134 (aarch64_read_description): Add pauth param.
11135 (aarch64_gdbarch_init): Likewise.
11136 * aarch64-tdep.h (aarch64_read_description): Likewise.
11137 * arch/aarch64.c (aarch64_create_target_description): Likewise.
11138 * arch/aarch64.h (aarch64_create_target_description): Likewise.
11139 * features/Makefile: Add new files.
11140 * features/aarch64-pauth.c: New file.
11141 * features/aarch64-pauth.xml: New file.
11142
11143 2019-03-20 Tom Tromey <tromey@adacore.com>
11144
11145 * infrun.c (handle_inferior_event): Rename from
11146 handle_inferior_event_1. Create a scoped_value_mark.
11147 (handle_inferior_event): Remove.
11148
11149 2019-03-19 Tom Tromey <tromey@adacore.com>
11150
11151 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
11152 * infrun.h (print_stop_event): Add "displays" parameter.
11153 * infrun.c (print_stop_event): Add "displays" parameter.
11154
11155 2019-03-19 Pedro Alves <palves@redhat.com>
11156
11157 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
11158 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
11159 to -1. Fix TABs vs spaces.
11160 (tui_ui_out::tui_ui_out): Don't initialize fields here.
11161 * tui/tui-out.h (tui_ui_out) Add intro comments.
11162 <m_line, m_start_of_line>: In-class initialize, and add describing
11163 comment.
11164
11165 2019-03-18 Alan Hayward <alan.hayward@arm.com>
11166
11167 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
11168 variable names.
11169 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
11170
11171 2019-03-18 Pedro Alves <palves@redhat.com>
11172 Eli Zaretskii <eliz@gnu.org>
11173
11174 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
11175 m_line and m_start_of_line.
11176
11177 2019-03-18 Eli Zaretskii <eliz@gnu.org>
11178
11179 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
11180 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
11181 it returns a newline. This fixes a regression in TU mode, whereby
11182 the next line is output on the same screen line as the user input.
11183
11184 2019-03-18 Tom Tromey <tromey@adacore.com>
11185
11186 * minsyms.c (minimal_symbol_reader::install): Remove call to
11187 obstack_blank.
11188
11189 2019-03-18 Pedro Alves <palves@redhat.com>
11190
11191 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
11192 New globals.
11193 (apply_style): New, factored out from ...
11194 (apply_ansi_escape): ... this. Handle reverse video mode.
11195 (tui_set_reverse_mode): New function.
11196 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
11197 * tui/tui-winsource.c (tui_show_source_line): Use
11198 tui_set_reverse_mode instead of setting A_STANDOUT.
11199 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
11200 New setter methods.
11201
11202 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
11203
11204 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
11205 Handle tabs.
11206
11207 2019-03-18 Tom Tromey <tromey@adacore.com>
11208
11209 * ada-lang.c (empty_array): Add "high" parameter.
11210 (ada_evaluate_subexp): Update.
11211
11212 2019-03-17 Sergei Trofimovich <siarheit@google.com>
11213
11214 * unittests/string_view-selftests.c: Define
11215 _initialize_string_view_selftests unconditionally.
11216
11217 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
11218
11219 PR gdb/24350
11220 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
11221
11222 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
11223
11224 PR gdb/24351
11225 * windows-nat.c (display_selector): Fix format specifiers.
11226
11227 2019-03-17 Eli Zaretskii <eliz@gnu.org>
11228
11229 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
11230 tui_refill_source_window instead of tui_refresh_win, to update the
11231 current execution line. This fixes redisplay of the current line
11232 when stepping through the code with "next" or "step".
11233
11234 2019-03-16 Eli Zaretskii <eliz@gnu.org>
11235
11236 * source-cache.c (source_cache::get_source_lines): Call
11237 find_source_lines to initialize s->nlines. This fixes vertical
11238 scrolling of TUI source window when the DOWN arrow is pressed.
11239
11240 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11241
11242 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
11243 linux-thread-db.c (_initialize_thread_db): Likewise.
11244
11245 2019-03-16 Eli Zaretskii <eliz@gnu.org>
11246
11247 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
11248 wclrtoeol in tui_show_source_line". This reverts changes made in
11249 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
11250
11251 2019-03-15 Tom Tromey <tom@tromey.com>
11252
11253 * symtab.h (struct minimal_symbol): Derive from
11254 general_symbol_info.
11255 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
11256 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
11257 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
11258 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
11259 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
11260 (MSYMBOL_SEARCH_NAME): Update.
11261 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
11262 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
11263 * minsyms.c (minimal_symbol_reader::record_full): Update.
11264
11265 2019-03-15 Tom Tromey <tom@tromey.com>
11266
11267 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
11268
11269 2019-03-15 Tom Tromey <tom@tromey.com>
11270
11271 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
11272 unique_xmalloc_ptr.
11273 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
11274 Update.
11275 * minsyms.c (lookup_minimal_symbol_by_pc_section)
11276 (build_minimal_symbol_hash_tables)
11277 (minimal_symbol_reader::install): Update.
11278
11279 2019-03-15 Tom Tromey <tom@tromey.com>
11280
11281 * symtab.c (create_demangled_names_hash): Update.
11282 (symbol_set_names): Update.
11283 * objfiles.h (struct objfile_per_bfd_storage)
11284 <demangled_names_hash>: Now an htab_up.
11285 * objfiles.c (objfile_per_bfd_storage): Simplify.
11286
11287 2019-03-15 Tom Tromey <tom@tromey.com>
11288
11289 * objfiles.h (struct objfile_per_bfd_storage): Declare
11290 destructor.
11291 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
11292 New.
11293 (get_objfile_bfd_data): Use new. Don't initialize
11294 language_of_main.
11295 (free_objfile_per_bfd_storage): Remove.
11296 (objfile_bfd_data_free, objfile::~objfile): Use delete.
11297
11298 2019-03-15 Tom Tromey <tom@tromey.com>
11299
11300 * symfile.c (reread_symbols): Update.
11301 * objfiles.c (objfile::objfile): Update.
11302 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
11303 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
11304 comment.
11305 (minimal_symbol_reader::install): Update.
11306 (terminate_minimal_symbol_table): Remove.
11307 * jit.c (jit_object_close_impl): Update.
11308
11309 2019-03-15 Tom Tromey <tom@tromey.com>
11310
11311 * minsyms.c (minimal_symbol_reader::record_full): Remove some
11312 initializations.
11313
11314 2019-03-15 Tom Tromey <tom@tromey.com>
11315
11316 * objfiles.h (struct objfile_per_bfd_storage)
11317 <demangled_hash_languages>: Now a bitset.
11318 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
11319 (lookup_minimal_symbol): Update.
11320
11321 2019-03-15 Tom Tromey <tom@tromey.com>
11322
11323 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
11324 Don't return the symbol.
11325 * coffread.c (record_minimal_symbol): Use record_full.
11326
11327 2019-03-14 Eli Zaretskii <eliz@gnu.org>
11328
11329 The MS-Windows port of ncurses fails to switch to a color pair if
11330 one or both of the colors are the implicit default colors. This
11331 change records the default colors when TUI is initialized, and
11332 then specifies them explicitly when a color pair uses the default
11333 colors. This allows color styling in TUI mode on MS-Windows.
11334
11335 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
11336 ncurses_norm_attr.
11337 (tui_initialize_io) [__MINGW32__]: Record the default terminal
11338 colors in ncurses_norm_attr.
11339 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
11340 "none", replace it with the default color recorded in
11341 ncurses_norm_attr.
11342
11343 2019-03-14 Tom Tromey <tromey@adacore.com>
11344
11345 * source-cache.h (class source_cache) <get_source_lines>: Return
11346 std::string.
11347 * source-cache.c (source_cache::extract_lines): Handle case where
11348 first_pos==npos. Return std::string.
11349 (source_cache::get_source_lines): Update.
11350
11351 2019-03-14 Tom Tromey <tromey@adacore.com>
11352
11353 * NEWS: Add item for "style sources" commands.
11354 * source-cache.c (source_cache::get_source_lines): Check
11355 source_styling.
11356 * cli/cli-style.c (source_styling): New global.
11357 (_initialize_cli_style): Add "style sources" commands.
11358 (show_style_sources): New function.
11359 * cli/cli-style.h (source_styling): Declare.
11360
11361 2019-03-14 Pedro Alves <palves@redhat.com>
11362 Tom Tromey <tromey@adacore.com>
11363
11364 * tui/tui-winsource.h (tui_refill_source_window): Declare.
11365 * tui/tui-winsource.c (tui_refill_source_window): New function,
11366 from...
11367 (tui_horizontal_source_scroll): ... here. Move some logic.
11368 * cli/cli-style.c (set_style_enabled): Notify new observable.
11369 * tui/tui-hooks.c (tui_redisplay_source): New function.
11370 (tui_attach_detach_observers): Attach or detach
11371 tui_redisplay_source.
11372 * observable.h (source_styling_changed): New observable.
11373 * observable.c: Define source_styling_changed observable.
11374
11375 2019-03-13 Tom Tromey <tromey@adacore.com>
11376
11377 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
11378 (i386_gnu_nat_target::store_registers): Update.
11379 * target-debug.h (target_debug_print_std_string): New macro.
11380 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
11381 * windows-tdep.c (display_one_tib): Update.
11382 * tui/tui-stack.c (tui_make_status_line): Update.
11383 * top.c (print_inferior_quit_action): Update.
11384 * thread.c (thr_try_catch_cmd): Update.
11385 (add_thread_with_info): Update.
11386 (thread_target_id_str): Update.
11387 (thr_try_catch_cmd): Update.
11388 (thread_command): Update.
11389 (thread_find_command): Update.
11390 * record-btrace.c (record_btrace_target::info_record)
11391 (record_btrace_resume_thread, record_btrace_target::resume)
11392 (record_btrace_cancel_resume, record_btrace_step_thread)
11393 (record_btrace_target::wait, record_btrace_target::wait)
11394 (record_btrace_target::wait, record_btrace_target::stop): Update.
11395 * progspace.c (print_program_space): Update.
11396 * process-stratum-target.c
11397 (process_stratum_target::thread_address_space): Update.
11398 * linux-fork.c (linux_fork_mourn_inferior)
11399 (detach_checkpoint_command, info_checkpoints_command)
11400 (linux_fork_context): Update.
11401 (linux_fork_detach): Update.
11402 (class scoped_switch_fork_info): Update.
11403 (delete_checkpoint_command): Update.
11404 * infrun.c (follow_fork_inferior): Update.
11405 (follow_fork_inferior): Update.
11406 (proceed_after_vfork_done): Update.
11407 (handle_vfork_child_exec_or_exit): Update.
11408 (follow_exec): Update.
11409 (displaced_step_prepare_throw): Update.
11410 (displaced_step_restore): Update.
11411 (start_step_over): Update.
11412 (resume_1): Update.
11413 (clear_proceed_status_thread): Update.
11414 (proceed): Update.
11415 (print_target_wait_results): Update.
11416 (do_target_wait): Update.
11417 (context_switch): Update.
11418 (stop_all_threads): Update.
11419 (restart_threads): Update.
11420 (finish_step_over): Update.
11421 (handle_signal_stop): Update.
11422 (switch_back_to_stepped_thread): Update.
11423 (keep_going_pass_signal): Update.
11424 (print_exited_reason): Update.
11425 (normal_stop): Update.
11426 * inferior.c (inferior_pid_to_str): Change return type.
11427 (print_selected_inferior): Update.
11428 (add_inferior): Update.
11429 (detach_inferior): Update.
11430 * dummy-frame.c (fprint_dummy_frames): Update.
11431 * dcache.c (dcache_info_1): Update.
11432 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
11433 (btrace_fetch, btrace_clear): Update.
11434 * linux-tdep.c (linux_core_pid_to_str): Change return type.
11435 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
11436 type.
11437 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
11438 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
11439 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
11440 * gdbarch.c, gdbarch.h: Rebuild.
11441 * gdbarch.sh (core_pid_to_str): Change return type.
11442 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
11443 return type.
11444 (windows_nat_target::pid_to_str): Change return type.
11445 (windows_delete_thread): Update.
11446 (windows_nat_target::attach): Update.
11447 (windows_nat_target::files_info): Update.
11448 * target-delegates.c: Rebuild.
11449 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
11450 return type.
11451 (sol_thread_target::pid_to_str): Change return type.
11452 * remote.c (class remote_target) <pid_to_str>: Change return
11453 type.
11454 (remote_target::pid_to_str): Change return type.
11455 (extended_remote_target::attach, remote_target::remote_stop_ns)
11456 (remote_target::remote_notif_remove_queued_reply)
11457 (remote_target::push_stop_reply, remote_target::disable_btrace):
11458 Update.
11459 (extended_remote_target::attach): Update.
11460 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
11461 type.
11462 (gdbsim_target::pid_to_str): Change return type.
11463 * ravenscar-thread.c (struct ravenscar_thread_target)
11464 <pid_to_str>: Change return type.
11465 (ravenscar_thread_target::pid_to_str): Change return type.
11466 * procfs.c (class procfs_target) <pid_to_str>: Change return
11467 type.
11468 (procfs_target::pid_to_str): Change return type.
11469 (procfs_target::attach): Update.
11470 (procfs_target::detach): Update.
11471 (procfs_target::fetch_registers): Update.
11472 (procfs_target::store_registers): Update.
11473 (procfs_target::wait): Update.
11474 (procfs_target::files_info): Update.
11475 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
11476 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
11477 return type.
11478 (nto_procfs_target::pid_to_str): Change return type.
11479 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
11480 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
11481 return type.
11482 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
11483 (exit_lwp): Update.
11484 (attach_proc_task_lwp_callback, get_detach_signal)
11485 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
11486 (linux_nat_target::resume, wait_lwp, stop_callback)
11487 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
11488 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
11489 (linux_nat_wait_1, resume_stopped_resumed_lwps)
11490 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
11491 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
11492 type.
11493 (inf_ptrace_target::attach): Update.
11494 (inf_ptrace_target::files_info): Update.
11495 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
11496 type.
11497 (go32_nat_target::pid_to_str): Change return type.
11498 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
11499 (gnu_nat_target::wait): Update.
11500 (gnu_nat_target::wait): Update.
11501 (gnu_nat_target::resume): Update.
11502 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
11503 (fbsd_nat_target::wait): Update.
11504 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
11505 type.
11506 (darwin_nat_target::attach): Update.
11507 * corelow.c (class core_target) <pid_to_str>: Change return type.
11508 (core_target::pid_to_str): Change return type.
11509 * target.c (normal_pid_to_str): Change return type.
11510 (default_pid_to_str): Likewise.
11511 (target_pid_to_str): Change return type.
11512 (target_translate_tls_address): Update.
11513 (target_announce_detach): Update.
11514 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
11515 return type.
11516 (bsd_uthread_target::pid_to_str): Change return type.
11517 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
11518 type.
11519 (bsd_kvm_target::pid_to_str): Change return type.
11520 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
11521 return type.
11522 (aix_thread_target::pid_to_str): Change return type.
11523 * target.h (struct target_ops) <pid_to_str>: Change return type.
11524 (target_pid_to_str, normal_pid_to_str): Likewise.
11525 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
11526 type.
11527 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
11528 type.
11529 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
11530 return type.
11531 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
11532 type.
11533 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
11534 type.
11535 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
11536 return type.
11537
11538 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
11539
11540 * NEWS: Mention that the new default MI version is 3. Mention
11541 changes to the output of commands and events that deal with
11542 multi-location breakpoints.
11543 * breakpoint.c: Include "mi/mi-out.h".
11544 (print_one_breakpoint): Change output syntax if using MI version
11545 >= 3.
11546 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
11547 New.
11548 (mi_multi_location_breakpoint_output_fixed): New.
11549 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
11550 (mi_cmd_fix_multi_location_breakpoint_output): New.
11551 (mi_multi_location_breakpoint_output_fixed): New.
11552 * mi/mi-cmds.c (mi_cmds): Register command
11553 -fix-multi-location-breakpoint-output.
11554 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
11555 interpreter "mi".
11556
11557 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
11558
11559 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
11560 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
11561 instantiate mi_ui_out based on interpreter name.
11562 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
11563 * mi/mi-main.c (mi_load_progress): Likewise.
11564
11565 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11566
11567 * NEWS: Combine separate "New targets" sections for 8.3.
11568
11569 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11570
11571 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
11572 (ppcfbsd_init_abi): Install gdbarch
11573 "fetch_tls_load_module_address" and "get_thread_local_address"
11574 methods.
11575
11576 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11577
11578 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
11579 (riscv_fbsd_init_abi): Install gdbarch
11580 "fetch_tls_load_module_address" and "get_thread_local_address"
11581 methods.
11582
11583 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11584
11585 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
11586 (i386fbsd_init_abi): Install gdbarch
11587 "fetch_tls_load_module_address" and "get_thread_local_address"
11588 methods.
11589
11590 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11591
11592 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
11593 (amd64fbsd_init_abi): Install gdbarch
11594 "fetch_tls_load_module_address" and "get_thread_local_address"
11595 methods.
11596
11597 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11598
11599 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
11600 (struct fbsd_pspace_data): New type.
11601 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
11602 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
11603 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
11604 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
11605 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
11606
11607 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11608
11609 * gdbtypes.c (lookup_struct_elt): New function.
11610 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
11611 * gdbtypes.h (struct struct_elt): New type.
11612 (lookup_struct_elt): New prototype.
11613
11614 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11615
11616 * gdbtypes.c (lookup_struct_elt_type): Update comment and
11617 remove disabled code block.
11618
11619 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11620
11621 * gdbarch.sh (get_thread_local_address): New method.
11622 * gdbarch.h, gdbarch.c: Regenerate.
11623 * target.c (target_translate_tls_address): Use
11624 gdbarch_get_thread_local_address if present instead of
11625 target::get_thread_local_address.
11626
11627 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11628
11629 * target.h (target::get_thread_local_address): Update comment.
11630
11631 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11632
11633 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
11634 objfile->separate_debug_objfile_backlink if not NULL.
11635
11636 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11637
11638 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
11639 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
11640 (amd64bsd_store_inferior_registers): Likewise.
11641 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
11642 Enable segment base registers.
11643 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
11644 PT_GETFSBASE and PT_GETGSBASE.
11645 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
11646 PT_SETGSBASE.
11647 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
11648 segment base registers.
11649 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
11650
11651 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11652
11653 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
11654 Update calls to i386_target_description to add 'segments'
11655 parameter.
11656 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
11657 add segment base registers.
11658 * arch/i386.c (i386_create_target_description): Add 'segments'
11659 parameter to enable segment base registers.
11660 * arch/i386.h (i386_create_target_description): Likewise.
11661 * features/i386/32bit-segments.xml: New file.
11662 * features/i386/32bit-segments.c: Generate.
11663 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
11664 call to i386_target_description to add 'segments' parameter.
11665 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
11666 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
11667 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
11668 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
11669 if feature is present.
11670 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
11671 Add 'segments' parameter to call to i386_target_description.
11672 (i386_target_description): Add 'segments' parameter to enable
11673 segment base registers.
11674 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
11675 to call to i386_target_description.
11676 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
11677 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
11678 Define I386_NUM_REGS.
11679 (i386_target_description): Add 'segments' parameter to enable
11680 segment base registers.
11681
11682 2019-03-12 Eli Zaretskii <eliz@gnu.org>
11683
11684 PR/24325
11685 * source-cache.c: #undef open and close, to avoid unresolved
11686 externals during linking.
11687
11688 2019-03-12 Tom Tromey <tromey@adacore.com>
11689
11690 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
11691 const. Add initializers.
11692 (_initialize_remote): Don't initialize ptid globals.
11693
11694 2019-03-12 Pedro Alves <palves@redhat.com>
11695
11696 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
11697
11698 2019-03-12 Pedro Alves <palves@redhat.com>
11699
11700 * cp-name-parser.y (main): Remove unused 'len' variable.
11701
11702 2019-03-12 Tom Tromey <tromey@adacore.com>
11703
11704 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
11705 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
11706
11707 2019-03-12 Tom Tromey <tromey@adacore.com>
11708
11709 * linux-nat.c (iterate_over_lwps): Update.
11710 (stop_callback): Remove parameter.
11711 (stop_wait_callback, detach_callback, resume_set_callback)
11712 (select_singlestep_lwp_callback, set_ignore_sigint)
11713 (status_callback, resumed_callback, resume_clear_callback)
11714 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
11715 data parameter.
11716 (linux_nat_target::detach, linux_nat_target::resume)
11717 (linux_stop_and_wait_all_lwps, select_event_lwp)
11718 (linux_nat_filter_event, linux_nat_wait_1)
11719 (linux_nat_target::kill, linux_nat_target::stop)
11720 (linux_nat_target::stop): Update.
11721 (linux_nat_resume_callback): Change type.
11722 (resume_stopped_resumed_lwps, count_events_callback)
11723 (select_event_lwp_callback): Likewise.
11724 (linux_stop_lwp, linux_nat_stop_lwp): Update.
11725 * arm-linux-nat.c (struct update_registers_data): Remove.
11726 (update_registers_callback): Change type.
11727 (arm_linux_insert_hw_breakpoint1): Update.
11728 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
11729 parameter.
11730 (x86_linux_dr_set_addr): Update.
11731 (x86_linux_dr_set_control): Update.
11732 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
11733 (iterate_over_lwps): Use gdb::function_view.
11734 * nat/aarch64-linux-hw-point.c (struct
11735 aarch64_dr_update_callback_param): Remove.
11736 (debug_reg_change_callback): Change type.
11737 (aarch64_notify_debug_reg_change): Update.
11738 * s390-linux-nat.c (s390_refresh_per_info): Update.
11739
11740 2019-03-11 Tom Tromey <tromey@adacore.com>
11741
11742 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
11743 redundant assignment to "this_cu".
11744
11745 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11746
11747 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
11748
11749 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11750
11751 * gdbtypes.c (rank_one_type_parm_set): New function extracted
11752 from...
11753 (rank_one_type): ... this.
11754
11755 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11756
11757 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
11758 from...
11759 (rank_one_type): ... this.
11760
11761 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11762
11763 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
11764 from...
11765 (rank_one_type): ... this.
11766
11767 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11768
11769 * gdbtypes.c (rank_one_type_parm_float): New function extracted
11770 from...
11771 (rank_one_type): ... this.
11772
11773 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11774
11775 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
11776 from...
11777 (rank_one_type): ... this.
11778
11779 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11780
11781 * gdbtypes.c (rank_one_type_parm_range): New function extracted
11782 from...
11783 (rank_one_type): ... this.
11784
11785 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11786
11787 * gdbtypes.c (rank_one_type_parm_char): New function extracted
11788 from...
11789 (rank_one_type): ... this.
11790
11791 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11792
11793 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
11794 from...
11795 (rank_one_type): ... this.
11796
11797 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11798
11799 * gdbtypes.c (rank_one_type_parm_int): New function extracted
11800 from...
11801 (rank_one_type): ... this.
11802
11803 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11804
11805 * gdbtypes.c (rank_one_type_parm_func): New function extracted
11806 from...
11807 (rank_one_type): ... this.
11808
11809 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11810
11811 * gdbtypes.c (rank_one_type_parm_array): New function extracted
11812 from...
11813 (rank_one_type): ... this.
11814
11815 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11816
11817 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
11818 from...
11819 (rank_one_type): ... this.
11820
11821 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11822
11823 * inferior.c (initialize_inferiors): Ensure 'help set/show print
11824 inferior-events' shows the example events.
11825
11826 2019-03-08 Eli Zaretskii <eliz@gnu.org>
11827
11828 Support styling on native MS-Windows console
11829
11830 PR/24315
11831 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
11832 on MS-Windows if $TERM is not defined.
11833
11834 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
11835
11836 * posix-hdep.c (gdb_console_fputs):
11837 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
11838 functions.
11839 * ui-file.h (gdb_console_fputs): Add prototype.
11840
11841 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
11842 back to fputs only if the former returns zero.
11843
11844 2019-03-07 Tom Tromey <tom@tromey.com>
11845
11846 * symmisc.c (print_symbol_bcache_statistics): Update.
11847 (print_objfile_statistics): Update.
11848 * symfile.c (allocate_symtab): Update.
11849 * stabsread.c: Don't include bcache.h.
11850 * psymtab.h (struct psymbol_bcache): Don't declare.
11851 (class psymtab_storage) <psymbol_cache>: Now a bcache.
11852 (psymbol_bcache_init, psymbol_bcache_free)
11853 (psymbol_bcache_get_bcache): Don't declare.
11854 * psymtab.c (struct psymbol_bcache): Remove.
11855 (psymtab_storage::psymtab_storage): Update.
11856 (psymtab_storage::~psymtab_storage): Update.
11857 (psymbol_bcache_init, psymbol_bcache_free)
11858 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
11859 (add_psymbol_to_bcache): Update.
11860 (allocate_psymtab): Update.
11861 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
11862 macro_cache>: No longer pointers.
11863 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
11864 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
11865 * macrotab.c (macro_bcache): Update.
11866 * macroexp.c: Don't include bcache.h.
11867 * gdbtypes.c (check_types_worklist): Update.
11868 (types_deeply_equal): Remove TRY/CATCH. Update.
11869 * elfread.c (elf_symtab_read): Update.
11870 * dwarf2read.c: Don't include bcache.h.
11871 * buildsym.c (buildsym_compunit::get_macro_table): Update.
11872 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
11873 (print_bcache_statistics, bcache_memory_used): Don't declare.
11874 (struct bcache): Move from bcache.c. Add constructor, destructor,
11875 methods. Rename all data members.
11876 * bcache.c (struct bcache): Move to bcache.h.
11877 (bcache::expand_hash_table): Rename from expand_hash_table.
11878 (bcache): Remove.
11879 (bcache::insert): Rename from bcache_full.
11880 (bcache::compare): Rename from bcache_compare.
11881 (bcache_xmalloc): Remove.
11882 (bcache::~bcache): Rename from bcache_xfree.
11883 (bcache::print_statistics): Rename from print_bcache_statistics.
11884 (bcache::memory_used): Rename from bcache_memory_used.
11885
11886 2019-03-07 Pedro Alves <palves@redhat.com>
11887
11888 * infrun.c (normal_stop): Also check for
11889 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
11890
11891 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
11892
11893 * f-lang.c (value_from_host_double): Moved to...
11894 * value.c (value_from_host_double): ...here.
11895 * value.h (value_from_host_double): Declare.
11896 * guile/scm-math.c (vlscm_convert_typed_number): Use
11897 value_from_host_double.
11898 (vlscm_convert_number): Likewise.
11899 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
11900 * python/py-value.c (convert_value_from_python): Likewise.
11901
11902 2019-03-06 Tom Tromey <tom@tromey.com>
11903
11904 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
11905
11906 2019-03-06 Tom Tromey <tom@tromey.com>
11907
11908 * utils.h (free_current_contents): Don't declare.
11909 * utils.c (free_current_contents): Remove.
11910
11911 2019-03-06 Tom Tromey <tom@tromey.com>
11912
11913 * top.c (quit_force): Update.
11914 * main.c (captured_command_loop): Update.
11915 * common/new-op.c (operator new): Update.
11916 * common/common-exceptions.c (struct catcher)
11917 <save_cleanup_chain>: Remove member.
11918 (exceptions_state_mc_init): Update.
11919 (exception_try_scope_entry): Return nullptr.
11920 (exception_try_scope_exit, exception_rethrow)
11921 (throw_exception_sjlj, throw_exception_cxx): Update.
11922 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
11923 (all_cleanups, do_cleanups, discard_cleanups)
11924 (discard_final_cleanups, save_cleanups, save_final_cleanups)
11925 (restore_cleanups, restore_final_cleanups): Don't declare.
11926 (do_final_cleanups): Remove parameter.
11927 * common/cleanups.c (cleanup_chain, make_cleanup)
11928 (make_cleanup_dtor, all_cleanups, do_cleanups)
11929 (discard_my_cleanups, discard_cleanups)
11930 (discard_final_cleanups, save_my_cleanups, save_cleanups)
11931 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
11932 (null_cleanup): Remove.
11933 (do_final_cleanups): Remove parameter.
11934
11935 2019-03-06 Tom Tromey <tom@tromey.com>
11936
11937 * remote.c (remote_target::remote_parse_stop_reply): Use
11938 unique_xmalloc_ptr.
11939
11940 2019-03-06 Tom Tromey <tom@tromey.com>
11941
11942 * stabsread.c (struct stabs_field_info): Rename from field_info.
11943 <list, fnlist>: Add initializers.
11944 <obstack>: New member.
11945 (read_member_functions, read_struct_fields, read_baseclasses):
11946 Allocate on obstack. Don't use cleanups.
11947 (read_one_struct_field, read_member_functions, read_struct_fields)
11948 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
11949 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
11950 (read_struct_type): Update.
11951
11952 2019-03-06 Tom Tromey <tom@tromey.com>
11953
11954 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
11955 * common/filestuff.h (make_cleanup_close): Don't declare.
11956 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
11957 Remove.
11958
11959 2019-03-06 Tom Tromey <tom@tromey.com>
11960
11961 * solib-aix.c: Use make_scope_exit.
11962
11963 2019-03-06 Tom Tromey <tom@tromey.com>
11964
11965 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
11966 Use make_scope_exit.
11967
11968 2019-03-06 Tom Tromey <tom@tromey.com>
11969
11970 * solib-svr4.c (disable_probes_interface): Remove parameter.
11971 (svr4_handle_solib_event): Use make_scope_exit.
11972
11973 2019-03-06 Tom Tromey <tom@tromey.com>
11974
11975 * remote.c (struct stop_reply_deleter): Remove.
11976 (stop_reply_up): Update.
11977 (struct stop_reply): Derive from notif_event. Don't typedef.
11978 <regcache>: Now a std::vector.
11979 (stop_reply_xfree): Remove.
11980 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
11981 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
11982 (remote_target::discard_pending_stop_replies): Use delete.
11983 (remote_target::remote_parse_stop_reply): Update.
11984 (remote_target::process_stop_reply): Update.
11985 * remote-notif.h (struct notif_event): Add virtual destructor.
11986 Remove "dtr" member.
11987 (struct notif_client) <alloc_event>: Return a unique_ptr.
11988 (notif_event_xfree): Don't declare.
11989 (notif_event_up): New typedef.
11990 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
11991 (notif_event_xfree, do_notif_event_xfree): Remove.
11992 (remote_notif_state_xfree): Update.
11993
11994 2019-03-06 Tom Tromey <tom@tromey.com>
11995
11996 * infrun.c (displaced_step_clear_cleanup): Now a
11997 forward_scope_exit type.
11998 (displaced_step_prepare_throw): Update.
11999 (displaced_step_fixup): Update.
12000
12001 2019-03-06 Tom Tromey <tom@tromey.com>
12002
12003 * inferior.h (class inferior): Update comment.
12004 * gdbthread.h (class thread_info): Update comment.
12005
12006 2019-03-06 Joel Brobecker <brobecker@adacore.com>
12007 Tom Tromey <tom@tromey.com>
12008
12009 * stabsread.h (struct stab_section_list): Remove.
12010 (coffstab_build_psymtabs): Update.
12011 * dbxread.c (symbuf_sections): Now a std::vector.
12012 (sect_idx): New global.
12013 (fill_symbuf): Update.
12014 (coffstab_build_psymtabs): Change type of stabsects parameter.
12015 Update.
12016 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
12017 std::vector.
12018 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
12019 (coff_locate_sections): Update.
12020 (coff_symfile_read): Remove cleanups. Update.
12021 (init_stringtab): Add storage parameter.
12022 (free_stringtab, free_stringtab_cleanup): Remove.
12023 (init_lineno): Add storage parameter.
12024 (free_linetab, free_linetab_cleanup): Remove.
12025
12026 2019-03-06 Pedro Alves <palves@redhat.com>
12027
12028 * linux-fork.c (fork_info::clobber_regs): Delete.
12029 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
12030 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
12031 comment. Adjust.
12032 (scoped_switch_fork_info::scoped_switch_fork_info)
12033 (checkpoint_command, linux_fork_context): Adjust
12034 fork_save_infrun_state calls.
12035
12036 2019-03-06 Pedro Alves <palves@redhat.com>
12037
12038 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
12039 (inf_has_multiple_threads): Return 'bool' and rewrite using
12040 inferior_info::threads().
12041
12042 2019-03-06 Pedro Alves <palves@redhat.com>
12043
12044 * linux-fork.c: Include <list>.
12045 (fork_list): Now a std::list instance.
12046 (fork_info): Add ctor, dtor, and in-class initialize all fields.
12047 (forks_exist_p, find_last_fork): Adjust.
12048 (new_fork): Delete.
12049 (one_fork_p): New.
12050 (add_fork): Adjust.
12051 (free_fork): Delete, folded into fork_info::~fork_info().
12052 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
12053 Adjust.
12054 (init_fork_list): Delete.
12055 (linux_fork_killall, linux_fork_mourn_inferior)
12056 (linux_fork_detach, info_checkpoints_command): Adjust.
12057 (_initialize_linux_fork): No longer call init_fork_list.
12058
12059 2019-03-06 Pedro Alves <palves@redhat.com>
12060
12061 * linux-fork.c (new_fork): New, split out of ...
12062 (add_fork): ... this. Return void. Move "first fork" special
12063 case from here, to ...
12064 (checkpoint_command): ... here.
12065 * linux-linux.h (add_fork): Return void.
12066
12067 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12068
12069 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
12070
12071 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12072 Chris January <chris.january@arm.com>
12073 David Lecomber <david.lecomber@arm.com>
12074
12075 * f-exp.y: New token, UNOP_INTRINSIC.
12076 (exp): New pattern using UNOP_INTRINSIC token.
12077 (f77_keywords): Add 'abs' keyword.
12078 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
12079 (value_from_host_double): New function.
12080 (evaluate_subexp_f): Support UNOP_ABS.
12081
12082 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12083
12084 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
12085 types.
12086
12087 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12088
12089 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
12090 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
12091 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
12092
12093 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12094
12095 * f-exp.y (convert_to_kind_type): Handle more type kinds.
12096
12097 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12098 Chris January <chris.january@arm.com>
12099
12100 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
12101 * f-exp.y: Define 'KIND' token.
12102 (exp): New pattern for KIND expressions.
12103 (ptype): Handle types with a kind extension.
12104 (direct_abs_decl): Extend to spot kind extensions.
12105 (f77_keywords): Add 'kind' to the list.
12106 (push_kind_type): New function.
12107 (convert_to_kind_type): New function.
12108 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
12109 * parse.c (operator_length_standard): Likewise.
12110 * parser-defs.h (enum type_pieces): Add tp_kind.
12111 * std-operator.def: Add UNOP_KIND.
12112
12113 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12114
12115 * f-exp.y (f_parse): Set yydebug.
12116
12117 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12118
12119 * f-lang.c (evaluate_subexp_f): New function.
12120 (exp_descriptor_f): New global.
12121 (f_language_defn): Use exp_descriptor_f instead of
12122 exp_descriptor_standard.
12123
12124 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12125
12126 * f-exp.y (struct token): Add comments.
12127 (dot_ops): Remove uppercase versions and the end marker.
12128 (f77_keywords): Likewise.
12129 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
12130 entries in the dot_ops array are case insensitive, and use
12131 strncasecmp to compare strings. Also some whitespace cleanup in
12132 this area. Similar for the f77_keywords array, except entries in
12133 this list might be case sensitive.
12134
12135 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12136
12137 * f-exp.y (struct f77_boolean_val): Add comments.
12138 (boolean_values): Remove uppercase versions, and end marker.
12139 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
12140 and use strncasecmp to achieve case insensitivity. Additionally,
12141 perform whitespace cleanup around this code.
12142
12143 2019-03-06 Tom Tromey <tromey@adacore.com>
12144
12145 * remote-sim.c (gdbsim_target_open): Use result of
12146 gdb_argv::release.
12147
12148 2019-03-06 Richard Bunt <richard.bunt@arm.com>
12149 Dirk Schubert <dirk.schubert@arm.com>
12150 Chris January <chris.january@arm.com>
12151
12152 * eval.c (evaluate_subexp_standard): Call Fortran argument
12153 wrapping logic.
12154 * f-lang.c (struct value): A value which can be passed into a
12155 Fortran function call.
12156 (fortran_argument_convert): Wrap Fortran arguments in a pointer
12157 where appropriate.
12158 (struct type): Value ready for a Fortran function call.
12159 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
12160 is needed.
12161 * f-lang.h (fortran_argument_convert): Declaration.
12162 (fortran_preserve_arg_pointer): Declaration.
12163 * infcall.c (value_arg_coerce): Call Fortran argument logic.
12164
12165 2019-03-05 Tom Tromey <tromey@adacore.com>
12166
12167 * python/py-prettyprint.c (print_string_repr): Remove #if.
12168 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
12169
12170 2019-03-05 Tom Tromey <tromey@adacore.com>
12171
12172 * target.c (the_dummy_target): Move later. Change type to
12173 "dummy_target".
12174 (initialize_targets): Don't initialize the_dummy_target.
12175
12176 2019-03-05 Tom Tromey <tromey@adacore.com>
12177
12178 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
12179 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
12180
12181 2019-03-05 Tom Tromey <tromey@adacore.com>
12182
12183 * windows-nat.c (windows_nat_target::attach)
12184 (windows_nat_target::detach): Don't call gdb_flush.
12185 * valprint.c (generic_val_print, val_print, val_print_string):
12186 Don't call gdb_flush.
12187 * utils.c (defaulted_query): Don't call gdb_flush.
12188 * typeprint.c (print_type_scalar): Don't call gdb_flush.
12189 * target.c (target_announce_detach): Don't call gdb_flush.
12190 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
12191 * remote.c (extended_remote_target::attach): Don't call
12192 gdb_flush.
12193 * procfs.c (procfs_target::detach): Don't call gdb_flush.
12194 * printcmd.c (do_examine): Don't call gdb_flush.
12195 (info_display_command): Don't call gdb_flush.
12196 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
12197 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
12198 * memattr.c (info_mem_command): Don't call gdb_flush.
12199 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
12200 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
12201 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
12202 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
12203 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
12204 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
12205 (gnu_nat_target::detach): Don't call gdb_flush.
12206 * f-valprint.c (f_val_print): Don't call gdb_flush.
12207 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
12208 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
12209 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
12210 gdb_flush.
12211 * c-valprint.c (c_val_print): Don't call gdb_flush.
12212 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
12213
12214 2019-03-05 Tom Tromey <tromey@adacore.com>
12215
12216 * varobj.c (update_dynamic_varobj_children): Update.
12217 (install_default_visualizer): Use reset, not release.
12218 * value.c (set_internalvar): Update.
12219 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
12220 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
12221 ATTRIBUTE_UNUSED_RESULT.
12222
12223 2019-03-05 Tom Tromey <tromey@adacore.com>
12224
12225 * remote.c (class scoped_remote_fd) <release>: Add
12226 ATTRIBUTE_UNUSED_RESULT.
12227
12228 2019-03-05 Tom Tromey <tromey@adacore.com>
12229
12230 * macroexp.c (struct macro_buffer) <release>: Add
12231 ATTRIBUTE_UNUSED_RESULT.
12232
12233 2019-03-05 Tom Tromey <tromey@adacore.com>
12234
12235 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
12236 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
12237 ATTRIBUTE_UNUSED_RESULT.
12238
12239 2019-03-05 Tom Tromey <tromey@adacore.com>
12240
12241 * common/scoped_fd.h (class scoped_fd) <release>: Add
12242 ATTRIBUTE_UNUSED_RESULT.
12243
12244 2019-03-05 Tom Tromey <tromey@adacore.com>
12245
12246 * parser-defs.h (struct parser_state) <release>: Add
12247 ATTRIBUTE_UNUSED_RESULT.
12248
12249 2019-03-05 Tom Tromey <tromey@adacore.com>
12250
12251 * utils.h (class gdb_argv) <release>: Add
12252 ATTRIBUTE_UNUSED_RESULT.
12253 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
12254
12255 2019-03-02 Eli Zaretskii <eliz@gnu.org>
12256
12257 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
12258 for-loop range, to avoid compiler warnings.
12259
12260 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
12261 avoid compiler warnings about unused variables.
12262
12263 * NEWS: Mention end of support for native debugging on MS-Windows
12264 before XP.
12265
12266 PR gdb/24292
12267 * common/netstuff.c:
12268 * gdbserver/gdbreplay.c
12269 * gdbserver/remote-utils.c:
12270 * ser-tcp.c:
12271 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
12272 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
12273 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
12274 'getaddrinfo' and 'freeaddrinfo' were not available before
12275 Windows XP, and mingw.org's MinGW headers by default define
12276 _WIN32_WINNT to 0x500.
12277
12278 2019-03-01 Gary Benson <gbenson@redhat.com>
12279
12280 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
12281
12282 2019-02-28 Brian Vandenberg <phantall@gmail.com>
12283 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12284
12285 PR gdb/8527
12286 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
12287 set_sigint_trap, clear_sigint_trap.
12288
12289 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12290
12291 * target.c (target_detach): Clear the regcache and the
12292 frame cache.
12293
12294 2019-02-27 Pedro Alves <palves@redhat.com>
12295
12296 * utils.c (set_screen_size): When we cap the height/width sizes,
12297 tweak the corresponding command variable to show "unlimited":
12298
12299 2019-02-27 Saagar Jha <saagar@saagarjha.com>
12300 Pedro Alves <palves@redhat.com>
12301
12302 * utils.c (set_screen_size): Reduce "infinite" rows and columns
12303 before calling rl_set_screen_size.
12304
12305 2019-02-27 Tom Tromey <tromey@adacore.com>
12306
12307 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
12308 define.
12309 * python/py-value.c: Remove Python 2.4 workaround.
12310 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
12311 workaround.
12312 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
12313 Python 2.4 workaround.
12314 * python/python-internal.h: Remove Python 2.4 comment.
12315 (Py_ssize_t): Don't define.
12316 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
12317 (gdb_Py_DECREF): Remove Python 2.4 workaround.
12318 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
12319 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
12320 * python/python.c (do_start_initialization): Remove Python 2.4
12321 workaround.
12322 * python/py-prettyprint.c (class dummy_python_frame): Remove.
12323 (print_children): Remove Python 2.4 workaround.
12324 * python/py-inferior.c (buffer_procs): Remove Python 2.4
12325 workaround.
12326 (CHARBUFFERPROC_NAME): Remove.
12327 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
12328 Python 2.4 workaround.
12329
12330 2019-02-27 Kevin Buettner <kevinb@redhat.com>
12331
12332 * NEWS: Note minimum Python version.
12333
12334 2019-02-27 Kevin Buettner <kevinb@redhat.com>
12335
12336 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
12337 code from these functions. Remove corresponding ifdefs. Use
12338 Py_buffer_up instead of explicit calls to PyBuffer_Release.
12339 Remove gotos and target of gotos.
12340 (infpy_search_memory): Likewise.
12341
12342 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12343
12344 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
12345 (hppa_gdbarch_init): Don't register deleted functions with
12346 gdbarch.
12347
12348 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12349
12350 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
12351 (h8300_unwind_sp): Delete.
12352 (h8300_dummy_id): Delete.
12353 (h8300_gdbarch_init): Don't register deleted functions with
12354 gdbarch.
12355
12356 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12357
12358 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
12359 (ft32_unwind_pc): Delete.
12360 (ft32_unwind_sp): Delete.
12361 (ft32_gdbarch_init): Don't register deleted functions with
12362 gdbarch.
12363
12364 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12365
12366 * gdb/frv-tdep.c (frv_dummy_id): Delete.
12367 (frv_unwind_pc): Delete.
12368 (frv_unwind_sp): Delete.
12369 (frv_gdbarch_init): Don't register deleted functions with
12370 gdbarch.
12371
12372 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12373
12374 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
12375 (riscv_unwind_pc): Delete.
12376 (riscv_unwind_sp): Delete.
12377 (riscv_gdbarch_init): Don't register deleted functions with
12378 gdbarch.
12379
12380 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12381
12382 * gdb/csky-tdep.c (csky_dummy_id): Delete.
12383 (csky_unwind_pc): Delete.
12384 (csky_unwind_sp): Delete.
12385 (csky_gdbarch_init): Don't register deleted functions with
12386 gdbarch.
12387
12388 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12389
12390 * gdb/cris-tdep.c (cris_dummy_id): Delete.
12391 (cris_unwind_pc): Delete.
12392 (cris_unwind_sp): Delete.
12393 (cris_gdbarch_init): Don't register deleted functions with
12394 gdbarch.
12395
12396 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12397
12398 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
12399 (bfin_unwind_pc): Delete.
12400 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
12401
12402 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12403
12404 * gdb/arm-tdep.c (arm_dummy_id): Delete.
12405 (arm_unwind_pc): Delete.
12406 (arm_unwind_sp): Delete.
12407 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
12408
12409 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12410
12411 * gdb/arc-tdep.c (arc_dummy_id): Delete.
12412 (arc_unwind_pc): Delete.
12413 (arc_unwind_sp): Delete.
12414 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
12415
12416 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12417
12418 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
12419 (alpha_unwind_pc): Delete.
12420 (alpha_gdbarch_init): Don't register deleted functions with
12421 gdbarch.
12422
12423 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12424
12425 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
12426 (aarch64_unwind_pc): Delete.
12427 (aarch64_unwind_sp): Delete.
12428 (aarch64_gdbarch_init): Don't register deleted functions with
12429 gdbarch.
12430
12431 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12432
12433 * gdbtypes.c (type_align): Don't consider static members when
12434 computing structure alignment.
12435
12436 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12437
12438 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
12439 return 0 for other types.
12440 * arch-utils.c (default_type_align): Always return 0.
12441 * gdbarch.h: Regenerate.
12442 * gdbarch.sh (type_align): Extend comment.
12443 * gdbtypes.c (type_align): Add additional comments, always call
12444 gdbarch_type_align before applying the default rules.
12445 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
12446 generic code will then apply a suitable default.
12447 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
12448 types, return 0 for other types.
12449
12450 2019-02-27 Joel Brobecker <brobecker@adacore.com>
12451
12452 * NEWS: Create a new section for the next release branch.
12453 Rename the section of the current branch, now that it has
12454 been cut.
12455
12456 2019-02-27 Joel Brobecker <brobecker@adacore.com>
12457
12458 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
12459 * version.in: Bump version to 8.3.50.DATE-git.
12460
12461 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
12462
12463 * aix-thread.c (ptid_cmp): Remove unused variable.
12464 (get_signaled_thread): Likewise.
12465 (store_regs_user_thread): Likewise.
12466 (store_regs_kernel_thread): Likewise.
12467 (fetch_regs_kernel_thread): Remove shadowed variable.
12468
12469 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
12470
12471 * features/riscv/32bit-cpu.xml: Add register numbers.
12472 * features/riscv/32bit-fpu.c: Regenerate.
12473 * features/riscv/32bit-fpu.xml: Add register numbers.
12474 * features/riscv/64bit-cpu.xml: Add register numbers.
12475 * features/riscv/64bit-fpu.c: Regenerate.
12476 * features/riscv/64bit-fpu.xml: Add register numbers.
12477
12478 2019-02-26 Kevin Buettner <kevinb@redhat.com>
12479
12480 * NEWS: Mention two argument form of gdb.Value constructor.
12481 * python/py-value.c (convert_buffer_and_type_to_value): New
12482 function.
12483 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
12484 Add support for handling an optional second argument. Call
12485 convert_buffer_and_type_to_value as appropriate.
12486 * python/python-internal.h (Py_buffer_deleter): New struct.
12487 (Py_buffer_up): New typedef.
12488
12489 2019-02-25 John Baldwin <jhb@FreeBSD.org>
12490
12491 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
12492 instead of releasing ownership.
12493
12494 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
12495
12496 * dwarf2read.c (open_and_init_dwp_file): Call
12497 elf_numsections instead of bfd_count_sections to initialize
12498 dwp_file->num_sections.
12499
12500 2019-02-25 Tom Tromey <tromey@adacore.com>
12501
12502 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
12503
12504 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
12505
12506 * gcore.in: Add '--readnever' option when invoking GDB.
12507
12508 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
12509
12510 * MAINTAINERS: Update my email address.
12511
12512 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
12513
12514 * build-id.c (build_id_to_debug_bfd_1): New function.
12515 (build_id_to_debug_bfd): Look for separate debug file in
12516 sysroot.
12517
12518 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
12519
12520 * gdbarch.sh: Update the copyright year range that is placed into
12521 generated files.
12522
12523 2019-02-22 Keith Seitz <keiths@redhat.com>
12524
12525 PR symtab/23853
12526 * linespec.c (create_sals_line_offset): Search for the default
12527 symtab's filename instead of its fullname.
12528
12529 2019-02-21 Alan Hayward <alan.hayward@arm.com>
12530
12531 * NEWS: Update style defaults.
12532
12533 2019-02-21 Alan Hayward <alan.hayward@arm.com>
12534
12535 * main.c (captured_main_1): Disable styling in batch mode.
12536
12537 2019-02-20 Tom Tromey <tom@tromey.com>
12538
12539 * symtab.c (symtab_symbol_info): Fix typos.
12540
12541 2019-02-20 Tom Tromey <tromey@adacore.com>
12542
12543 * findcmd.c (_initialize_mem_search): Use upper case for
12544 metasyntactic variables.
12545
12546 2019-02-20 Alan Hayward <alan.hayward@arm.com>
12547
12548 * aarch64-tdep.c (aarch64_add_reggroups): New function.
12549 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
12550
12551 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
12552
12553 * top.h (source_file_name): Change to std::string.
12554 * top.c (source_file_name): Likewise.
12555 (command_line_input): Adjust.
12556 * cli/cli-script.c (script_from_file): Adjust.
12557
12558 2019-02-19 Tom Tromey <tromey@adacore.com>
12559
12560 * ravenscar-thread.c
12561 (ravenscar_thread_target::update_thread_list): Don't call
12562 ada_build_task_list.
12563 * ada-lang.h (ada_build_task_list): Don't declare.
12564 * ada-tasks.c (struct ada_tasks_inferior_data)
12565 <task_list_valid_p>: Now bool.
12566 (read_known_tasks, ada_task_list_changed)
12567 (ada_tasks_invalidate_inferior_data): Update.
12568 (read_known_tasks_array): Return bool.
12569 (read_known_tasks_list): Likewise.
12570 (read_known_tasks): Return void.
12571 (ada_build_task_list): Now static.
12572
12573 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
12574
12575 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
12576 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
12577
12578 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12579
12580 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
12581 variant for ada_tasks_pspace_data_handle and
12582 ada_tasks_inferior_data_handle.
12583 (ada_tasks_pspace_data_cleanup): New function.
12584 (ada_tasks_inferior_data_cleanup): New function.
12585
12586 2019-02-17 Tom Tromey <tom@tromey.com>
12587
12588 * macrotab.h (macro_source_fullname): Return a std::string.
12589 * macrotab.c (macro_include, check_for_redefinition)
12590 (macro_undef, macro_lookup_definition, foreach_macro)
12591 (foreach_macro_in_scope): Update.
12592 (macro_source_fullname): Return a std::string.
12593 * macrocmd.c (show_pp_source_pos): Update.
12594
12595 2019-02-17 Tom Tromey <tom@tromey.com>
12596
12597 * macrocmd.c (show_pp_source_pos): Style the file names.
12598
12599 2019-02-17 Tom Tromey <tom@tromey.com>
12600
12601 PR tui/24197:
12602 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
12603
12604 2019-02-17 Tom Tromey <tom@tromey.com>
12605
12606 * ada-lang.c (user_select_syms): Use filtered printing.
12607 * utils.c (wrap_style): New global.
12608 (desired_style): Remove.
12609 (emit_style_escape): Add stream parameter.
12610 (set_output_style, reset_terminal_style, prompt_for_continue):
12611 Update.
12612 (flush_wrap_buffer): Only flush gdb_stdout.
12613 (wrap_here): Set wrap_style.
12614 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
12615 treat escape sequences as a character. Change when wrap buffer is
12616 flushed.
12617 (fputs_styled): Do not set the output style when the default is
12618 requested.
12619 * ui-style.h (struct ui_file_style) <is_default>: New method.
12620 * source.c (print_source_lines_base): Emit escape sequences in one
12621 piece.
12622
12623 2019-02-17 Joel Brobecker <brobecker@adacore.com>
12624
12625 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
12626 integers and enumeration types.
12627
12628 2019-02-17 Joel Brobecker <brobecker@adacore.com>
12629
12630 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
12631 instead of lookup_symbol_in_language
12632 (do_exact_match): New function.
12633 (ada_get_symbol_name_matcher): Return do_exact_match when
12634 doing a verbatim match.
12635
12636 2019-02-15 Tom Tromey <tromey@adacore.com>
12637
12638 * ravenscar-thread.c (ravenscar_thread_target::resume)
12639 (ravenscar_thread_target::wait): Special case wildcard requests.
12640
12641 2019-02-15 Tom Tromey <tromey@adacore.com>
12642
12643 * ravenscar-thread.c (base_ptid): Remove.
12644 (struct ravenscar_thread_target) <close>: New method.
12645 <m_base_ptid>: New member.
12646 <update_inferior_ptid, active_task, task_is_currently_active,
12647 runtime_initialized>: Declare methods.
12648 <ravenscar_thread_target>: Add constructor.
12649 (ravenscar_thread_target::task_is_currently_active)
12650 (ravenscar_thread_target::update_inferior_ptid)
12651 (ravenscar_runtime_initialized): Rename. Now methods.
12652 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
12653 (ravenscar_thread_target::update_thread_list): Update.
12654 (ravenscar_thread_target::active_task): Now method.
12655 (ravenscar_thread_target::store_registers)
12656 (ravenscar_thread_target::prepare_to_store)
12657 (ravenscar_thread_target::prepare_to_store)
12658 (ravenscar_thread_target::mourn_inferior): Update.
12659 (ravenscar_inferior_created): Use "new" to create target.
12660 (ravenscar_thread_target::get_ada_task_ptid): Update.
12661 (_initialize_ravenscar): Don't initialize base_ptid.
12662 (ravenscar_ops): Remove global.
12663
12664 2019-02-15 Tom Tromey <tromey@adacore.com>
12665
12666 * target.h (push_target): Declare new overload.
12667 * target.c (push_target): New overload, taking an rvalue reference.
12668 * remote.c (remote_target::open_1): Use push_target overload.
12669 * corelow.c (core_target_open): Use push_target overload.
12670
12671 2019-02-15 Tom Tromey <tromey@adacore.com>
12672
12673 * ravenscar-thread.c (is_ravenscar_task)
12674 (ravenscar_task_is_currently_active): Return bool.
12675 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
12676 (_initialize_ravenscar): Remove "(void)".
12677 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
12678 Return bool.
12679
12680 2019-02-15 Tom Tromey <tromey@adacore.com>
12681
12682 * ravenscar-thread.c (ravenscar_runtime_initializer)
12683 (has_ravenscar_runtime, get_running_thread_id)
12684 (ravenscar_thread_target::resume): Fix indentation.
12685
12686 2019-02-15 Tom Tromey <tromey@adacore.com>
12687
12688 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
12689 from ravenscar_arch_ops.
12690 (sparc_ravenscar_ops::fetch_registers)
12691 (sparc_ravenscar_ops::store_registers): Now methods.
12692 (sparc_ravenscar_prepare_to_store): Remove.
12693 (sparc_ravenscar_ops): Redefine.
12694 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
12695 methods and destructor. Remove members.
12696 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
12697 (ravenscar_thread_target::store_registers)
12698 (ravenscar_thread_target::prepare_to_store): Update.
12699 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
12700 Remove.
12701 (struct ppc_ravenscar_powerpc_ops): Derive from
12702 ravenscar_arch_ops.
12703 (ppc_ravenscar_powerpc_ops::fetch_registers)
12704 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
12705 (ppc_ravenscar_powerpc_ops): Redefine.
12706 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
12707 (ppc_ravenscar_e500_ops::fetch_registers)
12708 (ppc_ravenscar_e500_ops::store_registers): Now methods.
12709 (ppc_ravenscar_e500_ops): Redefine.
12710 * aarch64-ravenscar-thread.c
12711 (aarch64_ravenscar_generic_prepare_to_store): Remove.
12712 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
12713 (aarch64_ravenscar_fetch_registers)
12714 (aarch64_ravenscar_store_registers): Now methods.
12715 (aarch64_ravenscar_ops): Redefine.
12716
12717 2019-02-15 Tom Tromey <tromey@adacore.com>
12718
12719 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
12720 (ravenscar_thread_target::stopped_by_hw_breakpoint)
12721 (ravenscar_thread_target::stopped_by_watchpoint)
12722 (ravenscar_thread_target::stopped_data_address)
12723 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
12724
12725 2019-02-15 Tom Tromey <tromey@adacore.com>
12726
12727 * ravenscar-thread.c: Fix some typos.
12728
12729 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12730 Tom Tromey <tromey@adacore.com>
12731
12732 * ada-lang.c (ada_exception_sal): Change addr_string to a
12733 std::string.
12734 (create_ada_exception_catchpoint): Update.
12735
12736 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12737 Tom Tromey <tromey@adacore.com>
12738
12739 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
12740 (bp_location_ops): Remove.
12741 (base_breakpoint_allocate_location): Update.
12742 (free_bp_location): Update.
12743 * ada-lang.c (class ada_catchpoint_location)
12744 <ada_catchpoint_location>: Remove ops parameter.
12745 (ada_catchpoint_location_dtor): Remove.
12746 (ada_catchpoint_location_ops): Remove.
12747 (allocate_location_exception): Update.
12748 * breakpoint.h (struct bp_location_ops): Remove.
12749 (class bp_location) <bp_location>: Remove bp_location_ops
12750 parameter.
12751 <~bp_location>: Add destructor.
12752 <ops>: Remove.
12753
12754 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
12755 Pedro Alves <palves@redhat.com>
12756
12757 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
12758 'PATH_MAX'.
12759
12760 2019-02-14 David Michael <fedora.dm0@gmail.com>
12761 Samuel Thibault <samuel.thibault@gnu.org>
12762 Thomas Schwinge <thomas@codesourcery.com>
12763
12764 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
12765 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
12766
12767 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
12768
12769 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
12770 (check_empty): Use "const char *".
12771
12772 * gnu-nat.c (gnu_nat_target::detach): Instead of
12773 'detach_inferior (pid)' call
12774 'detach_inferior (find_inferior_pid (pid))'.
12775
12776 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
12777 'nat/fork-inferior.o'.
12778 * gnu-nat.c: #include "nat/fork-inferior.h".
12779
12780 * gnu-nat.c (gnu_nat_target::detach): Instead of
12781 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
12782 * gnu-nat.h: #include "inf-child.h".
12783 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
12784 'i386_gnu_nat_target::fetch_registers'.
12785 (gnu_store_registers): Rename/move to
12786 'i386_gnu_nat_target::store_registers'.
12787
12788 * config/i386/nm-i386gnu.h: Don't "#include" any files.
12789 * gnu-nat.h (mach_thread_info): New function.
12790 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
12791
12792 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
12793
12794 2019-02-14 Frederic Konrad <konrad@adacore.com>
12795
12796 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
12797
12798 2019-02-14 Joel Brobecker <brobecker@adacore.com>
12799
12800 * windows-nat.c (windows_add_thread): Add new parameter
12801 "main_thread_p" with default value set to false. Update
12802 function documentation as well as all callers.
12803 (windows_delete_thread): Likewise.
12804 (fake_create_process): Update call to windows_add_thread.
12805 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
12806 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
12807 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
12808 call to windows_delete_thread.
12809
12810 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
12811
12812 * MAINTAINERS: Add Andrew Burgess as global maintainer.
12813
12814 2019-02-12 John Baldwin <jhb@FreeBSD.org>
12815
12816 * symfile.c (find_separate_debug_file): Use canonical path of
12817 sysroot with child_path instead of gdb_sysroot if it is valid.
12818
12819 2019-02-12 John Baldwin <jhb@FreeBSD.org>
12820
12821 * symfile.c (find_separate_debug_file): Use child_path to
12822 determine if an object file is under a sysroot.
12823
12824 2019-02-12 John Baldwin <jhb@FreeBSD.org>
12825
12826 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12827 unittests/child-path-selftests.c.
12828 * common/pathstuff.c (child_path): New function.
12829 * common/pathstuff.h (child_path): New prototype.
12830 * unittests/child-path-selftests.c: New file.
12831
12832 2019-02-12 John Baldwin <jhb@FreeBSD.org>
12833
12834 * symfile.c (find_separate_debug_file): Look for separate debug
12835 files in debug directories under the sysroot.
12836
12837 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12838
12839 * symtab.h (struct minimal_symbol data_p): New const method.
12840 (struct minimal_symbol text_p): Likewise.
12841 * symtab.c (output_source_filename): Use file name style
12842 to print file name.
12843 (print_symbol_info): Likewise.
12844 (print_msymbol_info): Use address style to print addresses.
12845 Use function name style to print executable text symbols.
12846 (expand_symtab_containing_pc): Use data_p.
12847 (find_pc_sect_compunit_symtab): Likewise.
12848
12849 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12850
12851 * breakpoint.c (describe_other_breakpoints): Use address style
12852 to print addresses.
12853 (say_where): Likewise.
12854
12855 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12856
12857 * ada-typeprint.c (print_func_type): Print function name
12858 style to print function name.
12859 * c-typeprint.c (c_print_type_1): Likewise.
12860
12861 2019-02-11 Alan Hayward <alan.hayward@arm.com>
12862
12863 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
12864 for execve.
12865
12866 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12867
12868 * c-exp.y (direct_abs_decl): Use emplace_back to record the
12869 type_stack.
12870
12871 2019-02-10 Joel Brobecker <brobecker@adacore.com>
12872
12873 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
12874 TYPE_CODE_REF types.
12875
12876 2019-02-08 Jim Wilson <jimw@sifive.com>
12877
12878 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
12879 (riscv_linux_fregset): New.
12880 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
12881
12882 2019-02-07 Tom Tromey <tom@tromey.com>
12883
12884 * thread.c (thread_cancel_execution_command): Update.
12885 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
12886 methods.
12887 (struct thread_fsm_ops): Remove.
12888 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
12889 (thread_fsm_should_stop, thread_fsm_return_value)
12890 (thread_fsm_set_finished, thread_fsm_finished_p)
12891 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
12892 Don't declare.
12893 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
12894 * infrun.c (clear_proceed_status_thread)
12895 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
12896 (print_stop_event): Update.
12897 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
12898 Add constructor.
12899 (step_command_fsm_ops): Remove.
12900 (new_step_command_fsm): Remove.
12901 (step_1): Update.
12902 (step_command_fsm::should_stop): Rename from
12903 step_command_fsm_should_stop.
12904 (step_command_fsm::clean_up): Rename from
12905 step_command_fsm_clean_up.
12906 (step_command_fsm::do_async_reply_reason): Rename from
12907 step_command_fsm_async_reply_reason.
12908 (struct until_next_fsm): Inherit from thread_fsm. Add
12909 constructor.
12910 (until_next_fsm_ops): Remove.
12911 (new_until_next_fsm): Remove.
12912 (until_next_fsm::should_stop): Rename from
12913 until_next_fsm_should_stop.
12914 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
12915 (until_next_fsm::do_async_reply_reason): Rename from
12916 until_next_fsm_async_reply_reason.
12917 (struct finish_command_fsm): Inherit from thread_fsm. Add
12918 constructor. Change type of breakpoint.
12919 (finish_command_fsm_ops): Remove.
12920 (new_finish_command_fsm): Remove.
12921 (finish_command_fsm::should_stop): Rename from
12922 finish_command_fsm_should_stop.
12923 (finish_command_fsm::clean_up): Rename from
12924 finish_command_fsm_clean_up.
12925 (finish_command_fsm::return_value): Rename from
12926 finish_command_fsm_return_value.
12927 (finish_command_fsm::do_async_reply_reason): Rename from
12928 finish_command_fsm_async_reply_reason.
12929 (finish_command): Update.
12930 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
12931 Add constructor.
12932 (call_thread_fsm_ops): Remove.
12933 (call_thread_fsm::call_thread_fsm): Rename from
12934 new_call_thread_fsm.
12935 (call_thread_fsm::should_stop): Rename from
12936 call_thread_fsm_should_stop.
12937 (call_thread_fsm::should_notify_stop): Rename from
12938 call_thread_fsm_should_notify_stop.
12939 (run_inferior_call, call_function_by_hand_dummy): Update.
12940 * cli/cli-interp.c (should_print_stop_to_console): Update.
12941 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
12942 Add constructor. Change type of location_breakpoint,
12943 caller_breakpoint.
12944 (until_break_fsm_ops): Remove.
12945 (new_until_break_fsm): Remove.
12946 (until_break_fsm::should_stop): Rename from
12947 until_break_fsm_should_stop.
12948 (until_break_fsm::clean_up): Rename from
12949 until_break_fsm_clean_up.
12950 (until_break_fsm::do_async_reply_reason): Rename from
12951 until_break_fsm_async_reply_reason.
12952 (until_break_command): Update.
12953 * thread-fsm.c: Remove.
12954 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
12955
12956 2019-02-07 Tom Tromey <tom@tromey.com>
12957
12958 * yy-remap.h: Add include guard.
12959 * xtensa-tdep.h: Add include guard.
12960 * xcoffread.h: Rename include guard.
12961 * varobj-iter.h: Add include guard.
12962 * tui/tui.h: Rename include guard.
12963 * tui/tui-winsource.h: Rename include guard.
12964 * tui/tui-wingeneral.h: Rename include guard.
12965 * tui/tui-windata.h: Rename include guard.
12966 * tui/tui-win.h: Rename include guard.
12967 * tui/tui-stack.h: Rename include guard.
12968 * tui/tui-source.h: Rename include guard.
12969 * tui/tui-regs.h: Rename include guard.
12970 * tui/tui-out.h: Rename include guard.
12971 * tui/tui-layout.h: Rename include guard.
12972 * tui/tui-io.h: Rename include guard.
12973 * tui/tui-hooks.h: Rename include guard.
12974 * tui/tui-file.h: Rename include guard.
12975 * tui/tui-disasm.h: Rename include guard.
12976 * tui/tui-data.h: Rename include guard.
12977 * tui/tui-command.h: Rename include guard.
12978 * tic6x-tdep.h: Add include guard.
12979 * target/waitstatus.h: Rename include guard.
12980 * target/wait.h: Rename include guard.
12981 * target/target.h: Rename include guard.
12982 * target/resume.h: Rename include guard.
12983 * target-float.h: Rename include guard.
12984 * stabsread.h: Add include guard.
12985 * rs6000-tdep.h: Add include guard.
12986 * riscv-fbsd-tdep.h: Add include guard.
12987 * regformats/regdef.h: Rename include guard.
12988 * record.h: Rename include guard.
12989 * python/python.h: Rename include guard.
12990 * python/python-internal.h: Rename include guard.
12991 * python/py-stopevent.h: Rename include guard.
12992 * python/py-ref.h: Rename include guard.
12993 * python/py-record.h: Rename include guard.
12994 * python/py-record-full.h: Rename include guard.
12995 * python/py-record-btrace.h: Rename include guard.
12996 * python/py-instruction.h: Rename include guard.
12997 * python/py-events.h: Rename include guard.
12998 * python/py-event.h: Rename include guard.
12999 * procfs.h: Add include guard.
13000 * proc-utils.h: Add include guard.
13001 * p-lang.h: Add include guard.
13002 * or1k-tdep.h: Rename include guard.
13003 * observable.h: Rename include guard.
13004 * nto-tdep.h: Rename include guard.
13005 * nat/x86-linux.h: Rename include guard.
13006 * nat/x86-linux-dregs.h: Rename include guard.
13007 * nat/x86-gcc-cpuid.h: Add include guard.
13008 * nat/x86-dregs.h: Rename include guard.
13009 * nat/x86-cpuid.h: Rename include guard.
13010 * nat/ppc-linux.h: Rename include guard.
13011 * nat/mips-linux-watch.h: Rename include guard.
13012 * nat/linux-waitpid.h: Rename include guard.
13013 * nat/linux-ptrace.h: Rename include guard.
13014 * nat/linux-procfs.h: Rename include guard.
13015 * nat/linux-osdata.h: Rename include guard.
13016 * nat/linux-nat.h: Rename include guard.
13017 * nat/linux-namespaces.h: Rename include guard.
13018 * nat/linux-btrace.h: Rename include guard.
13019 * nat/glibc_thread_db.h: Rename include guard.
13020 * nat/gdb_thread_db.h: Rename include guard.
13021 * nat/gdb_ptrace.h: Rename include guard.
13022 * nat/fork-inferior.h: Rename include guard.
13023 * nat/amd64-linux-siginfo.h: Rename include guard.
13024 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
13025 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
13026 * nat/aarch64-linux.h: Rename include guard.
13027 * nat/aarch64-linux-hw-point.h: Rename include guard.
13028 * mn10300-tdep.h: Add include guard.
13029 * mips-linux-tdep.h: Add include guard.
13030 * mi/mi-parse.h: Rename include guard.
13031 * mi/mi-out.h: Rename include guard.
13032 * mi/mi-main.h: Rename include guard.
13033 * mi/mi-interp.h: Rename include guard.
13034 * mi/mi-getopt.h: Rename include guard.
13035 * mi/mi-console.h: Rename include guard.
13036 * mi/mi-common.h: Rename include guard.
13037 * mi/mi-cmds.h: Rename include guard.
13038 * mi/mi-cmd-break.h: Rename include guard.
13039 * m2-lang.h: Add include guard.
13040 * location.h: Rename include guard.
13041 * linux-record.h: Rename include guard.
13042 * linux-nat.h: Add include guard.
13043 * linux-fork.h: Add include guard.
13044 * i386-darwin-tdep.h: Rename include guard.
13045 * hppa-linux-offsets.h: Add include guard.
13046 * guile/guile.h: Rename include guard.
13047 * guile/guile-internal.h: Rename include guard.
13048 * gnu-nat.h: Rename include guard.
13049 * gdb-stabs.h: Rename include guard.
13050 * frv-tdep.h: Add include guard.
13051 * f-lang.h: Add include guard.
13052 * event-loop.h: Add include guard.
13053 * darwin-nat.h: Rename include guard.
13054 * cp-abi.h: Rename include guard.
13055 * config/sparc/nm-sol2.h: Rename include guard.
13056 * config/nm-nto.h: Rename include guard.
13057 * config/nm-linux.h: Add include guard.
13058 * config/i386/nm-i386gnu.h: Rename include guard.
13059 * config/djgpp/nl_types.h: Rename include guard.
13060 * config/djgpp/langinfo.h: Rename include guard.
13061 * compile/gcc-cp-plugin.h: Add include guard.
13062 * compile/gcc-c-plugin.h: Add include guard.
13063 * compile/compile.h: Rename include guard.
13064 * compile/compile-object-run.h: Rename include guard.
13065 * compile/compile-object-load.h: Rename include guard.
13066 * compile/compile-internal.h: Rename include guard.
13067 * compile/compile-cplus.h: Rename include guard.
13068 * compile/compile-c.h: Rename include guard.
13069 * common/xml-utils.h: Rename include guard.
13070 * common/x86-xstate.h: Rename include guard.
13071 * common/version.h: Rename include guard.
13072 * common/vec.h: Rename include guard.
13073 * common/tdesc.h: Rename include guard.
13074 * common/selftest.h: Rename include guard.
13075 * common/scoped_restore.h: Rename include guard.
13076 * common/scoped_mmap.h: Rename include guard.
13077 * common/scoped_fd.h: Rename include guard.
13078 * common/safe-iterator.h: Rename include guard.
13079 * common/run-time-clock.h: Rename include guard.
13080 * common/refcounted-object.h: Rename include guard.
13081 * common/queue.h: Rename include guard.
13082 * common/ptid.h: Rename include guard.
13083 * common/print-utils.h: Rename include guard.
13084 * common/preprocessor.h: Rename include guard.
13085 * common/pathstuff.h: Rename include guard.
13086 * common/observable.h: Rename include guard.
13087 * common/netstuff.h: Rename include guard.
13088 * common/job-control.h: Rename include guard.
13089 * common/host-defs.h: Rename include guard.
13090 * common/gdb_wait.h: Rename include guard.
13091 * common/gdb_vecs.h: Rename include guard.
13092 * common/gdb_unlinker.h: Rename include guard.
13093 * common/gdb_unique_ptr.h: Rename include guard.
13094 * common/gdb_tilde_expand.h: Rename include guard.
13095 * common/gdb_sys_time.h: Rename include guard.
13096 * common/gdb_string_view.h: Rename include guard.
13097 * common/gdb_splay_tree.h: Rename include guard.
13098 * common/gdb_setjmp.h: Rename include guard.
13099 * common/gdb_ref_ptr.h: Rename include guard.
13100 * common/gdb_optional.h: Rename include guard.
13101 * common/gdb_locale.h: Rename include guard.
13102 * common/gdb_assert.h: Rename include guard.
13103 * common/filtered-iterator.h: Rename include guard.
13104 * common/filestuff.h: Rename include guard.
13105 * common/fileio.h: Rename include guard.
13106 * common/environ.h: Rename include guard.
13107 * common/common-utils.h: Rename include guard.
13108 * common/common-types.h: Rename include guard.
13109 * common/common-regcache.h: Rename include guard.
13110 * common/common-inferior.h: Rename include guard.
13111 * common/common-gdbthread.h: Rename include guard.
13112 * common/common-exceptions.h: Rename include guard.
13113 * common/common-defs.h: Rename include guard.
13114 * common/common-debug.h: Rename include guard.
13115 * common/cleanups.h: Rename include guard.
13116 * common/buffer.h: Rename include guard.
13117 * common/btrace-common.h: Rename include guard.
13118 * common/break-common.h: Rename include guard.
13119 * cli/cli-utils.h: Rename include guard.
13120 * cli/cli-style.h: Rename include guard.
13121 * cli/cli-setshow.h: Rename include guard.
13122 * cli/cli-script.h: Rename include guard.
13123 * cli/cli-interp.h: Rename include guard.
13124 * cli/cli-decode.h: Rename include guard.
13125 * cli/cli-cmds.h: Rename include guard.
13126 * charset-list.h: Add include guard.
13127 * buildsym-legacy.h: Rename include guard.
13128 * bfin-tdep.h: Add include guard.
13129 * ax.h: Rename include guard.
13130 * arm-linux-tdep.h: Add include guard.
13131 * arm-fbsd-tdep.h: Add include guard.
13132 * arch/xtensa.h: Rename include guard.
13133 * arch/tic6x.h: Add include guard.
13134 * arch/i386.h: Add include guard.
13135 * arch/arm.h: Rename include guard.
13136 * arch/arm-linux.h: Rename include guard.
13137 * arch/arm-get-next-pcs.h: Rename include guard.
13138 * arch/amd64.h: Add include guard.
13139 * arch/aarch64-insn.h: Rename include guard.
13140 * arch-utils.h: Rename include guard.
13141 * annotate.h: Add include guard.
13142 * amd64-darwin-tdep.h: Rename include guard.
13143 * aarch64-linux-tdep.h: Add include guard.
13144 * aarch64-fbsd-tdep.h: Add include guard.
13145 * aarch32-linux-nat.h: Add include guard.
13146
13147 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13148
13149 * macrotab.c (macro_define_internal): New function that
13150 factorizes macro_define_object_internal and macro_define_function
13151 code.
13152 (macro_define_object_internal): Use macro_define_internal.
13153 (macro_define_function): Likewise.
13154
13155 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13156
13157 * macrocmd.c (extract_identifier): Return
13158 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
13159 callers.
13160
13161 2019-02-06 John Baldwin <jhb@FreeBSD.org>
13162
13163 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
13164
13165 2019-02-05 Tom Tromey <tom@tromey.com>
13166
13167 * target.c (target_stack::unpush): Move assertion earlier.
13168
13169 2019-01-30 Tom Tromey <tom@tromey.com>
13170
13171 PR python/23615:
13172 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
13173 (gdbpy_parse_and_eval): Likewise.
13174 * python/python-internal.h (gdbpy_allow_threads): New class.
13175
13176 2019-01-28 John Baldwin <jhb@FreeBSD.org>
13177
13178 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
13179 (aarch64_fbsd_fpregmap): Move earlier.
13180 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
13181 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
13182 instead of individual calls to trad_frame_set_reg_addr.
13183 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
13184 earlier.
13185 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
13186 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
13187 instead of individual calls to trad_frame_set_reg_addr.
13188
13189 2019-01-28 Alan Hayward <alan.hayward@arm.com>
13190
13191 * CONTRIBUTE: Replace contribution list with wiki link.
13192
13193 2019-01-25 Tom Tromey <tom@tromey.com>
13194
13195 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
13196
13197 2019-01-25 Tom Tromey <tom@tromey.com>
13198
13199 * xtensa-linux-nat.c: Fix common/ includes.
13200 * xml-support.h: Fix common/ includes.
13201 * xml-support.c: Fix common/ includes.
13202 * x86-linux-nat.c: Fix common/ includes.
13203 * windows-nat.c: Fix common/ includes.
13204 * varobj.h: Fix common/ includes.
13205 * varobj.c: Fix common/ includes.
13206 * value.c: Fix common/ includes.
13207 * valops.c: Fix common/ includes.
13208 * utils.c: Fix common/ includes.
13209 * unittests/xml-utils-selftests.c: Fix common/ includes.
13210 * unittests/utils-selftests.c: Fix common/ includes.
13211 * unittests/unpack-selftests.c: Fix common/ includes.
13212 * unittests/tracepoint-selftests.c: Fix common/ includes.
13213 * unittests/style-selftests.c: Fix common/ includes.
13214 * unittests/string_view-selftests.c: Fix common/ includes.
13215 * unittests/scoped_restore-selftests.c: Fix common/ includes.
13216 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
13217 * unittests/scoped_fd-selftests.c: Fix common/ includes.
13218 * unittests/rsp-low-selftests.c: Fix common/ includes.
13219 * unittests/parse-connection-spec-selftests.c: Fix common/
13220 includes.
13221 * unittests/optional-selftests.c: Fix common/ includes.
13222 * unittests/offset-type-selftests.c: Fix common/ includes.
13223 * unittests/observable-selftests.c: Fix common/ includes.
13224 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
13225 * unittests/memrange-selftests.c: Fix common/ includes.
13226 * unittests/memory-map-selftests.c: Fix common/ includes.
13227 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
13228 * unittests/function-view-selftests.c: Fix common/ includes.
13229 * unittests/environ-selftests.c: Fix common/ includes.
13230 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
13231 * unittests/common-utils-selftests.c: Fix common/ includes.
13232 * unittests/cli-utils-selftests.c: Fix common/ includes.
13233 * unittests/array-view-selftests.c: Fix common/ includes.
13234 * ui-file.c: Fix common/ includes.
13235 * tui/tui-io.c: Fix common/ includes.
13236 * tracepoint.h: Fix common/ includes.
13237 * tracepoint.c: Fix common/ includes.
13238 * tracefile-tfile.c: Fix common/ includes.
13239 * top.h: Fix common/ includes.
13240 * top.c: Fix common/ includes.
13241 * thread.c: Fix common/ includes.
13242 * target/waitstatus.h: Fix common/ includes.
13243 * target/waitstatus.c: Fix common/ includes.
13244 * target.h: Fix common/ includes.
13245 * target.c: Fix common/ includes.
13246 * target-memory.c: Fix common/ includes.
13247 * target-descriptions.c: Fix common/ includes.
13248 * symtab.h: Fix common/ includes.
13249 * symfile.c: Fix common/ includes.
13250 * stap-probe.c: Fix common/ includes.
13251 * spu-linux-nat.c: Fix common/ includes.
13252 * sparc-nat.c: Fix common/ includes.
13253 * source.c: Fix common/ includes.
13254 * solib.c: Fix common/ includes.
13255 * solib-target.c: Fix common/ includes.
13256 * ser-unix.c: Fix common/ includes.
13257 * ser-tcp.c: Fix common/ includes.
13258 * ser-pipe.c: Fix common/ includes.
13259 * ser-base.c: Fix common/ includes.
13260 * selftest-arch.c: Fix common/ includes.
13261 * s12z-tdep.c: Fix common/ includes.
13262 * rust-exp.y: Fix common/ includes.
13263 * rs6000-aix-tdep.c: Fix common/ includes.
13264 * riscv-tdep.c: Fix common/ includes.
13265 * remote.c: Fix common/ includes.
13266 * remote-notif.h: Fix common/ includes.
13267 * remote-fileio.h: Fix common/ includes.
13268 * remote-fileio.c: Fix common/ includes.
13269 * regcache.h: Fix common/ includes.
13270 * regcache.c: Fix common/ includes.
13271 * record-btrace.c: Fix common/ includes.
13272 * python/python.c: Fix common/ includes.
13273 * python/py-type.c: Fix common/ includes.
13274 * python/py-inferior.c: Fix common/ includes.
13275 * progspace.h: Fix common/ includes.
13276 * producer.c: Fix common/ includes.
13277 * procfs.c: Fix common/ includes.
13278 * proc-api.c: Fix common/ includes.
13279 * printcmd.c: Fix common/ includes.
13280 * ppc-linux-nat.c: Fix common/ includes.
13281 * parser-defs.h: Fix common/ includes.
13282 * osdata.c: Fix common/ includes.
13283 * obsd-nat.c: Fix common/ includes.
13284 * nat/x86-linux.c: Fix common/ includes.
13285 * nat/x86-linux-dregs.c: Fix common/ includes.
13286 * nat/x86-dregs.h: Fix common/ includes.
13287 * nat/x86-dregs.c: Fix common/ includes.
13288 * nat/ppc-linux.c: Fix common/ includes.
13289 * nat/mips-linux-watch.h: Fix common/ includes.
13290 * nat/mips-linux-watch.c: Fix common/ includes.
13291 * nat/linux-waitpid.c: Fix common/ includes.
13292 * nat/linux-ptrace.h: Fix common/ includes.
13293 * nat/linux-ptrace.c: Fix common/ includes.
13294 * nat/linux-procfs.c: Fix common/ includes.
13295 * nat/linux-personality.c: Fix common/ includes.
13296 * nat/linux-osdata.c: Fix common/ includes.
13297 * nat/linux-namespaces.c: Fix common/ includes.
13298 * nat/linux-btrace.h: Fix common/ includes.
13299 * nat/linux-btrace.c: Fix common/ includes.
13300 * nat/fork-inferior.c: Fix common/ includes.
13301 * nat/amd64-linux-siginfo.c: Fix common/ includes.
13302 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
13303 * nat/aarch64-linux.c: Fix common/ includes.
13304 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
13305 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
13306 * namespace.h: Fix common/ includes.
13307 * mips-linux-tdep.c: Fix common/ includes.
13308 * minsyms.c: Fix common/ includes.
13309 * mi/mi-parse.h: Fix common/ includes.
13310 * mi/mi-main.c: Fix common/ includes.
13311 * mi/mi-cmd-env.c: Fix common/ includes.
13312 * memrange.h: Fix common/ includes.
13313 * memattr.c: Fix common/ includes.
13314 * maint.h: Fix common/ includes.
13315 * maint.c: Fix common/ includes.
13316 * main.c: Fix common/ includes.
13317 * machoread.c: Fix common/ includes.
13318 * location.c: Fix common/ includes.
13319 * linux-thread-db.c: Fix common/ includes.
13320 * linux-nat.c: Fix common/ includes.
13321 * linux-fork.c: Fix common/ includes.
13322 * inline-frame.c: Fix common/ includes.
13323 * infrun.c: Fix common/ includes.
13324 * inflow.c: Fix common/ includes.
13325 * inferior.h: Fix common/ includes.
13326 * inferior.c: Fix common/ includes.
13327 * infcmd.c: Fix common/ includes.
13328 * inf-ptrace.c: Fix common/ includes.
13329 * inf-child.c: Fix common/ includes.
13330 * ia64-linux-nat.c: Fix common/ includes.
13331 * i387-tdep.c: Fix common/ includes.
13332 * i386-tdep.c: Fix common/ includes.
13333 * i386-linux-tdep.c: Fix common/ includes.
13334 * i386-linux-nat.c: Fix common/ includes.
13335 * i386-go32-tdep.c: Fix common/ includes.
13336 * i386-fbsd-tdep.c: Fix common/ includes.
13337 * i386-fbsd-nat.c: Fix common/ includes.
13338 * guile/scm-type.c: Fix common/ includes.
13339 * guile/guile.c: Fix common/ includes.
13340 * go32-nat.c: Fix common/ includes.
13341 * gnu-nat.c: Fix common/ includes.
13342 * gdbthread.h: Fix common/ includes.
13343 * gdbarch-selftests.c: Fix common/ includes.
13344 * gdb_usleep.c: Fix common/ includes.
13345 * gdb_select.h: Fix common/ includes.
13346 * gdb_bfd.c: Fix common/ includes.
13347 * gcore.c: Fix common/ includes.
13348 * fork-child.c: Fix common/ includes.
13349 * findvar.c: Fix common/ includes.
13350 * fbsd-nat.c: Fix common/ includes.
13351 * event-top.c: Fix common/ includes.
13352 * event-loop.c: Fix common/ includes.
13353 * dwarf2read.c: Fix common/ includes.
13354 * dwarf2loc.c: Fix common/ includes.
13355 * dwarf2-frame.c: Fix common/ includes.
13356 * dwarf-index-cache.c: Fix common/ includes.
13357 * dtrace-probe.c: Fix common/ includes.
13358 * disasm-selftests.c: Fix common/ includes.
13359 * defs.h: Fix common/ includes.
13360 * csky-tdep.c: Fix common/ includes.
13361 * cp-valprint.c: Fix common/ includes.
13362 * cp-support.h: Fix common/ includes.
13363 * cp-support.c: Fix common/ includes.
13364 * corelow.c: Fix common/ includes.
13365 * completer.h: Fix common/ includes.
13366 * completer.c: Fix common/ includes.
13367 * compile/compile.c: Fix common/ includes.
13368 * compile/compile-loc2c.c: Fix common/ includes.
13369 * compile/compile-cplus-types.c: Fix common/ includes.
13370 * compile/compile-cplus-symbols.c: Fix common/ includes.
13371 * command.h: Fix common/ includes.
13372 * cli/cli-dump.c: Fix common/ includes.
13373 * cli/cli-cmds.c: Fix common/ includes.
13374 * charset.c: Fix common/ includes.
13375 * build-id.c: Fix common/ includes.
13376 * btrace.h: Fix common/ includes.
13377 * btrace.c: Fix common/ includes.
13378 * breakpoint.h: Fix common/ includes.
13379 * breakpoint.c: Fix common/ includes.
13380 * ax.h:
13381 (enum agent_op): Fix common/ includes.
13382 * ax-general.c (struct aop_map): Fix common/ includes.
13383 * ax-gdb.c: Fix common/ includes.
13384 * auxv.c: Fix common/ includes.
13385 * auto-load.c: Fix common/ includes.
13386 * arm-tdep.c: Fix common/ includes.
13387 * arch/riscv.c: Fix common/ includes.
13388 * arch/ppc-linux-common.c: Fix common/ includes.
13389 * arch/i386.c: Fix common/ includes.
13390 * arch/arm.c: Fix common/ includes.
13391 * arch/arm-linux.c: Fix common/ includes.
13392 * arch/arm-get-next-pcs.c: Fix common/ includes.
13393 * arch/amd64.c: Fix common/ includes.
13394 * arch/aarch64.c: Fix common/ includes.
13395 * arch/aarch64-insn.c: Fix common/ includes.
13396 * arch-utils.c: Fix common/ includes.
13397 * amd64-windows-tdep.c: Fix common/ includes.
13398 * amd64-tdep.c: Fix common/ includes.
13399 * amd64-sol2-tdep.c: Fix common/ includes.
13400 * amd64-obsd-tdep.c: Fix common/ includes.
13401 * amd64-nbsd-tdep.c: Fix common/ includes.
13402 * amd64-linux-tdep.c: Fix common/ includes.
13403 * amd64-linux-nat.c: Fix common/ includes.
13404 * amd64-fbsd-tdep.c: Fix common/ includes.
13405 * amd64-fbsd-nat.c: Fix common/ includes.
13406 * amd64-dicos-tdep.c: Fix common/ includes.
13407 * amd64-darwin-tdep.c: Fix common/ includes.
13408 * agent.c: Fix common/ includes.
13409 * ada-lang.h: Fix common/ includes.
13410 * ada-lang.c: Fix common/ includes.
13411 * aarch64-tdep.c: Fix common/ includes.
13412
13413 2019-01-25 Tom Tromey <tom@tromey.com>
13414
13415 * common/create-version.sh: Use common/version.h.
13416
13417 2019-01-24 Pedro Alves <palves@redhat.com>
13418
13419 * infrun.c (signal_stop, signal_print, signal_program)
13420 (signal_catch, signal_pass): Now arrays instead of pointers.
13421 (update_signals_program_target, do_target_resume)
13422 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
13423 * linux-nat.c (linux_nat_target::pass_signals)
13424 (linux_nat_target::create_inferior, linux_nat_target::attach):
13425 Adjust.
13426 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
13427 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
13428 * procfs.c (procfs_target::pass_signals): Adjust.
13429 * record-full.c (record_full_target::resume): Adjust.
13430 * remote.c (remote_target::pass_signals)
13431 (remote_target::program_signals): Adjust.
13432 * target-debug.h (target_debug_print_signals): Now takes a
13433 gdb::array_view as parameter. Adjust.
13434 * target.h (target_ops) <pass_signals, program_signals>: Replace
13435 pointer and length parameters with gdb::array_view.
13436 (target_pass_signals, target_program_signals): Likewise.
13437 * target-delegates.c: Regenerate.
13438
13439 2019-01-24 Pedro Alves <palves@redhat.com>
13440
13441 * common/forward-scope-exit.h
13442 (forward_scope_exit::forward_scope_exit): Pass arguments to
13443 m_bind_function directly, instead of creating a std::bind and
13444 copying that.
13445
13446 2019-01-24 Alan Hayward <alan.hayward@arm.com>
13447
13448 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
13449 for static members.
13450 (pass_in_v_vfp_candidate): Likewise.
13451
13452 2019-01-23 Tom Tromey <tom@tromey.com>
13453 Pedro Alves <palves@redhat.com>
13454
13455 * regcache.c (class regcache_invalidator): Remove.
13456 (regcache::raw_write): Use make_scope_exit.
13457
13458 2019-01-23 Tom Tromey <tom@tromey.com>
13459
13460 * ui-out.h (class ui_out_emit_type): Update comment.
13461
13462 2019-01-23 Tom Tromey <tom@tromey.com>
13463
13464 * infrun.c (fetch_inferior_event): Update comment.
13465
13466 2019-01-23 Tom Tromey <tom@tromey.com>
13467 Pedro Alves <palves@redhat.com>
13468
13469 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
13470 parameter.
13471 (fetch_inferior_event): Use SCOPE_EXIT.
13472
13473
13474 2019-01-23 Tom Tromey <tom@tromey.com>
13475 Pedro Alves <palves@redhat.com>
13476
13477 * infrun.c (disable_thread_events): Delete.
13478 (stop_all_threads): Use SCOPE_EXIT.
13479
13480 2019-01-23 Tom Tromey <tom@tromey.com>
13481 Pedro Alves <palves@redhat.com>
13482
13483 * symfile.c: Include forward-scope-exit.h.
13484 (clear_symtab_users_cleanup): Replace forward declaration with
13485 a FORWARD_SCOPE_EXIT.
13486 (syms_from_objfile_1): Use the forward_scope_exit and
13487 gdb::optional instead of cleanup_function.
13488 (reread_symbols): Use the forward_scope_exit instead of
13489 cleanup_function.
13490 (clear_symtab_users_cleanup): Remove function.
13491
13492 2019-01-23 Tom Tromey <tom@tromey.com>
13493 Pedro Alves <palves@redhat.com>
13494
13495 * linux-nat.c: Include scope-exit.h.
13496 (cleanup_target_stop): Remove.
13497 (linux_nat_target::static_tracepoint_markers_by_strid): Use
13498 SCOPE_EXIT.
13499
13500 2019-01-23 Tom Tromey <tom@tromey.com>
13501 Pedro Alves <palves@redhat.com>
13502
13503 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
13504 (call_function_by_hand_dummy): Use SCOPE_EXIT.
13505
13506 2019-01-23 Tom Tromey <tom@tromey.com>
13507 Andrew Burgess <andrew.burgess@embecosm.com>
13508 Pedro Alves <palves@redhat.com>
13509
13510 * infrun.c (fetch_inferior_event): Use scope_exit.
13511 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
13512 * top.c (execute_command): Use scope_exit.
13513 * breakpoint.c (bpstat_do_actions): Use scope_exit.
13514 * utils.c (do_bpstat_clear_actions_cleanup)
13515 (make_bpstat_clear_actions_cleanup): Remove.
13516
13517 2019-01-23 Tom Tromey <tom@tromey.com>
13518 Pedro Alves <palves@redhat.com>
13519
13520 * infrun.c: Include "common/scope-exit.h"
13521 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
13522 (wait_for_inferior): Use SCOPE_EXIT.
13523 (fetch_inferior_event): Use scope_exit.
13524
13525 2019-01-23 Tom Tromey <tom@tromey.com>
13526 Pedro Alves <palves@redhat.com>
13527
13528 * breakpoint.c (create_breakpoint): Remove cleanup.
13529
13530 2019-01-23 Tom Tromey <tom@tromey.com>
13531 Andrew Burgess <andrew.burgess@embecosm.com>
13532 Pedro Alves <palves@redhat.com>
13533
13534 2019-01-23 Pedro Alves <palves@redhat.com>
13535
13536 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
13537
13538 2019-01-23 Pedro Alves <palves@redhat.com>
13539 Andrew Burgess <andrew.burgess@embecosm.com>
13540
13541 * gdbthread.h: Include "common/forward-scope-exit.h".
13542 (scoped_finish_thread_state): Redefine custom class in terms of
13543 forward_scope_exit.
13544
13545 2019-01-23 Pedro Alves <palves@redhat.com>
13546 Andrew Burgess <andrew.burgess@embecosm.com>
13547
13548 * common/forward-scope-exit.h: New file.
13549
13550 2019-01-23 Pedro Alves <palves@redhat.com>
13551 Andrew Burgess <andrew.burgess@embecosm.com>
13552 Tom Tromey <tom@tromey.com>
13553
13554 * common/scope-exit.h: New file.
13555
13556 2019-01-23 Pedro Alves <palves@redhat.com>
13557
13558 * common/preprocessor.h (ESC): Rename to ...
13559 (ESC_PARENS): ... this.
13560 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
13561 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
13562
13563 2019-01-23 Tom Tromey <tom@tromey.com>
13564
13565 * language.h (class scoped_switch_to_sym_language_if_auto):
13566 Initialize m_lang in both cases.
13567
13568 2019-01-23 Alan Hayward <alan.hayward@arm.com>
13569
13570 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
13571 with XCNEW.
13572
13573 2019-01-22 Tom Tromey <tom@tromey.com>
13574
13575 * corelow.c: Do not include sys/file.h.
13576
13577 2019-01-22 Tom Tromey <tom@tromey.com>
13578
13579 * tui/tui-wingeneral.h: Include gdb_curses.h.
13580
13581 2019-01-22 Tom Tromey <tom@tromey.com>
13582
13583 * source-cache.h (class source_cache) <get_source_lines,
13584 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
13585
13586 2019-01-22 Tom Tromey <tom@tromey.com>
13587
13588 * remote-fileio.h (struct remote_target): Declare.
13589
13590 2019-01-22 Tom Tromey <tom@tromey.com>
13591
13592 * python/py-arch.c: Do not include py-ref.h.
13593 * python/py-bpevent.c: Do not include py-ref.h.
13594 * python/py-cmd.c: Do not include py-ref.h.
13595 * python/py-continueevent.c: Do not include py-ref.h.
13596 * python/py-event.h: Do not include py-ref.h.
13597 * python/py-evtregistry.c: Do not include py-ref.h.
13598 * python/py-finishbreakpoint.c: Do not include py-ref.h.
13599 * python/py-frame.c: Do not include py-ref.h.
13600 * python/py-framefilter.c: Do not include py-ref.h.
13601 * python/py-function.c: Do not include py-ref.h.
13602 * python/py-infevents.c: Do not include py-ref.h.
13603 * python/py-linetable.c: Do not include py-ref.h.
13604 * python/py-objfile.c: Do not include py-ref.h.
13605 * python/py-param.c: Do not include py-ref.h.
13606 * python/py-prettyprint.c: Do not include py-ref.h.
13607 * python/py-progspace.c: Do not include py-ref.h.
13608 * python/py-symbol.c: Do not include py-ref.h.
13609 * python/py-symtab.c: Do not include py-ref.h.
13610 * python/py-type.c: Do not include py-ref.h.
13611 * python/py-unwind.c: Do not include py-ref.h.
13612 * python/py-utils.c: Do not include py-ref.h.
13613 * python/py-value.c: Do not include py-ref.h.
13614 * python/py-varobj.c: Do not include py-ref.h.
13615 * python/py-xmethods.c: Do not include py-ref.h.
13616 * python/python.c: Do not include py-ref.h.
13617 * varobj.c: Do not include py-ref.h.
13618
13619 2019-01-22 Tom Tromey <tom@tromey.com>
13620
13621 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
13622 keyword for bcache.
13623
13624 2019-01-22 Tom Tromey <tom@tromey.com>
13625
13626 * compile/compile-cplus-types.c: Remove a comment by #include.
13627
13628 2019-01-22 Tom Tromey <tom@tromey.com>
13629
13630 * compile/gcc-c-plugin.h: Include compile-internal.h.
13631
13632 2019-01-22 Tom Tromey <tom@tromey.com>
13633
13634 * stabsread.c (EXTERN): Do not define.
13635 (symnum, next_symbol_text_func, processing_gcc_compilation)
13636 (within_function, global_sym_chain, global_stabs)
13637 (previous_stab_code, this_object_header_files)
13638 (n_this_object_header_files)
13639 (n_allocated_this_object_header_files): Define.
13640 * stabsread.h (EXTERN): Never define. Use "extern".
13641
13642 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13643
13644 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
13645 history_value.
13646
13647 2019-01-21 Tom Tromey <tom@tromey.com>
13648
13649 * ui-out.c: Fix includes.
13650 * tui/tui-source.c: Fix includes.
13651 * target.c: Fix includes.
13652 * remote.c: Fix includes.
13653 * regcache.c: Fix includes.
13654 * python/py-block.c: Fix includes.
13655 * printcmd.c: Fix includes.
13656 * or1k-tdep.c: Fix includes.
13657 * mi/mi-main.c: Fix includes.
13658 * m32r-tdep.c: Fix includes.
13659 * csky-tdep.c: Fix includes.
13660 * compile/compile-cplus-types.c: Fix includes.
13661 * cli/cli-interp.c: Fix includes.
13662
13663 2019-01-21 Alan Hayward <alan.hayward@arm.com>
13664
13665 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
13666 for padding.
13667
13668 2019-01-16 Tom Tromey <tom@tromey.com>
13669
13670 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
13671 earlier.
13672 (struct objfile) <msymbols_range>: Move from top level.
13673 <msymbols>: New method.
13674 (class objfile_msymbols): Remove.
13675 * symtab.c (default_collect_symbol_completion_matches_break_on):
13676 Update.
13677 * symmisc.c (dump_msymbols): Update.
13678 * stabsread.c (scan_file_globals): Update.
13679 * objc-lang.c (info_selectors_command, info_classes_command)
13680 (find_methods): Update.
13681 * minsyms.c (find_solib_trampoline_target): Update.
13682 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
13683 * coffread.c (coff_symfile_read): Update.
13684 * ada-lang.c (ada_lookup_simple_minsym)
13685 (ada_collect_symbol_completion_matches): Update.
13686
13687 2019-01-16 Tom Tromey <tom@tromey.com>
13688
13689 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
13690 type. Remove no-argument constructor.
13691 <iterator::operator++>: Simplify.
13692 <begin>: Update.
13693 <end>: Use minimal_symbol_count.
13694
13695 2019-01-16 Tom Tromey <tom@tromey.com>
13696
13697 * objfiles.h (struct objfile) <psymtabs>: New method.
13698 (class objfile_psymtabs): Remove.
13699 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
13700 typedef.
13701 <range>: New method.
13702 (require_partial_symbols): Change return type.
13703 * psymtab.c (require_partial_symbols)
13704 (psym_expand_symtabs_matching): Update.
13705 * mdebugread.c (parse_partial_symbols): Update.
13706 * dbxread.c (dbx_end_psymtab): Update.
13707
13708 2019-01-15 Tom Tromey <tom@tromey.com>
13709
13710 * symtab.c (lookup_objfile_from_block)
13711 (lookup_symbol_in_objfile_symtabs)
13712 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
13713 (find_line_symtab, info_sources_command)
13714 (default_collect_symbol_completion_matches_break_on)
13715 (make_source_files_completion_list): Update.
13716 * symmisc.c (print_objfile_statistics, dump_objfile)
13717 (maintenance_print_symbols, maintenance_info_symtabs)
13718 (maintenance_check_symtabs, maintenance_info_line_tables):
13719 Update.
13720 * source.c (select_source_symtab)
13721 (forget_cached_source_info_for_objfile): Update.
13722 * objfiles.h (class objfile_compunits): Remove.
13723 (struct objfile) <compunits_range>: New typedef.
13724 (compunits): New method.
13725 * objfiles.c (objfile_relocate1): Update.
13726 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
13727 * maint.c (count_symtabs_and_blocks): Update.
13728 * linespec.c (iterate_over_all_matching_symtabs): Update.
13729 * cp-support.c (add_symbol_overload_list_qualified): Update.
13730 * coffread.c (coff_symtab_read): Update.
13731 * ada-lang.c (add_nonlocal_symbols)
13732 (ada_collect_symbol_completion_matches)
13733 (ada_add_global_exceptions): Update.
13734
13735 2019-01-15 Tom Tromey <tom@tromey.com>
13736
13737 * progspace.h (program_space) <objfiles_safe_range>: New
13738 typedef.
13739 <objfiles_safe>: New method.
13740 * objfiles.h (class all_objfiles_safe): Remove.
13741 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
13742 * jit.c (jit_inferior_exit_hook): Update.
13743
13744 2019-01-17 Tom Tromey <tom@tromey.com>
13745
13746 * progspace.h (program_space) <objfiles_range>: New typedef.
13747 <objfiles>: New method.
13748 <objfiles_head>: Rename from objfiles.
13749 (object_files): Update.
13750 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
13751 * guile/scm-pretty-print.c
13752 (ppscm_find_pretty_printer_from_objfiles): Update.
13753 * guile/scm-objfile.c (gdbscm_objfiles): Update.
13754 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
13755 Update.
13756 * python/py-progspace.c (pspy_get_objfiles): Update.
13757 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
13758 Update.
13759 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
13760 (objfpy_lookup_objfile_by_build_id): Update.
13761 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
13762 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
13763 Update.
13764 * symtab.c (iterate_over_symtabs, matching_obj_sections)
13765 (expand_symtab_containing_pc, lookup_objfile_from_block)
13766 (lookup_static_symbol, basic_lookup_transparent_type)
13767 (find_pc_sect_compunit_symtab, find_symbol_at_address)
13768 (find_line_symtab, info_sources_command)
13769 (default_collect_symbol_completion_matches_break_on)
13770 (make_source_files_completion_list, find_main_name): Update.
13771 * symmisc.c (print_symbol_bcache_statistics)
13772 (print_objfile_statistics, maintenance_print_symbols)
13773 (maintenance_print_msymbols, maintenance_print_objfiles)
13774 (maintenance_info_symtabs, maintenance_check_symtabs)
13775 (maintenance_expand_symtabs, maintenance_info_line_tables):
13776 Update.
13777 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
13778 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
13779 (map_overlay_command, unmap_overlay_command)
13780 (simple_overlay_update, expand_symtabs_matching)
13781 (map_symbol_filenames): Update.
13782 * symfile-debug.c (set_debug_symfile): Update.
13783 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
13784 Update.
13785 * source.c (select_source_symtab, forget_cached_source_info):
13786 Update.
13787 * solib.c (solib_read_symbols): Update.
13788 * solib-spu.c (append_ocl_sos): Update.
13789 * psymtab.c (maintenance_print_psymbols)
13790 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
13791 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
13792 * printcmd.c (info_symbol_command): Update.
13793 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
13794 Update.
13795 * objfiles.h (class all_objfiles): Remove.
13796 * objfiles.c (have_partial_symbols, have_full_symbols)
13797 (have_minimal_symbols, qsort_cmp, update_section_map)
13798 (shared_objfile_contains_address_p)
13799 (default_iterate_over_objfiles_in_search_order): Update.
13800 * objc-lang.c (info_selectors_command, info_classes_command)
13801 (find_methods): Update.
13802 * minsyms.c (find_solib_trampoline_target): Update.
13803 * maint.c (maintenance_info_sections)
13804 (maintenance_translate_address, count_symtabs_and_blocks):
13805 Update.
13806 * main.c (captured_main_1): Update.
13807 * linux-thread-db.c (try_thread_db_load_from_pdir)
13808 (has_libpthread): Update.
13809 * linespec.c (iterate_over_all_matching_symtabs)
13810 (search_minsyms_for_name): Update.
13811 * jit.c (jit_find_objf_with_entry_addr): Update.
13812 * hppa-tdep.c (find_unwind_entry)
13813 (hppa_lookup_stub_minimal_symbol): Update.
13814 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
13815 Update.
13816 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
13817 (elf_gnu_ifunc_resolve_by_got): Update.
13818 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
13819 * dwarf-index-write.c (save_gdb_index_command): Update.
13820 * cp-support.c (add_symbol_overload_list_qualified): Update.
13821 * breakpoint.c (create_overlay_event_breakpoint)
13822 (create_longjmp_master_breakpoint)
13823 (create_std_terminate_master_breakpoint)
13824 (create_exception_master_breakpoint): Update.
13825 * blockframe.c (find_pc_partial_function): Update.
13826 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
13827 (ada_collect_symbol_completion_matches)
13828 (ada_add_global_exceptions): Update.
13829
13830 2019-01-17 Tom Tromey <tom@tromey.com>
13831
13832 * solib-target.c (lm_info_target_p): Remove typedef. Don't
13833 declare VEC.
13834 (solib_target_parse_libraries): Change return type.
13835 (library_list_start_segment, library_list_start_section)
13836 (library_list_end_library, library_list_start_library); Update.
13837 (solib_target_free_library_list): Remove.
13838 (solib_target_parse_libraries): Remove cleanup. Change return
13839 type.
13840 (solib_target_current_sos): Update.
13841
13842 2019-01-17 Tom Tromey <tromey@bapiya>
13843
13844 * valprint.c: Replace "the the" with "the".
13845 * symtab.c: Replace "the the" with "the".
13846 * solib.c: Replace "the the" with "the".
13847 * solib-dsbt.c: Replace "the the" with "the".
13848 * linespec.c: Replace "the the" with "the".
13849 * dwarf2loc.h: Replace "the the" with "the".
13850 * amd64-windows-tdep.c: Replace "the the" with "the".
13851 * aarch64-tdep.c: Replace "the the" with "the".
13852
13853 2019-01-16 Keith Seitz <keiths@redhat.com>
13854
13855 PR gdb/23773
13856 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
13857 <builder>: Rename to ..
13858 <m_builder>: ... this and make private.
13859 (dwarf2_cu::get_builder): New method. Change all users of
13860 `builder' to use this method.
13861 (dwarf2_start_symtab): Move to ...
13862 (dwarf2_cu::start_symtab): ... here. Update all callers
13863 (setup_type_unit_groups): Move to ...
13864 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
13865 callers.
13866 (dwarf2_cu::reset_builder): New method.
13867 (process_full_compunit, process_full_type_unit): Use
13868 dwarf2_cu::reset_builder.
13869 (follow_die_offset): Record the ancestor CU if it is different
13870 from the followed DIE's CU.
13871 (follow_die_sig_1): Likewise.
13872
13873 2019-01-15 Tom Tromey <tom@tromey.com>
13874
13875 * remote.c (class remote_state) <buf>: Now a char_vector.
13876 <buf_size>: Remove.
13877 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
13878 parameter.
13879 (remote_target::getpkt_or_notif_sane_1)
13880 (remote_target::getpkt_sane)
13881 (remote_target::getpkt_or_notif_sane): Likewise.
13882 (class remote_target) <putpkt>: New overload.
13883 (remote_target::read_frame): Change type of "buf_p". Remove
13884 sizeof_p parameter.
13885 (packet_ok): New overload.
13886 (packet_check_result): New overload.
13887 Update all uses.
13888
13889 2019-01-14 Tom Tromey <tom@tromey.com>
13890
13891 * remote-notif.c (handle_notification, remote_notif_ack)
13892 (remote_notif_parse): Make "buf" const.
13893 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
13894 const.
13895 (remote_notif_parse, remote_notif_ack, handle_notification):
13896 Likewise.
13897 * remote.c (remote_notif_stop_parse): Make "buf" const.
13898 (remote_target::remote_parse_stop_reply): Make "buf" const.
13899 (remote_notif_stop_ack): Make "buf" const.
13900
13901 2019-01-14 Tom Tromey <tom@tromey.com>
13902
13903 * remote.c (remote_console_output): Make parameter const.
13904
13905 2019-01-14 Tom Tromey <tom@tromey.com>
13906
13907 * target-debug.h (target_debug_print_signals): Constify.
13908 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
13909 * procfs.c (procfs_target::pass_signals): Update.
13910 * linux-nat.c (linux_nat_target::pass_signals): Update.
13911 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
13912 * target-delegates.c: Rebuild.
13913 * remote.c (remote_target::program_signals): Update.
13914 (remote_target::pass_signals): Update.
13915 * target.c (target_pass_signals): Constify argument.
13916 (target_program_signals): Likewise.
13917 * target.h (struct target_ops) <pass_signals, program_signals>:
13918 Constify argument.
13919 (target_pass_signals, target_program_signals): Constify argument.
13920
13921 2019-01-14 Tom Tromey <tom@tromey.com>
13922
13923 PR tui/28819:
13924 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
13925
13926 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
13927
13928 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
13929 field.
13930 * rs6000-tdep.c: Include reggroups.h.
13931 (IS_V_ALIAS_PSEUDOREG): Define.
13932 (rs6000_register_name): Return names for the "vX" aliases.
13933 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
13934 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
13935 aliases. Call default_register_reggroup_p for all other
13936 pseudo-registers.
13937 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
13938 New functions.
13939 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
13940 Handle "vX" aliases.
13941 (v_alias_pseudo_register_collect): New function.
13942 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
13943 (rs6000_gdbarch_init): Initialize "vX" aliases as
13944 pseudo-registers. Restore registration of
13945 rs6000_pseudo_register_reggroup_p with
13946 set_tdesc_pseudo_register_reggroup_p.
13947
13948 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
13949
13950 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
13951 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
13952 set_gdbarch_num_pseudo_regs.
13953
13954 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13955
13956 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
13957 Remove arg prefixname, add do_set and do_show.
13958 Add member functions set_list and show_list.
13959 * cli/cli-style.c (class cli_style_option): Update accordingly.
13960 (style_set_list): Move to file scope.
13961 (style_show_list): Likewise.
13962 (set_style): Call help_list.
13963 (show_style): Call cmd_show_list.
13964 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
13965 Update to use the new macro.
13966
13967 2019-10-12 Joel Brobecker <brobecker@adacore.com>
13968
13969 * ada-lang.c (_initialize_ada_language): Expand the help text
13970 for the "catch exception" command.
13971
13972 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13973
13974 * symtab.c (matching_obj_sections): Initialize obj,
13975 declare it closer to its usage.
13976
13977 2019-01-10 Tom Tromey <tom@tromey.com>
13978
13979 * thread-iter.h (inf_threads_iterator): Use next_iterator.
13980 (basic_inf_threads_range): Remove.
13981 (inf_threads_range, inf_non_exited_threads_range)
13982 (safe_inf_threads_range): Use next_adapter.
13983
13984 2019-01-10 Keith Seitz <keiths@redhat.com>
13985
13986 PR gdb/23712
13987 PR symtab/23010
13988 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
13989 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
13990
13991 2019-01-10 Keith Seitz <keiths@redhat.com>
13992
13993 PR gdb/23712
13994 PR symtab/23010
13995 * dictionary.c (pending_to_vector): Remove.
13996 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
13997 Remove _1 suffix, replacing functions of the same name. Update
13998 all callers.
13999 (dict_create_hashed, dict_create_hashed_expandable)
14000 (dict_create_linear, dict_create_linear_expandable, dict_free)
14001 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
14002 Make functions static.
14003
14004 2019-01-10 Keith Seitz <keiths@redhat.com>
14005
14006 PR gdb/23712
14007 PR symtab/23010
14008 * dictionary.h (struct dictionary): Replace declaration with
14009 multidictionary.
14010 (dict_create_hashed, dict_create_hashed_expandable)
14011 (dict_create_linear, dict_create_linear_expandable)
14012 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
14013 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
14014 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
14015 taking multidictionary argument.
14016 [ALL_DICT_SYMBOLS]: Update for multidictionary.
14017 * block.h (struct block) <dict>: Change to multidictionary
14018 and rename `multidict'.
14019 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
14020 symmisc.c: Update all dictionary references to multidictionary.
14021
14022 2019-01-10 Keith Seitz <keiths@redhat.com>
14023
14024 PR gdb/23712
14025 PR symtab/23010
14026 * dictionary.c: Include unordered_map.
14027 (pending_to_vector): New function.
14028 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
14029 Rewrite the non-"_1" functions to take vector instead
14030 of linked list.
14031 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
14032 "new" _1 versions of the same name.
14033 (multidictionary): Define.
14034 (std::hash<enum language): New definition.
14035 (collate_pending_symbols_by_language, mdict_create_hashed)
14036 (mdict_create_hashed_expandable, mdict_create_linear)
14037 (mdict_create_linear_expandable, mdict_free)
14038 (find_language_dictionary, create_new_language_dictionary)
14039 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
14040 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
14041 (mdict_size, mdict_empty): New functions.
14042 * dictionary.h (mdict_iterator): Define.
14043
14044 2019-01-10 Pedro Alves <palves@redhat.com>
14045
14046 * breakpoint.c (read_uploaded_action)
14047 (create_tracepoint_from_upload): Adjust to use
14048 gdb::unique_xmalloc_ptr.
14049 * ctf.c (ctf_write_uploaded_tp):
14050 (SET_ARRAY_FIELD): Use emplace_back.
14051 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
14052 * tracefile-tfile.c (tfile_write_uploaded_tp):
14053 * tracepoint.c (parse_tracepoint_definition): Adjust to use
14054 gdb::unique_xmalloc_ptr.
14055 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
14056 at_string, cond_string, cmd_strings>: Replace char pointers
14057 with gdb::unique_xmalloc_ptr.
14058
14059 2019-01-10 Pedro Alves <palves@redhat.com>
14060
14061 * solib-target.c (library_list_start_library): Don't xstrdup name.
14062
14063 2019-01-10 Pedro Alves <palves@redhat.com>
14064
14065 * mdebugread.c (parse_partial_symbols): Use
14066 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
14067
14068 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
14069
14070 * linux-fork.c (scoped_switch_fork_info)
14071 <~scoped_switch_fork_info>: Fix incorrect variable name.
14072
14073 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
14074
14075 * linux-fork.c (scoped_switch_fork_info)
14076 <scoped_switch_fork_info>: Make explicit.
14077 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
14078
14079 2019-01-10 Tom Tromey <tom@tromey.com>
14080
14081 * objfiles.h (objfile::reset_psymtabs): Update.
14082 * objfiles.c (objfile::objfile): Update.
14083 * psymtab.h (psymtab_storage::obstack): Update.
14084 (psymtab_storage::m_obstack): Use gdb::optional.
14085 (class psymtab_storage): Update comment. Remove objfile
14086 parameter.
14087 * psymtab.c (psymtab_storage::psymtab_storage): Update.
14088
14089 2019-01-10 Tom Tromey <tom@tromey.com>
14090
14091 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
14092 <free_psymtabs>: Now private.
14093 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
14094 (allocate_psymtab): Use new method.
14095
14096 2019-01-10 Tom Tromey <tom@tromey.com>
14097
14098 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
14099 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
14100 * mdebugread.c (parse_partial_symbols): Use
14101 allocate_dependencies.
14102 * dwarf2read.c (dwarf2_create_include_psymtab): Use
14103 allocate_dependencies.
14104 (process_psymtab_comp_unit_reader)
14105 (build_type_psymtab_dependencies): Likewise.
14106 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
14107
14108 2019-01-10 Tom Tromey <tom@tromey.com>
14109
14110 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
14111 PSYMBOL_SET_LANGUAGE.
14112 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
14113
14114 2019-01-10 Tom Tromey <tom@tromey.com>
14115
14116 * psymtab.h (psymtab_storage::obstack): New method.
14117 <m_obstack>: Rename from obstack; now private.
14118 * psymtab.c (psymtab_storage): Update.
14119 * dwarf2read.c (create_addrmap_from_index)
14120 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
14121 Update.
14122
14123 2019-01-10 Tom Tromey <tom@tromey.com>
14124
14125 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
14126 * objfiles.h (objfile::reset_psymtabs): New method.
14127
14128 2019-01-10 Tom Tromey <tom@tromey.com>
14129
14130 * symmisc.c (print_symbol_bcache_statistics): Update.
14131 (print_objfile_statistics): Update.
14132 * symfile.c (reread_symbols): Update.
14133 * psymtab.h (class psymtab_storage): New.
14134 * psymtab.c (psymtab_storage): New constructor.
14135 (~psymtab_storage): New destructor.
14136 (require_partial_symbols): Update.
14137 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
14138 (find_pc_sect_psymtab, find_pc_sect_psymbol)
14139 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
14140 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
14141 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
14142 (start_psymtab_common, end_psymtab_common)
14143 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
14144 (allocate_psymtab): Update.
14145 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
14146 Update.
14147 (dump_psymtab_addrmap, maintenance_print_psymbols)
14148 (maintenance_check_psymtabs): Update.
14149 (class objfile_psymtabs): Move to objfiles.h.
14150 * psympriv.h (discard_psymtab): Now inline.
14151 (psymtab_discarder::psymtab_discarder): Update.
14152 (psymtab_discarder::~psymtab_discarder): Update.
14153 (ALL_OBJFILE_PSYMTABS): Rewrite.
14154 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
14155 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
14156 Remove fields.
14157 <partial_symtabs>: New field.
14158 (class objfile_psymtabs): Move from psymtab.h. Update.
14159 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
14160 psymbol_cache.
14161 (objfile::~objfile): Don't destroy psymbol_cache.
14162 * mdebugread.c (parse_partial_symbols): Update.
14163 * dwarf2read.c (create_addrmap_from_index)
14164 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
14165 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
14166 (add_partial_subprogram, dwarf2_ranges_read): Update.
14167 * dwarf-index-write.c (write_address_map)
14168 (write_one_signatured_type, recursively_write_psymbols)
14169 (class debug_names, class debug_names, write_psymtabs_to_index):
14170 Update.
14171
14172 2019-01-10 Tom Tromey <tom@tromey.com>
14173
14174 * symtab.h (SYMBOL_SET_NAMES): Update.
14175 (symbol_set_names): Update.
14176 (MSYMBOL_SET_NAMES): Update.
14177 * symtab.c (symbol_set_names): Change argument to be an
14178 objfile_per_bfd_storage.
14179 * psymtab.c (add_psymbol_to_bcache): Update.
14180 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
14181
14182 2019-01-10 Tom Tromey <tom@tromey.com>
14183
14184 * symtab.c (create_demangled_names_hash): Change argument to be an
14185 objfile_per_bfd_storage.
14186 (symbol_set_names): Update.
14187
14188 2019-01-10 Tom Tromey <tom@tromey.com>
14189
14190 * xcoffread.c (xcoff_initial_scan): Unconditionally call
14191 init_psymbol_list.
14192 * psymtab.c (init_psymbol_list): Do nothing if already called.
14193 * psympriv.h (init_psymbol_list): Add comment.
14194 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
14195 init_psymbol_list.
14196 * dbxread.c (dbx_symfile_read): Unconditionally call
14197 init_psymbol_list.
14198
14199 2019-01-10 Tom Tromey <tom@tromey.com>
14200
14201 * xcoffread.c (scan_xcoff_symtab): Update.
14202 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
14203 "where".
14204 * mdebugread.c (parse_partial_symbols)
14205 (handle_psymbol_enumerators): Update.
14206 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
14207 * dbxread.c (read_dbx_symtab): Update.
14208 * psympriv.h (psymbol_placement): New enum.
14209 (add_psymbol_to_list): Update.
14210
14211 2019-01-10 Tom Tromey <tom@tromey.com>
14212
14213 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
14214 static_psymbols parameters.
14215 (scan_xcoff_symtab): Update.
14216 * psymtab.c (start_psymtab_common): Remove global_psymbols and
14217 static_psymbols parameters.
14218 * psympriv.h (start_psymtab_common): Update.
14219 * mdebugread.c (parse_partial_symbols): Update.
14220 * dwarf2read.c (create_partial_symtab): Update.
14221 * dbxread.c (read_dbx_symtab): Update.
14222 (start_psymtab): Remove global_psymbols and static_psymbols
14223 parameters.
14224
14225 2019-01-10 Tom Tromey <tom@tromey.com>
14226
14227 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
14228 * psymtab.c (allocate_psymtab): Add comment.
14229 * psympriv.h (allocate_psymtab): Add comment.
14230 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
14231 initializations.
14232 * dbxread.c (dbx_end_psymtab): Remove some initializations.
14233
14234 2019-01-10 Tom Tromey <tom@tromey.com>
14235
14236 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
14237 Don't declare.
14238 * mipsread.c: Include mdebugread.h.
14239 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
14240 Declare.
14241 * elfread.c: Include mdebugread.h.
14242
14243 2019-01-09 Tom Tromey <tom@tromey.com>
14244
14245 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
14246 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
14247 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
14248 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
14249 (psym_lookup_symbol, psym_find_last_source_symtab)
14250 (psym_forget_cached_source_info, psym_print_stats)
14251 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
14252 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
14253 (psym_map_matching_symbols, psym_expand_symtabs_matching)
14254 (psym_find_compunit_symtab_by_address)
14255 (maintenance_print_psymbols, maintenance_info_psymtabs)
14256 (maintenance_check_psymtabs): Use ranged for.
14257 * psymtab.h (class objfile_psymtabs): New.
14258 (require_partial_symbols): Return objfile_psymtabs.
14259 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
14260
14261 2019-01-09 Tom Tromey <tom@tromey.com>
14262
14263 * symfile.c (overlay_invalidate_all, find_pc_overlay)
14264 (find_pc_mapped_section, list_overlays_command)
14265 (map_overlay_command, unmap_overlay_command)
14266 (simple_overlay_update): Use all_objfiles.
14267 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
14268 * printcmd.c (info_symbol_command): Use all_objfiles.
14269 * objfiles.h (ALL_OBJSECTIONS): Remove.
14270 * maint.c (maintenance_translate_address): Use all_objfiles.
14271 * gcore.c (gcore_create_callback): Use all_objfiles.
14272 (objfile_find_memory_regions): Likewise.
14273
14274 2019-01-09 Tom Tromey <tom@tromey.com>
14275
14276 * symtab.c (find_line_symtab, info_sources_command)
14277 (make_source_files_completion_list): Use objfile_compunits.
14278 * source.c (select_source_symtab): Use objfile_compunits.
14279 * objfiles.h (struct objfile): Update comment.
14280 (ALL_OBJFILES): Remove.
14281 (ALL_FILETABS): Remove.
14282 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
14283 objfile_compunits.
14284
14285 2019-01-09 Tom Tromey <tom@tromey.com>
14286
14287 * symmisc.c (print_objfile_statistics, dump_objfile)
14288 (maintenance_print_symbols): Use compunit_filetabs.
14289 * source.c (forget_cached_source_info_for_objfile): Use
14290 compunit_filetabs.
14291 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
14292 (ALL_FILETABS): Use compunit_filetabs.
14293 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
14294 * coffread.c (coff_symtab_read): Use compunit_filetabs.
14295
14296 2019-01-09 Tom Tromey <tom@tromey.com>
14297
14298 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
14299 (compunit_filetabs): New.
14300 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
14301 compunit_filetabs.
14302 (info_sources_command, make_source_files_completion_list): Remove
14303 declaration.
14304 * symmisc.c (print_objfile_statistics, dump_objfile)
14305 (maintenance_print_symbols): Remove declaration.
14306 (maintenance_info_symtabs): Use compunit_filetabs.
14307 (maintenance_info_line_tables): Likewise.
14308 * source.c (select_source_symtab): Change local variable name.
14309 (forget_cached_source_info_for_objfile): Remove declaration.
14310 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
14311 * objfiles.c (objfile_relocate1): Remove declaration.
14312 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
14313 declaration.
14314 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
14315 * coffread.c (coff_symtab_read): Remove declaration.
14316 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
14317 compunit_filetabs.
14318
14319 2019-01-09 Tom Tromey <tom@tromey.com>
14320
14321 * symtab.c (lookup_objfile_from_block)
14322 (find_pc_sect_compunit_symtab, search_symbols)
14323 (default_collect_symbol_completion_matches_break_on): Use
14324 objfile_compunits.
14325 * objfiles.h (ALL_COMPUNITS): Remove.
14326 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
14327 * cp-support.c (add_symbol_overload_list_qualified): Use
14328 objfile_compunits.
14329 * ada-lang.c (ada_collect_symbol_completion_matches)
14330 (ada_add_global_exceptions): Use objfile_compunits.
14331
14332 2019-01-09 Tom Tromey <tom@tromey.com>
14333
14334 * source.c (select_source_symtab)
14335 (forget_cached_source_info_for_objfile): Remove declaration.
14336 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
14337 declaration.
14338 * maint.c (count_symtabs_and_blocks): Remove declaration.
14339 * cp-support.c (add_symbol_overload_list_qualified): Remove
14340 declaration.
14341 * coffread.c (coff_symtab_read): Remove declaration.
14342 * symtab.c (lookup_symbol_in_objfile_symtabs)
14343 (basic_lookup_transparent_type_1): Use objfile_compunits.
14344 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
14345 (info_sources_command, search_symbols)
14346 (default_collect_symbol_completion_matches_break_on)
14347 (make_source_files_completion_list): Remove declaration.
14348 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
14349 (ada_collect_symbol_completion_matches)
14350 (ada_add_global_exceptions): Remove declaration.
14351 * linespec.c (iterate_over_all_matching_symtabs): Use
14352 objfile_compunits.
14353 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
14354 (class objfile_compunits): New.
14355 (ALL_COMPUNITS): Use objfile_compunits.
14356 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
14357 (maintenance_check_symtabs, maintenance_info_line_tables): Use
14358 objfile_compunits.
14359 * objfiles.c (objfile_relocate1): Use objfile_compunits.
14360
14361 2019-01-09 Tom Tromey <tom@tromey.com>
14362
14363 * symtab.c (search_symbols)
14364 (default_collect_symbol_completion_matches_break_on): Use
14365 objfile_msymbols.
14366 * ada-lang.c (ada_lookup_simple_minsym)
14367 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
14368 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
14369 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
14370 objfile_msymbols.
14371 * coffread.c (coff_symfile_read): Use objfile_msymbols.
14372 * symmisc.c (dump_msymbols): Use objfile_msymbols.
14373 * objc-lang.c (find_methods): Use objfile_msymbols.
14374 (info_selectors_command, info_classes_command): Likewise.
14375 * stabsread.c (scan_file_globals): Use objfile_msymbols.
14376 * objfiles.h (class objfile_msymbols): New.
14377 (ALL_OBJFILE_MSYMBOLS): Remove.
14378 (ALL_MSYMBOLS): Remove.
14379
14380 2019-01-09 Tom Tromey <tom@tromey.com>
14381
14382 * common/next-iterator.h (next_adapter): Add Iterator template
14383 parameter.
14384 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
14385 (class all_objfiles_safe): New.
14386 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
14387 * objfiles.c (put_objfile_before): Update comment.
14388 (add_separate_debug_objfile): Likewise.
14389 (free_all_objfiles): Use all_objfiles_safe.
14390 (objfile_purge_solibs): Likewise.
14391
14392 2019-01-09 Tom Tromey <tom@tromey.com>
14393
14394 * symtab.c (iterate_over_symtabs, matching_obj_sections)
14395 (expand_symtab_containing_pc, lookup_static_symbol)
14396 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
14397 (find_symbol_at_address, find_line_symtab, find_main_name): Use
14398 all_objfiles.
14399 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
14400 * breakpoint.c (create_overlay_event_breakpoint)
14401 (create_longjmp_master_breakpoint)
14402 (create_std_terminate_master_breakpoint)
14403 (create_exception_master_breakpoint): Use all_objfiles.
14404 * linux-thread-db.c (try_thread_db_load_from_pdir)
14405 (has_libpthread): Use all_objfiles.
14406 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
14407 * linespec.c (iterate_over_all_matching_symtabs)
14408 (search_minsyms_for_name): Use all_objfiles.
14409 * maint.c (maintenance_info_sections): Use all_objfiles.
14410 * main.c (captured_main_1): Use all_objfiles.
14411 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
14412 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
14413 * guile/scm-pretty-print.c
14414 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
14415 * solib-spu.c (append_ocl_sos): Use all_objfiles.
14416 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
14417 (maintenance_print_msymbols): Use all_objfiles.
14418 * source.c (select_source_symtab): Use all_objfiles.
14419 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
14420 * symfile.c (remove_symbol_file_command)
14421 (expand_symtabs_matching, map_symbol_filenames): Use
14422 all_objfiles.
14423 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
14424 all_objfiles.
14425 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
14426 * objc-lang.c (find_methods): Use all_objfiles.
14427 * objfiles.c (have_partial_symbols, have_full_symbols)
14428 (have_minimal_symbols, qsort_cmp)
14429 (default_iterate_over_objfiles_in_search_order): Use
14430 all_objfiles.
14431 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
14432 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
14433 (maintenance_check_psymtabs): Use all_objfiles.
14434 (ALL_PSYMTABS): Remove.
14435 * compile/compile-object-run.c (do_module_cleanup): Use
14436 all_objfiles.
14437 * blockframe.c (find_pc_partial_function): Use all_objfiles.
14438 * cp-support.c (add_symbol_overload_list_qualified): Use
14439 all_objfiles.
14440 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
14441 Use all_objfiles.
14442 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
14443 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
14444 all_objfiles.
14445 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
14446 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
14447 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
14448 Uses all_objfiles.
14449 * solib.c (solib_read_symbols): Use all_objfiles
14450
14451 2019-01-09 Tom Tromey <tom@tromey.com>
14452
14453 * probe.c (parse_probes_in_pspace): Use all_objfiles.
14454 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
14455 all_objfiles.
14456 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
14457 * symmisc.c (print_symbol_bcache_statistics)
14458 (print_objfile_statistics, maintenance_print_objfiles)
14459 (maintenance_info_symtabs, maintenance_check_symtabs)
14460 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
14461 all_objfiles.
14462 * source.c (forget_cached_source_info): Use all_objfiles.
14463 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
14464 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
14465 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
14466 * objfiles.c (update_section_map): Use all_objfiles.
14467 (shared_objfile_contains_address_p): Likewise.
14468 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
14469 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
14470
14471 2019-01-09 Tom Tromey <tom@tromey.com>
14472
14473 * common/next-iterator.h: New file.
14474 * objfiles.h (class all_objfiles): New.
14475 (struct objfile_iterator): New.
14476
14477 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14478
14479 * NEWS: Move the description of the changed "frame", "select-frame",
14480 and "info frame" commands to the Changed commands section.
14481
14482 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
14483
14484 * gdbtypes.c (check_stub_method_group): Remove handling of old
14485 mangling schemes.
14486 * linespec.c (find_methods): Likewise.
14487 * stabsread.c (read_member_functions): Likewise.
14488 * valops.c (search_struct_method): Likewise.
14489 (value_struct_elt_for_reference): Likewise.
14490 * NEWS: Mention this change.
14491
14492 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
14493
14494 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
14495 print_source_lines.
14496 * source.c (print_source_lines_base): Update line number check.
14497 (print_source_lines): New function.
14498 (source_lines_range::source_lines_range): New function.
14499 * source.h (class source_lines_range): New class.
14500 (print_source_lines): New declaration.
14501
14502 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14503
14504 * linespec.c (linespec_state_destructor): Free self->canonical_names.
14505
14506 2019-01-08 Tom Tromey <tom@tromey.com>
14507 Simon Marchi <simon.marchi@ericsson.com>
14508
14509 PR gdb/24060
14510 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
14511 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
14512 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
14513 * f-exp.y (DOLLAR_VARIABLE): Likewise.
14514 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
14515 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
14516
14517 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
14518
14519 * source.c (select_source_symtab): Move header comment to
14520 declaration in source.h.
14521 (forget_cached_source_info_for_objfile): Likewise.
14522 (forget_cached_source_info): Likewise.
14523 (identify_source_line): Likewise.
14524 * source.h (identify_source_line): Move declaration from symtab.h
14525 and add comment from source.c
14526 (print_source_lines): Likewise.
14527 (forget_cached_source_info_for_objfile): Likewise.
14528 (forget_cached_source_info): Likewise.
14529 (select_source_symtab): Likewise.
14530 (enum print_source_lines_flag): Move definition from symtab.h.
14531 * symtab.h (identify_source_line): Move declaration to source.h.
14532 (print_source_lines): Likewise.
14533 (forget_cached_source_info_for_objfile): Likewise.
14534 (forget_cached_source_info): Likewise.
14535 (select_source_symtab): Likewise.
14536 (enum print_source_lines_flag): Move definition to source.h.
14537 * tui/tui-hooks.c: Add 'source.h' include.
14538
14539 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
14540
14541 * source.c (print_source_lines_base): Handle requests to print
14542 reverse line number sequences, and guard against empty lines
14543 string.
14544
14545 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
14546
14547 * source.c (print_source_lines_base): Fix skip of '\r' if next
14548 character is '\n'.
14549
14550 2019-01-06 Tom Tromey <tom@tromey.com>
14551
14552 * c-exp.y (struct c_parse_state) <macro_original_text,
14553 expansion_obstack>: New member.
14554 (macro_original_text, expansion_obstack): Remove globals.
14555 (scan_macro_expansion, scanning_macro_expansion)
14556 (finished_macro_expansion): Update.
14557 (scan_macro_cleanup): Remove.
14558 (yylex, c_parse): Update.
14559
14560 2019-01-06 Tom Tromey <tom@tromey.com>
14561
14562 * c-exp.y (struct c_parse_state) <strings>: New member.
14563 (operator_stoken): Update.
14564
14565 2019-01-06 Tom Tromey <tom@tromey.com>
14566
14567 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
14568 (union type_stack_elt) <typelist_val>: Now a pointer to
14569 std::vector.
14570 (type_stack_cleanup): Don't declare.
14571 (push_typelist): Update.
14572 * parse.c (pop_typelist): Return a std::vector.
14573 (push_typelist): Take a std::vector.
14574 (follow_types): Update. Do not free args.
14575 (type_stack_cleanup): Remove.
14576 * c-exp.y (struct c_parse_state): New.
14577 (cpstate): New global.
14578 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
14579 (nonempty_typelist): Update.
14580 (func_mod): Create a new vector.
14581 (c_parse): Create a c_parse_state.
14582 (check_parameter_typelist): Do not delete params.
14583 (function_method): Update. Do not delete type_list.
14584
14585 2019-01-06 Tom Tromey <tom@tromey.com>
14586
14587 PR gdb/28155:
14588 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
14589 check_typedef.
14590 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
14591 (print_return_value): Likewise.
14592
14593 2019-01-05 Tom Tromey <tom@tromey.com>
14594
14595 * contrib/cleanup_check.py: Remove.
14596 * contrib/gcc-with-excheck: Remove.
14597 * contrib/exsummary.py: Remove.
14598 * contrib/excheck.py: Remove.
14599
14600 2019-01-05 Joel Brobecker <brobecker@adacore.com>
14601
14602 * thread.c (delete_thread_1): Add gdb_assert that THR is not
14603 NULL. Initialize tpprev to NULL instead of assigning it
14604 to NULL on the next statement.
14605 * windows-nat.c (windows_delete_thread): Remove check for
14606 main_thread_id before printing thread exit notifications.
14607 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
14608 Remove thread ID check against main_thread_id.
14609 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
14610 windows_delete_thread.
14611 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
14612
14613 2019-01-04 Tom Tromey <tom@tromey.com>
14614
14615 * compile/compile.c (_initialize_compile): Use upper case for
14616 metasyntactic variables.
14617 * symmisc.c (_initialize_symmisc): Use upper case for
14618 metasyntactic variables.
14619 * psymtab.c (_initialize_psymtab): Use upper case for
14620 metasyntactic variables.
14621 * demangle.c (demangle_command): Use upper case for metasyntactic
14622 variables.
14623 (_initialize_demangler): Likewise.
14624 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
14625 variables.
14626
14627 2019-01-03 Tom Tromey <tom@tromey.com>
14628
14629 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
14630
14631 2019-01-03 Tom Tromey <tom@tromey.com>
14632
14633 * python/py-symtab.c (salpy_str): Update.
14634 (struct salpy_sal_object) <symtab>: Now a PyObject.
14635 (salpy_dealloc): Update.
14636 (del_objfile_sal): Use gdbpy_ref.
14637
14638 2019-01-03 Tom Tromey <tom@tromey.com>
14639
14640 * python/py-type.c (convert_field): Use new_reference. Return
14641 gdbpy_ref.
14642 (make_fielditem): Return gdbpy_ref.
14643 (typy_fields): Update.
14644 (typy_getitem): Update.
14645 (field_name): Return gdbpy_ref. Use new_reference.
14646 (typy_iterator_iternext): Update.
14647
14648 2019-01-03 Tom Tromey <tom@tromey.com>
14649
14650 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
14651
14652 2019-01-03 Tom Tromey <tom@tromey.com>
14653
14654 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
14655 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
14656 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
14657 (pspy_set_frame_filters, pspy_set_frame_unwinders)
14658 (pspy_set_type_printers): Likewise.
14659 * python/py-function.c (fnpy_init): Use gdbpy_ref.
14660 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
14661 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
14662 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
14663 (objfpy_set_type_printers): Likewise.
14664
14665 2019-01-03 Tom Tromey <tom@tromey.com>
14666
14667 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
14668 (gdbpy_print_stack): Use gdbpy_err_fetch.
14669 * python/python-internal.h (class gdbpy_err_fetch): New class.
14670 (class gdbpy_enter) <m_error_type, m_error_value,
14671 m_error_traceback>: Remove.
14672 <m_error>: New member.
14673 (gdbpy_exception_to_string): Don't declare.
14674 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
14675 * python/py-value.c (convert_value_from_python): Use
14676 gdbpy_err_fetch.
14677 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
14678 gdbpy_exception_to_string.
14679 (gdbpy_handle_exception): Use gdbpy_err_fetch.
14680 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
14681 gdbpy_err_fetch.
14682
14683 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14684
14685 * linux-nat.c (delete_lwp_cleanup): Delete.
14686 (struct lwp_deleter): New struct.
14687 (lwp_info_up): New typedef.
14688 (linux_nat_target::follow_fork): Delete cleanup, and make use of
14689 lwp_info_up.
14690
14691 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14692
14693 * linux-fork.c (class scoped_switch_fork_info): New class.
14694 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
14695
14696 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14697
14698 * valops.c (find_overload_match): Remove use of null_cleanup, and
14699 calls to do_cleanups.
14700
14701 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14702
14703 * compile/compile-cplus-types.c
14704 (compile_cplus_instance::decl_name): Handle changes to
14705 cp_func_name.
14706 * cp-support.c (cp_func_name): Update header comment, update
14707 return type.
14708 * cp-support.h (cp_func_name): Update return type in declaration.
14709 * valops.c (find_overload_match): Move temp_func local to top
14710 level of function and change its type. Use temp_func to hold and
14711 delete temporary string obtained from cp_func_name.
14712
14713 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14714
14715 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
14716 gdb::char_vector, remove cleanup, and update uses of `msg`.
14717
14718 2019-01-03 Jim Wilson <jimw@sifive.com>
14719
14720 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
14721
14722 2019-01-02 Tom Tromey <tom@tromey.com>
14723
14724 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
14725 (tdesc_parse_xml): Remove cleanups.
14726 * target-descriptions.h (make_cleanup_free_target_description):
14727 Don't declare.
14728 (target_desc_deleter): New struct.
14729 (target_desc_up): New typedef.
14730 * target-descriptions.c (target_desc_deleter::operator()): Rename
14731 from free_target_description.
14732 (make_cleanup_free_target_description): Remove.
14733
14734 2019-01-02 Tom Tromey <tom@tromey.com>
14735
14736 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
14737 constructor, destructor.
14738 (linespec_parser): Remove typedef.
14739 (~linespec_parser): Rename from linespec_parser_delete.
14740 (linespec_lex_to_end, linespec_complete_label)
14741 (linespec_complete): Update.
14742 (decode_line_full): Remove cleanups.
14743 (decode_line_1): Update.
14744
14745 2019-01-02 Tom Tromey <tom@tromey.com>
14746
14747 * python/python-internal.h (inferior_to_inferior_object): Change
14748 return type.
14749 * python/py-exitedevent.c (create_exited_event_object): Update.
14750 * python/py-inferior.c (inferior_to_inferior_object): Return
14751 gdbpy_ref.
14752 (python_new_inferior, python_inferior_deleted)
14753 (thread_to_thread_object, delete_thread_object)
14754 (build_inferior_list, gdbpy_selected_inferior): Update.
14755 * python/py-infthread.c (create_thread_object): Update. Also fail
14756 if inferior_to_inferior_object fails.
14757
14758 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
14759
14760 * inferior.h (class inferior) <displaced_step_state>: New field.
14761 * infrun.h (struct displaced_step_state): Move here from
14762 infrun.c. Initialize fields, add constructor.
14763 <inf>: Remove field.
14764 <reset>: New method.
14765 * infrun.c (struct displaced_step_inferior_state): Move to
14766 infrun.h.
14767 (displaced_step_inferior_states): Remove.
14768 (get_displaced_stepping_state): Adust.
14769 (displaced_step_in_progress_any_inferior): Adjust.
14770 (displaced_step_in_progress_thread): Adjust.
14771 (displaced_step_in_progress): Adjust.
14772 (add_displaced_stepping_state): Remove.
14773 (get_displaced_step_closure_by_addr): Adjust.
14774 (remove_displaced_stepping_state): Remove.
14775 (infrun_inferior_exit): Call displaced_step_state.reset.
14776 (use_displaced_stepping): Don't check for NULL.
14777 (displaced_step_prepare_throw): Call
14778 get_displaced_stepping_state.
14779 (displaced_step_fixup): Don't check for NULL.
14780 (prepare_for_detach): Don't check for NULL.
14781
14782 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14783
14784 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
14785 in case of call that did not complete.
14786
14787 2019-01-02 Andrey Utkin <autkin@undo.io>
14788
14789 * symfile.c (find_separate_debug_file): Fix search of debug files for
14790 remote debuggee.
14791
14792 2019-01-02 Tom Tromey <tom@tromey.com>
14793
14794 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
14795 indentation.
14796 * python/py-frame.c (frapy_older): Remove cast.
14797 (frapy_newer): Likewise.
14798 * python/py-breakpoint.c (local_setattro): Remove cast.
14799 * python/py-arch.c (archpy_name): Remove local variable.
14800 * python/py-type.c (gdbpy_lookup_type): Remove cast.
14801
14802 2019-01-02 Joel Brobecker <brobecker@adacore.com>
14803
14804 * unittests/basic_string_view/element_access/char/empty.cc:
14805 Fix year range in copyright header.
14806
14807 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
14808
14809 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
14810 Delete.
14811 <operator==>: Update with for removed field.
14812 <hash>: Likewise.
14813 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
14814 <isa_features>: ...this.
14815 <abi_features>: New field.
14816 (riscv_isa_flen): Update comment.
14817 (riscv_abi_xlen): New declaration.
14818 (riscv_abi_flen): New declaration.
14819 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
14820 isa_features.
14821 (riscv_abi_xlen): New function.
14822 (riscv_isa_flen): Update to get answer from isa_features.
14823 (riscv_abi_flen): New function.
14824 (riscv_has_fp_abi): Update to get answer from abi_features.
14825 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
14826 xlen and flen.
14827 (riscv_call_info) <xlen, flen>: Update comment.
14828 (riscv_call_arg_struct): Remove invalid assertions
14829 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
14830 is removed.
14831 (riscv_gdbarch_init): Gather isa features and abi features
14832 separately, ensure both match on the gdbarch when reusing an old
14833 gdbarch. Relax an error check to allow 32-bit abi float to run on
14834 a target with 64-bit float hardware.
14835
14836 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14837
14838 * source.c (search_command_helper): Stop reverse search
14839 when line 1 has been searched.
14840
14841 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14842
14843 * record-full.c (record_full_base_target::close): Rewrite
14844 record_full_core_buf_list free logic.
14845
14846 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14847
14848 * break-catch-syscall.c (print_one_catch_syscall): xfree
14849 the last text.
14850
14851 2019-01-01 Joel Brobecker <brobecker@adacore.com>
14852
14853 * top.c (print_gdb_version): Update Copyright year in version
14854 message.
14855
14856 2019-01-01 Joel Brobecker <brobecker@adacore.com>
14857
14858 Update copyright year range in all GDB files.
14859
14860 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
14861
14862 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
14863
14864 For older changes see ChangeLog-2018.
14865 \f
14866 Local Variables:
14867 mode: change-log
14868 left-margin: 8
14869 fill-column: 74
14870 version-control: never
14871 coding: utf-8
14872 End:
14873